@dataramen/cli 0.0.48 → 0.0.49-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,284 +0,0 @@
1
- (function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))l(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&l(c)}).observe(document,{childList:!0,subtree:!0});function i(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function l(s){if(s.ep)return;s.ep=!0;const o=i(s);fetch(s.href,o)}})();function ka(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xd={exports:{}},Os={};/**
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 $0;function $2(){if($0)return Os;$0=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function i(l,s,o){var c=null;if(o!==void 0&&(c=""+o),s.key!==void 0&&(c=""+s.key),"key"in s){o={};for(var f in s)f!=="key"&&(o[f]=s[f])}else o=s;return s=o.ref,{$$typeof:e,type:l,key:c,ref:s!==void 0?s:null,props:o}}return Os.Fragment=n,Os.jsx=i,Os.jsxs=i,Os}var Y0;function Y2(){return Y0||(Y0=1,Xd.exports=$2()),Xd.exports}var b=Y2(),Zd={exports:{}},Ne={};/**
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 K0;function K2(){if(K0)return Ne;K0=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.iterator;function x(C){return C===null||typeof C!="object"?null:(C=y&&C[y]||C["@@iterator"],typeof C=="function"?C:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,T={};function _(C,I,se){this.props=C,this.context=I,this.refs=T,this.updater=se||v}_.prototype.isReactComponent={},_.prototype.setState=function(C,I){if(typeof C!="object"&&typeof C!="function"&&C!=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,C,I,"setState")},_.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function E(){}E.prototype=_.prototype;function N(C,I,se){this.props=C,this.context=I,this.refs=T,this.updater=se||v}var j=N.prototype=new E;j.constructor=N,w(j,_.prototype),j.isPureReactComponent=!0;var q=Array.isArray,L={H:null,A:null,T:null,S:null,V:null},D=Object.prototype.hasOwnProperty;function X(C,I,se,R,fe,Te){return se=Te.ref,{$$typeof:e,type:C,key:I,ref:se!==void 0?se:null,props:Te}}function ee(C,I){return X(C.type,I,void 0,void 0,void 0,C.props)}function ie(C){return typeof C=="object"&&C!==null&&C.$$typeof===e}function U(C){var I={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(se){return I[se]})}var ae=/\/+/g;function te(C,I){return typeof C=="object"&&C!==null&&C.key!=null?U(""+C.key):I.toString(36)}function ue(){}function J(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(ue,ue):(C.status="pending",C.then(function(I){C.status==="pending"&&(C.status="fulfilled",C.value=I)},function(I){C.status==="pending"&&(C.status="rejected",C.reason=I)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function oe(C,I,se,R,fe){var Te=typeof C;(Te==="undefined"||Te==="boolean")&&(C=null);var ce=!1;if(C===null)ce=!0;else switch(Te){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(C.$$typeof){case e:case n:ce=!0;break;case m:return ce=C._init,oe(ce(C._payload),I,se,R,fe)}}if(ce)return fe=fe(C),ce=R===""?"."+te(C,0):R,q(fe)?(se="",ce!=null&&(se=ce.replace(ae,"$&/")+"/"),oe(fe,I,se,"",function(Ie){return Ie})):fe!=null&&(ie(fe)&&(fe=ee(fe,se+(fe.key==null||C&&C.key===fe.key?"":(""+fe.key).replace(ae,"$&/")+"/")+ce)),I.push(fe)),1;ce=0;var ft=R===""?".":R+":";if(q(C))for(var je=0;je<C.length;je++)R=C[je],Te=ft+te(R,je),ce+=oe(R,I,se,Te,fe);else if(je=x(C),typeof je=="function")for(C=je.call(C),je=0;!(R=C.next()).done;)R=R.value,Te=ft+te(R,je++),ce+=oe(R,I,se,Te,fe);else if(Te==="object"){if(typeof C.then=="function")return oe(J(C),I,se,R,fe);throw I=String(C),Error("Objects are not valid as a React child (found: "+(I==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":I)+"). If you meant to render a collection of children, use an array instead.")}return ce}function B(C,I,se){if(C==null)return C;var R=[],fe=0;return oe(C,R,"","",function(Te){return I.call(se,Te,fe++)}),R}function G(C){if(C._status===-1){var I=C._result;I=I(),I.then(function(se){(C._status===0||C._status===-1)&&(C._status=1,C._result=se)},function(se){(C._status===0||C._status===-1)&&(C._status=2,C._result=se)}),C._status===-1&&(C._status=0,C._result=I)}if(C._status===1)return C._result.default;throw C._result}var ne=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var I=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(I))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)};function pe(){}return Ne.Children={map:B,forEach:function(C,I,se){B(C,function(){I.apply(this,arguments)},se)},count:function(C){var I=0;return B(C,function(){I++}),I},toArray:function(C){return B(C,function(I){return I})||[]},only:function(C){if(!ie(C))throw Error("React.Children.only expected to receive a single React element child.");return C}},Ne.Component=_,Ne.Fragment=i,Ne.Profiler=s,Ne.PureComponent=N,Ne.StrictMode=l,Ne.Suspense=h,Ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,Ne.__COMPILER_RUNTIME={__proto__:null,c:function(C){return L.H.useMemoCache(C)}},Ne.cache=function(C){return function(){return C.apply(null,arguments)}},Ne.cloneElement=function(C,I,se){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var R=w({},C.props),fe=C.key,Te=void 0;if(I!=null)for(ce in I.ref!==void 0&&(Te=void 0),I.key!==void 0&&(fe=""+I.key),I)!D.call(I,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&I.ref===void 0||(R[ce]=I[ce]);var ce=arguments.length-2;if(ce===1)R.children=se;else if(1<ce){for(var ft=Array(ce),je=0;je<ce;je++)ft[je]=arguments[je+2];R.children=ft}return X(C.type,fe,void 0,void 0,Te,R)},Ne.createContext=function(C){return C={$$typeof:c,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:o,_context:C},C},Ne.createElement=function(C,I,se){var R,fe={},Te=null;if(I!=null)for(R in I.key!==void 0&&(Te=""+I.key),I)D.call(I,R)&&R!=="key"&&R!=="__self"&&R!=="__source"&&(fe[R]=I[R]);var ce=arguments.length-2;if(ce===1)fe.children=se;else if(1<ce){for(var ft=Array(ce),je=0;je<ce;je++)ft[je]=arguments[je+2];fe.children=ft}if(C&&C.defaultProps)for(R in ce=C.defaultProps,ce)fe[R]===void 0&&(fe[R]=ce[R]);return X(C,Te,void 0,void 0,null,fe)},Ne.createRef=function(){return{current:null}},Ne.forwardRef=function(C){return{$$typeof:f,render:C}},Ne.isValidElement=ie,Ne.lazy=function(C){return{$$typeof:m,_payload:{_status:-1,_result:C},_init:G}},Ne.memo=function(C,I){return{$$typeof:d,type:C,compare:I===void 0?null:I}},Ne.startTransition=function(C){var I=L.T,se={};L.T=se;try{var R=C(),fe=L.S;fe!==null&&fe(se,R),typeof R=="object"&&R!==null&&typeof R.then=="function"&&R.then(pe,ne)}catch(Te){ne(Te)}finally{L.T=I}},Ne.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},Ne.use=function(C){return L.H.use(C)},Ne.useActionState=function(C,I,se){return L.H.useActionState(C,I,se)},Ne.useCallback=function(C,I){return L.H.useCallback(C,I)},Ne.useContext=function(C){return L.H.useContext(C)},Ne.useDebugValue=function(){},Ne.useDeferredValue=function(C,I){return L.H.useDeferredValue(C,I)},Ne.useEffect=function(C,I,se){var R=L.H;if(typeof se=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return R.useEffect(C,I)},Ne.useId=function(){return L.H.useId()},Ne.useImperativeHandle=function(C,I,se){return L.H.useImperativeHandle(C,I,se)},Ne.useInsertionEffect=function(C,I){return L.H.useInsertionEffect(C,I)},Ne.useLayoutEffect=function(C,I){return L.H.useLayoutEffect(C,I)},Ne.useMemo=function(C,I){return L.H.useMemo(C,I)},Ne.useOptimistic=function(C,I){return L.H.useOptimistic(C,I)},Ne.useReducer=function(C,I,se){return L.H.useReducer(C,I,se)},Ne.useRef=function(C){return L.H.useRef(C)},Ne.useState=function(C){return L.H.useState(C)},Ne.useSyncExternalStore=function(C,I,se){return L.H.useSyncExternalStore(C,I,se)},Ne.useTransition=function(){return L.H.useTransition()},Ne.version="19.1.0",Ne}var G0;function pp(){return G0||(G0=1,Zd.exports=K2()),Zd.exports}var k=pp();const nt=ka(k);var Jd={exports:{}},Ds={},Wd={exports:{}},eh={};/**
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 X0;function G2(){return X0||(X0=1,function(e){function n(B,G){var ne=B.length;B.push(G);e:for(;0<ne;){var pe=ne-1>>>1,C=B[pe];if(0<s(C,G))B[pe]=G,B[ne]=C,ne=pe;else break e}}function i(B){return B.length===0?null:B[0]}function l(B){if(B.length===0)return null;var G=B[0],ne=B.pop();if(ne!==G){B[0]=ne;e:for(var pe=0,C=B.length,I=C>>>1;pe<I;){var se=2*(pe+1)-1,R=B[se],fe=se+1,Te=B[fe];if(0>s(R,ne))fe<C&&0>s(Te,R)?(B[pe]=Te,B[fe]=ne,pe=fe):(B[pe]=R,B[se]=ne,pe=se);else if(fe<C&&0>s(Te,ne))B[pe]=Te,B[fe]=ne,pe=fe;else break e}}return G}function s(B,G){var ne=B.sortIndex-G.sortIndex;return ne!==0?ne:B.id-G.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var h=[],d=[],m=1,y=null,x=3,v=!1,w=!1,T=!1,_=!1,E=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;function q(B){for(var G=i(d);G!==null;){if(G.callback===null)l(d);else if(G.startTime<=B)l(d),G.sortIndex=G.expirationTime,n(h,G);else break;G=i(d)}}function L(B){if(T=!1,q(B),!w)if(i(h)!==null)w=!0,D||(D=!0,te());else{var G=i(d);G!==null&&oe(L,G.startTime-B)}}var D=!1,X=-1,ee=5,ie=-1;function U(){return _?!0:!(e.unstable_now()-ie<ee)}function ae(){if(_=!1,D){var B=e.unstable_now();ie=B;var G=!0;try{e:{w=!1,T&&(T=!1,N(X),X=-1),v=!0;var ne=x;try{t:{for(q(B),y=i(h);y!==null&&!(y.expirationTime>B&&U());){var pe=y.callback;if(typeof pe=="function"){y.callback=null,x=y.priorityLevel;var C=pe(y.expirationTime<=B);if(B=e.unstable_now(),typeof C=="function"){y.callback=C,q(B),G=!0;break t}y===i(h)&&l(h),q(B)}else l(h);y=i(h)}if(y!==null)G=!0;else{var I=i(d);I!==null&&oe(L,I.startTime-B),G=!1}}break e}finally{y=null,x=ne,v=!1}G=void 0}}finally{G?te():D=!1}}}var te;if(typeof j=="function")te=function(){j(ae)};else if(typeof MessageChannel<"u"){var ue=new MessageChannel,J=ue.port2;ue.port1.onmessage=ae,te=function(){J.postMessage(null)}}else te=function(){E(ae,0)};function oe(B,G){X=E(function(){B(e.unstable_now())},G)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(B){B.callback=null},e.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"):ee=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_next=function(B){switch(x){case 1:case 2:case 3:var G=3;break;default:G=x}var ne=x;x=G;try{return B()}finally{x=ne}},e.unstable_requestPaint=function(){_=!0},e.unstable_runWithPriority=function(B,G){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var ne=x;x=B;try{return G()}finally{x=ne}},e.unstable_scheduleCallback=function(B,G,ne){var pe=e.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?pe+ne:pe):ne=pe,B){case 1:var C=-1;break;case 2:C=250;break;case 5:C=1073741823;break;case 4:C=1e4;break;default:C=5e3}return C=ne+C,B={id:m++,callback:G,priorityLevel:B,startTime:ne,expirationTime:C,sortIndex:-1},ne>pe?(B.sortIndex=ne,n(d,B),i(h)===null&&B===i(d)&&(T?(N(X),X=-1):T=!0,oe(L,ne-pe))):(B.sortIndex=C,n(h,B),w||v||(w=!0,D||(D=!0,te()))),B},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(B){var G=x;return function(){var ne=x;x=G;try{return B.apply(this,arguments)}finally{x=ne}}}}(eh)),eh}var Z0;function X2(){return Z0||(Z0=1,Wd.exports=G2()),Wd.exports}var th={exports:{}},Jt={};/**
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 J0;function Z2(){if(J0)return Jt;J0=1;var e=pp();function n(h){var d="https://react.dev/errors/"+h;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)d+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+h+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var l={d:{f:i,r:function(){throw Error(n(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},s=Symbol.for("react.portal");function o(h,d,m){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:y==null?null:""+y,children:h,containerInfo:d,implementation:m}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(h,d){if(h==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return Jt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,Jt.createPortal=function(h,d){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(n(299));return o(h,d,null,m)},Jt.flushSync=function(h){var d=c.T,m=l.p;try{if(c.T=null,l.p=2,h)return h()}finally{c.T=d,l.p=m,l.d.f()}},Jt.preconnect=function(h,d){typeof h=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,l.d.C(h,d))},Jt.prefetchDNS=function(h){typeof h=="string"&&l.d.D(h)},Jt.preinit=function(h,d){if(typeof h=="string"&&d&&typeof d.as=="string"){var m=d.as,y=f(m,d.crossOrigin),x=typeof d.integrity=="string"?d.integrity:void 0,v=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;m==="style"?l.d.S(h,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:y,integrity:x,fetchPriority:v}):m==="script"&&l.d.X(h,{crossOrigin:y,integrity:x,fetchPriority:v,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Jt.preinitModule=function(h,d){if(typeof h=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var m=f(d.as,d.crossOrigin);l.d.M(h,{crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&l.d.M(h)},Jt.preload=function(h,d){if(typeof h=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var m=d.as,y=f(m,d.crossOrigin);l.d.L(h,m,{crossOrigin:y,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},Jt.preloadModule=function(h,d){if(typeof h=="string")if(d){var m=f(d.as,d.crossOrigin);l.d.m(h,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else l.d.m(h)},Jt.requestFormReset=function(h){l.d.r(h)},Jt.unstable_batchedUpdates=function(h,d){return h(d)},Jt.useFormState=function(h,d,m){return c.H.useFormState(h,d,m)},Jt.useFormStatus=function(){return c.H.useHostTransitionStatus()},Jt.version="19.1.0",Jt}var W0;function Z1(){if(W0)return th.exports;W0=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),th.exports=Z2(),th.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 eb;function J2(){if(eb)return Ds;eb=1;var e=X2(),n=pp(),i=Z1();function l(t){var r="https://react.dev/errors/"+t;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)r+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+t+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function o(t){var r=t,a=t;if(t.alternate)for(;r.return;)r=r.return;else{t=r;do r=t,(r.flags&4098)!==0&&(a=r.return),t=r.return;while(t)}return r.tag===3?a:null}function c(t){if(t.tag===13){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function f(t){if(o(t)!==t)throw Error(l(188))}function h(t){var r=t.alternate;if(!r){if(r=o(t),r===null)throw Error(l(188));return r!==t?null:t}for(var a=t,u=r;;){var p=a.return;if(p===null)break;var g=p.alternate;if(g===null){if(u=p.return,u!==null){a=u;continue}break}if(p.child===g.child){for(g=p.child;g;){if(g===a)return f(p),t;if(g===u)return f(p),r;g=g.sibling}throw Error(l(188))}if(a.return!==u.return)a=p,u=g;else{for(var S=!1,A=p.child;A;){if(A===a){S=!0,a=p,u=g;break}if(A===u){S=!0,u=p,a=g;break}A=A.sibling}if(!S){for(A=g.child;A;){if(A===a){S=!0,a=g,u=p;break}if(A===u){S=!0,u=g,a=p;break}A=A.sibling}if(!S)throw Error(l(189))}}if(a.alternate!==u)throw Error(l(190))}if(a.tag!==3)throw Error(l(188));return a.stateNode.current===a?t:r}function d(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t;for(t=t.child;t!==null;){if(r=d(t),r!==null)return r;t=t.sibling}return null}var m=Object.assign,y=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),N=Symbol.for("react.consumer"),j=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),ie=Symbol.for("react.activity"),U=Symbol.for("react.memo_cache_sentinel"),ae=Symbol.iterator;function te(t){return t===null||typeof t!="object"?null:(t=ae&&t[ae]||t["@@iterator"],typeof t=="function"?t:null)}var ue=Symbol.for("react.client.reference");function J(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ue?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case w:return"Fragment";case _:return"Profiler";case T:return"StrictMode";case L:return"Suspense";case D:return"SuspenseList";case ie:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case v:return"Portal";case j:return(t.displayName||"Context")+".Provider";case N:return(t._context.displayName||"Context")+".Consumer";case q:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case X:return r=t.displayName||null,r!==null?r:J(t.type)||"Memo";case ee:r=t._payload,t=t._init;try{return J(t(r))}catch{}}return null}var oe=Array.isArray,B=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},pe=[],C=-1;function I(t){return{current:t}}function se(t){0>C||(t.current=pe[C],pe[C]=null,C--)}function R(t,r){C++,pe[C]=t.current,t.current=r}var fe=I(null),Te=I(null),ce=I(null),ft=I(null);function je(t,r){switch(R(ce,r),R(Te,t),R(fe,null),r.nodeType){case 9:case 11:t=(t=r.documentElement)&&(t=t.namespaceURI)?x0(t):0;break;default:if(t=r.tagName,r=r.namespaceURI)r=x0(r),t=w0(r,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}se(fe),R(fe,t)}function Ie(){se(fe),se(Te),se(ce)}function Ft(t){t.memoizedState!==null&&R(ft,t);var r=fe.current,a=w0(r,t.type);r!==a&&(R(Te,t),R(fe,a))}function wt(t){Te.current===t&&(se(fe),se(Te)),ft.current===t&&(se(ft),Ts._currentValue=ne)}var fn=Object.prototype.hasOwnProperty,nr=e.unstable_scheduleCallback,dn=e.unstable_cancelCallback,ui=e.unstable_shouldYield,Dt=e.unstable_requestPaint,Mt=e.unstable_now,rr=e.unstable_getCurrentPriorityLevel,Cn=e.unstable_ImmediatePriority,Ke=e.unstable_UserBlockingPriority,Un=e.unstable_NormalPriority,Lr=e.unstable_LowPriority,gr=e.unstable_IdlePriority,zr=e.log,ci=e.unstable_setDisableYieldValue,$=null,W=null;function me(t){if(typeof zr=="function"&&ci(t),W&&typeof W.setStrictMode=="function")try{W.setStrictMode($,t)}catch{}}var ge=Math.clz32?Math.clz32:Yt,qe=Math.log,Pt=Math.LN2;function Yt(t){return t>>>=0,t===0?32:31-(qe(t)/Pt|0)|0}var gt=256,yt=4194304;function He(t){var r=t&42;if(r!==0)return r;switch(t&-t){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 t&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function dt(t,r,a){var u=t.pendingLanes;if(u===0)return 0;var p=0,g=t.suspendedLanes,S=t.pingedLanes;t=t.warmLanes;var A=u&134217727;return A!==0?(u=A&~g,u!==0?p=He(u):(S&=A,S!==0?p=He(S):a||(a=A&~t,a!==0&&(p=He(a))))):(A=u&~g,A!==0?p=He(A):S!==0?p=He(S):a||(a=u&~t,a!==0&&(p=He(a)))),p===0?0:r!==0&&r!==p&&(r&g)===0&&(g=p&-p,a=r&-r,g>=a||g===32&&(a&4194048)!==0)?r:p}function Lt(t,r){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&r)===0}function zt(t,r){switch(t){case 1:case 2:case 4:case 8:case 64:return r+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 r+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 fi(){var t=gt;return gt<<=1,(gt&4194048)===0&&(gt=256),t}function Ur(){var t=yt;return yt<<=1,(yt&62914560)===0&&(yt=4194304),t}function yr(t){for(var r=[],a=0;31>a;a++)r.push(t);return r}function Bn(t,r){t.pendingLanes|=r,r!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Vi(t,r,a,u,p,g){var S=t.pendingLanes;t.pendingLanes=a,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=a,t.entangledLanes&=a,t.errorRecoveryDisabledLanes&=a,t.shellSuspendCounter=0;var A=t.entanglements,O=t.expirationTimes,F=t.hiddenUpdates;for(a=S&~a;0<a;){var Y=31-ge(a),Z=1<<Y;A[Y]=0,O[Y]=-1;var P=F[Y];if(P!==null)for(F[Y]=null,Y=0;Y<P.length;Y++){var Q=P[Y];Q!==null&&(Q.lane&=-536870913)}a&=~Z}u!==0&&$i(t,u,0),g!==0&&p===0&&t.tag!==0&&(t.suspendedLanes|=g&~(S&~r))}function $i(t,r,a){t.pendingLanes|=r,t.suspendedLanes&=~r;var u=31-ge(r);t.entangledLanes|=r,t.entanglements[u]=t.entanglements[u]|1073741824|a&4194090}function St(t,r){var a=t.entangledLanes|=r;for(t=t.entanglements;a;){var u=31-ge(a),p=1<<u;p&r|t[u]&r&&(t[u]|=r),a&=~p}}function Kt(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function we(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Le(){var t=G.p;return t!==0?t:(t=window.event,t===void 0?32:H0(t.type))}function an(t,r){var a=G.p;try{return G.p=t,r()}finally{G.p=a}}var Gt=Math.random().toString(36).slice(2),le="__reactFiber$"+Gt,he="__reactProps$"+Gt,Ee="__reactContainer$"+Gt,ht="__reactEvents$"+Gt,Ut="__reactListeners$"+Gt,qn="__reactHandles$"+Gt,En="__reactResources$"+Gt,Ct="__reactMarker$"+Gt;function Xt(t){delete t[le],delete t[he],delete t[ht],delete t[Ut],delete t[qn]}function Ve(t){var r=t[le];if(r)return r;for(var a=t.parentNode;a;){if(r=a[Ee]||a[le]){if(a=r.alternate,r.child!==null||a!==null&&a.child!==null)for(t=k0(t);t!==null;){if(a=t[le])return a;t=k0(t)}return r}t=a,a=t.parentNode}return null}function kn(t){if(t=t[le]||t[Ee]){var r=t.tag;if(r===5||r===6||r===13||r===26||r===27||r===3)return t}return null}function Yi(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t.stateNode;throw Error(l(33))}function di(t){var r=t[En];return r||(r=t[En]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function Et(t){t[Ct]=!0}var Ba=new Set,qa={};function br(t,r){Br(t,r),Br(t+"Capture",r)}function Br(t,r){for(qa[t]=r,t=0;t<r.length;t++)Ba.add(r[t])}var $e=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]*$"),Hn={},Tl={};function Ki(t){return fn.call(Tl,t)?!0:fn.call(Hn,t)?!1:$e.test(t)?Tl[t]=!0:(Hn[t]=!0,!1)}function _l(t,r,a){if(Ki(r))if(a===null)t.removeAttribute(r);else{switch(typeof a){case"undefined":case"function":case"symbol":t.removeAttribute(r);return;case"boolean":var u=r.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){t.removeAttribute(r);return}}t.setAttribute(r,""+a)}}function hi(t,r,a){if(a===null)t.removeAttribute(r);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(r);return}t.setAttribute(r,""+a)}}function qr(t,r,a,u){if(u===null)t.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttributeNS(r,a,""+u)}}var Qc,hm;function Nl(t){if(Qc===void 0)try{throw Error()}catch(a){var r=a.stack.trim().match(/\n( *(at )?)/);Qc=r&&r[1]||"",hm=-1<a.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+Qc+t+hm}var Ic=!1;function Vc(t,r){if(!t||Ic)return"";Ic=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(r){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(Q){var P=Q}Reflect.construct(t,[],Z)}else{try{Z.call()}catch(Q){P=Q}t.call(Z.prototype)}}else{try{throw Error()}catch(Q){P=Q}(Z=t())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(Q){if(Q&&P&&typeof Q.stack=="string")return[Q.stack,P.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=u.DetermineComponentFrameRoot(),S=g[0],A=g[1];if(S&&A){var O=S.split(`
44
- `),F=A.split(`
45
- `);for(p=u=0;u<O.length&&!O[u].includes("DetermineComponentFrameRoot");)u++;for(;p<F.length&&!F[p].includes("DetermineComponentFrameRoot");)p++;if(u===O.length||p===F.length)for(u=O.length-1,p=F.length-1;1<=u&&0<=p&&O[u]!==F[p];)p--;for(;1<=u&&0<=p;u--,p--)if(O[u]!==F[p]){if(u!==1||p!==1)do if(u--,p--,0>p||O[u]!==F[p]){var Y=`
46
- `+O[u].replace(" at new "," at ");return t.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",t.displayName)),Y}while(1<=u&&0<=p);break}}}finally{Ic=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?Nl(a):""}function Hw(t){switch(t.tag){case 26:case 27:case 5:return Nl(t.type);case 16:return Nl("Lazy");case 13:return Nl("Suspense");case 19:return Nl("SuspenseList");case 0:case 15:return Vc(t.type,!1);case 11:return Vc(t.type.render,!1);case 1:return Vc(t.type,!0);case 31:return Nl("Activity");default:return""}}function pm(t){try{var r="";do r+=Hw(t),t=t.return;while(t);return r}catch(a){return`
47
- Error generating stack: `+a.message+`
48
- `+a.stack}}function Fn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function mm(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function Fw(t){var r=mm(t)?"checked":"value",a=Object.getOwnPropertyDescriptor(t.constructor.prototype,r),u=""+t[r];if(!t.hasOwnProperty(r)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var p=a.get,g=a.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return p.call(this)},set:function(S){u=""+S,g.call(this,S)}}),Object.defineProperty(t,r,{enumerable:a.enumerable}),{getValue:function(){return u},setValue:function(S){u=""+S},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function vo(t){t._valueTracker||(t._valueTracker=Fw(t))}function gm(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var a=r.getValue(),u="";return t&&(u=mm(t)?t.checked?"true":"false":t.value),t=u,t!==a?(r.setValue(t),!0):!1}function xo(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Pw=/[\n"\\]/g;function Pn(t){return t.replace(Pw,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function $c(t,r,a,u,p,g,S,A){t.name="",S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?t.type=S:t.removeAttribute("type"),r!=null?S==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+Fn(r)):t.value!==""+Fn(r)&&(t.value=""+Fn(r)):S!=="submit"&&S!=="reset"||t.removeAttribute("value"),r!=null?Yc(t,S,Fn(r)):a!=null?Yc(t,S,Fn(a)):u!=null&&t.removeAttribute("value"),p==null&&g!=null&&(t.defaultChecked=!!g),p!=null&&(t.checked=p&&typeof p!="function"&&typeof p!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?t.name=""+Fn(A):t.removeAttribute("name")}function ym(t,r,a,u,p,g,S,A){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(t.type=g),r!=null||a!=null){if(!(g!=="submit"&&g!=="reset"||r!=null))return;a=a!=null?""+Fn(a):"",r=r!=null?""+Fn(r):a,A||r===t.value||(t.value=r),t.defaultValue=r}u=u??p,u=typeof u!="function"&&typeof u!="symbol"&&!!u,t.checked=A?t.checked:!!u,t.defaultChecked=!!u,S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(t.name=S)}function Yc(t,r,a){r==="number"&&xo(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function Rl(t,r,a,u){if(t=t.options,r){r={};for(var p=0;p<a.length;p++)r["$"+a[p]]=!0;for(a=0;a<t.length;a++)p=r.hasOwnProperty("$"+t[a].value),t[a].selected!==p&&(t[a].selected=p),p&&u&&(t[a].defaultSelected=!0)}else{for(a=""+Fn(a),r=null,p=0;p<t.length;p++){if(t[p].value===a){t[p].selected=!0,u&&(t[p].defaultSelected=!0);return}r!==null||t[p].disabled||(r=t[p])}r!==null&&(r.selected=!0)}}function bm(t,r,a){if(r!=null&&(r=""+Fn(r),r!==t.value&&(t.value=r),a==null)){t.defaultValue!==r&&(t.defaultValue=r);return}t.defaultValue=a!=null?""+Fn(a):""}function vm(t,r,a,u){if(r==null){if(u!=null){if(a!=null)throw Error(l(92));if(oe(u)){if(1<u.length)throw Error(l(93));u=u[0]}a=u}a==null&&(a=""),r=a}a=Fn(r),t.defaultValue=a,u=t.textContent,u===a&&u!==""&&u!==null&&(t.value=u)}function jl(t,r){if(r){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=r;return}}t.textContent=r}var Qw=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 xm(t,r,a){var u=r.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?u?t.setProperty(r,""):r==="float"?t.cssFloat="":t[r]="":u?t.setProperty(r,a):typeof a!="number"||a===0||Qw.has(r)?r==="float"?t.cssFloat=a:t[r]=(""+a).trim():t[r]=a+"px"}function wm(t,r,a){if(r!=null&&typeof r!="object")throw Error(l(62));if(t=t.style,a!=null){for(var u in a)!a.hasOwnProperty(u)||r!=null&&r.hasOwnProperty(u)||(u.indexOf("--")===0?t.setProperty(u,""):u==="float"?t.cssFloat="":t[u]="");for(var p in r)u=r[p],r.hasOwnProperty(p)&&a[p]!==u&&xm(t,p,u)}else for(var g in r)r.hasOwnProperty(g)&&xm(t,g,r[g])}function Kc(t){if(t.indexOf("-")===-1)return!1;switch(t){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 Iw=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"]]),Vw=/^[\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 wo(t){return Vw.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var Gc=null;function Xc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ol=null,Dl=null;function Sm(t){var r=kn(t);if(r&&(t=r.stateNode)){var a=t[he]||null;e:switch(t=r.stateNode,r.type){case"input":if($c(t,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),r=a.name,a.type==="radio"&&r!=null){for(a=t;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Pn(""+r)+'"][type="radio"]'),r=0;r<a.length;r++){var u=a[r];if(u!==t&&u.form===t.form){var p=u[he]||null;if(!p)throw Error(l(90));$c(u,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(r=0;r<a.length;r++)u=a[r],u.form===t.form&&gm(u)}break e;case"textarea":bm(t,a.value,a.defaultValue);break e;case"select":r=a.value,r!=null&&Rl(t,!!a.multiple,r,!1)}}}var Zc=!1;function Cm(t,r,a){if(Zc)return t(r,a);Zc=!0;try{var u=t(r);return u}finally{if(Zc=!1,(Ol!==null||Dl!==null)&&(au(),Ol&&(r=Ol,t=Dl,Dl=Ol=null,Sm(r),t)))for(r=0;r<t.length;r++)Sm(t[r])}}function Ha(t,r){var a=t.stateNode;if(a===null)return null;var u=a[he]||null;if(u===null)return null;a=u[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(t=t.type,u=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!u;break e;default:t=!1}if(t)return null;if(a&&typeof a!="function")throw Error(l(231,r,typeof a));return a}var Hr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Jc=!1;if(Hr)try{var Fa={};Object.defineProperty(Fa,"passive",{get:function(){Jc=!0}}),window.addEventListener("test",Fa,Fa),window.removeEventListener("test",Fa,Fa)}catch{Jc=!1}var pi=null,Wc=null,So=null;function Em(){if(So)return So;var t,r=Wc,a=r.length,u,p="value"in pi?pi.value:pi.textContent,g=p.length;for(t=0;t<a&&r[t]===p[t];t++);var S=a-t;for(u=1;u<=S&&r[a-u]===p[g-u];u++);return So=p.slice(t,1<u?1-u:void 0)}function Co(t){var r=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&r===13&&(t=13)):t=r,t===10&&(t=13),32<=t||t===13?t:0}function Eo(){return!0}function km(){return!1}function hn(t){function r(a,u,p,g,S){this._reactName=a,this._targetInst=p,this.type=u,this.nativeEvent=g,this.target=S,this.currentTarget=null;for(var A in t)t.hasOwnProperty(A)&&(a=t[A],this[A]=a?a(g):g[A]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Eo:km,this.isPropagationStopped=km,this}return m(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Eo)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Eo)},persist:function(){},isPersistent:Eo}),r}var Gi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ko=hn(Gi),Pa=m({},Gi,{view:0,detail:0}),$w=hn(Pa),ef,tf,Qa,Ao=m({},Pa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:rf,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Qa&&(Qa&&t.type==="mousemove"?(ef=t.screenX-Qa.screenX,tf=t.screenY-Qa.screenY):tf=ef=0,Qa=t),ef)},movementY:function(t){return"movementY"in t?t.movementY:tf}}),Am=hn(Ao),Yw=m({},Ao,{dataTransfer:0}),Kw=hn(Yw),Gw=m({},Pa,{relatedTarget:0}),nf=hn(Gw),Xw=m({},Gi,{animationName:0,elapsedTime:0,pseudoElement:0}),Zw=hn(Xw),Jw=m({},Gi,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Ww=hn(Jw),eS=m({},Gi,{data:0}),Tm=hn(eS),tS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},nS={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"},rS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function iS(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=rS[t])?!!r[t]:!1}function rf(){return iS}var lS=m({},Pa,{key:function(t){if(t.key){var r=tS[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=Co(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?nS[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:rf,charCode:function(t){return t.type==="keypress"?Co(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Co(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),aS=hn(lS),sS=m({},Ao,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_m=hn(sS),oS=m({},Pa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:rf}),uS=hn(oS),cS=m({},Gi,{propertyName:0,elapsedTime:0,pseudoElement:0}),fS=hn(cS),dS=m({},Ao,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),hS=hn(dS),pS=m({},Gi,{newState:0,oldState:0}),mS=hn(pS),gS=[9,13,27,32],lf=Hr&&"CompositionEvent"in window,Ia=null;Hr&&"documentMode"in document&&(Ia=document.documentMode);var yS=Hr&&"TextEvent"in window&&!Ia,Nm=Hr&&(!lf||Ia&&8<Ia&&11>=Ia),Rm=" ",jm=!1;function Om(t,r){switch(t){case"keyup":return gS.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Dm(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ml=!1;function bS(t,r){switch(t){case"compositionend":return Dm(r);case"keypress":return r.which!==32?null:(jm=!0,Rm);case"textInput":return t=r.data,t===Rm&&jm?null:t;default:return null}}function vS(t,r){if(Ml)return t==="compositionend"||!lf&&Om(t,r)?(t=Em(),So=Wc=pi=null,Ml=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return Nm&&r.locale!=="ko"?null:r.data;default:return null}}var xS={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 Mm(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!xS[t.type]:r==="textarea"}function Lm(t,r,a,u){Ol?Dl?Dl.push(u):Dl=[u]:Ol=u,r=du(r,"onChange"),0<r.length&&(a=new ko("onChange","change",null,a,u),t.push({event:a,listeners:r}))}var Va=null,$a=null;function wS(t){m0(t,0)}function To(t){var r=Yi(t);if(gm(r))return t}function zm(t,r){if(t==="change")return r}var Um=!1;if(Hr){var af;if(Hr){var sf="oninput"in document;if(!sf){var Bm=document.createElement("div");Bm.setAttribute("oninput","return;"),sf=typeof Bm.oninput=="function"}af=sf}else af=!1;Um=af&&(!document.documentMode||9<document.documentMode)}function qm(){Va&&(Va.detachEvent("onpropertychange",Hm),$a=Va=null)}function Hm(t){if(t.propertyName==="value"&&To($a)){var r=[];Lm(r,$a,t,Xc(t)),Cm(wS,r)}}function SS(t,r,a){t==="focusin"?(qm(),Va=r,$a=a,Va.attachEvent("onpropertychange",Hm)):t==="focusout"&&qm()}function CS(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return To($a)}function ES(t,r){if(t==="click")return To(r)}function kS(t,r){if(t==="input"||t==="change")return To(r)}function AS(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var An=typeof Object.is=="function"?Object.is:AS;function Ya(t,r){if(An(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;var a=Object.keys(t),u=Object.keys(r);if(a.length!==u.length)return!1;for(u=0;u<a.length;u++){var p=a[u];if(!fn.call(r,p)||!An(t[p],r[p]))return!1}return!0}function Fm(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Pm(t,r){var a=Fm(t);t=0;for(var u;a;){if(a.nodeType===3){if(u=t+a.textContent.length,t<=r&&u>=r)return{node:a,offset:r-t};t=u}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Fm(a)}}function Qm(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?Qm(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function Im(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var r=xo(t.document);r instanceof t.HTMLIFrameElement;){try{var a=typeof r.contentWindow.location.href=="string"}catch{a=!1}if(a)t=r.contentWindow;else break;r=xo(t.document)}return r}function of(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}var TS=Hr&&"documentMode"in document&&11>=document.documentMode,Ll=null,uf=null,Ka=null,cf=!1;function Vm(t,r,a){var u=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;cf||Ll==null||Ll!==xo(u)||(u=Ll,"selectionStart"in u&&of(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),Ka&&Ya(Ka,u)||(Ka=u,u=du(uf,"onSelect"),0<u.length&&(r=new ko("onSelect","select",null,r,a),t.push({event:r,listeners:u}),r.target=Ll)))}function Xi(t,r){var a={};return a[t.toLowerCase()]=r.toLowerCase(),a["Webkit"+t]="webkit"+r,a["Moz"+t]="moz"+r,a}var zl={animationend:Xi("Animation","AnimationEnd"),animationiteration:Xi("Animation","AnimationIteration"),animationstart:Xi("Animation","AnimationStart"),transitionrun:Xi("Transition","TransitionRun"),transitionstart:Xi("Transition","TransitionStart"),transitioncancel:Xi("Transition","TransitionCancel"),transitionend:Xi("Transition","TransitionEnd")},ff={},$m={};Hr&&($m=document.createElement("div").style,"AnimationEvent"in window||(delete zl.animationend.animation,delete zl.animationiteration.animation,delete zl.animationstart.animation),"TransitionEvent"in window||delete zl.transitionend.transition);function Zi(t){if(ff[t])return ff[t];if(!zl[t])return t;var r=zl[t],a;for(a in r)if(r.hasOwnProperty(a)&&a in $m)return ff[t]=r[a];return t}var Ym=Zi("animationend"),Km=Zi("animationiteration"),Gm=Zi("animationstart"),_S=Zi("transitionrun"),NS=Zi("transitionstart"),RS=Zi("transitioncancel"),Xm=Zi("transitionend"),Zm=new Map,df="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(" ");df.push("scrollEnd");function ir(t,r){Zm.set(t,r),br(r,[t])}var Jm=new WeakMap;function Qn(t,r){if(typeof t=="object"&&t!==null){var a=Jm.get(t);return a!==void 0?a:(r={value:t,source:r,stack:pm(r)},Jm.set(t,r),r)}return{value:t,source:r,stack:pm(r)}}var In=[],Ul=0,hf=0;function _o(){for(var t=Ul,r=hf=Ul=0;r<t;){var a=In[r];In[r++]=null;var u=In[r];In[r++]=null;var p=In[r];In[r++]=null;var g=In[r];if(In[r++]=null,u!==null&&p!==null){var S=u.pending;S===null?p.next=p:(p.next=S.next,S.next=p),u.pending=p}g!==0&&Wm(a,p,g)}}function No(t,r,a,u){In[Ul++]=t,In[Ul++]=r,In[Ul++]=a,In[Ul++]=u,hf|=u,t.lanes|=u,t=t.alternate,t!==null&&(t.lanes|=u)}function pf(t,r,a,u){return No(t,r,a,u),Ro(t)}function Bl(t,r){return No(t,null,null,r),Ro(t)}function Wm(t,r,a){t.lanes|=a;var u=t.alternate;u!==null&&(u.lanes|=a);for(var p=!1,g=t.return;g!==null;)g.childLanes|=a,u=g.alternate,u!==null&&(u.childLanes|=a),g.tag===22&&(t=g.stateNode,t===null||t._visibility&1||(p=!0)),t=g,g=g.return;return t.tag===3?(g=t.stateNode,p&&r!==null&&(p=31-ge(a),t=g.hiddenUpdates,u=t[p],u===null?t[p]=[r]:u.push(r),r.lane=a|536870912),g):null}function Ro(t){if(50<vs)throw vs=0,xd=null,Error(l(185));for(var r=t.return;r!==null;)t=r,r=t.return;return t.tag===3?t.stateNode:null}var ql={};function jS(t,r,a,u){this.tag=t,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=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tn(t,r,a,u){return new jS(t,r,a,u)}function mf(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Fr(t,r){var a=t.alternate;return a===null?(a=Tn(t.tag,r,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=r,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=t.flags&65011712,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,r=t.dependencies,a.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a.refCleanup=t.refCleanup,a}function eg(t,r){t.flags&=65011714;var a=t.alternate;return a===null?(t.childLanes=0,t.lanes=r,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=a.childLanes,t.lanes=a.lanes,t.child=a.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=a.memoizedProps,t.memoizedState=a.memoizedState,t.updateQueue=a.updateQueue,t.type=a.type,r=a.dependencies,t.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),t}function jo(t,r,a,u,p,g){var S=0;if(u=t,typeof t=="function")mf(t)&&(S=1);else if(typeof t=="string")S=D2(t,a,fe.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case ie:return t=Tn(31,a,r,p),t.elementType=ie,t.lanes=g,t;case w:return Ji(a.children,p,g,r);case T:S=8,p|=24;break;case _:return t=Tn(12,a,r,p|2),t.elementType=_,t.lanes=g,t;case L:return t=Tn(13,a,r,p),t.elementType=L,t.lanes=g,t;case D:return t=Tn(19,a,r,p),t.elementType=D,t.lanes=g,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case E:case j:S=10;break e;case N:S=9;break e;case q:S=11;break e;case X:S=14;break e;case ee:S=16,u=null;break e}S=29,a=Error(l(130,t===null?"null":typeof t,"")),u=null}return r=Tn(S,a,r,p),r.elementType=t,r.type=u,r.lanes=g,r}function Ji(t,r,a,u){return t=Tn(7,t,u,r),t.lanes=a,t}function gf(t,r,a){return t=Tn(6,t,null,r),t.lanes=a,t}function yf(t,r,a){return r=Tn(4,t.children!==null?t.children:[],t.key,r),r.lanes=a,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}var Hl=[],Fl=0,Oo=null,Do=0,Vn=[],$n=0,Wi=null,Pr=1,Qr="";function el(t,r){Hl[Fl++]=Do,Hl[Fl++]=Oo,Oo=t,Do=r}function tg(t,r,a){Vn[$n++]=Pr,Vn[$n++]=Qr,Vn[$n++]=Wi,Wi=t;var u=Pr;t=Qr;var p=32-ge(u)-1;u&=~(1<<p),a+=1;var g=32-ge(r)+p;if(30<g){var S=p-p%5;g=(u&(1<<S)-1).toString(32),u>>=S,p-=S,Pr=1<<32-ge(r)+p|a<<p|u,Qr=g+t}else Pr=1<<g|a<<p|u,Qr=t}function bf(t){t.return!==null&&(el(t,1),tg(t,1,0))}function vf(t){for(;t===Oo;)Oo=Hl[--Fl],Hl[Fl]=null,Do=Hl[--Fl],Hl[Fl]=null;for(;t===Wi;)Wi=Vn[--$n],Vn[$n]=null,Qr=Vn[--$n],Vn[$n]=null,Pr=Vn[--$n],Vn[$n]=null}var sn=null,bt=null,Ye=!1,tl=null,vr=!1,xf=Error(l(519));function nl(t){var r=Error(l(418,""));throw Za(Qn(r,t)),xf}function ng(t){var r=t.stateNode,a=t.type,u=t.memoizedProps;switch(r[le]=t,r[he]=u,a){case"dialog":Ue("cancel",r),Ue("close",r);break;case"iframe":case"object":case"embed":Ue("load",r);break;case"video":case"audio":for(a=0;a<ws.length;a++)Ue(ws[a],r);break;case"source":Ue("error",r);break;case"img":case"image":case"link":Ue("error",r),Ue("load",r);break;case"details":Ue("toggle",r);break;case"input":Ue("invalid",r),ym(r,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0),vo(r);break;case"select":Ue("invalid",r);break;case"textarea":Ue("invalid",r),vm(r,u.value,u.defaultValue,u.children),vo(r)}a=u.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||r.textContent===""+a||u.suppressHydrationWarning===!0||v0(r.textContent,a)?(u.popover!=null&&(Ue("beforetoggle",r),Ue("toggle",r)),u.onScroll!=null&&Ue("scroll",r),u.onScrollEnd!=null&&Ue("scrollend",r),u.onClick!=null&&(r.onclick=hu),r=!0):r=!1,r||nl(t)}function rg(t){for(sn=t.return;sn;)switch(sn.tag){case 5:case 13:vr=!1;return;case 27:case 3:vr=!0;return;default:sn=sn.return}}function Ga(t){if(t!==sn)return!1;if(!Ye)return rg(t),Ye=!0,!1;var r=t.tag,a;if((a=r!==3&&r!==27)&&((a=r===5)&&(a=t.type,a=!(a!=="form"&&a!=="button")||zd(t.type,t.memoizedProps)),a=!a),a&&bt&&nl(t),rg(t),r===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(l(317));e:{for(t=t.nextSibling,r=0;t;){if(t.nodeType===8)if(a=t.data,a==="/$"){if(r===0){bt=ar(t.nextSibling);break e}r--}else a!=="$"&&a!=="$!"&&a!=="$?"||r++;t=t.nextSibling}bt=null}}else r===27?(r=bt,Ri(t.type)?(t=Hd,Hd=null,bt=t):bt=r):bt=sn?ar(t.stateNode.nextSibling):null;return!0}function Xa(){bt=sn=null,Ye=!1}function ig(){var t=tl;return t!==null&&(gn===null?gn=t:gn.push.apply(gn,t),tl=null),t}function Za(t){tl===null?tl=[t]:tl.push(t)}var wf=I(null),rl=null,Ir=null;function mi(t,r,a){R(wf,r._currentValue),r._currentValue=a}function Vr(t){t._currentValue=wf.current,se(wf)}function Sf(t,r,a){for(;t!==null;){var u=t.alternate;if((t.childLanes&r)!==r?(t.childLanes|=r,u!==null&&(u.childLanes|=r)):u!==null&&(u.childLanes&r)!==r&&(u.childLanes|=r),t===a)break;t=t.return}}function Cf(t,r,a,u){var p=t.child;for(p!==null&&(p.return=t);p!==null;){var g=p.dependencies;if(g!==null){var S=p.child;g=g.firstContext;e:for(;g!==null;){var A=g;g=p;for(var O=0;O<r.length;O++)if(A.context===r[O]){g.lanes|=a,A=g.alternate,A!==null&&(A.lanes|=a),Sf(g.return,a,t),u||(S=null);break e}g=A.next}}else if(p.tag===18){if(S=p.return,S===null)throw Error(l(341));S.lanes|=a,g=S.alternate,g!==null&&(g.lanes|=a),Sf(S,a,t),S=null}else S=p.child;if(S!==null)S.return=p;else for(S=p;S!==null;){if(S===t){S=null;break}if(p=S.sibling,p!==null){p.return=S.return,S=p;break}S=S.return}p=S}}function Ja(t,r,a,u){t=null;for(var p=r,g=!1;p!==null;){if(!g){if((p.flags&524288)!==0)g=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var S=p.alternate;if(S===null)throw Error(l(387));if(S=S.memoizedProps,S!==null){var A=p.type;An(p.pendingProps.value,S.value)||(t!==null?t.push(A):t=[A])}}else if(p===ft.current){if(S=p.alternate,S===null)throw Error(l(387));S.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(t!==null?t.push(Ts):t=[Ts])}p=p.return}t!==null&&Cf(r,t,a,u),r.flags|=262144}function Mo(t){for(t=t.firstContext;t!==null;){if(!An(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function il(t){rl=t,Ir=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Zt(t){return lg(rl,t)}function Lo(t,r){return rl===null&&il(t),lg(t,r)}function lg(t,r){var a=r._currentValue;if(r={context:r,memoizedValue:a,next:null},Ir===null){if(t===null)throw Error(l(308));Ir=r,t.dependencies={lanes:0,firstContext:r},t.flags|=524288}else Ir=Ir.next=r;return a}var OS=typeof AbortController<"u"?AbortController:function(){var t=[],r=this.signal={aborted:!1,addEventListener:function(a,u){t.push(u)}};this.abort=function(){r.aborted=!0,t.forEach(function(a){return a()})}},DS=e.unstable_scheduleCallback,MS=e.unstable_NormalPriority,jt={$$typeof:j,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ef(){return{controller:new OS,data:new Map,refCount:0}}function Wa(t){t.refCount--,t.refCount===0&&DS(MS,function(){t.controller.abort()})}var es=null,kf=0,Pl=0,Ql=null;function LS(t,r){if(es===null){var a=es=[];kf=0,Pl=Td(),Ql={status:"pending",value:void 0,then:function(u){a.push(u)}}}return kf++,r.then(ag,ag),r}function ag(){if(--kf===0&&es!==null){Ql!==null&&(Ql.status="fulfilled");var t=es;es=null,Pl=0,Ql=null;for(var r=0;r<t.length;r++)(0,t[r])()}}function zS(t,r){var a=[],u={status:"pending",value:null,reason:null,then:function(p){a.push(p)}};return t.then(function(){u.status="fulfilled",u.value=r;for(var p=0;p<a.length;p++)(0,a[p])(r)},function(p){for(u.status="rejected",u.reason=p,p=0;p<a.length;p++)(0,a[p])(void 0)}),u}var sg=B.S;B.S=function(t,r){typeof r=="object"&&r!==null&&typeof r.then=="function"&&LS(t,r),sg!==null&&sg(t,r)};var ll=I(null);function Af(){var t=ll.current;return t!==null?t:lt.pooledCache}function zo(t,r){r===null?R(ll,ll.current):R(ll,r.pool)}function og(){var t=Af();return t===null?null:{parent:jt._currentValue,pool:t}}var ts=Error(l(460)),ug=Error(l(474)),Uo=Error(l(542)),Tf={then:function(){}};function cg(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Bo(){}function fg(t,r,a){switch(a=t[a],a===void 0?t.push(r):a!==r&&(r.then(Bo,Bo),r=a),r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,hg(t),t;default:if(typeof r.status=="string")r.then(Bo,Bo);else{if(t=lt,t!==null&&100<t.shellSuspendCounter)throw Error(l(482));t=r,t.status="pending",t.then(function(u){if(r.status==="pending"){var p=r;p.status="fulfilled",p.value=u}},function(u){if(r.status==="pending"){var p=r;p.status="rejected",p.reason=u}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,hg(t),t}throw ns=r,ts}}var ns=null;function dg(){if(ns===null)throw Error(l(459));var t=ns;return ns=null,t}function hg(t){if(t===ts||t===Uo)throw Error(l(483))}var gi=!1;function _f(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Nf(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function yi(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function bi(t,r,a){var u=t.updateQueue;if(u===null)return null;if(u=u.shared,(Ge&2)!==0){var p=u.pending;return p===null?r.next=r:(r.next=p.next,p.next=r),u.pending=r,r=Ro(t),Wm(t,null,a),r}return No(t,u,r,a),Ro(t)}function rs(t,r,a){if(r=r.updateQueue,r!==null&&(r=r.shared,(a&4194048)!==0)){var u=r.lanes;u&=t.pendingLanes,a|=u,r.lanes=a,St(t,a)}}function Rf(t,r){var a=t.updateQueue,u=t.alternate;if(u!==null&&(u=u.updateQueue,a===u)){var p=null,g=null;if(a=a.firstBaseUpdate,a!==null){do{var S={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};g===null?p=g=S:g=g.next=S,a=a.next}while(a!==null);g===null?p=g=r:g=g.next=r}else p=g=r;a={baseState:u.baseState,firstBaseUpdate:p,lastBaseUpdate:g,shared:u.shared,callbacks:u.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=r:t.next=r,a.lastBaseUpdate=r}var jf=!1;function is(){if(jf){var t=Ql;if(t!==null)throw t}}function ls(t,r,a,u){jf=!1;var p=t.updateQueue;gi=!1;var g=p.firstBaseUpdate,S=p.lastBaseUpdate,A=p.shared.pending;if(A!==null){p.shared.pending=null;var O=A,F=O.next;O.next=null,S===null?g=F:S.next=F,S=O;var Y=t.alternate;Y!==null&&(Y=Y.updateQueue,A=Y.lastBaseUpdate,A!==S&&(A===null?Y.firstBaseUpdate=F:A.next=F,Y.lastBaseUpdate=O))}if(g!==null){var Z=p.baseState;S=0,Y=F=O=null,A=g;do{var P=A.lane&-536870913,Q=P!==A.lane;if(Q?(Fe&P)===P:(u&P)===P){P!==0&&P===Pl&&(jf=!0),Y!==null&&(Y=Y.next={lane:0,tag:A.tag,payload:A.payload,callback:null,next:null});e:{var Ae=t,Ce=A;P=r;var et=a;switch(Ce.tag){case 1:if(Ae=Ce.payload,typeof Ae=="function"){Z=Ae.call(et,Z,P);break e}Z=Ae;break e;case 3:Ae.flags=Ae.flags&-65537|128;case 0:if(Ae=Ce.payload,P=typeof Ae=="function"?Ae.call(et,Z,P):Ae,P==null)break e;Z=m({},Z,P);break e;case 2:gi=!0}}P=A.callback,P!==null&&(t.flags|=64,Q&&(t.flags|=8192),Q=p.callbacks,Q===null?p.callbacks=[P]:Q.push(P))}else Q={lane:P,tag:A.tag,payload:A.payload,callback:A.callback,next:null},Y===null?(F=Y=Q,O=Z):Y=Y.next=Q,S|=P;if(A=A.next,A===null){if(A=p.shared.pending,A===null)break;Q=A,A=Q.next,Q.next=null,p.lastBaseUpdate=Q,p.shared.pending=null}}while(!0);Y===null&&(O=Z),p.baseState=O,p.firstBaseUpdate=F,p.lastBaseUpdate=Y,g===null&&(p.shared.lanes=0),Ai|=S,t.lanes=S,t.memoizedState=Z}}function pg(t,r){if(typeof t!="function")throw Error(l(191,t));t.call(r)}function mg(t,r){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)pg(a[t],r)}var Il=I(null),qo=I(0);function gg(t,r){t=Jr,R(qo,t),R(Il,r),Jr=t|r.baseLanes}function Of(){R(qo,Jr),R(Il,Il.current)}function Df(){Jr=qo.current,se(Il),se(qo)}var vi=0,Oe=null,Je=null,Tt=null,Ho=!1,Vl=!1,al=!1,Fo=0,as=0,$l=null,US=0;function kt(){throw Error(l(321))}function Mf(t,r){if(r===null)return!1;for(var a=0;a<r.length&&a<t.length;a++)if(!An(t[a],r[a]))return!1;return!0}function Lf(t,r,a,u,p,g){return vi=g,Oe=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,B.H=t===null||t.memoizedState===null?Wg:ey,al=!1,g=a(u,p),al=!1,Vl&&(g=bg(r,a,u,p)),yg(t),g}function yg(t){B.H=Yo;var r=Je!==null&&Je.next!==null;if(vi=0,Tt=Je=Oe=null,Ho=!1,as=0,$l=null,r)throw Error(l(300));t===null||Bt||(t=t.dependencies,t!==null&&Mo(t)&&(Bt=!0))}function bg(t,r,a,u){Oe=t;var p=0;do{if(Vl&&($l=null),as=0,Vl=!1,25<=p)throw Error(l(301));if(p+=1,Tt=Je=null,t.updateQueue!=null){var g=t.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}B.H=IS,g=r(a,u)}while(Vl);return g}function BS(){var t=B.H,r=t.useState()[0];return r=typeof r.then=="function"?ss(r):r,t=t.useState()[0],(Je!==null?Je.memoizedState:null)!==t&&(Oe.flags|=1024),r}function zf(){var t=Fo!==0;return Fo=0,t}function Uf(t,r,a){r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~a}function Bf(t){if(Ho){for(t=t.memoizedState;t!==null;){var r=t.queue;r!==null&&(r.pending=null),t=t.next}Ho=!1}vi=0,Tt=Je=Oe=null,Vl=!1,as=Fo=0,$l=null}function pn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Tt===null?Oe.memoizedState=Tt=t:Tt=Tt.next=t,Tt}function _t(){if(Je===null){var t=Oe.alternate;t=t!==null?t.memoizedState:null}else t=Je.next;var r=Tt===null?Oe.memoizedState:Tt.next;if(r!==null)Tt=r,Je=t;else{if(t===null)throw Oe.alternate===null?Error(l(467)):Error(l(310));Je=t,t={memoizedState:Je.memoizedState,baseState:Je.baseState,baseQueue:Je.baseQueue,queue:Je.queue,next:null},Tt===null?Oe.memoizedState=Tt=t:Tt=Tt.next=t}return Tt}function qf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ss(t){var r=as;return as+=1,$l===null&&($l=[]),t=fg($l,t,r),r=Oe,(Tt===null?r.memoizedState:Tt.next)===null&&(r=r.alternate,B.H=r===null||r.memoizedState===null?Wg:ey),t}function Po(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return ss(t);if(t.$$typeof===j)return Zt(t)}throw Error(l(438,String(t)))}function Hf(t){var r=null,a=Oe.updateQueue;if(a!==null&&(r=a.memoCache),r==null){var u=Oe.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(r={data:u.data.map(function(p){return p.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),a===null&&(a=qf(),Oe.updateQueue=a),a.memoCache=r,a=r.data[r.index],a===void 0)for(a=r.data[r.index]=Array(t),u=0;u<t;u++)a[u]=U;return r.index++,a}function $r(t,r){return typeof r=="function"?r(t):r}function Qo(t){var r=_t();return Ff(r,Je,t)}function Ff(t,r,a){var u=t.queue;if(u===null)throw Error(l(311));u.lastRenderedReducer=a;var p=t.baseQueue,g=u.pending;if(g!==null){if(p!==null){var S=p.next;p.next=g.next,g.next=S}r.baseQueue=p=g,u.pending=null}if(g=t.baseState,p===null)t.memoizedState=g;else{r=p.next;var A=S=null,O=null,F=r,Y=!1;do{var Z=F.lane&-536870913;if(Z!==F.lane?(Fe&Z)===Z:(vi&Z)===Z){var P=F.revertLane;if(P===0)O!==null&&(O=O.next={lane:0,revertLane:0,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null}),Z===Pl&&(Y=!0);else if((vi&P)===P){F=F.next,P===Pl&&(Y=!0);continue}else Z={lane:0,revertLane:F.revertLane,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},O===null?(A=O=Z,S=g):O=O.next=Z,Oe.lanes|=P,Ai|=P;Z=F.action,al&&a(g,Z),g=F.hasEagerState?F.eagerState:a(g,Z)}else P={lane:Z,revertLane:F.revertLane,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},O===null?(A=O=P,S=g):O=O.next=P,Oe.lanes|=Z,Ai|=Z;F=F.next}while(F!==null&&F!==r);if(O===null?S=g:O.next=A,!An(g,t.memoizedState)&&(Bt=!0,Y&&(a=Ql,a!==null)))throw a;t.memoizedState=g,t.baseState=S,t.baseQueue=O,u.lastRenderedState=g}return p===null&&(u.lanes=0),[t.memoizedState,u.dispatch]}function Pf(t){var r=_t(),a=r.queue;if(a===null)throw Error(l(311));a.lastRenderedReducer=t;var u=a.dispatch,p=a.pending,g=r.memoizedState;if(p!==null){a.pending=null;var S=p=p.next;do g=t(g,S.action),S=S.next;while(S!==p);An(g,r.memoizedState)||(Bt=!0),r.memoizedState=g,r.baseQueue===null&&(r.baseState=g),a.lastRenderedState=g}return[g,u]}function vg(t,r,a){var u=Oe,p=_t(),g=Ye;if(g){if(a===void 0)throw Error(l(407));a=a()}else a=r();var S=!An((Je||p).memoizedState,a);S&&(p.memoizedState=a,Bt=!0),p=p.queue;var A=Sg.bind(null,u,p,t);if(os(2048,8,A,[t]),p.getSnapshot!==r||S||Tt!==null&&Tt.memoizedState.tag&1){if(u.flags|=2048,Yl(9,Io(),wg.bind(null,u,p,a,r),null),lt===null)throw Error(l(349));g||(vi&124)!==0||xg(u,r,a)}return a}function xg(t,r,a){t.flags|=16384,t={getSnapshot:r,value:a},r=Oe.updateQueue,r===null?(r=qf(),Oe.updateQueue=r,r.stores=[t]):(a=r.stores,a===null?r.stores=[t]:a.push(t))}function wg(t,r,a,u){r.value=a,r.getSnapshot=u,Cg(r)&&Eg(t)}function Sg(t,r,a){return a(function(){Cg(r)&&Eg(t)})}function Cg(t){var r=t.getSnapshot;t=t.value;try{var a=r();return!An(t,a)}catch{return!0}}function Eg(t){var r=Bl(t,2);r!==null&&On(r,t,2)}function Qf(t){var r=pn();if(typeof t=="function"){var a=t;if(t=a(),al){me(!0);try{a()}finally{me(!1)}}}return r.memoizedState=r.baseState=t,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$r,lastRenderedState:t},r}function kg(t,r,a,u){return t.baseState=a,Ff(t,Je,typeof u=="function"?u:$r)}function qS(t,r,a,u,p){if($o(t))throw Error(l(485));if(t=r.action,t!==null){var g={payload:p,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(S){g.listeners.push(S)}};B.T!==null?a(!0):g.isTransition=!1,u(g),a=r.pending,a===null?(g.next=r.pending=g,Ag(r,g)):(g.next=a.next,r.pending=a.next=g)}}function Ag(t,r){var a=r.action,u=r.payload,p=t.state;if(r.isTransition){var g=B.T,S={};B.T=S;try{var A=a(p,u),O=B.S;O!==null&&O(S,A),Tg(t,r,A)}catch(F){If(t,r,F)}finally{B.T=g}}else try{g=a(p,u),Tg(t,r,g)}catch(F){If(t,r,F)}}function Tg(t,r,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(u){_g(t,r,u)},function(u){return If(t,r,u)}):_g(t,r,a)}function _g(t,r,a){r.status="fulfilled",r.value=a,Ng(r),t.state=a,r=t.pending,r!==null&&(a=r.next,a===r?t.pending=null:(a=a.next,r.next=a,Ag(t,a)))}function If(t,r,a){var u=t.pending;if(t.pending=null,u!==null){u=u.next;do r.status="rejected",r.reason=a,Ng(r),r=r.next;while(r!==u)}t.action=null}function Ng(t){t=t.listeners;for(var r=0;r<t.length;r++)(0,t[r])()}function Rg(t,r){return r}function jg(t,r){if(Ye){var a=lt.formState;if(a!==null){e:{var u=Oe;if(Ye){if(bt){t:{for(var p=bt,g=vr;p.nodeType!==8;){if(!g){p=null;break t}if(p=ar(p.nextSibling),p===null){p=null;break t}}g=p.data,p=g==="F!"||g==="F"?p:null}if(p){bt=ar(p.nextSibling),u=p.data==="F!";break e}}nl(u)}u=!1}u&&(r=a[0])}}return a=pn(),a.memoizedState=a.baseState=r,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rg,lastRenderedState:r},a.queue=u,a=Xg.bind(null,Oe,u),u.dispatch=a,u=Qf(!1),g=Gf.bind(null,Oe,!1,u.queue),u=pn(),p={state:r,dispatch:null,action:t,pending:null},u.queue=p,a=qS.bind(null,Oe,p,g,a),p.dispatch=a,u.memoizedState=t,[r,a,!1]}function Og(t){var r=_t();return Dg(r,Je,t)}function Dg(t,r,a){if(r=Ff(t,r,Rg)[0],t=Qo($r)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var u=ss(r)}catch(S){throw S===ts?Uo:S}else u=r;r=_t();var p=r.queue,g=p.dispatch;return a!==r.memoizedState&&(Oe.flags|=2048,Yl(9,Io(),HS.bind(null,p,a),null)),[u,g,t]}function HS(t,r){t.action=r}function Mg(t){var r=_t(),a=Je;if(a!==null)return Dg(r,a,t);_t(),r=r.memoizedState,a=_t();var u=a.queue.dispatch;return a.memoizedState=t,[r,u,!1]}function Yl(t,r,a,u){return t={tag:t,create:a,deps:u,inst:r,next:null},r=Oe.updateQueue,r===null&&(r=qf(),Oe.updateQueue=r),a=r.lastEffect,a===null?r.lastEffect=t.next=t:(u=a.next,a.next=t,t.next=u,r.lastEffect=t),t}function Io(){return{destroy:void 0,resource:void 0}}function Lg(){return _t().memoizedState}function Vo(t,r,a,u){var p=pn();u=u===void 0?null:u,Oe.flags|=t,p.memoizedState=Yl(1|r,Io(),a,u)}function os(t,r,a,u){var p=_t();u=u===void 0?null:u;var g=p.memoizedState.inst;Je!==null&&u!==null&&Mf(u,Je.memoizedState.deps)?p.memoizedState=Yl(r,g,a,u):(Oe.flags|=t,p.memoizedState=Yl(1|r,g,a,u))}function zg(t,r){Vo(8390656,8,t,r)}function Ug(t,r){os(2048,8,t,r)}function Bg(t,r){return os(4,2,t,r)}function qg(t,r){return os(4,4,t,r)}function Hg(t,r){if(typeof r=="function"){t=t();var a=r(t);return function(){typeof a=="function"?a():r(null)}}if(r!=null)return t=t(),r.current=t,function(){r.current=null}}function Fg(t,r,a){a=a!=null?a.concat([t]):null,os(4,4,Hg.bind(null,r,t),a)}function Vf(){}function Pg(t,r){var a=_t();r=r===void 0?null:r;var u=a.memoizedState;return r!==null&&Mf(r,u[1])?u[0]:(a.memoizedState=[t,r],t)}function Qg(t,r){var a=_t();r=r===void 0?null:r;var u=a.memoizedState;if(r!==null&&Mf(r,u[1]))return u[0];if(u=t(),al){me(!0);try{t()}finally{me(!1)}}return a.memoizedState=[u,r],u}function $f(t,r,a){return a===void 0||(vi&1073741824)!==0?t.memoizedState=r:(t.memoizedState=a,t=$y(),Oe.lanes|=t,Ai|=t,a)}function Ig(t,r,a,u){return An(a,r)?a:Il.current!==null?(t=$f(t,a,u),An(t,r)||(Bt=!0),t):(vi&42)===0?(Bt=!0,t.memoizedState=a):(t=$y(),Oe.lanes|=t,Ai|=t,r)}function Vg(t,r,a,u,p){var g=G.p;G.p=g!==0&&8>g?g:8;var S=B.T,A={};B.T=A,Gf(t,!1,r,a);try{var O=p(),F=B.S;if(F!==null&&F(A,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var Y=zS(O,u);us(t,r,Y,jn(t))}else us(t,r,u,jn(t))}catch(Z){us(t,r,{then:function(){},status:"rejected",reason:Z},jn())}finally{G.p=g,B.T=S}}function FS(){}function Yf(t,r,a,u){if(t.tag!==5)throw Error(l(476));var p=$g(t).queue;Vg(t,p,r,ne,a===null?FS:function(){return Yg(t),a(u)})}function $g(t){var r=t.memoizedState;if(r!==null)return r;r={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$r,lastRenderedState:ne},next:null};var a={};return r.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$r,lastRenderedState:a},next:null},t.memoizedState=r,t=t.alternate,t!==null&&(t.memoizedState=r),r}function Yg(t){var r=$g(t).next.queue;us(t,r,{},jn())}function Kf(){return Zt(Ts)}function Kg(){return _t().memoizedState}function Gg(){return _t().memoizedState}function PS(t){for(var r=t.return;r!==null;){switch(r.tag){case 24:case 3:var a=jn();t=yi(a);var u=bi(r,t,a);u!==null&&(On(u,r,a),rs(u,r,a)),r={cache:Ef()},t.payload=r;return}r=r.return}}function QS(t,r,a){var u=jn();a={lane:u,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},$o(t)?Zg(r,a):(a=pf(t,r,a,u),a!==null&&(On(a,t,u),Jg(a,r,u)))}function Xg(t,r,a){var u=jn();us(t,r,a,u)}function us(t,r,a,u){var p={lane:u,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if($o(t))Zg(r,p);else{var g=t.alternate;if(t.lanes===0&&(g===null||g.lanes===0)&&(g=r.lastRenderedReducer,g!==null))try{var S=r.lastRenderedState,A=g(S,a);if(p.hasEagerState=!0,p.eagerState=A,An(A,S))return No(t,r,p,0),lt===null&&_o(),!1}catch{}finally{}if(a=pf(t,r,p,u),a!==null)return On(a,t,u),Jg(a,r,u),!0}return!1}function Gf(t,r,a,u){if(u={lane:2,revertLane:Td(),action:u,hasEagerState:!1,eagerState:null,next:null},$o(t)){if(r)throw Error(l(479))}else r=pf(t,a,u,2),r!==null&&On(r,t,2)}function $o(t){var r=t.alternate;return t===Oe||r!==null&&r===Oe}function Zg(t,r){Vl=Ho=!0;var a=t.pending;a===null?r.next=r:(r.next=a.next,a.next=r),t.pending=r}function Jg(t,r,a){if((a&4194048)!==0){var u=r.lanes;u&=t.pendingLanes,a|=u,r.lanes=a,St(t,a)}}var Yo={readContext:Zt,use:Po,useCallback:kt,useContext:kt,useEffect:kt,useImperativeHandle:kt,useLayoutEffect:kt,useInsertionEffect:kt,useMemo:kt,useReducer:kt,useRef:kt,useState:kt,useDebugValue:kt,useDeferredValue:kt,useTransition:kt,useSyncExternalStore:kt,useId:kt,useHostTransitionStatus:kt,useFormState:kt,useActionState:kt,useOptimistic:kt,useMemoCache:kt,useCacheRefresh:kt},Wg={readContext:Zt,use:Po,useCallback:function(t,r){return pn().memoizedState=[t,r===void 0?null:r],t},useContext:Zt,useEffect:zg,useImperativeHandle:function(t,r,a){a=a!=null?a.concat([t]):null,Vo(4194308,4,Hg.bind(null,r,t),a)},useLayoutEffect:function(t,r){return Vo(4194308,4,t,r)},useInsertionEffect:function(t,r){Vo(4,2,t,r)},useMemo:function(t,r){var a=pn();r=r===void 0?null:r;var u=t();if(al){me(!0);try{t()}finally{me(!1)}}return a.memoizedState=[u,r],u},useReducer:function(t,r,a){var u=pn();if(a!==void 0){var p=a(r);if(al){me(!0);try{a(r)}finally{me(!1)}}}else p=r;return u.memoizedState=u.baseState=p,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:p},u.queue=t,t=t.dispatch=QS.bind(null,Oe,t),[u.memoizedState,t]},useRef:function(t){var r=pn();return t={current:t},r.memoizedState=t},useState:function(t){t=Qf(t);var r=t.queue,a=Xg.bind(null,Oe,r);return r.dispatch=a,[t.memoizedState,a]},useDebugValue:Vf,useDeferredValue:function(t,r){var a=pn();return $f(a,t,r)},useTransition:function(){var t=Qf(!1);return t=Vg.bind(null,Oe,t.queue,!0,!1),pn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,r,a){var u=Oe,p=pn();if(Ye){if(a===void 0)throw Error(l(407));a=a()}else{if(a=r(),lt===null)throw Error(l(349));(Fe&124)!==0||xg(u,r,a)}p.memoizedState=a;var g={value:a,getSnapshot:r};return p.queue=g,zg(Sg.bind(null,u,g,t),[t]),u.flags|=2048,Yl(9,Io(),wg.bind(null,u,g,a,r),null),a},useId:function(){var t=pn(),r=lt.identifierPrefix;if(Ye){var a=Qr,u=Pr;a=(u&~(1<<32-ge(u)-1)).toString(32)+a,r="«"+r+"R"+a,a=Fo++,0<a&&(r+="H"+a.toString(32)),r+="»"}else a=US++,r="«"+r+"r"+a.toString(32)+"»";return t.memoizedState=r},useHostTransitionStatus:Kf,useFormState:jg,useActionState:jg,useOptimistic:function(t){var r=pn();r.memoizedState=r.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=a,r=Gf.bind(null,Oe,!0,a),a.dispatch=r,[t,r]},useMemoCache:Hf,useCacheRefresh:function(){return pn().memoizedState=PS.bind(null,Oe)}},ey={readContext:Zt,use:Po,useCallback:Pg,useContext:Zt,useEffect:Ug,useImperativeHandle:Fg,useInsertionEffect:Bg,useLayoutEffect:qg,useMemo:Qg,useReducer:Qo,useRef:Lg,useState:function(){return Qo($r)},useDebugValue:Vf,useDeferredValue:function(t,r){var a=_t();return Ig(a,Je.memoizedState,t,r)},useTransition:function(){var t=Qo($r)[0],r=_t().memoizedState;return[typeof t=="boolean"?t:ss(t),r]},useSyncExternalStore:vg,useId:Kg,useHostTransitionStatus:Kf,useFormState:Og,useActionState:Og,useOptimistic:function(t,r){var a=_t();return kg(a,Je,t,r)},useMemoCache:Hf,useCacheRefresh:Gg},IS={readContext:Zt,use:Po,useCallback:Pg,useContext:Zt,useEffect:Ug,useImperativeHandle:Fg,useInsertionEffect:Bg,useLayoutEffect:qg,useMemo:Qg,useReducer:Pf,useRef:Lg,useState:function(){return Pf($r)},useDebugValue:Vf,useDeferredValue:function(t,r){var a=_t();return Je===null?$f(a,t,r):Ig(a,Je.memoizedState,t,r)},useTransition:function(){var t=Pf($r)[0],r=_t().memoizedState;return[typeof t=="boolean"?t:ss(t),r]},useSyncExternalStore:vg,useId:Kg,useHostTransitionStatus:Kf,useFormState:Mg,useActionState:Mg,useOptimistic:function(t,r){var a=_t();return Je!==null?kg(a,Je,t,r):(a.baseState=t,[t,a.queue.dispatch])},useMemoCache:Hf,useCacheRefresh:Gg},Kl=null,cs=0;function Ko(t){var r=cs;return cs+=1,Kl===null&&(Kl=[]),fg(Kl,t,r)}function fs(t,r){r=r.props.ref,t.ref=r!==void 0?r:null}function Go(t,r){throw r.$$typeof===y?Error(l(525)):(t=Object.prototype.toString.call(r),Error(l(31,t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t)))}function ty(t){var r=t._init;return r(t._payload)}function ny(t){function r(z,M){if(t){var H=z.deletions;H===null?(z.deletions=[M],z.flags|=16):H.push(M)}}function a(z,M){if(!t)return null;for(;M!==null;)r(z,M),M=M.sibling;return null}function u(z){for(var M=new Map;z!==null;)z.key!==null?M.set(z.key,z):M.set(z.index,z),z=z.sibling;return M}function p(z,M){return z=Fr(z,M),z.index=0,z.sibling=null,z}function g(z,M,H){return z.index=H,t?(H=z.alternate,H!==null?(H=H.index,H<M?(z.flags|=67108866,M):H):(z.flags|=67108866,M)):(z.flags|=1048576,M)}function S(z){return t&&z.alternate===null&&(z.flags|=67108866),z}function A(z,M,H,K){return M===null||M.tag!==6?(M=gf(H,z.mode,K),M.return=z,M):(M=p(M,H),M.return=z,M)}function O(z,M,H,K){var de=H.type;return de===w?Y(z,M,H.props.children,K,H.key):M!==null&&(M.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===ee&&ty(de)===M.type)?(M=p(M,H.props),fs(M,H),M.return=z,M):(M=jo(H.type,H.key,H.props,null,z.mode,K),fs(M,H),M.return=z,M)}function F(z,M,H,K){return M===null||M.tag!==4||M.stateNode.containerInfo!==H.containerInfo||M.stateNode.implementation!==H.implementation?(M=yf(H,z.mode,K),M.return=z,M):(M=p(M,H.children||[]),M.return=z,M)}function Y(z,M,H,K,de){return M===null||M.tag!==7?(M=Ji(H,z.mode,K,de),M.return=z,M):(M=p(M,H),M.return=z,M)}function Z(z,M,H){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=gf(""+M,z.mode,H),M.return=z,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case x:return H=jo(M.type,M.key,M.props,null,z.mode,H),fs(H,M),H.return=z,H;case v:return M=yf(M,z.mode,H),M.return=z,M;case ee:var K=M._init;return M=K(M._payload),Z(z,M,H)}if(oe(M)||te(M))return M=Ji(M,z.mode,H,null),M.return=z,M;if(typeof M.then=="function")return Z(z,Ko(M),H);if(M.$$typeof===j)return Z(z,Lo(z,M),H);Go(z,M)}return null}function P(z,M,H,K){var de=M!==null?M.key:null;if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return de!==null?null:A(z,M,""+H,K);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case x:return H.key===de?O(z,M,H,K):null;case v:return H.key===de?F(z,M,H,K):null;case ee:return de=H._init,H=de(H._payload),P(z,M,H,K)}if(oe(H)||te(H))return de!==null?null:Y(z,M,H,K,null);if(typeof H.then=="function")return P(z,M,Ko(H),K);if(H.$$typeof===j)return P(z,M,Lo(z,H),K);Go(z,H)}return null}function Q(z,M,H,K,de){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return z=z.get(H)||null,A(M,z,""+K,de);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case x:return z=z.get(K.key===null?H:K.key)||null,O(M,z,K,de);case v:return z=z.get(K.key===null?H:K.key)||null,F(M,z,K,de);case ee:var De=K._init;return K=De(K._payload),Q(z,M,H,K,de)}if(oe(K)||te(K))return z=z.get(H)||null,Y(M,z,K,de,null);if(typeof K.then=="function")return Q(z,M,H,Ko(K),de);if(K.$$typeof===j)return Q(z,M,H,Lo(M,K),de);Go(M,K)}return null}function Ae(z,M,H,K){for(var de=null,De=null,ye=M,ke=M=0,Ht=null;ye!==null&&ke<H.length;ke++){ye.index>ke?(Ht=ye,ye=null):Ht=ye.sibling;var Qe=P(z,ye,H[ke],K);if(Qe===null){ye===null&&(ye=Ht);break}t&&ye&&Qe.alternate===null&&r(z,ye),M=g(Qe,M,ke),De===null?de=Qe:De.sibling=Qe,De=Qe,ye=Ht}if(ke===H.length)return a(z,ye),Ye&&el(z,ke),de;if(ye===null){for(;ke<H.length;ke++)ye=Z(z,H[ke],K),ye!==null&&(M=g(ye,M,ke),De===null?de=ye:De.sibling=ye,De=ye);return Ye&&el(z,ke),de}for(ye=u(ye);ke<H.length;ke++)Ht=Q(ye,z,ke,H[ke],K),Ht!==null&&(t&&Ht.alternate!==null&&ye.delete(Ht.key===null?ke:Ht.key),M=g(Ht,M,ke),De===null?de=Ht:De.sibling=Ht,De=Ht);return t&&ye.forEach(function(Li){return r(z,Li)}),Ye&&el(z,ke),de}function Ce(z,M,H,K){if(H==null)throw Error(l(151));for(var de=null,De=null,ye=M,ke=M=0,Ht=null,Qe=H.next();ye!==null&&!Qe.done;ke++,Qe=H.next()){ye.index>ke?(Ht=ye,ye=null):Ht=ye.sibling;var Li=P(z,ye,Qe.value,K);if(Li===null){ye===null&&(ye=Ht);break}t&&ye&&Li.alternate===null&&r(z,ye),M=g(Li,M,ke),De===null?de=Li:De.sibling=Li,De=Li,ye=Ht}if(Qe.done)return a(z,ye),Ye&&el(z,ke),de;if(ye===null){for(;!Qe.done;ke++,Qe=H.next())Qe=Z(z,Qe.value,K),Qe!==null&&(M=g(Qe,M,ke),De===null?de=Qe:De.sibling=Qe,De=Qe);return Ye&&el(z,ke),de}for(ye=u(ye);!Qe.done;ke++,Qe=H.next())Qe=Q(ye,z,ke,Qe.value,K),Qe!==null&&(t&&Qe.alternate!==null&&ye.delete(Qe.key===null?ke:Qe.key),M=g(Qe,M,ke),De===null?de=Qe:De.sibling=Qe,De=Qe);return t&&ye.forEach(function(V2){return r(z,V2)}),Ye&&el(z,ke),de}function et(z,M,H,K){if(typeof H=="object"&&H!==null&&H.type===w&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case x:e:{for(var de=H.key;M!==null;){if(M.key===de){if(de=H.type,de===w){if(M.tag===7){a(z,M.sibling),K=p(M,H.props.children),K.return=z,z=K;break e}}else if(M.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===ee&&ty(de)===M.type){a(z,M.sibling),K=p(M,H.props),fs(K,H),K.return=z,z=K;break e}a(z,M);break}else r(z,M);M=M.sibling}H.type===w?(K=Ji(H.props.children,z.mode,K,H.key),K.return=z,z=K):(K=jo(H.type,H.key,H.props,null,z.mode,K),fs(K,H),K.return=z,z=K)}return S(z);case v:e:{for(de=H.key;M!==null;){if(M.key===de)if(M.tag===4&&M.stateNode.containerInfo===H.containerInfo&&M.stateNode.implementation===H.implementation){a(z,M.sibling),K=p(M,H.children||[]),K.return=z,z=K;break e}else{a(z,M);break}else r(z,M);M=M.sibling}K=yf(H,z.mode,K),K.return=z,z=K}return S(z);case ee:return de=H._init,H=de(H._payload),et(z,M,H,K)}if(oe(H))return Ae(z,M,H,K);if(te(H)){if(de=te(H),typeof de!="function")throw Error(l(150));return H=de.call(H),Ce(z,M,H,K)}if(typeof H.then=="function")return et(z,M,Ko(H),K);if(H.$$typeof===j)return et(z,M,Lo(z,H),K);Go(z,H)}return typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint"?(H=""+H,M!==null&&M.tag===6?(a(z,M.sibling),K=p(M,H),K.return=z,z=K):(a(z,M),K=gf(H,z.mode,K),K.return=z,z=K),S(z)):a(z,M)}return function(z,M,H,K){try{cs=0;var de=et(z,M,H,K);return Kl=null,de}catch(ye){if(ye===ts||ye===Uo)throw ye;var De=Tn(29,ye,null,z.mode);return De.lanes=K,De.return=z,De}finally{}}}var Gl=ny(!0),ry=ny(!1),Yn=I(null),xr=null;function xi(t){var r=t.alternate;R(Ot,Ot.current&1),R(Yn,t),xr===null&&(r===null||Il.current!==null||r.memoizedState!==null)&&(xr=t)}function iy(t){if(t.tag===22){if(R(Ot,Ot.current),R(Yn,t),xr===null){var r=t.alternate;r!==null&&r.memoizedState!==null&&(xr=t)}}else wi()}function wi(){R(Ot,Ot.current),R(Yn,Yn.current)}function Yr(t){se(Yn),xr===t&&(xr=null),se(Ot)}var Ot=I(0);function Xo(t){for(var r=t;r!==null;){if(r.tag===13){var a=r.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||qd(a)))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}function Xf(t,r,a,u){r=t.memoizedState,a=a(u,r),a=a==null?r:m({},r,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var Zf={enqueueSetState:function(t,r,a){t=t._reactInternals;var u=jn(),p=yi(u);p.payload=r,a!=null&&(p.callback=a),r=bi(t,p,u),r!==null&&(On(r,t,u),rs(r,t,u))},enqueueReplaceState:function(t,r,a){t=t._reactInternals;var u=jn(),p=yi(u);p.tag=1,p.payload=r,a!=null&&(p.callback=a),r=bi(t,p,u),r!==null&&(On(r,t,u),rs(r,t,u))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var a=jn(),u=yi(a);u.tag=2,r!=null&&(u.callback=r),r=bi(t,u,a),r!==null&&(On(r,t,a),rs(r,t,a))}};function ly(t,r,a,u,p,g,S){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(u,g,S):r.prototype&&r.prototype.isPureReactComponent?!Ya(a,u)||!Ya(p,g):!0}function ay(t,r,a,u){t=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(a,u),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(a,u),r.state!==t&&Zf.enqueueReplaceState(r,r.state,null)}function sl(t,r){var a=r;if("ref"in r){a={};for(var u in r)u!=="ref"&&(a[u]=r[u])}if(t=t.defaultProps){a===r&&(a=m({},a));for(var p in t)a[p]===void 0&&(a[p]=t[p])}return a}var Zo=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=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(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function sy(t){Zo(t)}function oy(t){console.error(t)}function uy(t){Zo(t)}function Jo(t,r){try{var a=t.onUncaughtError;a(r.value,{componentStack:r.stack})}catch(u){setTimeout(function(){throw u})}}function cy(t,r,a){try{var u=t.onCaughtError;u(a.value,{componentStack:a.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function Jf(t,r,a){return a=yi(a),a.tag=3,a.payload={element:null},a.callback=function(){Jo(t,r)},a}function fy(t){return t=yi(t),t.tag=3,t}function dy(t,r,a,u){var p=a.type.getDerivedStateFromError;if(typeof p=="function"){var g=u.value;t.payload=function(){return p(g)},t.callback=function(){cy(r,a,u)}}var S=a.stateNode;S!==null&&typeof S.componentDidCatch=="function"&&(t.callback=function(){cy(r,a,u),typeof p!="function"&&(Ti===null?Ti=new Set([this]):Ti.add(this));var A=u.stack;this.componentDidCatch(u.value,{componentStack:A!==null?A:""})})}function VS(t,r,a,u,p){if(a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(r=a.alternate,r!==null&&Ja(r,a,p,!0),a=Yn.current,a!==null){switch(a.tag){case 13:return xr===null?Sd():a.alternate===null&&vt===0&&(vt=3),a.flags&=-257,a.flags|=65536,a.lanes=p,u===Tf?a.flags|=16384:(r=a.updateQueue,r===null?a.updateQueue=new Set([u]):r.add(u),Ed(t,u,p)),!1;case 22:return a.flags|=65536,u===Tf?a.flags|=16384:(r=a.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([u])},a.updateQueue=r):(a=r.retryQueue,a===null?r.retryQueue=new Set([u]):a.add(u)),Ed(t,u,p)),!1}throw Error(l(435,a.tag))}return Ed(t,u,p),Sd(),!1}if(Ye)return r=Yn.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=p,u!==xf&&(t=Error(l(422),{cause:u}),Za(Qn(t,a)))):(u!==xf&&(r=Error(l(423),{cause:u}),Za(Qn(r,a))),t=t.current.alternate,t.flags|=65536,p&=-p,t.lanes|=p,u=Qn(u,a),p=Jf(t.stateNode,u,p),Rf(t,p),vt!==4&&(vt=2)),!1;var g=Error(l(520),{cause:u});if(g=Qn(g,a),bs===null?bs=[g]:bs.push(g),vt!==4&&(vt=2),r===null)return!0;u=Qn(u,a),a=r;do{switch(a.tag){case 3:return a.flags|=65536,t=p&-p,a.lanes|=t,t=Jf(a.stateNode,u,t),Rf(a,t),!1;case 1:if(r=a.type,g=a.stateNode,(a.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Ti===null||!Ti.has(g))))return a.flags|=65536,p&=-p,a.lanes|=p,p=fy(p),dy(p,t,a,u),Rf(a,p),!1}a=a.return}while(a!==null);return!1}var hy=Error(l(461)),Bt=!1;function Qt(t,r,a,u){r.child=t===null?ry(r,null,a,u):Gl(r,t.child,a,u)}function py(t,r,a,u,p){a=a.render;var g=r.ref;if("ref"in u){var S={};for(var A in u)A!=="ref"&&(S[A]=u[A])}else S=u;return il(r),u=Lf(t,r,a,S,g,p),A=zf(),t!==null&&!Bt?(Uf(t,r,p),Kr(t,r,p)):(Ye&&A&&bf(r),r.flags|=1,Qt(t,r,u,p),r.child)}function my(t,r,a,u,p){if(t===null){var g=a.type;return typeof g=="function"&&!mf(g)&&g.defaultProps===void 0&&a.compare===null?(r.tag=15,r.type=g,gy(t,r,g,u,p)):(t=jo(a.type,null,u,r,r.mode,p),t.ref=r.ref,t.return=r,r.child=t)}if(g=t.child,!ad(t,p)){var S=g.memoizedProps;if(a=a.compare,a=a!==null?a:Ya,a(S,u)&&t.ref===r.ref)return Kr(t,r,p)}return r.flags|=1,t=Fr(g,u),t.ref=r.ref,t.return=r,r.child=t}function gy(t,r,a,u,p){if(t!==null){var g=t.memoizedProps;if(Ya(g,u)&&t.ref===r.ref)if(Bt=!1,r.pendingProps=u=g,ad(t,p))(t.flags&131072)!==0&&(Bt=!0);else return r.lanes=t.lanes,Kr(t,r,p)}return Wf(t,r,a,u,p)}function yy(t,r,a){var u=r.pendingProps,p=u.children,g=t!==null?t.memoizedState:null;if(u.mode==="hidden"){if((r.flags&128)!==0){if(u=g!==null?g.baseLanes|a:a,t!==null){for(p=r.child=t.child,g=0;p!==null;)g=g|p.lanes|p.childLanes,p=p.sibling;r.childLanes=g&~u}else r.childLanes=0,r.child=null;return by(t,r,u,a)}if((a&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},t!==null&&zo(r,g!==null?g.cachePool:null),g!==null?gg(r,g):Of(),iy(r);else return r.lanes=r.childLanes=536870912,by(t,r,g!==null?g.baseLanes|a:a,a)}else g!==null?(zo(r,g.cachePool),gg(r,g),wi(),r.memoizedState=null):(t!==null&&zo(r,null),Of(),wi());return Qt(t,r,p,a),r.child}function by(t,r,a,u){var p=Af();return p=p===null?null:{parent:jt._currentValue,pool:p},r.memoizedState={baseLanes:a,cachePool:p},t!==null&&zo(r,null),Of(),iy(r),t!==null&&Ja(t,r,u,!0),null}function Wo(t,r){var a=r.ref;if(a===null)t!==null&&t.ref!==null&&(r.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(l(284));(t===null||t.ref!==a)&&(r.flags|=4194816)}}function Wf(t,r,a,u,p){return il(r),a=Lf(t,r,a,u,void 0,p),u=zf(),t!==null&&!Bt?(Uf(t,r,p),Kr(t,r,p)):(Ye&&u&&bf(r),r.flags|=1,Qt(t,r,a,p),r.child)}function vy(t,r,a,u,p,g){return il(r),r.updateQueue=null,a=bg(r,u,a,p),yg(t),u=zf(),t!==null&&!Bt?(Uf(t,r,g),Kr(t,r,g)):(Ye&&u&&bf(r),r.flags|=1,Qt(t,r,a,g),r.child)}function xy(t,r,a,u,p){if(il(r),r.stateNode===null){var g=ql,S=a.contextType;typeof S=="object"&&S!==null&&(g=Zt(S)),g=new a(u,g),r.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=Zf,r.stateNode=g,g._reactInternals=r,g=r.stateNode,g.props=u,g.state=r.memoizedState,g.refs={},_f(r),S=a.contextType,g.context=typeof S=="object"&&S!==null?Zt(S):ql,g.state=r.memoizedState,S=a.getDerivedStateFromProps,typeof S=="function"&&(Xf(r,a,S,u),g.state=r.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(S=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),S!==g.state&&Zf.enqueueReplaceState(g,g.state,null),ls(r,u,g,p),is(),g.state=r.memoizedState),typeof g.componentDidMount=="function"&&(r.flags|=4194308),u=!0}else if(t===null){g=r.stateNode;var A=r.memoizedProps,O=sl(a,A);g.props=O;var F=g.context,Y=a.contextType;S=ql,typeof Y=="object"&&Y!==null&&(S=Zt(Y));var Z=a.getDerivedStateFromProps;Y=typeof Z=="function"||typeof g.getSnapshotBeforeUpdate=="function",A=r.pendingProps!==A,Y||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(A||F!==S)&&ay(r,g,u,S),gi=!1;var P=r.memoizedState;g.state=P,ls(r,u,g,p),is(),F=r.memoizedState,A||P!==F||gi?(typeof Z=="function"&&(Xf(r,a,Z,u),F=r.memoizedState),(O=gi||ly(r,a,O,u,P,F,S))?(Y||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(r.flags|=4194308)):(typeof g.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=u,r.memoizedState=F),g.props=u,g.state=F,g.context=S,u=O):(typeof g.componentDidMount=="function"&&(r.flags|=4194308),u=!1)}else{g=r.stateNode,Nf(t,r),S=r.memoizedProps,Y=sl(a,S),g.props=Y,Z=r.pendingProps,P=g.context,F=a.contextType,O=ql,typeof F=="object"&&F!==null&&(O=Zt(F)),A=a.getDerivedStateFromProps,(F=typeof A=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(S!==Z||P!==O)&&ay(r,g,u,O),gi=!1,P=r.memoizedState,g.state=P,ls(r,u,g,p),is();var Q=r.memoizedState;S!==Z||P!==Q||gi||t!==null&&t.dependencies!==null&&Mo(t.dependencies)?(typeof A=="function"&&(Xf(r,a,A,u),Q=r.memoizedState),(Y=gi||ly(r,a,Y,u,P,Q,O)||t!==null&&t.dependencies!==null&&Mo(t.dependencies))?(F||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(u,Q,O),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(u,Q,O)),typeof g.componentDidUpdate=="function"&&(r.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof g.componentDidUpdate!="function"||S===t.memoizedProps&&P===t.memoizedState||(r.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||S===t.memoizedProps&&P===t.memoizedState||(r.flags|=1024),r.memoizedProps=u,r.memoizedState=Q),g.props=u,g.state=Q,g.context=O,u=Y):(typeof g.componentDidUpdate!="function"||S===t.memoizedProps&&P===t.memoizedState||(r.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||S===t.memoizedProps&&P===t.memoizedState||(r.flags|=1024),u=!1)}return g=u,Wo(t,r),u=(r.flags&128)!==0,g||u?(g=r.stateNode,a=u&&typeof a.getDerivedStateFromError!="function"?null:g.render(),r.flags|=1,t!==null&&u?(r.child=Gl(r,t.child,null,p),r.child=Gl(r,null,a,p)):Qt(t,r,a,p),r.memoizedState=g.state,t=r.child):t=Kr(t,r,p),t}function wy(t,r,a,u){return Xa(),r.flags|=256,Qt(t,r,a,u),r.child}var ed={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function td(t){return{baseLanes:t,cachePool:og()}}function nd(t,r,a){return t=t!==null?t.childLanes&~a:0,r&&(t|=Kn),t}function Sy(t,r,a){var u=r.pendingProps,p=!1,g=(r.flags&128)!==0,S;if((S=g)||(S=t!==null&&t.memoizedState===null?!1:(Ot.current&2)!==0),S&&(p=!0,r.flags&=-129),S=(r.flags&32)!==0,r.flags&=-33,t===null){if(Ye){if(p?xi(r):wi(),Ye){var A=bt,O;if(O=A){e:{for(O=A,A=vr;O.nodeType!==8;){if(!A){A=null;break e}if(O=ar(O.nextSibling),O===null){A=null;break e}}A=O}A!==null?(r.memoizedState={dehydrated:A,treeContext:Wi!==null?{id:Pr,overflow:Qr}:null,retryLane:536870912,hydrationErrors:null},O=Tn(18,null,null,0),O.stateNode=A,O.return=r,r.child=O,sn=r,bt=null,O=!0):O=!1}O||nl(r)}if(A=r.memoizedState,A!==null&&(A=A.dehydrated,A!==null))return qd(A)?r.lanes=32:r.lanes=536870912,null;Yr(r)}return A=u.children,u=u.fallback,p?(wi(),p=r.mode,A=eu({mode:"hidden",children:A},p),u=Ji(u,p,a,null),A.return=r,u.return=r,A.sibling=u,r.child=A,p=r.child,p.memoizedState=td(a),p.childLanes=nd(t,S,a),r.memoizedState=ed,u):(xi(r),rd(r,A))}if(O=t.memoizedState,O!==null&&(A=O.dehydrated,A!==null)){if(g)r.flags&256?(xi(r),r.flags&=-257,r=id(t,r,a)):r.memoizedState!==null?(wi(),r.child=t.child,r.flags|=128,r=null):(wi(),p=u.fallback,A=r.mode,u=eu({mode:"visible",children:u.children},A),p=Ji(p,A,a,null),p.flags|=2,u.return=r,p.return=r,u.sibling=p,r.child=u,Gl(r,t.child,null,a),u=r.child,u.memoizedState=td(a),u.childLanes=nd(t,S,a),r.memoizedState=ed,r=p);else if(xi(r),qd(A)){if(S=A.nextSibling&&A.nextSibling.dataset,S)var F=S.dgst;S=F,u=Error(l(419)),u.stack="",u.digest=S,Za({value:u,source:null,stack:null}),r=id(t,r,a)}else if(Bt||Ja(t,r,a,!1),S=(a&t.childLanes)!==0,Bt||S){if(S=lt,S!==null&&(u=a&-a,u=(u&42)!==0?1:Kt(u),u=(u&(S.suspendedLanes|a))!==0?0:u,u!==0&&u!==O.retryLane))throw O.retryLane=u,Bl(t,u),On(S,t,u),hy;A.data==="$?"||Sd(),r=id(t,r,a)}else A.data==="$?"?(r.flags|=192,r.child=t.child,r=null):(t=O.treeContext,bt=ar(A.nextSibling),sn=r,Ye=!0,tl=null,vr=!1,t!==null&&(Vn[$n++]=Pr,Vn[$n++]=Qr,Vn[$n++]=Wi,Pr=t.id,Qr=t.overflow,Wi=r),r=rd(r,u.children),r.flags|=4096);return r}return p?(wi(),p=u.fallback,A=r.mode,O=t.child,F=O.sibling,u=Fr(O,{mode:"hidden",children:u.children}),u.subtreeFlags=O.subtreeFlags&65011712,F!==null?p=Fr(F,p):(p=Ji(p,A,a,null),p.flags|=2),p.return=r,u.return=r,u.sibling=p,r.child=u,u=p,p=r.child,A=t.child.memoizedState,A===null?A=td(a):(O=A.cachePool,O!==null?(F=jt._currentValue,O=O.parent!==F?{parent:F,pool:F}:O):O=og(),A={baseLanes:A.baseLanes|a,cachePool:O}),p.memoizedState=A,p.childLanes=nd(t,S,a),r.memoizedState=ed,u):(xi(r),a=t.child,t=a.sibling,a=Fr(a,{mode:"visible",children:u.children}),a.return=r,a.sibling=null,t!==null&&(S=r.deletions,S===null?(r.deletions=[t],r.flags|=16):S.push(t)),r.child=a,r.memoizedState=null,a)}function rd(t,r){return r=eu({mode:"visible",children:r},t.mode),r.return=t,t.child=r}function eu(t,r){return t=Tn(22,t,null,r),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function id(t,r,a){return Gl(r,t.child,null,a),t=rd(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function Cy(t,r,a){t.lanes|=r;var u=t.alternate;u!==null&&(u.lanes|=r),Sf(t.return,r,a)}function ld(t,r,a,u,p){var g=t.memoizedState;g===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:u,tail:a,tailMode:p}:(g.isBackwards=r,g.rendering=null,g.renderingStartTime=0,g.last=u,g.tail=a,g.tailMode=p)}function Ey(t,r,a){var u=r.pendingProps,p=u.revealOrder,g=u.tail;if(Qt(t,r,u.children,a),u=Ot.current,(u&2)!==0)u=u&1|2,r.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Cy(t,a,r);else if(t.tag===19)Cy(t,a,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break e;for(;t.sibling===null;){if(t.return===null||t.return===r)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}u&=1}switch(R(Ot,u),p){case"forwards":for(a=r.child,p=null;a!==null;)t=a.alternate,t!==null&&Xo(t)===null&&(p=a),a=a.sibling;a=p,a===null?(p=r.child,r.child=null):(p=a.sibling,a.sibling=null),ld(r,!1,p,a,g);break;case"backwards":for(a=null,p=r.child,r.child=null;p!==null;){if(t=p.alternate,t!==null&&Xo(t)===null){r.child=p;break}t=p.sibling,p.sibling=a,a=p,p=t}ld(r,!0,a,null,g);break;case"together":ld(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function Kr(t,r,a){if(t!==null&&(r.dependencies=t.dependencies),Ai|=r.lanes,(a&r.childLanes)===0)if(t!==null){if(Ja(t,r,a,!1),(a&r.childLanes)===0)return null}else return null;if(t!==null&&r.child!==t.child)throw Error(l(153));if(r.child!==null){for(t=r.child,a=Fr(t,t.pendingProps),r.child=a,a.return=r;t.sibling!==null;)t=t.sibling,a=a.sibling=Fr(t,t.pendingProps),a.return=r;a.sibling=null}return r.child}function ad(t,r){return(t.lanes&r)!==0?!0:(t=t.dependencies,!!(t!==null&&Mo(t)))}function $S(t,r,a){switch(r.tag){case 3:je(r,r.stateNode.containerInfo),mi(r,jt,t.memoizedState.cache),Xa();break;case 27:case 5:Ft(r);break;case 4:je(r,r.stateNode.containerInfo);break;case 10:mi(r,r.type,r.memoizedProps.value);break;case 13:var u=r.memoizedState;if(u!==null)return u.dehydrated!==null?(xi(r),r.flags|=128,null):(a&r.child.childLanes)!==0?Sy(t,r,a):(xi(r),t=Kr(t,r,a),t!==null?t.sibling:null);xi(r);break;case 19:var p=(t.flags&128)!==0;if(u=(a&r.childLanes)!==0,u||(Ja(t,r,a,!1),u=(a&r.childLanes)!==0),p){if(u)return Ey(t,r,a);r.flags|=128}if(p=r.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),R(Ot,Ot.current),u)break;return null;case 22:case 23:return r.lanes=0,yy(t,r,a);case 24:mi(r,jt,t.memoizedState.cache)}return Kr(t,r,a)}function ky(t,r,a){if(t!==null)if(t.memoizedProps!==r.pendingProps)Bt=!0;else{if(!ad(t,a)&&(r.flags&128)===0)return Bt=!1,$S(t,r,a);Bt=(t.flags&131072)!==0}else Bt=!1,Ye&&(r.flags&1048576)!==0&&tg(r,Do,r.index);switch(r.lanes=0,r.tag){case 16:e:{t=r.pendingProps;var u=r.elementType,p=u._init;if(u=p(u._payload),r.type=u,typeof u=="function")mf(u)?(t=sl(u,t),r.tag=1,r=xy(null,r,u,t,a)):(r.tag=0,r=Wf(null,r,u,t,a));else{if(u!=null){if(p=u.$$typeof,p===q){r.tag=11,r=py(null,r,u,t,a);break e}else if(p===X){r.tag=14,r=my(null,r,u,t,a);break e}}throw r=J(u)||u,Error(l(306,r,""))}}return r;case 0:return Wf(t,r,r.type,r.pendingProps,a);case 1:return u=r.type,p=sl(u,r.pendingProps),xy(t,r,u,p,a);case 3:e:{if(je(r,r.stateNode.containerInfo),t===null)throw Error(l(387));u=r.pendingProps;var g=r.memoizedState;p=g.element,Nf(t,r),ls(r,u,null,a);var S=r.memoizedState;if(u=S.cache,mi(r,jt,u),u!==g.cache&&Cf(r,[jt],a,!0),is(),u=S.element,g.isDehydrated)if(g={element:u,isDehydrated:!1,cache:S.cache},r.updateQueue.baseState=g,r.memoizedState=g,r.flags&256){r=wy(t,r,u,a);break e}else if(u!==p){p=Qn(Error(l(424)),r),Za(p),r=wy(t,r,u,a);break e}else{switch(t=r.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(bt=ar(t.firstChild),sn=r,Ye=!0,tl=null,vr=!0,a=ry(r,null,u,a),r.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Xa(),u===p){r=Kr(t,r,a);break e}Qt(t,r,u,a)}r=r.child}return r;case 26:return Wo(t,r),t===null?(a=N0(r.type,null,r.pendingProps,null))?r.memoizedState=a:Ye||(a=r.type,t=r.pendingProps,u=pu(ce.current).createElement(a),u[le]=r,u[he]=t,Vt(u,a,t),Et(u),r.stateNode=u):r.memoizedState=N0(r.type,t.memoizedProps,r.pendingProps,t.memoizedState),null;case 27:return Ft(r),t===null&&Ye&&(u=r.stateNode=A0(r.type,r.pendingProps,ce.current),sn=r,vr=!0,p=bt,Ri(r.type)?(Hd=p,bt=ar(u.firstChild)):bt=p),Qt(t,r,r.pendingProps.children,a),Wo(t,r),t===null&&(r.flags|=4194304),r.child;case 5:return t===null&&Ye&&((p=u=bt)&&(u=x2(u,r.type,r.pendingProps,vr),u!==null?(r.stateNode=u,sn=r,bt=ar(u.firstChild),vr=!1,p=!0):p=!1),p||nl(r)),Ft(r),p=r.type,g=r.pendingProps,S=t!==null?t.memoizedProps:null,u=g.children,zd(p,g)?u=null:S!==null&&zd(p,S)&&(r.flags|=32),r.memoizedState!==null&&(p=Lf(t,r,BS,null,null,a),Ts._currentValue=p),Wo(t,r),Qt(t,r,u,a),r.child;case 6:return t===null&&Ye&&((t=a=bt)&&(a=w2(a,r.pendingProps,vr),a!==null?(r.stateNode=a,sn=r,bt=null,t=!0):t=!1),t||nl(r)),null;case 13:return Sy(t,r,a);case 4:return je(r,r.stateNode.containerInfo),u=r.pendingProps,t===null?r.child=Gl(r,null,u,a):Qt(t,r,u,a),r.child;case 11:return py(t,r,r.type,r.pendingProps,a);case 7:return Qt(t,r,r.pendingProps,a),r.child;case 8:return Qt(t,r,r.pendingProps.children,a),r.child;case 12:return Qt(t,r,r.pendingProps.children,a),r.child;case 10:return u=r.pendingProps,mi(r,r.type,u.value),Qt(t,r,u.children,a),r.child;case 9:return p=r.type._context,u=r.pendingProps.children,il(r),p=Zt(p),u=u(p),r.flags|=1,Qt(t,r,u,a),r.child;case 14:return my(t,r,r.type,r.pendingProps,a);case 15:return gy(t,r,r.type,r.pendingProps,a);case 19:return Ey(t,r,a);case 31:return u=r.pendingProps,a=r.mode,u={mode:u.mode,children:u.children},t===null?(a=eu(u,a),a.ref=r.ref,r.child=a,a.return=r,r=a):(a=Fr(t.child,u),a.ref=r.ref,r.child=a,a.return=r,r=a),r;case 22:return yy(t,r,a);case 24:return il(r),u=Zt(jt),t===null?(p=Af(),p===null&&(p=lt,g=Ef(),p.pooledCache=g,g.refCount++,g!==null&&(p.pooledCacheLanes|=a),p=g),r.memoizedState={parent:u,cache:p},_f(r),mi(r,jt,p)):((t.lanes&a)!==0&&(Nf(t,r),ls(r,null,null,a),is()),p=t.memoizedState,g=r.memoizedState,p.parent!==u?(p={parent:u,cache:u},r.memoizedState=p,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=p),mi(r,jt,u)):(u=g.cache,mi(r,jt,u),u!==p.cache&&Cf(r,[jt],a,!0))),Qt(t,r,r.pendingProps.children,a),r.child;case 29:throw r.pendingProps}throw Error(l(156,r.tag))}function Gr(t){t.flags|=4}function Ay(t,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!M0(r)){if(r=Yn.current,r!==null&&((Fe&4194048)===Fe?xr!==null:(Fe&62914560)!==Fe&&(Fe&536870912)===0||r!==xr))throw ns=Tf,ug;t.flags|=8192}}function tu(t,r){r!==null&&(t.flags|=4),t.flags&16384&&(r=t.tag!==22?Ur():536870912,t.lanes|=r,Wl|=r)}function ds(t,r){if(!Ye)switch(t.tailMode){case"hidden":r=t.tail;for(var a=null;r!==null;)r.alternate!==null&&(a=r),r=r.sibling;a===null?t.tail=null:a.sibling=null;break;case"collapsed":a=t.tail;for(var u=null;a!==null;)a.alternate!==null&&(u=a),a=a.sibling;u===null?r||t.tail===null?t.tail=null:t.tail.sibling=null:u.sibling=null}}function pt(t){var r=t.alternate!==null&&t.alternate.child===t.child,a=0,u=0;if(r)for(var p=t.child;p!==null;)a|=p.lanes|p.childLanes,u|=p.subtreeFlags&65011712,u|=p.flags&65011712,p.return=t,p=p.sibling;else for(p=t.child;p!==null;)a|=p.lanes|p.childLanes,u|=p.subtreeFlags,u|=p.flags,p.return=t,p=p.sibling;return t.subtreeFlags|=u,t.childLanes=a,r}function YS(t,r,a){var u=r.pendingProps;switch(vf(r),r.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pt(r),null;case 1:return pt(r),null;case 3:return a=r.stateNode,u=null,t!==null&&(u=t.memoizedState.cache),r.memoizedState.cache!==u&&(r.flags|=2048),Vr(jt),Ie(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Ga(r)?Gr(r):t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,ig())),pt(r),null;case 26:return a=r.memoizedState,t===null?(Gr(r),a!==null?(pt(r),Ay(r,a)):(pt(r),r.flags&=-16777217)):a?a!==t.memoizedState?(Gr(r),pt(r),Ay(r,a)):(pt(r),r.flags&=-16777217):(t.memoizedProps!==u&&Gr(r),pt(r),r.flags&=-16777217),null;case 27:wt(r),a=ce.current;var p=r.type;if(t!==null&&r.stateNode!=null)t.memoizedProps!==u&&Gr(r);else{if(!u){if(r.stateNode===null)throw Error(l(166));return pt(r),null}t=fe.current,Ga(r)?ng(r):(t=A0(p,u,a),r.stateNode=t,Gr(r))}return pt(r),null;case 5:if(wt(r),a=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==u&&Gr(r);else{if(!u){if(r.stateNode===null)throw Error(l(166));return pt(r),null}if(t=fe.current,Ga(r))ng(r);else{switch(p=pu(ce.current),t){case 1:t=p.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:t=p.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":t=p.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":t=p.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":t=p.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof u.is=="string"?p.createElement("select",{is:u.is}):p.createElement("select"),u.multiple?t.multiple=!0:u.size&&(t.size=u.size);break;default:t=typeof u.is=="string"?p.createElement(a,{is:u.is}):p.createElement(a)}}t[le]=r,t[he]=u;e:for(p=r.child;p!==null;){if(p.tag===5||p.tag===6)t.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===r)break e;for(;p.sibling===null;){if(p.return===null||p.return===r)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}r.stateNode=t;e:switch(Vt(t,a,u),a){case"button":case"input":case"select":case"textarea":t=!!u.autoFocus;break e;case"img":t=!0;break e;default:t=!1}t&&Gr(r)}}return pt(r),r.flags&=-16777217,null;case 6:if(t&&r.stateNode!=null)t.memoizedProps!==u&&Gr(r);else{if(typeof u!="string"&&r.stateNode===null)throw Error(l(166));if(t=ce.current,Ga(r)){if(t=r.stateNode,a=r.memoizedProps,u=null,p=sn,p!==null)switch(p.tag){case 27:case 5:u=p.memoizedProps}t[le]=r,t=!!(t.nodeValue===a||u!==null&&u.suppressHydrationWarning===!0||v0(t.nodeValue,a)),t||nl(r)}else t=pu(t).createTextNode(u),t[le]=r,r.stateNode=t}return pt(r),null;case 13:if(u=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(p=Ga(r),u!==null&&u.dehydrated!==null){if(t===null){if(!p)throw Error(l(318));if(p=r.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(l(317));p[le]=r}else Xa(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;pt(r),p=!1}else p=ig(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=p),p=!0;if(!p)return r.flags&256?(Yr(r),r):(Yr(r),null)}if(Yr(r),(r.flags&128)!==0)return r.lanes=a,r;if(a=u!==null,t=t!==null&&t.memoizedState!==null,a){u=r.child,p=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(p=u.alternate.memoizedState.cachePool.pool);var g=null;u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(g=u.memoizedState.cachePool.pool),g!==p&&(u.flags|=2048)}return a!==t&&a&&(r.child.flags|=8192),tu(r,r.updateQueue),pt(r),null;case 4:return Ie(),t===null&&jd(r.stateNode.containerInfo),pt(r),null;case 10:return Vr(r.type),pt(r),null;case 19:if(se(Ot),p=r.memoizedState,p===null)return pt(r),null;if(u=(r.flags&128)!==0,g=p.rendering,g===null)if(u)ds(p,!1);else{if(vt!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(g=Xo(t),g!==null){for(r.flags|=128,ds(p,!1),t=g.updateQueue,r.updateQueue=t,tu(r,t),r.subtreeFlags=0,t=a,a=r.child;a!==null;)eg(a,t),a=a.sibling;return R(Ot,Ot.current&1|2),r.child}t=t.sibling}p.tail!==null&&Mt()>iu&&(r.flags|=128,u=!0,ds(p,!1),r.lanes=4194304)}else{if(!u)if(t=Xo(g),t!==null){if(r.flags|=128,u=!0,t=t.updateQueue,r.updateQueue=t,tu(r,t),ds(p,!0),p.tail===null&&p.tailMode==="hidden"&&!g.alternate&&!Ye)return pt(r),null}else 2*Mt()-p.renderingStartTime>iu&&a!==536870912&&(r.flags|=128,u=!0,ds(p,!1),r.lanes=4194304);p.isBackwards?(g.sibling=r.child,r.child=g):(t=p.last,t!==null?t.sibling=g:r.child=g,p.last=g)}return p.tail!==null?(r=p.tail,p.rendering=r,p.tail=r.sibling,p.renderingStartTime=Mt(),r.sibling=null,t=Ot.current,R(Ot,u?t&1|2:t&1),r):(pt(r),null);case 22:case 23:return Yr(r),Df(),u=r.memoizedState!==null,t!==null?t.memoizedState!==null!==u&&(r.flags|=8192):u&&(r.flags|=8192),u?(a&536870912)!==0&&(r.flags&128)===0&&(pt(r),r.subtreeFlags&6&&(r.flags|=8192)):pt(r),a=r.updateQueue,a!==null&&tu(r,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),u=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),u!==a&&(r.flags|=2048),t!==null&&se(ll),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),r.memoizedState.cache!==a&&(r.flags|=2048),Vr(jt),pt(r),null;case 25:return null;case 30:return null}throw Error(l(156,r.tag))}function KS(t,r){switch(vf(r),r.tag){case 1:return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return Vr(jt),Ie(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 26:case 27:case 5:return wt(r),null;case 13:if(Yr(r),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(l(340));Xa()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return se(Ot),null;case 4:return Ie(),null;case 10:return Vr(r.type),null;case 22:case 23:return Yr(r),Df(),t!==null&&se(ll),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 24:return Vr(jt),null;case 25:return null;default:return null}}function Ty(t,r){switch(vf(r),r.tag){case 3:Vr(jt),Ie();break;case 26:case 27:case 5:wt(r);break;case 4:Ie();break;case 13:Yr(r);break;case 19:se(Ot);break;case 10:Vr(r.type);break;case 22:case 23:Yr(r),Df(),t!==null&&se(ll);break;case 24:Vr(jt)}}function hs(t,r){try{var a=r.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var p=u.next;a=p;do{if((a.tag&t)===t){u=void 0;var g=a.create,S=a.inst;u=g(),S.destroy=u}a=a.next}while(a!==p)}}catch(A){tt(r,r.return,A)}}function Si(t,r,a){try{var u=r.updateQueue,p=u!==null?u.lastEffect:null;if(p!==null){var g=p.next;u=g;do{if((u.tag&t)===t){var S=u.inst,A=S.destroy;if(A!==void 0){S.destroy=void 0,p=r;var O=a,F=A;try{F()}catch(Y){tt(p,O,Y)}}}u=u.next}while(u!==g)}}catch(Y){tt(r,r.return,Y)}}function _y(t){var r=t.updateQueue;if(r!==null){var a=t.stateNode;try{mg(r,a)}catch(u){tt(t,t.return,u)}}}function Ny(t,r,a){a.props=sl(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(u){tt(t,r,u)}}function ps(t,r){try{var a=t.ref;if(a!==null){switch(t.tag){case 26:case 27:case 5:var u=t.stateNode;break;case 30:u=t.stateNode;break;default:u=t.stateNode}typeof a=="function"?t.refCleanup=a(u):a.current=u}}catch(p){tt(t,r,p)}}function wr(t,r){var a=t.ref,u=t.refCleanup;if(a!==null)if(typeof u=="function")try{u()}catch(p){tt(t,r,p)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(p){tt(t,r,p)}else a.current=null}function Ry(t){var r=t.type,a=t.memoizedProps,u=t.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":a.autoFocus&&u.focus();break e;case"img":a.src?u.src=a.src:a.srcSet&&(u.srcset=a.srcSet)}}catch(p){tt(t,t.return,p)}}function sd(t,r,a){try{var u=t.stateNode;m2(u,t.type,a,r),u[he]=r}catch(p){tt(t,t.return,p)}}function jy(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Ri(t.type)||t.tag===4}function od(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||jy(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Ri(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function ud(t,r,a){var u=t.tag;if(u===5||u===6)t=t.stateNode,r?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(t,r):(r=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,r.appendChild(t),a=a._reactRootContainer,a!=null||r.onclick!==null||(r.onclick=hu));else if(u!==4&&(u===27&&Ri(t.type)&&(a=t.stateNode,r=null),t=t.child,t!==null))for(ud(t,r,a),t=t.sibling;t!==null;)ud(t,r,a),t=t.sibling}function nu(t,r,a){var u=t.tag;if(u===5||u===6)t=t.stateNode,r?a.insertBefore(t,r):a.appendChild(t);else if(u!==4&&(u===27&&Ri(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(nu(t,r,a),t=t.sibling;t!==null;)nu(t,r,a),t=t.sibling}function Oy(t){var r=t.stateNode,a=t.memoizedProps;try{for(var u=t.type,p=r.attributes;p.length;)r.removeAttributeNode(p[0]);Vt(r,u,a),r[le]=t,r[he]=a}catch(g){tt(t,t.return,g)}}var Xr=!1,At=!1,cd=!1,Dy=typeof WeakSet=="function"?WeakSet:Set,qt=null;function GS(t,r){if(t=t.containerInfo,Md=xu,t=Im(t),of(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else e:{a=(a=t.ownerDocument)&&a.defaultView||window;var u=a.getSelection&&a.getSelection();if(u&&u.rangeCount!==0){a=u.anchorNode;var p=u.anchorOffset,g=u.focusNode;u=u.focusOffset;try{a.nodeType,g.nodeType}catch{a=null;break e}var S=0,A=-1,O=-1,F=0,Y=0,Z=t,P=null;t:for(;;){for(var Q;Z!==a||p!==0&&Z.nodeType!==3||(A=S+p),Z!==g||u!==0&&Z.nodeType!==3||(O=S+u),Z.nodeType===3&&(S+=Z.nodeValue.length),(Q=Z.firstChild)!==null;)P=Z,Z=Q;for(;;){if(Z===t)break t;if(P===a&&++F===p&&(A=S),P===g&&++Y===u&&(O=S),(Q=Z.nextSibling)!==null)break;Z=P,P=Z.parentNode}Z=Q}a=A===-1||O===-1?null:{start:A,end:O}}else a=null}a=a||{start:0,end:0}}else a=null;for(Ld={focusedElem:t,selectionRange:a},xu=!1,qt=r;qt!==null;)if(r=qt,t=r.child,(r.subtreeFlags&1024)!==0&&t!==null)t.return=r,qt=t;else for(;qt!==null;){switch(r=qt,g=r.alternate,t=r.flags,r.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&g!==null){t=void 0,a=r,p=g.memoizedProps,g=g.memoizedState,u=a.stateNode;try{var Ae=sl(a.type,p,a.elementType===a.type);t=u.getSnapshotBeforeUpdate(Ae,g),u.__reactInternalSnapshotBeforeUpdate=t}catch(Ce){tt(a,a.return,Ce)}}break;case 3:if((t&1024)!==0){if(t=r.stateNode.containerInfo,a=t.nodeType,a===9)Bd(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Bd(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(l(163))}if(t=r.sibling,t!==null){t.return=r.return,qt=t;break}qt=r.return}}function My(t,r,a){var u=a.flags;switch(a.tag){case 0:case 11:case 15:Ci(t,a),u&4&&hs(5,a);break;case 1:if(Ci(t,a),u&4)if(t=a.stateNode,r===null)try{t.componentDidMount()}catch(S){tt(a,a.return,S)}else{var p=sl(a.type,r.memoizedProps);r=r.memoizedState;try{t.componentDidUpdate(p,r,t.__reactInternalSnapshotBeforeUpdate)}catch(S){tt(a,a.return,S)}}u&64&&_y(a),u&512&&ps(a,a.return);break;case 3:if(Ci(t,a),u&64&&(t=a.updateQueue,t!==null)){if(r=null,a.child!==null)switch(a.child.tag){case 27:case 5:r=a.child.stateNode;break;case 1:r=a.child.stateNode}try{mg(t,r)}catch(S){tt(a,a.return,S)}}break;case 27:r===null&&u&4&&Oy(a);case 26:case 5:Ci(t,a),r===null&&u&4&&Ry(a),u&512&&ps(a,a.return);break;case 12:Ci(t,a);break;case 13:Ci(t,a),u&4&&Uy(t,a),u&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=i2.bind(null,a),S2(t,a))));break;case 22:if(u=a.memoizedState!==null||Xr,!u){r=r!==null&&r.memoizedState!==null||At,p=Xr;var g=At;Xr=u,(At=r)&&!g?Ei(t,a,(a.subtreeFlags&8772)!==0):Ci(t,a),Xr=p,At=g}break;case 30:break;default:Ci(t,a)}}function Ly(t){var r=t.alternate;r!==null&&(t.alternate=null,Ly(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&Xt(r)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var ot=null,mn=!1;function Zr(t,r,a){for(a=a.child;a!==null;)zy(t,r,a),a=a.sibling}function zy(t,r,a){if(W&&typeof W.onCommitFiberUnmount=="function")try{W.onCommitFiberUnmount($,a)}catch{}switch(a.tag){case 26:At||wr(a,r),Zr(t,r,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:At||wr(a,r);var u=ot,p=mn;Ri(a.type)&&(ot=a.stateNode,mn=!1),Zr(t,r,a),Cs(a.stateNode),ot=u,mn=p;break;case 5:At||wr(a,r);case 6:if(u=ot,p=mn,ot=null,Zr(t,r,a),ot=u,mn=p,ot!==null)if(mn)try{(ot.nodeType===9?ot.body:ot.nodeName==="HTML"?ot.ownerDocument.body:ot).removeChild(a.stateNode)}catch(g){tt(a,r,g)}else try{ot.removeChild(a.stateNode)}catch(g){tt(a,r,g)}break;case 18:ot!==null&&(mn?(t=ot,E0(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),js(t)):E0(ot,a.stateNode));break;case 4:u=ot,p=mn,ot=a.stateNode.containerInfo,mn=!0,Zr(t,r,a),ot=u,mn=p;break;case 0:case 11:case 14:case 15:At||Si(2,a,r),At||Si(4,a,r),Zr(t,r,a);break;case 1:At||(wr(a,r),u=a.stateNode,typeof u.componentWillUnmount=="function"&&Ny(a,r,u)),Zr(t,r,a);break;case 21:Zr(t,r,a);break;case 22:At=(u=At)||a.memoizedState!==null,Zr(t,r,a),At=u;break;default:Zr(t,r,a)}}function Uy(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{js(t)}catch(a){tt(r,r.return,a)}}function XS(t){switch(t.tag){case 13:case 19:var r=t.stateNode;return r===null&&(r=t.stateNode=new Dy),r;case 22:return t=t.stateNode,r=t._retryCache,r===null&&(r=t._retryCache=new Dy),r;default:throw Error(l(435,t.tag))}}function fd(t,r){var a=XS(t);r.forEach(function(u){var p=l2.bind(null,t,u);a.has(u)||(a.add(u),u.then(p,p))})}function _n(t,r){var a=r.deletions;if(a!==null)for(var u=0;u<a.length;u++){var p=a[u],g=t,S=r,A=S;e:for(;A!==null;){switch(A.tag){case 27:if(Ri(A.type)){ot=A.stateNode,mn=!1;break e}break;case 5:ot=A.stateNode,mn=!1;break e;case 3:case 4:ot=A.stateNode.containerInfo,mn=!0;break e}A=A.return}if(ot===null)throw Error(l(160));zy(g,S,p),ot=null,mn=!1,g=p.alternate,g!==null&&(g.return=null),p.return=null}if(r.subtreeFlags&13878)for(r=r.child;r!==null;)By(r,t),r=r.sibling}var lr=null;function By(t,r){var a=t.alternate,u=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:_n(r,t),Nn(t),u&4&&(Si(3,t,t.return),hs(3,t),Si(5,t,t.return));break;case 1:_n(r,t),Nn(t),u&512&&(At||a===null||wr(a,a.return)),u&64&&Xr&&(t=t.updateQueue,t!==null&&(u=t.callbacks,u!==null&&(a=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=a===null?u:a.concat(u))));break;case 26:var p=lr;if(_n(r,t),Nn(t),u&512&&(At||a===null||wr(a,a.return)),u&4){var g=a!==null?a.memoizedState:null;if(u=t.memoizedState,a===null)if(u===null)if(t.stateNode===null){e:{u=t.type,a=t.memoizedProps,p=p.ownerDocument||p;t:switch(u){case"title":g=p.getElementsByTagName("title")[0],(!g||g[Ct]||g[le]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=p.createElement(u),p.head.insertBefore(g,p.querySelector("head > title"))),Vt(g,u,a),g[le]=t,Et(g),u=g;break e;case"link":var S=O0("link","href",p).get(u+(a.href||""));if(S){for(var A=0;A<S.length;A++)if(g=S[A],g.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&g.getAttribute("rel")===(a.rel==null?null:a.rel)&&g.getAttribute("title")===(a.title==null?null:a.title)&&g.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){S.splice(A,1);break t}}g=p.createElement(u),Vt(g,u,a),p.head.appendChild(g);break;case"meta":if(S=O0("meta","content",p).get(u+(a.content||""))){for(A=0;A<S.length;A++)if(g=S[A],g.getAttribute("content")===(a.content==null?null:""+a.content)&&g.getAttribute("name")===(a.name==null?null:a.name)&&g.getAttribute("property")===(a.property==null?null:a.property)&&g.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&g.getAttribute("charset")===(a.charSet==null?null:a.charSet)){S.splice(A,1);break t}}g=p.createElement(u),Vt(g,u,a),p.head.appendChild(g);break;default:throw Error(l(468,u))}g[le]=t,Et(g),u=g}t.stateNode=u}else D0(p,t.type,t.stateNode);else t.stateNode=j0(p,u,t.memoizedProps);else g!==u?(g===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):g.count--,u===null?D0(p,t.type,t.stateNode):j0(p,u,t.memoizedProps)):u===null&&t.stateNode!==null&&sd(t,t.memoizedProps,a.memoizedProps)}break;case 27:_n(r,t),Nn(t),u&512&&(At||a===null||wr(a,a.return)),a!==null&&u&4&&sd(t,t.memoizedProps,a.memoizedProps);break;case 5:if(_n(r,t),Nn(t),u&512&&(At||a===null||wr(a,a.return)),t.flags&32){p=t.stateNode;try{jl(p,"")}catch(Q){tt(t,t.return,Q)}}u&4&&t.stateNode!=null&&(p=t.memoizedProps,sd(t,p,a!==null?a.memoizedProps:p)),u&1024&&(cd=!0);break;case 6:if(_n(r,t),Nn(t),u&4){if(t.stateNode===null)throw Error(l(162));u=t.memoizedProps,a=t.stateNode;try{a.nodeValue=u}catch(Q){tt(t,t.return,Q)}}break;case 3:if(yu=null,p=lr,lr=mu(r.containerInfo),_n(r,t),lr=p,Nn(t),u&4&&a!==null&&a.memoizedState.isDehydrated)try{js(r.containerInfo)}catch(Q){tt(t,t.return,Q)}cd&&(cd=!1,qy(t));break;case 4:u=lr,lr=mu(t.stateNode.containerInfo),_n(r,t),Nn(t),lr=u;break;case 12:_n(r,t),Nn(t);break;case 13:_n(r,t),Nn(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(yd=Mt()),u&4&&(u=t.updateQueue,u!==null&&(t.updateQueue=null,fd(t,u)));break;case 22:p=t.memoizedState!==null;var O=a!==null&&a.memoizedState!==null,F=Xr,Y=At;if(Xr=F||p,At=Y||O,_n(r,t),At=Y,Xr=F,Nn(t),u&8192)e:for(r=t.stateNode,r._visibility=p?r._visibility&-2:r._visibility|1,p&&(a===null||O||Xr||At||ol(t)),a=null,r=t;;){if(r.tag===5||r.tag===26){if(a===null){O=a=r;try{if(g=O.stateNode,p)S=g.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none";else{A=O.stateNode;var Z=O.memoizedProps.style,P=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;A.style.display=P==null||typeof P=="boolean"?"":(""+P).trim()}}catch(Q){tt(O,O.return,Q)}}}else if(r.tag===6){if(a===null){O=r;try{O.stateNode.nodeValue=p?"":O.memoizedProps}catch(Q){tt(O,O.return,Q)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===t)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;a===r&&(a=null),r=r.return}a===r&&(a=null),r.sibling.return=r.return,r=r.sibling}u&4&&(u=t.updateQueue,u!==null&&(a=u.retryQueue,a!==null&&(u.retryQueue=null,fd(t,a))));break;case 19:_n(r,t),Nn(t),u&4&&(u=t.updateQueue,u!==null&&(t.updateQueue=null,fd(t,u)));break;case 30:break;case 21:break;default:_n(r,t),Nn(t)}}function Nn(t){var r=t.flags;if(r&2){try{for(var a,u=t.return;u!==null;){if(jy(u)){a=u;break}u=u.return}if(a==null)throw Error(l(160));switch(a.tag){case 27:var p=a.stateNode,g=od(t);nu(t,g,p);break;case 5:var S=a.stateNode;a.flags&32&&(jl(S,""),a.flags&=-33);var A=od(t);nu(t,A,S);break;case 3:case 4:var O=a.stateNode.containerInfo,F=od(t);ud(t,F,O);break;default:throw Error(l(161))}}catch(Y){tt(t,t.return,Y)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function qy(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var r=t;qy(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),t=t.sibling}}function Ci(t,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)My(t,r.alternate,r),r=r.sibling}function ol(t){for(t=t.child;t!==null;){var r=t;switch(r.tag){case 0:case 11:case 14:case 15:Si(4,r,r.return),ol(r);break;case 1:wr(r,r.return);var a=r.stateNode;typeof a.componentWillUnmount=="function"&&Ny(r,r.return,a),ol(r);break;case 27:Cs(r.stateNode);case 26:case 5:wr(r,r.return),ol(r);break;case 22:r.memoizedState===null&&ol(r);break;case 30:ol(r);break;default:ol(r)}t=t.sibling}}function Ei(t,r,a){for(a=a&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var u=r.alternate,p=t,g=r,S=g.flags;switch(g.tag){case 0:case 11:case 15:Ei(p,g,a),hs(4,g);break;case 1:if(Ei(p,g,a),u=g,p=u.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(F){tt(u,u.return,F)}if(u=g,p=u.updateQueue,p!==null){var A=u.stateNode;try{var O=p.shared.hiddenCallbacks;if(O!==null)for(p.shared.hiddenCallbacks=null,p=0;p<O.length;p++)pg(O[p],A)}catch(F){tt(u,u.return,F)}}a&&S&64&&_y(g),ps(g,g.return);break;case 27:Oy(g);case 26:case 5:Ei(p,g,a),a&&u===null&&S&4&&Ry(g),ps(g,g.return);break;case 12:Ei(p,g,a);break;case 13:Ei(p,g,a),a&&S&4&&Uy(p,g);break;case 22:g.memoizedState===null&&Ei(p,g,a),ps(g,g.return);break;case 30:break;default:Ei(p,g,a)}r=r.sibling}}function dd(t,r){var a=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),t=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(t=r.memoizedState.cachePool.pool),t!==a&&(t!=null&&t.refCount++,a!=null&&Wa(a))}function hd(t,r){t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&Wa(t))}function Sr(t,r,a,u){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Hy(t,r,a,u),r=r.sibling}function Hy(t,r,a,u){var p=r.flags;switch(r.tag){case 0:case 11:case 15:Sr(t,r,a,u),p&2048&&hs(9,r);break;case 1:Sr(t,r,a,u);break;case 3:Sr(t,r,a,u),p&2048&&(t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&Wa(t)));break;case 12:if(p&2048){Sr(t,r,a,u),t=r.stateNode;try{var g=r.memoizedProps,S=g.id,A=g.onPostCommit;typeof A=="function"&&A(S,r.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(O){tt(r,r.return,O)}}else Sr(t,r,a,u);break;case 13:Sr(t,r,a,u);break;case 23:break;case 22:g=r.stateNode,S=r.alternate,r.memoizedState!==null?g._visibility&2?Sr(t,r,a,u):ms(t,r):g._visibility&2?Sr(t,r,a,u):(g._visibility|=2,Xl(t,r,a,u,(r.subtreeFlags&10256)!==0)),p&2048&&dd(S,r);break;case 24:Sr(t,r,a,u),p&2048&&hd(r.alternate,r);break;default:Sr(t,r,a,u)}}function Xl(t,r,a,u,p){for(p=p&&(r.subtreeFlags&10256)!==0,r=r.child;r!==null;){var g=t,S=r,A=a,O=u,F=S.flags;switch(S.tag){case 0:case 11:case 15:Xl(g,S,A,O,p),hs(8,S);break;case 23:break;case 22:var Y=S.stateNode;S.memoizedState!==null?Y._visibility&2?Xl(g,S,A,O,p):ms(g,S):(Y._visibility|=2,Xl(g,S,A,O,p)),p&&F&2048&&dd(S.alternate,S);break;case 24:Xl(g,S,A,O,p),p&&F&2048&&hd(S.alternate,S);break;default:Xl(g,S,A,O,p)}r=r.sibling}}function ms(t,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var a=t,u=r,p=u.flags;switch(u.tag){case 22:ms(a,u),p&2048&&dd(u.alternate,u);break;case 24:ms(a,u),p&2048&&hd(u.alternate,u);break;default:ms(a,u)}r=r.sibling}}var gs=8192;function Zl(t){if(t.subtreeFlags&gs)for(t=t.child;t!==null;)Fy(t),t=t.sibling}function Fy(t){switch(t.tag){case 26:Zl(t),t.flags&gs&&t.memoizedState!==null&&L2(lr,t.memoizedState,t.memoizedProps);break;case 5:Zl(t);break;case 3:case 4:var r=lr;lr=mu(t.stateNode.containerInfo),Zl(t),lr=r;break;case 22:t.memoizedState===null&&(r=t.alternate,r!==null&&r.memoizedState!==null?(r=gs,gs=16777216,Zl(t),gs=r):Zl(t));break;default:Zl(t)}}function Py(t){var r=t.alternate;if(r!==null&&(t=r.child,t!==null)){r.child=null;do r=t.sibling,t.sibling=null,t=r;while(t!==null)}}function ys(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var a=0;a<r.length;a++){var u=r[a];qt=u,Iy(u,t)}Py(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Qy(t),t=t.sibling}function Qy(t){switch(t.tag){case 0:case 11:case 15:ys(t),t.flags&2048&&Si(9,t,t.return);break;case 3:ys(t);break;case 12:ys(t);break;case 22:var r=t.stateNode;t.memoizedState!==null&&r._visibility&2&&(t.return===null||t.return.tag!==13)?(r._visibility&=-3,ru(t)):ys(t);break;default:ys(t)}}function ru(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var a=0;a<r.length;a++){var u=r[a];qt=u,Iy(u,t)}Py(t)}for(t=t.child;t!==null;){switch(r=t,r.tag){case 0:case 11:case 15:Si(8,r,r.return),ru(r);break;case 22:a=r.stateNode,a._visibility&2&&(a._visibility&=-3,ru(r));break;default:ru(r)}t=t.sibling}}function Iy(t,r){for(;qt!==null;){var a=qt;switch(a.tag){case 0:case 11:case 15:Si(8,a,r);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var u=a.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:Wa(a.memoizedState.cache)}if(u=a.child,u!==null)u.return=a,qt=u;else e:for(a=t;qt!==null;){u=qt;var p=u.sibling,g=u.return;if(Ly(u),u===a){qt=null;break e}if(p!==null){p.return=g,qt=p;break e}qt=g}}}var ZS={getCacheForType:function(t){var r=Zt(jt),a=r.data.get(t);return a===void 0&&(a=t(),r.data.set(t,a)),a}},JS=typeof WeakMap=="function"?WeakMap:Map,Ge=0,lt=null,ze=null,Fe=0,Xe=0,Rn=null,ki=!1,Jl=!1,pd=!1,Jr=0,vt=0,Ai=0,ul=0,md=0,Kn=0,Wl=0,bs=null,gn=null,gd=!1,yd=0,iu=1/0,lu=null,Ti=null,It=0,_i=null,ea=null,ta=0,bd=0,vd=null,Vy=null,vs=0,xd=null;function jn(){if((Ge&2)!==0&&Fe!==0)return Fe&-Fe;if(B.T!==null){var t=Pl;return t!==0?t:Td()}return Le()}function $y(){Kn===0&&(Kn=(Fe&536870912)===0||Ye?fi():536870912);var t=Yn.current;return t!==null&&(t.flags|=32),Kn}function On(t,r,a){(t===lt&&(Xe===2||Xe===9)||t.cancelPendingCommit!==null)&&(na(t,0),Ni(t,Fe,Kn,!1)),Bn(t,a),((Ge&2)===0||t!==lt)&&(t===lt&&((Ge&2)===0&&(ul|=a),vt===4&&Ni(t,Fe,Kn,!1)),Cr(t))}function Yy(t,r,a){if((Ge&6)!==0)throw Error(l(327));var u=!a&&(r&124)===0&&(r&t.expiredLanes)===0||Lt(t,r),p=u?t2(t,r):Cd(t,r,!0),g=u;do{if(p===0){Jl&&!u&&Ni(t,r,0,!1);break}else{if(a=t.current.alternate,g&&!WS(a)){p=Cd(t,r,!1),g=!1;continue}if(p===2){if(g=r,t.errorRecoveryDisabledLanes&g)var S=0;else S=t.pendingLanes&-536870913,S=S!==0?S:S&536870912?536870912:0;if(S!==0){r=S;e:{var A=t;p=bs;var O=A.current.memoizedState.isDehydrated;if(O&&(na(A,S).flags|=256),S=Cd(A,S,!1),S!==2){if(pd&&!O){A.errorRecoveryDisabledLanes|=g,ul|=g,p=4;break e}g=gn,gn=p,g!==null&&(gn===null?gn=g:gn.push.apply(gn,g))}p=S}if(g=!1,p!==2)continue}}if(p===1){na(t,0),Ni(t,r,0,!0);break}e:{switch(u=t,g=p,g){case 0:case 1:throw Error(l(345));case 4:if((r&4194048)!==r)break;case 6:Ni(u,r,Kn,!ki);break e;case 2:gn=null;break;case 3:case 5:break;default:throw Error(l(329))}if((r&62914560)===r&&(p=yd+300-Mt(),10<p)){if(Ni(u,r,Kn,!ki),dt(u,0,!0)!==0)break e;u.timeoutHandle=S0(Ky.bind(null,u,a,gn,lu,gd,r,Kn,ul,Wl,ki,g,2,-0,0),p);break e}Ky(u,a,gn,lu,gd,r,Kn,ul,Wl,ki,g,0,-0,0)}}break}while(!0);Cr(t)}function Ky(t,r,a,u,p,g,S,A,O,F,Y,Z,P,Q){if(t.timeoutHandle=-1,Z=r.subtreeFlags,(Z&8192||(Z&16785408)===16785408)&&(As={stylesheets:null,count:0,unsuspend:M2},Fy(r),Z=z2(),Z!==null)){t.cancelPendingCommit=Z(t0.bind(null,t,r,g,a,u,p,S,A,O,Y,1,P,Q)),Ni(t,g,S,!F);return}t0(t,r,g,a,u,p,S,A,O)}function WS(t){for(var r=t;;){var a=r.tag;if((a===0||a===11||a===15)&&r.flags&16384&&(a=r.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var u=0;u<a.length;u++){var p=a[u],g=p.getSnapshot;p=p.value;try{if(!An(g(),p))return!1}catch{return!1}}if(a=r.child,r.subtreeFlags&16384&&a!==null)a.return=r,r=a;else{if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function Ni(t,r,a,u){r&=~md,r&=~ul,t.suspendedLanes|=r,t.pingedLanes&=~r,u&&(t.warmLanes|=r),u=t.expirationTimes;for(var p=r;0<p;){var g=31-ge(p),S=1<<g;u[g]=-1,p&=~S}a!==0&&$i(t,a,r)}function au(){return(Ge&6)===0?(xs(0),!1):!0}function wd(){if(ze!==null){if(Xe===0)var t=ze.return;else t=ze,Ir=rl=null,Bf(t),Kl=null,cs=0,t=ze;for(;t!==null;)Ty(t.alternate,t),t=t.return;ze=null}}function na(t,r){var a=t.timeoutHandle;a!==-1&&(t.timeoutHandle=-1,y2(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),wd(),lt=t,ze=a=Fr(t.current,null),Fe=r,Xe=0,Rn=null,ki=!1,Jl=Lt(t,r),pd=!1,Wl=Kn=md=ul=Ai=vt=0,gn=bs=null,gd=!1,(r&8)!==0&&(r|=r&32);var u=t.entangledLanes;if(u!==0)for(t=t.entanglements,u&=r;0<u;){var p=31-ge(u),g=1<<p;r|=t[p],u&=~g}return Jr=r,_o(),a}function Gy(t,r){Oe=null,B.H=Yo,r===ts||r===Uo?(r=dg(),Xe=3):r===ug?(r=dg(),Xe=4):Xe=r===hy?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,Rn=r,ze===null&&(vt=1,Jo(t,Qn(r,t.current)))}function Xy(){var t=B.H;return B.H=Yo,t===null?Yo:t}function Zy(){var t=B.A;return B.A=ZS,t}function Sd(){vt=4,ki||(Fe&4194048)!==Fe&&Yn.current!==null||(Jl=!0),(Ai&134217727)===0&&(ul&134217727)===0||lt===null||Ni(lt,Fe,Kn,!1)}function Cd(t,r,a){var u=Ge;Ge|=2;var p=Xy(),g=Zy();(lt!==t||Fe!==r)&&(lu=null,na(t,r)),r=!1;var S=vt;e:do try{if(Xe!==0&&ze!==null){var A=ze,O=Rn;switch(Xe){case 8:wd(),S=6;break e;case 3:case 2:case 9:case 6:Yn.current===null&&(r=!0);var F=Xe;if(Xe=0,Rn=null,ra(t,A,O,F),a&&Jl){S=0;break e}break;default:F=Xe,Xe=0,Rn=null,ra(t,A,O,F)}}e2(),S=vt;break}catch(Y){Gy(t,Y)}while(!0);return r&&t.shellSuspendCounter++,Ir=rl=null,Ge=u,B.H=p,B.A=g,ze===null&&(lt=null,Fe=0,_o()),S}function e2(){for(;ze!==null;)Jy(ze)}function t2(t,r){var a=Ge;Ge|=2;var u=Xy(),p=Zy();lt!==t||Fe!==r?(lu=null,iu=Mt()+500,na(t,r)):Jl=Lt(t,r);e:do try{if(Xe!==0&&ze!==null){r=ze;var g=Rn;t:switch(Xe){case 1:Xe=0,Rn=null,ra(t,r,g,1);break;case 2:case 9:if(cg(g)){Xe=0,Rn=null,Wy(r);break}r=function(){Xe!==2&&Xe!==9||lt!==t||(Xe=7),Cr(t)},g.then(r,r);break e;case 3:Xe=7;break e;case 4:Xe=5;break e;case 7:cg(g)?(Xe=0,Rn=null,Wy(r)):(Xe=0,Rn=null,ra(t,r,g,7));break;case 5:var S=null;switch(ze.tag){case 26:S=ze.memoizedState;case 5:case 27:var A=ze;if(!S||M0(S)){Xe=0,Rn=null;var O=A.sibling;if(O!==null)ze=O;else{var F=A.return;F!==null?(ze=F,su(F)):ze=null}break t}}Xe=0,Rn=null,ra(t,r,g,5);break;case 6:Xe=0,Rn=null,ra(t,r,g,6);break;case 8:wd(),vt=6;break e;default:throw Error(l(462))}}n2();break}catch(Y){Gy(t,Y)}while(!0);return Ir=rl=null,B.H=u,B.A=p,Ge=a,ze!==null?0:(lt=null,Fe=0,_o(),vt)}function n2(){for(;ze!==null&&!ui();)Jy(ze)}function Jy(t){var r=ky(t.alternate,t,Jr);t.memoizedProps=t.pendingProps,r===null?su(t):ze=r}function Wy(t){var r=t,a=r.alternate;switch(r.tag){case 15:case 0:r=vy(a,r,r.pendingProps,r.type,void 0,Fe);break;case 11:r=vy(a,r,r.pendingProps,r.type.render,r.ref,Fe);break;case 5:Bf(r);default:Ty(a,r),r=ze=eg(r,Jr),r=ky(a,r,Jr)}t.memoizedProps=t.pendingProps,r===null?su(t):ze=r}function ra(t,r,a,u){Ir=rl=null,Bf(r),Kl=null,cs=0;var p=r.return;try{if(VS(t,p,r,a,Fe)){vt=1,Jo(t,Qn(a,t.current)),ze=null;return}}catch(g){if(p!==null)throw ze=p,g;vt=1,Jo(t,Qn(a,t.current)),ze=null;return}r.flags&32768?(Ye||u===1?t=!0:Jl||(Fe&536870912)!==0?t=!1:(ki=t=!0,(u===2||u===9||u===3||u===6)&&(u=Yn.current,u!==null&&u.tag===13&&(u.flags|=16384))),e0(r,t)):su(r)}function su(t){var r=t;do{if((r.flags&32768)!==0){e0(r,ki);return}t=r.return;var a=YS(r.alternate,r,Jr);if(a!==null){ze=a;return}if(r=r.sibling,r!==null){ze=r;return}ze=r=t}while(r!==null);vt===0&&(vt=5)}function e0(t,r){do{var a=KS(t.alternate,t);if(a!==null){a.flags&=32767,ze=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!r&&(t=t.sibling,t!==null)){ze=t;return}ze=t=a}while(t!==null);vt=6,ze=null}function t0(t,r,a,u,p,g,S,A,O){t.cancelPendingCommit=null;do ou();while(It!==0);if((Ge&6)!==0)throw Error(l(327));if(r!==null){if(r===t.current)throw Error(l(177));if(g=r.lanes|r.childLanes,g|=hf,Vi(t,a,g,S,A,O),t===lt&&(ze=lt=null,Fe=0),ea=r,_i=t,ta=a,bd=g,vd=p,Vy=u,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,a2(Un,function(){return a0(),null})):(t.callbackNode=null,t.callbackPriority=0),u=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||u){u=B.T,B.T=null,p=G.p,G.p=2,S=Ge,Ge|=4;try{GS(t,r,a)}finally{Ge=S,G.p=p,B.T=u}}It=1,n0(),r0(),i0()}}function n0(){if(It===1){It=0;var t=_i,r=ea,a=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||a){a=B.T,B.T=null;var u=G.p;G.p=2;var p=Ge;Ge|=4;try{By(r,t);var g=Ld,S=Im(t.containerInfo),A=g.focusedElem,O=g.selectionRange;if(S!==A&&A&&A.ownerDocument&&Qm(A.ownerDocument.documentElement,A)){if(O!==null&&of(A)){var F=O.start,Y=O.end;if(Y===void 0&&(Y=F),"selectionStart"in A)A.selectionStart=F,A.selectionEnd=Math.min(Y,A.value.length);else{var Z=A.ownerDocument||document,P=Z&&Z.defaultView||window;if(P.getSelection){var Q=P.getSelection(),Ae=A.textContent.length,Ce=Math.min(O.start,Ae),et=O.end===void 0?Ce:Math.min(O.end,Ae);!Q.extend&&Ce>et&&(S=et,et=Ce,Ce=S);var z=Pm(A,Ce),M=Pm(A,et);if(z&&M&&(Q.rangeCount!==1||Q.anchorNode!==z.node||Q.anchorOffset!==z.offset||Q.focusNode!==M.node||Q.focusOffset!==M.offset)){var H=Z.createRange();H.setStart(z.node,z.offset),Q.removeAllRanges(),Ce>et?(Q.addRange(H),Q.extend(M.node,M.offset)):(H.setEnd(M.node,M.offset),Q.addRange(H))}}}}for(Z=[],Q=A;Q=Q.parentNode;)Q.nodeType===1&&Z.push({element:Q,left:Q.scrollLeft,top:Q.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;A<Z.length;A++){var K=Z[A];K.element.scrollLeft=K.left,K.element.scrollTop=K.top}}xu=!!Md,Ld=Md=null}finally{Ge=p,G.p=u,B.T=a}}t.current=r,It=2}}function r0(){if(It===2){It=0;var t=_i,r=ea,a=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||a){a=B.T,B.T=null;var u=G.p;G.p=2;var p=Ge;Ge|=4;try{My(t,r.alternate,r)}finally{Ge=p,G.p=u,B.T=a}}It=3}}function i0(){if(It===4||It===3){It=0,Dt();var t=_i,r=ea,a=ta,u=Vy;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?It=5:(It=0,ea=_i=null,l0(t,t.pendingLanes));var p=t.pendingLanes;if(p===0&&(Ti=null),we(a),r=r.stateNode,W&&typeof W.onCommitFiberRoot=="function")try{W.onCommitFiberRoot($,r,void 0,(r.current.flags&128)===128)}catch{}if(u!==null){r=B.T,p=G.p,G.p=2,B.T=null;try{for(var g=t.onRecoverableError,S=0;S<u.length;S++){var A=u[S];g(A.value,{componentStack:A.stack})}}finally{B.T=r,G.p=p}}(ta&3)!==0&&ou(),Cr(t),p=t.pendingLanes,(a&4194090)!==0&&(p&42)!==0?t===xd?vs++:(vs=0,xd=t):vs=0,xs(0)}}function l0(t,r){(t.pooledCacheLanes&=r)===0&&(r=t.pooledCache,r!=null&&(t.pooledCache=null,Wa(r)))}function ou(t){return n0(),r0(),i0(),a0()}function a0(){if(It!==5)return!1;var t=_i,r=bd;bd=0;var a=we(ta),u=B.T,p=G.p;try{G.p=32>a?32:a,B.T=null,a=vd,vd=null;var g=_i,S=ta;if(It=0,ea=_i=null,ta=0,(Ge&6)!==0)throw Error(l(331));var A=Ge;if(Ge|=4,Qy(g.current),Hy(g,g.current,S,a),Ge=A,xs(0,!1),W&&typeof W.onPostCommitFiberRoot=="function")try{W.onPostCommitFiberRoot($,g)}catch{}return!0}finally{G.p=p,B.T=u,l0(t,r)}}function s0(t,r,a){r=Qn(a,r),r=Jf(t.stateNode,r,2),t=bi(t,r,2),t!==null&&(Bn(t,2),Cr(t))}function tt(t,r,a){if(t.tag===3)s0(t,t,a);else for(;r!==null;){if(r.tag===3){s0(r,t,a);break}else if(r.tag===1){var u=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Ti===null||!Ti.has(u))){t=Qn(a,t),a=fy(2),u=bi(r,a,2),u!==null&&(dy(a,u,r,t),Bn(u,2),Cr(u));break}}r=r.return}}function Ed(t,r,a){var u=t.pingCache;if(u===null){u=t.pingCache=new JS;var p=new Set;u.set(r,p)}else p=u.get(r),p===void 0&&(p=new Set,u.set(r,p));p.has(a)||(pd=!0,p.add(a),t=r2.bind(null,t,r,a),r.then(t,t))}function r2(t,r,a){var u=t.pingCache;u!==null&&u.delete(r),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,lt===t&&(Fe&a)===a&&(vt===4||vt===3&&(Fe&62914560)===Fe&&300>Mt()-yd?(Ge&2)===0&&na(t,0):md|=a,Wl===Fe&&(Wl=0)),Cr(t)}function o0(t,r){r===0&&(r=Ur()),t=Bl(t,r),t!==null&&(Bn(t,r),Cr(t))}function i2(t){var r=t.memoizedState,a=0;r!==null&&(a=r.retryLane),o0(t,a)}function l2(t,r){var a=0;switch(t.tag){case 13:var u=t.stateNode,p=t.memoizedState;p!==null&&(a=p.retryLane);break;case 19:u=t.stateNode;break;case 22:u=t.stateNode._retryCache;break;default:throw Error(l(314))}u!==null&&u.delete(r),o0(t,a)}function a2(t,r){return nr(t,r)}var uu=null,ia=null,kd=!1,cu=!1,Ad=!1,cl=0;function Cr(t){t!==ia&&t.next===null&&(ia===null?uu=ia=t:ia=ia.next=t),cu=!0,kd||(kd=!0,o2())}function xs(t,r){if(!Ad&&cu){Ad=!0;do for(var a=!1,u=uu;u!==null;){if(t!==0){var p=u.pendingLanes;if(p===0)var g=0;else{var S=u.suspendedLanes,A=u.pingedLanes;g=(1<<31-ge(42|t)+1)-1,g&=p&~(S&~A),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(a=!0,d0(u,g))}else g=Fe,g=dt(u,u===lt?g:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(g&3)===0||Lt(u,g)||(a=!0,d0(u,g));u=u.next}while(a);Ad=!1}}function s2(){u0()}function u0(){cu=kd=!1;var t=0;cl!==0&&(g2()&&(t=cl),cl=0);for(var r=Mt(),a=null,u=uu;u!==null;){var p=u.next,g=c0(u,r);g===0?(u.next=null,a===null?uu=p:a.next=p,p===null&&(ia=a)):(a=u,(t!==0||(g&3)!==0)&&(cu=!0)),u=p}xs(t)}function c0(t,r){for(var a=t.suspendedLanes,u=t.pingedLanes,p=t.expirationTimes,g=t.pendingLanes&-62914561;0<g;){var S=31-ge(g),A=1<<S,O=p[S];O===-1?((A&a)===0||(A&u)!==0)&&(p[S]=zt(A,r)):O<=r&&(t.expiredLanes|=A),g&=~A}if(r=lt,a=Fe,a=dt(t,t===r?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),u=t.callbackNode,a===0||t===r&&(Xe===2||Xe===9)||t.cancelPendingCommit!==null)return u!==null&&u!==null&&dn(u),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||Lt(t,a)){if(r=a&-a,r===t.callbackPriority)return r;switch(u!==null&&dn(u),we(a)){case 2:case 8:a=Ke;break;case 32:a=Un;break;case 268435456:a=gr;break;default:a=Un}return u=f0.bind(null,t),a=nr(a,u),t.callbackPriority=r,t.callbackNode=a,r}return u!==null&&u!==null&&dn(u),t.callbackPriority=2,t.callbackNode=null,2}function f0(t,r){if(It!==0&&It!==5)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(ou()&&t.callbackNode!==a)return null;var u=Fe;return u=dt(t,t===lt?u:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),u===0?null:(Yy(t,u,r),c0(t,Mt()),t.callbackNode!=null&&t.callbackNode===a?f0.bind(null,t):null)}function d0(t,r){if(ou())return null;Yy(t,r,!0)}function o2(){b2(function(){(Ge&6)!==0?nr(Cn,s2):u0()})}function Td(){return cl===0&&(cl=fi()),cl}function h0(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:wo(""+t)}function p0(t,r){var a=r.ownerDocument.createElement("input");return a.name=r.name,a.value=r.value,t.id&&a.setAttribute("form",t.id),r.parentNode.insertBefore(a,r),t=new FormData(t),a.parentNode.removeChild(a),t}function u2(t,r,a,u,p){if(r==="submit"&&a&&a.stateNode===p){var g=h0((p[he]||null).action),S=u.submitter;S&&(r=(r=S[he]||null)?h0(r.formAction):S.getAttribute("formAction"),r!==null&&(g=r,S=null));var A=new ko("action","action",null,u,p);t.push({event:A,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(cl!==0){var O=S?p0(p,S):new FormData(p);Yf(a,{pending:!0,data:O,method:p.method,action:g},null,O)}}else typeof g=="function"&&(A.preventDefault(),O=S?p0(p,S):new FormData(p),Yf(a,{pending:!0,data:O,method:p.method,action:g},g,O))},currentTarget:p}]})}}for(var _d=0;_d<df.length;_d++){var Nd=df[_d],c2=Nd.toLowerCase(),f2=Nd[0].toUpperCase()+Nd.slice(1);ir(c2,"on"+f2)}ir(Ym,"onAnimationEnd"),ir(Km,"onAnimationIteration"),ir(Gm,"onAnimationStart"),ir("dblclick","onDoubleClick"),ir("focusin","onFocus"),ir("focusout","onBlur"),ir(_S,"onTransitionRun"),ir(NS,"onTransitionStart"),ir(RS,"onTransitionCancel"),ir(Xm,"onTransitionEnd"),Br("onMouseEnter",["mouseout","mouseover"]),Br("onMouseLeave",["mouseout","mouseover"]),Br("onPointerEnter",["pointerout","pointerover"]),Br("onPointerLeave",["pointerout","pointerover"]),br("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),br("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),br("onBeforeInput",["compositionend","keypress","textInput","paste"]),br("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),br("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),br("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ws="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(" "),d2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ws));function m0(t,r){r=(r&4)!==0;for(var a=0;a<t.length;a++){var u=t[a],p=u.event;u=u.listeners;e:{var g=void 0;if(r)for(var S=u.length-1;0<=S;S--){var A=u[S],O=A.instance,F=A.currentTarget;if(A=A.listener,O!==g&&p.isPropagationStopped())break e;g=A,p.currentTarget=F;try{g(p)}catch(Y){Zo(Y)}p.currentTarget=null,g=O}else for(S=0;S<u.length;S++){if(A=u[S],O=A.instance,F=A.currentTarget,A=A.listener,O!==g&&p.isPropagationStopped())break e;g=A,p.currentTarget=F;try{g(p)}catch(Y){Zo(Y)}p.currentTarget=null,g=O}}}}function Ue(t,r){var a=r[ht];a===void 0&&(a=r[ht]=new Set);var u=t+"__bubble";a.has(u)||(g0(r,t,2,!1),a.add(u))}function Rd(t,r,a){var u=0;r&&(u|=4),g0(a,t,u,r)}var fu="_reactListening"+Math.random().toString(36).slice(2);function jd(t){if(!t[fu]){t[fu]=!0,Ba.forEach(function(a){a!=="selectionchange"&&(d2.has(a)||Rd(a,!1,t),Rd(a,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[fu]||(r[fu]=!0,Rd("selectionchange",!1,r))}}function g0(t,r,a,u){switch(H0(r)){case 2:var p=q2;break;case 8:p=H2;break;default:p=Vd}a=p.bind(null,r,a,t),p=void 0,!Jc||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(p=!0),u?p!==void 0?t.addEventListener(r,a,{capture:!0,passive:p}):t.addEventListener(r,a,!0):p!==void 0?t.addEventListener(r,a,{passive:p}):t.addEventListener(r,a,!1)}function Od(t,r,a,u,p){var g=u;if((r&1)===0&&(r&2)===0&&u!==null)e:for(;;){if(u===null)return;var S=u.tag;if(S===3||S===4){var A=u.stateNode.containerInfo;if(A===p)break;if(S===4)for(S=u.return;S!==null;){var O=S.tag;if((O===3||O===4)&&S.stateNode.containerInfo===p)return;S=S.return}for(;A!==null;){if(S=Ve(A),S===null)return;if(O=S.tag,O===5||O===6||O===26||O===27){u=g=S;continue e}A=A.parentNode}}u=u.return}Cm(function(){var F=g,Y=Xc(a),Z=[];e:{var P=Zm.get(t);if(P!==void 0){var Q=ko,Ae=t;switch(t){case"keypress":if(Co(a)===0)break e;case"keydown":case"keyup":Q=aS;break;case"focusin":Ae="focus",Q=nf;break;case"focusout":Ae="blur",Q=nf;break;case"beforeblur":case"afterblur":Q=nf;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Q=Am;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Q=Kw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Q=uS;break;case Ym:case Km:case Gm:Q=Zw;break;case Xm:Q=fS;break;case"scroll":case"scrollend":Q=$w;break;case"wheel":Q=hS;break;case"copy":case"cut":case"paste":Q=Ww;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Q=_m;break;case"toggle":case"beforetoggle":Q=mS}var Ce=(r&4)!==0,et=!Ce&&(t==="scroll"||t==="scrollend"),z=Ce?P!==null?P+"Capture":null:P;Ce=[];for(var M=F,H;M!==null;){var K=M;if(H=K.stateNode,K=K.tag,K!==5&&K!==26&&K!==27||H===null||z===null||(K=Ha(M,z),K!=null&&Ce.push(Ss(M,K,H))),et)break;M=M.return}0<Ce.length&&(P=new Q(P,Ae,null,a,Y),Z.push({event:P,listeners:Ce}))}}if((r&7)===0){e:{if(P=t==="mouseover"||t==="pointerover",Q=t==="mouseout"||t==="pointerout",P&&a!==Gc&&(Ae=a.relatedTarget||a.fromElement)&&(Ve(Ae)||Ae[Ee]))break e;if((Q||P)&&(P=Y.window===Y?Y:(P=Y.ownerDocument)?P.defaultView||P.parentWindow:window,Q?(Ae=a.relatedTarget||a.toElement,Q=F,Ae=Ae?Ve(Ae):null,Ae!==null&&(et=o(Ae),Ce=Ae.tag,Ae!==et||Ce!==5&&Ce!==27&&Ce!==6)&&(Ae=null)):(Q=null,Ae=F),Q!==Ae)){if(Ce=Am,K="onMouseLeave",z="onMouseEnter",M="mouse",(t==="pointerout"||t==="pointerover")&&(Ce=_m,K="onPointerLeave",z="onPointerEnter",M="pointer"),et=Q==null?P:Yi(Q),H=Ae==null?P:Yi(Ae),P=new Ce(K,M+"leave",Q,a,Y),P.target=et,P.relatedTarget=H,K=null,Ve(Y)===F&&(Ce=new Ce(z,M+"enter",Ae,a,Y),Ce.target=H,Ce.relatedTarget=et,K=Ce),et=K,Q&&Ae)t:{for(Ce=Q,z=Ae,M=0,H=Ce;H;H=la(H))M++;for(H=0,K=z;K;K=la(K))H++;for(;0<M-H;)Ce=la(Ce),M--;for(;0<H-M;)z=la(z),H--;for(;M--;){if(Ce===z||z!==null&&Ce===z.alternate)break t;Ce=la(Ce),z=la(z)}Ce=null}else Ce=null;Q!==null&&y0(Z,P,Q,Ce,!1),Ae!==null&&et!==null&&y0(Z,et,Ae,Ce,!0)}}e:{if(P=F?Yi(F):window,Q=P.nodeName&&P.nodeName.toLowerCase(),Q==="select"||Q==="input"&&P.type==="file")var de=zm;else if(Mm(P))if(Um)de=kS;else{de=CS;var De=SS}else Q=P.nodeName,!Q||Q.toLowerCase()!=="input"||P.type!=="checkbox"&&P.type!=="radio"?F&&Kc(F.elementType)&&(de=zm):de=ES;if(de&&(de=de(t,F))){Lm(Z,de,a,Y);break e}De&&De(t,P,F),t==="focusout"&&F&&P.type==="number"&&F.memoizedProps.value!=null&&Yc(P,"number",P.value)}switch(De=F?Yi(F):window,t){case"focusin":(Mm(De)||De.contentEditable==="true")&&(Ll=De,uf=F,Ka=null);break;case"focusout":Ka=uf=Ll=null;break;case"mousedown":cf=!0;break;case"contextmenu":case"mouseup":case"dragend":cf=!1,Vm(Z,a,Y);break;case"selectionchange":if(TS)break;case"keydown":case"keyup":Vm(Z,a,Y)}var ye;if(lf)e:{switch(t){case"compositionstart":var ke="onCompositionStart";break e;case"compositionend":ke="onCompositionEnd";break e;case"compositionupdate":ke="onCompositionUpdate";break e}ke=void 0}else Ml?Om(t,a)&&(ke="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(ke="onCompositionStart");ke&&(Nm&&a.locale!=="ko"&&(Ml||ke!=="onCompositionStart"?ke==="onCompositionEnd"&&Ml&&(ye=Em()):(pi=Y,Wc="value"in pi?pi.value:pi.textContent,Ml=!0)),De=du(F,ke),0<De.length&&(ke=new Tm(ke,t,null,a,Y),Z.push({event:ke,listeners:De}),ye?ke.data=ye:(ye=Dm(a),ye!==null&&(ke.data=ye)))),(ye=yS?bS(t,a):vS(t,a))&&(ke=du(F,"onBeforeInput"),0<ke.length&&(De=new Tm("onBeforeInput","beforeinput",null,a,Y),Z.push({event:De,listeners:ke}),De.data=ye)),u2(Z,t,F,a,Y)}m0(Z,r)})}function Ss(t,r,a){return{instance:t,listener:r,currentTarget:a}}function du(t,r){for(var a=r+"Capture",u=[];t!==null;){var p=t,g=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||g===null||(p=Ha(t,a),p!=null&&u.unshift(Ss(t,p,g)),p=Ha(t,r),p!=null&&u.push(Ss(t,p,g))),t.tag===3)return u;t=t.return}return[]}function la(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function y0(t,r,a,u,p){for(var g=r._reactName,S=[];a!==null&&a!==u;){var A=a,O=A.alternate,F=A.stateNode;if(A=A.tag,O!==null&&O===u)break;A!==5&&A!==26&&A!==27||F===null||(O=F,p?(F=Ha(a,g),F!=null&&S.unshift(Ss(a,F,O))):p||(F=Ha(a,g),F!=null&&S.push(Ss(a,F,O)))),a=a.return}S.length!==0&&t.push({event:r,listeners:S})}var h2=/\r\n?/g,p2=/\u0000|\uFFFD/g;function b0(t){return(typeof t=="string"?t:""+t).replace(h2,`
49
- `).replace(p2,"")}function v0(t,r){return r=b0(r),b0(t)===r}function hu(){}function We(t,r,a,u,p,g){switch(a){case"children":typeof u=="string"?r==="body"||r==="textarea"&&u===""||jl(t,u):(typeof u=="number"||typeof u=="bigint")&&r!=="body"&&jl(t,""+u);break;case"className":hi(t,"class",u);break;case"tabIndex":hi(t,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":hi(t,a,u);break;case"style":wm(t,u,g);break;case"data":if(r!=="object"){hi(t,"data",u);break}case"src":case"href":if(u===""&&(r!=="a"||a!=="href")){t.removeAttribute(a);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){t.removeAttribute(a);break}u=wo(""+u),t.setAttribute(a,u);break;case"action":case"formAction":if(typeof u=="function"){t.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 g=="function"&&(a==="formAction"?(r!=="input"&&We(t,r,"name",p.name,p,null),We(t,r,"formEncType",p.formEncType,p,null),We(t,r,"formMethod",p.formMethod,p,null),We(t,r,"formTarget",p.formTarget,p,null)):(We(t,r,"encType",p.encType,p,null),We(t,r,"method",p.method,p,null),We(t,r,"target",p.target,p,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){t.removeAttribute(a);break}u=wo(""+u),t.setAttribute(a,u);break;case"onClick":u!=null&&(t.onclick=hu);break;case"onScroll":u!=null&&Ue("scroll",t);break;case"onScrollEnd":u!=null&&Ue("scrollend",t);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(l(61));if(a=u.__html,a!=null){if(p.children!=null)throw Error(l(60));t.innerHTML=a}}break;case"multiple":t.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":t.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){t.removeAttribute("xlink:href");break}a=wo(""+u),t.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":u!=null&&typeof u!="function"&&typeof u!="symbol"?t.setAttribute(a,""+u):t.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":u&&typeof u!="function"&&typeof u!="symbol"?t.setAttribute(a,""):t.removeAttribute(a);break;case"capture":case"download":u===!0?t.setAttribute(a,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?t.setAttribute(a,u):t.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?t.setAttribute(a,u):t.removeAttribute(a);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?t.removeAttribute(a):t.setAttribute(a,u);break;case"popover":Ue("beforetoggle",t),Ue("toggle",t),_l(t,"popover",u);break;case"xlinkActuate":qr(t,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":qr(t,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":qr(t,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":qr(t,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":qr(t,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":qr(t,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":qr(t,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":qr(t,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":qr(t,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":_l(t,"is",u);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Iw.get(a)||a,_l(t,a,u))}}function Dd(t,r,a,u,p,g){switch(a){case"style":wm(t,u,g);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(l(61));if(a=u.__html,a!=null){if(p.children!=null)throw Error(l(60));t.innerHTML=a}}break;case"children":typeof u=="string"?jl(t,u):(typeof u=="number"||typeof u=="bigint")&&jl(t,""+u);break;case"onScroll":u!=null&&Ue("scroll",t);break;case"onScrollEnd":u!=null&&Ue("scrollend",t);break;case"onClick":u!=null&&(t.onclick=hu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!qa.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(p=a.endsWith("Capture"),r=a.slice(2,p?a.length-7:void 0),g=t[he]||null,g=g!=null?g[a]:null,typeof g=="function"&&t.removeEventListener(r,g,p),typeof u=="function")){typeof g!="function"&&g!==null&&(a in t?t[a]=null:t.hasAttribute(a)&&t.removeAttribute(a)),t.addEventListener(r,u,p);break e}a in t?t[a]=u:u===!0?t.setAttribute(a,""):_l(t,a,u)}}}function Vt(t,r,a){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ue("error",t),Ue("load",t);var u=!1,p=!1,g;for(g in a)if(a.hasOwnProperty(g)){var S=a[g];if(S!=null)switch(g){case"src":u=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,r));default:We(t,r,g,S,a,null)}}p&&We(t,r,"srcSet",a.srcSet,a,null),u&&We(t,r,"src",a.src,a,null);return;case"input":Ue("invalid",t);var A=g=S=p=null,O=null,F=null;for(u in a)if(a.hasOwnProperty(u)){var Y=a[u];if(Y!=null)switch(u){case"name":p=Y;break;case"type":S=Y;break;case"checked":O=Y;break;case"defaultChecked":F=Y;break;case"value":g=Y;break;case"defaultValue":A=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(l(137,r));break;default:We(t,r,u,Y,a,null)}}ym(t,g,A,O,F,S,p,!1),vo(t);return;case"select":Ue("invalid",t),u=S=g=null;for(p in a)if(a.hasOwnProperty(p)&&(A=a[p],A!=null))switch(p){case"value":g=A;break;case"defaultValue":S=A;break;case"multiple":u=A;default:We(t,r,p,A,a,null)}r=g,a=S,t.multiple=!!u,r!=null?Rl(t,!!u,r,!1):a!=null&&Rl(t,!!u,a,!0);return;case"textarea":Ue("invalid",t),g=p=u=null;for(S in a)if(a.hasOwnProperty(S)&&(A=a[S],A!=null))switch(S){case"value":u=A;break;case"defaultValue":p=A;break;case"children":g=A;break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(l(91));break;default:We(t,r,S,A,a,null)}vm(t,u,p,g),vo(t);return;case"option":for(O in a)if(a.hasOwnProperty(O)&&(u=a[O],u!=null))switch(O){case"selected":t.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:We(t,r,O,u,a,null)}return;case"dialog":Ue("beforetoggle",t),Ue("toggle",t),Ue("cancel",t),Ue("close",t);break;case"iframe":case"object":Ue("load",t);break;case"video":case"audio":for(u=0;u<ws.length;u++)Ue(ws[u],t);break;case"image":Ue("error",t),Ue("load",t);break;case"details":Ue("toggle",t);break;case"embed":case"source":case"link":Ue("error",t),Ue("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(F in a)if(a.hasOwnProperty(F)&&(u=a[F],u!=null))switch(F){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,r));default:We(t,r,F,u,a,null)}return;default:if(Kc(r)){for(Y in a)a.hasOwnProperty(Y)&&(u=a[Y],u!==void 0&&Dd(t,r,Y,u,a,void 0));return}}for(A in a)a.hasOwnProperty(A)&&(u=a[A],u!=null&&We(t,r,A,u,a,null))}function m2(t,r,a,u){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,g=null,S=null,A=null,O=null,F=null,Y=null;for(Q in a){var Z=a[Q];if(a.hasOwnProperty(Q)&&Z!=null)switch(Q){case"checked":break;case"value":break;case"defaultValue":O=Z;default:u.hasOwnProperty(Q)||We(t,r,Q,null,u,Z)}}for(var P in u){var Q=u[P];if(Z=a[P],u.hasOwnProperty(P)&&(Q!=null||Z!=null))switch(P){case"type":g=Q;break;case"name":p=Q;break;case"checked":F=Q;break;case"defaultChecked":Y=Q;break;case"value":S=Q;break;case"defaultValue":A=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(l(137,r));break;default:Q!==Z&&We(t,r,P,Q,u,Z)}}$c(t,S,A,O,F,Y,g,p);return;case"select":Q=S=A=P=null;for(g in a)if(O=a[g],a.hasOwnProperty(g)&&O!=null)switch(g){case"value":break;case"multiple":Q=O;default:u.hasOwnProperty(g)||We(t,r,g,null,u,O)}for(p in u)if(g=u[p],O=a[p],u.hasOwnProperty(p)&&(g!=null||O!=null))switch(p){case"value":P=g;break;case"defaultValue":A=g;break;case"multiple":S=g;default:g!==O&&We(t,r,p,g,u,O)}r=A,a=S,u=Q,P!=null?Rl(t,!!a,P,!1):!!u!=!!a&&(r!=null?Rl(t,!!a,r,!0):Rl(t,!!a,a?[]:"",!1));return;case"textarea":Q=P=null;for(A in a)if(p=a[A],a.hasOwnProperty(A)&&p!=null&&!u.hasOwnProperty(A))switch(A){case"value":break;case"children":break;default:We(t,r,A,null,u,p)}for(S in u)if(p=u[S],g=a[S],u.hasOwnProperty(S)&&(p!=null||g!=null))switch(S){case"value":P=p;break;case"defaultValue":Q=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(l(91));break;default:p!==g&&We(t,r,S,p,u,g)}bm(t,P,Q);return;case"option":for(var Ae in a)if(P=a[Ae],a.hasOwnProperty(Ae)&&P!=null&&!u.hasOwnProperty(Ae))switch(Ae){case"selected":t.selected=!1;break;default:We(t,r,Ae,null,u,P)}for(O in u)if(P=u[O],Q=a[O],u.hasOwnProperty(O)&&P!==Q&&(P!=null||Q!=null))switch(O){case"selected":t.selected=P&&typeof P!="function"&&typeof P!="symbol";break;default:We(t,r,O,P,u,Q)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ce in a)P=a[Ce],a.hasOwnProperty(Ce)&&P!=null&&!u.hasOwnProperty(Ce)&&We(t,r,Ce,null,u,P);for(F in u)if(P=u[F],Q=a[F],u.hasOwnProperty(F)&&P!==Q&&(P!=null||Q!=null))switch(F){case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(l(137,r));break;default:We(t,r,F,P,u,Q)}return;default:if(Kc(r)){for(var et in a)P=a[et],a.hasOwnProperty(et)&&P!==void 0&&!u.hasOwnProperty(et)&&Dd(t,r,et,void 0,u,P);for(Y in u)P=u[Y],Q=a[Y],!u.hasOwnProperty(Y)||P===Q||P===void 0&&Q===void 0||Dd(t,r,Y,P,u,Q);return}}for(var z in a)P=a[z],a.hasOwnProperty(z)&&P!=null&&!u.hasOwnProperty(z)&&We(t,r,z,null,u,P);for(Z in u)P=u[Z],Q=a[Z],!u.hasOwnProperty(Z)||P===Q||P==null&&Q==null||We(t,r,Z,P,u,Q)}var Md=null,Ld=null;function pu(t){return t.nodeType===9?t:t.ownerDocument}function x0(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function w0(t,r){if(t===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&r==="foreignObject"?0:t}function zd(t,r){return t==="textarea"||t==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var Ud=null;function g2(){var t=window.event;return t&&t.type==="popstate"?t===Ud?!1:(Ud=t,!0):(Ud=null,!1)}var S0=typeof setTimeout=="function"?setTimeout:void 0,y2=typeof clearTimeout=="function"?clearTimeout:void 0,C0=typeof Promise=="function"?Promise:void 0,b2=typeof queueMicrotask=="function"?queueMicrotask:typeof C0<"u"?function(t){return C0.resolve(null).then(t).catch(v2)}:S0;function v2(t){setTimeout(function(){throw t})}function Ri(t){return t==="head"}function E0(t,r){var a=r,u=0,p=0;do{var g=a.nextSibling;if(t.removeChild(a),g&&g.nodeType===8)if(a=g.data,a==="/$"){if(0<u&&8>u){a=u;var S=t.ownerDocument;if(a&1&&Cs(S.documentElement),a&2&&Cs(S.body),a&4)for(a=S.head,Cs(a),S=a.firstChild;S;){var A=S.nextSibling,O=S.nodeName;S[Ct]||O==="SCRIPT"||O==="STYLE"||O==="LINK"&&S.rel.toLowerCase()==="stylesheet"||a.removeChild(S),S=A}}if(p===0){t.removeChild(g),js(r);return}p--}else a==="$"||a==="$?"||a==="$!"?p++:u=a.charCodeAt(0)-48;else u=0;a=g}while(a);js(r)}function Bd(t){var r=t.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var a=r;switch(r=r.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Bd(a),Xt(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function x2(t,r,a,u){for(;t.nodeType===1;){var p=a;if(t.nodeName.toLowerCase()!==r.toLowerCase()){if(!u&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(u){if(!t[Ct])switch(r){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(g=t.getAttribute("rel"),g==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(g!==p.rel||t.getAttribute("href")!==(p.href==null||p.href===""?null:p.href)||t.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||t.getAttribute("title")!==(p.title==null?null:p.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(g=t.getAttribute("src"),(g!==(p.src==null?null:p.src)||t.getAttribute("type")!==(p.type==null?null:p.type)||t.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&g&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(r==="input"&&t.type==="hidden"){var g=p.name==null?null:""+p.name;if(p.type==="hidden"&&t.getAttribute("name")===g)return t}else return t;if(t=ar(t.nextSibling),t===null)break}return null}function w2(t,r,a){if(r==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=ar(t.nextSibling),t===null))return null;return t}function qd(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function S2(t,r){var a=t.ownerDocument;if(t.data!=="$?"||a.readyState==="complete")r();else{var u=function(){r(),a.removeEventListener("DOMContentLoaded",u)};a.addEventListener("DOMContentLoaded",u),t._reactRetry=u}}function ar(t){for(;t!=null;t=t.nextSibling){var r=t.nodeType;if(r===1||r===3)break;if(r===8){if(r=t.data,r==="$"||r==="$!"||r==="$?"||r==="F!"||r==="F")break;if(r==="/$")return null}}return t}var Hd=null;function k0(t){t=t.previousSibling;for(var r=0;t;){if(t.nodeType===8){var a=t.data;if(a==="$"||a==="$!"||a==="$?"){if(r===0)return t;r--}else a==="/$"&&r++}t=t.previousSibling}return null}function A0(t,r,a){switch(r=pu(a),t){case"html":if(t=r.documentElement,!t)throw Error(l(452));return t;case"head":if(t=r.head,!t)throw Error(l(453));return t;case"body":if(t=r.body,!t)throw Error(l(454));return t;default:throw Error(l(451))}}function Cs(t){for(var r=t.attributes;r.length;)t.removeAttributeNode(r[0]);Xt(t)}var Gn=new Map,T0=new Set;function mu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Wr=G.d;G.d={f:C2,r:E2,D:k2,C:A2,L:T2,m:_2,X:R2,S:N2,M:j2};function C2(){var t=Wr.f(),r=au();return t||r}function E2(t){var r=kn(t);r!==null&&r.tag===5&&r.type==="form"?Yg(r):Wr.r(t)}var aa=typeof document>"u"?null:document;function _0(t,r,a){var u=aa;if(u&&typeof r=="string"&&r){var p=Pn(r);p='link[rel="'+t+'"][href="'+p+'"]',typeof a=="string"&&(p+='[crossorigin="'+a+'"]'),T0.has(p)||(T0.add(p),t={rel:t,crossOrigin:a,href:r},u.querySelector(p)===null&&(r=u.createElement("link"),Vt(r,"link",t),Et(r),u.head.appendChild(r)))}}function k2(t){Wr.D(t),_0("dns-prefetch",t,null)}function A2(t,r){Wr.C(t,r),_0("preconnect",t,r)}function T2(t,r,a){Wr.L(t,r,a);var u=aa;if(u&&t&&r){var p='link[rel="preload"][as="'+Pn(r)+'"]';r==="image"&&a&&a.imageSrcSet?(p+='[imagesrcset="'+Pn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(p+='[imagesizes="'+Pn(a.imageSizes)+'"]')):p+='[href="'+Pn(t)+'"]';var g=p;switch(r){case"style":g=sa(t);break;case"script":g=oa(t)}Gn.has(g)||(t=m({rel:"preload",href:r==="image"&&a&&a.imageSrcSet?void 0:t,as:r},a),Gn.set(g,t),u.querySelector(p)!==null||r==="style"&&u.querySelector(Es(g))||r==="script"&&u.querySelector(ks(g))||(r=u.createElement("link"),Vt(r,"link",t),Et(r),u.head.appendChild(r)))}}function _2(t,r){Wr.m(t,r);var a=aa;if(a&&t){var u=r&&typeof r.as=="string"?r.as:"script",p='link[rel="modulepreload"][as="'+Pn(u)+'"][href="'+Pn(t)+'"]',g=p;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=oa(t)}if(!Gn.has(g)&&(t=m({rel:"modulepreload",href:t},r),Gn.set(g,t),a.querySelector(p)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(ks(g)))return}u=a.createElement("link"),Vt(u,"link",t),Et(u),a.head.appendChild(u)}}}function N2(t,r,a){Wr.S(t,r,a);var u=aa;if(u&&t){var p=di(u).hoistableStyles,g=sa(t);r=r||"default";var S=p.get(g);if(!S){var A={loading:0,preload:null};if(S=u.querySelector(Es(g)))A.loading=5;else{t=m({rel:"stylesheet",href:t,"data-precedence":r},a),(a=Gn.get(g))&&Fd(t,a);var O=S=u.createElement("link");Et(O),Vt(O,"link",t),O._p=new Promise(function(F,Y){O.onload=F,O.onerror=Y}),O.addEventListener("load",function(){A.loading|=1}),O.addEventListener("error",function(){A.loading|=2}),A.loading|=4,gu(S,r,u)}S={type:"stylesheet",instance:S,count:1,state:A},p.set(g,S)}}}function R2(t,r){Wr.X(t,r);var a=aa;if(a&&t){var u=di(a).hoistableScripts,p=oa(t),g=u.get(p);g||(g=a.querySelector(ks(p)),g||(t=m({src:t,async:!0},r),(r=Gn.get(p))&&Pd(t,r),g=a.createElement("script"),Et(g),Vt(g,"link",t),a.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},u.set(p,g))}}function j2(t,r){Wr.M(t,r);var a=aa;if(a&&t){var u=di(a).hoistableScripts,p=oa(t),g=u.get(p);g||(g=a.querySelector(ks(p)),g||(t=m({src:t,async:!0,type:"module"},r),(r=Gn.get(p))&&Pd(t,r),g=a.createElement("script"),Et(g),Vt(g,"link",t),a.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},u.set(p,g))}}function N0(t,r,a,u){var p=(p=ce.current)?mu(p):null;if(!p)throw Error(l(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(r=sa(a.href),a=di(p).hoistableStyles,u=a.get(r),u||(u={type:"style",instance:null,count:0,state:null},a.set(r,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=sa(a.href);var g=di(p).hoistableStyles,S=g.get(t);if(S||(p=p.ownerDocument||p,S={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(t,S),(g=p.querySelector(Es(t)))&&!g._p&&(S.instance=g,S.state.loading=5),Gn.has(t)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Gn.set(t,a),g||O2(p,t,a,S.state))),r&&u===null)throw Error(l(528,""));return S}if(r&&u!==null)throw Error(l(529,""));return null;case"script":return r=a.async,a=a.src,typeof a=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=oa(a),a=di(p).hoistableScripts,u=a.get(r),u||(u={type:"script",instance:null,count:0,state:null},a.set(r,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,t))}}function sa(t){return'href="'+Pn(t)+'"'}function Es(t){return'link[rel="stylesheet"]['+t+"]"}function R0(t){return m({},t,{"data-precedence":t.precedence,precedence:null})}function O2(t,r,a,u){t.querySelector('link[rel="preload"][as="style"]['+r+"]")?u.loading=1:(r=t.createElement("link"),u.preload=r,r.addEventListener("load",function(){return u.loading|=1}),r.addEventListener("error",function(){return u.loading|=2}),Vt(r,"link",a),Et(r),t.head.appendChild(r))}function oa(t){return'[src="'+Pn(t)+'"]'}function ks(t){return"script[async]"+t}function j0(t,r,a){if(r.count++,r.instance===null)switch(r.type){case"style":var u=t.querySelector('style[data-href~="'+Pn(a.href)+'"]');if(u)return r.instance=u,Et(u),u;var p=m({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return u=(t.ownerDocument||t).createElement("style"),Et(u),Vt(u,"style",p),gu(u,a.precedence,t),r.instance=u;case"stylesheet":p=sa(a.href);var g=t.querySelector(Es(p));if(g)return r.state.loading|=4,r.instance=g,Et(g),g;u=R0(a),(p=Gn.get(p))&&Fd(u,p),g=(t.ownerDocument||t).createElement("link"),Et(g);var S=g;return S._p=new Promise(function(A,O){S.onload=A,S.onerror=O}),Vt(g,"link",u),r.state.loading|=4,gu(g,a.precedence,t),r.instance=g;case"script":return g=oa(a.src),(p=t.querySelector(ks(g)))?(r.instance=p,Et(p),p):(u=a,(p=Gn.get(g))&&(u=m({},a),Pd(u,p)),t=t.ownerDocument||t,p=t.createElement("script"),Et(p),Vt(p,"link",u),t.head.appendChild(p),r.instance=p);case"void":return null;default:throw Error(l(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(u=r.instance,r.state.loading|=4,gu(u,a.precedence,t));return r.instance}function gu(t,r,a){for(var u=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=u.length?u[u.length-1]:null,g=p,S=0;S<u.length;S++){var A=u[S];if(A.dataset.precedence===r)g=A;else if(g!==p)break}g?g.parentNode.insertBefore(t,g.nextSibling):(r=a.nodeType===9?a.head:a,r.insertBefore(t,r.firstChild))}function Fd(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.title==null&&(t.title=r.title)}function Pd(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.integrity==null&&(t.integrity=r.integrity)}var yu=null;function O0(t,r,a){if(yu===null){var u=new Map,p=yu=new Map;p.set(a,u)}else p=yu,u=p.get(a),u||(u=new Map,p.set(a,u));if(u.has(t))return u;for(u.set(t,null),a=a.getElementsByTagName(t),p=0;p<a.length;p++){var g=a[p];if(!(g[Ct]||g[le]||t==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var S=g.getAttribute(r)||"";S=t+S;var A=u.get(S);A?A.push(g):u.set(S,[g])}}return u}function D0(t,r,a){t=t.ownerDocument||t,t.head.insertBefore(a,r==="title"?t.querySelector("head > title"):null)}function D2(t,r,a){if(a===1||r.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;switch(r.rel){case"stylesheet":return t=r.disabled,typeof r.precedence=="string"&&t==null;default:return!0}case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function M0(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var As=null;function M2(){}function L2(t,r,a){if(As===null)throw Error(l(475));var u=As;if(r.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var p=sa(a.href),g=t.querySelector(Es(p));if(g){t=g._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(u.count++,u=bu.bind(u),t.then(u,u)),r.state.loading|=4,r.instance=g,Et(g);return}g=t.ownerDocument||t,a=R0(a),(p=Gn.get(p))&&Fd(a,p),g=g.createElement("link"),Et(g);var S=g;S._p=new Promise(function(A,O){S.onload=A,S.onerror=O}),Vt(g,"link",a),r.instance=g}u.stylesheets===null&&(u.stylesheets=new Map),u.stylesheets.set(r,t),(t=r.state.preload)&&(r.state.loading&3)===0&&(u.count++,r=bu.bind(u),t.addEventListener("load",r),t.addEventListener("error",r))}}function z2(){if(As===null)throw Error(l(475));var t=As;return t.stylesheets&&t.count===0&&Qd(t,t.stylesheets),0<t.count?function(r){var a=setTimeout(function(){if(t.stylesheets&&Qd(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4);return t.unsuspend=r,function(){t.unsuspend=null,clearTimeout(a)}}:null}function bu(){if(this.count--,this.count===0){if(this.stylesheets)Qd(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var vu=null;function Qd(t,r){t.stylesheets=null,t.unsuspend!==null&&(t.count++,vu=new Map,r.forEach(U2,t),vu=null,bu.call(t))}function U2(t,r){if(!(r.state.loading&4)){var a=vu.get(t);if(a)var u=a.get(null);else{a=new Map,vu.set(t,a);for(var p=t.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<p.length;g++){var S=p[g];(S.nodeName==="LINK"||S.getAttribute("media")!=="not all")&&(a.set(S.dataset.precedence,S),u=S)}u&&a.set(null,u)}p=r.instance,S=p.getAttribute("data-precedence"),g=a.get(S)||u,g===u&&a.set(null,p),a.set(S,p),this.count++,u=bu.bind(this),p.addEventListener("load",u),p.addEventListener("error",u),g?g.parentNode.insertBefore(p,g.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(p,t.firstChild)),r.state.loading|=4}}var Ts={$$typeof:j,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function B2(t,r,a,u,p,g,S,A){this.tag=1,this.containerInfo=t,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=yr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yr(0),this.hiddenUpdates=yr(null),this.identifierPrefix=u,this.onUncaughtError=p,this.onCaughtError=g,this.onRecoverableError=S,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function L0(t,r,a,u,p,g,S,A,O,F,Y,Z){return t=new B2(t,r,a,S,A,O,F,Z),r=1,g===!0&&(r|=24),g=Tn(3,null,null,r),t.current=g,g.stateNode=t,r=Ef(),r.refCount++,t.pooledCache=r,r.refCount++,g.memoizedState={element:u,isDehydrated:a,cache:r},_f(g),t}function z0(t){return t?(t=ql,t):ql}function U0(t,r,a,u,p,g){p=z0(p),u.context===null?u.context=p:u.pendingContext=p,u=yi(r),u.payload={element:a},g=g===void 0?null:g,g!==null&&(u.callback=g),a=bi(t,u,r),a!==null&&(On(a,t,r),rs(a,t,r))}function B0(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<r?a:r}}function Id(t,r){B0(t,r),(t=t.alternate)&&B0(t,r)}function q0(t){if(t.tag===13){var r=Bl(t,67108864);r!==null&&On(r,t,67108864),Id(t,67108864)}}var xu=!0;function q2(t,r,a,u){var p=B.T;B.T=null;var g=G.p;try{G.p=2,Vd(t,r,a,u)}finally{G.p=g,B.T=p}}function H2(t,r,a,u){var p=B.T;B.T=null;var g=G.p;try{G.p=8,Vd(t,r,a,u)}finally{G.p=g,B.T=p}}function Vd(t,r,a,u){if(xu){var p=$d(u);if(p===null)Od(t,r,u,wu,a),F0(t,u);else if(P2(p,t,r,a,u))u.stopPropagation();else if(F0(t,u),r&4&&-1<F2.indexOf(t)){for(;p!==null;){var g=kn(p);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var S=He(g.pendingLanes);if(S!==0){var A=g;for(A.pendingLanes|=2,A.entangledLanes|=2;S;){var O=1<<31-ge(S);A.entanglements[1]|=O,S&=~O}Cr(g),(Ge&6)===0&&(iu=Mt()+500,xs(0))}}break;case 13:A=Bl(g,2),A!==null&&On(A,g,2),au(),Id(g,2)}if(g=$d(u),g===null&&Od(t,r,u,wu,a),g===p)break;p=g}p!==null&&u.stopPropagation()}else Od(t,r,u,null,a)}}function $d(t){return t=Xc(t),Yd(t)}var wu=null;function Yd(t){if(wu=null,t=Ve(t),t!==null){var r=o(t);if(r===null)t=null;else{var a=r.tag;if(a===13){if(t=c(r),t!==null)return t;t=null}else if(a===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;t=null}else r!==t&&(t=null)}}return wu=t,null}function H0(t){switch(t){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(rr()){case Cn:return 2;case Ke:return 8;case Un:case Lr:return 32;case gr:return 268435456;default:return 32}default:return 32}}var Kd=!1,ji=null,Oi=null,Di=null,_s=new Map,Ns=new Map,Mi=[],F2="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(t,r){switch(t){case"focusin":case"focusout":ji=null;break;case"dragenter":case"dragleave":Oi=null;break;case"mouseover":case"mouseout":Di=null;break;case"pointerover":case"pointerout":_s.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ns.delete(r.pointerId)}}function Rs(t,r,a,u,p,g){return t===null||t.nativeEvent!==g?(t={blockedOn:r,domEventName:a,eventSystemFlags:u,nativeEvent:g,targetContainers:[p]},r!==null&&(r=kn(r),r!==null&&q0(r)),t):(t.eventSystemFlags|=u,r=t.targetContainers,p!==null&&r.indexOf(p)===-1&&r.push(p),t)}function P2(t,r,a,u,p){switch(r){case"focusin":return ji=Rs(ji,t,r,a,u,p),!0;case"dragenter":return Oi=Rs(Oi,t,r,a,u,p),!0;case"mouseover":return Di=Rs(Di,t,r,a,u,p),!0;case"pointerover":var g=p.pointerId;return _s.set(g,Rs(_s.get(g)||null,t,r,a,u,p)),!0;case"gotpointercapture":return g=p.pointerId,Ns.set(g,Rs(Ns.get(g)||null,t,r,a,u,p)),!0}return!1}function P0(t){var r=Ve(t.target);if(r!==null){var a=o(r);if(a!==null){if(r=a.tag,r===13){if(r=c(a),r!==null){t.blockedOn=r,an(t.priority,function(){if(a.tag===13){var u=jn();u=Kt(u);var p=Bl(a,u);p!==null&&On(p,a,u),Id(a,u)}});return}}else if(r===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Su(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var a=$d(t.nativeEvent);if(a===null){a=t.nativeEvent;var u=new a.constructor(a.type,a);Gc=u,a.target.dispatchEvent(u),Gc=null}else return r=kn(a),r!==null&&q0(r),t.blockedOn=a,!1;r.shift()}return!0}function Q0(t,r,a){Su(t)&&a.delete(r)}function Q2(){Kd=!1,ji!==null&&Su(ji)&&(ji=null),Oi!==null&&Su(Oi)&&(Oi=null),Di!==null&&Su(Di)&&(Di=null),_s.forEach(Q0),Ns.forEach(Q0)}function Cu(t,r){t.blockedOn===r&&(t.blockedOn=null,Kd||(Kd=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Q2)))}var Eu=null;function I0(t){Eu!==t&&(Eu=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Eu===t&&(Eu=null);for(var r=0;r<t.length;r+=3){var a=t[r],u=t[r+1],p=t[r+2];if(typeof u!="function"){if(Yd(u||a)===null)continue;break}var g=kn(a);g!==null&&(t.splice(r,3),r-=3,Yf(g,{pending:!0,data:p,method:a.method,action:u},u,p))}}))}function js(t){function r(O){return Cu(O,t)}ji!==null&&Cu(ji,t),Oi!==null&&Cu(Oi,t),Di!==null&&Cu(Di,t),_s.forEach(r),Ns.forEach(r);for(var a=0;a<Mi.length;a++){var u=Mi[a];u.blockedOn===t&&(u.blockedOn=null)}for(;0<Mi.length&&(a=Mi[0],a.blockedOn===null);)P0(a),a.blockedOn===null&&Mi.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(u=0;u<a.length;u+=3){var p=a[u],g=a[u+1],S=p[he]||null;if(typeof g=="function")S||I0(a);else if(S){var A=null;if(g&&g.hasAttribute("formAction")){if(p=g,S=g[he]||null)A=S.formAction;else if(Yd(p)!==null)continue}else A=S.action;typeof A=="function"?a[u+1]=A:(a.splice(u,3),u-=3),I0(a)}}}function Gd(t){this._internalRoot=t}ku.prototype.render=Gd.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(l(409));var a=r.current,u=jn();U0(a,u,t,r,null,null)},ku.prototype.unmount=Gd.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;U0(t.current,2,null,t,null,null),au(),r[Ee]=null}};function ku(t){this._internalRoot=t}ku.prototype.unstable_scheduleHydration=function(t){if(t){var r=Le();t={blockedOn:null,target:t,priority:r};for(var a=0;a<Mi.length&&r!==0&&r<Mi[a].priority;a++);Mi.splice(a,0,t),a===0&&P0(t)}};var V0=n.version;if(V0!=="19.1.0")throw Error(l(527,V0,"19.1.0"));G.findDOMNode=function(t){var r=t._reactInternals;if(r===void 0)throw typeof t.render=="function"?Error(l(188)):(t=Object.keys(t).join(","),Error(l(268,t)));return t=h(r),t=t!==null?d(t):null,t=t===null?null:t.stateNode,t};var I2={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Au=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Au.isDisabled&&Au.supportsFiber)try{$=Au.inject(I2),W=Au}catch{}}return Ds.createRoot=function(t,r){if(!s(t))throw Error(l(299));var a=!1,u="",p=sy,g=oy,S=uy,A=null;return r!=null&&(r.unstable_strictMode===!0&&(a=!0),r.identifierPrefix!==void 0&&(u=r.identifierPrefix),r.onUncaughtError!==void 0&&(p=r.onUncaughtError),r.onCaughtError!==void 0&&(g=r.onCaughtError),r.onRecoverableError!==void 0&&(S=r.onRecoverableError),r.unstable_transitionCallbacks!==void 0&&(A=r.unstable_transitionCallbacks)),r=L0(t,1,!1,null,null,a,u,p,g,S,A,null),t[Ee]=r.current,jd(t),new Gd(r)},Ds.hydrateRoot=function(t,r,a){if(!s(t))throw Error(l(299));var u=!1,p="",g=sy,S=oy,A=uy,O=null,F=null;return a!=null&&(a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(p=a.identifierPrefix),a.onUncaughtError!==void 0&&(g=a.onUncaughtError),a.onCaughtError!==void 0&&(S=a.onCaughtError),a.onRecoverableError!==void 0&&(A=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(O=a.unstable_transitionCallbacks),a.formState!==void 0&&(F=a.formState)),r=L0(t,1,!0,r,a??null,u,p,g,S,A,O,F),r.context=z0(null),a=r.current,u=jn(),u=Kt(u),p=yi(u),p.callback=null,bi(a,p,u),a=u,r.current.lanes=a,Bn(r,a),Cr(r),t[Ee]=r.current,jd(t),new ku(r)},Ds.version="19.1.0",Ds}var tb;function W2(){if(tb)return Jd.exports;tb=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Jd.exports=J2(),Jd.exports}var eC=W2();const tC=ka(eC);var Ms={},nb;function nC(){if(nb)return Ms;nb=1,Object.defineProperty(Ms,"__esModule",{value:!0}),Ms.parse=c,Ms.serialize=d;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,n=/^[\u0021-\u003A\u003C-\u007E]*$/,i=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,l=/^[\u0020-\u003A\u003D-\u007E]*$/,s=Object.prototype.toString,o=(()=>{const x=function(){};return x.prototype=Object.create(null),x})();function c(x,v){const w=new o,T=x.length;if(T<2)return w;const _=(v==null?void 0:v.decode)||m;let E=0;do{const N=x.indexOf("=",E);if(N===-1)break;const j=x.indexOf(";",E),q=j===-1?T:j;if(N>q){E=x.lastIndexOf(";",N-1)+1;continue}const L=f(x,E,N),D=h(x,N,L),X=x.slice(L,D);if(w[X]===void 0){let ee=f(x,N+1,q),ie=h(x,q,ee);const U=_(x.slice(ee,ie));w[X]=U}E=q+1}while(E<T);return w}function f(x,v,w){do{const T=x.charCodeAt(v);if(T!==32&&T!==9)return v}while(++v<w);return w}function h(x,v,w){for(;v>w;){const T=x.charCodeAt(--v);if(T!==32&&T!==9)return v+1}return w}function d(x,v,w){const T=(w==null?void 0:w.encode)||encodeURIComponent;if(!e.test(x))throw new TypeError(`argument name is invalid: ${x}`);const _=T(v);if(!n.test(_))throw new TypeError(`argument val is invalid: ${v}`);let E=x+"="+_;if(!w)return E;if(w.maxAge!==void 0){if(!Number.isInteger(w.maxAge))throw new TypeError(`option maxAge is invalid: ${w.maxAge}`);E+="; Max-Age="+w.maxAge}if(w.domain){if(!i.test(w.domain))throw new TypeError(`option domain is invalid: ${w.domain}`);E+="; Domain="+w.domain}if(w.path){if(!l.test(w.path))throw new TypeError(`option path is invalid: ${w.path}`);E+="; Path="+w.path}if(w.expires){if(!y(w.expires)||!Number.isFinite(w.expires.valueOf()))throw new TypeError(`option expires is invalid: ${w.expires}`);E+="; Expires="+w.expires.toUTCString()}if(w.httpOnly&&(E+="; HttpOnly"),w.secure&&(E+="; Secure"),w.partitioned&&(E+="; Partitioned"),w.priority)switch(typeof w.priority=="string"?w.priority.toLowerCase():void 0){case"low":E+="; Priority=Low";break;case"medium":E+="; Priority=Medium";break;case"high":E+="; 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":E+="; SameSite=Strict";break;case"lax":E+="; SameSite=Lax";break;case"none":E+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${w.sameSite}`)}return E}function m(x){if(x.indexOf("%")===-1)return x;try{return decodeURIComponent(x)}catch{return x}}function y(x){return s.call(x)==="[object Date]"}return Ms}nC();var rb="popstate";function rC(e={}){function n(l,s){let{pathname:o,search:c,hash:f}=l.location;return Mh("",{pathname:o,search:c,hash:f},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function i(l,s){return typeof s=="string"?s:Ks(s)}return lC(n,i,null,e)}function ct(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function ur(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function iC(){return Math.random().toString(36).substring(2,10)}function ib(e,n){return{usr:e.state,key:e.key,idx:n}}function Mh(e,n,i=null,l){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof n=="string"?Aa(n):n,state:i,key:n&&n.key||l||iC()}}function Ks({pathname:e="/",search:n="",hash:i=""}){return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),i&&i!=="#"&&(e+=i.charAt(0)==="#"?i:"#"+i),e}function Aa(e){let n={};if(e){let i=e.indexOf("#");i>=0&&(n.hash=e.substring(i),e=e.substring(0,i));let l=e.indexOf("?");l>=0&&(n.search=e.substring(l),e=e.substring(0,l)),e&&(n.pathname=e)}return n}function lC(e,n,i,l={}){let{window:s=document.defaultView,v5Compat:o=!1}=l,c=s.history,f="POP",h=null,d=m();d==null&&(d=0,c.replaceState({...c.state,idx:d},""));function m(){return(c.state||{idx:null}).idx}function y(){f="POP";let _=m(),E=_==null?null:_-d;d=_,h&&h({action:f,location:T.location,delta:E})}function x(_,E){f="PUSH";let N=Mh(T.location,_,E);d=m()+1;let j=ib(N,d),q=T.createHref(N);try{c.pushState(j,"",q)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;s.location.assign(q)}o&&h&&h({action:f,location:T.location,delta:1})}function v(_,E){f="REPLACE";let N=Mh(T.location,_,E);d=m();let j=ib(N,d),q=T.createHref(N);c.replaceState(j,"",q),o&&h&&h({action:f,location:T.location,delta:0})}function w(_){return aC(_)}let T={get action(){return f},get location(){return e(s,c)},listen(_){if(h)throw new Error("A history only accepts one active listener");return s.addEventListener(rb,y),h=_,()=>{s.removeEventListener(rb,y),h=null}},createHref(_){return n(s,_)},createURL:w,encodeLocation(_){let E=w(_);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:x,replace:v,go(_){return c.go(_)}};return T}function aC(e,n=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),ct(i,"No window.location.(origin|href) available to create URL");let l=typeof e=="string"?e:Ks(e);return l=l.replace(/ $/,"%20"),!n&&l.startsWith("//")&&(l=i+l),new URL(l,i)}function J1(e,n,i="/"){return sC(e,n,i,!1)}function sC(e,n,i,l){let s=typeof n=="string"?Aa(n):n,o=ii(s.pathname||"/",i);if(o==null)return null;let c=W1(e);oC(c);let f=null;for(let h=0;f==null&&h<c.length;++h){let d=vC(o);f=yC(c[h],d,l)}return f}function W1(e,n=[],i=[],l=""){let s=(o,c,f)=>{let h={relativePath:f===void 0?o.path||"":f,caseSensitive:o.caseSensitive===!0,childrenIndex:c,route:o};h.relativePath.startsWith("/")&&(ct(h.relativePath.startsWith(l),`Absolute route path "${h.relativePath}" nested under path "${l}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),h.relativePath=h.relativePath.slice(l.length));let d=ni([l,h.relativePath]),m=i.concat(h);o.children&&o.children.length>0&&(ct(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),W1(o.children,n,m,d)),!(o.path==null&&!o.index)&&n.push({path:d,score:mC(d,o.index),routesMeta:m})};return e.forEach((o,c)=>{var f;if(o.path===""||!((f=o.path)!=null&&f.includes("?")))s(o,c);else for(let h of ev(o.path))s(o,c,h)}),n}function ev(e){let n=e.split("/");if(n.length===0)return[];let[i,...l]=n,s=i.endsWith("?"),o=i.replace(/\?$/,"");if(l.length===0)return s?[o,""]:[o];let c=ev(l.join("/")),f=[];return f.push(...c.map(h=>h===""?o:[o,h].join("/"))),s&&f.push(...c),f.map(h=>e.startsWith("/")&&h===""?"/":h)}function oC(e){e.sort((n,i)=>n.score!==i.score?i.score-n.score:gC(n.routesMeta.map(l=>l.childrenIndex),i.routesMeta.map(l=>l.childrenIndex)))}var uC=/^:[\w-]+$/,cC=3,fC=2,dC=1,hC=10,pC=-2,lb=e=>e==="*";function mC(e,n){let i=e.split("/"),l=i.length;return i.some(lb)&&(l+=pC),n&&(l+=fC),i.filter(s=>!lb(s)).reduce((s,o)=>s+(uC.test(o)?cC:o===""?dC:hC),l)}function gC(e,n){return e.length===n.length&&e.slice(0,-1).every((l,s)=>l===n[s])?e[e.length-1]-n[n.length-1]:0}function yC(e,n,i=!1){let{routesMeta:l}=e,s={},o="/",c=[];for(let f=0;f<l.length;++f){let h=l[f],d=f===l.length-1,m=o==="/"?n:n.slice(o.length)||"/",y=Zu({path:h.relativePath,caseSensitive:h.caseSensitive,end:d},m),x=h.route;if(!y&&d&&i&&!l[l.length-1].route.index&&(y=Zu({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},m)),!y)return null;Object.assign(s,y.params),c.push({params:s,pathname:ni([o,y.pathname]),pathnameBase:CC(ni([o,y.pathnameBase])),route:x}),y.pathnameBase!=="/"&&(o=ni([o,y.pathnameBase]))}return c}function Zu(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[i,l]=bC(e.path,e.caseSensitive,e.end),s=n.match(i);if(!s)return null;let o=s[0],c=o.replace(/(.)\/+$/,"$1"),f=s.slice(1);return{params:l.reduce((d,{paramName:m,isOptional:y},x)=>{if(m==="*"){let w=f[x]||"";c=o.slice(0,o.length-w.length).replace(/(.)\/+$/,"$1")}const v=f[x];return y&&!v?d[m]=void 0:d[m]=(v||"").replace(/%2F/g,"/"),d},{}),pathname:o,pathnameBase:c,pattern:e}}function bC(e,n=!1,i=!0){ur(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let l=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,f,h)=>(l.push({paramName:f,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(l.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,n?void 0:"i"),l]}function vC(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return ur(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),e}}function ii(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let i=n.endsWith("/")?n.length-1:n.length,l=e.charAt(i);return l&&l!=="/"?null:e.slice(i)||"/"}function xC(e,n="/"){let{pathname:i,search:l="",hash:s=""}=typeof e=="string"?Aa(e):e;return{pathname:i?i.startsWith("/")?i:wC(i,n):n,search:EC(l),hash:kC(s)}}function wC(e,n){let i=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?i.length>1&&i.pop():s!=="."&&i.push(s)}),i.length>1?i.join("/"):"/"}function nh(e,n,i,l){return`Cannot include a '${e}' character in a manually specified \`to.${n}\` field [${JSON.stringify(l)}]. Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function SC(e){return e.filter((n,i)=>i===0||n.route.path&&n.route.path.length>0)}function mp(e){let n=SC(e);return n.map((i,l)=>l===n.length-1?i.pathname:i.pathnameBase)}function gp(e,n,i,l=!1){let s;typeof e=="string"?s=Aa(e):(s={...e},ct(!s.pathname||!s.pathname.includes("?"),nh("?","pathname","search",s)),ct(!s.pathname||!s.pathname.includes("#"),nh("#","pathname","hash",s)),ct(!s.search||!s.search.includes("#"),nh("#","search","hash",s)));let o=e===""||s.pathname==="",c=o?"/":s.pathname,f;if(c==null)f=i;else{let y=n.length-1;if(!l&&c.startsWith("..")){let x=c.split("/");for(;x[0]==="..";)x.shift(),y-=1;s.pathname=x.join("/")}f=y>=0?n[y]:"/"}let h=xC(s,f),d=c&&c!=="/"&&c.endsWith("/"),m=(o||c===".")&&i.endsWith("/");return!h.pathname.endsWith("/")&&(d||m)&&(h.pathname+="/"),h}var ni=e=>e.join("/").replace(/\/\/+/g,"/"),CC=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),EC=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,kC=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function AC(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var tv=["POST","PUT","PATCH","DELETE"];new Set(tv);var TC=["GET",...tv];new Set(TC);var Ta=k.createContext(null);Ta.displayName="DataRouter";var yc=k.createContext(null);yc.displayName="DataRouterState";var nv=k.createContext({isTransitioning:!1});nv.displayName="ViewTransition";var _C=k.createContext(new Map);_C.displayName="Fetchers";var NC=k.createContext(null);NC.displayName="Await";var dr=k.createContext(null);dr.displayName="Navigation";var eo=k.createContext(null);eo.displayName="Location";var Rr=k.createContext({outlet:null,matches:[],isDataRoute:!1});Rr.displayName="Route";var yp=k.createContext(null);yp.displayName="RouteError";function RC(e,{relative:n}={}){ct(_a(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:l}=k.useContext(dr),{hash:s,pathname:o,search:c}=to(e,{relative:n}),f=o;return i!=="/"&&(f=o==="/"?i:ni([i,o])),l.createHref({pathname:f,search:c,hash:s})}function _a(){return k.useContext(eo)!=null}function nn(){return ct(_a(),"useLocation() may be used only in the context of a <Router> component."),k.useContext(eo).location}var rv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function iv(e){k.useContext(dr).static||k.useLayoutEffect(e)}function Wn(){let{isDataRoute:e}=k.useContext(Rr);return e?QC():jC()}function jC(){ct(_a(),"useNavigate() may be used only in the context of a <Router> component.");let e=k.useContext(Ta),{basename:n,navigator:i}=k.useContext(dr),{matches:l}=k.useContext(Rr),{pathname:s}=nn(),o=JSON.stringify(mp(l)),c=k.useRef(!1);return iv(()=>{c.current=!0}),k.useCallback((h,d={})=>{if(ur(c.current,rv),!c.current)return;if(typeof h=="number"){i.go(h);return}let m=gp(h,JSON.parse(o),s,d.relative==="path");e==null&&n!=="/"&&(m.pathname=m.pathname==="/"?n:ni([n,m.pathname])),(d.replace?i.replace:i.push)(m,d.state,d)},[n,i,o,s,e])}k.createContext(null);function to(e,{relative:n}={}){let{matches:i}=k.useContext(Rr),{pathname:l}=nn(),s=JSON.stringify(mp(i));return k.useMemo(()=>gp(e,JSON.parse(s),l,n==="path"),[e,s,l,n])}function OC(e,n){return lv(e,n)}function lv(e,n,i,l){var N;ct(_a(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s,static:o}=k.useContext(dr),{matches:c}=k.useContext(Rr),f=c[c.length-1],h=f?f.params:{},d=f?f.pathname:"/",m=f?f.pathnameBase:"/",y=f&&f.route;{let j=y&&y.path||"";av(d,!y||j.endsWith("*")||j.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${j}">) 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="${j}"> to <Route path="${j==="/"?"*":`${j}/*`}">.`)}let x=nn(),v;if(n){let j=typeof n=="string"?Aa(n):n;ct(m==="/"||((N=j.pathname)==null?void 0:N.startsWith(m)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${j.pathname}" was given in the \`location\` prop.`),v=j}else v=x;let w=v.pathname||"/",T=w;if(m!=="/"){let j=m.replace(/^\//,"").split("/");T="/"+w.replace(/^\//,"").split("/").slice(j.length).join("/")}let _=!o&&i&&i.matches&&i.matches.length>0?i.matches:J1(e,{pathname:T});ur(y||_!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),ur(_==null||_[_.length-1].route.element!==void 0||_[_.length-1].route.Component!==void 0||_[_.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.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 E=UC(_&&_.map(j=>Object.assign({},j,{params:Object.assign({},h,j.params),pathname:ni([m,s.encodeLocation?s.encodeLocation(j.pathname).pathname:j.pathname]),pathnameBase:j.pathnameBase==="/"?m:ni([m,s.encodeLocation?s.encodeLocation(j.pathnameBase).pathname:j.pathnameBase])})),c,i,l);return n&&E?k.createElement(eo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...v},navigationType:"POP"}},E):E}function DC(){let e=PC(),n=AC(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),i=e instanceof Error?e.stack:null,l="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:l},o={padding:"2px 4px",backgroundColor:l},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=k.createElement(k.Fragment,null,k.createElement("p",null,"💿 Hey developer 👋"),k.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",k.createElement("code",{style:o},"ErrorBoundary")," or"," ",k.createElement("code",{style:o},"errorElement")," prop on your route.")),k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},n),i?k.createElement("pre",{style:s},i):null,c)}var MC=k.createElement(DC,null),LC=class extends k.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?k.createElement(Rr.Provider,{value:this.props.routeContext},k.createElement(yp.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function zC({routeContext:e,match:n,children:i}){let l=k.useContext(Ta);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),k.createElement(Rr.Provider,{value:e},i)}function UC(e,n=[],i=null,l=null){if(e==null){if(!i)return null;if(i.errors)e=i.matches;else if(n.length===0&&!i.initialized&&i.matches.length>0)e=i.matches;else return null}let s=e,o=i==null?void 0:i.errors;if(o!=null){let h=s.findIndex(d=>d.route.id&&(o==null?void 0:o[d.route.id])!==void 0);ct(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),s=s.slice(0,Math.min(s.length,h+1))}let c=!1,f=-1;if(i)for(let h=0;h<s.length;h++){let d=s[h];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(f=h),d.route.id){let{loaderData:m,errors:y}=i,x=d.route.loader&&!m.hasOwnProperty(d.route.id)&&(!y||y[d.route.id]===void 0);if(d.route.lazy||x){c=!0,f>=0?s=s.slice(0,f+1):s=[s[0]];break}}}return s.reduceRight((h,d,m)=>{let y,x=!1,v=null,w=null;i&&(y=o&&d.route.id?o[d.route.id]:void 0,v=d.route.errorElement||MC,c&&(f<0&&m===0?(av("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,w=null):f===m&&(x=!0,w=d.route.hydrateFallbackElement||null)));let T=n.concat(s.slice(0,m+1)),_=()=>{let E;return y?E=v:x?E=w:d.route.Component?E=k.createElement(d.route.Component,null):d.route.element?E=d.route.element:E=h,k.createElement(zC,{match:d,routeContext:{outlet:h,matches:T,isDataRoute:i!=null},children:E})};return i&&(d.route.ErrorBoundary||d.route.errorElement||m===0)?k.createElement(LC,{location:i.location,revalidation:i.revalidation,component:v,error:y,children:_(),routeContext:{outlet:null,matches:T,isDataRoute:!0}}):_()},null)}function bp(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function BC(e){let n=k.useContext(Ta);return ct(n,bp(e)),n}function qC(e){let n=k.useContext(yc);return ct(n,bp(e)),n}function HC(e){let n=k.useContext(Rr);return ct(n,bp(e)),n}function vp(e){let n=HC(e),i=n.matches[n.matches.length-1];return ct(i.route.id,`${e} can only be used on routes that contain a unique "id"`),i.route.id}function FC(){return vp("useRouteId")}function PC(){var l;let e=k.useContext(yp),n=qC("useRouteError"),i=vp("useRouteError");return e!==void 0?e:(l=n.errors)==null?void 0:l[i]}function QC(){let{router:e}=BC("useNavigate"),n=vp("useNavigate"),i=k.useRef(!1);return iv(()=>{i.current=!0}),k.useCallback(async(s,o={})=>{ur(i.current,rv),i.current&&(typeof s=="number"?e.navigate(s):await e.navigate(s,{fromRouteId:n,...o}))},[e,n])}var ab={};function av(e,n,i){!n&&!ab[e]&&(ab[e]=!0,ur(!1,i))}k.memo(IC);function IC({routes:e,future:n,state:i}){return lv(e,void 0,i,n)}function VC({to:e,replace:n,state:i,relative:l}){ct(_a(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=k.useContext(dr);ur(!s,"<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:o}=k.useContext(Rr),{pathname:c}=nn(),f=Wn(),h=gp(e,mp(o),c,l==="path"),d=JSON.stringify(h);return k.useEffect(()=>{f(JSON.parse(d),{replace:n,state:i,relative:l})},[f,d,l,n,i]),null}function Bu(e){ct(!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 $C({basename:e="/",children:n=null,location:i,navigationType:l="POP",navigator:s,static:o=!1}){ct(!_a(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),f=k.useMemo(()=>({basename:c,navigator:s,static:o,future:{}}),[c,s,o]);typeof i=="string"&&(i=Aa(i));let{pathname:h="/",search:d="",hash:m="",state:y=null,key:x="default"}=i,v=k.useMemo(()=>{let w=ii(h,c);return w==null?null:{location:{pathname:w,search:d,hash:m,state:y,key:x},navigationType:l}},[c,h,d,m,y,x,l]);return ur(v!=null,`<Router basename="${c}"> is not able to match the URL "${h}${d}${m}" because it does not start with the basename, so the <Router> won't render anything.`),v==null?null:k.createElement(dr.Provider,{value:f},k.createElement(eo.Provider,{children:n,value:v}))}function YC({children:e,location:n}){return OC(Lh(e),n)}function Lh(e,n=[]){let i=[];return k.Children.forEach(e,(l,s)=>{if(!k.isValidElement(l))return;let o=[...n,s];if(l.type===k.Fragment){i.push.apply(i,Lh(l.props.children,o));return}ct(l.type===Bu,`[${typeof l.type=="string"?l.type:l.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ct(!l.props.index||!l.props.children,"An index route cannot have child routes.");let c={id:l.props.id||o.join("-"),caseSensitive:l.props.caseSensitive,element:l.props.element,Component:l.props.Component,index:l.props.index,path:l.props.path,loader:l.props.loader,action:l.props.action,hydrateFallbackElement:l.props.hydrateFallbackElement,HydrateFallback:l.props.HydrateFallback,errorElement:l.props.errorElement,ErrorBoundary:l.props.ErrorBoundary,hasErrorBoundary:l.props.hasErrorBoundary===!0||l.props.ErrorBoundary!=null||l.props.errorElement!=null,shouldRevalidate:l.props.shouldRevalidate,handle:l.props.handle,lazy:l.props.lazy};l.props.children&&(c.children=Lh(l.props.children,o)),i.push(c)}),i}var qu="get",Hu="application/x-www-form-urlencoded";function bc(e){return e!=null&&typeof e.tagName=="string"}function KC(e){return bc(e)&&e.tagName.toLowerCase()==="button"}function GC(e){return bc(e)&&e.tagName.toLowerCase()==="form"}function XC(e){return bc(e)&&e.tagName.toLowerCase()==="input"}function ZC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function JC(e,n){return e.button===0&&(!n||n==="_self")&&!ZC(e)}var Tu=null;function WC(){if(Tu===null)try{new FormData(document.createElement("form"),0),Tu=!1}catch{Tu=!0}return Tu}var eE=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function rh(e){return e!=null&&!eE.has(e)?(ur(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Hu}"`),null):e}function tE(e,n){let i,l,s,o,c;if(GC(e)){let f=e.getAttribute("action");l=f?ii(f,n):null,i=e.getAttribute("method")||qu,s=rh(e.getAttribute("enctype"))||Hu,o=new FormData(e)}else if(KC(e)||XC(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=e.getAttribute("formaction")||f.getAttribute("action");if(l=h?ii(h,n):null,i=e.getAttribute("formmethod")||f.getAttribute("method")||qu,s=rh(e.getAttribute("formenctype"))||rh(f.getAttribute("enctype"))||Hu,o=new FormData(f,e),!WC()){let{name:d,type:m,value:y}=e;if(m==="image"){let x=d?`${d}.`:"";o.append(`${x}x`,"0"),o.append(`${x}y`,"0")}else d&&o.append(d,y)}}else{if(bc(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=qu,l=null,s=Hu,c=e}return o&&s==="text/plain"&&(c=o,o=void 0),{action:l,method:i.toLowerCase(),encType:s,formData:o,body:c}}function xp(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}async function nE(e,n){if(e.id in n)return n[e.id];try{let i=await import(e.module);return n[e.id]=i,i}catch(i){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function rE(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function iE(e,n,i){let l=await Promise.all(e.map(async s=>{let o=n.routes[s.route.id];if(o){let c=await nE(o,i);return c.links?c.links():[]}return[]}));return oE(l.flat(1).filter(rE).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function sb(e,n,i,l,s,o){let c=(h,d)=>i[d]?h.route.id!==i[d].route.id:!0,f=(h,d)=>{var m;return i[d].pathname!==h.pathname||((m=i[d].route.path)==null?void 0:m.endsWith("*"))&&i[d].params["*"]!==h.params["*"]};return o==="assets"?n.filter((h,d)=>c(h,d)||f(h,d)):o==="data"?n.filter((h,d)=>{var y;let m=l.routes[h.route.id];if(!m||!m.hasLoader)return!1;if(c(h,d)||f(h,d))return!0;if(h.route.shouldRevalidate){let x=h.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:((y=i[0])==null?void 0:y.params)||{},nextUrl:new URL(e,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function lE(e,n,{includeHydrateFallback:i}={}){return aE(e.map(l=>{let s=n.routes[l.route.id];if(!s)return[];let o=[s.module];return s.clientActionModule&&(o=o.concat(s.clientActionModule)),s.clientLoaderModule&&(o=o.concat(s.clientLoaderModule)),i&&s.hydrateFallbackModule&&(o=o.concat(s.hydrateFallbackModule)),s.imports&&(o=o.concat(s.imports)),o}).flat(1))}function aE(e){return[...new Set(e)]}function sE(e){let n={},i=Object.keys(e).sort();for(let l of i)n[l]=e[l];return n}function oE(e,n){let i=new Set;return new Set(n),e.reduce((l,s)=>{let o=JSON.stringify(sE(s));return i.has(o)||(i.add(o),l.push({key:o,link:s})),l},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var uE=new Set([100,101,204,205]);function cE(e,n){let i=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return i.pathname==="/"?i.pathname="_root.data":n&&ii(i.pathname,n)==="/"?i.pathname=`${n.replace(/\/$/,"")}/_root.data`:i.pathname=`${i.pathname.replace(/\/$/,"")}.data`,i}function sv(){let e=k.useContext(Ta);return xp(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function fE(){let e=k.useContext(yc);return xp(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var wp=k.createContext(void 0);wp.displayName="FrameworkContext";function ov(){let e=k.useContext(wp);return xp(e,"You must render this element inside a <HydratedRouter> element"),e}function dE(e,n){let i=k.useContext(wp),[l,s]=k.useState(!1),[o,c]=k.useState(!1),{onFocus:f,onBlur:h,onMouseEnter:d,onMouseLeave:m,onTouchStart:y}=n,x=k.useRef(null);k.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let T=E=>{E.forEach(N=>{c(N.isIntersecting)})},_=new IntersectionObserver(T,{threshold:.5});return x.current&&_.observe(x.current),()=>{_.disconnect()}}},[e]),k.useEffect(()=>{if(l){let T=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(T)}}},[l]);let v=()=>{s(!0)},w=()=>{s(!1),c(!1)};return i?e!=="intent"?[o,x,{}]:[o,x,{onFocus:Ls(f,v),onBlur:Ls(h,w),onMouseEnter:Ls(d,v),onMouseLeave:Ls(m,w),onTouchStart:Ls(y,v)}]:[!1,x,{}]}function Ls(e,n){return i=>{e&&e(i),i.defaultPrevented||n(i)}}function hE({page:e,...n}){let{router:i}=sv(),l=k.useMemo(()=>J1(i.routes,e,i.basename),[i.routes,e,i.basename]);return l?k.createElement(mE,{page:e,matches:l,...n}):null}function pE(e){let{manifest:n,routeModules:i}=ov(),[l,s]=k.useState([]);return k.useEffect(()=>{let o=!1;return iE(e,n,i).then(c=>{o||s(c)}),()=>{o=!0}},[e,n,i]),l}function mE({page:e,matches:n,...i}){let l=nn(),{manifest:s,routeModules:o}=ov(),{basename:c}=sv(),{loaderData:f,matches:h}=fE(),d=k.useMemo(()=>sb(e,n,h,s,l,"data"),[e,n,h,s,l]),m=k.useMemo(()=>sb(e,n,h,s,l,"assets"),[e,n,h,s,l]),y=k.useMemo(()=>{if(e===l.pathname+l.search+l.hash)return[];let w=new Set,T=!1;if(n.forEach(E=>{var j;let N=s.routes[E.route.id];!N||!N.hasLoader||(!d.some(q=>q.route.id===E.route.id)&&E.route.id in f&&((j=o[E.route.id])!=null&&j.shouldRevalidate)||N.hasClientLoader?T=!0:w.add(E.route.id))}),w.size===0)return[];let _=cE(e,c);return T&&w.size>0&&_.searchParams.set("_routes",n.filter(E=>w.has(E.route.id)).map(E=>E.route.id).join(",")),[_.pathname+_.search]},[c,f,l,s,d,n,e,o]),x=k.useMemo(()=>lE(m,s),[m,s]),v=pE(m);return k.createElement(k.Fragment,null,y.map(w=>k.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...i})),x.map(w=>k.createElement("link",{key:w,rel:"modulepreload",href:w,...i})),v.map(({key:w,link:T})=>k.createElement("link",{key:w,...T})))}function gE(...e){return n=>{e.forEach(i=>{typeof i=="function"?i(n):i!=null&&(i.current=n)})}}var uv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{uv&&(window.__reactRouterVersion="7.6.0")}catch{}function yE({basename:e,children:n,window:i}){let l=k.useRef();l.current==null&&(l.current=rC({window:i,v5Compat:!0}));let s=l.current,[o,c]=k.useState({action:s.action,location:s.location}),f=k.useCallback(h=>{k.startTransition(()=>c(h))},[c]);return k.useLayoutEffect(()=>s.listen(f),[s,f]),k.createElement($C,{basename:e,children:n,location:o.location,navigationType:o.action,navigator:s})}var cv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,fv=k.forwardRef(function({onClick:n,discover:i="render",prefetch:l="none",relative:s,reloadDocument:o,replace:c,state:f,target:h,to:d,preventScrollReset:m,viewTransition:y,...x},v){let{basename:w}=k.useContext(dr),T=typeof d=="string"&&cv.test(d),_,E=!1;if(typeof d=="string"&&T&&(_=d,uv))try{let ie=new URL(window.location.href),U=d.startsWith("//")?new URL(ie.protocol+d):new URL(d),ae=ii(U.pathname,w);U.origin===ie.origin&&ae!=null?d=ae+U.search+U.hash:E=!0}catch{ur(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let N=RC(d,{relative:s}),[j,q,L]=dE(l,x),D=wE(d,{replace:c,state:f,target:h,preventScrollReset:m,relative:s,viewTransition:y});function X(ie){n&&n(ie),ie.defaultPrevented||D(ie)}let ee=k.createElement("a",{...x,...L,href:_||N,onClick:E||o?n:X,ref:gE(v,q),target:h,"data-discover":!T&&i==="render"?"true":void 0});return j&&!T?k.createElement(k.Fragment,null,ee,k.createElement(hE,{page:N})):ee});fv.displayName="Link";var bE=k.forwardRef(function({"aria-current":n="page",caseSensitive:i=!1,className:l="",end:s=!1,style:o,to:c,viewTransition:f,children:h,...d},m){let y=to(c,{relative:d.relative}),x=nn(),v=k.useContext(yc),{navigator:w,basename:T}=k.useContext(dr),_=v!=null&&AE(y)&&f===!0,E=w.encodeLocation?w.encodeLocation(y).pathname:y.pathname,N=x.pathname,j=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;i||(N=N.toLowerCase(),j=j?j.toLowerCase():null,E=E.toLowerCase()),j&&T&&(j=ii(j,T)||j);const q=E!=="/"&&E.endsWith("/")?E.length-1:E.length;let L=N===E||!s&&N.startsWith(E)&&N.charAt(q)==="/",D=j!=null&&(j===E||!s&&j.startsWith(E)&&j.charAt(E.length)==="/"),X={isActive:L,isPending:D,isTransitioning:_},ee=L?n:void 0,ie;typeof l=="function"?ie=l(X):ie=[l,L?"active":null,D?"pending":null,_?"transitioning":null].filter(Boolean).join(" ");let U=typeof o=="function"?o(X):o;return k.createElement(fv,{...d,"aria-current":ee,className:ie,ref:m,style:U,to:c,viewTransition:f},typeof h=="function"?h(X):h)});bE.displayName="NavLink";var vE=k.forwardRef(({discover:e="render",fetcherKey:n,navigate:i,reloadDocument:l,replace:s,state:o,method:c=qu,action:f,onSubmit:h,relative:d,preventScrollReset:m,viewTransition:y,...x},v)=>{let w=EE(),T=kE(f,{relative:d}),_=c.toLowerCase()==="get"?"get":"post",E=typeof f=="string"&&cv.test(f),N=j=>{if(h&&h(j),j.defaultPrevented)return;j.preventDefault();let q=j.nativeEvent.submitter,L=(q==null?void 0:q.getAttribute("formmethod"))||c;w(q||j.currentTarget,{fetcherKey:n,method:L,navigate:i,replace:s,state:o,relative:d,preventScrollReset:m,viewTransition:y})};return k.createElement("form",{ref:v,method:_,action:T,onSubmit:l?h:N,...x,"data-discover":!E&&e==="render"?"true":void 0})});vE.displayName="Form";function xE(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function dv(e){let n=k.useContext(Ta);return ct(n,xE(e)),n}function wE(e,{target:n,replace:i,state:l,preventScrollReset:s,relative:o,viewTransition:c}={}){let f=Wn(),h=nn(),d=to(e,{relative:o});return k.useCallback(m=>{if(JC(m,n)){m.preventDefault();let y=i!==void 0?i:Ks(h)===Ks(d);f(e,{replace:y,state:l,preventScrollReset:s,relative:o,viewTransition:c})}},[h,f,d,i,l,n,e,s,o,c])}var SE=0,CE=()=>`__${String(++SE)}__`;function EE(){let{router:e}=dv("useSubmit"),{basename:n}=k.useContext(dr),i=FC();return k.useCallback(async(l,s={})=>{let{action:o,method:c,encType:f,formData:h,body:d}=tE(l,n);if(s.navigate===!1){let m=s.fetcherKey||CE();await e.fetch(m,i,s.action||o,{preventScrollReset:s.preventScrollReset,formData:h,body:d,formMethod:s.method||c,formEncType:s.encType||f,flushSync:s.flushSync})}else await e.navigate(s.action||o,{preventScrollReset:s.preventScrollReset,formData:h,body:d,formMethod:s.method||c,formEncType:s.encType||f,replace:s.replace,state:s.state,fromRouteId:i,flushSync:s.flushSync,viewTransition:s.viewTransition})},[e,n,i])}function kE(e,{relative:n}={}){let{basename:i}=k.useContext(dr),l=k.useContext(Rr);ct(l,"useFormAction must be used inside a RouteContext");let[s]=l.matches.slice(-1),o={...to(e||".",{relative:n})},c=nn();if(e==null){o.search=c.search;let f=new URLSearchParams(o.search),h=f.getAll("index");if(h.some(m=>m==="")){f.delete("index"),h.filter(y=>y).forEach(y=>f.append("index",y));let m=f.toString();o.search=m?`?${m}`:""}}return(!e||e===".")&&s.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(o.pathname=o.pathname==="/"?i:ni([i,o.pathname])),Ks(o)}function AE(e,n={}){let i=k.useContext(nv);ct(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:l}=dv("useViewTransitionState"),s=to(e,{relative:n.relative});if(!i.isTransitioning)return!1;let o=ii(i.currentLocation.pathname,l)||i.currentLocation.pathname,c=ii(i.nextLocation.pathname,l)||i.nextLocation.pathname;return Zu(s.pathname,c)!=null||Zu(s.pathname,o)!=null}[...uE];var hv=Z1();const TE=ka(hv);function zh(e,n){return zh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,l){return i.__proto__=l,i},zh(e,n)}function Na(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,zh(e,n)}var Ra=function(){function e(){this.listeners=[]}var n=e.prototype;return n.subscribe=function(l){var s=this,o=l||function(){};return this.listeners.push(o),this.onSubscribe(),function(){s.listeners=s.listeners.filter(function(c){return c!==o}),s.onUnsubscribe()}},n.hasListeners=function(){return this.listeners.length>0},n.onSubscribe=function(){},n.onUnsubscribe=function(){},e}();function Me(){return Me=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var l in i)({}).hasOwnProperty.call(i,l)&&(e[l]=i[l])}return e},Me.apply(null,arguments)}var Ju=typeof window>"u";function $t(){}function _E(e,n){return typeof e=="function"?e(n):e}function Uh(e){return typeof e=="number"&&e>=0&&e!==1/0}function Wu(e){return Array.isArray(e)?e:[e]}function pv(e,n){return Math.max(e+(n||0)-Date.now(),0)}function Fu(e,n,i){return no(e)?typeof n=="function"?Me({},i,{queryKey:e,queryFn:n}):Me({},n,{queryKey:e}):e}function NE(e,n,i){return no(e)?typeof n=="function"?Me({},i,{mutationKey:e,mutationFn:n}):Me({},n,{mutationKey:e}):typeof e=="function"?Me({},n,{mutationFn:e}):Me({},e)}function Ui(e,n,i){return no(e)?[Me({},n,{queryKey:e}),i]:[e||{},n]}function RE(e,n){if(e===!0&&n===!0||e==null&&n==null)return"all";if(e===!1&&n===!1)return"none";var i=e??!n;return i?"active":"inactive"}function ob(e,n){var i=e.active,l=e.exact,s=e.fetching,o=e.inactive,c=e.predicate,f=e.queryKey,h=e.stale;if(no(f)){if(l){if(n.queryHash!==Sp(f,n.options))return!1}else if(!ec(n.queryKey,f))return!1}var d=RE(i,o);if(d==="none")return!1;if(d!=="all"){var m=n.isActive();if(d==="active"&&!m||d==="inactive"&&m)return!1}return!(typeof h=="boolean"&&n.isStale()!==h||typeof s=="boolean"&&n.isFetching()!==s||c&&!c(n))}function ub(e,n){var i=e.exact,l=e.fetching,s=e.predicate,o=e.mutationKey;if(no(o)){if(!n.options.mutationKey)return!1;if(i){if(dl(n.options.mutationKey)!==dl(o))return!1}else if(!ec(n.options.mutationKey,o))return!1}return!(typeof l=="boolean"&&n.state.status==="loading"!==l||s&&!s(n))}function Sp(e,n){var i=(n==null?void 0:n.queryKeyHashFn)||dl;return i(e)}function dl(e){var n=Wu(e);return jE(n)}function jE(e){return JSON.stringify(e,function(n,i){return Bh(i)?Object.keys(i).sort().reduce(function(l,s){return l[s]=i[s],l},{}):i})}function ec(e,n){return mv(Wu(e),Wu(n))}function mv(e,n){return e===n?!0:typeof e!=typeof n?!1:e&&n&&typeof e=="object"&&typeof n=="object"?!Object.keys(n).some(function(i){return!mv(e[i],n[i])}):!1}function tc(e,n){if(e===n)return e;var i=Array.isArray(e)&&Array.isArray(n);if(i||Bh(e)&&Bh(n)){for(var l=i?e.length:Object.keys(e).length,s=i?n:Object.keys(n),o=s.length,c=i?[]:{},f=0,h=0;h<o;h++){var d=i?h:s[h];c[d]=tc(e[d],n[d]),c[d]===e[d]&&f++}return l===o&&f===l?e:c}return n}function OE(e,n){if(e&&!n||n&&!e)return!1;for(var i in e)if(e[i]!==n[i])return!1;return!0}function Bh(e){if(!cb(e))return!1;var n=e.constructor;if(typeof n>"u")return!0;var i=n.prototype;return!(!cb(i)||!i.hasOwnProperty("isPrototypeOf"))}function cb(e){return Object.prototype.toString.call(e)==="[object Object]"}function no(e){return typeof e=="string"||Array.isArray(e)}function DE(e){return new Promise(function(n){setTimeout(n,e)})}function fb(e){Promise.resolve().then(e).catch(function(n){return setTimeout(function(){throw n})})}function gv(){if(typeof AbortController=="function")return new AbortController}var ME=function(e){Na(n,e);function n(){var l;return l=e.call(this)||this,l.setup=function(s){var o;if(!Ju&&((o=window)!=null&&o.addEventListener)){var c=function(){return s()};return window.addEventListener("visibilitychange",c,!1),window.addEventListener("focus",c,!1),function(){window.removeEventListener("visibilitychange",c),window.removeEventListener("focus",c)}}},l}var i=n.prototype;return i.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},i.onUnsubscribe=function(){if(!this.hasListeners()){var s;(s=this.cleanup)==null||s.call(this),this.cleanup=void 0}},i.setEventListener=function(s){var o,c=this;this.setup=s,(o=this.cleanup)==null||o.call(this),this.cleanup=s(function(f){typeof f=="boolean"?c.setFocused(f):c.onFocus()})},i.setFocused=function(s){this.focused=s,s&&this.onFocus()},i.onFocus=function(){this.listeners.forEach(function(s){s()})},i.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},n}(Ra),Qs=new ME,LE=function(e){Na(n,e);function n(){var l;return l=e.call(this)||this,l.setup=function(s){var o;if(!Ju&&((o=window)!=null&&o.addEventListener)){var c=function(){return s()};return window.addEventListener("online",c,!1),window.addEventListener("offline",c,!1),function(){window.removeEventListener("online",c),window.removeEventListener("offline",c)}}},l}var i=n.prototype;return i.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},i.onUnsubscribe=function(){if(!this.hasListeners()){var s;(s=this.cleanup)==null||s.call(this),this.cleanup=void 0}},i.setEventListener=function(s){var o,c=this;this.setup=s,(o=this.cleanup)==null||o.call(this),this.cleanup=s(function(f){typeof f=="boolean"?c.setOnline(f):c.onOnline()})},i.setOnline=function(s){this.online=s,s&&this.onOnline()},i.onOnline=function(){this.listeners.forEach(function(s){s()})},i.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine},n}(Ra),Pu=new LE;function zE(e){return Math.min(1e3*Math.pow(2,e),3e4)}function nc(e){return typeof(e==null?void 0:e.cancel)=="function"}var yv=function(n){this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent};function Qu(e){return e instanceof yv}var bv=function(n){var i=this,l=!1,s,o,c,f;this.abort=n.abort,this.cancel=function(x){return s==null?void 0:s(x)},this.cancelRetry=function(){l=!0},this.continueRetry=function(){l=!1},this.continue=function(){return o==null?void 0:o()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(x,v){c=x,f=v});var h=function(v){i.isResolved||(i.isResolved=!0,n.onSuccess==null||n.onSuccess(v),o==null||o(),c(v))},d=function(v){i.isResolved||(i.isResolved=!0,n.onError==null||n.onError(v),o==null||o(),f(v))},m=function(){return new Promise(function(v){o=v,i.isPaused=!0,n.onPause==null||n.onPause()}).then(function(){o=void 0,i.isPaused=!1,n.onContinue==null||n.onContinue()})},y=function x(){if(!i.isResolved){var v;try{v=n.fn()}catch(w){v=Promise.reject(w)}s=function(T){if(!i.isResolved&&(d(new yv(T)),i.abort==null||i.abort(),nc(v)))try{v.cancel()}catch{}},i.isTransportCancelable=nc(v),Promise.resolve(v).then(h).catch(function(w){var T,_;if(!i.isResolved){var E=(T=n.retry)!=null?T:3,N=(_=n.retryDelay)!=null?_:zE,j=typeof N=="function"?N(i.failureCount,w):N,q=E===!0||typeof E=="number"&&i.failureCount<E||typeof E=="function"&&E(i.failureCount,w);if(l||!q){d(w);return}i.failureCount++,n.onFail==null||n.onFail(i.failureCount,w),DE(j).then(function(){if(!Qs.isFocused()||!Pu.isOnline())return m()}).then(function(){l?d(w):x()})}})}};y()},UE=function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(i){i()},this.batchNotifyFn=function(i){i()}}var n=e.prototype;return n.batch=function(l){var s;this.transactions++;try{s=l()}finally{this.transactions--,this.transactions||this.flush()}return s},n.schedule=function(l){var s=this;this.transactions?this.queue.push(l):fb(function(){s.notifyFn(l)})},n.batchCalls=function(l){var s=this;return function(){for(var o=arguments.length,c=new Array(o),f=0;f<o;f++)c[f]=arguments[f];s.schedule(function(){l.apply(void 0,c)})}},n.flush=function(){var l=this,s=this.queue;this.queue=[],s.length&&fb(function(){l.batchNotifyFn(function(){s.forEach(function(o){l.notifyFn(o)})})})},n.setNotifyFunction=function(l){this.notifyFn=l},n.setBatchNotifyFunction=function(l){this.batchNotifyFn=l},e}(),ut=new UE,vv=console;function rc(){return vv}function BE(e){vv=e}var qE=function(){function e(i){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=i.defaultOptions,this.setOptions(i.options),this.observers=[],this.cache=i.cache,this.queryKey=i.queryKey,this.queryHash=i.queryHash,this.initialState=i.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=i.meta,this.scheduleGc()}var n=e.prototype;return n.setOptions=function(l){var s;this.options=Me({},this.defaultOptions,l),this.meta=l==null?void 0:l.meta,this.cacheTime=Math.max(this.cacheTime||0,(s=this.options.cacheTime)!=null?s:5*60*1e3)},n.setDefaultOptions=function(l){this.defaultOptions=l},n.scheduleGc=function(){var l=this;this.clearGcTimeout(),Uh(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){l.optionalRemove()},this.cacheTime))},n.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},n.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},n.setData=function(l,s){var o,c,f=this.state.data,h=_E(l,f);return(o=(c=this.options).isDataEqual)!=null&&o.call(c,f,h)?h=f:this.options.structuralSharing!==!1&&(h=tc(f,h)),this.dispatch({data:h,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt}),h},n.setState=function(l,s){this.dispatch({type:"setState",state:l,setStateOptions:s})},n.cancel=function(l){var s,o=this.promise;return(s=this.retryer)==null||s.cancel(l),o?o.then($t).catch($t):Promise.resolve()},n.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},n.reset=function(){this.destroy(),this.setState(this.initialState)},n.isActive=function(){return this.observers.some(function(l){return l.options.enabled!==!1})},n.isFetching=function(){return this.state.isFetching},n.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(l){return l.getCurrentResult().isStale})},n.isStaleByTime=function(l){return l===void 0&&(l=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!pv(this.state.dataUpdatedAt,l)},n.onFocus=function(){var l,s=this.observers.find(function(o){return o.shouldFetchOnWindowFocus()});s&&s.refetch(),(l=this.retryer)==null||l.continue()},n.onOnline=function(){var l,s=this.observers.find(function(o){return o.shouldFetchOnReconnect()});s&&s.refetch(),(l=this.retryer)==null||l.continue()},n.addObserver=function(l){this.observers.indexOf(l)===-1&&(this.observers.push(l),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:l}))},n.removeObserver=function(l){this.observers.indexOf(l)!==-1&&(this.observers=this.observers.filter(function(s){return s!==l}),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:l}))},n.getObserversCount=function(){return this.observers.length},n.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},n.fetch=function(l,s){var o=this,c,f,h;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(s!=null&&s.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var d;return(d=this.retryer)==null||d.continueRetry(),this.promise}}if(l&&this.setOptions(l),!this.options.queryFn){var m=this.observers.find(function(N){return N.options.queryFn});m&&this.setOptions(m.options)}var y=Wu(this.queryKey),x=gv(),v={queryKey:y,pageParam:void 0,meta:this.meta};Object.defineProperty(v,"signal",{enumerable:!0,get:function(){if(x)return o.abortSignalConsumed=!0,x.signal}});var w=function(){return o.options.queryFn?(o.abortSignalConsumed=!1,o.options.queryFn(v)):Promise.reject("Missing queryFn")},T={fetchOptions:s,options:this.options,queryKey:y,state:this.state,fetchFn:w,meta:this.meta};if((c=this.options.behavior)!=null&&c.onFetch){var _;(_=this.options.behavior)==null||_.onFetch(T)}if(this.revertState=this.state,!this.state.isFetching||this.state.fetchMeta!==((f=T.fetchOptions)==null?void 0:f.meta)){var E;this.dispatch({type:"fetch",meta:(E=T.fetchOptions)==null?void 0:E.meta})}return this.retryer=new bv({fn:T.fetchFn,abort:x==null||(h=x.abort)==null?void 0:h.bind(x),onSuccess:function(j){o.setData(j),o.cache.config.onSuccess==null||o.cache.config.onSuccess(j,o),o.cacheTime===0&&o.optionalRemove()},onError:function(j){Qu(j)&&j.silent||o.dispatch({type:"error",error:j}),Qu(j)||(o.cache.config.onError==null||o.cache.config.onError(j,o),rc().error(j)),o.cacheTime===0&&o.optionalRemove()},onFail:function(){o.dispatch({type:"failed"})},onPause:function(){o.dispatch({type:"pause"})},onContinue:function(){o.dispatch({type:"continue"})},retry:T.options.retry,retryDelay:T.options.retryDelay}),this.promise=this.retryer.promise,this.promise},n.dispatch=function(l){var s=this;this.state=this.reducer(this.state,l),ut.batch(function(){s.observers.forEach(function(o){o.onQueryUpdate(l)}),s.cache.notify({query:s,type:"queryUpdated",action:l})})},n.getDefaultState=function(l){var s=typeof l.initialData=="function"?l.initialData():l.initialData,o=typeof l.initialData<"u",c=o?typeof l.initialDataUpdatedAt=="function"?l.initialDataUpdatedAt():l.initialDataUpdatedAt:0,f=typeof s<"u";return{data:s,dataUpdateCount:0,dataUpdatedAt:f?c??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:f?"success":"idle"}},n.reducer=function(l,s){var o,c;switch(s.type){case"failed":return Me({},l,{fetchFailureCount:l.fetchFailureCount+1});case"pause":return Me({},l,{isPaused:!0});case"continue":return Me({},l,{isPaused:!1});case"fetch":return Me({},l,{fetchFailureCount:0,fetchMeta:(o=s.meta)!=null?o:null,isFetching:!0,isPaused:!1},!l.dataUpdatedAt&&{error:null,status:"loading"});case"success":return Me({},l,{data:s.data,dataUpdateCount:l.dataUpdateCount+1,dataUpdatedAt:(c=s.dataUpdatedAt)!=null?c:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var f=s.error;return Qu(f)&&f.revert&&this.revertState?Me({},this.revertState):Me({},l,{error:f,errorUpdateCount:l.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:l.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return Me({},l,{isInvalidated:!0});case"setState":return Me({},l,s.state);default:return l}},e}(),HE=function(e){Na(n,e);function n(l){var s;return s=e.call(this)||this,s.config=l||{},s.queries=[],s.queriesMap={},s}var i=n.prototype;return i.build=function(s,o,c){var f,h=o.queryKey,d=(f=o.queryHash)!=null?f:Sp(h,o),m=this.get(d);return m||(m=new qE({cache:this,queryKey:h,queryHash:d,options:s.defaultQueryOptions(o),state:c,defaultOptions:s.getQueryDefaults(h),meta:o.meta}),this.add(m)),m},i.add=function(s){this.queriesMap[s.queryHash]||(this.queriesMap[s.queryHash]=s,this.queries.push(s),this.notify({type:"queryAdded",query:s}))},i.remove=function(s){var o=this.queriesMap[s.queryHash];o&&(s.destroy(),this.queries=this.queries.filter(function(c){return c!==s}),o===s&&delete this.queriesMap[s.queryHash],this.notify({type:"queryRemoved",query:s}))},i.clear=function(){var s=this;ut.batch(function(){s.queries.forEach(function(o){s.remove(o)})})},i.get=function(s){return this.queriesMap[s]},i.getAll=function(){return this.queries},i.find=function(s,o){var c=Ui(s,o),f=c[0];return typeof f.exact>"u"&&(f.exact=!0),this.queries.find(function(h){return ob(f,h)})},i.findAll=function(s,o){var c=Ui(s,o),f=c[0];return Object.keys(f).length>0?this.queries.filter(function(h){return ob(f,h)}):this.queries},i.notify=function(s){var o=this;ut.batch(function(){o.listeners.forEach(function(c){c(s)})})},i.onFocus=function(){var s=this;ut.batch(function(){s.queries.forEach(function(o){o.onFocus()})})},i.onOnline=function(){var s=this;ut.batch(function(){s.queries.forEach(function(o){o.onOnline()})})},n}(Ra),FE=function(){function e(i){this.options=Me({},i.defaultOptions,i.options),this.mutationId=i.mutationId,this.mutationCache=i.mutationCache,this.observers=[],this.state=i.state||xv(),this.meta=i.meta}var n=e.prototype;return n.setState=function(l){this.dispatch({type:"setState",state:l})},n.addObserver=function(l){this.observers.indexOf(l)===-1&&this.observers.push(l)},n.removeObserver=function(l){this.observers=this.observers.filter(function(s){return s!==l})},n.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then($t).catch($t)):Promise.resolve()},n.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},n.execute=function(){var l=this,s,o=this.state.status==="loading",c=Promise.resolve();return o||(this.dispatch({type:"loading",variables:this.options.variables}),c=c.then(function(){l.mutationCache.config.onMutate==null||l.mutationCache.config.onMutate(l.state.variables,l)}).then(function(){return l.options.onMutate==null?void 0:l.options.onMutate(l.state.variables)}).then(function(f){f!==l.state.context&&l.dispatch({type:"loading",context:f,variables:l.state.variables})})),c.then(function(){return l.executeMutation()}).then(function(f){s=f,l.mutationCache.config.onSuccess==null||l.mutationCache.config.onSuccess(s,l.state.variables,l.state.context,l)}).then(function(){return l.options.onSuccess==null?void 0:l.options.onSuccess(s,l.state.variables,l.state.context)}).then(function(){return l.options.onSettled==null?void 0:l.options.onSettled(s,null,l.state.variables,l.state.context)}).then(function(){return l.dispatch({type:"success",data:s}),s}).catch(function(f){return l.mutationCache.config.onError==null||l.mutationCache.config.onError(f,l.state.variables,l.state.context,l),rc().error(f),Promise.resolve().then(function(){return l.options.onError==null?void 0:l.options.onError(f,l.state.variables,l.state.context)}).then(function(){return l.options.onSettled==null?void 0:l.options.onSettled(void 0,f,l.state.variables,l.state.context)}).then(function(){throw l.dispatch({type:"error",error:f}),f})})},n.executeMutation=function(){var l=this,s;return this.retryer=new bv({fn:function(){return l.options.mutationFn?l.options.mutationFn(l.state.variables):Promise.reject("No mutationFn found")},onFail:function(){l.dispatch({type:"failed"})},onPause:function(){l.dispatch({type:"pause"})},onContinue:function(){l.dispatch({type:"continue"})},retry:(s=this.options.retry)!=null?s:0,retryDelay:this.options.retryDelay}),this.retryer.promise},n.dispatch=function(l){var s=this;this.state=PE(this.state,l),ut.batch(function(){s.observers.forEach(function(o){o.onMutationUpdate(l)}),s.mutationCache.notify(s)})},e}();function xv(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function PE(e,n){switch(n.type){case"failed":return Me({},e,{failureCount:e.failureCount+1});case"pause":return Me({},e,{isPaused:!0});case"continue":return Me({},e,{isPaused:!1});case"loading":return Me({},e,{context:n.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:n.variables});case"success":return Me({},e,{data:n.data,error:null,status:"success",isPaused:!1});case"error":return Me({},e,{data:void 0,error:n.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return Me({},e,n.state);default:return e}}var wv=function(e){Na(n,e);function n(l){var s;return s=e.call(this)||this,s.config=l||{},s.mutations=[],s.mutationId=0,s}var i=n.prototype;return i.build=function(s,o,c){var f=new FE({mutationCache:this,mutationId:++this.mutationId,options:s.defaultMutationOptions(o),state:c,defaultOptions:o.mutationKey?s.getMutationDefaults(o.mutationKey):void 0,meta:o.meta});return this.add(f),f},i.add=function(s){this.mutations.push(s),this.notify(s)},i.remove=function(s){this.mutations=this.mutations.filter(function(o){return o!==s}),s.cancel(),this.notify(s)},i.clear=function(){var s=this;ut.batch(function(){s.mutations.forEach(function(o){s.remove(o)})})},i.getAll=function(){return this.mutations},i.find=function(s){return typeof s.exact>"u"&&(s.exact=!0),this.mutations.find(function(o){return ub(s,o)})},i.findAll=function(s){return this.mutations.filter(function(o){return ub(s,o)})},i.notify=function(s){var o=this;ut.batch(function(){o.listeners.forEach(function(c){c(s)})})},i.onFocus=function(){this.resumePausedMutations()},i.onOnline=function(){this.resumePausedMutations()},i.resumePausedMutations=function(){var s=this.mutations.filter(function(o){return o.state.isPaused});return ut.batch(function(){return s.reduce(function(o,c){return o.then(function(){return c.continue().catch($t)})},Promise.resolve())})},n}(Ra);function QE(){return{onFetch:function(n){n.fetchFn=function(){var i,l,s,o,c,f,h=(i=n.fetchOptions)==null||(l=i.meta)==null?void 0:l.refetchPage,d=(s=n.fetchOptions)==null||(o=s.meta)==null?void 0:o.fetchMore,m=d==null?void 0:d.pageParam,y=(d==null?void 0:d.direction)==="forward",x=(d==null?void 0:d.direction)==="backward",v=((c=n.state.data)==null?void 0:c.pages)||[],w=((f=n.state.data)==null?void 0:f.pageParams)||[],T=gv(),_=T==null?void 0:T.signal,E=w,N=!1,j=n.options.queryFn||function(){return Promise.reject("Missing queryFn")},q=function(J,oe,B,G){return E=G?[oe].concat(E):[].concat(E,[oe]),G?[B].concat(J):[].concat(J,[B])},L=function(J,oe,B,G){if(N)return Promise.reject("Cancelled");if(typeof B>"u"&&!oe&&J.length)return Promise.resolve(J);var ne={queryKey:n.queryKey,signal:_,pageParam:B,meta:n.meta},pe=j(ne),C=Promise.resolve(pe).then(function(se){return q(J,B,se,G)});if(nc(pe)){var I=C;I.cancel=pe.cancel}return C},D;if(!v.length)D=L([]);else if(y){var X=typeof m<"u",ee=X?m:db(n.options,v);D=L(v,X,ee)}else if(x){var ie=typeof m<"u",U=ie?m:IE(n.options,v);D=L(v,ie,U,!0)}else(function(){E=[];var ue=typeof n.options.getNextPageParam>"u",J=h&&v[0]?h(v[0],0,v):!0;D=J?L([],ue,w[0]):Promise.resolve(q([],w[0],v[0]));for(var oe=function(ne){D=D.then(function(pe){var C=h&&v[ne]?h(v[ne],ne,v):!0;if(C){var I=ue?w[ne]:db(n.options,pe);return L(pe,ue,I)}return Promise.resolve(q(pe,w[ne],v[ne]))})},B=1;B<v.length;B++)oe(B)})();var ae=D.then(function(ue){return{pages:ue,pageParams:E}}),te=ae;return te.cancel=function(){N=!0,T==null||T.abort(),nc(D)&&D.cancel()},ae}}}}function db(e,n){return e.getNextPageParam==null?void 0:e.getNextPageParam(n[n.length-1],n)}function IE(e,n){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(n[0],n)}var VE=function(){function e(i){i===void 0&&(i={}),this.queryCache=i.queryCache||new HE,this.mutationCache=i.mutationCache||new wv,this.defaultOptions=i.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var n=e.prototype;return n.mount=function(){var l=this;this.unsubscribeFocus=Qs.subscribe(function(){Qs.isFocused()&&Pu.isOnline()&&(l.mutationCache.onFocus(),l.queryCache.onFocus())}),this.unsubscribeOnline=Pu.subscribe(function(){Qs.isFocused()&&Pu.isOnline()&&(l.mutationCache.onOnline(),l.queryCache.onOnline())})},n.unmount=function(){var l,s;(l=this.unsubscribeFocus)==null||l.call(this),(s=this.unsubscribeOnline)==null||s.call(this)},n.isFetching=function(l,s){var o=Ui(l,s),c=o[0];return c.fetching=!0,this.queryCache.findAll(c).length},n.isMutating=function(l){return this.mutationCache.findAll(Me({},l,{fetching:!0})).length},n.getQueryData=function(l,s){var o;return(o=this.queryCache.find(l,s))==null?void 0:o.state.data},n.getQueriesData=function(l){return this.getQueryCache().findAll(l).map(function(s){var o=s.queryKey,c=s.state,f=c.data;return[o,f]})},n.setQueryData=function(l,s,o){var c=Fu(l),f=this.defaultQueryOptions(c);return this.queryCache.build(this,f).setData(s,o)},n.setQueriesData=function(l,s,o){var c=this;return ut.batch(function(){return c.getQueryCache().findAll(l).map(function(f){var h=f.queryKey;return[h,c.setQueryData(h,s,o)]})})},n.getQueryState=function(l,s){var o;return(o=this.queryCache.find(l,s))==null?void 0:o.state},n.removeQueries=function(l,s){var o=Ui(l,s),c=o[0],f=this.queryCache;ut.batch(function(){f.findAll(c).forEach(function(h){f.remove(h)})})},n.resetQueries=function(l,s,o){var c=this,f=Ui(l,s,o),h=f[0],d=f[1],m=this.queryCache,y=Me({},h,{active:!0});return ut.batch(function(){return m.findAll(h).forEach(function(x){x.reset()}),c.refetchQueries(y,d)})},n.cancelQueries=function(l,s,o){var c=this,f=Ui(l,s,o),h=f[0],d=f[1],m=d===void 0?{}:d;typeof m.revert>"u"&&(m.revert=!0);var y=ut.batch(function(){return c.queryCache.findAll(h).map(function(x){return x.cancel(m)})});return Promise.all(y).then($t).catch($t)},n.invalidateQueries=function(l,s,o){var c,f,h,d=this,m=Ui(l,s,o),y=m[0],x=m[1],v=Me({},y,{active:(c=(f=y.refetchActive)!=null?f:y.active)!=null?c:!0,inactive:(h=y.refetchInactive)!=null?h:!1});return ut.batch(function(){return d.queryCache.findAll(y).forEach(function(w){w.invalidate()}),d.refetchQueries(v,x)})},n.refetchQueries=function(l,s,o){var c=this,f=Ui(l,s,o),h=f[0],d=f[1],m=ut.batch(function(){return c.queryCache.findAll(h).map(function(x){return x.fetch(void 0,Me({},d,{meta:{refetchPage:h==null?void 0:h.refetchPage}}))})}),y=Promise.all(m).then($t);return d!=null&&d.throwOnError||(y=y.catch($t)),y},n.fetchQuery=function(l,s,o){var c=Fu(l,s,o),f=this.defaultQueryOptions(c);typeof f.retry>"u"&&(f.retry=!1);var h=this.queryCache.build(this,f);return h.isStaleByTime(f.staleTime)?h.fetch(f):Promise.resolve(h.state.data)},n.prefetchQuery=function(l,s,o){return this.fetchQuery(l,s,o).then($t).catch($t)},n.fetchInfiniteQuery=function(l,s,o){var c=Fu(l,s,o);return c.behavior=QE(),this.fetchQuery(c)},n.prefetchInfiniteQuery=function(l,s,o){return this.fetchInfiniteQuery(l,s,o).then($t).catch($t)},n.cancelMutations=function(){var l=this,s=ut.batch(function(){return l.mutationCache.getAll().map(function(o){return o.cancel()})});return Promise.all(s).then($t).catch($t)},n.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},n.executeMutation=function(l){return this.mutationCache.build(this,l).execute()},n.getQueryCache=function(){return this.queryCache},n.getMutationCache=function(){return this.mutationCache},n.getDefaultOptions=function(){return this.defaultOptions},n.setDefaultOptions=function(l){this.defaultOptions=l},n.setQueryDefaults=function(l,s){var o=this.queryDefaults.find(function(c){return dl(l)===dl(c.queryKey)});o?o.defaultOptions=s:this.queryDefaults.push({queryKey:l,defaultOptions:s})},n.getQueryDefaults=function(l){var s;return l?(s=this.queryDefaults.find(function(o){return ec(l,o.queryKey)}))==null?void 0:s.defaultOptions:void 0},n.setMutationDefaults=function(l,s){var o=this.mutationDefaults.find(function(c){return dl(l)===dl(c.mutationKey)});o?o.defaultOptions=s:this.mutationDefaults.push({mutationKey:l,defaultOptions:s})},n.getMutationDefaults=function(l){var s;return l?(s=this.mutationDefaults.find(function(o){return ec(l,o.mutationKey)}))==null?void 0:s.defaultOptions:void 0},n.defaultQueryOptions=function(l){if(l!=null&&l._defaulted)return l;var s=Me({},this.defaultOptions.queries,this.getQueryDefaults(l==null?void 0:l.queryKey),l,{_defaulted:!0});return!s.queryHash&&s.queryKey&&(s.queryHash=Sp(s.queryKey,s)),s},n.defaultQueryObserverOptions=function(l){return this.defaultQueryOptions(l)},n.defaultMutationOptions=function(l){return l!=null&&l._defaulted?l:Me({},this.defaultOptions.mutations,this.getMutationDefaults(l==null?void 0:l.mutationKey),l,{_defaulted:!0})},n.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),$E=function(e){Na(n,e);function n(l,s){var o;return o=e.call(this)||this,o.client=l,o.options=s,o.trackedProps=[],o.selectError=null,o.bindMethods(),o.setOptions(s),o}var i=n.prototype;return i.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},i.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),hb(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},i.onUnsubscribe=function(){this.listeners.length||this.destroy()},i.shouldFetchOnReconnect=function(){return qh(this.currentQuery,this.options,this.options.refetchOnReconnect)},i.shouldFetchOnWindowFocus=function(){return qh(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},i.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},i.setOptions=function(s,o){var c=this.options,f=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(s),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=c.queryKey),this.updateQuery();var h=this.hasListeners();h&&pb(this.currentQuery,f,this.options,c)&&this.executeFetch(),this.updateResult(o),h&&(this.currentQuery!==f||this.options.enabled!==c.enabled||this.options.staleTime!==c.staleTime)&&this.updateStaleTimeout();var d=this.computeRefetchInterval();h&&(this.currentQuery!==f||this.options.enabled!==c.enabled||d!==this.currentRefetchInterval)&&this.updateRefetchInterval(d)},i.getOptimisticResult=function(s){var o=this.client.defaultQueryObserverOptions(s),c=this.client.getQueryCache().build(this.client,o);return this.createResult(c,o)},i.getCurrentResult=function(){return this.currentResult},i.trackResult=function(s,o){var c=this,f={},h=function(m){c.trackedProps.includes(m)||c.trackedProps.push(m)};return Object.keys(s).forEach(function(d){Object.defineProperty(f,d,{configurable:!1,enumerable:!0,get:function(){return h(d),s[d]}})}),(o.useErrorBoundary||o.suspense)&&h("error"),f},i.getNextResult=function(s){var o=this;return new Promise(function(c,f){var h=o.subscribe(function(d){d.isFetching||(h(),d.isError&&(s!=null&&s.throwOnError)?f(d.error):c(d))})})},i.getCurrentQuery=function(){return this.currentQuery},i.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},i.refetch=function(s){return this.fetch(Me({},s,{meta:{refetchPage:s==null?void 0:s.refetchPage}}))},i.fetchOptimistic=function(s){var o=this,c=this.client.defaultQueryObserverOptions(s),f=this.client.getQueryCache().build(this.client,c);return f.fetch().then(function(){return o.createResult(f,c)})},i.fetch=function(s){var o=this;return this.executeFetch(s).then(function(){return o.updateResult(),o.currentResult})},i.executeFetch=function(s){this.updateQuery();var o=this.currentQuery.fetch(this.options,s);return s!=null&&s.throwOnError||(o=o.catch($t)),o},i.updateStaleTimeout=function(){var s=this;if(this.clearStaleTimeout(),!(Ju||this.currentResult.isStale||!Uh(this.options.staleTime))){var o=pv(this.currentResult.dataUpdatedAt,this.options.staleTime),c=o+1;this.staleTimeoutId=setTimeout(function(){s.currentResult.isStale||s.updateResult()},c)}},i.computeRefetchInterval=function(){var s;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(s=this.options.refetchInterval)!=null?s:!1},i.updateRefetchInterval=function(s){var o=this;this.clearRefetchInterval(),this.currentRefetchInterval=s,!(Ju||this.options.enabled===!1||!Uh(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(o.options.refetchIntervalInBackground||Qs.isFocused())&&o.executeFetch()},this.currentRefetchInterval))},i.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},i.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},i.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},i.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},i.createResult=function(s,o){var c=this.currentQuery,f=this.options,h=this.currentResult,d=this.currentResultState,m=this.currentResultOptions,y=s!==c,x=y?s.state:this.currentQueryInitialState,v=y?this.currentResult:this.previousQueryResult,w=s.state,T=w.dataUpdatedAt,_=w.error,E=w.errorUpdatedAt,N=w.isFetching,j=w.status,q=!1,L=!1,D;if(o.optimisticResults){var X=this.hasListeners(),ee=!X&&hb(s,o),ie=X&&pb(s,c,o,f);(ee||ie)&&(N=!0,T||(j="loading"))}if(o.keepPreviousData&&!w.dataUpdateCount&&(v!=null&&v.isSuccess)&&j!=="error")D=v.data,T=v.dataUpdatedAt,j=v.status,q=!0;else if(o.select&&typeof w.data<"u")if(h&&w.data===(d==null?void 0:d.data)&&o.select===this.selectFn)D=this.selectResult;else try{this.selectFn=o.select,D=o.select(w.data),o.structuralSharing!==!1&&(D=tc(h==null?void 0:h.data,D)),this.selectResult=D,this.selectError=null}catch(te){rc().error(te),this.selectError=te}else D=w.data;if(typeof o.placeholderData<"u"&&typeof D>"u"&&(j==="loading"||j==="idle")){var U;if(h!=null&&h.isPlaceholderData&&o.placeholderData===(m==null?void 0:m.placeholderData))U=h.data;else if(U=typeof o.placeholderData=="function"?o.placeholderData():o.placeholderData,o.select&&typeof U<"u")try{U=o.select(U),o.structuralSharing!==!1&&(U=tc(h==null?void 0:h.data,U)),this.selectError=null}catch(te){rc().error(te),this.selectError=te}typeof U<"u"&&(j="success",D=U,L=!0)}this.selectError&&(_=this.selectError,D=this.selectResult,E=Date.now(),j="error");var ae={status:j,isLoading:j==="loading",isSuccess:j==="success",isError:j==="error",isIdle:j==="idle",data:D,dataUpdatedAt:T,error:_,errorUpdatedAt:E,failureCount:w.fetchFailureCount,errorUpdateCount:w.errorUpdateCount,isFetched:w.dataUpdateCount>0||w.errorUpdateCount>0,isFetchedAfterMount:w.dataUpdateCount>x.dataUpdateCount||w.errorUpdateCount>x.errorUpdateCount,isFetching:N,isRefetching:N&&j!=="loading",isLoadingError:j==="error"&&w.dataUpdatedAt===0,isPlaceholderData:L,isPreviousData:q,isRefetchError:j==="error"&&w.dataUpdatedAt!==0,isStale:Cp(s,o),refetch:this.refetch,remove:this.remove};return ae},i.shouldNotifyListeners=function(s,o){if(!o)return!0;var c=this.options,f=c.notifyOnChangeProps,h=c.notifyOnChangePropsExclusions;if(!f&&!h||f==="tracked"&&!this.trackedProps.length)return!0;var d=f==="tracked"?this.trackedProps:f;return Object.keys(s).some(function(m){var y=m,x=s[y]!==o[y],v=d==null?void 0:d.some(function(T){return T===m}),w=h==null?void 0:h.some(function(T){return T===m});return x&&!w&&(!d||v)})},i.updateResult=function(s){var o=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!OE(this.currentResult,o)){var c={cache:!0};(s==null?void 0:s.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,o)&&(c.listeners=!0),this.notify(Me({},c,s))}},i.updateQuery=function(){var s=this.client.getQueryCache().build(this.client,this.options);if(s!==this.currentQuery){var o=this.currentQuery;this.currentQuery=s,this.currentQueryInitialState=s.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(o==null||o.removeObserver(this),s.addObserver(this))}},i.onQueryUpdate=function(s){var o={};s.type==="success"?o.onSuccess=!0:s.type==="error"&&!Qu(s.error)&&(o.onError=!0),this.updateResult(o),this.hasListeners()&&this.updateTimers()},i.notify=function(s){var o=this;ut.batch(function(){s.onSuccess?(o.options.onSuccess==null||o.options.onSuccess(o.currentResult.data),o.options.onSettled==null||o.options.onSettled(o.currentResult.data,null)):s.onError&&(o.options.onError==null||o.options.onError(o.currentResult.error),o.options.onSettled==null||o.options.onSettled(void 0,o.currentResult.error)),s.listeners&&o.listeners.forEach(function(c){c(o.currentResult)}),s.cache&&o.client.getQueryCache().notify({query:o.currentQuery,type:"observerResultsUpdated"})})},n}(Ra);function YE(e,n){return n.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&n.retryOnMount===!1)}function hb(e,n){return YE(e,n)||e.state.dataUpdatedAt>0&&qh(e,n,n.refetchOnMount)}function qh(e,n,i){if(n.enabled!==!1){var l=typeof i=="function"?i(e):i;return l==="always"||l!==!1&&Cp(e,n)}return!1}function pb(e,n,i,l){return i.enabled!==!1&&(e!==n||l.enabled===!1)&&(!i.suspense||e.state.status!=="error")&&Cp(e,i)}function Cp(e,n){return e.isStaleByTime(n.staleTime)}var KE=function(e){Na(n,e);function n(l,s){var o;return o=e.call(this)||this,o.client=l,o.setOptions(s),o.bindMethods(),o.updateResult(),o}var i=n.prototype;return i.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},i.setOptions=function(s){this.options=this.client.defaultMutationOptions(s)},i.onUnsubscribe=function(){if(!this.listeners.length){var s;(s=this.currentMutation)==null||s.removeObserver(this)}},i.onMutationUpdate=function(s){this.updateResult();var o={listeners:!0};s.type==="success"?o.onSuccess=!0:s.type==="error"&&(o.onError=!0),this.notify(o)},i.getCurrentResult=function(){return this.currentResult},i.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},i.mutate=function(s,o){return this.mutateOptions=o,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,Me({},this.options,{variables:typeof s<"u"?s:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},i.updateResult=function(){var s=this.currentMutation?this.currentMutation.state:xv(),o=Me({},s,{isLoading:s.status==="loading",isSuccess:s.status==="success",isError:s.status==="error",isIdle:s.status==="idle",mutate:this.mutate,reset:this.reset});this.currentResult=o},i.notify=function(s){var o=this;ut.batch(function(){o.mutateOptions&&(s.onSuccess?(o.mutateOptions.onSuccess==null||o.mutateOptions.onSuccess(o.currentResult.data,o.currentResult.variables,o.currentResult.context),o.mutateOptions.onSettled==null||o.mutateOptions.onSettled(o.currentResult.data,null,o.currentResult.variables,o.currentResult.context)):s.onError&&(o.mutateOptions.onError==null||o.mutateOptions.onError(o.currentResult.error,o.currentResult.variables,o.currentResult.context),o.mutateOptions.onSettled==null||o.mutateOptions.onSettled(void 0,o.currentResult.error,o.currentResult.variables,o.currentResult.context))),s.listeners&&o.listeners.forEach(function(c){c(o.currentResult)})})},n}(Ra),GE=TE.unstable_batchedUpdates;ut.setBatchNotifyFunction(GE);var XE=console;BE(XE);var mb=nt.createContext(void 0),Sv=nt.createContext(!1);function Cv(e){return e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=mb),window.ReactQueryClientContext):mb}var Ev=function(){var n=nt.useContext(Cv(nt.useContext(Sv)));if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},ZE=function(n){var i=n.client,l=n.contextSharing,s=l===void 0?!1:l,o=n.children;nt.useEffect(function(){return i.mount(),function(){i.unmount()}},[i]);var c=Cv(s);return nt.createElement(Sv.Provider,{value:s},nt.createElement(c.Provider,{value:i},o))};function JE(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var WE=nt.createContext(JE()),e3=function(){return nt.useContext(WE)};function kv(e,n,i){return typeof n=="function"?n.apply(void 0,i):typeof n=="boolean"?n:!!e}function er(e,n,i){var l=nt.useRef(!1),s=nt.useState(0),o=s[1],c=NE(e,n,i),f=Ev(),h=nt.useRef();h.current?h.current.setOptions(c):h.current=new KE(f,c);var d=h.current.getCurrentResult();nt.useEffect(function(){l.current=!0;var y=h.current.subscribe(ut.batchCalls(function(){l.current&&o(function(x){return x+1})}));return function(){l.current=!1,y()}},[]);var m=nt.useCallback(function(y,x){h.current.mutate(y,x).catch($t)},[]);if(d.error&&kv(void 0,h.current.options.useErrorBoundary,[d.error]))throw d.error;return Me({},d,{mutate:m,mutateAsync:d.mutate})}function t3(e,n){var i=nt.useRef(!1),l=nt.useState(0),s=l[1],o=Ev(),c=e3(),f=o.defaultQueryObserverOptions(e);f.optimisticResults=!0,f.onError&&(f.onError=ut.batchCalls(f.onError)),f.onSuccess&&(f.onSuccess=ut.batchCalls(f.onSuccess)),f.onSettled&&(f.onSettled=ut.batchCalls(f.onSettled)),f.suspense&&(typeof f.staleTime!="number"&&(f.staleTime=1e3),f.cacheTime===0&&(f.cacheTime=1)),(f.suspense||f.useErrorBoundary)&&(c.isReset()||(f.retryOnMount=!1));var h=nt.useState(function(){return new n(o,f)}),d=h[0],m=d.getOptimisticResult(f);if(nt.useEffect(function(){i.current=!0,c.clearReset();var y=d.subscribe(ut.batchCalls(function(){i.current&&s(function(x){return x+1})}));return d.updateResult(),function(){i.current=!1,y()}},[c,d]),nt.useEffect(function(){d.setOptions(f,{listeners:!1})},[f,d]),f.suspense&&m.isLoading)throw d.fetchOptimistic(f).then(function(y){var x=y.data;f.onSuccess==null||f.onSuccess(x),f.onSettled==null||f.onSettled(x,null)}).catch(function(y){c.clearReset(),f.onError==null||f.onError(y),f.onSettled==null||f.onSettled(void 0,y)});if(m.isError&&!c.isReset()&&!m.isFetching&&kv(f.suspense,f.useErrorBoundary,[m.error,d.getCurrentQuery()]))throw m.error;return f.notifyOnChangeProps==="tracked"&&(m=d.trackResult(m,f)),m}function zn(e,n,i){var l=Fu(e,n,i);return t3(l,$E)}function Av(e,n){return function(){return e.apply(n,arguments)}}const{toString:n3}=Object.prototype,{getPrototypeOf:Ep}=Object,{iterator:vc,toStringTag:Tv}=Symbol,xc=(e=>n=>{const i=n3.call(n);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),hr=e=>(e=e.toLowerCase(),n=>xc(n)===e),wc=e=>n=>typeof n===e,{isArray:ja}=Array,Gs=wc("undefined");function r3(e){return e!==null&&!Gs(e)&&e.constructor!==null&&!Gs(e.constructor)&&vn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const _v=hr("ArrayBuffer");function i3(e){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&_v(e.buffer),n}const l3=wc("string"),vn=wc("function"),Nv=wc("number"),Sc=e=>e!==null&&typeof e=="object",a3=e=>e===!0||e===!1,Iu=e=>{if(xc(e)!=="object")return!1;const n=Ep(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Tv in e)&&!(vc in e)},s3=hr("Date"),o3=hr("File"),u3=hr("Blob"),c3=hr("FileList"),f3=e=>Sc(e)&&vn(e.pipe),d3=e=>{let n;return e&&(typeof FormData=="function"&&e instanceof FormData||vn(e.append)&&((n=xc(e))==="formdata"||n==="object"&&vn(e.toString)&&e.toString()==="[object FormData]"))},h3=hr("URLSearchParams"),[p3,m3,g3,y3]=["ReadableStream","Request","Response","Headers"].map(hr),b3=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ro(e,n,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let l,s;if(typeof e!="object"&&(e=[e]),ja(e))for(l=0,s=e.length;l<s;l++)n.call(null,e[l],l,e);else{const o=i?Object.getOwnPropertyNames(e):Object.keys(e),c=o.length;let f;for(l=0;l<c;l++)f=o[l],n.call(null,e[f],f,e)}}function Rv(e,n){n=n.toLowerCase();const i=Object.keys(e);let l=i.length,s;for(;l-- >0;)if(s=i[l],n===s.toLowerCase())return s;return null}const hl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,jv=e=>!Gs(e)&&e!==hl;function Hh(){const{caseless:e}=jv(this)&&this||{},n={},i=(l,s)=>{const o=e&&Rv(n,s)||s;Iu(n[o])&&Iu(l)?n[o]=Hh(n[o],l):Iu(l)?n[o]=Hh({},l):ja(l)?n[o]=l.slice():n[o]=l};for(let l=0,s=arguments.length;l<s;l++)arguments[l]&&ro(arguments[l],i);return n}const v3=(e,n,i,{allOwnKeys:l}={})=>(ro(n,(s,o)=>{i&&vn(s)?e[o]=Av(s,i):e[o]=s},{allOwnKeys:l}),e),x3=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),w3=(e,n,i,l)=>{e.prototype=Object.create(n.prototype,l),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:n.prototype}),i&&Object.assign(e.prototype,i)},S3=(e,n,i,l)=>{let s,o,c;const f={};if(n=n||{},e==null)return n;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)c=s[o],(!l||l(c,e,n))&&!f[c]&&(n[c]=e[c],f[c]=!0);e=i!==!1&&Ep(e)}while(e&&(!i||i(e,n))&&e!==Object.prototype);return n},C3=(e,n,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=n.length;const l=e.indexOf(n,i);return l!==-1&&l===i},E3=e=>{if(!e)return null;if(ja(e))return e;let n=e.length;if(!Nv(n))return null;const i=new Array(n);for(;n-- >0;)i[n]=e[n];return i},k3=(e=>n=>e&&n instanceof e)(typeof Uint8Array<"u"&&Ep(Uint8Array)),A3=(e,n)=>{const l=(e&&e[vc]).call(e);let s;for(;(s=l.next())&&!s.done;){const o=s.value;n.call(e,o[0],o[1])}},T3=(e,n)=>{let i;const l=[];for(;(i=e.exec(n))!==null;)l.push(i);return l},_3=hr("HTMLFormElement"),N3=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,l,s){return l.toUpperCase()+s}),gb=(({hasOwnProperty:e})=>(n,i)=>e.call(n,i))(Object.prototype),R3=hr("RegExp"),Ov=(e,n)=>{const i=Object.getOwnPropertyDescriptors(e),l={};ro(i,(s,o)=>{let c;(c=n(s,o,e))!==!1&&(l[o]=c||s)}),Object.defineProperties(e,l)},j3=e=>{Ov(e,(n,i)=>{if(vn(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const l=e[i];if(vn(l)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},O3=(e,n)=>{const i={},l=s=>{s.forEach(o=>{i[o]=!0})};return ja(e)?l(e):l(String(e).split(n)),i},D3=()=>{},M3=(e,n)=>e!=null&&Number.isFinite(e=+e)?e:n;function L3(e){return!!(e&&vn(e.append)&&e[Tv]==="FormData"&&e[vc])}const z3=e=>{const n=new Array(10),i=(l,s)=>{if(Sc(l)){if(n.indexOf(l)>=0)return;if(!("toJSON"in l)){n[s]=l;const o=ja(l)?[]:{};return ro(l,(c,f)=>{const h=i(c,s+1);!Gs(h)&&(o[f]=h)}),n[s]=void 0,o}}return l};return i(e,0)},U3=hr("AsyncFunction"),B3=e=>e&&(Sc(e)||vn(e))&&vn(e.then)&&vn(e.catch),Dv=((e,n)=>e?setImmediate:n?((i,l)=>(hl.addEventListener("message",({source:s,data:o})=>{s===hl&&o===i&&l.length&&l.shift()()},!1),s=>{l.push(s),hl.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",vn(hl.postMessage)),q3=typeof queueMicrotask<"u"?queueMicrotask.bind(hl):typeof process<"u"&&process.nextTick||Dv,H3=e=>e!=null&&vn(e[vc]),V={isArray:ja,isArrayBuffer:_v,isBuffer:r3,isFormData:d3,isArrayBufferView:i3,isString:l3,isNumber:Nv,isBoolean:a3,isObject:Sc,isPlainObject:Iu,isReadableStream:p3,isRequest:m3,isResponse:g3,isHeaders:y3,isUndefined:Gs,isDate:s3,isFile:o3,isBlob:u3,isRegExp:R3,isFunction:vn,isStream:f3,isURLSearchParams:h3,isTypedArray:k3,isFileList:c3,forEach:ro,merge:Hh,extend:v3,trim:b3,stripBOM:x3,inherits:w3,toFlatObject:S3,kindOf:xc,kindOfTest:hr,endsWith:C3,toArray:E3,forEachEntry:A3,matchAll:T3,isHTMLForm:_3,hasOwnProperty:gb,hasOwnProp:gb,reduceDescriptors:Ov,freezeMethods:j3,toObjectSet:O3,toCamelCase:N3,noop:D3,toFiniteNumber:M3,findKey:Rv,global:hl,isContextDefined:jv,isSpecCompliantForm:L3,toJSONObject:z3,isAsyncFn:U3,isThenable:B3,setImmediate:Dv,asap:q3,isIterable:H3};function _e(e,n,i,l,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",n&&(this.code=n),i&&(this.config=i),l&&(this.request=l),s&&(this.response=s,this.status=s.status?s.status:null)}V.inherits(_e,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:V.toJSONObject(this.config),code:this.code,status:this.status}}});const Mv=_e.prototype,Lv={};["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(e=>{Lv[e]={value:e}});Object.defineProperties(_e,Lv);Object.defineProperty(Mv,"isAxiosError",{value:!0});_e.from=(e,n,i,l,s,o)=>{const c=Object.create(Mv);return V.toFlatObject(e,c,function(h){return h!==Error.prototype},f=>f!=="isAxiosError"),_e.call(c,e.message,n,i,l,s),c.cause=e,c.name=e.name,o&&Object.assign(c,o),c};const F3=null;function Fh(e){return V.isPlainObject(e)||V.isArray(e)}function zv(e){return V.endsWith(e,"[]")?e.slice(0,-2):e}function yb(e,n,i){return e?e.concat(n).map(function(s,o){return s=zv(s),!i&&o?"["+s+"]":s}).join(i?".":""):n}function P3(e){return V.isArray(e)&&!e.some(Fh)}const Q3=V.toFlatObject(V,{},null,function(n){return/^is[A-Z]/.test(n)});function Cc(e,n,i){if(!V.isObject(e))throw new TypeError("target must be an object");n=n||new FormData,i=V.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(T,_){return!V.isUndefined(_[T])});const l=i.metaTokens,s=i.visitor||m,o=i.dots,c=i.indexes,h=(i.Blob||typeof Blob<"u"&&Blob)&&V.isSpecCompliantForm(n);if(!V.isFunction(s))throw new TypeError("visitor must be a function");function d(w){if(w===null)return"";if(V.isDate(w))return w.toISOString();if(!h&&V.isBlob(w))throw new _e("Blob is not supported. Use a Buffer instead.");return V.isArrayBuffer(w)||V.isTypedArray(w)?h&&typeof Blob=="function"?new Blob([w]):Buffer.from(w):w}function m(w,T,_){let E=w;if(w&&!_&&typeof w=="object"){if(V.endsWith(T,"{}"))T=l?T:T.slice(0,-2),w=JSON.stringify(w);else if(V.isArray(w)&&P3(w)||(V.isFileList(w)||V.endsWith(T,"[]"))&&(E=V.toArray(w)))return T=zv(T),E.forEach(function(j,q){!(V.isUndefined(j)||j===null)&&n.append(c===!0?yb([T],q,o):c===null?T:T+"[]",d(j))}),!1}return Fh(w)?!0:(n.append(yb(_,T,o),d(w)),!1)}const y=[],x=Object.assign(Q3,{defaultVisitor:m,convertValue:d,isVisitable:Fh});function v(w,T){if(!V.isUndefined(w)){if(y.indexOf(w)!==-1)throw Error("Circular reference detected in "+T.join("."));y.push(w),V.forEach(w,function(E,N){(!(V.isUndefined(E)||E===null)&&s.call(n,E,V.isString(N)?N.trim():N,T,x))===!0&&v(E,T?T.concat(N):[N])}),y.pop()}}if(!V.isObject(e))throw new TypeError("data must be an object");return v(e),n}function bb(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(l){return n[l]})}function kp(e,n){this._pairs=[],e&&Cc(e,this,n)}const Uv=kp.prototype;Uv.append=function(n,i){this._pairs.push([n,i])};Uv.toString=function(n){const i=n?function(l){return n.call(this,l,bb)}:bb;return this._pairs.map(function(s){return i(s[0])+"="+i(s[1])},"").join("&")};function I3(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Bv(e,n,i){if(!n)return e;const l=i&&i.encode||I3;V.isFunction(i)&&(i={serialize:i});const s=i&&i.serialize;let o;if(s?o=s(n,i):o=V.isURLSearchParams(n)?n.toString():new kp(n,i).toString(l),o){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class vb{constructor(){this.handlers=[]}use(n,i,l){return this.handlers.push({fulfilled:n,rejected:i,synchronous:l?l.synchronous:!1,runWhen:l?l.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){V.forEach(this.handlers,function(l){l!==null&&n(l)})}}const qv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},V3=typeof URLSearchParams<"u"?URLSearchParams:kp,$3=typeof FormData<"u"?FormData:null,Y3=typeof Blob<"u"?Blob:null,K3={isBrowser:!0,classes:{URLSearchParams:V3,FormData:$3,Blob:Y3},protocols:["http","https","file","blob","url","data"]},Ap=typeof window<"u"&&typeof document<"u",Ph=typeof navigator=="object"&&navigator||void 0,G3=Ap&&(!Ph||["ReactNative","NativeScript","NS"].indexOf(Ph.product)<0),X3=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Z3=Ap&&window.location.href||"http://localhost",J3=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ap,hasStandardBrowserEnv:G3,hasStandardBrowserWebWorkerEnv:X3,navigator:Ph,origin:Z3},Symbol.toStringTag,{value:"Module"})),Wt={...J3,...K3};function W3(e,n){return Cc(e,new Wt.classes.URLSearchParams,Object.assign({visitor:function(i,l,s,o){return Wt.isNode&&V.isBuffer(i)?(this.append(l,i.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},n))}function e4(e){return V.matchAll(/\w+|\[(\w*)]/g,e).map(n=>n[0]==="[]"?"":n[1]||n[0])}function t4(e){const n={},i=Object.keys(e);let l;const s=i.length;let o;for(l=0;l<s;l++)o=i[l],n[o]=e[o];return n}function Hv(e){function n(i,l,s,o){let c=i[o++];if(c==="__proto__")return!0;const f=Number.isFinite(+c),h=o>=i.length;return c=!c&&V.isArray(s)?s.length:c,h?(V.hasOwnProp(s,c)?s[c]=[s[c],l]:s[c]=l,!f):((!s[c]||!V.isObject(s[c]))&&(s[c]=[]),n(i,l,s[c],o)&&V.isArray(s[c])&&(s[c]=t4(s[c])),!f)}if(V.isFormData(e)&&V.isFunction(e.entries)){const i={};return V.forEachEntry(e,(l,s)=>{n(e4(l),s,i,0)}),i}return null}function n4(e,n,i){if(V.isString(e))try{return(n||JSON.parse)(e),V.trim(e)}catch(l){if(l.name!=="SyntaxError")throw l}return(i||JSON.stringify)(e)}const io={transitional:qv,adapter:["xhr","http","fetch"],transformRequest:[function(n,i){const l=i.getContentType()||"",s=l.indexOf("application/json")>-1,o=V.isObject(n);if(o&&V.isHTMLForm(n)&&(n=new FormData(n)),V.isFormData(n))return s?JSON.stringify(Hv(n)):n;if(V.isArrayBuffer(n)||V.isBuffer(n)||V.isStream(n)||V.isFile(n)||V.isBlob(n)||V.isReadableStream(n))return n;if(V.isArrayBufferView(n))return n.buffer;if(V.isURLSearchParams(n))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let f;if(o){if(l.indexOf("application/x-www-form-urlencoded")>-1)return W3(n,this.formSerializer).toString();if((f=V.isFileList(n))||l.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return Cc(f?{"files[]":n}:n,h&&new h,this.formSerializer)}}return o||s?(i.setContentType("application/json",!1),n4(n)):n}],transformResponse:[function(n){const i=this.transitional||io.transitional,l=i&&i.forcedJSONParsing,s=this.responseType==="json";if(V.isResponse(n)||V.isReadableStream(n))return n;if(n&&V.isString(n)&&(l&&!this.responseType||s)){const c=!(i&&i.silentJSONParsing)&&s;try{return JSON.parse(n)}catch(f){if(c)throw f.name==="SyntaxError"?_e.from(f,_e.ERR_BAD_RESPONSE,this,null,this.response):f}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Wt.classes.FormData,Blob:Wt.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};V.forEach(["delete","get","head","post","put","patch"],e=>{io.headers[e]={}});const r4=V.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"]),i4=e=>{const n={};let i,l,s;return e&&e.split(`
52
- `).forEach(function(c){s=c.indexOf(":"),i=c.substring(0,s).trim().toLowerCase(),l=c.substring(s+1).trim(),!(!i||n[i]&&r4[i])&&(i==="set-cookie"?n[i]?n[i].push(l):n[i]=[l]:n[i]=n[i]?n[i]+", "+l:l)}),n},xb=Symbol("internals");function zs(e){return e&&String(e).trim().toLowerCase()}function Vu(e){return e===!1||e==null?e:V.isArray(e)?e.map(Vu):String(e)}function l4(e){const n=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let l;for(;l=i.exec(e);)n[l[1]]=l[2];return n}const a4=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ih(e,n,i,l,s){if(V.isFunction(l))return l.call(this,n,i);if(s&&(n=i),!!V.isString(n)){if(V.isString(l))return n.indexOf(l)!==-1;if(V.isRegExp(l))return l.test(n)}}function s4(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,i,l)=>i.toUpperCase()+l)}function o4(e,n){const i=V.toCamelCase(" "+n);["get","set","has"].forEach(l=>{Object.defineProperty(e,l+i,{value:function(s,o,c){return this[l].call(this,n,s,o,c)},configurable:!0})})}let xn=class{constructor(n){n&&this.set(n)}set(n,i,l){const s=this;function o(f,h,d){const m=zs(h);if(!m)throw new Error("header name must be a non-empty string");const y=V.findKey(s,m);(!y||s[y]===void 0||d===!0||d===void 0&&s[y]!==!1)&&(s[y||h]=Vu(f))}const c=(f,h)=>V.forEach(f,(d,m)=>o(d,m,h));if(V.isPlainObject(n)||n instanceof this.constructor)c(n,i);else if(V.isString(n)&&(n=n.trim())&&!a4(n))c(i4(n),i);else if(V.isObject(n)&&V.isIterable(n)){let f={},h,d;for(const m of n){if(!V.isArray(m))throw TypeError("Object iterator must return a key-value pair");f[d=m[0]]=(h=f[d])?V.isArray(h)?[...h,m[1]]:[h,m[1]]:m[1]}c(f,i)}else n!=null&&o(i,n,l);return this}get(n,i){if(n=zs(n),n){const l=V.findKey(this,n);if(l){const s=this[l];if(!i)return s;if(i===!0)return l4(s);if(V.isFunction(i))return i.call(this,s,l);if(V.isRegExp(i))return i.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,i){if(n=zs(n),n){const l=V.findKey(this,n);return!!(l&&this[l]!==void 0&&(!i||ih(this,this[l],l,i)))}return!1}delete(n,i){const l=this;let s=!1;function o(c){if(c=zs(c),c){const f=V.findKey(l,c);f&&(!i||ih(l,l[f],f,i))&&(delete l[f],s=!0)}}return V.isArray(n)?n.forEach(o):o(n),s}clear(n){const i=Object.keys(this);let l=i.length,s=!1;for(;l--;){const o=i[l];(!n||ih(this,this[o],o,n,!0))&&(delete this[o],s=!0)}return s}normalize(n){const i=this,l={};return V.forEach(this,(s,o)=>{const c=V.findKey(l,o);if(c){i[c]=Vu(s),delete i[o];return}const f=n?s4(o):String(o).trim();f!==o&&delete i[o],i[f]=Vu(s),l[f]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const i=Object.create(null);return V.forEach(this,(l,s)=>{l!=null&&l!==!1&&(i[s]=n&&V.isArray(l)?l.join(", "):l)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,i])=>n+": "+i).join(`
53
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...i){const l=new this(n);return i.forEach(s=>l.set(s)),l}static accessor(n){const l=(this[xb]=this[xb]={accessors:{}}).accessors,s=this.prototype;function o(c){const f=zs(c);l[f]||(o4(s,c),l[f]=!0)}return V.isArray(n)?n.forEach(o):o(n),this}};xn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);V.reduceDescriptors(xn.prototype,({value:e},n)=>{let i=n[0].toUpperCase()+n.slice(1);return{get:()=>e,set(l){this[i]=l}}});V.freezeMethods(xn);function lh(e,n){const i=this||io,l=n||i,s=xn.from(l.headers);let o=l.data;return V.forEach(e,function(f){o=f.call(i,o,s.normalize(),n?n.status:void 0)}),s.normalize(),o}function Fv(e){return!!(e&&e.__CANCEL__)}function Oa(e,n,i){_e.call(this,e??"canceled",_e.ERR_CANCELED,n,i),this.name="CanceledError"}V.inherits(Oa,_e,{__CANCEL__:!0});function Pv(e,n,i){const l=i.config.validateStatus;!i.status||!l||l(i.status)?e(i):n(new _e("Request failed with status code "+i.status,[_e.ERR_BAD_REQUEST,_e.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function u4(e){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}function c4(e,n){e=e||10;const i=new Array(e),l=new Array(e);let s=0,o=0,c;return n=n!==void 0?n:1e3,function(h){const d=Date.now(),m=l[o];c||(c=d),i[s]=h,l[s]=d;let y=o,x=0;for(;y!==s;)x+=i[y++],y=y%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),d-c<n)return;const v=m&&d-m;return v?Math.round(x*1e3/v):void 0}}function f4(e,n){let i=0,l=1e3/n,s,o;const c=(d,m=Date.now())=>{i=m,s=null,o&&(clearTimeout(o),o=null),e.apply(null,d)};return[(...d)=>{const m=Date.now(),y=m-i;y>=l?c(d,m):(s=d,o||(o=setTimeout(()=>{o=null,c(s)},l-y)))},()=>s&&c(s)]}const ic=(e,n,i=3)=>{let l=0;const s=c4(50,250);return f4(o=>{const c=o.loaded,f=o.lengthComputable?o.total:void 0,h=c-l,d=s(h),m=c<=f;l=c;const y={loaded:c,total:f,progress:f?c/f:void 0,bytes:h,rate:d||void 0,estimated:d&&f&&m?(f-c)/d:void 0,event:o,lengthComputable:f!=null,[n?"download":"upload"]:!0};e(y)},i)},wb=(e,n)=>{const i=e!=null;return[l=>n[0]({lengthComputable:i,total:e,loaded:l}),n[1]]},Sb=e=>(...n)=>V.asap(()=>e(...n)),d4=Wt.hasStandardBrowserEnv?((e,n)=>i=>(i=new URL(i,Wt.origin),e.protocol===i.protocol&&e.host===i.host&&(n||e.port===i.port)))(new URL(Wt.origin),Wt.navigator&&/(msie|trident)/i.test(Wt.navigator.userAgent)):()=>!0,h4=Wt.hasStandardBrowserEnv?{write(e,n,i,l,s,o){const c=[e+"="+encodeURIComponent(n)];V.isNumber(i)&&c.push("expires="+new Date(i).toGMTString()),V.isString(l)&&c.push("path="+l),V.isString(s)&&c.push("domain="+s),o===!0&&c.push("secure"),document.cookie=c.join("; ")},read(e){const n=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function p4(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function m4(e,n){return n?e.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):e}function Qv(e,n,i){let l=!p4(n);return e&&(l||i==!1)?m4(e,n):n}const Cb=e=>e instanceof xn?{...e}:e;function bl(e,n){n=n||{};const i={};function l(d,m,y,x){return V.isPlainObject(d)&&V.isPlainObject(m)?V.merge.call({caseless:x},d,m):V.isPlainObject(m)?V.merge({},m):V.isArray(m)?m.slice():m}function s(d,m,y,x){if(V.isUndefined(m)){if(!V.isUndefined(d))return l(void 0,d,y,x)}else return l(d,m,y,x)}function o(d,m){if(!V.isUndefined(m))return l(void 0,m)}function c(d,m){if(V.isUndefined(m)){if(!V.isUndefined(d))return l(void 0,d)}else return l(void 0,m)}function f(d,m,y){if(y in n)return l(d,m);if(y in e)return l(void 0,d)}const h={url:o,method:o,data:o,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:f,headers:(d,m,y)=>s(Cb(d),Cb(m),y,!0)};return V.forEach(Object.keys(Object.assign({},e,n)),function(m){const y=h[m]||s,x=y(e[m],n[m],m);V.isUndefined(x)&&y!==f||(i[m]=x)}),i}const Iv=e=>{const n=bl({},e);let{data:i,withXSRFToken:l,xsrfHeaderName:s,xsrfCookieName:o,headers:c,auth:f}=n;n.headers=c=xn.from(c),n.url=Bv(Qv(n.baseURL,n.url,n.allowAbsoluteUrls),e.params,e.paramsSerializer),f&&c.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?unescape(encodeURIComponent(f.password)):"")));let h;if(V.isFormData(i)){if(Wt.hasStandardBrowserEnv||Wt.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if((h=c.getContentType())!==!1){const[d,...m]=h?h.split(";").map(y=>y.trim()).filter(Boolean):[];c.setContentType([d||"multipart/form-data",...m].join("; "))}}if(Wt.hasStandardBrowserEnv&&(l&&V.isFunction(l)&&(l=l(n)),l||l!==!1&&d4(n.url))){const d=s&&o&&h4.read(o);d&&c.set(s,d)}return n},g4=typeof XMLHttpRequest<"u",y4=g4&&function(e){return new Promise(function(i,l){const s=Iv(e);let o=s.data;const c=xn.from(s.headers).normalize();let{responseType:f,onUploadProgress:h,onDownloadProgress:d}=s,m,y,x,v,w;function T(){v&&v(),w&&w(),s.cancelToken&&s.cancelToken.unsubscribe(m),s.signal&&s.signal.removeEventListener("abort",m)}let _=new XMLHttpRequest;_.open(s.method.toUpperCase(),s.url,!0),_.timeout=s.timeout;function E(){if(!_)return;const j=xn.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),L={data:!f||f==="text"||f==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:j,config:e,request:_};Pv(function(X){i(X),T()},function(X){l(X),T()},L),_=null}"onloadend"in _?_.onloadend=E:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(E)},_.onabort=function(){_&&(l(new _e("Request aborted",_e.ECONNABORTED,e,_)),_=null)},_.onerror=function(){l(new _e("Network Error",_e.ERR_NETWORK,e,_)),_=null},_.ontimeout=function(){let q=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const L=s.transitional||qv;s.timeoutErrorMessage&&(q=s.timeoutErrorMessage),l(new _e(q,L.clarifyTimeoutError?_e.ETIMEDOUT:_e.ECONNABORTED,e,_)),_=null},o===void 0&&c.setContentType(null),"setRequestHeader"in _&&V.forEach(c.toJSON(),function(q,L){_.setRequestHeader(L,q)}),V.isUndefined(s.withCredentials)||(_.withCredentials=!!s.withCredentials),f&&f!=="json"&&(_.responseType=s.responseType),d&&([x,w]=ic(d,!0),_.addEventListener("progress",x)),h&&_.upload&&([y,v]=ic(h),_.upload.addEventListener("progress",y),_.upload.addEventListener("loadend",v)),(s.cancelToken||s.signal)&&(m=j=>{_&&(l(!j||j.type?new Oa(null,e,_):j),_.abort(),_=null)},s.cancelToken&&s.cancelToken.subscribe(m),s.signal&&(s.signal.aborted?m():s.signal.addEventListener("abort",m)));const N=u4(s.url);if(N&&Wt.protocols.indexOf(N)===-1){l(new _e("Unsupported protocol "+N+":",_e.ERR_BAD_REQUEST,e));return}_.send(o||null)})},b4=(e,n)=>{const{length:i}=e=e?e.filter(Boolean):[];if(n||i){let l=new AbortController,s;const o=function(d){if(!s){s=!0,f();const m=d instanceof Error?d:this.reason;l.abort(m instanceof _e?m:new Oa(m instanceof Error?m.message:m))}};let c=n&&setTimeout(()=>{c=null,o(new _e(`timeout ${n} of ms exceeded`,_e.ETIMEDOUT))},n);const f=()=>{e&&(c&&clearTimeout(c),c=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(o):d.removeEventListener("abort",o)}),e=null)};e.forEach(d=>d.addEventListener("abort",o));const{signal:h}=l;return h.unsubscribe=()=>V.asap(f),h}},v4=function*(e,n){let i=e.byteLength;if(i<n){yield e;return}let l=0,s;for(;l<i;)s=l+n,yield e.slice(l,s),l=s},x4=async function*(e,n){for await(const i of w4(e))yield*v4(i,n)},w4=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const n=e.getReader();try{for(;;){const{done:i,value:l}=await n.read();if(i)break;yield l}}finally{await n.cancel()}},Eb=(e,n,i,l)=>{const s=x4(e,n);let o=0,c,f=h=>{c||(c=!0,l&&l(h))};return new ReadableStream({async pull(h){try{const{done:d,value:m}=await s.next();if(d){f(),h.close();return}let y=m.byteLength;if(i){let x=o+=y;i(x)}h.enqueue(new Uint8Array(m))}catch(d){throw f(d),d}},cancel(h){return f(h),s.return()}},{highWaterMark:2})},Ec=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Vv=Ec&&typeof ReadableStream=="function",S4=Ec&&(typeof TextEncoder=="function"?(e=>n=>e.encode(n))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),$v=(e,...n)=>{try{return!!e(...n)}catch{return!1}},C4=Vv&&$v(()=>{let e=!1;const n=new Request(Wt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!n}),kb=64*1024,Qh=Vv&&$v(()=>V.isReadableStream(new Response("").body)),lc={stream:Qh&&(e=>e.body)};Ec&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(n=>{!lc[n]&&(lc[n]=V.isFunction(e[n])?i=>i[n]():(i,l)=>{throw new _e(`Response type '${n}' is not supported`,_e.ERR_NOT_SUPPORT,l)})})})(new Response);const E4=async e=>{if(e==null)return 0;if(V.isBlob(e))return e.size;if(V.isSpecCompliantForm(e))return(await new Request(Wt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(V.isArrayBufferView(e)||V.isArrayBuffer(e))return e.byteLength;if(V.isURLSearchParams(e)&&(e=e+""),V.isString(e))return(await S4(e)).byteLength},k4=async(e,n)=>{const i=V.toFiniteNumber(e.getContentLength());return i??E4(n)},A4=Ec&&(async e=>{let{url:n,method:i,data:l,signal:s,cancelToken:o,timeout:c,onDownloadProgress:f,onUploadProgress:h,responseType:d,headers:m,withCredentials:y="same-origin",fetchOptions:x}=Iv(e);d=d?(d+"").toLowerCase():"text";let v=b4([s,o&&o.toAbortSignal()],c),w;const T=v&&v.unsubscribe&&(()=>{v.unsubscribe()});let _;try{if(h&&C4&&i!=="get"&&i!=="head"&&(_=await k4(m,l))!==0){let L=new Request(n,{method:"POST",body:l,duplex:"half"}),D;if(V.isFormData(l)&&(D=L.headers.get("content-type"))&&m.setContentType(D),L.body){const[X,ee]=wb(_,ic(Sb(h)));l=Eb(L.body,kb,X,ee)}}V.isString(y)||(y=y?"include":"omit");const E="credentials"in Request.prototype;w=new Request(n,{...x,signal:v,method:i.toUpperCase(),headers:m.normalize().toJSON(),body:l,duplex:"half",credentials:E?y:void 0});let N=await fetch(w);const j=Qh&&(d==="stream"||d==="response");if(Qh&&(f||j&&T)){const L={};["status","statusText","headers"].forEach(ie=>{L[ie]=N[ie]});const D=V.toFiniteNumber(N.headers.get("content-length")),[X,ee]=f&&wb(D,ic(Sb(f),!0))||[];N=new Response(Eb(N.body,kb,X,()=>{ee&&ee(),T&&T()}),L)}d=d||"text";let q=await lc[V.findKey(lc,d)||"text"](N,e);return!j&&T&&T(),await new Promise((L,D)=>{Pv(L,D,{data:q,headers:xn.from(N.headers),status:N.status,statusText:N.statusText,config:e,request:w})})}catch(E){throw T&&T(),E&&E.name==="TypeError"&&/Load failed|fetch/i.test(E.message)?Object.assign(new _e("Network Error",_e.ERR_NETWORK,e,w),{cause:E.cause||E}):_e.from(E,E&&E.code,e,w)}}),Ih={http:F3,xhr:y4,fetch:A4};V.forEach(Ih,(e,n)=>{if(e){try{Object.defineProperty(e,"name",{value:n})}catch{}Object.defineProperty(e,"adapterName",{value:n})}});const Ab=e=>`- ${e}`,T4=e=>V.isFunction(e)||e===null||e===!1,Yv={getAdapter:e=>{e=V.isArray(e)?e:[e];const{length:n}=e;let i,l;const s={};for(let o=0;o<n;o++){i=e[o];let c;if(l=i,!T4(i)&&(l=Ih[(c=String(i)).toLowerCase()],l===void 0))throw new _e(`Unknown adapter '${c}'`);if(l)break;s[c||"#"+o]=l}if(!l){const o=Object.entries(s).map(([f,h])=>`adapter ${f} `+(h===!1?"is not supported by the environment":"is not available in the build"));let c=n?o.length>1?`since :
54
- `+o.map(Ab).join(`
55
- `):" "+Ab(o[0]):"as no adapter specified";throw new _e("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return l},adapters:Ih};function ah(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Oa(null,e)}function Tb(e){return ah(e),e.headers=xn.from(e.headers),e.data=lh.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Yv.getAdapter(e.adapter||io.adapter)(e).then(function(l){return ah(e),l.data=lh.call(e,e.transformResponse,l),l.headers=xn.from(l.headers),l},function(l){return Fv(l)||(ah(e),l&&l.response&&(l.response.data=lh.call(e,e.transformResponse,l.response),l.response.headers=xn.from(l.response.headers))),Promise.reject(l)})}const Kv="1.9.0",kc={};["object","boolean","number","function","string","symbol"].forEach((e,n)=>{kc[e]=function(l){return typeof l===e||"a"+(n<1?"n ":" ")+e}});const _b={};kc.transitional=function(n,i,l){function s(o,c){return"[Axios v"+Kv+"] Transitional option '"+o+"'"+c+(l?". "+l:"")}return(o,c,f)=>{if(n===!1)throw new _e(s(c," has been removed"+(i?" in "+i:"")),_e.ERR_DEPRECATED);return i&&!_b[c]&&(_b[c]=!0,console.warn(s(c," has been deprecated since v"+i+" and will be removed in the near future"))),n?n(o,c,f):!0}};kc.spelling=function(n){return(i,l)=>(console.warn(`${l} is likely a misspelling of ${n}`),!0)};function _4(e,n,i){if(typeof e!="object")throw new _e("options must be an object",_e.ERR_BAD_OPTION_VALUE);const l=Object.keys(e);let s=l.length;for(;s-- >0;){const o=l[s],c=n[o];if(c){const f=e[o],h=f===void 0||c(f,o,e);if(h!==!0)throw new _e("option "+o+" must be "+h,_e.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new _e("Unknown option "+o,_e.ERR_BAD_OPTION)}}const $u={assertOptions:_4,validators:kc},Er=$u.validators;let ml=class{constructor(n){this.defaults=n||{},this.interceptors={request:new vb,response:new vb}}async request(n,i){try{return await this._request(n,i)}catch(l){if(l instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{l.stack?o&&!String(l.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(l.stack+=`
56
- `+o):l.stack=o}catch{}}throw l}}_request(n,i){typeof n=="string"?(i=i||{},i.url=n):i=n||{},i=bl(this.defaults,i);const{transitional:l,paramsSerializer:s,headers:o}=i;l!==void 0&&$u.assertOptions(l,{silentJSONParsing:Er.transitional(Er.boolean),forcedJSONParsing:Er.transitional(Er.boolean),clarifyTimeoutError:Er.transitional(Er.boolean)},!1),s!=null&&(V.isFunction(s)?i.paramsSerializer={serialize:s}:$u.assertOptions(s,{encode:Er.function,serialize:Er.function},!0)),i.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),$u.assertOptions(i,{baseUrl:Er.spelling("baseURL"),withXsrfToken:Er.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();let c=o&&V.merge(o.common,o[i.method]);o&&V.forEach(["delete","get","head","post","put","patch","common"],w=>{delete o[w]}),i.headers=xn.concat(c,o);const f=[];let h=!0;this.interceptors.request.forEach(function(T){typeof T.runWhen=="function"&&T.runWhen(i)===!1||(h=h&&T.synchronous,f.unshift(T.fulfilled,T.rejected))});const d=[];this.interceptors.response.forEach(function(T){d.push(T.fulfilled,T.rejected)});let m,y=0,x;if(!h){const w=[Tb.bind(this),void 0];for(w.unshift.apply(w,f),w.push.apply(w,d),x=w.length,m=Promise.resolve(i);y<x;)m=m.then(w[y++],w[y++]);return m}x=f.length;let v=i;for(y=0;y<x;){const w=f[y++],T=f[y++];try{v=w(v)}catch(_){T.call(this,_);break}}try{m=Tb.call(this,v)}catch(w){return Promise.reject(w)}for(y=0,x=d.length;y<x;)m=m.then(d[y++],d[y++]);return m}getUri(n){n=bl(this.defaults,n);const i=Qv(n.baseURL,n.url,n.allowAbsoluteUrls);return Bv(i,n.params,n.paramsSerializer)}};V.forEach(["delete","get","head","options"],function(n){ml.prototype[n]=function(i,l){return this.request(bl(l||{},{method:n,url:i,data:(l||{}).data}))}});V.forEach(["post","put","patch"],function(n){function i(l){return function(o,c,f){return this.request(bl(f||{},{method:n,headers:l?{"Content-Type":"multipart/form-data"}:{},url:o,data:c}))}}ml.prototype[n]=i(),ml.prototype[n+"Form"]=i(!0)});let N4=class Gv{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let i;this.promise=new Promise(function(o){i=o});const l=this;this.promise.then(s=>{if(!l._listeners)return;let o=l._listeners.length;for(;o-- >0;)l._listeners[o](s);l._listeners=null}),this.promise.then=s=>{let o;const c=new Promise(f=>{l.subscribe(f),o=f}).then(s);return c.cancel=function(){l.unsubscribe(o)},c},n(function(o,c,f){l.reason||(l.reason=new Oa(o,c,f),i(l.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const i=this._listeners.indexOf(n);i!==-1&&this._listeners.splice(i,1)}toAbortSignal(){const n=new AbortController,i=l=>{n.abort(l)};return this.subscribe(i),n.signal.unsubscribe=()=>this.unsubscribe(i),n.signal}static source(){let n;return{token:new Gv(function(s){n=s}),cancel:n}}};function R4(e){return function(i){return e.apply(null,i)}}function j4(e){return V.isObject(e)&&e.isAxiosError===!0}const Vh={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(Vh).forEach(([e,n])=>{Vh[n]=e});function Xv(e){const n=new ml(e),i=Av(ml.prototype.request,n);return V.extend(i,ml.prototype,n,{allOwnKeys:!0}),V.extend(i,n,null,{allOwnKeys:!0}),i.create=function(s){return Xv(bl(e,s))},i}const xt=Xv(io);xt.Axios=ml;xt.CanceledError=Oa;xt.CancelToken=N4;xt.isCancel=Fv;xt.VERSION=Kv;xt.toFormData=Cc;xt.AxiosError=_e;xt.Cancel=xt.CanceledError;xt.all=function(n){return Promise.all(n)};xt.spread=R4;xt.isAxiosError=j4;xt.mergeConfig=bl;xt.AxiosHeaders=xn;xt.formToJSON=e=>Hv(V.isHTMLForm(e)?new FormData(e):e);xt.getAdapter=Yv.getAdapter;xt.HttpStatusCode=Vh;xt.default=xt;const{Axios:h9,AxiosError:O4,CanceledError:p9,isCancel:m9,CancelToken:g9,VERSION:y9,all:b9,Cancel:v9,isAxiosError:ac,spread:x9,toFormData:w9,AxiosHeaders:S9,HttpStatusCode:C9,formToJSON:E9,getAdapter:k9,mergeConfig:A9}=xt,$h="__access_token__",D4=()=>{try{const e=localStorage.getItem($h);return e||void 0}catch{return}},_u=e=>{e?localStorage.setItem($h,e):localStorage.removeItem($h)};let M4={data:""},L4=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||M4,z4=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,U4=/\/\*[^]*?\*\/| +/g,Nb=/\n+/g,Bi=(e,n)=>{let i="",l="",s="";for(let o in e){let c=e[o];o[0]=="@"?o[1]=="i"?i=o+" "+c+";":l+=o[1]=="f"?Bi(c,o):o+"{"+Bi(c,o[1]=="k"?"":n)+"}":typeof c=="object"?l+=Bi(c,n?n.replace(/([^,])+/g,f=>o.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,h=>/&/.test(h)?h.replace(/&/g,f):f?f+" "+h:h)):o):c!=null&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),s+=Bi.p?Bi.p(o,c):o+":"+c+";")}return i+(n&&s?n+"{"+s+"}":s)+l},ei={},Zv=e=>{if(typeof e=="object"){let n="";for(let i in e)n+=i+Zv(e[i]);return n}return e},B4=(e,n,i,l,s)=>{let o=Zv(e),c=ei[o]||(ei[o]=(h=>{let d=0,m=11;for(;d<h.length;)m=101*m+h.charCodeAt(d++)>>>0;return"go"+m})(o));if(!ei[c]){let h=o!==e?e:(d=>{let m,y,x=[{}];for(;m=z4.exec(d.replace(U4,""));)m[4]?x.shift():m[3]?(y=m[3].replace(Nb," ").trim(),x.unshift(x[0][y]=x[0][y]||{})):x[0][m[1]]=m[2].replace(Nb," ").trim();return x[0]})(e);ei[c]=Bi(s?{["@keyframes "+c]:h}:h,i?"":"."+c)}let f=i&&ei.g?ei.g:null;return i&&(ei.g=ei[c]),((h,d,m,y)=>{y?d.data=d.data.replace(y,h):d.data.indexOf(h)===-1&&(d.data=m?h+d.data:d.data+h)})(ei[c],n,l,f),c},q4=(e,n,i)=>e.reduce((l,s,o)=>{let c=n[o];if(c&&c.call){let f=c(i),h=f&&f.props&&f.props.className||/^go/.test(f)&&f;c=h?"."+h:f&&typeof f=="object"?f.props?"":Bi(f,""):f===!1?"":f}return l+s+(c??"")},"");function Ac(e){let n=this||{},i=e.call?e(n.p):e;return B4(i.unshift?i.raw?q4(i,[].slice.call(arguments,1),n.p):i.reduce((l,s)=>Object.assign(l,s&&s.call?s(n.p):s),{}):i,L4(n.target),n.g,n.o,n.k)}let Jv,Yh,Kh;Ac.bind({g:1});let li=Ac.bind({k:1});function H4(e,n,i,l){Bi.p=n,Jv=e,Yh=i,Kh=l}function Qi(e,n){let i=this||{};return function(){let l=arguments;function s(o,c){let f=Object.assign({},o),h=f.className||s.className;i.p=Object.assign({theme:Yh&&Yh()},f),i.o=/ *go\d+/.test(h),f.className=Ac.apply(i,l)+(h?" "+h:"");let d=e;return e[0]&&(d=f.as||e,delete f.as),Kh&&d[0]&&Kh(f),Jv(d,f)}return s}}var F4=e=>typeof e=="function",sc=(e,n)=>F4(e)?e(n):e,P4=(()=>{let e=0;return()=>(++e).toString()})(),Wv=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let n=matchMedia("(prefers-reduced-motion: reduce)");e=!n||n.matches}return e}})(),Q4=20,ex=(e,n)=>{switch(n.type){case 0:return{...e,toasts:[n.toast,...e.toasts].slice(0,Q4)};case 1:return{...e,toasts:e.toasts.map(o=>o.id===n.toast.id?{...o,...n.toast}:o)};case 2:let{toast:i}=n;return ex(e,{type:e.toasts.find(o=>o.id===i.id)?1:0,toast:i});case 3:let{toastId:l}=n;return{...e,toasts:e.toasts.map(o=>o.id===l||l===void 0?{...o,dismissed:!0,visible:!1}:o)};case 4:return n.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(o=>o.id!==n.toastId)};case 5:return{...e,pausedAt:n.time};case 6:let s=n.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(o=>({...o,pauseDuration:o.pauseDuration+s}))}}},Yu=[],pl={toasts:[],pausedAt:void 0},El=e=>{pl=ex(pl,e),Yu.forEach(n=>{n(pl)})},I4={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},V4=(e={})=>{let[n,i]=k.useState(pl),l=k.useRef(pl);k.useEffect(()=>(l.current!==pl&&i(pl),Yu.push(i),()=>{let o=Yu.indexOf(i);o>-1&&Yu.splice(o,1)}),[]);let s=n.toasts.map(o=>{var c,f,h;return{...e,...e[o.type],...o,removeDelay:o.removeDelay||((c=e[o.type])==null?void 0:c.removeDelay)||(e==null?void 0:e.removeDelay),duration:o.duration||((f=e[o.type])==null?void 0:f.duration)||(e==null?void 0:e.duration)||I4[o.type],style:{...e.style,...(h=e[o.type])==null?void 0:h.style,...o.style}}});return{...n,toasts:s}},$4=(e,n="blank",i)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:n,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...i,id:(i==null?void 0:i.id)||P4()}),lo=e=>(n,i)=>{let l=$4(n,e,i);return El({type:2,toast:l}),l.id},on=(e,n)=>lo("blank")(e,n);on.error=lo("error");on.success=lo("success");on.loading=lo("loading");on.custom=lo("custom");on.dismiss=e=>{El({type:3,toastId:e})};on.remove=e=>El({type:4,toastId:e});on.promise=(e,n,i)=>{let l=on.loading(n.loading,{...i,...i==null?void 0:i.loading});return typeof e=="function"&&(e=e()),e.then(s=>{let o=n.success?sc(n.success,s):void 0;return o?on.success(o,{id:l,...i,...i==null?void 0:i.success}):on.dismiss(l),s}).catch(s=>{let o=n.error?sc(n.error,s):void 0;o?on.error(o,{id:l,...i,...i==null?void 0:i.error}):on.dismiss(l)}),e};var Y4=(e,n)=>{El({type:1,toast:{id:e,height:n}})},K4=()=>{El({type:5,time:Date.now()})},Is=new Map,G4=1e3,X4=(e,n=G4)=>{if(Is.has(e))return;let i=setTimeout(()=>{Is.delete(e),El({type:4,toastId:e})},n);Is.set(e,i)},Z4=e=>{let{toasts:n,pausedAt:i}=V4(e);k.useEffect(()=>{if(i)return;let o=Date.now(),c=n.map(f=>{if(f.duration===1/0)return;let h=(f.duration||0)+f.pauseDuration-(o-f.createdAt);if(h<0){f.visible&&on.dismiss(f.id);return}return setTimeout(()=>on.dismiss(f.id),h)});return()=>{c.forEach(f=>f&&clearTimeout(f))}},[n,i]);let l=k.useCallback(()=>{i&&El({type:6,time:Date.now()})},[i]),s=k.useCallback((o,c)=>{let{reverseOrder:f=!1,gutter:h=8,defaultPosition:d}=c||{},m=n.filter(v=>(v.position||d)===(o.position||d)&&v.height),y=m.findIndex(v=>v.id===o.id),x=m.filter((v,w)=>w<y&&v.visible).length;return m.filter(v=>v.visible).slice(...f?[x+1]:[0,x]).reduce((v,w)=>v+(w.height||0)+h,0)},[n]);return k.useEffect(()=>{n.forEach(o=>{if(o.dismissed)X4(o.id,o.removeDelay);else{let c=Is.get(o.id);c&&(clearTimeout(c),Is.delete(o.id))}})},[n]),{toasts:n,handlers:{updateHeight:Y4,startPause:K4,endPause:l,calculateOffset:s}}},J4=li`
57
- from {
58
- transform: scale(0) rotate(45deg);
59
- opacity: 0;
60
- }
61
- to {
62
- transform: scale(1) rotate(45deg);
63
- opacity: 1;
64
- }`,W4=li`
65
- from {
66
- transform: scale(0);
67
- opacity: 0;
68
- }
69
- to {
70
- transform: scale(1);
71
- opacity: 1;
72
- }`,ek=li`
73
- from {
74
- transform: scale(0) rotate(90deg);
75
- opacity: 0;
76
- }
77
- to {
78
- transform: scale(1) rotate(90deg);
79
- opacity: 1;
80
- }`,tk=Qi("div")`
81
- width: 20px;
82
- opacity: 0;
83
- height: 20px;
84
- border-radius: 10px;
85
- background: ${e=>e.primary||"#ff4b4b"};
86
- position: relative;
87
- transform: rotate(45deg);
88
-
89
- animation: ${J4} 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: ${W4} 0.15s ease-out forwards;
97
- animation-delay: 150ms;
98
- position: absolute;
99
- border-radius: 3px;
100
- opacity: 0;
101
- background: ${e=>e.secondary||"#fff"};
102
- bottom: 9px;
103
- left: 4px;
104
- height: 2px;
105
- width: 12px;
106
- }
107
-
108
- &:before {
109
- animation: ${ek} 0.15s ease-out forwards;
110
- animation-delay: 180ms;
111
- transform: rotate(90deg);
112
- }
113
- `,nk=li`
114
- from {
115
- transform: rotate(0deg);
116
- }
117
- to {
118
- transform: rotate(360deg);
119
- }
120
- `,rk=Qi("div")`
121
- width: 12px;
122
- height: 12px;
123
- box-sizing: border-box;
124
- border: 2px solid;
125
- border-radius: 100%;
126
- border-color: ${e=>e.secondary||"#e0e0e0"};
127
- border-right-color: ${e=>e.primary||"#616161"};
128
- animation: ${nk} 1s linear infinite;
129
- `,ik=li`
130
- from {
131
- transform: scale(0) rotate(45deg);
132
- opacity: 0;
133
- }
134
- to {
135
- transform: scale(1) rotate(45deg);
136
- opacity: 1;
137
- }`,lk=li`
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
- }`,ak=Qi("div")`
152
- width: 20px;
153
- opacity: 0;
154
- height: 20px;
155
- border-radius: 10px;
156
- background: ${e=>e.primary||"#61d345"};
157
- position: relative;
158
- transform: rotate(45deg);
159
-
160
- animation: ${ik} 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: ${lk} 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: ${e=>e.secondary||"#fff"};
173
- bottom: 6px;
174
- left: 6px;
175
- height: 10px;
176
- width: 6px;
177
- }
178
- `,sk=Qi("div")`
179
- position: absolute;
180
- `,ok=Qi("div")`
181
- position: relative;
182
- display: flex;
183
- justify-content: center;
184
- align-items: center;
185
- min-width: 20px;
186
- min-height: 20px;
187
- `,uk=li`
188
- from {
189
- transform: scale(0.6);
190
- opacity: 0.4;
191
- }
192
- to {
193
- transform: scale(1);
194
- opacity: 1;
195
- }`,ck=Qi("div")`
196
- position: relative;
197
- transform: scale(0.6);
198
- opacity: 0.4;
199
- min-width: 20px;
200
- animation: ${uk} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
201
- forwards;
202
- `,fk=({toast:e})=>{let{icon:n,type:i,iconTheme:l}=e;return n!==void 0?typeof n=="string"?k.createElement(ck,null,n):n:i==="blank"?null:k.createElement(ok,null,k.createElement(rk,{...l}),i!=="loading"&&k.createElement(sk,null,i==="error"?k.createElement(tk,{...l}):k.createElement(ak,{...l})))},dk=e=>`
203
- 0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
204
- 100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
205
- `,hk=e=>`
206
- 0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
207
- 100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
208
- `,pk="0%{opacity:0;} 100%{opacity:1;}",mk="0%{opacity:1;} 100%{opacity:0;}",gk=Qi("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
- `,yk=Qi("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
- `,bk=(e,n)=>{let i=e.includes("top")?1:-1,[l,s]=Wv()?[pk,mk]:[dk(i),hk(i)];return{animation:n?`${li(l)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${li(s)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},vk=k.memo(({toast:e,position:n,style:i,children:l})=>{let s=e.height?bk(e.position||n||"top-center",e.visible):{opacity:0},o=k.createElement(fk,{toast:e}),c=k.createElement(yk,{...e.ariaProps},sc(e.message,e));return k.createElement(gk,{className:e.className,style:{...s,...i,...e.style}},typeof l=="function"?l({icon:o,message:c}):k.createElement(k.Fragment,null,o,c))});H4(k.createElement);var xk=({id:e,className:n,style:i,onHeightUpdate:l,children:s})=>{let o=k.useCallback(c=>{if(c){let f=()=>{let h=c.getBoundingClientRect().height;l(e,h)};f(),new MutationObserver(f).observe(c,{subtree:!0,childList:!0,characterData:!0})}},[e,l]);return k.createElement("div",{ref:o,className:n,style:i},s)},wk=(e,n)=>{let i=e.includes("top"),l=i?{top:0}:{bottom:0},s=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Wv()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${n*(i?1:-1)}px)`,...l,...s}},Sk=Ac`
228
- z-index: 9999;
229
- > * {
230
- pointer-events: auto;
231
- }
232
- `,Nu=16,Ck=({reverseOrder:e,position:n="top-center",toastOptions:i,gutter:l,children:s,containerStyle:o,containerClassName:c})=>{let{toasts:f,handlers:h}=Z4(i);return k.createElement("div",{id:"_rht_toaster",style:{position:"fixed",zIndex:9999,top:Nu,left:Nu,right:Nu,bottom:Nu,pointerEvents:"none",...o},className:c,onMouseEnter:h.startPause,onMouseLeave:h.endPause},f.map(d=>{let m=d.position||n,y=h.calculateOffset(d,{reverseOrder:e,gutter:l,defaultPosition:n}),x=wk(m,y);return k.createElement(xk,{id:d.id,key:d.id,onHeightUpdate:h.updateHeight,className:d.visible?Sk:"",style:x},d.type==="custom"?sc(d.message,d):s?s(d):k.createElement(vk,{toast:d,position:m}))}))},tn=on;const mt=new VE({defaultOptions:{queries:{staleTime:1e3*60*5,retry:(e,n)=>{var i;return ac(n)&&((i=n.response)==null?void 0:i.status)===404?!1:e<3}}},mutationCache:new wv({onError:e=>{var n;ac(e)&&e.status&&e.status>=400&&e.status<500&&(n=e.response)!=null&&n.data.error&&tn.error(e.response.data.error)}})}),Ek=async()=>{const{data:e}=await Tc.post("/auth/refresh");return e.data.accessToken},kk=async e=>{const{data:n}=await Tc.post("/auth/login",e);return n.data.accessToken},sh=()=>{mt.invalidateQueries({queryKey:["accessToken"]})},ao=(()=>{let e=Promise.resolve(D4()),n=!1;const i=async()=>{await Tc.post("/auth/logout"),_u(void 0),window.location.reload()};return{get:async()=>e.then(c=>(sh(),c)),refresh:()=>(n||(n=!0,e=Ek().then(c=>(_u(c),c)).catch(()=>{_u(void 0),i()}).finally(()=>{n=!1,sh()})),e),login:c=>(n||(n=!0,e=kk(c).then(f=>(_u(f),f)).finally(()=>{n=!1,sh()})),e),logout:i}})(),tx=location.hostname.includes("app.dataramen.xyz")?"http://localhost:4466/api":"/api",st=xt.create({baseURL:tx,withCredentials:!0});st.interceptors.request.use(async e=>{const n=await ao.get();return n&&(e.headers.Authorization=`Bearer ${n}`),e});st.interceptors.response.use(e=>e,e=>{var n;return ac(e)&&e.status===401&&((n=e==null?void 0:e.response)==null?void 0:n.data.error)!=="Missing auth token"&&ao.refresh(),Promise.reject(e)});const Tc=xt.create({baseURL:tx,withCredentials:!0}),si="data-sources",vl="auth-user",Ak=e=>zn({queryKey:["project","datasources",e],queryFn:async()=>{const{data:n}=await st.get(`/project/team/${e}/datasources`);return n.data},enabled:!!e}),Tk=e=>zn({queryKey:["project","saved-queries",e],queryFn:async()=>{const{data:n}=await st.get(`/project/team/${e}/queries`);return n.data},enabled:!!e}),so=e=>{const n=["project","team"],i=["project","saved-queries"];return Promise.all([mt.invalidateQueries(n),mt.invalidateQueries(i)])},_k=e=>{const n=["trash","team"];return mt.invalidateQueries(n)},Nk=(e,n)=>zn({queryKey:["project",n.teamId,"tables",e,n.selectedDataSources],queryFn:async()=>{const{data:i}=await st.get(`/project/team/${n.teamId}/query`,{params:{size:30,search:e,selectedDataSources:n.selectedDataSources}});return i.data},enabled:!!n.teamId,staleTime:0,keepPreviousData:!0}),Rk=(e,n)=>{},jk=()=>{},Ok={event:Rk,pageView:jk},_c=e=>zn([si,e],async()=>{const{data:n}=await st.get("/data-sources/"+e);return n.data},{enabled:!!e}),Tp=e=>zn({queryKey:[si,e.teamId],queryFn:async()=>{const{data:n}=await st.get("/data-sources",{params:e});return n.data},enabled:e.teamId!==void 0}),Da=e=>zn({queryKey:[si,e,"inspections"],queryFn:async()=>{const{data:n}=await st.get(`/data-sources/${e}/inspections`);return n.data},enabled:!!e}),Dk=()=>er(async e=>{const{data:n}=await st.post("/data-sources",e);return n.data},{onSuccess:()=>{mt.invalidateQueries([si]),so()},onError:()=>{}}),Mk=()=>er({mutationFn:async({dataSource:e,id:n})=>{const{data:i}=await st.put(`/data-sources/${n}`,e);return i.data},onSuccess:()=>{mt.invalidateQueries([si]),so()}}),nx=()=>er({mutationFn:async e=>{await st.post(`/data-sources/${e}/inspect`)},onSuccess:()=>{mt.invalidateQueries([si])}}),Lk=()=>er({mutationFn:async e=>{await st.delete(`/data-sources/${e}`)},onSuccess:()=>{mt.invalidateQueries([si]),so()}}),rx=()=>zn(["accessToken"],ao.get),jr=()=>{const{data:e}=rx();return zn({queryKey:[vl],queryFn:async()=>{const{data:n}=await st.get("/users");return n.data},enabled:!!e,retry:(n,i)=>ac(i)&&i.code==="ERR_NETWORK"?!1:n<3})},zk=()=>er({mutationFn:async e=>{const{data:n}=await st.patch("/users",e);return n.data},onSuccess:async e=>{mt.setQueryData([vl],e)}}),Uk=()=>er({mutationFn:async e=>(await st.post("/users",e),!0),onSuccess:()=>{mt.invalidateQueries({queryKey:["team-users"]})}}),Bk="_alert_2uib7_2",qk="_info_2uib7_2",Hk="_danger_2uib7_2",Fk="_success_2uib7_2",Pk="_warning_2uib7_2",Qk="_dark_2uib7_2",ua={alert:Bk,info:qk,danger:Hk,success:Fk,warning:Pk,dark:Qk};function ix(e){var n,i,l="";if(typeof e=="string"||typeof e=="number")l+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(n=0;n<s;n++)e[n]&&(i=ix(e[n]))&&(l&&(l+=" "),l+=i)}else for(i in e)e[i]&&(l&&(l+=" "),l+=i);return l}function xe(){for(var e,n,i=0,l="",s=arguments.length;i<s;i++)(e=arguments[i])&&(n=ix(e))&&(l&&(l+=" "),l+=n);return l}const cn=({variant:e,noRounded:n,className:i,children:l,...s})=>b.jsx("div",{className:xe(ua.alert,!n&&"rounded-lg",(e==="info"||!e)&&ua.info,e==="danger"&&ua.danger,e==="dark"&&ua.dark,e==="warning"&&ua.warning,e==="success"&&ua.success,i),role:"alert",...s,children:l}),wn=e=>{const n=new Set;let i=e;const l=f=>(n.add(f),()=>n.delete(f)),s=f=>(n.forEach(h=>h(f)),!0),o=f=>{i=typeof f=="function"?f(i):f,s(i)},c=f=>()=>f?f(i):i;return[f=>k.useSyncExternalStore(l,c(f),c(f)),o,{get:()=>i,subscribe:f=>(f(i),l(f))}]};function Ik(e){const n=[];for(const i of e)for(const l of i.columns)l.ref&&(n.push({id:`${i.tableName}->${l.ref.table}.${l.ref.field}`,name:`${i.tableName} in ${l.ref.table}`,where:`${i.tableName}.${l.name} = ${l.ref.table}.${l.ref.field}`,on:{fromTable:l.ref.table,toTable:i.tableName,fromColumn:l.ref.field,toColumn:l.name}}),n.push({id:`${l.ref.table}->${i.tableName}.${l.name}`,name:`${l.ref.table} in ${i.tableName}`,where:`${l.ref.table}.${l.ref.field} = ${i.tableName}.${l.name}`,on:{fromTable:i.tableName,toTable:l.ref.table,fromColumn:l.name,toColumn:l.ref.field}}));return n}const Vk=e=>zn({queryKey:["hooks",e],queryFn:async()=>{const n=await mt.fetchQuery({queryKey:[si,e,"inspections"],queryFn:async()=>{const{data:i}=await st.get(`/data-sources/${e}/inspections`);return i.data}});return Ik(n)},enabled:!!e}),_p=[{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"}],Np=_p.reduce((e,n)=>(e[n.value]=n.label,e),{}),Rp=_p.reduce((e,n)=>(e[n.label]=n.value,e),{}),Ma=e=>e.map(n=>({label:Np[n],value:n})),$k=Ma(["=","<>",">",">=","<","<=","IN","NOT IN","IS NULL","IS NOT NULL"]),Yk=Ma(["=","<>","LIKE","NOT LIKE","IN","NOT IN","IS NULL","IS NOT NULL"]);Ma(["=","<>","IS NULL","IS NOT NULL"]);const Kk=Ma(["=","<>",">",">=","<","<=","IS NULL","IS NOT NULL"]);Ma(["IS NULL","IS NOT NULL"]);Ma(["IN","NOT IN"]);const lx=e=>e!=="IS NULL"&&e!=="IS NOT NULL",Gk=(e,n)=>lx(e)?e==="IN"||e==="NOT IN"?n.split(",").map(i=>({value:i.trim(),isColumn:!1})):[{value:n,isColumn:!1}]:[],Xk=["char","varchar","binary","varbinary","blob","text","enum","set","character","character varying","text","citext","uuid","xml","json","jsonb"],Zk=["integer","smallint","decimal","numeric","float","real","double precision","int","smallint","integer","bigint","decimal","numeric","real","double precision","serial","bigserial","money"],Jk=["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"],Wk=["date","datetime","timestamp","timestamptz"].reduce((e,n)=>(e[n]=!0,e),{}),ri=e=>e.fn?e.distinct===!0?`${e.fn} distinct ${e.value}`:`${e.fn} ${e.value}`:e.value;var bn=(e=>(e.OWNER="owner",e.ADMIN="admin",e.EDITOR="editor",e.READ_ONLY="read_only",e))(bn||{});const Rb={[bn.READ_ONLY]:10,[bn.EDITOR]:20,[bn.ADMIN]:30,[bn.OWNER]:40};function eA(e,n){if(!e||!n)return{};const i=new Set;for(const s of n)s.table&&i.add(s.table);const l={};for(const s of i){const o=e.find(c=>c.tableName===s);if(o){l[s]=[];const c=o.columns.filter(f=>f.isPrimary);for(const f of c)if(n.find(d=>d.table===s&&d.column===f.name))l[s].push(f.name);else{delete l[s];break}}}return l}function tA(e,n,i,l){const{data:s}=Vk(n),{data:o}=Da(n);return k.useMemo(()=>{const c=eA(o,e==null?void 0:e.columns);return{name:i,tabId:l,hooks:(()=>{const f=[];if(!s||!e||!e.columns)return f;for(const h of s)(e.tables.includes(h.on.toTable)||e.tables.includes(h.on.fromTable))&&f.push(h);return f})(),availableJoins:(()=>{const f=[];if(!s||!e||!e.columns)return f;for(const h of s)!e.tables.includes(h.on.toTable)&&e.tables.includes(h.on.fromTable)&&f.push(h);return f})(),allColumns:(e==null?void 0:e.allColumns)||[],dataSourceId:n,entities:Object.keys(c),getValue:(f,h)=>{var y;const d=ri(h),m=(y=e==null?void 0:e.columns)==null?void 0:y.findIndex(x=>x.full===d);if(m!=null&&m>-1)return f[m]},getEntityKey:(f,h)=>c[f].reduce((d,m)=>{var x;const y=(x=e==null?void 0:e.columns)==null?void 0:x.findIndex(v=>v.column===m&&v.table===f);return y!=null&&y>-1&&d.push([m,h[y]]),d},[]),getColumnType:f=>{const h=e==null?void 0:e.allColumns.find(d=>d.full===f);if(h)return h.type}}},[e,n,s,o,i])}function nA(e,n){return k.useMemo(()=>({state:e,setState:n}),[e,n])}function Xs(e){return{dataSourceId:e.dataSourceId||"",table:e.table||"",filters:(e==null?void 0:e.filters)||[],joins:(e==null?void 0:e.joins)??[],orderBy:(e==null?void 0:e.orderBy)??[],page:(e==null?void 0:e.page)||0,size:(e==null?void 0:e.size)||50,columns:(e==null?void 0:e.columns)??[],groupBy:(e==null?void 0:e.groupBy)??[],aggregations:(e==null?void 0:e.aggregations)??[]}}function rA(e,n,i){try{const l=i.getItem(e);if(l)return JSON.parse(l)}catch(l){console.warn("Failed to restore tabs",l)}return n}const jp=({storage:e=localStorage,localStorageKey:n,initialData:i})=>{const l=wn(rA(n,i,e));return l[2].subscribe(s=>{e.setItem(n,JSON.stringify(s))}),l},ai=()=>Date.now().toString(36)+Math.random().toString(36).substring(2),[Nc,Rc,jc]=jp({initialData:[],localStorageKey:"open-tabs__v1"}),[iA,Gh,lA]=jp({initialData:"",localStorageKey:"active-tabs",storage:sessionStorage}),aA=e=>{setTimeout(n=>{const i=document.querySelector(`[data-tab-id="${n}"]`);i&&i.scrollIntoView({behavior:"smooth"})},50,e)},xl=(e,n,i=!1)=>{oA();const l=sA({label:e,type:"explorer",id:ai(),options:Xs(n)});i&&Op(l.id)},jb=e=>{const n=lA.get();if(Rc(i=>i.filter(l=>l.id!==e)),n===e){const i=jc.get();i.length>0?Gh(i[0].id):Gh("")}},Op=e=>{Gh(e),aA(e)},Dp=(e,n)=>{Rc(i=>i.map(l=>l.id===e?{...l,label:n}:l))};function sA(e){return Rc(n=>n?[...n,e]:[e]),e}const Ob=20;function oA(){if(jc.get().length>=Ob){const n=`Maximum ${Ob} tabs are allowed to be open at the same time. Please close other tabs to open new ones.`;throw tn.error(n),new Error(n)}}const rt={home:{path:"/"},workbench:{path:"/workbench"},login:{path:"/login"}},ax=async e=>mt.fetchQuery({queryKey:["query",e],queryFn:async()=>{const{data:n}=await st.get("/queries/"+e);return n.data}}),[uA,oh,cA]=wn(void 0),fA=async()=>new Promise(e=>{oh({onCancel:()=>{oh(void 0),e(void 0)},onConfirm:(n,i,l)=>{oh(void 0),e({dsId:l,id:i,type:n})}})}),oo=e=>{const n=Wn();return k.useCallback(()=>{cA.get()||fA().then(l=>{(l==null?void 0:l.type)==="table"?(xl(l.id,Xs({table:l.id,dataSourceId:l.dsId}),!0),location.pathname!==rt.workbench.path&&n(rt.workbench.path)):(l==null?void 0:l.type)==="query"&&ax(l.id).then(s=>{xl(s.name,Xs(s.opts),!0),location.pathname!==rt.workbench.path&&n(rt.workbench.path)})})},[n,e])},uo=e=>{const{data:n}=jr();return k.useMemo(()=>n?Rb[n.teamRole]>=Rb[e]:!1,[n,e])},dA="_input_1bh3c_2",hA="_small_1bh3c_2",pA="_content_1bh3c_2",mA="_form_1bh3c_2",gA="_mode-select_1bh3c_2",Ze={input:dA,small:hA,content:pA,form:mA,switch:"_switch_1bh3c_2",modeSelect:gA},yA="_modal_wbot3_2",bA="_modal-visible_wbot3_2",vA="_modal-invisible_wbot3_2",xA="_backdrop_wbot3_2",wA="_modal-container_wbot3_2",SA="_close-button_wbot3_2",ma={modal:yA,modalVisible:bA,modalInvisible:vA,backdrop:xA,modalContainer:wA,closeButton:SA},pr=e=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"ionicon",viewBox:"0 0 512 512",...e},k.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M368 368L144 144M368 144L144 368"})),rn=({children:e,backdropClose:n,isVisible:i,onClose:l,onClosed:s,noPadding:o=!1,portal:c=!1})=>{const[f,h]=k.useState(!1),d=()=>{n&&l()},m=x=>{i||getComputedStyle(x.currentTarget).opacity==="0"&&(h(!1),s&&s())};k.useEffect(()=>{i&&h(!0)},[i]);const y=b.jsxs("div",{onTransitionEnd:m,className:xe(ma.modal,i?ma.modalVisible:ma.modalInvisible),children:[b.jsx("div",{onClick:d,className:ma.backdrop}),b.jsx("div",{className:xe(ma.modalContainer,o!==!0&&"p-4"),children:f&&e})]});return c?hv.createPortal(y,document.body):y},tr=({onClick:e})=>{const n=k.useRef(e);return n.current=e,k.useEffect(()=>{const i=l=>{var s;l.key==="Escape"&&((s=n.current)==null||s.call(n))};return window.addEventListener("keyup",i),()=>{window.removeEventListener("keyup",i)}},[]),b.jsx("button",{className:ma.closeButton,onClick:e,children:b.jsx(pr,{width:20,height:20})})},sx=({children:e})=>b.jsx("h2",{className:"text-xl font-semibold",children:e}),co=e=>{const[n,i]=k.useState(e),[l,s]=k.useState([]),o=k.useRef(e),c=k.useCallback((d,m)=>{i(y=>({...y,[d]:m}))},[]),f=k.useCallback(d=>m=>{m.target.type==="checkbox"?c(d,m.target.checked):c(d,m.target.value),s(y=>y.includes(d)?y:[...y,d])},[c]),h=k.useCallback(()=>{i(o.current),s([])},[]);return[n,{set:c,change:f,reset:h,touched:l}]},CA=({form:e,change:n})=>b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:xe(Ze.input,Ze.small),children:[b.jsx("label",{children:"Database URL"}),b.jsx("input",{value:e.dbUrl,onChange:n("dbUrl"),className:"input"})]}),b.jsxs("div",{className:xe(Ze.input,Ze.small),children:[b.jsx("label",{children:"Database port"}),b.jsx("input",{value:e.dbPort,onChange:n("dbPort"),type:"number",className:"input"})]}),b.jsxs("div",{className:xe(Ze.input,Ze.small),children:[b.jsx("label",{children:"User"}),b.jsx("input",{value:e.dbUser,onChange:n("dbUser"),className:"input"})]}),b.jsxs("div",{className:xe(Ze.input,Ze.small),children:[b.jsx("label",{children:"Password"}),b.jsx("input",{type:"password",value:e.dbPassword,onChange:n("dbPassword"),className:"input"})]}),b.jsxs("div",{className:xe(Ze.input,Ze.small),children:[b.jsx("label",{children:"Database"}),b.jsx("input",{value:e.dbDatabase,onChange:n("dbDatabase"),className:"input"})]})]}),EA=({form:e,change:n})=>b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:xe(Ze.input,Ze.small),children:[b.jsx("label",{children:"Database URL"}),b.jsx("input",{value:e.dbUrl,onChange:n("dbUrl"),className:"input"})]}),b.jsxs("div",{className:xe(Ze.input,Ze.small),children:[b.jsx("label",{children:"Database port"}),b.jsx("input",{value:e.dbPort,onChange:n("dbPort"),type:"number",className:"input"})]}),b.jsxs("div",{className:xe(Ze.input,Ze.small),children:[b.jsx("label",{children:"User"}),b.jsx("input",{value:e.dbUser,onChange:n("dbUser"),className:"input"})]}),b.jsxs("div",{className:xe(Ze.input,Ze.small),children:[b.jsx("label",{children:"Password"}),b.jsx("input",{type:"password",value:e.dbPassword,onChange:n("dbPassword"),className:"input"})]}),b.jsxs("div",{className:xe(Ze.input,Ze.small),children:[b.jsx("label",{children:"Database"}),b.jsx("input",{value:e.dbDatabase,onChange:n("dbDatabase"),className:"input"})]}),b.jsxs("div",{className:xe(Ze.input,Ze.small),children:[b.jsx("label",{children:"Schema"}),b.jsx("input",{value:e.dbSchema,onChange:n("dbSchema"),className:"input"})]})]}),ca=[{label:"PostgreSQL",tag:"postgres"},{label:"MySQL",tag:"mysql"}],kA=({show:e,onClose:n,dbType:i="postgres"})=>{const l=Dk(),s=nx(),{data:o}=jr(),[c,{change:f,set:h}]=co({name:"",dbType:i,dbUrl:"",dbUser:"",dbPassword:"",dbDatabase:"",dbSchema:"",dbPort:5432,teamId:"",ownerId:"",description:"",allowInsert:!1,allowUpdate:!1}),d=async()=>{const w=await l.mutateAsync({...c,dbPort:Number(c.dbPort),teamId:o.teamId,ownerId:o.id});await s.mutateAsync(w.id),n(),Ok.event("Create Datasource",{dbType:c.dbType})},m=w=>{h("allowInsert",!w),h("allowUpdate",!w)},y=()=>{n()},x=l.isLoading||s.isLoading,v=!c.allowInsert&&!c.allowUpdate;return b.jsxs(rn,{isVisible:e,onClose:y,children:[b.jsx(tr,{onClick:y}),b.jsxs(cn,{variant:"warning",className:"text-sm mb-2 max-w-xl",children:["DataRamen is currently under active development. In production-like environments, ",b.jsx("span",{className:"font-semibold underline",children:"it’s recommended to use read-only database credentials"}),"."]}),l.isError&&b.jsx(cn,{variant:"danger",className:"mb-2",children:b.jsx("span",{children:"Failed to connect to the database. Please check if the data are correct and retry."})}),l.isLoading&&b.jsx(cn,{className:"mb-2",variant:"info",children:"Creating connection"}),s.isLoading&&b.jsx(cn,{className:"mb-2",variant:"info",children:"Inspecting connection"}),b.jsxs("div",{className:Ze.switch,children:[b.jsxs("label",{className:"button tertiary",children:[b.jsx("input",{type:"radio",name:"bdType",className:"mr-2",checked:c.dbType===ca[0].tag,onChange:()=>h("dbType",ca[0].tag)}),b.jsx("span",{children:ca[0].label})]}),b.jsxs("label",{className:"button tertiary",children:[b.jsx("input",{type:"radio",name:"bdType",className:"mr-2",checked:c.dbType===ca[1].tag,onChange:()=>h("dbType",ca[1].tag)}),b.jsx("span",{children:ca[1].label})]})]}),b.jsxs("div",{className:"overflow-y-auto mt-2",children:[b.jsx("div",{className:Ze.content,children:b.jsxs("div",{className:Ze.form,children:[b.jsxs("div",{className:xe(Ze.input,"col-span-2"),children:[b.jsx("label",{children:"Name"}),b.jsx("input",{value:c.name,onChange:f("name"),className:"input"})]}),b.jsxs("div",{className:xe(Ze.input,"col-span-2"),children:[b.jsx("label",{children:"Description"}),b.jsx("textarea",{value:c.description,onChange:f("description"),className:"input"})]}),c.dbType==="mysql"&&b.jsx(CA,{form:c,change:f}),c.dbType==="postgres"&&b.jsx(EA,{form:c,change:f})]})}),b.jsxs("div",{className:"mt-4",children:[b.jsxs("label",{className:Ze.modeSelect,children:[b.jsxs("div",{children:[b.jsx("input",{type:"radio",name:"production-mode",className:"mr-2",checked:v,onChange:()=>m(!0)}),b.jsx("span",{className:"text-sm font-semibold",children:"Production mode"})]}),b.jsxs("p",{className:"text-xs mt-1 text-gray-600",children:["Mutation operations (such as INSERT or UPDATE) are ",b.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."]})]}),b.jsxs("label",{className:Ze.modeSelect,children:[b.jsxs("div",{children:[b.jsx("input",{type:"radio",name:"production-mode",className:"mr-2",checked:!v,onChange:()=>m(!1)}),b.jsx("span",{className:"text-sm font-semibold",children:"Dev mode"})]}),b.jsxs("p",{className:"text-xs mt-1 text-gray-600",children:["Mutation operations (such as INSERT or UPDATE) are ",b.jsx("strong",{children:"allowed"}),". You will be able to insert new rows and edit existing data."]})]})]})]}),b.jsxs("div",{className:"flex justify-end gap-1 mt-2",children:[b.jsx("button",{onClick:y,className:"button tertiary",disabled:x,children:"Cancel"}),b.jsx("button",{onClick:d,className:"button primary",disabled:x,children:"Create"})]})]})},AA="_data-source-entry_89grd_2",TA="_action-title_89grd_2",_A="_action-subtext_89grd_2",Tr={dataSourceEntry:AA,actionTitle:TA,actionSubtext:_A},NA=e=>k.createElement("svg",{fill:"#000000",width:"800px",height:"800px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e},k.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"})),RA=e=>k.createElement("svg",{width:"800px",height:"800px",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...e},k.createElement("title",null,"file_type_pgsql"),k.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"}),k.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"}}),k.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"}}),k.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"}})),Mp=({size:e,type:n})=>n==="mysql"?b.jsx(NA,{width:e,height:e}):b.jsx(RA,{width:e,height:e}),[jA,xa]=wn(void 0),OA=()=>{const e=oo("Home");return b.jsxs("div",{className:"card-white lg:col-span-2",onClick:e,children:[b.jsxs("h2",{className:Tr.actionTitle,children:[b.jsx("span",{children:"🔎 Start new query"}),b.jsx("span",{className:"hotkey",children:"N"})]}),b.jsx("input",{className:"input mt-3 w-full",placeholder:"Search table or query to start"})]})},DA=()=>{const[e,n]=k.useState(void 0),i=uo(bn.EDITOR),l=s=>{i?n(s):tn.error("You don't have permission to connect new data sources in this team")};return b.jsxs("div",{children:[e&&b.jsx(kA,{show:!0,dbType:e,onClose:()=>n(void 0)}),b.jsxs("div",{className:"card-white hover:bg-gray-50! cursor-pointer",onClick:()=>l("postgres"),children:[b.jsx("p",{className:Tr.actionTitle,children:"🧙‍♂️ Connection wizard"}),b.jsx("p",{className:Tr.actionSubtext,children:"Configure new database connection."})]})]})},MA=()=>{const e=Wn(),n=Nc(),i=oo("Home"),l=()=>{n.length>0?e(rt.workbench.path):i()};return b.jsxs("div",{className:"card-white hover:bg-gray-50! cursor-pointer",onClick:l,children:[b.jsxs("h2",{className:Tr.actionTitle,children:[b.jsx("span",{children:"🛠️ Workbench"}),b.jsx("span",{className:"hotkey",children:"W"})]}),b.jsx("p",{className:Tr.actionSubtext,children:"Continue your work from where you left."})]})},LA=()=>{const{data:e}=jr(),{data:n}=Tp({teamId:e==null?void 0:e.teamId}),i=l=>{xa(l)};return!n||n.length===0?null:b.jsxs("div",{className:"mt-8",children:[b.jsx("h2",{className:"font-semibold text-gray-700",children:"Data sources"}),b.jsx("div",{className:"grid lg:grid-cols-2 gap-2 mt-4",children:n==null?void 0:n.map(l=>b.jsxs("div",{className:Tr.dataSourceEntry,onClick:()=>i(l.id),tabIndex:0,children:[b.jsx(Mp,{size:32,type:l.dbType}),b.jsx("p",{className:"font-semibold truncate text-gray-800 flex-1",children:l.name}),l.allowInsert?b.jsx("span",{className:"text-red-700",children:"Development"}):b.jsx("span",{className:"text-blue-700",children:"Production"})]},l.id))})]})},zA=()=>b.jsxs("div",{className:"mt-8",children:[b.jsx("h2",{className:"font-semibold text-gray-700",children:"Useful links"}),b.jsxs("div",{className:"grid lg:grid-cols-2 gap-2 mt-4",children:[b.jsxs("a",{className:"card-white hover:bg-gray-50!",href:"https://dataramen.xyz/",children:[b.jsx("p",{className:Tr.actionTitle,children:"Documentation"}),b.jsx("p",{className:Tr.actionSubtext,children:"Learn how to use DataRamen"})]}),b.jsxs("a",{className:"card-white hover:bg-gray-50!",href:"https://github.com/OleksandrDemian/dataramen",children:[b.jsx("p",{className:Tr.actionTitle,children:"Github"}),b.jsx("p",{className:Tr.actionSubtext,children:"Codebase is open sourced on Github"})]})]})]}),UA=()=>{const{data:e}=jr(),{data:n}=Tp({teamId:e==null?void 0:e.teamId}),i=!!n&&n.length>0,l=!!e;return b.jsx("div",{className:"page-container h-screen max-h-screen bg-(--bg)",children:b.jsxs("div",{className:"page-content h-full pb-12 overflow-y-auto",children:[b.jsx("h2",{className:"font-semibold text-gray-700 mt-4 hidden lg:block",children:"Quick actions"}),l&&!i&&b.jsx(cn,{variant:"warning",className:"font-semibold mt-4",children:"Connect at least one datasource to start using DataRamen"}),b.jsxs("div",{className:"grid lg:grid-cols-2 gap-2 mt-4",children:[b.jsx(OA,{}),b.jsx(DA,{}),l&&b.jsx(MA,{})]}),l&&b.jsx(LA,{}),b.jsx(zA,{})]})})},[BA,Lp]=wn(void 0),qA=()=>Lp(void 0);function gl(e,n){if(e==null)return"";switch(n){case"json":case"jsonb":return JSON.stringify(e,null,2)}if(e===0||e===!1)return e.toString();switch(typeof e){case"string":return e;case"number":case"boolean":return e.toString();default:return JSON.stringify(e)}}const HA=e=>{var i;const n=((i=e.value)==null?void 0:i.map(l=>l.value).join(", "))||"";return`${e.column} ${e.operator} ${n}`},qi=e=>{let n=e.replace(/[_-]+/g," ");return n=n.replace(/([a-z0-9])([A-Z])/g,"$1 $2"),n=n.toLowerCase().replace(/\b\w/g,i=>i.toUpperCase()),n},FA="_container_1ckq8_2",PA="_header_1ckq8_2",QA="_fields-container_1ckq8_2",IA="_field-label_1ckq8_2",VA="_actions_1ckq8_2",Us={container:FA,header:PA,fieldsContainer:QA,fieldLabel:IA,actions:VA},$A=({searchAll:e,table:n,datasourceId:i,filters:l,joins:s,orderBy:o,groupBy:c,columns:f,page:h=0,size:d=20})=>zn({queryKey:["explorer",i,n,h,d,l,s,o,c,f,e],queryFn:async()=>{const{data:m}=await st.post("/runner/select",{datasourceId:i,table:n,filters:l,joins:s,orderBy:o,page:h,size:d,columns:f,groupBy:c,searchAll:e});return m.data},retry:1,enabled:!!n&&!!i,keepPreviousData:!0,staleTime:0,cacheTime:0}),YA=(e,n,i)=>zn({queryKey:["entity",e,n,i],queryFn:async()=>{const l=i?i.map(([o,c])=>({id:ai(),column:o,operator:"=",value:[{value:c}],connector:"AND"})):[],{data:s}=await st.post("/runner/select",{datasourceId:e,table:n,filters:l,size:1,page:0});return s.data},retry:1,enabled:!!n&&!!e&&!!i,staleTime:0,cacheTime:0}),KA=()=>er({mutationFn:async e=>{const{data:n}=await st.post("/runner/update",e);return n.data}}),GA=()=>er({mutationFn:async e=>{const{data:n}=await st.post("/runner/insert",e);return n.data}}),zp=e=>k.useMemo(()=>{var n,i,l;if(e)return e instanceof O4?(n=e.response)!=null&&n.data.error?e.response.data.error:(l=(i=e.response)==null?void 0:i.data)!=null&&l.message?e.response.data.message:e.message:e instanceof Error?e.message:"Undefined error"},[e]),XA=({data:e})=>{const[n,{change:i,touched:l}]=co({}),{mutateAsync:s,error:o}=GA(),c=zp(o),{data:f}=Da(e.dataSourceId),[h,d]=k.useState(""),m=k.useMemo(()=>f==null?void 0:f.find(v=>v.tableName===e.table),[f,e.table]),y=k.useMemo(()=>{if(!m)return[];if(!h)return m.columns.map(w=>({...w,label:qi(w.name)}));const v=h.toLowerCase();return m.columns.filter(w=>w.name.toLowerCase().includes(v)).map(w=>({...w,label:qi(w.name)}))},[h,m]),x=()=>{const v=[];for(const w of l)v.push({value:n[w],column:w});s({datasourceId:e.dataSourceId,table:e.table,values:v}).then(qA)};return b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:Us.header,children:[b.jsxs("p",{className:"text-lg font-semibold",children:["Insert new row in ",b.jsx("span",{className:"underline",children:e.table})]}),c&&b.jsx(cn,{variant:"danger",children:b.jsx("p",{children:c})})]}),b.jsx("div",{className:"bg-gray-50 py-1 px-4 border-y border-gray-200",children:b.jsx("p",{className:"text-xs text-gray-800",children:"Tip: use = to write raw SQL. Ex: =NULL or =NOW()"})}),b.jsx("div",{className:Us.container,children:b.jsx("div",{className:Us.fieldsContainer,children:y.map(v=>b.jsxs("label",{className:Us.fieldLabel,children:[b.jsxs("div",{className:"flex justify-between",children:[b.jsxs("p",{children:[v.isPrimary?"🔐":"🏷️"," ",v.label]}),b.jsxs("p",{className:"text-blue-800 text-sm",children:["[",v.name,": ",v.type,"]"]})]}),b.jsx("input",{className:"input w-full",value:gl(n[v.name]),onChange:i(v.name),placeholder:v.name})]},v.name))})}),b.jsxs("div",{className:Us.actions,children:[b.jsxs("label",{children:[b.jsx("span",{className:"mr-2",children:"🔎"}),b.jsx("input",{className:"input bg-white!",value:h,onChange:v=>d(v.target.value),placeholder:"Filter columns"})]}),b.jsx("span",{className:"flex-1"}),b.jsx("button",{disabled:!l.length,className:"button primary",onClick:x,children:"Run insert"})]})]})},ZA=()=>{const e=BA(),[n,i]=k.useState(void 0);k.useEffect(()=>{e&&i(e)},[e]);const l=()=>Lp(void 0);return b.jsxs(rn,{isVisible:e!=null,onClose:l,onClosed:()=>i(void 0),noPadding:!0,children:[b.jsx(tr,{onClick:l}),n&&b.jsx(XA,{data:n})]})},[JA,Up]=wn(void 0),WA=()=>Up(void 0),eT="_container_1odiu_2",tT="_header_1odiu_2",nT="_key_1odiu_2",rT="_fields-container_1odiu_2",iT="_field-label_1odiu_2",lT="_actions_1odiu_2",fa={container:eT,header:tT,key:nT,fieldsContainer:rT,fieldLabel:iT,actions:lT},aT=({data:e})=>{const[n,{change:i,set:l,reset:s,touched:o}]=co({}),[c,f]=k.useState(""),{data:h,isLoading:d}=YA(e.dataSourceId,e.tableName,e.entityId),{mutateAsync:m,error:y}=KA(),x=zp(y),v=uo(bn.EDITOR),{data:w}=Da(e.dataSourceId),{data:T}=_c(e.dataSourceId),_=k.useMemo(()=>w==null?void 0:w.find(L=>L.tableName===e.tableName),[e.tableName,w]),E=k.useMemo(()=>{if(!_)return[];if(!c)return _.columns.map(D=>({...D,label:qi(D.name)}));const L=c.toLowerCase();return _.columns.filter(D=>D.name.toLowerCase().includes(L)).map(D=>({...D,label:qi(D.name)}))},[c,_]);k.useEffect(()=>{const L=h==null?void 0:h.rows[0];if(s(),L&&(h!=null&&h.columns))for(let D=0;D<h.columns.length;D++){const X=h.columns[D];l(X.column,gl(L[D]))}},[h,l,s]);const N=()=>{const L=[];for(const D of o)L.push({value:n[D],column:D});m({datasourceId:e.dataSourceId,table:e.tableName,filters:e.entityId.map(D=>({id:ai(),value:[{value:D[1]}],column:D[0],connector:"AND",operator:"="})),values:L}).then(WA)},j=e.entityId.map(([L,D])=>`${L} = ${D}`).join(", ")||"",q=!(T!=null&&T.allowUpdate)||!v;return b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:fa.header,children:[b.jsxs("p",{className:"text-lg font-semibold",children:[q?"View":"Edit"," row in ",b.jsx("span",{className:"underline",children:e==null?void 0:e.tableName})]}),b.jsx("span",{className:fa.key,children:j}),x&&b.jsx(cn,{variant:"danger",children:b.jsx("p",{children:x})})]}),!q&&b.jsx("div",{className:"bg-gray-50 py-1 px-4 border-y border-gray-200",children:b.jsx("p",{className:"text-xs text-gray-800",children:"Tip: use = to write raw SQL. Ex: =NULL or =NOW()"})}),b.jsx("div",{className:fa.container,children:b.jsx("div",{className:fa.fieldsContainer,children:E.map(L=>b.jsxs("label",{className:fa.fieldLabel,children:[b.jsxs("div",{className:"flex justify-between",children:[b.jsxs("p",{children:[L.isPrimary?"🔐":"🏷️"," ",L.label]}),b.jsxs("p",{className:"text-blue-800 text-sm",children:["[",L.name,": ",L.type,"]"]})]}),b.jsx("input",{disabled:L.isPrimary||d||q,className:"input w-full",value:gl(n[L.name]),onChange:i(L.name),placeholder:L.name})]},L.name))})}),b.jsxs("div",{className:fa.actions,children:[b.jsxs("label",{children:[b.jsx("span",{className:"mr-2",children:"🔎"}),b.jsx("input",{className:"input bg-white!",value:c,onChange:L=>f(L.target.value),placeholder:"Filter columns"})]}),b.jsx("span",{className:"flex-1"}),!q&&b.jsx("button",{disabled:!o.length,className:"button primary",onClick:N,children:"Run update"})]})]})},sT=()=>{const e=JA(),[n,i]=k.useState(void 0);k.useEffect(()=>{e&&i(e)},[e]);const l=()=>Up(void 0);return b.jsxs(rn,{isVisible:e!=null,onClose:l,onClosed:()=>i(void 0),noPadding:!0,children:[b.jsx(tr,{onClick:l}),n&&b.jsx(aT,{data:n})]})},[oT,uh]=wn(void 0),ox=async e=>new Promise(n=>{uh({message:e,onCancel:()=>{n(!1),uh(void 0)},onConfirm:()=>{n(!0),uh(void 0)}})}),uT=({confirm:e})=>b.jsxs("div",{children:[b.jsx("p",{children:e.message}),b.jsxs("div",{className:"flex gap-2 justify-end mt-4",children:[b.jsx("button",{className:"button tertiary",onClick:e.onCancel,children:"Cancel"}),b.jsx("button",{className:"button primary",onClick:e.onConfirm,children:"Confirm"})]})]}),cT=()=>{const e=oT(),[n,i]=k.useState(void 0);return k.useEffect(()=>{e&&i(e)},[e]),b.jsx(rn,{isVisible:!!e,onClose:()=>e==null?void 0:e.onCancel(),onClosed:()=>i(void 0),children:n&&b.jsx(uT,{confirm:n})})},[fT,Ku]=wn(void 0),kl=async(e,n,i)=>new Promise(l=>{Ku({message:e,defaultValue:n,alert:i,onCancel:()=>{Ku(void 0),l(void 0)},onConfirm:s=>{Ku(void 0),l(s)}})}),dT="_root_12mtw_1",hT={root:dT},pT=({data:e})=>{const[n,i]=k.useState("");k.useEffect(()=>{e.defaultValue&&i(e.defaultValue)},[e]);const l=o=>{i(o.target.value)},s=o=>{o.key==="Enter"&&(o.preventDefault(),e.onConfirm(n)),o.key==="Escape"&&(o.preventDefault(),e.onCancel())};return b.jsxs("div",{className:hT.root,children:[b.jsx("h2",{className:"text-xl font-semibold",children:e.message}),e.alert&&b.jsx(cn,{variant:e.alert.type,className:"mt-2",children:e.alert.message}),b.jsx("input",{autoFocus:!0,className:"w-full input my-2",value:n,onChange:l,onKeyDown:s}),b.jsxs("div",{className:"flex justify-end gap-2",children:[b.jsx("button",{className:"button tertiary",onClick:e.onCancel,children:"Cancel"}),b.jsx("button",{className:"button primary",onClick:()=>e.onConfirm(n),children:"Confirm"})]})]})},mT=()=>{const e=fT(),[n,i]=k.useState(void 0);return k.useEffect(()=>{e&&i(e)},[e]),b.jsx(rn,{isVisible:!!e,onClose:()=>Ku(void 0),onClosed:()=>i(void 0),children:n&&b.jsx(pT,{data:n})})},[gT,yT]=wn(void 0),ux=e=>{yT(e)},bT="_textarea_1ohil_2",vT={textarea:bT},xT=()=>{const e=gT(),n=()=>{e&&(navigator.clipboard.writeText(e.toString()),tn.success("Copied!"))},i=()=>ux(void 0);return b.jsxs(rn,{isVisible:!!e,onClose:i,backdropClose:!0,children:[b.jsx("textarea",{className:vT.textarea,readOnly:!0,defaultValue:e==null?void 0:e.toString()}),b.jsxs("div",{className:"mt-2 flex gap-1 justify-end",children:[b.jsx("button",{className:"button primary",onClick:n,children:"Copy"}),b.jsx("button",{className:"button tertiary",onClick:i,children:"Close"})]})]})},wT="_tabs_diyr7_2",ST="_mobile_diyr7_2",CT="_tab_diyr7_2",ET="_active_diyr7_2",kT="_close-button_diyr7_2",AT="_tooltip-label_diyr7_2",TT="_tooltip-info-entry_diyr7_2",Ar={tabs:wT,mobile:ST,tab:CT,active:ET,closeButton:kT,tooltipLabel:AT,tooltipInfoEntry:TT},_T="_table_z5cl6_2",NT="_semi-transparent_z5cl6_2",RT="_table-loading_z5cl6_2",jT="_table-empty_z5cl6_2",OT="_table-row-cells_z5cl6_2",DT="_header-cell_z5cl6_2",MT="_header-actions_z5cl6_2",LT="_cell_z5cl6_2",zT="_cell-actions_z5cl6_2",UT="_table-config_z5cl6_2",BT="_table-action_z5cl6_2",qT="_blue_z5cl6_2",HT="_red_z5cl6_2",FT="_modal_z5cl6_2",PT="_options-container_z5cl6_2",QT="_underlying-rows-btn_z5cl6_2",IT="_option-item_z5cl6_2",be={table:_T,semiTransparent:NT,tableLoading:RT,tableEmpty:jT,tableRowCells:OT,headerCell:DT,headerActions:MT,cell:LT,cellActions:zT,tableConfig:UT,tableAction:BT,blue:qT,red:HT,modal:FT,optionsContainer:PT,underlyingRowsBtn:QT,optionItem:IT},Or=k.createContext({name:"No name",hooks:[],availableJoins:[],allColumns:[],dataSourceId:"",entities:[],getValue:()=>{},getColumnType:()=>{},getEntityKey:()=>[]}),Rt=k.createContext({state:Xs({}),setState:()=>{}}),mr=k.createContext({}),cx=()=>{const[e,n]=k.useState();return k.useMemo(()=>({show:!!e,position:e,open:l=>{l.preventDefault(),n({x:l.clientX-1,y:l.clientY-1})},close:()=>{n(void 0)}}),[e])},VT=e=>{if(e==="ASC")return"DESC";if(e!=="DESC")return"ASC"},$T=()=>{const{state:e,setState:n}=k.useContext(Rt),i=k.useCallback(l=>{n(s=>{const o=s.orderBy[0];if(o&&o.column===l){const c=VT(o.direction);return c?{...s,orderBy:[{column:l,direction:c}]}:{...s,orderBy:[]}}return{...s,orderBy:[{column:l,direction:"ASC"}]}})},[n]);return{orderBy:e.orderBy,updateOrderBy:i}};function YT(e){var i;const n=(i=e.target)==null?void 0:i.dataset;if(n){if(n.copyCol&&n.copyRow)return{col:parseInt(n.copyCol),row:parseInt(n.copyRow),action:"copy"};if(n.showCol&&n.showRow)return{col:parseInt(n.showCol),row:parseInt(n.showRow),action:"show"};if(n.filterCol&&n.filterRow)return{col:parseInt(n.filterCol),row:parseInt(n.filterRow),action:"filter"}}}function ch(e,n,i){var o,c,f;const l=(c=(o=e==null?void 0:e.rows)==null?void 0:o[n])==null?void 0:c[i],s=(f=e==null?void 0:e.columns)==null?void 0:f[i];return{value:l,column:s}}const KT=()=>{const{data:e}=k.useContext(mr),{getColumnType:n}=k.useContext(Or),{setState:i}=k.useContext(Rt),l=f=>{const{value:h,column:d}=ch(e,f.row,f.col);if(d){const m=gl(h,n(d.full));navigator.clipboard.writeText(m),tn.success("Copied!")}},s=f=>{const{value:h,column:d}=ch(e,f.row,f.col);if(d){const m=gl(h,n(d.full));ux(m)}},o=f=>{const{value:h,column:d}=ch(e,f.row,f.col);let m=(d==null?void 0:d.full)||"",y;if((d==null?void 0:d.table)===""){tn.error("Filtering on aggregated column is not supported yet");return}if(m){let x;if(h==null)x={id:ai(),isEnabled:!0,column:m,connector:"AND",operator:"IS NULL"};else{const v=gl(h,n(m));x={id:ai(),isEnabled:!0,column:m,connector:"AND",operator:"=",fn:y,value:[{value:v}]}}i(v=>({...v,filters:[...v.filters,x]})),tn.success(`Added new filter on column ${d==null?void 0:d.alias}`)}};return f=>{const h=YT(f);h&&(h.action==="copy"?l(h):h.action==="show"?s(h):h.action==="filter"&&o(h))}},GT="_container_lfd62_2",XT="_content_lfd62_2",ZT="_backdrop_lfd62_2",fh={container:GT,content:XT,backdrop:ZT},Oc={laptop:"(min-width: 1024px)"},JT=()=>window.matchMedia(Oc.laptop).matches,fx=({children:e,handler:n})=>{const i=k.useRef(n.close);i.current=n.close;const l=k.useMemo(()=>{if(!n.position)return;const s={};if(typeof window<"u"){const o=n.position.y>window.innerHeight/2,c=n.position.x>window.innerWidth/2;o?s.bottom=window.innerHeight-n.position.y:s.top=n.position.y,JT()?c?s.right=window.innerWidth-n.position.x:s.left=n.position.x:(s.right=36,s.left=36)}return s},[n]);return k.useEffect(()=>{const s=o=>{o.code==="Escape"&&i.current()};return window.addEventListener("keyup",s),()=>{window.removeEventListener("keyup",s)}},[]),l?b.jsxs("div",{className:fh.container,children:[b.jsx("div",{className:fh.backdrop,onClick:s=>{s.stopPropagation(),s.preventDefault(),n.close()}}),b.jsx("div",{className:fh.content,style:l,children:e})]}):null},WT="_table_1ty7x_2",e_="_root_1ty7x_2",t_="_content_1ty7x_2",n_="_sub_1ty7x_2",Ru={table:WT,root:e_,content:t_,sub:n_},dx=({hook:e,onClick:n})=>b.jsxs("button",{className:Ru.root,onClick:n,title:e.where,children:[b.jsx("span",{children:"📄"}),b.jsxs("div",{className:Ru.content,children:[b.jsxs("p",{className:Ru.table,children:[" ",e.on.toTable]}),b.jsxs("span",{className:Ru.sub,children:[e.on.toColumn," = ",e.on.fromTable,".",e.on.fromColumn]})]})]},e.where),Fi=(e,n)=>e!=null&&e>n,r_=({handler:e,rowIndex:n})=>{const{hooks:i,entities:l,dataSourceId:s,getEntityKey:o,getValue:c}=k.useContext(Or),{state:f}=k.useContext(Rt),{data:h}=k.useContext(mr),[d,m]=k.useState(""),[y,x]=k.useState(""),v=k.useMemo(()=>h==null?void 0:h.rows[n],[h,n]),w=()=>{v&&(xl("⬇️ "+f.table,{joins:f.joins,table:f.table,dataSourceId:f.dataSourceId,filters:[...f.filters,...f.groupBy.map(q=>({id:ai(),connector:"AND",column:q.value,operator:"=",value:[{value:c(v,q)}]}))]},!0),e.close())},T=q=>{if(!v)return;const L=c(v,{value:`${q.on.fromTable}.${q.on.fromColumn}`});xl(`↗️ ${q.on.toColumn} equals ${L}`,{table:q.on.toTable,dataSourceId:s,filters:[{id:ai(),column:q.on.toTable+"."+q.on.toColumn,operator:L==null?"IS NULL":"=",connector:"AND",value:L!=null?[{value:L,isColumn:!1}]:void 0}]},!0),e.close()},_=q=>{if(!v)return;const L=o(q,v);e.close(),Up({tableName:q,dataSourceId:s,entityId:L}),e.close()},E=k.useMemo(()=>d?l.filter(q=>q.includes(d)):l,[l,d]),N=k.useMemo(()=>{if(!h)return[];const q=y.toLowerCase();return i.filter(L=>h.columns.some(X=>X.column===L.on.fromColumn&&X.table===L.on.fromTable)?L.on.toTable.toLowerCase().includes(q):!1)},[y,i,h]),j=f.groupBy.length>0;return b.jsxs(fx,{handler:e,children:[l.length>0&&b.jsxs("div",{className:be.optionsContainer,children:[b.jsxs("label",{className:"flex justify-between items-center gap-2 sticky left-0 top-0 input",children:[b.jsx("span",{className:"font-semibold",children:"📝"}),b.jsx("input",{className:"flex-1 outline-0",placeholder:"Edit/View row",value:d,onChange:q=>m(q.target.value)})]}),b.jsx("div",{className:"flex flex-col",children:Fi(E.length,0)?E.map(q=>b.jsx("button",{className:xe(be.optionItem,"font-semibold"),onClick:()=>_(q),children:b.jsxs("span",{children:["📄 ",q]})},q)):b.jsx("p",{className:"text-center text-gray-800",children:"Empty"})})]}),i.length>0&&b.jsxs("div",{className:be.optionsContainer,children:[b.jsxs("label",{className:"flex justify-between items-center gap-2 sticky left-0 top-0 p-1 input",children:[b.jsx("span",{className:"font-semibold",children:"↗️"}),b.jsx("input",{className:"flex-1 outline-0",placeholder:"Connected tables",value:y,onChange:q=>x(q.target.value)})]}),b.jsx("div",{className:"flex flex-col",children:N.length>0?N.map(q=>b.jsx(dx,{hook:q,onClick:()=>T(q)},q.where)):b.jsx("p",{className:"text-center text-gray-800",children:"Empty"})})]}),j&&b.jsx("button",{onClick:w,className:be.underlyingRowsBtn,children:"🎯 Underlying rows"})]})},i_={ASC:"⬆️",DESC:"⬇️"},l_=()=>{const{data:e}=k.useContext(mr),{orderBy:n,updateOrderBy:i}=$T(),l=(e==null?void 0:e.columns)||[],s=n[0];return b.jsx("thead",{children:b.jsx("tr",{children:l.map(o=>b.jsxs("td",{className:be.headerCell,children:[b.jsxs("div",{className:"overflow-hidden",children:[b.jsx("p",{className:"text-xs truncate",children:o.table||"-"}),b.jsx("p",{className:"text-sm font-bold truncate",children:o.column})]}),b.jsx("div",{className:be.headerActions,children:b.jsx("button",{onClick:()=>i(o.full),children:(s==null?void 0:s.column)===o.full?i_[s.direction]:"↕️"})})]},o.full))})})};function a_({value:e,row:n,col:i}){if(e==="")return b.jsx("span",{className:"pointer-events-none text-black/30 truncate",children:"<EMPTY STRING>"});if(e==null)return b.jsx("span",{className:"pointer-events-none text-black/30",children:"<NULL>"});const l=gl(e);return b.jsxs(b.Fragment,{children:[b.jsx("span",{"data-row":n,className:"truncate block pointer-events-none",children:l}),b.jsxs("div",{className:be.cellActions,children:[b.jsx("button",{"data-copy-col":i,"data-copy-row":n,children:"📋"}),b.jsx("button",{"data-show-col":i,"data-show-row":n,children:"👀"}),b.jsx("button",{"data-filter-col":i,"data-filter-row":n,children:"🔎"})]})]})}const s_=k.memo(({row:e,isLastRow:n,index:i})=>b.jsx("tr",{className:xe(be.tableRowCells,n&&"rounded-b-lg"),children:e.map((l,s)=>b.jsx("td",{className:be.cell,"data-row":i,children:b.jsx(a_,{value:l,col:s,row:i})},s))})),o_=()=>{var m,y;const{data:e,error:n,isLoading:i,isFetching:l}=k.useContext(mr),s=zp(n),o=KT(),c=cx(),[f,h]=k.useState(void 0),d=x=>{var T;const v=(T=x.target)==null?void 0:T.dataset,w=v==null?void 0:v.row;w!=null&&(h(parseInt(w)),c.open(x))};return b.jsxs(b.Fragment,{children:[f!=null&&c.show&&b.jsx(r_,{handler:c,rowIndex:f}),s&&b.jsx(cn,{className:"my-4",variant:"danger",children:s}),i&&b.jsx("div",{className:be.tableLoading,children:"Loading data"}),e&&b.jsxs("table",{className:xe(be.table,l&&be.semiTransparent),onContextMenu:d,onClick:o,children:[b.jsx(l_,{}),b.jsxs("tbody",{children:[((m=e.rows)==null?void 0:m.length)<1&&b.jsx("tr",{className:be.tableEmpty,children:b.jsx("td",{colSpan:e.columns.length,children:"No data"})}),(y=e.rows)==null?void 0:y.map((x,v)=>b.jsx(s_,{index:v,row:x,isLastRow:v===e.rows.length-1},v))]})]})]})},u_="_root_kj4nb_2",c_="_root-show_kj4nb_2",f_="_content-desktop_kj4nb_2",d_="_content-mobile_kj4nb_2",h_="_card_kj4nb_2",p_="_cards-list_kj4nb_2",m_="_sub-text_kj4nb_2",g_="_text_kj4nb_2",y_="_section-title_kj4nb_2",b_="_sidebar-action_kj4nb_2",v_="_sidebar-add-action_kj4nb_2",x_="_section-container_kj4nb_2",w_="_close-button_kj4nb_2",S_="_section-open-btn_kj4nb_2",C_="_show_kj4nb_2",ve={root:u_,rootShow:c_,contentDesktop:f_,contentMobile:d_,card:h_,cardsList:p_,subText:m_,text:g_,sectionTitle:y_,sidebarAction:b_,sidebarAddAction:v_,sectionContainer:x_,closeButton:w_,sectionOpenBtn:S_,show:C_};function E_(e,n){if(!e&&!n)return!0;if(!e||!n||e.length!==n.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==n[i])return!1;return!0}const hx=()=>{const{state:e,setState:n}=k.useContext(Rt),i=k.useCallback(s=>{n(o=>({...o,filters:s}))},[n]),l=k.useCallback(s=>{n(o=>({...o,filters:o.filters.filter(c=>!(s.column===c.column&&s.operator===c.operator&&E_(s.value,c.value)))}))},[n]);return{filters:e.filters,removeFilter:l,setFilters:i}},k_=(e,n)=>e.type!==n.type||e.on!==n.on||e.table!==n.table,A_=(e,n)=>e.type===n.type&&e.on===n.on&&e.table===n.table,px=()=>{const{state:e,setState:n}=k.useContext(Rt),i=k.useCallback(l=>{n(s=>{const o=s.joins;if(o.some(f=>A_(f,l))){const f=l.table+".";return{...s,joins:o.filter(h=>k_(h,l)),columns:s.columns.filter(h=>!h.value.startsWith(f)),groupBy:s.groupBy.filter(h=>!h.value.startsWith(f)),orderBy:s.orderBy.filter(h=>!h.column.startsWith(f)),aggregations:s.aggregations.filter(h=>!h.value.startsWith(f)),filters:s.filters.filter(h=>!h.column.startsWith(f))}}return{...s,joins:[...o,l]}})},[n]);return{joins:e.joins,toggle:i}},Bp=e=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"ionicon",viewBox:"0 0 512 512",...e},k.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:48,d:"M184 112l144 144-144 144"})),ga=new Map,T_=e=>{const n=[];return e.ctrlKey&&n.push("CTRL"),e.altKey&&n.push("ALT"),e.shiftKey&&n.push("SHIFT"),e.metaKey&&n.push("META"),n.push(e.key.toLowerCase()),n.join("+")},__=e=>{var l,s,o;const n=(s=(l=e.target)==null?void 0:l.tagName)==null?void 0:s.toLowerCase();if(e.ctrlKey||e.altKey||e.metaKey||["input","textarea","select"].includes(n)||(o=e.target)!=null&&o.isContentEditable)return;const i=ga.get(T_(e));i&&i.length>0&&i[i.length-1].callback()},N_=(e,n,i="")=>{const l=e.toLowerCase(),s=ga.get(e);return s?ga.set(e,[...s,{callback:n,label:i}]):ga.set(l,[{callback:n,label:i}]),()=>{const o=e.toLowerCase(),c=ga.get(o);c&&ga.set(o,c.filter(f=>f.callback!==n))}};window.addEventListener("keyup",__);function Jn(e,n,i){const l=k.useRef({callback:n,label:i});l.current.callback=n,k.useEffect(()=>N_(e,()=>{l.current.callback()},l.current.label),[e])}const R_=()=>{const e=oo("Hotkey"),n=Wn(),i=nn(),{data:l}=jr();Jn("n",()=>{l&&e()},"📖 New query"),Jn("w",()=>{if(!l)return;jc.get().length<1?e():i.pathname!==rt.workbench.path&&n(rt.workbench.path)},"🛠️ Open Workbench"),Jn("h",()=>{i.pathname!==rt.home.path&&n(rt.home.path)},"🏠 Go home")},[j_,O_]=wn(!1),qp=()=>O_(e=>!e),D_="_sidebar_hqtc7_2",M_="_sidebar-visible_hqtc7_2",L_="_sidebar-container_hqtc7_2",z_="_sidebar-invisible_hqtc7_2",U_="_backdrop_hqtc7_2",Bs={sidebar:D_,sidebarVisible:M_,sidebarContainer:L_,sidebarInvisible:z_,backdrop:U_},B_=({children:e,backdropClose:n,isVisible:i,onClose:l,onClosed:s,contentClassName:o})=>{const[c,f]=k.useState(!1),h=()=>{n&&l()},d=m=>{i||getComputedStyle(m.currentTarget).opacity==="0"&&(f(!1),s&&s())};return k.useEffect(()=>{i&&f(!0)},[i]),b.jsxs("div",{onTransitionEnd:d,className:xe(Bs.sidebar,i?Bs.sidebarVisible:Bs.sidebarInvisible),children:[b.jsx("div",{onClick:h,className:Bs.backdrop}),b.jsx("div",{className:xe(Bs.sidebarContainer,o),children:c&&e})]})},Db=e=>window.matchMedia(e).matches;function Hp(e,{defaultValue:n=!1,initializeWithValue:i=!0}={}){const[l,s]=k.useState(()=>i?Db(e):n);return k.useLayoutEffect(()=>{const o=window.matchMedia(e);function c(){s(()=>Db(e))}return c(),o.addListener?o.addListener(c):o.addEventListener("change",c),()=>{o.removeListener?o.removeListener(c):o.removeEventListener("change",c)}},[e]),l}const[Dc,Fp]=wn({filters:!1,joins:!1,columns:!1,groupBy:!1,aggregate:!1}),sr=e=>Fp(n=>({...n,[e]:!0})),Mc=e=>Fp(n=>({...n,[e]:!1})),oc=e=>Fp(n=>({...n,[e]:!n[e]})),q_=()=>{const e=j_();return Hp(Oc.laptop)?b.jsx("div",{className:xe(ve.root,e&&ve.rootShow),children:b.jsxs("div",{className:xe(ve.contentDesktop,"no-scrollbar"),children:[b.jsx(Lb,{}),b.jsx(Mb,{}),b.jsx(Fb,{}),b.jsx(Hb,{}),b.jsx(qb,{}),b.jsx(Ub,{}),b.jsx(Bb,{}),b.jsx(zb,{})]})}):b.jsx(B_,{isVisible:e,onClose:qp,backdropClose:!0,children:b.jsxs("div",{className:ve.contentMobile,children:[b.jsx(Lb,{}),b.jsx(Mb,{}),b.jsx(Fb,{}),b.jsx(Hb,{}),b.jsx(qb,{}),b.jsx(Ub,{}),b.jsx(Bb,{}),b.jsx(zb,{})]})})};function fo({onShow:e,show:n,title:i,items:l}){return b.jsxs("div",{className:"flex justify-between items-center",children:[b.jsx("p",{className:ve.sectionTitle,children:i}),l>0&&b.jsxs("button",{className:xe(ve.sectionOpenBtn,n&&ve.show),onClick:e,children:[b.jsx("span",{children:l}),b.jsx(Bp,{width:16,height:16})]})]})}function Mb(){const{name:e,tabId:n}=k.useContext(Or),{data:i}=k.useContext(mr),l=()=>{n&&kl("New tab name",e).then(o=>{o&&Dp(n,o)})},s=()=>{i!=null&&i.query&&(navigator.clipboard.writeText(i==null?void 0:i.query),tn.success("Query copied to clipboard"))};return Jn("r",l,"Rename tab"),b.jsxs("div",{className:"grid lg:grid-cols-2 gap-1 px-2 mb-4",children:[b.jsx("button",{className:ve.sidebarAction,onClick:l,children:b.jsx("span",{children:"✏️ Rename tab"})}),b.jsx("button",{className:ve.sidebarAction,onClick:s,children:b.jsx("span",{children:"🖋️ Copy SQL"})})]})}function Lb(){const{state:e}=k.useContext(Rt),{data:n}=_c(e.dataSourceId);return b.jsxs("div",{className:ve.sectionContainer,children:[b.jsx("div",{className:ve.card,children:b.jsxs("div",{children:[b.jsx("p",{className:ve.subText,children:"📄 Table"}),b.jsx("p",{className:xe(ve.text,"text-blue-600"),children:e.table})]})}),b.jsx("div",{className:xe(ve.card,"mt-2"),children:b.jsxs("div",{children:[b.jsx("p",{className:ve.subText,children:"📦 Data source"}),b.jsx("p",{className:xe(ve.text,"text-blue-600"),children:n==null?void 0:n.name})]})})]})}function zb(){const{state:e,setState:n}=k.useContext(Rt),[i,l]=k.useState(!0),s=o=>{n(c=>({...c,groupBy:c.groupBy.filter(f=>ri(f)!==o)}))};return b.jsxs("div",{className:ve.sectionContainer,children:[b.jsx(fo,{title:"📚 Group by",show:i,onShow:()=>l(!i),items:e.groupBy.length}),i&&e.groupBy.length>0&&b.jsx("div",{className:ve.cardsList,children:e.groupBy.map(o=>b.jsxs("div",{className:ve.card,children:[b.jsx("span",{className:ve.text,children:ri(o)}),b.jsx("button",{className:ve.closeButton,onClick:()=>s(ri(o)),children:b.jsx(pr,{width:20,height:20})})]}))}),b.jsxs("button",{className:ve.sidebarAddAction,onClick:()=>sr("groupBy"),children:[b.jsx("span",{className:"hotkey",children:"G"}),b.jsx("span",{children:"Add group by"})]})]})}function Ub(){const{state:e,setState:n}=k.useContext(Rt),[i,l]=k.useState(!1),s=c=>{n(f=>({...f,columns:f.columns.filter(h=>ri(h)!==c)}))},o=e.aggregations.length>0||e.groupBy.length>0;return b.jsxs("div",{className:ve.sectionContainer,children:[b.jsx(fo,{title:"👀 Columns",show:i,onShow:()=>l(!i),items:o?0:e.columns.length}),o&&b.jsx(cn,{variant:"warning",className:"border border-yellow-800 my-2",children:b.jsx("span",{className:ve.text,children:"Columns are ignored when there is at least one aggregation or group by"})}),!o&&i&&e.columns.length>0&&b.jsx("div",{className:ve.cardsList,children:e.columns.map(c=>b.jsxs("div",{className:ve.card,children:[b.jsx("span",{className:ve.text,children:ri(c)}),b.jsx("button",{className:ve.closeButton,onClick:()=>s(ri(c)),children:b.jsx(pr,{width:20,height:20})})]}))}),!o&&b.jsxs("button",{className:ve.sidebarAddAction,onClick:()=>sr("columns"),children:[b.jsx("span",{className:"hotkey",children:"C"}),b.jsx("span",{children:"Show/Hide columns"})]})]})}function Bb(){const{state:e,setState:n}=k.useContext(Rt),[i,l]=k.useState(!0),s=o=>{const c=ri(o);n(f=>({...f,aggregations:f.aggregations.filter(h=>h.fn!==o.fn||h.value!==o.value),orderBy:f.orderBy.filter(h=>h.column!==c)}))};return b.jsxs("div",{className:ve.sectionContainer,children:[b.jsx(fo,{title:"🔢 Aggregations",show:i,onShow:()=>l(!i),items:e.aggregations.length}),i&&e.aggregations.length>0&&b.jsx("div",{className:ve.cardsList,children:e.aggregations.map(o=>b.jsxs("div",{className:ve.card,children:[b.jsxs("span",{className:ve.text,children:[o.fn," ",o.value]}),b.jsx("button",{className:ve.closeButton,onClick:()=>s(o),children:b.jsx(pr,{width:20,height:20})})]}))}),b.jsxs("button",{className:ve.sidebarAddAction,onClick:()=>sr("aggregate"),children:[b.jsx("span",{className:"hotkey",children:"A"}),b.jsx("span",{children:"Aggregate data"})]})]})}const H_=e=>(e==null?void 0:e.map(n=>n.value).join(", "))||"";function qb(){const{state:e}=k.useContext(Rt),{removeFilter:n}=hx(),[i,l]=k.useState(!0),s=()=>{sr("filters")};return b.jsxs("div",{className:ve.sectionContainer,children:[b.jsx(fo,{title:"🎚️ Filters",show:i,onShow:()=>l(!i),items:e.filters.length}),i&&e.filters.length>0&&b.jsx("div",{className:ve.cardsList,children:e.filters.map((o,c)=>b.jsxs("div",{className:ve.card,children:[b.jsxs("div",{className:"overflow-hidden",children:[b.jsx("p",{className:xe(ve.subText,"truncate"),children:o.column}),b.jsxs("p",{className:xe(ve.text,"truncate"),children:[Np[o.operator]," ",H_(o.value)]})]}),b.jsx("button",{className:ve.closeButton,onClick:()=>n(o),children:b.jsx(pr,{width:20,height:20})})]},c))}),b.jsxs("button",{className:ve.sidebarAddAction,onClick:s,children:[b.jsx("span",{className:"hotkey",children:"F"}),b.jsx("span",{children:"Filter data"})]})]})}function Hb(){const{toggle:e}=px(),{availableJoins:n}=k.useContext(Or),{state:i}=k.useContext(Rt),[l,s]=k.useState(!0);return b.jsxs("div",{className:ve.sectionContainer,children:[b.jsx(fo,{title:"📄 Joins",show:l,onShow:()=>s(!l),items:i.joins.length}),l&&i.joins.length>0&&b.jsx("div",{className:ve.cardsList,children:i.joins.map((o,c)=>b.jsxs("div",{className:ve.card,children:[b.jsxs("div",{className:"overflow-hidden",children:[b.jsxs("p",{className:xe(ve.subText,"truncate"),children:["on ",o.on]}),b.jsx("p",{className:ve.text,children:o.table})]}),c===i.joins.length-1&&b.jsx("button",{className:ve.closeButton,onClick:()=>e(o),children:b.jsx(pr,{width:20,height:20})})]},o.table+o.on))}),n.length>0&&b.jsxs("button",{onClick:()=>sr("joins"),className:ve.sidebarAddAction,children:[b.jsx("span",{className:"hotkey",children:"J"}),b.jsx("span",{children:"Join table"})]})]})}function Fb(){const{state:e,setState:n}=k.useContext(Rt);if(!e.orderBy.length)return null;const i=l=>{n(s=>({...s,orderBy:s.orderBy.filter(o=>o.column!==l.column&&o.direction!==l.direction)}))};return b.jsxs("div",{className:ve.sectionContainer,children:[b.jsx("p",{className:ve.sectionTitle,children:"Order by"}),b.jsx("div",{className:ve.cardsList,children:e.orderBy.map((l,s)=>b.jsxs("div",{className:ve.card,children:[b.jsxs("div",{className:"overflow-hidden",children:[b.jsx("p",{className:xe(ve.subText,"truncate"),children:l.direction}),b.jsx("p",{className:ve.text,children:l.column})]}),b.jsx("button",{className:ve.closeButton,onClick:()=>i(l),children:b.jsx(pr,{width:20,height:20})})]},s))})]})}const mx=()=>{const{state:e,setState:n}=k.useContext(Rt),i=k.useCallback(s=>{n(o=>({...o,page:s}))},[n]),l=k.useCallback(s=>{n(o=>({...o,size:s}))},[n]);return{page:e.page,size:e.size,setSize:l,setPage:i}},F_=()=>er({mutationFn:async e=>{const{data:n}=await st.post("/queries",e);return n.data},onSuccess:()=>{mt.invalidateQueries(["queries"]),so()}}),P_=()=>er({mutationFn:async({id:e,payload:n})=>{const{data:i}=await st.patch("/queries/"+e,n);return i.data},onSuccess:e=>{mt.invalidateQueries(["query",e.id]),so(),_k(),e.isTrash}});function Q_(e,n){const i={};return Object.entries(e).forEach(([l,s])=>{n.includes(l)||(i[l]=s)}),i}const[I_,gx]=wn(void 0),Xh=()=>gx(void 0),wa=Math.min,yl=Math.max,uc=Math.round,ju=Math.floor,_r=e=>({x:e,y:e}),V_={left:"right",right:"left",bottom:"top",top:"bottom"},$_={start:"end",end:"start"};function Zh(e,n,i){return yl(e,wa(n,i))}function ho(e,n){return typeof e=="function"?e(n):e}function wl(e){return e.split("-")[0]}function po(e){return e.split("-")[1]}function yx(e){return e==="x"?"y":"x"}function Pp(e){return e==="y"?"height":"width"}function Hi(e){return["top","bottom"].includes(wl(e))?"y":"x"}function Qp(e){return yx(Hi(e))}function Y_(e,n,i){i===void 0&&(i=!1);const l=po(e),s=Qp(e),o=Pp(s);let c=s==="x"?l===(i?"end":"start")?"right":"left":l==="start"?"bottom":"top";return n.reference[o]>n.floating[o]&&(c=cc(c)),[c,cc(c)]}function K_(e){const n=cc(e);return[Jh(e),n,Jh(n)]}function Jh(e){return e.replace(/start|end/g,n=>$_[n])}function G_(e,n,i){const l=["left","right"],s=["right","left"],o=["top","bottom"],c=["bottom","top"];switch(e){case"top":case"bottom":return i?n?s:l:n?l:s;case"left":case"right":return n?o:c;default:return[]}}function X_(e,n,i,l){const s=po(e);let o=G_(wl(e),i==="start",l);return s&&(o=o.map(c=>c+"-"+s),n&&(o=o.concat(o.map(Jh)))),o}function cc(e){return e.replace(/left|right|bottom|top/g,n=>V_[n])}function Z_(e){return{top:0,right:0,bottom:0,left:0,...e}}function bx(e){return typeof e!="number"?Z_(e):{top:e,right:e,bottom:e,left:e}}function fc(e){const{x:n,y:i,width:l,height:s}=e;return{width:l,height:s,top:i,left:n,right:n+l,bottom:i+s,x:n,y:i}}function Pb(e,n,i){let{reference:l,floating:s}=e;const o=Hi(n),c=Qp(n),f=Pp(c),h=wl(n),d=o==="y",m=l.x+l.width/2-s.width/2,y=l.y+l.height/2-s.height/2,x=l[f]/2-s[f]/2;let v;switch(h){case"top":v={x:m,y:l.y-s.height};break;case"bottom":v={x:m,y:l.y+l.height};break;case"right":v={x:l.x+l.width,y};break;case"left":v={x:l.x-s.width,y};break;default:v={x:l.x,y:l.y}}switch(po(n)){case"start":v[c]-=x*(i&&d?-1:1);break;case"end":v[c]+=x*(i&&d?-1:1);break}return v}const J_=async(e,n,i)=>{const{placement:l="bottom",strategy:s="absolute",middleware:o=[],platform:c}=i,f=o.filter(Boolean),h=await(c.isRTL==null?void 0:c.isRTL(n));let d=await c.getElementRects({reference:e,floating:n,strategy:s}),{x:m,y}=Pb(d,l,h),x=l,v={},w=0;for(let T=0;T<f.length;T++){const{name:_,fn:E}=f[T],{x:N,y:j,data:q,reset:L}=await E({x:m,y,initialPlacement:l,placement:x,strategy:s,middlewareData:v,rects:d,platform:c,elements:{reference:e,floating:n}});m=N??m,y=j??y,v={...v,[_]:{...v[_],...q}},L&&w<=50&&(w++,typeof L=="object"&&(L.placement&&(x=L.placement),L.rects&&(d=L.rects===!0?await c.getElementRects({reference:e,floating:n,strategy:s}):L.rects),{x:m,y}=Pb(d,x,h)),T=-1)}return{x:m,y,placement:x,strategy:s,middlewareData:v}};async function vx(e,n){var i;n===void 0&&(n={});const{x:l,y:s,platform:o,rects:c,elements:f,strategy:h}=e,{boundary:d="clippingAncestors",rootBoundary:m="viewport",elementContext:y="floating",altBoundary:x=!1,padding:v=0}=ho(n,e),w=bx(v),_=f[x?y==="floating"?"reference":"floating":y],E=fc(await o.getClippingRect({element:(i=await(o.isElement==null?void 0:o.isElement(_)))==null||i?_:_.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(f.floating)),boundary:d,rootBoundary:m,strategy:h})),N=y==="floating"?{x:l,y:s,width:c.floating.width,height:c.floating.height}:c.reference,j=await(o.getOffsetParent==null?void 0:o.getOffsetParent(f.floating)),q=await(o.isElement==null?void 0:o.isElement(j))?await(o.getScale==null?void 0:o.getScale(j))||{x:1,y:1}:{x:1,y:1},L=fc(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:N,offsetParent:j,strategy:h}):N);return{top:(E.top-L.top+w.top)/q.y,bottom:(L.bottom-E.bottom+w.bottom)/q.y,left:(E.left-L.left+w.left)/q.x,right:(L.right-E.right+w.right)/q.x}}const W_=e=>({name:"arrow",options:e,async fn(n){const{x:i,y:l,placement:s,rects:o,platform:c,elements:f,middlewareData:h}=n,{element:d,padding:m=0}=ho(e,n)||{};if(d==null)return{};const y=bx(m),x={x:i,y:l},v=Qp(s),w=Pp(v),T=await c.getDimensions(d),_=v==="y",E=_?"top":"left",N=_?"bottom":"right",j=_?"clientHeight":"clientWidth",q=o.reference[w]+o.reference[v]-x[v]-o.floating[w],L=x[v]-o.reference[v],D=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d));let X=D?D[j]:0;(!X||!await(c.isElement==null?void 0:c.isElement(D)))&&(X=f.floating[j]||o.floating[w]);const ee=q/2-L/2,ie=X/2-T[w]/2-1,U=wa(y[E],ie),ae=wa(y[N],ie),te=U,ue=X-T[w]-ae,J=X/2-T[w]/2+ee,oe=Zh(te,J,ue),B=!h.arrow&&po(s)!=null&&J!==oe&&o.reference[w]/2-(J<te?U:ae)-T[w]/2<0,G=B?J<te?J-te:J-ue:0;return{[v]:x[v]+G,data:{[v]:oe,centerOffset:J-oe-G,...B&&{alignmentOffset:G}},reset:B}}}),eN=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var i,l;const{placement:s,middlewareData:o,rects:c,initialPlacement:f,platform:h,elements:d}=n,{mainAxis:m=!0,crossAxis:y=!0,fallbackPlacements:x,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:T=!0,..._}=ho(e,n);if((i=o.arrow)!=null&&i.alignmentOffset)return{};const E=wl(s),N=Hi(f),j=wl(f)===f,q=await(h.isRTL==null?void 0:h.isRTL(d.floating)),L=x||(j||!T?[cc(f)]:K_(f)),D=w!=="none";!x&&D&&L.push(...X_(f,T,w,q));const X=[f,...L],ee=await vx(n,_),ie=[];let U=((l=o.flip)==null?void 0:l.overflows)||[];if(m&&ie.push(ee[E]),y){const J=Y_(s,c,q);ie.push(ee[J[0]],ee[J[1]])}if(U=[...U,{placement:s,overflows:ie}],!ie.every(J=>J<=0)){var ae,te;const J=(((ae=o.flip)==null?void 0:ae.index)||0)+1,oe=X[J];if(oe&&(!(y==="alignment"?N!==Hi(oe):!1)||U.every(ne=>ne.overflows[0]>0&&Hi(ne.placement)===N)))return{data:{index:J,overflows:U},reset:{placement:oe}};let B=(te=U.filter(G=>G.overflows[0]<=0).sort((G,ne)=>G.overflows[1]-ne.overflows[1])[0])==null?void 0:te.placement;if(!B)switch(v){case"bestFit":{var ue;const G=(ue=U.filter(ne=>{if(D){const pe=Hi(ne.placement);return pe===N||pe==="y"}return!0}).map(ne=>[ne.placement,ne.overflows.filter(pe=>pe>0).reduce((pe,C)=>pe+C,0)]).sort((ne,pe)=>ne[1]-pe[1])[0])==null?void 0:ue[0];G&&(B=G);break}case"initialPlacement":B=f;break}if(s!==B)return{reset:{placement:B}}}return{}}}};async function tN(e,n){const{placement:i,platform:l,elements:s}=e,o=await(l.isRTL==null?void 0:l.isRTL(s.floating)),c=wl(i),f=po(i),h=Hi(i)==="y",d=["left","top"].includes(c)?-1:1,m=o&&h?-1:1,y=ho(n,e);let{mainAxis:x,crossAxis:v,alignmentAxis:w}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return f&&typeof w=="number"&&(v=f==="end"?w*-1:w),h?{x:v*m,y:x*d}:{x:x*d,y:v*m}}const nN=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(n){var i,l;const{x:s,y:o,placement:c,middlewareData:f}=n,h=await tN(n,e);return c===((i=f.offset)==null?void 0:i.placement)&&(l=f.arrow)!=null&&l.alignmentOffset?{}:{x:s+h.x,y:o+h.y,data:{...h,placement:c}}}}},rN=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:i,y:l,placement:s}=n,{mainAxis:o=!0,crossAxis:c=!1,limiter:f={fn:_=>{let{x:E,y:N}=_;return{x:E,y:N}}},...h}=ho(e,n),d={x:i,y:l},m=await vx(n,h),y=Hi(wl(s)),x=yx(y);let v=d[x],w=d[y];if(o){const _=x==="y"?"top":"left",E=x==="y"?"bottom":"right",N=v+m[_],j=v-m[E];v=Zh(N,v,j)}if(c){const _=y==="y"?"top":"left",E=y==="y"?"bottom":"right",N=w+m[_],j=w-m[E];w=Zh(N,w,j)}const T=f.fn({...n,[x]:v,[y]:w});return{...T,data:{x:T.x-i,y:T.y-l,enabled:{[x]:o,[y]:c}}}}}};function Lc(){return typeof window<"u"}function La(e){return xx(e)?(e.nodeName||"").toLowerCase():"#document"}function Mn(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function Dr(e){var n;return(n=(xx(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function xx(e){return Lc()?e instanceof Node||e instanceof Mn(e).Node:!1}function cr(e){return Lc()?e instanceof Element||e instanceof Mn(e).Element:!1}function Nr(e){return Lc()?e instanceof HTMLElement||e instanceof Mn(e).HTMLElement:!1}function Qb(e){return!Lc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Mn(e).ShadowRoot}function mo(e){const{overflow:n,overflowX:i,overflowY:l,display:s}=fr(e);return/auto|scroll|overlay|hidden|clip/.test(n+l+i)&&!["inline","contents"].includes(s)}function iN(e){return["table","td","th"].includes(La(e))}function zc(e){return[":popover-open",":modal"].some(n=>{try{return e.matches(n)}catch{return!1}})}function Ip(e){const n=Vp(),i=cr(e)?fr(e):e;return["transform","translate","scale","rotate","perspective"].some(l=>i[l]?i[l]!=="none":!1)||(i.containerType?i.containerType!=="normal":!1)||!n&&(i.backdropFilter?i.backdropFilter!=="none":!1)||!n&&(i.filter?i.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(l=>(i.willChange||"").includes(l))||["paint","layout","strict","content"].some(l=>(i.contain||"").includes(l))}function lN(e){let n=Pi(e);for(;Nr(n)&&!Sa(n);){if(Ip(n))return n;if(zc(n))return null;n=Pi(n)}return null}function Vp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Sa(e){return["html","body","#document"].includes(La(e))}function fr(e){return Mn(e).getComputedStyle(e)}function Uc(e){return cr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Pi(e){if(La(e)==="html")return e;const n=e.assignedSlot||e.parentNode||Qb(e)&&e.host||Dr(e);return Qb(n)?n.host:n}function wx(e){const n=Pi(e);return Sa(n)?e.ownerDocument?e.ownerDocument.body:e.body:Nr(n)&&mo(n)?n:wx(n)}function Zs(e,n,i){var l;n===void 0&&(n=[]),i===void 0&&(i=!0);const s=wx(e),o=s===((l=e.ownerDocument)==null?void 0:l.body),c=Mn(s);if(o){const f=Wh(c);return n.concat(c,c.visualViewport||[],mo(s)?s:[],f&&i?Zs(f):[])}return n.concat(s,Zs(s,[],i))}function Wh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Sx(e){const n=fr(e);let i=parseFloat(n.width)||0,l=parseFloat(n.height)||0;const s=Nr(e),o=s?e.offsetWidth:i,c=s?e.offsetHeight:l,f=uc(i)!==o||uc(l)!==c;return f&&(i=o,l=c),{width:i,height:l,$:f}}function $p(e){return cr(e)?e:e.contextElement}function ba(e){const n=$p(e);if(!Nr(n))return _r(1);const i=n.getBoundingClientRect(),{width:l,height:s,$:o}=Sx(n);let c=(o?uc(i.width):i.width)/l,f=(o?uc(i.height):i.height)/s;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}const aN=_r(0);function Cx(e){const n=Mn(e);return!Vp()||!n.visualViewport?aN:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function sN(e,n,i){return n===void 0&&(n=!1),!i||n&&i!==Mn(e)?!1:n}function Sl(e,n,i,l){n===void 0&&(n=!1),i===void 0&&(i=!1);const s=e.getBoundingClientRect(),o=$p(e);let c=_r(1);n&&(l?cr(l)&&(c=ba(l)):c=ba(e));const f=sN(o,i,l)?Cx(o):_r(0);let h=(s.left+f.x)/c.x,d=(s.top+f.y)/c.y,m=s.width/c.x,y=s.height/c.y;if(o){const x=Mn(o),v=l&&cr(l)?Mn(l):l;let w=x,T=Wh(w);for(;T&&l&&v!==w;){const _=ba(T),E=T.getBoundingClientRect(),N=fr(T),j=E.left+(T.clientLeft+parseFloat(N.paddingLeft))*_.x,q=E.top+(T.clientTop+parseFloat(N.paddingTop))*_.y;h*=_.x,d*=_.y,m*=_.x,y*=_.y,h+=j,d+=q,w=Mn(T),T=Wh(w)}}return fc({width:m,height:y,x:h,y:d})}function Yp(e,n){const i=Uc(e).scrollLeft;return n?n.left+i:Sl(Dr(e)).left+i}function Ex(e,n,i){i===void 0&&(i=!1);const l=e.getBoundingClientRect(),s=l.left+n.scrollLeft-(i?0:Yp(e,l)),o=l.top+n.scrollTop;return{x:s,y:o}}function oN(e){let{elements:n,rect:i,offsetParent:l,strategy:s}=e;const o=s==="fixed",c=Dr(l),f=n?zc(n.floating):!1;if(l===c||f&&o)return i;let h={scrollLeft:0,scrollTop:0},d=_r(1);const m=_r(0),y=Nr(l);if((y||!y&&!o)&&((La(l)!=="body"||mo(c))&&(h=Uc(l)),Nr(l))){const v=Sl(l);d=ba(l),m.x=v.x+l.clientLeft,m.y=v.y+l.clientTop}const x=c&&!y&&!o?Ex(c,h,!0):_r(0);return{width:i.width*d.x,height:i.height*d.y,x:i.x*d.x-h.scrollLeft*d.x+m.x+x.x,y:i.y*d.y-h.scrollTop*d.y+m.y+x.y}}function uN(e){return Array.from(e.getClientRects())}function cN(e){const n=Dr(e),i=Uc(e),l=e.ownerDocument.body,s=yl(n.scrollWidth,n.clientWidth,l.scrollWidth,l.clientWidth),o=yl(n.scrollHeight,n.clientHeight,l.scrollHeight,l.clientHeight);let c=-i.scrollLeft+Yp(e);const f=-i.scrollTop;return fr(l).direction==="rtl"&&(c+=yl(n.clientWidth,l.clientWidth)-s),{width:s,height:o,x:c,y:f}}function fN(e,n){const i=Mn(e),l=Dr(e),s=i.visualViewport;let o=l.clientWidth,c=l.clientHeight,f=0,h=0;if(s){o=s.width,c=s.height;const d=Vp();(!d||d&&n==="fixed")&&(f=s.offsetLeft,h=s.offsetTop)}return{width:o,height:c,x:f,y:h}}function dN(e,n){const i=Sl(e,!0,n==="fixed"),l=i.top+e.clientTop,s=i.left+e.clientLeft,o=Nr(e)?ba(e):_r(1),c=e.clientWidth*o.x,f=e.clientHeight*o.y,h=s*o.x,d=l*o.y;return{width:c,height:f,x:h,y:d}}function Ib(e,n,i){let l;if(n==="viewport")l=fN(e,i);else if(n==="document")l=cN(Dr(e));else if(cr(n))l=dN(n,i);else{const s=Cx(e);l={x:n.x-s.x,y:n.y-s.y,width:n.width,height:n.height}}return fc(l)}function kx(e,n){const i=Pi(e);return i===n||!cr(i)||Sa(i)?!1:fr(i).position==="fixed"||kx(i,n)}function hN(e,n){const i=n.get(e);if(i)return i;let l=Zs(e,[],!1).filter(f=>cr(f)&&La(f)!=="body"),s=null;const o=fr(e).position==="fixed";let c=o?Pi(e):e;for(;cr(c)&&!Sa(c);){const f=fr(c),h=Ip(c);!h&&f.position==="fixed"&&(s=null),(o?!h&&!s:!h&&f.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||mo(c)&&!h&&kx(e,c))?l=l.filter(m=>m!==c):s=f,c=Pi(c)}return n.set(e,l),l}function pN(e){let{element:n,boundary:i,rootBoundary:l,strategy:s}=e;const c=[...i==="clippingAncestors"?zc(n)?[]:hN(n,this._c):[].concat(i),l],f=c[0],h=c.reduce((d,m)=>{const y=Ib(n,m,s);return d.top=yl(y.top,d.top),d.right=wa(y.right,d.right),d.bottom=wa(y.bottom,d.bottom),d.left=yl(y.left,d.left),d},Ib(n,f,s));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function mN(e){const{width:n,height:i}=Sx(e);return{width:n,height:i}}function gN(e,n,i){const l=Nr(n),s=Dr(n),o=i==="fixed",c=Sl(e,!0,o,n);let f={scrollLeft:0,scrollTop:0};const h=_r(0);function d(){h.x=Yp(s)}if(l||!l&&!o)if((La(n)!=="body"||mo(s))&&(f=Uc(n)),l){const v=Sl(n,!0,o,n);h.x=v.x+n.clientLeft,h.y=v.y+n.clientTop}else s&&d();o&&!l&&s&&d();const m=s&&!l&&!o?Ex(s,f):_r(0),y=c.left+f.scrollLeft-h.x-m.x,x=c.top+f.scrollTop-h.y-m.y;return{x:y,y:x,width:c.width,height:c.height}}function dh(e){return fr(e).position==="static"}function Vb(e,n){if(!Nr(e)||fr(e).position==="fixed")return null;if(n)return n(e);let i=e.offsetParent;return Dr(e)===i&&(i=i.ownerDocument.body),i}function Ax(e,n){const i=Mn(e);if(zc(e))return i;if(!Nr(e)){let s=Pi(e);for(;s&&!Sa(s);){if(cr(s)&&!dh(s))return s;s=Pi(s)}return i}let l=Vb(e,n);for(;l&&iN(l)&&dh(l);)l=Vb(l,n);return l&&Sa(l)&&dh(l)&&!Ip(l)?i:l||lN(e)||i}const yN=async function(e){const n=this.getOffsetParent||Ax,i=this.getDimensions,l=await i(e.floating);return{reference:gN(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function bN(e){return fr(e).direction==="rtl"}const vN={convertOffsetParentRelativeRectToViewportRelativeRect:oN,getDocumentElement:Dr,getClippingRect:pN,getOffsetParent:Ax,getElementRects:yN,getClientRects:uN,getDimensions:mN,getScale:ba,isElement:cr,isRTL:bN};function Tx(e,n){return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height}function xN(e,n){let i=null,l;const s=Dr(e);function o(){var f;clearTimeout(l),(f=i)==null||f.disconnect(),i=null}function c(f,h){f===void 0&&(f=!1),h===void 0&&(h=1),o();const d=e.getBoundingClientRect(),{left:m,top:y,width:x,height:v}=d;if(f||n(),!x||!v)return;const w=ju(y),T=ju(s.clientWidth-(m+x)),_=ju(s.clientHeight-(y+v)),E=ju(m),j={rootMargin:-w+"px "+-T+"px "+-_+"px "+-E+"px",threshold:yl(0,wa(1,h))||1};let q=!0;function L(D){const X=D[0].intersectionRatio;if(X!==h){if(!q)return c();X?c(!1,X):l=setTimeout(()=>{c(!1,1e-7)},1e3)}X===1&&!Tx(d,e.getBoundingClientRect())&&c(),q=!1}try{i=new IntersectionObserver(L,{...j,root:s.ownerDocument})}catch{i=new IntersectionObserver(L,j)}i.observe(e)}return c(!0),o}function wN(e,n,i,l){l===void 0&&(l={});const{ancestorScroll:s=!0,ancestorResize:o=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:h=!1}=l,d=$p(e),m=s||o?[...d?Zs(d):[],...Zs(n)]:[];m.forEach(E=>{s&&E.addEventListener("scroll",i,{passive:!0}),o&&E.addEventListener("resize",i)});const y=d&&f?xN(d,i):null;let x=-1,v=null;c&&(v=new ResizeObserver(E=>{let[N]=E;N&&N.target===d&&v&&(v.unobserve(n),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var j;(j=v)==null||j.observe(n)})),i()}),d&&!h&&v.observe(d),v.observe(n));let w,T=h?Sl(e):null;h&&_();function _(){const E=Sl(e);T&&!Tx(T,E)&&i(),T=E,w=requestAnimationFrame(_)}return i(),()=>{var E;m.forEach(N=>{s&&N.removeEventListener("scroll",i),o&&N.removeEventListener("resize",i)}),y==null||y(),(E=v)==null||E.disconnect(),v=null,h&&cancelAnimationFrame(w)}}const SN=nN,CN=rN,EN=eN,kN=W_,$b=(e,n,i)=>{const l=new Map,s={platform:vN,...i},o={...s.platform,_c:l};return J_(e,n,{...s,platform:o})};var hh={exports:{}};/*!
233
- Copyright (c) 2018 Jed Watson.
234
- Licensed under the MIT License (MIT), see
235
- http://jedwatson.github.io/classnames
236
- */var Yb;function AN(){return Yb||(Yb=1,function(e){(function(){var n={}.hasOwnProperty;function i(){for(var o="",c=0;c<arguments.length;c++){var f=arguments[c];f&&(o=s(o,l(f)))}return o}function l(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return i.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var c="";for(var f in o)n.call(o,f)&&o[f]&&(c=s(c,f));return c}function s(o,c){return c?o?o+" "+c:o+c:o}e.exports?(i.default=i,e.exports=i):window.classNames=i})()}(hh)),hh.exports}var TN=AN();const ep=ka(TN);var Kb={};const _N="react-tooltip-core-styles",NN="react-tooltip-base-styles",Gb={core:!1,base:!1};function Xb({css:e,id:n=NN,type:i="base",ref:l}){var s,o;if(!e||typeof document>"u"||Gb[i]||i==="core"&&typeof process<"u"&&(!((s=process==null?void 0:Kb)===null||s===void 0)&&s.REACT_TOOLTIP_DISABLE_CORE_STYLES)||i!=="base"&&typeof process<"u"&&(!((o=process==null?void 0:Kb)===null||o===void 0)&&o.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;i==="core"&&(n=_N),l||(l={});const{insertAt:c}=l;if(document.getElementById(n))return;const f=document.head||document.getElementsByTagName("head")[0],h=document.createElement("style");h.id=n,h.type="text/css",c==="top"&&f.firstChild?f.insertBefore(h,f.firstChild):f.appendChild(h),h.styleSheet?h.styleSheet.cssText=e:h.appendChild(document.createTextNode(e)),Gb[i]=!0}const Zb=async({elementReference:e=null,tooltipReference:n=null,tooltipArrowReference:i=null,place:l="top",offset:s=10,strategy:o="absolute",middlewares:c=[SN(Number(s)),EN({fallbackAxisSideDirection:"start"}),CN({padding:5})],border:f,arrowSize:h=8})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:l};if(n===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:l};const d=c;return i?(d.push(kN({element:i,padding:5})),$b(e,n,{placement:l,strategy:o,middleware:d}).then(({x:m,y,placement:x,middlewareData:v})=>{var w,T;const _={left:`${m}px`,top:`${y}px`,border:f},{x:E,y:N}=(w=v.arrow)!==null&&w!==void 0?w:{x:0,y:0},j=(T={top:"bottom",right:"left",bottom:"top",left:"right"}[x.split("-")[0]])!==null&&T!==void 0?T:"bottom",q=f&&{borderBottom:f,borderRight:f};let L=0;if(f){const D=`${f}`.match(/(\d+)px/);L=D!=null&&D[1]?Number(D[1]):1}return{tooltipStyles:_,tooltipArrowStyles:{left:E!=null?`${E}px`:"",top:N!=null?`${N}px`:"",right:"",bottom:"",...q,[j]:`-${h/2+L}px`},place:x}})):$b(e,n,{placement:"bottom",strategy:o,middleware:d}).then(({x:m,y,placement:x})=>({tooltipStyles:{left:`${m}px`,top:`${y}px`},tooltipArrowStyles:{},place:x}))},Jb=(e,n)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,n),Wb=(e,n,i)=>{let l=null;const s=function(...o){const c=()=>{l=null};!l&&(e.apply(this,o),l=setTimeout(c,n))};return s.cancel=()=>{l&&(clearTimeout(l),l=null)},s},e1=e=>e!==null&&!Array.isArray(e)&&typeof e=="object",tp=(e,n)=>{if(e===n)return!0;if(Array.isArray(e)&&Array.isArray(n))return e.length===n.length&&e.every((s,o)=>tp(s,n[o]));if(Array.isArray(e)!==Array.isArray(n))return!1;if(!e1(e)||!e1(n))return e===n;const i=Object.keys(e),l=Object.keys(n);return i.length===l.length&&i.every(s=>tp(e[s],n[s]))},RN=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const n=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(i=>{const l=n.getPropertyValue(i);return l==="auto"||l==="scroll"})},t1=e=>{if(!e)return null;let n=e.parentElement;for(;n;){if(RN(n))return n;n=n.parentElement}return document.scrollingElement||document.documentElement},jN=typeof window<"u"?k.useLayoutEffect:k.useEffect,Xn=e=>{e.current&&(clearTimeout(e.current),e.current=null)},ON="DEFAULT_TOOLTIP_ID",DN={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},MN=k.createContext({getTooltipData:()=>DN});function _x(e=ON){return k.useContext(MN).getTooltipData(e)}var da={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"},ph={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 LN=({forwardRef:e,id:n,className:i,classNameArrow:l,variant:s="dark",anchorId:o,anchorSelect:c,place:f="top",offset:h=10,events:d=["hover"],openOnClick:m=!1,positionStrategy:y="absolute",middlewares:x,wrapper:v,delayShow:w=0,delayHide:T=0,float:_=!1,hidden:E=!1,noArrow:N=!1,clickable:j=!1,closeOnEsc:q=!1,closeOnScroll:L=!1,closeOnResize:D=!1,openEvents:X,closeEvents:ee,globalCloseEvents:ie,imperativeModeOnly:U,style:ae,position:te,afterShow:ue,afterHide:J,disableTooltip:oe,content:B,contentWrapperRef:G,isOpen:ne,defaultIsOpen:pe=!1,setIsOpen:C,activeAnchor:I,setActiveAnchor:se,border:R,opacity:fe,arrowColor:Te,arrowSize:ce=8,role:ft="tooltip"})=>{var je;const Ie=k.useRef(null),Ft=k.useRef(null),wt=k.useRef(null),fn=k.useRef(null),nr=k.useRef(null),[dn,ui]=k.useState({tooltipStyles:{},tooltipArrowStyles:{},place:f}),[Dt,Mt]=k.useState(!1),[rr,Cn]=k.useState(!1),[Ke,Un]=k.useState(null),Lr=k.useRef(!1),gr=k.useRef(null),{anchorRefs:zr,setActiveAnchor:ci}=_x(n),$=k.useRef(!1),[W,me]=k.useState([]),ge=k.useRef(!1),qe=m||d.includes("click"),Pt=qe||(X==null?void 0:X.click)||(X==null?void 0:X.dblclick)||(X==null?void 0:X.mousedown),Yt=X?{...X}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!X&&qe&&Object.assign(Yt,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const gt=ee?{...ee}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!ee&&qe&&Object.assign(gt,{mouseleave:!1,blur:!1,mouseout:!1});const yt=ie?{...ie}:{escape:q||!1,scroll:L||!1,resize:D||!1,clickOutsideAnchor:Pt||!1};U&&(Object.assign(Yt,{mouseover:!1,focus:!1,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(gt,{mouseout:!1,blur:!1,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(yt,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),jN(()=>(ge.current=!0,()=>{ge.current=!1}),[]);const He=le=>{ge.current&&(le&&Cn(!0),setTimeout(()=>{ge.current&&(C==null||C(le),ne===void 0&&Mt(le))},10))};k.useEffect(()=>{if(ne===void 0)return()=>null;ne&&Cn(!0);const le=setTimeout(()=>{Mt(ne)},10);return()=>{clearTimeout(le)}},[ne]),k.useEffect(()=>{if(Dt!==Lr.current)if(Xn(nr),Lr.current=Dt,Dt)ue==null||ue();else{const le=(he=>{const Ee=he.match(/^([\d.]+)(ms|s)$/);if(!Ee)return 0;const[,ht,Ut]=Ee;return Number(ht)*(Ut==="ms"?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));nr.current=setTimeout(()=>{Cn(!1),Un(null),J==null||J()},le+25)}},[Dt]);const dt=le=>{ui(he=>tp(he,le)?he:le)},Lt=(le=w)=>{Xn(wt),rr?He(!0):wt.current=setTimeout(()=>{He(!0)},le)},zt=(le=T)=>{Xn(fn),fn.current=setTimeout(()=>{$.current||He(!1)},le)},fi=le=>{var he;if(!le)return;const Ee=(he=le.currentTarget)!==null&&he!==void 0?he:le.target;if(!(Ee!=null&&Ee.isConnected))return se(null),void ci({current:null});w?Lt():He(!0),se(Ee),ci({current:Ee}),Xn(fn)},Ur=()=>{j?zt(T||100):T?zt():He(!1),Xn(wt)},yr=({x:le,y:he})=>{var Ee;const ht={getBoundingClientRect:()=>({x:le,y:he,width:0,height:0,top:he,left:le,right:le,bottom:he})};Zb({place:(Ee=Ke==null?void 0:Ke.place)!==null&&Ee!==void 0?Ee:f,offset:h,elementReference:ht,tooltipReference:Ie.current,tooltipArrowReference:Ft.current,strategy:y,middlewares:x,border:R,arrowSize:ce}).then(Ut=>{dt(Ut)})},Bn=le=>{if(!le)return;const he=le,Ee={x:he.clientX,y:he.clientY};yr(Ee),gr.current=Ee},Vi=le=>{var he;if(!Dt)return;const Ee=le.target;Ee.isConnected&&(!((he=Ie.current)===null||he===void 0)&&he.contains(Ee)||[document.querySelector(`[id='${o}']`),...W].some(ht=>ht==null?void 0:ht.contains(Ee))||(He(!1),Xn(wt)))},$i=Wb(fi,50),St=Wb(Ur,50),Kt=le=>{St.cancel(),$i(le)},we=()=>{$i.cancel(),St()},Le=k.useCallback(()=>{var le,he;const Ee=(le=Ke==null?void 0:Ke.position)!==null&&le!==void 0?le:te;Ee?yr(Ee):_?gr.current&&yr(gr.current):I!=null&&I.isConnected&&Zb({place:(he=Ke==null?void 0:Ke.place)!==null&&he!==void 0?he:f,offset:h,elementReference:I,tooltipReference:Ie.current,tooltipArrowReference:Ft.current,strategy:y,middlewares:x,border:R,arrowSize:ce}).then(ht=>{ge.current&&dt(ht)})},[Dt,I,B,ae,f,Ke==null?void 0:Ke.place,h,y,te,Ke==null?void 0:Ke.position,_,ce]);k.useEffect(()=>{var le,he;const Ee=new Set(zr);W.forEach($e=>{oe!=null&&oe($e)||Ee.add({current:$e})});const ht=document.querySelector(`[id='${o}']`);ht&&!(oe!=null&&oe(ht))&&Ee.add({current:ht});const Ut=()=>{He(!1)},qn=t1(I),En=t1(Ie.current);yt.scroll&&(window.addEventListener("scroll",Ut),qn==null||qn.addEventListener("scroll",Ut),En==null||En.addEventListener("scroll",Ut));let Ct=null;yt.resize?window.addEventListener("resize",Ut):I&&Ie.current&&(Ct=wN(I,Ie.current,Le,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const Xt=$e=>{$e.key==="Escape"&&He(!1)};yt.escape&&window.addEventListener("keydown",Xt),yt.clickOutsideAnchor&&window.addEventListener("click",Vi);const Ve=[],kn=$e=>!!($e!=null&&$e.target&&(I!=null&&I.contains($e.target))),Yi=$e=>{Dt&&kn($e)||fi($e)},di=$e=>{Dt&&kn($e)&&Ur()},Et=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],Ba=["click","dblclick","mousedown","mouseup"];Object.entries(Yt).forEach(([$e,Hn])=>{Hn&&(Et.includes($e)?Ve.push({event:$e,listener:Kt}):Ba.includes($e)&&Ve.push({event:$e,listener:Yi}))}),Object.entries(gt).forEach(([$e,Hn])=>{Hn&&(Et.includes($e)?Ve.push({event:$e,listener:we}):Ba.includes($e)&&Ve.push({event:$e,listener:di}))}),_&&Ve.push({event:"pointermove",listener:Bn});const qa=()=>{$.current=!0},br=()=>{$.current=!1,Ur()},Br=j&&(gt.mouseout||gt.mouseleave);return Br&&((le=Ie.current)===null||le===void 0||le.addEventListener("mouseover",qa),(he=Ie.current)===null||he===void 0||he.addEventListener("mouseout",br)),Ve.forEach(({event:$e,listener:Hn})=>{Ee.forEach(Tl=>{var Ki;(Ki=Tl.current)===null||Ki===void 0||Ki.addEventListener($e,Hn)})}),()=>{var $e,Hn;yt.scroll&&(window.removeEventListener("scroll",Ut),qn==null||qn.removeEventListener("scroll",Ut),En==null||En.removeEventListener("scroll",Ut)),yt.resize?window.removeEventListener("resize",Ut):Ct==null||Ct(),yt.clickOutsideAnchor&&window.removeEventListener("click",Vi),yt.escape&&window.removeEventListener("keydown",Xt),Br&&(($e=Ie.current)===null||$e===void 0||$e.removeEventListener("mouseover",qa),(Hn=Ie.current)===null||Hn===void 0||Hn.removeEventListener("mouseout",br)),Ve.forEach(({event:Tl,listener:Ki})=>{Ee.forEach(_l=>{var hi;(hi=_l.current)===null||hi===void 0||hi.removeEventListener(Tl,Ki)})})}},[I,Le,rr,zr,W,X,ee,ie,qe,w,T]),k.useEffect(()=>{var le,he;let Ee=(he=(le=Ke==null?void 0:Ke.anchorSelect)!==null&&le!==void 0?le:c)!==null&&he!==void 0?he:"";!Ee&&n&&(Ee=`[data-tooltip-id='${n.replace(/'/g,"\\'")}']`);const ht=new MutationObserver(Ut=>{const qn=[],En=[];Ut.forEach(Ct=>{if(Ct.type==="attributes"&&Ct.attributeName==="data-tooltip-id"&&(Ct.target.getAttribute("data-tooltip-id")===n?qn.push(Ct.target):Ct.oldValue===n&&En.push(Ct.target)),Ct.type==="childList"){if(I){const Xt=[...Ct.removedNodes].filter(Ve=>Ve.nodeType===1);if(Ee)try{En.push(...Xt.filter(Ve=>Ve.matches(Ee))),En.push(...Xt.flatMap(Ve=>[...Ve.querySelectorAll(Ee)]))}catch{}Xt.some(Ve=>{var kn;return!!(!((kn=Ve==null?void 0:Ve.contains)===null||kn===void 0)&&kn.call(Ve,I))&&(Cn(!1),He(!1),se(null),Xn(wt),Xn(fn),!0)})}if(Ee)try{const Xt=[...Ct.addedNodes].filter(Ve=>Ve.nodeType===1);qn.push(...Xt.filter(Ve=>Ve.matches(Ee))),qn.push(...Xt.flatMap(Ve=>[...Ve.querySelectorAll(Ee)]))}catch{}}}),(qn.length||En.length)&&me(Ct=>[...Ct.filter(Xt=>!En.includes(Xt)),...qn])});return ht.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{ht.disconnect()}},[n,c,Ke==null?void 0:Ke.anchorSelect,I]),k.useEffect(()=>{Le()},[Le]),k.useEffect(()=>{if(!(G!=null&&G.current))return()=>null;const le=new ResizeObserver(()=>{setTimeout(()=>Le())});return le.observe(G.current),()=>{le.disconnect()}},[B,G==null?void 0:G.current]),k.useEffect(()=>{var le;const he=document.querySelector(`[id='${o}']`),Ee=[...W,he];I&&Ee.includes(I)||se((le=W[0])!==null&&le!==void 0?le:he)},[o,W,I]),k.useEffect(()=>(pe&&He(!0),()=>{Xn(wt),Xn(fn)}),[]),k.useEffect(()=>{var le;let he=(le=Ke==null?void 0:Ke.anchorSelect)!==null&&le!==void 0?le:c;if(!he&&n&&(he=`[data-tooltip-id='${n.replace(/'/g,"\\'")}']`),he)try{const Ee=Array.from(document.querySelectorAll(he));me(Ee)}catch{me([])}},[n,c,Ke==null?void 0:Ke.anchorSelect]),k.useEffect(()=>{wt.current&&(Xn(wt),Lt(w))},[w]);const an=(je=Ke==null?void 0:Ke.content)!==null&&je!==void 0?je:B,Gt=Dt&&Object.keys(dn.tooltipStyles).length>0;return k.useImperativeHandle(e,()=>({open:le=>{if(le!=null&&le.anchorSelect)try{document.querySelector(le.anchorSelect)}catch{return void console.warn(`[react-tooltip] "${le.anchorSelect}" is not a valid CSS selector`)}Un(le??null),le!=null&&le.delay?Lt(le.delay):He(!0)},close:le=>{le!=null&&le.delay?zt(le.delay):He(!1)},activeAnchor:I,place:dn.place,isOpen:!!(rr&&!E&&an&&Gt)})),rr&&!E&&an?nt.createElement(v,{id:n,role:ft,className:ep("react-tooltip",da.tooltip,ph.tooltip,ph[s],i,`react-tooltip__place-${dn.place}`,da[Gt?"show":"closing"],Gt?"react-tooltip__show":"react-tooltip__closing",y==="fixed"&&da.fixed,j&&da.clickable),onTransitionEnd:le=>{Xn(nr),Dt||le.propertyName!=="opacity"||(Cn(!1),Un(null),J==null||J())},style:{...ae,...dn.tooltipStyles,opacity:fe!==void 0&&Gt?fe:void 0},ref:Ie},an,nt.createElement(v,{className:ep("react-tooltip-arrow",da.arrow,ph.arrow,l,N&&da.noArrow),style:{...dn.tooltipArrowStyles,background:Te?`linear-gradient(to right bottom, transparent 50%, ${Te} 50%)`:void 0,"--rt-arrow-size":`${ce}px`},ref:Ft})):null},zN=({content:e})=>nt.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),Kp=nt.forwardRef(({id:e,anchorId:n,anchorSelect:i,content:l,html:s,render:o,className:c,classNameArrow:f,variant:h="dark",place:d="top",offset:m=10,wrapper:y="div",children:x=null,events:v=["hover"],openOnClick:w=!1,positionStrategy:T="absolute",middlewares:_,delayShow:E=0,delayHide:N=0,float:j=!1,hidden:q=!1,noArrow:L=!1,clickable:D=!1,closeOnEsc:X=!1,closeOnScroll:ee=!1,closeOnResize:ie=!1,openEvents:U,closeEvents:ae,globalCloseEvents:te,imperativeModeOnly:ue=!1,style:J,position:oe,isOpen:B,defaultIsOpen:G=!1,disableStyleInjection:ne=!1,border:pe,opacity:C,arrowColor:I,arrowSize:se,setIsOpen:R,afterShow:fe,afterHide:Te,disableTooltip:ce,role:ft="tooltip"},je)=>{const[Ie,Ft]=k.useState(l),[wt,fn]=k.useState(s),[nr,dn]=k.useState(d),[ui,Dt]=k.useState(h),[Mt,rr]=k.useState(m),[Cn,Ke]=k.useState(E),[Un,Lr]=k.useState(N),[gr,zr]=k.useState(j),[ci,$]=k.useState(q),[W,me]=k.useState(y),[ge,qe]=k.useState(v),[Pt,Yt]=k.useState(T),[gt,yt]=k.useState(null),[He,dt]=k.useState(null),Lt=k.useRef(ne),{anchorRefs:zt,activeAnchor:fi}=_x(e),Ur=St=>St==null?void 0:St.getAttributeNames().reduce((Kt,we)=>{var Le;return we.startsWith("data-tooltip-")&&(Kt[we.replace(/^data-tooltip-/,"")]=(Le=St==null?void 0:St.getAttribute(we))!==null&&Le!==void 0?Le:null),Kt},{}),yr=St=>{const Kt={place:we=>{var Le;dn((Le=we)!==null&&Le!==void 0?Le:d)},content:we=>{Ft(we??l)},html:we=>{fn(we??s)},variant:we=>{var Le;Dt((Le=we)!==null&&Le!==void 0?Le:h)},offset:we=>{rr(we===null?m:Number(we))},wrapper:we=>{var Le;me((Le=we)!==null&&Le!==void 0?Le:y)},events:we=>{const Le=we==null?void 0:we.split(" ");qe(Le??v)},"position-strategy":we=>{var Le;Yt((Le=we)!==null&&Le!==void 0?Le:T)},"delay-show":we=>{Ke(we===null?E:Number(we))},"delay-hide":we=>{Lr(we===null?N:Number(we))},float:we=>{zr(we===null?j:we==="true")},hidden:we=>{$(we===null?q:we==="true")},"class-name":we=>{yt(we)}};Object.values(Kt).forEach(we=>we(null)),Object.entries(St).forEach(([we,Le])=>{var an;(an=Kt[we])===null||an===void 0||an.call(Kt,Le)})};k.useEffect(()=>{Ft(l)},[l]),k.useEffect(()=>{fn(s)},[s]),k.useEffect(()=>{dn(d)},[d]),k.useEffect(()=>{Dt(h)},[h]),k.useEffect(()=>{rr(m)},[m]),k.useEffect(()=>{Ke(E)},[E]),k.useEffect(()=>{Lr(N)},[N]),k.useEffect(()=>{zr(j)},[j]),k.useEffect(()=>{$(q)},[q]),k.useEffect(()=>{Yt(T)},[T]),k.useEffect(()=>{Lt.current!==ne&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[ne]),k.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:ne==="core",disableBase:ne}}))},[]),k.useEffect(()=>{var St;const Kt=new Set(zt);let we=i;if(!we&&e&&(we=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),we)try{document.querySelectorAll(we).forEach(he=>{Kt.add({current:he})})}catch{console.warn(`[react-tooltip] "${we}" is not a valid CSS selector`)}const Le=document.querySelector(`[id='${n}']`);if(Le&&Kt.add({current:Le}),!Kt.size)return()=>null;const an=(St=He??Le)!==null&&St!==void 0?St:fi.current,Gt=new MutationObserver(he=>{he.forEach(Ee=>{var ht;if(!an||Ee.type!=="attributes"||!(!((ht=Ee.attributeName)===null||ht===void 0)&&ht.startsWith("data-tooltip-")))return;const Ut=Ur(an);yr(Ut)})}),le={attributes:!0,childList:!1,subtree:!1};if(an){const he=Ur(an);yr(he),Gt.observe(an,le)}return()=>{Gt.disconnect()}},[zt,fi,He,n,i]),k.useEffect(()=>{J!=null&&J.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),pe&&!Jb("border",`${pe}`)&&console.warn(`[react-tooltip] "${pe}" is not a valid \`border\`.`),J!=null&&J.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),C&&!Jb("opacity",`${C}`)&&console.warn(`[react-tooltip] "${C}" is not a valid \`opacity\`.`)},[]);let Bn=x;const Vi=k.useRef(null);if(o){const St=o({content:(He==null?void 0:He.getAttribute("data-tooltip-content"))||Ie||null,activeAnchor:He});Bn=St?nt.createElement("div",{ref:Vi,className:"react-tooltip-content-wrapper"},St):null}else Ie&&(Bn=Ie);wt&&(Bn=nt.createElement(zN,{content:wt}));const $i={forwardRef:je,id:e,anchorId:n,anchorSelect:i,className:ep(c,gt),classNameArrow:f,content:Bn,contentWrapperRef:Vi,place:nr,variant:ui,offset:Mt,wrapper:W,events:ge,openOnClick:w,positionStrategy:Pt,middlewares:_,delayShow:Cn,delayHide:Un,float:gr,hidden:ci,noArrow:L,clickable:D,closeOnEsc:X,closeOnScroll:ee,closeOnResize:ie,openEvents:U,closeEvents:ae,globalCloseEvents:te,imperativeModeOnly:ue,style:J,position:oe,isOpen:B,defaultIsOpen:G,border:pe,opacity:C,arrowColor:I,arrowSize:se,setIsOpen:R,afterShow:fe,afterHide:Te,disableTooltip:ce,activeAnchor:He,setActiveAnchor:St=>dt(St),role:ft};return nt.createElement(LN,{...$i})});typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||Xb({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"}),e.detail.disableBase||Xb({css:`
237
- .styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:var(--rt-arrow-size);height:var(--rt-arrow-size)}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});function UN(){return b.jsxs("div",{className:"flex items-center bg-white border-b border-gray-200 overflow-auto no-scrollbar",children:[b.jsx(BN,{}),b.jsx(qN,{}),b.jsx(HN,{}),b.jsx(FN,{})]})}function BN(){const{state:e}=k.useContext(Rt),{dataSourceId:n,name:i}=k.useContext(Or),{data:l}=_c(n),{data:s}=k.useContext(mr),o=uo(bn.EDITOR),c=F_(),f=()=>{var d,m;(d=s==null?void 0:s.columns)!=null&&d[0].table&&Lp({table:(m=s==null?void 0:s.columns)==null?void 0:m[0].table,dataSourceId:n})},h=async()=>{const d=Q_(e,["size","page"]),m=await kl("Query name",i);m&&c.mutate({name:m,dataSourceId:n,opts:d})};return Jn("s",h,"Save query"),b.jsxs("div",{className:be.tableConfig,children:[b.jsxs("button",{"data-tooltip-id":"default","data-tooltip-content":"Manage filters",onClick:()=>sr("filters"),className:xe(be.tableAction,be.blue),children:[b.jsx("span",{children:"Filter"}),b.jsx("span",{className:"hotkey",children:"F"})]}),b.jsxs("button",{"data-tooltip-id":"default","data-tooltip-content":"Join tables",onClick:()=>sr("joins"),className:xe(be.tableAction,be.blue),children:[b.jsx("span",{children:"Join"}),b.jsx("span",{className:"hotkey",children:"J"})]}),b.jsx(PN,{}),b.jsxs("button",{"data-tooltip-id":"explorer-more-actions",className:xe(be.tableAction,be.blue),children:[b.jsx("span",{children:"More actions"}),b.jsx(Bp,{width:16,height:16,className:"rotate-90"})]}),b.jsxs(Kp,{id:"explorer-more-actions",className:"z-10 shadow-md flex flex-col",clickable:!0,variant:"light",opacity:1,children:[b.jsxs("button",{onClick:()=>sr("columns"),className:xe(be.tableAction,be.modal,be.blue,"justify-between"),children:[b.jsx("span",{children:"Columns"}),b.jsx("span",{className:"hotkey",children:"C"})]}),b.jsxs("button",{onClick:()=>sr("groupBy"),className:xe(be.tableAction,be.modal,be.blue,"justify-between"),children:[b.jsx("span",{children:"Group by"}),b.jsx("span",{className:"hotkey",children:"G"})]}),b.jsxs("button",{onClick:()=>sr("aggregate"),className:xe(be.tableAction,be.modal,be.blue,"justify-between"),children:[b.jsx("span",{children:"Aggregate"}),b.jsx("span",{className:"hotkey",children:"A"})]}),b.jsxs("button",{onClick:qp,className:xe(be.tableAction,be.modal,be.blue,"justify-between"),children:[b.jsx("span",{children:"Query editor"}),b.jsx("span",{className:"hotkey",children:"E"})]}),o&&b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"h-0.5 my-2 bg-gray-100"}),b.jsxs("button",{onClick:h,className:xe(be.tableAction,be.modal,be.blue),children:[b.jsx("span",{children:"Save query"}),b.jsx("span",{className:"hotkey",children:"S"})]}),(l==null?void 0:l.allowInsert)===!0&&b.jsx("button",{onClick:f,className:xe(be.tableAction,be.modal,be.blue),children:"Insert new row"})]})]})]})}function qN(){const{name:e}=k.useContext(Or),{state:n}=k.useContext(Rt),{refetch:i}=k.useContext(mr),l=oo("Workbook"),s=()=>{xl(e,n,!0),Xh()};return Jn("e",qp,"Show editor sidebar"),b.jsxs("div",{className:be.tableConfig,children:[b.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Refresh data",onClick:()=>i(),className:xe(be.tableAction,be.blue),children:"Refresh"}),b.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Clone in a new tab",onClick:s,className:xe(be.tableAction,be.blue),children:"Clone"}),b.jsxs("button",{"data-tooltip-id":"default","data-tooltip-content":"Start new query tab",onClick:l,className:xe(be.tableAction,be.blue),children:[b.jsx("span",{children:"New query"}),b.jsx("span",{className:"hotkey",children:"N"})]})]})}function HN(){const{page:e,size:n,setPage:i}=mx(),{data:l}=k.useContext(mr),s=(l==null?void 0:l.rows.length)===n;return b.jsxs("div",{className:be.tableConfig,children:[b.jsx("button",{"data-tooltip-content":"Previous page","data-tooltip-id":"default",disabled:e<=0,className:xe(be.tableAction,be.blue),onClick:()=>i(e-1),children:"Prev"}),b.jsx("span",{className:"text-sm bg-gray-50 rounded-md px-2 border border-gray-200",children:e+1}),b.jsx("button",{"data-tooltip-content":"Next page","data-tooltip-id":"default",disabled:!s,className:xe(be.tableAction,be.blue),onClick:()=>i(e+1),children:"Next"})]})}function FN(){const{size:e,setSize:n}=mx();return b.jsx("div",{className:be.tableConfig,children:b.jsx("label",{className:be.tableAction,"data-tooltip-content":"Size","data-tooltip-id":"default",children:b.jsxs("select",{style:{height:"20px"},value:e,onChange:i=>n(parseInt(i.target.value,10)),children:[b.jsx("option",{value:5,children:"5 rows"}),b.jsx("option",{value:10,children:"10 rows"}),b.jsx("option",{value:20,children:"20 rows"}),b.jsx("option",{value:50,children:"50 rows"}),b.jsx("option",{value:100,children:"100 rows"}),b.jsx("option",{value:200,children:"200 rows"})]})})})}function PN(){const{state:e,setState:n}=k.useContext(Rt),i=()=>{n(s=>({...s,searchAll:void 0}))},l=()=>{kl("Search all text values for",e.searchAll||"",{type:"info",message:"This will search all text values using LIKE operator (numbers, dates and other non string values are not searched)."}).then(s=>{s!==void 0&&n(o=>({...o,searchAll:s.length>0?s:void 0}))})};return Jn("k",l,"Search text"),e.searchAll?b.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Remove search all filter",onClick:i,className:xe(be.tableAction,be.red),children:b.jsxs("span",{className:"truncate px-1",children:["❌ ",e.searchAll]})}):b.jsxs("button",{"data-tooltip-id":"default","data-tooltip-content":"Search text in all columns",onClick:l,className:xe(be.tableAction,be.blue),children:[b.jsx("span",{children:"Search text"}),b.jsx("span",{className:"hotkey",children:"K"})]})}const QN="_drop-container_u16km_2",IN="_item_u16km_2",n1={dropContainer:QN,item:IN},np=({dataSourceId:e,focusId:n,placeholder:i="Column",onChange:l,value:s,autoFocus:o,allowTables:c})=>{const{data:f}=Da(e),h=k.useRef(null),d=k.useMemo(()=>{if(!f)return[];let E=f;return c&&(E=f.filter(N=>c.includes(N.tableName))),E.flatMap(N=>N.columns.map(j=>({value:N.tableName+"."+j.name,label:j.name,table:N.tableName,searchValue:j.name.toLowerCase()})))},[f,c]),m=k.useMemo(()=>{const E=s.toLowerCase()||"",N=[];for(let j=0;j<d.length&&N.length<10;j++)d[j].searchValue.includes(E)&&N.push(d[j]);return N},[d,s]),[y,x]=k.useState(!1),[v,w]=k.useState(0),T=E=>{var N;if(E.key==="ArrowDown")E.preventDefault(),w(j=>(j+1)%m.length);else if(E.key==="ArrowUp")E.preventDefault(),w(j=>(j-1+m.length)%m.length);else if(E.key==="Enter"&&v>=0&&v<m.length){E.preventDefault();const j=m[v].value;x(!1);const q=d.findIndex(L=>L.value===j)>-1;l(((N=m[v])==null?void 0:N.value)||j,q,!0)}};k.useEffect(()=>{var N;const E=(N=h.current)==null?void 0:N.querySelector('[data-is-active="true"]');E&&E.scrollIntoView({behavior:"smooth",block:"nearest"})},[v]);const _=E=>{const N=E.currentTarget.value,j=d.findIndex(q=>q.value===N)>-1;l(N,j,!1)};return b.jsxs("div",{className:"relative",onFocus:()=>x(!0),onBlur:()=>x(!1),children:[b.jsx("input",{autoFocus:o,onKeyDown:T,value:s,onChange:_,className:"input w-full",placeholder:i,"data-focus":n}),y&&m.length>0&&b.jsx("div",{className:n1.dropContainer,ref:h,tabIndex:-1,children:m.map((E,N)=>b.jsxs("div",{className:n1.item,"data-is-active":v===N,onMouseDownCapture:j=>{j.preventDefault(),x(!1),l(E.value,!0,!0)},children:[b.jsx("span",{className:"text-xs font-semibold truncate",children:E.table}),b.jsx("p",{className:"truncate text-sm",children:E.label})]},N))})]})},VN="_drop-container_19uk9_2",$N="_item_19uk9_2",r1={dropContainer:VN,item:$N};function YN(e){return Xk.includes(e)?Yk:Zk.includes(e)?$k:Jk.includes(e)?Kk:_p}const KN=({value:e,onChange:n,autoFocus:i,focusId:l,colType:s})=>{const o=k.useMemo(()=>{const x=e.toLowerCase()||"";return YN(s||"").filter(v=>v.label.includes(x))},[e,s]),c=k.useRef(null),[f,h]=k.useState(!1),[d,m]=k.useState(0),y=x=>{var v;x.key==="ArrowDown"?(x.preventDefault(),m(w=>(w+1)%o.length)):x.key==="ArrowUp"?(x.preventDefault(),m(w=>(w-1+o.length)%o.length)):x.key==="Enter"&&(d>=0&&d<o.length?(x.preventDefault(),h(!1),n(((v=o[d])==null?void 0:v.label)||"",!0)):n(e,!0))};return k.useEffect(()=>{var v;const x=(v=c.current)==null?void 0:v.querySelector('[data-is-active="true"]');x&&x.scrollIntoView({behavior:"smooth",block:"nearest"})},[d]),b.jsxs("div",{className:"relative",children:[b.jsx("input",{onKeyDown:y,value:e,onChange:x=>n(x.target.value,!1),className:"input w-full",placeholder:"Operator",autoFocus:i,onFocus:()=>h(!0),onBlur:()=>h(!1),"data-focus":l}),f&&o.length>0&&b.jsx("ul",{className:r1.dropContainer,ref:c,tabIndex:-1,children:o.map((x,v)=>b.jsx("li",{className:r1.item,"data-is-active":d===v,onMouseDownCapture:w=>{w.preventDefault(),h(!1),n(x.label,!0)},children:x.label},v))})]})},GN="_actions_jpxzd_2",XN="_filter-actions_jpxzd_2",Nx={actions:GN,filterActions:XN},ZN=["=","<",">",">=","<>","!=","<="];function JN(e){for(let n=0;n<e.length;n++){const i=e[n];if(!i.operator.length&&!i.value.length&&!i.column.length)continue;if(!i.column.includes("."))return tn.error(`Filter #${n+1} has invalid column value`),!1;const l=Rp[i.operator];if(!l)return tn.error(`Filter #${n+1} has invalid operator`),!1;if(i.isColumnRef&&!ZN.includes(l))return tn.error(`Filter #${n+1} cannot reference another column because it uses '${i.operator}' operator`),!1}return!0}function WN(e){const n=[];return e.forEach(i=>{if(!i.operator.length||!i.value.length||!i.column.length)return;const l=Rp[i.operator];n.push({id:i.id,value:i.isColumnRef?[{value:i.value,isColumn:!0}]:Gk(l,i.value),operator:l,column:i.column,isEnabled:!0,connector:"AND"})}),n}function eR(e){let n="";if(e.value)for(let i=0;i<e.value.length;i++)n+=e.value[i].value,i<e.value.length-1&&(n+=", ");return n}const tR=({filter:e,dataSourceId:n,allowedTables:i,inspections:l,autoFocus:s,onChangeColumn:o,onChangeOperator:c,onChangeValue:f,onRemoveFilter:h,onIsColumnChange:d})=>{const m=k.useMemo(()=>{if(!l)return"";let y=null;for(const x of l)for(const v of x.columns)x.tableName+"."+v.name===e.column&&(y=v);return y!=null&&y.type?y.type:""},[e.column,l]);return b.jsxs("div",{className:"flex gap-2 items-center",children:[b.jsx("label",{className:"w-full",children:b.jsx(np,{dataSourceId:n,onChange:y=>o(e.id,y),value:e.column,allowTables:i,focusId:"column",autoFocus:s})}),b.jsx("label",{children:b.jsx(KN,{onChange:y=>c(e.id,y),focusId:"operator",colType:m,value:e.operator})}),lx(Rp[e.operator])&&b.jsx("label",{className:"w-full",children:e.isColumnRef?b.jsx(np,{dataSourceId:n,onChange:y=>f(e.id,y),value:e.value,allowTables:i,focusId:"value",placeholder:"Search column"}):b.jsx("input",{className:"input w-full",placeholder:"Filter value",value:e.value,onChange:y=>f(e.id,y.currentTarget.value),"data-focus":"value"})}),b.jsxs("div",{className:Nx.filterActions,children:[b.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:xe("p-0.5 cursor-pointer rounded-lg border",e.isColumnRef?"bg-blue-50 border-blue-200":"bg-white border-white"),onClick:()=>d(e.id,!e.isColumnRef),children:"🏷️"}),b.jsx("button",{tabIndex:-1,"data-tooltip-id":"default","data-tooltip-content":"Remove aggregation",className:"p-0.5 text-sm cursor-pointer",onClick:()=>h(e.id),children:b.jsx(pr,{width:20,height:20,className:"text-red-600"})})]})]})},nR=()=>{const{state:e}=k.useContext(Rt),{setFilters:n}=hx(),i=Dc(T=>T.filters),{data:l}=Da(e.dataSourceId),s=k.useMemo(()=>[e.table,...e.joins.map(T=>T.table)],[e.table,e.joins]),[o,c]=k.useState([]),f=(T,_)=>{c(E=>[...E.map(N=>N.id===T?{...N,column:_}:N)])},h=(T,_)=>{c(E=>[...E.map(N=>N.id===T?{...N,operator:_}:N)])},d=(T,_)=>{c(E=>[...E.map(N=>N.id===T?{...N,value:_}:N)])},m=()=>{c(T=>[...T,{id:ai(),value:"",column:"",operator:"",isColumnRef:!1}])},y=(T,_)=>{c(E=>[...E.map(N=>N.id===T?{...N,isColumnRef:_}:N)])},x=T=>{c(_=>_.filter(E=>E.id!==T))},v=()=>Mc("filters"),w=()=>{JN(o)&&(n(WN(o)),v())};return k.useEffect(()=>{if(!i){c([]);return}c(()=>{const T=e.filters.map(_=>{var E,N;return{id:_.id,value:eR(_),column:_.column,operator:Np[_.operator],isColumnRef:!!((N=(E=_.value)==null?void 0:E[0])!=null&&N.isColumn)}});return T.push({id:ai(),value:"",column:"",operator:"",isColumnRef:!1}),T})},[i]),Jn("f",()=>{oc("filters")},"Add new filter"),b.jsxs(rn,{isVisible:i,onClose:v,portal:!0,children:[b.jsx(tr,{onClick:v}),b.jsx("h2",{className:"text-lg font-semibold",children:"Filters"}),b.jsxs("div",{className:"flex gap-4 flex-col w-full lg:w-lg my-4",children:[o.length<1&&b.jsx("p",{className:"p-1 text-center rounded-lg bg-gray-50 border border-gray-200",children:"No filters"}),o.map((T,_)=>b.jsx(tR,{filter:T,dataSourceId:e.dataSourceId,allowedTables:s,inspections:l||[],onChangeColumn:f,onChangeOperator:h,onChangeValue:d,onRemoveFilter:x,onIsColumnChange:y,autoFocus:_===o.length-1},T.id))]}),b.jsxs("div",{className:Nx.actions,children:[b.jsx("button",{className:"button tertiary",onClick:m,children:"Add filter"}),b.jsx("button",{className:"button primary",onClick:w,children:"Apply filters"})]})]})},rR="_card_zpu14_2",iR="_cards-list_zpu14_2",lR="_join-modal_zpu14_2",aR="_close-button_zpu14_2",Ou={card:rR,cardsList:iR,joinModal:lR,closeButton:aR},sR=()=>{const{isFetching:e}=k.useContext(mr),n=Dc(d=>d.joins),{toggle:i,joins:l}=px(),{availableJoins:s}=k.useContext(Or),[o,c]=k.useState(""),f=k.useMemo(()=>{const d=o.toLowerCase();return s.filter(m=>m.on.toTable.toLowerCase().includes(d))},[s,o]),h=()=>Mc("joins");return Jn("j",()=>{s.length>0?sr("joins"):tn.error("No available tables to join")},"Add new join"),b.jsxs(rn,{isVisible:n,onClose:h,portal:!0,children:[b.jsx(tr,{onClick:h}),b.jsxs("div",{className:Ou.joinModal,children:[b.jsx("h2",{className:"text-lg font-semibold mb-4",children:"Join table"}),l.length>0&&b.jsx("div",{className:Ou.cardsList,children:l.map((d,m)=>b.jsxs("div",{className:Ou.card,children:[b.jsxs("p",{className:"text-sm truncate",children:[d.table," on ",d.on]}),m===l.length-1&&b.jsx("button",{className:Ou.closeButton,onClick:()=>i(d),disabled:e,children:b.jsx(pr,{width:20,height:20})})]},d.table+d.on))}),f.length>0?b.jsx("input",{className:"input w-full",placeholder:"Filter",autoFocus:!0,onChange:d=>c(d.target.value),value:o,disabled:e}):b.jsx(cn,{variant:"warning",children:b.jsx("p",{className:"text-sm truncate",children:"No more tables to join"})}),b.jsx("div",{className:`flex flex-col mt-2 overflow-y-auto ${e?"opacity-40":""}`,children:f.map(d=>b.jsx(dx,{hook:d,onClick:()=>{e||(i({table:d.on.toTable,type:"LEFT",on:d.where}),c(""))}},d.where))})]})]})};function oR(e){return e.reduce((n,i)=>(n[i]=!0,n),{})}function uR(e){return e.reduce((n,i)=>(n[i]=!0,n),{})}const cR="_container_126ac_2",fR="_column-label_126ac_2",dR="_not-active_126ac_2",Gu={container:cR,columnLabel:fR,notActive:dR};function hR(e){if(!e)return[];const n={};return e.forEach(i=>{n[i.table]?n[i.table].push({value:i.full,ogColumn:i.column,label:qi(i.column),type:i.type}):n[i.table]=[{value:i.full,ogColumn:i.column,label:qi(i.column),type:i.type}],Wk[i.type]&&["YEAR","MONTH","DAY"].forEach(l=>{n[i.table].push({value:l+" "+i.full,ogColumn:i.column,label:l+" "+qi(i.column),type:"number",nested:!0})})}),Object.entries(n).reduce((i,[l,s])=>(i.push({name:qi(l),columns:s}),i),[])}function pR(e,n){const i=n.toLowerCase();return e.map(l=>{const s=l.columns.filter(o=>o.label.toLowerCase().includes(i)||o.ogColumn.toLowerCase().includes(i));return{...l,columns:s}}).filter(l=>l.columns.length>0)}const mR=({column:e,selected:n,onCheck:i})=>b.jsxs("label",{className:xe(Gu.columnLabel,n?Gu.active:Gu.notActive,e.nested&&"pl-5!"),children:[b.jsx("input",{type:"checkbox",checked:n[e.value],name:e.value,onChange:i}),b.jsxs("p",{className:"flex justify-between w-full",children:[b.jsx("span",{"data-tooltip-content":e.value,"data-tooltip-id":"default",children:e.label}),b.jsx("span",{className:"text-blue-600",children:e.type})]})]},e.value),gR={columns:"c",groupBy:"g"},i1=({mode:e})=>{const n=Dc(E=>E[e]),{allColumns:i}=k.useContext(Or),{state:l,setState:s}=k.useContext(Rt),[o,c]=k.useState({}),[f,h]=k.useState(""),d=k.useMemo(()=>hR(i),[i]),m=l.aggregations.length>0||l.groupBy.length>0,y=k.useMemo(()=>f?pR(d,f):d,[f,d]),x=E=>{c(N=>({...N,[E.target.name]:E.target.checked}))},v=E=>{const N=E.target.checked;c(j=>{for(const q of i)j[q.full]=N;return{...j}})},w=()=>{Mc(e)},T=()=>{const E=[];for(const[N,j]of Object.entries(o))if(j){const[q,L]=N.split(" ");E.push({value:L||q,fn:L?q:void 0})}s(N=>({...N,[e]:E})),w()},_=k.useMemo(()=>{for(const E of i)if(!o[E.full])return!1;return!0},[o,i]);return Jn(gR[e],()=>{e==="columns"?m?tn.error("Columns are ignored when there is at least one aggregation or group by"):oc("columns"):oc("groupBy")},"Manage "+e),k.useEffect(()=>{if(!n){c({});return}c(()=>oR(l[e].map(E=>E.fn?E.fn+" "+E.value:E.value)))},[n,c]),b.jsxs(rn,{isVisible:n,onClose:w,portal:!0,children:[b.jsx(tr,{onClick:w}),b.jsxs("div",{className:Gu.container,children:[b.jsx("h2",{className:"text-lg font-semibold",children:e==="groupBy"?"Group by":"Show columns"}),b.jsx("input",{autoFocus:!0,className:"input my-2",placeholder:"Filter",value:f,onChange:E=>h(E.target.value)}),b.jsx("div",{className:"overflow-y-auto",children:y.map(E=>b.jsxs("div",{className:"my-2",children:[b.jsxs("p",{className:"font-semibold sticky top-0 bg-white p-1 z-1",children:["📄 ",E.name]}),E.columns.map(N=>b.jsx(mR,{column:N,selected:o,onCheck:x},N.value))]},E.name))}),b.jsxs("div",{className:"flex justify-end gap-2 mt-2",children:[b.jsxs("label",{className:"button tertiary flex gap-2 items-center",children:[b.jsx("input",{type:"checkbox",checked:_,onChange:v}),b.jsx("span",{children:"Select all"})]}),b.jsx("span",{className:"flex-1"}),b.jsx("button",{className:"button tertiary",onClick:w,children:"Cancel"}),b.jsx("button",{className:"button primary",onClick:T,children:"Apply"})]})]})]})},yR="_options-container_1fpdf_2",bR={optionsContainer:yR},mh="COUNT all",vR=e=>e.distinct?[e.fn,"DISTINCT",e.value].join(" "):[e.fn,e.value].join(" "),xR=()=>{const e=Dc(w=>w.aggregate),{dataSourceId:n}=k.useContext(Or),{setState:i,state:l}=k.useContext(Rt),{data:s}=k.useContext(mr),[o,c]=k.useState({fn:"",col:""}),f=w=>c({...o,fn:w.currentTarget.value}),h=w=>c({...o,col:w}),d=()=>Mc("aggregate"),m=()=>{const w=o.fn===mh?{value:"*",fn:"COUNT"}:{fn:o.fn,value:o.col,distinct:o.fn==="COUNT"};i(T=>({...T,aggregations:[...T.aggregations,w]}))},y=o.fn===mh,x=y?!1:!o.col||!o.fn,v=w=>{const T=ri(w);i(_=>({..._,aggregations:_.aggregations.filter(E=>E.fn!==w.fn||E.value!==w.value),orderBy:_.orderBy.filter(E=>E.column!==T)}))};return Jn("a",()=>{oc("aggregate")},"Aggregate data"),b.jsxs(rn,{isVisible:e,onClose:d,backdropClose:!0,portal:!0,children:[b.jsx(tr,{onClick:d}),b.jsxs("div",{children:[b.jsx("h2",{className:"text-lg font-semibold",children:"Aggregate"}),Fi(l.aggregations.length,0)&&b.jsx("div",{className:"flex flex-col gap-1 mt-4",children:l.aggregations.map((w,T)=>b.jsxs("p",{className:"p-2 rounded-md bg-gray-50 flex items-center justify-between",children:[b.jsx("span",{children:vR(w)}),b.jsx("button",{tabIndex:-1,"data-tooltip-id":"default","data-tooltip-content":"Remove aggregation",className:"p-0.5 text-sm cursor-pointer",onClick:()=>v(w),children:b.jsx(pr,{width:20,height:20,className:"text-red-600"})})]},T))}),b.jsxs("div",{className:bR.optionsContainer,children:[b.jsxs("label",{className:xe(y&&"col-span-2"),children:[b.jsx("p",{className:"font-semibold text-xs",children:"Function"}),b.jsxs("select",{className:"input w-full",value:o.fn,onChange:f,autoFocus:!0,children:[b.jsx("option",{value:"",disabled:!0,children:"Select function"}),b.jsx("option",{value:mh,children:"Count all rows"}),b.jsx("option",{value:"COUNT",children:"Count"}),b.jsx("option",{value:"SUM",children:"Sum"}),b.jsx("option",{value:"MAX",children:"Max"}),b.jsx("option",{value:"MIN",children:"Min"}),b.jsx("option",{value:"AVG",children:"Avg"})]})]}),!y&&b.jsxs("label",{children:[b.jsx("p",{className:"font-semibold text-xs",children:"Column"}),b.jsx(np,{dataSourceId:n,allowTables:(s==null?void 0:s.tables)||[],onChange:h,value:o.col})]}),b.jsx("button",{className:"button primary",disabled:x,onClick:m,children:"Add"})]})]})]})};function wR(e,n,i){const l=[];return n.length>0||i.length>0?l.push(...n,...i):e.length>0&&l.push(...e),l}const Rx=({options:e,updater:n,name:i,tabId:l})=>{const s=nA(e,n),{state:o}=s,c=$A({datasourceId:e.dataSourceId,table:e.table,filters:o.filters,joins:o.joins,page:o.page,size:o.size,orderBy:o.orderBy,columns:wR(o.columns,o.groupBy,o.aggregations),groupBy:o.groupBy,searchAll:o.searchAll}),f=tA(c.data,e.dataSourceId,i,l);return b.jsx(Or,{value:f,children:b.jsx(Rt,{value:s,children:b.jsxs(mr,{value:c,children:[b.jsx(UN,{}),b.jsxs("div",{className:"flex-1 flex overflow-hidden",children:[b.jsxs("div",{className:"m-1 flex-1 overflow-auto pb-12 no-scrollbar",children:[b.jsx("div",{className:"pb-0.5 sticky bottom-0"}),b.jsx(o_,{})]}),b.jsx(nR,{}),b.jsx(sR,{}),b.jsx(i1,{mode:"columns"}),b.jsx(i1,{mode:"groupBy"}),b.jsx(xR,{}),b.jsx(q_,{})]})]})})})},SR=e=>{if(!e)return;const n=mt.getQueryData([vl]);if(!n)return;const i=mt.getQueryData([si,n.teamId]);return i==null?void 0:i.find(l=>l.id===e)},CR=({content:e,activeAnchor:n})=>{if(!n)return null;const i=n.getAttribute("data-tab-id"),l=jc.get().find(c=>c.id===i),s=SR(l==null?void 0:l.options.dataSourceId);if(!l)return e;const o=()=>{kl("New tab name",l.label).then(c=>{c&&Dp(l.id,c)})};return b.jsxs("div",{children:[b.jsxs("button",{className:Ar.tooltipLabel,onClick:o,children:[b.jsxs("div",{className:"overflow-hidden",children:[b.jsx("p",{className:"text-xs",children:"label"}),b.jsx("p",{className:"truncate font-semibold",children:l.label})]}),b.jsx("span",{children:"✏️"})]}),b.jsxs("div",{className:Ar.tooltipInfoEntry,children:[b.jsx("p",{className:"text-sm",children:"table"}),b.jsx("p",{className:"truncate font-semibold",children:l.options.table})]}),s&&b.jsxs("div",{className:Ar.tooltipInfoEntry,children:[b.jsxs("p",{className:"text-sm",children:["data source [",s.dbType,"]"]}),b.jsx("p",{className:"truncate font-semibold",children:s.name})]}),l.options.joins.length>0&&b.jsxs("div",{className:Ar.tooltipInfoEntry,children:[b.jsx("p",{className:"text-sm",children:"joins"}),b.jsx("p",{className:"truncate font-semibold",children:l.options.joins.map(c=>c.table).join(", ")})]}),l.options.filters.length>0&&b.jsxs("div",{className:Ar.tooltipInfoEntry,children:[b.jsx("p",{className:"text-sm",children:"filters"}),l.options.filters.map(c=>b.jsx("p",{className:"truncate font-semibold",children:HA(c)}))]})]})},ER=()=>{const e=iA(),n=Nc(),i=Hp(Oc.laptop),l=k.useMemo(()=>{if(!n)return;const h=n.find(d=>d.id===e);return h||n[0]},[e,n]),s=h=>{h.stopPropagation(),h.preventDefault();const d=h.currentTarget.getAttribute("data-tab-id");d&&jb(d)},o=h=>{h.button===1&&jb(h.currentTarget.dataset.tabId)},c=h=>{const d=n.find(m=>m.id===h);kl("New tab name",d==null?void 0:d.label).then(m=>{m&&Dp(h,m)})},f=k.useCallback(h=>{Rc(d=>d.map(m=>m.id!==l.id?m:{...m,options:h(m.options)}))},[l]);return n.length<1?b.jsx(VC,{to:"/"}):b.jsxs("div",{className:"h-screen max-h-screen bg-(--bg) flex flex-col",children:[i&&b.jsx(Kp,{id:"tab",render:CR,className:"z-10 shadow-md p-0!",offset:-1,noArrow:!0,opacity:1,variant:"light",clickable:!0,delayShow:500}),l&&b.jsx(Rx,{updater:f,options:l.options,name:l.label,tabId:l.id}),b.jsx("div",{className:xe(Ar.tabs,"no-scrollbar",!i&&Ar.mobile),children:n==null?void 0:n.map(h=>b.jsxs("div",{onClick:()=>Op(h.id),className:xe(Ar.tab,h.id===(l==null?void 0:l.id)&&Ar.active),"data-tab-id":h.id,"data-tooltip-id":"tab","data-tooltip-content":h.label,onAuxClick:o,onContextMenu:d=>{d.preventDefault(),c(h.id)},children:[b.jsxs("span",{className:"truncate w-full",children:["📄 ",h.label]}),b.jsx("button",{"data-tab-id":h.id,className:Ar.closeButton,onClick:s,children:b.jsx(pr,{width:20,height:20})})]},h.id))})]})},kR=()=>{const e=I_(),n=k.useCallback(i=>{gx(l=>l?{...l,options:i(l.options)}:(tn.error("Something went wrong."),l))},[]);return e?b.jsxs(rn,{isVisible:!0,onClose:Xh,children:[b.jsx(tr,{onClick:Xh}),b.jsx("div",{className:"border border-gray-200 bg-(--bg) flex flex-col",children:b.jsx(Rx,{name:e.label,options:e.options,updater:n})})]}):null},AR="_root_1uact_2",TR="_down_1uact_2",_R="_chevron_1uact_2",NR="_table-name-container_1uact_2",RR="_link_1uact_2",jR="_table-name_1uact_2",OR="_ul_1uact_2",DR="_column-type_1uact_2",ti={root:AR,down:TR,chevron:_R,tableNameContainer:NR,link:RR,tableName:jR,ul:OR,columnType:DR},[T9,MR]=wn(!1),jx=()=>MR(!1),LR=new Intl.DateTimeFormat("en",{dateStyle:"full",timeStyle:"long"});function zR(e,n){if(n&&e.toLowerCase().includes(n))return"bg-yellow-200"}const UR=({insp:e,filter:n,expanded:i})=>{const l=k.useMemo(()=>i?e.columns:n.length<1?[]:e.columns.filter(s=>s.name.toLowerCase().includes(n)),[e,n,i]);return b.jsx("ul",{className:ti.ul,children:l.map(s=>b.jsx(b.Fragment,{children:b.jsxs("li",{children:[s.isPrimary?"🔐":"🏷️"," ",b.jsx("span",{className:zR(s.name,n),children:s.name})," ",b.jsxs("span",{className:ti.columnType,children:["[",s.type,"]"]}),s.ref&&b.jsxs("span",{children:[" ➡️ ",b.jsx("span",{className:ti.columnType,children:s.ref.table}),".",s.ref.field]})]},s.name+s.type)}))},e.id)};function BR({id:e}){const{data:n}=_c(e),{data:i}=Da(e),l=Wn(),{pathname:s}=nn(),o=Mk(),c=nx(),f=Lk(),h=k.useMemo(()=>n!=null&&n.lastInspected?LR.format(new Date(n.lastInspected)):"--",[n]),[d,m]=k.useState({}),[y,x]=k.useState(""),[v,w]=k.useState("table"),T=uo(bn.EDITOR),_=y.toLowerCase(),E=k.useMemo(()=>{if(!_||!i)return i||[];const ee=[];for(const ie of i){if(ie.tableName.toLowerCase().includes(_)){ee.push(ie);continue}v!=="table"&&ie.columns.findIndex(U=>U.name.toLowerCase().includes(_))>=0&&ee.push(ie)}return ee},[_,i,v]),N=ee=>{m(ie=>({...ie,[ee]:!ie[ee]}))},j=ee=>{xl(ee,{table:ee,dataSourceId:e},!0),xa(void 0),jx(),s!==rt.workbench.path&&l(rt.workbench.path)},q=()=>{c.mutate(e)},L=async()=>{const ee=await kl("Enter name",n==null?void 0:n.name);ee&&o.mutate({id:e,dataSource:{name:ee}})},D=async()=>{await ox("Are you sure you want to delete this data source?")&&(f.mutate(e),xa(void 0))},X=v==="column";return b.jsxs("div",{className:ti.root,children:[b.jsxs("h3",{className:"page-head flex gap-2",children:[n&&b.jsx(Mp,{size:32,type:n.dbType}),b.jsx("span",{className:"truncate",children:n==null?void 0:n.name})]}),b.jsx("p",{className:"mt-1 text-sm font-semibold",children:h}),T&&b.jsxs("div",{className:"mt-2 flex gap-2",children:[b.jsx("button",{disabled:c.isLoading,onClick:q,className:"button tertiary flex items-center gap-1",children:"Refresh schema"}),b.jsx("button",{disabled:c.isLoading,onClick:L,className:"button tertiary",children:"Rename"}),b.jsx("button",{disabled:c.isLoading,onClick:D,className:"button tertiary",children:"Delete"})]}),b.jsxs("div",{className:"flex gap-1 items-center mb-2 mt-4",children:[b.jsx("input",{className:"input flex-1 bg-gray-50",placeholder:X?"Search column":"Search table",value:y,onChange:ee=>x(ee.target.value),autoFocus:!0}),b.jsx("button",{className:"button primary w-20",onClick:()=>w(X?"table":"column"),children:X?"Column":"Table"})]}),b.jsx("div",{className:"overflow-y-auto",children:E==null?void 0:E.map(ee=>b.jsxs("div",{children:[b.jsxs("div",{className:ti.tableNameContainer,children:[b.jsx("button",{className:xe(ti.chevron,d[ee.id]&&ti.down),onClick:()=>N(ee.id),children:b.jsx(Bp,{width:16,height:16})}),b.jsx("button",{className:xe(ti.tableName,"flex-1"),onClick:()=>N(ee.id),children:ee.tableName}),b.jsx("button",{className:ti.link,onClick:()=>j(ee.tableName),children:"↗️"})]}),(d[ee.id]||y.length>0)&&b.jsx(UR,{insp:ee,filter:X?_:"",expanded:d[ee.id]})]},ee.id))})]})}const qR=()=>{const e=jA(),[n,i]=k.useState(void 0);k.useEffect(()=>{e&&i(e)},[e]);const l=()=>xa(void 0);return b.jsxs(rn,{isVisible:e!=null,onClose:l,onClosed:()=>i(void 0),backdropClose:!0,children:[b.jsx(tr,{onClick:l}),n&&b.jsx(BR,{id:n})]})};function HR(e,n=500){const[i,l]=k.useState(e);return k.useEffect(()=>{const s=setTimeout(()=>l(e),n);return()=>clearTimeout(s)},[e,n]),i}const FR="_search_d7ba7_2",PR="_entry_d7ba7_2",QR="_ds_d7ba7_2",IR="_ds-entry_d7ba7_2",Du={search:FR,entry:PR,ds:QR,dsEntry:IR},[VR,$R]=jp({initialData:[],localStorageKey:"selected-data-sources-v1"}),YR=e=>$R(n=>{const i=n.indexOf(e);return i>-1?(n.splice(i,1),[...n]):[...n,e]}),KR={table:"📄",query:"📖"},GR=({onTable:e,onQuery:n,autoFocus:i})=>{const[l,s]=k.useState(""),[o,c]=k.useState(-1),f=HR(l,200),h=VR(),{data:d}=jr(),{data:m}=Tp({teamId:d==null?void 0:d.teamId}),{data:y}=Nk(f,{teamId:d==null?void 0:d.teamId,selectedDataSources:h}),x=_=>{_.type==="table"?e(_.name,_.dataSourceId):_.type==="query"&&n(_.id,_.dataSourceId)},v=_=>{var E;y&&(_.key==="ArrowDown"?(_.preventDefault(),c(N=>(N+1)%y.length)):_.key==="ArrowUp"?(_.preventDefault(),c(N=>(N-1+y.length)%y.length)):_.key==="Enter"&&o>=0&&(E=y[o])!=null&&E.name&&(_.preventDefault(),x(y[o])))},w=_=>{const E=_.currentTarget.dataset.tableId,N=y==null?void 0:y.find(j=>j.id===E);N&&x(N)},T=k.useMemo(()=>uR(h),[h]);return b.jsxs("div",{className:"overflow-hidden flex flex-col w-full lg:w-lg",children:[Fi(m==null?void 0:m.length,0)&&b.jsx("div",{className:"flex overflow-x-auto mb-2 gap-2 no-scrollbar",children:m.map(_=>b.jsxs("label",{className:Du.dsEntry,children:[b.jsx("input",{type:"checkbox",checked:T[_.id]===!0,onChange:()=>YR(_.id)}),b.jsx("span",{children:_.name})]},_.id))}),b.jsx("input",{className:Du.search,placeholder:"Search table or saved query to start from",value:l,onChange:_=>s(_.target.value),onKeyDown:v,autoFocus:i}),Fi(y==null?void 0:y.length,0)&&b.jsx("div",{className:"overflow-y-auto max-h-full mt-2",children:y.map((_,E)=>b.jsxs("button",{className:Du.entry,"data-is-active":o===E,"data-table-id":_.id,onClick:w,children:[b.jsxs("p",{className:"font-semibold",children:[KR[_.type]," ",_.name]}),b.jsxs("p",{className:Du.ds,children:["📦 ",_.dataSourceName]})]},_.id))})]})},XR=()=>{const e=uA(),n=(s,o)=>{e==null||e.onConfirm("table",s,o)},i=(s,o)=>{e==null||e.onConfirm("query",s,o)},l=()=>{e==null||e.onCancel()};return b.jsxs(rn,{isVisible:!!e,onClose:l,children:[b.jsx(tr,{onClick:l}),b.jsx(GR,{autoFocus:!0,onTable:n,onQuery:i})]})},ZR=()=>{const e=nn();k.useEffect(()=>{},[e.pathname])},l1={active:!1,version:""};async function JR(){try{const{data:e}=await Tc.get("/status",{timeout:500,validateStatus:()=>!0});return(e==null?void 0:e.data)||l1}catch{return l1}}function WR(){const e=mt.getQueryState([vl]);(e==null?void 0:e.status)==="error"&&mt.invalidateQueries({queryKey:[vl]})}function ej(){const e=mt.getQueryState([vl]);(e==null?void 0:e.status)==="success"&&mt.resetQueries({queryKey:[vl]})}const tj=()=>zn({queryKey:["server-status"],queryFn:JR,onSuccess:({active:e})=>{e?WR():ej()},refetchOnWindowFocus:!0,refetchInterval:(e,n)=>{var i,l;return(l=(i=n==null?void 0:n.state)==null?void 0:i.data)!=null&&l.active?2e4:4e3},retry:!1}),a1=e=>{const[n]=e.split("-");return n.split(".").map(Number)},nj=(e,n)=>{const i=a1(e),l=a1(n);for(let s=0;s<3;s++){const o=i[s]||0,c=l[s]||0;if(o>c)return 1;if(o<c)return-1}return 0};function s1(e,n){const i=String(e);if(typeof n!="string")throw new TypeError("Expected character");let l=0,s=i.indexOf(n);for(;s!==-1;)l++,s=i.indexOf(n,s+n.length);return l}const un=Ii(/[A-Za-z]/),en=Ii(/[\dA-Za-z]/),rj=Ii(/[#-'*+\--9=?A-Z^-~]/);function dc(e){return e!==null&&(e<32||e===127)}const rp=Ii(/\d/),ij=Ii(/[\dA-Fa-f]/),lj=Ii(/[!-/:-@[-`{-~]/);function Se(e){return e!==null&&e<-2}function it(e){return e!==null&&(e<0||e===32)}function Be(e){return e===-2||e===-1||e===32}const Bc=Ii(new RegExp("\\p{P}|\\p{S}","u")),Cl=Ii(/\s/);function Ii(e){return n;function n(i){return i!==null&&i>-1&&e.test(String.fromCharCode(i))}}function aj(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const qc=function(e){if(e==null)return cj;if(typeof e=="function")return Hc(e);if(typeof e=="object")return Array.isArray(e)?sj(e):oj(e);if(typeof e=="string")return uj(e);throw new Error("Expected function, string, or object as test")};function sj(e){const n=[];let i=-1;for(;++i<e.length;)n[i]=qc(e[i]);return Hc(l);function l(...s){let o=-1;for(;++o<n.length;)if(n[o].apply(this,s))return!0;return!1}}function oj(e){const n=e;return Hc(i);function i(l){const s=l;let o;for(o in e)if(s[o]!==n[o])return!1;return!0}}function uj(e){return Hc(n);function n(i){return i&&i.type===e}}function Hc(e){return n;function n(i,l,s){return!!(fj(i)&&e.call(this,i,typeof l=="number"?l:void 0,s||void 0))}}function cj(){return!0}function fj(e){return e!==null&&typeof e=="object"&&"type"in e}const Ox=[],dj=!0,ip=!1,hj="skip";function Dx(e,n,i,l){let s;typeof n=="function"&&typeof i!="function"?(l=i,i=n):s=n;const o=qc(s),c=l?-1:1;f(e,void 0,[])();function f(h,d,m){const y=h&&typeof h=="object"?h:{};if(typeof y.type=="string"){const v=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(x,"name",{value:"node ("+(h.type+(v?"<"+v+">":""))+")"})}return x;function x(){let v=Ox,w,T,_;if((!n||o(h,d,m[m.length-1]||void 0))&&(v=pj(i(h,m)),v[0]===ip))return v;if("children"in h&&h.children){const E=h;if(E.children&&v[0]!==hj)for(T=(l?E.children.length:-1)+c,_=m.concat(E);T>-1&&T<E.children.length;){const N=E.children[T];if(w=f(N,T,_)(),w[0]===ip)return w;T=typeof w[1]=="number"?w[1]:T+c}}return v}}}function pj(e){return Array.isArray(e)?e:typeof e=="number"?[dj,e]:e==null?Ox:[e]}function mj(e,n,i){const s=qc((i||{}).ignore||[]),o=gj(n);let c=-1;for(;++c<o.length;)Dx(e,"text",f);function f(d,m){let y=-1,x;for(;++y<m.length;){const v=m[y],w=x?x.children:void 0;if(s(v,w?w.indexOf(v):void 0,x))return;x=v}if(x)return h(d,m)}function h(d,m){const y=m[m.length-1],x=o[c][0],v=o[c][1];let w=0;const _=y.children.indexOf(d);let E=!1,N=[];x.lastIndex=0;let j=x.exec(d.value);for(;j;){const q=j.index,L={index:j.index,input:j.input,stack:[...m,d]};let D=v(...j,L);if(typeof D=="string"&&(D=D.length>0?{type:"text",value:D}:void 0),D===!1?x.lastIndex=q+1:(w!==q&&N.push({type:"text",value:d.value.slice(w,q)}),Array.isArray(D)?N.push(...D):D&&N.push(D),w=q+j[0].length,E=!0),!x.global)break;j=x.exec(d.value)}return E?(w<d.value.length&&N.push({type:"text",value:d.value.slice(w)}),y.children.splice(_,1,...N)):N=[d],_+N.length}}function gj(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const i=!e[0]||Array.isArray(e[0])?e:[e];let l=-1;for(;++l<i.length;){const s=i[l];n.push([yj(s[0]),bj(s[1])])}return n}function yj(e){return typeof e=="string"?new RegExp(aj(e),"g"):e}function bj(e){return typeof e=="function"?e:function(){return e}}const gh="phrasing",yh=["autolink","link","image","label"];function vj(){return{transforms:[Aj],enter:{literalAutolink:wj,literalAutolinkEmail:bh,literalAutolinkHttp:bh,literalAutolinkWww:bh},exit:{literalAutolink:kj,literalAutolinkEmail:Ej,literalAutolinkHttp:Sj,literalAutolinkWww:Cj}}}function xj(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:gh,notInConstruct:yh},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:gh,notInConstruct:yh},{character:":",before:"[ps]",after:"\\/",inConstruct:gh,notInConstruct:yh}]}}function wj(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function bh(e){this.config.enter.autolinkProtocol.call(this,e)}function Sj(e){this.config.exit.autolinkProtocol.call(this,e)}function Cj(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function Ej(e){this.config.exit.autolinkEmail.call(this,e)}function kj(e){this.exit(e)}function Aj(e){mj(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Tj],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),_j]],{ignore:["link","linkReference"]})}function Tj(e,n,i,l,s){let o="";if(!Mx(s)||(/^w/i.test(n)&&(i=n+i,n="",o="http://"),!Nj(i)))return!1;const c=Rj(i+l);if(!c[0])return!1;const f={type:"link",title:null,url:o+n+c[0],children:[{type:"text",value:n+c[0]}]};return c[1]?[f,{type:"text",value:c[1]}]:f}function _j(e,n,i,l){return!Mx(l,!0)||/[-\d_]$/.test(i)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+i,children:[{type:"text",value:n+"@"+i}]}}function Nj(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function Rj(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let i=n[0],l=i.indexOf(")");const s=s1(e,"(");let o=s1(e,")");for(;l!==-1&&s>o;)e+=i.slice(0,l+1),i=i.slice(l+1),l=i.indexOf(")"),o++;return[e,i]}function Mx(e,n){const i=e.input.charCodeAt(e.index-1);return(e.index===0||Cl(i)||Bc(i))&&(!n||i!==47)}function or(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}Lx.peek=qj;function jj(){this.buffer()}function Oj(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Dj(){this.buffer()}function Mj(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Lj(e){const n=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=or(this.sliceSerialize(e)).toLowerCase(),i.label=n}function zj(e){this.exit(e)}function Uj(e){const n=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=or(this.sliceSerialize(e)).toLowerCase(),i.label=n}function Bj(e){this.exit(e)}function qj(){return"["}function Lx(e,n,i,l){const s=i.createTracker(l);let o=s.move("[^");const c=i.enter("footnoteReference"),f=i.enter("reference");return o+=s.move(i.safe(i.associationId(e),{after:"]",before:o})),f(),c(),o+=s.move("]"),o}function Hj(){return{enter:{gfmFootnoteCallString:jj,gfmFootnoteCall:Oj,gfmFootnoteDefinitionLabelString:Dj,gfmFootnoteDefinition:Mj},exit:{gfmFootnoteCallString:Lj,gfmFootnoteCall:zj,gfmFootnoteDefinitionLabelString:Uj,gfmFootnoteDefinition:Bj}}}function Fj(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:i,footnoteReference:Lx},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function i(l,s,o,c){const f=o.createTracker(c);let h=f.move("[^");const d=o.enter("footnoteDefinition"),m=o.enter("label");return h+=f.move(o.safe(o.associationId(l),{before:h,after:"]"})),m(),h+=f.move("]:"),l.children&&l.children.length>0&&(f.shift(4),h+=f.move((n?`
238
- `:" ")+o.indentLines(o.containerFlow(l,f.current()),n?zx:Pj))),d(),h}}function Pj(e,n,i){return n===0?e:zx(e,n,i)}function zx(e,n,i){return(i?"":" ")+e}const Qj=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Ux.peek=Kj;function Ij(){return{canContainEols:["delete"],enter:{strikethrough:$j},exit:{strikethrough:Yj}}}function Vj(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Qj}],handlers:{delete:Ux}}}function $j(e){this.enter({type:"delete",children:[]},e)}function Yj(e){this.exit(e)}function Ux(e,n,i,l){const s=i.createTracker(l),o=i.enter("strikethrough");let c=s.move("~~");return c+=i.containerPhrasing(e,{...s.current(),before:c,after:"~"}),c+=s.move("~~"),o(),c}function Kj(){return"~"}function Gj(e){return e.length}function Xj(e,n){const i=n||{},l=(i.align||[]).concat(),s=i.stringLength||Gj,o=[],c=[],f=[],h=[];let d=0,m=-1;for(;++m<e.length;){const T=[],_=[];let E=-1;for(e[m].length>d&&(d=e[m].length);++E<e[m].length;){const N=Zj(e[m][E]);if(i.alignDelimiters!==!1){const j=s(N);_[E]=j,(h[E]===void 0||j>h[E])&&(h[E]=j)}T.push(N)}c[m]=T,f[m]=_}let y=-1;if(typeof l=="object"&&"length"in l)for(;++y<d;)o[y]=o1(l[y]);else{const T=o1(l);for(;++y<d;)o[y]=T}y=-1;const x=[],v=[];for(;++y<d;){const T=o[y];let _="",E="";T===99?(_=":",E=":"):T===108?_=":":T===114&&(E=":");let N=i.alignDelimiters===!1?1:Math.max(1,h[y]-_.length-E.length);const j=_+"-".repeat(N)+E;i.alignDelimiters!==!1&&(N=_.length+N+E.length,N>h[y]&&(h[y]=N),v[y]=N),x[y]=j}c.splice(1,0,x),f.splice(1,0,v),m=-1;const w=[];for(;++m<c.length;){const T=c[m],_=f[m];y=-1;const E=[];for(;++y<d;){const N=T[y]||"";let j="",q="";if(i.alignDelimiters!==!1){const L=h[y]-(_[y]||0),D=o[y];D===114?j=" ".repeat(L):D===99?L%2?(j=" ".repeat(L/2+.5),q=" ".repeat(L/2-.5)):(j=" ".repeat(L/2),q=j):q=" ".repeat(L)}i.delimiterStart!==!1&&!y&&E.push("|"),i.padding!==!1&&!(i.alignDelimiters===!1&&N==="")&&(i.delimiterStart!==!1||y)&&E.push(" "),i.alignDelimiters!==!1&&E.push(j),E.push(N),i.alignDelimiters!==!1&&E.push(q),i.padding!==!1&&E.push(" "),(i.delimiterEnd!==!1||y!==d-1)&&E.push("|")}w.push(i.delimiterEnd===!1?E.join("").replace(/ +$/,""):E.join(""))}return w.join(`
239
- `)}function Zj(e){return e==null?"":String(e)}function o1(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}function Jj(e,n,i,l){const s=i.enter("blockquote"),o=i.createTracker(l);o.move("> "),o.shift(2);const c=i.indentLines(i.containerFlow(e,o.current()),Wj);return s(),c}function Wj(e,n,i){return">"+(i?"":" ")+e}function eO(e,n){return u1(e,n.inConstruct,!0)&&!u1(e,n.notInConstruct,!1)}function u1(e,n,i){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return i;let l=-1;for(;++l<n.length;)if(e.includes(n[l]))return!0;return!1}function c1(e,n,i,l){let s=-1;for(;++s<i.unsafe.length;)if(i.unsafe[s].character===`
240
- `&&eO(i.stack,i.unsafe[s]))return/[ \t]/.test(l.before)?"":" ";return`\\
241
- `}function tO(e,n){const i=String(e);let l=i.indexOf(n),s=l,o=0,c=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;l!==-1;)l===s?++o>c&&(c=o):o=1,s=l+n.length,l=i.indexOf(n,s);return c}function nO(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function rO(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function iO(e,n,i,l){const s=rO(i),o=e.value||"",c=s==="`"?"GraveAccent":"Tilde";if(nO(e,i)){const y=i.enter("codeIndented"),x=i.indentLines(o,lO);return y(),x}const f=i.createTracker(l),h=s.repeat(Math.max(tO(o,s)+1,3)),d=i.enter("codeFenced");let m=f.move(h);if(e.lang){const y=i.enter(`codeFencedLang${c}`);m+=f.move(i.safe(e.lang,{before:m,after:" ",encode:["`"],...f.current()})),y()}if(e.lang&&e.meta){const y=i.enter(`codeFencedMeta${c}`);m+=f.move(" "),m+=f.move(i.safe(e.meta,{before:m,after:`
242
- `,encode:["`"],...f.current()})),y()}return m+=f.move(`
243
- `),o&&(m+=f.move(o+`
244
- `)),m+=f.move(h),d(),m}function lO(e,n,i){return(i?"":" ")+e}function Gp(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function aO(e,n,i,l){const s=Gp(i),o=s==='"'?"Quote":"Apostrophe",c=i.enter("definition");let f=i.enter("label");const h=i.createTracker(l);let d=h.move("[");return d+=h.move(i.safe(i.associationId(e),{before:d,after:"]",...h.current()})),d+=h.move("]: "),f(),!e.url||/[\0- \u007F]/.test(e.url)?(f=i.enter("destinationLiteral"),d+=h.move("<"),d+=h.move(i.safe(e.url,{before:d,after:">",...h.current()})),d+=h.move(">")):(f=i.enter("destinationRaw"),d+=h.move(i.safe(e.url,{before:d,after:e.title?" ":`
245
- `,...h.current()}))),f(),e.title&&(f=i.enter(`title${o}`),d+=h.move(" "+s),d+=h.move(i.safe(e.title,{before:d,after:s,...h.current()})),d+=h.move(s),f()),c(),d}function sO(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function Js(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Ca(e){if(e===null||it(e)||Cl(e))return 1;if(Bc(e))return 2}function hc(e,n,i){const l=Ca(e),s=Ca(n);return l===void 0?s===void 0?i==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:l===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Bx.peek=oO;function Bx(e,n,i,l){const s=sO(i),o=i.enter("emphasis"),c=i.createTracker(l),f=c.move(s);let h=c.move(i.containerPhrasing(e,{after:s,before:f,...c.current()}));const d=h.charCodeAt(0),m=hc(l.before.charCodeAt(l.before.length-1),d,s);m.inside&&(h=Js(d)+h.slice(1));const y=h.charCodeAt(h.length-1),x=hc(l.after.charCodeAt(0),y,s);x.inside&&(h=h.slice(0,-1)+Js(y));const v=c.move(s);return o(),i.attentionEncodeSurroundingInfo={after:x.outside,before:m.outside},f+h+v}function oO(e,n,i){return i.options.emphasis||"*"}function Xp(e,n,i,l){let s,o,c;typeof n=="function"?(o=void 0,c=n,s=i):(o=n,c=i,s=l),Dx(e,o,f,s);function f(h,d){const m=d[d.length-1],y=m?m.children.indexOf(h):void 0;return c(h,y,m)}}const uO={};function Zp(e,n){const i=uO,l=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,s=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return qx(e,l,s)}function qx(e,n,i){if(cO(e)){if("value"in e)return e.type==="html"&&!i?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return f1(e.children,n,i)}return Array.isArray(e)?f1(e,n,i):""}function f1(e,n,i){const l=[];let s=-1;for(;++s<e.length;)l[s]=qx(e[s],n,i);return l.join("")}function cO(e){return!!(e&&typeof e=="object")}function fO(e,n){let i=!1;return Xp(e,function(l){if("value"in l&&/\r?\n|\r/.test(l.value)||l.type==="break")return i=!0,ip}),!!((!e.depth||e.depth<3)&&Zp(e)&&(n.options.setext||i))}function dO(e,n,i,l){const s=Math.max(Math.min(6,e.depth||1),1),o=i.createTracker(l);if(fO(e,i)){const m=i.enter("headingSetext"),y=i.enter("phrasing"),x=i.containerPhrasing(e,{...o.current(),before:`
246
- `,after:`
247
- `});return y(),m(),x+`
248
- `+(s===1?"=":"-").repeat(x.length-(Math.max(x.lastIndexOf("\r"),x.lastIndexOf(`
249
- `))+1))}const c="#".repeat(s),f=i.enter("headingAtx"),h=i.enter("phrasing");o.move(c+" ");let d=i.containerPhrasing(e,{before:"# ",after:`
250
- `,...o.current()});return/^[\t ]/.test(d)&&(d=Js(d.charCodeAt(0))+d.slice(1)),d=d?c+" "+d:c,i.options.closeAtx&&(d+=" "+c),h(),f(),d}Hx.peek=hO;function Hx(e){return e.value||""}function hO(){return"<"}Fx.peek=pO;function Fx(e,n,i,l){const s=Gp(i),o=s==='"'?"Quote":"Apostrophe",c=i.enter("image");let f=i.enter("label");const h=i.createTracker(l);let d=h.move("![");return d+=h.move(i.safe(e.alt,{before:d,after:"]",...h.current()})),d+=h.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=i.enter("destinationLiteral"),d+=h.move("<"),d+=h.move(i.safe(e.url,{before:d,after:">",...h.current()})),d+=h.move(">")):(f=i.enter("destinationRaw"),d+=h.move(i.safe(e.url,{before:d,after:e.title?" ":")",...h.current()}))),f(),e.title&&(f=i.enter(`title${o}`),d+=h.move(" "+s),d+=h.move(i.safe(e.title,{before:d,after:s,...h.current()})),d+=h.move(s),f()),d+=h.move(")"),c(),d}function pO(){return"!"}Px.peek=mO;function Px(e,n,i,l){const s=e.referenceType,o=i.enter("imageReference");let c=i.enter("label");const f=i.createTracker(l);let h=f.move("![");const d=i.safe(e.alt,{before:h,after:"]",...f.current()});h+=f.move(d+"]["),c();const m=i.stack;i.stack=[],c=i.enter("reference");const y=i.safe(i.associationId(e),{before:h,after:"]",...f.current()});return c(),i.stack=m,o(),s==="full"||!d||d!==y?h+=f.move(y+"]"):s==="shortcut"?h=h.slice(0,-1):h+=f.move("]"),h}function mO(){return"!"}Qx.peek=gO;function Qx(e,n,i){let l=e.value||"",s="`",o=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(l);)s+="`";for(/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^`|`$/.test(l))&&(l=" "+l+" ");++o<i.unsafe.length;){const c=i.unsafe[o],f=i.compilePattern(c);let h;if(c.atBreak)for(;h=f.exec(l);){let d=h.index;l.charCodeAt(d)===10&&l.charCodeAt(d-1)===13&&d--,l=l.slice(0,d)+" "+l.slice(h.index+1)}}return s+l+s}function gO(){return"`"}function Ix(e,n){const i=Zp(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(i===e.url||"mailto:"+i===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Vx.peek=yO;function Vx(e,n,i,l){const s=Gp(i),o=s==='"'?"Quote":"Apostrophe",c=i.createTracker(l);let f,h;if(Ix(e,i)){const m=i.stack;i.stack=[],f=i.enter("autolink");let y=c.move("<");return y+=c.move(i.containerPhrasing(e,{before:y,after:">",...c.current()})),y+=c.move(">"),f(),i.stack=m,y}f=i.enter("link"),h=i.enter("label");let d=c.move("[");return d+=c.move(i.containerPhrasing(e,{before:d,after:"](",...c.current()})),d+=c.move("]("),h(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(h=i.enter("destinationLiteral"),d+=c.move("<"),d+=c.move(i.safe(e.url,{before:d,after:">",...c.current()})),d+=c.move(">")):(h=i.enter("destinationRaw"),d+=c.move(i.safe(e.url,{before:d,after:e.title?" ":")",...c.current()}))),h(),e.title&&(h=i.enter(`title${o}`),d+=c.move(" "+s),d+=c.move(i.safe(e.title,{before:d,after:s,...c.current()})),d+=c.move(s),h()),d+=c.move(")"),f(),d}function yO(e,n,i){return Ix(e,i)?"<":"["}$x.peek=bO;function $x(e,n,i,l){const s=e.referenceType,o=i.enter("linkReference");let c=i.enter("label");const f=i.createTracker(l);let h=f.move("[");const d=i.containerPhrasing(e,{before:h,after:"]",...f.current()});h+=f.move(d+"]["),c();const m=i.stack;i.stack=[],c=i.enter("reference");const y=i.safe(i.associationId(e),{before:h,after:"]",...f.current()});return c(),i.stack=m,o(),s==="full"||!d||d!==y?h+=f.move(y+"]"):s==="shortcut"?h=h.slice(0,-1):h+=f.move("]"),h}function bO(){return"["}function Jp(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function vO(e){const n=Jp(e),i=e.options.bulletOther;if(!i)return n==="*"?"-":"*";if(i!=="*"&&i!=="+"&&i!=="-")throw new Error("Cannot serialize items with `"+i+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(i===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+i+"`) to be different");return i}function xO(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function Yx(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function wO(e,n,i,l){const s=i.enter("list"),o=i.bulletCurrent;let c=e.ordered?xO(i):Jp(i);const f=e.ordered?c==="."?")":".":vO(i);let h=n&&i.bulletLastUsed?c===i.bulletLastUsed:!1;if(!e.ordered){const m=e.children?e.children[0]:void 0;if((c==="*"||c==="-")&&m&&(!m.children||!m.children[0])&&i.stack[i.stack.length-1]==="list"&&i.stack[i.stack.length-2]==="listItem"&&i.stack[i.stack.length-3]==="list"&&i.stack[i.stack.length-4]==="listItem"&&i.indexStack[i.indexStack.length-1]===0&&i.indexStack[i.indexStack.length-2]===0&&i.indexStack[i.indexStack.length-3]===0&&(h=!0),Yx(i)===c&&m){let y=-1;for(;++y<e.children.length;){const x=e.children[y];if(x&&x.type==="listItem"&&x.children&&x.children[0]&&x.children[0].type==="thematicBreak"){h=!0;break}}}}h&&(c=f),i.bulletCurrent=c;const d=i.containerFlow(e,l);return i.bulletLastUsed=c,i.bulletCurrent=o,s(),d}function SO(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function CO(e,n,i,l){const s=SO(i);let o=i.bulletCurrent||Jp(i);n&&n.type==="list"&&n.ordered&&(o=(typeof n.start=="number"&&n.start>-1?n.start:1)+(i.options.incrementListMarker===!1?0:n.children.indexOf(e))+o);let c=o.length+1;(s==="tab"||s==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(c=Math.ceil(c/4)*4);const f=i.createTracker(l);f.move(o+" ".repeat(c-o.length)),f.shift(c);const h=i.enter("listItem"),d=i.indentLines(i.containerFlow(e,f.current()),m);return h(),d;function m(y,x,v){return x?(v?"":" ".repeat(c))+y:(v?o:o+" ".repeat(c-o.length))+y}}function EO(e,n,i,l){const s=i.enter("paragraph"),o=i.enter("phrasing"),c=i.containerPhrasing(e,l);return o(),s(),c}const kO=qc(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function AO(e,n,i,l){return(e.children.some(function(c){return kO(c)})?i.containerPhrasing:i.containerFlow).call(i,e,l)}function TO(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}Kx.peek=_O;function Kx(e,n,i,l){const s=TO(i),o=i.enter("strong"),c=i.createTracker(l),f=c.move(s+s);let h=c.move(i.containerPhrasing(e,{after:s,before:f,...c.current()}));const d=h.charCodeAt(0),m=hc(l.before.charCodeAt(l.before.length-1),d,s);m.inside&&(h=Js(d)+h.slice(1));const y=h.charCodeAt(h.length-1),x=hc(l.after.charCodeAt(0),y,s);x.inside&&(h=h.slice(0,-1)+Js(y));const v=c.move(s+s);return o(),i.attentionEncodeSurroundingInfo={after:x.outside,before:m.outside},f+h+v}function _O(e,n,i){return i.options.strong||"*"}function NO(e,n,i,l){return i.safe(e.value,l)}function RO(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function jO(e,n,i){const l=(Yx(i)+(i.options.ruleSpaces?" ":"")).repeat(RO(i));return i.options.ruleSpaces?l.slice(0,-1):l}const Gx={blockquote:Jj,break:c1,code:iO,definition:aO,emphasis:Bx,hardBreak:c1,heading:dO,html:Hx,image:Fx,imageReference:Px,inlineCode:Qx,link:Vx,linkReference:$x,list:wO,listItem:CO,paragraph:EO,root:AO,strong:Kx,text:NO,thematicBreak:jO},d1=document.createElement("i");function Wp(e){const n="&"+e+";";d1.innerHTML=n;const i=d1.textContent;return i.charCodeAt(i.length-1)===59&&e!=="semi"||i===n?!1:i}function Xx(e,n){const i=Number.parseInt(e,n);return i<9||i===11||i>13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"�":String.fromCodePoint(i)}const OO=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function DO(e){return e.replace(OO,MO)}function MO(e,n,i){if(n)return n;if(i.charCodeAt(0)===35){const s=i.charCodeAt(1),o=s===120||s===88;return Xx(i.slice(o?2:1),o?16:10)}return Wp(i)||e}function LO(){return{enter:{table:zO,tableData:h1,tableHeader:h1,tableRow:BO},exit:{codeText:qO,table:UO,tableData:vh,tableHeader:vh,tableRow:vh}}}function zO(e){const n=e._align;this.enter({type:"table",align:n.map(function(i){return i==="none"?null:i}),children:[]},e),this.data.inTable=!0}function UO(e){this.exit(e),this.data.inTable=void 0}function BO(e){this.enter({type:"tableRow",children:[]},e)}function vh(e){this.exit(e)}function h1(e){this.enter({type:"tableCell",children:[]},e)}function qO(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,HO));const i=this.stack[this.stack.length-1];i.type,i.value=n,this.exit(e)}function HO(e,n){return n==="|"?n:e}function FO(e){const n=e||{},i=n.tableCellPadding,l=n.tablePipeAlign,s=n.stringLength,o=i?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
251
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:x,table:c,tableCell:h,tableRow:f}};function c(v,w,T,_){return d(m(v,T,_),v.align)}function f(v,w,T,_){const E=y(v,T,_),N=d([E]);return N.slice(0,N.indexOf(`
252
- `))}function h(v,w,T,_){const E=T.enter("tableCell"),N=T.enter("phrasing"),j=T.containerPhrasing(v,{..._,before:o,after:o});return N(),E(),j}function d(v,w){return Xj(v,{align:w,alignDelimiters:l,padding:i,stringLength:s})}function m(v,w,T){const _=v.children;let E=-1;const N=[],j=w.enter("table");for(;++E<_.length;)N[E]=y(_[E],w,T);return j(),N}function y(v,w,T){const _=v.children;let E=-1;const N=[],j=w.enter("tableRow");for(;++E<_.length;)N[E]=h(_[E],v,w,T);return j(),N}function x(v,w,T){let _=Gx.inlineCode(v,w,T);return T.stack.includes("tableCell")&&(_=_.replace(/\|/g,"\\$&")),_}}function PO(){return{exit:{taskListCheckValueChecked:p1,taskListCheckValueUnchecked:p1,paragraph:IO}}}function QO(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:VO}}}function p1(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function IO(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const i=this.stack[this.stack.length-1];i.type;const l=i.children[0];if(l&&l.type==="text"){const s=n.children;let o=-1,c;for(;++o<s.length;){const f=s[o];if(f.type==="paragraph"){c=f;break}}c===i&&(l.value=l.value.slice(1),l.value.length===0?i.children.shift():i.position&&l.position&&typeof l.position.start.offset=="number"&&(l.position.start.column++,l.position.start.offset++,i.position.start=Object.assign({},l.position.start)))}}this.exit(e)}function VO(e,n,i,l){const s=e.children[0],o=typeof e.checked=="boolean"&&s&&s.type==="paragraph",c="["+(e.checked?"x":" ")+"] ",f=i.createTracker(l);o&&f.move(c);let h=Gx.listItem(e,n,i,{...l,...f.current()});return o&&(h=h.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,d)),h;function d(m){return m+c}}function $O(){return[vj(),Hj(),Ij(),LO(),PO()]}function YO(e){return{extensions:[xj(),Fj(e),Vj(),FO(e),QO()]}}function Ln(e,n,i,l){const s=e.length;let o=0,c;if(n<0?n=-n>s?0:s+n:n=n>s?s:n,i=i>0?i:0,l.length<1e4)c=Array.from(l),c.unshift(n,i),e.splice(...c);else for(i&&e.splice(n,i);o<l.length;)c=l.slice(o,o+1e4),c.unshift(n,0),e.splice(...c),o+=1e4,n+=1e4}function Zn(e,n){return e.length>0?(Ln(e,e.length,0,n),e):n}const m1={}.hasOwnProperty;function Zx(e){const n={};let i=-1;for(;++i<e.length;)KO(n,e[i]);return n}function KO(e,n){let i;for(i in n){const s=(m1.call(e,i)?e[i]:void 0)||(e[i]={}),o=n[i];let c;if(o)for(c in o){m1.call(s,c)||(s[c]=[]);const f=o[c];GO(s[c],Array.isArray(f)?f:f?[f]:[])}}}function GO(e,n){let i=-1;const l=[];for(;++i<n.length;)(n[i].add==="after"?e:l).push(n[i]);Ln(e,0,0,l)}const XO={tokenize:n6,partial:!0},Jx={tokenize:r6,partial:!0},Wx={tokenize:i6,partial:!0},ew={tokenize:l6,partial:!0},ZO={tokenize:a6,partial:!0},tw={name:"wwwAutolink",tokenize:e6,previous:rw},nw={name:"protocolAutolink",tokenize:t6,previous:iw},oi={name:"emailAutolink",tokenize:WO,previous:lw},Mr={};function JO(){return{text:Mr}}let fl=48;for(;fl<123;)Mr[fl]=oi,fl++,fl===58?fl=65:fl===91&&(fl=97);Mr[43]=oi;Mr[45]=oi;Mr[46]=oi;Mr[95]=oi;Mr[72]=[oi,nw];Mr[104]=[oi,nw];Mr[87]=[oi,tw];Mr[119]=[oi,tw];function WO(e,n,i){const l=this;let s,o;return c;function c(y){return!lp(y)||!lw.call(l,l.previous)||em(l.events)?i(y):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(y))}function f(y){return lp(y)?(e.consume(y),f):y===64?(e.consume(y),h):i(y)}function h(y){return y===46?e.check(ZO,m,d)(y):y===45||y===95||en(y)?(o=!0,e.consume(y),h):m(y)}function d(y){return e.consume(y),s=!0,h}function m(y){return o&&s&&un(l.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(y)):i(y)}}function e6(e,n,i){const l=this;return s;function s(c){return c!==87&&c!==119||!rw.call(l,l.previous)||em(l.events)?i(c):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(XO,e.attempt(Jx,e.attempt(Wx,o),i),i)(c))}function o(c){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(c)}}function t6(e,n,i){const l=this;let s="",o=!1;return c;function c(y){return(y===72||y===104)&&iw.call(l,l.previous)&&!em(l.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),s+=String.fromCodePoint(y),e.consume(y),f):i(y)}function f(y){if(un(y)&&s.length<5)return s+=String.fromCodePoint(y),e.consume(y),f;if(y===58){const x=s.toLowerCase();if(x==="http"||x==="https")return e.consume(y),h}return i(y)}function h(y){return y===47?(e.consume(y),o?d:(o=!0,h)):i(y)}function d(y){return y===null||dc(y)||it(y)||Cl(y)||Bc(y)?i(y):e.attempt(Jx,e.attempt(Wx,m),i)(y)}function m(y){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(y)}}function n6(e,n,i){let l=0;return s;function s(c){return(c===87||c===119)&&l<3?(l++,e.consume(c),s):c===46&&l===3?(e.consume(c),o):i(c)}function o(c){return c===null?i(c):n(c)}}function r6(e,n,i){let l,s,o;return c;function c(d){return d===46||d===95?e.check(ew,h,f)(d):d===null||it(d)||Cl(d)||d!==45&&Bc(d)?h(d):(o=!0,e.consume(d),c)}function f(d){return d===95?l=!0:(s=l,l=void 0),e.consume(d),c}function h(d){return s||l||!o?i(d):n(d)}}function i6(e,n){let i=0,l=0;return s;function s(c){return c===40?(i++,e.consume(c),s):c===41&&l<i?o(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?e.check(ew,n,o)(c):c===null||it(c)||Cl(c)?n(c):(e.consume(c),s)}function o(c){return c===41&&l++,e.consume(c),s}}function l6(e,n,i){return l;function l(f){return f===33||f===34||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===63||f===95||f===126?(e.consume(f),l):f===38?(e.consume(f),o):f===93?(e.consume(f),s):f===60||f===null||it(f)||Cl(f)?n(f):i(f)}function s(f){return f===null||f===40||f===91||it(f)||Cl(f)?n(f):l(f)}function o(f){return un(f)?c(f):i(f)}function c(f){return f===59?(e.consume(f),l):un(f)?(e.consume(f),c):i(f)}}function a6(e,n,i){return l;function l(o){return e.consume(o),s}function s(o){return en(o)?i(o):n(o)}}function rw(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||it(e)}function iw(e){return!un(e)}function lw(e){return!(e===47||lp(e))}function lp(e){return e===43||e===45||e===46||e===95||en(e)}function em(e){let n=e.length,i=!1;for(;n--;){const l=e[n][1];if((l.type==="labelLink"||l.type==="labelImage")&&!l._balanced){i=!0;break}if(l._gfmAutolinkLiteralWalkedInto){i=!1;break}}return e.length>0&&!i&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),i}function za(e){const n=[];let i=-1,l=0,s=0;for(;++i<e.length;){const o=e.charCodeAt(i);let c="";if(o===37&&en(e.charCodeAt(i+1))&&en(e.charCodeAt(i+2)))s=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(c=String.fromCharCode(o));else if(o>55295&&o<57344){const f=e.charCodeAt(i+1);o<56320&&f>56319&&f<57344?(c=String.fromCharCode(o,f),s=1):c="�"}else c=String.fromCharCode(o);c&&(n.push(e.slice(l,i),encodeURIComponent(c)),l=i+s+1,c=""),s&&(i+=s,s=0)}return n.join("")+e.slice(l)}function Fc(e,n,i){const l=[];let s=-1;for(;++s<e.length;){const o=e[s].resolveAll;o&&!l.includes(o)&&(n=o(n,i),l.push(o))}return n}const ap={name:"attention",resolveAll:s6,tokenize:o6};function s6(e,n){let i=-1,l,s,o,c,f,h,d,m;for(;++i<e.length;)if(e[i][0]==="enter"&&e[i][1].type==="attentionSequence"&&e[i][1]._close){for(l=i;l--;)if(e[l][0]==="exit"&&e[l][1].type==="attentionSequence"&&e[l][1]._open&&n.sliceSerialize(e[l][1]).charCodeAt(0)===n.sliceSerialize(e[i][1]).charCodeAt(0)){if((e[l][1]._close||e[i][1]._open)&&(e[i][1].end.offset-e[i][1].start.offset)%3&&!((e[l][1].end.offset-e[l][1].start.offset+e[i][1].end.offset-e[i][1].start.offset)%3))continue;h=e[l][1].end.offset-e[l][1].start.offset>1&&e[i][1].end.offset-e[i][1].start.offset>1?2:1;const y={...e[l][1].end},x={...e[i][1].start};g1(y,-h),g1(x,h),c={type:h>1?"strongSequence":"emphasisSequence",start:y,end:{...e[l][1].end}},f={type:h>1?"strongSequence":"emphasisSequence",start:{...e[i][1].start},end:x},o={type:h>1?"strongText":"emphasisText",start:{...e[l][1].end},end:{...e[i][1].start}},s={type:h>1?"strong":"emphasis",start:{...c.start},end:{...f.end}},e[l][1].end={...c.start},e[i][1].start={...f.end},d=[],e[l][1].end.offset-e[l][1].start.offset&&(d=Zn(d,[["enter",e[l][1],n],["exit",e[l][1],n]])),d=Zn(d,[["enter",s,n],["enter",c,n],["exit",c,n],["enter",o,n]]),d=Zn(d,Fc(n.parser.constructs.insideSpan.null,e.slice(l+1,i),n)),d=Zn(d,[["exit",o,n],["enter",f,n],["exit",f,n],["exit",s,n]]),e[i][1].end.offset-e[i][1].start.offset?(m=2,d=Zn(d,[["enter",e[i][1],n],["exit",e[i][1],n]])):m=0,Ln(e,l-1,i-l+3,d),i=l+d.length-m-2;break}}for(i=-1;++i<e.length;)e[i][1].type==="attentionSequence"&&(e[i][1].type="data");return e}function o6(e,n){const i=this.parser.constructs.attentionMarkers.null,l=this.previous,s=Ca(l);let o;return c;function c(h){return o=h,e.enter("attentionSequence"),f(h)}function f(h){if(h===o)return e.consume(h),f;const d=e.exit("attentionSequence"),m=Ca(h),y=!m||m===2&&s||i.includes(h),x=!s||s===2&&m||i.includes(l);return d._open=!!(o===42?y:y&&(s||!x)),d._close=!!(o===42?x:x&&(m||!y)),n(h)}}function g1(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const u6={name:"autolink",tokenize:c6};function c6(e,n,i){let l=0;return s;function s(v){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(v){return un(v)?(e.consume(v),c):v===64?i(v):d(v)}function c(v){return v===43||v===45||v===46||en(v)?(l=1,f(v)):d(v)}function f(v){return v===58?(e.consume(v),l=0,h):(v===43||v===45||v===46||en(v))&&l++<32?(e.consume(v),f):(l=0,d(v))}function h(v){return v===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.exit("autolink"),n):v===null||v===32||v===60||dc(v)?i(v):(e.consume(v),h)}function d(v){return v===64?(e.consume(v),m):rj(v)?(e.consume(v),d):i(v)}function m(v){return en(v)?y(v):i(v)}function y(v){return v===46?(e.consume(v),l=0,m):v===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.exit("autolink"),n):x(v)}function x(v){if((v===45||en(v))&&l++<63){const w=v===45?x:y;return e.consume(v),w}return i(v)}}function Pe(e,n,i,l){const s=l?l-1:Number.POSITIVE_INFINITY;let o=0;return c;function c(h){return Be(h)?(e.enter(i),f(h)):n(h)}function f(h){return Be(h)&&o++<s?(e.consume(h),f):(e.exit(i),n(h))}}const go={partial:!0,tokenize:f6};function f6(e,n,i){return l;function l(o){return Be(o)?Pe(e,s,"linePrefix")(o):s(o)}function s(o){return o===null||Se(o)?n(o):i(o)}}const aw={continuation:{tokenize:h6},exit:p6,name:"blockQuote",tokenize:d6};function d6(e,n,i){const l=this;return s;function s(c){if(c===62){const f=l.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),o}return i(c)}function o(c){return Be(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(c))}}function h6(e,n,i){const l=this;return s;function s(c){return Be(c)?Pe(e,o,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):o(c)}function o(c){return e.attempt(aw,n,i)(c)}}function p6(e){e.exit("blockQuote")}const sw={name:"characterEscape",tokenize:m6};function m6(e,n,i){return l;function l(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),s}function s(o){return lj(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):i(o)}}const ow={name:"characterReference",tokenize:g6};function g6(e,n,i){const l=this;let s=0,o,c;return f;function f(y){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),h}function h(y){return y===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(y),e.exit("characterReferenceMarkerNumeric"),d):(e.enter("characterReferenceValue"),o=31,c=en,m(y))}function d(y){return y===88||y===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(y),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,c=ij,m):(e.enter("characterReferenceValue"),o=7,c=rp,m(y))}function m(y){if(y===59&&s){const x=e.exit("characterReferenceValue");return c===en&&!Wp(l.sliceSerialize(x))?i(y):(e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return c(y)&&s++<o?(e.consume(y),m):i(y)}}const y1={partial:!0,tokenize:b6},b1={concrete:!0,name:"codeFenced",tokenize:y6};function y6(e,n,i){const l=this,s={partial:!0,tokenize:L};let o=0,c=0,f;return h;function h(D){return d(D)}function d(D){const X=l.events[l.events.length-1];return o=X&&X[1].type==="linePrefix"?X[2].sliceSerialize(X[1],!0).length:0,f=D,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(D)}function m(D){return D===f?(c++,e.consume(D),m):c<3?i(D):(e.exit("codeFencedFenceSequence"),Be(D)?Pe(e,y,"whitespace")(D):y(D))}function y(D){return D===null||Se(D)?(e.exit("codeFencedFence"),l.interrupt?n(D):e.check(y1,T,q)(D)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),x(D))}function x(D){return D===null||Se(D)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),y(D)):Be(D)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Pe(e,v,"whitespace")(D)):D===96&&D===f?i(D):(e.consume(D),x)}function v(D){return D===null||Se(D)?y(D):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(D))}function w(D){return D===null||Se(D)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),y(D)):D===96&&D===f?i(D):(e.consume(D),w)}function T(D){return e.attempt(s,q,_)(D)}function _(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),E}function E(D){return o>0&&Be(D)?Pe(e,N,"linePrefix",o+1)(D):N(D)}function N(D){return D===null||Se(D)?e.check(y1,T,q)(D):(e.enter("codeFlowValue"),j(D))}function j(D){return D===null||Se(D)?(e.exit("codeFlowValue"),N(D)):(e.consume(D),j)}function q(D){return e.exit("codeFenced"),n(D)}function L(D,X,ee){let ie=0;return U;function U(oe){return D.enter("lineEnding"),D.consume(oe),D.exit("lineEnding"),ae}function ae(oe){return D.enter("codeFencedFence"),Be(oe)?Pe(D,te,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(oe):te(oe)}function te(oe){return oe===f?(D.enter("codeFencedFenceSequence"),ue(oe)):ee(oe)}function ue(oe){return oe===f?(ie++,D.consume(oe),ue):ie>=c?(D.exit("codeFencedFenceSequence"),Be(oe)?Pe(D,J,"whitespace")(oe):J(oe)):ee(oe)}function J(oe){return oe===null||Se(oe)?(D.exit("codeFencedFence"),X(oe)):ee(oe)}}}function b6(e,n,i){const l=this;return s;function s(c){return c===null?i(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o)}function o(c){return l.parser.lazy[l.now().line]?i(c):n(c)}}const xh={name:"codeIndented",tokenize:x6},v6={partial:!0,tokenize:w6};function x6(e,n,i){const l=this;return s;function s(d){return e.enter("codeIndented"),Pe(e,o,"linePrefix",5)(d)}function o(d){const m=l.events[l.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?c(d):i(d)}function c(d){return d===null?h(d):Se(d)?e.attempt(v6,c,h)(d):(e.enter("codeFlowValue"),f(d))}function f(d){return d===null||Se(d)?(e.exit("codeFlowValue"),c(d)):(e.consume(d),f)}function h(d){return e.exit("codeIndented"),n(d)}}function w6(e,n,i){const l=this;return s;function s(c){return l.parser.lazy[l.now().line]?i(c):Se(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):Pe(e,o,"linePrefix",5)(c)}function o(c){const f=l.events[l.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?n(c):Se(c)?s(c):i(c)}}const S6={name:"codeText",previous:E6,resolve:C6,tokenize:k6};function C6(e){let n=e.length-4,i=3,l,s;if((e[i][1].type==="lineEnding"||e[i][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(l=i;++l<n;)if(e[l][1].type==="codeTextData"){e[i][1].type="codeTextPadding",e[n][1].type="codeTextPadding",i+=2,n-=2;break}}for(l=i-1,n++;++l<=n;)s===void 0?l!==n&&e[l][1].type!=="lineEnding"&&(s=l):(l===n||e[l][1].type==="lineEnding")&&(e[s][1].type="codeTextData",l!==s+2&&(e[s][1].end=e[l-1][1].end,e.splice(s+2,l-s-2),n-=l-s-2,l=s+2),s=void 0);return e}function E6(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function k6(e,n,i){let l=0,s,o;return c;function c(y){return e.enter("codeText"),e.enter("codeTextSequence"),f(y)}function f(y){return y===96?(e.consume(y),l++,f):(e.exit("codeTextSequence"),h(y))}function h(y){return y===null?i(y):y===32?(e.enter("space"),e.consume(y),e.exit("space"),h):y===96?(o=e.enter("codeTextSequence"),s=0,m(y)):Se(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),h):(e.enter("codeTextData"),d(y))}function d(y){return y===null||y===32||y===96||Se(y)?(e.exit("codeTextData"),h(y)):(e.consume(y),d)}function m(y){return y===96?(e.consume(y),s++,m):s===l?(e.exit("codeTextSequence"),e.exit("codeText"),n(y)):(o.type="codeTextData",d(y))}}class A6{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,i){const l=i??Number.POSITIVE_INFINITY;return l<this.left.length?this.left.slice(n,l):n>this.left.length?this.right.slice(this.right.length-l+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-l+this.left.length).reverse())}splice(n,i,l){const s=i||0;this.setCursor(Math.trunc(n));const o=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return l&&qs(this.left,l),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),qs(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),qs(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const i=this.left.splice(n,Number.POSITIVE_INFINITY);qs(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);qs(this.left,i.reverse())}}}function qs(e,n){let i=0;if(n.length<1e4)e.push(...n);else for(;i<n.length;)e.push(...n.slice(i,i+1e4)),i+=1e4}function uw(e){const n={};let i=-1,l,s,o,c,f,h,d;const m=new A6(e);for(;++i<m.length;){for(;i in n;)i=n[i];if(l=m.get(i),i&&l[1].type==="chunkFlow"&&m.get(i-1)[1].type==="listItemPrefix"&&(h=l[1]._tokenizer.events,o=0,o<h.length&&h[o][1].type==="lineEndingBlank"&&(o+=2),o<h.length&&h[o][1].type==="content"))for(;++o<h.length&&h[o][1].type!=="content";)h[o][1].type==="chunkText"&&(h[o][1]._isInFirstContentOfListItem=!0,o++);if(l[0]==="enter")l[1].contentType&&(Object.assign(n,T6(m,i)),i=n[i],d=!0);else if(l[1]._container){for(o=i,s=void 0;o--;)if(c=m.get(o),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(s&&(m.get(s)[1].type="lineEndingBlank"),c[1].type="lineEnding",s=o);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;s&&(l[1].end={...m.get(s)[1].start},f=m.slice(s,i),f.unshift(l),m.splice(s,i-s+1,f))}}return Ln(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!d}function T6(e,n){const i=e.get(n)[1],l=e.get(n)[2];let s=n-1;const o=[];let c=i._tokenizer;c||(c=l.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const f=c.events,h=[],d={};let m,y,x=-1,v=i,w=0,T=0;const _=[T];for(;v;){for(;e.get(++s)[1]!==v;);o.push(s),v._tokenizer||(m=l.sliceStream(v),v.next||m.push(null),y&&c.defineSkip(v.start),v._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(m),v._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),y=v,v=v.next}for(v=i;++x<f.length;)f[x][0]==="exit"&&f[x-1][0]==="enter"&&f[x][1].type===f[x-1][1].type&&f[x][1].start.line!==f[x][1].end.line&&(T=x+1,_.push(T),v._tokenizer=void 0,v.previous=void 0,v=v.next);for(c.events=[],v?(v._tokenizer=void 0,v.previous=void 0):_.pop(),x=_.length;x--;){const E=f.slice(_[x],_[x+1]),N=o.pop();h.push([N,N+E.length-1]),e.splice(N,2,E)}for(h.reverse(),x=-1;++x<h.length;)d[w+h[x][0]]=w+h[x][1],w+=h[x][1]-h[x][0]-1;return d}const _6={resolve:R6,tokenize:j6},N6={partial:!0,tokenize:O6};function R6(e){return uw(e),e}function j6(e,n){let i;return l;function l(f){return e.enter("content"),i=e.enter("chunkContent",{contentType:"content"}),s(f)}function s(f){return f===null?o(f):Se(f)?e.check(N6,c,o)(f):(e.consume(f),s)}function o(f){return e.exit("chunkContent"),e.exit("content"),n(f)}function c(f){return e.consume(f),e.exit("chunkContent"),i.next=e.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,s}}function O6(e,n,i){const l=this;return s;function s(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),Pe(e,o,"linePrefix")}function o(c){if(c===null||Se(c))return i(c);const f=l.events[l.events.length-1];return!l.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?n(c):e.interrupt(l.parser.constructs.flow,i,n)(c)}}function cw(e,n,i,l,s,o,c,f,h){const d=h||Number.POSITIVE_INFINITY;let m=0;return y;function y(E){return E===60?(e.enter(l),e.enter(s),e.enter(o),e.consume(E),e.exit(o),x):E===null||E===32||E===41||dc(E)?i(E):(e.enter(l),e.enter(c),e.enter(f),e.enter("chunkString",{contentType:"string"}),T(E))}function x(E){return E===62?(e.enter(o),e.consume(E),e.exit(o),e.exit(s),e.exit(l),n):(e.enter(f),e.enter("chunkString",{contentType:"string"}),v(E))}function v(E){return E===62?(e.exit("chunkString"),e.exit(f),x(E)):E===null||E===60||Se(E)?i(E):(e.consume(E),E===92?w:v)}function w(E){return E===60||E===62||E===92?(e.consume(E),v):v(E)}function T(E){return!m&&(E===null||E===41||it(E))?(e.exit("chunkString"),e.exit(f),e.exit(c),e.exit(l),n(E)):m<d&&E===40?(e.consume(E),m++,T):E===41?(e.consume(E),m--,T):E===null||E===32||E===40||dc(E)?i(E):(e.consume(E),E===92?_:T)}function _(E){return E===40||E===41||E===92?(e.consume(E),T):T(E)}}function fw(e,n,i,l,s,o){const c=this;let f=0,h;return d;function d(v){return e.enter(l),e.enter(s),e.consume(v),e.exit(s),e.enter(o),m}function m(v){return f>999||v===null||v===91||v===93&&!h||v===94&&!f&&"_hiddenFootnoteSupport"in c.parser.constructs?i(v):v===93?(e.exit(o),e.enter(s),e.consume(v),e.exit(s),e.exit(l),n):Se(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),y(v))}function y(v){return v===null||v===91||v===93||Se(v)||f++>999?(e.exit("chunkString"),m(v)):(e.consume(v),h||(h=!Be(v)),v===92?x:y)}function x(v){return v===91||v===92||v===93?(e.consume(v),f++,y):y(v)}}function dw(e,n,i,l,s,o){let c;return f;function f(x){return x===34||x===39||x===40?(e.enter(l),e.enter(s),e.consume(x),e.exit(s),c=x===40?41:x,h):i(x)}function h(x){return x===c?(e.enter(s),e.consume(x),e.exit(s),e.exit(l),n):(e.enter(o),d(x))}function d(x){return x===c?(e.exit(o),h(c)):x===null?i(x):Se(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),Pe(e,d,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(x))}function m(x){return x===c||x===null||Se(x)?(e.exit("chunkString"),d(x)):(e.consume(x),x===92?y:m)}function y(x){return x===c||x===92?(e.consume(x),m):m(x)}}function Vs(e,n){let i;return l;function l(s){return Se(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i=!0,l):Be(s)?Pe(e,l,i?"linePrefix":"lineSuffix")(s):n(s)}}const D6={name:"definition",tokenize:L6},M6={partial:!0,tokenize:z6};function L6(e,n,i){const l=this;let s;return o;function o(v){return e.enter("definition"),c(v)}function c(v){return fw.call(l,e,f,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function f(v){return s=or(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),v===58?(e.enter("definitionMarker"),e.consume(v),e.exit("definitionMarker"),h):i(v)}function h(v){return it(v)?Vs(e,d)(v):d(v)}function d(v){return cw(e,m,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function m(v){return e.attempt(M6,y,y)(v)}function y(v){return Be(v)?Pe(e,x,"whitespace")(v):x(v)}function x(v){return v===null||Se(v)?(e.exit("definition"),l.parser.defined.push(s),n(v)):i(v)}}function z6(e,n,i){return l;function l(f){return it(f)?Vs(e,s)(f):i(f)}function s(f){return dw(e,o,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function o(f){return Be(f)?Pe(e,c,"whitespace")(f):c(f)}function c(f){return f===null||Se(f)?n(f):i(f)}}const U6={name:"hardBreakEscape",tokenize:B6};function B6(e,n,i){return l;function l(o){return e.enter("hardBreakEscape"),e.consume(o),s}function s(o){return Se(o)?(e.exit("hardBreakEscape"),n(o)):i(o)}}const q6={name:"headingAtx",resolve:H6,tokenize:F6};function H6(e,n){let i=e.length-2,l=3,s,o;return e[l][1].type==="whitespace"&&(l+=2),i-2>l&&e[i][1].type==="whitespace"&&(i-=2),e[i][1].type==="atxHeadingSequence"&&(l===i-1||i-4>l&&e[i-2][1].type==="whitespace")&&(i-=l+1===i?2:4),i>l&&(s={type:"atxHeadingText",start:e[l][1].start,end:e[i][1].end},o={type:"chunkText",start:e[l][1].start,end:e[i][1].end,contentType:"text"},Ln(e,l,i-l+1,[["enter",s,n],["enter",o,n],["exit",o,n],["exit",s,n]])),e}function F6(e,n,i){let l=0;return s;function s(m){return e.enter("atxHeading"),o(m)}function o(m){return e.enter("atxHeadingSequence"),c(m)}function c(m){return m===35&&l++<6?(e.consume(m),c):m===null||it(m)?(e.exit("atxHeadingSequence"),f(m)):i(m)}function f(m){return m===35?(e.enter("atxHeadingSequence"),h(m)):m===null||Se(m)?(e.exit("atxHeading"),n(m)):Be(m)?Pe(e,f,"whitespace")(m):(e.enter("atxHeadingText"),d(m))}function h(m){return m===35?(e.consume(m),h):(e.exit("atxHeadingSequence"),f(m))}function d(m){return m===null||m===35||it(m)?(e.exit("atxHeadingText"),f(m)):(e.consume(m),d)}}const P6=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],v1=["pre","script","style","textarea"],Q6={concrete:!0,name:"htmlFlow",resolveTo:$6,tokenize:Y6},I6={partial:!0,tokenize:G6},V6={partial:!0,tokenize:K6};function $6(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function Y6(e,n,i){const l=this;let s,o,c,f,h;return d;function d(R){return m(R)}function m(R){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(R),y}function y(R){return R===33?(e.consume(R),x):R===47?(e.consume(R),o=!0,T):R===63?(e.consume(R),s=3,l.interrupt?n:C):un(R)?(e.consume(R),c=String.fromCharCode(R),_):i(R)}function x(R){return R===45?(e.consume(R),s=2,v):R===91?(e.consume(R),s=5,f=0,w):un(R)?(e.consume(R),s=4,l.interrupt?n:C):i(R)}function v(R){return R===45?(e.consume(R),l.interrupt?n:C):i(R)}function w(R){const fe="CDATA[";return R===fe.charCodeAt(f++)?(e.consume(R),f===fe.length?l.interrupt?n:te:w):i(R)}function T(R){return un(R)?(e.consume(R),c=String.fromCharCode(R),_):i(R)}function _(R){if(R===null||R===47||R===62||it(R)){const fe=R===47,Te=c.toLowerCase();return!fe&&!o&&v1.includes(Te)?(s=1,l.interrupt?n(R):te(R)):P6.includes(c.toLowerCase())?(s=6,fe?(e.consume(R),E):l.interrupt?n(R):te(R)):(s=7,l.interrupt&&!l.parser.lazy[l.now().line]?i(R):o?N(R):j(R))}return R===45||en(R)?(e.consume(R),c+=String.fromCharCode(R),_):i(R)}function E(R){return R===62?(e.consume(R),l.interrupt?n:te):i(R)}function N(R){return Be(R)?(e.consume(R),N):U(R)}function j(R){return R===47?(e.consume(R),U):R===58||R===95||un(R)?(e.consume(R),q):Be(R)?(e.consume(R),j):U(R)}function q(R){return R===45||R===46||R===58||R===95||en(R)?(e.consume(R),q):L(R)}function L(R){return R===61?(e.consume(R),D):Be(R)?(e.consume(R),L):j(R)}function D(R){return R===null||R===60||R===61||R===62||R===96?i(R):R===34||R===39?(e.consume(R),h=R,X):Be(R)?(e.consume(R),D):ee(R)}function X(R){return R===h?(e.consume(R),h=null,ie):R===null||Se(R)?i(R):(e.consume(R),X)}function ee(R){return R===null||R===34||R===39||R===47||R===60||R===61||R===62||R===96||it(R)?L(R):(e.consume(R),ee)}function ie(R){return R===47||R===62||Be(R)?j(R):i(R)}function U(R){return R===62?(e.consume(R),ae):i(R)}function ae(R){return R===null||Se(R)?te(R):Be(R)?(e.consume(R),ae):i(R)}function te(R){return R===45&&s===2?(e.consume(R),B):R===60&&s===1?(e.consume(R),G):R===62&&s===4?(e.consume(R),I):R===63&&s===3?(e.consume(R),C):R===93&&s===5?(e.consume(R),pe):Se(R)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(I6,se,ue)(R)):R===null||Se(R)?(e.exit("htmlFlowData"),ue(R)):(e.consume(R),te)}function ue(R){return e.check(V6,J,se)(R)}function J(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),oe}function oe(R){return R===null||Se(R)?ue(R):(e.enter("htmlFlowData"),te(R))}function B(R){return R===45?(e.consume(R),C):te(R)}function G(R){return R===47?(e.consume(R),c="",ne):te(R)}function ne(R){if(R===62){const fe=c.toLowerCase();return v1.includes(fe)?(e.consume(R),I):te(R)}return un(R)&&c.length<8?(e.consume(R),c+=String.fromCharCode(R),ne):te(R)}function pe(R){return R===93?(e.consume(R),C):te(R)}function C(R){return R===62?(e.consume(R),I):R===45&&s===2?(e.consume(R),C):te(R)}function I(R){return R===null||Se(R)?(e.exit("htmlFlowData"),se(R)):(e.consume(R),I)}function se(R){return e.exit("htmlFlow"),n(R)}}function K6(e,n,i){const l=this;return s;function s(c){return Se(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o):i(c)}function o(c){return l.parser.lazy[l.now().line]?i(c):n(c)}}function G6(e,n,i){return l;function l(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(go,n,i)}}const X6={name:"htmlText",tokenize:Z6};function Z6(e,n,i){const l=this;let s,o,c;return f;function f(C){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(C),h}function h(C){return C===33?(e.consume(C),d):C===47?(e.consume(C),L):C===63?(e.consume(C),j):un(C)?(e.consume(C),ee):i(C)}function d(C){return C===45?(e.consume(C),m):C===91?(e.consume(C),o=0,w):un(C)?(e.consume(C),N):i(C)}function m(C){return C===45?(e.consume(C),v):i(C)}function y(C){return C===null?i(C):C===45?(e.consume(C),x):Se(C)?(c=y,G(C)):(e.consume(C),y)}function x(C){return C===45?(e.consume(C),v):y(C)}function v(C){return C===62?B(C):C===45?x(C):y(C)}function w(C){const I="CDATA[";return C===I.charCodeAt(o++)?(e.consume(C),o===I.length?T:w):i(C)}function T(C){return C===null?i(C):C===93?(e.consume(C),_):Se(C)?(c=T,G(C)):(e.consume(C),T)}function _(C){return C===93?(e.consume(C),E):T(C)}function E(C){return C===62?B(C):C===93?(e.consume(C),E):T(C)}function N(C){return C===null||C===62?B(C):Se(C)?(c=N,G(C)):(e.consume(C),N)}function j(C){return C===null?i(C):C===63?(e.consume(C),q):Se(C)?(c=j,G(C)):(e.consume(C),j)}function q(C){return C===62?B(C):j(C)}function L(C){return un(C)?(e.consume(C),D):i(C)}function D(C){return C===45||en(C)?(e.consume(C),D):X(C)}function X(C){return Se(C)?(c=X,G(C)):Be(C)?(e.consume(C),X):B(C)}function ee(C){return C===45||en(C)?(e.consume(C),ee):C===47||C===62||it(C)?ie(C):i(C)}function ie(C){return C===47?(e.consume(C),B):C===58||C===95||un(C)?(e.consume(C),U):Se(C)?(c=ie,G(C)):Be(C)?(e.consume(C),ie):B(C)}function U(C){return C===45||C===46||C===58||C===95||en(C)?(e.consume(C),U):ae(C)}function ae(C){return C===61?(e.consume(C),te):Se(C)?(c=ae,G(C)):Be(C)?(e.consume(C),ae):ie(C)}function te(C){return C===null||C===60||C===61||C===62||C===96?i(C):C===34||C===39?(e.consume(C),s=C,ue):Se(C)?(c=te,G(C)):Be(C)?(e.consume(C),te):(e.consume(C),J)}function ue(C){return C===s?(e.consume(C),s=void 0,oe):C===null?i(C):Se(C)?(c=ue,G(C)):(e.consume(C),ue)}function J(C){return C===null||C===34||C===39||C===60||C===61||C===96?i(C):C===47||C===62||it(C)?ie(C):(e.consume(C),J)}function oe(C){return C===47||C===62||it(C)?ie(C):i(C)}function B(C){return C===62?(e.consume(C),e.exit("htmlTextData"),e.exit("htmlText"),n):i(C)}function G(C){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),ne}function ne(C){return Be(C)?Pe(e,pe,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):pe(C)}function pe(C){return e.enter("htmlTextData"),c(C)}}const tm={name:"labelEnd",resolveAll:t5,resolveTo:n5,tokenize:r5},J6={tokenize:i5},W6={tokenize:l5},e5={tokenize:a5};function t5(e){let n=-1;const i=[];for(;++n<e.length;){const l=e[n][1];if(i.push(e[n]),l.type==="labelImage"||l.type==="labelLink"||l.type==="labelEnd"){const s=l.type==="labelImage"?4:2;l.type="data",n+=s}}return e.length!==i.length&&Ln(e,0,e.length,i),e}function n5(e,n){let i=e.length,l=0,s,o,c,f;for(;i--;)if(s=e[i][1],o){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[i][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(c){if(e[i][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(o=i,s.type!=="labelLink")){l=2;break}}else s.type==="labelEnd"&&(c=i);const h={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},d={type:"label",start:{...e[o][1].start},end:{...e[c][1].end}},m={type:"labelText",start:{...e[o+l+2][1].end},end:{...e[c-2][1].start}};return f=[["enter",h,n],["enter",d,n]],f=Zn(f,e.slice(o+1,o+l+3)),f=Zn(f,[["enter",m,n]]),f=Zn(f,Fc(n.parser.constructs.insideSpan.null,e.slice(o+l+4,c-3),n)),f=Zn(f,[["exit",m,n],e[c-2],e[c-1],["exit",d,n]]),f=Zn(f,e.slice(c+1)),f=Zn(f,[["exit",h,n]]),Ln(e,o,e.length,f),e}function r5(e,n,i){const l=this;let s=l.events.length,o,c;for(;s--;)if((l.events[s][1].type==="labelImage"||l.events[s][1].type==="labelLink")&&!l.events[s][1]._balanced){o=l.events[s][1];break}return f;function f(x){return o?o._inactive?y(x):(c=l.parser.defined.includes(or(l.sliceSerialize({start:o.end,end:l.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(x),e.exit("labelMarker"),e.exit("labelEnd"),h):i(x)}function h(x){return x===40?e.attempt(J6,m,c?m:y)(x):x===91?e.attempt(W6,m,c?d:y)(x):c?m(x):y(x)}function d(x){return e.attempt(e5,m,y)(x)}function m(x){return n(x)}function y(x){return o._balanced=!0,i(x)}}function i5(e,n,i){return l;function l(y){return e.enter("resource"),e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),s}function s(y){return it(y)?Vs(e,o)(y):o(y)}function o(y){return y===41?m(y):cw(e,c,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function c(y){return it(y)?Vs(e,h)(y):m(y)}function f(y){return i(y)}function h(y){return y===34||y===39||y===40?dw(e,d,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):m(y)}function d(y){return it(y)?Vs(e,m)(y):m(y)}function m(y){return y===41?(e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),e.exit("resource"),n):i(y)}}function l5(e,n,i){const l=this;return s;function s(f){return fw.call(l,e,o,c,"reference","referenceMarker","referenceString")(f)}function o(f){return l.parser.defined.includes(or(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)))?n(f):i(f)}function c(f){return i(f)}}function a5(e,n,i){return l;function l(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),s}function s(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),n):i(o)}}const s5={name:"labelStartImage",resolveAll:tm.resolveAll,tokenize:o5};function o5(e,n,i){const l=this;return s;function s(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),o}function o(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),c):i(f)}function c(f){return f===94&&"_hiddenFootnoteSupport"in l.parser.constructs?i(f):n(f)}}const u5={name:"labelStartLink",resolveAll:tm.resolveAll,tokenize:c5};function c5(e,n,i){const l=this;return s;function s(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),o}function o(c){return c===94&&"_hiddenFootnoteSupport"in l.parser.constructs?i(c):n(c)}}const wh={name:"lineEnding",tokenize:f5};function f5(e,n){return i;function i(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Pe(e,n,"linePrefix")}}const Xu={name:"thematicBreak",tokenize:d5};function d5(e,n,i){let l=0,s;return o;function o(d){return e.enter("thematicBreak"),c(d)}function c(d){return s=d,f(d)}function f(d){return d===s?(e.enter("thematicBreakSequence"),h(d)):l>=3&&(d===null||Se(d))?(e.exit("thematicBreak"),n(d)):i(d)}function h(d){return d===s?(e.consume(d),l++,h):(e.exit("thematicBreakSequence"),Be(d)?Pe(e,f,"whitespace")(d):f(d))}}const yn={continuation:{tokenize:g5},exit:b5,name:"list",tokenize:m5},h5={partial:!0,tokenize:v5},p5={partial:!0,tokenize:y5};function m5(e,n,i){const l=this,s=l.events[l.events.length-1];let o=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,c=0;return f;function f(v){const w=l.containerState.type||(v===42||v===43||v===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!l.containerState.marker||v===l.containerState.marker:rp(v)){if(l.containerState.type||(l.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),v===42||v===45?e.check(Xu,i,d)(v):d(v);if(!l.interrupt||v===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(v)}return i(v)}function h(v){return rp(v)&&++c<10?(e.consume(v),h):(!l.interrupt||c<2)&&(l.containerState.marker?v===l.containerState.marker:v===41||v===46)?(e.exit("listItemValue"),d(v)):i(v)}function d(v){return e.enter("listItemMarker"),e.consume(v),e.exit("listItemMarker"),l.containerState.marker=l.containerState.marker||v,e.check(go,l.interrupt?i:m,e.attempt(h5,x,y))}function m(v){return l.containerState.initialBlankLine=!0,o++,x(v)}function y(v){return Be(v)?(e.enter("listItemPrefixWhitespace"),e.consume(v),e.exit("listItemPrefixWhitespace"),x):i(v)}function x(v){return l.containerState.size=o+l.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(v)}}function g5(e,n,i){const l=this;return l.containerState._closeFlow=void 0,e.check(go,s,o);function s(f){return l.containerState.furtherBlankLines=l.containerState.furtherBlankLines||l.containerState.initialBlankLine,Pe(e,n,"listItemIndent",l.containerState.size+1)(f)}function o(f){return l.containerState.furtherBlankLines||!Be(f)?(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,c(f)):(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,e.attempt(p5,n,c)(f))}function c(f){return l.containerState._closeFlow=!0,l.interrupt=void 0,Pe(e,e.attempt(yn,n,i),"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function y5(e,n,i){const l=this;return Pe(e,s,"listItemIndent",l.containerState.size+1);function s(o){const c=l.events[l.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===l.containerState.size?n(o):i(o)}}function b5(e){e.exit(this.containerState.type)}function v5(e,n,i){const l=this;return Pe(e,s,"listItemPrefixWhitespace",l.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(o){const c=l.events[l.events.length-1];return!Be(o)&&c&&c[1].type==="listItemPrefixWhitespace"?n(o):i(o)}}const x1={name:"setextUnderline",resolveTo:x5,tokenize:w5};function x5(e,n){let i=e.length,l,s,o;for(;i--;)if(e[i][0]==="enter"){if(e[i][1].type==="content"){l=i;break}e[i][1].type==="paragraph"&&(s=i)}else e[i][1].type==="content"&&e.splice(i,1),!o&&e[i][1].type==="definition"&&(o=i);const c={type:"setextHeading",start:{...e[l][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",o?(e.splice(s,0,["enter",c,n]),e.splice(o+1,0,["exit",e[l][1],n]),e[l][1].end={...e[o][1].end}):e[l][1]=c,e.push(["exit",c,n]),e}function w5(e,n,i){const l=this;let s;return o;function o(d){let m=l.events.length,y;for(;m--;)if(l.events[m][1].type!=="lineEnding"&&l.events[m][1].type!=="linePrefix"&&l.events[m][1].type!=="content"){y=l.events[m][1].type==="paragraph";break}return!l.parser.lazy[l.now().line]&&(l.interrupt||y)?(e.enter("setextHeadingLine"),s=d,c(d)):i(d)}function c(d){return e.enter("setextHeadingLineSequence"),f(d)}function f(d){return d===s?(e.consume(d),f):(e.exit("setextHeadingLineSequence"),Be(d)?Pe(e,h,"lineSuffix")(d):h(d))}function h(d){return d===null||Se(d)?(e.exit("setextHeadingLine"),n(d)):i(d)}}const S5={tokenize:R5,partial:!0};function C5(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:T5,continuation:{tokenize:_5},exit:N5}},text:{91:{name:"gfmFootnoteCall",tokenize:A5},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:E5,resolveTo:k5}}}}function E5(e,n,i){const l=this;let s=l.events.length;const o=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]);let c;for(;s--;){const h=l.events[s][1];if(h.type==="labelImage"){c=h;break}if(h.type==="gfmFootnoteCall"||h.type==="labelLink"||h.type==="label"||h.type==="image"||h.type==="link")break}return f;function f(h){if(!c||!c._balanced)return i(h);const d=or(l.sliceSerialize({start:c.end,end:l.now()}));return d.codePointAt(0)!==94||!o.includes(d.slice(1))?i(h):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),n(h))}}function k5(e,n){let i=e.length;for(;i--;)if(e[i][1].type==="labelImage"&&e[i][0]==="enter"){e[i][1];break}e[i+1][1].type="data",e[i+3][1].type="gfmFootnoteCallLabelMarker";const l={type:"gfmFootnoteCall",start:Object.assign({},e[i+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[i+3][1].end),end:Object.assign({},e[i+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},f=[e[i+1],e[i+2],["enter",l,n],e[i+3],e[i+4],["enter",s,n],["exit",s,n],["enter",o,n],["enter",c,n],["exit",c,n],["exit",o,n],e[e.length-2],e[e.length-1],["exit",l,n]];return e.splice(i,e.length-i+1,...f),e}function A5(e,n,i){const l=this,s=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]);let o=0,c;return f;function f(y){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(y),e.exit("gfmFootnoteCallLabelMarker"),h}function h(y){return y!==94?i(y):(e.enter("gfmFootnoteCallMarker"),e.consume(y),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",d)}function d(y){if(o>999||y===93&&!c||y===null||y===91||it(y))return i(y);if(y===93){e.exit("chunkString");const x=e.exit("gfmFootnoteCallString");return s.includes(or(l.sliceSerialize(x)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(y),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):i(y)}return it(y)||(c=!0),o++,e.consume(y),y===92?m:d}function m(y){return y===91||y===92||y===93?(e.consume(y),o++,d):d(y)}}function T5(e,n,i){const l=this,s=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]);let o,c=0,f;return h;function h(w){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionLabelMarker"),d}function d(w){return w===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",m):i(w)}function m(w){if(c>999||w===93&&!f||w===null||w===91||it(w))return i(w);if(w===93){e.exit("chunkString");const T=e.exit("gfmFootnoteDefinitionLabelString");return o=or(l.sliceSerialize(T)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),x}return it(w)||(f=!0),c++,e.consume(w),w===92?y:m}function y(w){return w===91||w===92||w===93?(e.consume(w),c++,m):m(w)}function x(w){return w===58?(e.enter("definitionMarker"),e.consume(w),e.exit("definitionMarker"),s.includes(o)||s.push(o),Pe(e,v,"gfmFootnoteDefinitionWhitespace")):i(w)}function v(w){return n(w)}}function _5(e,n,i){return e.check(go,n,e.attempt(S5,n,i))}function N5(e){e.exit("gfmFootnoteDefinition")}function R5(e,n,i){const l=this;return Pe(e,s,"gfmFootnoteDefinitionIndent",5);function s(o){const c=l.events[l.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?n(o):i(o)}}function j5(e){let i=(e||{}).singleTilde;const l={name:"strikethrough",tokenize:o,resolveAll:s};return i==null&&(i=!0),{text:{126:l},insideSpan:{null:[l]},attentionMarkers:{null:[126]}};function s(c,f){let h=-1;for(;++h<c.length;)if(c[h][0]==="enter"&&c[h][1].type==="strikethroughSequenceTemporary"&&c[h][1]._close){let d=h;for(;d--;)if(c[d][0]==="exit"&&c[d][1].type==="strikethroughSequenceTemporary"&&c[d][1]._open&&c[h][1].end.offset-c[h][1].start.offset===c[d][1].end.offset-c[d][1].start.offset){c[h][1].type="strikethroughSequence",c[d][1].type="strikethroughSequence";const m={type:"strikethrough",start:Object.assign({},c[d][1].start),end:Object.assign({},c[h][1].end)},y={type:"strikethroughText",start:Object.assign({},c[d][1].end),end:Object.assign({},c[h][1].start)},x=[["enter",m,f],["enter",c[d][1],f],["exit",c[d][1],f],["enter",y,f]],v=f.parser.constructs.insideSpan.null;v&&Ln(x,x.length,0,Fc(v,c.slice(d+1,h),f)),Ln(x,x.length,0,[["exit",y,f],["enter",c[h][1],f],["exit",c[h][1],f],["exit",m,f]]),Ln(c,d-1,h-d+3,x),h=d+x.length-2;break}}for(h=-1;++h<c.length;)c[h][1].type==="strikethroughSequenceTemporary"&&(c[h][1].type="data");return c}function o(c,f,h){const d=this.previous,m=this.events;let y=0;return x;function x(w){return d===126&&m[m.length-1][1].type!=="characterEscape"?h(w):(c.enter("strikethroughSequenceTemporary"),v(w))}function v(w){const T=Ca(d);if(w===126)return y>1?h(w):(c.consume(w),y++,v);if(y<2&&!i)return h(w);const _=c.exit("strikethroughSequenceTemporary"),E=Ca(w);return _._open=!E||E===2&&!!T,_._close=!T||T===2&&!!E,f(w)}}}class O5{constructor(){this.map=[]}add(n,i,l){D5(this,n,i,l)}consume(n){if(this.map.sort(function(o,c){return o[0]-c[0]}),this.map.length===0)return;let i=this.map.length;const l=[];for(;i>0;)i-=1,l.push(n.slice(this.map[i][0]+this.map[i][1]),this.map[i][2]),n.length=this.map[i][0];l.push(n.slice()),n.length=0;let s=l.pop();for(;s;){for(const o of s)n.push(o);s=l.pop()}this.map.length=0}}function D5(e,n,i,l){let s=0;if(!(i===0&&l.length===0)){for(;s<e.map.length;){if(e.map[s][0]===n){e.map[s][1]+=i,e.map[s][2].push(...l);return}s+=1}e.map.push([n,i,l])}}function M5(e,n){let i=!1;const l=[];for(;n<e.length;){const s=e[n];if(i){if(s[0]==="enter")s[1].type==="tableContent"&&l.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const o=l.length-1;l[o]=l[o]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(i=!0);n+=1}return l}function L5(){return{flow:{null:{name:"table",tokenize:z5,resolveAll:U5}}}}function z5(e,n,i){const l=this;let s=0,o=0,c;return f;function f(U){let ae=l.events.length-1;for(;ae>-1;){const J=l.events[ae][1].type;if(J==="lineEnding"||J==="linePrefix")ae--;else break}const te=ae>-1?l.events[ae][1].type:null,ue=te==="tableHead"||te==="tableRow"?D:h;return ue===D&&l.parser.lazy[l.now().line]?i(U):ue(U)}function h(U){return e.enter("tableHead"),e.enter("tableRow"),d(U)}function d(U){return U===124||(c=!0,o+=1),m(U)}function m(U){return U===null?i(U):Se(U)?o>1?(o=0,l.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(U),e.exit("lineEnding"),v):i(U):Be(U)?Pe(e,m,"whitespace")(U):(o+=1,c&&(c=!1,s+=1),U===124?(e.enter("tableCellDivider"),e.consume(U),e.exit("tableCellDivider"),c=!0,m):(e.enter("data"),y(U)))}function y(U){return U===null||U===124||it(U)?(e.exit("data"),m(U)):(e.consume(U),U===92?x:y)}function x(U){return U===92||U===124?(e.consume(U),y):y(U)}function v(U){return l.interrupt=!1,l.parser.lazy[l.now().line]?i(U):(e.enter("tableDelimiterRow"),c=!1,Be(U)?Pe(e,w,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(U):w(U))}function w(U){return U===45||U===58?_(U):U===124?(c=!0,e.enter("tableCellDivider"),e.consume(U),e.exit("tableCellDivider"),T):L(U)}function T(U){return Be(U)?Pe(e,_,"whitespace")(U):_(U)}function _(U){return U===58?(o+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(U),e.exit("tableDelimiterMarker"),E):U===45?(o+=1,E(U)):U===null||Se(U)?q(U):L(U)}function E(U){return U===45?(e.enter("tableDelimiterFiller"),N(U)):L(U)}function N(U){return U===45?(e.consume(U),N):U===58?(c=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(U),e.exit("tableDelimiterMarker"),j):(e.exit("tableDelimiterFiller"),j(U))}function j(U){return Be(U)?Pe(e,q,"whitespace")(U):q(U)}function q(U){return U===124?w(U):U===null||Se(U)?!c||s!==o?L(U):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(U)):L(U)}function L(U){return i(U)}function D(U){return e.enter("tableRow"),X(U)}function X(U){return U===124?(e.enter("tableCellDivider"),e.consume(U),e.exit("tableCellDivider"),X):U===null||Se(U)?(e.exit("tableRow"),n(U)):Be(U)?Pe(e,X,"whitespace")(U):(e.enter("data"),ee(U))}function ee(U){return U===null||U===124||it(U)?(e.exit("data"),X(U)):(e.consume(U),U===92?ie:ee)}function ie(U){return U===92||U===124?(e.consume(U),ee):ee(U)}}function U5(e,n){let i=-1,l=!0,s=0,o=[0,0,0,0],c=[0,0,0,0],f=!1,h=0,d,m,y;const x=new O5;for(;++i<e.length;){const v=e[i],w=v[1];v[0]==="enter"?w.type==="tableHead"?(f=!1,h!==0&&(w1(x,n,h,d,m),m=void 0,h=0),d={type:"table",start:Object.assign({},w.start),end:Object.assign({},w.end)},x.add(i,0,[["enter",d,n]])):w.type==="tableRow"||w.type==="tableDelimiterRow"?(l=!0,y=void 0,o=[0,0,0,0],c=[0,i+1,0,0],f&&(f=!1,m={type:"tableBody",start:Object.assign({},w.start),end:Object.assign({},w.end)},x.add(i,0,[["enter",m,n]])),s=w.type==="tableDelimiterRow"?2:m?3:1):s&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")?(l=!1,c[2]===0&&(o[1]!==0&&(c[0]=c[1],y=Mu(x,n,o,s,void 0,y),o=[0,0,0,0]),c[2]=i)):w.type==="tableCellDivider"&&(l?l=!1:(o[1]!==0&&(c[0]=c[1],y=Mu(x,n,o,s,void 0,y)),o=c,c=[o[1],i,0,0])):w.type==="tableHead"?(f=!0,h=i):w.type==="tableRow"||w.type==="tableDelimiterRow"?(h=i,o[1]!==0?(c[0]=c[1],y=Mu(x,n,o,s,i,y)):c[1]!==0&&(y=Mu(x,n,c,s,i,y)),s=0):s&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")&&(c[3]=i)}for(h!==0&&w1(x,n,h,d,m),x.consume(n.events),i=-1;++i<n.events.length;){const v=n.events[i];v[0]==="enter"&&v[1].type==="table"&&(v[1]._align=M5(n.events,i))}return e}function Mu(e,n,i,l,s,o){const c=l===1?"tableHeader":l===2?"tableDelimiter":"tableData",f="tableContent";i[0]!==0&&(o.end=Object.assign({},ya(n.events,i[0])),e.add(i[0],0,[["exit",o,n]]));const h=ya(n.events,i[1]);if(o={type:c,start:Object.assign({},h),end:Object.assign({},h)},e.add(i[1],0,[["enter",o,n]]),i[2]!==0){const d=ya(n.events,i[2]),m=ya(n.events,i[3]),y={type:f,start:Object.assign({},d),end:Object.assign({},m)};if(e.add(i[2],0,[["enter",y,n]]),l!==2){const x=n.events[i[2]],v=n.events[i[3]];if(x[1].end=Object.assign({},v[1].end),x[1].type="chunkText",x[1].contentType="text",i[3]>i[2]+1){const w=i[2]+1,T=i[3]-i[2]-1;e.add(w,T,[])}}e.add(i[3]+1,0,[["exit",y,n]])}return s!==void 0&&(o.end=Object.assign({},ya(n.events,s)),e.add(s,0,[["exit",o,n]]),o=void 0),o}function w1(e,n,i,l,s){const o=[],c=ya(n.events,i);s&&(s.end=Object.assign({},c),o.push(["exit",s,n])),l.end=Object.assign({},c),o.push(["exit",l,n]),e.add(i+1,0,o)}function ya(e,n){const i=e[n],l=i[0]==="enter"?"start":"end";return i[1][l]}const B5={name:"tasklistCheck",tokenize:H5};function q5(){return{text:{91:B5}}}function H5(e,n,i){const l=this;return s;function s(h){return l.previous!==null||!l._gfmTasklistFirstContentOfListItem?i(h):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),o)}function o(h){return it(h)?(e.enter("taskListCheckValueUnchecked"),e.consume(h),e.exit("taskListCheckValueUnchecked"),c):h===88||h===120?(e.enter("taskListCheckValueChecked"),e.consume(h),e.exit("taskListCheckValueChecked"),c):i(h)}function c(h){return h===93?(e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):i(h)}function f(h){return Se(h)?n(h):Be(h)?e.check({tokenize:F5},n,i)(h):i(h)}}function F5(e,n,i){return Pe(e,l,"whitespace");function l(s){return s===null?i(s):n(s)}}function P5(e){return Zx([JO(),C5(),j5(e),L5(),q5()])}const Q5={};function I5(e){const n=this,i=e||Q5,l=n.data(),s=l.micromarkExtensions||(l.micromarkExtensions=[]),o=l.fromMarkdownExtensions||(l.fromMarkdownExtensions=[]),c=l.toMarkdownExtensions||(l.toMarkdownExtensions=[]);s.push(P5(i)),o.push($O()),c.push(YO(i))}function V5(e,n){const i={};return(e[e.length-1]===""?[...e,""]:e).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const $5=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Y5=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,K5={};function S1(e,n){return(K5.jsx?Y5:$5).test(e)}const G5=/[ \t\n\f\r]/g;function X5(e){return typeof e=="object"?e.type==="text"?C1(e.value):!1:C1(e)}function C1(e){return e.replace(G5,"")===""}class yo{constructor(n,i,l){this.normal=i,this.property=n,l&&(this.space=l)}}yo.prototype.normal={};yo.prototype.property={};yo.prototype.space=void 0;function hw(e,n){const i={},l={};for(const s of e)Object.assign(i,s.property),Object.assign(l,s.normal);return new yo(i,l,n)}function sp(e){return e.toLowerCase()}class Sn{constructor(n,i){this.attribute=i,this.property=n}}Sn.prototype.attribute="";Sn.prototype.booleanish=!1;Sn.prototype.boolean=!1;Sn.prototype.commaOrSpaceSeparated=!1;Sn.prototype.commaSeparated=!1;Sn.prototype.defined=!1;Sn.prototype.mustUseProperty=!1;Sn.prototype.number=!1;Sn.prototype.overloadedBoolean=!1;Sn.prototype.property="";Sn.prototype.spaceSeparated=!1;Sn.prototype.space=void 0;let Z5=0;const Re=Al(),Nt=Al(),op=Al(),re=Al(),at=Al(),va=Al(),Dn=Al();function Al(){return 2**++Z5}const up=Object.freeze(Object.defineProperty({__proto__:null,boolean:Re,booleanish:Nt,commaOrSpaceSeparated:Dn,commaSeparated:va,number:re,overloadedBoolean:op,spaceSeparated:at},Symbol.toStringTag,{value:"Module"})),Sh=Object.keys(up);class nm extends Sn{constructor(n,i,l,s){let o=-1;if(super(n,i),E1(this,"space",s),typeof l=="number")for(;++o<Sh.length;){const c=Sh[o];E1(this,Sh[o],(l&up[c])===up[c])}}}nm.prototype.defined=!0;function E1(e,n,i){i&&(e[n]=i)}function Ua(e){const n={},i={};for(const[l,s]of Object.entries(e.properties)){const o=new nm(l,e.transform(e.attributes||{},l),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(l)&&(o.mustUseProperty=!0),n[l]=o,i[sp(l)]=l,i[sp(o.attribute)]=l}return new yo(n,i,e.space)}const pw=Ua({properties:{ariaActiveDescendant:null,ariaAtomic:Nt,ariaAutoComplete:null,ariaBusy:Nt,ariaChecked:Nt,ariaColCount:re,ariaColIndex:re,ariaColSpan:re,ariaControls:at,ariaCurrent:null,ariaDescribedBy:at,ariaDetails:null,ariaDisabled:Nt,ariaDropEffect:at,ariaErrorMessage:null,ariaExpanded:Nt,ariaFlowTo:at,ariaGrabbed:Nt,ariaHasPopup:null,ariaHidden:Nt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:at,ariaLevel:re,ariaLive:null,ariaModal:Nt,ariaMultiLine:Nt,ariaMultiSelectable:Nt,ariaOrientation:null,ariaOwns:at,ariaPlaceholder:null,ariaPosInSet:re,ariaPressed:Nt,ariaReadOnly:Nt,ariaRelevant:null,ariaRequired:Nt,ariaRoleDescription:at,ariaRowCount:re,ariaRowIndex:re,ariaRowSpan:re,ariaSelected:Nt,ariaSetSize:re,ariaSort:null,ariaValueMax:re,ariaValueMin:re,ariaValueNow:re,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function mw(e,n){return n in e?e[n]:n}function gw(e,n){return mw(e,n.toLowerCase())}const J5=Ua({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:va,acceptCharset:at,accessKey:at,action:null,allow:null,allowFullScreen:Re,allowPaymentRequest:Re,allowUserMedia:Re,alt:null,as:null,async:Re,autoCapitalize:null,autoComplete:at,autoFocus:Re,autoPlay:Re,blocking:at,capture:null,charSet:null,checked:Re,cite:null,className:at,cols:re,colSpan:null,content:null,contentEditable:Nt,controls:Re,controlsList:at,coords:re|va,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Re,defer:Re,dir:null,dirName:null,disabled:Re,download:op,draggable:Nt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Re,formTarget:null,headers:at,height:re,hidden:op,high:re,href:null,hrefLang:null,htmlFor:at,httpEquiv:at,id:null,imageSizes:null,imageSrcSet:null,inert:Re,inputMode:null,integrity:null,is:null,isMap:Re,itemId:null,itemProp:at,itemRef:at,itemScope:Re,itemType:at,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Re,low:re,manifest:null,max:null,maxLength:re,media:null,method:null,min:null,minLength:re,multiple:Re,muted:Re,name:null,nonce:null,noModule:Re,noValidate:Re,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Re,optimum:re,pattern:null,ping:at,placeholder:null,playsInline:Re,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Re,referrerPolicy:null,rel:at,required:Re,reversed:Re,rows:re,rowSpan:re,sandbox:at,scope:null,scoped:Re,seamless:Re,selected:Re,shadowRootClonable:Re,shadowRootDelegatesFocus:Re,shadowRootMode:null,shape:null,size:re,sizes:null,slot:null,span:re,spellCheck:Nt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:re,step:null,style:null,tabIndex:re,target:null,title:null,translate:null,type:null,typeMustMatch:Re,useMap:null,value:Nt,width:re,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:at,axis:null,background:null,bgColor:null,border:re,borderColor:null,bottomMargin:re,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Re,declare:Re,event:null,face:null,frame:null,frameBorder:null,hSpace:re,leftMargin:re,link:null,longDesc:null,lowSrc:null,marginHeight:re,marginWidth:re,noResize:Re,noHref:Re,noShade:Re,noWrap:Re,object:null,profile:null,prompt:null,rev:null,rightMargin:re,rules:null,scheme:null,scrolling:Nt,standby:null,summary:null,text:null,topMargin:re,valueType:null,version:null,vAlign:null,vLink:null,vSpace:re,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Re,disableRemotePlayback:Re,prefix:null,property:null,results:re,security:null,unselectable:null},space:"html",transform:gw}),W5=Ua({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Dn,accentHeight:re,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:re,amplitude:re,arabicForm:null,ascent:re,attributeName:null,attributeType:null,azimuth:re,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:re,by:null,calcMode:null,capHeight:re,className:at,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:re,diffuseConstant:re,direction:null,display:null,dur:null,divisor:re,dominantBaseline:null,download:Re,dx:null,dy:null,edgeMode:null,editable:null,elevation:re,enableBackground:null,end:null,event:null,exponent:re,externalResourcesRequired:null,fill:null,fillOpacity:re,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:va,g2:va,glyphName:va,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:re,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:re,horizOriginX:re,horizOriginY:re,id:null,ideographic:re,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:re,k:re,k1:re,k2:re,k3:re,k4:re,kernelMatrix:Dn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:re,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:re,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:re,overlineThickness:re,paintOrder:null,panose1:null,path:null,pathLength:re,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:at,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:re,pointsAtY:re,pointsAtZ:re,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Dn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Dn,rev:Dn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Dn,requiredFeatures:Dn,requiredFonts:Dn,requiredFormats:Dn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:re,specularExponent:re,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:re,strikethroughThickness:re,string:null,stroke:null,strokeDashArray:Dn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:re,strokeOpacity:re,strokeWidth:null,style:null,surfaceScale:re,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Dn,tabIndex:re,tableValues:null,target:null,targetX:re,targetY:re,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Dn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:re,underlineThickness:re,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:re,values:null,vAlphabetic:re,vMathematical:re,vectorEffect:null,vHanging:re,vIdeographic:re,version:null,vertAdvY:re,vertOriginX:re,vertOriginY:re,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:re,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:mw}),yw=Ua({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),bw=Ua({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:gw}),vw=Ua({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),eD={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},tD=/[A-Z]/g,k1=/-[a-z]/g,nD=/^data[-\w.:]+$/i;function rD(e,n){const i=sp(n);let l=n,s=Sn;if(i in e.normal)return e.property[e.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&nD.test(n)){if(n.charAt(4)==="-"){const o=n.slice(5).replace(k1,lD);l="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=n.slice(4);if(!k1.test(o)){let c=o.replace(tD,iD);c.charAt(0)!=="-"&&(c="-"+c),n="data"+c}}s=nm}return new s(l,n)}function iD(e){return"-"+e.toLowerCase()}function lD(e){return e.charAt(1).toUpperCase()}const aD=hw([pw,J5,yw,bw,vw],"html"),rm=hw([pw,W5,yw,bw,vw],"svg");function sD(e){return e.join(" ").trim()}var ha={},Ch,A1;function oD(){if(A1)return Ch;A1=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,i=/^\s*/,l=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,f=/^\s+|\s+$/g,h=`
253
- `,d="/",m="*",y="",x="comment",v="declaration";Ch=function(T,_){if(typeof T!="string")throw new TypeError("First argument must be a string");if(!T)return[];_=_||{};var E=1,N=1;function j(ue){var J=ue.match(n);J&&(E+=J.length);var oe=ue.lastIndexOf(h);N=~oe?ue.length-oe:N+ue.length}function q(){var ue={line:E,column:N};return function(J){return J.position=new L(ue),ee(),J}}function L(ue){this.start=ue,this.end={line:E,column:N},this.source=_.source}L.prototype.content=T;function D(ue){var J=new Error(_.source+":"+E+":"+N+": "+ue);if(J.reason=ue,J.filename=_.source,J.line=E,J.column=N,J.source=T,!_.silent)throw J}function X(ue){var J=ue.exec(T);if(J){var oe=J[0];return j(oe),T=T.slice(oe.length),J}}function ee(){X(i)}function ie(ue){var J;for(ue=ue||[];J=U();)J!==!1&&ue.push(J);return ue}function U(){var ue=q();if(!(d!=T.charAt(0)||m!=T.charAt(1))){for(var J=2;y!=T.charAt(J)&&(m!=T.charAt(J)||d!=T.charAt(J+1));)++J;if(J+=2,y===T.charAt(J-1))return D("End of comment missing");var oe=T.slice(2,J-2);return N+=2,j(oe),T=T.slice(J),N+=2,ue({type:x,comment:oe})}}function ae(){var ue=q(),J=X(l);if(J){if(U(),!X(s))return D("property missing ':'");var oe=X(o),B=ue({type:v,property:w(J[0].replace(e,y)),value:oe?w(oe[0].replace(e,y)):y});return X(c),B}}function te(){var ue=[];ie(ue);for(var J;J=ae();)J!==!1&&(ue.push(J),ie(ue));return ue}return ee(),te()};function w(T){return T?T.replace(f,y):y}return Ch}var T1;function uD(){if(T1)return ha;T1=1;var e=ha&&ha.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(ha,"__esModule",{value:!0}),ha.default=i;var n=e(oD());function i(l,s){var o=null;if(!l||typeof l!="string")return o;var c=(0,n.default)(l),f=typeof s=="function";return c.forEach(function(h){if(h.type==="declaration"){var d=h.property,m=h.value;f?s(d,m,h):m&&(o=o||{},o[d]=m)}}),o}return ha}var Hs={},_1;function cD(){if(_1)return Hs;_1=1,Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,i=/^[^-]+$/,l=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,o=function(d){return!d||i.test(d)||e.test(d)},c=function(d,m){return m.toUpperCase()},f=function(d,m){return"".concat(m,"-")},h=function(d,m){return m===void 0&&(m={}),o(d)?d:(d=d.toLowerCase(),m.reactCompat?d=d.replace(s,f):d=d.replace(l,f),d.replace(n,c))};return Hs.camelCase=h,Hs}var Fs,N1;function fD(){if(N1)return Fs;N1=1;var e=Fs&&Fs.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},n=e(uD()),i=cD();function l(s,o){var c={};return!s||typeof s!="string"||(0,n.default)(s,function(f,h){f&&h&&(c[(0,i.camelCase)(f,o)]=h)}),c}return l.default=l,Fs=l,Fs}var dD=fD();const hD=ka(dD),xw=ww("end"),im=ww("start");function ww(e){return n;function n(i){const l=i&&i.position&&i.position[e]||{};if(typeof l.line=="number"&&l.line>0&&typeof l.column=="number"&&l.column>0)return{line:l.line,column:l.column,offset:typeof l.offset=="number"&&l.offset>-1?l.offset:void 0}}}function pD(e){const n=im(e),i=xw(e);if(n&&i)return{start:n,end:i}}function $s(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?R1(e.position):"start"in e||"end"in e?R1(e):"line"in e||"column"in e?cp(e):""}function cp(e){return j1(e&&e.line)+":"+j1(e&&e.column)}function R1(e){return cp(e&&e.start)+"-"+cp(e&&e.end)}function j1(e){return e&&typeof e=="number"?e:1}class ln extends Error{constructor(n,i,l){super(),typeof i=="string"&&(l=i,i=void 0);let s="",o={},c=!1;if(i&&("line"in i&&"column"in i?o={place:i}:"start"in i&&"end"in i?o={place:i}:"type"in i?o={ancestors:[i],place:i.position}:o={...i}),typeof n=="string"?s=n:!o.cause&&n&&(c=!0,s=n.message,o.cause=n),!o.ruleId&&!o.source&&typeof l=="string"){const h=l.indexOf(":");h===-1?o.ruleId=l:(o.source=l.slice(0,h),o.ruleId=l.slice(h+1))}if(!o.place&&o.ancestors&&o.ancestors){const h=o.ancestors[o.ancestors.length-1];h&&(o.place=h.position)}const f=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file,this.message=s,this.line=f?f.line:void 0,this.name=$s(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=c&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}ln.prototype.file="";ln.prototype.name="";ln.prototype.reason="";ln.prototype.message="";ln.prototype.stack="";ln.prototype.column=void 0;ln.prototype.line=void 0;ln.prototype.ancestors=void 0;ln.prototype.cause=void 0;ln.prototype.fatal=void 0;ln.prototype.place=void 0;ln.prototype.ruleId=void 0;ln.prototype.source=void 0;const lm={}.hasOwnProperty,mD=new Map,gD=/[A-Z]/g,yD=new Set(["table","tbody","thead","tfoot","tr"]),bD=new Set(["td","th"]),Sw="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function vD(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=n.filePath||void 0;let l;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");l=TD(i,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");l=AD(i,n.jsx,n.jsxs)}const s={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:l,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:i,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?rm:aD,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},o=Cw(s,e,void 0);return o&&typeof o!="string"?o:s.create(e,s.Fragment,{children:o||void 0},void 0)}function Cw(e,n,i){if(n.type==="element")return xD(e,n,i);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return wD(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return CD(e,n,i);if(n.type==="mdxjsEsm")return SD(e,n);if(n.type==="root")return ED(e,n,i);if(n.type==="text")return kD(e,n)}function xD(e,n,i){const l=e.schema;let s=l;n.tagName.toLowerCase()==="svg"&&l.space==="html"&&(s=rm,e.schema=s),e.ancestors.push(n);const o=kw(e,n.tagName,!1),c=_D(e,n);let f=sm(e,n);return yD.has(n.tagName)&&(f=f.filter(function(h){return typeof h=="string"?!X5(h):!0})),Ew(e,c,o,n),am(c,f),e.ancestors.pop(),e.schema=l,e.create(n,o,c,i)}function wD(e,n){if(n.data&&n.data.estree&&e.evaluater){const l=n.data.estree.body[0];return l.type,e.evaluater.evaluateExpression(l.expression)}Ws(e,n.position)}function SD(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Ws(e,n.position)}function CD(e,n,i){const l=e.schema;let s=l;n.name==="svg"&&l.space==="html"&&(s=rm,e.schema=s),e.ancestors.push(n);const o=n.name===null?e.Fragment:kw(e,n.name,!0),c=ND(e,n),f=sm(e,n);return Ew(e,c,o,n),am(c,f),e.ancestors.pop(),e.schema=l,e.create(n,o,c,i)}function ED(e,n,i){const l={};return am(l,sm(e,n)),e.create(n,e.Fragment,l,i)}function kD(e,n){return n.value}function Ew(e,n,i,l){typeof i!="string"&&i!==e.Fragment&&e.passNode&&(n.node=l)}function am(e,n){if(n.length>0){const i=n.length>1?n:n[0];i&&(e.children=i)}}function AD(e,n,i){return l;function l(s,o,c,f){const d=Array.isArray(c.children)?i:n;return f?d(o,c,f):d(o,c)}}function TD(e,n){return i;function i(l,s,o,c){const f=Array.isArray(o.children),h=im(l);return n(s,o,c,f,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}function _D(e,n){const i={};let l,s;for(s in n.properties)if(s!=="children"&&lm.call(n.properties,s)){const o=RD(e,s,n.properties[s]);if(o){const[c,f]=o;e.tableCellAlignToStyle&&c==="align"&&typeof f=="string"&&bD.has(n.tagName)?l=f:i[c]=f}}if(l){const o=i.style||(i.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=l}return i}function ND(e,n){const i={};for(const l of n.attributes)if(l.type==="mdxJsxExpressionAttribute")if(l.data&&l.data.estree&&e.evaluater){const o=l.data.estree.body[0];o.type;const c=o.expression;c.type;const f=c.properties[0];f.type,Object.assign(i,e.evaluater.evaluateExpression(f.argument))}else Ws(e,n.position);else{const s=l.name;let o;if(l.value&&typeof l.value=="object")if(l.value.data&&l.value.data.estree&&e.evaluater){const f=l.value.data.estree.body[0];f.type,o=e.evaluater.evaluateExpression(f.expression)}else Ws(e,n.position);else o=l.value===null?!0:l.value;i[s]=o}return i}function sm(e,n){const i=[];let l=-1;const s=e.passKeys?new Map:mD;for(;++l<n.children.length;){const o=n.children[l];let c;if(e.passKeys){const h=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(h){const d=s.get(h)||0;c=h+"-"+d,s.set(h,d+1)}}const f=Cw(e,o,c);f!==void 0&&i.push(f)}return i}function RD(e,n,i){const l=rD(e.schema,n);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=l.commaSeparated?V5(i):sD(i)),l.property==="style"){let s=typeof i=="object"?i:jD(e,String(i));return e.stylePropertyNameCase==="css"&&(s=OD(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&l.space?eD[l.property]||l.property:l.attribute,i]}}function jD(e,n){try{return hD(n,{reactCompat:!0})}catch(i){if(e.ignoreInvalidStyle)return{};const l=i,s=new ln("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:l,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=Sw+"#cannot-parse-style-attribute",s}}function kw(e,n,i){let l;if(!i)l={type:"Literal",value:n};else if(n.includes(".")){const s=n.split(".");let o=-1,c;for(;++o<s.length;){const f=S1(s[o])?{type:"Identifier",name:s[o]}:{type:"Literal",value:s[o]};c=c?{type:"MemberExpression",object:c,property:f,computed:!!(o&&f.type==="Literal"),optional:!1}:f}l=c}else l=S1(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(l.type==="Literal"){const s=l.value;return lm.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(l);Ws(e)}function Ws(e,n){const i=new ln("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Sw+"#cannot-handle-mdx-estrees-without-createevaluater",i}function OD(e){const n={};let i;for(i in e)lm.call(e,i)&&(n[DD(i)]=e[i]);return n}function DD(e){let n=e.replace(gD,MD);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function MD(e){return"-"+e.toLowerCase()}const Eh={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},LD={tokenize:zD};function zD(e){const n=e.attempt(this.parser.constructs.contentInitial,l,s);let i;return n;function l(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Pe(e,n,"linePrefix")}function s(f){return e.enter("paragraph"),o(f)}function o(f){const h=e.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=h),i=h,c(f)}function c(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return Se(f)?(e.consume(f),e.exit("chunkText"),o):(e.consume(f),c)}}const UD={tokenize:BD},O1={tokenize:qD};function BD(e){const n=this,i=[];let l=0,s,o,c;return f;function f(j){if(l<i.length){const q=i[l];return n.containerState=q[1],e.attempt(q[0].continuation,h,d)(j)}return d(j)}function h(j){if(l++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,s&&N();const q=n.events.length;let L=q,D;for(;L--;)if(n.events[L][0]==="exit"&&n.events[L][1].type==="chunkFlow"){D=n.events[L][1].end;break}E(l);let X=q;for(;X<n.events.length;)n.events[X][1].end={...D},X++;return Ln(n.events,L+1,0,n.events.slice(q)),n.events.length=X,d(j)}return f(j)}function d(j){if(l===i.length){if(!s)return x(j);if(s.currentConstruct&&s.currentConstruct.concrete)return w(j);n.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(O1,m,y)(j)}function m(j){return s&&N(),E(l),x(j)}function y(j){return n.parser.lazy[n.now().line]=l!==i.length,c=n.now().offset,w(j)}function x(j){return n.containerState={},e.attempt(O1,v,w)(j)}function v(j){return l++,i.push([n.currentConstruct,n.containerState]),x(j)}function w(j){if(j===null){s&&N(),E(0),e.consume(j);return}return s=s||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:o}),T(j)}function T(j){if(j===null){_(e.exit("chunkFlow"),!0),E(0),e.consume(j);return}return Se(j)?(e.consume(j),_(e.exit("chunkFlow")),l=0,n.interrupt=void 0,f):(e.consume(j),T)}function _(j,q){const L=n.sliceStream(j);if(q&&L.push(null),j.previous=o,o&&(o.next=j),o=j,s.defineSkip(j.start),s.write(L),n.parser.lazy[j.start.line]){let D=s.events.length;for(;D--;)if(s.events[D][1].start.offset<c&&(!s.events[D][1].end||s.events[D][1].end.offset>c))return;const X=n.events.length;let ee=X,ie,U;for(;ee--;)if(n.events[ee][0]==="exit"&&n.events[ee][1].type==="chunkFlow"){if(ie){U=n.events[ee][1].end;break}ie=!0}for(E(l),D=X;D<n.events.length;)n.events[D][1].end={...U},D++;Ln(n.events,ee+1,0,n.events.slice(X)),n.events.length=D}}function E(j){let q=i.length;for(;q-- >j;){const L=i[q];n.containerState=L[1],L[0].exit.call(n,e)}i.length=j}function N(){s.write([null]),o=void 0,s=void 0,n.containerState._closeFlow=void 0}}function qD(e,n,i){return Pe(e,e.attempt(this.parser.constructs.document,n,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const HD={tokenize:FD};function FD(e){const n=this,i=e.attempt(go,l,e.attempt(this.parser.constructs.flowInitial,s,Pe(e,e.attempt(this.parser.constructs.flow,s,e.attempt(_6,s)),"linePrefix")));return i;function l(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),n.currentConstruct=void 0,i}function s(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n.currentConstruct=void 0,i}}const PD={resolveAll:Tw()},QD=Aw("string"),ID=Aw("text");function Aw(e){return{resolveAll:Tw(e==="text"?VD:void 0),tokenize:n};function n(i){const l=this,s=this.parser.constructs[e],o=i.attempt(s,c,f);return c;function c(m){return d(m)?o(m):f(m)}function f(m){if(m===null){i.consume(m);return}return i.enter("data"),i.consume(m),h}function h(m){return d(m)?(i.exit("data"),o(m)):(i.consume(m),h)}function d(m){if(m===null)return!0;const y=s[m];let x=-1;if(y)for(;++x<y.length;){const v=y[x];if(!v.previous||v.previous.call(l,l.previous))return!0}return!1}}}function Tw(e){return n;function n(i,l){let s=-1,o;for(;++s<=i.length;)o===void 0?i[s]&&i[s][1].type==="data"&&(o=s,s++):(!i[s]||i[s][1].type!=="data")&&(s!==o+2&&(i[o][1].end=i[s-1][1].end,i.splice(o+2,s-o-2),s=o+2),o=void 0);return e?e(i,l):i}}function VD(e,n){let i=0;for(;++i<=e.length;)if((i===e.length||e[i][1].type==="lineEnding")&&e[i-1][1].type==="data"){const l=e[i-1][1],s=n.sliceStream(l);let o=s.length,c=-1,f=0,h;for(;o--;){const d=s[o];if(typeof d=="string"){for(c=d.length;d.charCodeAt(c-1)===32;)f++,c--;if(c)break;c=-1}else if(d===-2)h=!0,f++;else if(d!==-1){o++;break}}if(n._contentTypeTextTrailing&&i===e.length&&(f=0),f){const d={type:i===e.length||h||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?c:l.start._bufferIndex+c,_index:l.start._index+o,line:l.end.line,column:l.end.column-f,offset:l.end.offset-f},end:{...l.end}};l.end={...d.start},l.start.offset===l.end.offset?Object.assign(l,d):(e.splice(i,0,["enter",d,n],["exit",d,n]),i+=2)}i++}return e}const $D={42:yn,43:yn,45:yn,48:yn,49:yn,50:yn,51:yn,52:yn,53:yn,54:yn,55:yn,56:yn,57:yn,62:aw},YD={91:D6},KD={[-2]:xh,[-1]:xh,32:xh},GD={35:q6,42:Xu,45:[x1,Xu],60:Q6,61:x1,95:Xu,96:b1,126:b1},XD={38:ow,92:sw},ZD={[-5]:wh,[-4]:wh,[-3]:wh,33:s5,38:ow,42:ap,60:[u6,X6],91:u5,92:[U6,sw],93:tm,95:ap,96:S6},JD={null:[ap,PD]},WD={null:[42,95]},e8={null:[]},t8=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:WD,contentInitial:YD,disable:e8,document:$D,flow:GD,flowInitial:KD,insideSpan:JD,string:XD,text:ZD},Symbol.toStringTag,{value:"Module"}));function n8(e,n,i){let l={_bufferIndex:-1,_index:0,line:i&&i.line||1,column:i&&i.column||1,offset:i&&i.offset||0};const s={},o=[];let c=[],f=[];const h={attempt:X(L),check:X(D),consume:N,enter:j,exit:q,interrupt:X(D,{interrupt:!0})},d={code:null,containerState:{},defineSkip:T,events:[],now:w,parser:e,previous:null,sliceSerialize:x,sliceStream:v,write:y};let m=n.tokenize.call(d,h);return n.resolveAll&&o.push(n),d;function y(ae){return c=Zn(c,ae),_(),c[c.length-1]!==null?[]:(ee(n,0),d.events=Fc(o,d.events,d),d.events)}function x(ae,te){return i8(v(ae),te)}function v(ae){return r8(c,ae)}function w(){const{_bufferIndex:ae,_index:te,line:ue,column:J,offset:oe}=l;return{_bufferIndex:ae,_index:te,line:ue,column:J,offset:oe}}function T(ae){s[ae.line]=ae.column,U()}function _(){let ae;for(;l._index<c.length;){const te=c[l._index];if(typeof te=="string")for(ae=l._index,l._bufferIndex<0&&(l._bufferIndex=0);l._index===ae&&l._bufferIndex<te.length;)E(te.charCodeAt(l._bufferIndex));else E(te)}}function E(ae){m=m(ae)}function N(ae){Se(ae)?(l.line++,l.column=1,l.offset+=ae===-3?2:1,U()):ae!==-1&&(l.column++,l.offset++),l._bufferIndex<0?l._index++:(l._bufferIndex++,l._bufferIndex===c[l._index].length&&(l._bufferIndex=-1,l._index++)),d.previous=ae}function j(ae,te){const ue=te||{};return ue.type=ae,ue.start=w(),d.events.push(["enter",ue,d]),f.push(ue),ue}function q(ae){const te=f.pop();return te.end=w(),d.events.push(["exit",te,d]),te}function L(ae,te){ee(ae,te.from)}function D(ae,te){te.restore()}function X(ae,te){return ue;function ue(J,oe,B){let G,ne,pe,C;return Array.isArray(J)?se(J):"tokenize"in J?se([J]):I(J);function I(ce){return ft;function ft(je){const Ie=je!==null&&ce[je],Ft=je!==null&&ce.null,wt=[...Array.isArray(Ie)?Ie:Ie?[Ie]:[],...Array.isArray(Ft)?Ft:Ft?[Ft]:[]];return se(wt)(je)}}function se(ce){return G=ce,ne=0,ce.length===0?B:R(ce[ne])}function R(ce){return ft;function ft(je){return C=ie(),pe=ce,ce.partial||(d.currentConstruct=ce),ce.name&&d.parser.constructs.disable.null.includes(ce.name)?Te():ce.tokenize.call(te?Object.assign(Object.create(d),te):d,h,fe,Te)(je)}}function fe(ce){return ae(pe,C),oe}function Te(ce){return C.restore(),++ne<G.length?R(G[ne]):B}}}function ee(ae,te){ae.resolveAll&&!o.includes(ae)&&o.push(ae),ae.resolve&&Ln(d.events,te,d.events.length-te,ae.resolve(d.events.slice(te),d)),ae.resolveTo&&(d.events=ae.resolveTo(d.events,d))}function ie(){const ae=w(),te=d.previous,ue=d.currentConstruct,J=d.events.length,oe=Array.from(f);return{from:J,restore:B};function B(){l=ae,d.previous=te,d.currentConstruct=ue,d.events.length=J,f=oe,U()}}function U(){l.line in s&&l.column<2&&(l.column=s[l.line],l.offset+=s[l.line]-1)}}function r8(e,n){const i=n.start._index,l=n.start._bufferIndex,s=n.end._index,o=n.end._bufferIndex;let c;if(i===s)c=[e[i].slice(l,o)];else{if(c=e.slice(i,s),l>-1){const f=c[0];typeof f=="string"?c[0]=f.slice(l):c.shift()}o>0&&c.push(e[s].slice(0,o))}return c}function i8(e,n){let i=-1;const l=[];let s;for(;++i<e.length;){const o=e[i];let c;if(typeof o=="string")c=o;else switch(o){case-5:{c="\r";break}case-4:{c=`
254
- `;break}case-3:{c=`\r
255
- `;break}case-2:{c=n?" ":" ";break}case-1:{if(!n&&s)continue;c=" ";break}default:c=String.fromCharCode(o)}s=o===-2,l.push(c)}return l.join("")}function l8(e){const l={constructs:Zx([t8,...(e||{}).extensions||[]]),content:s(LD),defined:[],document:s(UD),flow:s(HD),lazy:{},string:s(QD),text:s(ID)};return l;function s(o){return c;function c(f){return n8(l,o,f)}}}function a8(e){for(;!uw(e););return e}const D1=/[\0\t\n\r]/g;function s8(){let e=1,n="",i=!0,l;return s;function s(o,c,f){const h=[];let d,m,y,x,v;for(o=n+(typeof o=="string"?o.toString():new TextDecoder(c||void 0).decode(o)),y=0,n="",i&&(o.charCodeAt(0)===65279&&y++,i=void 0);y<o.length;){if(D1.lastIndex=y,d=D1.exec(o),x=d&&d.index!==void 0?d.index:o.length,v=o.charCodeAt(x),!d){n=o.slice(y);break}if(v===10&&y===x&&l)h.push(-3),l=void 0;else switch(l&&(h.push(-5),l=void 0),y<x&&(h.push(o.slice(y,x)),e+=x-y),v){case 0:{h.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,h.push(-2);e++<m;)h.push(-1);break}case 10:{h.push(-4),e=1;break}default:l=!0,e=1}y=x+1}return f&&(l&&h.push(-5),n&&h.push(n),h.push(null)),h}}const _w={}.hasOwnProperty;function o8(e,n,i){return typeof n!="string"&&(i=n,n=void 0),u8(i)(a8(l8(i).document().write(s8()(e,n,!0))))}function u8(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Cn),autolinkProtocol:ie,autolinkEmail:ie,atxHeading:o(ui),blockQuote:o(Ft),characterEscape:ie,characterReference:ie,codeFenced:o(wt),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:o(wt,c),codeText:o(fn,c),codeTextData:ie,data:ie,codeFlowValue:ie,definition:o(nr),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:o(dn),hardBreakEscape:o(Dt),hardBreakTrailing:o(Dt),htmlFlow:o(Mt,c),htmlFlowData:ie,htmlText:o(Mt,c),htmlTextData:ie,image:o(rr),label:c,link:o(Cn),listItem:o(Un),listItemValue:x,listOrdered:o(Ke,y),listUnordered:o(Ke),paragraph:o(Lr),reference:R,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:o(ui),strong:o(gr),thematicBreak:o(ci)},exit:{atxHeading:h(),atxHeadingSequence:L,autolink:h(),autolinkEmail:Ie,autolinkProtocol:je,blockQuote:h(),characterEscapeValue:U,characterReferenceMarkerHexadecimal:Te,characterReferenceMarkerNumeric:Te,characterReferenceValue:ce,characterReference:ft,codeFenced:h(_),codeFencedFence:T,codeFencedFenceInfo:v,codeFencedFenceMeta:w,codeFlowValue:U,codeIndented:h(E),codeText:h(oe),codeTextData:U,data:U,definition:h(),definitionDestinationString:q,definitionLabelString:N,definitionTitleString:j,emphasis:h(),hardBreakEscape:h(te),hardBreakTrailing:h(te),htmlFlow:h(ue),htmlFlowData:U,htmlText:h(J),htmlTextData:U,image:h(G),label:pe,labelText:ne,lineEnding:ae,link:h(B),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:fe,resourceDestinationString:C,resourceTitleString:I,resource:se,setextHeading:h(ee),setextHeadingLineSequence:X,setextHeadingText:D,strong:h(),thematicBreak:h()}};Nw(n,(e||{}).mdastExtensions||[]);const i={};return l;function l($){let W={type:"root",children:[]};const me={stack:[W],tokenStack:[],config:n,enter:f,exit:d,buffer:c,resume:m,data:i},ge=[];let qe=-1;for(;++qe<$.length;)if($[qe][1].type==="listOrdered"||$[qe][1].type==="listUnordered")if($[qe][0]==="enter")ge.push(qe);else{const Pt=ge.pop();qe=s($,Pt,qe)}for(qe=-1;++qe<$.length;){const Pt=n[$[qe][0]];_w.call(Pt,$[qe][1].type)&&Pt[$[qe][1].type].call(Object.assign({sliceSerialize:$[qe][2].sliceSerialize},me),$[qe][1])}if(me.tokenStack.length>0){const Pt=me.tokenStack[me.tokenStack.length-1];(Pt[1]||M1).call(me,void 0,Pt[0])}for(W.position={start:zi($.length>0?$[0][1].start:{line:1,column:1,offset:0}),end:zi($.length>0?$[$.length-2][1].end:{line:1,column:1,offset:0})},qe=-1;++qe<n.transforms.length;)W=n.transforms[qe](W)||W;return W}function s($,W,me){let ge=W-1,qe=-1,Pt=!1,Yt,gt,yt,He;for(;++ge<=me;){const dt=$[ge];switch(dt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{dt[0]==="enter"?qe++:qe--,He=void 0;break}case"lineEndingBlank":{dt[0]==="enter"&&(Yt&&!He&&!qe&&!yt&&(yt=ge),He=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:He=void 0}if(!qe&&dt[0]==="enter"&&dt[1].type==="listItemPrefix"||qe===-1&&dt[0]==="exit"&&(dt[1].type==="listUnordered"||dt[1].type==="listOrdered")){if(Yt){let Lt=ge;for(gt=void 0;Lt--;){const zt=$[Lt];if(zt[1].type==="lineEnding"||zt[1].type==="lineEndingBlank"){if(zt[0]==="exit")continue;gt&&($[gt][1].type="lineEndingBlank",Pt=!0),zt[1].type="lineEnding",gt=Lt}else if(!(zt[1].type==="linePrefix"||zt[1].type==="blockQuotePrefix"||zt[1].type==="blockQuotePrefixWhitespace"||zt[1].type==="blockQuoteMarker"||zt[1].type==="listItemIndent"))break}yt&&(!gt||yt<gt)&&(Yt._spread=!0),Yt.end=Object.assign({},gt?$[gt][1].start:dt[1].end),$.splice(gt||ge,0,["exit",Yt,dt[2]]),ge++,me++}if(dt[1].type==="listItemPrefix"){const Lt={type:"listItem",_spread:!1,start:Object.assign({},dt[1].start),end:void 0};Yt=Lt,$.splice(ge,0,["enter",Lt,dt[2]]),ge++,me++,yt=void 0,He=!0}}}return $[W][1]._spread=Pt,me}function o($,W){return me;function me(ge){f.call(this,$(ge),ge),W&&W.call(this,ge)}}function c(){this.stack.push({type:"fragment",children:[]})}function f($,W,me){this.stack[this.stack.length-1].children.push($),this.stack.push($),this.tokenStack.push([W,me||void 0]),$.position={start:zi(W.start),end:void 0}}function h($){return W;function W(me){$&&$.call(this,me),d.call(this,me)}}function d($,W){const me=this.stack.pop(),ge=this.tokenStack.pop();if(ge)ge[0].type!==$.type&&(W?W.call(this,$,ge[0]):(ge[1]||M1).call(this,$,ge[0]));else throw new Error("Cannot close `"+$.type+"` ("+$s({start:$.start,end:$.end})+"): it’s not open");me.position.end=zi($.end)}function m(){return Zp(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function x($){if(this.data.expectingFirstListItemValue){const W=this.stack[this.stack.length-2];W.start=Number.parseInt(this.sliceSerialize($),10),this.data.expectingFirstListItemValue=void 0}}function v(){const $=this.resume(),W=this.stack[this.stack.length-1];W.lang=$}function w(){const $=this.resume(),W=this.stack[this.stack.length-1];W.meta=$}function T(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){const $=this.resume(),W=this.stack[this.stack.length-1];W.value=$.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function E(){const $=this.resume(),W=this.stack[this.stack.length-1];W.value=$.replace(/(\r?\n|\r)$/g,"")}function N($){const W=this.resume(),me=this.stack[this.stack.length-1];me.label=W,me.identifier=or(this.sliceSerialize($)).toLowerCase()}function j(){const $=this.resume(),W=this.stack[this.stack.length-1];W.title=$}function q(){const $=this.resume(),W=this.stack[this.stack.length-1];W.url=$}function L($){const W=this.stack[this.stack.length-1];if(!W.depth){const me=this.sliceSerialize($).length;W.depth=me}}function D(){this.data.setextHeadingSlurpLineEnding=!0}function X($){const W=this.stack[this.stack.length-1];W.depth=this.sliceSerialize($).codePointAt(0)===61?1:2}function ee(){this.data.setextHeadingSlurpLineEnding=void 0}function ie($){const me=this.stack[this.stack.length-1].children;let ge=me[me.length-1];(!ge||ge.type!=="text")&&(ge=zr(),ge.position={start:zi($.start),end:void 0},me.push(ge)),this.stack.push(ge)}function U($){const W=this.stack.pop();W.value+=this.sliceSerialize($),W.position.end=zi($.end)}function ae($){const W=this.stack[this.stack.length-1];if(this.data.atHardBreak){const me=W.children[W.children.length-1];me.position.end=zi($.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(W.type)&&(ie.call(this,$),U.call(this,$))}function te(){this.data.atHardBreak=!0}function ue(){const $=this.resume(),W=this.stack[this.stack.length-1];W.value=$}function J(){const $=this.resume(),W=this.stack[this.stack.length-1];W.value=$}function oe(){const $=this.resume(),W=this.stack[this.stack.length-1];W.value=$}function B(){const $=this.stack[this.stack.length-1];if(this.data.inReference){const W=this.data.referenceType||"shortcut";$.type+="Reference",$.referenceType=W,delete $.url,delete $.title}else delete $.identifier,delete $.label;this.data.referenceType=void 0}function G(){const $=this.stack[this.stack.length-1];if(this.data.inReference){const W=this.data.referenceType||"shortcut";$.type+="Reference",$.referenceType=W,delete $.url,delete $.title}else delete $.identifier,delete $.label;this.data.referenceType=void 0}function ne($){const W=this.sliceSerialize($),me=this.stack[this.stack.length-2];me.label=DO(W),me.identifier=or(W).toLowerCase()}function pe(){const $=this.stack[this.stack.length-1],W=this.resume(),me=this.stack[this.stack.length-1];if(this.data.inReference=!0,me.type==="link"){const ge=$.children;me.children=ge}else me.alt=W}function C(){const $=this.resume(),W=this.stack[this.stack.length-1];W.url=$}function I(){const $=this.resume(),W=this.stack[this.stack.length-1];W.title=$}function se(){this.data.inReference=void 0}function R(){this.data.referenceType="collapsed"}function fe($){const W=this.resume(),me=this.stack[this.stack.length-1];me.label=W,me.identifier=or(this.sliceSerialize($)).toLowerCase(),this.data.referenceType="full"}function Te($){this.data.characterReferenceType=$.type}function ce($){const W=this.sliceSerialize($),me=this.data.characterReferenceType;let ge;me?(ge=Xx(W,me==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ge=Wp(W);const qe=this.stack[this.stack.length-1];qe.value+=ge}function ft($){const W=this.stack.pop();W.position.end=zi($.end)}function je($){U.call(this,$);const W=this.stack[this.stack.length-1];W.url=this.sliceSerialize($)}function Ie($){U.call(this,$);const W=this.stack[this.stack.length-1];W.url="mailto:"+this.sliceSerialize($)}function Ft(){return{type:"blockquote",children:[]}}function wt(){return{type:"code",lang:null,meta:null,value:""}}function fn(){return{type:"inlineCode",value:""}}function nr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function dn(){return{type:"emphasis",children:[]}}function ui(){return{type:"heading",depth:0,children:[]}}function Dt(){return{type:"break"}}function Mt(){return{type:"html",value:""}}function rr(){return{type:"image",title:null,url:"",alt:null}}function Cn(){return{type:"link",title:null,url:"",children:[]}}function Ke($){return{type:"list",ordered:$.type==="listOrdered",start:null,spread:$._spread,children:[]}}function Un($){return{type:"listItem",spread:$._spread,checked:null,children:[]}}function Lr(){return{type:"paragraph",children:[]}}function gr(){return{type:"strong",children:[]}}function zr(){return{type:"text",value:""}}function ci(){return{type:"thematicBreak"}}}function zi(e){return{line:e.line,column:e.column,offset:e.offset}}function Nw(e,n){let i=-1;for(;++i<n.length;){const l=n[i];Array.isArray(l)?Nw(e,l):c8(e,l)}}function c8(e,n){let i;for(i in n)if(_w.call(n,i))switch(i){case"canContainEols":{const l=n[i];l&&e[i].push(...l);break}case"transforms":{const l=n[i];l&&e[i].push(...l);break}case"enter":case"exit":{const l=n[i];l&&Object.assign(e[i],l);break}}}function M1(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+$s({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+$s({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+$s({start:n.start,end:n.end})+") is still open")}function f8(e){const n=this;n.parser=i;function i(l){return o8(l,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function d8(e,n){const i={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,i),e.applyData(n,i)}function h8(e,n){const i={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,i),[e.applyData(n,i),{type:"text",value:`
256
- `}]}function p8(e,n){const i=n.value?n.value+`
257
- `:"",l={};n.lang&&(l.className=["language-"+n.lang]);let s={type:"element",tagName:"code",properties:l,children:[{type:"text",value:i}]};return n.meta&&(s.data={meta:n.meta}),e.patch(n,s),s=e.applyData(n,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(n,s),s}function m8(e,n){const i={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function g8(e,n){const i={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function y8(e,n){const i=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",l=String(n.identifier).toUpperCase(),s=za(l.toLowerCase()),o=e.footnoteOrder.indexOf(l);let c,f=e.footnoteCounts.get(l);f===void 0?(f=0,e.footnoteOrder.push(l),c=e.footnoteOrder.length):c=o+1,f+=1,e.footnoteCounts.set(l,f);const h={type:"element",tagName:"a",properties:{href:"#"+i+"fn-"+s,id:i+"fnref-"+s+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(n,h);const d={type:"element",tagName:"sup",properties:{},children:[h]};return e.patch(n,d),e.applyData(n,d)}function b8(e,n){const i={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function v8(e,n){if(e.options.allowDangerousHtml){const i={type:"raw",value:n.value};return e.patch(n,i),e.applyData(n,i)}}function Rw(e,n){const i=n.referenceType;let l="]";if(i==="collapsed"?l+="[]":i==="full"&&(l+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+l}];const s=e.all(n),o=s[0];o&&o.type==="text"?o.value="["+o.value:s.unshift({type:"text",value:"["});const c=s[s.length-1];return c&&c.type==="text"?c.value+=l:s.push({type:"text",value:l}),s}function x8(e,n){const i=String(n.identifier).toUpperCase(),l=e.definitionById.get(i);if(!l)return Rw(e,n);const s={src:za(l.url||""),alt:n.alt};l.title!==null&&l.title!==void 0&&(s.title=l.title);const o={type:"element",tagName:"img",properties:s,children:[]};return e.patch(n,o),e.applyData(n,o)}function w8(e,n){const i={src:za(n.url)};n.alt!==null&&n.alt!==void 0&&(i.alt=n.alt),n.title!==null&&n.title!==void 0&&(i.title=n.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,l),e.applyData(n,l)}function S8(e,n){const i={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,i);const l={type:"element",tagName:"code",properties:{},children:[i]};return e.patch(n,l),e.applyData(n,l)}function C8(e,n){const i=String(n.identifier).toUpperCase(),l=e.definitionById.get(i);if(!l)return Rw(e,n);const s={href:za(l.url||"")};l.title!==null&&l.title!==void 0&&(s.title=l.title);const o={type:"element",tagName:"a",properties:s,children:e.all(n)};return e.patch(n,o),e.applyData(n,o)}function E8(e,n){const i={href:za(n.url)};n.title!==null&&n.title!==void 0&&(i.title=n.title);const l={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,l),e.applyData(n,l)}function k8(e,n,i){const l=e.all(n),s=i?A8(i):jw(n),o={},c=[];if(typeof n.checked=="boolean"){const m=l[0];let y;m&&m.type==="element"&&m.tagName==="p"?y=m:(y={type:"element",tagName:"p",properties:{},children:[]},l.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let f=-1;for(;++f<l.length;){const m=l[f];(s||f!==0||m.type!=="element"||m.tagName!=="p")&&c.push({type:"text",value:`
258
- `}),m.type==="element"&&m.tagName==="p"&&!s?c.push(...m.children):c.push(m)}const h=l[l.length-1];h&&(s||h.type!=="element"||h.tagName!=="p")&&c.push({type:"text",value:`
259
- `});const d={type:"element",tagName:"li",properties:o,children:c};return e.patch(n,d),e.applyData(n,d)}function A8(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const i=e.children;let l=-1;for(;!n&&++l<i.length;)n=jw(i[l])}return n}function jw(e){const n=e.spread;return n??e.children.length>1}function T8(e,n){const i={},l=e.all(n);let s=-1;for(typeof n.start=="number"&&n.start!==1&&(i.start=n.start);++s<l.length;){const c=l[s];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){i.className=["contains-task-list"];break}}const o={type:"element",tagName:n.ordered?"ol":"ul",properties:i,children:e.wrap(l,!0)};return e.patch(n,o),e.applyData(n,o)}function _8(e,n){const i={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function N8(e,n){const i={type:"root",children:e.wrap(e.all(n))};return e.patch(n,i),e.applyData(n,i)}function R8(e,n){const i={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function j8(e,n){const i=e.all(n),l=i.shift(),s=[];if(l){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([l],!0)};e.patch(n.children[0],c),s.push(c)}if(i.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(i,!0)},f=im(n.children[1]),h=xw(n.children[n.children.length-1]);f&&h&&(c.position={start:f,end:h}),s.push(c)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(n,o),e.applyData(n,o)}function O8(e,n,i){const l=i?i.children:void 0,o=(l?l.indexOf(n):1)===0?"th":"td",c=i&&i.type==="table"?i.align:void 0,f=c?c.length:n.children.length;let h=-1;const d=[];for(;++h<f;){const y=n.children[h],x={},v=c?c[h]:void 0;v&&(x.align=v);let w={type:"element",tagName:o,properties:x,children:[]};y&&(w.children=e.all(y),e.patch(y,w),w=e.applyData(y,w)),d.push(w)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(d,!0)};return e.patch(n,m),e.applyData(n,m)}function D8(e,n){const i={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}const L1=9,z1=32;function M8(e){const n=String(e),i=/\r?\n|\r/g;let l=i.exec(n),s=0;const o=[];for(;l;)o.push(U1(n.slice(s,l.index),s>0,!0),l[0]),s=l.index+l[0].length,l=i.exec(n);return o.push(U1(n.slice(s),s>0,!1)),o.join("")}function U1(e,n,i){let l=0,s=e.length;if(n){let o=e.codePointAt(l);for(;o===L1||o===z1;)l++,o=e.codePointAt(l)}if(i){let o=e.codePointAt(s-1);for(;o===L1||o===z1;)s--,o=e.codePointAt(s-1)}return s>l?e.slice(l,s):""}function L8(e,n){const i={type:"text",value:M8(String(n.value))};return e.patch(n,i),e.applyData(n,i)}function z8(e,n){const i={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,i),e.applyData(n,i)}const U8={blockquote:d8,break:h8,code:p8,delete:m8,emphasis:g8,footnoteReference:y8,heading:b8,html:v8,imageReference:x8,image:w8,inlineCode:S8,linkReference:C8,link:E8,listItem:k8,list:T8,paragraph:_8,root:N8,strong:R8,table:j8,tableCell:D8,tableRow:O8,text:L8,thematicBreak:z8,toml:Lu,yaml:Lu,definition:Lu,footnoteDefinition:Lu};function Lu(){}const Ow=-1,Pc=0,Ys=1,pc=2,om=3,um=4,cm=5,fm=6,Dw=7,Mw=8,B1=typeof self=="object"?self:globalThis,B8=(e,n)=>{const i=(s,o)=>(e.set(o,s),s),l=s=>{if(e.has(s))return e.get(s);const[o,c]=n[s];switch(o){case Pc:case Ow:return i(c,s);case Ys:{const f=i([],s);for(const h of c)f.push(l(h));return f}case pc:{const f=i({},s);for(const[h,d]of c)f[l(h)]=l(d);return f}case om:return i(new Date(c),s);case um:{const{source:f,flags:h}=c;return i(new RegExp(f,h),s)}case cm:{const f=i(new Map,s);for(const[h,d]of c)f.set(l(h),l(d));return f}case fm:{const f=i(new Set,s);for(const h of c)f.add(l(h));return f}case Dw:{const{name:f,message:h}=c;return i(new B1[f](h),s)}case Mw:return i(BigInt(c),s);case"BigInt":return i(Object(BigInt(c)),s);case"ArrayBuffer":return i(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:f}=new Uint8Array(c);return i(new DataView(f),c)}}return i(new B1[o](c),s)};return l},q1=e=>B8(new Map,e)(0),pa="",{toString:q8}={},{keys:H8}=Object,Ps=e=>{const n=typeof e;if(n!=="object"||!e)return[Pc,n];const i=q8.call(e).slice(8,-1);switch(i){case"Array":return[Ys,pa];case"Object":return[pc,pa];case"Date":return[om,pa];case"RegExp":return[um,pa];case"Map":return[cm,pa];case"Set":return[fm,pa];case"DataView":return[Ys,i]}return i.includes("Array")?[Ys,i]:i.includes("Error")?[Dw,i]:[pc,i]},zu=([e,n])=>e===Pc&&(n==="function"||n==="symbol"),F8=(e,n,i,l)=>{const s=(c,f)=>{const h=l.push(c)-1;return i.set(f,h),h},o=c=>{if(i.has(c))return i.get(c);let[f,h]=Ps(c);switch(f){case Pc:{let m=c;switch(h){case"bigint":f=Mw,m=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+h);m=null;break;case"undefined":return s([Ow],c)}return s([f,m],c)}case Ys:{if(h){let x=c;return h==="DataView"?x=new Uint8Array(c.buffer):h==="ArrayBuffer"&&(x=new Uint8Array(c)),s([h,[...x]],c)}const m=[],y=s([f,m],c);for(const x of c)m.push(o(x));return y}case pc:{if(h)switch(h){case"BigInt":return s([h,c.toString()],c);case"Boolean":case"Number":case"String":return s([h,c.valueOf()],c)}if(n&&"toJSON"in c)return o(c.toJSON());const m=[],y=s([f,m],c);for(const x of H8(c))(e||!zu(Ps(c[x])))&&m.push([o(x),o(c[x])]);return y}case om:return s([f,c.toISOString()],c);case um:{const{source:m,flags:y}=c;return s([f,{source:m,flags:y}],c)}case cm:{const m=[],y=s([f,m],c);for(const[x,v]of c)(e||!(zu(Ps(x))||zu(Ps(v))))&&m.push([o(x),o(v)]);return y}case fm:{const m=[],y=s([f,m],c);for(const x of c)(e||!zu(Ps(x)))&&m.push(o(x));return y}}const{message:d}=c;return s([f,{name:h,message:d}],c)};return o},H1=(e,{json:n,lossy:i}={})=>{const l=[];return F8(!(n||i),!!n,new Map,l)(e),l},mc=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?q1(H1(e,n)):structuredClone(e):(e,n)=>q1(H1(e,n));function P8(e,n){const i=[{type:"text",value:"↩"}];return n>1&&i.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),i}function Q8(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function I8(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=e.options.footnoteBackContent||P8,l=e.options.footnoteBackLabel||Q8,s=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let h=-1;for(;++h<e.footnoteOrder.length;){const d=e.footnoteById.get(e.footnoteOrder[h]);if(!d)continue;const m=e.all(d),y=String(d.identifier).toUpperCase(),x=za(y.toLowerCase());let v=0;const w=[],T=e.footnoteCounts.get(y);for(;T!==void 0&&++v<=T;){w.length>0&&w.push({type:"text",value:" "});let N=typeof i=="string"?i:i(h,v);typeof N=="string"&&(N={type:"text",value:N}),w.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+x+(v>1?"-"+v:""),dataFootnoteBackref:"",ariaLabel:typeof l=="string"?l:l(h,v),className:["data-footnote-backref"]},children:Array.isArray(N)?N:[N]})}const _=m[m.length-1];if(_&&_.type==="element"&&_.tagName==="p"){const N=_.children[_.children.length-1];N&&N.type==="text"?N.value+=" ":_.children.push({type:"text",value:" "}),_.children.push(...w)}else m.push(...w);const E={type:"element",tagName:"li",properties:{id:n+"fn-"+x},children:e.wrap(m,!0)};e.patch(d,E),f.push(E)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...mc(c),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
260
- `},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
261
- `}]}}const fp={}.hasOwnProperty,V8={};function $8(e,n){const i=n||V8,l=new Map,s=new Map,o=new Map,c={...U8,...i.handlers},f={all:d,applyData:K8,definitionById:l,footnoteById:s,footnoteCounts:o,footnoteOrder:[],handlers:c,one:h,options:i,patch:Y8,wrap:X8};return Xp(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const y=m.type==="definition"?l:s,x=String(m.identifier).toUpperCase();y.has(x)||y.set(x,m)}}),f;function h(m,y){const x=m.type,v=f.handlers[x];if(fp.call(f.handlers,x)&&v)return v(f,m,y);if(f.options.passThrough&&f.options.passThrough.includes(x)){if("children"in m){const{children:T,..._}=m,E=mc(_);return E.children=f.all(m),E}return mc(m)}return(f.options.unknownHandler||G8)(f,m,y)}function d(m){const y=[];if("children"in m){const x=m.children;let v=-1;for(;++v<x.length;){const w=f.one(x[v],m);if(w){if(v&&x[v-1].type==="break"&&(!Array.isArray(w)&&w.type==="text"&&(w.value=F1(w.value)),!Array.isArray(w)&&w.type==="element")){const T=w.children[0];T&&T.type==="text"&&(T.value=F1(T.value))}Array.isArray(w)?y.push(...w):y.push(w)}}}return y}}function Y8(e,n){e.position&&(n.position=pD(e))}function K8(e,n){let i=n;if(e&&e.data){const l=e.data.hName,s=e.data.hChildren,o=e.data.hProperties;if(typeof l=="string")if(i.type==="element")i.tagName=l;else{const c="children"in i?i.children:[i];i={type:"element",tagName:l,properties:{},children:c}}i.type==="element"&&o&&Object.assign(i.properties,mc(o)),"children"in i&&i.children&&s!==null&&s!==void 0&&(i.children=s)}return i}function G8(e,n){const i=n.data||{},l="value"in n&&!(fp.call(i,"hProperties")||fp.call(i,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,l),e.applyData(n,l)}function X8(e,n){const i=[];let l=-1;for(n&&i.push({type:"text",value:`
262
- `});++l<e.length;)l&&i.push({type:"text",value:`
263
- `}),i.push(e[l]);return n&&e.length>0&&i.push({type:"text",value:`
264
- `}),i}function F1(e){let n=0,i=e.charCodeAt(n);for(;i===9||i===32;)n++,i=e.charCodeAt(n);return e.slice(n)}function P1(e,n){const i=$8(e,n),l=i.one(e,void 0),s=I8(i),o=Array.isArray(l)?{type:"root",children:l}:l||{type:"root",children:[]};return s&&o.children.push({type:"text",value:`
265
- `},s),o}function Z8(e,n){return e&&"run"in e?async function(i,l){const s=P1(i,{file:l,...n});await e.run(s,l)}:function(i,l){return P1(i,{file:l,...e||n})}}function Q1(e){if(e)throw e}var kh,I1;function J8(){if(I1)return kh;I1=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,i=Object.defineProperty,l=Object.getOwnPropertyDescriptor,s=function(d){return typeof Array.isArray=="function"?Array.isArray(d):n.call(d)==="[object Array]"},o=function(d){if(!d||n.call(d)!=="[object Object]")return!1;var m=e.call(d,"constructor"),y=d.constructor&&d.constructor.prototype&&e.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!m&&!y)return!1;var x;for(x in d);return typeof x>"u"||e.call(d,x)},c=function(d,m){i&&m.name==="__proto__"?i(d,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):d[m.name]=m.newValue},f=function(d,m){if(m==="__proto__")if(e.call(d,m)){if(l)return l(d,m).value}else return;return d[m]};return kh=function h(){var d,m,y,x,v,w,T=arguments[0],_=1,E=arguments.length,N=!1;for(typeof T=="boolean"&&(N=T,T=arguments[1]||{},_=2),(T==null||typeof T!="object"&&typeof T!="function")&&(T={});_<E;++_)if(d=arguments[_],d!=null)for(m in d)y=f(T,m),x=f(d,m),T!==x&&(N&&x&&(o(x)||(v=s(x)))?(v?(v=!1,w=y&&s(y)?y:[]):w=y&&o(y)?y:{},c(T,{name:m,newValue:h(N,w,x)})):typeof x<"u"&&c(T,{name:m,newValue:x}));return T},kh}var W8=J8();const Ah=ka(W8);function dp(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function eM(){const e=[],n={run:i,use:l};return n;function i(...s){let o=-1;const c=s.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);f(null,...s);function f(h,...d){const m=e[++o];let y=-1;if(h){c(h);return}for(;++y<s.length;)(d[y]===null||d[y]===void 0)&&(d[y]=s[y]);s=d,m?tM(m,f)(...d):c(null,...d)}}function l(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),n}}function tM(e,n){let i;return l;function l(...c){const f=e.length>c.length;let h;f&&c.push(s);try{h=e.apply(this,c)}catch(d){const m=d;if(f&&i)throw m;return s(m)}f||(h&&h.then&&typeof h.then=="function"?h.then(o,s):h instanceof Error?s(h):o(h))}function s(c,...f){i||(i=!0,n(c,...f))}function o(c){s(null,c)}}const kr={basename:nM,dirname:rM,extname:iM,join:lM,sep:"/"};function nM(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');bo(e);let i=0,l=-1,s=e.length,o;if(n===void 0||n.length===0||n.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(o){i=s+1;break}}else l<0&&(o=!0,l=s+1);return l<0?"":e.slice(i,l)}if(n===e)return"";let c=-1,f=n.length-1;for(;s--;)if(e.codePointAt(s)===47){if(o){i=s+1;break}}else c<0&&(o=!0,c=s+1),f>-1&&(e.codePointAt(s)===n.codePointAt(f--)?f<0&&(l=s):(f=-1,l=c));return i===l?l=c:l<0&&(l=e.length),e.slice(i,l)}function rM(e){if(bo(e),e.length===0)return".";let n=-1,i=e.length,l;for(;--i;)if(e.codePointAt(i)===47){if(l){n=i;break}}else l||(l=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function iM(e){bo(e);let n=e.length,i=-1,l=0,s=-1,o=0,c;for(;n--;){const f=e.codePointAt(n);if(f===47){if(c){l=n+1;break}continue}i<0&&(c=!0,i=n+1),f===46?s<0?s=n:o!==1&&(o=1):s>-1&&(o=-1)}return s<0||i<0||o===0||o===1&&s===i-1&&s===l+1?"":e.slice(s,i)}function lM(...e){let n=-1,i;for(;++n<e.length;)bo(e[n]),e[n]&&(i=i===void 0?e[n]:i+"/"+e[n]);return i===void 0?".":aM(i)}function aM(e){bo(e);const n=e.codePointAt(0)===47;let i=sM(e,!n);return i.length===0&&!n&&(i="."),i.length>0&&e.codePointAt(e.length-1)===47&&(i+="/"),n?"/"+i:i}function sM(e,n){let i="",l=0,s=-1,o=0,c=-1,f,h;for(;++c<=e.length;){if(c<e.length)f=e.codePointAt(c);else{if(f===47)break;f=47}if(f===47){if(!(s===c-1||o===1))if(s!==c-1&&o===2){if(i.length<2||l!==2||i.codePointAt(i.length-1)!==46||i.codePointAt(i.length-2)!==46){if(i.length>2){if(h=i.lastIndexOf("/"),h!==i.length-1){h<0?(i="",l=0):(i=i.slice(0,h),l=i.length-1-i.lastIndexOf("/")),s=c,o=0;continue}}else if(i.length>0){i="",l=0,s=c,o=0;continue}}n&&(i=i.length>0?i+"/..":"..",l=2)}else i.length>0?i+="/"+e.slice(s+1,c):i=e.slice(s+1,c),l=c-s-1;s=c,o=0}else f===46&&o>-1?o++:o=-1}return i}function bo(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const oM={cwd:uM};function uM(){return"/"}function hp(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function cM(e){if(typeof e=="string")e=new URL(e);else if(!hp(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return fM(e)}function fM(e){if(e.hostname!==""){const l=new TypeError('File URL host must be "localhost" or empty on darwin');throw l.code="ERR_INVALID_FILE_URL_HOST",l}const n=e.pathname;let i=-1;for(;++i<n.length;)if(n.codePointAt(i)===37&&n.codePointAt(i+1)===50){const l=n.codePointAt(i+2);if(l===70||l===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(n)}const Th=["history","path","basename","stem","extname","dirname"];class Lw{constructor(n){let i;n?hp(n)?i={path:n}:typeof n=="string"||dM(n)?i={value:n}:i=n:i={},this.cwd="cwd"in i?"":oM.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let l=-1;for(;++l<Th.length;){const o=Th[l];o in i&&i[o]!==void 0&&i[o]!==null&&(this[o]=o==="history"?[...i[o]]:i[o])}let s;for(s in i)Th.includes(s)||(this[s]=i[s])}get basename(){return typeof this.path=="string"?kr.basename(this.path):void 0}set basename(n){Nh(n,"basename"),_h(n,"basename"),this.path=kr.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?kr.dirname(this.path):void 0}set dirname(n){V1(this.basename,"dirname"),this.path=kr.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?kr.extname(this.path):void 0}set extname(n){if(_h(n,"extname"),V1(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=kr.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){hp(n)&&(n=cM(n)),Nh(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?kr.basename(this.path,this.extname):void 0}set stem(n){Nh(n,"stem"),_h(n,"stem"),this.path=kr.join(this.dirname||"",n+(this.extname||""))}fail(n,i,l){const s=this.message(n,i,l);throw s.fatal=!0,s}info(n,i,l){const s=this.message(n,i,l);return s.fatal=void 0,s}message(n,i,l){const s=new ln(n,i,l);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function _h(e,n){if(e&&e.includes(kr.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+kr.sep+"`")}function Nh(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function V1(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function dM(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const hM=function(e){const l=this.constructor.prototype,s=l[e],o=function(){return s.apply(o,arguments)};return Object.setPrototypeOf(o,l),o},pM={}.hasOwnProperty;class dm extends hM{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=eM()}copy(){const n=new dm;let i=-1;for(;++i<this.attachers.length;){const l=this.attachers[i];n.use(...l)}return n.data(Ah(!0,{},this.namespace)),n}data(n,i){return typeof n=="string"?arguments.length===2?(Oh("data",this.frozen),this.namespace[n]=i,this):pM.call(this.namespace,n)&&this.namespace[n]||void 0:n?(Oh("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[i,...l]=this.attachers[this.freezeIndex];if(l[0]===!1)continue;l[0]===!0&&(l[0]=void 0);const s=i.call(n,...l);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const i=Uu(n),l=this.parser||this.Parser;return Rh("parse",l),l(String(i),i)}process(n,i){const l=this;return this.freeze(),Rh("process",this.parser||this.Parser),jh("process",this.compiler||this.Compiler),i?s(void 0,i):new Promise(s);function s(o,c){const f=Uu(n),h=l.parse(f);l.run(h,f,function(m,y,x){if(m||!y||!x)return d(m);const v=y,w=l.stringify(v,x);yM(w)?x.value=w:x.result=w,d(m,x)});function d(m,y){m||!y?c(m):o?o(y):i(void 0,y)}}}processSync(n){let i=!1,l;return this.freeze(),Rh("processSync",this.parser||this.Parser),jh("processSync",this.compiler||this.Compiler),this.process(n,s),Y1("processSync","process",i),l;function s(o,c){i=!0,Q1(o),l=c}}run(n,i,l){$1(n),this.freeze();const s=this.transformers;return!l&&typeof i=="function"&&(l=i,i=void 0),l?o(void 0,l):new Promise(o);function o(c,f){const h=Uu(i);s.run(n,h,d);function d(m,y,x){const v=y||n;m?f(m):c?c(v):l(void 0,v,x)}}}runSync(n,i){let l=!1,s;return this.run(n,i,o),Y1("runSync","run",l),s;function o(c,f){Q1(c),s=f,l=!0}}stringify(n,i){this.freeze();const l=Uu(i),s=this.compiler||this.Compiler;return jh("stringify",s),$1(n),s(n,l)}use(n,...i){const l=this.attachers,s=this.namespace;if(Oh("use",this.frozen),n!=null)if(typeof n=="function")h(n,i);else if(typeof n=="object")Array.isArray(n)?f(n):c(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function o(d){if(typeof d=="function")h(d,[]);else if(typeof d=="object")if(Array.isArray(d)){const[m,...y]=d;h(m,y)}else c(d);else throw new TypeError("Expected usable value, not `"+d+"`")}function c(d){if(!("plugins"in d)&&!("settings"in d))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");f(d.plugins),d.settings&&(s.settings=Ah(!0,s.settings,d.settings))}function f(d){let m=-1;if(d!=null)if(Array.isArray(d))for(;++m<d.length;){const y=d[m];o(y)}else throw new TypeError("Expected a list of plugins, not `"+d+"`")}function h(d,m){let y=-1,x=-1;for(;++y<l.length;)if(l[y][0]===d){x=y;break}if(x===-1)l.push([d,...m]);else if(m.length>0){let[v,...w]=m;const T=l[x][1];dp(T)&&dp(v)&&(v=Ah(!0,T,v)),l[x]=[d,v,...w]}}}}const mM=new dm().freeze();function Rh(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function jh(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Oh(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function $1(e){if(!dp(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Y1(e,n,i){if(!i)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Uu(e){return gM(e)?e:new Lw(e)}function gM(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function yM(e){return typeof e=="string"||bM(e)}function bM(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const vM="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",K1=[],G1={allowDangerousHtml:!0},xM=/^(https?|ircs?|mailto|xmpp)$/i,wM=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function SM(e){const n=CM(e),i=EM(e);return kM(n.runSync(n.parse(i),i),e)}function CM(e){const n=e.rehypePlugins||K1,i=e.remarkPlugins||K1,l=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...G1}:G1;return mM().use(f8).use(i).use(Z8,l).use(n)}function EM(e){const n=e.children||"",i=new Lw;return typeof n=="string"&&(i.value=n),i}function kM(e,n){const i=n.allowedElements,l=n.allowElement,s=n.components,o=n.disallowedElements,c=n.skipHtml,f=n.unwrapDisallowed,h=n.urlTransform||AM;for(const m of wM)Object.hasOwn(n,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+vM+m.id,void 0);return Xp(e,d),vD(e,{Fragment:b.Fragment,components:s,ignoreInvalidStyle:!0,jsx:b.jsx,jsxs:b.jsxs,passKeys:!0,passNode:!0});function d(m,y,x){if(m.type==="raw"&&x&&typeof y=="number")return c?x.children.splice(y,1):x.children[y]={type:"text",value:m.value},y;if(m.type==="element"){let v;for(v in Eh)if(Object.hasOwn(Eh,v)&&Object.hasOwn(m.properties,v)){const w=m.properties[v],T=Eh[v];(T===null||T.includes(m.tagName))&&(m.properties[v]=h(String(w||""),v,m))}}if(m.type==="element"){let v=i?!i.includes(m.tagName):o?o.includes(m.tagName):!1;if(!v&&l&&typeof y=="number"&&(v=!l(m,y,x)),v&&x&&typeof y=="number")return f&&m.children?x.children.splice(y,1,...m.children):x.children.splice(y,1),y}}}function AM(e){const n=e.indexOf(":"),i=e.indexOf("?"),l=e.indexOf("#"),s=e.indexOf("/");return n===-1||s!==-1&&n>s||i!==-1&&n>i||l!==-1&&n>l||xM.test(e.slice(0,n))?e:""}const TM=({children:e,...n})=>b.jsx("code",{className:"bg-gray-100 text-gray-600 px-1.5 py-0.5 rounded text-sm font-mono",...n,children:e}),_M=e=>Array.isArray(e)&&typeof e[0]=="string"?e[0]:typeof e=="string"?e:"",NM=({getText:e})=>{const n=async()=>{await navigator.clipboard.writeText(e()),tn.success("Copied!")};return b.jsx("button",{onClick:n,className:"text-xs text-white px-2 py-1 rounded hover:bg-gray-600 cursor-pointer",children:"📋"})},RM=({children:e,className:n,...i})=>{const l=(n==null?void 0:n.replace("language-",""))||"";return b.jsxs("div",{className:"mb-4 not-prose",children:[l&&b.jsxs("div",{className:"bg-gray-800 text-gray-300 px-4 py-2 text-sm font-mono rounded-t-md flex justify-between items-center",children:[b.jsx("span",{children:l}),b.jsx(NM,{getText:()=>_M(e).trim()})]}),b.jsx("pre",{className:`bg-gray-900 text-gray-100 p-4 overflow-x-auto ${l?"rounded-b-md":"rounded-md"}`,...i,children:b.jsx("code",{className:"font-mono text-sm",children:e})})]})},jM={code:({className:e,children:n,...i})=>e?b.jsx(RM,{className:e,...i,children:n}):b.jsx(TM,{...i,children:n}),pre:({children:e})=>b.jsx(b.Fragment,{children:e})},OM=({content:e})=>b.jsx("div",{className:"prose max-w-none",children:b.jsx(SM,{remarkPlugins:[I5],components:jM,children:e})}),DM=`### ⚠️ You are running an outdated local server version.
266
-
267
- Please update your local server version to **0.0.71**
268
-
269
- ### 🔧 Update Command
270
-
271
- Update \`@dataramen/cli\` library:
272
-
273
- \`\`\`bash
274
- npm i -g @dataramen/cli
275
- \`\`\`
276
-
277
- After the update, re-run your local server:
278
-
279
- \`\`\`bash
280
- dataramen start
281
- \`\`\`
282
-
283
- Once done, click on the "Check again" button below or refresh the page.
284
- `,MM=()=>{const{data:e,refetch:n}=tj();return!(e!=null&&e.active)||nj(e.version,"0.0.71")===0?null:b.jsx(rn,{isVisible:!0,onClose:()=>null,children:b.jsxs("div",{children:[b.jsx(OM,{content:DM}),b.jsx("div",{className:"flex justify-end mt-2",children:b.jsx("button",{className:"button primary",onClick:()=>n(),children:"Check again"})})]})})},[LM,zw]=wn(!1),Dh=()=>zw(!1),Uw=()=>zw(!0),zM=({repeatPassword:e,password:n})=>n.length<1?null:n.length<8?b.jsx(cn,{variant:"warning",children:"New password should be at least 8 characters long"}):n!==e?b.jsx(cn,{variant:"warning",children:"Repeat password should match new password"}):null,UM=()=>{const e=LM(),{data:n}=jr(),{mutateAsync:i,isLoading:l}=zk(),s=Wn(),[{password:o,repeatPassword:c},{change:f,touched:h,reset:d}]=co({password:"",repeatPassword:""}),m=()=>{s("/"),ao.logout().then(()=>{Dh()})},y=()=>{i({password:o}).then(()=>{d(),tn.success("Password successfully updated!")})},x=o.length<8||o!==c||l,v=h.includes("password");return b.jsxs(rn,{isVisible:e,onClose:Dh,children:[b.jsx(tr,{onClick:Dh}),b.jsxs("div",{className:"w-full lg:w-lg flex flex-col gap-2",children:[b.jsx(sx,{children:"Account settings"}),b.jsxs("label",{children:[b.jsx("p",{className:"text-xs font-semibold mb-1",children:"Username"}),b.jsx("input",{className:"input w-full",readOnly:!0,disabled:!0,value:n==null?void 0:n.username})]}),b.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[b.jsxs("label",{children:[b.jsx("p",{className:"text-xs font-semibold mb-1",children:"Change password"}),b.jsx("input",{className:"input w-full",type:"password",name:"newPassword",autoComplete:"new-password",value:o,onChange:f("password")})]}),b.jsxs("label",{children:[b.jsx("p",{className:"text-xs font-semibold mb-1",children:"Repeat password"}),b.jsx("input",{className:"input w-full",type:"password",value:c,onChange:f("repeatPassword")})]})]}),v&&b.jsx(zM,{password:o,repeatPassword:c}),b.jsxs("div",{className:"flex justify-end gap-2 mt-2",children:[b.jsx("button",{className:"button tertiary",disabled:x,onClick:y,children:"Update password"}),b.jsx("button",{className:"button danger",onClick:m,children:"Log out"})]})]})]})},[BM,Bw]=wn(!1),qw=()=>Bw(!0),X1=()=>Bw(!1),qM=e=>zn({queryKey:["team-users"],queryFn:async()=>{const{data:n}=await st.get("/teams/"+e+"/users");return n.data},enabled:!!e}),HM=()=>er({mutationFn:async({role:e,teamId:n,userId:i})=>(await st.patch("/teams/"+n+"/user-role",{role:e,userId:i}),!0),onSuccess:()=>{mt.invalidateQueries({queryKey:["team-users"]})}}),FM=()=>er({mutationFn:async({teamId:e,userId:n})=>(await st.delete("/teams/"+e,{params:{userId:n}}),!0),onSuccess:()=>{mt.invalidateQueries({queryKey:["team-users"]})}}),PM="_user-entry_8y1kw_2",QM={userEntry:PM},IM=()=>{const e=BM(),{data:n}=jr(),{data:i}=qM(n==null?void 0:n.teamId),{mutate:l,isLoading:s}=Uk(),{mutate:o,isLoading:c}=HM(),{mutate:f,isLoading:h}=FM(),[d,{change:m,reset:y}]=co({password:"",username:""}),x=()=>{l({username:d.username,password:d.password,teamId:(n==null?void 0:n.teamId)||""}),y()},v=(E,N)=>{o({teamId:n.teamId,role:N,userId:E})},w=E=>{ox("Are you sure you want to remove this user?").then(N=>{N&&f({userId:E,teamId:n.teamId})})},T=uo(bn.ADMIN),_=s||c||h;return b.jsxs(rn,{isVisible:e,onClose:X1,backdropClose:!0,children:[b.jsx(tr,{onClick:X1}),b.jsxs("div",{className:"w-full lg:w-lg flex flex-col overflow-hidden",children:[b.jsx(sx,{children:"Manage users"}),Fi(i==null?void 0:i.length,0)&&b.jsx("div",{className:"mt-4 overflow-y-auto flex-1",children:i.map(E=>b.jsxs("div",{className:QM.userEntry,children:[b.jsxs("select",{className:"input",value:E.role,disabled:!T||_,onChange:N=>v(E.id,N.currentTarget.value),children:[b.jsx("option",{value:bn.OWNER,children:"Owner"}),b.jsx("option",{value:bn.ADMIN,children:"Admin"}),b.jsx("option",{value:bn.EDITOR,children:"Editor"}),b.jsx("option",{value:bn.READ_ONLY,children:"Reader"})]}),b.jsx("p",{className:"flex-1 mx-2",children:E.name}),T&&b.jsx("button",{className:"p-1 cursor-pointer text-red-500 text-sm",onClick:()=>w(E.id),children:"❌"})]},E.id))}),T&&b.jsxs("div",{className:"mt-4",children:[b.jsx("p",{className:"font-semibold",children:"Create new user"}),b.jsxs("div",{className:"flex flex-col lg:flex-row gap-2 lg:items-center mt-2",children:[b.jsx("input",{className:"input flex-1",onChange:m("username"),value:d.username,placeholder:"Username",disabled:_}),b.jsx("input",{className:"input",onChange:m("password"),value:d.password,type:"password",name:"newPassword",autoComplete:"new-password",placeholder:"Password",disabled:_}),b.jsx("button",{className:"button primary",onClick:x,disabled:_,children:"Create user"})]}),b.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."})]})]})]})},VM=()=>{const[e,n]=k.useState(""),[i,l]=k.useState(""),[s,o]=k.useState(),[c,f]=k.useState(!1),h=Wn(),d=m=>{m.preventDefault(),o(void 0),ao.login({password:i,username:e}).then(()=>{h("/",{replace:!0})}).catch(o)};return b.jsx("div",{className:"page-container bg-(--bg) h-screen",children:b.jsx("div",{className:"page-content items-center",children:b.jsxs("form",{className:"flex flex-col gap-2 w-full lg:w-lg",onSubmit:d,children:[b.jsx("p",{className:"font-semibold text-xl min-w-md",children:"Login"}),s&&b.jsx(cn,{variant:"danger",children:"Failed to login. Please verify your credentials"}),b.jsx("input",{value:e,onChange:m=>n(m.currentTarget.value),className:"input",placeholder:"User name"}),b.jsx("input",{value:i,onChange:m=>l(m.currentTarget.value),className:"input",type:"password",placeholder:"Password"}),b.jsx("button",{type:"submit",className:"button primary",children:"Login"}),c?b.jsxs(cn,{className:"w-full border border-blue-500",children:[b.jsx("p",{children:"If this is your first login, the default credentials are:"}),b.jsxs("ul",{className:"mt-2",children:[b.jsxs("li",{children:["Username: ",b.jsx("strong",{children:"admin"})]}),b.jsxs("li",{children:["Password: ",b.jsx("strong",{children:"admin"})]})]}),b.jsx("p",{className:"mt-2",children:"Please make sure to change the default password to a secure one."})]}):b.jsx("button",{className:"button tertiary",onClick:()=>f(!0),children:"First login?"})]})})})},$M=()=>{const e=Wn(),{pathname:n}=nn(),{data:i,isLoading:l}=rx();k.useEffect(()=>{!i&&!l&&n!==rt.login.path&&e(rt.login.path)},[i,l,e,n])};function YM(){return R_(),ZR(),$M(),b.jsxs(b.Fragment,{children:[b.jsxs(YC,{children:[b.jsx(Bu,{path:rt.home.path,element:b.jsx(UA,{})}),b.jsx(Bu,{path:rt.workbench.path,element:b.jsx(ER,{})}),b.jsx(Bu,{path:rt.login.path,element:b.jsx(VM,{})})]}),b.jsx(kR,{}),b.jsx(ZA,{}),b.jsx(sT,{}),b.jsx(xT,{}),b.jsx(qR,{}),b.jsx(XR,{}),b.jsx(MM,{}),b.jsx(UM,{}),b.jsx(IM,{}),b.jsx(mT,{}),b.jsx(cT,{})]})}const KM="_desktop-layout_187ca_2",GM="_mobile-layout_187ca_2",XM="_nav_187ca_2",ZM="_main_187ca_2",JM="_header_187ca_2",Ea={desktopLayout:KM,mobileLayout:GM,nav:XM,main:ZM,header:JM},WM="_container_eyzr9_2",e9="_menu_eyzr9_2",gc={container:WM,menu:e9},t9=({name:e,id:n,onRename:i,onDelete:l,onOpen:s})=>{const o=cx();return b.jsxs("button",{className:gc.menu,onContextMenu:o.open,onClick:()=>s(n),children:[b.jsx(fx,{handler:o,children:b.jsxs("div",{className:"context-menu-container",children:[b.jsx("button",{onClick:c=>{c.preventDefault(),c.stopPropagation(),o.close(),i(n)},className:"context-menu-item",children:"✏️ Rename"}),b.jsx("button",{onClick:c=>{c.preventDefault(),c.stopPropagation(),o.close(),l(n)},className:"context-menu-item",children:"🗑️ Delete"})]})}),b.jsxs("span",{children:["📖 ",e]})]})},n9=({dataSource:e,index:n})=>{const i=()=>{xa(e.id)};return Jn(n.toString(),()=>{xa(l=>{if(l!==e.id)return e.id})},e.name),b.jsxs("button",{className:gc.menu,onClick:i,children:[b.jsx(Mp,{size:20,type:e.dbType}),b.jsx("p",{className:"truncate flex-1 text-left mx-1.5",children:e.name}),b.jsx("span",{className:"hotkey",children:n})]})},r9=()=>{const e=Wn(),n=nn(),{data:i}=jr(),{data:l}=Ak(i==null?void 0:i.teamId),{data:s}=Tk(i==null?void 0:i.teamId),o=Nc(),c=P_(),f=y=>{ax(y).then(x=>{xl(x.name,Xs(x.opts),!0),n.pathname!==rt.workbench.path&&e(rt.workbench.path)})},h=async y=>{const x=s==null?void 0:s.find(w=>w.id===y),v=await kl("New name?",x==null?void 0:x.name);v&&c.mutate({id:y,payload:{name:v}})},d=y=>{c.mutate({id:y,payload:{isTrash:!0}})},m=y=>{Op(y),n.pathname!==rt.workbench.path&&e(rt.workbench.path)};return b.jsx("div",{className:gc.container,children:b.jsxs("div",{className:"flex-1 overflow-y-auto",children:[Fi(l==null?void 0:l.length,0)&&b.jsxs("div",{className:"mt-4",children:[b.jsx("p",{className:"font-semibold text-sm text-gray-600 mb-2",children:"DATA SOURCES"}),l.map((y,x)=>b.jsx(n9,{dataSource:y,index:x+1},y.id))]}),Fi(s==null?void 0:s.length,0)&&b.jsxs("div",{className:"mt-4",children:[b.jsx("p",{className:"font-semibold text-sm text-gray-600 mb-2",children:"SAVED QUERIES"}),s.map(y=>b.jsx(t9,{onDelete:d,onRename:h,onOpen:f,name:y.name,id:y.id},y.id))]}),Fi(o==null?void 0:o.length,0)&&b.jsxs("div",{className:"mt-4",children:[b.jsx("p",{className:"font-semibold text-sm text-gray-600 mb-2",children:"WORKBENCH TABS"}),o==null?void 0:o.map(y=>b.jsxs("button",{className:gc.menu,onClick:()=>m(y.id),children:["📄 ",y.label]},y.id))]})]})})},i9=()=>{const e=Wn(),{pathname:n}=nn(),{data:i}=jr(),l=()=>{jx(),n!==rt.home.path&&e(rt.home.path)};return b.jsxs("nav",{className:Ea.nav,children:[i&&b.jsxs("div",{className:Ea.header,children:[b.jsx("button",{onClick:l,children:"🏠 Home"}),b.jsxs("button",{onClick:Uw,children:["🪪 ",i.username]}),b.jsx("button",{onClick:qw,children:"👥 Manage users"})]}),b.jsx(r9,{})]})},l9="_root_xc78y_2",a9={root:l9},s9=()=>{const{pathname:e}=nn(),n=Wn(),i=oo("Mobile home workbench"),l=Nc(),s=()=>{e!==rt.home.path&&n(rt.home.path)},o=()=>{l.length<1?i():e!==rt.workbench.path&&n(rt.workbench.path)};return b.jsxs("div",{className:a9.root,children:[b.jsxs("button",{onClick:s,children:[b.jsx("p",{children:"🏠"}),b.jsx("p",{className:"text-xs font-semibold text-gray-600",children:"Home"})]}),b.jsxs("button",{onClick:o,children:[b.jsx("p",{children:"🛠️"}),b.jsx("p",{className:"text-xs font-semibold text-gray-600",children:"Workbench"})]}),b.jsxs("button",{onClick:Uw,children:[b.jsx("p",{children:"🪪"}),b.jsx("p",{className:"text-xs font-semibold text-gray-600",children:"Account"})]}),b.jsxs("button",{onClick:qw,children:[b.jsx("p",{children:"👥"}),b.jsx("p",{className:"text-xs font-semibold text-gray-600",children:"Users"})]})]})},o9=({children:e,isLogin:n})=>b.jsxs("div",{className:Ea.desktopLayout,children:[b.jsx(Kp,{id:"default",className:"z-100"}),!n&&b.jsx(i9,{}),b.jsx("main",{className:Ea.main,children:e})]}),u9=({children:e,isLogin:n})=>b.jsxs("div",{className:Ea.mobileLayout,children:[b.jsx("main",{className:Ea.main,children:e}),!n&&b.jsx(s9,{})]}),c9=({children:e})=>{const n=Hp(Oc.laptop),{pathname:i}=nn(),l=i===rt.login.path;return n?b.jsx(o9,{isLogin:l,children:e}):b.jsx(u9,{isLogin:l,children:e})};tC.createRoot(document.getElementById("root")).render(b.jsxs(nt.StrictMode,{children:[b.jsx(Ck,{}),b.jsx(ZE,{client:mt,children:b.jsx(yE,{children:b.jsx(c9,{children:b.jsx(YM,{})})})})]}));