@dataramen/cli 0.0.24 → 0.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,310 @@
1
+ (function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))l(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&l(c)}).observe(document,{childList:!0,subtree:!0});function i(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function l(o){if(o.ep)return;o.ep=!0;const s=i(o);fetch(o.href,s)}})();function ba(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Nd={exports:{}},Ao={};/**
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 C0;function b2(){if(C0)return Ao;C0=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function i(l,o,s){var c=null;if(s!==void 0&&(c=""+s),o.key!==void 0&&(c=""+o.key),"key"in o){s={};for(var f in o)f!=="key"&&(s[f]=o[f])}else s=o;return o=s.ref,{$$typeof:e,type:l,key:c,ref:o!==void 0?o:null,props:s}}return Ao.Fragment=n,Ao.jsx=i,Ao.jsxs=i,Ao}var E0;function x2(){return E0||(E0=1,Nd.exports=b2()),Nd.exports}var v=x2(),jd={exports:{}},Ae={};/**
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 w2(){if(k0)return Ae;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"),o=Symbol.for("react.profiler"),s=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"),y=Symbol.for("react.lazy"),g=Symbol.iterator;function x(C){return C===null||typeof C!="object"?null:(C=g&&C[g]||C["@@iterator"],typeof C=="function"?C:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,T={};function _(C,I,oe){this.props=C,this.context=I,this.refs=T,this.updater=oe||b}_.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 A(){}A.prototype=_.prototype;function N(C,I,oe){this.props=C,this.context=I,this.refs=T,this.updater=oe||b}var O=N.prototype=new A;O.constructor=N,w(O,_.prototype),O.isPureReactComponent=!0;var z=Array.isArray,q={H:null,A:null,T:null,S:null,V:null},M=Object.prototype.hasOwnProperty;function Y(C,I,oe,R,fe,ke){return oe=ke.ref,{$$typeof:e,type:C,key:I,ref:oe!==void 0?oe:null,props:ke}}function ee(C,I){return Y(C.type,I,void 0,void 0,void 0,C.props)}function ie(C){return typeof C=="object"&&C!==null&&C.$$typeof===e}function L(C){var I={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(oe){return I[oe]})}var ae=/\/+/g;function te(C,I){return typeof C=="object"&&C!==null&&C.key!=null?L(""+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 se(C,I,oe,R,fe){var ke=typeof C;(ke==="undefined"||ke==="boolean")&&(C=null);var ce=!1;if(C===null)ce=!0;else switch(ke){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(C.$$typeof){case e:case n:ce=!0;break;case y:return ce=C._init,se(ce(C._payload),I,oe,R,fe)}}if(ce)return fe=fe(C),ce=R===""?"."+te(C,0):R,z(fe)?(oe="",ce!=null&&(oe=ce.replace(ae,"$&/")+"/"),se(fe,I,oe,"",function(Ie){return Ie})):fe!=null&&(ie(fe)&&(fe=ee(fe,oe+(fe.key==null||C&&C.key===fe.key?"":(""+fe.key).replace(ae,"$&/")+"/")+ce)),I.push(fe)),1;ce=0;var st=R===""?".":R+":";if(z(C))for(var Oe=0;Oe<C.length;Oe++)R=C[Oe],ke=st+te(R,Oe),ce+=se(R,I,oe,ke,fe);else if(Oe=x(C),typeof Oe=="function")for(C=Oe.call(C),Oe=0;!(R=C.next()).done;)R=R.value,ke=st+te(R,Oe++),ce+=se(R,I,oe,ke,fe);else if(ke==="object"){if(typeof C.then=="function")return se(J(C),I,oe,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,oe){if(C==null)return C;var R=[],fe=0;return se(C,R,"","",function(ke){return I.call(oe,ke,fe++)}),R}function X(C){if(C._status===-1){var I=C._result;I=I(),I.then(function(oe){(C._status===0||C._status===-1)&&(C._status=1,C._result=oe)},function(oe){(C._status===0||C._status===-1)&&(C._status=2,C._result=oe)}),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 Ae.Children={map:B,forEach:function(C,I,oe){B(C,function(){I.apply(this,arguments)},oe)},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}},Ae.Component=_,Ae.Fragment=i,Ae.Profiler=o,Ae.PureComponent=N,Ae.StrictMode=l,Ae.Suspense=h,Ae.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,Ae.__COMPILER_RUNTIME={__proto__:null,c:function(C){return q.H.useMemoCache(C)}},Ae.cache=function(C){return function(){return C.apply(null,arguments)}},Ae.cloneElement=function(C,I,oe){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var R=w({},C.props),fe=C.key,ke=void 0;if(I!=null)for(ce in I.ref!==void 0&&(ke=void 0),I.key!==void 0&&(fe=""+I.key),I)!M.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=oe;else if(1<ce){for(var st=Array(ce),Oe=0;Oe<ce;Oe++)st[Oe]=arguments[Oe+2];R.children=st}return Y(C.type,fe,void 0,void 0,ke,R)},Ae.createContext=function(C){return C={$$typeof:c,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:s,_context:C},C},Ae.createElement=function(C,I,oe){var R,fe={},ke=null;if(I!=null)for(R in I.key!==void 0&&(ke=""+I.key),I)M.call(I,R)&&R!=="key"&&R!=="__self"&&R!=="__source"&&(fe[R]=I[R]);var ce=arguments.length-2;if(ce===1)fe.children=oe;else if(1<ce){for(var st=Array(ce),Oe=0;Oe<ce;Oe++)st[Oe]=arguments[Oe+2];fe.children=st}if(C&&C.defaultProps)for(R in ce=C.defaultProps,ce)fe[R]===void 0&&(fe[R]=ce[R]);return Y(C,ke,void 0,void 0,null,fe)},Ae.createRef=function(){return{current:null}},Ae.forwardRef=function(C){return{$$typeof:f,render:C}},Ae.isValidElement=ie,Ae.lazy=function(C){return{$$typeof:y,_payload:{_status:-1,_result:C},_init:X}},Ae.memo=function(C,I){return{$$typeof:d,type:C,compare:I===void 0?null:I}},Ae.startTransition=function(C){var I=q.T,oe={};q.T=oe;try{var R=C(),fe=q.S;fe!==null&&fe(oe,R),typeof R=="object"&&R!==null&&typeof R.then=="function"&&R.then(pe,ne)}catch(ke){ne(ke)}finally{q.T=I}},Ae.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},Ae.use=function(C){return q.H.use(C)},Ae.useActionState=function(C,I,oe){return q.H.useActionState(C,I,oe)},Ae.useCallback=function(C,I){return q.H.useCallback(C,I)},Ae.useContext=function(C){return q.H.useContext(C)},Ae.useDebugValue=function(){},Ae.useDeferredValue=function(C,I){return q.H.useDeferredValue(C,I)},Ae.useEffect=function(C,I,oe){var R=q.H;if(typeof oe=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return R.useEffect(C,I)},Ae.useId=function(){return q.H.useId()},Ae.useImperativeHandle=function(C,I,oe){return q.H.useImperativeHandle(C,I,oe)},Ae.useInsertionEffect=function(C,I){return q.H.useInsertionEffect(C,I)},Ae.useLayoutEffect=function(C,I){return q.H.useLayoutEffect(C,I)},Ae.useMemo=function(C,I){return q.H.useMemo(C,I)},Ae.useOptimistic=function(C,I){return q.H.useOptimistic(C,I)},Ae.useReducer=function(C,I,oe){return q.H.useReducer(C,I,oe)},Ae.useRef=function(C){return q.H.useRef(C)},Ae.useState=function(C){return q.H.useState(C)},Ae.useSyncExternalStore=function(C,I,oe){return q.H.useSyncExternalStore(C,I,oe)},Ae.useTransition=function(){return q.H.useTransition()},Ae.version="19.1.0",Ae}var T0;function Zh(){return T0||(T0=1,jd.exports=w2()),jd.exports}var E=Zh();const tt=ba(E);var Dd={exports:{}},_o={},Md={exports:{}},zd={};/**
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 A0;function S2(){return A0||(A0=1,function(e){function n(B,X){var ne=B.length;B.push(X);e:for(;0<ne;){var pe=ne-1>>>1,C=B[pe];if(0<o(C,X))B[pe]=X,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 X=B[0],ne=B.pop();if(ne!==X){B[0]=ne;e:for(var pe=0,C=B.length,I=C>>>1;pe<I;){var oe=2*(pe+1)-1,R=B[oe],fe=oe+1,ke=B[fe];if(0>o(R,ne))fe<C&&0>o(ke,R)?(B[pe]=ke,B[fe]=ne,pe=fe):(B[pe]=R,B[oe]=ne,pe=oe);else if(fe<C&&0>o(ke,ne))B[pe]=ke,B[fe]=ne,pe=fe;else break e}}return X}function o(B,X){var ne=B.sortIndex-X.sortIndex;return ne!==0?ne:B.id-X.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var h=[],d=[],y=1,g=null,x=3,b=!1,w=!1,T=!1,_=!1,A=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function z(B){for(var X=i(d);X!==null;){if(X.callback===null)l(d);else if(X.startTime<=B)l(d),X.sortIndex=X.expirationTime,n(h,X);else break;X=i(d)}}function q(B){if(T=!1,z(B),!w)if(i(h)!==null)w=!0,M||(M=!0,te());else{var X=i(d);X!==null&&se(q,X.startTime-B)}}var M=!1,Y=-1,ee=5,ie=-1;function L(){return _?!0:!(e.unstable_now()-ie<ee)}function ae(){if(_=!1,M){var B=e.unstable_now();ie=B;var X=!0;try{e:{w=!1,T&&(T=!1,N(Y),Y=-1),b=!0;var ne=x;try{t:{for(z(B),g=i(h);g!==null&&!(g.expirationTime>B&&L());){var pe=g.callback;if(typeof pe=="function"){g.callback=null,x=g.priorityLevel;var C=pe(g.expirationTime<=B);if(B=e.unstable_now(),typeof C=="function"){g.callback=C,z(B),X=!0;break t}g===i(h)&&l(h),z(B)}else l(h);g=i(h)}if(g!==null)X=!0;else{var I=i(d);I!==null&&se(q,I.startTime-B),X=!1}}break e}finally{g=null,x=ne,b=!1}X=void 0}}finally{X?te():M=!1}}}var te;if(typeof O=="function")te=function(){O(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(){A(ae,0)};function se(B,X){Y=A(function(){B(e.unstable_now())},X)}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 X=3;break;default:X=x}var ne=x;x=X;try{return B()}finally{x=ne}},e.unstable_requestPaint=function(){_=!0},e.unstable_runWithPriority=function(B,X){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var ne=x;x=B;try{return X()}finally{x=ne}},e.unstable_scheduleCallback=function(B,X,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:y++,callback:X,priorityLevel:B,startTime:ne,expirationTime:C,sortIndex:-1},ne>pe?(B.sortIndex=ne,n(d,B),i(h)===null&&B===i(d)&&(T?(N(Y),Y=-1):T=!0,se(q,ne-pe))):(B.sortIndex=C,n(h,B),w||b||(w=!0,M||(M=!0,te()))),B},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(B){var X=x;return function(){var ne=x;x=X;try{return B.apply(this,arguments)}finally{x=ne}}}}(zd)),zd}var _0;function C2(){return _0||(_0=1,Md.exports=S2()),Md.exports}var Ld={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 O0;function E2(){if(O0)return Jt;O0=1;var e=Zh();function n(h){var d="https://react.dev/errors/"+h;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)d+="&args[]="+encodeURIComponent(arguments[y])}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},o=Symbol.for("react.portal");function s(h,d,y){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:g==null?null:""+g,children:h,containerInfo:d,implementation:y}}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 y=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 s(h,d,null,y)},Jt.flushSync=function(h){var d=c.T,y=l.p;try{if(c.T=null,l.p=2,h)return h()}finally{c.T=d,l.p=y,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 y=d.as,g=f(y,d.crossOrigin),x=typeof d.integrity=="string"?d.integrity:void 0,b=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;y==="style"?l.d.S(h,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:g,integrity:x,fetchPriority:b}):y==="script"&&l.d.X(h,{crossOrigin:g,integrity:x,fetchPriority:b,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 y=f(d.as,d.crossOrigin);l.d.M(h,{crossOrigin:y,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 y=d.as,g=f(y,d.crossOrigin);l.d.L(h,y,{crossOrigin:g,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 y=f(d.as,d.crossOrigin);l.d.m(h,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:y,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,y){return c.H.useFormState(h,d,y)},Jt.useFormStatus=function(){return c.H.useHostTransitionStatus()},Jt.version="19.1.0",Jt}var R0;function wv(){if(R0)return Ld.exports;R0=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(),Ld.exports=E2(),Ld.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 N0;function k2(){if(N0)return _o;N0=1;var e=C2(),n=Zh(),i=wv();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 o(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function s(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(s(t)!==t)throw Error(l(188))}function h(t){var r=t.alternate;if(!r){if(r=s(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 m=p.alternate;if(m===null){if(u=p.return,u!==null){a=u;continue}break}if(p.child===m.child){for(m=p.child;m;){if(m===a)return f(p),t;if(m===u)return f(p),r;m=m.sibling}throw Error(l(188))}if(a.return!==u.return)a=p,u=m;else{for(var S=!1,k=p.child;k;){if(k===a){S=!0,a=p,u=m;break}if(k===u){S=!0,u=p,a=m;break}k=k.sibling}if(!S){for(k=m.child;k;){if(k===a){S=!0,a=m,u=p;break}if(k===u){S=!0,u=m,a=p;break}k=k.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 y=Object.assign,g=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),N=Symbol.for("react.consumer"),O=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),ie=Symbol.for("react.activity"),L=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 q:return"Suspense";case M:return"SuspenseList";case ie:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case b:return"Portal";case O:return(t.displayName||"Context")+".Provider";case N:return(t._context.displayName||"Context")+".Consumer";case z:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Y: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 se=Array.isArray,B=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=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 oe(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),ke=I(null),ce=I(null),st=I(null);function Oe(t,r){switch(R(ce,r),R(ke,t),R(fe,null),r.nodeType){case 9:case 11:t=(t=r.documentElement)&&(t=t.namespaceURI)?Zg(t):0;break;default:if(t=r.tagName,r=r.namespaceURI)r=Zg(r),t=Jg(r,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}oe(fe),R(fe,t)}function Ie(){oe(fe),oe(ke),oe(ce)}function Ft(t){t.memoizedState!==null&&R(st,t);var r=fe.current,a=Jg(r,t.type);r!==a&&(R(ke,t),R(fe,a))}function bt(t){ke.current===t&&(oe(fe),oe(ke)),st.current===t&&(oe(st),So._currentValue=ne)}var un=Object.prototype.hasOwnProperty,Xn=e.unstable_scheduleCallback,cn=e.unstable_cancelCallback,ni=e.unstable_shouldYield,Dt=e.unstable_requestPaint,Mt=e.unstable_now,Zn=e.unstable_getCurrentPriorityLevel,xn=e.unstable_ImmediatePriority,Ke=e.unstable_UserBlockingPriority,Dn=e.unstable_NormalPriority,Ar=e.unstable_LowPriority,or=e.unstable_IdlePriority,_r=e.log,ri=e.unstable_setDisableYieldValue,$=null,W=null;function me(t){if(typeof _r=="function"&&ri(t),W&&typeof W.setStrictMode=="function")try{W.setStrictMode($,t)}catch{}}var ye=Math.clz32?Math.clz32:Yt,Ue=Math.log,Qt=Math.LN2;function Yt(t){return t>>>=0,t===0?32:31-(Ue(t)/Qt|0)|0}var ht=256,pt=4194304;function qe(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 ut(t,r,a){var u=t.pendingLanes;if(u===0)return 0;var p=0,m=t.suspendedLanes,S=t.pingedLanes;t=t.warmLanes;var k=u&134217727;return k!==0?(u=k&~m,u!==0?p=qe(u):(S&=k,S!==0?p=qe(S):a||(a=k&~t,a!==0&&(p=qe(a))))):(k=u&~m,k!==0?p=qe(k):S!==0?p=qe(S):a||(a=u&~t,a!==0&&(p=qe(a)))),p===0?0:r!==0&&r!==p&&(r&m)===0&&(m=p&-p,a=r&-r,m>=a||m===32&&(a&4194048)!==0)?r:p}function zt(t,r){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&r)===0}function Lt(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 ii(){var t=ht;return ht<<=1,(ht&4194048)===0&&(ht=256),t}function Or(){var t=pt;return pt<<=1,(pt&62914560)===0&&(pt=4194304),t}function sr(t){for(var r=[],a=0;31>a;a++)r.push(t);return r}function Mn(t,r){t.pendingLanes|=r,r!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Hi(t,r,a,u,p,m){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 k=t.entanglements,j=t.expirationTimes,F=t.hiddenUpdates;for(a=S&~a;0<a;){var K=31-ye(a),Z=1<<K;k[K]=0,j[K]=-1;var Q=F[K];if(Q!==null)for(F[K]=null,K=0;K<Q.length;K++){var P=Q[K];P!==null&&(P.lane&=-536870913)}a&=~Z}u!==0&&Fi(t,u,0),m!==0&&p===0&&t.tag!==0&&(t.suspendedLanes|=m&~(S&~r))}function Fi(t,r,a){t.pendingLanes|=r,t.suspendedLanes&=~r;var u=31-ye(r);t.entangledLanes|=r,t.entanglements[u]=t.entanglements[u]|1073741824|a&4194090}function xt(t,r){var a=t.entangledLanes|=r;for(t=t.entanglements;a;){var u=31-ye(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 be(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function De(){var t=X.p;return t!==0?t:(t=window.event,t===void 0?32:g0(t.type))}function ln(t,r){var a=X.p;try{return X.p=t,r()}finally{X.p=a}}var Gt=Math.random().toString(36).slice(2),le="__reactFiber$"+Gt,he="__reactProps$"+Gt,Se="__reactContainer$"+Gt,ct="__reactEvents$"+Gt,Ut="__reactListeners$"+Gt,zn="__reactHandles$"+Gt,wn="__reactResources$"+Gt,wt="__reactMarker$"+Gt;function Xt(t){delete t[le],delete t[he],delete t[ct],delete t[Ut],delete t[zn]}function Ve(t){var r=t[le];if(r)return r;for(var a=t.parentNode;a;){if(r=a[Se]||a[le]){if(a=r.alternate,r.child!==null||a!==null&&a.child!==null)for(t=n0(t);t!==null;){if(a=t[le])return a;t=n0(t)}return r}t=a,a=t.parentNode}return null}function Sn(t){if(t=t[le]||t[Se]){var r=t.tag;if(r===5||r===6||r===13||r===26||r===27||r===3)return t}return null}function Qi(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t.stateNode;throw Error(l(33))}function li(t){var r=t[wn];return r||(r=t[wn]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function St(t){t[wt]=!0}var ja=new Set,Da={};function ur(t,r){Rr(t,r),Rr(t+"Capture",r)}function Rr(t,r){for(Da[t]=r,t=0;t<r.length;t++)ja.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]*$"),Ln={},wl={};function Pi(t){return un.call(wl,t)?!0:un.call(Ln,t)?!1:$e.test(t)?wl[t]=!0:(Ln[t]=!0,!1)}function Sl(t,r,a){if(Pi(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 ai(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 Nr(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 Ec,Ip;function Cl(t){if(Ec===void 0)try{throw Error()}catch(a){var r=a.stack.trim().match(/\n( *(at )?)/);Ec=r&&r[1]||"",Ip=-1<a.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Ec+t+Ip}var kc=!1;function Tc(t,r){if(!t||kc)return"";kc=!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(P){var Q=P}Reflect.construct(t,[],Z)}else{try{Z.call()}catch(P){Q=P}t.call(Z.prototype)}}else{try{throw Error()}catch(P){Q=P}(Z=t())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(P){if(P&&Q&&typeof P.stack=="string")return[P.stack,Q.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 m=u.DetermineComponentFrameRoot(),S=m[0],k=m[1];if(S&&k){var j=S.split(`
44
+ `),F=k.split(`
45
+ `);for(p=u=0;u<j.length&&!j[u].includes("DetermineComponentFrameRoot");)u++;for(;p<F.length&&!F[p].includes("DetermineComponentFrameRoot");)p++;if(u===j.length||p===F.length)for(u=j.length-1,p=F.length-1;1<=u&&0<=p&&j[u]!==F[p];)p--;for(;1<=u&&0<=p;u--,p--)if(j[u]!==F[p]){if(u!==1||p!==1)do if(u--,p--,0>p||j[u]!==F[p]){var K=`
46
+ `+j[u].replace(" at new "," at ");return t.displayName&&K.includes("<anonymous>")&&(K=K.replace("<anonymous>",t.displayName)),K}while(1<=u&&0<=p);break}}}finally{kc=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?Cl(a):""}function hw(t){switch(t.tag){case 26:case 27:case 5:return Cl(t.type);case 16:return Cl("Lazy");case 13:return Cl("Suspense");case 19:return Cl("SuspenseList");case 0:case 15:return Tc(t.type,!1);case 11:return Tc(t.type.render,!1);case 1:return Tc(t.type,!0);case 31:return Cl("Activity");default:return""}}function Vp(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 Un(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function $p(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function pw(t){var r=$p(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,m=a.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return p.call(this)},set:function(S){u=""+S,m.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 cs(t){t._valueTracker||(t._valueTracker=pw(t))}function Yp(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var a=r.getValue(),u="";return t&&(u=$p(t)?t.checked?"true":"false":t.value),t=u,t!==a?(r.setValue(t),!0):!1}function fs(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 mw=/[\n"\\]/g;function Bn(t){return t.replace(mw,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function Ac(t,r,a,u,p,m,S,k){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=""+Un(r)):t.value!==""+Un(r)&&(t.value=""+Un(r)):S!=="submit"&&S!=="reset"||t.removeAttribute("value"),r!=null?_c(t,S,Un(r)):a!=null?_c(t,S,Un(a)):u!=null&&t.removeAttribute("value"),p==null&&m!=null&&(t.defaultChecked=!!m),p!=null&&(t.checked=p&&typeof p!="function"&&typeof p!="symbol"),k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?t.name=""+Un(k):t.removeAttribute("name")}function Kp(t,r,a,u,p,m,S,k){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(t.type=m),r!=null||a!=null){if(!(m!=="submit"&&m!=="reset"||r!=null))return;a=a!=null?""+Un(a):"",r=r!=null?""+Un(r):a,k||r===t.value||(t.value=r),t.defaultValue=r}u=u??p,u=typeof u!="function"&&typeof u!="symbol"&&!!u,t.checked=k?t.checked:!!u,t.defaultChecked=!!u,S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(t.name=S)}function _c(t,r,a){r==="number"&&fs(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function El(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=""+Un(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 Gp(t,r,a){if(r!=null&&(r=""+Un(r),r!==t.value&&(t.value=r),a==null)){t.defaultValue!==r&&(t.defaultValue=r);return}t.defaultValue=a!=null?""+Un(a):""}function Xp(t,r,a,u){if(r==null){if(u!=null){if(a!=null)throw Error(l(92));if(se(u)){if(1<u.length)throw Error(l(93));u=u[0]}a=u}a==null&&(a=""),r=a}a=Un(r),t.defaultValue=a,u=t.textContent,u===a&&u!==""&&u!==null&&(t.value=u)}function kl(t,r){if(r){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=r;return}}t.textContent=r}var yw=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 Zp(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||yw.has(r)?r==="float"?t.cssFloat=a:t[r]=(""+a).trim():t[r]=a+"px"}function Jp(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&&Zp(t,p,u)}else for(var m in r)r.hasOwnProperty(m)&&Zp(t,m,r[m])}function Oc(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 gw=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 ds(t){return vw.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var Rc=null;function Nc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Tl=null,Al=null;function Wp(t){var r=Sn(t);if(r&&(t=r.stateNode)){var a=t[he]||null;e:switch(t=r.stateNode,r.type){case"input":if(Ac(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="'+Bn(""+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));Ac(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&&Yp(u)}break e;case"textarea":Gp(t,a.value,a.defaultValue);break e;case"select":r=a.value,r!=null&&El(t,!!a.multiple,r,!1)}}}var jc=!1;function em(t,r,a){if(jc)return t(r,a);jc=!0;try{var u=t(r);return u}finally{if(jc=!1,(Tl!==null||Al!==null)&&(Zs(),Tl&&(r=Tl,t=Al,Al=Tl=null,Wp(r),t)))for(r=0;r<t.length;r++)Wp(t[r])}}function Ma(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 jr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Dc=!1;if(jr)try{var za={};Object.defineProperty(za,"passive",{get:function(){Dc=!0}}),window.addEventListener("test",za,za),window.removeEventListener("test",za,za)}catch{Dc=!1}var oi=null,Mc=null,hs=null;function tm(){if(hs)return hs;var t,r=Mc,a=r.length,u,p="value"in oi?oi.value:oi.textContent,m=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[m-u];u++);return hs=p.slice(t,1<u?1-u:void 0)}function ps(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 ms(){return!0}function nm(){return!1}function fn(t){function r(a,u,p,m,S){this._reactName=a,this._targetInst=p,this.type=u,this.nativeEvent=m,this.target=S,this.currentTarget=null;for(var k in t)t.hasOwnProperty(k)&&(a=t[k],this[k]=a?a(m):m[k]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?ms:nm,this.isPropagationStopped=nm,this}return y(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=ms)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ms)},persist:function(){},isPersistent:ms}),r}var Ii={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ys=fn(Ii),La=y({},Ii,{view:0,detail:0}),bw=fn(La),zc,Lc,Ua,gs=y({},La,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bc,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!==Ua&&(Ua&&t.type==="mousemove"?(zc=t.screenX-Ua.screenX,Lc=t.screenY-Ua.screenY):Lc=zc=0,Ua=t),zc)},movementY:function(t){return"movementY"in t?t.movementY:Lc}}),rm=fn(gs),xw=y({},gs,{dataTransfer:0}),ww=fn(xw),Sw=y({},La,{relatedTarget:0}),Uc=fn(Sw),Cw=y({},Ii,{animationName:0,elapsedTime:0,pseudoElement:0}),Ew=fn(Cw),kw=y({},Ii,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Tw=fn(kw),Aw=y({},Ii,{data:0}),im=fn(Aw),_w={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ow={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"},Rw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Nw(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=Rw[t])?!!r[t]:!1}function Bc(){return Nw}var jw=y({},La,{key:function(t){if(t.key){var r=_w[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=ps(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Ow[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bc,charCode:function(t){return t.type==="keypress"?ps(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ps(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Dw=fn(jw),Mw=y({},gs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),lm=fn(Mw),zw=y({},La,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bc}),Lw=fn(zw),Uw=y({},Ii,{propertyName:0,elapsedTime:0,pseudoElement:0}),Bw=fn(Uw),qw=y({},gs,{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}),Hw=fn(qw),Fw=y({},Ii,{newState:0,oldState:0}),Qw=fn(Fw),Pw=[9,13,27,32],qc=jr&&"CompositionEvent"in window,Ba=null;jr&&"documentMode"in document&&(Ba=document.documentMode);var Iw=jr&&"TextEvent"in window&&!Ba,am=jr&&(!qc||Ba&&8<Ba&&11>=Ba),om=" ",sm=!1;function um(t,r){switch(t){case"keyup":return Pw.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cm(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var _l=!1;function Vw(t,r){switch(t){case"compositionend":return cm(r);case"keypress":return r.which!==32?null:(sm=!0,om);case"textInput":return t=r.data,t===om&&sm?null:t;default:return null}}function $w(t,r){if(_l)return t==="compositionend"||!qc&&um(t,r)?(t=tm(),hs=Mc=oi=null,_l=!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 am&&r.locale!=="ko"?null:r.data;default:return null}}var Yw={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 fm(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!Yw[t.type]:r==="textarea"}function dm(t,r,a,u){Tl?Al?Al.push(u):Al=[u]:Tl=u,r=ru(r,"onChange"),0<r.length&&(a=new ys("onChange","change",null,a,u),t.push({event:a,listeners:r}))}var qa=null,Ha=null;function Kw(t){$g(t,0)}function vs(t){var r=Qi(t);if(Yp(r))return t}function hm(t,r){if(t==="change")return r}var pm=!1;if(jr){var Hc;if(jr){var Fc="oninput"in document;if(!Fc){var mm=document.createElement("div");mm.setAttribute("oninput","return;"),Fc=typeof mm.oninput=="function"}Hc=Fc}else Hc=!1;pm=Hc&&(!document.documentMode||9<document.documentMode)}function ym(){qa&&(qa.detachEvent("onpropertychange",gm),Ha=qa=null)}function gm(t){if(t.propertyName==="value"&&vs(Ha)){var r=[];dm(r,Ha,t,Nc(t)),em(Kw,r)}}function Gw(t,r,a){t==="focusin"?(ym(),qa=r,Ha=a,qa.attachEvent("onpropertychange",gm)):t==="focusout"&&ym()}function Xw(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return vs(Ha)}function Zw(t,r){if(t==="click")return vs(r)}function Jw(t,r){if(t==="input"||t==="change")return vs(r)}function Ww(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var Cn=typeof Object.is=="function"?Object.is:Ww;function Fa(t,r){if(Cn(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(!un.call(r,p)||!Cn(t[p],r[p]))return!1}return!0}function vm(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function bm(t,r){var a=vm(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=vm(a)}}function xm(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?xm(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function wm(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var r=fs(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=fs(t.document)}return r}function Qc(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 eS=jr&&"documentMode"in document&&11>=document.documentMode,Ol=null,Pc=null,Qa=null,Ic=!1;function Sm(t,r,a){var u=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Ic||Ol==null||Ol!==fs(u)||(u=Ol,"selectionStart"in u&&Qc(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}),Qa&&Fa(Qa,u)||(Qa=u,u=ru(Pc,"onSelect"),0<u.length&&(r=new ys("onSelect","select",null,r,a),t.push({event:r,listeners:u}),r.target=Ol)))}function Vi(t,r){var a={};return a[t.toLowerCase()]=r.toLowerCase(),a["Webkit"+t]="webkit"+r,a["Moz"+t]="moz"+r,a}var Rl={animationend:Vi("Animation","AnimationEnd"),animationiteration:Vi("Animation","AnimationIteration"),animationstart:Vi("Animation","AnimationStart"),transitionrun:Vi("Transition","TransitionRun"),transitionstart:Vi("Transition","TransitionStart"),transitioncancel:Vi("Transition","TransitionCancel"),transitionend:Vi("Transition","TransitionEnd")},Vc={},Cm={};jr&&(Cm=document.createElement("div").style,"AnimationEvent"in window||(delete Rl.animationend.animation,delete Rl.animationiteration.animation,delete Rl.animationstart.animation),"TransitionEvent"in window||delete Rl.transitionend.transition);function $i(t){if(Vc[t])return Vc[t];if(!Rl[t])return t;var r=Rl[t],a;for(a in r)if(r.hasOwnProperty(a)&&a in Cm)return Vc[t]=r[a];return t}var Em=$i("animationend"),km=$i("animationiteration"),Tm=$i("animationstart"),tS=$i("transitionrun"),nS=$i("transitionstart"),rS=$i("transitioncancel"),Am=$i("transitionend"),_m=new Map,$c="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(" ");$c.push("scrollEnd");function Jn(t,r){_m.set(t,r),ur(r,[t])}var Om=new WeakMap;function qn(t,r){if(typeof t=="object"&&t!==null){var a=Om.get(t);return a!==void 0?a:(r={value:t,source:r,stack:Vp(r)},Om.set(t,r),r)}return{value:t,source:r,stack:Vp(r)}}var Hn=[],Nl=0,Yc=0;function bs(){for(var t=Nl,r=Yc=Nl=0;r<t;){var a=Hn[r];Hn[r++]=null;var u=Hn[r];Hn[r++]=null;var p=Hn[r];Hn[r++]=null;var m=Hn[r];if(Hn[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}m!==0&&Rm(a,p,m)}}function xs(t,r,a,u){Hn[Nl++]=t,Hn[Nl++]=r,Hn[Nl++]=a,Hn[Nl++]=u,Yc|=u,t.lanes|=u,t=t.alternate,t!==null&&(t.lanes|=u)}function Kc(t,r,a,u){return xs(t,r,a,u),ws(t)}function jl(t,r){return xs(t,null,null,r),ws(t)}function Rm(t,r,a){t.lanes|=a;var u=t.alternate;u!==null&&(u.lanes|=a);for(var p=!1,m=t.return;m!==null;)m.childLanes|=a,u=m.alternate,u!==null&&(u.childLanes|=a),m.tag===22&&(t=m.stateNode,t===null||t._visibility&1||(p=!0)),t=m,m=m.return;return t.tag===3?(m=t.stateNode,p&&r!==null&&(p=31-ye(a),t=m.hiddenUpdates,u=t[p],u===null?t[p]=[r]:u.push(r),r.lane=a|536870912),m):null}function ws(t){if(50<po)throw po=0,td=null,Error(l(185));for(var r=t.return;r!==null;)t=r,r=t.return;return t.tag===3?t.stateNode:null}var Dl={};function iS(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 En(t,r,a,u){return new iS(t,r,a,u)}function Gc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Dr(t,r){var a=t.alternate;return a===null?(a=En(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 Nm(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 Ss(t,r,a,u,p,m){var S=0;if(u=t,typeof t=="function")Gc(t)&&(S=1);else if(typeof t=="string")S=a2(t,a,fe.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case ie:return t=En(31,a,r,p),t.elementType=ie,t.lanes=m,t;case w:return Yi(a.children,p,m,r);case T:S=8,p|=24;break;case _:return t=En(12,a,r,p|2),t.elementType=_,t.lanes=m,t;case q:return t=En(13,a,r,p),t.elementType=q,t.lanes=m,t;case M:return t=En(19,a,r,p),t.elementType=M,t.lanes=m,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case A:case O:S=10;break e;case N:S=9;break e;case z:S=11;break e;case Y: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=En(S,a,r,p),r.elementType=t,r.type=u,r.lanes=m,r}function Yi(t,r,a,u){return t=En(7,t,u,r),t.lanes=a,t}function Xc(t,r,a){return t=En(6,t,null,r),t.lanes=a,t}function Zc(t,r,a){return r=En(4,t.children!==null?t.children:[],t.key,r),r.lanes=a,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}var Ml=[],zl=0,Cs=null,Es=0,Fn=[],Qn=0,Ki=null,Mr=1,zr="";function Gi(t,r){Ml[zl++]=Es,Ml[zl++]=Cs,Cs=t,Es=r}function jm(t,r,a){Fn[Qn++]=Mr,Fn[Qn++]=zr,Fn[Qn++]=Ki,Ki=t;var u=Mr;t=zr;var p=32-ye(u)-1;u&=~(1<<p),a+=1;var m=32-ye(r)+p;if(30<m){var S=p-p%5;m=(u&(1<<S)-1).toString(32),u>>=S,p-=S,Mr=1<<32-ye(r)+p|a<<p|u,zr=m+t}else Mr=1<<m|a<<p|u,zr=t}function Jc(t){t.return!==null&&(Gi(t,1),jm(t,1,0))}function Wc(t){for(;t===Cs;)Cs=Ml[--zl],Ml[zl]=null,Es=Ml[--zl],Ml[zl]=null;for(;t===Ki;)Ki=Fn[--Qn],Fn[Qn]=null,zr=Fn[--Qn],Fn[Qn]=null,Mr=Fn[--Qn],Fn[Qn]=null}var an=null,mt=null,Ye=!1,Xi=null,cr=!1,ef=Error(l(519));function Zi(t){var r=Error(l(418,""));throw Va(qn(r,t)),ef}function Dm(t){var r=t.stateNode,a=t.type,u=t.memoizedProps;switch(r[le]=t,r[he]=u,a){case"dialog":ze("cancel",r),ze("close",r);break;case"iframe":case"object":case"embed":ze("load",r);break;case"video":case"audio":for(a=0;a<yo.length;a++)ze(yo[a],r);break;case"source":ze("error",r);break;case"img":case"image":case"link":ze("error",r),ze("load",r);break;case"details":ze("toggle",r);break;case"input":ze("invalid",r),Kp(r,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0),cs(r);break;case"select":ze("invalid",r);break;case"textarea":ze("invalid",r),Xp(r,u.value,u.defaultValue,u.children),cs(r)}a=u.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||r.textContent===""+a||u.suppressHydrationWarning===!0||Xg(r.textContent,a)?(u.popover!=null&&(ze("beforetoggle",r),ze("toggle",r)),u.onScroll!=null&&ze("scroll",r),u.onScrollEnd!=null&&ze("scrollend",r),u.onClick!=null&&(r.onclick=iu),r=!0):r=!1,r||Zi(t)}function Mm(t){for(an=t.return;an;)switch(an.tag){case 5:case 13:cr=!1;return;case 27:case 3:cr=!0;return;default:an=an.return}}function Pa(t){if(t!==an)return!1;if(!Ye)return Mm(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")||gd(t.type,t.memoizedProps)),a=!a),a&&mt&&Zi(t),Mm(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){mt=er(t.nextSibling);break e}r--}else a!=="$"&&a!=="$!"&&a!=="$?"||r++;t=t.nextSibling}mt=null}}else r===27?(r=mt,Ci(t.type)?(t=wd,wd=null,mt=t):mt=r):mt=an?er(t.stateNode.nextSibling):null;return!0}function Ia(){mt=an=null,Ye=!1}function zm(){var t=Xi;return t!==null&&(pn===null?pn=t:pn.push.apply(pn,t),Xi=null),t}function Va(t){Xi===null?Xi=[t]:Xi.push(t)}var tf=I(null),Ji=null,Lr=null;function si(t,r,a){R(tf,r._currentValue),r._currentValue=a}function Ur(t){t._currentValue=tf.current,oe(tf)}function nf(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 rf(t,r,a,u){var p=t.child;for(p!==null&&(p.return=t);p!==null;){var m=p.dependencies;if(m!==null){var S=p.child;m=m.firstContext;e:for(;m!==null;){var k=m;m=p;for(var j=0;j<r.length;j++)if(k.context===r[j]){m.lanes|=a,k=m.alternate,k!==null&&(k.lanes|=a),nf(m.return,a,t),u||(S=null);break e}m=k.next}}else if(p.tag===18){if(S=p.return,S===null)throw Error(l(341));S.lanes|=a,m=S.alternate,m!==null&&(m.lanes|=a),nf(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 $a(t,r,a,u){t=null;for(var p=r,m=!1;p!==null;){if(!m){if((p.flags&524288)!==0)m=!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 k=p.type;Cn(p.pendingProps.value,S.value)||(t!==null?t.push(k):t=[k])}}else if(p===st.current){if(S=p.alternate,S===null)throw Error(l(387));S.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(t!==null?t.push(So):t=[So])}p=p.return}t!==null&&rf(r,t,a,u),r.flags|=262144}function ks(t){for(t=t.firstContext;t!==null;){if(!Cn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Wi(t){Ji=t,Lr=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Zt(t){return Lm(Ji,t)}function Ts(t,r){return Ji===null&&Wi(t),Lm(t,r)}function Lm(t,r){var a=r._currentValue;if(r={context:r,memoizedValue:a,next:null},Lr===null){if(t===null)throw Error(l(308));Lr=r,t.dependencies={lanes:0,firstContext:r},t.flags|=524288}else Lr=Lr.next=r;return a}var lS=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()})}},aS=e.unstable_scheduleCallback,oS=e.unstable_NormalPriority,Nt={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function lf(){return{controller:new lS,data:new Map,refCount:0}}function Ya(t){t.refCount--,t.refCount===0&&aS(oS,function(){t.controller.abort()})}var Ka=null,af=0,Ll=0,Ul=null;function sS(t,r){if(Ka===null){var a=Ka=[];af=0,Ll=sd(),Ul={status:"pending",value:void 0,then:function(u){a.push(u)}}}return af++,r.then(Um,Um),r}function Um(){if(--af===0&&Ka!==null){Ul!==null&&(Ul.status="fulfilled");var t=Ka;Ka=null,Ll=0,Ul=null;for(var r=0;r<t.length;r++)(0,t[r])()}}function uS(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 Bm=B.S;B.S=function(t,r){typeof r=="object"&&r!==null&&typeof r.then=="function"&&sS(t,r),Bm!==null&&Bm(t,r)};var el=I(null);function of(){var t=el.current;return t!==null?t:rt.pooledCache}function As(t,r){r===null?R(el,el.current):R(el,r.pool)}function qm(){var t=of();return t===null?null:{parent:Nt._currentValue,pool:t}}var Ga=Error(l(460)),Hm=Error(l(474)),_s=Error(l(542)),sf={then:function(){}};function Fm(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Os(){}function Qm(t,r,a){switch(a=t[a],a===void 0?t.push(r):a!==r&&(r.then(Os,Os),r=a),r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,Im(t),t;default:if(typeof r.status=="string")r.then(Os,Os);else{if(t=rt,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,Im(t),t}throw Xa=r,Ga}}var Xa=null;function Pm(){if(Xa===null)throw Error(l(459));var t=Xa;return Xa=null,t}function Im(t){if(t===Ga||t===_s)throw Error(l(483))}var ui=!1;function uf(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function cf(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 ci(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function fi(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=ws(t),Rm(t,null,a),r}return xs(t,u,r,a),ws(t)}function Za(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,xt(t,a)}}function ff(t,r){var a=t.updateQueue,u=t.alternate;if(u!==null&&(u=u.updateQueue,a===u)){var p=null,m=null;if(a=a.firstBaseUpdate,a!==null){do{var S={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};m===null?p=m=S:m=m.next=S,a=a.next}while(a!==null);m===null?p=m=r:m=m.next=r}else p=m=r;a={baseState:u.baseState,firstBaseUpdate:p,lastBaseUpdate:m,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 df=!1;function Ja(){if(df){var t=Ul;if(t!==null)throw t}}function Wa(t,r,a,u){df=!1;var p=t.updateQueue;ui=!1;var m=p.firstBaseUpdate,S=p.lastBaseUpdate,k=p.shared.pending;if(k!==null){p.shared.pending=null;var j=k,F=j.next;j.next=null,S===null?m=F:S.next=F,S=j;var K=t.alternate;K!==null&&(K=K.updateQueue,k=K.lastBaseUpdate,k!==S&&(k===null?K.firstBaseUpdate=F:k.next=F,K.lastBaseUpdate=j))}if(m!==null){var Z=p.baseState;S=0,K=F=j=null,k=m;do{var Q=k.lane&-536870913,P=Q!==k.lane;if(P?(He&Q)===Q:(u&Q)===Q){Q!==0&&Q===Ll&&(df=!0),K!==null&&(K=K.next={lane:0,tag:k.tag,payload:k.payload,callback:null,next:null});e:{var Ee=t,we=k;Q=r;var We=a;switch(we.tag){case 1:if(Ee=we.payload,typeof Ee=="function"){Z=Ee.call(We,Z,Q);break e}Z=Ee;break e;case 3:Ee.flags=Ee.flags&-65537|128;case 0:if(Ee=we.payload,Q=typeof Ee=="function"?Ee.call(We,Z,Q):Ee,Q==null)break e;Z=y({},Z,Q);break e;case 2:ui=!0}}Q=k.callback,Q!==null&&(t.flags|=64,P&&(t.flags|=8192),P=p.callbacks,P===null?p.callbacks=[Q]:P.push(Q))}else P={lane:Q,tag:k.tag,payload:k.payload,callback:k.callback,next:null},K===null?(F=K=P,j=Z):K=K.next=P,S|=Q;if(k=k.next,k===null){if(k=p.shared.pending,k===null)break;P=k,k=P.next,P.next=null,p.lastBaseUpdate=P,p.shared.pending=null}}while(!0);K===null&&(j=Z),p.baseState=j,p.firstBaseUpdate=F,p.lastBaseUpdate=K,m===null&&(p.shared.lanes=0),bi|=S,t.lanes=S,t.memoizedState=Z}}function Vm(t,r){if(typeof t!="function")throw Error(l(191,t));t.call(r)}function $m(t,r){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)Vm(a[t],r)}var Bl=I(null),Rs=I(0);function Ym(t,r){t=Ir,R(Rs,t),R(Bl,r),Ir=t|r.baseLanes}function hf(){R(Rs,Ir),R(Bl,Bl.current)}function pf(){Ir=Rs.current,oe(Bl),oe(Rs)}var di=0,Re=null,Ze=null,kt=null,Ns=!1,ql=!1,tl=!1,js=0,eo=0,Hl=null,cS=0;function Ct(){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(!Cn(t[a],r[a]))return!1;return!0}function yf(t,r,a,u,p,m){return di=m,Re=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,B.H=t===null||t.memoizedState===null?Ry:Ny,tl=!1,m=a(u,p),tl=!1,ql&&(m=Gm(r,a,u,p)),Km(t),m}function Km(t){B.H=Bs;var r=Ze!==null&&Ze.next!==null;if(di=0,kt=Ze=Re=null,Ns=!1,eo=0,Hl=null,r)throw Error(l(300));t===null||Bt||(t=t.dependencies,t!==null&&ks(t)&&(Bt=!0))}function Gm(t,r,a,u){Re=t;var p=0;do{if(ql&&(Hl=null),eo=0,ql=!1,25<=p)throw Error(l(301));if(p+=1,kt=Ze=null,t.updateQueue!=null){var m=t.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}B.H=gS,m=r(a,u)}while(ql);return m}function fS(){var t=B.H,r=t.useState()[0];return r=typeof r.then=="function"?to(r):r,t=t.useState()[0],(Ze!==null?Ze.memoizedState:null)!==t&&(Re.flags|=1024),r}function gf(){var t=js!==0;return js=0,t}function vf(t,r,a){r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~a}function bf(t){if(Ns){for(t=t.memoizedState;t!==null;){var r=t.queue;r!==null&&(r.pending=null),t=t.next}Ns=!1}di=0,kt=Ze=Re=null,ql=!1,eo=js=0,Hl=null}function dn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return kt===null?Re.memoizedState=kt=t:kt=kt.next=t,kt}function Tt(){if(Ze===null){var t=Re.alternate;t=t!==null?t.memoizedState:null}else t=Ze.next;var r=kt===null?Re.memoizedState:kt.next;if(r!==null)kt=r,Ze=t;else{if(t===null)throw Re.alternate===null?Error(l(467)):Error(l(310));Ze=t,t={memoizedState:Ze.memoizedState,baseState:Ze.baseState,baseQueue:Ze.baseQueue,queue:Ze.queue,next:null},kt===null?Re.memoizedState=kt=t:kt=kt.next=t}return kt}function xf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function to(t){var r=eo;return eo+=1,Hl===null&&(Hl=[]),t=Qm(Hl,t,r),r=Re,(kt===null?r.memoizedState:kt.next)===null&&(r=r.alternate,B.H=r===null||r.memoizedState===null?Ry:Ny),t}function Ds(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return to(t);if(t.$$typeof===O)return Zt(t)}throw Error(l(438,String(t)))}function wf(t){var r=null,a=Re.updateQueue;if(a!==null&&(r=a.memoCache),r==null){var u=Re.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=xf(),Re.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]=L;return r.index++,a}function Br(t,r){return typeof r=="function"?r(t):r}function Ms(t){var r=Tt();return Sf(r,Ze,t)}function Sf(t,r,a){var u=t.queue;if(u===null)throw Error(l(311));u.lastRenderedReducer=a;var p=t.baseQueue,m=u.pending;if(m!==null){if(p!==null){var S=p.next;p.next=m.next,m.next=S}r.baseQueue=p=m,u.pending=null}if(m=t.baseState,p===null)t.memoizedState=m;else{r=p.next;var k=S=null,j=null,F=r,K=!1;do{var Z=F.lane&-536870913;if(Z!==F.lane?(He&Z)===Z:(di&Z)===Z){var Q=F.revertLane;if(Q===0)j!==null&&(j=j.next={lane:0,revertLane:0,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null}),Z===Ll&&(K=!0);else if((di&Q)===Q){F=F.next,Q===Ll&&(K=!0);continue}else Z={lane:0,revertLane:F.revertLane,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},j===null?(k=j=Z,S=m):j=j.next=Z,Re.lanes|=Q,bi|=Q;Z=F.action,tl&&a(m,Z),m=F.hasEagerState?F.eagerState:a(m,Z)}else Q={lane:Z,revertLane:F.revertLane,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},j===null?(k=j=Q,S=m):j=j.next=Q,Re.lanes|=Z,bi|=Z;F=F.next}while(F!==null&&F!==r);if(j===null?S=m:j.next=k,!Cn(m,t.memoizedState)&&(Bt=!0,K&&(a=Ul,a!==null)))throw a;t.memoizedState=m,t.baseState=S,t.baseQueue=j,u.lastRenderedState=m}return p===null&&(u.lanes=0),[t.memoizedState,u.dispatch]}function Cf(t){var r=Tt(),a=r.queue;if(a===null)throw Error(l(311));a.lastRenderedReducer=t;var u=a.dispatch,p=a.pending,m=r.memoizedState;if(p!==null){a.pending=null;var S=p=p.next;do m=t(m,S.action),S=S.next;while(S!==p);Cn(m,r.memoizedState)||(Bt=!0),r.memoizedState=m,r.baseQueue===null&&(r.baseState=m),a.lastRenderedState=m}return[m,u]}function Xm(t,r,a){var u=Re,p=Tt(),m=Ye;if(m){if(a===void 0)throw Error(l(407));a=a()}else a=r();var S=!Cn((Ze||p).memoizedState,a);S&&(p.memoizedState=a,Bt=!0),p=p.queue;var k=Wm.bind(null,u,p,t);if(no(2048,8,k,[t]),p.getSnapshot!==r||S||kt!==null&&kt.memoizedState.tag&1){if(u.flags|=2048,Fl(9,zs(),Jm.bind(null,u,p,a,r),null),rt===null)throw Error(l(349));m||(di&124)!==0||Zm(u,r,a)}return a}function Zm(t,r,a){t.flags|=16384,t={getSnapshot:r,value:a},r=Re.updateQueue,r===null?(r=xf(),Re.updateQueue=r,r.stores=[t]):(a=r.stores,a===null?r.stores=[t]:a.push(t))}function Jm(t,r,a,u){r.value=a,r.getSnapshot=u,ey(r)&&ty(t)}function Wm(t,r,a){return a(function(){ey(r)&&ty(t)})}function ey(t){var r=t.getSnapshot;t=t.value;try{var a=r();return!Cn(t,a)}catch{return!0}}function ty(t){var r=jl(t,2);r!==null&&On(r,t,2)}function Ef(t){var r=dn();if(typeof t=="function"){var a=t;if(t=a(),tl){me(!0);try{a()}finally{me(!1)}}}return r.memoizedState=r.baseState=t,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Br,lastRenderedState:t},r}function ny(t,r,a,u){return t.baseState=a,Sf(t,Ze,typeof u=="function"?u:Br)}function dS(t,r,a,u,p){if(Us(t))throw Error(l(485));if(t=r.action,t!==null){var m={payload:p,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(S){m.listeners.push(S)}};B.T!==null?a(!0):m.isTransition=!1,u(m),a=r.pending,a===null?(m.next=r.pending=m,ry(r,m)):(m.next=a.next,r.pending=a.next=m)}}function ry(t,r){var a=r.action,u=r.payload,p=t.state;if(r.isTransition){var m=B.T,S={};B.T=S;try{var k=a(p,u),j=B.S;j!==null&&j(S,k),iy(t,r,k)}catch(F){kf(t,r,F)}finally{B.T=m}}else try{m=a(p,u),iy(t,r,m)}catch(F){kf(t,r,F)}}function iy(t,r,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(u){ly(t,r,u)},function(u){return kf(t,r,u)}):ly(t,r,a)}function ly(t,r,a){r.status="fulfilled",r.value=a,ay(r),t.state=a,r=t.pending,r!==null&&(a=r.next,a===r?t.pending=null:(a=a.next,r.next=a,ry(t,a)))}function kf(t,r,a){var u=t.pending;if(t.pending=null,u!==null){u=u.next;do r.status="rejected",r.reason=a,ay(r),r=r.next;while(r!==u)}t.action=null}function ay(t){t=t.listeners;for(var r=0;r<t.length;r++)(0,t[r])()}function oy(t,r){return r}function sy(t,r){if(Ye){var a=rt.formState;if(a!==null){e:{var u=Re;if(Ye){if(mt){t:{for(var p=mt,m=cr;p.nodeType!==8;){if(!m){p=null;break t}if(p=er(p.nextSibling),p===null){p=null;break t}}m=p.data,p=m==="F!"||m==="F"?p:null}if(p){mt=er(p.nextSibling),u=p.data==="F!";break e}}Zi(u)}u=!1}u&&(r=a[0])}}return a=dn(),a.memoizedState=a.baseState=r,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:oy,lastRenderedState:r},a.queue=u,a=Ay.bind(null,Re,u),u.dispatch=a,u=Ef(!1),m=Rf.bind(null,Re,!1,u.queue),u=dn(),p={state:r,dispatch:null,action:t,pending:null},u.queue=p,a=dS.bind(null,Re,p,m,a),p.dispatch=a,u.memoizedState=t,[r,a,!1]}function uy(t){var r=Tt();return cy(r,Ze,t)}function cy(t,r,a){if(r=Sf(t,r,oy)[0],t=Ms(Br)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var u=to(r)}catch(S){throw S===Ga?_s:S}else u=r;r=Tt();var p=r.queue,m=p.dispatch;return a!==r.memoizedState&&(Re.flags|=2048,Fl(9,zs(),hS.bind(null,p,a),null)),[u,m,t]}function hS(t,r){t.action=r}function fy(t){var r=Tt(),a=Ze;if(a!==null)return cy(r,a,t);Tt(),r=r.memoizedState,a=Tt();var u=a.queue.dispatch;return a.memoizedState=t,[r,u,!1]}function Fl(t,r,a,u){return t={tag:t,create:a,deps:u,inst:r,next:null},r=Re.updateQueue,r===null&&(r=xf(),Re.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 zs(){return{destroy:void 0,resource:void 0}}function dy(){return Tt().memoizedState}function Ls(t,r,a,u){var p=dn();u=u===void 0?null:u,Re.flags|=t,p.memoizedState=Fl(1|r,zs(),a,u)}function no(t,r,a,u){var p=Tt();u=u===void 0?null:u;var m=p.memoizedState.inst;Ze!==null&&u!==null&&mf(u,Ze.memoizedState.deps)?p.memoizedState=Fl(r,m,a,u):(Re.flags|=t,p.memoizedState=Fl(1|r,m,a,u))}function hy(t,r){Ls(8390656,8,t,r)}function py(t,r){no(2048,8,t,r)}function my(t,r){return no(4,2,t,r)}function yy(t,r){return no(4,4,t,r)}function gy(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 vy(t,r,a){a=a!=null?a.concat([t]):null,no(4,4,gy.bind(null,r,t),a)}function Tf(){}function by(t,r){var a=Tt();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 xy(t,r){var a=Tt();r=r===void 0?null:r;var u=a.memoizedState;if(r!==null&&mf(r,u[1]))return u[0];if(u=t(),tl){me(!0);try{t()}finally{me(!1)}}return a.memoizedState=[u,r],u}function Af(t,r,a){return a===void 0||(di&1073741824)!==0?t.memoizedState=r:(t.memoizedState=a,t=Cg(),Re.lanes|=t,bi|=t,a)}function wy(t,r,a,u){return Cn(a,r)?a:Bl.current!==null?(t=Af(t,a,u),Cn(t,r)||(Bt=!0),t):(di&42)===0?(Bt=!0,t.memoizedState=a):(t=Cg(),Re.lanes|=t,bi|=t,r)}function Sy(t,r,a,u,p){var m=X.p;X.p=m!==0&&8>m?m:8;var S=B.T,k={};B.T=k,Rf(t,!1,r,a);try{var j=p(),F=B.S;if(F!==null&&F(k,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var K=uS(j,u);ro(t,r,K,_n(t))}else ro(t,r,u,_n(t))}catch(Z){ro(t,r,{then:function(){},status:"rejected",reason:Z},_n())}finally{X.p=m,B.T=S}}function pS(){}function _f(t,r,a,u){if(t.tag!==5)throw Error(l(476));var p=Cy(t).queue;Sy(t,p,r,ne,a===null?pS:function(){return Ey(t),a(u)})}function Cy(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:Br,lastRenderedState:ne},next:null};var a={};return r.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Br,lastRenderedState:a},next:null},t.memoizedState=r,t=t.alternate,t!==null&&(t.memoizedState=r),r}function Ey(t){var r=Cy(t).next.queue;ro(t,r,{},_n())}function Of(){return Zt(So)}function ky(){return Tt().memoizedState}function Ty(){return Tt().memoizedState}function mS(t){for(var r=t.return;r!==null;){switch(r.tag){case 24:case 3:var a=_n();t=ci(a);var u=fi(r,t,a);u!==null&&(On(u,r,a),Za(u,r,a)),r={cache:lf()},t.payload=r;return}r=r.return}}function yS(t,r,a){var u=_n();a={lane:u,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Us(t)?_y(r,a):(a=Kc(t,r,a,u),a!==null&&(On(a,t,u),Oy(a,r,u)))}function Ay(t,r,a){var u=_n();ro(t,r,a,u)}function ro(t,r,a,u){var p={lane:u,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Us(t))_y(r,p);else{var m=t.alternate;if(t.lanes===0&&(m===null||m.lanes===0)&&(m=r.lastRenderedReducer,m!==null))try{var S=r.lastRenderedState,k=m(S,a);if(p.hasEagerState=!0,p.eagerState=k,Cn(k,S))return xs(t,r,p,0),rt===null&&bs(),!1}catch{}finally{}if(a=Kc(t,r,p,u),a!==null)return On(a,t,u),Oy(a,r,u),!0}return!1}function Rf(t,r,a,u){if(u={lane:2,revertLane:sd(),action:u,hasEagerState:!1,eagerState:null,next:null},Us(t)){if(r)throw Error(l(479))}else r=Kc(t,a,u,2),r!==null&&On(r,t,2)}function Us(t){var r=t.alternate;return t===Re||r!==null&&r===Re}function _y(t,r){ql=Ns=!0;var a=t.pending;a===null?r.next=r:(r.next=a.next,a.next=r),t.pending=r}function Oy(t,r,a){if((a&4194048)!==0){var u=r.lanes;u&=t.pendingLanes,a|=u,r.lanes=a,xt(t,a)}}var Bs={readContext:Zt,use:Ds,useCallback:Ct,useContext:Ct,useEffect:Ct,useImperativeHandle:Ct,useLayoutEffect:Ct,useInsertionEffect:Ct,useMemo:Ct,useReducer:Ct,useRef:Ct,useState:Ct,useDebugValue:Ct,useDeferredValue:Ct,useTransition:Ct,useSyncExternalStore:Ct,useId:Ct,useHostTransitionStatus:Ct,useFormState:Ct,useActionState:Ct,useOptimistic:Ct,useMemoCache:Ct,useCacheRefresh:Ct},Ry={readContext:Zt,use:Ds,useCallback:function(t,r){return dn().memoizedState=[t,r===void 0?null:r],t},useContext:Zt,useEffect:hy,useImperativeHandle:function(t,r,a){a=a!=null?a.concat([t]):null,Ls(4194308,4,gy.bind(null,r,t),a)},useLayoutEffect:function(t,r){return Ls(4194308,4,t,r)},useInsertionEffect:function(t,r){Ls(4,2,t,r)},useMemo:function(t,r){var a=dn();r=r===void 0?null:r;var u=t();if(tl){me(!0);try{t()}finally{me(!1)}}return a.memoizedState=[u,r],u},useReducer:function(t,r,a){var u=dn();if(a!==void 0){var p=a(r);if(tl){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=yS.bind(null,Re,t),[u.memoizedState,t]},useRef:function(t){var r=dn();return t={current:t},r.memoizedState=t},useState:function(t){t=Ef(t);var r=t.queue,a=Ay.bind(null,Re,r);return r.dispatch=a,[t.memoizedState,a]},useDebugValue:Tf,useDeferredValue:function(t,r){var a=dn();return Af(a,t,r)},useTransition:function(){var t=Ef(!1);return t=Sy.bind(null,Re,t.queue,!0,!1),dn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,r,a){var u=Re,p=dn();if(Ye){if(a===void 0)throw Error(l(407));a=a()}else{if(a=r(),rt===null)throw Error(l(349));(He&124)!==0||Zm(u,r,a)}p.memoizedState=a;var m={value:a,getSnapshot:r};return p.queue=m,hy(Wm.bind(null,u,m,t),[t]),u.flags|=2048,Fl(9,zs(),Jm.bind(null,u,m,a,r),null),a},useId:function(){var t=dn(),r=rt.identifierPrefix;if(Ye){var a=zr,u=Mr;a=(u&~(1<<32-ye(u)-1)).toString(32)+a,r="«"+r+"R"+a,a=js++,0<a&&(r+="H"+a.toString(32)),r+="»"}else a=cS++,r="«"+r+"r"+a.toString(32)+"»";return t.memoizedState=r},useHostTransitionStatus:Of,useFormState:sy,useActionState:sy,useOptimistic:function(t){var r=dn();r.memoizedState=r.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=a,r=Rf.bind(null,Re,!0,a),a.dispatch=r,[t,r]},useMemoCache:wf,useCacheRefresh:function(){return dn().memoizedState=mS.bind(null,Re)}},Ny={readContext:Zt,use:Ds,useCallback:by,useContext:Zt,useEffect:py,useImperativeHandle:vy,useInsertionEffect:my,useLayoutEffect:yy,useMemo:xy,useReducer:Ms,useRef:dy,useState:function(){return Ms(Br)},useDebugValue:Tf,useDeferredValue:function(t,r){var a=Tt();return wy(a,Ze.memoizedState,t,r)},useTransition:function(){var t=Ms(Br)[0],r=Tt().memoizedState;return[typeof t=="boolean"?t:to(t),r]},useSyncExternalStore:Xm,useId:ky,useHostTransitionStatus:Of,useFormState:uy,useActionState:uy,useOptimistic:function(t,r){var a=Tt();return ny(a,Ze,t,r)},useMemoCache:wf,useCacheRefresh:Ty},gS={readContext:Zt,use:Ds,useCallback:by,useContext:Zt,useEffect:py,useImperativeHandle:vy,useInsertionEffect:my,useLayoutEffect:yy,useMemo:xy,useReducer:Cf,useRef:dy,useState:function(){return Cf(Br)},useDebugValue:Tf,useDeferredValue:function(t,r){var a=Tt();return Ze===null?Af(a,t,r):wy(a,Ze.memoizedState,t,r)},useTransition:function(){var t=Cf(Br)[0],r=Tt().memoizedState;return[typeof t=="boolean"?t:to(t),r]},useSyncExternalStore:Xm,useId:ky,useHostTransitionStatus:Of,useFormState:fy,useActionState:fy,useOptimistic:function(t,r){var a=Tt();return Ze!==null?ny(a,Ze,t,r):(a.baseState=t,[t,a.queue.dispatch])},useMemoCache:wf,useCacheRefresh:Ty},Ql=null,io=0;function qs(t){var r=io;return io+=1,Ql===null&&(Ql=[]),Qm(Ql,t,r)}function lo(t,r){r=r.props.ref,t.ref=r!==void 0?r:null}function Hs(t,r){throw r.$$typeof===g?Error(l(525)):(t=Object.prototype.toString.call(r),Error(l(31,t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t)))}function jy(t){var r=t._init;return r(t._payload)}function Dy(t){function r(U,D){if(t){var H=U.deletions;H===null?(U.deletions=[D],U.flags|=16):H.push(D)}}function a(U,D){if(!t)return null;for(;D!==null;)r(U,D),D=D.sibling;return null}function u(U){for(var D=new Map;U!==null;)U.key!==null?D.set(U.key,U):D.set(U.index,U),U=U.sibling;return D}function p(U,D){return U=Dr(U,D),U.index=0,U.sibling=null,U}function m(U,D,H){return U.index=H,t?(H=U.alternate,H!==null?(H=H.index,H<D?(U.flags|=67108866,D):H):(U.flags|=67108866,D)):(U.flags|=1048576,D)}function S(U){return t&&U.alternate===null&&(U.flags|=67108866),U}function k(U,D,H,G){return D===null||D.tag!==6?(D=Xc(H,U.mode,G),D.return=U,D):(D=p(D,H),D.return=U,D)}function j(U,D,H,G){var de=H.type;return de===w?K(U,D,H.props.children,G,H.key):D!==null&&(D.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===ee&&jy(de)===D.type)?(D=p(D,H.props),lo(D,H),D.return=U,D):(D=Ss(H.type,H.key,H.props,null,U.mode,G),lo(D,H),D.return=U,D)}function F(U,D,H,G){return D===null||D.tag!==4||D.stateNode.containerInfo!==H.containerInfo||D.stateNode.implementation!==H.implementation?(D=Zc(H,U.mode,G),D.return=U,D):(D=p(D,H.children||[]),D.return=U,D)}function K(U,D,H,G,de){return D===null||D.tag!==7?(D=Yi(H,U.mode,G,de),D.return=U,D):(D=p(D,H),D.return=U,D)}function Z(U,D,H){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=Xc(""+D,U.mode,H),D.return=U,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case x:return H=Ss(D.type,D.key,D.props,null,U.mode,H),lo(H,D),H.return=U,H;case b:return D=Zc(D,U.mode,H),D.return=U,D;case ee:var G=D._init;return D=G(D._payload),Z(U,D,H)}if(se(D)||te(D))return D=Yi(D,U.mode,H,null),D.return=U,D;if(typeof D.then=="function")return Z(U,qs(D),H);if(D.$$typeof===O)return Z(U,Ts(U,D),H);Hs(U,D)}return null}function Q(U,D,H,G){var de=D!==null?D.key:null;if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return de!==null?null:k(U,D,""+H,G);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case x:return H.key===de?j(U,D,H,G):null;case b:return H.key===de?F(U,D,H,G):null;case ee:return de=H._init,H=de(H._payload),Q(U,D,H,G)}if(se(H)||te(H))return de!==null?null:K(U,D,H,G,null);if(typeof H.then=="function")return Q(U,D,qs(H),G);if(H.$$typeof===O)return Q(U,D,Ts(U,H),G);Hs(U,H)}return null}function P(U,D,H,G,de){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return U=U.get(H)||null,k(D,U,""+G,de);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case x:return U=U.get(G.key===null?H:G.key)||null,j(D,U,G,de);case b:return U=U.get(G.key===null?H:G.key)||null,F(D,U,G,de);case ee:var Ne=G._init;return G=Ne(G._payload),P(U,D,H,G,de)}if(se(G)||te(G))return U=U.get(H)||null,K(D,U,G,de,null);if(typeof G.then=="function")return P(U,D,H,qs(G),de);if(G.$$typeof===O)return P(U,D,H,Ts(D,G),de);Hs(D,G)}return null}function Ee(U,D,H,G){for(var de=null,Ne=null,ge=D,Ce=D=0,Ht=null;ge!==null&&Ce<H.length;Ce++){ge.index>Ce?(Ht=ge,ge=null):Ht=ge.sibling;var Pe=Q(U,ge,H[Ce],G);if(Pe===null){ge===null&&(ge=Ht);break}t&&ge&&Pe.alternate===null&&r(U,ge),D=m(Pe,D,Ce),Ne===null?de=Pe:Ne.sibling=Pe,Ne=Pe,ge=Ht}if(Ce===H.length)return a(U,ge),Ye&&Gi(U,Ce),de;if(ge===null){for(;Ce<H.length;Ce++)ge=Z(U,H[Ce],G),ge!==null&&(D=m(ge,D,Ce),Ne===null?de=ge:Ne.sibling=ge,Ne=ge);return Ye&&Gi(U,Ce),de}for(ge=u(ge);Ce<H.length;Ce++)Ht=P(ge,U,Ce,H[Ce],G),Ht!==null&&(t&&Ht.alternate!==null&&ge.delete(Ht.key===null?Ce:Ht.key),D=m(Ht,D,Ce),Ne===null?de=Ht:Ne.sibling=Ht,Ne=Ht);return t&&ge.forEach(function(_i){return r(U,_i)}),Ye&&Gi(U,Ce),de}function we(U,D,H,G){if(H==null)throw Error(l(151));for(var de=null,Ne=null,ge=D,Ce=D=0,Ht=null,Pe=H.next();ge!==null&&!Pe.done;Ce++,Pe=H.next()){ge.index>Ce?(Ht=ge,ge=null):Ht=ge.sibling;var _i=Q(U,ge,Pe.value,G);if(_i===null){ge===null&&(ge=Ht);break}t&&ge&&_i.alternate===null&&r(U,ge),D=m(_i,D,Ce),Ne===null?de=_i:Ne.sibling=_i,Ne=_i,ge=Ht}if(Pe.done)return a(U,ge),Ye&&Gi(U,Ce),de;if(ge===null){for(;!Pe.done;Ce++,Pe=H.next())Pe=Z(U,Pe.value,G),Pe!==null&&(D=m(Pe,D,Ce),Ne===null?de=Pe:Ne.sibling=Pe,Ne=Pe);return Ye&&Gi(U,Ce),de}for(ge=u(ge);!Pe.done;Ce++,Pe=H.next())Pe=P(ge,U,Ce,Pe.value,G),Pe!==null&&(t&&Pe.alternate!==null&&ge.delete(Pe.key===null?Ce:Pe.key),D=m(Pe,D,Ce),Ne===null?de=Pe:Ne.sibling=Pe,Ne=Pe);return t&&ge.forEach(function(v2){return r(U,v2)}),Ye&&Gi(U,Ce),de}function We(U,D,H,G){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;D!==null;){if(D.key===de){if(de=H.type,de===w){if(D.tag===7){a(U,D.sibling),G=p(D,H.props.children),G.return=U,U=G;break e}}else if(D.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===ee&&jy(de)===D.type){a(U,D.sibling),G=p(D,H.props),lo(G,H),G.return=U,U=G;break e}a(U,D);break}else r(U,D);D=D.sibling}H.type===w?(G=Yi(H.props.children,U.mode,G,H.key),G.return=U,U=G):(G=Ss(H.type,H.key,H.props,null,U.mode,G),lo(G,H),G.return=U,U=G)}return S(U);case b:e:{for(de=H.key;D!==null;){if(D.key===de)if(D.tag===4&&D.stateNode.containerInfo===H.containerInfo&&D.stateNode.implementation===H.implementation){a(U,D.sibling),G=p(D,H.children||[]),G.return=U,U=G;break e}else{a(U,D);break}else r(U,D);D=D.sibling}G=Zc(H,U.mode,G),G.return=U,U=G}return S(U);case ee:return de=H._init,H=de(H._payload),We(U,D,H,G)}if(se(H))return Ee(U,D,H,G);if(te(H)){if(de=te(H),typeof de!="function")throw Error(l(150));return H=de.call(H),we(U,D,H,G)}if(typeof H.then=="function")return We(U,D,qs(H),G);if(H.$$typeof===O)return We(U,D,Ts(U,H),G);Hs(U,H)}return typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint"?(H=""+H,D!==null&&D.tag===6?(a(U,D.sibling),G=p(D,H),G.return=U,U=G):(a(U,D),G=Xc(H,U.mode,G),G.return=U,U=G),S(U)):a(U,D)}return function(U,D,H,G){try{io=0;var de=We(U,D,H,G);return Ql=null,de}catch(ge){if(ge===Ga||ge===_s)throw ge;var Ne=En(29,ge,null,U.mode);return Ne.lanes=G,Ne.return=U,Ne}finally{}}}var Pl=Dy(!0),My=Dy(!1),Pn=I(null),fr=null;function hi(t){var r=t.alternate;R(jt,jt.current&1),R(Pn,t),fr===null&&(r===null||Bl.current!==null||r.memoizedState!==null)&&(fr=t)}function zy(t){if(t.tag===22){if(R(jt,jt.current),R(Pn,t),fr===null){var r=t.alternate;r!==null&&r.memoizedState!==null&&(fr=t)}}else pi()}function pi(){R(jt,jt.current),R(Pn,Pn.current)}function qr(t){oe(Pn),fr===t&&(fr=null),oe(jt)}var jt=I(0);function Fs(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==="$?"||xd(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 Nf(t,r,a,u){r=t.memoizedState,a=a(u,r),a=a==null?r:y({},r,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var jf={enqueueSetState:function(t,r,a){t=t._reactInternals;var u=_n(),p=ci(u);p.payload=r,a!=null&&(p.callback=a),r=fi(t,p,u),r!==null&&(On(r,t,u),Za(r,t,u))},enqueueReplaceState:function(t,r,a){t=t._reactInternals;var u=_n(),p=ci(u);p.tag=1,p.payload=r,a!=null&&(p.callback=a),r=fi(t,p,u),r!==null&&(On(r,t,u),Za(r,t,u))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var a=_n(),u=ci(a);u.tag=2,r!=null&&(u.callback=r),r=fi(t,u,a),r!==null&&(On(r,t,a),Za(r,t,a))}};function Ly(t,r,a,u,p,m,S){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(u,m,S):r.prototype&&r.prototype.isPureReactComponent?!Fa(a,u)||!Fa(p,m):!0}function Uy(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&&jf.enqueueReplaceState(r,r.state,null)}function nl(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=y({},a));for(var p in t)a[p]===void 0&&(a[p]=t[p])}return a}var Qs=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 By(t){Qs(t)}function qy(t){console.error(t)}function Hy(t){Qs(t)}function Ps(t,r){try{var a=t.onUncaughtError;a(r.value,{componentStack:r.stack})}catch(u){setTimeout(function(){throw u})}}function Fy(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 Df(t,r,a){return a=ci(a),a.tag=3,a.payload={element:null},a.callback=function(){Ps(t,r)},a}function Qy(t){return t=ci(t),t.tag=3,t}function Py(t,r,a,u){var p=a.type.getDerivedStateFromError;if(typeof p=="function"){var m=u.value;t.payload=function(){return p(m)},t.callback=function(){Fy(r,a,u)}}var S=a.stateNode;S!==null&&typeof S.componentDidCatch=="function"&&(t.callback=function(){Fy(r,a,u),typeof p!="function"&&(xi===null?xi=new Set([this]):xi.add(this));var k=u.stack;this.componentDidCatch(u.value,{componentStack:k!==null?k:""})})}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&&$a(r,a,p,!0),a=Pn.current,a!==null){switch(a.tag){case 13:return fr===null?rd():a.alternate===null&&yt===0&&(yt=3),a.flags&=-257,a.flags|=65536,a.lanes=p,u===sf?a.flags|=16384:(r=a.updateQueue,r===null?a.updateQueue=new Set([u]):r.add(u),ld(t,u,p)),!1;case 22:return a.flags|=65536,u===sf?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)),ld(t,u,p)),!1}throw Error(l(435,a.tag))}return ld(t,u,p),rd(),!1}if(Ye)return r=Pn.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=p,u!==ef&&(t=Error(l(422),{cause:u}),Va(qn(t,a)))):(u!==ef&&(r=Error(l(423),{cause:u}),Va(qn(r,a))),t=t.current.alternate,t.flags|=65536,p&=-p,t.lanes|=p,u=qn(u,a),p=Df(t.stateNode,u,p),ff(t,p),yt!==4&&(yt=2)),!1;var m=Error(l(520),{cause:u});if(m=qn(m,a),ho===null?ho=[m]:ho.push(m),yt!==4&&(yt=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=Df(a.stateNode,u,t),ff(a,t),!1;case 1:if(r=a.type,m=a.stateNode,(a.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(xi===null||!xi.has(m))))return a.flags|=65536,p&=-p,a.lanes|=p,p=Qy(p),Py(p,t,a,u),ff(a,p),!1}a=a.return}while(a!==null);return!1}var Iy=Error(l(461)),Bt=!1;function Pt(t,r,a,u){r.child=t===null?My(r,null,a,u):Pl(r,t.child,a,u)}function Vy(t,r,a,u,p){a=a.render;var m=r.ref;if("ref"in u){var S={};for(var k in u)k!=="ref"&&(S[k]=u[k])}else S=u;return Wi(r),u=yf(t,r,a,S,m,p),k=gf(),t!==null&&!Bt?(vf(t,r,p),Hr(t,r,p)):(Ye&&k&&Jc(r),r.flags|=1,Pt(t,r,u,p),r.child)}function $y(t,r,a,u,p){if(t===null){var m=a.type;return typeof m=="function"&&!Gc(m)&&m.defaultProps===void 0&&a.compare===null?(r.tag=15,r.type=m,Yy(t,r,m,u,p)):(t=Ss(a.type,null,u,r,r.mode,p),t.ref=r.ref,t.return=r,r.child=t)}if(m=t.child,!Ff(t,p)){var S=m.memoizedProps;if(a=a.compare,a=a!==null?a:Fa,a(S,u)&&t.ref===r.ref)return Hr(t,r,p)}return r.flags|=1,t=Dr(m,u),t.ref=r.ref,t.return=r,r.child=t}function Yy(t,r,a,u,p){if(t!==null){var m=t.memoizedProps;if(Fa(m,u)&&t.ref===r.ref)if(Bt=!1,r.pendingProps=u=m,Ff(t,p))(t.flags&131072)!==0&&(Bt=!0);else return r.lanes=t.lanes,Hr(t,r,p)}return Mf(t,r,a,u,p)}function Ky(t,r,a){var u=r.pendingProps,p=u.children,m=t!==null?t.memoizedState:null;if(u.mode==="hidden"){if((r.flags&128)!==0){if(u=m!==null?m.baseLanes|a:a,t!==null){for(p=r.child=t.child,m=0;p!==null;)m=m|p.lanes|p.childLanes,p=p.sibling;r.childLanes=m&~u}else r.childLanes=0,r.child=null;return Gy(t,r,u,a)}if((a&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},t!==null&&As(r,m!==null?m.cachePool:null),m!==null?Ym(r,m):hf(),zy(r);else return r.lanes=r.childLanes=536870912,Gy(t,r,m!==null?m.baseLanes|a:a,a)}else m!==null?(As(r,m.cachePool),Ym(r,m),pi(),r.memoizedState=null):(t!==null&&As(r,null),hf(),pi());return Pt(t,r,p,a),r.child}function Gy(t,r,a,u){var p=of();return p=p===null?null:{parent:Nt._currentValue,pool:p},r.memoizedState={baseLanes:a,cachePool:p},t!==null&&As(r,null),hf(),zy(r),t!==null&&$a(t,r,u,!0),null}function Is(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 Mf(t,r,a,u,p){return Wi(r),a=yf(t,r,a,u,void 0,p),u=gf(),t!==null&&!Bt?(vf(t,r,p),Hr(t,r,p)):(Ye&&u&&Jc(r),r.flags|=1,Pt(t,r,a,p),r.child)}function Xy(t,r,a,u,p,m){return Wi(r),r.updateQueue=null,a=Gm(r,u,a,p),Km(t),u=gf(),t!==null&&!Bt?(vf(t,r,m),Hr(t,r,m)):(Ye&&u&&Jc(r),r.flags|=1,Pt(t,r,a,m),r.child)}function Zy(t,r,a,u,p){if(Wi(r),r.stateNode===null){var m=Dl,S=a.contextType;typeof S=="object"&&S!==null&&(m=Zt(S)),m=new a(u,m),r.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=jf,r.stateNode=m,m._reactInternals=r,m=r.stateNode,m.props=u,m.state=r.memoizedState,m.refs={},uf(r),S=a.contextType,m.context=typeof S=="object"&&S!==null?Zt(S):Dl,m.state=r.memoizedState,S=a.getDerivedStateFromProps,typeof S=="function"&&(Nf(r,a,S,u),m.state=r.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(S=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),S!==m.state&&jf.enqueueReplaceState(m,m.state,null),Wa(r,u,m,p),Ja(),m.state=r.memoizedState),typeof m.componentDidMount=="function"&&(r.flags|=4194308),u=!0}else if(t===null){m=r.stateNode;var k=r.memoizedProps,j=nl(a,k);m.props=j;var F=m.context,K=a.contextType;S=Dl,typeof K=="object"&&K!==null&&(S=Zt(K));var Z=a.getDerivedStateFromProps;K=typeof Z=="function"||typeof m.getSnapshotBeforeUpdate=="function",k=r.pendingProps!==k,K||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(k||F!==S)&&Uy(r,m,u,S),ui=!1;var Q=r.memoizedState;m.state=Q,Wa(r,u,m,p),Ja(),F=r.memoizedState,k||Q!==F||ui?(typeof Z=="function"&&(Nf(r,a,Z,u),F=r.memoizedState),(j=ui||Ly(r,a,j,u,Q,F,S))?(K||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(r.flags|=4194308)):(typeof m.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=u,r.memoizedState=F),m.props=u,m.state=F,m.context=S,u=j):(typeof m.componentDidMount=="function"&&(r.flags|=4194308),u=!1)}else{m=r.stateNode,cf(t,r),S=r.memoizedProps,K=nl(a,S),m.props=K,Z=r.pendingProps,Q=m.context,F=a.contextType,j=Dl,typeof F=="object"&&F!==null&&(j=Zt(F)),k=a.getDerivedStateFromProps,(F=typeof k=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(S!==Z||Q!==j)&&Uy(r,m,u,j),ui=!1,Q=r.memoizedState,m.state=Q,Wa(r,u,m,p),Ja();var P=r.memoizedState;S!==Z||Q!==P||ui||t!==null&&t.dependencies!==null&&ks(t.dependencies)?(typeof k=="function"&&(Nf(r,a,k,u),P=r.memoizedState),(K=ui||Ly(r,a,K,u,Q,P,j)||t!==null&&t.dependencies!==null&&ks(t.dependencies))?(F||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(u,P,j),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(u,P,j)),typeof m.componentDidUpdate=="function"&&(r.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof m.componentDidUpdate!="function"||S===t.memoizedProps&&Q===t.memoizedState||(r.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||S===t.memoizedProps&&Q===t.memoizedState||(r.flags|=1024),r.memoizedProps=u,r.memoizedState=P),m.props=u,m.state=P,m.context=j,u=K):(typeof m.componentDidUpdate!="function"||S===t.memoizedProps&&Q===t.memoizedState||(r.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||S===t.memoizedProps&&Q===t.memoizedState||(r.flags|=1024),u=!1)}return m=u,Is(t,r),u=(r.flags&128)!==0,m||u?(m=r.stateNode,a=u&&typeof a.getDerivedStateFromError!="function"?null:m.render(),r.flags|=1,t!==null&&u?(r.child=Pl(r,t.child,null,p),r.child=Pl(r,null,a,p)):Pt(t,r,a,p),r.memoizedState=m.state,t=r.child):t=Hr(t,r,p),t}function Jy(t,r,a,u){return Ia(),r.flags|=256,Pt(t,r,a,u),r.child}var zf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Lf(t){return{baseLanes:t,cachePool:qm()}}function Uf(t,r,a){return t=t!==null?t.childLanes&~a:0,r&&(t|=In),t}function Wy(t,r,a){var u=r.pendingProps,p=!1,m=(r.flags&128)!==0,S;if((S=m)||(S=t!==null&&t.memoizedState===null?!1:(jt.current&2)!==0),S&&(p=!0,r.flags&=-129),S=(r.flags&32)!==0,r.flags&=-33,t===null){if(Ye){if(p?hi(r):pi(),Ye){var k=mt,j;if(j=k){e:{for(j=k,k=cr;j.nodeType!==8;){if(!k){k=null;break e}if(j=er(j.nextSibling),j===null){k=null;break e}}k=j}k!==null?(r.memoizedState={dehydrated:k,treeContext:Ki!==null?{id:Mr,overflow:zr}:null,retryLane:536870912,hydrationErrors:null},j=En(18,null,null,0),j.stateNode=k,j.return=r,r.child=j,an=r,mt=null,j=!0):j=!1}j||Zi(r)}if(k=r.memoizedState,k!==null&&(k=k.dehydrated,k!==null))return xd(k)?r.lanes=32:r.lanes=536870912,null;qr(r)}return k=u.children,u=u.fallback,p?(pi(),p=r.mode,k=Vs({mode:"hidden",children:k},p),u=Yi(u,p,a,null),k.return=r,u.return=r,k.sibling=u,r.child=k,p=r.child,p.memoizedState=Lf(a),p.childLanes=Uf(t,S,a),r.memoizedState=zf,u):(hi(r),Bf(r,k))}if(j=t.memoizedState,j!==null&&(k=j.dehydrated,k!==null)){if(m)r.flags&256?(hi(r),r.flags&=-257,r=qf(t,r,a)):r.memoizedState!==null?(pi(),r.child=t.child,r.flags|=128,r=null):(pi(),p=u.fallback,k=r.mode,u=Vs({mode:"visible",children:u.children},k),p=Yi(p,k,a,null),p.flags|=2,u.return=r,p.return=r,u.sibling=p,r.child=u,Pl(r,t.child,null,a),u=r.child,u.memoizedState=Lf(a),u.childLanes=Uf(t,S,a),r.memoizedState=zf,r=p);else if(hi(r),xd(k)){if(S=k.nextSibling&&k.nextSibling.dataset,S)var F=S.dgst;S=F,u=Error(l(419)),u.stack="",u.digest=S,Va({value:u,source:null,stack:null}),r=qf(t,r,a)}else if(Bt||$a(t,r,a,!1),S=(a&t.childLanes)!==0,Bt||S){if(S=rt,S!==null&&(u=a&-a,u=(u&42)!==0?1:Kt(u),u=(u&(S.suspendedLanes|a))!==0?0:u,u!==0&&u!==j.retryLane))throw j.retryLane=u,jl(t,u),On(S,t,u),Iy;k.data==="$?"||rd(),r=qf(t,r,a)}else k.data==="$?"?(r.flags|=192,r.child=t.child,r=null):(t=j.treeContext,mt=er(k.nextSibling),an=r,Ye=!0,Xi=null,cr=!1,t!==null&&(Fn[Qn++]=Mr,Fn[Qn++]=zr,Fn[Qn++]=Ki,Mr=t.id,zr=t.overflow,Ki=r),r=Bf(r,u.children),r.flags|=4096);return r}return p?(pi(),p=u.fallback,k=r.mode,j=t.child,F=j.sibling,u=Dr(j,{mode:"hidden",children:u.children}),u.subtreeFlags=j.subtreeFlags&65011712,F!==null?p=Dr(F,p):(p=Yi(p,k,a,null),p.flags|=2),p.return=r,u.return=r,u.sibling=p,r.child=u,u=p,p=r.child,k=t.child.memoizedState,k===null?k=Lf(a):(j=k.cachePool,j!==null?(F=Nt._currentValue,j=j.parent!==F?{parent:F,pool:F}:j):j=qm(),k={baseLanes:k.baseLanes|a,cachePool:j}),p.memoizedState=k,p.childLanes=Uf(t,S,a),r.memoizedState=zf,u):(hi(r),a=t.child,t=a.sibling,a=Dr(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 Bf(t,r){return r=Vs({mode:"visible",children:r},t.mode),r.return=t,t.child=r}function Vs(t,r){return t=En(22,t,null,r),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function qf(t,r,a){return Pl(r,t.child,null,a),t=Bf(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function eg(t,r,a){t.lanes|=r;var u=t.alternate;u!==null&&(u.lanes|=r),nf(t.return,r,a)}function Hf(t,r,a,u,p){var m=t.memoizedState;m===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:u,tail:a,tailMode:p}:(m.isBackwards=r,m.rendering=null,m.renderingStartTime=0,m.last=u,m.tail=a,m.tailMode=p)}function tg(t,r,a){var u=r.pendingProps,p=u.revealOrder,m=u.tail;if(Pt(t,r,u.children,a),u=jt.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&&eg(t,a,r);else if(t.tag===19)eg(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(jt,u),p){case"forwards":for(a=r.child,p=null;a!==null;)t=a.alternate,t!==null&&Fs(t)===null&&(p=a),a=a.sibling;a=p,a===null?(p=r.child,r.child=null):(p=a.sibling,a.sibling=null),Hf(r,!1,p,a,m);break;case"backwards":for(a=null,p=r.child,r.child=null;p!==null;){if(t=p.alternate,t!==null&&Fs(t)===null){r.child=p;break}t=p.sibling,p.sibling=a,a=p,p=t}Hf(r,!0,a,null,m);break;case"together":Hf(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function Hr(t,r,a){if(t!==null&&(r.dependencies=t.dependencies),bi|=r.lanes,(a&r.childLanes)===0)if(t!==null){if($a(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=Dr(t,t.pendingProps),r.child=a,a.return=r;t.sibling!==null;)t=t.sibling,a=a.sibling=Dr(t,t.pendingProps),a.return=r;a.sibling=null}return r.child}function Ff(t,r){return(t.lanes&r)!==0?!0:(t=t.dependencies,!!(t!==null&&ks(t)))}function bS(t,r,a){switch(r.tag){case 3:Oe(r,r.stateNode.containerInfo),si(r,Nt,t.memoizedState.cache),Ia();break;case 27:case 5:Ft(r);break;case 4:Oe(r,r.stateNode.containerInfo);break;case 10:si(r,r.type,r.memoizedProps.value);break;case 13:var u=r.memoizedState;if(u!==null)return u.dehydrated!==null?(hi(r),r.flags|=128,null):(a&r.child.childLanes)!==0?Wy(t,r,a):(hi(r),t=Hr(t,r,a),t!==null?t.sibling:null);hi(r);break;case 19:var p=(t.flags&128)!==0;if(u=(a&r.childLanes)!==0,u||($a(t,r,a,!1),u=(a&r.childLanes)!==0),p){if(u)return tg(t,r,a);r.flags|=128}if(p=r.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),R(jt,jt.current),u)break;return null;case 22:case 23:return r.lanes=0,Ky(t,r,a);case 24:si(r,Nt,t.memoizedState.cache)}return Hr(t,r,a)}function ng(t,r,a){if(t!==null)if(t.memoizedProps!==r.pendingProps)Bt=!0;else{if(!Ff(t,a)&&(r.flags&128)===0)return Bt=!1,bS(t,r,a);Bt=(t.flags&131072)!==0}else Bt=!1,Ye&&(r.flags&1048576)!==0&&jm(r,Es,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")Gc(u)?(t=nl(u,t),r.tag=1,r=Zy(null,r,u,t,a)):(r.tag=0,r=Mf(null,r,u,t,a));else{if(u!=null){if(p=u.$$typeof,p===z){r.tag=11,r=Vy(null,r,u,t,a);break e}else if(p===Y){r.tag=14,r=$y(null,r,u,t,a);break e}}throw r=J(u)||u,Error(l(306,r,""))}}return r;case 0:return Mf(t,r,r.type,r.pendingProps,a);case 1:return u=r.type,p=nl(u,r.pendingProps),Zy(t,r,u,p,a);case 3:e:{if(Oe(r,r.stateNode.containerInfo),t===null)throw Error(l(387));u=r.pendingProps;var m=r.memoizedState;p=m.element,cf(t,r),Wa(r,u,null,a);var S=r.memoizedState;if(u=S.cache,si(r,Nt,u),u!==m.cache&&rf(r,[Nt],a,!0),Ja(),u=S.element,m.isDehydrated)if(m={element:u,isDehydrated:!1,cache:S.cache},r.updateQueue.baseState=m,r.memoizedState=m,r.flags&256){r=Jy(t,r,u,a);break e}else if(u!==p){p=qn(Error(l(424)),r),Va(p),r=Jy(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(mt=er(t.firstChild),an=r,Ye=!0,Xi=null,cr=!0,a=My(r,null,u,a),r.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Ia(),u===p){r=Hr(t,r,a);break e}Pt(t,r,u,a)}r=r.child}return r;case 26:return Is(t,r),t===null?(a=a0(r.type,null,r.pendingProps,null))?r.memoizedState=a:Ye||(a=r.type,t=r.pendingProps,u=lu(ce.current).createElement(a),u[le]=r,u[he]=t,Vt(u,a,t),St(u),r.stateNode=u):r.memoizedState=a0(r.type,t.memoizedProps,r.pendingProps,t.memoizedState),null;case 27:return Ft(r),t===null&&Ye&&(u=r.stateNode=r0(r.type,r.pendingProps,ce.current),an=r,cr=!0,p=mt,Ci(r.type)?(wd=p,mt=er(u.firstChild)):mt=p),Pt(t,r,r.pendingProps.children,a),Is(t,r),t===null&&(r.flags|=4194304),r.child;case 5:return t===null&&Ye&&((p=u=mt)&&(u=YS(u,r.type,r.pendingProps,cr),u!==null?(r.stateNode=u,an=r,mt=er(u.firstChild),cr=!1,p=!0):p=!1),p||Zi(r)),Ft(r),p=r.type,m=r.pendingProps,S=t!==null?t.memoizedProps:null,u=m.children,gd(p,m)?u=null:S!==null&&gd(p,S)&&(r.flags|=32),r.memoizedState!==null&&(p=yf(t,r,fS,null,null,a),So._currentValue=p),Is(t,r),Pt(t,r,u,a),r.child;case 6:return t===null&&Ye&&((t=a=mt)&&(a=KS(a,r.pendingProps,cr),a!==null?(r.stateNode=a,an=r,mt=null,t=!0):t=!1),t||Zi(r)),null;case 13:return Wy(t,r,a);case 4:return Oe(r,r.stateNode.containerInfo),u=r.pendingProps,t===null?r.child=Pl(r,null,u,a):Pt(t,r,u,a),r.child;case 11:return Vy(t,r,r.type,r.pendingProps,a);case 7:return Pt(t,r,r.pendingProps,a),r.child;case 8:return Pt(t,r,r.pendingProps.children,a),r.child;case 12:return Pt(t,r,r.pendingProps.children,a),r.child;case 10:return u=r.pendingProps,si(r,r.type,u.value),Pt(t,r,u.children,a),r.child;case 9:return p=r.type._context,u=r.pendingProps.children,Wi(r),p=Zt(p),u=u(p),r.flags|=1,Pt(t,r,u,a),r.child;case 14:return $y(t,r,r.type,r.pendingProps,a);case 15:return Yy(t,r,r.type,r.pendingProps,a);case 19:return tg(t,r,a);case 31:return u=r.pendingProps,a=r.mode,u={mode:u.mode,children:u.children},t===null?(a=Vs(u,a),a.ref=r.ref,r.child=a,a.return=r,r=a):(a=Dr(t.child,u),a.ref=r.ref,r.child=a,a.return=r,r=a),r;case 22:return Ky(t,r,a);case 24:return Wi(r),u=Zt(Nt),t===null?(p=of(),p===null&&(p=rt,m=lf(),p.pooledCache=m,m.refCount++,m!==null&&(p.pooledCacheLanes|=a),p=m),r.memoizedState={parent:u,cache:p},uf(r),si(r,Nt,p)):((t.lanes&a)!==0&&(cf(t,r),Wa(r,null,null,a),Ja()),p=t.memoizedState,m=r.memoizedState,p.parent!==u?(p={parent:u,cache:u},r.memoizedState=p,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=p),si(r,Nt,u)):(u=m.cache,si(r,Nt,u),u!==p.cache&&rf(r,[Nt],a,!0))),Pt(t,r,r.pendingProps.children,a),r.child;case 29:throw r.pendingProps}throw Error(l(156,r.tag))}function Fr(t){t.flags|=4}function rg(t,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!f0(r)){if(r=Pn.current,r!==null&&((He&4194048)===He?fr!==null:(He&62914560)!==He&&(He&536870912)===0||r!==fr))throw Xa=sf,Hm;t.flags|=8192}}function $s(t,r){r!==null&&(t.flags|=4),t.flags&16384&&(r=t.tag!==22?Or():536870912,t.lanes|=r,Yl|=r)}function ao(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 ft(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 xS(t,r,a){var u=r.pendingProps;switch(Wc(r),r.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(r),null;case 1:return ft(r),null;case 3:return a=r.stateNode,u=null,t!==null&&(u=t.memoizedState.cache),r.memoizedState.cache!==u&&(r.flags|=2048),Ur(Nt),Ie(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Pa(r)?Fr(r):t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,zm())),ft(r),null;case 26:return a=r.memoizedState,t===null?(Fr(r),a!==null?(ft(r),rg(r,a)):(ft(r),r.flags&=-16777217)):a?a!==t.memoizedState?(Fr(r),ft(r),rg(r,a)):(ft(r),r.flags&=-16777217):(t.memoizedProps!==u&&Fr(r),ft(r),r.flags&=-16777217),null;case 27:bt(r),a=ce.current;var p=r.type;if(t!==null&&r.stateNode!=null)t.memoizedProps!==u&&Fr(r);else{if(!u){if(r.stateNode===null)throw Error(l(166));return ft(r),null}t=fe.current,Pa(r)?Dm(r):(t=r0(p,u,a),r.stateNode=t,Fr(r))}return ft(r),null;case 5:if(bt(r),a=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==u&&Fr(r);else{if(!u){if(r.stateNode===null)throw Error(l(166));return ft(r),null}if(t=fe.current,Pa(r))Dm(r);else{switch(p=lu(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&&Fr(r)}}return ft(r),r.flags&=-16777217,null;case 6:if(t&&r.stateNode!=null)t.memoizedProps!==u&&Fr(r);else{if(typeof u!="string"&&r.stateNode===null)throw Error(l(166));if(t=ce.current,Pa(r)){if(t=r.stateNode,a=r.memoizedProps,u=null,p=an,p!==null)switch(p.tag){case 27:case 5:u=p.memoizedProps}t[le]=r,t=!!(t.nodeValue===a||u!==null&&u.suppressHydrationWarning===!0||Xg(t.nodeValue,a)),t||Zi(r)}else t=lu(t).createTextNode(u),t[le]=r,r.stateNode=t}return ft(r),null;case 13:if(u=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(p=Pa(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 Ia(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;ft(r),p=!1}else p=zm(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=p),p=!0;if(!p)return r.flags&256?(qr(r),r):(qr(r),null)}if(qr(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 m=null;u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(m=u.memoizedState.cachePool.pool),m!==p&&(u.flags|=2048)}return a!==t&&a&&(r.child.flags|=8192),$s(r,r.updateQueue),ft(r),null;case 4:return Ie(),t===null&&dd(r.stateNode.containerInfo),ft(r),null;case 10:return Ur(r.type),ft(r),null;case 19:if(oe(jt),p=r.memoizedState,p===null)return ft(r),null;if(u=(r.flags&128)!==0,m=p.rendering,m===null)if(u)ao(p,!1);else{if(yt!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(m=Fs(t),m!==null){for(r.flags|=128,ao(p,!1),t=m.updateQueue,r.updateQueue=t,$s(r,t),r.subtreeFlags=0,t=a,a=r.child;a!==null;)Nm(a,t),a=a.sibling;return R(jt,jt.current&1|2),r.child}t=t.sibling}p.tail!==null&&Mt()>Gs&&(r.flags|=128,u=!0,ao(p,!1),r.lanes=4194304)}else{if(!u)if(t=Fs(m),t!==null){if(r.flags|=128,u=!0,t=t.updateQueue,r.updateQueue=t,$s(r,t),ao(p,!0),p.tail===null&&p.tailMode==="hidden"&&!m.alternate&&!Ye)return ft(r),null}else 2*Mt()-p.renderingStartTime>Gs&&a!==536870912&&(r.flags|=128,u=!0,ao(p,!1),r.lanes=4194304);p.isBackwards?(m.sibling=r.child,r.child=m):(t=p.last,t!==null?t.sibling=m:r.child=m,p.last=m)}return p.tail!==null?(r=p.tail,p.rendering=r,p.tail=r.sibling,p.renderingStartTime=Mt(),r.sibling=null,t=jt.current,R(jt,u?t&1|2:t&1),r):(ft(r),null);case 22:case 23:return qr(r),pf(),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&&(ft(r),r.subtreeFlags&6&&(r.flags|=8192)):ft(r),a=r.updateQueue,a!==null&&$s(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&&oe(el),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),r.memoizedState.cache!==a&&(r.flags|=2048),Ur(Nt),ft(r),null;case 25:return null;case 30:return null}throw Error(l(156,r.tag))}function wS(t,r){switch(Wc(r),r.tag){case 1:return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return Ur(Nt),Ie(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 26:case 27:case 5:return bt(r),null;case 13:if(qr(r),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(l(340));Ia()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return oe(jt),null;case 4:return Ie(),null;case 10:return Ur(r.type),null;case 22:case 23:return qr(r),pf(),t!==null&&oe(el),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 24:return Ur(Nt),null;case 25:return null;default:return null}}function ig(t,r){switch(Wc(r),r.tag){case 3:Ur(Nt),Ie();break;case 26:case 27:case 5:bt(r);break;case 4:Ie();break;case 13:qr(r);break;case 19:oe(jt);break;case 10:Ur(r.type);break;case 22:case 23:qr(r),pf(),t!==null&&oe(el);break;case 24:Ur(Nt)}}function oo(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 m=a.create,S=a.inst;u=m(),S.destroy=u}a=a.next}while(a!==p)}}catch(k){et(r,r.return,k)}}function mi(t,r,a){try{var u=r.updateQueue,p=u!==null?u.lastEffect:null;if(p!==null){var m=p.next;u=m;do{if((u.tag&t)===t){var S=u.inst,k=S.destroy;if(k!==void 0){S.destroy=void 0,p=r;var j=a,F=k;try{F()}catch(K){et(p,j,K)}}}u=u.next}while(u!==m)}}catch(K){et(r,r.return,K)}}function lg(t){var r=t.updateQueue;if(r!==null){var a=t.stateNode;try{$m(r,a)}catch(u){et(t,t.return,u)}}}function ag(t,r,a){a.props=nl(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(u){et(t,r,u)}}function so(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){et(t,r,p)}}function dr(t,r){var a=t.ref,u=t.refCleanup;if(a!==null)if(typeof u=="function")try{u()}catch(p){et(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){et(t,r,p)}else a.current=null}function og(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){et(t,t.return,p)}}function Qf(t,r,a){try{var u=t.stateNode;QS(u,t.type,a,r),u[he]=r}catch(p){et(t,t.return,p)}}function sg(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Ci(t.type)||t.tag===4}function Pf(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||sg(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&&Ci(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 If(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=iu));else if(u!==4&&(u===27&&Ci(t.type)&&(a=t.stateNode,r=null),t=t.child,t!==null))for(If(t,r,a),t=t.sibling;t!==null;)If(t,r,a),t=t.sibling}function Ys(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&&Ci(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(Ys(t,r,a),t=t.sibling;t!==null;)Ys(t,r,a),t=t.sibling}function ug(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(m){et(t,t.return,m)}}var Qr=!1,Et=!1,Vf=!1,cg=typeof WeakSet=="function"?WeakSet:Set,qt=null;function SS(t,r){if(t=t.containerInfo,md=fu,t=wm(t),Qc(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,m=u.focusNode;u=u.focusOffset;try{a.nodeType,m.nodeType}catch{a=null;break e}var S=0,k=-1,j=-1,F=0,K=0,Z=t,Q=null;t:for(;;){for(var P;Z!==a||p!==0&&Z.nodeType!==3||(k=S+p),Z!==m||u!==0&&Z.nodeType!==3||(j=S+u),Z.nodeType===3&&(S+=Z.nodeValue.length),(P=Z.firstChild)!==null;)Q=Z,Z=P;for(;;){if(Z===t)break t;if(Q===a&&++F===p&&(k=S),Q===m&&++K===u&&(j=S),(P=Z.nextSibling)!==null)break;Z=Q,Q=Z.parentNode}Z=P}a=k===-1||j===-1?null:{start:k,end:j}}else a=null}a=a||{start:0,end:0}}else a=null;for(yd={focusedElem:t,selectionRange:a},fu=!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,m=r.alternate,t=r.flags,r.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&m!==null){t=void 0,a=r,p=m.memoizedProps,m=m.memoizedState,u=a.stateNode;try{var Ee=nl(a.type,p,a.elementType===a.type);t=u.getSnapshotBeforeUpdate(Ee,m),u.__reactInternalSnapshotBeforeUpdate=t}catch(we){et(a,a.return,we)}}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 fg(t,r,a){var u=a.flags;switch(a.tag){case 0:case 11:case 15:yi(t,a),u&4&&oo(5,a);break;case 1:if(yi(t,a),u&4)if(t=a.stateNode,r===null)try{t.componentDidMount()}catch(S){et(a,a.return,S)}else{var p=nl(a.type,r.memoizedProps);r=r.memoizedState;try{t.componentDidUpdate(p,r,t.__reactInternalSnapshotBeforeUpdate)}catch(S){et(a,a.return,S)}}u&64&&lg(a),u&512&&so(a,a.return);break;case 3:if(yi(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{$m(t,r)}catch(S){et(a,a.return,S)}}break;case 27:r===null&&u&4&&ug(a);case 26:case 5:yi(t,a),r===null&&u&4&&og(a),u&512&&so(a,a.return);break;case 12:yi(t,a);break;case 13:yi(t,a),u&4&&pg(t,a),u&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=NS.bind(null,a),GS(t,a))));break;case 22:if(u=a.memoizedState!==null||Qr,!u){r=r!==null&&r.memoizedState!==null||Et,p=Qr;var m=Et;Qr=u,(Et=r)&&!m?gi(t,a,(a.subtreeFlags&8772)!==0):yi(t,a),Qr=p,Et=m}break;case 30:break;default:yi(t,a)}}function dg(t){var r=t.alternate;r!==null&&(t.alternate=null,dg(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 lt=null,hn=!1;function Pr(t,r,a){for(a=a.child;a!==null;)hg(t,r,a),a=a.sibling}function hg(t,r,a){if(W&&typeof W.onCommitFiberUnmount=="function")try{W.onCommitFiberUnmount($,a)}catch{}switch(a.tag){case 26:Et||dr(a,r),Pr(t,r,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Et||dr(a,r);var u=lt,p=hn;Ci(a.type)&&(lt=a.stateNode,hn=!1),Pr(t,r,a),vo(a.stateNode),lt=u,hn=p;break;case 5:Et||dr(a,r);case 6:if(u=lt,p=hn,lt=null,Pr(t,r,a),lt=u,hn=p,lt!==null)if(hn)try{(lt.nodeType===9?lt.body:lt.nodeName==="HTML"?lt.ownerDocument.body:lt).removeChild(a.stateNode)}catch(m){et(a,r,m)}else try{lt.removeChild(a.stateNode)}catch(m){et(a,r,m)}break;case 18:lt!==null&&(hn?(t=lt,t0(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),To(t)):t0(lt,a.stateNode));break;case 4:u=lt,p=hn,lt=a.stateNode.containerInfo,hn=!0,Pr(t,r,a),lt=u,hn=p;break;case 0:case 11:case 14:case 15:Et||mi(2,a,r),Et||mi(4,a,r),Pr(t,r,a);break;case 1:Et||(dr(a,r),u=a.stateNode,typeof u.componentWillUnmount=="function"&&ag(a,r,u)),Pr(t,r,a);break;case 21:Pr(t,r,a);break;case 22:Et=(u=Et)||a.memoizedState!==null,Pr(t,r,a),Et=u;break;default:Pr(t,r,a)}}function pg(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{To(t)}catch(a){et(r,r.return,a)}}function CS(t){switch(t.tag){case 13:case 19:var r=t.stateNode;return r===null&&(r=t.stateNode=new cg),r;case 22:return t=t.stateNode,r=t._retryCache,r===null&&(r=t._retryCache=new cg),r;default:throw Error(l(435,t.tag))}}function $f(t,r){var a=CS(t);r.forEach(function(u){var p=jS.bind(null,t,u);a.has(u)||(a.add(u),u.then(p,p))})}function kn(t,r){var a=r.deletions;if(a!==null)for(var u=0;u<a.length;u++){var p=a[u],m=t,S=r,k=S;e:for(;k!==null;){switch(k.tag){case 27:if(Ci(k.type)){lt=k.stateNode,hn=!1;break e}break;case 5:lt=k.stateNode,hn=!1;break e;case 3:case 4:lt=k.stateNode.containerInfo,hn=!0;break e}k=k.return}if(lt===null)throw Error(l(160));hg(m,S,p),lt=null,hn=!1,m=p.alternate,m!==null&&(m.return=null),p.return=null}if(r.subtreeFlags&13878)for(r=r.child;r!==null;)mg(r,t),r=r.sibling}var Wn=null;function mg(t,r){var a=t.alternate,u=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:kn(r,t),Tn(t),u&4&&(mi(3,t,t.return),oo(3,t),mi(5,t,t.return));break;case 1:kn(r,t),Tn(t),u&512&&(Et||a===null||dr(a,a.return)),u&64&&Qr&&(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=Wn;if(kn(r,t),Tn(t),u&512&&(Et||a===null||dr(a,a.return)),u&4){var m=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":m=p.getElementsByTagName("title")[0],(!m||m[wt]||m[le]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=p.createElement(u),p.head.insertBefore(m,p.querySelector("head > title"))),Vt(m,u,a),m[le]=t,St(m),u=m;break e;case"link":var S=u0("link","href",p).get(u+(a.href||""));if(S){for(var k=0;k<S.length;k++)if(m=S[k],m.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&m.getAttribute("rel")===(a.rel==null?null:a.rel)&&m.getAttribute("title")===(a.title==null?null:a.title)&&m.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){S.splice(k,1);break t}}m=p.createElement(u),Vt(m,u,a),p.head.appendChild(m);break;case"meta":if(S=u0("meta","content",p).get(u+(a.content||""))){for(k=0;k<S.length;k++)if(m=S[k],m.getAttribute("content")===(a.content==null?null:""+a.content)&&m.getAttribute("name")===(a.name==null?null:a.name)&&m.getAttribute("property")===(a.property==null?null:a.property)&&m.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&m.getAttribute("charset")===(a.charSet==null?null:a.charSet)){S.splice(k,1);break t}}m=p.createElement(u),Vt(m,u,a),p.head.appendChild(m);break;default:throw Error(l(468,u))}m[le]=t,St(m),u=m}t.stateNode=u}else c0(p,t.type,t.stateNode);else t.stateNode=s0(p,u,t.memoizedProps);else m!==u?(m===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):m.count--,u===null?c0(p,t.type,t.stateNode):s0(p,u,t.memoizedProps)):u===null&&t.stateNode!==null&&Qf(t,t.memoizedProps,a.memoizedProps)}break;case 27:kn(r,t),Tn(t),u&512&&(Et||a===null||dr(a,a.return)),a!==null&&u&4&&Qf(t,t.memoizedProps,a.memoizedProps);break;case 5:if(kn(r,t),Tn(t),u&512&&(Et||a===null||dr(a,a.return)),t.flags&32){p=t.stateNode;try{kl(p,"")}catch(P){et(t,t.return,P)}}u&4&&t.stateNode!=null&&(p=t.memoizedProps,Qf(t,p,a!==null?a.memoizedProps:p)),u&1024&&(Vf=!0);break;case 6:if(kn(r,t),Tn(t),u&4){if(t.stateNode===null)throw Error(l(162));u=t.memoizedProps,a=t.stateNode;try{a.nodeValue=u}catch(P){et(t,t.return,P)}}break;case 3:if(su=null,p=Wn,Wn=au(r.containerInfo),kn(r,t),Wn=p,Tn(t),u&4&&a!==null&&a.memoizedState.isDehydrated)try{To(r.containerInfo)}catch(P){et(t,t.return,P)}Vf&&(Vf=!1,yg(t));break;case 4:u=Wn,Wn=au(t.stateNode.containerInfo),kn(r,t),Tn(t),Wn=u;break;case 12:kn(r,t),Tn(t);break;case 13:kn(r,t),Tn(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Jf=Mt()),u&4&&(u=t.updateQueue,u!==null&&(t.updateQueue=null,$f(t,u)));break;case 22:p=t.memoizedState!==null;var j=a!==null&&a.memoizedState!==null,F=Qr,K=Et;if(Qr=F||p,Et=K||j,kn(r,t),Et=K,Qr=F,Tn(t),u&8192)e:for(r=t.stateNode,r._visibility=p?r._visibility&-2:r._visibility|1,p&&(a===null||j||Qr||Et||rl(t)),a=null,r=t;;){if(r.tag===5||r.tag===26){if(a===null){j=a=r;try{if(m=j.stateNode,p)S=m.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none";else{k=j.stateNode;var Z=j.memoizedProps.style,Q=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;k.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(P){et(j,j.return,P)}}}else if(r.tag===6){if(a===null){j=r;try{j.stateNode.nodeValue=p?"":j.memoizedProps}catch(P){et(j,j.return,P)}}}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,$f(t,a))));break;case 19:kn(r,t),Tn(t),u&4&&(u=t.updateQueue,u!==null&&(t.updateQueue=null,$f(t,u)));break;case 30:break;case 21:break;default:kn(r,t),Tn(t)}}function Tn(t){var r=t.flags;if(r&2){try{for(var a,u=t.return;u!==null;){if(sg(u)){a=u;break}u=u.return}if(a==null)throw Error(l(160));switch(a.tag){case 27:var p=a.stateNode,m=Pf(t);Ys(t,m,p);break;case 5:var S=a.stateNode;a.flags&32&&(kl(S,""),a.flags&=-33);var k=Pf(t);Ys(t,k,S);break;case 3:case 4:var j=a.stateNode.containerInfo,F=Pf(t);If(t,F,j);break;default:throw Error(l(161))}}catch(K){et(t,t.return,K)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function yg(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var r=t;yg(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),t=t.sibling}}function yi(t,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)fg(t,r.alternate,r),r=r.sibling}function rl(t){for(t=t.child;t!==null;){var r=t;switch(r.tag){case 0:case 11:case 14:case 15:mi(4,r,r.return),rl(r);break;case 1:dr(r,r.return);var a=r.stateNode;typeof a.componentWillUnmount=="function"&&ag(r,r.return,a),rl(r);break;case 27:vo(r.stateNode);case 26:case 5:dr(r,r.return),rl(r);break;case 22:r.memoizedState===null&&rl(r);break;case 30:rl(r);break;default:rl(r)}t=t.sibling}}function gi(t,r,a){for(a=a&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var u=r.alternate,p=t,m=r,S=m.flags;switch(m.tag){case 0:case 11:case 15:gi(p,m,a),oo(4,m);break;case 1:if(gi(p,m,a),u=m,p=u.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(F){et(u,u.return,F)}if(u=m,p=u.updateQueue,p!==null){var k=u.stateNode;try{var j=p.shared.hiddenCallbacks;if(j!==null)for(p.shared.hiddenCallbacks=null,p=0;p<j.length;p++)Vm(j[p],k)}catch(F){et(u,u.return,F)}}a&&S&64&&lg(m),so(m,m.return);break;case 27:ug(m);case 26:case 5:gi(p,m,a),a&&u===null&&S&4&&og(m),so(m,m.return);break;case 12:gi(p,m,a);break;case 13:gi(p,m,a),a&&S&4&&pg(p,m);break;case 22:m.memoizedState===null&&gi(p,m,a),so(m,m.return);break;case 30:break;default:gi(p,m,a)}r=r.sibling}}function Yf(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&&Ya(a))}function Kf(t,r){t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&Ya(t))}function hr(t,r,a,u){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)gg(t,r,a,u),r=r.sibling}function gg(t,r,a,u){var p=r.flags;switch(r.tag){case 0:case 11:case 15:hr(t,r,a,u),p&2048&&oo(9,r);break;case 1:hr(t,r,a,u);break;case 3:hr(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&&Ya(t)));break;case 12:if(p&2048){hr(t,r,a,u),t=r.stateNode;try{var m=r.memoizedProps,S=m.id,k=m.onPostCommit;typeof k=="function"&&k(S,r.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(j){et(r,r.return,j)}}else hr(t,r,a,u);break;case 13:hr(t,r,a,u);break;case 23:break;case 22:m=r.stateNode,S=r.alternate,r.memoizedState!==null?m._visibility&2?hr(t,r,a,u):uo(t,r):m._visibility&2?hr(t,r,a,u):(m._visibility|=2,Il(t,r,a,u,(r.subtreeFlags&10256)!==0)),p&2048&&Yf(S,r);break;case 24:hr(t,r,a,u),p&2048&&Kf(r.alternate,r);break;default:hr(t,r,a,u)}}function Il(t,r,a,u,p){for(p=p&&(r.subtreeFlags&10256)!==0,r=r.child;r!==null;){var m=t,S=r,k=a,j=u,F=S.flags;switch(S.tag){case 0:case 11:case 15:Il(m,S,k,j,p),oo(8,S);break;case 23:break;case 22:var K=S.stateNode;S.memoizedState!==null?K._visibility&2?Il(m,S,k,j,p):uo(m,S):(K._visibility|=2,Il(m,S,k,j,p)),p&&F&2048&&Yf(S.alternate,S);break;case 24:Il(m,S,k,j,p),p&&F&2048&&Kf(S.alternate,S);break;default:Il(m,S,k,j,p)}r=r.sibling}}function uo(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:uo(a,u),p&2048&&Yf(u.alternate,u);break;case 24:uo(a,u),p&2048&&Kf(u.alternate,u);break;default:uo(a,u)}r=r.sibling}}var co=8192;function Vl(t){if(t.subtreeFlags&co)for(t=t.child;t!==null;)vg(t),t=t.sibling}function vg(t){switch(t.tag){case 26:Vl(t),t.flags&co&&t.memoizedState!==null&&s2(Wn,t.memoizedState,t.memoizedProps);break;case 5:Vl(t);break;case 3:case 4:var r=Wn;Wn=au(t.stateNode.containerInfo),Vl(t),Wn=r;break;case 22:t.memoizedState===null&&(r=t.alternate,r!==null&&r.memoizedState!==null?(r=co,co=16777216,Vl(t),co=r):Vl(t));break;default:Vl(t)}}function bg(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 fo(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,wg(u,t)}bg(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)xg(t),t=t.sibling}function xg(t){switch(t.tag){case 0:case 11:case 15:fo(t),t.flags&2048&&mi(9,t,t.return);break;case 3:fo(t);break;case 12:fo(t);break;case 22:var r=t.stateNode;t.memoizedState!==null&&r._visibility&2&&(t.return===null||t.return.tag!==13)?(r._visibility&=-3,Ks(t)):fo(t);break;default:fo(t)}}function Ks(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,wg(u,t)}bg(t)}for(t=t.child;t!==null;){switch(r=t,r.tag){case 0:case 11:case 15:mi(8,r,r.return),Ks(r);break;case 22:a=r.stateNode,a._visibility&2&&(a._visibility&=-3,Ks(r));break;default:Ks(r)}t=t.sibling}}function wg(t,r){for(;qt!==null;){var a=qt;switch(a.tag){case 0:case 11:case 15:mi(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:Ya(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,m=u.return;if(dg(u),u===a){qt=null;break e}if(p!==null){p.return=m,qt=p;break e}qt=m}}}var ES={getCacheForType:function(t){var r=Zt(Nt),a=r.data.get(t);return a===void 0&&(a=t(),r.data.set(t,a)),a}},kS=typeof WeakMap=="function"?WeakMap:Map,Ge=0,rt=null,Me=null,He=0,Xe=0,An=null,vi=!1,$l=!1,Gf=!1,Ir=0,yt=0,bi=0,il=0,Xf=0,In=0,Yl=0,ho=null,pn=null,Zf=!1,Jf=0,Gs=1/0,Xs=null,xi=null,It=0,wi=null,Kl=null,Gl=0,Wf=0,ed=null,Sg=null,po=0,td=null;function _n(){if((Ge&2)!==0&&He!==0)return He&-He;if(B.T!==null){var t=Ll;return t!==0?t:sd()}return De()}function Cg(){In===0&&(In=(He&536870912)===0||Ye?ii():536870912);var t=Pn.current;return t!==null&&(t.flags|=32),In}function On(t,r,a){(t===rt&&(Xe===2||Xe===9)||t.cancelPendingCommit!==null)&&(Xl(t,0),Si(t,He,In,!1)),Mn(t,a),((Ge&2)===0||t!==rt)&&(t===rt&&((Ge&2)===0&&(il|=a),yt===4&&Si(t,He,In,!1)),pr(t))}function Eg(t,r,a){if((Ge&6)!==0)throw Error(l(327));var u=!a&&(r&124)===0&&(r&t.expiredLanes)===0||zt(t,r),p=u?_S(t,r):id(t,r,!0),m=u;do{if(p===0){$l&&!u&&Si(t,r,0,!1);break}else{if(a=t.current.alternate,m&&!TS(a)){p=id(t,r,!1),m=!1;continue}if(p===2){if(m=r,t.errorRecoveryDisabledLanes&m)var S=0;else S=t.pendingLanes&-536870913,S=S!==0?S:S&536870912?536870912:0;if(S!==0){r=S;e:{var k=t;p=ho;var j=k.current.memoizedState.isDehydrated;if(j&&(Xl(k,S).flags|=256),S=id(k,S,!1),S!==2){if(Gf&&!j){k.errorRecoveryDisabledLanes|=m,il|=m,p=4;break e}m=pn,pn=p,m!==null&&(pn===null?pn=m:pn.push.apply(pn,m))}p=S}if(m=!1,p!==2)continue}}if(p===1){Xl(t,0),Si(t,r,0,!0);break}e:{switch(u=t,m=p,m){case 0:case 1:throw Error(l(345));case 4:if((r&4194048)!==r)break;case 6:Si(u,r,In,!vi);break e;case 2:pn=null;break;case 3:case 5:break;default:throw Error(l(329))}if((r&62914560)===r&&(p=Jf+300-Mt(),10<p)){if(Si(u,r,In,!vi),ut(u,0,!0)!==0)break e;u.timeoutHandle=Wg(kg.bind(null,u,a,pn,Xs,Zf,r,In,il,Yl,vi,m,2,-0,0),p);break e}kg(u,a,pn,Xs,Zf,r,In,il,Yl,vi,m,0,-0,0)}}break}while(!0);pr(t)}function kg(t,r,a,u,p,m,S,k,j,F,K,Z,Q,P){if(t.timeoutHandle=-1,Z=r.subtreeFlags,(Z&8192||(Z&16785408)===16785408)&&(wo={stylesheets:null,count:0,unsuspend:o2},vg(r),Z=u2(),Z!==null)){t.cancelPendingCommit=Z(jg.bind(null,t,r,m,a,u,p,S,k,j,K,1,Q,P)),Si(t,m,S,!F);return}jg(t,r,m,a,u,p,S,k,j)}function TS(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],m=p.getSnapshot;p=p.value;try{if(!Cn(m(),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 Si(t,r,a,u){r&=~Xf,r&=~il,t.suspendedLanes|=r,t.pingedLanes&=~r,u&&(t.warmLanes|=r),u=t.expirationTimes;for(var p=r;0<p;){var m=31-ye(p),S=1<<m;u[m]=-1,p&=~S}a!==0&&Fi(t,a,r)}function Zs(){return(Ge&6)===0?(mo(0),!1):!0}function nd(){if(Me!==null){if(Xe===0)var t=Me.return;else t=Me,Lr=Ji=null,bf(t),Ql=null,io=0,t=Me;for(;t!==null;)ig(t.alternate,t),t=t.return;Me=null}}function Xl(t,r){var a=t.timeoutHandle;a!==-1&&(t.timeoutHandle=-1,IS(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),nd(),rt=t,Me=a=Dr(t.current,null),He=r,Xe=0,An=null,vi=!1,$l=zt(t,r),Gf=!1,Yl=In=Xf=il=bi=yt=0,pn=ho=null,Zf=!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-ye(u),m=1<<p;r|=t[p],u&=~m}return Ir=r,bs(),a}function Tg(t,r){Re=null,B.H=Bs,r===Ga||r===_s?(r=Pm(),Xe=3):r===Hm?(r=Pm(),Xe=4):Xe=r===Iy?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,An=r,Me===null&&(yt=1,Ps(t,qn(r,t.current)))}function Ag(){var t=B.H;return B.H=Bs,t===null?Bs:t}function _g(){var t=B.A;return B.A=ES,t}function rd(){yt=4,vi||(He&4194048)!==He&&Pn.current!==null||($l=!0),(bi&134217727)===0&&(il&134217727)===0||rt===null||Si(rt,He,In,!1)}function id(t,r,a){var u=Ge;Ge|=2;var p=Ag(),m=_g();(rt!==t||He!==r)&&(Xs=null,Xl(t,r)),r=!1;var S=yt;e:do try{if(Xe!==0&&Me!==null){var k=Me,j=An;switch(Xe){case 8:nd(),S=6;break e;case 3:case 2:case 9:case 6:Pn.current===null&&(r=!0);var F=Xe;if(Xe=0,An=null,Zl(t,k,j,F),a&&$l){S=0;break e}break;default:F=Xe,Xe=0,An=null,Zl(t,k,j,F)}}AS(),S=yt;break}catch(K){Tg(t,K)}while(!0);return r&&t.shellSuspendCounter++,Lr=Ji=null,Ge=u,B.H=p,B.A=m,Me===null&&(rt=null,He=0,bs()),S}function AS(){for(;Me!==null;)Og(Me)}function _S(t,r){var a=Ge;Ge|=2;var u=Ag(),p=_g();rt!==t||He!==r?(Xs=null,Gs=Mt()+500,Xl(t,r)):$l=zt(t,r);e:do try{if(Xe!==0&&Me!==null){r=Me;var m=An;t:switch(Xe){case 1:Xe=0,An=null,Zl(t,r,m,1);break;case 2:case 9:if(Fm(m)){Xe=0,An=null,Rg(r);break}r=function(){Xe!==2&&Xe!==9||rt!==t||(Xe=7),pr(t)},m.then(r,r);break e;case 3:Xe=7;break e;case 4:Xe=5;break e;case 7:Fm(m)?(Xe=0,An=null,Rg(r)):(Xe=0,An=null,Zl(t,r,m,7));break;case 5:var S=null;switch(Me.tag){case 26:S=Me.memoizedState;case 5:case 27:var k=Me;if(!S||f0(S)){Xe=0,An=null;var j=k.sibling;if(j!==null)Me=j;else{var F=k.return;F!==null?(Me=F,Js(F)):Me=null}break t}}Xe=0,An=null,Zl(t,r,m,5);break;case 6:Xe=0,An=null,Zl(t,r,m,6);break;case 8:nd(),yt=6;break e;default:throw Error(l(462))}}OS();break}catch(K){Tg(t,K)}while(!0);return Lr=Ji=null,B.H=u,B.A=p,Ge=a,Me!==null?0:(rt=null,He=0,bs(),yt)}function OS(){for(;Me!==null&&!ni();)Og(Me)}function Og(t){var r=ng(t.alternate,t,Ir);t.memoizedProps=t.pendingProps,r===null?Js(t):Me=r}function Rg(t){var r=t,a=r.alternate;switch(r.tag){case 15:case 0:r=Xy(a,r,r.pendingProps,r.type,void 0,He);break;case 11:r=Xy(a,r,r.pendingProps,r.type.render,r.ref,He);break;case 5:bf(r);default:ig(a,r),r=Me=Nm(r,Ir),r=ng(a,r,Ir)}t.memoizedProps=t.pendingProps,r===null?Js(t):Me=r}function Zl(t,r,a,u){Lr=Ji=null,bf(r),Ql=null,io=0;var p=r.return;try{if(vS(t,p,r,a,He)){yt=1,Ps(t,qn(a,t.current)),Me=null;return}}catch(m){if(p!==null)throw Me=p,m;yt=1,Ps(t,qn(a,t.current)),Me=null;return}r.flags&32768?(Ye||u===1?t=!0:$l||(He&536870912)!==0?t=!1:(vi=t=!0,(u===2||u===9||u===3||u===6)&&(u=Pn.current,u!==null&&u.tag===13&&(u.flags|=16384))),Ng(r,t)):Js(r)}function Js(t){var r=t;do{if((r.flags&32768)!==0){Ng(r,vi);return}t=r.return;var a=xS(r.alternate,r,Ir);if(a!==null){Me=a;return}if(r=r.sibling,r!==null){Me=r;return}Me=r=t}while(r!==null);yt===0&&(yt=5)}function Ng(t,r){do{var a=wS(t.alternate,t);if(a!==null){a.flags&=32767,Me=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!r&&(t=t.sibling,t!==null)){Me=t;return}Me=t=a}while(t!==null);yt=6,Me=null}function jg(t,r,a,u,p,m,S,k,j){t.cancelPendingCommit=null;do Ws();while(It!==0);if((Ge&6)!==0)throw Error(l(327));if(r!==null){if(r===t.current)throw Error(l(177));if(m=r.lanes|r.childLanes,m|=Yc,Hi(t,a,m,S,k,j),t===rt&&(Me=rt=null,He=0),Kl=r,wi=t,Gl=a,Wf=m,ed=p,Sg=u,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,DS(Dn,function(){return Ug(),null})):(t.callbackNode=null,t.callbackPriority=0),u=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||u){u=B.T,B.T=null,p=X.p,X.p=2,S=Ge,Ge|=4;try{SS(t,r,a)}finally{Ge=S,X.p=p,B.T=u}}It=1,Dg(),Mg(),zg()}}function Dg(){if(It===1){It=0;var t=wi,r=Kl,a=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||a){a=B.T,B.T=null;var u=X.p;X.p=2;var p=Ge;Ge|=4;try{mg(r,t);var m=yd,S=wm(t.containerInfo),k=m.focusedElem,j=m.selectionRange;if(S!==k&&k&&k.ownerDocument&&xm(k.ownerDocument.documentElement,k)){if(j!==null&&Qc(k)){var F=j.start,K=j.end;if(K===void 0&&(K=F),"selectionStart"in k)k.selectionStart=F,k.selectionEnd=Math.min(K,k.value.length);else{var Z=k.ownerDocument||document,Q=Z&&Z.defaultView||window;if(Q.getSelection){var P=Q.getSelection(),Ee=k.textContent.length,we=Math.min(j.start,Ee),We=j.end===void 0?we:Math.min(j.end,Ee);!P.extend&&we>We&&(S=We,We=we,we=S);var U=bm(k,we),D=bm(k,We);if(U&&D&&(P.rangeCount!==1||P.anchorNode!==U.node||P.anchorOffset!==U.offset||P.focusNode!==D.node||P.focusOffset!==D.offset)){var H=Z.createRange();H.setStart(U.node,U.offset),P.removeAllRanges(),we>We?(P.addRange(H),P.extend(D.node,D.offset)):(H.setEnd(D.node,D.offset),P.addRange(H))}}}}for(Z=[],P=k;P=P.parentNode;)P.nodeType===1&&Z.push({element:P,left:P.scrollLeft,top:P.scrollTop});for(typeof k.focus=="function"&&k.focus(),k=0;k<Z.length;k++){var G=Z[k];G.element.scrollLeft=G.left,G.element.scrollTop=G.top}}fu=!!md,yd=md=null}finally{Ge=p,X.p=u,B.T=a}}t.current=r,It=2}}function Mg(){if(It===2){It=0;var t=wi,r=Kl,a=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||a){a=B.T,B.T=null;var u=X.p;X.p=2;var p=Ge;Ge|=4;try{fg(t,r.alternate,r)}finally{Ge=p,X.p=u,B.T=a}}It=3}}function zg(){if(It===4||It===3){It=0,Dt();var t=wi,r=Kl,a=Gl,u=Sg;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?It=5:(It=0,Kl=wi=null,Lg(t,t.pendingLanes));var p=t.pendingLanes;if(p===0&&(xi=null),be(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=X.p,X.p=2,B.T=null;try{for(var m=t.onRecoverableError,S=0;S<u.length;S++){var k=u[S];m(k.value,{componentStack:k.stack})}}finally{B.T=r,X.p=p}}(Gl&3)!==0&&Ws(),pr(t),p=t.pendingLanes,(a&4194090)!==0&&(p&42)!==0?t===td?po++:(po=0,td=t):po=0,mo(0)}}function Lg(t,r){(t.pooledCacheLanes&=r)===0&&(r=t.pooledCache,r!=null&&(t.pooledCache=null,Ya(r)))}function Ws(t){return Dg(),Mg(),zg(),Ug()}function Ug(){if(It!==5)return!1;var t=wi,r=Wf;Wf=0;var a=be(Gl),u=B.T,p=X.p;try{X.p=32>a?32:a,B.T=null,a=ed,ed=null;var m=wi,S=Gl;if(It=0,Kl=wi=null,Gl=0,(Ge&6)!==0)throw Error(l(331));var k=Ge;if(Ge|=4,xg(m.current),gg(m,m.current,S,a),Ge=k,mo(0,!1),W&&typeof W.onPostCommitFiberRoot=="function")try{W.onPostCommitFiberRoot($,m)}catch{}return!0}finally{X.p=p,B.T=u,Lg(t,r)}}function Bg(t,r,a){r=qn(a,r),r=Df(t.stateNode,r,2),t=fi(t,r,2),t!==null&&(Mn(t,2),pr(t))}function et(t,r,a){if(t.tag===3)Bg(t,t,a);else for(;r!==null;){if(r.tag===3){Bg(r,t,a);break}else if(r.tag===1){var u=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(xi===null||!xi.has(u))){t=qn(a,t),a=Qy(2),u=fi(r,a,2),u!==null&&(Py(a,u,r,t),Mn(u,2),pr(u));break}}r=r.return}}function ld(t,r,a){var u=t.pingCache;if(u===null){u=t.pingCache=new kS;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)||(Gf=!0,p.add(a),t=RS.bind(null,t,r,a),r.then(t,t))}function RS(t,r,a){var u=t.pingCache;u!==null&&u.delete(r),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,rt===t&&(He&a)===a&&(yt===4||yt===3&&(He&62914560)===He&&300>Mt()-Jf?(Ge&2)===0&&Xl(t,0):Xf|=a,Yl===He&&(Yl=0)),pr(t)}function qg(t,r){r===0&&(r=Or()),t=jl(t,r),t!==null&&(Mn(t,r),pr(t))}function NS(t){var r=t.memoizedState,a=0;r!==null&&(a=r.retryLane),qg(t,a)}function jS(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),qg(t,a)}function DS(t,r){return Xn(t,r)}var eu=null,Jl=null,ad=!1,tu=!1,od=!1,ll=0;function pr(t){t!==Jl&&t.next===null&&(Jl===null?eu=Jl=t:Jl=Jl.next=t),tu=!0,ad||(ad=!0,zS())}function mo(t,r){if(!od&&tu){od=!0;do for(var a=!1,u=eu;u!==null;){if(t!==0){var p=u.pendingLanes;if(p===0)var m=0;else{var S=u.suspendedLanes,k=u.pingedLanes;m=(1<<31-ye(42|t)+1)-1,m&=p&~(S&~k),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(a=!0,Pg(u,m))}else m=He,m=ut(u,u===rt?m:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(m&3)===0||zt(u,m)||(a=!0,Pg(u,m));u=u.next}while(a);od=!1}}function MS(){Hg()}function Hg(){tu=ad=!1;var t=0;ll!==0&&(PS()&&(t=ll),ll=0);for(var r=Mt(),a=null,u=eu;u!==null;){var p=u.next,m=Fg(u,r);m===0?(u.next=null,a===null?eu=p:a.next=p,p===null&&(Jl=a)):(a=u,(t!==0||(m&3)!==0)&&(tu=!0)),u=p}mo(t)}function Fg(t,r){for(var a=t.suspendedLanes,u=t.pingedLanes,p=t.expirationTimes,m=t.pendingLanes&-62914561;0<m;){var S=31-ye(m),k=1<<S,j=p[S];j===-1?((k&a)===0||(k&u)!==0)&&(p[S]=Lt(k,r)):j<=r&&(t.expiredLanes|=k),m&=~k}if(r=rt,a=He,a=ut(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&&cn(u),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||zt(t,a)){if(r=a&-a,r===t.callbackPriority)return r;switch(u!==null&&cn(u),be(a)){case 2:case 8:a=Ke;break;case 32:a=Dn;break;case 268435456:a=or;break;default:a=Dn}return u=Qg.bind(null,t),a=Xn(a,u),t.callbackPriority=r,t.callbackNode=a,r}return u!==null&&u!==null&&cn(u),t.callbackPriority=2,t.callbackNode=null,2}function Qg(t,r){if(It!==0&&It!==5)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(Ws()&&t.callbackNode!==a)return null;var u=He;return u=ut(t,t===rt?u:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),u===0?null:(Eg(t,u,r),Fg(t,Mt()),t.callbackNode!=null&&t.callbackNode===a?Qg.bind(null,t):null)}function Pg(t,r){if(Ws())return null;Eg(t,r,!0)}function zS(){VS(function(){(Ge&6)!==0?Xn(xn,MS):Hg()})}function sd(){return ll===0&&(ll=ii()),ll}function Ig(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:ds(""+t)}function Vg(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 LS(t,r,a,u,p){if(r==="submit"&&a&&a.stateNode===p){var m=Ig((p[he]||null).action),S=u.submitter;S&&(r=(r=S[he]||null)?Ig(r.formAction):S.getAttribute("formAction"),r!==null&&(m=r,S=null));var k=new ys("action","action",null,u,p);t.push({event:k,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(ll!==0){var j=S?Vg(p,S):new FormData(p);_f(a,{pending:!0,data:j,method:p.method,action:m},null,j)}}else typeof m=="function"&&(k.preventDefault(),j=S?Vg(p,S):new FormData(p),_f(a,{pending:!0,data:j,method:p.method,action:m},m,j))},currentTarget:p}]})}}for(var ud=0;ud<$c.length;ud++){var cd=$c[ud],US=cd.toLowerCase(),BS=cd[0].toUpperCase()+cd.slice(1);Jn(US,"on"+BS)}Jn(Em,"onAnimationEnd"),Jn(km,"onAnimationIteration"),Jn(Tm,"onAnimationStart"),Jn("dblclick","onDoubleClick"),Jn("focusin","onFocus"),Jn("focusout","onBlur"),Jn(tS,"onTransitionRun"),Jn(nS,"onTransitionStart"),Jn(rS,"onTransitionCancel"),Jn(Am,"onTransitionEnd"),Rr("onMouseEnter",["mouseout","mouseover"]),Rr("onMouseLeave",["mouseout","mouseover"]),Rr("onPointerEnter",["pointerout","pointerover"]),Rr("onPointerLeave",["pointerout","pointerover"]),ur("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ur("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ur("onBeforeInput",["compositionend","keypress","textInput","paste"]),ur("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ur("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ur("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yo="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(" "),qS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(yo));function $g(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 m=void 0;if(r)for(var S=u.length-1;0<=S;S--){var k=u[S],j=k.instance,F=k.currentTarget;if(k=k.listener,j!==m&&p.isPropagationStopped())break e;m=k,p.currentTarget=F;try{m(p)}catch(K){Qs(K)}p.currentTarget=null,m=j}else for(S=0;S<u.length;S++){if(k=u[S],j=k.instance,F=k.currentTarget,k=k.listener,j!==m&&p.isPropagationStopped())break e;m=k,p.currentTarget=F;try{m(p)}catch(K){Qs(K)}p.currentTarget=null,m=j}}}}function ze(t,r){var a=r[ct];a===void 0&&(a=r[ct]=new Set);var u=t+"__bubble";a.has(u)||(Yg(r,t,2,!1),a.add(u))}function fd(t,r,a){var u=0;r&&(u|=4),Yg(a,t,u,r)}var nu="_reactListening"+Math.random().toString(36).slice(2);function dd(t){if(!t[nu]){t[nu]=!0,ja.forEach(function(a){a!=="selectionchange"&&(qS.has(a)||fd(a,!1,t),fd(a,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[nu]||(r[nu]=!0,fd("selectionchange",!1,r))}}function Yg(t,r,a,u){switch(g0(r)){case 2:var p=d2;break;case 8:p=h2;break;default:p=Td}a=p.bind(null,r,a,t),p=void 0,!Dc||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 hd(t,r,a,u,p){var m=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 k=u.stateNode.containerInfo;if(k===p)break;if(S===4)for(S=u.return;S!==null;){var j=S.tag;if((j===3||j===4)&&S.stateNode.containerInfo===p)return;S=S.return}for(;k!==null;){if(S=Ve(k),S===null)return;if(j=S.tag,j===5||j===6||j===26||j===27){u=m=S;continue e}k=k.parentNode}}u=u.return}em(function(){var F=m,K=Nc(a),Z=[];e:{var Q=_m.get(t);if(Q!==void 0){var P=ys,Ee=t;switch(t){case"keypress":if(ps(a)===0)break e;case"keydown":case"keyup":P=Dw;break;case"focusin":Ee="focus",P=Uc;break;case"focusout":Ee="blur",P=Uc;break;case"beforeblur":case"afterblur":P=Uc;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":P=rm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":P=ww;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":P=Lw;break;case Em:case km:case Tm:P=Ew;break;case Am:P=Bw;break;case"scroll":case"scrollend":P=bw;break;case"wheel":P=Hw;break;case"copy":case"cut":case"paste":P=Tw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":P=lm;break;case"toggle":case"beforetoggle":P=Qw}var we=(r&4)!==0,We=!we&&(t==="scroll"||t==="scrollend"),U=we?Q!==null?Q+"Capture":null:Q;we=[];for(var D=F,H;D!==null;){var G=D;if(H=G.stateNode,G=G.tag,G!==5&&G!==26&&G!==27||H===null||U===null||(G=Ma(D,U),G!=null&&we.push(go(D,G,H))),We)break;D=D.return}0<we.length&&(Q=new P(Q,Ee,null,a,K),Z.push({event:Q,listeners:we}))}}if((r&7)===0){e:{if(Q=t==="mouseover"||t==="pointerover",P=t==="mouseout"||t==="pointerout",Q&&a!==Rc&&(Ee=a.relatedTarget||a.fromElement)&&(Ve(Ee)||Ee[Se]))break e;if((P||Q)&&(Q=K.window===K?K:(Q=K.ownerDocument)?Q.defaultView||Q.parentWindow:window,P?(Ee=a.relatedTarget||a.toElement,P=F,Ee=Ee?Ve(Ee):null,Ee!==null&&(We=s(Ee),we=Ee.tag,Ee!==We||we!==5&&we!==27&&we!==6)&&(Ee=null)):(P=null,Ee=F),P!==Ee)){if(we=rm,G="onMouseLeave",U="onMouseEnter",D="mouse",(t==="pointerout"||t==="pointerover")&&(we=lm,G="onPointerLeave",U="onPointerEnter",D="pointer"),We=P==null?Q:Qi(P),H=Ee==null?Q:Qi(Ee),Q=new we(G,D+"leave",P,a,K),Q.target=We,Q.relatedTarget=H,G=null,Ve(K)===F&&(we=new we(U,D+"enter",Ee,a,K),we.target=H,we.relatedTarget=We,G=we),We=G,P&&Ee)t:{for(we=P,U=Ee,D=0,H=we;H;H=Wl(H))D++;for(H=0,G=U;G;G=Wl(G))H++;for(;0<D-H;)we=Wl(we),D--;for(;0<H-D;)U=Wl(U),H--;for(;D--;){if(we===U||U!==null&&we===U.alternate)break t;we=Wl(we),U=Wl(U)}we=null}else we=null;P!==null&&Kg(Z,Q,P,we,!1),Ee!==null&&We!==null&&Kg(Z,We,Ee,we,!0)}}e:{if(Q=F?Qi(F):window,P=Q.nodeName&&Q.nodeName.toLowerCase(),P==="select"||P==="input"&&Q.type==="file")var de=hm;else if(fm(Q))if(pm)de=Jw;else{de=Xw;var Ne=Gw}else P=Q.nodeName,!P||P.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?F&&Oc(F.elementType)&&(de=hm):de=Zw;if(de&&(de=de(t,F))){dm(Z,de,a,K);break e}Ne&&Ne(t,Q,F),t==="focusout"&&F&&Q.type==="number"&&F.memoizedProps.value!=null&&_c(Q,"number",Q.value)}switch(Ne=F?Qi(F):window,t){case"focusin":(fm(Ne)||Ne.contentEditable==="true")&&(Ol=Ne,Pc=F,Qa=null);break;case"focusout":Qa=Pc=Ol=null;break;case"mousedown":Ic=!0;break;case"contextmenu":case"mouseup":case"dragend":Ic=!1,Sm(Z,a,K);break;case"selectionchange":if(eS)break;case"keydown":case"keyup":Sm(Z,a,K)}var ge;if(qc)e:{switch(t){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else _l?um(t,a)&&(Ce="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(Ce="onCompositionStart");Ce&&(am&&a.locale!=="ko"&&(_l||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&_l&&(ge=tm()):(oi=K,Mc="value"in oi?oi.value:oi.textContent,_l=!0)),Ne=ru(F,Ce),0<Ne.length&&(Ce=new im(Ce,t,null,a,K),Z.push({event:Ce,listeners:Ne}),ge?Ce.data=ge:(ge=cm(a),ge!==null&&(Ce.data=ge)))),(ge=Iw?Vw(t,a):$w(t,a))&&(Ce=ru(F,"onBeforeInput"),0<Ce.length&&(Ne=new im("onBeforeInput","beforeinput",null,a,K),Z.push({event:Ne,listeners:Ce}),Ne.data=ge)),LS(Z,t,F,a,K)}$g(Z,r)})}function go(t,r,a){return{instance:t,listener:r,currentTarget:a}}function ru(t,r){for(var a=r+"Capture",u=[];t!==null;){var p=t,m=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||m===null||(p=Ma(t,a),p!=null&&u.unshift(go(t,p,m)),p=Ma(t,r),p!=null&&u.push(go(t,p,m))),t.tag===3)return u;t=t.return}return[]}function Wl(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Kg(t,r,a,u,p){for(var m=r._reactName,S=[];a!==null&&a!==u;){var k=a,j=k.alternate,F=k.stateNode;if(k=k.tag,j!==null&&j===u)break;k!==5&&k!==26&&k!==27||F===null||(j=F,p?(F=Ma(a,m),F!=null&&S.unshift(go(a,F,j))):p||(F=Ma(a,m),F!=null&&S.push(go(a,F,j)))),a=a.return}S.length!==0&&t.push({event:r,listeners:S})}var HS=/\r\n?/g,FS=/\u0000|\uFFFD/g;function Gg(t){return(typeof t=="string"?t:""+t).replace(HS,`
49
+ `).replace(FS,"")}function Xg(t,r){return r=Gg(r),Gg(t)===r}function iu(){}function Je(t,r,a,u,p,m){switch(a){case"children":typeof u=="string"?r==="body"||r==="textarea"&&u===""||kl(t,u):(typeof u=="number"||typeof u=="bigint")&&r!=="body"&&kl(t,""+u);break;case"className":ai(t,"class",u);break;case"tabIndex":ai(t,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":ai(t,a,u);break;case"style":Jp(t,u,m);break;case"data":if(r!=="object"){ai(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=ds(""+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 m=="function"&&(a==="formAction"?(r!=="input"&&Je(t,r,"name",p.name,p,null),Je(t,r,"formEncType",p.formEncType,p,null),Je(t,r,"formMethod",p.formMethod,p,null),Je(t,r,"formTarget",p.formTarget,p,null)):(Je(t,r,"encType",p.encType,p,null),Je(t,r,"method",p.method,p,null),Je(t,r,"target",p.target,p,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){t.removeAttribute(a);break}u=ds(""+u),t.setAttribute(a,u);break;case"onClick":u!=null&&(t.onclick=iu);break;case"onScroll":u!=null&&ze("scroll",t);break;case"onScrollEnd":u!=null&&ze("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=ds(""+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":ze("beforetoggle",t),ze("toggle",t),Sl(t,"popover",u);break;case"xlinkActuate":Nr(t,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Nr(t,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Nr(t,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Nr(t,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Nr(t,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Nr(t,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Nr(t,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Nr(t,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Nr(t,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":Sl(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=gw.get(a)||a,Sl(t,a,u))}}function pd(t,r,a,u,p,m){switch(a){case"style":Jp(t,u,m);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"?kl(t,u):(typeof u=="number"||typeof u=="bigint")&&kl(t,""+u);break;case"onScroll":u!=null&&ze("scroll",t);break;case"onScrollEnd":u!=null&&ze("scrollend",t);break;case"onClick":u!=null&&(t.onclick=iu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Da.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(p=a.endsWith("Capture"),r=a.slice(2,p?a.length-7:void 0),m=t[he]||null,m=m!=null?m[a]:null,typeof m=="function"&&t.removeEventListener(r,m,p),typeof u=="function")){typeof m!="function"&&m!==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,""):Sl(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":ze("error",t),ze("load",t);var u=!1,p=!1,m;for(m in a)if(a.hasOwnProperty(m)){var S=a[m];if(S!=null)switch(m){case"src":u=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,r));default:Je(t,r,m,S,a,null)}}p&&Je(t,r,"srcSet",a.srcSet,a,null),u&&Je(t,r,"src",a.src,a,null);return;case"input":ze("invalid",t);var k=m=S=p=null,j=null,F=null;for(u in a)if(a.hasOwnProperty(u)){var K=a[u];if(K!=null)switch(u){case"name":p=K;break;case"type":S=K;break;case"checked":j=K;break;case"defaultChecked":F=K;break;case"value":m=K;break;case"defaultValue":k=K;break;case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(l(137,r));break;default:Je(t,r,u,K,a,null)}}Kp(t,m,k,j,F,S,p,!1),cs(t);return;case"select":ze("invalid",t),u=S=m=null;for(p in a)if(a.hasOwnProperty(p)&&(k=a[p],k!=null))switch(p){case"value":m=k;break;case"defaultValue":S=k;break;case"multiple":u=k;default:Je(t,r,p,k,a,null)}r=m,a=S,t.multiple=!!u,r!=null?El(t,!!u,r,!1):a!=null&&El(t,!!u,a,!0);return;case"textarea":ze("invalid",t),m=p=u=null;for(S in a)if(a.hasOwnProperty(S)&&(k=a[S],k!=null))switch(S){case"value":u=k;break;case"defaultValue":p=k;break;case"children":m=k;break;case"dangerouslySetInnerHTML":if(k!=null)throw Error(l(91));break;default:Je(t,r,S,k,a,null)}Xp(t,u,p,m),cs(t);return;case"option":for(j in a)if(a.hasOwnProperty(j)&&(u=a[j],u!=null))switch(j){case"selected":t.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:Je(t,r,j,u,a,null)}return;case"dialog":ze("beforetoggle",t),ze("toggle",t),ze("cancel",t),ze("close",t);break;case"iframe":case"object":ze("load",t);break;case"video":case"audio":for(u=0;u<yo.length;u++)ze(yo[u],t);break;case"image":ze("error",t),ze("load",t);break;case"details":ze("toggle",t);break;case"embed":case"source":case"link":ze("error",t),ze("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:Je(t,r,F,u,a,null)}return;default:if(Oc(r)){for(K in a)a.hasOwnProperty(K)&&(u=a[K],u!==void 0&&pd(t,r,K,u,a,void 0));return}}for(k in a)a.hasOwnProperty(k)&&(u=a[k],u!=null&&Je(t,r,k,u,a,null))}function QS(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,m=null,S=null,k=null,j=null,F=null,K=null;for(P in a){var Z=a[P];if(a.hasOwnProperty(P)&&Z!=null)switch(P){case"checked":break;case"value":break;case"defaultValue":j=Z;default:u.hasOwnProperty(P)||Je(t,r,P,null,u,Z)}}for(var Q in u){var P=u[Q];if(Z=a[Q],u.hasOwnProperty(Q)&&(P!=null||Z!=null))switch(Q){case"type":m=P;break;case"name":p=P;break;case"checked":F=P;break;case"defaultChecked":K=P;break;case"value":S=P;break;case"defaultValue":k=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(l(137,r));break;default:P!==Z&&Je(t,r,Q,P,u,Z)}}Ac(t,S,k,j,F,K,m,p);return;case"select":P=S=k=Q=null;for(m in a)if(j=a[m],a.hasOwnProperty(m)&&j!=null)switch(m){case"value":break;case"multiple":P=j;default:u.hasOwnProperty(m)||Je(t,r,m,null,u,j)}for(p in u)if(m=u[p],j=a[p],u.hasOwnProperty(p)&&(m!=null||j!=null))switch(p){case"value":Q=m;break;case"defaultValue":k=m;break;case"multiple":S=m;default:m!==j&&Je(t,r,p,m,u,j)}r=k,a=S,u=P,Q!=null?El(t,!!a,Q,!1):!!u!=!!a&&(r!=null?El(t,!!a,r,!0):El(t,!!a,a?[]:"",!1));return;case"textarea":P=Q=null;for(k in a)if(p=a[k],a.hasOwnProperty(k)&&p!=null&&!u.hasOwnProperty(k))switch(k){case"value":break;case"children":break;default:Je(t,r,k,null,u,p)}for(S in u)if(p=u[S],m=a[S],u.hasOwnProperty(S)&&(p!=null||m!=null))switch(S){case"value":Q=p;break;case"defaultValue":P=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(l(91));break;default:p!==m&&Je(t,r,S,p,u,m)}Gp(t,Q,P);return;case"option":for(var Ee in a)if(Q=a[Ee],a.hasOwnProperty(Ee)&&Q!=null&&!u.hasOwnProperty(Ee))switch(Ee){case"selected":t.selected=!1;break;default:Je(t,r,Ee,null,u,Q)}for(j in u)if(Q=u[j],P=a[j],u.hasOwnProperty(j)&&Q!==P&&(Q!=null||P!=null))switch(j){case"selected":t.selected=Q&&typeof Q!="function"&&typeof Q!="symbol";break;default:Je(t,r,j,Q,u,P)}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 we in a)Q=a[we],a.hasOwnProperty(we)&&Q!=null&&!u.hasOwnProperty(we)&&Je(t,r,we,null,u,Q);for(F in u)if(Q=u[F],P=a[F],u.hasOwnProperty(F)&&Q!==P&&(Q!=null||P!=null))switch(F){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(l(137,r));break;default:Je(t,r,F,Q,u,P)}return;default:if(Oc(r)){for(var We in a)Q=a[We],a.hasOwnProperty(We)&&Q!==void 0&&!u.hasOwnProperty(We)&&pd(t,r,We,void 0,u,Q);for(K in u)Q=u[K],P=a[K],!u.hasOwnProperty(K)||Q===P||Q===void 0&&P===void 0||pd(t,r,K,Q,u,P);return}}for(var U in a)Q=a[U],a.hasOwnProperty(U)&&Q!=null&&!u.hasOwnProperty(U)&&Je(t,r,U,null,u,Q);for(Z in u)Q=u[Z],P=a[Z],!u.hasOwnProperty(Z)||Q===P||Q==null&&P==null||Je(t,r,Z,Q,u,P)}var md=null,yd=null;function lu(t){return t.nodeType===9?t:t.ownerDocument}function Zg(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 Jg(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 gd(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 vd=null;function PS(){var t=window.event;return t&&t.type==="popstate"?t===vd?!1:(vd=t,!0):(vd=null,!1)}var Wg=typeof setTimeout=="function"?setTimeout:void 0,IS=typeof clearTimeout=="function"?clearTimeout:void 0,e0=typeof Promise=="function"?Promise:void 0,VS=typeof queueMicrotask=="function"?queueMicrotask:typeof e0<"u"?function(t){return e0.resolve(null).then(t).catch($S)}:Wg;function $S(t){setTimeout(function(){throw t})}function Ci(t){return t==="head"}function t0(t,r){var a=r,u=0,p=0;do{var m=a.nextSibling;if(t.removeChild(a),m&&m.nodeType===8)if(a=m.data,a==="/$"){if(0<u&&8>u){a=u;var S=t.ownerDocument;if(a&1&&vo(S.documentElement),a&2&&vo(S.body),a&4)for(a=S.head,vo(a),S=a.firstChild;S;){var k=S.nextSibling,j=S.nodeName;S[wt]||j==="SCRIPT"||j==="STYLE"||j==="LINK"&&S.rel.toLowerCase()==="stylesheet"||a.removeChild(S),S=k}}if(p===0){t.removeChild(m),To(r);return}p--}else a==="$"||a==="$?"||a==="$!"?p++:u=a.charCodeAt(0)-48;else u=0;a=m}while(a);To(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 YS(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[wt])switch(r){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(m=t.getAttribute("rel"),m==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(m!==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(m=t.getAttribute("src"),(m!==(p.src==null?null:p.src)||t.getAttribute("type")!==(p.type==null?null:p.type)||t.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&m&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(r==="input"&&t.type==="hidden"){var m=p.name==null?null:""+p.name;if(p.type==="hidden"&&t.getAttribute("name")===m)return t}else return t;if(t=er(t.nextSibling),t===null)break}return null}function KS(t,r,a){if(r==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=er(t.nextSibling),t===null))return null;return t}function xd(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function GS(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 er(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 wd=null;function n0(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 r0(t,r,a){switch(r=lu(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 vo(t){for(var r=t.attributes;r.length;)t.removeAttributeNode(r[0]);Xt(t)}var Vn=new Map,i0=new Set;function au(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Vr=X.d;X.d={f:XS,r:ZS,D:JS,C:WS,L:e2,m:t2,X:r2,S:n2,M:i2};function XS(){var t=Vr.f(),r=Zs();return t||r}function ZS(t){var r=Sn(t);r!==null&&r.tag===5&&r.type==="form"?Ey(r):Vr.r(t)}var ea=typeof document>"u"?null:document;function l0(t,r,a){var u=ea;if(u&&typeof r=="string"&&r){var p=Bn(r);p='link[rel="'+t+'"][href="'+p+'"]',typeof a=="string"&&(p+='[crossorigin="'+a+'"]'),i0.has(p)||(i0.add(p),t={rel:t,crossOrigin:a,href:r},u.querySelector(p)===null&&(r=u.createElement("link"),Vt(r,"link",t),St(r),u.head.appendChild(r)))}}function JS(t){Vr.D(t),l0("dns-prefetch",t,null)}function WS(t,r){Vr.C(t,r),l0("preconnect",t,r)}function e2(t,r,a){Vr.L(t,r,a);var u=ea;if(u&&t&&r){var p='link[rel="preload"][as="'+Bn(r)+'"]';r==="image"&&a&&a.imageSrcSet?(p+='[imagesrcset="'+Bn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(p+='[imagesizes="'+Bn(a.imageSizes)+'"]')):p+='[href="'+Bn(t)+'"]';var m=p;switch(r){case"style":m=ta(t);break;case"script":m=na(t)}Vn.has(m)||(t=y({rel:"preload",href:r==="image"&&a&&a.imageSrcSet?void 0:t,as:r},a),Vn.set(m,t),u.querySelector(p)!==null||r==="style"&&u.querySelector(bo(m))||r==="script"&&u.querySelector(xo(m))||(r=u.createElement("link"),Vt(r,"link",t),St(r),u.head.appendChild(r)))}}function t2(t,r){Vr.m(t,r);var a=ea;if(a&&t){var u=r&&typeof r.as=="string"?r.as:"script",p='link[rel="modulepreload"][as="'+Bn(u)+'"][href="'+Bn(t)+'"]',m=p;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=na(t)}if(!Vn.has(m)&&(t=y({rel:"modulepreload",href:t},r),Vn.set(m,t),a.querySelector(p)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(xo(m)))return}u=a.createElement("link"),Vt(u,"link",t),St(u),a.head.appendChild(u)}}}function n2(t,r,a){Vr.S(t,r,a);var u=ea;if(u&&t){var p=li(u).hoistableStyles,m=ta(t);r=r||"default";var S=p.get(m);if(!S){var k={loading:0,preload:null};if(S=u.querySelector(bo(m)))k.loading=5;else{t=y({rel:"stylesheet",href:t,"data-precedence":r},a),(a=Vn.get(m))&&Sd(t,a);var j=S=u.createElement("link");St(j),Vt(j,"link",t),j._p=new Promise(function(F,K){j.onload=F,j.onerror=K}),j.addEventListener("load",function(){k.loading|=1}),j.addEventListener("error",function(){k.loading|=2}),k.loading|=4,ou(S,r,u)}S={type:"stylesheet",instance:S,count:1,state:k},p.set(m,S)}}}function r2(t,r){Vr.X(t,r);var a=ea;if(a&&t){var u=li(a).hoistableScripts,p=na(t),m=u.get(p);m||(m=a.querySelector(xo(p)),m||(t=y({src:t,async:!0},r),(r=Vn.get(p))&&Cd(t,r),m=a.createElement("script"),St(m),Vt(m,"link",t),a.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},u.set(p,m))}}function i2(t,r){Vr.M(t,r);var a=ea;if(a&&t){var u=li(a).hoistableScripts,p=na(t),m=u.get(p);m||(m=a.querySelector(xo(p)),m||(t=y({src:t,async:!0,type:"module"},r),(r=Vn.get(p))&&Cd(t,r),m=a.createElement("script"),St(m),Vt(m,"link",t),a.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},u.set(p,m))}}function a0(t,r,a,u){var p=(p=ce.current)?au(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=ta(a.href),a=li(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=ta(a.href);var m=li(p).hoistableStyles,S=m.get(t);if(S||(p=p.ownerDocument||p,S={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(t,S),(m=p.querySelector(bo(t)))&&!m._p&&(S.instance=m,S.state.loading=5),Vn.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},Vn.set(t,a),m||l2(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=na(a),a=li(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 ta(t){return'href="'+Bn(t)+'"'}function bo(t){return'link[rel="stylesheet"]['+t+"]"}function o0(t){return y({},t,{"data-precedence":t.precedence,precedence:null})}function l2(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),St(r),t.head.appendChild(r))}function na(t){return'[src="'+Bn(t)+'"]'}function xo(t){return"script[async]"+t}function s0(t,r,a){if(r.count++,r.instance===null)switch(r.type){case"style":var u=t.querySelector('style[data-href~="'+Bn(a.href)+'"]');if(u)return r.instance=u,St(u),u;var p=y({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return u=(t.ownerDocument||t).createElement("style"),St(u),Vt(u,"style",p),ou(u,a.precedence,t),r.instance=u;case"stylesheet":p=ta(a.href);var m=t.querySelector(bo(p));if(m)return r.state.loading|=4,r.instance=m,St(m),m;u=o0(a),(p=Vn.get(p))&&Sd(u,p),m=(t.ownerDocument||t).createElement("link"),St(m);var S=m;return S._p=new Promise(function(k,j){S.onload=k,S.onerror=j}),Vt(m,"link",u),r.state.loading|=4,ou(m,a.precedence,t),r.instance=m;case"script":return m=na(a.src),(p=t.querySelector(xo(m)))?(r.instance=p,St(p),p):(u=a,(p=Vn.get(m))&&(u=y({},a),Cd(u,p)),t=t.ownerDocument||t,p=t.createElement("script"),St(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,ou(u,a.precedence,t));return r.instance}function ou(t,r,a){for(var u=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=u.length?u[u.length-1]:null,m=p,S=0;S<u.length;S++){var k=u[S];if(k.dataset.precedence===r)m=k;else if(m!==p)break}m?m.parentNode.insertBefore(t,m.nextSibling):(r=a.nodeType===9?a.head:a,r.insertBefore(t,r.firstChild))}function Sd(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.title==null&&(t.title=r.title)}function Cd(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.integrity==null&&(t.integrity=r.integrity)}var su=null;function u0(t,r,a){if(su===null){var u=new Map,p=su=new Map;p.set(a,u)}else p=su,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 m=a[p];if(!(m[wt]||m[le]||t==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var S=m.getAttribute(r)||"";S=t+S;var k=u.get(S);k?k.push(m):u.set(S,[m])}}return u}function c0(t,r,a){t=t.ownerDocument||t,t.head.insertBefore(a,r==="title"?t.querySelector("head > title"):null)}function a2(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 f0(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var wo=null;function o2(){}function s2(t,r,a){if(wo===null)throw Error(l(475));var u=wo;if(r.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var p=ta(a.href),m=t.querySelector(bo(p));if(m){t=m._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(u.count++,u=uu.bind(u),t.then(u,u)),r.state.loading|=4,r.instance=m,St(m);return}m=t.ownerDocument||t,a=o0(a),(p=Vn.get(p))&&Sd(a,p),m=m.createElement("link"),St(m);var S=m;S._p=new Promise(function(k,j){S.onload=k,S.onerror=j}),Vt(m,"link",a),r.instance=m}u.stylesheets===null&&(u.stylesheets=new Map),u.stylesheets.set(r,t),(t=r.state.preload)&&(r.state.loading&3)===0&&(u.count++,r=uu.bind(u),t.addEventListener("load",r),t.addEventListener("error",r))}}function u2(){if(wo===null)throw Error(l(475));var t=wo;return t.stylesheets&&t.count===0&&Ed(t,t.stylesheets),0<t.count?function(r){var a=setTimeout(function(){if(t.stylesheets&&Ed(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 uu(){if(this.count--,this.count===0){if(this.stylesheets)Ed(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var cu=null;function Ed(t,r){t.stylesheets=null,t.unsuspend!==null&&(t.count++,cu=new Map,r.forEach(c2,t),cu=null,uu.call(t))}function c2(t,r){if(!(r.state.loading&4)){var a=cu.get(t);if(a)var u=a.get(null);else{a=new Map,cu.set(t,a);for(var p=t.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<p.length;m++){var S=p[m];(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"),m=a.get(S)||u,m===u&&a.set(null,p),a.set(S,p),this.count++,u=uu.bind(this),p.addEventListener("load",u),p.addEventListener("error",u),m?m.parentNode.insertBefore(p,m.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(p,t.firstChild)),r.state.loading|=4}}var So={$$typeof:O,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function f2(t,r,a,u,p,m,S,k){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=sr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sr(0),this.hiddenUpdates=sr(null),this.identifierPrefix=u,this.onUncaughtError=p,this.onCaughtError=m,this.onRecoverableError=S,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=k,this.incompleteTransitions=new Map}function d0(t,r,a,u,p,m,S,k,j,F,K,Z){return t=new f2(t,r,a,S,k,j,F,Z),r=1,m===!0&&(r|=24),m=En(3,null,null,r),t.current=m,m.stateNode=t,r=lf(),r.refCount++,t.pooledCache=r,r.refCount++,m.memoizedState={element:u,isDehydrated:a,cache:r},uf(m),t}function h0(t){return t?(t=Dl,t):Dl}function p0(t,r,a,u,p,m){p=h0(p),u.context===null?u.context=p:u.pendingContext=p,u=ci(r),u.payload={element:a},m=m===void 0?null:m,m!==null&&(u.callback=m),a=fi(t,u,r),a!==null&&(On(a,t,r),Za(a,t,r))}function m0(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<r?a:r}}function kd(t,r){m0(t,r),(t=t.alternate)&&m0(t,r)}function y0(t){if(t.tag===13){var r=jl(t,67108864);r!==null&&On(r,t,67108864),kd(t,67108864)}}var fu=!0;function d2(t,r,a,u){var p=B.T;B.T=null;var m=X.p;try{X.p=2,Td(t,r,a,u)}finally{X.p=m,B.T=p}}function h2(t,r,a,u){var p=B.T;B.T=null;var m=X.p;try{X.p=8,Td(t,r,a,u)}finally{X.p=m,B.T=p}}function Td(t,r,a,u){if(fu){var p=Ad(u);if(p===null)hd(t,r,u,du,a),v0(t,u);else if(m2(p,t,r,a,u))u.stopPropagation();else if(v0(t,u),r&4&&-1<p2.indexOf(t)){for(;p!==null;){var m=Sn(p);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var S=qe(m.pendingLanes);if(S!==0){var k=m;for(k.pendingLanes|=2,k.entangledLanes|=2;S;){var j=1<<31-ye(S);k.entanglements[1]|=j,S&=~j}pr(m),(Ge&6)===0&&(Gs=Mt()+500,mo(0))}}break;case 13:k=jl(m,2),k!==null&&On(k,m,2),Zs(),kd(m,2)}if(m=Ad(u),m===null&&hd(t,r,u,du,a),m===p)break;p=m}p!==null&&u.stopPropagation()}else hd(t,r,u,null,a)}}function Ad(t){return t=Nc(t),_d(t)}var du=null;function _d(t){if(du=null,t=Ve(t),t!==null){var r=s(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 du=t,null}function g0(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(Zn()){case xn:return 2;case Ke:return 8;case Dn:case Ar:return 32;case or:return 268435456;default:return 32}default:return 32}}var Od=!1,Ei=null,ki=null,Ti=null,Co=new Map,Eo=new Map,Ai=[],p2="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 v0(t,r){switch(t){case"focusin":case"focusout":Ei=null;break;case"dragenter":case"dragleave":ki=null;break;case"mouseover":case"mouseout":Ti=null;break;case"pointerover":case"pointerout":Co.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":Eo.delete(r.pointerId)}}function ko(t,r,a,u,p,m){return t===null||t.nativeEvent!==m?(t={blockedOn:r,domEventName:a,eventSystemFlags:u,nativeEvent:m,targetContainers:[p]},r!==null&&(r=Sn(r),r!==null&&y0(r)),t):(t.eventSystemFlags|=u,r=t.targetContainers,p!==null&&r.indexOf(p)===-1&&r.push(p),t)}function m2(t,r,a,u,p){switch(r){case"focusin":return Ei=ko(Ei,t,r,a,u,p),!0;case"dragenter":return ki=ko(ki,t,r,a,u,p),!0;case"mouseover":return Ti=ko(Ti,t,r,a,u,p),!0;case"pointerover":var m=p.pointerId;return Co.set(m,ko(Co.get(m)||null,t,r,a,u,p)),!0;case"gotpointercapture":return m=p.pointerId,Eo.set(m,ko(Eo.get(m)||null,t,r,a,u,p)),!0}return!1}function b0(t){var r=Ve(t.target);if(r!==null){var a=s(r);if(a!==null){if(r=a.tag,r===13){if(r=c(a),r!==null){t.blockedOn=r,ln(t.priority,function(){if(a.tag===13){var u=_n();u=Kt(u);var p=jl(a,u);p!==null&&On(p,a,u),kd(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 hu(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var a=Ad(t.nativeEvent);if(a===null){a=t.nativeEvent;var u=new a.constructor(a.type,a);Rc=u,a.target.dispatchEvent(u),Rc=null}else return r=Sn(a),r!==null&&y0(r),t.blockedOn=a,!1;r.shift()}return!0}function x0(t,r,a){hu(t)&&a.delete(r)}function y2(){Od=!1,Ei!==null&&hu(Ei)&&(Ei=null),ki!==null&&hu(ki)&&(ki=null),Ti!==null&&hu(Ti)&&(Ti=null),Co.forEach(x0),Eo.forEach(x0)}function pu(t,r){t.blockedOn===r&&(t.blockedOn=null,Od||(Od=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,y2)))}var mu=null;function w0(t){mu!==t&&(mu=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){mu===t&&(mu=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(_d(u||a)===null)continue;break}var m=Sn(a);m!==null&&(t.splice(r,3),r-=3,_f(m,{pending:!0,data:p,method:a.method,action:u},u,p))}}))}function To(t){function r(j){return pu(j,t)}Ei!==null&&pu(Ei,t),ki!==null&&pu(ki,t),Ti!==null&&pu(Ti,t),Co.forEach(r),Eo.forEach(r);for(var a=0;a<Ai.length;a++){var u=Ai[a];u.blockedOn===t&&(u.blockedOn=null)}for(;0<Ai.length&&(a=Ai[0],a.blockedOn===null);)b0(a),a.blockedOn===null&&Ai.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(u=0;u<a.length;u+=3){var p=a[u],m=a[u+1],S=p[he]||null;if(typeof m=="function")S||w0(a);else if(S){var k=null;if(m&&m.hasAttribute("formAction")){if(p=m,S=m[he]||null)k=S.formAction;else if(_d(p)!==null)continue}else k=S.action;typeof k=="function"?a[u+1]=k:(a.splice(u,3),u-=3),w0(a)}}}function Rd(t){this._internalRoot=t}yu.prototype.render=Rd.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(l(409));var a=r.current,u=_n();p0(a,u,t,r,null,null)},yu.prototype.unmount=Rd.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;p0(t.current,2,null,t,null,null),Zs(),r[Se]=null}};function yu(t){this._internalRoot=t}yu.prototype.unstable_scheduleHydration=function(t){if(t){var r=De();t={blockedOn:null,target:t,priority:r};for(var a=0;a<Ai.length&&r!==0&&r<Ai[a].priority;a++);Ai.splice(a,0,t),a===0&&b0(t)}};var S0=n.version;if(S0!=="19.1.0")throw Error(l(527,S0,"19.1.0"));X.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 g2={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var gu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!gu.isDisabled&&gu.supportsFiber)try{$=gu.inject(g2),W=gu}catch{}}return _o.createRoot=function(t,r){if(!o(t))throw Error(l(299));var a=!1,u="",p=By,m=qy,S=Hy,k=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&&(m=r.onCaughtError),r.onRecoverableError!==void 0&&(S=r.onRecoverableError),r.unstable_transitionCallbacks!==void 0&&(k=r.unstable_transitionCallbacks)),r=d0(t,1,!1,null,null,a,u,p,m,S,k,null),t[Se]=r.current,dd(t),new Rd(r)},_o.hydrateRoot=function(t,r,a){if(!o(t))throw Error(l(299));var u=!1,p="",m=By,S=qy,k=Hy,j=null,F=null;return a!=null&&(a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(p=a.identifierPrefix),a.onUncaughtError!==void 0&&(m=a.onUncaughtError),a.onCaughtError!==void 0&&(S=a.onCaughtError),a.onRecoverableError!==void 0&&(k=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(j=a.unstable_transitionCallbacks),a.formState!==void 0&&(F=a.formState)),r=d0(t,1,!0,r,a??null,u,p,m,S,k,j,F),r.context=h0(null),a=r.current,u=_n(),u=Kt(u),p=ci(u),p.callback=null,fi(a,p,u),a=u,r.current.lanes=a,Mn(r,a),pr(r),t[Se]=r.current,dd(t),new yu(r)},_o.version="19.1.0",_o}var j0;function T2(){if(j0)return Dd.exports;j0=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(),Dd.exports=k2(),Dd.exports}var A2=T2();const _2=ba(A2);var Oo={},D0;function O2(){if(D0)return Oo;D0=1,Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.parse=c,Oo.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]*$/,o=Object.prototype.toString,s=(()=>{const x=function(){};return x.prototype=Object.create(null),x})();function c(x,b){const w=new s,T=x.length;if(T<2)return w;const _=(b==null?void 0:b.decode)||y;let A=0;do{const N=x.indexOf("=",A);if(N===-1)break;const O=x.indexOf(";",A),z=O===-1?T:O;if(N>z){A=x.lastIndexOf(";",N-1)+1;continue}const q=f(x,A,N),M=h(x,N,q),Y=x.slice(q,M);if(w[Y]===void 0){let ee=f(x,N+1,z),ie=h(x,z,ee);const L=_(x.slice(ee,ie));w[Y]=L}A=z+1}while(A<T);return w}function f(x,b,w){do{const T=x.charCodeAt(b);if(T!==32&&T!==9)return b}while(++b<w);return w}function h(x,b,w){for(;b>w;){const T=x.charCodeAt(--b);if(T!==32&&T!==9)return b+1}return w}function d(x,b,w){const T=(w==null?void 0:w.encode)||encodeURIComponent;if(!e.test(x))throw new TypeError(`argument name is invalid: ${x}`);const _=T(b);if(!n.test(_))throw new TypeError(`argument val is invalid: ${b}`);let A=x+"="+_;if(!w)return A;if(w.maxAge!==void 0){if(!Number.isInteger(w.maxAge))throw new TypeError(`option maxAge is invalid: ${w.maxAge}`);A+="; Max-Age="+w.maxAge}if(w.domain){if(!i.test(w.domain))throw new TypeError(`option domain is invalid: ${w.domain}`);A+="; Domain="+w.domain}if(w.path){if(!l.test(w.path))throw new TypeError(`option path is invalid: ${w.path}`);A+="; Path="+w.path}if(w.expires){if(!g(w.expires)||!Number.isFinite(w.expires.valueOf()))throw new TypeError(`option expires is invalid: ${w.expires}`);A+="; Expires="+w.expires.toUTCString()}if(w.httpOnly&&(A+="; HttpOnly"),w.secure&&(A+="; Secure"),w.partitioned&&(A+="; Partitioned"),w.priority)switch(typeof w.priority=="string"?w.priority.toLowerCase():void 0){case"low":A+="; Priority=Low";break;case"medium":A+="; Priority=Medium";break;case"high":A+="; 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":A+="; SameSite=Strict";break;case"lax":A+="; SameSite=Lax";break;case"none":A+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${w.sameSite}`)}return A}function y(x){if(x.indexOf("%")===-1)return x;try{return decodeURIComponent(x)}catch{return x}}function g(x){return o.call(x)==="[object Date]"}return Oo}O2();var M0="popstate";function R2(e={}){function n(l,o){let{pathname:s,search:c,hash:f}=l.location;return hh("",{pathname:s,search:c,hash:f},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function i(l,o){return typeof o=="string"?o:Po(o)}return j2(n,i,null,e)}function ot(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function nr(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function N2(){return Math.random().toString(36).substring(2,10)}function z0(e,n){return{usr:e.state,key:e.key,idx:n}}function hh(e,n,i=null,l){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof n=="string"?xa(n):n,state:i,key:n&&n.key||l||N2()}}function Po({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 xa(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 j2(e,n,i,l={}){let{window:o=document.defaultView,v5Compat:s=!1}=l,c=o.history,f="POP",h=null,d=y();d==null&&(d=0,c.replaceState({...c.state,idx:d},""));function y(){return(c.state||{idx:null}).idx}function g(){f="POP";let _=y(),A=_==null?null:_-d;d=_,h&&h({action:f,location:T.location,delta:A})}function x(_,A){f="PUSH";let N=hh(T.location,_,A);d=y()+1;let O=z0(N,d),z=T.createHref(N);try{c.pushState(O,"",z)}catch(q){if(q instanceof DOMException&&q.name==="DataCloneError")throw q;o.location.assign(z)}s&&h&&h({action:f,location:T.location,delta:1})}function b(_,A){f="REPLACE";let N=hh(T.location,_,A);d=y();let O=z0(N,d),z=T.createHref(N);c.replaceState(O,"",z),s&&h&&h({action:f,location:T.location,delta:0})}function w(_){return D2(_)}let T={get action(){return f},get location(){return e(o,c)},listen(_){if(h)throw new Error("A history only accepts one active listener");return o.addEventListener(M0,g),h=_,()=>{o.removeEventListener(M0,g),h=null}},createHref(_){return n(o,_)},createURL:w,encodeLocation(_){let A=w(_);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:x,replace:b,go(_){return c.go(_)}};return T}function D2(e,n=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),ot(i,"No window.location.(origin|href) available to create URL");let l=typeof e=="string"?e:Po(e);return l=l.replace(/ $/,"%20"),!n&&l.startsWith("//")&&(l=i+l),new URL(l,i)}function Sv(e,n,i="/"){return M2(e,n,i,!1)}function M2(e,n,i,l){let o=typeof n=="string"?xa(n):n,s=Gr(o.pathname||"/",i);if(s==null)return null;let c=Cv(e);z2(c);let f=null;for(let h=0;f==null&&h<c.length;++h){let d=$2(s);f=I2(c[h],d,l)}return f}function Cv(e,n=[],i=[],l=""){let o=(s,c,f)=>{let h={relativePath:f===void 0?s.path||"":f,caseSensitive:s.caseSensitive===!0,childrenIndex:c,route:s};h.relativePath.startsWith("/")&&(ot(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=Kr([l,h.relativePath]),y=i.concat(h);s.children&&s.children.length>0&&(ot(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),Cv(s.children,n,y,d)),!(s.path==null&&!s.index)&&n.push({path:d,score:Q2(d,s.index),routesMeta:y})};return e.forEach((s,c)=>{var f;if(s.path===""||!((f=s.path)!=null&&f.includes("?")))o(s,c);else for(let h of Ev(s.path))o(s,c,h)}),n}function Ev(e){let n=e.split("/");if(n.length===0)return[];let[i,...l]=n,o=i.endsWith("?"),s=i.replace(/\?$/,"");if(l.length===0)return o?[s,""]:[s];let c=Ev(l.join("/")),f=[];return f.push(...c.map(h=>h===""?s:[s,h].join("/"))),o&&f.push(...c),f.map(h=>e.startsWith("/")&&h===""?"/":h)}function z2(e){e.sort((n,i)=>n.score!==i.score?i.score-n.score:P2(n.routesMeta.map(l=>l.childrenIndex),i.routesMeta.map(l=>l.childrenIndex)))}var L2=/^:[\w-]+$/,U2=3,B2=2,q2=1,H2=10,F2=-2,L0=e=>e==="*";function Q2(e,n){let i=e.split("/"),l=i.length;return i.some(L0)&&(l+=F2),n&&(l+=B2),i.filter(o=>!L0(o)).reduce((o,s)=>o+(L2.test(s)?U2:s===""?q2:H2),l)}function P2(e,n){return e.length===n.length&&e.slice(0,-1).every((l,o)=>l===n[o])?e[e.length-1]-n[n.length-1]:0}function I2(e,n,i=!1){let{routesMeta:l}=e,o={},s="/",c=[];for(let f=0;f<l.length;++f){let h=l[f],d=f===l.length-1,y=s==="/"?n:n.slice(s.length)||"/",g=Bu({path:h.relativePath,caseSensitive:h.caseSensitive,end:d},y),x=h.route;if(!g&&d&&i&&!l[l.length-1].route.index&&(g=Bu({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},y)),!g)return null;Object.assign(o,g.params),c.push({params:o,pathname:Kr([s,g.pathname]),pathnameBase:X2(Kr([s,g.pathnameBase])),route:x}),g.pathnameBase!=="/"&&(s=Kr([s,g.pathnameBase]))}return c}function Bu(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[i,l]=V2(e.path,e.caseSensitive,e.end),o=n.match(i);if(!o)return null;let s=o[0],c=s.replace(/(.)\/+$/,"$1"),f=o.slice(1);return{params:l.reduce((d,{paramName:y,isOptional:g},x)=>{if(y==="*"){let w=f[x]||"";c=s.slice(0,s.length-w.length).replace(/(.)\/+$/,"$1")}const b=f[x];return g&&!b?d[y]=void 0:d[y]=(b||"").replace(/%2F/g,"/"),d},{}),pathname:s,pathnameBase:c,pattern:e}}function V2(e,n=!1,i=!0){nr(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=[],o="^"+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:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,n?void 0:"i"),l]}function $2(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return nr(!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 Gr(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 Y2(e,n="/"){let{pathname:i,search:l="",hash:o=""}=typeof e=="string"?xa(e):e;return{pathname:i?i.startsWith("/")?i:K2(i,n):n,search:Z2(l),hash:J2(o)}}function K2(e,n){let i=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?i.length>1&&i.pop():o!=="."&&i.push(o)}),i.length>1?i.join("/"):"/"}function Ud(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 G2(e){return e.filter((n,i)=>i===0||n.route.path&&n.route.path.length>0)}function Jh(e){let n=G2(e);return n.map((i,l)=>l===n.length-1?i.pathname:i.pathnameBase)}function Wh(e,n,i,l=!1){let o;typeof e=="string"?o=xa(e):(o={...e},ot(!o.pathname||!o.pathname.includes("?"),Ud("?","pathname","search",o)),ot(!o.pathname||!o.pathname.includes("#"),Ud("#","pathname","hash",o)),ot(!o.search||!o.search.includes("#"),Ud("#","search","hash",o)));let s=e===""||o.pathname==="",c=s?"/":o.pathname,f;if(c==null)f=i;else{let g=n.length-1;if(!l&&c.startsWith("..")){let x=c.split("/");for(;x[0]==="..";)x.shift(),g-=1;o.pathname=x.join("/")}f=g>=0?n[g]:"/"}let h=Y2(o,f),d=c&&c!=="/"&&c.endsWith("/"),y=(s||c===".")&&i.endsWith("/");return!h.pathname.endsWith("/")&&(d||y)&&(h.pathname+="/"),h}var Kr=e=>e.join("/").replace(/\/\/+/g,"/"),X2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Z2=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,J2=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function W2(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var kv=["POST","PUT","PATCH","DELETE"];new Set(kv);var eC=["GET",...kv];new Set(eC);var wa=E.createContext(null);wa.displayName="DataRouter";var rc=E.createContext(null);rc.displayName="DataRouterState";var Tv=E.createContext({isTransitioning:!1});Tv.displayName="ViewTransition";var tC=E.createContext(new Map);tC.displayName="Fetchers";var nC=E.createContext(null);nC.displayName="Await";var lr=E.createContext(null);lr.displayName="Navigation";var Xo=E.createContext(null);Xo.displayName="Location";var Sr=E.createContext({outlet:null,matches:[],isDataRoute:!1});Sr.displayName="Route";var ep=E.createContext(null);ep.displayName="RouteError";function rC(e,{relative:n}={}){ot(Sa(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:l}=E.useContext(lr),{hash:o,pathname:s,search:c}=Zo(e,{relative:n}),f=s;return i!=="/"&&(f=s==="/"?i:Kr([i,s])),l.createHref({pathname:f,search:c,hash:o})}function Sa(){return E.useContext(Xo)!=null}function vn(){return ot(Sa(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(Xo).location}var Av="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function _v(e){E.useContext(lr).static||E.useLayoutEffect(e)}function zi(){let{isDataRoute:e}=E.useContext(Sr);return e?yC():iC()}function iC(){ot(Sa(),"useNavigate() may be used only in the context of a <Router> component.");let e=E.useContext(wa),{basename:n,navigator:i}=E.useContext(lr),{matches:l}=E.useContext(Sr),{pathname:o}=vn(),s=JSON.stringify(Jh(l)),c=E.useRef(!1);return _v(()=>{c.current=!0}),E.useCallback((h,d={})=>{if(nr(c.current,Av),!c.current)return;if(typeof h=="number"){i.go(h);return}let y=Wh(h,JSON.parse(s),o,d.relative==="path");e==null&&n!=="/"&&(y.pathname=y.pathname==="/"?n:Kr([n,y.pathname])),(d.replace?i.replace:i.push)(y,d.state,d)},[n,i,s,o,e])}E.createContext(null);function Zo(e,{relative:n}={}){let{matches:i}=E.useContext(Sr),{pathname:l}=vn(),o=JSON.stringify(Jh(i));return E.useMemo(()=>Wh(e,JSON.parse(o),l,n==="path"),[e,o,l,n])}function lC(e,n){return Ov(e,n)}function Ov(e,n,i,l){var N;ot(Sa(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o,static:s}=E.useContext(lr),{matches:c}=E.useContext(Sr),f=c[c.length-1],h=f?f.params:{},d=f?f.pathname:"/",y=f?f.pathnameBase:"/",g=f&&f.route;{let O=g&&g.path||"";Rv(d,!g||O.endsWith("*")||O.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${O}">) 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="${O}"> to <Route path="${O==="/"?"*":`${O}/*`}">.`)}let x=vn(),b;if(n){let O=typeof n=="string"?xa(n):n;ot(y==="/"||((N=O.pathname)==null?void 0:N.startsWith(y)),`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 "${y}" but pathname "${O.pathname}" was given in the \`location\` prop.`),b=O}else b=x;let w=b.pathname||"/",T=w;if(y!=="/"){let O=y.replace(/^\//,"").split("/");T="/"+w.replace(/^\//,"").split("/").slice(O.length).join("/")}let _=!s&&i&&i.matches&&i.matches.length>0?i.matches:Sv(e,{pathname:T});nr(g||_!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),nr(_==null||_[_.length-1].route.element!==void 0||_[_.length-1].route.Component!==void 0||_[_.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.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 A=cC(_&&_.map(O=>Object.assign({},O,{params:Object.assign({},h,O.params),pathname:Kr([y,o.encodeLocation?o.encodeLocation(O.pathname).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?y:Kr([y,o.encodeLocation?o.encodeLocation(O.pathnameBase).pathname:O.pathnameBase])})),c,i,l);return n&&A?E.createElement(Xo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...b},navigationType:"POP"}},A):A}function aC(){let e=mC(),n=W2(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)",o={padding:"0.5rem",backgroundColor:l},s={padding:"2px 4px",backgroundColor:l},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:s},"ErrorBoundary")," or"," ",E.createElement("code",{style:s},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},n),i?E.createElement("pre",{style:o},i):null,c)}var oC=E.createElement(aC,null),sC=class extends E.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?E.createElement(Sr.Provider,{value:this.props.routeContext},E.createElement(ep.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function uC({routeContext:e,match:n,children:i}){let l=E.useContext(wa);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),E.createElement(Sr.Provider,{value:e},i)}function cC(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 o=e,s=i==null?void 0:i.errors;if(s!=null){let h=o.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);ot(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),o=o.slice(0,Math.min(o.length,h+1))}let c=!1,f=-1;if(i)for(let h=0;h<o.length;h++){let d=o[h];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(f=h),d.route.id){let{loaderData:y,errors:g}=i,x=d.route.loader&&!y.hasOwnProperty(d.route.id)&&(!g||g[d.route.id]===void 0);if(d.route.lazy||x){c=!0,f>=0?o=o.slice(0,f+1):o=[o[0]];break}}}return o.reduceRight((h,d,y)=>{let g,x=!1,b=null,w=null;i&&(g=s&&d.route.id?s[d.route.id]:void 0,b=d.route.errorElement||oC,c&&(f<0&&y===0?(Rv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,w=null):f===y&&(x=!0,w=d.route.hydrateFallbackElement||null)));let T=n.concat(o.slice(0,y+1)),_=()=>{let A;return g?A=b:x?A=w:d.route.Component?A=E.createElement(d.route.Component,null):d.route.element?A=d.route.element:A=h,E.createElement(uC,{match:d,routeContext:{outlet:h,matches:T,isDataRoute:i!=null},children:A})};return i&&(d.route.ErrorBoundary||d.route.errorElement||y===0)?E.createElement(sC,{location:i.location,revalidation:i.revalidation,component:b,error:g,children:_(),routeContext:{outlet:null,matches:T,isDataRoute:!0}}):_()},null)}function tp(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function fC(e){let n=E.useContext(wa);return ot(n,tp(e)),n}function dC(e){let n=E.useContext(rc);return ot(n,tp(e)),n}function hC(e){let n=E.useContext(Sr);return ot(n,tp(e)),n}function np(e){let n=hC(e),i=n.matches[n.matches.length-1];return ot(i.route.id,`${e} can only be used on routes that contain a unique "id"`),i.route.id}function pC(){return np("useRouteId")}function mC(){var l;let e=E.useContext(ep),n=dC("useRouteError"),i=np("useRouteError");return e!==void 0?e:(l=n.errors)==null?void 0:l[i]}function yC(){let{router:e}=fC("useNavigate"),n=np("useNavigate"),i=E.useRef(!1);return _v(()=>{i.current=!0}),E.useCallback(async(o,s={})=>{nr(i.current,Av),i.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:n,...s}))},[e,n])}var U0={};function Rv(e,n,i){!n&&!U0[e]&&(U0[e]=!0,nr(!1,i))}E.memo(gC);function gC({routes:e,future:n,state:i}){return Ov(e,void 0,i,n)}function vC({to:e,replace:n,state:i,relative:l}){ot(Sa(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=E.useContext(lr);nr(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=E.useContext(Sr),{pathname:c}=vn(),f=zi(),h=Wh(e,Jh(s),c,l==="path"),d=JSON.stringify(h);return E.useEffect(()=>{f(JSON.parse(d),{replace:n,state:i,relative:l})},[f,d,l,n,i]),null}function ph(e){ot(!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 bC({basename:e="/",children:n=null,location:i,navigationType:l="POP",navigator:o,static:s=!1}){ot(!Sa(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),f=E.useMemo(()=>({basename:c,navigator:o,static:s,future:{}}),[c,o,s]);typeof i=="string"&&(i=xa(i));let{pathname:h="/",search:d="",hash:y="",state:g=null,key:x="default"}=i,b=E.useMemo(()=>{let w=Gr(h,c);return w==null?null:{location:{pathname:w,search:d,hash:y,state:g,key:x},navigationType:l}},[c,h,d,y,g,x,l]);return nr(b!=null,`<Router basename="${c}"> is not able to match the URL "${h}${d}${y}" because it does not start with the basename, so the <Router> won't render anything.`),b==null?null:E.createElement(lr.Provider,{value:f},E.createElement(Xo.Provider,{children:n,value:b}))}function xC({children:e,location:n}){return lC(mh(e),n)}function mh(e,n=[]){let i=[];return E.Children.forEach(e,(l,o)=>{if(!E.isValidElement(l))return;let s=[...n,o];if(l.type===E.Fragment){i.push.apply(i,mh(l.props.children,s));return}ot(l.type===ph,`[${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>`),ot(!l.props.index||!l.props.children,"An index route cannot have child routes.");let c={id:l.props.id||s.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=mh(l.props.children,s)),i.push(c)}),i}var Au="get",_u="application/x-www-form-urlencoded";function ic(e){return e!=null&&typeof e.tagName=="string"}function wC(e){return ic(e)&&e.tagName.toLowerCase()==="button"}function SC(e){return ic(e)&&e.tagName.toLowerCase()==="form"}function CC(e){return ic(e)&&e.tagName.toLowerCase()==="input"}function EC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function kC(e,n){return e.button===0&&(!n||n==="_self")&&!EC(e)}var vu=null;function TC(){if(vu===null)try{new FormData(document.createElement("form"),0),vu=!1}catch{vu=!0}return vu}var AC=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Bd(e){return e!=null&&!AC.has(e)?(nr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${_u}"`),null):e}function _C(e,n){let i,l,o,s,c;if(SC(e)){let f=e.getAttribute("action");l=f?Gr(f,n):null,i=e.getAttribute("method")||Au,o=Bd(e.getAttribute("enctype"))||_u,s=new FormData(e)}else if(wC(e)||CC(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?Gr(h,n):null,i=e.getAttribute("formmethod")||f.getAttribute("method")||Au,o=Bd(e.getAttribute("formenctype"))||Bd(f.getAttribute("enctype"))||_u,s=new FormData(f,e),!TC()){let{name:d,type:y,value:g}=e;if(y==="image"){let x=d?`${d}.`:"";s.append(`${x}x`,"0"),s.append(`${x}y`,"0")}else d&&s.append(d,g)}}else{if(ic(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=Au,l=null,o=_u,c=e}return s&&o==="text/plain"&&(c=s,s=void 0),{action:l,method:i.toLowerCase(),encType:o,formData:s,body:c}}function rp(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}async function OC(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 RC(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 NC(e,n,i){let l=await Promise.all(e.map(async o=>{let s=n.routes[o.route.id];if(s){let c=await OC(s,i);return c.links?c.links():[]}return[]}));return zC(l.flat(1).filter(RC).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function B0(e,n,i,l,o,s){let c=(h,d)=>i[d]?h.route.id!==i[d].route.id:!0,f=(h,d)=>{var y;return i[d].pathname!==h.pathname||((y=i[d].route.path)==null?void 0:y.endsWith("*"))&&i[d].params["*"]!==h.params["*"]};return s==="assets"?n.filter((h,d)=>c(h,d)||f(h,d)):s==="data"?n.filter((h,d)=>{var g;let y=l.routes[h.route.id];if(!y||!y.hasLoader)return!1;if(c(h,d)||f(h,d))return!0;if(h.route.shouldRevalidate){let x=h.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((g=i[0])==null?void 0:g.params)||{},nextUrl:new URL(e,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function jC(e,n,{includeHydrateFallback:i}={}){return DC(e.map(l=>{let o=n.routes[l.route.id];if(!o)return[];let s=[o.module];return o.clientActionModule&&(s=s.concat(o.clientActionModule)),o.clientLoaderModule&&(s=s.concat(o.clientLoaderModule)),i&&o.hydrateFallbackModule&&(s=s.concat(o.hydrateFallbackModule)),o.imports&&(s=s.concat(o.imports)),s}).flat(1))}function DC(e){return[...new Set(e)]}function MC(e){let n={},i=Object.keys(e).sort();for(let l of i)n[l]=e[l];return n}function zC(e,n){let i=new Set;return new Set(n),e.reduce((l,o)=>{let s=JSON.stringify(MC(o));return i.has(s)||(i.add(s),l.push({key:s,link:o})),l},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var LC=new Set([100,101,204,205]);function UC(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&&Gr(i.pathname,n)==="/"?i.pathname=`${n.replace(/\/$/,"")}/_root.data`:i.pathname=`${i.pathname.replace(/\/$/,"")}.data`,i}function Nv(){let e=E.useContext(wa);return rp(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function BC(){let e=E.useContext(rc);return rp(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var ip=E.createContext(void 0);ip.displayName="FrameworkContext";function jv(){let e=E.useContext(ip);return rp(e,"You must render this element inside a <HydratedRouter> element"),e}function qC(e,n){let i=E.useContext(ip),[l,o]=E.useState(!1),[s,c]=E.useState(!1),{onFocus:f,onBlur:h,onMouseEnter:d,onMouseLeave:y,onTouchStart:g}=n,x=E.useRef(null);E.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let T=A=>{A.forEach(N=>{c(N.isIntersecting)})},_=new IntersectionObserver(T,{threshold:.5});return x.current&&_.observe(x.current),()=>{_.disconnect()}}},[e]),E.useEffect(()=>{if(l){let T=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(T)}}},[l]);let b=()=>{o(!0)},w=()=>{o(!1),c(!1)};return i?e!=="intent"?[s,x,{}]:[s,x,{onFocus:Ro(f,b),onBlur:Ro(h,w),onMouseEnter:Ro(d,b),onMouseLeave:Ro(y,w),onTouchStart:Ro(g,b)}]:[!1,x,{}]}function Ro(e,n){return i=>{e&&e(i),i.defaultPrevented||n(i)}}function HC({page:e,...n}){let{router:i}=Nv(),l=E.useMemo(()=>Sv(i.routes,e,i.basename),[i.routes,e,i.basename]);return l?E.createElement(QC,{page:e,matches:l,...n}):null}function FC(e){let{manifest:n,routeModules:i}=jv(),[l,o]=E.useState([]);return E.useEffect(()=>{let s=!1;return NC(e,n,i).then(c=>{s||o(c)}),()=>{s=!0}},[e,n,i]),l}function QC({page:e,matches:n,...i}){let l=vn(),{manifest:o,routeModules:s}=jv(),{basename:c}=Nv(),{loaderData:f,matches:h}=BC(),d=E.useMemo(()=>B0(e,n,h,o,l,"data"),[e,n,h,o,l]),y=E.useMemo(()=>B0(e,n,h,o,l,"assets"),[e,n,h,o,l]),g=E.useMemo(()=>{if(e===l.pathname+l.search+l.hash)return[];let w=new Set,T=!1;if(n.forEach(A=>{var O;let N=o.routes[A.route.id];!N||!N.hasLoader||(!d.some(z=>z.route.id===A.route.id)&&A.route.id in f&&((O=s[A.route.id])!=null&&O.shouldRevalidate)||N.hasClientLoader?T=!0:w.add(A.route.id))}),w.size===0)return[];let _=UC(e,c);return T&&w.size>0&&_.searchParams.set("_routes",n.filter(A=>w.has(A.route.id)).map(A=>A.route.id).join(",")),[_.pathname+_.search]},[c,f,l,o,d,n,e,s]),x=E.useMemo(()=>jC(y,o),[y,o]),b=FC(y);return E.createElement(E.Fragment,null,g.map(w=>E.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...i})),x.map(w=>E.createElement("link",{key:w,rel:"modulepreload",href:w,...i})),b.map(({key:w,link:T})=>E.createElement("link",{key:w,...T})))}function PC(...e){return n=>{e.forEach(i=>{typeof i=="function"?i(n):i!=null&&(i.current=n)})}}var Dv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Dv&&(window.__reactRouterVersion="7.6.0")}catch{}function IC({basename:e,children:n,window:i}){let l=E.useRef();l.current==null&&(l.current=R2({window:i,v5Compat:!0}));let o=l.current,[s,c]=E.useState({action:o.action,location:o.location}),f=E.useCallback(h=>{E.startTransition(()=>c(h))},[c]);return E.useLayoutEffect(()=>o.listen(f),[o,f]),E.createElement(bC,{basename:e,children:n,location:s.location,navigationType:s.action,navigator:o})}var Mv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,zv=E.forwardRef(function({onClick:n,discover:i="render",prefetch:l="none",relative:o,reloadDocument:s,replace:c,state:f,target:h,to:d,preventScrollReset:y,viewTransition:g,...x},b){let{basename:w}=E.useContext(lr),T=typeof d=="string"&&Mv.test(d),_,A=!1;if(typeof d=="string"&&T&&(_=d,Dv))try{let ie=new URL(window.location.href),L=d.startsWith("//")?new URL(ie.protocol+d):new URL(d),ae=Gr(L.pathname,w);L.origin===ie.origin&&ae!=null?d=ae+L.search+L.hash:A=!0}catch{nr(!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:o}),[O,z,q]=qC(l,x),M=KC(d,{replace:c,state:f,target:h,preventScrollReset:y,relative:o,viewTransition:g});function Y(ie){n&&n(ie),ie.defaultPrevented||M(ie)}let ee=E.createElement("a",{...x,...q,href:_||N,onClick:A||s?n:Y,ref:PC(b,z),target:h,"data-discover":!T&&i==="render"?"true":void 0});return O&&!T?E.createElement(E.Fragment,null,ee,E.createElement(HC,{page:N})):ee});zv.displayName="Link";var VC=E.forwardRef(function({"aria-current":n="page",caseSensitive:i=!1,className:l="",end:o=!1,style:s,to:c,viewTransition:f,children:h,...d},y){let g=Zo(c,{relative:d.relative}),x=vn(),b=E.useContext(rc),{navigator:w,basename:T}=E.useContext(lr),_=b!=null&&WC(g)&&f===!0,A=w.encodeLocation?w.encodeLocation(g).pathname:g.pathname,N=x.pathname,O=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;i||(N=N.toLowerCase(),O=O?O.toLowerCase():null,A=A.toLowerCase()),O&&T&&(O=Gr(O,T)||O);const z=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let q=N===A||!o&&N.startsWith(A)&&N.charAt(z)==="/",M=O!=null&&(O===A||!o&&O.startsWith(A)&&O.charAt(A.length)==="/"),Y={isActive:q,isPending:M,isTransitioning:_},ee=q?n:void 0,ie;typeof l=="function"?ie=l(Y):ie=[l,q?"active":null,M?"pending":null,_?"transitioning":null].filter(Boolean).join(" ");let L=typeof s=="function"?s(Y):s;return E.createElement(zv,{...d,"aria-current":ee,className:ie,ref:y,style:L,to:c,viewTransition:f},typeof h=="function"?h(Y):h)});VC.displayName="NavLink";var $C=E.forwardRef(({discover:e="render",fetcherKey:n,navigate:i,reloadDocument:l,replace:o,state:s,method:c=Au,action:f,onSubmit:h,relative:d,preventScrollReset:y,viewTransition:g,...x},b)=>{let w=ZC(),T=JC(f,{relative:d}),_=c.toLowerCase()==="get"?"get":"post",A=typeof f=="string"&&Mv.test(f),N=O=>{if(h&&h(O),O.defaultPrevented)return;O.preventDefault();let z=O.nativeEvent.submitter,q=(z==null?void 0:z.getAttribute("formmethod"))||c;w(z||O.currentTarget,{fetcherKey:n,method:q,navigate:i,replace:o,state:s,relative:d,preventScrollReset:y,viewTransition:g})};return E.createElement("form",{ref:b,method:_,action:T,onSubmit:l?h:N,...x,"data-discover":!A&&e==="render"?"true":void 0})});$C.displayName="Form";function YC(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Lv(e){let n=E.useContext(wa);return ot(n,YC(e)),n}function KC(e,{target:n,replace:i,state:l,preventScrollReset:o,relative:s,viewTransition:c}={}){let f=zi(),h=vn(),d=Zo(e,{relative:s});return E.useCallback(y=>{if(kC(y,n)){y.preventDefault();let g=i!==void 0?i:Po(h)===Po(d);f(e,{replace:g,state:l,preventScrollReset:o,relative:s,viewTransition:c})}},[h,f,d,i,l,n,e,o,s,c])}var GC=0,XC=()=>`__${String(++GC)}__`;function ZC(){let{router:e}=Lv("useSubmit"),{basename:n}=E.useContext(lr),i=pC();return E.useCallback(async(l,o={})=>{let{action:s,method:c,encType:f,formData:h,body:d}=_C(l,n);if(o.navigate===!1){let y=o.fetcherKey||XC();await e.fetch(y,i,o.action||s,{preventScrollReset:o.preventScrollReset,formData:h,body:d,formMethod:o.method||c,formEncType:o.encType||f,flushSync:o.flushSync})}else await e.navigate(o.action||s,{preventScrollReset:o.preventScrollReset,formData:h,body:d,formMethod:o.method||c,formEncType:o.encType||f,replace:o.replace,state:o.state,fromRouteId:i,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,n,i])}function JC(e,{relative:n}={}){let{basename:i}=E.useContext(lr),l=E.useContext(Sr);ot(l,"useFormAction must be used inside a RouteContext");let[o]=l.matches.slice(-1),s={...Zo(e||".",{relative:n})},c=vn();if(e==null){s.search=c.search;let f=new URLSearchParams(s.search),h=f.getAll("index");if(h.some(y=>y==="")){f.delete("index"),h.filter(g=>g).forEach(g=>f.append("index",g));let y=f.toString();s.search=y?`?${y}`:""}}return(!e||e===".")&&o.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(s.pathname=s.pathname==="/"?i:Kr([i,s.pathname])),Po(s)}function WC(e,n={}){let i=E.useContext(Tv);ot(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:l}=Lv("useViewTransitionState"),o=Zo(e,{relative:n.relative});if(!i.isTransitioning)return!1;let s=Gr(i.currentLocation.pathname,l)||i.currentLocation.pathname,c=Gr(i.nextLocation.pathname,l)||i.nextLocation.pathname;return Bu(o.pathname,c)!=null||Bu(o.pathname,s)!=null}[...LC];var eE=wv();const tE=ba(eE);function yh(e,n){return yh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,l){return i.__proto__=l,i},yh(e,n)}function Ca(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,yh(e,n)}var Ea=function(){function e(){this.listeners=[]}var n=e.prototype;return n.subscribe=function(l){var o=this,s=l||function(){};return this.listeners.push(s),this.onSubscribe(),function(){o.listeners=o.listeners.filter(function(c){return c!==s}),o.onUnsubscribe()}},n.hasListeners=function(){return this.listeners.length>0},n.onSubscribe=function(){},n.onUnsubscribe=function(){},e}();function je(){return je=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},je.apply(null,arguments)}var qu=typeof window>"u";function $t(){}function nE(e,n){return typeof e=="function"?e(n):e}function gh(e){return typeof e=="number"&&e>=0&&e!==1/0}function Hu(e){return Array.isArray(e)?e:[e]}function Uv(e,n){return Math.max(e+(n||0)-Date.now(),0)}function Ou(e,n,i){return Jo(e)?typeof n=="function"?je({},i,{queryKey:e,queryFn:n}):je({},n,{queryKey:e}):e}function rE(e,n,i){return Jo(e)?typeof n=="function"?je({},i,{mutationKey:e,mutationFn:n}):je({},n,{mutationKey:e}):typeof e=="function"?je({},n,{mutationFn:e}):je({},e)}function Ri(e,n,i){return Jo(e)?[je({},n,{queryKey:e}),i]:[e||{},n]}function iE(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 q0(e,n){var i=e.active,l=e.exact,o=e.fetching,s=e.inactive,c=e.predicate,f=e.queryKey,h=e.stale;if(Jo(f)){if(l){if(n.queryHash!==lp(f,n.options))return!1}else if(!Fu(n.queryKey,f))return!1}var d=iE(i,s);if(d==="none")return!1;if(d!=="all"){var y=n.isActive();if(d==="active"&&!y||d==="inactive"&&y)return!1}return!(typeof h=="boolean"&&n.isStale()!==h||typeof o=="boolean"&&n.isFetching()!==o||c&&!c(n))}function H0(e,n){var i=e.exact,l=e.fetching,o=e.predicate,s=e.mutationKey;if(Jo(s)){if(!n.options.mutationKey)return!1;if(i){if(ol(n.options.mutationKey)!==ol(s))return!1}else if(!Fu(n.options.mutationKey,s))return!1}return!(typeof l=="boolean"&&n.state.status==="loading"!==l||o&&!o(n))}function lp(e,n){var i=(n==null?void 0:n.queryKeyHashFn)||ol;return i(e)}function ol(e){var n=Hu(e);return lE(n)}function lE(e){return JSON.stringify(e,function(n,i){return vh(i)?Object.keys(i).sort().reduce(function(l,o){return l[o]=i[o],l},{}):i})}function Fu(e,n){return Bv(Hu(e),Hu(n))}function Bv(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!Bv(e[i],n[i])}):!1}function Qu(e,n){if(e===n)return e;var i=Array.isArray(e)&&Array.isArray(n);if(i||vh(e)&&vh(n)){for(var l=i?e.length:Object.keys(e).length,o=i?n:Object.keys(n),s=o.length,c=i?[]:{},f=0,h=0;h<s;h++){var d=i?h:o[h];c[d]=Qu(e[d],n[d]),c[d]===e[d]&&f++}return l===s&&f===l?e:c}return n}function aE(e,n){if(e&&!n||n&&!e)return!1;for(var i in e)if(e[i]!==n[i])return!1;return!0}function vh(e){if(!F0(e))return!1;var n=e.constructor;if(typeof n>"u")return!0;var i=n.prototype;return!(!F0(i)||!i.hasOwnProperty("isPrototypeOf"))}function F0(e){return Object.prototype.toString.call(e)==="[object Object]"}function Jo(e){return typeof e=="string"||Array.isArray(e)}function oE(e){return new Promise(function(n){setTimeout(n,e)})}function Q0(e){Promise.resolve().then(e).catch(function(n){return setTimeout(function(){throw n})})}function qv(){if(typeof AbortController=="function")return new AbortController}var sE=function(e){Ca(n,e);function n(){var l;return l=e.call(this)||this,l.setup=function(o){var s;if(!qu&&((s=window)!=null&&s.addEventListener)){var c=function(){return o()};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 o;(o=this.cleanup)==null||o.call(this),this.cleanup=void 0}},i.setEventListener=function(o){var s,c=this;this.setup=o,(s=this.cleanup)==null||s.call(this),this.cleanup=o(function(f){typeof f=="boolean"?c.setFocused(f):c.onFocus()})},i.setFocused=function(o){this.focused=o,o&&this.onFocus()},i.onFocus=function(){this.listeners.forEach(function(o){o()})},i.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},n}(Ea),Uo=new sE,uE=function(e){Ca(n,e);function n(){var l;return l=e.call(this)||this,l.setup=function(o){var s;if(!qu&&((s=window)!=null&&s.addEventListener)){var c=function(){return o()};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 o;(o=this.cleanup)==null||o.call(this),this.cleanup=void 0}},i.setEventListener=function(o){var s,c=this;this.setup=o,(s=this.cleanup)==null||s.call(this),this.cleanup=o(function(f){typeof f=="boolean"?c.setOnline(f):c.onOnline()})},i.setOnline=function(o){this.online=o,o&&this.onOnline()},i.onOnline=function(){this.listeners.forEach(function(o){o()})},i.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine},n}(Ea),Ru=new uE;function cE(e){return Math.min(1e3*Math.pow(2,e),3e4)}function Pu(e){return typeof(e==null?void 0:e.cancel)=="function"}var Hv=function(n){this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent};function Nu(e){return e instanceof Hv}var Fv=function(n){var i=this,l=!1,o,s,c,f;this.abort=n.abort,this.cancel=function(x){return o==null?void 0:o(x)},this.cancelRetry=function(){l=!0},this.continueRetry=function(){l=!1},this.continue=function(){return s==null?void 0:s()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(x,b){c=x,f=b});var h=function(b){i.isResolved||(i.isResolved=!0,n.onSuccess==null||n.onSuccess(b),s==null||s(),c(b))},d=function(b){i.isResolved||(i.isResolved=!0,n.onError==null||n.onError(b),s==null||s(),f(b))},y=function(){return new Promise(function(b){s=b,i.isPaused=!0,n.onPause==null||n.onPause()}).then(function(){s=void 0,i.isPaused=!1,n.onContinue==null||n.onContinue()})},g=function x(){if(!i.isResolved){var b;try{b=n.fn()}catch(w){b=Promise.reject(w)}o=function(T){if(!i.isResolved&&(d(new Hv(T)),i.abort==null||i.abort(),Pu(b)))try{b.cancel()}catch{}},i.isTransportCancelable=Pu(b),Promise.resolve(b).then(h).catch(function(w){var T,_;if(!i.isResolved){var A=(T=n.retry)!=null?T:3,N=(_=n.retryDelay)!=null?_:cE,O=typeof N=="function"?N(i.failureCount,w):N,z=A===!0||typeof A=="number"&&i.failureCount<A||typeof A=="function"&&A(i.failureCount,w);if(l||!z){d(w);return}i.failureCount++,n.onFail==null||n.onFail(i.failureCount,w),oE(O).then(function(){if(!Uo.isFocused()||!Ru.isOnline())return y()}).then(function(){l?d(w):x()})}})}};g()},fE=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 o;this.transactions++;try{o=l()}finally{this.transactions--,this.transactions||this.flush()}return o},n.schedule=function(l){var o=this;this.transactions?this.queue.push(l):Q0(function(){o.notifyFn(l)})},n.batchCalls=function(l){var o=this;return function(){for(var s=arguments.length,c=new Array(s),f=0;f<s;f++)c[f]=arguments[f];o.schedule(function(){l.apply(void 0,c)})}},n.flush=function(){var l=this,o=this.queue;this.queue=[],o.length&&Q0(function(){l.batchNotifyFn(function(){o.forEach(function(s){l.notifyFn(s)})})})},n.setNotifyFunction=function(l){this.notifyFn=l},n.setBatchNotifyFunction=function(l){this.batchNotifyFn=l},e}(),at=new fE,Qv=console;function Iu(){return Qv}function dE(e){Qv=e}var hE=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 o;this.options=je({},this.defaultOptions,l),this.meta=l==null?void 0:l.meta,this.cacheTime=Math.max(this.cacheTime||0,(o=this.options.cacheTime)!=null?o:5*60*1e3)},n.setDefaultOptions=function(l){this.defaultOptions=l},n.scheduleGc=function(){var l=this;this.clearGcTimeout(),gh(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,o){var s,c,f=this.state.data,h=nE(l,f);return(s=(c=this.options).isDataEqual)!=null&&s.call(c,f,h)?h=f:this.options.structuralSharing!==!1&&(h=Qu(f,h)),this.dispatch({data:h,type:"success",dataUpdatedAt:o==null?void 0:o.updatedAt}),h},n.setState=function(l,o){this.dispatch({type:"setState",state:l,setStateOptions:o})},n.cancel=function(l){var o,s=this.promise;return(o=this.retryer)==null||o.cancel(l),s?s.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||!Uv(this.state.dataUpdatedAt,l)},n.onFocus=function(){var l,o=this.observers.find(function(s){return s.shouldFetchOnWindowFocus()});o&&o.refetch(),(l=this.retryer)==null||l.continue()},n.onOnline=function(){var l,o=this.observers.find(function(s){return s.shouldFetchOnReconnect()});o&&o.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(o){return o!==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,o){var s=this,c,f,h;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(o!=null&&o.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 y=this.observers.find(function(N){return N.options.queryFn});y&&this.setOptions(y.options)}var g=Hu(this.queryKey),x=qv(),b={queryKey:g,pageParam:void 0,meta:this.meta};Object.defineProperty(b,"signal",{enumerable:!0,get:function(){if(x)return s.abortSignalConsumed=!0,x.signal}});var w=function(){return s.options.queryFn?(s.abortSignalConsumed=!1,s.options.queryFn(b)):Promise.reject("Missing queryFn")},T={fetchOptions:o,options:this.options,queryKey:g,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 A;this.dispatch({type:"fetch",meta:(A=T.fetchOptions)==null?void 0:A.meta})}return this.retryer=new Fv({fn:T.fetchFn,abort:x==null||(h=x.abort)==null?void 0:h.bind(x),onSuccess:function(O){s.setData(O),s.cache.config.onSuccess==null||s.cache.config.onSuccess(O,s),s.cacheTime===0&&s.optionalRemove()},onError:function(O){Nu(O)&&O.silent||s.dispatch({type:"error",error:O}),Nu(O)||(s.cache.config.onError==null||s.cache.config.onError(O,s),Iu().error(O)),s.cacheTime===0&&s.optionalRemove()},onFail:function(){s.dispatch({type:"failed"})},onPause:function(){s.dispatch({type:"pause"})},onContinue:function(){s.dispatch({type:"continue"})},retry:T.options.retry,retryDelay:T.options.retryDelay}),this.promise=this.retryer.promise,this.promise},n.dispatch=function(l){var o=this;this.state=this.reducer(this.state,l),at.batch(function(){o.observers.forEach(function(s){s.onQueryUpdate(l)}),o.cache.notify({query:o,type:"queryUpdated",action:l})})},n.getDefaultState=function(l){var o=typeof l.initialData=="function"?l.initialData():l.initialData,s=typeof l.initialData<"u",c=s?typeof l.initialDataUpdatedAt=="function"?l.initialDataUpdatedAt():l.initialDataUpdatedAt:0,f=typeof o<"u";return{data:o,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,o){var s,c;switch(o.type){case"failed":return je({},l,{fetchFailureCount:l.fetchFailureCount+1});case"pause":return je({},l,{isPaused:!0});case"continue":return je({},l,{isPaused:!1});case"fetch":return je({},l,{fetchFailureCount:0,fetchMeta:(s=o.meta)!=null?s:null,isFetching:!0,isPaused:!1},!l.dataUpdatedAt&&{error:null,status:"loading"});case"success":return je({},l,{data:o.data,dataUpdateCount:l.dataUpdateCount+1,dataUpdatedAt:(c=o.dataUpdatedAt)!=null?c:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var f=o.error;return Nu(f)&&f.revert&&this.revertState?je({},this.revertState):je({},l,{error:f,errorUpdateCount:l.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:l.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return je({},l,{isInvalidated:!0});case"setState":return je({},l,o.state);default:return l}},e}(),pE=function(e){Ca(n,e);function n(l){var o;return o=e.call(this)||this,o.config=l||{},o.queries=[],o.queriesMap={},o}var i=n.prototype;return i.build=function(o,s,c){var f,h=s.queryKey,d=(f=s.queryHash)!=null?f:lp(h,s),y=this.get(d);return y||(y=new hE({cache:this,queryKey:h,queryHash:d,options:o.defaultQueryOptions(s),state:c,defaultOptions:o.getQueryDefaults(h),meta:s.meta}),this.add(y)),y},i.add=function(o){this.queriesMap[o.queryHash]||(this.queriesMap[o.queryHash]=o,this.queries.push(o),this.notify({type:"queryAdded",query:o}))},i.remove=function(o){var s=this.queriesMap[o.queryHash];s&&(o.destroy(),this.queries=this.queries.filter(function(c){return c!==o}),s===o&&delete this.queriesMap[o.queryHash],this.notify({type:"queryRemoved",query:o}))},i.clear=function(){var o=this;at.batch(function(){o.queries.forEach(function(s){o.remove(s)})})},i.get=function(o){return this.queriesMap[o]},i.getAll=function(){return this.queries},i.find=function(o,s){var c=Ri(o,s),f=c[0];return typeof f.exact>"u"&&(f.exact=!0),this.queries.find(function(h){return q0(f,h)})},i.findAll=function(o,s){var c=Ri(o,s),f=c[0];return Object.keys(f).length>0?this.queries.filter(function(h){return q0(f,h)}):this.queries},i.notify=function(o){var s=this;at.batch(function(){s.listeners.forEach(function(c){c(o)})})},i.onFocus=function(){var o=this;at.batch(function(){o.queries.forEach(function(s){s.onFocus()})})},i.onOnline=function(){var o=this;at.batch(function(){o.queries.forEach(function(s){s.onOnline()})})},n}(Ea),mE=function(){function e(i){this.options=je({},i.defaultOptions,i.options),this.mutationId=i.mutationId,this.mutationCache=i.mutationCache,this.observers=[],this.state=i.state||Pv(),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(o){return o!==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,o,s=this.state.status==="loading",c=Promise.resolve();return s||(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){o=f,l.mutationCache.config.onSuccess==null||l.mutationCache.config.onSuccess(o,l.state.variables,l.state.context,l)}).then(function(){return l.options.onSuccess==null?void 0:l.options.onSuccess(o,l.state.variables,l.state.context)}).then(function(){return l.options.onSettled==null?void 0:l.options.onSettled(o,null,l.state.variables,l.state.context)}).then(function(){return l.dispatch({type:"success",data:o}),o}).catch(function(f){return l.mutationCache.config.onError==null||l.mutationCache.config.onError(f,l.state.variables,l.state.context,l),Iu().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,o;return this.retryer=new Fv({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:(o=this.options.retry)!=null?o:0,retryDelay:this.options.retryDelay}),this.retryer.promise},n.dispatch=function(l){var o=this;this.state=yE(this.state,l),at.batch(function(){o.observers.forEach(function(s){s.onMutationUpdate(l)}),o.mutationCache.notify(o)})},e}();function Pv(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function yE(e,n){switch(n.type){case"failed":return je({},e,{failureCount:e.failureCount+1});case"pause":return je({},e,{isPaused:!0});case"continue":return je({},e,{isPaused:!1});case"loading":return je({},e,{context:n.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:n.variables});case"success":return je({},e,{data:n.data,error:null,status:"success",isPaused:!1});case"error":return je({},e,{data:void 0,error:n.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return je({},e,n.state);default:return e}}var gE=function(e){Ca(n,e);function n(l){var o;return o=e.call(this)||this,o.config=l||{},o.mutations=[],o.mutationId=0,o}var i=n.prototype;return i.build=function(o,s,c){var f=new mE({mutationCache:this,mutationId:++this.mutationId,options:o.defaultMutationOptions(s),state:c,defaultOptions:s.mutationKey?o.getMutationDefaults(s.mutationKey):void 0,meta:s.meta});return this.add(f),f},i.add=function(o){this.mutations.push(o),this.notify(o)},i.remove=function(o){this.mutations=this.mutations.filter(function(s){return s!==o}),o.cancel(),this.notify(o)},i.clear=function(){var o=this;at.batch(function(){o.mutations.forEach(function(s){o.remove(s)})})},i.getAll=function(){return this.mutations},i.find=function(o){return typeof o.exact>"u"&&(o.exact=!0),this.mutations.find(function(s){return H0(o,s)})},i.findAll=function(o){return this.mutations.filter(function(s){return H0(o,s)})},i.notify=function(o){var s=this;at.batch(function(){s.listeners.forEach(function(c){c(o)})})},i.onFocus=function(){this.resumePausedMutations()},i.onOnline=function(){this.resumePausedMutations()},i.resumePausedMutations=function(){var o=this.mutations.filter(function(s){return s.state.isPaused});return at.batch(function(){return o.reduce(function(s,c){return s.then(function(){return c.continue().catch($t)})},Promise.resolve())})},n}(Ea);function vE(){return{onFetch:function(n){n.fetchFn=function(){var i,l,o,s,c,f,h=(i=n.fetchOptions)==null||(l=i.meta)==null?void 0:l.refetchPage,d=(o=n.fetchOptions)==null||(s=o.meta)==null?void 0:s.fetchMore,y=d==null?void 0:d.pageParam,g=(d==null?void 0:d.direction)==="forward",x=(d==null?void 0:d.direction)==="backward",b=((c=n.state.data)==null?void 0:c.pages)||[],w=((f=n.state.data)==null?void 0:f.pageParams)||[],T=qv(),_=T==null?void 0:T.signal,A=w,N=!1,O=n.options.queryFn||function(){return Promise.reject("Missing queryFn")},z=function(J,se,B,X){return A=X?[se].concat(A):[].concat(A,[se]),X?[B].concat(J):[].concat(J,[B])},q=function(J,se,B,X){if(N)return Promise.reject("Cancelled");if(typeof B>"u"&&!se&&J.length)return Promise.resolve(J);var ne={queryKey:n.queryKey,signal:_,pageParam:B,meta:n.meta},pe=O(ne),C=Promise.resolve(pe).then(function(oe){return z(J,B,oe,X)});if(Pu(pe)){var I=C;I.cancel=pe.cancel}return C},M;if(!b.length)M=q([]);else if(g){var Y=typeof y<"u",ee=Y?y:P0(n.options,b);M=q(b,Y,ee)}else if(x){var ie=typeof y<"u",L=ie?y:bE(n.options,b);M=q(b,ie,L,!0)}else(function(){A=[];var ue=typeof n.options.getNextPageParam>"u",J=h&&b[0]?h(b[0],0,b):!0;M=J?q([],ue,w[0]):Promise.resolve(z([],w[0],b[0]));for(var se=function(ne){M=M.then(function(pe){var C=h&&b[ne]?h(b[ne],ne,b):!0;if(C){var I=ue?w[ne]:P0(n.options,pe);return q(pe,ue,I)}return Promise.resolve(z(pe,w[ne],b[ne]))})},B=1;B<b.length;B++)se(B)})();var ae=M.then(function(ue){return{pages:ue,pageParams:A}}),te=ae;return te.cancel=function(){N=!0,T==null||T.abort(),Pu(M)&&M.cancel()},ae}}}}function P0(e,n){return e.getNextPageParam==null?void 0:e.getNextPageParam(n[n.length-1],n)}function bE(e,n){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(n[0],n)}var xE=function(){function e(i){i===void 0&&(i={}),this.queryCache=i.queryCache||new pE,this.mutationCache=i.mutationCache||new gE,this.defaultOptions=i.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var n=e.prototype;return n.mount=function(){var l=this;this.unsubscribeFocus=Uo.subscribe(function(){Uo.isFocused()&&Ru.isOnline()&&(l.mutationCache.onFocus(),l.queryCache.onFocus())}),this.unsubscribeOnline=Ru.subscribe(function(){Uo.isFocused()&&Ru.isOnline()&&(l.mutationCache.onOnline(),l.queryCache.onOnline())})},n.unmount=function(){var l,o;(l=this.unsubscribeFocus)==null||l.call(this),(o=this.unsubscribeOnline)==null||o.call(this)},n.isFetching=function(l,o){var s=Ri(l,o),c=s[0];return c.fetching=!0,this.queryCache.findAll(c).length},n.isMutating=function(l){return this.mutationCache.findAll(je({},l,{fetching:!0})).length},n.getQueryData=function(l,o){var s;return(s=this.queryCache.find(l,o))==null?void 0:s.state.data},n.getQueriesData=function(l){return this.getQueryCache().findAll(l).map(function(o){var s=o.queryKey,c=o.state,f=c.data;return[s,f]})},n.setQueryData=function(l,o,s){var c=Ou(l),f=this.defaultQueryOptions(c);return this.queryCache.build(this,f).setData(o,s)},n.setQueriesData=function(l,o,s){var c=this;return at.batch(function(){return c.getQueryCache().findAll(l).map(function(f){var h=f.queryKey;return[h,c.setQueryData(h,o,s)]})})},n.getQueryState=function(l,o){var s;return(s=this.queryCache.find(l,o))==null?void 0:s.state},n.removeQueries=function(l,o){var s=Ri(l,o),c=s[0],f=this.queryCache;at.batch(function(){f.findAll(c).forEach(function(h){f.remove(h)})})},n.resetQueries=function(l,o,s){var c=this,f=Ri(l,o,s),h=f[0],d=f[1],y=this.queryCache,g=je({},h,{active:!0});return at.batch(function(){return y.findAll(h).forEach(function(x){x.reset()}),c.refetchQueries(g,d)})},n.cancelQueries=function(l,o,s){var c=this,f=Ri(l,o,s),h=f[0],d=f[1],y=d===void 0?{}:d;typeof y.revert>"u"&&(y.revert=!0);var g=at.batch(function(){return c.queryCache.findAll(h).map(function(x){return x.cancel(y)})});return Promise.all(g).then($t).catch($t)},n.invalidateQueries=function(l,o,s){var c,f,h,d=this,y=Ri(l,o,s),g=y[0],x=y[1],b=je({},g,{active:(c=(f=g.refetchActive)!=null?f:g.active)!=null?c:!0,inactive:(h=g.refetchInactive)!=null?h:!1});return at.batch(function(){return d.queryCache.findAll(g).forEach(function(w){w.invalidate()}),d.refetchQueries(b,x)})},n.refetchQueries=function(l,o,s){var c=this,f=Ri(l,o,s),h=f[0],d=f[1],y=at.batch(function(){return c.queryCache.findAll(h).map(function(x){return x.fetch(void 0,je({},d,{meta:{refetchPage:h==null?void 0:h.refetchPage}}))})}),g=Promise.all(y).then($t);return d!=null&&d.throwOnError||(g=g.catch($t)),g},n.fetchQuery=function(l,o,s){var c=Ou(l,o,s),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,o,s){return this.fetchQuery(l,o,s).then($t).catch($t)},n.fetchInfiniteQuery=function(l,o,s){var c=Ou(l,o,s);return c.behavior=vE(),this.fetchQuery(c)},n.prefetchInfiniteQuery=function(l,o,s){return this.fetchInfiniteQuery(l,o,s).then($t).catch($t)},n.cancelMutations=function(){var l=this,o=at.batch(function(){return l.mutationCache.getAll().map(function(s){return s.cancel()})});return Promise.all(o).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,o){var s=this.queryDefaults.find(function(c){return ol(l)===ol(c.queryKey)});s?s.defaultOptions=o:this.queryDefaults.push({queryKey:l,defaultOptions:o})},n.getQueryDefaults=function(l){var o;return l?(o=this.queryDefaults.find(function(s){return Fu(l,s.queryKey)}))==null?void 0:o.defaultOptions:void 0},n.setMutationDefaults=function(l,o){var s=this.mutationDefaults.find(function(c){return ol(l)===ol(c.mutationKey)});s?s.defaultOptions=o:this.mutationDefaults.push({mutationKey:l,defaultOptions:o})},n.getMutationDefaults=function(l){var o;return l?(o=this.mutationDefaults.find(function(s){return Fu(l,s.mutationKey)}))==null?void 0:o.defaultOptions:void 0},n.defaultQueryOptions=function(l){if(l!=null&&l._defaulted)return l;var o=je({},this.defaultOptions.queries,this.getQueryDefaults(l==null?void 0:l.queryKey),l,{_defaulted:!0});return!o.queryHash&&o.queryKey&&(o.queryHash=lp(o.queryKey,o)),o},n.defaultQueryObserverOptions=function(l){return this.defaultQueryOptions(l)},n.defaultMutationOptions=function(l){return l!=null&&l._defaulted?l:je({},this.defaultOptions.mutations,this.getMutationDefaults(l==null?void 0:l.mutationKey),l,{_defaulted:!0})},n.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),wE=function(e){Ca(n,e);function n(l,o){var s;return s=e.call(this)||this,s.client=l,s.options=o,s.trackedProps=[],s.selectError=null,s.bindMethods(),s.setOptions(o),s}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),I0(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},i.onUnsubscribe=function(){this.listeners.length||this.destroy()},i.shouldFetchOnReconnect=function(){return bh(this.currentQuery,this.options,this.options.refetchOnReconnect)},i.shouldFetchOnWindowFocus=function(){return bh(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},i.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},i.setOptions=function(o,s){var c=this.options,f=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(o),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=c.queryKey),this.updateQuery();var h=this.hasListeners();h&&V0(this.currentQuery,f,this.options,c)&&this.executeFetch(),this.updateResult(s),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(o){var s=this.client.defaultQueryObserverOptions(o),c=this.client.getQueryCache().build(this.client,s);return this.createResult(c,s)},i.getCurrentResult=function(){return this.currentResult},i.trackResult=function(o,s){var c=this,f={},h=function(y){c.trackedProps.includes(y)||c.trackedProps.push(y)};return Object.keys(o).forEach(function(d){Object.defineProperty(f,d,{configurable:!1,enumerable:!0,get:function(){return h(d),o[d]}})}),(s.useErrorBoundary||s.suspense)&&h("error"),f},i.getNextResult=function(o){var s=this;return new Promise(function(c,f){var h=s.subscribe(function(d){d.isFetching||(h(),d.isError&&(o!=null&&o.throwOnError)?f(d.error):c(d))})})},i.getCurrentQuery=function(){return this.currentQuery},i.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},i.refetch=function(o){return this.fetch(je({},o,{meta:{refetchPage:o==null?void 0:o.refetchPage}}))},i.fetchOptimistic=function(o){var s=this,c=this.client.defaultQueryObserverOptions(o),f=this.client.getQueryCache().build(this.client,c);return f.fetch().then(function(){return s.createResult(f,c)})},i.fetch=function(o){var s=this;return this.executeFetch(o).then(function(){return s.updateResult(),s.currentResult})},i.executeFetch=function(o){this.updateQuery();var s=this.currentQuery.fetch(this.options,o);return o!=null&&o.throwOnError||(s=s.catch($t)),s},i.updateStaleTimeout=function(){var o=this;if(this.clearStaleTimeout(),!(qu||this.currentResult.isStale||!gh(this.options.staleTime))){var s=Uv(this.currentResult.dataUpdatedAt,this.options.staleTime),c=s+1;this.staleTimeoutId=setTimeout(function(){o.currentResult.isStale||o.updateResult()},c)}},i.computeRefetchInterval=function(){var o;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(o=this.options.refetchInterval)!=null?o:!1},i.updateRefetchInterval=function(o){var s=this;this.clearRefetchInterval(),this.currentRefetchInterval=o,!(qu||this.options.enabled===!1||!gh(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(s.options.refetchIntervalInBackground||Uo.isFocused())&&s.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(o,s){var c=this.currentQuery,f=this.options,h=this.currentResult,d=this.currentResultState,y=this.currentResultOptions,g=o!==c,x=g?o.state:this.currentQueryInitialState,b=g?this.currentResult:this.previousQueryResult,w=o.state,T=w.dataUpdatedAt,_=w.error,A=w.errorUpdatedAt,N=w.isFetching,O=w.status,z=!1,q=!1,M;if(s.optimisticResults){var Y=this.hasListeners(),ee=!Y&&I0(o,s),ie=Y&&V0(o,c,s,f);(ee||ie)&&(N=!0,T||(O="loading"))}if(s.keepPreviousData&&!w.dataUpdateCount&&(b!=null&&b.isSuccess)&&O!=="error")M=b.data,T=b.dataUpdatedAt,O=b.status,z=!0;else if(s.select&&typeof w.data<"u")if(h&&w.data===(d==null?void 0:d.data)&&s.select===this.selectFn)M=this.selectResult;else try{this.selectFn=s.select,M=s.select(w.data),s.structuralSharing!==!1&&(M=Qu(h==null?void 0:h.data,M)),this.selectResult=M,this.selectError=null}catch(te){Iu().error(te),this.selectError=te}else M=w.data;if(typeof s.placeholderData<"u"&&typeof M>"u"&&(O==="loading"||O==="idle")){var L;if(h!=null&&h.isPlaceholderData&&s.placeholderData===(y==null?void 0:y.placeholderData))L=h.data;else if(L=typeof s.placeholderData=="function"?s.placeholderData():s.placeholderData,s.select&&typeof L<"u")try{L=s.select(L),s.structuralSharing!==!1&&(L=Qu(h==null?void 0:h.data,L)),this.selectError=null}catch(te){Iu().error(te),this.selectError=te}typeof L<"u"&&(O="success",M=L,q=!0)}this.selectError&&(_=this.selectError,M=this.selectResult,A=Date.now(),O="error");var ae={status:O,isLoading:O==="loading",isSuccess:O==="success",isError:O==="error",isIdle:O==="idle",data:M,dataUpdatedAt:T,error:_,errorUpdatedAt:A,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&&O!=="loading",isLoadingError:O==="error"&&w.dataUpdatedAt===0,isPlaceholderData:q,isPreviousData:z,isRefetchError:O==="error"&&w.dataUpdatedAt!==0,isStale:ap(o,s),refetch:this.refetch,remove:this.remove};return ae},i.shouldNotifyListeners=function(o,s){if(!s)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(o).some(function(y){var g=y,x=o[g]!==s[g],b=d==null?void 0:d.some(function(T){return T===y}),w=h==null?void 0:h.some(function(T){return T===y});return x&&!w&&(!d||b)})},i.updateResult=function(o){var s=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!aE(this.currentResult,s)){var c={cache:!0};(o==null?void 0:o.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,s)&&(c.listeners=!0),this.notify(je({},c,o))}},i.updateQuery=function(){var o=this.client.getQueryCache().build(this.client,this.options);if(o!==this.currentQuery){var s=this.currentQuery;this.currentQuery=o,this.currentQueryInitialState=o.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(s==null||s.removeObserver(this),o.addObserver(this))}},i.onQueryUpdate=function(o){var s={};o.type==="success"?s.onSuccess=!0:o.type==="error"&&!Nu(o.error)&&(s.onError=!0),this.updateResult(s),this.hasListeners()&&this.updateTimers()},i.notify=function(o){var s=this;at.batch(function(){o.onSuccess?(s.options.onSuccess==null||s.options.onSuccess(s.currentResult.data),s.options.onSettled==null||s.options.onSettled(s.currentResult.data,null)):o.onError&&(s.options.onError==null||s.options.onError(s.currentResult.error),s.options.onSettled==null||s.options.onSettled(void 0,s.currentResult.error)),o.listeners&&s.listeners.forEach(function(c){c(s.currentResult)}),o.cache&&s.client.getQueryCache().notify({query:s.currentQuery,type:"observerResultsUpdated"})})},n}(Ea);function SE(e,n){return n.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&n.retryOnMount===!1)}function I0(e,n){return SE(e,n)||e.state.dataUpdatedAt>0&&bh(e,n,n.refetchOnMount)}function bh(e,n,i){if(n.enabled!==!1){var l=typeof i=="function"?i(e):i;return l==="always"||l!==!1&&ap(e,n)}return!1}function V0(e,n,i,l){return i.enabled!==!1&&(e!==n||l.enabled===!1)&&(!i.suspense||e.state.status!=="error")&&ap(e,i)}function ap(e,n){return e.isStaleByTime(n.staleTime)}var CE=function(e){Ca(n,e);function n(l,o){var s;return s=e.call(this)||this,s.client=l,s.setOptions(o),s.bindMethods(),s.updateResult(),s}var i=n.prototype;return i.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},i.setOptions=function(o){this.options=this.client.defaultMutationOptions(o)},i.onUnsubscribe=function(){if(!this.listeners.length){var o;(o=this.currentMutation)==null||o.removeObserver(this)}},i.onMutationUpdate=function(o){this.updateResult();var s={listeners:!0};o.type==="success"?s.onSuccess=!0:o.type==="error"&&(s.onError=!0),this.notify(s)},i.getCurrentResult=function(){return this.currentResult},i.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},i.mutate=function(o,s){return this.mutateOptions=s,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,je({},this.options,{variables:typeof o<"u"?o:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},i.updateResult=function(){var o=this.currentMutation?this.currentMutation.state:Pv(),s=je({},o,{isLoading:o.status==="loading",isSuccess:o.status==="success",isError:o.status==="error",isIdle:o.status==="idle",mutate:this.mutate,reset:this.reset});this.currentResult=s},i.notify=function(o){var s=this;at.batch(function(){s.mutateOptions&&(o.onSuccess?(s.mutateOptions.onSuccess==null||s.mutateOptions.onSuccess(s.currentResult.data,s.currentResult.variables,s.currentResult.context),s.mutateOptions.onSettled==null||s.mutateOptions.onSettled(s.currentResult.data,null,s.currentResult.variables,s.currentResult.context)):o.onError&&(s.mutateOptions.onError==null||s.mutateOptions.onError(s.currentResult.error,s.currentResult.variables,s.currentResult.context),s.mutateOptions.onSettled==null||s.mutateOptions.onSettled(void 0,s.currentResult.error,s.currentResult.variables,s.currentResult.context))),o.listeners&&s.listeners.forEach(function(c){c(s.currentResult)})})},n}(Ea),EE=tE.unstable_batchedUpdates;at.setBatchNotifyFunction(EE);var kE=console;dE(kE);var $0=tt.createContext(void 0),Iv=tt.createContext(!1);function Vv(e){return e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=$0),window.ReactQueryClientContext):$0}var $v=function(){var n=tt.useContext(Vv(tt.useContext(Iv)));if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},TE=function(n){var i=n.client,l=n.contextSharing,o=l===void 0?!1:l,s=n.children;tt.useEffect(function(){return i.mount(),function(){i.unmount()}},[i]);var c=Vv(o);return tt.createElement(Iv.Provider,{value:o},tt.createElement(c.Provider,{value:i},s))};function AE(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var _E=tt.createContext(AE()),OE=function(){return tt.useContext(_E)};function Yv(e,n,i){return typeof n=="function"?n.apply(void 0,i):typeof n=="boolean"?n:!!e}function Cr(e,n,i){var l=tt.useRef(!1),o=tt.useState(0),s=o[1],c=rE(e,n,i),f=$v(),h=tt.useRef();h.current?h.current.setOptions(c):h.current=new CE(f,c);var d=h.current.getCurrentResult();tt.useEffect(function(){l.current=!0;var g=h.current.subscribe(at.batchCalls(function(){l.current&&s(function(x){return x+1})}));return function(){l.current=!1,g()}},[]);var y=tt.useCallback(function(g,x){h.current.mutate(g,x).catch($t)},[]);if(d.error&&Yv(void 0,h.current.options.useErrorBoundary,[d.error]))throw d.error;return je({},d,{mutate:y,mutateAsync:d.mutate})}function RE(e,n){var i=tt.useRef(!1),l=tt.useState(0),o=l[1],s=$v(),c=OE(),f=s.defaultQueryObserverOptions(e);f.optimisticResults=!0,f.onError&&(f.onError=at.batchCalls(f.onError)),f.onSuccess&&(f.onSuccess=at.batchCalls(f.onSuccess)),f.onSettled&&(f.onSettled=at.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=tt.useState(function(){return new n(s,f)}),d=h[0],y=d.getOptimisticResult(f);if(tt.useEffect(function(){i.current=!0,c.clearReset();var g=d.subscribe(at.batchCalls(function(){i.current&&o(function(x){return x+1})}));return d.updateResult(),function(){i.current=!1,g()}},[c,d]),tt.useEffect(function(){d.setOptions(f,{listeners:!1})},[f,d]),f.suspense&&y.isLoading)throw d.fetchOptimistic(f).then(function(g){var x=g.data;f.onSuccess==null||f.onSuccess(x),f.onSettled==null||f.onSettled(x,null)}).catch(function(g){c.clearReset(),f.onError==null||f.onError(g),f.onSettled==null||f.onSettled(void 0,g)});if(y.isError&&!c.isReset()&&!y.isFetching&&Yv(f.suspense,f.useErrorBoundary,[y.error,d.getCurrentQuery()]))throw y.error;return f.notifyOnChangeProps==="tracked"&&(y=d.trackResult(y,f)),y}function Kn(e,n,i){var l=Ou(e,n,i);return RE(l,wE)}function Kv(e,n){return function(){return e.apply(n,arguments)}}const{toString:NE}=Object.prototype,{getPrototypeOf:op}=Object,{iterator:lc,toStringTag:Gv}=Symbol,ac=(e=>n=>{const i=NE.call(n);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),ar=e=>(e=e.toLowerCase(),n=>ac(n)===e),oc=e=>n=>typeof n===e,{isArray:ka}=Array,Io=oc("undefined");function jE(e){return e!==null&&!Io(e)&&e.constructor!==null&&!Io(e.constructor)&&yn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Xv=ar("ArrayBuffer");function DE(e){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&Xv(e.buffer),n}const ME=oc("string"),yn=oc("function"),Zv=oc("number"),sc=e=>e!==null&&typeof e=="object",zE=e=>e===!0||e===!1,ju=e=>{if(ac(e)!=="object")return!1;const n=op(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Gv in e)&&!(lc in e)},LE=ar("Date"),UE=ar("File"),BE=ar("Blob"),qE=ar("FileList"),HE=e=>sc(e)&&yn(e.pipe),FE=e=>{let n;return e&&(typeof FormData=="function"&&e instanceof FormData||yn(e.append)&&((n=ac(e))==="formdata"||n==="object"&&yn(e.toString)&&e.toString()==="[object FormData]"))},QE=ar("URLSearchParams"),[PE,IE,VE,$E]=["ReadableStream","Request","Response","Headers"].map(ar),YE=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Wo(e,n,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let l,o;if(typeof e!="object"&&(e=[e]),ka(e))for(l=0,o=e.length;l<o;l++)n.call(null,e[l],l,e);else{const s=i?Object.getOwnPropertyNames(e):Object.keys(e),c=s.length;let f;for(l=0;l<c;l++)f=s[l],n.call(null,e[f],f,e)}}function Jv(e,n){n=n.toLowerCase();const i=Object.keys(e);let l=i.length,o;for(;l-- >0;)if(o=i[l],n===o.toLowerCase())return o;return null}const sl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Wv=e=>!Io(e)&&e!==sl;function xh(){const{caseless:e}=Wv(this)&&this||{},n={},i=(l,o)=>{const s=e&&Jv(n,o)||o;ju(n[s])&&ju(l)?n[s]=xh(n[s],l):ju(l)?n[s]=xh({},l):ka(l)?n[s]=l.slice():n[s]=l};for(let l=0,o=arguments.length;l<o;l++)arguments[l]&&Wo(arguments[l],i);return n}const KE=(e,n,i,{allOwnKeys:l}={})=>(Wo(n,(o,s)=>{i&&yn(o)?e[s]=Kv(o,i):e[s]=o},{allOwnKeys:l}),e),GE=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),XE=(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)},ZE=(e,n,i,l)=>{let o,s,c;const f={};if(n=n||{},e==null)return n;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)c=o[s],(!l||l(c,e,n))&&!f[c]&&(n[c]=e[c],f[c]=!0);e=i!==!1&&op(e)}while(e&&(!i||i(e,n))&&e!==Object.prototype);return n},JE=(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},WE=e=>{if(!e)return null;if(ka(e))return e;let n=e.length;if(!Zv(n))return null;const i=new Array(n);for(;n-- >0;)i[n]=e[n];return i},e3=(e=>n=>e&&n instanceof e)(typeof Uint8Array<"u"&&op(Uint8Array)),t3=(e,n)=>{const l=(e&&e[lc]).call(e);let o;for(;(o=l.next())&&!o.done;){const s=o.value;n.call(e,s[0],s[1])}},n3=(e,n)=>{let i;const l=[];for(;(i=e.exec(n))!==null;)l.push(i);return l},r3=ar("HTMLFormElement"),i3=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,l,o){return l.toUpperCase()+o}),Y0=(({hasOwnProperty:e})=>(n,i)=>e.call(n,i))(Object.prototype),l3=ar("RegExp"),eb=(e,n)=>{const i=Object.getOwnPropertyDescriptors(e),l={};Wo(i,(o,s)=>{let c;(c=n(o,s,e))!==!1&&(l[s]=c||o)}),Object.defineProperties(e,l)},a3=e=>{eb(e,(n,i)=>{if(yn(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const l=e[i];if(yn(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=o=>{o.forEach(s=>{i[s]=!0})};return ka(e)?l(e):l(String(e).split(n)),i},s3=()=>{},u3=(e,n)=>e!=null&&Number.isFinite(e=+e)?e:n;function c3(e){return!!(e&&yn(e.append)&&e[Gv]==="FormData"&&e[lc])}const f3=e=>{const n=new Array(10),i=(l,o)=>{if(sc(l)){if(n.indexOf(l)>=0)return;if(!("toJSON"in l)){n[o]=l;const s=ka(l)?[]:{};return Wo(l,(c,f)=>{const h=i(c,o+1);!Io(h)&&(s[f]=h)}),n[o]=void 0,s}}return l};return i(e,0)},d3=ar("AsyncFunction"),h3=e=>e&&(sc(e)||yn(e))&&yn(e.then)&&yn(e.catch),tb=((e,n)=>e?setImmediate:n?((i,l)=>(sl.addEventListener("message",({source:o,data:s})=>{o===sl&&s===i&&l.length&&l.shift()()},!1),o=>{l.push(o),sl.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",yn(sl.postMessage)),p3=typeof queueMicrotask<"u"?queueMicrotask.bind(sl):typeof process<"u"&&process.nextTick||tb,m3=e=>e!=null&&yn(e[lc]),V={isArray:ka,isArrayBuffer:Xv,isBuffer:jE,isFormData:FE,isArrayBufferView:DE,isString:ME,isNumber:Zv,isBoolean:zE,isObject:sc,isPlainObject:ju,isReadableStream:PE,isRequest:IE,isResponse:VE,isHeaders:$E,isUndefined:Io,isDate:LE,isFile:UE,isBlob:BE,isRegExp:l3,isFunction:yn,isStream:HE,isURLSearchParams:QE,isTypedArray:e3,isFileList:qE,forEach:Wo,merge:xh,extend:KE,trim:YE,stripBOM:GE,inherits:XE,toFlatObject:ZE,kindOf:ac,kindOfTest:ar,endsWith:JE,toArray:WE,forEachEntry:t3,matchAll:n3,isHTMLForm:r3,hasOwnProperty:Y0,hasOwnProp:Y0,reduceDescriptors:eb,freezeMethods:a3,toObjectSet:o3,toCamelCase:i3,noop:s3,toFiniteNumber:u3,findKey:Jv,global:sl,isContextDefined:Wv,isSpecCompliantForm:c3,toJSONObject:f3,isAsyncFn:d3,isThenable:h3,setImmediate:tb,asap:p3,isIterable:m3};function Te(e,n,i,l,o){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),o&&(this.response=o,this.status=o.status?o.status:null)}V.inherits(Te,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 nb=Te.prototype,rb={};["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=>{rb[e]={value:e}});Object.defineProperties(Te,rb);Object.defineProperty(nb,"isAxiosError",{value:!0});Te.from=(e,n,i,l,o,s)=>{const c=Object.create(nb);return V.toFlatObject(e,c,function(h){return h!==Error.prototype},f=>f!=="isAxiosError"),Te.call(c,e.message,n,i,l,o),c.cause=e,c.name=e.name,s&&Object.assign(c,s),c};const y3=null;function wh(e){return V.isPlainObject(e)||V.isArray(e)}function ib(e){return V.endsWith(e,"[]")?e.slice(0,-2):e}function K0(e,n,i){return e?e.concat(n).map(function(o,s){return o=ib(o),!i&&s?"["+o+"]":o}).join(i?".":""):n}function g3(e){return V.isArray(e)&&!e.some(wh)}const v3=V.toFlatObject(V,{},null,function(n){return/^is[A-Z]/.test(n)});function uc(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,o=i.visitor||y,s=i.dots,c=i.indexes,h=(i.Blob||typeof Blob<"u"&&Blob)&&V.isSpecCompliantForm(n);if(!V.isFunction(o))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 Te("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 y(w,T,_){let A=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)&&g3(w)||(V.isFileList(w)||V.endsWith(T,"[]"))&&(A=V.toArray(w)))return T=ib(T),A.forEach(function(O,z){!(V.isUndefined(O)||O===null)&&n.append(c===!0?K0([T],z,s):c===null?T:T+"[]",d(O))}),!1}return wh(w)?!0:(n.append(K0(_,T,s),d(w)),!1)}const g=[],x=Object.assign(v3,{defaultVisitor:y,convertValue:d,isVisitable:wh});function b(w,T){if(!V.isUndefined(w)){if(g.indexOf(w)!==-1)throw Error("Circular reference detected in "+T.join("."));g.push(w),V.forEach(w,function(A,N){(!(V.isUndefined(A)||A===null)&&o.call(n,A,V.isString(N)?N.trim():N,T,x))===!0&&b(A,T?T.concat(N):[N])}),g.pop()}}if(!V.isObject(e))throw new TypeError("data must be an object");return b(e),n}function G0(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(l){return n[l]})}function sp(e,n){this._pairs=[],e&&uc(e,this,n)}const lb=sp.prototype;lb.append=function(n,i){this._pairs.push([n,i])};lb.toString=function(n){const i=n?function(l){return n.call(this,l,G0)}:G0;return this._pairs.map(function(o){return i(o[0])+"="+i(o[1])},"").join("&")};function b3(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ab(e,n,i){if(!n)return e;const l=i&&i.encode||b3;V.isFunction(i)&&(i={serialize:i});const o=i&&i.serialize;let s;if(o?s=o(n,i):s=V.isURLSearchParams(n)?n.toString():new sp(n,i).toString(l),s){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class X0{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 ob={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},x3=typeof URLSearchParams<"u"?URLSearchParams:sp,w3=typeof FormData<"u"?FormData:null,S3=typeof Blob<"u"?Blob:null,C3={isBrowser:!0,classes:{URLSearchParams:x3,FormData:w3,Blob:S3},protocols:["http","https","file","blob","url","data"]},up=typeof window<"u"&&typeof document<"u",Sh=typeof navigator=="object"&&navigator||void 0,E3=up&&(!Sh||["ReactNative","NativeScript","NS"].indexOf(Sh.product)<0),k3=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",T3=up&&window.location.href||"http://localhost",A3=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:up,hasStandardBrowserEnv:E3,hasStandardBrowserWebWorkerEnv:k3,navigator:Sh,origin:T3},Symbol.toStringTag,{value:"Module"})),en={...A3,...C3};function _3(e,n){return uc(e,new en.classes.URLSearchParams,Object.assign({visitor:function(i,l,o,s){return en.isNode&&V.isBuffer(i)?(this.append(l,i.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},n))}function O3(e){return V.matchAll(/\w+|\[(\w*)]/g,e).map(n=>n[0]==="[]"?"":n[1]||n[0])}function R3(e){const n={},i=Object.keys(e);let l;const o=i.length;let s;for(l=0;l<o;l++)s=i[l],n[s]=e[s];return n}function sb(e){function n(i,l,o,s){let c=i[s++];if(c==="__proto__")return!0;const f=Number.isFinite(+c),h=s>=i.length;return c=!c&&V.isArray(o)?o.length:c,h?(V.hasOwnProp(o,c)?o[c]=[o[c],l]:o[c]=l,!f):((!o[c]||!V.isObject(o[c]))&&(o[c]=[]),n(i,l,o[c],s)&&V.isArray(o[c])&&(o[c]=R3(o[c])),!f)}if(V.isFormData(e)&&V.isFunction(e.entries)){const i={};return V.forEachEntry(e,(l,o)=>{n(O3(l),o,i,0)}),i}return null}function N3(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 es={transitional:ob,adapter:["xhr","http","fetch"],transformRequest:[function(n,i){const l=i.getContentType()||"",o=l.indexOf("application/json")>-1,s=V.isObject(n);if(s&&V.isHTMLForm(n)&&(n=new FormData(n)),V.isFormData(n))return o?JSON.stringify(sb(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(s){if(l.indexOf("application/x-www-form-urlencoded")>-1)return _3(n,this.formSerializer).toString();if((f=V.isFileList(n))||l.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return uc(f?{"files[]":n}:n,h&&new h,this.formSerializer)}}return s||o?(i.setContentType("application/json",!1),N3(n)):n}],transformResponse:[function(n){const i=this.transitional||es.transitional,l=i&&i.forcedJSONParsing,o=this.responseType==="json";if(V.isResponse(n)||V.isReadableStream(n))return n;if(n&&V.isString(n)&&(l&&!this.responseType||o)){const c=!(i&&i.silentJSONParsing)&&o;try{return JSON.parse(n)}catch(f){if(c)throw f.name==="SyntaxError"?Te.from(f,Te.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:en.classes.FormData,Blob:en.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=>{es.headers[e]={}});const j3=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"]),D3=e=>{const n={};let i,l,o;return e&&e.split(`
52
+ `).forEach(function(c){o=c.indexOf(":"),i=c.substring(0,o).trim().toLowerCase(),l=c.substring(o+1).trim(),!(!i||n[i]&&j3[i])&&(i==="set-cookie"?n[i]?n[i].push(l):n[i]=[l]:n[i]=n[i]?n[i]+", "+l:l)}),n},Z0=Symbol("internals");function No(e){return e&&String(e).trim().toLowerCase()}function Du(e){return e===!1||e==null?e:V.isArray(e)?e.map(Du):String(e)}function M3(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 z3=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function qd(e,n,i,l,o){if(V.isFunction(l))return l.call(this,n,i);if(o&&(n=i),!!V.isString(n)){if(V.isString(l))return n.indexOf(l)!==-1;if(V.isRegExp(l))return l.test(n)}}function L3(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,i,l)=>i.toUpperCase()+l)}function U3(e,n){const i=V.toCamelCase(" "+n);["get","set","has"].forEach(l=>{Object.defineProperty(e,l+i,{value:function(o,s,c){return this[l].call(this,n,o,s,c)},configurable:!0})})}let gn=class{constructor(n){n&&this.set(n)}set(n,i,l){const o=this;function s(f,h,d){const y=No(h);if(!y)throw new Error("header name must be a non-empty string");const g=V.findKey(o,y);(!g||o[g]===void 0||d===!0||d===void 0&&o[g]!==!1)&&(o[g||h]=Du(f))}const c=(f,h)=>V.forEach(f,(d,y)=>s(d,y,h));if(V.isPlainObject(n)||n instanceof this.constructor)c(n,i);else if(V.isString(n)&&(n=n.trim())&&!z3(n))c(D3(n),i);else if(V.isObject(n)&&V.isIterable(n)){let f={},h,d;for(const y of n){if(!V.isArray(y))throw TypeError("Object iterator must return a key-value pair");f[d=y[0]]=(h=f[d])?V.isArray(h)?[...h,y[1]]:[h,y[1]]:y[1]}c(f,i)}else n!=null&&s(i,n,l);return this}get(n,i){if(n=No(n),n){const l=V.findKey(this,n);if(l){const o=this[l];if(!i)return o;if(i===!0)return M3(o);if(V.isFunction(i))return i.call(this,o,l);if(V.isRegExp(i))return i.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,i){if(n=No(n),n){const l=V.findKey(this,n);return!!(l&&this[l]!==void 0&&(!i||qd(this,this[l],l,i)))}return!1}delete(n,i){const l=this;let o=!1;function s(c){if(c=No(c),c){const f=V.findKey(l,c);f&&(!i||qd(l,l[f],f,i))&&(delete l[f],o=!0)}}return V.isArray(n)?n.forEach(s):s(n),o}clear(n){const i=Object.keys(this);let l=i.length,o=!1;for(;l--;){const s=i[l];(!n||qd(this,this[s],s,n,!0))&&(delete this[s],o=!0)}return o}normalize(n){const i=this,l={};return V.forEach(this,(o,s)=>{const c=V.findKey(l,s);if(c){i[c]=Du(o),delete i[s];return}const f=n?L3(s):String(s).trim();f!==s&&delete i[s],i[f]=Du(o),l[f]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const i=Object.create(null);return V.forEach(this,(l,o)=>{l!=null&&l!==!1&&(i[o]=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(o=>l.set(o)),l}static accessor(n){const l=(this[Z0]=this[Z0]={accessors:{}}).accessors,o=this.prototype;function s(c){const f=No(c);l[f]||(U3(o,c),l[f]=!0)}return V.isArray(n)?n.forEach(s):s(n),this}};gn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);V.reduceDescriptors(gn.prototype,({value:e},n)=>{let i=n[0].toUpperCase()+n.slice(1);return{get:()=>e,set(l){this[i]=l}}});V.freezeMethods(gn);function Hd(e,n){const i=this||es,l=n||i,o=gn.from(l.headers);let s=l.data;return V.forEach(e,function(f){s=f.call(i,s,o.normalize(),n?n.status:void 0)}),o.normalize(),s}function ub(e){return!!(e&&e.__CANCEL__)}function Ta(e,n,i){Te.call(this,e??"canceled",Te.ERR_CANCELED,n,i),this.name="CanceledError"}V.inherits(Ta,Te,{__CANCEL__:!0});function cb(e,n,i){const l=i.config.validateStatus;!i.status||!l||l(i.status)?e(i):n(new Te("Request failed with status code "+i.status,[Te.ERR_BAD_REQUEST,Te.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function B3(e){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}function q3(e,n){e=e||10;const i=new Array(e),l=new Array(e);let o=0,s=0,c;return n=n!==void 0?n:1e3,function(h){const d=Date.now(),y=l[s];c||(c=d),i[o]=h,l[o]=d;let g=s,x=0;for(;g!==o;)x+=i[g++],g=g%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),d-c<n)return;const b=y&&d-y;return b?Math.round(x*1e3/b):void 0}}function H3(e,n){let i=0,l=1e3/n,o,s;const c=(d,y=Date.now())=>{i=y,o=null,s&&(clearTimeout(s),s=null),e.apply(null,d)};return[(...d)=>{const y=Date.now(),g=y-i;g>=l?c(d,y):(o=d,s||(s=setTimeout(()=>{s=null,c(o)},l-g)))},()=>o&&c(o)]}const Vu=(e,n,i=3)=>{let l=0;const o=q3(50,250);return H3(s=>{const c=s.loaded,f=s.lengthComputable?s.total:void 0,h=c-l,d=o(h),y=c<=f;l=c;const g={loaded:c,total:f,progress:f?c/f:void 0,bytes:h,rate:d||void 0,estimated:d&&f&&y?(f-c)/d:void 0,event:s,lengthComputable:f!=null,[n?"download":"upload"]:!0};e(g)},i)},J0=(e,n)=>{const i=e!=null;return[l=>n[0]({lengthComputable:i,total:e,loaded:l}),n[1]]},W0=e=>(...n)=>V.asap(()=>e(...n)),F3=en.hasStandardBrowserEnv?((e,n)=>i=>(i=new URL(i,en.origin),e.protocol===i.protocol&&e.host===i.host&&(n||e.port===i.port)))(new URL(en.origin),en.navigator&&/(msie|trident)/i.test(en.navigator.userAgent)):()=>!0,Q3=en.hasStandardBrowserEnv?{write(e,n,i,l,o,s){const c=[e+"="+encodeURIComponent(n)];V.isNumber(i)&&c.push("expires="+new Date(i).toGMTString()),V.isString(l)&&c.push("path="+l),V.isString(o)&&c.push("domain="+o),s===!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 P3(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function I3(e,n){return n?e.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):e}function fb(e,n,i){let l=!P3(n);return e&&(l||i==!1)?I3(e,n):n}const e1=e=>e instanceof gn?{...e}:e;function pl(e,n){n=n||{};const i={};function l(d,y,g,x){return V.isPlainObject(d)&&V.isPlainObject(y)?V.merge.call({caseless:x},d,y):V.isPlainObject(y)?V.merge({},y):V.isArray(y)?y.slice():y}function o(d,y,g,x){if(V.isUndefined(y)){if(!V.isUndefined(d))return l(void 0,d,g,x)}else return l(d,y,g,x)}function s(d,y){if(!V.isUndefined(y))return l(void 0,y)}function c(d,y){if(V.isUndefined(y)){if(!V.isUndefined(d))return l(void 0,d)}else return l(void 0,y)}function f(d,y,g){if(g in n)return l(d,y);if(g in e)return l(void 0,d)}const h={url:s,method:s,data:s,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,y,g)=>o(e1(d),e1(y),g,!0)};return V.forEach(Object.keys(Object.assign({},e,n)),function(y){const g=h[y]||o,x=g(e[y],n[y],y);V.isUndefined(x)&&g!==f||(i[y]=x)}),i}const db=e=>{const n=pl({},e);let{data:i,withXSRFToken:l,xsrfHeaderName:o,xsrfCookieName:s,headers:c,auth:f}=n;n.headers=c=gn.from(c),n.url=ab(fb(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(en.hasStandardBrowserEnv||en.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if((h=c.getContentType())!==!1){const[d,...y]=h?h.split(";").map(g=>g.trim()).filter(Boolean):[];c.setContentType([d||"multipart/form-data",...y].join("; "))}}if(en.hasStandardBrowserEnv&&(l&&V.isFunction(l)&&(l=l(n)),l||l!==!1&&F3(n.url))){const d=o&&s&&Q3.read(s);d&&c.set(o,d)}return n},V3=typeof XMLHttpRequest<"u",$3=V3&&function(e){return new Promise(function(i,l){const o=db(e);let s=o.data;const c=gn.from(o.headers).normalize();let{responseType:f,onUploadProgress:h,onDownloadProgress:d}=o,y,g,x,b,w;function T(){b&&b(),w&&w(),o.cancelToken&&o.cancelToken.unsubscribe(y),o.signal&&o.signal.removeEventListener("abort",y)}let _=new XMLHttpRequest;_.open(o.method.toUpperCase(),o.url,!0),_.timeout=o.timeout;function A(){if(!_)return;const O=gn.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),q={data:!f||f==="text"||f==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:O,config:e,request:_};cb(function(Y){i(Y),T()},function(Y){l(Y),T()},q),_=null}"onloadend"in _?_.onloadend=A:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(A)},_.onabort=function(){_&&(l(new Te("Request aborted",Te.ECONNABORTED,e,_)),_=null)},_.onerror=function(){l(new Te("Network Error",Te.ERR_NETWORK,e,_)),_=null},_.ontimeout=function(){let z=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const q=o.transitional||ob;o.timeoutErrorMessage&&(z=o.timeoutErrorMessage),l(new Te(z,q.clarifyTimeoutError?Te.ETIMEDOUT:Te.ECONNABORTED,e,_)),_=null},s===void 0&&c.setContentType(null),"setRequestHeader"in _&&V.forEach(c.toJSON(),function(z,q){_.setRequestHeader(q,z)}),V.isUndefined(o.withCredentials)||(_.withCredentials=!!o.withCredentials),f&&f!=="json"&&(_.responseType=o.responseType),d&&([x,w]=Vu(d,!0),_.addEventListener("progress",x)),h&&_.upload&&([g,b]=Vu(h),_.upload.addEventListener("progress",g),_.upload.addEventListener("loadend",b)),(o.cancelToken||o.signal)&&(y=O=>{_&&(l(!O||O.type?new Ta(null,e,_):O),_.abort(),_=null)},o.cancelToken&&o.cancelToken.subscribe(y),o.signal&&(o.signal.aborted?y():o.signal.addEventListener("abort",y)));const N=B3(o.url);if(N&&en.protocols.indexOf(N)===-1){l(new Te("Unsupported protocol "+N+":",Te.ERR_BAD_REQUEST,e));return}_.send(s||null)})},Y3=(e,n)=>{const{length:i}=e=e?e.filter(Boolean):[];if(n||i){let l=new AbortController,o;const s=function(d){if(!o){o=!0,f();const y=d instanceof Error?d:this.reason;l.abort(y instanceof Te?y:new Ta(y instanceof Error?y.message:y))}};let c=n&&setTimeout(()=>{c=null,s(new Te(`timeout ${n} of ms exceeded`,Te.ETIMEDOUT))},n);const f=()=>{e&&(c&&clearTimeout(c),c=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(s):d.removeEventListener("abort",s)}),e=null)};e.forEach(d=>d.addEventListener("abort",s));const{signal:h}=l;return h.unsubscribe=()=>V.asap(f),h}},K3=function*(e,n){let i=e.byteLength;if(i<n){yield e;return}let l=0,o;for(;l<i;)o=l+n,yield e.slice(l,o),l=o},G3=async function*(e,n){for await(const i of X3(e))yield*K3(i,n)},X3=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()}},t1=(e,n,i,l)=>{const o=G3(e,n);let s=0,c,f=h=>{c||(c=!0,l&&l(h))};return new ReadableStream({async pull(h){try{const{done:d,value:y}=await o.next();if(d){f(),h.close();return}let g=y.byteLength;if(i){let x=s+=g;i(x)}h.enqueue(new Uint8Array(y))}catch(d){throw f(d),d}},cancel(h){return f(h),o.return()}},{highWaterMark:2})},cc=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",hb=cc&&typeof ReadableStream=="function",Z3=cc&&(typeof TextEncoder=="function"?(e=>n=>e.encode(n))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),pb=(e,...n)=>{try{return!!e(...n)}catch{return!1}},J3=hb&&pb(()=>{let e=!1;const n=new Request(en.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!n}),n1=64*1024,Ch=hb&&pb(()=>V.isReadableStream(new Response("").body)),$u={stream:Ch&&(e=>e.body)};cc&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(n=>{!$u[n]&&($u[n]=V.isFunction(e[n])?i=>i[n]():(i,l)=>{throw new Te(`Response type '${n}' is not supported`,Te.ERR_NOT_SUPPORT,l)})})})(new Response);const W3=async e=>{if(e==null)return 0;if(V.isBlob(e))return e.size;if(V.isSpecCompliantForm(e))return(await new Request(en.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 Z3(e)).byteLength},e4=async(e,n)=>{const i=V.toFiniteNumber(e.getContentLength());return i??W3(n)},t4=cc&&(async e=>{let{url:n,method:i,data:l,signal:o,cancelToken:s,timeout:c,onDownloadProgress:f,onUploadProgress:h,responseType:d,headers:y,withCredentials:g="same-origin",fetchOptions:x}=db(e);d=d?(d+"").toLowerCase():"text";let b=Y3([o,s&&s.toAbortSignal()],c),w;const T=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let _;try{if(h&&J3&&i!=="get"&&i!=="head"&&(_=await e4(y,l))!==0){let q=new Request(n,{method:"POST",body:l,duplex:"half"}),M;if(V.isFormData(l)&&(M=q.headers.get("content-type"))&&y.setContentType(M),q.body){const[Y,ee]=J0(_,Vu(W0(h)));l=t1(q.body,n1,Y,ee)}}V.isString(g)||(g=g?"include":"omit");const A="credentials"in Request.prototype;w=new Request(n,{...x,signal:b,method:i.toUpperCase(),headers:y.normalize().toJSON(),body:l,duplex:"half",credentials:A?g:void 0});let N=await fetch(w);const O=Ch&&(d==="stream"||d==="response");if(Ch&&(f||O&&T)){const q={};["status","statusText","headers"].forEach(ie=>{q[ie]=N[ie]});const M=V.toFiniteNumber(N.headers.get("content-length")),[Y,ee]=f&&J0(M,Vu(W0(f),!0))||[];N=new Response(t1(N.body,n1,Y,()=>{ee&&ee(),T&&T()}),q)}d=d||"text";let z=await $u[V.findKey($u,d)||"text"](N,e);return!O&&T&&T(),await new Promise((q,M)=>{cb(q,M,{data:z,headers:gn.from(N.headers),status:N.status,statusText:N.statusText,config:e,request:w})})}catch(A){throw T&&T(),A&&A.name==="TypeError"&&/Load failed|fetch/i.test(A.message)?Object.assign(new Te("Network Error",Te.ERR_NETWORK,e,w),{cause:A.cause||A}):Te.from(A,A&&A.code,e,w)}}),Eh={http:y3,xhr:$3,fetch:t4};V.forEach(Eh,(e,n)=>{if(e){try{Object.defineProperty(e,"name",{value:n})}catch{}Object.defineProperty(e,"adapterName",{value:n})}});const r1=e=>`- ${e}`,n4=e=>V.isFunction(e)||e===null||e===!1,mb={getAdapter:e=>{e=V.isArray(e)?e:[e];const{length:n}=e;let i,l;const o={};for(let s=0;s<n;s++){i=e[s];let c;if(l=i,!n4(i)&&(l=Eh[(c=String(i)).toLowerCase()],l===void 0))throw new Te(`Unknown adapter '${c}'`);if(l)break;o[c||"#"+s]=l}if(!l){const s=Object.entries(o).map(([f,h])=>`adapter ${f} `+(h===!1?"is not supported by the environment":"is not available in the build"));let c=n?s.length>1?`since :
54
+ `+s.map(r1).join(`
55
+ `):" "+r1(s[0]):"as no adapter specified";throw new Te("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return l},adapters:Eh};function Fd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ta(null,e)}function i1(e){return Fd(e),e.headers=gn.from(e.headers),e.data=Hd.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),mb.getAdapter(e.adapter||es.adapter)(e).then(function(l){return Fd(e),l.data=Hd.call(e,e.transformResponse,l),l.headers=gn.from(l.headers),l},function(l){return ub(l)||(Fd(e),l&&l.response&&(l.response.data=Hd.call(e,e.transformResponse,l.response),l.response.headers=gn.from(l.response.headers))),Promise.reject(l)})}const yb="1.9.0",fc={};["object","boolean","number","function","string","symbol"].forEach((e,n)=>{fc[e]=function(l){return typeof l===e||"a"+(n<1?"n ":" ")+e}});const l1={};fc.transitional=function(n,i,l){function o(s,c){return"[Axios v"+yb+"] Transitional option '"+s+"'"+c+(l?". "+l:"")}return(s,c,f)=>{if(n===!1)throw new Te(o(c," has been removed"+(i?" in "+i:"")),Te.ERR_DEPRECATED);return i&&!l1[c]&&(l1[c]=!0,console.warn(o(c," has been deprecated since v"+i+" and will be removed in the near future"))),n?n(s,c,f):!0}};fc.spelling=function(n){return(i,l)=>(console.warn(`${l} is likely a misspelling of ${n}`),!0)};function r4(e,n,i){if(typeof e!="object")throw new Te("options must be an object",Te.ERR_BAD_OPTION_VALUE);const l=Object.keys(e);let o=l.length;for(;o-- >0;){const s=l[o],c=n[s];if(c){const f=e[s],h=f===void 0||c(f,s,e);if(h!==!0)throw new Te("option "+s+" must be "+h,Te.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new Te("Unknown option "+s,Te.ERR_BAD_OPTION)}}const Mu={assertOptions:r4,validators:fc},mr=Mu.validators;let cl=class{constructor(n){this.defaults=n||{},this.interceptors={request:new X0,response:new X0}}async request(n,i){try{return await this._request(n,i)}catch(l){if(l instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{l.stack?s&&!String(l.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(l.stack+=`
56
+ `+s):l.stack=s}catch{}}throw l}}_request(n,i){typeof n=="string"?(i=i||{},i.url=n):i=n||{},i=pl(this.defaults,i);const{transitional:l,paramsSerializer:o,headers:s}=i;l!==void 0&&Mu.assertOptions(l,{silentJSONParsing:mr.transitional(mr.boolean),forcedJSONParsing:mr.transitional(mr.boolean),clarifyTimeoutError:mr.transitional(mr.boolean)},!1),o!=null&&(V.isFunction(o)?i.paramsSerializer={serialize:o}:Mu.assertOptions(o,{encode:mr.function,serialize:mr.function},!0)),i.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),Mu.assertOptions(i,{baseUrl:mr.spelling("baseURL"),withXsrfToken:mr.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();let c=s&&V.merge(s.common,s[i.method]);s&&V.forEach(["delete","get","head","post","put","patch","common"],w=>{delete s[w]}),i.headers=gn.concat(c,s);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 y,g=0,x;if(!h){const w=[i1.bind(this),void 0];for(w.unshift.apply(w,f),w.push.apply(w,d),x=w.length,y=Promise.resolve(i);g<x;)y=y.then(w[g++],w[g++]);return y}x=f.length;let b=i;for(g=0;g<x;){const w=f[g++],T=f[g++];try{b=w(b)}catch(_){T.call(this,_);break}}try{y=i1.call(this,b)}catch(w){return Promise.reject(w)}for(g=0,x=d.length;g<x;)y=y.then(d[g++],d[g++]);return y}getUri(n){n=pl(this.defaults,n);const i=fb(n.baseURL,n.url,n.allowAbsoluteUrls);return ab(i,n.params,n.paramsSerializer)}};V.forEach(["delete","get","head","options"],function(n){cl.prototype[n]=function(i,l){return this.request(pl(l||{},{method:n,url:i,data:(l||{}).data}))}});V.forEach(["post","put","patch"],function(n){function i(l){return function(s,c,f){return this.request(pl(f||{},{method:n,headers:l?{"Content-Type":"multipart/form-data"}:{},url:s,data:c}))}}cl.prototype[n]=i(),cl.prototype[n+"Form"]=i(!0)});let i4=class gb{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let i;this.promise=new Promise(function(s){i=s});const l=this;this.promise.then(o=>{if(!l._listeners)return;let s=l._listeners.length;for(;s-- >0;)l._listeners[s](o);l._listeners=null}),this.promise.then=o=>{let s;const c=new Promise(f=>{l.subscribe(f),s=f}).then(o);return c.cancel=function(){l.unsubscribe(s)},c},n(function(s,c,f){l.reason||(l.reason=new Ta(s,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 gb(function(o){n=o}),cancel:n}}};function l4(e){return function(i){return e.apply(null,i)}}function a4(e){return V.isObject(e)&&e.isAxiosError===!0}const kh={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(kh).forEach(([e,n])=>{kh[n]=e});function vb(e){const n=new cl(e),i=Kv(cl.prototype.request,n);return V.extend(i,cl.prototype,n,{allOwnKeys:!0}),V.extend(i,n,null,{allOwnKeys:!0}),i.create=function(o){return vb(pl(e,o))},i}const gt=vb(es);gt.Axios=cl;gt.CanceledError=Ta;gt.CancelToken=i4;gt.isCancel=ub;gt.VERSION=yb;gt.toFormData=uc;gt.AxiosError=Te;gt.Cancel=gt.CanceledError;gt.all=function(n){return Promise.all(n)};gt.spread=l4;gt.isAxiosError=a4;gt.mergeConfig=pl;gt.AxiosHeaders=gn;gt.formToJSON=e=>sb(V.isHTMLForm(e)?new FormData(e):e);gt.getAdapter=mb.getAdapter;gt.HttpStatusCode=kh;gt.default=gt;const{Axios:u9,AxiosError:o4,CanceledError:c9,isCancel:f9,CancelToken:d9,VERSION:h9,all:p9,Cancel:m9,isAxiosError:bb,spread:y9,toFormData:g9,AxiosHeaders:v9,HttpStatusCode:b9,formToJSON:x9,getAdapter:w9,mergeConfig:S9}=gt,xb={userId:void 0},s4=()=>{try{const e=sessionStorage.getItem("accessToken");return e||"::local::"}catch{return}},u4=e=>xb.userId=e,c4=()=>xb.userId,wb=location.hostname==="localhost"?"/api":"http://localhost:4466/api",vt=gt.create({baseURL:wb});vt.interceptors.request.use(e=>(e.headers["phoenix-user-id"]=c4(),e));const f4=gt.create({baseURL:wb}),Ot=new xE({defaultOptions:{queries:{staleTime:1e3*60*5,retry:(e,n)=>{var i;return bb(n)&&((i=n.response)==null?void 0:i.status)===404?!1:e<3}}}}),Jr="data-sources",Sb="teams",Di="auth-user",d4=e=>Kn({queryKey:["project","team",e],queryFn:async()=>{const{data:n}=await vt.get(`/project/team/${e}/files`);return n.data},enabled:!!e}),ts=e=>{const n=["project","team"];return Ot.invalidateQueries(n)},h4=e=>{const n=["trash","team"];return Ot.invalidateQueries(n)},p4=(e,n)=>Kn({queryKey:["project",n,"tables",e],queryFn:async()=>{const{data:i}=await vt.get(`/project/team/${n}/query`,{params:{size:20,search:e}});return i.data},enabled:!!n,staleTime:0,keepPreviousData:!0}),m4=(e,n)=>{try{plausible(e,n?{props:n}:void 0)}catch{}},y4=()=>{try{plausible("pageview")}catch{}},dt={event:m4,pageView:y4},Cb=e=>Kn([Jr,e],async()=>{const{data:n}=await vt.get("/data-sources/"+e);return n.data},{enabled:!!e}),g4=e=>Kn({queryKey:[Jr,e.teamId],queryFn:async()=>{const{data:n}=await vt.get("/data-sources",{params:e});return n.data},enabled:e.teamId!==void 0}),Aa=e=>Kn({queryKey:[Jr,e,"inspections"],queryFn:async()=>{const{data:n}=await vt.get(`/data-sources/${e}/inspections`);return n.data},enabled:!!e}),v4=()=>Cr(async e=>{const{data:n}=await vt.post("/data-sources",e);return n.data},{onSuccess:()=>{Ot.invalidateQueries([Jr]),ts(),dt.event("Datasource created")},onError:()=>{dt.event("Datasource creation failed")}}),b4=()=>Cr({mutationFn:async({dataSource:e,id:n})=>{const{data:i}=await vt.put(`/data-sources/${n}`,e);return i.data},onSuccess:()=>{Ot.invalidateQueries([Jr]),ts()}}),Eb=()=>Cr({mutationFn:async e=>{await vt.post(`/data-sources/${e}/inspect`)},onSuccess:()=>{Ot.invalidateQueries([Jr]),dt.event("Datasource inspected")}}),x4=()=>Cr({mutationFn:async e=>{await vt.delete(`/data-sources/${e}`)},onSuccess:()=>{Ot.invalidateQueries([Jr]),ts(),dt.event("Datasource deleted")}}),kb=()=>Kn(["accessToken"],()=>s4()),Li=()=>{const{data:e}=kb();return Kn([Di],async()=>{const{data:n}=await vt.get("/users");return u4(n.data.id),n.data},{enabled:!!e,retry:(n,i)=>bb(i)&&i.code==="ERR_NETWORK"?!1:n<3})},w4=()=>Cr(async e=>{const{data:n}=await vt.put("/users/team",{teamId:e});return n.data},{onSuccess:e=>{Ot.setQueryData([Di],e)}});function S4(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 C4=e=>Kn({queryKey:["hooks",e],queryFn:async()=>{const n=await Ot.fetchQuery({queryKey:[Jr,e,"inspections"],queryFn:async()=>{const{data:i}=await vt.get(`/data-sources/${e}/inspections`);return i.data}});return S4(n)},enabled:!!e});function E4(e,n){if(!e||!n)return{};const i=new Set;for(const o of n)o.table&&i.add(o.table);const l={};for(const o of i){const s=e.find(c=>c.tableName===o);if(s){l[o]=[];const c=s.columns.filter(f=>f.isPrimary);for(const f of c)if(n.find(d=>d.table===o&&d.column===f.name))l[o].push(f.name);else{delete l[o];break}}}return l}function k4(e,n,i){const{data:l}=C4(n),{data:o}=Aa(n);return E.useMemo(()=>{const s=E4(o,e==null?void 0:e.columns);return{name:i,hooks:(()=>{const c=[];if(!l||!e||!e.columns)return c;for(const f of l)(e.tables.includes(f.on.toTable)||e.tables.includes(f.on.fromTable))&&c.push(f);return c})(),availableJoins:(()=>{const c=[];if(!l||!e||!e.columns)return c;for(const f of l)!e.tables.includes(f.on.toTable)&&e.tables.includes(f.on.fromTable)&&c.push(f);return c})(),allColumns:(e==null?void 0:e.allColumns)||[],dataSourceId:n,entities:Object.keys(s),getValue:(c,f,h)=>{var y;const d=(y=e==null?void 0:e.columns)==null?void 0:y.findIndex(g=>g.column===f&&g.table===h);if(d!=null&&d>-1)return c[d]},getEntityKey:(c,f)=>s[c].reduce((h,d)=>{var g;const y=(g=e==null?void 0:e.columns)==null?void 0:g.findIndex(x=>x.column===d&&x.table===c);return y!=null&&y>-1&&h.push([d,f[y]]),h},[]),getColumnType:c=>{const f=e==null?void 0:e.allColumns.find(h=>h.full===c);if(f)return f.type}}},[e,n,l,o,i])}function T4(e,n){return E.useMemo(()=>({state:e,setState:n}),[e,n])}function ma(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)??[]}}const Er=e=>{const n=new Set;let i=e;const l=f=>(n.add(f),()=>n.delete(f)),o=f=>(n.forEach(h=>h(f)),!0),s=f=>{i=typeof f=="function"?f(i):f,o(i)},c=f=>()=>f?f(i):i;return[f=>E.useSyncExternalStore(l,c(f),c(f)),s,{get:()=>i,subscribe:f=>(f(i),l(f))}]};function A4(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 Tb=({storage:e=localStorage,localStorageKey:n,initialData:i})=>{const l=Er(A4(n,i,e));return l[2].subscribe(o=>{e.setItem(n,JSON.stringify(o))}),l};let _4={data:""},O4=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||_4,R4=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,N4=/\/\*[^]*?\*\/| +/g,a1=/\n+/g,Ni=(e,n)=>{let i="",l="",o="";for(let s in e){let c=e[s];s[0]=="@"?s[1]=="i"?i=s+" "+c+";":l+=s[1]=="f"?Ni(c,s):s+"{"+Ni(c,s[1]=="k"?"":n)+"}":typeof c=="object"?l+=Ni(c,n?n.replace(/([^,])+/g,f=>s.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,h=>/&/.test(h)?h.replace(/&/g,f):f?f+" "+h:h)):s):c!=null&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Ni.p?Ni.p(s,c):s+":"+c+";")}return i+(n&&o?n+"{"+o+"}":o)+l},$r={},Ab=e=>{if(typeof e=="object"){let n="";for(let i in e)n+=i+Ab(e[i]);return n}return e},j4=(e,n,i,l,o)=>{let s=Ab(e),c=$r[s]||($r[s]=(h=>{let d=0,y=11;for(;d<h.length;)y=101*y+h.charCodeAt(d++)>>>0;return"go"+y})(s));if(!$r[c]){let h=s!==e?e:(d=>{let y,g,x=[{}];for(;y=R4.exec(d.replace(N4,""));)y[4]?x.shift():y[3]?(g=y[3].replace(a1," ").trim(),x.unshift(x[0][g]=x[0][g]||{})):x[0][y[1]]=y[2].replace(a1," ").trim();return x[0]})(e);$r[c]=Ni(o?{["@keyframes "+c]:h}:h,i?"":"."+c)}let f=i&&$r.g?$r.g:null;return i&&($r.g=$r[c]),((h,d,y,g)=>{g?d.data=d.data.replace(g,h):d.data.indexOf(h)===-1&&(d.data=y?h+d.data:d.data+h)})($r[c],n,l,f),c},D4=(e,n,i)=>e.reduce((l,o,s)=>{let c=n[s];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?"":Ni(f,""):f===!1?"":f}return l+o+(c??"")},"");function dc(e){let n=this||{},i=e.call?e(n.p):e;return j4(i.unshift?i.raw?D4(i,[].slice.call(arguments,1),n.p):i.reduce((l,o)=>Object.assign(l,o&&o.call?o(n.p):o),{}):i,O4(n.target),n.g,n.o,n.k)}let _b,Th,Ah;dc.bind({g:1});let Xr=dc.bind({k:1});function M4(e,n,i,l){Ni.p=n,_b=e,Th=i,Ah=l}function Ui(e,n){let i=this||{};return function(){let l=arguments;function o(s,c){let f=Object.assign({},s),h=f.className||o.className;i.p=Object.assign({theme:Th&&Th()},f),i.o=/ *go\d+/.test(h),f.className=dc.apply(i,l)+(h?" "+h:"");let d=e;return e[0]&&(d=f.as||e,delete f.as),Ah&&d[0]&&Ah(f),_b(d,f)}return o}}var z4=e=>typeof e=="function",Yu=(e,n)=>z4(e)?e(n):e,L4=(()=>{let e=0;return()=>(++e).toString()})(),Ob=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let n=matchMedia("(prefers-reduced-motion: reduce)");e=!n||n.matches}return e}})(),U4=20,Rb=(e,n)=>{switch(n.type){case 0:return{...e,toasts:[n.toast,...e.toasts].slice(0,U4)};case 1:return{...e,toasts:e.toasts.map(s=>s.id===n.toast.id?{...s,...n.toast}:s)};case 2:let{toast:i}=n;return Rb(e,{type:e.toasts.find(s=>s.id===i.id)?1:0,toast:i});case 3:let{toastId:l}=n;return{...e,toasts:e.toasts.map(s=>s.id===l||l===void 0?{...s,dismissed:!0,visible:!1}:s)};case 4:return n.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(s=>s.id!==n.toastId)};case 5:return{...e,pausedAt:n.time};case 6:let o=n.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(s=>({...s,pauseDuration:s.pauseDuration+o}))}}},zu=[],ul={toasts:[],pausedAt:void 0},vl=e=>{ul=Rb(ul,e),zu.forEach(n=>{n(ul)})},B4={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},q4=(e={})=>{let[n,i]=E.useState(ul),l=E.useRef(ul);E.useEffect(()=>(l.current!==ul&&i(ul),zu.push(i),()=>{let s=zu.indexOf(i);s>-1&&zu.splice(s,1)}),[]);let o=n.toasts.map(s=>{var c,f,h;return{...e,...e[s.type],...s,removeDelay:s.removeDelay||((c=e[s.type])==null?void 0:c.removeDelay)||(e==null?void 0:e.removeDelay),duration:s.duration||((f=e[s.type])==null?void 0:f.duration)||(e==null?void 0:e.duration)||B4[s.type],style:{...e.style,...(h=e[s.type])==null?void 0:h.style,...s.style}}});return{...n,toasts:o}},H4=(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)||L4()}),ns=e=>(n,i)=>{let l=H4(n,e,i);return vl({type:2,toast:l}),l.id},on=(e,n)=>ns("blank")(e,n);on.error=ns("error");on.success=ns("success");on.loading=ns("loading");on.custom=ns("custom");on.dismiss=e=>{vl({type:3,toastId:e})};on.remove=e=>vl({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(o=>{let s=n.success?Yu(n.success,o):void 0;return s?on.success(s,{id:l,...i,...i==null?void 0:i.success}):on.dismiss(l),o}).catch(o=>{let s=n.error?Yu(n.error,o):void 0;s?on.error(s,{id:l,...i,...i==null?void 0:i.error}):on.dismiss(l)}),e};var F4=(e,n)=>{vl({type:1,toast:{id:e,height:n}})},Q4=()=>{vl({type:5,time:Date.now()})},Bo=new Map,P4=1e3,I4=(e,n=P4)=>{if(Bo.has(e))return;let i=setTimeout(()=>{Bo.delete(e),vl({type:4,toastId:e})},n);Bo.set(e,i)},V4=e=>{let{toasts:n,pausedAt:i}=q4(e);E.useEffect(()=>{if(i)return;let s=Date.now(),c=n.map(f=>{if(f.duration===1/0)return;let h=(f.duration||0)+f.pauseDuration-(s-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=E.useCallback(()=>{i&&vl({type:6,time:Date.now()})},[i]),o=E.useCallback((s,c)=>{let{reverseOrder:f=!1,gutter:h=8,defaultPosition:d}=c||{},y=n.filter(b=>(b.position||d)===(s.position||d)&&b.height),g=y.findIndex(b=>b.id===s.id),x=y.filter((b,w)=>w<g&&b.visible).length;return y.filter(b=>b.visible).slice(...f?[x+1]:[0,x]).reduce((b,w)=>b+(w.height||0)+h,0)},[n]);return E.useEffect(()=>{n.forEach(s=>{if(s.dismissed)I4(s.id,s.removeDelay);else{let c=Bo.get(s.id);c&&(clearTimeout(c),Bo.delete(s.id))}})},[n]),{toasts:n,handlers:{updateHeight:F4,startPause:Q4,endPause:l,calculateOffset:o}}},$4=Xr`
57
+ from {
58
+ transform: scale(0) rotate(45deg);
59
+ opacity: 0;
60
+ }
61
+ to {
62
+ transform: scale(1) rotate(45deg);
63
+ opacity: 1;
64
+ }`,Y4=Xr`
65
+ from {
66
+ transform: scale(0);
67
+ opacity: 0;
68
+ }
69
+ to {
70
+ transform: scale(1);
71
+ opacity: 1;
72
+ }`,K4=Xr`
73
+ from {
74
+ transform: scale(0) rotate(90deg);
75
+ opacity: 0;
76
+ }
77
+ to {
78
+ transform: scale(1) rotate(90deg);
79
+ opacity: 1;
80
+ }`,G4=Ui("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: ${$4} 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: ${Y4} 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: ${K4} 0.15s ease-out forwards;
110
+ animation-delay: 180ms;
111
+ transform: rotate(90deg);
112
+ }
113
+ `,X4=Xr`
114
+ from {
115
+ transform: rotate(0deg);
116
+ }
117
+ to {
118
+ transform: rotate(360deg);
119
+ }
120
+ `,Z4=Ui("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: ${X4} 1s linear infinite;
129
+ `,J4=Xr`
130
+ from {
131
+ transform: scale(0) rotate(45deg);
132
+ opacity: 0;
133
+ }
134
+ to {
135
+ transform: scale(1) rotate(45deg);
136
+ opacity: 1;
137
+ }`,W4=Xr`
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
+ }`,ek=Ui("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: ${J4} 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: ${W4} 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
+ `,tk=Ui("div")`
179
+ position: absolute;
180
+ `,nk=Ui("div")`
181
+ position: relative;
182
+ display: flex;
183
+ justify-content: center;
184
+ align-items: center;
185
+ min-width: 20px;
186
+ min-height: 20px;
187
+ `,rk=Xr`
188
+ from {
189
+ transform: scale(0.6);
190
+ opacity: 0.4;
191
+ }
192
+ to {
193
+ transform: scale(1);
194
+ opacity: 1;
195
+ }`,ik=Ui("div")`
196
+ position: relative;
197
+ transform: scale(0.6);
198
+ opacity: 0.4;
199
+ min-width: 20px;
200
+ animation: ${rk} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
201
+ forwards;
202
+ `,lk=({toast:e})=>{let{icon:n,type:i,iconTheme:l}=e;return n!==void 0?typeof n=="string"?E.createElement(ik,null,n):n:i==="blank"?null:E.createElement(nk,null,E.createElement(Z4,{...l}),i!=="loading"&&E.createElement(tk,null,i==="error"?E.createElement(G4,{...l}):E.createElement(ek,{...l})))},ak=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
+ `,ok=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
+ `,sk="0%{opacity:0;} 100%{opacity:1;}",uk="0%{opacity:1;} 100%{opacity:0;}",ck=Ui("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
+ `,fk=Ui("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
+ `,dk=(e,n)=>{let i=e.includes("top")?1:-1,[l,o]=Ob()?[sk,uk]:[ak(i),ok(i)];return{animation:n?`${Xr(l)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Xr(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},hk=E.memo(({toast:e,position:n,style:i,children:l})=>{let o=e.height?dk(e.position||n||"top-center",e.visible):{opacity:0},s=E.createElement(lk,{toast:e}),c=E.createElement(fk,{...e.ariaProps},Yu(e.message,e));return E.createElement(ck,{className:e.className,style:{...o,...i,...e.style}},typeof l=="function"?l({icon:s,message:c}):E.createElement(E.Fragment,null,s,c))});M4(E.createElement);var pk=({id:e,className:n,style:i,onHeightUpdate:l,children:o})=>{let s=E.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 E.createElement("div",{ref:s,className:n,style:i},o)},mk=(e,n)=>{let i=e.includes("top"),l=i?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Ob()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${n*(i?1:-1)}px)`,...l,...o}},yk=dc`
228
+ z-index: 9999;
229
+ > * {
230
+ pointer-events: auto;
231
+ }
232
+ `,bu=16,gk=({reverseOrder:e,position:n="top-center",toastOptions:i,gutter:l,children:o,containerStyle:s,containerClassName:c})=>{let{toasts:f,handlers:h}=V4(i);return E.createElement("div",{id:"_rht_toaster",style:{position:"fixed",zIndex:9999,top:bu,left:bu,right:bu,bottom:bu,pointerEvents:"none",...s},className:c,onMouseEnter:h.startPause,onMouseLeave:h.endPause},f.map(d=>{let y=d.position||n,g=h.calculateOffset(d,{reverseOrder:e,gutter:l,defaultPosition:n}),x=mk(y,g);return E.createElement(pk,{id:d.id,key:d.id,onHeightUpdate:h.updateHeight,className:d.visible?yk:"",style:x},d.type==="custom"?Yu(d.message,d):o?o(d):E.createElement(hk,{toast:d,position:y}))}))},Zr=on;const[hc,pc,mc]=Tb({initialData:[],localStorageKey:"open-tabs__v1"}),[vk,_h,bk]=Tb({initialData:"",localStorageKey:"active-tabs",storage:sessionStorage}),Vo=(e,n,i=!1)=>{wk();const l=xk({label:e,type:"explorer",id:Date.now().toString(36),options:ma(n)});i&&cp(l.id)},Oh=e=>{const n=bk.get();if(pc(i=>i.filter(l=>l.id!==e)),n===e){const i=mc.get();i.length>0?_h(i[0].id):_h("")}},cp=e=>{_h(e)},Nb=(e,n)=>{pc(i=>i.map(l=>l.id===e?{...l,label:n}:l))};function xk(e){return pc(n=>n?[...n,e]:[e]),e}const o1=20;function wk(){if(mc.get().length>=o1){const n=`Maximum ${o1} tabs are allowed to be open at the same time. Please close other tabs to open new ones.`;throw Zr.error(n),new Error(n)}}const Sk="_alert_8wh7m_2",Ck="_info_8wh7m_2",Ek="_danger_8wh7m_2",kk="_success_8wh7m_2",Tk="_warning_8wh7m_2",Ak="_dark_8wh7m_2",ra={alert:Sk,info:Ck,danger:Ek,success:kk,warning:Tk,dark:Ak};function jb(e){var n,i,l="";if(typeof e=="string"||typeof e=="number")l+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(n=0;n<o;n++)e[n]&&(i=jb(e[n]))&&(l&&(l+=" "),l+=i)}else for(i in e)e[i]&&(l&&(l+=" "),l+=i);return l}function Be(){for(var e,n,i=0,l="",o=arguments.length;i<o;i++)(e=arguments[i])&&(n=jb(e))&&(l&&(l+=" "),l+=n);return l}const vr=({variant:e,noRounded:n,className:i,children:l,...o})=>v.jsx("div",{className:Be(ra.alert,!n&&"rounded-lg",(e==="info"||!e)&&ra.info,e==="danger"&&ra.danger,e==="dark"&&ra.dark,e==="warning"&&ra.warning,e==="success"&&ra.success,i),role:"alert",...o,children:l}),_k="_data-store_vkqil_2",Ok="_tab_vkqil_2",Rh={dataStore:_k,tab:Ok},Nh={settings:{path:"settings",name:"⚙️ Settings"}},_t={home:{path:"/",name:"🍜 Home"},workbench:{path:"/workbench"}},Rk=()=>{const e=hc(),n=zi(),i=s=>{cp(s.currentTarget.dataset.tabId),n(_t.workbench.path),dt.event("On open workbench tab [Home]")},l=s=>{s.button===1&&Oh(s.currentTarget.dataset.tabId)},o=()=>{n(_t.workbench.path),dt.event("On open workbench [Home]")};return v.jsxs("div",{className:"mt-2 card-white",children:[v.jsxs("h2",{className:"font-semibold text-xl flex justify-between items-center",children:[v.jsx("span",{children:"🛠️ Workbench"}),v.jsx("button",{className:"hotkey",onClick:o,children:"W"})]}),v.jsx("p",{className:"text-sm text-gray-700",children:"Continue your work from where you left."}),v.jsx("div",{className:"flex gap-1 mt-4 flex-wrap",children:e.map(s=>v.jsx("button",{className:Rh.tab,onClick:i,"data-tab-id":s.id,onAuxClick:l,"data-tooltip-id":"default","data-tooltip-content":s.label,children:s.label},s.id))})]})},Db=async e=>Ot.fetchQuery({queryKey:["query",e],queryFn:async()=>{const{data:n}=await vt.get("/queries/"+e);return n.data}}),[Nk,Qd,jk]=Er(void 0),Dk=async()=>new Promise(e=>{Qd({onCancel:()=>{Qd(void 0),e(void 0)},onConfirm:(n,i,l)=>{Qd(void 0),e({dsId:l,id:i,type:n})}})}),fp=e=>{const n=zi();return E.useCallback(()=>{jk.get()||(Dk().then(l=>{(l==null?void 0:l.type)==="table"?(Vo(l.id,ma({table:l.id,dataSourceId:l.dsId}),!0),location.pathname!==_t.workbench.path&&n(_t.workbench.path)):(l==null?void 0:l.type)==="query"&&Db(l.id).then(o=>{Vo(o.name,ma(o.opts),!0),location.pathname!==_t.workbench.path&&n(_t.workbench.path)})}),dt.event(`On open query search [${e}]`))},[n,e])},Mk=()=>{const e=fp("Home");return v.jsxs("button",{className:"mt-2 bg-white p-2 rounded-lg border border-blue-200",onClick:e,children:[v.jsxs("h2",{className:"font-semibold text-xl flex justify-between items-center",children:[v.jsx("span",{children:"🔎 Start new query"}),v.jsx("span",{className:"hotkey",children:"N"})]}),v.jsx("p",{className:"text-sm text-left text-gray-700 mb-4",children:"Select a table to start from. You will be able to customize your query later."}),v.jsx("p",{className:"cursor-text text-gray-400 bg-gray-50 rounded-lg p-2 w-full text-left border border-gray-200",children:"Search table or saved query to start exploring"})]})},zk="_input_i36bs_2",Lk="_content_i36bs_2",Uk="_form_i36bs_2",Wt={input:zk,content:Lk,form:Uk,switch:"_switch_i36bs_2"},Bk="_modal_1okzf_2",qk="_modal-visible_1okzf_2",Hk="_modal-invisible_1okzf_2",Fk="_backdrop_1okzf_2",Qk="_modal-container_1okzf_2",Pk="_close-button_1okzf_2",ua={modal:Bk,modalVisible:qk,modalInvisible:Hk,backdrop:Fk,modalContainer:Qk,closeButton:Pk},dp=()=>{const e=zi(),{search:n}=vn();return{open:o=>{const s=new URLSearchParams(n);s.set("modal",o),e({search:s.toString()})},close:()=>{const o=new URLSearchParams(n);o.delete("modal"),e({search:o.toString()})}}},Bi=e=>E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"ionicon",viewBox:"0 0 512 512",...e},E.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32,d:"M368 368L144 144M368 144L144 368"})),nn=({children:e,backdropClose:n,isVisible:i,onClose:l,onClosed:o,noPadding:s=!1})=>{const[c,f]=E.useState(!1),h=()=>{n&&l()},d=y=>{i||getComputedStyle(y.currentTarget).opacity==="0"&&(f(!1),o&&o())};return E.useEffect(()=>{i&&f(!0)},[i]),v.jsxs("div",{onTransitionEnd:d,className:Be(ua.modal,i?ua.modalVisible:ua.modalInvisible),children:[v.jsx("div",{onClick:h,className:ua.backdrop}),v.jsx("div",{className:Be(ua.modalContainer,s!==!0&&"p-4"),children:c&&e})]})},Ik=({children:e,target:n,backdropClose:i})=>{const{search:l}=vn(),{close:o}=dp(),s=new URLSearchParams(l),c=n===s.get("modal");return v.jsx(nn,{isVisible:c,backdropClose:i,onClose:o,children:e})},Gn=({onClick:e})=>{const n=E.useRef(e);return n.current=e,E.useEffect(()=>{const i=l=>{var o;l.key==="Escape"&&((o=n.current)==null||o.call(n))};return window.addEventListener("keyup",i),()=>{window.removeEventListener("keyup",i)}},[]),v.jsx("button",{className:ua.closeButton,onClick:e,children:v.jsx(Bi,{width:20,height:20})})},hp=e=>{const[n,i]=E.useState(e),[l,o]=E.useState([]),s=E.useRef(e),c=E.useCallback((d,y)=>{i(g=>({...g,[d]:y}))},[]),f=E.useCallback(d=>y=>{y.target.type==="checkbox"?c(d,y.target.checked):c(d,y.target.value),o(g=>g.includes(d)?g:[...g,d])},[c]),h=E.useCallback(()=>{i(s.current),o([])},[]);return[n,{set:c,change:f,reset:h,touched:l}]},Vk=({form:e,change:n})=>v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:Wt.input,children:[v.jsx("label",{children:"Database URL"}),v.jsx("input",{value:e.dbUrl,onChange:n("dbUrl"),className:"input"})]}),v.jsxs("div",{className:Wt.input,children:[v.jsx("label",{children:"Database port"}),v.jsx("input",{value:e.dbPort,onChange:n("dbPort"),type:"number",className:"input"})]}),v.jsxs("div",{className:Wt.input,children:[v.jsx("label",{children:"User"}),v.jsx("input",{value:e.dbUser,onChange:n("dbUser"),className:"input"})]}),v.jsxs("div",{className:Wt.input,children:[v.jsx("label",{children:"Password"}),v.jsx("input",{type:"password",value:e.dbPassword,onChange:n("dbPassword"),className:"input"})]}),v.jsxs("div",{className:Wt.input,children:[v.jsx("label",{children:"Database"}),v.jsx("input",{value:e.dbDatabase,onChange:n("dbDatabase"),className:"input"})]})]}),$k=({form:e,change:n})=>v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:Wt.input,children:[v.jsx("label",{children:"Database URL"}),v.jsx("input",{value:e.dbUrl,onChange:n("dbUrl"),className:"input"})]}),v.jsxs("div",{className:Wt.input,children:[v.jsx("label",{children:"Database port"}),v.jsx("input",{value:e.dbPort,onChange:n("dbPort"),type:"number",className:"input"})]}),v.jsxs("div",{className:Wt.input,children:[v.jsx("label",{children:"User"}),v.jsx("input",{value:e.dbUser,onChange:n("dbUser"),className:"input"})]}),v.jsxs("div",{className:Wt.input,children:[v.jsx("label",{children:"Password"}),v.jsx("input",{type:"password",value:e.dbPassword,onChange:n("dbPassword"),className:"input"})]}),v.jsxs("div",{className:Wt.input,children:[v.jsx("label",{children:"Database"}),v.jsx("input",{value:e.dbDatabase,onChange:n("dbDatabase"),className:"input"})]}),v.jsxs("div",{className:Wt.input,children:[v.jsx("label",{children:"Schema"}),v.jsx("input",{value:e.dbSchema,onChange:n("dbSchema"),className:"input"})]})]}),ia=[{label:"PostgreSQL",tag:"postgres"},{label:"MySQL",tag:"mysql"}],Yk=({show:e,onClose:n,dbType:i="postgres"})=>{const l=v4(),o=Eb(),{data:s}=Li(),[c,{change:f,set:h}]=hp({name:"",dbType:i,dbUrl:"",dbUser:"",dbPassword:"",dbDatabase:"",dbSchema:"",dbPort:5432,teamId:"",ownerId:"",description:""}),d=async()=>{const x=await l.mutateAsync({...c,dbPort:Number(c.dbPort),teamId:s.currentTeam.id,ownerId:s.id});await o.mutateAsync(x.id),n(),dt.event("Create Datasource",{dbType:c.dbType})},y=()=>{n(),dt.event("Cancel Datasource")},g=l.isLoading||o.isLoading;return v.jsxs(nn,{isVisible:e,onClose:y,children:[v.jsx(Gn,{onClick:y}),v.jsxs(vr,{variant:"warning",className:"text-sm mb-2 max-w-xl",children:["DataRamen is currently under active development. In production-like environments, ",v.jsx("span",{className:"font-semibold underline",children:"it’s recommended to use read-only database credentials"}),"."]}),l.isError&&v.jsx(vr,{variant:"danger",className:"mb-2",children:v.jsx("span",{children:"Failed to connect to the database. Please check if the data are correct and retry."})}),l.isLoading&&v.jsx(vr,{className:"mb-2",variant:"info",children:"Creating connection"}),o.isLoading&&v.jsx(vr,{className:"mb-2",variant:"info",children:"Inspecting connection"}),v.jsxs("div",{className:Wt.switch,children:[v.jsxs("label",{className:"button tertiary",children:[v.jsx("input",{type:"radio",name:"bdType",checked:c.dbType===ia[0].tag,onChange:()=>h("dbType",ia[0].tag)}),v.jsx("span",{children:ia[0].label})]}),v.jsxs("label",{className:"button tertiary",children:[v.jsx("input",{type:"radio",name:"bdType",checked:c.dbType===ia[1].tag,onChange:()=>h("dbType",ia[1].tag)}),v.jsx("span",{children:ia[1].label})]})]}),v.jsx("div",{className:Wt.content,children:v.jsxs("div",{className:Wt.form,children:[v.jsxs("div",{className:Be(Wt.input,"col-span-2"),children:[v.jsx("label",{children:"Name"}),v.jsx("input",{value:c.name,onChange:f("name"),className:"input"})]}),v.jsxs("div",{className:Be(Wt.input,"col-span-2"),children:[v.jsx("label",{children:"Description"}),v.jsx("textarea",{value:c.description,onChange:f("description"),className:"input"})]}),c.dbType==="mysql"&&v.jsx(Vk,{form:c,change:f}),c.dbType==="postgres"&&v.jsx($k,{form:c,change:f})]})}),v.jsxs("div",{className:"flex justify-end gap-1 mt-2",children:[v.jsx("button",{onClick:y,className:"button tertiary",disabled:g,children:"Cancel"}),v.jsx("button",{onClick:d,className:"button primary",disabled:g,children:"Create"})]})]})},Kk=e=>E.createElement("svg",{fill:"#000000",width:"800px",height:"800px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e},E.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"})),Gk=e=>E.createElement("svg",{width:"800px",height:"800px",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...e},E.createElement("title",null,"file_type_pgsql"),E.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"}),E.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"}}),E.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"}}),E.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"}})),jh=({size:e,type:n})=>n==="mysql"?v.jsx(Kk,{width:e,height:e}):v.jsx(Gk,{width:e,height:e}),Xk=()=>{const{data:e}=Li(),[n,i]=E.useState(void 0),l=o=>{i(o),dt.event(`On create new [${o}]`)};return v.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[n&&v.jsx(Yk,{show:!0,dbType:n,onClose:()=>i(void 0)}),v.jsxs("button",{disabled:!e,className:Be(Rh.dataStore,"card-white"),onClick:()=>l("postgres"),children:[v.jsx(jh,{size:32,type:"postgres"}),v.jsx("p",{className:"font-semibold truncate text-gray-800",children:"Connect PostgreSQL"})]}),v.jsxs("button",{disabled:!e,className:Be(Rh.dataStore,"card-white"),onClick:()=>l("mysql"),children:[v.jsx(jh,{size:32,type:"mysql"}),v.jsx("p",{className:"font-semibold truncate text-gray-800",children:"Connect MySQL"})]})]})};function s1(e,n){const i=String(e);if(typeof n!="string")throw new TypeError("Expected character");let l=0,o=i.indexOf(n);for(;o!==-1;)l++,o=i.indexOf(n,o+n.length);return l}const sn=qi(/[A-Za-z]/),tn=qi(/[\dA-Za-z]/),Zk=qi(/[#-'*+\--9=?A-Z^-~]/);function Ku(e){return e!==null&&(e<32||e===127)}const Dh=qi(/\d/),Jk=qi(/[\dA-Fa-f]/),Wk=qi(/[!-/:-@[-`{-~]/);function xe(e){return e!==null&&e<-2}function nt(e){return e!==null&&(e<0||e===32)}function Le(e){return e===-2||e===-1||e===32}const yc=qi(new RegExp("\\p{P}|\\p{S}","u")),ml=qi(/\s/);function qi(e){return n;function n(i){return i!==null&&i>-1&&e.test(String.fromCharCode(i))}}function eT(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const gc=function(e){if(e==null)return iT;if(typeof e=="function")return vc(e);if(typeof e=="object")return Array.isArray(e)?tT(e):nT(e);if(typeof e=="string")return rT(e);throw new Error("Expected function, string, or object as test")};function tT(e){const n=[];let i=-1;for(;++i<e.length;)n[i]=gc(e[i]);return vc(l);function l(...o){let s=-1;for(;++s<n.length;)if(n[s].apply(this,o))return!0;return!1}}function nT(e){const n=e;return vc(i);function i(l){const o=l;let s;for(s in e)if(o[s]!==n[s])return!1;return!0}}function rT(e){return vc(n);function n(i){return i&&i.type===e}}function vc(e){return n;function n(i,l,o){return!!(lT(i)&&e.call(this,i,typeof l=="number"?l:void 0,o||void 0))}}function iT(){return!0}function lT(e){return e!==null&&typeof e=="object"&&"type"in e}const Mb=[],aT=!0,Mh=!1,oT="skip";function zb(e,n,i,l){let o;typeof n=="function"&&typeof i!="function"?(l=i,i=n):o=n;const s=gc(o),c=l?-1:1;f(e,void 0,[])();function f(h,d,y){const g=h&&typeof h=="object"?h:{};if(typeof g.type=="string"){const b=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(x,"name",{value:"node ("+(h.type+(b?"<"+b+">":""))+")"})}return x;function x(){let b=Mb,w,T,_;if((!n||s(h,d,y[y.length-1]||void 0))&&(b=sT(i(h,y)),b[0]===Mh))return b;if("children"in h&&h.children){const A=h;if(A.children&&b[0]!==oT)for(T=(l?A.children.length:-1)+c,_=y.concat(A);T>-1&&T<A.children.length;){const N=A.children[T];if(w=f(N,T,_)(),w[0]===Mh)return w;T=typeof w[1]=="number"?w[1]:T+c}}return b}}}function sT(e){return Array.isArray(e)?e:typeof e=="number"?[aT,e]:e==null?Mb:[e]}function uT(e,n,i){const o=gc((i||{}).ignore||[]),s=cT(n);let c=-1;for(;++c<s.length;)zb(e,"text",f);function f(d,y){let g=-1,x;for(;++g<y.length;){const b=y[g],w=x?x.children:void 0;if(o(b,w?w.indexOf(b):void 0,x))return;x=b}if(x)return h(d,y)}function h(d,y){const g=y[y.length-1],x=s[c][0],b=s[c][1];let w=0;const _=g.children.indexOf(d);let A=!1,N=[];x.lastIndex=0;let O=x.exec(d.value);for(;O;){const z=O.index,q={index:O.index,input:O.input,stack:[...y,d]};let M=b(...O,q);if(typeof M=="string"&&(M=M.length>0?{type:"text",value:M}:void 0),M===!1?x.lastIndex=z+1:(w!==z&&N.push({type:"text",value:d.value.slice(w,z)}),Array.isArray(M)?N.push(...M):M&&N.push(M),w=z+O[0].length,A=!0),!x.global)break;O=x.exec(d.value)}return A?(w<d.value.length&&N.push({type:"text",value:d.value.slice(w)}),g.children.splice(_,1,...N)):N=[d],_+N.length}}function cT(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 o=i[l];n.push([fT(o[0]),dT(o[1])])}return n}function fT(e){return typeof e=="string"?new RegExp(eT(e),"g"):e}function dT(e){return typeof e=="function"?e:function(){return e}}const Pd="phrasing",Id=["autolink","link","image","label"];function hT(){return{transforms:[xT],enter:{literalAutolink:mT,literalAutolinkEmail:Vd,literalAutolinkHttp:Vd,literalAutolinkWww:Vd},exit:{literalAutolink:bT,literalAutolinkEmail:vT,literalAutolinkHttp:yT,literalAutolinkWww:gT}}}function pT(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Pd,notInConstruct:Id},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Pd,notInConstruct:Id},{character:":",before:"[ps]",after:"\\/",inConstruct:Pd,notInConstruct:Id}]}}function mT(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Vd(e){this.config.enter.autolinkProtocol.call(this,e)}function yT(e){this.config.exit.autolinkProtocol.call(this,e)}function gT(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 vT(e){this.config.exit.autolinkEmail.call(this,e)}function bT(e){this.exit(e)}function xT(e){uT(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,wT],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),ST]],{ignore:["link","linkReference"]})}function wT(e,n,i,l,o){let s="";if(!Lb(o)||(/^w/i.test(n)&&(i=n+i,n="",s="http://"),!CT(i)))return!1;const c=ET(i+l);if(!c[0])return!1;const f={type:"link",title:null,url:s+n+c[0],children:[{type:"text",value:n+c[0]}]};return c[1]?[f,{type:"text",value:c[1]}]:f}function ST(e,n,i,l){return!Lb(l,!0)||/[-\d_]$/.test(i)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+i,children:[{type:"text",value:n+"@"+i}]}}function CT(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 ET(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 o=s1(e,"(");let s=s1(e,")");for(;l!==-1&&o>s;)e+=i.slice(0,l+1),i=i.slice(l+1),l=i.indexOf(")"),s++;return[e,i]}function Lb(e,n){const i=e.input.charCodeAt(e.index-1);return(e.index===0||ml(i)||yc(i))&&(!n||i!==47)}function tr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}Ub.peek=DT;function kT(){this.buffer()}function TT(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function AT(){this.buffer()}function _T(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function OT(e){const n=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=tr(this.sliceSerialize(e)).toLowerCase(),i.label=n}function RT(e){this.exit(e)}function NT(e){const n=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=tr(this.sliceSerialize(e)).toLowerCase(),i.label=n}function jT(e){this.exit(e)}function DT(){return"["}function Ub(e,n,i,l){const o=i.createTracker(l);let s=o.move("[^");const c=i.enter("footnoteReference"),f=i.enter("reference");return s+=o.move(i.safe(i.associationId(e),{after:"]",before:s})),f(),c(),s+=o.move("]"),s}function MT(){return{enter:{gfmFootnoteCallString:kT,gfmFootnoteCall:TT,gfmFootnoteDefinitionLabelString:AT,gfmFootnoteDefinition:_T},exit:{gfmFootnoteCallString:OT,gfmFootnoteCall:RT,gfmFootnoteDefinitionLabelString:NT,gfmFootnoteDefinition:jT}}}function zT(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:i,footnoteReference:Ub},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function i(l,o,s,c){const f=s.createTracker(c);let h=f.move("[^");const d=s.enter("footnoteDefinition"),y=s.enter("label");return h+=f.move(s.safe(s.associationId(l),{before:h,after:"]"})),y(),h+=f.move("]:"),l.children&&l.children.length>0&&(f.shift(4),h+=f.move((n?`
233
+ `:" ")+s.indentLines(s.containerFlow(l,f.current()),n?Bb:LT))),d(),h}}function LT(e,n,i){return n===0?e:Bb(e,n,i)}function Bb(e,n,i){return(i?"":" ")+e}const UT=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];qb.peek=QT;function BT(){return{canContainEols:["delete"],enter:{strikethrough:HT},exit:{strikethrough:FT}}}function qT(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:UT}],handlers:{delete:qb}}}function HT(e){this.enter({type:"delete",children:[]},e)}function FT(e){this.exit(e)}function qb(e,n,i,l){const o=i.createTracker(l),s=i.enter("strikethrough");let c=o.move("~~");return c+=i.containerPhrasing(e,{...o.current(),before:c,after:"~"}),c+=o.move("~~"),s(),c}function QT(){return"~"}function PT(e){return e.length}function IT(e,n){const i=n||{},l=(i.align||[]).concat(),o=i.stringLength||PT,s=[],c=[],f=[],h=[];let d=0,y=-1;for(;++y<e.length;){const T=[],_=[];let A=-1;for(e[y].length>d&&(d=e[y].length);++A<e[y].length;){const N=VT(e[y][A]);if(i.alignDelimiters!==!1){const O=o(N);_[A]=O,(h[A]===void 0||O>h[A])&&(h[A]=O)}T.push(N)}c[y]=T,f[y]=_}let g=-1;if(typeof l=="object"&&"length"in l)for(;++g<d;)s[g]=u1(l[g]);else{const T=u1(l);for(;++g<d;)s[g]=T}g=-1;const x=[],b=[];for(;++g<d;){const T=s[g];let _="",A="";T===99?(_=":",A=":"):T===108?_=":":T===114&&(A=":");let N=i.alignDelimiters===!1?1:Math.max(1,h[g]-_.length-A.length);const O=_+"-".repeat(N)+A;i.alignDelimiters!==!1&&(N=_.length+N+A.length,N>h[g]&&(h[g]=N),b[g]=N),x[g]=O}c.splice(1,0,x),f.splice(1,0,b),y=-1;const w=[];for(;++y<c.length;){const T=c[y],_=f[y];g=-1;const A=[];for(;++g<d;){const N=T[g]||"";let O="",z="";if(i.alignDelimiters!==!1){const q=h[g]-(_[g]||0),M=s[g];M===114?O=" ".repeat(q):M===99?q%2?(O=" ".repeat(q/2+.5),z=" ".repeat(q/2-.5)):(O=" ".repeat(q/2),z=O):z=" ".repeat(q)}i.delimiterStart!==!1&&!g&&A.push("|"),i.padding!==!1&&!(i.alignDelimiters===!1&&N==="")&&(i.delimiterStart!==!1||g)&&A.push(" "),i.alignDelimiters!==!1&&A.push(O),A.push(N),i.alignDelimiters!==!1&&A.push(z),i.padding!==!1&&A.push(" "),(i.delimiterEnd!==!1||g!==d-1)&&A.push("|")}w.push(i.delimiterEnd===!1?A.join("").replace(/ +$/,""):A.join(""))}return w.join(`
234
+ `)}function VT(e){return e==null?"":String(e)}function u1(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 $T(e,n,i,l){const o=i.enter("blockquote"),s=i.createTracker(l);s.move("> "),s.shift(2);const c=i.indentLines(i.containerFlow(e,s.current()),YT);return o(),c}function YT(e,n,i){return">"+(i?"":" ")+e}function KT(e,n){return c1(e,n.inConstruct,!0)&&!c1(e,n.notInConstruct,!1)}function c1(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 f1(e,n,i,l){let o=-1;for(;++o<i.unsafe.length;)if(i.unsafe[o].character===`
235
+ `&&KT(i.stack,i.unsafe[o]))return/[ \t]/.test(l.before)?"":" ";return`\\
236
+ `}function GT(e,n){const i=String(e);let l=i.indexOf(n),o=l,s=0,c=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;l!==-1;)l===o?++s>c&&(c=s):s=1,o=l+n.length,l=i.indexOf(n,o);return c}function XT(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 ZT(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 JT(e,n,i,l){const o=ZT(i),s=e.value||"",c=o==="`"?"GraveAccent":"Tilde";if(XT(e,i)){const g=i.enter("codeIndented"),x=i.indentLines(s,WT);return g(),x}const f=i.createTracker(l),h=o.repeat(Math.max(GT(s,o)+1,3)),d=i.enter("codeFenced");let y=f.move(h);if(e.lang){const g=i.enter(`codeFencedLang${c}`);y+=f.move(i.safe(e.lang,{before:y,after:" ",encode:["`"],...f.current()})),g()}if(e.lang&&e.meta){const g=i.enter(`codeFencedMeta${c}`);y+=f.move(" "),y+=f.move(i.safe(e.meta,{before:y,after:`
237
+ `,encode:["`"],...f.current()})),g()}return y+=f.move(`
238
+ `),s&&(y+=f.move(s+`
239
+ `)),y+=f.move(h),d(),y}function WT(e,n,i){return(i?"":" ")+e}function pp(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 eA(e,n,i,l){const o=pp(i),s=o==='"'?"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?" ":`
240
+ `,...h.current()}))),f(),e.title&&(f=i.enter(`title${s}`),d+=h.move(" "+o),d+=h.move(i.safe(e.title,{before:d,after:o,...h.current()})),d+=h.move(o),f()),c(),d}function tA(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 $o(e){return"&#x"+e.toString(16).toUpperCase()+";"}function ya(e){if(e===null||nt(e)||ml(e))return 1;if(yc(e))return 2}function Gu(e,n,i){const l=ya(e),o=ya(n);return l===void 0?o===void 0?i==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:l===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Hb.peek=nA;function Hb(e,n,i,l){const o=tA(i),s=i.enter("emphasis"),c=i.createTracker(l),f=c.move(o);let h=c.move(i.containerPhrasing(e,{after:o,before:f,...c.current()}));const d=h.charCodeAt(0),y=Gu(l.before.charCodeAt(l.before.length-1),d,o);y.inside&&(h=$o(d)+h.slice(1));const g=h.charCodeAt(h.length-1),x=Gu(l.after.charCodeAt(0),g,o);x.inside&&(h=h.slice(0,-1)+$o(g));const b=c.move(o);return s(),i.attentionEncodeSurroundingInfo={after:x.outside,before:y.outside},f+h+b}function nA(e,n,i){return i.options.emphasis||"*"}function mp(e,n,i,l){let o,s,c;typeof n=="function"?(s=void 0,c=n,o=i):(s=n,c=i,o=l),zb(e,s,f,o);function f(h,d){const y=d[d.length-1],g=y?y.children.indexOf(h):void 0;return c(h,g,y)}}const rA={};function yp(e,n){const i=rA,l=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,o=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return Fb(e,l,o)}function Fb(e,n,i){if(iA(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 d1(e.children,n,i)}return Array.isArray(e)?d1(e,n,i):""}function d1(e,n,i){const l=[];let o=-1;for(;++o<e.length;)l[o]=Fb(e[o],n,i);return l.join("")}function iA(e){return!!(e&&typeof e=="object")}function lA(e,n){let i=!1;return mp(e,function(l){if("value"in l&&/\r?\n|\r/.test(l.value)||l.type==="break")return i=!0,Mh}),!!((!e.depth||e.depth<3)&&yp(e)&&(n.options.setext||i))}function aA(e,n,i,l){const o=Math.max(Math.min(6,e.depth||1),1),s=i.createTracker(l);if(lA(e,i)){const y=i.enter("headingSetext"),g=i.enter("phrasing"),x=i.containerPhrasing(e,{...s.current(),before:`
241
+ `,after:`
242
+ `});return g(),y(),x+`
243
+ `+(o===1?"=":"-").repeat(x.length-(Math.max(x.lastIndexOf("\r"),x.lastIndexOf(`
244
+ `))+1))}const c="#".repeat(o),f=i.enter("headingAtx"),h=i.enter("phrasing");s.move(c+" ");let d=i.containerPhrasing(e,{before:"# ",after:`
245
+ `,...s.current()});return/^[\t ]/.test(d)&&(d=$o(d.charCodeAt(0))+d.slice(1)),d=d?c+" "+d:c,i.options.closeAtx&&(d+=" "+c),h(),f(),d}Qb.peek=oA;function Qb(e){return e.value||""}function oA(){return"<"}Pb.peek=sA;function Pb(e,n,i,l){const o=pp(i),s=o==='"'?"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${s}`),d+=h.move(" "+o),d+=h.move(i.safe(e.title,{before:d,after:o,...h.current()})),d+=h.move(o),f()),d+=h.move(")"),c(),d}function sA(){return"!"}Ib.peek=uA;function Ib(e,n,i,l){const o=e.referenceType,s=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 y=i.stack;i.stack=[],c=i.enter("reference");const g=i.safe(i.associationId(e),{before:h,after:"]",...f.current()});return c(),i.stack=y,s(),o==="full"||!d||d!==g?h+=f.move(g+"]"):o==="shortcut"?h=h.slice(0,-1):h+=f.move("]"),h}function uA(){return"!"}Vb.peek=cA;function Vb(e,n,i){let l=e.value||"",o="`",s=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(l);)o+="`";for(/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^`|`$/.test(l))&&(l=" "+l+" ");++s<i.unsafe.length;){const c=i.unsafe[s],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 o+l+o}function cA(){return"`"}function $b(e,n){const i=yp(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))}Yb.peek=fA;function Yb(e,n,i,l){const o=pp(i),s=o==='"'?"Quote":"Apostrophe",c=i.createTracker(l);let f,h;if($b(e,i)){const y=i.stack;i.stack=[],f=i.enter("autolink");let g=c.move("<");return g+=c.move(i.containerPhrasing(e,{before:g,after:">",...c.current()})),g+=c.move(">"),f(),i.stack=y,g}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${s}`),d+=c.move(" "+o),d+=c.move(i.safe(e.title,{before:d,after:o,...c.current()})),d+=c.move(o),h()),d+=c.move(")"),f(),d}function fA(e,n,i){return $b(e,i)?"<":"["}Kb.peek=dA;function Kb(e,n,i,l){const o=e.referenceType,s=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 y=i.stack;i.stack=[],c=i.enter("reference");const g=i.safe(i.associationId(e),{before:h,after:"]",...f.current()});return c(),i.stack=y,s(),o==="full"||!d||d!==g?h+=f.move(g+"]"):o==="shortcut"?h=h.slice(0,-1):h+=f.move("]"),h}function dA(){return"["}function gp(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 hA(e){const n=gp(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 pA(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 Gb(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 mA(e,n,i,l){const o=i.enter("list"),s=i.bulletCurrent;let c=e.ordered?pA(i):gp(i);const f=e.ordered?c==="."?")":".":hA(i);let h=n&&i.bulletLastUsed?c===i.bulletLastUsed:!1;if(!e.ordered){const y=e.children?e.children[0]:void 0;if((c==="*"||c==="-")&&y&&(!y.children||!y.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),Gb(i)===c&&y){let g=-1;for(;++g<e.children.length;){const x=e.children[g];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=s,o(),d}function yA(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 gA(e,n,i,l){const o=yA(i);let s=i.bulletCurrent||gp(i);n&&n.type==="list"&&n.ordered&&(s=(typeof n.start=="number"&&n.start>-1?n.start:1)+(i.options.incrementListMarker===!1?0:n.children.indexOf(e))+s);let c=s.length+1;(o==="tab"||o==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(c=Math.ceil(c/4)*4);const f=i.createTracker(l);f.move(s+" ".repeat(c-s.length)),f.shift(c);const h=i.enter("listItem"),d=i.indentLines(i.containerFlow(e,f.current()),y);return h(),d;function y(g,x,b){return x?(b?"":" ".repeat(c))+g:(b?s:s+" ".repeat(c-s.length))+g}}function vA(e,n,i,l){const o=i.enter("paragraph"),s=i.enter("phrasing"),c=i.containerPhrasing(e,l);return s(),o(),c}const bA=gc(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function xA(e,n,i,l){return(e.children.some(function(c){return bA(c)})?i.containerPhrasing:i.containerFlow).call(i,e,l)}function wA(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}Xb.peek=SA;function Xb(e,n,i,l){const o=wA(i),s=i.enter("strong"),c=i.createTracker(l),f=c.move(o+o);let h=c.move(i.containerPhrasing(e,{after:o,before:f,...c.current()}));const d=h.charCodeAt(0),y=Gu(l.before.charCodeAt(l.before.length-1),d,o);y.inside&&(h=$o(d)+h.slice(1));const g=h.charCodeAt(h.length-1),x=Gu(l.after.charCodeAt(0),g,o);x.inside&&(h=h.slice(0,-1)+$o(g));const b=c.move(o+o);return s(),i.attentionEncodeSurroundingInfo={after:x.outside,before:y.outside},f+h+b}function SA(e,n,i){return i.options.strong||"*"}function CA(e,n,i,l){return i.safe(e.value,l)}function EA(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 kA(e,n,i){const l=(Gb(i)+(i.options.ruleSpaces?" ":"")).repeat(EA(i));return i.options.ruleSpaces?l.slice(0,-1):l}const Zb={blockquote:$T,break:f1,code:JT,definition:eA,emphasis:Hb,hardBreak:f1,heading:aA,html:Qb,image:Pb,imageReference:Ib,inlineCode:Vb,link:Yb,linkReference:Kb,list:mA,listItem:gA,paragraph:vA,root:xA,strong:Xb,text:CA,thematicBreak:kA},h1=document.createElement("i");function vp(e){const n="&"+e+";";h1.innerHTML=n;const i=h1.textContent;return i.charCodeAt(i.length-1)===59&&e!=="semi"||i===n?!1:i}function Jb(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 TA=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function AA(e){return e.replace(TA,_A)}function _A(e,n,i){if(n)return n;if(i.charCodeAt(0)===35){const o=i.charCodeAt(1),s=o===120||o===88;return Jb(i.slice(s?2:1),s?16:10)}return vp(i)||e}function OA(){return{enter:{table:RA,tableData:p1,tableHeader:p1,tableRow:jA},exit:{codeText:DA,table:NA,tableData:$d,tableHeader:$d,tableRow:$d}}}function RA(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 NA(e){this.exit(e),this.data.inTable=void 0}function jA(e){this.enter({type:"tableRow",children:[]},e)}function $d(e){this.exit(e)}function p1(e){this.enter({type:"tableCell",children:[]},e)}function DA(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,MA));const i=this.stack[this.stack.length-1];i.type,i.value=n,this.exit(e)}function MA(e,n){return n==="|"?n:e}function zA(e){const n=e||{},i=n.tableCellPadding,l=n.tablePipeAlign,o=n.stringLength,s=i?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
246
+ `,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(b,w,T,_){return d(y(b,T,_),b.align)}function f(b,w,T,_){const A=g(b,T,_),N=d([A]);return N.slice(0,N.indexOf(`
247
+ `))}function h(b,w,T,_){const A=T.enter("tableCell"),N=T.enter("phrasing"),O=T.containerPhrasing(b,{..._,before:s,after:s});return N(),A(),O}function d(b,w){return IT(b,{align:w,alignDelimiters:l,padding:i,stringLength:o})}function y(b,w,T){const _=b.children;let A=-1;const N=[],O=w.enter("table");for(;++A<_.length;)N[A]=g(_[A],w,T);return O(),N}function g(b,w,T){const _=b.children;let A=-1;const N=[],O=w.enter("tableRow");for(;++A<_.length;)N[A]=h(_[A],b,w,T);return O(),N}function x(b,w,T){let _=Zb.inlineCode(b,w,T);return T.stack.includes("tableCell")&&(_=_.replace(/\|/g,"\\$&")),_}}function LA(){return{exit:{taskListCheckValueChecked:m1,taskListCheckValueUnchecked:m1,paragraph:BA}}}function UA(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:qA}}}function m1(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function BA(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 o=n.children;let s=-1,c;for(;++s<o.length;){const f=o[s];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 qA(e,n,i,l){const o=e.children[0],s=typeof e.checked=="boolean"&&o&&o.type==="paragraph",c="["+(e.checked?"x":" ")+"] ",f=i.createTracker(l);s&&f.move(c);let h=Zb.listItem(e,n,i,{...l,...f.current()});return s&&(h=h.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,d)),h;function d(y){return y+c}}function HA(){return[hT(),MT(),BT(),OA(),LA()]}function FA(e){return{extensions:[pT(),zT(e),qT(),zA(e),UA()]}}function Nn(e,n,i,l){const o=e.length;let s=0,c;if(n<0?n=-n>o?0:o+n:n=n>o?o: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);s<l.length;)c=l.slice(s,s+1e4),c.unshift(n,0),e.splice(...c),s+=1e4,n+=1e4}function Yn(e,n){return e.length>0?(Nn(e,e.length,0,n),e):n}const y1={}.hasOwnProperty;function Wb(e){const n={};let i=-1;for(;++i<e.length;)QA(n,e[i]);return n}function QA(e,n){let i;for(i in n){const o=(y1.call(e,i)?e[i]:void 0)||(e[i]={}),s=n[i];let c;if(s)for(c in s){y1.call(o,c)||(o[c]=[]);const f=s[c];PA(o[c],Array.isArray(f)?f:f?[f]:[])}}}function PA(e,n){let i=-1;const l=[];for(;++i<n.length;)(n[i].add==="after"?e:l).push(n[i]);Nn(e,0,0,l)}const IA={tokenize:XA,partial:!0},ex={tokenize:ZA,partial:!0},tx={tokenize:JA,partial:!0},nx={tokenize:WA,partial:!0},VA={tokenize:e_,partial:!0},rx={name:"wwwAutolink",tokenize:KA,previous:lx},ix={name:"protocolAutolink",tokenize:GA,previous:ax},Wr={name:"emailAutolink",tokenize:YA,previous:ox},kr={};function $A(){return{text:kr}}let al=48;for(;al<123;)kr[al]=Wr,al++,al===58?al=65:al===91&&(al=97);kr[43]=Wr;kr[45]=Wr;kr[46]=Wr;kr[95]=Wr;kr[72]=[Wr,ix];kr[104]=[Wr,ix];kr[87]=[Wr,rx];kr[119]=[Wr,rx];function YA(e,n,i){const l=this;let o,s;return c;function c(g){return!zh(g)||!ox.call(l,l.previous)||bp(l.events)?i(g):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(g))}function f(g){return zh(g)?(e.consume(g),f):g===64?(e.consume(g),h):i(g)}function h(g){return g===46?e.check(VA,y,d)(g):g===45||g===95||tn(g)?(s=!0,e.consume(g),h):y(g)}function d(g){return e.consume(g),o=!0,h}function y(g){return s&&o&&sn(l.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(g)):i(g)}}function KA(e,n,i){const l=this;return o;function o(c){return c!==87&&c!==119||!lx.call(l,l.previous)||bp(l.events)?i(c):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(IA,e.attempt(ex,e.attempt(tx,s),i),i)(c))}function s(c){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(c)}}function GA(e,n,i){const l=this;let o="",s=!1;return c;function c(g){return(g===72||g===104)&&ax.call(l,l.previous)&&!bp(l.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(g),e.consume(g),f):i(g)}function f(g){if(sn(g)&&o.length<5)return o+=String.fromCodePoint(g),e.consume(g),f;if(g===58){const x=o.toLowerCase();if(x==="http"||x==="https")return e.consume(g),h}return i(g)}function h(g){return g===47?(e.consume(g),s?d:(s=!0,h)):i(g)}function d(g){return g===null||Ku(g)||nt(g)||ml(g)||yc(g)?i(g):e.attempt(ex,e.attempt(tx,y),i)(g)}function y(g){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(g)}}function XA(e,n,i){let l=0;return o;function o(c){return(c===87||c===119)&&l<3?(l++,e.consume(c),o):c===46&&l===3?(e.consume(c),s):i(c)}function s(c){return c===null?i(c):n(c)}}function ZA(e,n,i){let l,o,s;return c;function c(d){return d===46||d===95?e.check(nx,h,f)(d):d===null||nt(d)||ml(d)||d!==45&&yc(d)?h(d):(s=!0,e.consume(d),c)}function f(d){return d===95?l=!0:(o=l,l=void 0),e.consume(d),c}function h(d){return o||l||!s?i(d):n(d)}}function JA(e,n){let i=0,l=0;return o;function o(c){return c===40?(i++,e.consume(c),o):c===41&&l<i?s(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(nx,n,s)(c):c===null||nt(c)||ml(c)?n(c):(e.consume(c),o)}function s(c){return c===41&&l++,e.consume(c),o}}function WA(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),s):f===93?(e.consume(f),o):f===60||f===null||nt(f)||ml(f)?n(f):i(f)}function o(f){return f===null||f===40||f===91||nt(f)||ml(f)?n(f):l(f)}function s(f){return sn(f)?c(f):i(f)}function c(f){return f===59?(e.consume(f),l):sn(f)?(e.consume(f),c):i(f)}}function e_(e,n,i){return l;function l(s){return e.consume(s),o}function o(s){return tn(s)?i(s):n(s)}}function lx(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||nt(e)}function ax(e){return!sn(e)}function ox(e){return!(e===47||zh(e))}function zh(e){return e===43||e===45||e===46||e===95||tn(e)}function bp(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 _a(e){const n=[];let i=-1,l=0,o=0;for(;++i<e.length;){const s=e.charCodeAt(i);let c="";if(s===37&&tn(e.charCodeAt(i+1))&&tn(e.charCodeAt(i+2)))o=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(c=String.fromCharCode(s));else if(s>55295&&s<57344){const f=e.charCodeAt(i+1);s<56320&&f>56319&&f<57344?(c=String.fromCharCode(s,f),o=1):c="�"}else c=String.fromCharCode(s);c&&(n.push(e.slice(l,i),encodeURIComponent(c)),l=i+o+1,c=""),o&&(i+=o,o=0)}return n.join("")+e.slice(l)}function bc(e,n,i){const l=[];let o=-1;for(;++o<e.length;){const s=e[o].resolveAll;s&&!l.includes(s)&&(n=s(n,i),l.push(s))}return n}const Lh={name:"attention",resolveAll:t_,tokenize:n_};function t_(e,n){let i=-1,l,o,s,c,f,h,d,y;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 g={...e[l][1].end},x={...e[i][1].start};g1(g,-h),g1(x,h),c={type:h>1?"strongSequence":"emphasisSequence",start:g,end:{...e[l][1].end}},f={type:h>1?"strongSequence":"emphasisSequence",start:{...e[i][1].start},end:x},s={type:h>1?"strongText":"emphasisText",start:{...e[l][1].end},end:{...e[i][1].start}},o={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=Yn(d,[["enter",e[l][1],n],["exit",e[l][1],n]])),d=Yn(d,[["enter",o,n],["enter",c,n],["exit",c,n],["enter",s,n]]),d=Yn(d,bc(n.parser.constructs.insideSpan.null,e.slice(l+1,i),n)),d=Yn(d,[["exit",s,n],["enter",f,n],["exit",f,n],["exit",o,n]]),e[i][1].end.offset-e[i][1].start.offset?(y=2,d=Yn(d,[["enter",e[i][1],n],["exit",e[i][1],n]])):y=0,Nn(e,l-1,i-l+3,d),i=l+d.length-y-2;break}}for(i=-1;++i<e.length;)e[i][1].type==="attentionSequence"&&(e[i][1].type="data");return e}function n_(e,n){const i=this.parser.constructs.attentionMarkers.null,l=this.previous,o=ya(l);let s;return c;function c(h){return s=h,e.enter("attentionSequence"),f(h)}function f(h){if(h===s)return e.consume(h),f;const d=e.exit("attentionSequence"),y=ya(h),g=!y||y===2&&o||i.includes(h),x=!o||o===2&&y||i.includes(l);return d._open=!!(s===42?g:g&&(o||!x)),d._close=!!(s===42?x:x&&(y||!g)),n(h)}}function g1(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const r_={name:"autolink",tokenize:i_};function i_(e,n,i){let l=0;return o;function o(b){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(b){return sn(b)?(e.consume(b),c):b===64?i(b):d(b)}function c(b){return b===43||b===45||b===46||tn(b)?(l=1,f(b)):d(b)}function f(b){return b===58?(e.consume(b),l=0,h):(b===43||b===45||b===46||tn(b))&&l++<32?(e.consume(b),f):(l=0,d(b))}function h(b){return b===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),n):b===null||b===32||b===60||Ku(b)?i(b):(e.consume(b),h)}function d(b){return b===64?(e.consume(b),y):Zk(b)?(e.consume(b),d):i(b)}function y(b){return tn(b)?g(b):i(b)}function g(b){return b===46?(e.consume(b),l=0,y):b===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),n):x(b)}function x(b){if((b===45||tn(b))&&l++<63){const w=b===45?x:g;return e.consume(b),w}return i(b)}}function Qe(e,n,i,l){const o=l?l-1:Number.POSITIVE_INFINITY;let s=0;return c;function c(h){return Le(h)?(e.enter(i),f(h)):n(h)}function f(h){return Le(h)&&s++<o?(e.consume(h),f):(e.exit(i),n(h))}}const rs={partial:!0,tokenize:l_};function l_(e,n,i){return l;function l(s){return Le(s)?Qe(e,o,"linePrefix")(s):o(s)}function o(s){return s===null||xe(s)?n(s):i(s)}}const sx={continuation:{tokenize:o_},exit:s_,name:"blockQuote",tokenize:a_};function a_(e,n,i){const l=this;return o;function o(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"),s}return i(c)}function s(c){return Le(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(c))}}function o_(e,n,i){const l=this;return o;function o(c){return Le(c)?Qe(e,s,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):s(c)}function s(c){return e.attempt(sx,n,i)(c)}}function s_(e){e.exit("blockQuote")}const ux={name:"characterEscape",tokenize:u_};function u_(e,n,i){return l;function l(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),o}function o(s){return Wk(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):i(s)}}const cx={name:"characterReference",tokenize:c_};function c_(e,n,i){const l=this;let o=0,s,c;return f;function f(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),h}function h(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),d):(e.enter("characterReferenceValue"),s=31,c=tn,y(g))}function d(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,c=Jk,y):(e.enter("characterReferenceValue"),s=7,c=Dh,y(g))}function y(g){if(g===59&&o){const x=e.exit("characterReferenceValue");return c===tn&&!vp(l.sliceSerialize(x))?i(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return c(g)&&o++<s?(e.consume(g),y):i(g)}}const v1={partial:!0,tokenize:d_},b1={concrete:!0,name:"codeFenced",tokenize:f_};function f_(e,n,i){const l=this,o={partial:!0,tokenize:q};let s=0,c=0,f;return h;function h(M){return d(M)}function d(M){const Y=l.events[l.events.length-1];return s=Y&&Y[1].type==="linePrefix"?Y[2].sliceSerialize(Y[1],!0).length:0,f=M,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),y(M)}function y(M){return M===f?(c++,e.consume(M),y):c<3?i(M):(e.exit("codeFencedFenceSequence"),Le(M)?Qe(e,g,"whitespace")(M):g(M))}function g(M){return M===null||xe(M)?(e.exit("codeFencedFence"),l.interrupt?n(M):e.check(v1,T,z)(M)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),x(M))}function x(M){return M===null||xe(M)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(M)):Le(M)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Qe(e,b,"whitespace")(M)):M===96&&M===f?i(M):(e.consume(M),x)}function b(M){return M===null||xe(M)?g(M):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(M))}function w(M){return M===null||xe(M)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(M)):M===96&&M===f?i(M):(e.consume(M),w)}function T(M){return e.attempt(o,z,_)(M)}function _(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),A}function A(M){return s>0&&Le(M)?Qe(e,N,"linePrefix",s+1)(M):N(M)}function N(M){return M===null||xe(M)?e.check(v1,T,z)(M):(e.enter("codeFlowValue"),O(M))}function O(M){return M===null||xe(M)?(e.exit("codeFlowValue"),N(M)):(e.consume(M),O)}function z(M){return e.exit("codeFenced"),n(M)}function q(M,Y,ee){let ie=0;return L;function L(se){return M.enter("lineEnding"),M.consume(se),M.exit("lineEnding"),ae}function ae(se){return M.enter("codeFencedFence"),Le(se)?Qe(M,te,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(se):te(se)}function te(se){return se===f?(M.enter("codeFencedFenceSequence"),ue(se)):ee(se)}function ue(se){return se===f?(ie++,M.consume(se),ue):ie>=c?(M.exit("codeFencedFenceSequence"),Le(se)?Qe(M,J,"whitespace")(se):J(se)):ee(se)}function J(se){return se===null||xe(se)?(M.exit("codeFencedFence"),Y(se)):ee(se)}}}function d_(e,n,i){const l=this;return o;function o(c){return c===null?i(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s)}function s(c){return l.parser.lazy[l.now().line]?i(c):n(c)}}const Yd={name:"codeIndented",tokenize:p_},h_={partial:!0,tokenize:m_};function p_(e,n,i){const l=this;return o;function o(d){return e.enter("codeIndented"),Qe(e,s,"linePrefix",5)(d)}function s(d){const y=l.events[l.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?c(d):i(d)}function c(d){return d===null?h(d):xe(d)?e.attempt(h_,c,h)(d):(e.enter("codeFlowValue"),f(d))}function f(d){return d===null||xe(d)?(e.exit("codeFlowValue"),c(d)):(e.consume(d),f)}function h(d){return e.exit("codeIndented"),n(d)}}function m_(e,n,i){const l=this;return o;function o(c){return l.parser.lazy[l.now().line]?i(c):xe(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o):Qe(e,s,"linePrefix",5)(c)}function s(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):xe(c)?o(c):i(c)}}const y_={name:"codeText",previous:v_,resolve:g_,tokenize:b_};function g_(e){let n=e.length-4,i=3,l,o;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;)o===void 0?l!==n&&e[l][1].type!=="lineEnding"&&(o=l):(l===n||e[l][1].type==="lineEnding")&&(e[o][1].type="codeTextData",l!==o+2&&(e[o][1].end=e[l-1][1].end,e.splice(o+2,l-o-2),n-=l-o-2,l=o+2),o=void 0);return e}function v_(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function b_(e,n,i){let l=0,o,s;return c;function c(g){return e.enter("codeText"),e.enter("codeTextSequence"),f(g)}function f(g){return g===96?(e.consume(g),l++,f):(e.exit("codeTextSequence"),h(g))}function h(g){return g===null?i(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),h):g===96?(s=e.enter("codeTextSequence"),o=0,y(g)):xe(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),h):(e.enter("codeTextData"),d(g))}function d(g){return g===null||g===32||g===96||xe(g)?(e.exit("codeTextData"),h(g)):(e.consume(g),d)}function y(g){return g===96?(e.consume(g),o++,y):o===l?(e.exit("codeTextSequence"),e.exit("codeText"),n(g)):(s.type="codeTextData",d(g))}}class x_{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 o=i||0;this.setCursor(Math.trunc(n));const s=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return l&&jo(this.left,l),s.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),jo(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),jo(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);jo(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);jo(this.left,i.reverse())}}}function jo(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 fx(e){const n={};let i=-1,l,o,s,c,f,h,d;const y=new x_(e);for(;++i<y.length;){for(;i in n;)i=n[i];if(l=y.get(i),i&&l[1].type==="chunkFlow"&&y.get(i-1)[1].type==="listItemPrefix"&&(h=l[1]._tokenizer.events,s=0,s<h.length&&h[s][1].type==="lineEndingBlank"&&(s+=2),s<h.length&&h[s][1].type==="content"))for(;++s<h.length&&h[s][1].type!=="content";)h[s][1].type==="chunkText"&&(h[s][1]._isInFirstContentOfListItem=!0,s++);if(l[0]==="enter")l[1].contentType&&(Object.assign(n,w_(y,i)),i=n[i],d=!0);else if(l[1]._container){for(s=i,o=void 0;s--;)if(c=y.get(s),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(o&&(y.get(o)[1].type="lineEndingBlank"),c[1].type="lineEnding",o=s);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;o&&(l[1].end={...y.get(o)[1].start},f=y.slice(o,i),f.unshift(l),y.splice(o,i-o+1,f))}}return Nn(e,0,Number.POSITIVE_INFINITY,y.slice(0)),!d}function w_(e,n){const i=e.get(n)[1],l=e.get(n)[2];let o=n-1;const s=[];let c=i._tokenizer;c||(c=l.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const f=c.events,h=[],d={};let y,g,x=-1,b=i,w=0,T=0;const _=[T];for(;b;){for(;e.get(++o)[1]!==b;);s.push(o),b._tokenizer||(y=l.sliceStream(b),b.next||y.push(null),g&&c.defineSkip(b.start),b._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(y),b._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),g=b,b=b.next}for(b=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),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(c.events=[],b?(b._tokenizer=void 0,b.previous=void 0):_.pop(),x=_.length;x--;){const A=f.slice(_[x],_[x+1]),N=s.pop();h.push([N,N+A.length-1]),e.splice(N,2,A)}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 S_={resolve:E_,tokenize:k_},C_={partial:!0,tokenize:T_};function E_(e){return fx(e),e}function k_(e,n){let i;return l;function l(f){return e.enter("content"),i=e.enter("chunkContent",{contentType:"content"}),o(f)}function o(f){return f===null?s(f):xe(f)?e.check(C_,c,s)(f):(e.consume(f),o)}function s(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,o}}function T_(e,n,i){const l=this;return o;function o(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),Qe(e,s,"linePrefix")}function s(c){if(c===null||xe(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 dx(e,n,i,l,o,s,c,f,h){const d=h||Number.POSITIVE_INFINITY;let y=0;return g;function g(A){return A===60?(e.enter(l),e.enter(o),e.enter(s),e.consume(A),e.exit(s),x):A===null||A===32||A===41||Ku(A)?i(A):(e.enter(l),e.enter(c),e.enter(f),e.enter("chunkString",{contentType:"string"}),T(A))}function x(A){return A===62?(e.enter(s),e.consume(A),e.exit(s),e.exit(o),e.exit(l),n):(e.enter(f),e.enter("chunkString",{contentType:"string"}),b(A))}function b(A){return A===62?(e.exit("chunkString"),e.exit(f),x(A)):A===null||A===60||xe(A)?i(A):(e.consume(A),A===92?w:b)}function w(A){return A===60||A===62||A===92?(e.consume(A),b):b(A)}function T(A){return!y&&(A===null||A===41||nt(A))?(e.exit("chunkString"),e.exit(f),e.exit(c),e.exit(l),n(A)):y<d&&A===40?(e.consume(A),y++,T):A===41?(e.consume(A),y--,T):A===null||A===32||A===40||Ku(A)?i(A):(e.consume(A),A===92?_:T)}function _(A){return A===40||A===41||A===92?(e.consume(A),T):T(A)}}function hx(e,n,i,l,o,s){const c=this;let f=0,h;return d;function d(b){return e.enter(l),e.enter(o),e.consume(b),e.exit(o),e.enter(s),y}function y(b){return f>999||b===null||b===91||b===93&&!h||b===94&&!f&&"_hiddenFootnoteSupport"in c.parser.constructs?i(b):b===93?(e.exit(s),e.enter(o),e.consume(b),e.exit(o),e.exit(l),n):xe(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),y):(e.enter("chunkString",{contentType:"string"}),g(b))}function g(b){return b===null||b===91||b===93||xe(b)||f++>999?(e.exit("chunkString"),y(b)):(e.consume(b),h||(h=!Le(b)),b===92?x:g)}function x(b){return b===91||b===92||b===93?(e.consume(b),f++,g):g(b)}}function px(e,n,i,l,o,s){let c;return f;function f(x){return x===34||x===39||x===40?(e.enter(l),e.enter(o),e.consume(x),e.exit(o),c=x===40?41:x,h):i(x)}function h(x){return x===c?(e.enter(o),e.consume(x),e.exit(o),e.exit(l),n):(e.enter(s),d(x))}function d(x){return x===c?(e.exit(s),h(c)):x===null?i(x):xe(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),Qe(e,d,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),y(x))}function y(x){return x===c||x===null||xe(x)?(e.exit("chunkString"),d(x)):(e.consume(x),x===92?g:y)}function g(x){return x===c||x===92?(e.consume(x),y):y(x)}}function qo(e,n){let i;return l;function l(o){return xe(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i=!0,l):Le(o)?Qe(e,l,i?"linePrefix":"lineSuffix")(o):n(o)}}const A_={name:"definition",tokenize:O_},__={partial:!0,tokenize:R_};function O_(e,n,i){const l=this;let o;return s;function s(b){return e.enter("definition"),c(b)}function c(b){return hx.call(l,e,f,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function f(b){return o=tr(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),h):i(b)}function h(b){return nt(b)?qo(e,d)(b):d(b)}function d(b){return dx(e,y,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function y(b){return e.attempt(__,g,g)(b)}function g(b){return Le(b)?Qe(e,x,"whitespace")(b):x(b)}function x(b){return b===null||xe(b)?(e.exit("definition"),l.parser.defined.push(o),n(b)):i(b)}}function R_(e,n,i){return l;function l(f){return nt(f)?qo(e,o)(f):i(f)}function o(f){return px(e,s,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function s(f){return Le(f)?Qe(e,c,"whitespace")(f):c(f)}function c(f){return f===null||xe(f)?n(f):i(f)}}const N_={name:"hardBreakEscape",tokenize:j_};function j_(e,n,i){return l;function l(s){return e.enter("hardBreakEscape"),e.consume(s),o}function o(s){return xe(s)?(e.exit("hardBreakEscape"),n(s)):i(s)}}const D_={name:"headingAtx",resolve:M_,tokenize:z_};function M_(e,n){let i=e.length-2,l=3,o,s;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&&(o={type:"atxHeadingText",start:e[l][1].start,end:e[i][1].end},s={type:"chunkText",start:e[l][1].start,end:e[i][1].end,contentType:"text"},Nn(e,l,i-l+1,[["enter",o,n],["enter",s,n],["exit",s,n],["exit",o,n]])),e}function z_(e,n,i){let l=0;return o;function o(y){return e.enter("atxHeading"),s(y)}function s(y){return e.enter("atxHeadingSequence"),c(y)}function c(y){return y===35&&l++<6?(e.consume(y),c):y===null||nt(y)?(e.exit("atxHeadingSequence"),f(y)):i(y)}function f(y){return y===35?(e.enter("atxHeadingSequence"),h(y)):y===null||xe(y)?(e.exit("atxHeading"),n(y)):Le(y)?Qe(e,f,"whitespace")(y):(e.enter("atxHeadingText"),d(y))}function h(y){return y===35?(e.consume(y),h):(e.exit("atxHeadingSequence"),f(y))}function d(y){return y===null||y===35||nt(y)?(e.exit("atxHeadingText"),f(y)):(e.consume(y),d)}}const L_=["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"],x1=["pre","script","style","textarea"],U_={concrete:!0,name:"htmlFlow",resolveTo:H_,tokenize:F_},B_={partial:!0,tokenize:P_},q_={partial:!0,tokenize:Q_};function H_(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 F_(e,n,i){const l=this;let o,s,c,f,h;return d;function d(R){return y(R)}function y(R){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(R),g}function g(R){return R===33?(e.consume(R),x):R===47?(e.consume(R),s=!0,T):R===63?(e.consume(R),o=3,l.interrupt?n:C):sn(R)?(e.consume(R),c=String.fromCharCode(R),_):i(R)}function x(R){return R===45?(e.consume(R),o=2,b):R===91?(e.consume(R),o=5,f=0,w):sn(R)?(e.consume(R),o=4,l.interrupt?n:C):i(R)}function b(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 sn(R)?(e.consume(R),c=String.fromCharCode(R),_):i(R)}function _(R){if(R===null||R===47||R===62||nt(R)){const fe=R===47,ke=c.toLowerCase();return!fe&&!s&&x1.includes(ke)?(o=1,l.interrupt?n(R):te(R)):L_.includes(c.toLowerCase())?(o=6,fe?(e.consume(R),A):l.interrupt?n(R):te(R)):(o=7,l.interrupt&&!l.parser.lazy[l.now().line]?i(R):s?N(R):O(R))}return R===45||tn(R)?(e.consume(R),c+=String.fromCharCode(R),_):i(R)}function A(R){return R===62?(e.consume(R),l.interrupt?n:te):i(R)}function N(R){return Le(R)?(e.consume(R),N):L(R)}function O(R){return R===47?(e.consume(R),L):R===58||R===95||sn(R)?(e.consume(R),z):Le(R)?(e.consume(R),O):L(R)}function z(R){return R===45||R===46||R===58||R===95||tn(R)?(e.consume(R),z):q(R)}function q(R){return R===61?(e.consume(R),M):Le(R)?(e.consume(R),q):O(R)}function M(R){return R===null||R===60||R===61||R===62||R===96?i(R):R===34||R===39?(e.consume(R),h=R,Y):Le(R)?(e.consume(R),M):ee(R)}function Y(R){return R===h?(e.consume(R),h=null,ie):R===null||xe(R)?i(R):(e.consume(R),Y)}function ee(R){return R===null||R===34||R===39||R===47||R===60||R===61||R===62||R===96||nt(R)?q(R):(e.consume(R),ee)}function ie(R){return R===47||R===62||Le(R)?O(R):i(R)}function L(R){return R===62?(e.consume(R),ae):i(R)}function ae(R){return R===null||xe(R)?te(R):Le(R)?(e.consume(R),ae):i(R)}function te(R){return R===45&&o===2?(e.consume(R),B):R===60&&o===1?(e.consume(R),X):R===62&&o===4?(e.consume(R),I):R===63&&o===3?(e.consume(R),C):R===93&&o===5?(e.consume(R),pe):xe(R)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(B_,oe,ue)(R)):R===null||xe(R)?(e.exit("htmlFlowData"),ue(R)):(e.consume(R),te)}function ue(R){return e.check(q_,J,oe)(R)}function J(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),se}function se(R){return R===null||xe(R)?ue(R):(e.enter("htmlFlowData"),te(R))}function B(R){return R===45?(e.consume(R),C):te(R)}function X(R){return R===47?(e.consume(R),c="",ne):te(R)}function ne(R){if(R===62){const fe=c.toLowerCase();return x1.includes(fe)?(e.consume(R),I):te(R)}return sn(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&&o===2?(e.consume(R),C):te(R)}function I(R){return R===null||xe(R)?(e.exit("htmlFlowData"),oe(R)):(e.consume(R),I)}function oe(R){return e.exit("htmlFlow"),n(R)}}function Q_(e,n,i){const l=this;return o;function o(c){return xe(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):i(c)}function s(c){return l.parser.lazy[l.now().line]?i(c):n(c)}}function P_(e,n,i){return l;function l(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(rs,n,i)}}const I_={name:"htmlText",tokenize:V_};function V_(e,n,i){const l=this;let o,s,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),q):C===63?(e.consume(C),O):sn(C)?(e.consume(C),ee):i(C)}function d(C){return C===45?(e.consume(C),y):C===91?(e.consume(C),s=0,w):sn(C)?(e.consume(C),N):i(C)}function y(C){return C===45?(e.consume(C),b):i(C)}function g(C){return C===null?i(C):C===45?(e.consume(C),x):xe(C)?(c=g,X(C)):(e.consume(C),g)}function x(C){return C===45?(e.consume(C),b):g(C)}function b(C){return C===62?B(C):C===45?x(C):g(C)}function w(C){const I="CDATA[";return C===I.charCodeAt(s++)?(e.consume(C),s===I.length?T:w):i(C)}function T(C){return C===null?i(C):C===93?(e.consume(C),_):xe(C)?(c=T,X(C)):(e.consume(C),T)}function _(C){return C===93?(e.consume(C),A):T(C)}function A(C){return C===62?B(C):C===93?(e.consume(C),A):T(C)}function N(C){return C===null||C===62?B(C):xe(C)?(c=N,X(C)):(e.consume(C),N)}function O(C){return C===null?i(C):C===63?(e.consume(C),z):xe(C)?(c=O,X(C)):(e.consume(C),O)}function z(C){return C===62?B(C):O(C)}function q(C){return sn(C)?(e.consume(C),M):i(C)}function M(C){return C===45||tn(C)?(e.consume(C),M):Y(C)}function Y(C){return xe(C)?(c=Y,X(C)):Le(C)?(e.consume(C),Y):B(C)}function ee(C){return C===45||tn(C)?(e.consume(C),ee):C===47||C===62||nt(C)?ie(C):i(C)}function ie(C){return C===47?(e.consume(C),B):C===58||C===95||sn(C)?(e.consume(C),L):xe(C)?(c=ie,X(C)):Le(C)?(e.consume(C),ie):B(C)}function L(C){return C===45||C===46||C===58||C===95||tn(C)?(e.consume(C),L):ae(C)}function ae(C){return C===61?(e.consume(C),te):xe(C)?(c=ae,X(C)):Le(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),o=C,ue):xe(C)?(c=te,X(C)):Le(C)?(e.consume(C),te):(e.consume(C),J)}function ue(C){return C===o?(e.consume(C),o=void 0,se):C===null?i(C):xe(C)?(c=ue,X(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||nt(C)?ie(C):(e.consume(C),J)}function se(C){return C===47||C===62||nt(C)?ie(C):i(C)}function B(C){return C===62?(e.consume(C),e.exit("htmlTextData"),e.exit("htmlText"),n):i(C)}function X(C){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),ne}function ne(C){return Le(C)?Qe(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 xp={name:"labelEnd",resolveAll:G_,resolveTo:X_,tokenize:Z_},$_={tokenize:J_},Y_={tokenize:W_},K_={tokenize:eO};function G_(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 o=l.type==="labelImage"?4:2;l.type="data",n+=o}}return e.length!==i.length&&Nn(e,0,e.length,i),e}function X_(e,n){let i=e.length,l=0,o,s,c,f;for(;i--;)if(o=e[i][1],s){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[i][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(c){if(e[i][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(s=i,o.type!=="labelLink")){l=2;break}}else o.type==="labelEnd"&&(c=i);const h={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},d={type:"label",start:{...e[s][1].start},end:{...e[c][1].end}},y={type:"labelText",start:{...e[s+l+2][1].end},end:{...e[c-2][1].start}};return f=[["enter",h,n],["enter",d,n]],f=Yn(f,e.slice(s+1,s+l+3)),f=Yn(f,[["enter",y,n]]),f=Yn(f,bc(n.parser.constructs.insideSpan.null,e.slice(s+l+4,c-3),n)),f=Yn(f,[["exit",y,n],e[c-2],e[c-1],["exit",d,n]]),f=Yn(f,e.slice(c+1)),f=Yn(f,[["exit",h,n]]),Nn(e,s,e.length,f),e}function Z_(e,n,i){const l=this;let o=l.events.length,s,c;for(;o--;)if((l.events[o][1].type==="labelImage"||l.events[o][1].type==="labelLink")&&!l.events[o][1]._balanced){s=l.events[o][1];break}return f;function f(x){return s?s._inactive?g(x):(c=l.parser.defined.includes(tr(l.sliceSerialize({start:s.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($_,y,c?y:g)(x):x===91?e.attempt(Y_,y,c?d:g)(x):c?y(x):g(x)}function d(x){return e.attempt(K_,y,g)(x)}function y(x){return n(x)}function g(x){return s._balanced=!0,i(x)}}function J_(e,n,i){return l;function l(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),o}function o(g){return nt(g)?qo(e,s)(g):s(g)}function s(g){return g===41?y(g):dx(e,c,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function c(g){return nt(g)?qo(e,h)(g):y(g)}function f(g){return i(g)}function h(g){return g===34||g===39||g===40?px(e,d,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):y(g)}function d(g){return nt(g)?qo(e,y)(g):y(g)}function y(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),n):i(g)}}function W_(e,n,i){const l=this;return o;function o(f){return hx.call(l,e,s,c,"reference","referenceMarker","referenceString")(f)}function s(f){return l.parser.defined.includes(tr(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)))?n(f):i(f)}function c(f){return i(f)}}function eO(e,n,i){return l;function l(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),o}function o(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),n):i(s)}}const tO={name:"labelStartImage",resolveAll:xp.resolveAll,tokenize:nO};function nO(e,n,i){const l=this;return o;function o(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),s}function s(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 rO={name:"labelStartLink",resolveAll:xp.resolveAll,tokenize:iO};function iO(e,n,i){const l=this;return o;function o(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),s}function s(c){return c===94&&"_hiddenFootnoteSupport"in l.parser.constructs?i(c):n(c)}}const Kd={name:"lineEnding",tokenize:lO};function lO(e,n){return i;function i(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Qe(e,n,"linePrefix")}}const Lu={name:"thematicBreak",tokenize:aO};function aO(e,n,i){let l=0,o;return s;function s(d){return e.enter("thematicBreak"),c(d)}function c(d){return o=d,f(d)}function f(d){return d===o?(e.enter("thematicBreakSequence"),h(d)):l>=3&&(d===null||xe(d))?(e.exit("thematicBreak"),n(d)):i(d)}function h(d){return d===o?(e.consume(d),l++,h):(e.exit("thematicBreakSequence"),Le(d)?Qe(e,f,"whitespace")(d):f(d))}}const mn={continuation:{tokenize:cO},exit:dO,name:"list",tokenize:uO},oO={partial:!0,tokenize:hO},sO={partial:!0,tokenize:fO};function uO(e,n,i){const l=this,o=l.events[l.events.length-1];let s=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,c=0;return f;function f(b){const w=l.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!l.containerState.marker||b===l.containerState.marker:Dh(b)){if(l.containerState.type||(l.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),b===42||b===45?e.check(Lu,i,d)(b):d(b);if(!l.interrupt||b===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(b)}return i(b)}function h(b){return Dh(b)&&++c<10?(e.consume(b),h):(!l.interrupt||c<2)&&(l.containerState.marker?b===l.containerState.marker:b===41||b===46)?(e.exit("listItemValue"),d(b)):i(b)}function d(b){return e.enter("listItemMarker"),e.consume(b),e.exit("listItemMarker"),l.containerState.marker=l.containerState.marker||b,e.check(rs,l.interrupt?i:y,e.attempt(oO,x,g))}function y(b){return l.containerState.initialBlankLine=!0,s++,x(b)}function g(b){return Le(b)?(e.enter("listItemPrefixWhitespace"),e.consume(b),e.exit("listItemPrefixWhitespace"),x):i(b)}function x(b){return l.containerState.size=s+l.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(b)}}function cO(e,n,i){const l=this;return l.containerState._closeFlow=void 0,e.check(rs,o,s);function o(f){return l.containerState.furtherBlankLines=l.containerState.furtherBlankLines||l.containerState.initialBlankLine,Qe(e,n,"listItemIndent",l.containerState.size+1)(f)}function s(f){return l.containerState.furtherBlankLines||!Le(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(sO,n,c)(f))}function c(f){return l.containerState._closeFlow=!0,l.interrupt=void 0,Qe(e,e.attempt(mn,n,i),"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function fO(e,n,i){const l=this;return Qe(e,o,"listItemIndent",l.containerState.size+1);function o(s){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(s):i(s)}}function dO(e){e.exit(this.containerState.type)}function hO(e,n,i){const l=this;return Qe(e,o,"listItemPrefixWhitespace",l.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(s){const c=l.events[l.events.length-1];return!Le(s)&&c&&c[1].type==="listItemPrefixWhitespace"?n(s):i(s)}}const w1={name:"setextUnderline",resolveTo:pO,tokenize:mO};function pO(e,n){let i=e.length,l,o,s;for(;i--;)if(e[i][0]==="enter"){if(e[i][1].type==="content"){l=i;break}e[i][1].type==="paragraph"&&(o=i)}else e[i][1].type==="content"&&e.splice(i,1),!s&&e[i][1].type==="definition"&&(s=i);const c={type:"setextHeading",start:{...e[l][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",s?(e.splice(o,0,["enter",c,n]),e.splice(s+1,0,["exit",e[l][1],n]),e[l][1].end={...e[s][1].end}):e[l][1]=c,e.push(["exit",c,n]),e}function mO(e,n,i){const l=this;let o;return s;function s(d){let y=l.events.length,g;for(;y--;)if(l.events[y][1].type!=="lineEnding"&&l.events[y][1].type!=="linePrefix"&&l.events[y][1].type!=="content"){g=l.events[y][1].type==="paragraph";break}return!l.parser.lazy[l.now().line]&&(l.interrupt||g)?(e.enter("setextHeadingLine"),o=d,c(d)):i(d)}function c(d){return e.enter("setextHeadingLineSequence"),f(d)}function f(d){return d===o?(e.consume(d),f):(e.exit("setextHeadingLineSequence"),Le(d)?Qe(e,h,"lineSuffix")(d):h(d))}function h(d){return d===null||xe(d)?(e.exit("setextHeadingLine"),n(d)):i(d)}}const yO={tokenize:EO,partial:!0};function gO(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:wO,continuation:{tokenize:SO},exit:CO}},text:{91:{name:"gfmFootnoteCall",tokenize:xO},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:vO,resolveTo:bO}}}}function vO(e,n,i){const l=this;let o=l.events.length;const s=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]);let c;for(;o--;){const h=l.events[o][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=tr(l.sliceSerialize({start:c.end,end:l.now()}));return d.codePointAt(0)!==94||!s.includes(d.slice(1))?i(h):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),n(h))}}function bO(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)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[i+3][1].end),end:Object.assign({},e[i+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},f=[e[i+1],e[i+2],["enter",l,n],e[i+3],e[i+4],["enter",o,n],["exit",o,n],["enter",s,n],["enter",c,n],["exit",c,n],["exit",s,n],e[e.length-2],e[e.length-1],["exit",l,n]];return e.splice(i,e.length-i+1,...f),e}function xO(e,n,i){const l=this,o=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]);let s=0,c;return f;function f(g){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),h}function h(g){return g!==94?i(g):(e.enter("gfmFootnoteCallMarker"),e.consume(g),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",d)}function d(g){if(s>999||g===93&&!c||g===null||g===91||nt(g))return i(g);if(g===93){e.exit("chunkString");const x=e.exit("gfmFootnoteCallString");return o.includes(tr(l.sliceSerialize(x)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):i(g)}return nt(g)||(c=!0),s++,e.consume(g),g===92?y:d}function y(g){return g===91||g===92||g===93?(e.consume(g),s++,d):d(g)}}function wO(e,n,i){const l=this,o=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]);let s,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",y):i(w)}function y(w){if(c>999||w===93&&!f||w===null||w===91||nt(w))return i(w);if(w===93){e.exit("chunkString");const T=e.exit("gfmFootnoteDefinitionLabelString");return s=tr(l.sliceSerialize(T)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),x}return nt(w)||(f=!0),c++,e.consume(w),w===92?g:y}function g(w){return w===91||w===92||w===93?(e.consume(w),c++,y):y(w)}function x(w){return w===58?(e.enter("definitionMarker"),e.consume(w),e.exit("definitionMarker"),o.includes(s)||o.push(s),Qe(e,b,"gfmFootnoteDefinitionWhitespace")):i(w)}function b(w){return n(w)}}function SO(e,n,i){return e.check(rs,n,e.attempt(yO,n,i))}function CO(e){e.exit("gfmFootnoteDefinition")}function EO(e,n,i){const l=this;return Qe(e,o,"gfmFootnoteDefinitionIndent",5);function o(s){const c=l.events[l.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?n(s):i(s)}}function kO(e){let i=(e||{}).singleTilde;const l={name:"strikethrough",tokenize:s,resolveAll:o};return i==null&&(i=!0),{text:{126:l},insideSpan:{null:[l]},attentionMarkers:{null:[126]}};function o(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 y={type:"strikethrough",start:Object.assign({},c[d][1].start),end:Object.assign({},c[h][1].end)},g={type:"strikethroughText",start:Object.assign({},c[d][1].end),end:Object.assign({},c[h][1].start)},x=[["enter",y,f],["enter",c[d][1],f],["exit",c[d][1],f],["enter",g,f]],b=f.parser.constructs.insideSpan.null;b&&Nn(x,x.length,0,bc(b,c.slice(d+1,h),f)),Nn(x,x.length,0,[["exit",g,f],["enter",c[h][1],f],["exit",c[h][1],f],["exit",y,f]]),Nn(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 s(c,f,h){const d=this.previous,y=this.events;let g=0;return x;function x(w){return d===126&&y[y.length-1][1].type!=="characterEscape"?h(w):(c.enter("strikethroughSequenceTemporary"),b(w))}function b(w){const T=ya(d);if(w===126)return g>1?h(w):(c.consume(w),g++,b);if(g<2&&!i)return h(w);const _=c.exit("strikethroughSequenceTemporary"),A=ya(w);return _._open=!A||A===2&&!!T,_._close=!T||T===2&&!!A,f(w)}}}class TO{constructor(){this.map=[]}add(n,i,l){AO(this,n,i,l)}consume(n){if(this.map.sort(function(s,c){return s[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 o=l.pop();for(;o;){for(const s of o)n.push(s);o=l.pop()}this.map.length=0}}function AO(e,n,i,l){let o=0;if(!(i===0&&l.length===0)){for(;o<e.map.length;){if(e.map[o][0]===n){e.map[o][1]+=i,e.map[o][2].push(...l);return}o+=1}e.map.push([n,i,l])}}function _O(e,n){let i=!1;const l=[];for(;n<e.length;){const o=e[n];if(i){if(o[0]==="enter")o[1].type==="tableContent"&&l.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const s=l.length-1;l[s]=l[s]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(i=!0);n+=1}return l}function OO(){return{flow:{null:{name:"table",tokenize:RO,resolveAll:NO}}}}function RO(e,n,i){const l=this;let o=0,s=0,c;return f;function f(L){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"?M:h;return ue===M&&l.parser.lazy[l.now().line]?i(L):ue(L)}function h(L){return e.enter("tableHead"),e.enter("tableRow"),d(L)}function d(L){return L===124||(c=!0,s+=1),y(L)}function y(L){return L===null?i(L):xe(L)?s>1?(s=0,l.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),b):i(L):Le(L)?Qe(e,y,"whitespace")(L):(s+=1,c&&(c=!1,o+=1),L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),c=!0,y):(e.enter("data"),g(L)))}function g(L){return L===null||L===124||nt(L)?(e.exit("data"),y(L)):(e.consume(L),L===92?x:g)}function x(L){return L===92||L===124?(e.consume(L),g):g(L)}function b(L){return l.interrupt=!1,l.parser.lazy[l.now().line]?i(L):(e.enter("tableDelimiterRow"),c=!1,Le(L)?Qe(e,w,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):w(L))}function w(L){return L===45||L===58?_(L):L===124?(c=!0,e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),T):q(L)}function T(L){return Le(L)?Qe(e,_,"whitespace")(L):_(L)}function _(L){return L===58?(s+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),A):L===45?(s+=1,A(L)):L===null||xe(L)?z(L):q(L)}function A(L){return L===45?(e.enter("tableDelimiterFiller"),N(L)):q(L)}function N(L){return L===45?(e.consume(L),N):L===58?(c=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),O):(e.exit("tableDelimiterFiller"),O(L))}function O(L){return Le(L)?Qe(e,z,"whitespace")(L):z(L)}function z(L){return L===124?w(L):L===null||xe(L)?!c||o!==s?q(L):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(L)):q(L)}function q(L){return i(L)}function M(L){return e.enter("tableRow"),Y(L)}function Y(L){return L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),Y):L===null||xe(L)?(e.exit("tableRow"),n(L)):Le(L)?Qe(e,Y,"whitespace")(L):(e.enter("data"),ee(L))}function ee(L){return L===null||L===124||nt(L)?(e.exit("data"),Y(L)):(e.consume(L),L===92?ie:ee)}function ie(L){return L===92||L===124?(e.consume(L),ee):ee(L)}}function NO(e,n){let i=-1,l=!0,o=0,s=[0,0,0,0],c=[0,0,0,0],f=!1,h=0,d,y,g;const x=new TO;for(;++i<e.length;){const b=e[i],w=b[1];b[0]==="enter"?w.type==="tableHead"?(f=!1,h!==0&&(S1(x,n,h,d,y),y=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,g=void 0,s=[0,0,0,0],c=[0,i+1,0,0],f&&(f=!1,y={type:"tableBody",start:Object.assign({},w.start),end:Object.assign({},w.end)},x.add(i,0,[["enter",y,n]])),o=w.type==="tableDelimiterRow"?2:y?3:1):o&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")?(l=!1,c[2]===0&&(s[1]!==0&&(c[0]=c[1],g=xu(x,n,s,o,void 0,g),s=[0,0,0,0]),c[2]=i)):w.type==="tableCellDivider"&&(l?l=!1:(s[1]!==0&&(c[0]=c[1],g=xu(x,n,s,o,void 0,g)),s=c,c=[s[1],i,0,0])):w.type==="tableHead"?(f=!0,h=i):w.type==="tableRow"||w.type==="tableDelimiterRow"?(h=i,s[1]!==0?(c[0]=c[1],g=xu(x,n,s,o,i,g)):c[1]!==0&&(g=xu(x,n,c,o,i,g)),o=0):o&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")&&(c[3]=i)}for(h!==0&&S1(x,n,h,d,y),x.consume(n.events),i=-1;++i<n.events.length;){const b=n.events[i];b[0]==="enter"&&b[1].type==="table"&&(b[1]._align=_O(n.events,i))}return e}function xu(e,n,i,l,o,s){const c=l===1?"tableHeader":l===2?"tableDelimiter":"tableData",f="tableContent";i[0]!==0&&(s.end=Object.assign({},ca(n.events,i[0])),e.add(i[0],0,[["exit",s,n]]));const h=ca(n.events,i[1]);if(s={type:c,start:Object.assign({},h),end:Object.assign({},h)},e.add(i[1],0,[["enter",s,n]]),i[2]!==0){const d=ca(n.events,i[2]),y=ca(n.events,i[3]),g={type:f,start:Object.assign({},d),end:Object.assign({},y)};if(e.add(i[2],0,[["enter",g,n]]),l!==2){const x=n.events[i[2]],b=n.events[i[3]];if(x[1].end=Object.assign({},b[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",g,n]])}return o!==void 0&&(s.end=Object.assign({},ca(n.events,o)),e.add(o,0,[["exit",s,n]]),s=void 0),s}function S1(e,n,i,l,o){const s=[],c=ca(n.events,i);o&&(o.end=Object.assign({},c),s.push(["exit",o,n])),l.end=Object.assign({},c),s.push(["exit",l,n]),e.add(i+1,0,s)}function ca(e,n){const i=e[n],l=i[0]==="enter"?"start":"end";return i[1][l]}const jO={name:"tasklistCheck",tokenize:MO};function DO(){return{text:{91:jO}}}function MO(e,n,i){const l=this;return o;function o(h){return l.previous!==null||!l._gfmTasklistFirstContentOfListItem?i(h):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),s)}function s(h){return nt(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 xe(h)?n(h):Le(h)?e.check({tokenize:zO},n,i)(h):i(h)}}function zO(e,n,i){return Qe(e,l,"whitespace");function l(o){return o===null?i(o):n(o)}}function LO(e){return Wb([$A(),gO(),kO(e),OO(),DO()])}const UO={};function BO(e){const n=this,i=e||UO,l=n.data(),o=l.micromarkExtensions||(l.micromarkExtensions=[]),s=l.fromMarkdownExtensions||(l.fromMarkdownExtensions=[]),c=l.toMarkdownExtensions||(l.toMarkdownExtensions=[]);o.push(LO(i)),s.push(HA()),c.push(FA(i))}function qO(e,n){const i={};return(e[e.length-1]===""?[...e,""]:e).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const HO=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,FO=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,QO={};function C1(e,n){return(QO.jsx?FO:HO).test(e)}const PO=/[ \t\n\f\r]/g;function IO(e){return typeof e=="object"?e.type==="text"?E1(e.value):!1:E1(e)}function E1(e){return e.replace(PO,"")===""}class is{constructor(n,i,l){this.normal=i,this.property=n,l&&(this.space=l)}}is.prototype.normal={};is.prototype.property={};is.prototype.space=void 0;function mx(e,n){const i={},l={};for(const o of e)Object.assign(i,o.property),Object.assign(l,o.normal);return new is(i,l,n)}function Uh(e){return e.toLowerCase()}class bn{constructor(n,i){this.attribute=i,this.property=n}}bn.prototype.attribute="";bn.prototype.booleanish=!1;bn.prototype.boolean=!1;bn.prototype.commaOrSpaceSeparated=!1;bn.prototype.commaSeparated=!1;bn.prototype.defined=!1;bn.prototype.mustUseProperty=!1;bn.prototype.number=!1;bn.prototype.overloadedBoolean=!1;bn.prototype.property="";bn.prototype.spaceSeparated=!1;bn.prototype.space=void 0;let VO=0;const _e=bl(),At=bl(),Bh=bl(),re=bl(),it=bl(),ha=bl(),Rn=bl();function bl(){return 2**++VO}const qh=Object.freeze(Object.defineProperty({__proto__:null,boolean:_e,booleanish:At,commaOrSpaceSeparated:Rn,commaSeparated:ha,number:re,overloadedBoolean:Bh,spaceSeparated:it},Symbol.toStringTag,{value:"Module"})),Gd=Object.keys(qh);class wp extends bn{constructor(n,i,l,o){let s=-1;if(super(n,i),k1(this,"space",o),typeof l=="number")for(;++s<Gd.length;){const c=Gd[s];k1(this,Gd[s],(l&qh[c])===qh[c])}}}wp.prototype.defined=!0;function k1(e,n,i){i&&(e[n]=i)}function Oa(e){const n={},i={};for(const[l,o]of Object.entries(e.properties)){const s=new wp(l,e.transform(e.attributes||{},l),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(l)&&(s.mustUseProperty=!0),n[l]=s,i[Uh(l)]=l,i[Uh(s.attribute)]=l}return new is(n,i,e.space)}const yx=Oa({properties:{ariaActiveDescendant:null,ariaAtomic:At,ariaAutoComplete:null,ariaBusy:At,ariaChecked:At,ariaColCount:re,ariaColIndex:re,ariaColSpan:re,ariaControls:it,ariaCurrent:null,ariaDescribedBy:it,ariaDetails:null,ariaDisabled:At,ariaDropEffect:it,ariaErrorMessage:null,ariaExpanded:At,ariaFlowTo:it,ariaGrabbed:At,ariaHasPopup:null,ariaHidden:At,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:it,ariaLevel:re,ariaLive:null,ariaModal:At,ariaMultiLine:At,ariaMultiSelectable:At,ariaOrientation:null,ariaOwns:it,ariaPlaceholder:null,ariaPosInSet:re,ariaPressed:At,ariaReadOnly:At,ariaRelevant:null,ariaRequired:At,ariaRoleDescription:it,ariaRowCount:re,ariaRowIndex:re,ariaRowSpan:re,ariaSelected:At,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 gx(e,n){return n in e?e[n]:n}function vx(e,n){return gx(e,n.toLowerCase())}const $O=Oa({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ha,acceptCharset:it,accessKey:it,action:null,allow:null,allowFullScreen:_e,allowPaymentRequest:_e,allowUserMedia:_e,alt:null,as:null,async:_e,autoCapitalize:null,autoComplete:it,autoFocus:_e,autoPlay:_e,blocking:it,capture:null,charSet:null,checked:_e,cite:null,className:it,cols:re,colSpan:null,content:null,contentEditable:At,controls:_e,controlsList:it,coords:re|ha,crossOrigin:null,data:null,dateTime:null,decoding:null,default:_e,defer:_e,dir:null,dirName:null,disabled:_e,download:Bh,draggable:At,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:_e,formTarget:null,headers:it,height:re,hidden:Bh,high:re,href:null,hrefLang:null,htmlFor:it,httpEquiv:it,id:null,imageSizes:null,imageSrcSet:null,inert:_e,inputMode:null,integrity:null,is:null,isMap:_e,itemId:null,itemProp:it,itemRef:it,itemScope:_e,itemType:it,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:_e,low:re,manifest:null,max:null,maxLength:re,media:null,method:null,min:null,minLength:re,multiple:_e,muted:_e,name:null,nonce:null,noModule:_e,noValidate:_e,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:_e,optimum:re,pattern:null,ping:it,placeholder:null,playsInline:_e,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:_e,referrerPolicy:null,rel:it,required:_e,reversed:_e,rows:re,rowSpan:re,sandbox:it,scope:null,scoped:_e,seamless:_e,selected:_e,shadowRootClonable:_e,shadowRootDelegatesFocus:_e,shadowRootMode:null,shape:null,size:re,sizes:null,slot:null,span:re,spellCheck:At,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:_e,useMap:null,value:At,width:re,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:it,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:_e,declare:_e,event:null,face:null,frame:null,frameBorder:null,hSpace:re,leftMargin:re,link:null,longDesc:null,lowSrc:null,marginHeight:re,marginWidth:re,noResize:_e,noHref:_e,noShade:_e,noWrap:_e,object:null,profile:null,prompt:null,rev:null,rightMargin:re,rules:null,scheme:null,scrolling:At,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:_e,disableRemotePlayback:_e,prefix:null,property:null,results:re,security:null,unselectable:null},space:"html",transform:vx}),YO=Oa({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:Rn,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:it,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:_e,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:ha,g2:ha,glyphName:ha,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:Rn,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:it,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:re,pointsAtY:re,pointsAtZ:re,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Rn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Rn,rev:Rn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Rn,requiredFeatures:Rn,requiredFonts:Rn,requiredFormats:Rn,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:Rn,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:Rn,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:Rn,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:gx}),bx=Oa({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()}}),xx=Oa({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:vx}),wx=Oa({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),KO={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"},GO=/[A-Z]/g,T1=/-[a-z]/g,XO=/^data[-\w.:]+$/i;function ZO(e,n){const i=Uh(n);let l=n,o=bn;if(i in e.normal)return e.property[e.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&XO.test(n)){if(n.charAt(4)==="-"){const s=n.slice(5).replace(T1,WO);l="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=n.slice(4);if(!T1.test(s)){let c=s.replace(GO,JO);c.charAt(0)!=="-"&&(c="-"+c),n="data"+c}}o=wp}return new o(l,n)}function JO(e){return"-"+e.toLowerCase()}function WO(e){return e.charAt(1).toUpperCase()}const eR=mx([yx,$O,bx,xx,wx],"html"),Sp=mx([yx,YO,bx,xx,wx],"svg");function tR(e){return e.join(" ").trim()}var la={},Xd,A1;function nR(){if(A1)return Xd;A1=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,i=/^\s*/,l=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,f=/^\s+|\s+$/g,h=`
248
+ `,d="/",y="*",g="",x="comment",b="declaration";Xd=function(T,_){if(typeof T!="string")throw new TypeError("First argument must be a string");if(!T)return[];_=_||{};var A=1,N=1;function O(ue){var J=ue.match(n);J&&(A+=J.length);var se=ue.lastIndexOf(h);N=~se?ue.length-se:N+ue.length}function z(){var ue={line:A,column:N};return function(J){return J.position=new q(ue),ee(),J}}function q(ue){this.start=ue,this.end={line:A,column:N},this.source=_.source}q.prototype.content=T;function M(ue){var J=new Error(_.source+":"+A+":"+N+": "+ue);if(J.reason=ue,J.filename=_.source,J.line=A,J.column=N,J.source=T,!_.silent)throw J}function Y(ue){var J=ue.exec(T);if(J){var se=J[0];return O(se),T=T.slice(se.length),J}}function ee(){Y(i)}function ie(ue){var J;for(ue=ue||[];J=L();)J!==!1&&ue.push(J);return ue}function L(){var ue=z();if(!(d!=T.charAt(0)||y!=T.charAt(1))){for(var J=2;g!=T.charAt(J)&&(y!=T.charAt(J)||d!=T.charAt(J+1));)++J;if(J+=2,g===T.charAt(J-1))return M("End of comment missing");var se=T.slice(2,J-2);return N+=2,O(se),T=T.slice(J),N+=2,ue({type:x,comment:se})}}function ae(){var ue=z(),J=Y(l);if(J){if(L(),!Y(o))return M("property missing ':'");var se=Y(s),B=ue({type:b,property:w(J[0].replace(e,g)),value:se?w(se[0].replace(e,g)):g});return Y(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,g):g}return Xd}var _1;function rR(){if(_1)return la;_1=1;var e=la&&la.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(la,"__esModule",{value:!0}),la.default=i;var n=e(nR());function i(l,o){var s=null;if(!l||typeof l!="string")return s;var c=(0,n.default)(l),f=typeof o=="function";return c.forEach(function(h){if(h.type==="declaration"){var d=h.property,y=h.value;f?o(d,y,h):y&&(s=s||{},s[d]=y)}}),s}return la}var Do={},O1;function iR(){if(O1)return Do;O1=1,Object.defineProperty(Do,"__esModule",{value:!0}),Do.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,i=/^[^-]+$/,l=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(d){return!d||i.test(d)||e.test(d)},c=function(d,y){return y.toUpperCase()},f=function(d,y){return"".concat(y,"-")},h=function(d,y){return y===void 0&&(y={}),s(d)?d:(d=d.toLowerCase(),y.reactCompat?d=d.replace(o,f):d=d.replace(l,f),d.replace(n,c))};return Do.camelCase=h,Do}var Mo,R1;function lR(){if(R1)return Mo;R1=1;var e=Mo&&Mo.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},n=e(rR()),i=iR();function l(o,s){var c={};return!o||typeof o!="string"||(0,n.default)(o,function(f,h){f&&h&&(c[(0,i.camelCase)(f,s)]=h)}),c}return l.default=l,Mo=l,Mo}var aR=lR();const oR=ba(aR),Sx=Cx("end"),Cp=Cx("start");function Cx(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 sR(e){const n=Cp(e),i=Sx(e);if(n&&i)return{start:n,end:i}}function Ho(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?N1(e.position):"start"in e||"end"in e?N1(e):"line"in e||"column"in e?Hh(e):""}function Hh(e){return j1(e&&e.line)+":"+j1(e&&e.column)}function N1(e){return Hh(e&&e.start)+"-"+Hh(e&&e.end)}function j1(e){return e&&typeof e=="number"?e:1}class rn extends Error{constructor(n,i,l){super(),typeof i=="string"&&(l=i,i=void 0);let o="",s={},c=!1;if(i&&("line"in i&&"column"in i?s={place:i}:"start"in i&&"end"in i?s={place:i}:"type"in i?s={ancestors:[i],place:i.position}:s={...i}),typeof n=="string"?o=n:!s.cause&&n&&(c=!0,o=n.message,s.cause=n),!s.ruleId&&!s.source&&typeof l=="string"){const h=l.indexOf(":");h===-1?s.ruleId=l:(s.source=l.slice(0,h),s.ruleId=l.slice(h+1))}if(!s.place&&s.ancestors&&s.ancestors){const h=s.ancestors[s.ancestors.length-1];h&&(s.place=h.position)}const f=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file,this.message=o,this.line=f?f.line:void 0,this.name=Ho(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=c&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual,this.expected,this.note,this.url}}rn.prototype.file="";rn.prototype.name="";rn.prototype.reason="";rn.prototype.message="";rn.prototype.stack="";rn.prototype.column=void 0;rn.prototype.line=void 0;rn.prototype.ancestors=void 0;rn.prototype.cause=void 0;rn.prototype.fatal=void 0;rn.prototype.place=void 0;rn.prototype.ruleId=void 0;rn.prototype.source=void 0;const Ep={}.hasOwnProperty,uR=new Map,cR=/[A-Z]/g,fR=new Set(["table","tbody","thead","tfoot","tr"]),dR=new Set(["td","th"]),Ex="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function hR(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=wR(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=xR(i,n.jsx,n.jsxs)}const o={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"?Sp:eR,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},s=kx(o,e,void 0);return s&&typeof s!="string"?s:o.create(e,o.Fragment,{children:s||void 0},void 0)}function kx(e,n,i){if(n.type==="element")return pR(e,n,i);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return mR(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return gR(e,n,i);if(n.type==="mdxjsEsm")return yR(e,n);if(n.type==="root")return vR(e,n,i);if(n.type==="text")return bR(e,n)}function pR(e,n,i){const l=e.schema;let o=l;n.tagName.toLowerCase()==="svg"&&l.space==="html"&&(o=Sp,e.schema=o),e.ancestors.push(n);const s=Ax(e,n.tagName,!1),c=SR(e,n);let f=Tp(e,n);return fR.has(n.tagName)&&(f=f.filter(function(h){return typeof h=="string"?!IO(h):!0})),Tx(e,c,s,n),kp(c,f),e.ancestors.pop(),e.schema=l,e.create(n,s,c,i)}function mR(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)}Yo(e,n.position)}function yR(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Yo(e,n.position)}function gR(e,n,i){const l=e.schema;let o=l;n.name==="svg"&&l.space==="html"&&(o=Sp,e.schema=o),e.ancestors.push(n);const s=n.name===null?e.Fragment:Ax(e,n.name,!0),c=CR(e,n),f=Tp(e,n);return Tx(e,c,s,n),kp(c,f),e.ancestors.pop(),e.schema=l,e.create(n,s,c,i)}function vR(e,n,i){const l={};return kp(l,Tp(e,n)),e.create(n,e.Fragment,l,i)}function bR(e,n){return n.value}function Tx(e,n,i,l){typeof i!="string"&&i!==e.Fragment&&e.passNode&&(n.node=l)}function kp(e,n){if(n.length>0){const i=n.length>1?n:n[0];i&&(e.children=i)}}function xR(e,n,i){return l;function l(o,s,c,f){const d=Array.isArray(c.children)?i:n;return f?d(s,c,f):d(s,c)}}function wR(e,n){return i;function i(l,o,s,c){const f=Array.isArray(s.children),h=Cp(l);return n(o,s,c,f,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}function SR(e,n){const i={};let l,o;for(o in n.properties)if(o!=="children"&&Ep.call(n.properties,o)){const s=ER(e,o,n.properties[o]);if(s){const[c,f]=s;e.tableCellAlignToStyle&&c==="align"&&typeof f=="string"&&dR.has(n.tagName)?l=f:i[c]=f}}if(l){const s=i.style||(i.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=l}return i}function CR(e,n){const i={};for(const l of n.attributes)if(l.type==="mdxJsxExpressionAttribute")if(l.data&&l.data.estree&&e.evaluater){const s=l.data.estree.body[0];s.type;const c=s.expression;c.type;const f=c.properties[0];f.type,Object.assign(i,e.evaluater.evaluateExpression(f.argument))}else Yo(e,n.position);else{const o=l.name;let s;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,s=e.evaluater.evaluateExpression(f.expression)}else Yo(e,n.position);else s=l.value===null?!0:l.value;i[o]=s}return i}function Tp(e,n){const i=[];let l=-1;const o=e.passKeys?new Map:uR;for(;++l<n.children.length;){const s=n.children[l];let c;if(e.passKeys){const h=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(h){const d=o.get(h)||0;c=h+"-"+d,o.set(h,d+1)}}const f=kx(e,s,c);f!==void 0&&i.push(f)}return i}function ER(e,n,i){const l=ZO(e.schema,n);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=l.commaSeparated?qO(i):tR(i)),l.property==="style"){let o=typeof i=="object"?i:kR(e,String(i));return e.stylePropertyNameCase==="css"&&(o=TR(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&l.space?KO[l.property]||l.property:l.attribute,i]}}function kR(e,n){try{return oR(n,{reactCompat:!0})}catch(i){if(e.ignoreInvalidStyle)return{};const l=i,o=new rn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:l,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=Ex+"#cannot-parse-style-attribute",o}}function Ax(e,n,i){let l;if(!i)l={type:"Literal",value:n};else if(n.includes(".")){const o=n.split(".");let s=-1,c;for(;++s<o.length;){const f=C1(o[s])?{type:"Identifier",name:o[s]}:{type:"Literal",value:o[s]};c=c?{type:"MemberExpression",object:c,property:f,computed:!!(s&&f.type==="Literal"),optional:!1}:f}l=c}else l=C1(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(l.type==="Literal"){const o=l.value;return Ep.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(l);Yo(e)}function Yo(e,n){const i=new rn("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=Ex+"#cannot-handle-mdx-estrees-without-createevaluater",i}function TR(e){const n={};let i;for(i in e)Ep.call(e,i)&&(n[AR(i)]=e[i]);return n}function AR(e){let n=e.replace(cR,_R);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function _R(e){return"-"+e.toLowerCase()}const Zd={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"]},OR={tokenize:RR};function RR(e){const n=e.attempt(this.parser.constructs.contentInitial,l,o);let i;return n;function l(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Qe(e,n,"linePrefix")}function o(f){return e.enter("paragraph"),s(f)}function s(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 xe(f)?(e.consume(f),e.exit("chunkText"),s):(e.consume(f),c)}}const NR={tokenize:jR},D1={tokenize:DR};function jR(e){const n=this,i=[];let l=0,o,s,c;return f;function f(O){if(l<i.length){const z=i[l];return n.containerState=z[1],e.attempt(z[0].continuation,h,d)(O)}return d(O)}function h(O){if(l++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,o&&N();const z=n.events.length;let q=z,M;for(;q--;)if(n.events[q][0]==="exit"&&n.events[q][1].type==="chunkFlow"){M=n.events[q][1].end;break}A(l);let Y=z;for(;Y<n.events.length;)n.events[Y][1].end={...M},Y++;return Nn(n.events,q+1,0,n.events.slice(z)),n.events.length=Y,d(O)}return f(O)}function d(O){if(l===i.length){if(!o)return x(O);if(o.currentConstruct&&o.currentConstruct.concrete)return w(O);n.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(D1,y,g)(O)}function y(O){return o&&N(),A(l),x(O)}function g(O){return n.parser.lazy[n.now().line]=l!==i.length,c=n.now().offset,w(O)}function x(O){return n.containerState={},e.attempt(D1,b,w)(O)}function b(O){return l++,i.push([n.currentConstruct,n.containerState]),x(O)}function w(O){if(O===null){o&&N(),A(0),e.consume(O);return}return o=o||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:s}),T(O)}function T(O){if(O===null){_(e.exit("chunkFlow"),!0),A(0),e.consume(O);return}return xe(O)?(e.consume(O),_(e.exit("chunkFlow")),l=0,n.interrupt=void 0,f):(e.consume(O),T)}function _(O,z){const q=n.sliceStream(O);if(z&&q.push(null),O.previous=s,s&&(s.next=O),s=O,o.defineSkip(O.start),o.write(q),n.parser.lazy[O.start.line]){let M=o.events.length;for(;M--;)if(o.events[M][1].start.offset<c&&(!o.events[M][1].end||o.events[M][1].end.offset>c))return;const Y=n.events.length;let ee=Y,ie,L;for(;ee--;)if(n.events[ee][0]==="exit"&&n.events[ee][1].type==="chunkFlow"){if(ie){L=n.events[ee][1].end;break}ie=!0}for(A(l),M=Y;M<n.events.length;)n.events[M][1].end={...L},M++;Nn(n.events,ee+1,0,n.events.slice(Y)),n.events.length=M}}function A(O){let z=i.length;for(;z-- >O;){const q=i[z];n.containerState=q[1],q[0].exit.call(n,e)}i.length=O}function N(){o.write([null]),s=void 0,o=void 0,n.containerState._closeFlow=void 0}}function DR(e,n,i){return Qe(e,e.attempt(this.parser.constructs.document,n,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const MR={tokenize:zR};function zR(e){const n=this,i=e.attempt(rs,l,e.attempt(this.parser.constructs.flowInitial,o,Qe(e,e.attempt(this.parser.constructs.flow,o,e.attempt(S_,o)),"linePrefix")));return i;function l(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),n.currentConstruct=void 0,i}function o(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n.currentConstruct=void 0,i}}const LR={resolveAll:Ox()},UR=_x("string"),BR=_x("text");function _x(e){return{resolveAll:Ox(e==="text"?qR:void 0),tokenize:n};function n(i){const l=this,o=this.parser.constructs[e],s=i.attempt(o,c,f);return c;function c(y){return d(y)?s(y):f(y)}function f(y){if(y===null){i.consume(y);return}return i.enter("data"),i.consume(y),h}function h(y){return d(y)?(i.exit("data"),s(y)):(i.consume(y),h)}function d(y){if(y===null)return!0;const g=o[y];let x=-1;if(g)for(;++x<g.length;){const b=g[x];if(!b.previous||b.previous.call(l,l.previous))return!0}return!1}}}function Ox(e){return n;function n(i,l){let o=-1,s;for(;++o<=i.length;)s===void 0?i[o]&&i[o][1].type==="data"&&(s=o,o++):(!i[o]||i[o][1].type!=="data")&&(o!==s+2&&(i[s][1].end=i[o-1][1].end,i.splice(s+2,o-s-2),o=s+2),s=void 0);return e?e(i,l):i}}function qR(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],o=n.sliceStream(l);let s=o.length,c=-1,f=0,h;for(;s--;){const d=o[s];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){s++;break}}if(n._contentTypeTextTrailing&&i===e.length&&(f=0),f){const d={type:i===e.length||h||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?c:l.start._bufferIndex+c,_index:l.start._index+s,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 HR={42:mn,43:mn,45:mn,48:mn,49:mn,50:mn,51:mn,52:mn,53:mn,54:mn,55:mn,56:mn,57:mn,62:sx},FR={91:A_},QR={[-2]:Yd,[-1]:Yd,32:Yd},PR={35:D_,42:Lu,45:[w1,Lu],60:U_,61:w1,95:Lu,96:b1,126:b1},IR={38:cx,92:ux},VR={[-5]:Kd,[-4]:Kd,[-3]:Kd,33:tO,38:cx,42:Lh,60:[r_,I_],91:rO,92:[N_,ux],93:xp,95:Lh,96:y_},$R={null:[Lh,LR]},YR={null:[42,95]},KR={null:[]},GR=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:YR,contentInitial:FR,disable:KR,document:HR,flow:PR,flowInitial:QR,insideSpan:$R,string:IR,text:VR},Symbol.toStringTag,{value:"Module"}));function XR(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 o={},s=[];let c=[],f=[];const h={attempt:Y(q),check:Y(M),consume:N,enter:O,exit:z,interrupt:Y(M,{interrupt:!0})},d={code:null,containerState:{},defineSkip:T,events:[],now:w,parser:e,previous:null,sliceSerialize:x,sliceStream:b,write:g};let y=n.tokenize.call(d,h);return n.resolveAll&&s.push(n),d;function g(ae){return c=Yn(c,ae),_(),c[c.length-1]!==null?[]:(ee(n,0),d.events=bc(s,d.events,d),d.events)}function x(ae,te){return JR(b(ae),te)}function b(ae){return ZR(c,ae)}function w(){const{_bufferIndex:ae,_index:te,line:ue,column:J,offset:se}=l;return{_bufferIndex:ae,_index:te,line:ue,column:J,offset:se}}function T(ae){o[ae.line]=ae.column,L()}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;)A(te.charCodeAt(l._bufferIndex));else A(te)}}function A(ae){y=y(ae)}function N(ae){xe(ae)?(l.line++,l.column=1,l.offset+=ae===-3?2:1,L()):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 O(ae,te){const ue=te||{};return ue.type=ae,ue.start=w(),d.events.push(["enter",ue,d]),f.push(ue),ue}function z(ae){const te=f.pop();return te.end=w(),d.events.push(["exit",te,d]),te}function q(ae,te){ee(ae,te.from)}function M(ae,te){te.restore()}function Y(ae,te){return ue;function ue(J,se,B){let X,ne,pe,C;return Array.isArray(J)?oe(J):"tokenize"in J?oe([J]):I(J);function I(ce){return st;function st(Oe){const Ie=Oe!==null&&ce[Oe],Ft=Oe!==null&&ce.null,bt=[...Array.isArray(Ie)?Ie:Ie?[Ie]:[],...Array.isArray(Ft)?Ft:Ft?[Ft]:[]];return oe(bt)(Oe)}}function oe(ce){return X=ce,ne=0,ce.length===0?B:R(ce[ne])}function R(ce){return st;function st(Oe){return C=ie(),pe=ce,ce.partial||(d.currentConstruct=ce),ce.name&&d.parser.constructs.disable.null.includes(ce.name)?ke():ce.tokenize.call(te?Object.assign(Object.create(d),te):d,h,fe,ke)(Oe)}}function fe(ce){return ae(pe,C),se}function ke(ce){return C.restore(),++ne<X.length?R(X[ne]):B}}}function ee(ae,te){ae.resolveAll&&!s.includes(ae)&&s.push(ae),ae.resolve&&Nn(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,se=Array.from(f);return{from:J,restore:B};function B(){l=ae,d.previous=te,d.currentConstruct=ue,d.events.length=J,f=se,L()}}function L(){l.line in o&&l.column<2&&(l.column=o[l.line],l.offset+=o[l.line]-1)}}function ZR(e,n){const i=n.start._index,l=n.start._bufferIndex,o=n.end._index,s=n.end._bufferIndex;let c;if(i===o)c=[e[i].slice(l,s)];else{if(c=e.slice(i,o),l>-1){const f=c[0];typeof f=="string"?c[0]=f.slice(l):c.shift()}s>0&&c.push(e[o].slice(0,s))}return c}function JR(e,n){let i=-1;const l=[];let o;for(;++i<e.length;){const s=e[i];let c;if(typeof s=="string")c=s;else switch(s){case-5:{c="\r";break}case-4:{c=`
249
+ `;break}case-3:{c=`\r
250
+ `;break}case-2:{c=n?" ":" ";break}case-1:{if(!n&&o)continue;c=" ";break}default:c=String.fromCharCode(s)}o=s===-2,l.push(c)}return l.join("")}function WR(e){const l={constructs:Wb([GR,...(e||{}).extensions||[]]),content:o(OR),defined:[],document:o(NR),flow:o(MR),lazy:{},string:o(UR),text:o(BR)};return l;function o(s){return c;function c(f){return XR(l,s,f)}}}function eN(e){for(;!fx(e););return e}const M1=/[\0\t\n\r]/g;function tN(){let e=1,n="",i=!0,l;return o;function o(s,c,f){const h=[];let d,y,g,x,b;for(s=n+(typeof s=="string"?s.toString():new TextDecoder(c||void 0).decode(s)),g=0,n="",i&&(s.charCodeAt(0)===65279&&g++,i=void 0);g<s.length;){if(M1.lastIndex=g,d=M1.exec(s),x=d&&d.index!==void 0?d.index:s.length,b=s.charCodeAt(x),!d){n=s.slice(g);break}if(b===10&&g===x&&l)h.push(-3),l=void 0;else switch(l&&(h.push(-5),l=void 0),g<x&&(h.push(s.slice(g,x)),e+=x-g),b){case 0:{h.push(65533),e++;break}case 9:{for(y=Math.ceil(e/4)*4,h.push(-2);e++<y;)h.push(-1);break}case 10:{h.push(-4),e=1;break}default:l=!0,e=1}g=x+1}return f&&(l&&h.push(-5),n&&h.push(n),h.push(null)),h}}const Rx={}.hasOwnProperty;function nN(e,n,i){return typeof n!="string"&&(i=n,n=void 0),rN(i)(eN(WR(i).document().write(tN()(e,n,!0))))}function rN(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(xn),autolinkProtocol:ie,autolinkEmail:ie,atxHeading:s(ni),blockQuote:s(Ft),characterEscape:ie,characterReference:ie,codeFenced:s(bt),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(bt,c),codeText:s(un,c),codeTextData:ie,data:ie,codeFlowValue:ie,definition:s(Xn),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(cn),hardBreakEscape:s(Dt),hardBreakTrailing:s(Dt),htmlFlow:s(Mt,c),htmlFlowData:ie,htmlText:s(Mt,c),htmlTextData:ie,image:s(Zn),label:c,link:s(xn),listItem:s(Dn),listItemValue:x,listOrdered:s(Ke,g),listUnordered:s(Ke),paragraph:s(Ar),reference:R,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(ni),strong:s(or),thematicBreak:s(ri)},exit:{atxHeading:h(),atxHeadingSequence:q,autolink:h(),autolinkEmail:Ie,autolinkProtocol:Oe,blockQuote:h(),characterEscapeValue:L,characterReferenceMarkerHexadecimal:ke,characterReferenceMarkerNumeric:ke,characterReferenceValue:ce,characterReference:st,codeFenced:h(_),codeFencedFence:T,codeFencedFenceInfo:b,codeFencedFenceMeta:w,codeFlowValue:L,codeIndented:h(A),codeText:h(se),codeTextData:L,data:L,definition:h(),definitionDestinationString:z,definitionLabelString:N,definitionTitleString:O,emphasis:h(),hardBreakEscape:h(te),hardBreakTrailing:h(te),htmlFlow:h(ue),htmlFlowData:L,htmlText:h(J),htmlTextData:L,image:h(X),label:pe,labelText:ne,lineEnding:ae,link:h(B),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:fe,resourceDestinationString:C,resourceTitleString:I,resource:oe,setextHeading:h(ee),setextHeadingLineSequence:Y,setextHeadingText:M,strong:h(),thematicBreak:h()}};Nx(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:y,data:i},ye=[];let Ue=-1;for(;++Ue<$.length;)if($[Ue][1].type==="listOrdered"||$[Ue][1].type==="listUnordered")if($[Ue][0]==="enter")ye.push(Ue);else{const Qt=ye.pop();Ue=o($,Qt,Ue)}for(Ue=-1;++Ue<$.length;){const Qt=n[$[Ue][0]];Rx.call(Qt,$[Ue][1].type)&&Qt[$[Ue][1].type].call(Object.assign({sliceSerialize:$[Ue][2].sliceSerialize},me),$[Ue][1])}if(me.tokenStack.length>0){const Qt=me.tokenStack[me.tokenStack.length-1];(Qt[1]||z1).call(me,void 0,Qt[0])}for(W.position={start:Oi($.length>0?$[0][1].start:{line:1,column:1,offset:0}),end:Oi($.length>0?$[$.length-2][1].end:{line:1,column:1,offset:0})},Ue=-1;++Ue<n.transforms.length;)W=n.transforms[Ue](W)||W;return W}function o($,W,me){let ye=W-1,Ue=-1,Qt=!1,Yt,ht,pt,qe;for(;++ye<=me;){const ut=$[ye];switch(ut[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ut[0]==="enter"?Ue++:Ue--,qe=void 0;break}case"lineEndingBlank":{ut[0]==="enter"&&(Yt&&!qe&&!Ue&&!pt&&(pt=ye),qe=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:qe=void 0}if(!Ue&&ut[0]==="enter"&&ut[1].type==="listItemPrefix"||Ue===-1&&ut[0]==="exit"&&(ut[1].type==="listUnordered"||ut[1].type==="listOrdered")){if(Yt){let zt=ye;for(ht=void 0;zt--;){const Lt=$[zt];if(Lt[1].type==="lineEnding"||Lt[1].type==="lineEndingBlank"){if(Lt[0]==="exit")continue;ht&&($[ht][1].type="lineEndingBlank",Qt=!0),Lt[1].type="lineEnding",ht=zt}else if(!(Lt[1].type==="linePrefix"||Lt[1].type==="blockQuotePrefix"||Lt[1].type==="blockQuotePrefixWhitespace"||Lt[1].type==="blockQuoteMarker"||Lt[1].type==="listItemIndent"))break}pt&&(!ht||pt<ht)&&(Yt._spread=!0),Yt.end=Object.assign({},ht?$[ht][1].start:ut[1].end),$.splice(ht||ye,0,["exit",Yt,ut[2]]),ye++,me++}if(ut[1].type==="listItemPrefix"){const zt={type:"listItem",_spread:!1,start:Object.assign({},ut[1].start),end:void 0};Yt=zt,$.splice(ye,0,["enter",zt,ut[2]]),ye++,me++,pt=void 0,qe=!0}}}return $[W][1]._spread=Qt,me}function s($,W){return me;function me(ye){f.call(this,$(ye),ye),W&&W.call(this,ye)}}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:Oi(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(),ye=this.tokenStack.pop();if(ye)ye[0].type!==$.type&&(W?W.call(this,$,ye[0]):(ye[1]||z1).call(this,$,ye[0]));else throw new Error("Cannot close `"+$.type+"` ("+Ho({start:$.start,end:$.end})+"): it’s not open");me.position.end=Oi($.end)}function y(){return yp(this.stack.pop())}function g(){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 b(){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 A(){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=tr(this.sliceSerialize($)).toLowerCase()}function O(){const $=this.resume(),W=this.stack[this.stack.length-1];W.title=$}function z(){const $=this.resume(),W=this.stack[this.stack.length-1];W.url=$}function q($){const W=this.stack[this.stack.length-1];if(!W.depth){const me=this.sliceSerialize($).length;W.depth=me}}function M(){this.data.setextHeadingSlurpLineEnding=!0}function Y($){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 ye=me[me.length-1];(!ye||ye.type!=="text")&&(ye=_r(),ye.position={start:Oi($.start),end:void 0},me.push(ye)),this.stack.push(ye)}function L($){const W=this.stack.pop();W.value+=this.sliceSerialize($),W.position.end=Oi($.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=Oi($.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(W.type)&&(ie.call(this,$),L.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 se(){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 X(){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=AA(W),me.identifier=tr(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 ye=$.children;me.children=ye}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 oe(){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=tr(this.sliceSerialize($)).toLowerCase(),this.data.referenceType="full"}function ke($){this.data.characterReferenceType=$.type}function ce($){const W=this.sliceSerialize($),me=this.data.characterReferenceType;let ye;me?(ye=Jb(W,me==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ye=vp(W);const Ue=this.stack[this.stack.length-1];Ue.value+=ye}function st($){const W=this.stack.pop();W.position.end=Oi($.end)}function Oe($){L.call(this,$);const W=this.stack[this.stack.length-1];W.url=this.sliceSerialize($)}function Ie($){L.call(this,$);const W=this.stack[this.stack.length-1];W.url="mailto:"+this.sliceSerialize($)}function Ft(){return{type:"blockquote",children:[]}}function bt(){return{type:"code",lang:null,meta:null,value:""}}function un(){return{type:"inlineCode",value:""}}function Xn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function cn(){return{type:"emphasis",children:[]}}function ni(){return{type:"heading",depth:0,children:[]}}function Dt(){return{type:"break"}}function Mt(){return{type:"html",value:""}}function Zn(){return{type:"image",title:null,url:"",alt:null}}function xn(){return{type:"link",title:null,url:"",children:[]}}function Ke($){return{type:"list",ordered:$.type==="listOrdered",start:null,spread:$._spread,children:[]}}function Dn($){return{type:"listItem",spread:$._spread,checked:null,children:[]}}function Ar(){return{type:"paragraph",children:[]}}function or(){return{type:"strong",children:[]}}function _r(){return{type:"text",value:""}}function ri(){return{type:"thematicBreak"}}}function Oi(e){return{line:e.line,column:e.column,offset:e.offset}}function Nx(e,n){let i=-1;for(;++i<n.length;){const l=n[i];Array.isArray(l)?Nx(e,l):iN(e,l)}}function iN(e,n){let i;for(i in n)if(Rx.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 z1(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Ho({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Ho({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Ho({start:n.start,end:n.end})+") is still open")}function lN(e){const n=this;n.parser=i;function i(l){return nN(l,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function aN(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 oN(e,n){const i={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,i),[e.applyData(n,i),{type:"text",value:`
251
+ `}]}function sN(e,n){const i=n.value?n.value+`
252
+ `:"",l={};n.lang&&(l.className=["language-"+n.lang]);let o={type:"element",tagName:"code",properties:l,children:[{type:"text",value:i}]};return n.meta&&(o.data={meta:n.meta}),e.patch(n,o),o=e.applyData(n,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(n,o),o}function uN(e,n){const i={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function cN(e,n){const i={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function fN(e,n){const i=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",l=String(n.identifier).toUpperCase(),o=_a(l.toLowerCase()),s=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=s+1,f+=1,e.footnoteCounts.set(l,f);const h={type:"element",tagName:"a",properties:{href:"#"+i+"fn-"+o,id:i+"fnref-"+o+(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 dN(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 hN(e,n){if(e.options.allowDangerousHtml){const i={type:"raw",value:n.value};return e.patch(n,i),e.applyData(n,i)}}function jx(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 o=e.all(n),s=o[0];s&&s.type==="text"?s.value="["+s.value:o.unshift({type:"text",value:"["});const c=o[o.length-1];return c&&c.type==="text"?c.value+=l:o.push({type:"text",value:l}),o}function pN(e,n){const i=String(n.identifier).toUpperCase(),l=e.definitionById.get(i);if(!l)return jx(e,n);const o={src:_a(l.url||""),alt:n.alt};l.title!==null&&l.title!==void 0&&(o.title=l.title);const s={type:"element",tagName:"img",properties:o,children:[]};return e.patch(n,s),e.applyData(n,s)}function mN(e,n){const i={src:_a(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 yN(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 gN(e,n){const i=String(n.identifier).toUpperCase(),l=e.definitionById.get(i);if(!l)return jx(e,n);const o={href:_a(l.url||"")};l.title!==null&&l.title!==void 0&&(o.title=l.title);const s={type:"element",tagName:"a",properties:o,children:e.all(n)};return e.patch(n,s),e.applyData(n,s)}function vN(e,n){const i={href:_a(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 bN(e,n,i){const l=e.all(n),o=i?xN(i):Dx(n),s={},c=[];if(typeof n.checked=="boolean"){const y=l[0];let g;y&&y.type==="element"&&y.tagName==="p"?g=y:(g={type:"element",tagName:"p",properties:{},children:[]},l.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let f=-1;for(;++f<l.length;){const y=l[f];(o||f!==0||y.type!=="element"||y.tagName!=="p")&&c.push({type:"text",value:`
253
+ `}),y.type==="element"&&y.tagName==="p"&&!o?c.push(...y.children):c.push(y)}const h=l[l.length-1];h&&(o||h.type!=="element"||h.tagName!=="p")&&c.push({type:"text",value:`
254
+ `});const d={type:"element",tagName:"li",properties:s,children:c};return e.patch(n,d),e.applyData(n,d)}function xN(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=Dx(i[l])}return n}function Dx(e){const n=e.spread;return n??e.children.length>1}function wN(e,n){const i={},l=e.all(n);let o=-1;for(typeof n.start=="number"&&n.start!==1&&(i.start=n.start);++o<l.length;){const c=l[o];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 s={type:"element",tagName:n.ordered?"ol":"ul",properties:i,children:e.wrap(l,!0)};return e.patch(n,s),e.applyData(n,s)}function SN(e,n){const i={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function CN(e,n){const i={type:"root",children:e.wrap(e.all(n))};return e.patch(n,i),e.applyData(n,i)}function EN(e,n){const i={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function kN(e,n){const i=e.all(n),l=i.shift(),o=[];if(l){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([l],!0)};e.patch(n.children[0],c),o.push(c)}if(i.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(i,!0)},f=Cp(n.children[1]),h=Sx(n.children[n.children.length-1]);f&&h&&(c.position={start:f,end:h}),o.push(c)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(n,s),e.applyData(n,s)}function TN(e,n,i){const l=i?i.children:void 0,s=(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 g=n.children[h],x={},b=c?c[h]:void 0;b&&(x.align=b);let w={type:"element",tagName:s,properties:x,children:[]};g&&(w.children=e.all(g),e.patch(g,w),w=e.applyData(g,w)),d.push(w)}const y={type:"element",tagName:"tr",properties:{},children:e.wrap(d,!0)};return e.patch(n,y),e.applyData(n,y)}function AN(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,U1=32;function _N(e){const n=String(e),i=/\r?\n|\r/g;let l=i.exec(n),o=0;const s=[];for(;l;)s.push(B1(n.slice(o,l.index),o>0,!0),l[0]),o=l.index+l[0].length,l=i.exec(n);return s.push(B1(n.slice(o),o>0,!1)),s.join("")}function B1(e,n,i){let l=0,o=e.length;if(n){let s=e.codePointAt(l);for(;s===L1||s===U1;)l++,s=e.codePointAt(l)}if(i){let s=e.codePointAt(o-1);for(;s===L1||s===U1;)o--,s=e.codePointAt(o-1)}return o>l?e.slice(l,o):""}function ON(e,n){const i={type:"text",value:_N(String(n.value))};return e.patch(n,i),e.applyData(n,i)}function RN(e,n){const i={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,i),e.applyData(n,i)}const NN={blockquote:aN,break:oN,code:sN,delete:uN,emphasis:cN,footnoteReference:fN,heading:dN,html:hN,imageReference:pN,image:mN,inlineCode:yN,linkReference:gN,link:vN,listItem:bN,list:wN,paragraph:SN,root:CN,strong:EN,table:kN,tableCell:AN,tableRow:TN,text:ON,thematicBreak:RN,toml:wu,yaml:wu,definition:wu,footnoteDefinition:wu};function wu(){}const Mx=-1,xc=0,Fo=1,Xu=2,Ap=3,_p=4,Op=5,Rp=6,zx=7,Lx=8,q1=typeof self=="object"?self:globalThis,jN=(e,n)=>{const i=(o,s)=>(e.set(s,o),o),l=o=>{if(e.has(o))return e.get(o);const[s,c]=n[o];switch(s){case xc:case Mx:return i(c,o);case Fo:{const f=i([],o);for(const h of c)f.push(l(h));return f}case Xu:{const f=i({},o);for(const[h,d]of c)f[l(h)]=l(d);return f}case Ap:return i(new Date(c),o);case _p:{const{source:f,flags:h}=c;return i(new RegExp(f,h),o)}case Op:{const f=i(new Map,o);for(const[h,d]of c)f.set(l(h),l(d));return f}case Rp:{const f=i(new Set,o);for(const h of c)f.add(l(h));return f}case zx:{const{name:f,message:h}=c;return i(new q1[f](h),o)}case Lx:return i(BigInt(c),o);case"BigInt":return i(Object(BigInt(c)),o);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 q1[s](c),o)};return l},H1=e=>jN(new Map,e)(0),aa="",{toString:DN}={},{keys:MN}=Object,zo=e=>{const n=typeof e;if(n!=="object"||!e)return[xc,n];const i=DN.call(e).slice(8,-1);switch(i){case"Array":return[Fo,aa];case"Object":return[Xu,aa];case"Date":return[Ap,aa];case"RegExp":return[_p,aa];case"Map":return[Op,aa];case"Set":return[Rp,aa];case"DataView":return[Fo,i]}return i.includes("Array")?[Fo,i]:i.includes("Error")?[zx,i]:[Xu,i]},Su=([e,n])=>e===xc&&(n==="function"||n==="symbol"),zN=(e,n,i,l)=>{const o=(c,f)=>{const h=l.push(c)-1;return i.set(f,h),h},s=c=>{if(i.has(c))return i.get(c);let[f,h]=zo(c);switch(f){case xc:{let y=c;switch(h){case"bigint":f=Lx,y=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+h);y=null;break;case"undefined":return o([Mx],c)}return o([f,y],c)}case Fo:{if(h){let x=c;return h==="DataView"?x=new Uint8Array(c.buffer):h==="ArrayBuffer"&&(x=new Uint8Array(c)),o([h,[...x]],c)}const y=[],g=o([f,y],c);for(const x of c)y.push(s(x));return g}case Xu:{if(h)switch(h){case"BigInt":return o([h,c.toString()],c);case"Boolean":case"Number":case"String":return o([h,c.valueOf()],c)}if(n&&"toJSON"in c)return s(c.toJSON());const y=[],g=o([f,y],c);for(const x of MN(c))(e||!Su(zo(c[x])))&&y.push([s(x),s(c[x])]);return g}case Ap:return o([f,c.toISOString()],c);case _p:{const{source:y,flags:g}=c;return o([f,{source:y,flags:g}],c)}case Op:{const y=[],g=o([f,y],c);for(const[x,b]of c)(e||!(Su(zo(x))||Su(zo(b))))&&y.push([s(x),s(b)]);return g}case Rp:{const y=[],g=o([f,y],c);for(const x of c)(e||!Su(zo(x)))&&y.push(s(x));return g}}const{message:d}=c;return o([f,{name:h,message:d}],c)};return s},F1=(e,{json:n,lossy:i}={})=>{const l=[];return zN(!(n||i),!!n,new Map,l)(e),l},Zu=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?H1(F1(e,n)):structuredClone(e):(e,n)=>H1(F1(e,n));function LN(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 UN(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function BN(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=e.options.footnoteBackContent||LN,l=e.options.footnoteBackLabel||UN,o=e.options.footnoteLabel||"Footnotes",s=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 y=e.all(d),g=String(d.identifier).toUpperCase(),x=_a(g.toLowerCase());let b=0;const w=[],T=e.footnoteCounts.get(g);for(;T!==void 0&&++b<=T;){w.length>0&&w.push({type:"text",value:" "});let N=typeof i=="string"?i:i(h,b);typeof N=="string"&&(N={type:"text",value:N}),w.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+x+(b>1?"-"+b:""),dataFootnoteBackref:"",ariaLabel:typeof l=="string"?l:l(h,b),className:["data-footnote-backref"]},children:Array.isArray(N)?N:[N]})}const _=y[y.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 y.push(...w);const A={type:"element",tagName:"li",properties:{id:n+"fn-"+x},children:e.wrap(y,!0)};e.patch(d,A),f.push(A)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...Zu(c),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
255
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
256
+ `}]}}const Fh={}.hasOwnProperty,qN={};function HN(e,n){const i=n||qN,l=new Map,o=new Map,s=new Map,c={...NN,...i.handlers},f={all:d,applyData:QN,definitionById:l,footnoteById:o,footnoteCounts:s,footnoteOrder:[],handlers:c,one:h,options:i,patch:FN,wrap:IN};return mp(e,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const g=y.type==="definition"?l:o,x=String(y.identifier).toUpperCase();g.has(x)||g.set(x,y)}}),f;function h(y,g){const x=y.type,b=f.handlers[x];if(Fh.call(f.handlers,x)&&b)return b(f,y,g);if(f.options.passThrough&&f.options.passThrough.includes(x)){if("children"in y){const{children:T,..._}=y,A=Zu(_);return A.children=f.all(y),A}return Zu(y)}return(f.options.unknownHandler||PN)(f,y,g)}function d(y){const g=[];if("children"in y){const x=y.children;let b=-1;for(;++b<x.length;){const w=f.one(x[b],y);if(w){if(b&&x[b-1].type==="break"&&(!Array.isArray(w)&&w.type==="text"&&(w.value=Q1(w.value)),!Array.isArray(w)&&w.type==="element")){const T=w.children[0];T&&T.type==="text"&&(T.value=Q1(T.value))}Array.isArray(w)?g.push(...w):g.push(w)}}}return g}}function FN(e,n){e.position&&(n.position=sR(e))}function QN(e,n){let i=n;if(e&&e.data){const l=e.data.hName,o=e.data.hChildren,s=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"&&s&&Object.assign(i.properties,Zu(s)),"children"in i&&i.children&&o!==null&&o!==void 0&&(i.children=o)}return i}function PN(e,n){const i=n.data||{},l="value"in n&&!(Fh.call(i,"hProperties")||Fh.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 IN(e,n){const i=[];let l=-1;for(n&&i.push({type:"text",value:`
257
+ `});++l<e.length;)l&&i.push({type:"text",value:`
258
+ `}),i.push(e[l]);return n&&e.length>0&&i.push({type:"text",value:`
259
+ `}),i}function Q1(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=HN(e,n),l=i.one(e,void 0),o=BN(i),s=Array.isArray(l)?{type:"root",children:l}:l||{type:"root",children:[]};return o&&s.children.push({type:"text",value:`
260
+ `},o),s}function VN(e,n){return e&&"run"in e?async function(i,l){const o=P1(i,{file:l,...n});await e.run(o,l)}:function(i,l){return P1(i,{file:l,...e||n})}}function I1(e){if(e)throw e}var Jd,V1;function $N(){if(V1)return Jd;V1=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,i=Object.defineProperty,l=Object.getOwnPropertyDescriptor,o=function(d){return typeof Array.isArray=="function"?Array.isArray(d):n.call(d)==="[object Array]"},s=function(d){if(!d||n.call(d)!=="[object Object]")return!1;var y=e.call(d,"constructor"),g=d.constructor&&d.constructor.prototype&&e.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!y&&!g)return!1;var x;for(x in d);return typeof x>"u"||e.call(d,x)},c=function(d,y){i&&y.name==="__proto__"?i(d,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):d[y.name]=y.newValue},f=function(d,y){if(y==="__proto__")if(e.call(d,y)){if(l)return l(d,y).value}else return;return d[y]};return Jd=function h(){var d,y,g,x,b,w,T=arguments[0],_=1,A=arguments.length,N=!1;for(typeof T=="boolean"&&(N=T,T=arguments[1]||{},_=2),(T==null||typeof T!="object"&&typeof T!="function")&&(T={});_<A;++_)if(d=arguments[_],d!=null)for(y in d)g=f(T,y),x=f(d,y),T!==x&&(N&&x&&(s(x)||(b=o(x)))?(b?(b=!1,w=g&&o(g)?g:[]):w=g&&s(g)?g:{},c(T,{name:y,newValue:h(N,w,x)})):typeof x<"u"&&c(T,{name:y,newValue:x}));return T},Jd}var YN=$N();const Wd=ba(YN);function Qh(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 KN(){const e=[],n={run:i,use:l};return n;function i(...o){let s=-1;const c=o.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);f(null,...o);function f(h,...d){const y=e[++s];let g=-1;if(h){c(h);return}for(;++g<o.length;)(d[g]===null||d[g]===void 0)&&(d[g]=o[g]);o=d,y?GN(y,f)(...d):c(null,...d)}}function l(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),n}}function GN(e,n){let i;return l;function l(...c){const f=e.length>c.length;let h;f&&c.push(o);try{h=e.apply(this,c)}catch(d){const y=d;if(f&&i)throw y;return o(y)}f||(h&&h.then&&typeof h.then=="function"?h.then(s,o):h instanceof Error?o(h):s(h))}function o(c,...f){i||(i=!0,n(c,...f))}function s(c){o(null,c)}}const yr={basename:XN,dirname:ZN,extname:JN,join:WN,sep:"/"};function XN(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');ls(e);let i=0,l=-1,o=e.length,s;if(n===void 0||n.length===0||n.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(s){i=o+1;break}}else l<0&&(s=!0,l=o+1);return l<0?"":e.slice(i,l)}if(n===e)return"";let c=-1,f=n.length-1;for(;o--;)if(e.codePointAt(o)===47){if(s){i=o+1;break}}else c<0&&(s=!0,c=o+1),f>-1&&(e.codePointAt(o)===n.codePointAt(f--)?f<0&&(l=o):(f=-1,l=c));return i===l?l=c:l<0&&(l=e.length),e.slice(i,l)}function ZN(e){if(ls(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 JN(e){ls(e);let n=e.length,i=-1,l=0,o=-1,s=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?o<0?o=n:s!==1&&(s=1):o>-1&&(s=-1)}return o<0||i<0||s===0||s===1&&o===i-1&&o===l+1?"":e.slice(o,i)}function WN(...e){let n=-1,i;for(;++n<e.length;)ls(e[n]),e[n]&&(i=i===void 0?e[n]:i+"/"+e[n]);return i===void 0?".":e6(i)}function e6(e){ls(e);const n=e.codePointAt(0)===47;let i=t6(e,!n);return i.length===0&&!n&&(i="."),i.length>0&&e.codePointAt(e.length-1)===47&&(i+="/"),n?"/"+i:i}function t6(e,n){let i="",l=0,o=-1,s=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(!(o===c-1||s===1))if(o!==c-1&&s===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("/")),o=c,s=0;continue}}else if(i.length>0){i="",l=0,o=c,s=0;continue}}n&&(i=i.length>0?i+"/..":"..",l=2)}else i.length>0?i+="/"+e.slice(o+1,c):i=e.slice(o+1,c),l=c-o-1;o=c,s=0}else f===46&&s>-1?s++:s=-1}return i}function ls(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const n6={cwd:r6};function r6(){return"/"}function Ph(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function i6(e){if(typeof e=="string")e=new URL(e);else if(!Ph(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 l6(e)}function l6(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 o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(n)}const eh=["history","path","basename","stem","extname","dirname"];class Ux{constructor(n){let i;n?Ph(n)?i={path:n}:typeof n=="string"||a6(n)?i={value:n}:i=n:i={},this.cwd="cwd"in i?"":n6.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let l=-1;for(;++l<eh.length;){const s=eh[l];s in i&&i[s]!==void 0&&i[s]!==null&&(this[s]=s==="history"?[...i[s]]:i[s])}let o;for(o in i)eh.includes(o)||(this[o]=i[o])}get basename(){return typeof this.path=="string"?yr.basename(this.path):void 0}set basename(n){nh(n,"basename"),th(n,"basename"),this.path=yr.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?yr.dirname(this.path):void 0}set dirname(n){$1(this.basename,"dirname"),this.path=yr.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?yr.extname(this.path):void 0}set extname(n){if(th(n,"extname"),$1(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=yr.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Ph(n)&&(n=i6(n)),nh(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?yr.basename(this.path,this.extname):void 0}set stem(n){nh(n,"stem"),th(n,"stem"),this.path=yr.join(this.dirname||"",n+(this.extname||""))}fail(n,i,l){const o=this.message(n,i,l);throw o.fatal=!0,o}info(n,i,l){const o=this.message(n,i,l);return o.fatal=void 0,o}message(n,i,l){const o=new rn(n,i,l);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function th(e,n){if(e&&e.includes(yr.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+yr.sep+"`")}function nh(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function $1(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function a6(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const o6=function(e){const l=this.constructor.prototype,o=l[e],s=function(){return o.apply(s,arguments)};return Object.setPrototypeOf(s,l),s},s6={}.hasOwnProperty;class Np extends o6{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=KN()}copy(){const n=new Np;let i=-1;for(;++i<this.attachers.length;){const l=this.attachers[i];n.use(...l)}return n.data(Wd(!0,{},this.namespace)),n}data(n,i){return typeof n=="string"?arguments.length===2?(lh("data",this.frozen),this.namespace[n]=i,this):s6.call(this.namespace,n)&&this.namespace[n]||void 0:n?(lh("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 o=i.call(n,...l);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const i=Cu(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),ih("process",this.compiler||this.Compiler),i?o(void 0,i):new Promise(o);function o(s,c){const f=Cu(n),h=l.parse(f);l.run(h,f,function(y,g,x){if(y||!g||!x)return d(y);const b=g,w=l.stringify(b,x);f6(w)?x.value=w:x.result=w,d(y,x)});function d(y,g){y||!g?c(y):s?s(g):i(void 0,g)}}}processSync(n){let i=!1,l;return this.freeze(),rh("processSync",this.parser||this.Parser),ih("processSync",this.compiler||this.Compiler),this.process(n,o),K1("processSync","process",i),l;function o(s,c){i=!0,I1(s),l=c}}run(n,i,l){Y1(n),this.freeze();const o=this.transformers;return!l&&typeof i=="function"&&(l=i,i=void 0),l?s(void 0,l):new Promise(s);function s(c,f){const h=Cu(i);o.run(n,h,d);function d(y,g,x){const b=g||n;y?f(y):c?c(b):l(void 0,b,x)}}}runSync(n,i){let l=!1,o;return this.run(n,i,s),K1("runSync","run",l),o;function s(c,f){I1(c),o=f,l=!0}}stringify(n,i){this.freeze();const l=Cu(i),o=this.compiler||this.Compiler;return ih("stringify",o),Y1(n),o(n,l)}use(n,...i){const l=this.attachers,o=this.namespace;if(lh("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 s(d){if(typeof d=="function")h(d,[]);else if(typeof d=="object")if(Array.isArray(d)){const[y,...g]=d;h(y,g)}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&&(o.settings=Wd(!0,o.settings,d.settings))}function f(d){let y=-1;if(d!=null)if(Array.isArray(d))for(;++y<d.length;){const g=d[y];s(g)}else throw new TypeError("Expected a list of plugins, not `"+d+"`")}function h(d,y){let g=-1,x=-1;for(;++g<l.length;)if(l[g][0]===d){x=g;break}if(x===-1)l.push([d,...y]);else if(y.length>0){let[b,...w]=y;const T=l[x][1];Qh(T)&&Qh(b)&&(b=Wd(!0,T,b)),l[x]=[d,b,...w]}}}}const u6=new Np().freeze();function rh(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function ih(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function lh(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 Y1(e){if(!Qh(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function K1(e,n,i){if(!i)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Cu(e){return c6(e)?e:new Ux(e)}function c6(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function f6(e){return typeof e=="string"||d6(e)}function d6(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const h6="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",G1=[],X1={allowDangerousHtml:!0},p6=/^(https?|ircs?|mailto|xmpp)$/i,m6=[{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 y6(e){const n=g6(e),i=v6(e);return b6(n.runSync(n.parse(i),i),e)}function g6(e){const n=e.rehypePlugins||G1,i=e.remarkPlugins||G1,l=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...X1}:X1;return u6().use(lN).use(i).use(VN,l).use(n)}function v6(e){const n=e.children||"",i=new Ux;return typeof n=="string"&&(i.value=n),i}function b6(e,n){const i=n.allowedElements,l=n.allowElement,o=n.components,s=n.disallowedElements,c=n.skipHtml,f=n.unwrapDisallowed,h=n.urlTransform||x6;for(const y of m6)Object.hasOwn(n,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+h6+y.id,void 0);return mp(e,d),hR(e,{Fragment:v.Fragment,components:o,ignoreInvalidStyle:!0,jsx:v.jsx,jsxs:v.jsxs,passKeys:!0,passNode:!0});function d(y,g,x){if(y.type==="raw"&&x&&typeof g=="number")return c?x.children.splice(g,1):x.children[g]={type:"text",value:y.value},g;if(y.type==="element"){let b;for(b in Zd)if(Object.hasOwn(Zd,b)&&Object.hasOwn(y.properties,b)){const w=y.properties[b],T=Zd[b];(T===null||T.includes(y.tagName))&&(y.properties[b]=h(String(w||""),b,y))}}if(y.type==="element"){let b=i?!i.includes(y.tagName):s?s.includes(y.tagName):!1;if(!b&&l&&typeof g=="number"&&(b=!l(y,g,x)),b&&x&&typeof g=="number")return f&&y.children?x.children.splice(g,1,...y.children):x.children.splice(g,1),g}}}function x6(e){const n=e.indexOf(":"),i=e.indexOf("?"),l=e.indexOf("#"),o=e.indexOf("/");return n===-1||o!==-1&&n>o||i!==-1&&n>i||l!==-1&&n>l||p6.test(e.slice(0,n))?e:""}const w6=({children:e,...n})=>v.jsx("code",{className:"bg-gray-100 text-gray-600 px-1.5 py-0.5 rounded text-sm font-mono",...n,children:e}),S6=e=>Array.isArray(e)&&typeof e[0]=="string"?e[0]:typeof e=="string"?e:"",C6=({getText:e})=>{const n=async()=>{await navigator.clipboard.writeText(e()),Zr.success("Copied!")};return v.jsx("button",{onClick:n,className:"text-xs text-white px-2 py-1 rounded hover:bg-gray-600 cursor-pointer",children:"📋"})},E6=({children:e,className:n,...i})=>{const l=(n==null?void 0:n.replace("language-",""))||"";return v.jsxs("div",{className:"mb-4 not-prose",children:[l&&v.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:[v.jsx("span",{children:l}),v.jsx(C6,{getText:()=>S6(e).trim()})]}),v.jsx("pre",{className:`bg-gray-900 text-gray-100 p-4 overflow-x-auto ${l?"rounded-b-md":"rounded-md"}`,...i,children:v.jsx("code",{className:"font-mono text-sm",children:e})})]})},k6={code:({className:e,children:n,...i})=>e?v.jsx(E6,{className:e,...i,children:n}):v.jsx(w6,{...i,children:n}),pre:({children:e})=>v.jsx(v.Fragment,{children:e})},Ju=({content:e})=>v.jsx("div",{className:"prose max-w-none",children:v.jsx(y6,{remarkPlugins:[BO],components:k6,children:e})}),T6=`# 🍜 DataRamen\r
261
+ \r
262
+ A cozy web GUI for [MySQL](https://www.mysql.com/) and [PostgreSQL](https://www.postgresql.org/), made for developers who like to move fast and stay focused. Connect, explore, and inspect your data effortlessly, no boilerplate, no drag.\r
263
+ \r
264
+ ### Prerequisites\r
265
+ \r
266
+ - Node.js: v22 or higher\r
267
+ - Download & install from the [Node.js website](https://nodejs.org/).\r
268
+ - Verify installation \`node --version\`\r
269
+ \r
270
+ ### Install\r
271
+ \r
272
+ DataRamen requires the companion [@dataramen/cli](https://www.npmjs.com/package/@dataramen/cli) to manage the local server instance.\r
273
+ Install the CLI globally using npm:\r
274
+ \r
275
+ \`\`\`bash\r
276
+ npm install -g @dataramen/cli\r
277
+ \`\`\`\r
278
+ \r
279
+ ### Starting the Server\r
280
+ \r
281
+ Once you have completed [Prerequisites](#prerequisites) and [Install](#install) steps, you can start the server using the following terminal command:\r
282
+ \r
283
+ \`\`\`bash\r
284
+ dataramen start\r
285
+ \`\`\`\r
286
+ `,A6=()=>v.jsx("div",{className:"card-white",children:v.jsx(Ju,{content:T6})}),Z1={active:!1,version:""};async function _6(){try{const{data:e}=await f4.get("/status",{timeout:500,validateStatus:()=>!0});return(e==null?void 0:e.data)||Z1}catch{return Z1}}function O6(){const e=Ot.getQueryState([Di]);(e==null?void 0:e.status)==="error"&&Ot.invalidateQueries({queryKey:[Di]})}function R6(){const e=Ot.getQueryState([Di]);(e==null?void 0:e.status)==="success"&&Ot.resetQueries({queryKey:[Di]})}const jp=()=>Kn({queryKey:["local-server-status"],queryFn:_6,onSuccess:({active:e})=>{e?O6():R6()},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}),N6=()=>{const{data:e}=Li(),n=hc(),{data:i}=jp(),{data:l}=g4({teamId:e==null?void 0:e.currentTeam.id}),o=!!l&&l.length>0,s=!!e,c=(i==null?void 0:i.active)===!1;return!e||!i?null:c?v.jsx("div",{className:"page-container h-screen max-h-screen overflow-y-auto bg-gray-50",children:v.jsx("div",{className:"page-content",children:v.jsx(A6,{})})}):v.jsx("div",{className:"page-container h-screen max-h-screen overflow-y-auto bg-gray-50",children:v.jsxs("div",{className:"page-content h-full",children:[s&&!o&&v.jsx(vr,{variant:"warning",className:"mb-2 font-semibold",children:"Connect at least one datasource to start using DataRamen"}),s&&v.jsx(Xk,{}),o&&v.jsx(Mk,{}),s&&n.length>0&&v.jsx(Rk,{})]})})},j6=()=>{const{data:e}=kb();return Kn([Sb],async()=>{const{data:n}=await vt.get("/teams");return n.data},{enabled:!!e})},D6=()=>Cr(async e=>{const{data:n}=await vt.post("/teams",e);return n.data},{onSuccess:e=>{Ot.setQueryData([Sb],n=>n?[...n,e]:[e]),Ot.invalidateQueries([Di])}}),M6="_container_1ia6w_2",z6={container:M6},J1=["```bash\ndataramen logs\n```","```bash\ndataramen stop\n```"],L6=()=>{const{data:e}=Li(),n=w4(),{close:i}=dp(),{data:l}=j6(),o=D6(),{data:s}=jp(),c=()=>{const h=prompt("Team name");h&&o.mutate({name:h})},f=h=>{n.mutate(h.currentTarget.value)};return v.jsxs("div",{className:Be("page-container",z6.container),children:[v.jsx(Gn,{onClick:i}),v.jsxs("div",{className:"form",children:[v.jsx("h2",{className:"text-xl font-semibold",children:"🪪 Team"}),v.jsx("p",{className:"text-sm",children:"You can configure multiple teams. Queries, data sources and workbench tabs are saved per team."}),v.jsxs("div",{className:"flex gap-1",children:[v.jsx("select",{className:"flex-1 input",disabled:n.isLoading,onChange:f,value:e==null?void 0:e.currentTeam.id,children:l==null?void 0:l.map(h=>v.jsx("option",{value:h.id,children:h.name},h.id))}),v.jsx("button",{className:"button tertiary",disabled:n.isLoading,onClick:c,children:"Create new team"})]}),v.jsx("h2",{className:"text-xl font-semibold mt-4",children:"🌐 API server"}),v.jsx("div",{className:"flex gap-1",children:v.jsxs("ul",{children:[v.jsxs("li",{children:["🔗 API URL: ","http://localhost:4466"]}),v.jsxs("li",{children:["🏷️ API version: ",s==null?void 0:s.version]}),v.jsx("li",{children:s!=null&&s.active?"✅ Connected":"❌ Not connected"})]})}),v.jsx("h2",{className:"text-xl font-semibold mt-4",children:"💻 CLI commands"}),v.jsxs("div",{children:[v.jsx(Ju,{content:J1[0]}),v.jsx(Ju,{content:J1[1]})]})]})]})},[U6,Dp]=Er(void 0),B6=()=>Dp(void 0);function fl(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 q6=e=>{var i;const n=((i=e.value)==null?void 0:i.map(l=>l.value).join(", "))||"";return`${e.column} ${e.operator} ${n}`},dl=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},H6="_container_uikfp_2",F6="_header_uikfp_2",Q6="_fields-container_uikfp_2",P6="_field-label_uikfp_2",I6="_actions_uikfp_2",Lo={container:H6,header:F6,fieldsContainer:Q6,fieldLabel:P6,actions:I6},V6=({searchAll:e,table:n,datasourceId:i,filters:l,joins:o,orderBy:s,groupBy:c,columns:f,page:h=0,size:d=20})=>Kn({queryKey:["explorer",i,n,h,d,l,o,s,c,f,e],queryFn:async()=>{const{data:y}=await vt.post("/runner/sql",{datasourceId:i,table:n,filters:l,joins:o,orderBy:s,page:h,size:d,columns:f,groupBy:c,searchAll:e});return y.data},retry:1,enabled:!!n&&!!i,keepPreviousData:!0,staleTime:0,cacheTime:0}),$6=(e,n,i)=>Kn({queryKey:["entity",e,n,i],queryFn:async()=>{const l=i?i.map(([s,c])=>({column:s,operator:"=",value:[{value:c}],connector:"AND"})):[],{data:o}=await vt.post("/runner/sql",{datasourceId:e,table:n,filters:l,size:1,page:0});return o.data},retry:1,enabled:!!n&&!!e&&!!i,staleTime:0,cacheTime:0}),Y6=()=>Cr({mutationFn:async e=>{const{data:n}=await vt.post("/runner/update",e);return n.data}}),K6=()=>Cr({mutationFn:async e=>{const{data:n}=await vt.post("/runner/insert",e);return n.data}}),Mp=e=>E.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]),G6=({data:e})=>{const[n,{change:i,touched:l}]=hp({}),{mutateAsync:o,error:s}=K6(),c=Mp(s),{data:f}=Aa(e.dataSourceId),[h,d]=E.useState(""),y=E.useMemo(()=>f==null?void 0:f.find(b=>b.tableName===e.table),[f,e.table]),g=E.useMemo(()=>{if(!y)return[];if(!h)return y.columns.map(w=>({...w,label:dl(w.name)}));const b=h.toLowerCase();return y.columns.filter(w=>w.name.toLowerCase().includes(b)).map(w=>({...w,label:dl(w.name)}))},[h,y]),x=()=>{const b=[];for(const w of l)b.push({value:n[w],column:w});o({datasourceId:e.dataSourceId,table:e.table,values:b}).then(B6)};return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:Lo.header,children:[v.jsxs("p",{className:"text-lg font-semibold",children:["Insert new row in ",v.jsx("span",{className:"underline",children:e.table})]}),c&&v.jsx(vr,{variant:"danger",children:v.jsx("p",{children:c})})]}),v.jsx("div",{className:"bg-gray-50 py-1 px-4 border-y border-gray-200",children:v.jsx("p",{className:"text-xs text-gray-800",children:"Tip: use = to write raw SQL. Ex: =NULL or =NOW()"})}),v.jsx("div",{className:Lo.container,children:v.jsx("div",{className:Lo.fieldsContainer,children:g.map(b=>v.jsxs("label",{className:Lo.fieldLabel,children:[v.jsxs("div",{className:"flex justify-between",children:[v.jsxs("p",{children:[b.isPrimary?"🔐":"🏷️"," ",b.label]}),v.jsxs("p",{className:"text-blue-800 text-sm",children:["[",b.name,": ",b.type,"]"]})]}),v.jsx("input",{className:"input w-full",value:fl(n[b.name]),onChange:i(b.name),placeholder:b.name})]},b.name))})}),v.jsxs("div",{className:Lo.actions,children:[v.jsxs("label",{children:[v.jsx("span",{className:"mr-2",children:"🔎"}),v.jsx("input",{className:"input bg-white!",value:h,onChange:b=>d(b.target.value),placeholder:"Filter columns"})]}),v.jsx("span",{className:"flex-1"}),v.jsx("button",{disabled:!l.length,className:"button primary",onClick:x,children:"Run insert"})]})]})},X6=()=>{const e=U6(),[n,i]=E.useState(void 0);E.useEffect(()=>{e&&i(e)},[e]);const l=()=>Dp(void 0);return v.jsxs(nn,{isVisible:e!=null,onClose:l,onClosed:()=>i(void 0),noPadding:!0,children:[v.jsx(Gn,{onClick:l}),n&&v.jsx(G6,{data:n})]})},[Z6,zp]=Er(void 0),J6=()=>zp(void 0),W6="_container_1nsnb_2",ej="_header_1nsnb_2",tj="_key_1nsnb_2",nj="_fields-container_1nsnb_2",rj="_field-label_1nsnb_2",ij="_actions_1nsnb_2",oa={container:W6,header:ej,key:tj,fieldsContainer:nj,fieldLabel:rj,actions:ij},lj=({data:e})=>{const[n,{change:i,set:l,reset:o,touched:s}]=hp({}),[c,f]=E.useState(""),{data:h,isLoading:d}=$6(e.dataSourceId,e.tableName,e.entityId),{mutateAsync:y,error:g}=Y6(),x=Mp(g),{data:b}=Aa(e.dataSourceId),w=E.useMemo(()=>b==null?void 0:b.find(N=>N.tableName===e.tableName),[e.tableName,b]),T=E.useMemo(()=>{if(!w)return[];if(!c)return w.columns.map(O=>({...O,label:dl(O.name)}));const N=c.toLowerCase();return w.columns.filter(O=>O.name.toLowerCase().includes(N)).map(O=>({...O,label:dl(O.name)}))},[c,w]);E.useEffect(()=>{const N=h==null?void 0:h.rows[0];if(o(),N&&(h!=null&&h.columns))for(let O=0;O<h.columns.length;O++){const z=h.columns[O];l(z.column,fl(N[O]))}},[h,l,o]);const _=()=>{const N=[];for(const O of s)N.push({value:n[O],column:O});y({datasourceId:e.dataSourceId,table:e.tableName,filters:e.entityId.map(O=>({value:[{value:O[1]}],column:O[0],connector:"AND",operator:"="})),values:N}).then(J6)},A=e.entityId.map(([N,O])=>`${N} = ${O}`).join(", ")||"";return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:oa.header,children:[v.jsxs("p",{className:"text-lg font-semibold",children:["Edit row in ",v.jsx("span",{className:"underline",children:e==null?void 0:e.tableName})]}),v.jsx("span",{className:oa.key,children:A}),x&&v.jsx(vr,{variant:"danger",children:v.jsx("p",{children:x})})]}),v.jsx("div",{className:"bg-gray-50 py-1 px-4 border-y border-gray-200",children:v.jsx("p",{className:"text-xs text-gray-800",children:"Tip: use = to write raw SQL. Ex: =NULL or =NOW()"})}),v.jsx("div",{className:oa.container,children:v.jsx("div",{className:oa.fieldsContainer,children:T.map(N=>v.jsxs("label",{className:oa.fieldLabel,children:[v.jsxs("div",{className:"flex justify-between",children:[v.jsxs("p",{children:[N.isPrimary?"🔐":"🏷️"," ",N.label]}),v.jsxs("p",{className:"text-blue-800 text-sm",children:["[",N.name,": ",N.type,"]"]})]}),v.jsx("input",{disabled:N.isPrimary||d,className:"input w-full",value:fl(n[N.name]),onChange:i(N.name),placeholder:N.name})]},N.name))})}),v.jsxs("div",{className:oa.actions,children:[v.jsxs("label",{children:[v.jsx("span",{className:"mr-2",children:"🔎"}),v.jsx("input",{className:"input bg-white!",value:c,onChange:N=>f(N.target.value),placeholder:"Filter columns"})]}),v.jsx("span",{className:"flex-1"}),v.jsx("button",{disabled:!s.length,className:"button primary",onClick:_,children:"Run update"})]})]})},aj=()=>{const e=Z6(),[n,i]=E.useState(void 0);E.useEffect(()=>{e&&i(e)},[e]);const l=()=>zp(void 0);return v.jsxs(nn,{isVisible:e!=null,onClose:l,onClosed:()=>i(void 0),noPadding:!0,children:[v.jsx(Gn,{onClick:l}),n&&v.jsx(lj,{data:n})]})},[oj,ah]=Er(void 0),sj=async e=>new Promise(n=>{ah({message:e,onCancel:()=>{n(!1),ah(void 0)},onConfirm:()=>{n(!0),ah(void 0)}})}),uj=({confirm:e})=>v.jsxs("div",{children:[v.jsx("p",{children:e.message}),v.jsxs("div",{className:"flex gap-2 justify-end mt-4",children:[v.jsx("button",{className:"button tertiary",onClick:e.onCancel,children:"Cancel"}),v.jsx("button",{className:"button primary",onClick:e.onConfirm,children:"Confirm"})]})]}),cj=()=>{const e=oj(),[n,i]=E.useState(void 0);return E.useEffect(()=>{e&&i(e)},[e]),v.jsx(nn,{isVisible:!!e,onClose:()=>e==null?void 0:e.onCancel(),onClosed:()=>i(void 0),children:n&&v.jsx(uj,{confirm:n})})},[fj,Uu]=Er(void 0),xl=async(e,n,i)=>new Promise(l=>{Uu({message:e,defaultValue:n,alert:i,onCancel:()=>{Uu(void 0),l(void 0)},onConfirm:o=>{Uu(void 0),l(o)}})}),dj="_root_xn0p0_1",hj={root:dj},pj=({data:e})=>{const[n,i]=E.useState("");E.useEffect(()=>{e.defaultValue&&i(e.defaultValue)},[e]);const l=s=>{i(s.target.value)},o=s=>{s.key==="Enter"&&(s.preventDefault(),e.onConfirm(n)),s.key==="Escape"&&(s.preventDefault(),e.onCancel())};return v.jsxs("div",{className:hj.root,children:[v.jsx("h2",{className:"text-xl font-semibold",children:e.message}),e.alert&&v.jsx(vr,{variant:e.alert.type,className:"mt-2",children:e.alert.message}),v.jsx("input",{autoFocus:!0,className:"w-full input my-2",value:n,onChange:l,onKeyDown:o}),v.jsxs("div",{className:"flex justify-end gap-2",children:[v.jsx("button",{className:"button tertiary",onClick:e.onCancel,children:"Cancel"}),v.jsx("button",{className:"button primary",onClick:()=>e.onConfirm(n),children:"Confirm"})]})]})},mj=()=>{const e=fj(),[n,i]=E.useState(void 0);return E.useEffect(()=>{e&&i(e)},[e]),v.jsx(nn,{isVisible:!!e,onClose:()=>Uu(void 0),onClosed:()=>i(void 0),children:n&&v.jsx(pj,{data:n})})},[yj,gj]=Er(void 0),Bx=e=>{gj(e)},vj="_textarea_1npse_2",bj={textarea:vj},xj=()=>{const e=yj(),n=()=>{e&&(navigator.clipboard.writeText(e.toString()),Zr.success("Copied!"))},i=()=>Bx(void 0);return v.jsxs(nn,{isVisible:!!e,onClose:i,backdropClose:!0,children:[v.jsx("textarea",{className:bj.textarea,readOnly:!0,defaultValue:e==null?void 0:e.toString()}),v.jsxs("div",{className:"mt-2 flex gap-1 justify-end",children:[v.jsx("button",{className:"button primary",onClick:n,children:"Copy"}),v.jsx("button",{className:"button tertiary",onClick:i,children:"Close"})]})]})},[wj,qx]=Er(!1),Sj="_root_sv9tj_1",Cj={root:Sj},W1="text-blue-500 underline hover:text-blue-700",Ej=()=>{const e=wj(),n=()=>qx(!1);return v.jsxs(nn,{isVisible:e,onClose:n,backdropClose:!0,children:[v.jsx(Gn,{onClick:n}),v.jsxs("div",{className:Cj.root,children:[v.jsx("h1",{className:"font-semibold text-xl",children:"Have questions?"}),v.jsx("p",{children:"You can reach me out via:"}),v.jsxs("ul",{className:"mt-2",children:[v.jsxs("li",{children:["💩 ",v.jsx("a",{className:W1,href:"https://x.com/9zemian5",target:"_blank",children:"X.com @9zemian5"})]}),v.jsxs("li",{children:["💌 ",v.jsx("a",{className:W1,href:"mailto:vigo@gmail.com",target:"_blank",children:"Email vigo@gmail.com"})]})]})]})]})},kj="_tabs_1umci_2",Tj="_tab_1umci_2",Aj="_active_1umci_2",_j="_close-button_1umci_2",Oj="_active-tab_1umci_2",Rj="_tooltip-label_1umci_2",Nj="_tooltip-info-entry_1umci_2",gr={tabs:kj,tab:Tj,active:Aj,closeButton:_j,activeTab:Oj,tooltipLabel:Rj,tooltipInfoEntry:Nj},jj="_table_zjw0v_2",Dj="_semi-transparent_zjw0v_2",Mj="_table-loading_zjw0v_2",zj="_table-empty_zjw0v_2",Lj="_table-row-cells_zjw0v_2",Uj="_header-cell_zjw0v_2",Bj="_header-actions_zjw0v_2",qj="_cell_zjw0v_2",Hj="_cell-actions_zjw0v_2",Fj="_table-config_zjw0v_2",Qj="_table-action_zjw0v_2",Pj="_blue_zjw0v_2",Ij="_red_zjw0v_2",Vj="_options-container_zjw0v_2",$j="_underlying-rows-btn_zjw0v_2",Yj="_option-item_zjw0v_2",Fe={table:jj,semiTransparent:Dj,tableLoading:Mj,tableEmpty:zj,tableRowCells:Lj,headerCell:Uj,headerActions:Bj,cell:qj,cellActions:Hj,tableConfig:Fj,tableAction:Qj,blue:Pj,red:Ij,optionsContainer:Vj,underlyingRowsBtn:$j,optionItem:Yj},ei=E.createContext({name:"No name",hooks:[],availableJoins:[],allColumns:[],dataSourceId:"",entities:[],getValue:()=>{},getColumnType:()=>{},getEntityKey:()=>[]}),Rt=E.createContext({state:ma({}),setState:()=>{}}),ti=E.createContext({}),Lp=[{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:"ILIKE",label:"case-insensitive contains"},{value:"NOT ILIKE",label:"case-insensitive 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"}],Qo=Lp.reduce((e,n)=>(e[n.value]=n.label,e),{}),ev=Lp.reduce((e,n)=>(e[n.label]=n.value,e),{}),Ra=e=>e.map(n=>({label:Qo[n],value:n})),Kj=Ra(["=","<>",">",">=","<","<=","IN","NOT IN","IS NULL","IS NOT NULL"]),Gj=Ra(["=","<>","LIKE","NOT LIKE","ILIKE","NOT ILIKE","IN","NOT IN","IS NULL","IS NOT NULL"]);Ra(["=","<>","IS NULL","IS NOT NULL"]);const Xj=Ra(["=","<>",">",">=","<","<=","IS NULL","IS NOT NULL"]);Ra(["IS NULL","IS NOT NULL"]);Ra(["IN","NOT IN"]);const Hx=e=>e!=="IS NULL"&&e!=="IS NOT NULL",Zj=(e,n)=>Hx(e)?e==="IN"||e==="NOT IN"?n.split(",").map(i=>({value:i.trim(),isColumn:!1})):[{value:n,isColumn:!1}]:[],Fx=["char","varchar","binary","varbinary","blob","text","enum","set","character","character varying","text","citext","uuid","xml","json","jsonb"],Jj=["integer","smallint","decimal","numeric","float","real","double precision","int","smallint","integer","bigint","decimal","numeric","real","double precision","serial","bigserial","money"],Wj=["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"],e5=e=>e.distinct===!0?`${e.fn} distinct ${e.value}`:`${e.fn} ${e.value}`,Qx=()=>{const[e,n]=E.useState();return E.useMemo(()=>({show:!!e,position:e,open:l=>{l.preventDefault(),n({x:l.clientX-1,y:l.clientY-1})},close:()=>{n(void 0)}}),[e])},t5=e=>{if(e==="ASC")return"DESC";if(e!=="DESC")return"ASC"},n5=()=>{const{state:e,setState:n}=E.useContext(Rt),i=E.useCallback(l=>{n(o=>{const s=o.orderBy[0];if(s&&s.column===l){const c=t5(s.direction);return c?{...o,orderBy:[{column:l,direction:c}]}:{...o,orderBy:[]}}return{...o,orderBy:[{column:l,direction:"ASC"}]}})},[n]);return{orderBy:e.orderBy,updateOrderBy:i}};function r5(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 Px=()=>{const{state:e,setState:n}=E.useContext(Rt),i=E.useCallback(o=>{n(s=>({...s,filters:[...s.filters,o]}))},[n]),l=E.useCallback(o=>{n(s=>({...s,filters:s.filters.filter(c=>!(o.column===c.column&&o.operator===c.operator&&r5(o.value,c.value)))}))},[n]);return{filters:e.filters,addFilter:i,removeFilter:l}},i5="_drop-container_14gb9_2",l5="_item_14gb9_2",tv={dropContainer:i5,item:l5},Ih=({dataSourceId:e,focusId:n,placeholder:i="Column",onChange:l,value:o,autoFocus:s,allowTables:c})=>{const{data:f}=Aa(e),h=E.useRef(null),d=E.useMemo(()=>{if(!f)return[];let A=f;return c&&(A=f.filter(N=>c.includes(N.tableName))),A.flatMap(N=>N.columns.map(O=>{const z=`${N.tableName}.${O.name}`;return{value:z,label:O.name,table:N.tableName,searchValue:z.toLowerCase()}}))},[f,c]),y=E.useMemo(()=>{const A=o.toLowerCase()||"",N=[];for(let O=0;O<d.length&&N.length<10;O++)d[O].searchValue.includes(A)&&N.push(d[O]);return N},[d,o]),[g,x]=E.useState(!1),[b,w]=E.useState(0),T=A=>{var N;if(A.key==="ArrowDown")A.preventDefault(),w(O=>(O+1)%y.length);else if(A.key==="ArrowUp")A.preventDefault(),w(O=>(O-1+y.length)%y.length);else if(A.key==="Enter"&&b>=0&&b<y.length){A.preventDefault();const O=y[b].value;x(!1);const z=d.findIndex(q=>q.value===O)>-1;l(((N=y[b])==null?void 0:N.value)||O,z,!0)}};E.useEffect(()=>{var N;const A=(N=h.current)==null?void 0:N.querySelector('[data-is-active="true"]');A&&A.scrollIntoView({behavior:"smooth",block:"nearest"})},[b]);const _=A=>{const N=A.currentTarget.value,O=d.findIndex(z=>z.value===N)>-1;l(N,O,!1)};return v.jsxs("div",{className:"relative",onFocus:()=>x(!0),onBlur:()=>x(!1),children:[v.jsx("input",{autoFocus:s,onKeyDown:T,value:o,onChange:_,className:Be("input w-full"),placeholder:i,"data-focus":n}),g&&y.length>0&&v.jsx("div",{className:tv.dropContainer,ref:h,tabIndex:-1,children:y.map((A,N)=>v.jsxs("div",{className:tv.item,"data-is-active":b===N,onMouseDownCapture:O=>{O.preventDefault(),x(!1),l(A.value,!0,!0)},children:[v.jsx("span",{className:"text-xs font-semibold truncate",children:A.table}),v.jsx("p",{className:"truncate text-sm",children:A.label})]},N))})]})},a5="_drop-container_asgkv_2",o5="_item_asgkv_2",nv={dropContainer:a5,item:o5};function s5(e){return Fx.includes(e)?Gj:Jj.includes(e)?Kj:Wj.includes(e)?Xj:Lp}const u5=({value:e,onChange:n,autoFocus:i,focusId:l,colType:o})=>{const s=E.useMemo(()=>{const x=e.toLowerCase()||"";return s5(o||"").filter(b=>b.label.includes(x))},[e,o]),c=E.useRef(null),[f,h]=E.useState(!1),[d,y]=E.useState(0),g=x=>{var b;x.key==="ArrowDown"?(x.preventDefault(),y(w=>(w+1)%s.length)):x.key==="ArrowUp"?(x.preventDefault(),y(w=>(w-1+s.length)%s.length)):x.key==="Enter"&&(d>=0&&d<s.length?(x.preventDefault(),h(!1),n(((b=s[d])==null?void 0:b.label)||"",!0)):n(e,!0))};return E.useEffect(()=>{var b;const x=(b=c.current)==null?void 0:b.querySelector('[data-is-active="true"]');x&&x.scrollIntoView({behavior:"smooth",block:"nearest"})},[d]),v.jsxs("div",{className:"relative",children:[v.jsx("input",{onKeyDown:g,value:e,onChange:x=>n(x.target.value,!1),className:Be("input w-full"),placeholder:"Operator",autoFocus:i,onFocus:()=>h(!0),onBlur:()=>h(!1),"data-focus":l}),f&&s.length>0&&v.jsx("ul",{className:nv.dropContainer,ref:c,tabIndex:-1,children:s.map((x,b)=>v.jsx("li",{className:nv.item,"data-is-active":d===b,onMouseDownCapture:w=>{w.preventDefault(),h(!1),n(x.label,!0)},children:x.label},b))})]})},c5="_form-container_1juc5_2",f5={formContainer:c5},d5=e=>e instanceof HTMLElement,h5=()=>{const e=E.useRef(null),n=E.useCallback((i,l=30)=>{setTimeout(()=>{var s;const o=(s=e.current)==null?void 0:s.querySelector(`[data-focus="${i}"]`);d5(o)&&o.focus()},l)},[]);return{containerRef:e,focus:n}},Ix=({onClose:e,selectColumn:n="",selectedOperation:i="",focusOn:l})=>{const{addFilter:o}=Px(),{state:s}=E.useContext(Rt),{data:c}=Aa(s.dataSourceId),f=E.useMemo(()=>[s.table,...s.joins.map(Y=>Y.table)],[s.table,s.joins]),[h,d]=E.useState({column:n,operator:i,value:"",isMatched:!1}),[y,g]=E.useState(!1),{containerRef:x,focus:b}=h5(),w=E.useMemo(()=>{if(!c)return"";let Y=null;for(const ee of c)for(const ie of ee.columns)ee.tableName+"."+ie.name===h.column&&(Y=ie);return Y!=null&&Y.type?Y.type:""},[h.column,c]);E.useEffect(()=>{l&&b(l)},[b,l]);const T=Y=>{const ee=Y||h,[ie]=ee.column.split("."),L=ev[ee.operator];if(!ee.column.includes(".")||!ie){Zr.error("Invalid column value: "+ee.column);return}if(!L){Zr.error("Invalid operator: "+ee.operator);return}o({connector:"AND",operator:L,column:ee.column,value:ee.isMatched?[{value:ee.value,isColumn:ee.isMatched}]:Zj(L,ee.value)}),e()},_=Y=>{Y.key==="Enter"&&T()},A=(Y,ee,ie)=>{d(L=>({...L,column:Y,operator:""})),ie&&b("operator")},N=(Y,ee)=>{d(ie=>({...ie,operator:Y})),g(!1),ee&&b("value")},O=(Y,ee,ie)=>{ie?T({...h,value:Y,isMatched:ee}):d(L=>({...L,value:Y,isMatched:ee}))},z=Y=>{g(Y.target.checked),Y.target.checked||d(ee=>({...ee,isMatched:!1})),b("value")},q=h.operator.includes("list"),M=h.operator.includes("equal");return v.jsxs(nn,{isVisible:!0,onClose:e,backdropClose:!0,children:[v.jsx(Gn,{onClick:e}),v.jsx("h2",{className:"text-lg font-semibold",children:"Filter"}),v.jsxs("div",{className:f5.formContainer,ref:x,children:[v.jsxs("label",{className:"z-3 w-full",children:[v.jsx("p",{className:"font-semibold text-xs",children:"Column"}),v.jsx(Ih,{dataSourceId:s.dataSourceId,onChange:A,value:h.column,allowTables:f,focusId:"column"})]}),v.jsxs("label",{className:"z-2 w-full",children:[v.jsxs("p",{className:"font-semibold text-xs",children:["Operator ",v.jsxs("span",{className:"text-sm text-blue-800",children:["[for ",w,"]"]})]}),v.jsx(u5,{onChange:N,focusId:"operator",colType:w,value:h.operator})]}),Hx(ev[h.operator])&&v.jsxs("label",{className:"z-1 w-full",children:[v.jsx("p",{className:"font-semibold text-xs",children:"Value"}),q||!y||!M?v.jsx("input",{className:"input w-full",placeholder:"Filter value",value:h.value,onKeyPress:_,onChange:Y=>O(Y.currentTarget.value,!1,!1),"data-focus":"value"}):v.jsx(Ih,{dataSourceId:s.dataSourceId,onChange:O,value:h.value,allowTables:f,focusId:"value",placeholder:"Insert value or column"})]}),M&&v.jsxs("label",{className:"w-full flex items-center gap-2",children:[v.jsx("input",{type:"checkbox",checked:y,onChange:z}),v.jsx("span",{children:"Value is another column"})]})]}),v.jsx("div",{className:"flex justify-end gap-2 items-center mt-2",children:v.jsx("button",{className:"button primary",onClick:()=>T(),children:"Apply filter"})})]})};function p5(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 oh(e,n,i){var s,c,f;const l=(c=(s=e==null?void 0:e.rows)==null?void 0:s[n])==null?void 0:c[i],o=(f=e==null?void 0:e.columns)==null?void 0:f[i];return{value:l,column:o}}const m5=()=>{const{data:e}=E.useContext(ti),{getColumnType:n}=E.useContext(ei),{setState:i}=E.useContext(Rt),l=f=>{const{value:h,column:d}=oh(e,f.row,f.col);if(d){const y=fl(h,n(d.full));navigator.clipboard.writeText(y),Zr.success("Copied!")}},o=f=>{const{value:h,column:d}=oh(e,f.row,f.col);if(d){const y=fl(h,n(d.full));Bx(y)}},s=f=>{const{value:h,column:d}=oh(e,f.row,f.col);if(d){let y;if(h==null)y={column:d.full,connector:"AND",operator:"IS NULL"};else{const g=fl(h,n(d.full));y={column:d.full,connector:"AND",operator:"=",value:[{value:g}]}}i(g=>({...g,filters:[...g.filters,y]}))}};return f=>{const h=p5(f);h&&(h.action==="copy"?l(h):h.action==="show"?o(h):h.action==="filter"&&s(h))}},[y5,Up]=Er(void 0),rv=(e,n)=>{Up({label:e,type:"explorer",id:Date.now().toString(36),options:ma(n)})},Vh=()=>Up(void 0),g5="_container_15v2w_2",v5="_content_15v2w_2",b5="_backdrop_15v2w_2",sh={container:g5,content:v5,backdrop:b5},Vx=({children:e,handler:n})=>{const i=E.useRef(n.close);i.current=n.close;const l=E.useMemo(()=>{if(!n.position)return;const o={};if(typeof window<"u"){const s=n.position.y>window.innerHeight/2,c=n.position.x>window.innerWidth/2;s?o.bottom=window.innerHeight-n.position.y:o.top=n.position.y,c?o.right=window.innerWidth-n.position.x:o.left=n.position.x}return o},[n]);return E.useEffect(()=>{const o=s=>{s.code==="Escape"&&i.current()};return window.addEventListener("keyup",o),()=>{window.removeEventListener("keyup",o)}},[]),l?v.jsxs("div",{className:sh.container,children:[v.jsx("div",{className:sh.backdrop,onClick:o=>{o.stopPropagation(),o.preventDefault(),n.close()}}),v.jsx("div",{className:sh.content,style:l,children:e})]}):null},x5="_table_5qq2j_2",w5="_root_5qq2j_2",S5="_content_5qq2j_2",C5="_sub_5qq2j_2",Eu={table:x5,root:w5,content:S5,sub:C5},$x=({hook:e,onClick:n})=>v.jsxs("button",{className:Eu.root,onClick:n,title:e.where,children:[v.jsx("span",{children:"📄"}),v.jsxs("div",{className:Eu.content,children:[v.jsxs("p",{className:Eu.table,children:[" ",e.on.toTable]}),v.jsxs("span",{className:Eu.sub,children:[e.on.toColumn," = ",e.on.fromTable,".",e.on.fromColumn]})]})]},e.where),Yx=(e,n)=>e!=null&&e>n,E5=({handler:e,rowIndex:n})=>{const{hooks:i,entities:l,dataSourceId:o,getEntityKey:s,getValue:c}=E.useContext(ei),{state:f}=E.useContext(Rt),{data:h}=E.useContext(ti),[d,y]=E.useState(""),[g,x]=E.useState(""),b=E.useMemo(()=>h==null?void 0:h.rows[n],[h,n]),w=()=>{b&&(rv("⬇️ "+f.table,{joins:f.joins,table:f.table,dataSourceId:f.dataSourceId,filters:[...f.filters,...f.groupBy.map(z=>({connector:"AND",column:z.value,operator:"=",value:[{value:c(b,z.value.split(".")[1],z.value.split(".")[0])}]}))]}),e.close())},T=z=>{if(!b)return;const q=c(b,z.on.fromColumn,z.on.fromTable);rv(`${z.on.toColumn} equals ${q}`,{table:z.on.toTable,dataSourceId:o,filters:[{column:z.on.toTable+"."+z.on.toColumn,operator:q==null?"IS NULL":"=",connector:"AND",value:q!=null?[{value:q,isColumn:!1}]:void 0}]}),e.close()},_=z=>{if(!b)return;const q=s(z,b);e.close(),zp({tableName:z,dataSourceId:o,entityId:q}),e.close()},A=E.useMemo(()=>d?l.filter(z=>z.includes(d)):l,[l,d]),N=E.useMemo(()=>{if(!h)return[];const z=g.toLowerCase();return i.filter(q=>h.columns.some(Y=>Y.column===q.on.fromColumn&&Y.table===q.on.fromTable)?q.on.toTable.toLowerCase().includes(z):!1)},[g,i,h]),O=f.groupBy.length>0;return v.jsxs(Vx,{handler:e,children:[l.length>0&&v.jsxs("div",{className:Fe.optionsContainer,children:[v.jsxs("label",{className:"flex justify-between items-center gap-2 sticky left-0 top-0 input",children:[v.jsx("span",{className:"font-semibold",children:"📝"}),v.jsx("input",{className:"flex-1 outline-0",placeholder:"Edit/View row",value:d,onChange:z=>y(z.target.value)})]}),v.jsx("div",{className:"flex flex-col",children:Yx(A.length,0)?A.map(z=>v.jsx("button",{className:Be(Fe.optionItem,"font-semibold"),onClick:()=>_(z),children:v.jsxs("span",{children:["📄 ",z]})},z)):v.jsx("p",{className:"text-center text-gray-800",children:"Empty"})})]}),i.length>0&&v.jsxs("div",{className:Fe.optionsContainer,children:[v.jsxs("label",{className:"flex justify-between items-center gap-2 sticky left-0 top-0 p-1 input",children:[v.jsx("span",{className:"font-semibold",children:"↗️"}),v.jsx("input",{className:"flex-1 outline-0",placeholder:"Connected tables",value:g,onChange:z=>x(z.target.value)})]}),v.jsx("div",{className:"flex flex-col",children:N.length>0?N.map(z=>v.jsx($x,{hook:z,onClick:()=>T(z)},z.where)):v.jsx("p",{className:"text-center text-gray-800",children:"Empty"})})]}),O&&v.jsx("button",{onClick:w,className:Fe.underlyingRowsBtn,children:"🎯 Underlying rows"})]})},k5={ASC:"⬆️",DESC:"⬇️"};function T5(e,n){const i=n(e.full);return i&&Fx.includes(i)?Qo.LIKE:Qo["="]}const A5=()=>{const{data:e}=E.useContext(ti),{getColumnType:n}=E.useContext(ei),{orderBy:i,updateOrderBy:l}=n5(),o=(e==null?void 0:e.columns)||[],s=i[0],[c,f]=E.useState();return v.jsxs("thead",{children:[v.jsx("tr",{children:o.map(h=>v.jsxs("td",{className:Fe.headerCell,children:[v.jsxs("div",{className:"overflow-hidden",children:[v.jsx("p",{className:"text-xs truncate",children:h.table||"-"}),v.jsx("p",{className:"text-sm font-bold truncate",children:h.alias})]}),v.jsxs("div",{className:Fe.headerActions,children:[h.table&&v.jsx("button",{onClick:()=>{f(h)},children:"🔎"}),v.jsx("button",{onClick:()=>l(h.full),children:(s==null?void 0:s.column)===h.full?k5[s.direction]:"↕️"})]})]},h.full))}),c&&v.jsx(Ix,{selectColumn:c.full,selectedOperation:T5(c,n),focusOn:"value",onClose:()=>f(void 0)})]})};function _5({value:e,row:n,col:i}){if(e==="")return v.jsx("span",{className:"pointer-events-none text-black/30 truncate",children:"<EMPTY STRING>"});if(e==null)return v.jsx("span",{className:"pointer-events-none text-black/30",children:"<NULL>"});const l=fl(e);return v.jsxs(v.Fragment,{children:[v.jsx("span",{"data-row":n,className:"truncate block pointer-events-none",children:l}),v.jsxs("div",{className:Fe.cellActions,children:[v.jsx("button",{"data-copy-col":i,"data-copy-row":n,children:"📋"}),v.jsx("button",{"data-show-col":i,"data-show-row":n,children:"👀"}),v.jsx("button",{"data-filter-col":i,"data-filter-row":n,children:"🔎"})]})]})}const O5=E.memo(({row:e,isLastRow:n,index:i})=>v.jsx("tr",{className:Be(Fe.tableRowCells,n&&"rounded-b-lg"),children:e.map((l,o)=>v.jsx("td",{className:Fe.cell,"data-row":i,children:v.jsx(_5,{value:l,col:o,row:i})},o))})),R5=()=>{var y,g;const{data:e,error:n,isLoading:i,isFetching:l}=E.useContext(ti),o=Mp(n),s=m5(),c=Qx(),[f,h]=E.useState(void 0),d=x=>{var T;const b=(T=x.target)==null?void 0:T.dataset,w=b==null?void 0:b.row;w!=null&&(h(parseInt(w)),c.open(x))};return v.jsxs(v.Fragment,{children:[f!=null&&c.show&&v.jsx(E5,{handler:c,rowIndex:f}),o&&v.jsx(vr,{className:"my-4",variant:"danger",children:o}),i&&v.jsx("div",{className:Fe.tableLoading,children:"Loading data"}),e&&v.jsxs("table",{className:Be(Fe.table,l&&Fe.semiTransparent),onContextMenu:d,onClick:s,children:[v.jsx(A5,{}),v.jsxs("tbody",{children:[((y=e.rows)==null?void 0:y.length)<1&&v.jsx("tr",{className:Fe.tableEmpty,children:v.jsx("td",{colSpan:e.columns.length,children:"No data"})}),(g=e.rows)==null?void 0:g.map((x,b)=>v.jsx(O5,{index:b,row:x,isLastRow:b===e.rows.length-1},b))]})]})]})},N5="_root_nuz1p_2",j5="_root-show_nuz1p_2",D5="_content_nuz1p_2",M5="_card_nuz1p_2",z5="_cards-list_nuz1p_2",L5="_sub-text_nuz1p_2",U5="_text_nuz1p_2",B5="_section-title_nuz1p_2",q5="_sidebar-action_nuz1p_2",H5="_join-modal_nuz1p_2",F5="_section-container_nuz1p_2",Q5="_close-button_nuz1p_2",P5="_expand_nuz1p_2",I5="_section-open-btn_nuz1p_2",V5="_show_nuz1p_2",ve={root:N5,rootShow:j5,content:D5,card:M5,cardsList:z5,subText:L5,text:U5,sectionTitle:B5,sidebarAction:q5,joinModal:H5,sectionContainer:F5,closeButton:Q5,expand:P5,sectionOpenBtn:I5,show:V5},$5="_container_1mp0o_2",Y5="_column-label_1mp0o_2",K5="_not-active_1mp0o_2",ku={container:$5,columnLabel:Y5,notActive:K5};function G5(e){return e.reduce((n,i)=>(n[i]=!0,n),{})}function X5(e){if(!e)return[];const n={};return e.forEach(i=>{n[i.table]?n[i.table].push({value:i.full,label:dl(i.column),type:i.type}):n[i.table]=[{value:i.full,label:dl(i.column),type:i.type}]}),Object.entries(n).reduce((i,[l,o])=>(i.push({name:dl(l),columns:o}),i),[])}function Z5(e,n){const i=n.toLowerCase();return e.map(l=>{const o=l.columns.filter(s=>s.label.toLowerCase().includes(i)||s.value.toLowerCase().includes(i));return{...l,columns:o}}).filter(l=>l.columns.length>0)}const Kx=({onCancel:e,mode:n})=>{const{allColumns:i}=E.useContext(ei),{state:l,setState:o}=E.useContext(Rt),[s,c]=E.useState(()=>G5(l[n].map(T=>T.value))),[f,h]=E.useState(""),d=E.useMemo(()=>X5(i),[i]),y=E.useMemo(()=>f?Z5(d,f):d,[f,d]),g=T=>{c(_=>({..._,[T.target.name]:T.target.checked}))},x=T=>{const _=T.target.checked;c(A=>{for(const N of i)A[N.full]=_;return{...A}})},b=()=>{const T=[];for(const _ of i)s[_.full]&&T.push({value:_.full});o(_=>({..._,[n]:T})),e()},w=E.useMemo(()=>{for(const T of i)if(!s[T.full])return!1;return!0},[s,i]);return v.jsxs(nn,{isVisible:!0,onClose:e,children:[v.jsx(Gn,{onClick:e}),v.jsxs("div",{className:ku.container,children:[v.jsx("h2",{className:"text-lg font-semibold",children:n==="groupBy"?"Group by":"Show columns"}),v.jsx("input",{autoFocus:!0,className:"input my-2",placeholder:"Filter",value:f,onChange:T=>h(T.target.value)}),v.jsx("div",{className:"overflow-y-auto",children:y.map(T=>v.jsxs("div",{className:"mt-2",children:[v.jsxs("p",{className:"font-semibold sticky top-0 bg-white p-1 z-1",children:["📄 ",T.name]}),T.columns.map(_=>v.jsxs("label",{className:Be(ku.columnLabel,s[_.value]?ku.active:ku.notActive),children:[v.jsx("input",{type:"checkbox",checked:s[_.value],name:_.value,onChange:g}),v.jsxs("p",{className:"flex justify-between w-full",children:[v.jsx("span",{"data-tooltip-content":_.value,"data-tooltip-id":"default",children:_.label}),v.jsx("span",{className:"text-blue-600",children:_.type})]})]},_.value))]},T.name))}),v.jsxs("div",{className:"flex justify-end gap-2 mt-2",children:[v.jsxs("label",{className:"button tertiary flex gap-2 items-center",children:[v.jsx("input",{type:"checkbox",checked:w,onChange:x}),v.jsx("span",{children:"Select all"})]}),v.jsx("span",{className:"flex-1"}),v.jsx("button",{className:"button tertiary",onClick:e,children:"Cancel"}),v.jsx("button",{className:"button primary",onClick:b,children:"Apply"})]})]})]})},J5="_options-container_pa8gh_2",W5={optionsContainer:J5},uh="count all",eD=({onClose:e})=>{const{dataSourceId:n}=E.useContext(ei),{setState:i}=E.useContext(Rt),{data:l}=E.useContext(ti),[o,s]=E.useState({fn:"",col:""}),c=g=>s({...o,fn:g.currentTarget.value}),f=g=>s({...o,col:g}),h=()=>{const g=o.fn===uh?{value:"*",fn:"count"}:{fn:o.fn,value:o.col,distinct:o.fn==="count"};i(x=>({...x,aggregations:[...x.aggregations,g]})),e()},d=o.fn===uh,y=d?!1:!o.col||!o.fn;return v.jsxs(nn,{isVisible:!0,onClose:e,backdropClose:!0,children:[v.jsx(Gn,{onClick:e}),v.jsxs("div",{children:[v.jsx("h2",{className:"text-lg font-semibold",children:"Aggregate"}),v.jsxs("div",{className:W5.optionsContainer,children:[v.jsxs("label",{className:Be(d&&"col-span-2"),children:[v.jsx("p",{className:"font-semibold text-xs",children:"Function"}),v.jsxs("select",{className:"input w-full",value:o.fn,onChange:c,autoFocus:!0,children:[v.jsx("option",{value:"",disabled:!0,children:"Select function"}),v.jsx("option",{value:uh,children:"Count all rows"}),v.jsx("option",{value:"count",children:"Count"}),v.jsx("option",{value:"sum",children:"Sum"}),v.jsx("option",{value:"max",children:"Max"}),v.jsx("option",{value:"min",children:"Min"}),v.jsx("option",{value:"avg",children:"Avg"})]})]}),!d&&v.jsxs("label",{children:[v.jsx("p",{className:"font-semibold text-xs",children:"Column"}),v.jsx(Ih,{dataSourceId:n,allowTables:(l==null?void 0:l.tables)||[],onChange:f,value:o.col})]}),v.jsx("button",{className:"button primary",disabled:y,onClick:h,children:"Add"})]})]})]})},tD=(e,n)=>e.type!==n.type||e.on!==n.on||e.table!==n.table,nD=(e,n)=>e.type===n.type&&e.on===n.on&&e.table===n.table,rD=()=>{const{state:e,setState:n}=E.useContext(Rt),i=E.useCallback(l=>{n(o=>{const s=o.joins;if(s.some(f=>nD(f,l))){const f=l.table+".";return{...o,joins:s.filter(h=>tD(h,l)),columns:o.columns.filter(h=>!h.value.startsWith(f)),groupBy:o.groupBy.filter(h=>!h.value.startsWith(f)),orderBy:o.orderBy.filter(h=>!h.column.startsWith(f)),aggregations:o.aggregations.filter(h=>!h.value.startsWith(f)),filters:o.filters.filter(h=>!h.column.startsWith(f))}}return{...o,joins:[...s,l]}})},[n]);return{joins:e.joins,toggle:i}},Gx=()=>Cr({mutationFn:async e=>{const{data:n}=await vt.post("/queries",e);return n.data},onSuccess:()=>{Ot.invalidateQueries(["queries"]),ts(),dt.event("Query created")}}),iD=()=>Cr({mutationFn:async({id:e,payload:n})=>{const{data:i}=await vt.patch("/queries/"+e,n);return i.data},onSuccess:e=>{Ot.invalidateQueries(["query",e.id]),ts(),h4(),e.isTrash?dt.event("Query trashed"):dt.event("Query updated")}});function Xx(e,n){const i={};return Object.entries(e).forEach(([l,o])=>{n.includes(l)||(i[l]=o)}),i}const Zx=e=>E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"ionicon",viewBox:"0 0 512 512",...e},E.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:48,d:"M184 112l144 144-144 144"})),fa=new Map,lD=e=>{var l,o,s;const n=(o=(l=e.target)==null?void 0:l.tagName)==null?void 0:o.toLowerCase();if(["input","textarea","select"].includes(n)||(s=e.target)!=null&&s.isContentEditable)return;const i=fa.get(e.key.toLowerCase());i&&i.length>0&&i[i.length-1].callback()},aD=(e,n,i="")=>{const l=e.toLowerCase(),o=fa.get(e);return o?fa.set(e,[...o,{callback:n,label:i}]):fa.set(l,[{callback:n,label:i}]),()=>{const s=e.toLowerCase(),c=fa.get(s);c&&fa.set(s,c.filter(f=>f.callback!==n))}};window.addEventListener("keyup",lD);function br(e,n,i){const l=E.useRef({callback:n,label:i});l.current.callback=n,E.useEffect(()=>aD(e,()=>{l.current.callback()},l.current.label),[e])}const oD=()=>{const e=fp("Hotkey"),n=zi(),i=vn(),{data:l}=Li();br("n",()=>{l&&e()},"📖 New query"),br("w",()=>{if(!l)return;mc.get().length<1?e():i.pathname!==_t.workbench.path&&n(_t.workbench.path)},"🛠️ Open Workbench"),br("h",()=>{i.pathname!==_t.home.path&&n(_t.home.path)},"🍜 Go home")},sD=()=>{const[e,n]=E.useState(!0);return br("o",()=>{n(i=>!i)}),v.jsxs("div",{className:Be(ve.root,e&&ve.rootShow),children:[v.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Customize query [Hotkey O]",className:ve.expand,onClick:()=>n(!e),children:"⚙️"}),v.jsxs("div",{className:ve.content,children:[v.jsx(cD,{}),v.jsx(uD,{}),v.jsx(gD,{}),v.jsx(yD,{}),v.jsx(mD,{}),v.jsx(dD,{}),v.jsx(hD,{}),v.jsx(fD,{})]})]})};function as({onShow:e,show:n,title:i,items:l}){return v.jsxs("div",{className:"flex justify-between items-center",children:[v.jsx("p",{className:ve.sectionTitle,children:i}),l>0&&v.jsxs("button",{className:Be(ve.sectionOpenBtn,n&&ve.show),onClick:e,children:[v.jsx("span",{children:l}),v.jsx(Zx,{width:16,height:16})]})]})}function uD(){const{state:e}=E.useContext(Rt),{name:n}=E.useContext(ei),{data:i}=E.useContext(ti),l=Gx(),o=()=>{i!=null&&i.query&&(navigator.clipboard.writeText(i==null?void 0:i.query),Zr.success("Query copied to clipboard"))},s=async()=>{const c=Xx(e,["size","page"]),f=await xl("Query name",n);f&&l.mutate({name:f,dataSourceId:e.dataSourceId,opts:c})};return v.jsxs("div",{className:"mb-4 flex justify-end gap-2",children:[v.jsxs("button",{className:ve.sidebarAction,onClick:o,children:[v.jsx("span",{children:"🖋️"}),v.jsx("span",{children:"Copy SQL"})]}),v.jsxs("button",{className:ve.sidebarAction,onClick:s,children:[v.jsx("span",{children:"💾"}),v.jsx("span",{children:"Save"})]})]})}function cD(){const{state:e}=E.useContext(Rt),{data:n}=Cb(e.dataSourceId);return v.jsxs("div",{className:ve.sectionContainer,children:[v.jsx("div",{className:ve.card,children:v.jsxs("div",{children:[v.jsx("p",{className:ve.subText,children:"📄 Table"}),v.jsx("p",{className:Be(ve.text,"text-blue-600"),children:e.table})]})}),v.jsx("div",{className:Be(ve.card,"mt-2"),children:v.jsxs("div",{children:[v.jsx("p",{className:ve.subText,children:"📦 Data source"}),v.jsx("p",{className:Be(ve.text,"text-blue-600"),children:n==null?void 0:n.name})]})})]})}function fD(){const{state:e,setState:n}=E.useContext(Rt),[i,l]=E.useState(!1),[o,s]=E.useState(!0),c=f=>{n(h=>({...h,groupBy:h.groupBy.filter(d=>d.value!==f)}))};return br("g",()=>{l(f=>!f)},"Group by"),v.jsxs("div",{className:ve.sectionContainer,children:[v.jsx(as,{title:"📚 Group by",show:o,onShow:()=>s(!o),items:e.groupBy.length}),o&&e.groupBy.length>0&&v.jsx("div",{className:ve.cardsList,children:e.groupBy.map(f=>v.jsxs("div",{className:ve.card,children:[v.jsx("span",{className:ve.text,children:f.value}),v.jsx("button",{className:ve.closeButton,onClick:()=>c(f.value),children:v.jsx(Bi,{width:20,height:20})})]}))}),v.jsxs("button",{className:ve.sidebarAction,onClick:()=>l(!0),children:[v.jsx("span",{className:"hotkey",children:"G"}),v.jsx("span",{children:"Add group by"})]}),i&&v.jsx(Kx,{mode:"groupBy",onCancel:()=>l(!1)})]})}function dD(){const{state:e,setState:n}=E.useContext(Rt),[i,l]=E.useState(!1),[o,s]=E.useState(!1),c=h=>{n(d=>({...d,columns:d.columns.filter(y=>y.value!==h)}))},f=e.aggregations.length>0||e.groupBy.length>0;return br("c",()=>{l(h=>!h)},"Show/hide columns"),v.jsxs("div",{className:ve.sectionContainer,children:[v.jsx(as,{title:"👀 Columns",show:o,onShow:()=>s(!o),items:e.columns.length}),f&&v.jsx(vr,{variant:"warning",className:"border border-yellow-800 my-2",children:v.jsx("span",{className:ve.text,children:"Columns are ignored when there is at least one aggregation or group by"})}),!f&&o&&e.columns.length>0&&v.jsx("div",{className:ve.cardsList,children:e.columns.map(h=>v.jsxs("div",{className:ve.card,children:[v.jsx("span",{className:ve.text,children:h.value}),v.jsx("button",{className:ve.closeButton,onClick:()=>c(h.value),children:v.jsx(Bi,{width:20,height:20})})]}))}),!f&&v.jsxs("button",{className:ve.sidebarAction,onClick:()=>l(!0),children:[v.jsx("span",{className:"hotkey",children:"C"}),v.jsx("span",{children:"Show/Hide columns"})]}),i&&v.jsx(Kx,{mode:"columns",onCancel:()=>l(!1)})]})}function hD(){const{state:e,setState:n}=E.useContext(Rt),[i,l]=E.useState(!1),[o,s]=E.useState(!0),c=f=>{const h=e5(f);n(d=>({...d,aggregations:d.aggregations.filter(y=>y.fn!==f.fn||y.value!==f.value),orderBy:d.orderBy.filter(y=>y.column!==h)}))};return br("a",()=>{l(f=>!f)},"Aggregate data"),v.jsxs("div",{className:ve.sectionContainer,children:[v.jsx(as,{title:"🔢 Aggregations",show:o,onShow:()=>s(!o),items:e.aggregations.length}),o&&e.aggregations.length>0&&v.jsx("div",{className:ve.cardsList,children:e.aggregations.map(f=>v.jsxs("div",{className:ve.card,children:[v.jsxs("span",{className:ve.text,children:[f.fn," ",f.value]}),v.jsx("button",{className:ve.closeButton,onClick:()=>c(f),children:v.jsx(Bi,{width:20,height:20})})]}))}),v.jsxs("button",{className:ve.sidebarAction,onClick:()=>l(!0),children:[v.jsx("span",{className:"hotkey",children:"A"}),v.jsx("span",{children:"Aggregate data"})]}),i&&v.jsx(eD,{onClose:()=>l(!1)})]})}const pD=e=>(e==null?void 0:e.map(n=>n.value).join(", "))||"";function mD(){const{state:e}=E.useContext(Rt),{removeFilter:n}=Px(),[i,l]=E.useState(!1),[o,s]=E.useState(!0);return br("f",()=>{l(c=>!c)},"Add new filter"),v.jsxs("div",{className:ve.sectionContainer,children:[v.jsx(as,{title:"🎚️ Filters",show:o,onShow:()=>s(!o),items:e.filters.length}),o&&e.filters.length>0&&v.jsx("div",{className:ve.cardsList,children:e.filters.map((c,f)=>v.jsxs("div",{className:ve.card,children:[v.jsxs("div",{className:"overflow-hidden",children:[v.jsx("p",{className:Be(ve.subText,"truncate"),children:c.column}),v.jsxs("p",{className:Be(ve.text,"truncate"),children:[Qo[c.operator]," ",pD(c.value)]})]}),v.jsx("button",{className:ve.closeButton,onClick:()=>n(c),children:v.jsx(Bi,{width:20,height:20})})]},f))}),v.jsxs("button",{className:ve.sidebarAction,onClick:()=>l(!0),children:[v.jsx("span",{className:"hotkey",children:"F"}),v.jsx("span",{children:"Add filter"})]}),i&&v.jsx(Ix,{onClose:()=>l(!1),focusOn:"column"})]})}function yD(){const{toggle:e}=rD(),{availableJoins:n}=E.useContext(ei),{state:i}=E.useContext(Rt),[l,o]=E.useState(""),[s,c]=E.useState(!0),[f,h]=E.useState(!1),d=E.useMemo(()=>{const g=l.toLowerCase();return n.filter(x=>x.on.toTable.toLowerCase().includes(g))},[n,l]),y=()=>{h(!1),o("")};return br("j",()=>{n.length>0?h(g=>!g):Zr.error("No available tables to join")},"Add new join"),v.jsxs("div",{className:ve.sectionContainer,children:[v.jsx(as,{title:"📄 Joins",show:s,onShow:()=>c(!s),items:i.joins.length}),s&&i.joins.length>0&&v.jsx("div",{className:ve.cardsList,children:i.joins.map((g,x)=>v.jsxs("div",{className:ve.card,children:[v.jsxs("div",{className:"overflow-hidden",children:[v.jsxs("p",{className:Be(ve.subText,"truncate"),children:["on ",g.on]}),v.jsx("p",{className:ve.text,children:g.table})]}),x===i.joins.length-1&&v.jsx("button",{className:ve.closeButton,onClick:()=>e(g),children:v.jsx(Bi,{width:20,height:20})})]},g.table+g.on))}),n.length>0&&v.jsxs("button",{onClick:()=>h(!0),className:ve.sidebarAction,children:[v.jsx("span",{className:"hotkey",children:"J"}),v.jsx("span",{children:"Add table"})]}),v.jsxs(nn,{isVisible:f,onClose:y,children:[v.jsx(Gn,{onClick:y}),v.jsxs("div",{className:ve.joinModal,children:[v.jsx("h2",{className:"text-lg font-semibold mb-4",children:"Join table"}),v.jsx("input",{className:"input w-full",placeholder:"Filter",autoFocus:!0,onChange:g=>o(g.target.value),value:l}),v.jsx("div",{className:"flex flex-col mt-2",children:d.map(g=>v.jsx($x,{hook:g,onClick:()=>{e({table:g.on.toTable,type:"LEFT",on:g.where}),h(!1)}},g.where))})]})]})]})}function gD(){const{state:e,setState:n}=E.useContext(Rt);if(!e.orderBy.length)return null;const i=l=>{n(o=>({...o,orderBy:o.orderBy.filter(s=>s.column!==l.column&&s.direction!==l.direction)}))};return v.jsxs("div",{className:ve.sectionContainer,children:[v.jsx("p",{className:ve.sectionTitle,children:"Order by"}),v.jsx("div",{className:ve.cardsList,children:e.orderBy.map((l,o)=>v.jsxs("div",{className:ve.card,children:[v.jsxs("div",{className:"overflow-hidden",children:[v.jsx("p",{className:Be(ve.subText,"truncate"),children:l.direction}),v.jsx("p",{className:ve.text,children:l.column})]}),v.jsx("button",{className:ve.closeButton,onClick:()=>i(l),children:v.jsx(Bi,{width:20,height:20})})]},o))})]})}const Jx=()=>{const{state:e,setState:n}=E.useContext(Rt),i=E.useCallback(o=>{n(s=>({...s,page:o}))},[n]),l=E.useCallback(o=>{n(s=>({...s,size:o}))},[n]);return{page:e.page,size:e.size,setSize:l,setPage:i}};function vD(){return v.jsxs("div",{className:"py-2 flex justify-center gap-2 sticky top-0 left-0",children:[v.jsx(bD,{}),v.jsx(xD,{}),v.jsx(wD,{}),v.jsx(SD,{})]})}function bD(){const{dataSourceId:e,name:n}=E.useContext(ei),{state:i}=E.useContext(Rt),{refetch:l,data:o}=E.useContext(ti),s=Gx(),c=()=>{var d,y;(d=o==null?void 0:o.columns)!=null&&d[0].table&&Dp({table:(y=o==null?void 0:o.columns)==null?void 0:y[0].table,dataSourceId:e})},f=()=>{Vo(n,i,!0),Vh()},h=async()=>{const d=Xx(i,["size","page"]),y=await xl("Query name",n);y&&s.mutate({name:y,dataSourceId:e,opts:d})};return v.jsxs("div",{className:Fe.tableConfig,children:[v.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Refresh data",onClick:()=>l(),className:Be(Fe.tableAction,Fe.blue),children:"🔄"}),v.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Save query",onClick:h,className:Be(Fe.tableAction,Fe.blue),children:"💾"}),v.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Insert new row",onClick:c,className:Be(Fe.tableAction,Fe.blue),children:"📝"}),v.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Open in a new tab",onClick:f,className:Be(Fe.tableAction,Fe.blue),children:"↗️"})]})}function xD(){const{page:e,size:n,setPage:i}=Jx(),{data:l}=E.useContext(ti),o=(l==null?void 0:l.rows.length)===n;return v.jsxs("div",{className:Fe.tableConfig,children:[v.jsx("button",{"data-tooltip-content":"Previous page","data-tooltip-id":"default",disabled:e<=0,className:Be(Fe.tableAction,Fe.blue),onClick:()=>i(e-1),children:"⬅️"}),v.jsx("span",{children:e+1}),v.jsx("button",{"data-tooltip-content":"Next page","data-tooltip-id":"default",disabled:!o,className:Be(Fe.tableAction,Fe.blue),onClick:()=>i(e+1),children:"➡️"})]})}function wD(){const{size:e,setSize:n}=Jx();return v.jsx("div",{className:Fe.tableConfig,children:v.jsxs("label",{className:Fe.tableAction,"data-tooltip-content":"Size","data-tooltip-id":"default",children:["📏",v.jsxs("select",{style:{height:"20px"},value:e,onChange:i=>n(parseInt(i.target.value,10)),children:[v.jsx("option",{value:5,children:"5"}),v.jsx("option",{value:10,children:"10"}),v.jsx("option",{value:20,children:"20"}),v.jsx("option",{value:50,children:"50"}),v.jsx("option",{value:100,children:"100"}),v.jsx("option",{value:200,children:"200"})]})]})})}function SD(){const{state:e,setState:n}=E.useContext(Rt),i=()=>{n(o=>({...o,searchAll:void 0}))},l=()=>{xl("Search all text values for","",{type:"warning",message:"⚠️ This will search all text values using LIKE operator (numbers, dates and other non string values are not searched). This can make your query heavy, make sure to reduce the number of columns you are using."}).then(o=>{o&&n(s=>({...s,searchAll:o}))})};return v.jsx("div",{className:Fe.tableConfig,children:e.searchAll?v.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Remove search all filter",onClick:i,className:Be(Fe.tableAction,Fe.red),children:v.jsxs("span",{className:"truncate px-1",children:["❌ ",e.searchAll]})}):v.jsx("button",{"data-tooltip-id":"default","data-tooltip-content":"Search text in all columns",onClick:l,className:Be(Fe.tableAction,Fe.blue),children:"🔎"})})}function CD(e,n,i){const l=[];return n.length>0||i.length>0?l.push(...n,...i):e.length>0&&l.push(...e),l}const Wx=({options:e,updater:n,name:i,className:l})=>{const o=T4(e,n),{state:s}=o,c=V6({datasourceId:e.dataSourceId,table:e.table,filters:s.filters,joins:s.joins,page:s.page,size:s.size,orderBy:s.orderBy,columns:CD(s.columns,s.groupBy,s.aggregations),groupBy:s.groupBy,searchAll:s.searchAll}),f=k4(c.data,e.dataSourceId,i);return v.jsx("div",{className:Be("flex flex-1 gap-1 overflow-hidden",l),children:v.jsx(ei,{value:f,children:v.jsx(Rt,{value:o,children:v.jsxs(ti,{value:c,children:[v.jsxs("div",{className:"m-1 flex-1 overflow-auto relative",children:[v.jsx(vD,{}),v.jsx(R5,{})]}),v.jsx(sD,{})]})})})})},ga=Math.min,hl=Math.max,Wu=Math.round,Tu=Math.floor,xr=e=>({x:e,y:e}),ED={left:"right",right:"left",bottom:"top",top:"bottom"},kD={start:"end",end:"start"};function $h(e,n,i){return hl(e,ga(n,i))}function os(e,n){return typeof e=="function"?e(n):e}function yl(e){return e.split("-")[0]}function ss(e){return e.split("-")[1]}function ew(e){return e==="x"?"y":"x"}function Bp(e){return e==="y"?"height":"width"}function ji(e){return["top","bottom"].includes(yl(e))?"y":"x"}function qp(e){return ew(ji(e))}function TD(e,n,i){i===void 0&&(i=!1);const l=ss(e),o=qp(e),s=Bp(o);let c=o==="x"?l===(i?"end":"start")?"right":"left":l==="start"?"bottom":"top";return n.reference[s]>n.floating[s]&&(c=ec(c)),[c,ec(c)]}function AD(e){const n=ec(e);return[Yh(e),n,Yh(n)]}function Yh(e){return e.replace(/start|end/g,n=>kD[n])}function _D(e,n,i){const l=["left","right"],o=["right","left"],s=["top","bottom"],c=["bottom","top"];switch(e){case"top":case"bottom":return i?n?o:l:n?l:o;case"left":case"right":return n?s:c;default:return[]}}function OD(e,n,i,l){const o=ss(e);let s=_D(yl(e),i==="start",l);return o&&(s=s.map(c=>c+"-"+o),n&&(s=s.concat(s.map(Yh)))),s}function ec(e){return e.replace(/left|right|bottom|top/g,n=>ED[n])}function RD(e){return{top:0,right:0,bottom:0,left:0,...e}}function tw(e){return typeof e!="number"?RD(e):{top:e,right:e,bottom:e,left:e}}function tc(e){const{x:n,y:i,width:l,height:o}=e;return{width:l,height:o,top:i,left:n,right:n+l,bottom:i+o,x:n,y:i}}function iv(e,n,i){let{reference:l,floating:o}=e;const s=ji(n),c=qp(n),f=Bp(c),h=yl(n),d=s==="y",y=l.x+l.width/2-o.width/2,g=l.y+l.height/2-o.height/2,x=l[f]/2-o[f]/2;let b;switch(h){case"top":b={x:y,y:l.y-o.height};break;case"bottom":b={x:y,y:l.y+l.height};break;case"right":b={x:l.x+l.width,y:g};break;case"left":b={x:l.x-o.width,y:g};break;default:b={x:l.x,y:l.y}}switch(ss(n)){case"start":b[c]-=x*(i&&d?-1:1);break;case"end":b[c]+=x*(i&&d?-1:1);break}return b}const ND=async(e,n,i)=>{const{placement:l="bottom",strategy:o="absolute",middleware:s=[],platform:c}=i,f=s.filter(Boolean),h=await(c.isRTL==null?void 0:c.isRTL(n));let d=await c.getElementRects({reference:e,floating:n,strategy:o}),{x:y,y:g}=iv(d,l,h),x=l,b={},w=0;for(let T=0;T<f.length;T++){const{name:_,fn:A}=f[T],{x:N,y:O,data:z,reset:q}=await A({x:y,y:g,initialPlacement:l,placement:x,strategy:o,middlewareData:b,rects:d,platform:c,elements:{reference:e,floating:n}});y=N??y,g=O??g,b={...b,[_]:{...b[_],...z}},q&&w<=50&&(w++,typeof q=="object"&&(q.placement&&(x=q.placement),q.rects&&(d=q.rects===!0?await c.getElementRects({reference:e,floating:n,strategy:o}):q.rects),{x:y,y:g}=iv(d,x,h)),T=-1)}return{x:y,y:g,placement:x,strategy:o,middlewareData:b}};async function nw(e,n){var i;n===void 0&&(n={});const{x:l,y:o,platform:s,rects:c,elements:f,strategy:h}=e,{boundary:d="clippingAncestors",rootBoundary:y="viewport",elementContext:g="floating",altBoundary:x=!1,padding:b=0}=os(n,e),w=tw(b),_=f[x?g==="floating"?"reference":"floating":g],A=tc(await s.getClippingRect({element:(i=await(s.isElement==null?void 0:s.isElement(_)))==null||i?_:_.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(f.floating)),boundary:d,rootBoundary:y,strategy:h})),N=g==="floating"?{x:l,y:o,width:c.floating.width,height:c.floating.height}:c.reference,O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f.floating)),z=await(s.isElement==null?void 0:s.isElement(O))?await(s.getScale==null?void 0:s.getScale(O))||{x:1,y:1}:{x:1,y:1},q=tc(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:N,offsetParent:O,strategy:h}):N);return{top:(A.top-q.top+w.top)/z.y,bottom:(q.bottom-A.bottom+w.bottom)/z.y,left:(A.left-q.left+w.left)/z.x,right:(q.right-A.right+w.right)/z.x}}const jD=e=>({name:"arrow",options:e,async fn(n){const{x:i,y:l,placement:o,rects:s,platform:c,elements:f,middlewareData:h}=n,{element:d,padding:y=0}=os(e,n)||{};if(d==null)return{};const g=tw(y),x={x:i,y:l},b=qp(o),w=Bp(b),T=await c.getDimensions(d),_=b==="y",A=_?"top":"left",N=_?"bottom":"right",O=_?"clientHeight":"clientWidth",z=s.reference[w]+s.reference[b]-x[b]-s.floating[w],q=x[b]-s.reference[b],M=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d));let Y=M?M[O]:0;(!Y||!await(c.isElement==null?void 0:c.isElement(M)))&&(Y=f.floating[O]||s.floating[w]);const ee=z/2-q/2,ie=Y/2-T[w]/2-1,L=ga(g[A],ie),ae=ga(g[N],ie),te=L,ue=Y-T[w]-ae,J=Y/2-T[w]/2+ee,se=$h(te,J,ue),B=!h.arrow&&ss(o)!=null&&J!==se&&s.reference[w]/2-(J<te?L:ae)-T[w]/2<0,X=B?J<te?J-te:J-ue:0;return{[b]:x[b]+X,data:{[b]:se,centerOffset:J-se-X,...B&&{alignmentOffset:X}},reset:B}}}),DD=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var i,l;const{placement:o,middlewareData:s,rects:c,initialPlacement:f,platform:h,elements:d}=n,{mainAxis:y=!0,crossAxis:g=!0,fallbackPlacements:x,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:T=!0,..._}=os(e,n);if((i=s.arrow)!=null&&i.alignmentOffset)return{};const A=yl(o),N=ji(f),O=yl(f)===f,z=await(h.isRTL==null?void 0:h.isRTL(d.floating)),q=x||(O||!T?[ec(f)]:AD(f)),M=w!=="none";!x&&M&&q.push(...OD(f,T,w,z));const Y=[f,...q],ee=await nw(n,_),ie=[];let L=((l=s.flip)==null?void 0:l.overflows)||[];if(y&&ie.push(ee[A]),g){const J=TD(o,c,z);ie.push(ee[J[0]],ee[J[1]])}if(L=[...L,{placement:o,overflows:ie}],!ie.every(J=>J<=0)){var ae,te;const J=(((ae=s.flip)==null?void 0:ae.index)||0)+1,se=Y[J];if(se&&(!(g==="alignment"?N!==ji(se):!1)||L.every(ne=>ne.overflows[0]>0&&ji(ne.placement)===N)))return{data:{index:J,overflows:L},reset:{placement:se}};let B=(te=L.filter(X=>X.overflows[0]<=0).sort((X,ne)=>X.overflows[1]-ne.overflows[1])[0])==null?void 0:te.placement;if(!B)switch(b){case"bestFit":{var ue;const X=(ue=L.filter(ne=>{if(M){const pe=ji(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];X&&(B=X);break}case"initialPlacement":B=f;break}if(o!==B)return{reset:{placement:B}}}return{}}}};async function MD(e,n){const{placement:i,platform:l,elements:o}=e,s=await(l.isRTL==null?void 0:l.isRTL(o.floating)),c=yl(i),f=ss(i),h=ji(i)==="y",d=["left","top"].includes(c)?-1:1,y=s&&h?-1:1,g=os(n,e);let{mainAxis:x,crossAxis:b,alignmentAxis:w}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return f&&typeof w=="number"&&(b=f==="end"?w*-1:w),h?{x:b*y,y:x*d}:{x:x*d,y:b*y}}const zD=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(n){var i,l;const{x:o,y:s,placement:c,middlewareData:f}=n,h=await MD(n,e);return c===((i=f.offset)==null?void 0:i.placement)&&(l=f.arrow)!=null&&l.alignmentOffset?{}:{x:o+h.x,y:s+h.y,data:{...h,placement:c}}}}},LD=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:i,y:l,placement:o}=n,{mainAxis:s=!0,crossAxis:c=!1,limiter:f={fn:_=>{let{x:A,y:N}=_;return{x:A,y:N}}},...h}=os(e,n),d={x:i,y:l},y=await nw(n,h),g=ji(yl(o)),x=ew(g);let b=d[x],w=d[g];if(s){const _=x==="y"?"top":"left",A=x==="y"?"bottom":"right",N=b+y[_],O=b-y[A];b=$h(N,b,O)}if(c){const _=g==="y"?"top":"left",A=g==="y"?"bottom":"right",N=w+y[_],O=w-y[A];w=$h(N,w,O)}const T=f.fn({...n,[x]:b,[g]:w});return{...T,data:{x:T.x-i,y:T.y-l,enabled:{[x]:s,[g]:c}}}}}};function wc(){return typeof window<"u"}function Na(e){return rw(e)?(e.nodeName||"").toLowerCase():"#document"}function jn(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function Tr(e){var n;return(n=(rw(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function rw(e){return wc()?e instanceof Node||e instanceof jn(e).Node:!1}function rr(e){return wc()?e instanceof Element||e instanceof jn(e).Element:!1}function wr(e){return wc()?e instanceof HTMLElement||e instanceof jn(e).HTMLElement:!1}function lv(e){return!wc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof jn(e).ShadowRoot}function us(e){const{overflow:n,overflowX:i,overflowY:l,display:o}=ir(e);return/auto|scroll|overlay|hidden|clip/.test(n+l+i)&&!["inline","contents"].includes(o)}function UD(e){return["table","td","th"].includes(Na(e))}function Sc(e){return[":popover-open",":modal"].some(n=>{try{return e.matches(n)}catch{return!1}})}function Hp(e){const n=Fp(),i=rr(e)?ir(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 BD(e){let n=Mi(e);for(;wr(n)&&!va(n);){if(Hp(n))return n;if(Sc(n))return null;n=Mi(n)}return null}function Fp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function va(e){return["html","body","#document"].includes(Na(e))}function ir(e){return jn(e).getComputedStyle(e)}function Cc(e){return rr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Mi(e){if(Na(e)==="html")return e;const n=e.assignedSlot||e.parentNode||lv(e)&&e.host||Tr(e);return lv(n)?n.host:n}function iw(e){const n=Mi(e);return va(n)?e.ownerDocument?e.ownerDocument.body:e.body:wr(n)&&us(n)?n:iw(n)}function Ko(e,n,i){var l;n===void 0&&(n=[]),i===void 0&&(i=!0);const o=iw(e),s=o===((l=e.ownerDocument)==null?void 0:l.body),c=jn(o);if(s){const f=Kh(c);return n.concat(c,c.visualViewport||[],us(o)?o:[],f&&i?Ko(f):[])}return n.concat(o,Ko(o,[],i))}function Kh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function lw(e){const n=ir(e);let i=parseFloat(n.width)||0,l=parseFloat(n.height)||0;const o=wr(e),s=o?e.offsetWidth:i,c=o?e.offsetHeight:l,f=Wu(i)!==s||Wu(l)!==c;return f&&(i=s,l=c),{width:i,height:l,$:f}}function Qp(e){return rr(e)?e:e.contextElement}function pa(e){const n=Qp(e);if(!wr(n))return xr(1);const i=n.getBoundingClientRect(),{width:l,height:o,$:s}=lw(n);let c=(s?Wu(i.width):i.width)/l,f=(s?Wu(i.height):i.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}const qD=xr(0);function aw(e){const n=jn(e);return!Fp()||!n.visualViewport?qD:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function HD(e,n,i){return n===void 0&&(n=!1),!i||n&&i!==jn(e)?!1:n}function gl(e,n,i,l){n===void 0&&(n=!1),i===void 0&&(i=!1);const o=e.getBoundingClientRect(),s=Qp(e);let c=xr(1);n&&(l?rr(l)&&(c=pa(l)):c=pa(e));const f=HD(s,i,l)?aw(s):xr(0);let h=(o.left+f.x)/c.x,d=(o.top+f.y)/c.y,y=o.width/c.x,g=o.height/c.y;if(s){const x=jn(s),b=l&&rr(l)?jn(l):l;let w=x,T=Kh(w);for(;T&&l&&b!==w;){const _=pa(T),A=T.getBoundingClientRect(),N=ir(T),O=A.left+(T.clientLeft+parseFloat(N.paddingLeft))*_.x,z=A.top+(T.clientTop+parseFloat(N.paddingTop))*_.y;h*=_.x,d*=_.y,y*=_.x,g*=_.y,h+=O,d+=z,w=jn(T),T=Kh(w)}}return tc({width:y,height:g,x:h,y:d})}function Pp(e,n){const i=Cc(e).scrollLeft;return n?n.left+i:gl(Tr(e)).left+i}function ow(e,n,i){i===void 0&&(i=!1);const l=e.getBoundingClientRect(),o=l.left+n.scrollLeft-(i?0:Pp(e,l)),s=l.top+n.scrollTop;return{x:o,y:s}}function FD(e){let{elements:n,rect:i,offsetParent:l,strategy:o}=e;const s=o==="fixed",c=Tr(l),f=n?Sc(n.floating):!1;if(l===c||f&&s)return i;let h={scrollLeft:0,scrollTop:0},d=xr(1);const y=xr(0),g=wr(l);if((g||!g&&!s)&&((Na(l)!=="body"||us(c))&&(h=Cc(l)),wr(l))){const b=gl(l);d=pa(l),y.x=b.x+l.clientLeft,y.y=b.y+l.clientTop}const x=c&&!g&&!s?ow(c,h,!0):xr(0);return{width:i.width*d.x,height:i.height*d.y,x:i.x*d.x-h.scrollLeft*d.x+y.x+x.x,y:i.y*d.y-h.scrollTop*d.y+y.y+x.y}}function QD(e){return Array.from(e.getClientRects())}function PD(e){const n=Tr(e),i=Cc(e),l=e.ownerDocument.body,o=hl(n.scrollWidth,n.clientWidth,l.scrollWidth,l.clientWidth),s=hl(n.scrollHeight,n.clientHeight,l.scrollHeight,l.clientHeight);let c=-i.scrollLeft+Pp(e);const f=-i.scrollTop;return ir(l).direction==="rtl"&&(c+=hl(n.clientWidth,l.clientWidth)-o),{width:o,height:s,x:c,y:f}}function ID(e,n){const i=jn(e),l=Tr(e),o=i.visualViewport;let s=l.clientWidth,c=l.clientHeight,f=0,h=0;if(o){s=o.width,c=o.height;const d=Fp();(!d||d&&n==="fixed")&&(f=o.offsetLeft,h=o.offsetTop)}return{width:s,height:c,x:f,y:h}}function VD(e,n){const i=gl(e,!0,n==="fixed"),l=i.top+e.clientTop,o=i.left+e.clientLeft,s=wr(e)?pa(e):xr(1),c=e.clientWidth*s.x,f=e.clientHeight*s.y,h=o*s.x,d=l*s.y;return{width:c,height:f,x:h,y:d}}function av(e,n,i){let l;if(n==="viewport")l=ID(e,i);else if(n==="document")l=PD(Tr(e));else if(rr(n))l=VD(n,i);else{const o=aw(e);l={x:n.x-o.x,y:n.y-o.y,width:n.width,height:n.height}}return tc(l)}function sw(e,n){const i=Mi(e);return i===n||!rr(i)||va(i)?!1:ir(i).position==="fixed"||sw(i,n)}function $D(e,n){const i=n.get(e);if(i)return i;let l=Ko(e,[],!1).filter(f=>rr(f)&&Na(f)!=="body"),o=null;const s=ir(e).position==="fixed";let c=s?Mi(e):e;for(;rr(c)&&!va(c);){const f=ir(c),h=Hp(c);!h&&f.position==="fixed"&&(o=null),(s?!h&&!o:!h&&f.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||us(c)&&!h&&sw(e,c))?l=l.filter(y=>y!==c):o=f,c=Mi(c)}return n.set(e,l),l}function YD(e){let{element:n,boundary:i,rootBoundary:l,strategy:o}=e;const c=[...i==="clippingAncestors"?Sc(n)?[]:$D(n,this._c):[].concat(i),l],f=c[0],h=c.reduce((d,y)=>{const g=av(n,y,o);return d.top=hl(g.top,d.top),d.right=ga(g.right,d.right),d.bottom=ga(g.bottom,d.bottom),d.left=hl(g.left,d.left),d},av(n,f,o));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function KD(e){const{width:n,height:i}=lw(e);return{width:n,height:i}}function GD(e,n,i){const l=wr(n),o=Tr(n),s=i==="fixed",c=gl(e,!0,s,n);let f={scrollLeft:0,scrollTop:0};const h=xr(0);function d(){h.x=Pp(o)}if(l||!l&&!s)if((Na(n)!=="body"||us(o))&&(f=Cc(n)),l){const b=gl(n,!0,s,n);h.x=b.x+n.clientLeft,h.y=b.y+n.clientTop}else o&&d();s&&!l&&o&&d();const y=o&&!l&&!s?ow(o,f):xr(0),g=c.left+f.scrollLeft-h.x-y.x,x=c.top+f.scrollTop-h.y-y.y;return{x:g,y:x,width:c.width,height:c.height}}function ch(e){return ir(e).position==="static"}function ov(e,n){if(!wr(e)||ir(e).position==="fixed")return null;if(n)return n(e);let i=e.offsetParent;return Tr(e)===i&&(i=i.ownerDocument.body),i}function uw(e,n){const i=jn(e);if(Sc(e))return i;if(!wr(e)){let o=Mi(e);for(;o&&!va(o);){if(rr(o)&&!ch(o))return o;o=Mi(o)}return i}let l=ov(e,n);for(;l&&UD(l)&&ch(l);)l=ov(l,n);return l&&va(l)&&ch(l)&&!Hp(l)?i:l||BD(e)||i}const XD=async function(e){const n=this.getOffsetParent||uw,i=this.getDimensions,l=await i(e.floating);return{reference:GD(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function ZD(e){return ir(e).direction==="rtl"}const JD={convertOffsetParentRelativeRectToViewportRelativeRect:FD,getDocumentElement:Tr,getClippingRect:YD,getOffsetParent:uw,getElementRects:XD,getClientRects:QD,getDimensions:KD,getScale:pa,isElement:rr,isRTL:ZD};function cw(e,n){return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height}function WD(e,n){let i=null,l;const o=Tr(e);function s(){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),s();const d=e.getBoundingClientRect(),{left:y,top:g,width:x,height:b}=d;if(f||n(),!x||!b)return;const w=Tu(g),T=Tu(o.clientWidth-(y+x)),_=Tu(o.clientHeight-(g+b)),A=Tu(y),O={rootMargin:-w+"px "+-T+"px "+-_+"px "+-A+"px",threshold:hl(0,ga(1,h))||1};let z=!0;function q(M){const Y=M[0].intersectionRatio;if(Y!==h){if(!z)return c();Y?c(!1,Y):l=setTimeout(()=>{c(!1,1e-7)},1e3)}Y===1&&!cw(d,e.getBoundingClientRect())&&c(),z=!1}try{i=new IntersectionObserver(q,{...O,root:o.ownerDocument})}catch{i=new IntersectionObserver(q,O)}i.observe(e)}return c(!0),s}function e8(e,n,i,l){l===void 0&&(l={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:h=!1}=l,d=Qp(e),y=o||s?[...d?Ko(d):[],...Ko(n)]:[];y.forEach(A=>{o&&A.addEventListener("scroll",i,{passive:!0}),s&&A.addEventListener("resize",i)});const g=d&&f?WD(d,i):null;let x=-1,b=null;c&&(b=new ResizeObserver(A=>{let[N]=A;N&&N.target===d&&b&&(b.unobserve(n),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var O;(O=b)==null||O.observe(n)})),i()}),d&&!h&&b.observe(d),b.observe(n));let w,T=h?gl(e):null;h&&_();function _(){const A=gl(e);T&&!cw(T,A)&&i(),T=A,w=requestAnimationFrame(_)}return i(),()=>{var A;y.forEach(N=>{o&&N.removeEventListener("scroll",i),s&&N.removeEventListener("resize",i)}),g==null||g(),(A=b)==null||A.disconnect(),b=null,h&&cancelAnimationFrame(w)}}const t8=zD,n8=LD,r8=DD,i8=jD,sv=(e,n,i)=>{const l=new Map,o={platform:JD,...i},s={...o.platform,_c:l};return ND(e,n,{...o,platform:s})};var fh={exports:{}};/*!
287
+ Copyright (c) 2018 Jed Watson.
288
+ Licensed under the MIT License (MIT), see
289
+ http://jedwatson.github.io/classnames
290
+ */var uv;function l8(){return uv||(uv=1,function(e){(function(){var n={}.hasOwnProperty;function i(){for(var s="",c=0;c<arguments.length;c++){var f=arguments[c];f&&(s=o(s,l(f)))}return s}function l(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return i.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var c="";for(var f in s)n.call(s,f)&&s[f]&&(c=o(c,f));return c}function o(s,c){return c?s?s+" "+c:s+c:s}e.exports?(i.default=i,e.exports=i):window.classNames=i})()}(fh)),fh.exports}var a8=l8();const Gh=ba(a8);var cv={};const o8="react-tooltip-core-styles",s8="react-tooltip-base-styles",fv={core:!1,base:!1};function dv({css:e,id:n=s8,type:i="base",ref:l}){var o,s;if(!e||typeof document>"u"||fv[i]||i==="core"&&typeof process<"u"&&(!((o=process==null?void 0:cv)===null||o===void 0)&&o.REACT_TOOLTIP_DISABLE_CORE_STYLES)||i!=="base"&&typeof process<"u"&&(!((s=process==null?void 0:cv)===null||s===void 0)&&s.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;i==="core"&&(n=o8),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)),fv[i]=!0}const hv=async({elementReference:e=null,tooltipReference:n=null,tooltipArrowReference:i=null,place:l="top",offset:o=10,strategy:s="absolute",middlewares:c=[t8(Number(o)),r8({fallbackAxisSideDirection:"start"}),n8({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(i8({element:i,padding:5})),sv(e,n,{placement:l,strategy:s,middleware:d}).then(({x:y,y:g,placement:x,middlewareData:b})=>{var w,T;const _={left:`${y}px`,top:`${g}px`,border:f},{x:A,y:N}=(w=b.arrow)!==null&&w!==void 0?w:{x:0,y:0},O=(T={top:"bottom",right:"left",bottom:"top",left:"right"}[x.split("-")[0]])!==null&&T!==void 0?T:"bottom",z=f&&{borderBottom:f,borderRight:f};let q=0;if(f){const M=`${f}`.match(/(\d+)px/);q=M!=null&&M[1]?Number(M[1]):1}return{tooltipStyles:_,tooltipArrowStyles:{left:A!=null?`${A}px`:"",top:N!=null?`${N}px`:"",right:"",bottom:"",...z,[O]:`-${h/2+q}px`},place:x}})):sv(e,n,{placement:"bottom",strategy:s,middleware:d}).then(({x:y,y:g,placement:x})=>({tooltipStyles:{left:`${y}px`,top:`${g}px`},tooltipArrowStyles:{},place:x}))},pv=(e,n)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,n),mv=(e,n,i)=>{let l=null;const o=function(...s){const c=()=>{l=null};!l&&(e.apply(this,s),l=setTimeout(c,n))};return o.cancel=()=>{l&&(clearTimeout(l),l=null)},o},yv=e=>e!==null&&!Array.isArray(e)&&typeof e=="object",Xh=(e,n)=>{if(e===n)return!0;if(Array.isArray(e)&&Array.isArray(n))return e.length===n.length&&e.every((o,s)=>Xh(o,n[s]));if(Array.isArray(e)!==Array.isArray(n))return!1;if(!yv(e)||!yv(n))return e===n;const i=Object.keys(e),l=Object.keys(n);return i.length===l.length&&i.every(o=>Xh(e[o],n[o]))},u8=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"})},gv=e=>{if(!e)return null;let n=e.parentElement;for(;n;){if(u8(n))return n;n=n.parentElement}return document.scrollingElement||document.documentElement},c8=typeof window<"u"?E.useLayoutEffect:E.useEffect,$n=e=>{e.current&&(clearTimeout(e.current),e.current=null)},f8="DEFAULT_TOOLTIP_ID",d8={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},h8=E.createContext({getTooltipData:()=>d8});function fw(e=f8){return E.useContext(h8).getTooltipData(e)}var sa={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"},dh={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 p8=({forwardRef:e,id:n,className:i,classNameArrow:l,variant:o="dark",anchorId:s,anchorSelect:c,place:f="top",offset:h=10,events:d=["hover"],openOnClick:y=!1,positionStrategy:g="absolute",middlewares:x,wrapper:b,delayShow:w=0,delayHide:T=0,float:_=!1,hidden:A=!1,noArrow:N=!1,clickable:O=!1,closeOnEsc:z=!1,closeOnScroll:q=!1,closeOnResize:M=!1,openEvents:Y,closeEvents:ee,globalCloseEvents:ie,imperativeModeOnly:L,style:ae,position:te,afterShow:ue,afterHide:J,disableTooltip:se,content:B,contentWrapperRef:X,isOpen:ne,defaultIsOpen:pe=!1,setIsOpen:C,activeAnchor:I,setActiveAnchor:oe,border:R,opacity:fe,arrowColor:ke,arrowSize:ce=8,role:st="tooltip"})=>{var Oe;const Ie=E.useRef(null),Ft=E.useRef(null),bt=E.useRef(null),un=E.useRef(null),Xn=E.useRef(null),[cn,ni]=E.useState({tooltipStyles:{},tooltipArrowStyles:{},place:f}),[Dt,Mt]=E.useState(!1),[Zn,xn]=E.useState(!1),[Ke,Dn]=E.useState(null),Ar=E.useRef(!1),or=E.useRef(null),{anchorRefs:_r,setActiveAnchor:ri}=fw(n),$=E.useRef(!1),[W,me]=E.useState([]),ye=E.useRef(!1),Ue=y||d.includes("click"),Qt=Ue||(Y==null?void 0:Y.click)||(Y==null?void 0:Y.dblclick)||(Y==null?void 0:Y.mousedown),Yt=Y?{...Y}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!Y&&Ue&&Object.assign(Yt,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const ht=ee?{...ee}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!ee&&Ue&&Object.assign(ht,{mouseleave:!1,blur:!1,mouseout:!1});const pt=ie?{...ie}:{escape:z||!1,scroll:q||!1,resize:M||!1,clickOutsideAnchor:Qt||!1};L&&(Object.assign(Yt,{mouseover:!1,focus:!1,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(ht,{mouseout:!1,blur:!1,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(pt,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),c8(()=>(ye.current=!0,()=>{ye.current=!1}),[]);const qe=le=>{ye.current&&(le&&xn(!0),setTimeout(()=>{ye.current&&(C==null||C(le),ne===void 0&&Mt(le))},10))};E.useEffect(()=>{if(ne===void 0)return()=>null;ne&&xn(!0);const le=setTimeout(()=>{Mt(ne)},10);return()=>{clearTimeout(le)}},[ne]),E.useEffect(()=>{if(Dt!==Ar.current)if($n(Xn),Ar.current=Dt,Dt)ue==null||ue();else{const le=(he=>{const Se=he.match(/^([\d.]+)(ms|s)$/);if(!Se)return 0;const[,ct,Ut]=Se;return Number(ct)*(Ut==="ms"?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));Xn.current=setTimeout(()=>{xn(!1),Dn(null),J==null||J()},le+25)}},[Dt]);const ut=le=>{ni(he=>Xh(he,le)?he:le)},zt=(le=w)=>{$n(bt),Zn?qe(!0):bt.current=setTimeout(()=>{qe(!0)},le)},Lt=(le=T)=>{$n(un),un.current=setTimeout(()=>{$.current||qe(!1)},le)},ii=le=>{var he;if(!le)return;const Se=(he=le.currentTarget)!==null&&he!==void 0?he:le.target;if(!(Se!=null&&Se.isConnected))return oe(null),void ri({current:null});w?zt():qe(!0),oe(Se),ri({current:Se}),$n(un)},Or=()=>{O?Lt(T||100):T?Lt():qe(!1),$n(bt)},sr=({x:le,y:he})=>{var Se;const ct={getBoundingClientRect:()=>({x:le,y:he,width:0,height:0,top:he,left:le,right:le,bottom:he})};hv({place:(Se=Ke==null?void 0:Ke.place)!==null&&Se!==void 0?Se:f,offset:h,elementReference:ct,tooltipReference:Ie.current,tooltipArrowReference:Ft.current,strategy:g,middlewares:x,border:R,arrowSize:ce}).then(Ut=>{ut(Ut)})},Mn=le=>{if(!le)return;const he=le,Se={x:he.clientX,y:he.clientY};sr(Se),or.current=Se},Hi=le=>{var he;if(!Dt)return;const Se=le.target;Se.isConnected&&(!((he=Ie.current)===null||he===void 0)&&he.contains(Se)||[document.querySelector(`[id='${s}']`),...W].some(ct=>ct==null?void 0:ct.contains(Se))||(qe(!1),$n(bt)))},Fi=mv(ii,50),xt=mv(Or,50),Kt=le=>{xt.cancel(),Fi(le)},be=()=>{Fi.cancel(),xt()},De=E.useCallback(()=>{var le,he;const Se=(le=Ke==null?void 0:Ke.position)!==null&&le!==void 0?le:te;Se?sr(Se):_?or.current&&sr(or.current):I!=null&&I.isConnected&&hv({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:g,middlewares:x,border:R,arrowSize:ce}).then(ct=>{ye.current&&ut(ct)})},[Dt,I,B,ae,f,Ke==null?void 0:Ke.place,h,g,te,Ke==null?void 0:Ke.position,_,ce]);E.useEffect(()=>{var le,he;const Se=new Set(_r);W.forEach($e=>{se!=null&&se($e)||Se.add({current:$e})});const ct=document.querySelector(`[id='${s}']`);ct&&!(se!=null&&se(ct))&&Se.add({current:ct});const Ut=()=>{qe(!1)},zn=gv(I),wn=gv(Ie.current);pt.scroll&&(window.addEventListener("scroll",Ut),zn==null||zn.addEventListener("scroll",Ut),wn==null||wn.addEventListener("scroll",Ut));let wt=null;pt.resize?window.addEventListener("resize",Ut):I&&Ie.current&&(wt=e8(I,Ie.current,De,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const Xt=$e=>{$e.key==="Escape"&&qe(!1)};pt.escape&&window.addEventListener("keydown",Xt),pt.clickOutsideAnchor&&window.addEventListener("click",Hi);const Ve=[],Sn=$e=>!!($e!=null&&$e.target&&(I!=null&&I.contains($e.target))),Qi=$e=>{Dt&&Sn($e)||ii($e)},li=$e=>{Dt&&Sn($e)&&Or()},St=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],ja=["click","dblclick","mousedown","mouseup"];Object.entries(Yt).forEach(([$e,Ln])=>{Ln&&(St.includes($e)?Ve.push({event:$e,listener:Kt}):ja.includes($e)&&Ve.push({event:$e,listener:Qi}))}),Object.entries(ht).forEach(([$e,Ln])=>{Ln&&(St.includes($e)?Ve.push({event:$e,listener:be}):ja.includes($e)&&Ve.push({event:$e,listener:li}))}),_&&Ve.push({event:"pointermove",listener:Mn});const Da=()=>{$.current=!0},ur=()=>{$.current=!1,Or()},Rr=O&&(ht.mouseout||ht.mouseleave);return Rr&&((le=Ie.current)===null||le===void 0||le.addEventListener("mouseover",Da),(he=Ie.current)===null||he===void 0||he.addEventListener("mouseout",ur)),Ve.forEach(({event:$e,listener:Ln})=>{Se.forEach(wl=>{var Pi;(Pi=wl.current)===null||Pi===void 0||Pi.addEventListener($e,Ln)})}),()=>{var $e,Ln;pt.scroll&&(window.removeEventListener("scroll",Ut),zn==null||zn.removeEventListener("scroll",Ut),wn==null||wn.removeEventListener("scroll",Ut)),pt.resize?window.removeEventListener("resize",Ut):wt==null||wt(),pt.clickOutsideAnchor&&window.removeEventListener("click",Hi),pt.escape&&window.removeEventListener("keydown",Xt),Rr&&(($e=Ie.current)===null||$e===void 0||$e.removeEventListener("mouseover",Da),(Ln=Ie.current)===null||Ln===void 0||Ln.removeEventListener("mouseout",ur)),Ve.forEach(({event:wl,listener:Pi})=>{Se.forEach(Sl=>{var ai;(ai=Sl.current)===null||ai===void 0||ai.removeEventListener(wl,Pi)})})}},[I,De,Zn,_r,W,Y,ee,ie,Ue,w,T]),E.useEffect(()=>{var le,he;let Se=(he=(le=Ke==null?void 0:Ke.anchorSelect)!==null&&le!==void 0?le:c)!==null&&he!==void 0?he:"";!Se&&n&&(Se=`[data-tooltip-id='${n.replace(/'/g,"\\'")}']`);const ct=new MutationObserver(Ut=>{const zn=[],wn=[];Ut.forEach(wt=>{if(wt.type==="attributes"&&wt.attributeName==="data-tooltip-id"&&(wt.target.getAttribute("data-tooltip-id")===n?zn.push(wt.target):wt.oldValue===n&&wn.push(wt.target)),wt.type==="childList"){if(I){const Xt=[...wt.removedNodes].filter(Ve=>Ve.nodeType===1);if(Se)try{wn.push(...Xt.filter(Ve=>Ve.matches(Se))),wn.push(...Xt.flatMap(Ve=>[...Ve.querySelectorAll(Se)]))}catch{}Xt.some(Ve=>{var Sn;return!!(!((Sn=Ve==null?void 0:Ve.contains)===null||Sn===void 0)&&Sn.call(Ve,I))&&(xn(!1),qe(!1),oe(null),$n(bt),$n(un),!0)})}if(Se)try{const Xt=[...wt.addedNodes].filter(Ve=>Ve.nodeType===1);zn.push(...Xt.filter(Ve=>Ve.matches(Se))),zn.push(...Xt.flatMap(Ve=>[...Ve.querySelectorAll(Se)]))}catch{}}}),(zn.length||wn.length)&&me(wt=>[...wt.filter(Xt=>!wn.includes(Xt)),...zn])});return ct.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{ct.disconnect()}},[n,c,Ke==null?void 0:Ke.anchorSelect,I]),E.useEffect(()=>{De()},[De]),E.useEffect(()=>{if(!(X!=null&&X.current))return()=>null;const le=new ResizeObserver(()=>{setTimeout(()=>De())});return le.observe(X.current),()=>{le.disconnect()}},[B,X==null?void 0:X.current]),E.useEffect(()=>{var le;const he=document.querySelector(`[id='${s}']`),Se=[...W,he];I&&Se.includes(I)||oe((le=W[0])!==null&&le!==void 0?le:he)},[s,W,I]),E.useEffect(()=>(pe&&qe(!0),()=>{$n(bt),$n(un)}),[]),E.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 Se=Array.from(document.querySelectorAll(he));me(Se)}catch{me([])}},[n,c,Ke==null?void 0:Ke.anchorSelect]),E.useEffect(()=>{bt.current&&($n(bt),zt(w))},[w]);const ln=(Oe=Ke==null?void 0:Ke.content)!==null&&Oe!==void 0?Oe:B,Gt=Dt&&Object.keys(cn.tooltipStyles).length>0;return E.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`)}Dn(le??null),le!=null&&le.delay?zt(le.delay):qe(!0)},close:le=>{le!=null&&le.delay?Lt(le.delay):qe(!1)},activeAnchor:I,place:cn.place,isOpen:!!(Zn&&!A&&ln&&Gt)})),Zn&&!A&&ln?tt.createElement(b,{id:n,role:st,className:Gh("react-tooltip",sa.tooltip,dh.tooltip,dh[o],i,`react-tooltip__place-${cn.place}`,sa[Gt?"show":"closing"],Gt?"react-tooltip__show":"react-tooltip__closing",g==="fixed"&&sa.fixed,O&&sa.clickable),onTransitionEnd:le=>{$n(Xn),Dt||le.propertyName!=="opacity"||(xn(!1),Dn(null),J==null||J())},style:{...ae,...cn.tooltipStyles,opacity:fe!==void 0&&Gt?fe:void 0},ref:Ie},ln,tt.createElement(b,{className:Gh("react-tooltip-arrow",sa.arrow,dh.arrow,l,N&&sa.noArrow),style:{...cn.tooltipArrowStyles,background:ke?`linear-gradient(to right bottom, transparent 50%, ${ke} 50%)`:void 0,"--rt-arrow-size":`${ce}px`},ref:Ft})):null},m8=({content:e})=>tt.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),dw=tt.forwardRef(({id:e,anchorId:n,anchorSelect:i,content:l,html:o,render:s,className:c,classNameArrow:f,variant:h="dark",place:d="top",offset:y=10,wrapper:g="div",children:x=null,events:b=["hover"],openOnClick:w=!1,positionStrategy:T="absolute",middlewares:_,delayShow:A=0,delayHide:N=0,float:O=!1,hidden:z=!1,noArrow:q=!1,clickable:M=!1,closeOnEsc:Y=!1,closeOnScroll:ee=!1,closeOnResize:ie=!1,openEvents:L,closeEvents:ae,globalCloseEvents:te,imperativeModeOnly:ue=!1,style:J,position:se,isOpen:B,defaultIsOpen:X=!1,disableStyleInjection:ne=!1,border:pe,opacity:C,arrowColor:I,arrowSize:oe,setIsOpen:R,afterShow:fe,afterHide:ke,disableTooltip:ce,role:st="tooltip"},Oe)=>{const[Ie,Ft]=E.useState(l),[bt,un]=E.useState(o),[Xn,cn]=E.useState(d),[ni,Dt]=E.useState(h),[Mt,Zn]=E.useState(y),[xn,Ke]=E.useState(A),[Dn,Ar]=E.useState(N),[or,_r]=E.useState(O),[ri,$]=E.useState(z),[W,me]=E.useState(g),[ye,Ue]=E.useState(b),[Qt,Yt]=E.useState(T),[ht,pt]=E.useState(null),[qe,ut]=E.useState(null),zt=E.useRef(ne),{anchorRefs:Lt,activeAnchor:ii}=fw(e),Or=xt=>xt==null?void 0:xt.getAttributeNames().reduce((Kt,be)=>{var De;return be.startsWith("data-tooltip-")&&(Kt[be.replace(/^data-tooltip-/,"")]=(De=xt==null?void 0:xt.getAttribute(be))!==null&&De!==void 0?De:null),Kt},{}),sr=xt=>{const Kt={place:be=>{var De;cn((De=be)!==null&&De!==void 0?De:d)},content:be=>{Ft(be??l)},html:be=>{un(be??o)},variant:be=>{var De;Dt((De=be)!==null&&De!==void 0?De:h)},offset:be=>{Zn(be===null?y:Number(be))},wrapper:be=>{var De;me((De=be)!==null&&De!==void 0?De:g)},events:be=>{const De=be==null?void 0:be.split(" ");Ue(De??b)},"position-strategy":be=>{var De;Yt((De=be)!==null&&De!==void 0?De:T)},"delay-show":be=>{Ke(be===null?A:Number(be))},"delay-hide":be=>{Ar(be===null?N:Number(be))},float:be=>{_r(be===null?O:be==="true")},hidden:be=>{$(be===null?z:be==="true")},"class-name":be=>{pt(be)}};Object.values(Kt).forEach(be=>be(null)),Object.entries(xt).forEach(([be,De])=>{var ln;(ln=Kt[be])===null||ln===void 0||ln.call(Kt,De)})};E.useEffect(()=>{Ft(l)},[l]),E.useEffect(()=>{un(o)},[o]),E.useEffect(()=>{cn(d)},[d]),E.useEffect(()=>{Dt(h)},[h]),E.useEffect(()=>{Zn(y)},[y]),E.useEffect(()=>{Ke(A)},[A]),E.useEffect(()=>{Ar(N)},[N]),E.useEffect(()=>{_r(O)},[O]),E.useEffect(()=>{$(z)},[z]),E.useEffect(()=>{Yt(T)},[T]),E.useEffect(()=>{zt.current!==ne&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[ne]),E.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:ne==="core",disableBase:ne}}))},[]),E.useEffect(()=>{var xt;const Kt=new Set(Lt);let be=i;if(!be&&e&&(be=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),be)try{document.querySelectorAll(be).forEach(he=>{Kt.add({current:he})})}catch{console.warn(`[react-tooltip] "${be}" is not a valid CSS selector`)}const De=document.querySelector(`[id='${n}']`);if(De&&Kt.add({current:De}),!Kt.size)return()=>null;const ln=(xt=qe??De)!==null&&xt!==void 0?xt:ii.current,Gt=new MutationObserver(he=>{he.forEach(Se=>{var ct;if(!ln||Se.type!=="attributes"||!(!((ct=Se.attributeName)===null||ct===void 0)&&ct.startsWith("data-tooltip-")))return;const Ut=Or(ln);sr(Ut)})}),le={attributes:!0,childList:!1,subtree:!1};if(ln){const he=Or(ln);sr(he),Gt.observe(ln,le)}return()=>{Gt.disconnect()}},[Lt,ii,qe,n,i]),E.useEffect(()=>{J!=null&&J.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),pe&&!pv("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&&!pv("opacity",`${C}`)&&console.warn(`[react-tooltip] "${C}" is not a valid \`opacity\`.`)},[]);let Mn=x;const Hi=E.useRef(null);if(s){const xt=s({content:(qe==null?void 0:qe.getAttribute("data-tooltip-content"))||Ie||null,activeAnchor:qe});Mn=xt?tt.createElement("div",{ref:Hi,className:"react-tooltip-content-wrapper"},xt):null}else Ie&&(Mn=Ie);bt&&(Mn=tt.createElement(m8,{content:bt}));const Fi={forwardRef:Oe,id:e,anchorId:n,anchorSelect:i,className:Gh(c,ht),classNameArrow:f,content:Mn,contentWrapperRef:Hi,place:Xn,variant:ni,offset:Mt,wrapper:W,events:ye,openOnClick:w,positionStrategy:Qt,middlewares:_,delayShow:xn,delayHide:Dn,float:or,hidden:ri,noArrow:q,clickable:M,closeOnEsc:Y,closeOnScroll:ee,closeOnResize:ie,openEvents:L,closeEvents:ae,globalCloseEvents:te,imperativeModeOnly:ue,style:J,position:se,isOpen:B,defaultIsOpen:X,border:pe,opacity:C,arrowColor:I,arrowSize:oe,setIsOpen:R,afterShow:fe,afterHide:ke,disableTooltip:ce,activeAnchor:qe,setActiveAnchor:xt=>ut(xt),role:st};return tt.createElement(p8,{...Fi})});typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||dv({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||dv({css:`
291
+ .styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:var(--rt-arrow-size);height:var(--rt-arrow-size)}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});const y8=e=>{if(!e)return;const n=Ot.getQueryData([Di]);if(!n)return;const i=Ot.getQueryData([Jr,n.currentTeam.id]);return i==null?void 0:i.find(l=>l.id===e)},g8=({content:e,activeAnchor:n})=>{if(!n)return null;const i=n.getAttribute("data-tab-id"),l=mc.get().find(c=>c.id===i),o=y8(l==null?void 0:l.options.dataSourceId);if(!l)return e;const s=()=>{xl("New tab name",l.label).then(c=>{c&&Nb(l.id,c)})};return v.jsxs("div",{children:[v.jsxs("button",{className:gr.tooltipLabel,onClick:s,children:[v.jsxs("div",{className:"max-w-full",children:[v.jsx("p",{className:"text-xs",children:"label"}),v.jsx("p",{className:"truncate font-semibold",children:l.label})]}),v.jsx("span",{children:"✏️"})]}),v.jsxs("div",{className:gr.tooltipInfoEntry,children:[v.jsx("p",{className:"text-sm",children:"table"}),v.jsx("p",{className:"truncate font-semibold",children:l.options.table})]}),o&&v.jsxs("div",{className:gr.tooltipInfoEntry,children:[v.jsxs("p",{className:"text-sm",children:["data source [",o.dbType,"]"]}),v.jsx("p",{className:"truncate font-semibold",children:o.name})]}),l.options.joins.length>0&&v.jsxs("div",{className:gr.tooltipInfoEntry,children:[v.jsx("p",{className:"text-sm",children:"joins"}),v.jsx("p",{className:"font-semibold",children:l.options.joins.map(c=>c.table).join(", ")})]}),l.options.filters.length>0&&v.jsxs("div",{className:gr.tooltipInfoEntry,children:[v.jsx("p",{className:"text-sm",children:"filters"}),l.options.filters.map(c=>v.jsx("p",{className:"truncate font-semibold",children:q6(c)}))]})]})},v8=()=>{const e=vk(),n=hc(),i=E.useMemo(()=>{if(!n)return;const f=n.find(h=>h.id===e);return f||n[0]},[e,n]),l=f=>Oh(f),o=f=>{f.button===1&&Oh(f.currentTarget.dataset.tabId)},s=f=>{const h=n.find(d=>d.id===f);xl("New tab name",h==null?void 0:h.label).then(d=>{d&&Nb(f,d)})},c=E.useCallback(f=>{pc(h=>h.map(d=>d.id!==i.id?d:{...d,options:f(d.options)}))},[i]);return n.length<1?v.jsx(vC,{to:"/"}):v.jsxs("div",{className:"h-screen max-h-screen bg-gray-50 flex flex-col",children:[v.jsx(dw,{id:"tab",render:g8,className:"z-10 shadow-md",offset:0,noArrow:!0,opacity:1,variant:"light",clickable:!0,delayShow:500}),v.jsx("div",{className:gr.tabs,children:n==null?void 0:n.map(f=>v.jsxs("div",{className:Be(gr.tab,f.id===(i==null?void 0:i.id)&&gr.active),"data-tab-id":f.id,"data-tooltip-id":"tab","data-tooltip-content":f.label,onAuxClick:o,onContextMenu:h=>{h.preventDefault(),s(f.id)},children:[v.jsxs("button",{className:"cursor-pointer truncate w-full",onClick:()=>cp(f.id),children:["📄 ",f.label]}),v.jsx("button",{className:gr.closeButton,onClick:()=>l(f.id),children:v.jsx(Bi,{width:20,height:20})}),f.id===(i==null?void 0:i.id)&&v.jsx("span",{className:gr.activeTab})]},f.id))}),i&&v.jsx(Wx,{updater:c,options:i.options,name:i.label})]})},b8=()=>{const e=y5(),n=E.useCallback(i=>{Up(l=>l?{...l,options:i(l.options)}:(Zr.error("Something went wrong."),l))},[]);return e?v.jsxs(nn,{isVisible:!0,onClose:Vh,children:[v.jsx(Gn,{onClick:Vh}),v.jsx(Wx,{className:"border border-gray-200 bg-gray-50",name:e.label,options:e.options,updater:n})]}):null},[x8,Go]=Er(void 0),w8="_root_3objn_2",S8="_down_3objn_2",C8="_chevron_3objn_2",E8="_table-name-container_3objn_2",k8="_link_3objn_2",T8="_table-name_3objn_2",A8="_ul_3objn_2",_8="_column-type_3objn_2",Yr={root:w8,down:S8,chevron:C8,tableNameContainer:E8,link:k8,tableName:T8,ul:A8,columnType:_8},O8=new Intl.DateTimeFormat("en",{dateStyle:"full",timeStyle:"long"});function R8(e,n){if(n&&e.toLowerCase().includes(n))return"bg-yellow-200"}const N8=({insp:e,filter:n,expanded:i})=>{const l=E.useMemo(()=>i||n.length<1?e.columns:e.columns.filter(o=>o.name.toLowerCase().includes(n)),[e,n,i]);return v.jsx("ul",{className:Yr.ul,children:l.map(o=>v.jsxs(v.Fragment,{children:[v.jsxs("li",{children:[o.isPrimary?"🔐":"🏷️"," ",v.jsx("span",{className:R8(o.name,n),children:o.name})," ",v.jsxs("span",{className:Yr.columnType,children:["[",o.type,"]"]})]},o.name+o.type),o.ref&&v.jsxs("li",{className:"pl-4",children:["🔗 ",v.jsxs("span",{className:Yr.columnType,children:[o.ref.table,".",o.ref.field]})]},o.name+o.ref.field+o.ref.table)]}))},e.id)};function j8({id:e}){const{data:n}=Cb(e),{data:i}=Aa(e),l=zi(),{pathname:o}=vn(),s=b4(),c=Eb(),f=x4(),h=E.useMemo(()=>n!=null&&n.lastInspected?O8.format(new Date(n.lastInspected)):"--",[n]),[d,y]=E.useState({}),[g,x]=E.useState(""),b=g.toLowerCase(),w=E.useMemo(()=>{if(!b||!i)return i||[];const z=[];for(const q of i){if(q.tableName.toLowerCase().includes(b)){z.push(q);continue}q.columns.findIndex(M=>M.name.toLowerCase().includes(b))>=0&&z.push(q)}return z},[b,i]),T=z=>{y(q=>({...q,[z]:!q[z]}))},_=z=>{Vo(z,{table:z,dataSourceId:e},!0),Go(void 0),o!==_t.workbench.path&&l(_t.workbench.path),dt.event("On open table [Datasource modal]")},A=()=>{c.mutate(e),dt.event("On inspect [Datasource modal]")},N=async()=>{const z=await xl("Enter name",n==null?void 0:n.name);z&&s.mutate({id:e,dataSource:{name:z}})},O=async()=>{await sj("Are you sure you want to delete this data source?")&&(f.mutate(e),Go(void 0),dt.event("On delete [Datasource modal]"))};return v.jsxs("div",{className:Yr.root,children:[v.jsxs("h1",{className:"page-head flex gap-2 items-center",children:[n&&v.jsx(jh,{size:32,type:n.dbType}),v.jsx("span",{children:n==null?void 0:n.name})]}),v.jsx("p",{className:"mt-1 text-sm font-semibold",children:h}),v.jsxs("div",{className:"mt-2 flex gap-2",children:[v.jsx("button",{disabled:c.isLoading,onClick:A,className:"button tertiary flex items-center gap-1",children:"Refresh schema"}),v.jsx("button",{disabled:c.isLoading,onClick:N,className:"button tertiary",children:"Rename"}),v.jsx("button",{disabled:c.isLoading,onClick:O,className:"button tertiary",children:"Delete"})]}),v.jsx("input",{className:"input w-full mb-2 mt-4 bg-gray-50",placeholder:"Search table/column",value:g,onChange:z=>x(z.target.value),autoFocus:!0}),v.jsx("div",{className:"overflow-y-auto",children:w==null?void 0:w.map(z=>v.jsxs("div",{children:[v.jsxs("div",{className:Yr.tableNameContainer,children:[v.jsx("button",{className:Be(Yr.chevron,d[z.id]&&Yr.down),onClick:()=>T(z.id),children:v.jsx(Zx,{width:16,height:16})}),v.jsx("button",{className:Be(Yr.tableName,"flex-1"),onClick:()=>T(z.id),children:z.tableName}),v.jsx("button",{className:Yr.link,onClick:()=>_(z.tableName),children:"open"})]}),(d[z.id]||g.length>0)&&v.jsx(N8,{insp:z,filter:b,expanded:d[z.id]})]},z.id))})]})}const D8=()=>{const e=x8(),[n,i]=E.useState(void 0);E.useEffect(()=>{e&&i(e)},[e]);const l=()=>Go(void 0);return v.jsxs(nn,{isVisible:e!=null,onClose:l,onClosed:()=>i(void 0),backdropClose:!0,children:[v.jsx(Gn,{onClick:l}),n&&v.jsx(j8,{id:n})]})},M8="_root_l15sg_1",z8={root:M8};function L8(e,n=500){const[i,l]=E.useState(e);return E.useEffect(()=>{const o=setTimeout(()=>l(e),n);return()=>clearTimeout(o)},[e,n]),i}const U8="_search_tx9rw_2",B8="_entry_tx9rw_2",vv={search:U8,entry:B8},q8={table:"📄",query:"📖"},H8=({onTable:e,onQuery:n,autoFocus:i})=>{const[l,o]=E.useState(""),[s,c]=E.useState(-1),f=L8(l),{data:h}=Li(),{data:d}=p4(f,h==null?void 0:h.currentTeam.id),y=b=>{b.type==="table"?e(b.name,b.dataSourceId):b.type==="query"&&n(b.id,b.dataSourceId)},g=b=>{var w;d&&(b.key==="ArrowDown"?(b.preventDefault(),c(T=>(T+1)%d.length)):b.key==="ArrowUp"?(b.preventDefault(),c(T=>(T-1+d.length)%d.length)):b.key==="Enter"&&s>=0&&(w=d[s])!=null&&w.name&&(b.preventDefault(),y(d[s])))},x=b=>{const w=b.currentTarget.dataset.tableId,T=d==null?void 0:d.find(_=>_.id===w);T&&y(T)};return v.jsxs(v.Fragment,{children:[v.jsx("input",{className:vv.search,placeholder:"Search table or saved query to start from",value:l,onChange:b=>o(b.target.value),onKeyDown:g,autoFocus:i}),Yx(d==null?void 0:d.length,0)&&v.jsx("div",{className:"overflow-y-auto max-h-full mt-2",children:d.map((b,w)=>v.jsxs("button",{className:vv.entry,"data-is-active":s===w,"data-table-id":b.id,onClick:x,children:[v.jsxs("p",{className:"font-semibold",children:[q8[b.type]," ",b.name]}),v.jsxs("p",{className:"text-xs text-blue-600",children:["📦 ",b.dataSourceName]})]},b.id))})]})},F8=()=>{const e=Nk(),n=(o,s)=>{e==null||e.onConfirm("table",o,s)},i=(o,s)=>{e==null||e.onConfirm("query",o,s)},l=()=>{e==null||e.onCancel()};return v.jsxs(nn,{isVisible:!!e,onClose:l,children:[v.jsx(Gn,{onClick:l}),v.jsx("div",{className:z8.root,children:v.jsx(H8,{autoFocus:!0,onTable:n,onQuery:i})})]})},Q8=()=>{const e=vn();E.useEffect(()=>{dt.pageView()},[e.pathname])},bv=e=>{const[n]=e.split("-");return n.split(".").map(Number)},P8=(e,n)=>{const i=bv(e),l=bv(n);for(let o=0;o<3;o++){const s=i[o]||0,c=l[o]||0;if(s>c)return 1;if(s<c)return-1}return 0},I8=`### ⚠️ You are running an outdated local server version.
292
+
293
+ Please update your local server version to **0.0.48**
294
+
295
+ ### 🔧 Update Command
296
+
297
+ Update \`@dataramen/cli\` library:
298
+
299
+ \`\`\`bash
300
+ npm i -g @dataramen/cli
301
+ \`\`\`
302
+
303
+ After the update, re-run your local server:
304
+
305
+ \`\`\`bash
306
+ dataramen start
307
+ \`\`\`
308
+
309
+ Once done, click on the "Check again" button below or refresh the page.
310
+ `,V8=()=>{const{data:e,refetch:n}=jp();return!(e!=null&&e.active)||P8(e.version,"0.0.48")===0?null:v.jsx(nn,{isVisible:!0,onClose:()=>null,children:v.jsxs("div",{children:[v.jsx(Ju,{content:I8}),v.jsx("div",{className:"flex justify-end mt-2",children:v.jsx("button",{className:"button primary",onClick:()=>n(),children:"Check again"})})]})})};function $8(){return oD(),Q8(),v.jsxs(v.Fragment,{children:[v.jsxs(xC,{children:[v.jsx(ph,{path:_t.home.path,element:v.jsx(N6,{})}),v.jsx(ph,{path:_t.workbench.path,element:v.jsx(v8,{})})]}),v.jsx(Ik,{target:Nh.settings.path,children:v.jsx(L6,{})}),v.jsx(b8,{}),v.jsx(X6,{}),v.jsx(aj,{}),v.jsx(xj,{}),v.jsx(Ej,{}),v.jsx(D8,{}),v.jsx(F8,{}),v.jsx(mj,{}),v.jsx(cj,{}),v.jsx(V8,{})]})}const Y8="_layout_1605n_2",K8="_nav_1605n_2",G8="_main_1605n_2",X8="_footer_1605n_2",nc={layout:Y8,nav:K8,main:G8,footer:X8},Z8="_container_1ri7t_2",J8="_file_1ri7t_2",W8="_menu_1ri7t_2",da={container:Z8,file:J8,menu:W8},e9=({name:e,id:n,onRename:i,onDelete:l,onOpen:o})=>{const s=Qx();return v.jsxs("button",{className:da.file,onContextMenu:s.open,onClick:()=>o(n),children:[v.jsx(Vx,{handler:s,children:v.jsxs("div",{className:"context-menu-container",children:[v.jsx("button",{onClick:()=>{s.close(),i(n)},className:"context-menu-item",children:"✏️ Rename"}),v.jsx("button",{onClick:()=>{s.close(),l(n)},className:"context-menu-item",children:"🗑️ Delete"})]})}),v.jsxs("span",{children:["📖 ",e]})]})},t9=({name:e,id:n,index:i})=>{const l=`📦 ${e}`,o=()=>{Go(n),dt.event("On open datasource [Sidebar]")};return br(i.toString(),()=>{Go(s=>{if(s!==n)return n}),dt.event("On open datasource [Hotkey]")},l),v.jsxs("button",{className:da.menu,onClick:o,children:[v.jsx("span",{children:l}),v.jsx("span",{className:"hotkey",children:i})]})},n9=()=>{const e=hc(x=>x.length>0),n=zi(),i=vn(),l=fp("Sidebar"),{data:o}=Li(),{data:s}=d4(o==null?void 0:o.currentTeam.id),c=iD(),f=x=>{Db(x).then(b=>{Vo(b.name,ma(b.opts),!0),i.pathname!==_t.workbench.path&&n(_t.workbench.path)}),dt.event("On open query [Sidebar]")},h=async x=>{const b=s==null?void 0:s.find(T=>T.id===x),w=await xl("New name?",b==null?void 0:b.name);w&&c.mutate({id:x,payload:{name:w}})},d=x=>{c.mutate({id:x,payload:{isTrash:!0}})},y=()=>{e?i.pathname!==_t.workbench.path&&n(_t.workbench.path):l(),dt.event("On open workbench [Sidebar]")};let g=1;return v.jsxs("div",{className:da.container,children:[v.jsxs("div",{className:"mb-4",children:[v.jsxs("button",{onClick:()=>n(_t.home.path),className:da.menu,children:[v.jsx("span",{children:_t.home.name}),v.jsx("span",{className:"hotkey",children:"H"})]}),v.jsxs("button",{disabled:!o,onClick:l,className:da.menu,children:[v.jsx("span",{children:"🔎 Start new query"}),v.jsx("span",{className:"hotkey",children:"N"})]}),v.jsxs("button",{disabled:!o,onClick:y,className:da.menu,children:[v.jsx("span",{children:"🛠️ Workbench"}),v.jsx("span",{className:"hotkey",children:"W"})]})]}),v.jsx("div",{className:"flex-1 overflow-y-auto",children:s==null?void 0:s.map(x=>{switch(x.type){case"query":return v.jsx(e9,{onDelete:d,onRename:h,onOpen:f,name:x.name,id:x.id},x.id);case"dataSource":return v.jsx(t9,{name:x.name,id:x.id,index:g++},x.id);default:return null}})})]})},r9=({resizeDirection:e,onSizeChange:n})=>{const i=E.useRef(null),l=E.useRef(null);return E.useEffect(()=>{var s;function o(c){const f=i.current.getBoundingClientRect(),h={x:c.pageX,y:c.pageY};function d(g){{let x;x=g.pageX-h.x,i.current.style.width=`${f.width+x}px`}n&&i.current&&n(i.current)}function y(){document.body.removeEventListener("mousemove",d),document.body.removeEventListener("mouseleave",d)}document.body.addEventListener("mousemove",d),document.body.addEventListener("mouseup",y),document.body.addEventListener("mouseleave",y)}(s=l==null?void 0:l.current)==null||s.addEventListener("mousedown",o),n&&i.current&&n(i.current)}),{elementRef:i,handleRef:l}},i9=()=>{const{open:e}=dp(),{data:n}=Li(),{elementRef:i,handleRef:l}=r9({resizeDirection:"horizontal-r"}),o=()=>{qx(!0),dt.event("Open contacts")},s=()=>{e(Nh.settings.path),dt.event("Open settings")};return v.jsxs("nav",{className:nc.nav,ref:i,children:[v.jsx("div",{ref:l,className:"hr-slide"}),v.jsx(n9,{}),v.jsxs("div",{className:nc.footer,children:[v.jsx("button",{onClick:o,children:"💬 Contacts"}),v.jsx("button",{onClick:s,disabled:!n,children:Nh.settings.name})]})]})},xv=e=>window.matchMedia(e).matches;function l9(e,{defaultValue:n=!1,initializeWithValue:i=!0}={}){const[l,o]=E.useState(()=>i?xv(e):n);return E.useLayoutEffect(()=>{const s=window.matchMedia(e);function c(){o(()=>xv(e))}return c(),s.addListener?s.addListener(c):s.addEventListener("change",c),()=>{s.removeListener?s.removeListener(c):s.removeEventListener("change",c)}},[e]),l}const a9=({children:e})=>{const n=l9("(min-width: 768px)");return v.jsxs("div",{className:nc.layout,children:[n&&v.jsx(i9,{}),v.jsx("main",{className:nc.main,children:e})]})};_2.createRoot(document.getElementById("root")).render(v.jsxs(tt.StrictMode,{children:[v.jsx(gk,{}),v.jsx(dw,{id:"default",className:"z-100"}),v.jsx(TE,{client:Ot,children:v.jsx(IC,{children:v.jsx(a9,{children:v.jsx($8,{})})})})]}));