@malloy-publisher/server 0.0.118 → 0.0.119
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.
- package/dist/app/assets/HomePage-BxFnfH3M.js +1 -0
- package/dist/app/assets/MainPage-D301Y0mT.js +2 -0
- package/dist/app/assets/{ModelPage-CTrGQfsf.js → ModelPage-Df8ivC1J.js} +1 -1
- package/dist/app/assets/PackagePage-CE41SCV_.js +1 -0
- package/dist/app/assets/ProjectPage-DA66xbmQ.js +1 -0
- package/dist/app/assets/{RouteError-BgsaIu4c.js → RouteError-l_WGtNhS.js} +1 -1
- package/dist/app/assets/WorkbookPage-CY-1oBvt.js +1 -0
- package/dist/app/assets/{index-bIu6ohLf.js → index-D5BBaLz8.js} +1 -1
- package/dist/app/assets/index-DjbXd602.js +445 -0
- package/dist/app/assets/{index-BZ_1Ar9v.js → index-DlZbNvNc.js} +1 -1
- package/dist/app/assets/{index.umd-9JpsJxlU.js → index.umd-DQiSWsWe.js} +1 -1
- package/dist/app/index.html +1 -1
- package/package.json +4 -1
- package/dist/app/assets/HomePage-ds2gUb3z.js +0 -1
- package/dist/app/assets/MainPage-arikDX4e.js +0 -1
- package/dist/app/assets/PackagePage-D8L11ZP_.js +0 -1
- package/dist/app/assets/ProjectPage-Dj8Z5I0J.js +0 -1
- package/dist/app/assets/WorkbookPage-McJT5YnW.js +0 -1
- package/dist/app/assets/index-CbVGARSr.js +0 -445
|
@@ -1,445 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-bIu6ohLf.js","assets/index-BZ_1Ar9v.js","assets/index.umd-9JpsJxlU.js","assets/angular-html-D3aW1y6T.es-CRu3QO-y.js","assets/html-PSPajZka.es-BayZgXUb.js","assets/javascript-fa8UlHZE.es-ySlJ1b_l.js","assets/css-D1aVdRIU.es-BPhBrDlE.js","assets/angular-ts-Jud40GrY.es-ZQeME4ih.js","assets/scss-B_hSZppj.es-BurBaP11.js","assets/apl-pE3PRTDr.es-CQSepgku.js","assets/xml-Ch1q_kJp.es-af2B2Zxm.js","assets/java-B7odJ7Ap.es-xI-RfyKK.js","assets/json-71t8ZF9g.es-BQoSv7ci.js","assets/astro-Be6fybGX.es-fPsVT2Pm.js","assets/typescript-buWNZFwO.es-Dj6nwHGl.js","assets/postcss-BZ3MNRIJ.es-B3ZDOciz.js","assets/blade-DmXp5Zcz.es-D3zQbxlG.js","assets/sql-DCkt643-.es-COK4E0Yg.js","assets/bsl-NPX_d-bb.es-CKrxbqO6.js","assets/sdbl-BBamrXFL.es-BLhTXw86.js","assets/cairo-17kO8-kb.es-N2Uzg40c.js","assets/python-xYxLFJY-.es-DhUJRlN_.js","assets/cobol-BzcJm6ie.es-BWBq31KV.js","assets/coffee-q2iaxUnQ.es-B85jwlP6.js","assets/cpp-CPQtoCcU.es-D1V2BO11.js","assets/regexp-GiFkbxS-.es-DWJ3fJO_.js","assets/glsl-BYTq1Tfl.es-ELtdM8O0.js","assets/c-DASdrs7p.es-C3t2pwGQ.js","assets/crystal-BY_Cg265.es-H3j-N6XT.js","assets/shellscript-Dn0-btNd.es-atvbtKCR.js","assets/edge-DI6_BHKG.es-CysQ3joS.js","assets/html-derivative-Brb3b4aI.es-BOeRDW72.js","assets/elixir-ic9y5jcd.es-BhdVfZIc.js","assets/elm-DxnUqUaW.es-BM2_y8XT.js","assets/erb-Cbj2YePa.es-DRu4t7o3.js","assets/ruby-cs7BSa_9.es-CPbNUT0O.js","assets/haml-4TJ757dz.es-DgP9dPqU.js","assets/graphql-g3nHRc0M.es-DSxiSR3X.js","assets/jsx-Bkesy5tT.es-BAng5TT0.js","assets/tsx-DiGsgWT8.es-B6W0miNI.js","assets/lua-DeXVjwzF.es-Dr4fCD2G.js","assets/yaml-Bbg74JKr.es-CVw76BM1.js","assets/fortran-fixed-form-DECY15PY.es-DU-ZL2d9.js","assets/fortran-free-form-CNDsBFUj.es-DKXYxT9g.js","assets/fsharp-D2ZqviWP.es-BxlBxsP5.js","assets/markdown-B6guhLWd.es-UIAJJxZW.js","assets/gdresource-RIsK8sku.es-B20oF6eU.js","assets/gdshader-BGJEsM2Z.es-SKMF96pI.js","assets/gdscript-D7aheHm-.es-DfxzS6Rs.js","assets/git-commit-BRJ1E4Bx.es-BbGpbqw6.js","assets/diff-XmNrvgM1.es-BgYniUM_.js","assets/git-rebase-C3X7aMpn.es-BtbFLN_-.js","assets/glimmer-js-C4MQf3Na.es-BEVrinj1.js","assets/glimmer-ts-CoYpqZrZ.es-BREYyOZ9.js","assets/hack-wPAsyujS.es-BZgRSYeF.js","assets/handlebars-7GDLw__F.es-9gasINI1.js","assets/http-CWBcr-Ch.es-BydQIEc3.js","assets/hxml-DLduiIv3.es-KtyOMmRZ.js","assets/haxe-CZZ33vZw.es-C5wWYbrZ.js","assets/imba-BEYqRZzB.es-CMdLgtbc.js","assets/jinja-DKLHYjK0.es-Bc5vrI9a.js","assets/jison-CzPfUIvM.es-FIbl5Mke.js","assets/julia-B_r6juN7.es-UTBdB3hN.js","assets/r-F-9I-ITZ.es-CwjWoCRV.js","assets/latex-GxBxlqbc.es-BIcleNUg.js","assets/tex-B0y3cEZp.es-sNFHINbC.js","assets/liquid-BxBkR-z5.es-BPU8qCnT.js","assets/marko-DwPYPpB3.es-DWcUhJ8-.js","assets/less-DQA4v-Nm.es-BfCpw3nA.js","assets/mdc-X4YjkufV.es-CkjSLJEI.js","assets/nginx-ChI-VqNT.es-DWZcbbz-.js","assets/nim-BiJA-5u7.es-znXiz4wV.js","assets/perl-CkXYjL3t.es-BGcPZ9HO.js","assets/php-q40Yjh5d.es-BkXnuPYP.js","assets/pug-Br4hpvIv.es-DSNbVJpq.js","assets/qml-D5gi21kK.es-DPPvKkcg.js","assets/razor-Bt_t1YJb.es-CZnAzo4o.js","assets/csharp-CYWRhZ2R.es-D9R-vmeu.js","assets/rst-BmKw97ch.es-CR4pK9fb.js","assets/cmake-Dr-A3iJx.es-DbXoA79R.js","assets/sas-DgvHx4mL.es-CucEgNpN.js","assets/shaderlab-U9mqcu_f.es-BbQCwWDD.js","assets/hlsl-3-lv4gi7.es-ifBTmRxC.js","assets/shellsession-LvXGClmj.es-BA33EWkN.js","assets/soy-C0yEn39K.es-BwliuvcW.js","assets/sparql-CuZaxpno.es-DA2vjzn9.js","assets/turtle-BJ2wmjPc.es-BMR_PYu6.js","assets/stata-Dv81f34z.es-CMwo8ydZ.js","assets/svelte-SoJd35Jr.es-CClskEeK.js","assets/templ-C7he2afp.es-DoaZGgQ7.js","assets/go-BErP6iv1.es-B1SYOhNW.js","assets/ts-tags-C5-4VQhf.es-BAFqzONk.js","assets/twig-OmkATFdv.es-Bjz-OhEW.js","assets/vue-DCwwWMGI.es-Ctq8hiPI.js","assets/vue-html-sRE_Ny23.es-By6muIb_.js","assets/xsl-DyL8yqXw.es-DIeMqyL3.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
function Lj(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const a=Object.getOwnPropertyDescriptor(r,o);a&&Object.defineProperty(e,o,a.get?a:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();var cTe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function G3(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function uTe(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var gE={exports:{}},$f={};/**
|
|
3
|
-
* @license React
|
|
4
|
-
* react-jsx-runtime.production.js
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var Fw;function Mj(){if(Fw)return $f;Fw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,a){var i=null;if(a!==void 0&&(i=""+a),o.key!==void 0&&(i=""+o.key),"key"in o){a={};for(var l in o)l!=="key"&&(a[l]=o[l])}else a=o;return o=a.ref,{$$typeof:e,type:r,key:i,ref:o!==void 0?o:null,props:a}}return $f.Fragment=t,$f.jsx=n,$f.jsxs=n,$f}var jw;function Fj(){return jw||(jw=1,gE.exports=Mj()),gE.exports}var v=Fj(),yE={exports:{}},jt={};/**
|
|
11
|
-
* @license React
|
|
12
|
-
* react.production.js
|
|
13
|
-
*
|
|
14
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
15
|
-
*
|
|
16
|
-
* This source code is licensed under the MIT license found in the
|
|
17
|
-
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/var Bw;function jj(){if(Bw)return jt;Bw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.iterator;function y(N){return N===null||typeof N!="object"?null:(N=h&&N[h]||N["@@iterator"],typeof N=="function"?N:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,S={};function T(N,K,X){this.props=N,this.context=K,this.refs=S,this.updater=X||g}T.prototype.isReactComponent={},T.prototype.setState=function(N,K){if(typeof N!="object"&&typeof N!="function"&&N!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,N,K,"setState")},T.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function E(){}E.prototype=T.prototype;function A(N,K,X){this.props=N,this.context=K,this.refs=S,this.updater=X||g}var C=A.prototype=new E;C.constructor=A,b(C,T.prototype),C.isPureReactComponent=!0;var D=Array.isArray,I={H:null,A:null,T:null,S:null,V:null},O=Object.prototype.hasOwnProperty;function j(N,K,X,P,J,se){return X=se.ref,{$$typeof:e,type:N,key:K,ref:X!==void 0?X:null,props:se}}function $(N,K){return j(N.type,K,void 0,void 0,void 0,N.props)}function z(N){return typeof N=="object"&&N!==null&&N.$$typeof===e}function L(N){var K={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(X){return K[X]})}var H=/\/+/g;function k(N,K){return typeof N=="object"&&N!==null&&N.key!=null?L(""+N.key):K.toString(36)}function F(){}function B(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(F,F):(N.status="pending",N.then(function(K){N.status==="pending"&&(N.status="fulfilled",N.value=K)},function(K){N.status==="pending"&&(N.status="rejected",N.reason=K)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function G(N,K,X,P,J){var se=typeof N;(se==="undefined"||se==="boolean")&&(N=null);var ne=!1;if(N===null)ne=!0;else switch(se){case"bigint":case"string":case"number":ne=!0;break;case"object":switch(N.$$typeof){case e:case t:ne=!0;break;case p:return ne=N._init,G(ne(N._payload),K,X,P,J)}}if(ne)return J=J(N),ne=P===""?"."+k(N,0):P,D(J)?(X="",ne!=null&&(X=ne.replace(H,"$&/")+"/"),G(J,K,X,"",function(De){return De})):J!=null&&(z(J)&&(J=$(J,X+(J.key==null||N&&N.key===J.key?"":(""+J.key).replace(H,"$&/")+"/")+ne)),K.push(J)),1;ne=0;var be=P===""?".":P+":";if(D(N))for(var fe=0;fe<N.length;fe++)P=N[fe],se=be+k(P,fe),ne+=G(P,K,X,se,J);else if(fe=y(N),typeof fe=="function")for(N=fe.call(N),fe=0;!(P=N.next()).done;)P=P.value,se=be+k(P,fe++),ne+=G(P,K,X,se,J);else if(se==="object"){if(typeof N.then=="function")return G(B(N),K,X,P,J);throw K=String(N),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return ne}function U(N,K,X){if(N==null)return N;var P=[],J=0;return G(N,P,"","",function(se){return K.call(X,se,J++)}),P}function Q(N){if(N._status===-1){var K=N._result;K=K(),K.then(function(X){(N._status===0||N._status===-1)&&(N._status=1,N._result=X)},function(X){(N._status===0||N._status===-1)&&(N._status=2,N._result=X)}),N._status===-1&&(N._status=0,N._result=K)}if(N._status===1)return N._result.default;throw N._result}var Y=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)};function oe(){}return jt.Children={map:U,forEach:function(N,K,X){U(N,function(){K.apply(this,arguments)},X)},count:function(N){var K=0;return U(N,function(){K++}),K},toArray:function(N){return U(N,function(K){return K})||[]},only:function(N){if(!z(N))throw Error("React.Children.only expected to receive a single React element child.");return N}},jt.Component=T,jt.Fragment=n,jt.Profiler=o,jt.PureComponent=A,jt.StrictMode=r,jt.Suspense=u,jt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,jt.__COMPILER_RUNTIME={__proto__:null,c:function(N){return I.H.useMemoCache(N)}},jt.cache=function(N){return function(){return N.apply(null,arguments)}},jt.cloneElement=function(N,K,X){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var P=b({},N.props),J=N.key,se=void 0;if(K!=null)for(ne in K.ref!==void 0&&(se=void 0),K.key!==void 0&&(J=""+K.key),K)!O.call(K,ne)||ne==="key"||ne==="__self"||ne==="__source"||ne==="ref"&&K.ref===void 0||(P[ne]=K[ne]);var ne=arguments.length-2;if(ne===1)P.children=X;else if(1<ne){for(var be=Array(ne),fe=0;fe<ne;fe++)be[fe]=arguments[fe+2];P.children=be}return j(N.type,J,void 0,void 0,se,P)},jt.createContext=function(N){return N={$$typeof:i,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:a,_context:N},N},jt.createElement=function(N,K,X){var P,J={},se=null;if(K!=null)for(P in K.key!==void 0&&(se=""+K.key),K)O.call(K,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(J[P]=K[P]);var ne=arguments.length-2;if(ne===1)J.children=X;else if(1<ne){for(var be=Array(ne),fe=0;fe<ne;fe++)be[fe]=arguments[fe+2];J.children=be}if(N&&N.defaultProps)for(P in ne=N.defaultProps,ne)J[P]===void 0&&(J[P]=ne[P]);return j(N,se,void 0,void 0,null,J)},jt.createRef=function(){return{current:null}},jt.forwardRef=function(N){return{$$typeof:l,render:N}},jt.isValidElement=z,jt.lazy=function(N){return{$$typeof:p,_payload:{_status:-1,_result:N},_init:Q}},jt.memo=function(N,K){return{$$typeof:d,type:N,compare:K===void 0?null:K}},jt.startTransition=function(N){var K=I.T,X={};I.T=X;try{var P=N(),J=I.S;J!==null&&J(X,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(oe,Y)}catch(se){Y(se)}finally{I.T=K}},jt.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},jt.use=function(N){return I.H.use(N)},jt.useActionState=function(N,K,X){return I.H.useActionState(N,K,X)},jt.useCallback=function(N,K){return I.H.useCallback(N,K)},jt.useContext=function(N){return I.H.useContext(N)},jt.useDebugValue=function(){},jt.useDeferredValue=function(N,K){return I.H.useDeferredValue(N,K)},jt.useEffect=function(N,K,X){var P=I.H;if(typeof X=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return P.useEffect(N,K)},jt.useId=function(){return I.H.useId()},jt.useImperativeHandle=function(N,K,X){return I.H.useImperativeHandle(N,K,X)},jt.useInsertionEffect=function(N,K){return I.H.useInsertionEffect(N,K)},jt.useLayoutEffect=function(N,K){return I.H.useLayoutEffect(N,K)},jt.useMemo=function(N,K){return I.H.useMemo(N,K)},jt.useOptimistic=function(N,K){return I.H.useOptimistic(N,K)},jt.useReducer=function(N,K,X){return I.H.useReducer(N,K,X)},jt.useRef=function(N){return I.H.useRef(N)},jt.useState=function(N){return I.H.useState(N)},jt.useSyncExternalStore=function(N,K,X){return I.H.useSyncExternalStore(N,K,X)},jt.useTransition=function(){return I.H.useTransition()},jt.version="19.1.1",jt}var Uw;function LT(){return Uw||(Uw=1,yE.exports=jj()),yE.exports}var _=LT();const Fe=G3(_),By=Lj({__proto__:null,default:Fe},[_]);var bE={exports:{}},Gf={},vE={exports:{}},EE={};/**
|
|
19
|
-
* @license React
|
|
20
|
-
* scheduler.production.js
|
|
21
|
-
*
|
|
22
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
23
|
-
*
|
|
24
|
-
* This source code is licensed under the MIT license found in the
|
|
25
|
-
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/var zw;function Bj(){return zw||(zw=1,(function(e){function t(U,Q){var Y=U.length;U.push(Q);e:for(;0<Y;){var oe=Y-1>>>1,N=U[oe];if(0<o(N,Q))U[oe]=Q,U[Y]=N,Y=oe;else break e}}function n(U){return U.length===0?null:U[0]}function r(U){if(U.length===0)return null;var Q=U[0],Y=U.pop();if(Y!==Q){U[0]=Y;e:for(var oe=0,N=U.length,K=N>>>1;oe<K;){var X=2*(oe+1)-1,P=U[X],J=X+1,se=U[J];if(0>o(P,Y))J<N&&0>o(se,P)?(U[oe]=se,U[J]=Y,oe=J):(U[oe]=P,U[X]=Y,oe=X);else if(J<N&&0>o(se,Y))U[oe]=se,U[J]=Y,oe=J;else break e}}return Q}function o(U,Q){var Y=U.sortIndex-Q.sortIndex;return Y!==0?Y:U.id-Q.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var u=[],d=[],p=1,h=null,y=3,g=!1,b=!1,S=!1,T=!1,E=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;function D(U){for(var Q=n(d);Q!==null;){if(Q.callback===null)r(d);else if(Q.startTime<=U)r(d),Q.sortIndex=Q.expirationTime,t(u,Q);else break;Q=n(d)}}function I(U){if(S=!1,D(U),!b)if(n(u)!==null)b=!0,O||(O=!0,k());else{var Q=n(d);Q!==null&&G(I,Q.startTime-U)}}var O=!1,j=-1,$=5,z=-1;function L(){return T?!0:!(e.unstable_now()-z<$)}function H(){if(T=!1,O){var U=e.unstable_now();z=U;var Q=!0;try{e:{b=!1,S&&(S=!1,A(j),j=-1),g=!0;var Y=y;try{t:{for(D(U),h=n(u);h!==null&&!(h.expirationTime>U&&L());){var oe=h.callback;if(typeof oe=="function"){h.callback=null,y=h.priorityLevel;var N=oe(h.expirationTime<=U);if(U=e.unstable_now(),typeof N=="function"){h.callback=N,D(U),Q=!0;break t}h===n(u)&&r(u),D(U)}else r(u);h=n(u)}if(h!==null)Q=!0;else{var K=n(d);K!==null&&G(I,K.startTime-U),Q=!1}}break e}finally{h=null,y=Y,g=!1}Q=void 0}}finally{Q?k():O=!1}}}var k;if(typeof C=="function")k=function(){C(H)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,B=F.port2;F.port1.onmessage=H,k=function(){B.postMessage(null)}}else k=function(){E(H,0)};function G(U,Q){j=E(function(){U(e.unstable_now())},Q)}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(U){U.callback=null},e.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<U?Math.floor(1e3/U):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(U){switch(y){case 1:case 2:case 3:var Q=3;break;default:Q=y}var Y=y;y=Q;try{return U()}finally{y=Y}},e.unstable_requestPaint=function(){T=!0},e.unstable_runWithPriority=function(U,Q){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var Y=y;y=U;try{return Q()}finally{y=Y}},e.unstable_scheduleCallback=function(U,Q,Y){var oe=e.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?oe+Y:oe):Y=oe,U){case 1:var N=-1;break;case 2:N=250;break;case 5:N=1073741823;break;case 4:N=1e4;break;default:N=5e3}return N=Y+N,U={id:p++,callback:Q,priorityLevel:U,startTime:Y,expirationTime:N,sortIndex:-1},Y>oe?(U.sortIndex=Y,t(d,U),n(u)===null&&U===n(d)&&(S?(A(j),j=-1):S=!0,G(I,Y-oe))):(U.sortIndex=N,t(u,U),b||g||(b=!0,O||(O=!0,k()))),U},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(U){var Q=y;return function(){var Y=y;y=Q;try{return U.apply(this,arguments)}finally{y=Y}}}})(EE)),EE}var Hw;function Uj(){return Hw||(Hw=1,vE.exports=Bj()),vE.exports}var xE={exports:{}},qr={};/**
|
|
27
|
-
* @license React
|
|
28
|
-
* react-dom.production.js
|
|
29
|
-
*
|
|
30
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
31
|
-
*
|
|
32
|
-
* This source code is licensed under the MIT license found in the
|
|
33
|
-
* LICENSE file in the root directory of this source tree.
|
|
34
|
-
*/var $w;function zj(){if($w)return qr;$w=1;var e=LT();function t(u){var d="https://react.dev/errors/"+u;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)d+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+u+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function a(u,d,p){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:h==null?null:""+h,children:u,containerInfo:d,implementation:p}}var i=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(u,d){if(u==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return qr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,qr.createPortal=function(u,d){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return a(u,d,null,p)},qr.flushSync=function(u){var d=i.T,p=r.p;try{if(i.T=null,r.p=2,u)return u()}finally{i.T=d,r.p=p,r.d.f()}},qr.preconnect=function(u,d){typeof u=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(u,d))},qr.prefetchDNS=function(u){typeof u=="string"&&r.d.D(u)},qr.preinit=function(u,d){if(typeof u=="string"&&d&&typeof d.as=="string"){var p=d.as,h=l(p,d.crossOrigin),y=typeof d.integrity=="string"?d.integrity:void 0,g=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;p==="style"?r.d.S(u,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:h,integrity:y,fetchPriority:g}):p==="script"&&r.d.X(u,{crossOrigin:h,integrity:y,fetchPriority:g,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},qr.preinitModule=function(u,d){if(typeof u=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var p=l(d.as,d.crossOrigin);r.d.M(u,{crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(u)},qr.preload=function(u,d){if(typeof u=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var p=d.as,h=l(p,d.crossOrigin);r.d.L(u,p,{crossOrigin:h,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})}},qr.preloadModule=function(u,d){if(typeof u=="string")if(d){var p=l(d.as,d.crossOrigin);r.d.m(u,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(u)},qr.requestFormReset=function(u){r.d.r(u)},qr.unstable_batchedUpdates=function(u,d){return u(d)},qr.useFormState=function(u,d,p){return i.H.useFormState(u,d,p)},qr.useFormStatus=function(){return i.H.useHostTransitionStatus()},qr.version="19.1.1",qr}var Gw;function V3(){if(Gw)return xE.exports;Gw=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(t){console.error(t)}}return e(),xE.exports=zj(),xE.exports}/**
|
|
35
|
-
* @license React
|
|
36
|
-
* react-dom-client.production.js
|
|
37
|
-
*
|
|
38
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
39
|
-
*
|
|
40
|
-
* This source code is licensed under the MIT license found in the
|
|
41
|
-
* LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/var Vw;function Hj(){if(Vw)return Gf;Vw=1;var e=Uj(),t=LT(),n=V3();function r(s){var c="https://react.dev/errors/"+s;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)c+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+s+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function a(s){var c=s,f=s;if(s.alternate)for(;c.return;)c=c.return;else{s=c;do c=s,(c.flags&4098)!==0&&(f=c.return),s=c.return;while(s)}return c.tag===3?f:null}function i(s){if(s.tag===13){var c=s.memoizedState;if(c===null&&(s=s.alternate,s!==null&&(c=s.memoizedState)),c!==null)return c.dehydrated}return null}function l(s){if(a(s)!==s)throw Error(r(188))}function u(s){var c=s.alternate;if(!c){if(c=a(s),c===null)throw Error(r(188));return c!==s?null:s}for(var f=s,m=c;;){var x=f.return;if(x===null)break;var w=x.alternate;if(w===null){if(m=x.return,m!==null){f=m;continue}break}if(x.child===w.child){for(w=x.child;w;){if(w===f)return l(x),s;if(w===m)return l(x),c;w=w.sibling}throw Error(r(188))}if(f.return!==m.return)f=x,m=w;else{for(var M=!1,V=x.child;V;){if(V===f){M=!0,f=x,m=w;break}if(V===m){M=!0,m=x,f=w;break}V=V.sibling}if(!M){for(V=w.child;V;){if(V===f){M=!0,f=w,m=x;break}if(V===m){M=!0,m=w,f=x;break}V=V.sibling}if(!M)throw Error(r(189))}}if(f.alternate!==m)throw Error(r(190))}if(f.tag!==3)throw Error(r(188));return f.stateNode.current===f?s:c}function d(s){var c=s.tag;if(c===5||c===26||c===27||c===6)return s;for(s=s.child;s!==null;){if(c=d(s),c!==null)return c;s=s.sibling}return null}var p=Object.assign,h=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),A=Symbol.for("react.consumer"),C=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),L=Symbol.for("react.memo_cache_sentinel"),H=Symbol.iterator;function k(s){return s===null||typeof s!="object"?null:(s=H&&s[H]||s["@@iterator"],typeof s=="function"?s:null)}var F=Symbol.for("react.client.reference");function B(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===F?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case b:return"Fragment";case T:return"Profiler";case S:return"StrictMode";case I:return"Suspense";case O:return"SuspenseList";case z:return"Activity"}if(typeof s=="object")switch(s.$$typeof){case g:return"Portal";case C:return(s.displayName||"Context")+".Provider";case A:return(s._context.displayName||"Context")+".Consumer";case D:var c=s.render;return s=s.displayName,s||(s=c.displayName||c.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case j:return c=s.displayName||null,c!==null?c:B(s.type)||"Memo";case $:c=s._payload,s=s._init;try{return B(s(c))}catch{}}return null}var G=Array.isArray,U=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y={pending:!1,data:null,method:null,action:null},oe=[],N=-1;function K(s){return{current:s}}function X(s){0>N||(s.current=oe[N],oe[N]=null,N--)}function P(s,c){N++,oe[N]=s.current,s.current=c}var J=K(null),se=K(null),ne=K(null),be=K(null);function fe(s,c){switch(P(ne,c),P(se,s),P(J,null),c.nodeType){case 9:case 11:s=(s=c.documentElement)&&(s=s.namespaceURI)?dw(s):0;break;default:if(s=c.tagName,c=c.namespaceURI)c=dw(c),s=fw(c,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}X(J),P(J,s)}function De(){X(J),X(se),X(ne)}function Ce(s){s.memoizedState!==null&&P(be,s);var c=J.current,f=fw(c,s.type);c!==f&&(P(se,s),P(J,f))}function Se(s){se.current===s&&(X(J),X(se)),be.current===s&&(X(be),jf._currentValue=Y)}var ze=Object.prototype.hasOwnProperty,Ne=e.unstable_scheduleCallback,_e=e.unstable_cancelCallback,Ct=e.unstable_shouldYield,At=e.unstable_requestPaint,qe=e.unstable_now,Rt=e.unstable_getCurrentPriorityLevel,ot=e.unstable_ImmediatePriority,tt=e.unstable_UserBlockingPriority,je=e.unstable_NormalPriority,Be=e.unstable_LowPriority,Ut=e.unstable_IdlePriority,Bn=e.log,Ot=e.unstable_setDisableYieldValue,de=null,ye=null;function We(s){if(typeof Bn=="function"&&Ot(s),ye&&typeof ye.setStrictMode=="function")try{ye.setStrictMode(de,s)}catch{}}var Ke=Math.clz32?Math.clz32:En,et=Math.log,St=Math.LN2;function En(s){return s>>>=0,s===0?32:31-(et(s)/St|0)|0}var on=256,Xe=4194304;function xe(s){var c=s&42;if(c!==0)return c;switch(s&-s){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 s&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return s&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return s}}function Te(s,c,f){var m=s.pendingLanes;if(m===0)return 0;var x=0,w=s.suspendedLanes,M=s.pingedLanes;s=s.warmLanes;var V=m&134217727;return V!==0?(m=V&~w,m!==0?x=xe(m):(M&=V,M!==0?x=xe(M):f||(f=V&~s,f!==0&&(x=xe(f))))):(V=m&~w,V!==0?x=xe(V):M!==0?x=xe(M):f||(f=m&~s,f!==0&&(x=xe(f)))),x===0?0:c!==0&&c!==x&&(c&w)===0&&(w=x&-x,f=c&-c,w>=f||w===32&&(f&4194048)!==0)?c:x}function mt(s,c){return(s.pendingLanes&~(s.suspendedLanes&~s.pingedLanes)&c)===0}function lt(s,c){switch(s){case 1:case 2:case 4:case 8:case 64:return c+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 c+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 Zn(){var s=on;return on<<=1,(on&4194048)===0&&(on=256),s}function ao(){var s=Xe;return Xe<<=1,(Xe&62914560)===0&&(Xe=4194304),s}function Br(s){for(var c=[],f=0;31>f;f++)c.push(s);return c}function Rr(s,c){s.pendingLanes|=c,c!==268435456&&(s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0)}function Dr(s,c,f,m,x,w){var M=s.pendingLanes;s.pendingLanes=f,s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0,s.expiredLanes&=f,s.entangledLanes&=f,s.errorRecoveryDisabledLanes&=f,s.shellSuspendCounter=0;var V=s.entanglements,te=s.expirationTimes,pe=s.hiddenUpdates;for(f=M&~f;0<f;){var we=31-Ke(f),Ie=1<<we;V[we]=0,te[we]=-1;var he=pe[we];if(he!==null)for(pe[we]=null,we=0;we<he.length;we++){var ge=he[we];ge!==null&&(ge.lane&=-536870913)}f&=~Ie}m!==0&&ra(s,m,0),w!==0&&x===0&&s.tag!==0&&(s.suspendedLanes|=w&~(M&~c))}function ra(s,c,f){s.pendingLanes|=c,s.suspendedLanes&=~c;var m=31-Ke(c);s.entangledLanes|=c,s.entanglements[m]=s.entanglements[m]|1073741824|f&4194090}function $n(s,c){var f=s.entangledLanes|=c;for(s=s.entanglements;f;){var m=31-Ke(f),x=1<<m;x&c|s[m]&c&&(s[m]|=c),f&=~x}}function io(s){switch(s){case 2:s=1;break;case 8:s=4;break;case 32:s=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:s=128;break;case 268435456:s=134217728;break;default:s=0}return s}function bt(s){return s&=-s,2<s?8<s?(s&134217727)!==0?32:268435456:8:2}function re(){var s=Q.p;return s!==0?s:(s=window.event,s===void 0?32:Iw(s.type))}function le(s,c){var f=Q.p;try{return Q.p=s,c()}finally{Q.p=f}}var me=Math.random().toString(36).slice(2),Oe="__reactFiber$"+me,He="__reactProps$"+me,rt="__reactContainer$"+me,dt="__reactEvents$"+me,at="__reactListeners$"+me,pt="__reactHandles$"+me,vt="__reactResources$"+me,it="__reactMarker$"+me;function ct(s){delete s[Oe],delete s[He],delete s[dt],delete s[at],delete s[pt]}function zt(s){var c=s[Oe];if(c)return c;for(var f=s.parentNode;f;){if(c=f[rt]||f[Oe]){if(f=c.alternate,c.child!==null||f!==null&&f.child!==null)for(s=gw(s);s!==null;){if(f=s[Oe])return f;s=gw(s)}return c}s=f,f=s.parentNode}return null}function hn(s){if(s=s[Oe]||s[rt]){var c=s.tag;if(c===5||c===6||c===13||c===26||c===27||c===3)return s}return null}function qn(s){var c=s.tag;if(c===5||c===26||c===27||c===6)return s.stateNode;throw Error(r(33))}function nr(s){var c=s[vt];return c||(c=s[vt]={hoistableStyles:new Map,hoistableScripts:new Map}),c}function Pt(s){s[it]=!0}var Rn=new Set,Ka={};function jo(s,c){so(s,c),so(s+"Capture",c)}function so(s,c){for(Ka[s]=c,s=0;s<c.length;s++)Rn.add(c[s])}var oa=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]*$"),Vc={},As={};function Oi(s){return ze.call(As,s)?!0:ze.call(Vc,s)?!1:oa.test(s)?As[s]=!0:(Vc[s]=!0,!1)}function Ni(s,c,f){if(Oi(c))if(f===null)s.removeAttribute(c);else{switch(typeof f){case"undefined":case"function":case"symbol":s.removeAttribute(c);return;case"boolean":var m=c.toLowerCase().slice(0,5);if(m!=="data-"&&m!=="aria-"){s.removeAttribute(c);return}}s.setAttribute(c,""+f)}}function Pi(s,c,f){if(f===null)s.removeAttribute(c);else{switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(c);return}s.setAttribute(c,""+f)}}function Lt(s,c,f,m){if(m===null)s.removeAttribute(f);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(f);return}s.setAttributeNS(c,f,""+m)}}var gr,Li;function xo(s){if(gr===void 0)try{throw Error()}catch(f){var c=f.stack.trim().match(/\n( *(at )?)/);gr=c&&c[1]||"",Li=-1<f.stack.indexOf(`
|
|
43
|
-
at`)?" (<anonymous>)":-1<f.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
-
`+gr+s+Li}var Jn=!1;function ks(s,c){if(!s||Jn)return"";Jn=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var m={DetermineComponentFrameRoot:function(){try{if(c){var Ie=function(){throw Error()};if(Object.defineProperty(Ie.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ie,[])}catch(ge){var he=ge}Reflect.construct(s,[],Ie)}else{try{Ie.call()}catch(ge){he=ge}s.call(Ie.prototype)}}else{try{throw Error()}catch(ge){he=ge}(Ie=s())&&typeof Ie.catch=="function"&&Ie.catch(function(){})}}catch(ge){if(ge&&he&&typeof ge.stack=="string")return[ge.stack,he.stack]}return[null,null]}};m.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var x=Object.getOwnPropertyDescriptor(m.DetermineComponentFrameRoot,"name");x&&x.configurable&&Object.defineProperty(m.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var w=m.DetermineComponentFrameRoot(),M=w[0],V=w[1];if(M&&V){var te=M.split(`
|
|
45
|
-
`),pe=V.split(`
|
|
46
|
-
`);for(x=m=0;m<te.length&&!te[m].includes("DetermineComponentFrameRoot");)m++;for(;x<pe.length&&!pe[x].includes("DetermineComponentFrameRoot");)x++;if(m===te.length||x===pe.length)for(m=te.length-1,x=pe.length-1;1<=m&&0<=x&&te[m]!==pe[x];)x--;for(;1<=m&&0<=x;m--,x--)if(te[m]!==pe[x]){if(m!==1||x!==1)do if(m--,x--,0>x||te[m]!==pe[x]){var we=`
|
|
47
|
-
`+te[m].replace(" at new "," at ");return s.displayName&&we.includes("<anonymous>")&&(we=we.replace("<anonymous>",s.displayName)),we}while(1<=m&&0<=x);break}}}finally{Jn=!1,Error.prepareStackTrace=f}return(f=s?s.displayName||s.name:"")?xo(f):""}function bm(s){switch(s.tag){case 26:case 27:case 5:return xo(s.type);case 16:return xo("Lazy");case 13:return xo("Suspense");case 19:return xo("SuspenseList");case 0:case 15:return ks(s.type,!1);case 11:return ks(s.type.render,!1);case 1:return ks(s.type,!0);case 31:return xo("Activity");default:return""}}function vm(s){try{var c="";do c+=bm(s),s=s.return;while(s);return c}catch(f){return`
|
|
48
|
-
Error generating stack: `+f.message+`
|
|
49
|
-
`+f.stack}}function aa(s){switch(typeof s){case"bigint":case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function iA(s){var c=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function D7(s){var c=iA(s)?"checked":"value",f=Object.getOwnPropertyDescriptor(s.constructor.prototype,c),m=""+s[c];if(!s.hasOwnProperty(c)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var x=f.get,w=f.set;return Object.defineProperty(s,c,{configurable:!0,get:function(){return x.call(this)},set:function(M){m=""+M,w.call(this,M)}}),Object.defineProperty(s,c,{enumerable:f.enumerable}),{getValue:function(){return m},setValue:function(M){m=""+M},stopTracking:function(){s._valueTracker=null,delete s[c]}}}}function Em(s){s._valueTracker||(s._valueTracker=D7(s))}function sA(s){if(!s)return!1;var c=s._valueTracker;if(!c)return!0;var f=c.getValue(),m="";return s&&(m=iA(s)?s.checked?"true":"false":s.value),s=m,s!==f?(c.setValue(s),!0):!1}function xm(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}var I7=/[\n"\\]/g;function ia(s){return s.replace(I7,function(c){return"\\"+c.charCodeAt(0).toString(16)+" "})}function pv(s,c,f,m,x,w,M,V){s.name="",M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"?s.type=M:s.removeAttribute("type"),c!=null?M==="number"?(c===0&&s.value===""||s.value!=c)&&(s.value=""+aa(c)):s.value!==""+aa(c)&&(s.value=""+aa(c)):M!=="submit"&&M!=="reset"||s.removeAttribute("value"),c!=null?hv(s,M,aa(c)):f!=null?hv(s,M,aa(f)):m!=null&&s.removeAttribute("value"),x==null&&w!=null&&(s.defaultChecked=!!w),x!=null&&(s.checked=x&&typeof x!="function"&&typeof x!="symbol"),V!=null&&typeof V!="function"&&typeof V!="symbol"&&typeof V!="boolean"?s.name=""+aa(V):s.removeAttribute("name")}function lA(s,c,f,m,x,w,M,V){if(w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(s.type=w),c!=null||f!=null){if(!(w!=="submit"&&w!=="reset"||c!=null))return;f=f!=null?""+aa(f):"",c=c!=null?""+aa(c):f,V||c===s.value||(s.value=c),s.defaultValue=c}m=m??x,m=typeof m!="function"&&typeof m!="symbol"&&!!m,s.checked=V?s.checked:!!m,s.defaultChecked=!!m,M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"&&(s.name=M)}function hv(s,c,f){c==="number"&&xm(s.ownerDocument)===s||s.defaultValue===""+f||(s.defaultValue=""+f)}function qc(s,c,f,m){if(s=s.options,c){c={};for(var x=0;x<f.length;x++)c["$"+f[x]]=!0;for(f=0;f<s.length;f++)x=c.hasOwnProperty("$"+s[f].value),s[f].selected!==x&&(s[f].selected=x),x&&m&&(s[f].defaultSelected=!0)}else{for(f=""+aa(f),c=null,x=0;x<s.length;x++){if(s[x].value===f){s[x].selected=!0,m&&(s[x].defaultSelected=!0);return}c!==null||s[x].disabled||(c=s[x])}c!==null&&(c.selected=!0)}}function cA(s,c,f){if(c!=null&&(c=""+aa(c),c!==s.value&&(s.value=c),f==null)){s.defaultValue!==c&&(s.defaultValue=c);return}s.defaultValue=f!=null?""+aa(f):""}function uA(s,c,f,m){if(c==null){if(m!=null){if(f!=null)throw Error(r(92));if(G(m)){if(1<m.length)throw Error(r(93));m=m[0]}f=m}f==null&&(f=""),c=f}f=aa(c),s.defaultValue=f,m=s.textContent,m===f&&m!==""&&m!==null&&(s.value=m)}function Wc(s,c){if(c){var f=s.firstChild;if(f&&f===s.lastChild&&f.nodeType===3){f.nodeValue=c;return}}s.textContent=c}var O7=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 dA(s,c,f){var m=c.indexOf("--")===0;f==null||typeof f=="boolean"||f===""?m?s.setProperty(c,""):c==="float"?s.cssFloat="":s[c]="":m?s.setProperty(c,f):typeof f!="number"||f===0||O7.has(c)?c==="float"?s.cssFloat=f:s[c]=(""+f).trim():s[c]=f+"px"}function fA(s,c,f){if(c!=null&&typeof c!="object")throw Error(r(62));if(s=s.style,f!=null){for(var m in f)!f.hasOwnProperty(m)||c!=null&&c.hasOwnProperty(m)||(m.indexOf("--")===0?s.setProperty(m,""):m==="float"?s.cssFloat="":s[m]="");for(var x in c)m=c[x],c.hasOwnProperty(x)&&f[x]!==m&&dA(s,x,m)}else for(var w in c)c.hasOwnProperty(w)&&dA(s,w,c[w])}function mv(s){if(s.indexOf("-")===-1)return!1;switch(s){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 N7=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"]]),P7=/^[\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 Sm(s){return P7.test(""+s)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":s}var gv=null;function yv(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var Yc=null,Qc=null;function pA(s){var c=hn(s);if(c&&(s=c.stateNode)){var f=s[He]||null;e:switch(s=c.stateNode,c.type){case"input":if(pv(s,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name),c=f.name,f.type==="radio"&&c!=null){for(f=s;f.parentNode;)f=f.parentNode;for(f=f.querySelectorAll('input[name="'+ia(""+c)+'"][type="radio"]'),c=0;c<f.length;c++){var m=f[c];if(m!==s&&m.form===s.form){var x=m[He]||null;if(!x)throw Error(r(90));pv(m,x.value,x.defaultValue,x.defaultValue,x.checked,x.defaultChecked,x.type,x.name)}}for(c=0;c<f.length;c++)m=f[c],m.form===s.form&&sA(m)}break e;case"textarea":cA(s,f.value,f.defaultValue);break e;case"select":c=f.value,c!=null&&qc(s,!!f.multiple,c,!1)}}}var bv=!1;function hA(s,c,f){if(bv)return s(c,f);bv=!0;try{var m=s(c);return m}finally{if(bv=!1,(Yc!==null||Qc!==null)&&(sg(),Yc&&(c=Yc,s=Qc,Qc=Yc=null,pA(c),s)))for(c=0;c<s.length;c++)pA(s[c])}}function Kd(s,c){var f=s.stateNode;if(f===null)return null;var m=f[He]||null;if(m===null)return null;f=m[c];e:switch(c){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(s=s.type,m=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!m;break e;default:s=!1}if(s)return null;if(f&&typeof f!="function")throw Error(r(231,c,typeof f));return f}var Mi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vv=!1;if(Mi)try{var Xd={};Object.defineProperty(Xd,"passive",{get:function(){vv=!0}}),window.addEventListener("test",Xd,Xd),window.removeEventListener("test",Xd,Xd)}catch{vv=!1}var ws=null,Ev=null,Tm=null;function mA(){if(Tm)return Tm;var s,c=Ev,f=c.length,m,x="value"in ws?ws.value:ws.textContent,w=x.length;for(s=0;s<f&&c[s]===x[s];s++);var M=f-s;for(m=1;m<=M&&c[f-m]===x[w-m];m++);return Tm=x.slice(s,1<m?1-m:void 0)}function Cm(s){var c=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&c===13&&(s=13)):s=c,s===10&&(s=13),32<=s||s===13?s:0}function _m(){return!0}function gA(){return!1}function So(s){function c(f,m,x,w,M){this._reactName=f,this._targetInst=x,this.type=m,this.nativeEvent=w,this.target=M,this.currentTarget=null;for(var V in s)s.hasOwnProperty(V)&&(f=s[V],this[V]=f?f(w):w[V]);return this.isDefaultPrevented=(w.defaultPrevented!=null?w.defaultPrevented:w.returnValue===!1)?_m:gA,this.isPropagationStopped=gA,this}return p(c.prototype,{preventDefault:function(){this.defaultPrevented=!0;var f=this.nativeEvent;f&&(f.preventDefault?f.preventDefault():typeof f.returnValue!="unknown"&&(f.returnValue=!1),this.isDefaultPrevented=_m)},stopPropagation:function(){var f=this.nativeEvent;f&&(f.stopPropagation?f.stopPropagation():typeof f.cancelBubble!="unknown"&&(f.cancelBubble=!0),this.isPropagationStopped=_m)},persist:function(){},isPersistent:_m}),c}var Pl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Am=So(Pl),Zd=p({},Pl,{view:0,detail:0}),L7=So(Zd),xv,Sv,Jd,km=p({},Zd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cv,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==Jd&&(Jd&&s.type==="mousemove"?(xv=s.screenX-Jd.screenX,Sv=s.screenY-Jd.screenY):Sv=xv=0,Jd=s),xv)},movementY:function(s){return"movementY"in s?s.movementY:Sv}}),yA=So(km),M7=p({},km,{dataTransfer:0}),F7=So(M7),j7=p({},Zd,{relatedTarget:0}),Tv=So(j7),B7=p({},Pl,{animationName:0,elapsedTime:0,pseudoElement:0}),U7=So(B7),z7=p({},Pl,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),H7=So(z7),$7=p({},Pl,{data:0}),bA=So($7),G7={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},V7={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"},q7={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function W7(s){var c=this.nativeEvent;return c.getModifierState?c.getModifierState(s):(s=q7[s])?!!c[s]:!1}function Cv(){return W7}var Y7=p({},Zd,{key:function(s){if(s.key){var c=G7[s.key]||s.key;if(c!=="Unidentified")return c}return s.type==="keypress"?(s=Cm(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?V7[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cv,charCode:function(s){return s.type==="keypress"?Cm(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?Cm(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),Q7=So(Y7),K7=p({},km,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vA=So(K7),X7=p({},Zd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cv}),Z7=So(X7),J7=p({},Pl,{propertyName:0,elapsedTime:0,pseudoElement:0}),eF=So(J7),tF=p({},km,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),nF=So(tF),rF=p({},Pl,{newState:0,oldState:0}),oF=So(rF),aF=[9,13,27,32],_v=Mi&&"CompositionEvent"in window,ef=null;Mi&&"documentMode"in document&&(ef=document.documentMode);var iF=Mi&&"TextEvent"in window&&!ef,EA=Mi&&(!_v||ef&&8<ef&&11>=ef),xA=" ",SA=!1;function TA(s,c){switch(s){case"keyup":return aF.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function CA(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var Kc=!1;function sF(s,c){switch(s){case"compositionend":return CA(c);case"keypress":return c.which!==32?null:(SA=!0,xA);case"textInput":return s=c.data,s===xA&&SA?null:s;default:return null}}function lF(s,c){if(Kc)return s==="compositionend"||!_v&&TA(s,c)?(s=mA(),Tm=Ev=ws=null,Kc=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1<c.char.length)return c.char;if(c.which)return String.fromCharCode(c.which)}return null;case"compositionend":return EA&&c.locale!=="ko"?null:c.data;default:return null}}var cF={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 _A(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c==="input"?!!cF[s.type]:c==="textarea"}function AA(s,c,f,m){Yc?Qc?Qc.push(m):Qc=[m]:Yc=m,c=pg(c,"onChange"),0<c.length&&(f=new Am("onChange","change",null,f,m),s.push({event:f,listeners:c}))}var tf=null,nf=null;function uF(s){iw(s,0)}function wm(s){var c=qn(s);if(sA(c))return s}function kA(s,c){if(s==="change")return c}var wA=!1;if(Mi){var Av;if(Mi){var kv="oninput"in document;if(!kv){var RA=document.createElement("div");RA.setAttribute("oninput","return;"),kv=typeof RA.oninput=="function"}Av=kv}else Av=!1;wA=Av&&(!document.documentMode||9<document.documentMode)}function DA(){tf&&(tf.detachEvent("onpropertychange",IA),nf=tf=null)}function IA(s){if(s.propertyName==="value"&&wm(nf)){var c=[];AA(c,nf,s,yv(s)),hA(uF,c)}}function dF(s,c,f){s==="focusin"?(DA(),tf=c,nf=f,tf.attachEvent("onpropertychange",IA)):s==="focusout"&&DA()}function fF(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return wm(nf)}function pF(s,c){if(s==="click")return wm(c)}function hF(s,c){if(s==="input"||s==="change")return wm(c)}function mF(s,c){return s===c&&(s!==0||1/s===1/c)||s!==s&&c!==c}var Bo=typeof Object.is=="function"?Object.is:mF;function rf(s,c){if(Bo(s,c))return!0;if(typeof s!="object"||s===null||typeof c!="object"||c===null)return!1;var f=Object.keys(s),m=Object.keys(c);if(f.length!==m.length)return!1;for(m=0;m<f.length;m++){var x=f[m];if(!ze.call(c,x)||!Bo(s[x],c[x]))return!1}return!0}function OA(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function NA(s,c){var f=OA(s);s=0;for(var m;f;){if(f.nodeType===3){if(m=s+f.textContent.length,s<=c&&m>=c)return{node:f,offset:c-s};s=m}e:{for(;f;){if(f.nextSibling){f=f.nextSibling;break e}f=f.parentNode}f=void 0}f=OA(f)}}function PA(s,c){return s&&c?s===c?!0:s&&s.nodeType===3?!1:c&&c.nodeType===3?PA(s,c.parentNode):"contains"in s?s.contains(c):s.compareDocumentPosition?!!(s.compareDocumentPosition(c)&16):!1:!1}function LA(s){s=s!=null&&s.ownerDocument!=null&&s.ownerDocument.defaultView!=null?s.ownerDocument.defaultView:window;for(var c=xm(s.document);c instanceof s.HTMLIFrameElement;){try{var f=typeof c.contentWindow.location.href=="string"}catch{f=!1}if(f)s=c.contentWindow;else break;c=xm(s.document)}return c}function wv(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c&&(c==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||c==="textarea"||s.contentEditable==="true")}var gF=Mi&&"documentMode"in document&&11>=document.documentMode,Xc=null,Rv=null,of=null,Dv=!1;function MA(s,c,f){var m=f.window===f?f.document:f.nodeType===9?f:f.ownerDocument;Dv||Xc==null||Xc!==xm(m)||(m=Xc,"selectionStart"in m&&wv(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),of&&rf(of,m)||(of=m,m=pg(Rv,"onSelect"),0<m.length&&(c=new Am("onSelect","select",null,c,f),s.push({event:c,listeners:m}),c.target=Xc)))}function Ll(s,c){var f={};return f[s.toLowerCase()]=c.toLowerCase(),f["Webkit"+s]="webkit"+c,f["Moz"+s]="moz"+c,f}var Zc={animationend:Ll("Animation","AnimationEnd"),animationiteration:Ll("Animation","AnimationIteration"),animationstart:Ll("Animation","AnimationStart"),transitionrun:Ll("Transition","TransitionRun"),transitionstart:Ll("Transition","TransitionStart"),transitioncancel:Ll("Transition","TransitionCancel"),transitionend:Ll("Transition","TransitionEnd")},Iv={},FA={};Mi&&(FA=document.createElement("div").style,"AnimationEvent"in window||(delete Zc.animationend.animation,delete Zc.animationiteration.animation,delete Zc.animationstart.animation),"TransitionEvent"in window||delete Zc.transitionend.transition);function Ml(s){if(Iv[s])return Iv[s];if(!Zc[s])return s;var c=Zc[s],f;for(f in c)if(c.hasOwnProperty(f)&&f in FA)return Iv[s]=c[f];return s}var jA=Ml("animationend"),BA=Ml("animationiteration"),UA=Ml("animationstart"),yF=Ml("transitionrun"),bF=Ml("transitionstart"),vF=Ml("transitioncancel"),zA=Ml("transitionend"),HA=new Map,Ov="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(" ");Ov.push("scrollEnd");function Na(s,c){HA.set(s,c),jo(c,[s])}var $A=new WeakMap;function sa(s,c){if(typeof s=="object"&&s!==null){var f=$A.get(s);return f!==void 0?f:(c={value:s,source:c,stack:vm(c)},$A.set(s,c),c)}return{value:s,source:c,stack:vm(c)}}var la=[],Jc=0,Nv=0;function Rm(){for(var s=Jc,c=Nv=Jc=0;c<s;){var f=la[c];la[c++]=null;var m=la[c];la[c++]=null;var x=la[c];la[c++]=null;var w=la[c];if(la[c++]=null,m!==null&&x!==null){var M=m.pending;M===null?x.next=x:(x.next=M.next,M.next=x),m.pending=x}w!==0&&GA(f,x,w)}}function Dm(s,c,f,m){la[Jc++]=s,la[Jc++]=c,la[Jc++]=f,la[Jc++]=m,Nv|=m,s.lanes|=m,s=s.alternate,s!==null&&(s.lanes|=m)}function Pv(s,c,f,m){return Dm(s,c,f,m),Im(s)}function eu(s,c){return Dm(s,null,null,c),Im(s)}function GA(s,c,f){s.lanes|=f;var m=s.alternate;m!==null&&(m.lanes|=f);for(var x=!1,w=s.return;w!==null;)w.childLanes|=f,m=w.alternate,m!==null&&(m.childLanes|=f),w.tag===22&&(s=w.stateNode,s===null||s._visibility&1||(x=!0)),s=w,w=w.return;return s.tag===3?(w=s.stateNode,x&&c!==null&&(x=31-Ke(f),s=w.hiddenUpdates,m=s[x],m===null?s[x]=[c]:m.push(c),c.lane=f|536870912),w):null}function Im(s){if(50<Df)throw Df=0,U1=null,Error(r(185));for(var c=s.return;c!==null;)s=c,c=s.return;return s.tag===3?s.stateNode:null}var tu={};function EF(s,c,f,m){this.tag=s,this.key=f,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Uo(s,c,f,m){return new EF(s,c,f,m)}function Lv(s){return s=s.prototype,!(!s||!s.isReactComponent)}function Fi(s,c){var f=s.alternate;return f===null?(f=Uo(s.tag,c,s.key,s.mode),f.elementType=s.elementType,f.type=s.type,f.stateNode=s.stateNode,f.alternate=s,s.alternate=f):(f.pendingProps=c,f.type=s.type,f.flags=0,f.subtreeFlags=0,f.deletions=null),f.flags=s.flags&65011712,f.childLanes=s.childLanes,f.lanes=s.lanes,f.child=s.child,f.memoizedProps=s.memoizedProps,f.memoizedState=s.memoizedState,f.updateQueue=s.updateQueue,c=s.dependencies,f.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},f.sibling=s.sibling,f.index=s.index,f.ref=s.ref,f.refCleanup=s.refCleanup,f}function VA(s,c){s.flags&=65011714;var f=s.alternate;return f===null?(s.childLanes=0,s.lanes=c,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=f.childLanes,s.lanes=f.lanes,s.child=f.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=f.memoizedProps,s.memoizedState=f.memoizedState,s.updateQueue=f.updateQueue,s.type=f.type,c=f.dependencies,s.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext}),s}function Om(s,c,f,m,x,w){var M=0;if(m=s,typeof s=="function")Lv(s)&&(M=1);else if(typeof s=="string")M=Sj(s,f,J.current)?26:s==="html"||s==="head"||s==="body"?27:5;else e:switch(s){case z:return s=Uo(31,f,c,x),s.elementType=z,s.lanes=w,s;case b:return Fl(f.children,x,w,c);case S:M=8,x|=24;break;case T:return s=Uo(12,f,c,x|2),s.elementType=T,s.lanes=w,s;case I:return s=Uo(13,f,c,x),s.elementType=I,s.lanes=w,s;case O:return s=Uo(19,f,c,x),s.elementType=O,s.lanes=w,s;default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case E:case C:M=10;break e;case A:M=9;break e;case D:M=11;break e;case j:M=14;break e;case $:M=16,m=null;break e}M=29,f=Error(r(130,s===null?"null":typeof s,"")),m=null}return c=Uo(M,f,c,x),c.elementType=s,c.type=m,c.lanes=w,c}function Fl(s,c,f,m){return s=Uo(7,s,m,c),s.lanes=f,s}function Mv(s,c,f){return s=Uo(6,s,null,c),s.lanes=f,s}function Fv(s,c,f){return c=Uo(4,s.children!==null?s.children:[],s.key,c),c.lanes=f,c.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},c}var nu=[],ru=0,Nm=null,Pm=0,ca=[],ua=0,jl=null,ji=1,Bi="";function Bl(s,c){nu[ru++]=Pm,nu[ru++]=Nm,Nm=s,Pm=c}function qA(s,c,f){ca[ua++]=ji,ca[ua++]=Bi,ca[ua++]=jl,jl=s;var m=ji;s=Bi;var x=32-Ke(m)-1;m&=~(1<<x),f+=1;var w=32-Ke(c)+x;if(30<w){var M=x-x%5;w=(m&(1<<M)-1).toString(32),m>>=M,x-=M,ji=1<<32-Ke(c)+x|f<<x|m,Bi=w+s}else ji=1<<w|f<<x|m,Bi=s}function jv(s){s.return!==null&&(Bl(s,1),qA(s,1,0))}function Bv(s){for(;s===Nm;)Nm=nu[--ru],nu[ru]=null,Pm=nu[--ru],nu[ru]=null;for(;s===jl;)jl=ca[--ua],ca[ua]=null,Bi=ca[--ua],ca[ua]=null,ji=ca[--ua],ca[ua]=null}var lo=null,rr=null,mn=!1,Ul=null,Xa=!1,Uv=Error(r(519));function zl(s){var c=Error(r(418,""));throw lf(sa(c,s)),Uv}function WA(s){var c=s.stateNode,f=s.type,m=s.memoizedProps;switch(c[Oe]=s,c[He]=m,f){case"dialog":Wt("cancel",c),Wt("close",c);break;case"iframe":case"object":case"embed":Wt("load",c);break;case"video":case"audio":for(f=0;f<Of.length;f++)Wt(Of[f],c);break;case"source":Wt("error",c);break;case"img":case"image":case"link":Wt("error",c),Wt("load",c);break;case"details":Wt("toggle",c);break;case"input":Wt("invalid",c),lA(c,m.value,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name,!0),Em(c);break;case"select":Wt("invalid",c);break;case"textarea":Wt("invalid",c),uA(c,m.value,m.defaultValue,m.children),Em(c)}f=m.children,typeof f!="string"&&typeof f!="number"&&typeof f!="bigint"||c.textContent===""+f||m.suppressHydrationWarning===!0||uw(c.textContent,f)?(m.popover!=null&&(Wt("beforetoggle",c),Wt("toggle",c)),m.onScroll!=null&&Wt("scroll",c),m.onScrollEnd!=null&&Wt("scrollend",c),m.onClick!=null&&(c.onclick=hg),c=!0):c=!1,c||zl(s)}function YA(s){for(lo=s.return;lo;)switch(lo.tag){case 5:case 13:Xa=!1;return;case 27:case 3:Xa=!0;return;default:lo=lo.return}}function af(s){if(s!==lo)return!1;if(!mn)return YA(s),mn=!0,!1;var c=s.tag,f;if((f=c!==3&&c!==27)&&((f=c===5)&&(f=s.type,f=!(f!=="form"&&f!=="button")||nE(s.type,s.memoizedProps)),f=!f),f&&rr&&zl(s),YA(s),c===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));e:{for(s=s.nextSibling,c=0;s;){if(s.nodeType===8)if(f=s.data,f==="/$"){if(c===0){rr=La(s.nextSibling);break e}c--}else f!=="$"&&f!=="$!"&&f!=="$?"||c++;s=s.nextSibling}rr=null}}else c===27?(c=rr,Gs(s.type)?(s=iE,iE=null,rr=s):rr=c):rr=lo?La(s.stateNode.nextSibling):null;return!0}function sf(){rr=lo=null,mn=!1}function QA(){var s=Ul;return s!==null&&(_o===null?_o=s:_o.push.apply(_o,s),Ul=null),s}function lf(s){Ul===null?Ul=[s]:Ul.push(s)}var zv=K(null),Hl=null,Ui=null;function Rs(s,c,f){P(zv,c._currentValue),c._currentValue=f}function zi(s){s._currentValue=zv.current,X(zv)}function Hv(s,c,f){for(;s!==null;){var m=s.alternate;if((s.childLanes&c)!==c?(s.childLanes|=c,m!==null&&(m.childLanes|=c)):m!==null&&(m.childLanes&c)!==c&&(m.childLanes|=c),s===f)break;s=s.return}}function $v(s,c,f,m){var x=s.child;for(x!==null&&(x.return=s);x!==null;){var w=x.dependencies;if(w!==null){var M=x.child;w=w.firstContext;e:for(;w!==null;){var V=w;w=x;for(var te=0;te<c.length;te++)if(V.context===c[te]){w.lanes|=f,V=w.alternate,V!==null&&(V.lanes|=f),Hv(w.return,f,s),m||(M=null);break e}w=V.next}}else if(x.tag===18){if(M=x.return,M===null)throw Error(r(341));M.lanes|=f,w=M.alternate,w!==null&&(w.lanes|=f),Hv(M,f,s),M=null}else M=x.child;if(M!==null)M.return=x;else for(M=x;M!==null;){if(M===s){M=null;break}if(x=M.sibling,x!==null){x.return=M.return,M=x;break}M=M.return}x=M}}function cf(s,c,f,m){s=null;for(var x=c,w=!1;x!==null;){if(!w){if((x.flags&524288)!==0)w=!0;else if((x.flags&262144)!==0)break}if(x.tag===10){var M=x.alternate;if(M===null)throw Error(r(387));if(M=M.memoizedProps,M!==null){var V=x.type;Bo(x.pendingProps.value,M.value)||(s!==null?s.push(V):s=[V])}}else if(x===be.current){if(M=x.alternate,M===null)throw Error(r(387));M.memoizedState.memoizedState!==x.memoizedState.memoizedState&&(s!==null?s.push(jf):s=[jf])}x=x.return}s!==null&&$v(c,s,f,m),c.flags|=262144}function Lm(s){for(s=s.firstContext;s!==null;){if(!Bo(s.context._currentValue,s.memoizedValue))return!0;s=s.next}return!1}function $l(s){Hl=s,Ui=null,s=s.dependencies,s!==null&&(s.firstContext=null)}function Vr(s){return KA(Hl,s)}function Mm(s,c){return Hl===null&&$l(s),KA(s,c)}function KA(s,c){var f=c._currentValue;if(c={context:c,memoizedValue:f,next:null},Ui===null){if(s===null)throw Error(r(308));Ui=c,s.dependencies={lanes:0,firstContext:c},s.flags|=524288}else Ui=Ui.next=c;return f}var xF=typeof AbortController<"u"?AbortController:function(){var s=[],c=this.signal={aborted:!1,addEventListener:function(f,m){s.push(m)}};this.abort=function(){c.aborted=!0,s.forEach(function(f){return f()})}},SF=e.unstable_scheduleCallback,TF=e.unstable_NormalPriority,Tr={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Gv(){return{controller:new xF,data:new Map,refCount:0}}function uf(s){s.refCount--,s.refCount===0&&SF(TF,function(){s.controller.abort()})}var df=null,Vv=0,ou=0,au=null;function CF(s,c){if(df===null){var f=df=[];Vv=0,ou=W1(),au={status:"pending",value:void 0,then:function(m){f.push(m)}}}return Vv++,c.then(XA,XA),c}function XA(){if(--Vv===0&&df!==null){au!==null&&(au.status="fulfilled");var s=df;df=null,ou=0,au=null;for(var c=0;c<s.length;c++)(0,s[c])()}}function _F(s,c){var f=[],m={status:"pending",value:null,reason:null,then:function(x){f.push(x)}};return s.then(function(){m.status="fulfilled",m.value=c;for(var x=0;x<f.length;x++)(0,f[x])(c)},function(x){for(m.status="rejected",m.reason=x,x=0;x<f.length;x++)(0,f[x])(void 0)}),m}var ZA=U.S;U.S=function(s,c){typeof c=="object"&&c!==null&&typeof c.then=="function"&&CF(s,c),ZA!==null&&ZA(s,c)};var Gl=K(null);function qv(){var s=Gl.current;return s!==null?s:Un.pooledCache}function Fm(s,c){c===null?P(Gl,Gl.current):P(Gl,c.pool)}function JA(){var s=qv();return s===null?null:{parent:Tr._currentValue,pool:s}}var ff=Error(r(460)),e2=Error(r(474)),jm=Error(r(542)),Wv={then:function(){}};function t2(s){return s=s.status,s==="fulfilled"||s==="rejected"}function Bm(){}function n2(s,c,f){switch(f=s[f],f===void 0?s.push(c):f!==c&&(c.then(Bm,Bm),c=f),c.status){case"fulfilled":return c.value;case"rejected":throw s=c.reason,o2(s),s;default:if(typeof c.status=="string")c.then(Bm,Bm);else{if(s=Un,s!==null&&100<s.shellSuspendCounter)throw Error(r(482));s=c,s.status="pending",s.then(function(m){if(c.status==="pending"){var x=c;x.status="fulfilled",x.value=m}},function(m){if(c.status==="pending"){var x=c;x.status="rejected",x.reason=m}})}switch(c.status){case"fulfilled":return c.value;case"rejected":throw s=c.reason,o2(s),s}throw pf=c,ff}}var pf=null;function r2(){if(pf===null)throw Error(r(459));var s=pf;return pf=null,s}function o2(s){if(s===ff||s===jm)throw Error(r(483))}var Ds=!1;function Yv(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qv(s,c){s=s.updateQueue,c.updateQueue===s&&(c.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,callbacks:null})}function Is(s){return{lane:s,tag:0,payload:null,callback:null,next:null}}function Os(s,c,f){var m=s.updateQueue;if(m===null)return null;if(m=m.shared,(xn&2)!==0){var x=m.pending;return x===null?c.next=c:(c.next=x.next,x.next=c),m.pending=c,c=Im(s),GA(s,null,f),c}return Dm(s,m,c,f),Im(s)}function hf(s,c,f){if(c=c.updateQueue,c!==null&&(c=c.shared,(f&4194048)!==0)){var m=c.lanes;m&=s.pendingLanes,f|=m,c.lanes=f,$n(s,f)}}function Kv(s,c){var f=s.updateQueue,m=s.alternate;if(m!==null&&(m=m.updateQueue,f===m)){var x=null,w=null;if(f=f.firstBaseUpdate,f!==null){do{var M={lane:f.lane,tag:f.tag,payload:f.payload,callback:null,next:null};w===null?x=w=M:w=w.next=M,f=f.next}while(f!==null);w===null?x=w=c:w=w.next=c}else x=w=c;f={baseState:m.baseState,firstBaseUpdate:x,lastBaseUpdate:w,shared:m.shared,callbacks:m.callbacks},s.updateQueue=f;return}s=f.lastBaseUpdate,s===null?f.firstBaseUpdate=c:s.next=c,f.lastBaseUpdate=c}var Xv=!1;function mf(){if(Xv){var s=au;if(s!==null)throw s}}function gf(s,c,f,m){Xv=!1;var x=s.updateQueue;Ds=!1;var w=x.firstBaseUpdate,M=x.lastBaseUpdate,V=x.shared.pending;if(V!==null){x.shared.pending=null;var te=V,pe=te.next;te.next=null,M===null?w=pe:M.next=pe,M=te;var we=s.alternate;we!==null&&(we=we.updateQueue,V=we.lastBaseUpdate,V!==M&&(V===null?we.firstBaseUpdate=pe:V.next=pe,we.lastBaseUpdate=te))}if(w!==null){var Ie=x.baseState;M=0,we=pe=te=null,V=w;do{var he=V.lane&-536870913,ge=he!==V.lane;if(ge?(en&he)===he:(m&he)===he){he!==0&&he===ou&&(Xv=!0),we!==null&&(we=we.next={lane:0,tag:V.tag,payload:V.payload,callback:null,next:null});e:{var _t=s,Et=V;he=c;var On=f;switch(Et.tag){case 1:if(_t=Et.payload,typeof _t=="function"){Ie=_t.call(On,Ie,he);break e}Ie=_t;break e;case 3:_t.flags=_t.flags&-65537|128;case 0:if(_t=Et.payload,he=typeof _t=="function"?_t.call(On,Ie,he):_t,he==null)break e;Ie=p({},Ie,he);break e;case 2:Ds=!0}}he=V.callback,he!==null&&(s.flags|=64,ge&&(s.flags|=8192),ge=x.callbacks,ge===null?x.callbacks=[he]:ge.push(he))}else ge={lane:he,tag:V.tag,payload:V.payload,callback:V.callback,next:null},we===null?(pe=we=ge,te=Ie):we=we.next=ge,M|=he;if(V=V.next,V===null){if(V=x.shared.pending,V===null)break;ge=V,V=ge.next,ge.next=null,x.lastBaseUpdate=ge,x.shared.pending=null}}while(!0);we===null&&(te=Ie),x.baseState=te,x.firstBaseUpdate=pe,x.lastBaseUpdate=we,w===null&&(x.shared.lanes=0),Us|=M,s.lanes=M,s.memoizedState=Ie}}function a2(s,c){if(typeof s!="function")throw Error(r(191,s));s.call(c)}function i2(s,c){var f=s.callbacks;if(f!==null)for(s.callbacks=null,s=0;s<f.length;s++)a2(f[s],c)}var iu=K(null),Um=K(0);function s2(s,c){s=Yi,P(Um,s),P(iu,c),Yi=s|c.baseLanes}function Zv(){P(Um,Yi),P(iu,iu.current)}function Jv(){Yi=Um.current,X(iu),X(Um)}var Ns=0,$t=null,Dn=null,yr=null,zm=!1,su=!1,Vl=!1,Hm=0,yf=0,lu=null,AF=0;function dr(){throw Error(r(321))}function e1(s,c){if(c===null)return!1;for(var f=0;f<c.length&&f<s.length;f++)if(!Bo(s[f],c[f]))return!1;return!0}function t1(s,c,f,m,x,w){return Ns=w,$t=c,c.memoizedState=null,c.updateQueue=null,c.lanes=0,U.H=s===null||s.memoizedState===null?G2:V2,Vl=!1,w=f(m,x),Vl=!1,su&&(w=c2(c,f,m,x)),l2(s),w}function l2(s){U.H=Ym;var c=Dn!==null&&Dn.next!==null;if(Ns=0,yr=Dn=$t=null,zm=!1,yf=0,lu=null,c)throw Error(r(300));s===null||Ir||(s=s.dependencies,s!==null&&Lm(s)&&(Ir=!0))}function c2(s,c,f,m){$t=s;var x=0;do{if(su&&(lu=null),yf=0,su=!1,25<=x)throw Error(r(301));if(x+=1,yr=Dn=null,s.updateQueue!=null){var w=s.updateQueue;w.lastEffect=null,w.events=null,w.stores=null,w.memoCache!=null&&(w.memoCache.index=0)}U.H=NF,w=c(f,m)}while(su);return w}function kF(){var s=U.H,c=s.useState()[0];return c=typeof c.then=="function"?bf(c):c,s=s.useState()[0],(Dn!==null?Dn.memoizedState:null)!==s&&($t.flags|=1024),c}function n1(){var s=Hm!==0;return Hm=0,s}function r1(s,c,f){c.updateQueue=s.updateQueue,c.flags&=-2053,s.lanes&=~f}function o1(s){if(zm){for(s=s.memoizedState;s!==null;){var c=s.queue;c!==null&&(c.pending=null),s=s.next}zm=!1}Ns=0,yr=Dn=$t=null,su=!1,yf=Hm=0,lu=null}function To(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return yr===null?$t.memoizedState=yr=s:yr=yr.next=s,yr}function br(){if(Dn===null){var s=$t.alternate;s=s!==null?s.memoizedState:null}else s=Dn.next;var c=yr===null?$t.memoizedState:yr.next;if(c!==null)yr=c,Dn=s;else{if(s===null)throw $t.alternate===null?Error(r(467)):Error(r(310));Dn=s,s={memoizedState:Dn.memoizedState,baseState:Dn.baseState,baseQueue:Dn.baseQueue,queue:Dn.queue,next:null},yr===null?$t.memoizedState=yr=s:yr=yr.next=s}return yr}function a1(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function bf(s){var c=yf;return yf+=1,lu===null&&(lu=[]),s=n2(lu,s,c),c=$t,(yr===null?c.memoizedState:yr.next)===null&&(c=c.alternate,U.H=c===null||c.memoizedState===null?G2:V2),s}function $m(s){if(s!==null&&typeof s=="object"){if(typeof s.then=="function")return bf(s);if(s.$$typeof===C)return Vr(s)}throw Error(r(438,String(s)))}function i1(s){var c=null,f=$t.updateQueue;if(f!==null&&(c=f.memoCache),c==null){var m=$t.alternate;m!==null&&(m=m.updateQueue,m!==null&&(m=m.memoCache,m!=null&&(c={data:m.data.map(function(x){return x.slice()}),index:0})))}if(c==null&&(c={data:[],index:0}),f===null&&(f=a1(),$t.updateQueue=f),f.memoCache=c,f=c.data[c.index],f===void 0)for(f=c.data[c.index]=Array(s),m=0;m<s;m++)f[m]=L;return c.index++,f}function Hi(s,c){return typeof c=="function"?c(s):c}function Gm(s){var c=br();return s1(c,Dn,s)}function s1(s,c,f){var m=s.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=f;var x=s.baseQueue,w=m.pending;if(w!==null){if(x!==null){var M=x.next;x.next=w.next,w.next=M}c.baseQueue=x=w,m.pending=null}if(w=s.baseState,x===null)s.memoizedState=w;else{c=x.next;var V=M=null,te=null,pe=c,we=!1;do{var Ie=pe.lane&-536870913;if(Ie!==pe.lane?(en&Ie)===Ie:(Ns&Ie)===Ie){var he=pe.revertLane;if(he===0)te!==null&&(te=te.next={lane:0,revertLane:0,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null}),Ie===ou&&(we=!0);else if((Ns&he)===he){pe=pe.next,he===ou&&(we=!0);continue}else Ie={lane:0,revertLane:pe.revertLane,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null},te===null?(V=te=Ie,M=w):te=te.next=Ie,$t.lanes|=he,Us|=he;Ie=pe.action,Vl&&f(w,Ie),w=pe.hasEagerState?pe.eagerState:f(w,Ie)}else he={lane:Ie,revertLane:pe.revertLane,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null},te===null?(V=te=he,M=w):te=te.next=he,$t.lanes|=Ie,Us|=Ie;pe=pe.next}while(pe!==null&&pe!==c);if(te===null?M=w:te.next=V,!Bo(w,s.memoizedState)&&(Ir=!0,we&&(f=au,f!==null)))throw f;s.memoizedState=w,s.baseState=M,s.baseQueue=te,m.lastRenderedState=w}return x===null&&(m.lanes=0),[s.memoizedState,m.dispatch]}function l1(s){var c=br(),f=c.queue;if(f===null)throw Error(r(311));f.lastRenderedReducer=s;var m=f.dispatch,x=f.pending,w=c.memoizedState;if(x!==null){f.pending=null;var M=x=x.next;do w=s(w,M.action),M=M.next;while(M!==x);Bo(w,c.memoizedState)||(Ir=!0),c.memoizedState=w,c.baseQueue===null&&(c.baseState=w),f.lastRenderedState=w}return[w,m]}function u2(s,c,f){var m=$t,x=br(),w=mn;if(w){if(f===void 0)throw Error(r(407));f=f()}else f=c();var M=!Bo((Dn||x).memoizedState,f);M&&(x.memoizedState=f,Ir=!0),x=x.queue;var V=p2.bind(null,m,x,s);if(vf(2048,8,V,[s]),x.getSnapshot!==c||M||yr!==null&&yr.memoizedState.tag&1){if(m.flags|=2048,cu(9,Vm(),f2.bind(null,m,x,f,c),null),Un===null)throw Error(r(349));w||(Ns&124)!==0||d2(m,c,f)}return f}function d2(s,c,f){s.flags|=16384,s={getSnapshot:c,value:f},c=$t.updateQueue,c===null?(c=a1(),$t.updateQueue=c,c.stores=[s]):(f=c.stores,f===null?c.stores=[s]:f.push(s))}function f2(s,c,f,m){c.value=f,c.getSnapshot=m,h2(c)&&m2(s)}function p2(s,c,f){return f(function(){h2(c)&&m2(s)})}function h2(s){var c=s.getSnapshot;s=s.value;try{var f=c();return!Bo(s,f)}catch{return!0}}function m2(s){var c=eu(s,2);c!==null&&Vo(c,s,2)}function c1(s){var c=To();if(typeof s=="function"){var f=s;if(s=f(),Vl){We(!0);try{f()}finally{We(!1)}}}return c.memoizedState=c.baseState=s,c.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hi,lastRenderedState:s},c}function g2(s,c,f,m){return s.baseState=f,s1(s,Dn,typeof m=="function"?m:Hi)}function wF(s,c,f,m,x){if(Wm(s))throw Error(r(485));if(s=c.action,s!==null){var w={payload:x,action:s,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(M){w.listeners.push(M)}};U.T!==null?f(!0):w.isTransition=!1,m(w),f=c.pending,f===null?(w.next=c.pending=w,y2(c,w)):(w.next=f.next,c.pending=f.next=w)}}function y2(s,c){var f=c.action,m=c.payload,x=s.state;if(c.isTransition){var w=U.T,M={};U.T=M;try{var V=f(x,m),te=U.S;te!==null&&te(M,V),b2(s,c,V)}catch(pe){u1(s,c,pe)}finally{U.T=w}}else try{w=f(x,m),b2(s,c,w)}catch(pe){u1(s,c,pe)}}function b2(s,c,f){f!==null&&typeof f=="object"&&typeof f.then=="function"?f.then(function(m){v2(s,c,m)},function(m){return u1(s,c,m)}):v2(s,c,f)}function v2(s,c,f){c.status="fulfilled",c.value=f,E2(c),s.state=f,c=s.pending,c!==null&&(f=c.next,f===c?s.pending=null:(f=f.next,c.next=f,y2(s,f)))}function u1(s,c,f){var m=s.pending;if(s.pending=null,m!==null){m=m.next;do c.status="rejected",c.reason=f,E2(c),c=c.next;while(c!==m)}s.action=null}function E2(s){s=s.listeners;for(var c=0;c<s.length;c++)(0,s[c])()}function x2(s,c){return c}function S2(s,c){if(mn){var f=Un.formState;if(f!==null){e:{var m=$t;if(mn){if(rr){t:{for(var x=rr,w=Xa;x.nodeType!==8;){if(!w){x=null;break t}if(x=La(x.nextSibling),x===null){x=null;break t}}w=x.data,x=w==="F!"||w==="F"?x:null}if(x){rr=La(x.nextSibling),m=x.data==="F!";break e}}zl(m)}m=!1}m&&(c=f[0])}}return f=To(),f.memoizedState=f.baseState=c,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:x2,lastRenderedState:c},f.queue=m,f=z2.bind(null,$t,m),m.dispatch=f,m=c1(!1),w=m1.bind(null,$t,!1,m.queue),m=To(),x={state:c,dispatch:null,action:s,pending:null},m.queue=x,f=wF.bind(null,$t,x,w,f),x.dispatch=f,m.memoizedState=s,[c,f,!1]}function T2(s){var c=br();return C2(c,Dn,s)}function C2(s,c,f){if(c=s1(s,c,x2)[0],s=Gm(Hi)[0],typeof c=="object"&&c!==null&&typeof c.then=="function")try{var m=bf(c)}catch(M){throw M===ff?jm:M}else m=c;c=br();var x=c.queue,w=x.dispatch;return f!==c.memoizedState&&($t.flags|=2048,cu(9,Vm(),RF.bind(null,x,f),null)),[m,w,s]}function RF(s,c){s.action=c}function _2(s){var c=br(),f=Dn;if(f!==null)return C2(c,f,s);br(),c=c.memoizedState,f=br();var m=f.queue.dispatch;return f.memoizedState=s,[c,m,!1]}function cu(s,c,f,m){return s={tag:s,create:f,deps:m,inst:c,next:null},c=$t.updateQueue,c===null&&(c=a1(),$t.updateQueue=c),f=c.lastEffect,f===null?c.lastEffect=s.next=s:(m=f.next,f.next=s,s.next=m,c.lastEffect=s),s}function Vm(){return{destroy:void 0,resource:void 0}}function A2(){return br().memoizedState}function qm(s,c,f,m){var x=To();m=m===void 0?null:m,$t.flags|=s,x.memoizedState=cu(1|c,Vm(),f,m)}function vf(s,c,f,m){var x=br();m=m===void 0?null:m;var w=x.memoizedState.inst;Dn!==null&&m!==null&&e1(m,Dn.memoizedState.deps)?x.memoizedState=cu(c,w,f,m):($t.flags|=s,x.memoizedState=cu(1|c,w,f,m))}function k2(s,c){qm(8390656,8,s,c)}function w2(s,c){vf(2048,8,s,c)}function R2(s,c){return vf(4,2,s,c)}function D2(s,c){return vf(4,4,s,c)}function I2(s,c){if(typeof c=="function"){s=s();var f=c(s);return function(){typeof f=="function"?f():c(null)}}if(c!=null)return s=s(),c.current=s,function(){c.current=null}}function O2(s,c,f){f=f!=null?f.concat([s]):null,vf(4,4,I2.bind(null,c,s),f)}function d1(){}function N2(s,c){var f=br();c=c===void 0?null:c;var m=f.memoizedState;return c!==null&&e1(c,m[1])?m[0]:(f.memoizedState=[s,c],s)}function P2(s,c){var f=br();c=c===void 0?null:c;var m=f.memoizedState;if(c!==null&&e1(c,m[1]))return m[0];if(m=s(),Vl){We(!0);try{s()}finally{We(!1)}}return f.memoizedState=[m,c],m}function f1(s,c,f){return f===void 0||(Ns&1073741824)!==0?s.memoizedState=c:(s.memoizedState=f,s=Fk(),$t.lanes|=s,Us|=s,f)}function L2(s,c,f,m){return Bo(f,c)?f:iu.current!==null?(s=f1(s,f,m),Bo(s,c)||(Ir=!0),s):(Ns&42)===0?(Ir=!0,s.memoizedState=f):(s=Fk(),$t.lanes|=s,Us|=s,c)}function M2(s,c,f,m,x){var w=Q.p;Q.p=w!==0&&8>w?w:8;var M=U.T,V={};U.T=V,m1(s,!1,c,f);try{var te=x(),pe=U.S;if(pe!==null&&pe(V,te),te!==null&&typeof te=="object"&&typeof te.then=="function"){var we=_F(te,m);Ef(s,c,we,Go(s))}else Ef(s,c,m,Go(s))}catch(Ie){Ef(s,c,{then:function(){},status:"rejected",reason:Ie},Go())}finally{Q.p=w,U.T=M}}function DF(){}function p1(s,c,f,m){if(s.tag!==5)throw Error(r(476));var x=F2(s).queue;M2(s,x,c,Y,f===null?DF:function(){return j2(s),f(m)})}function F2(s){var c=s.memoizedState;if(c!==null)return c;c={memoizedState:Y,baseState:Y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hi,lastRenderedState:Y},next:null};var f={};return c.next={memoizedState:f,baseState:f,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hi,lastRenderedState:f},next:null},s.memoizedState=c,s=s.alternate,s!==null&&(s.memoizedState=c),c}function j2(s){var c=F2(s).next.queue;Ef(s,c,{},Go())}function h1(){return Vr(jf)}function B2(){return br().memoizedState}function U2(){return br().memoizedState}function IF(s){for(var c=s.return;c!==null;){switch(c.tag){case 24:case 3:var f=Go();s=Is(f);var m=Os(c,s,f);m!==null&&(Vo(m,c,f),hf(m,c,f)),c={cache:Gv()},s.payload=c;return}c=c.return}}function OF(s,c,f){var m=Go();f={lane:m,revertLane:0,action:f,hasEagerState:!1,eagerState:null,next:null},Wm(s)?H2(c,f):(f=Pv(s,c,f,m),f!==null&&(Vo(f,s,m),$2(f,c,m)))}function z2(s,c,f){var m=Go();Ef(s,c,f,m)}function Ef(s,c,f,m){var x={lane:m,revertLane:0,action:f,hasEagerState:!1,eagerState:null,next:null};if(Wm(s))H2(c,x);else{var w=s.alternate;if(s.lanes===0&&(w===null||w.lanes===0)&&(w=c.lastRenderedReducer,w!==null))try{var M=c.lastRenderedState,V=w(M,f);if(x.hasEagerState=!0,x.eagerState=V,Bo(V,M))return Dm(s,c,x,0),Un===null&&Rm(),!1}catch{}finally{}if(f=Pv(s,c,x,m),f!==null)return Vo(f,s,m),$2(f,c,m),!0}return!1}function m1(s,c,f,m){if(m={lane:2,revertLane:W1(),action:m,hasEagerState:!1,eagerState:null,next:null},Wm(s)){if(c)throw Error(r(479))}else c=Pv(s,f,m,2),c!==null&&Vo(c,s,2)}function Wm(s){var c=s.alternate;return s===$t||c!==null&&c===$t}function H2(s,c){su=zm=!0;var f=s.pending;f===null?c.next=c:(c.next=f.next,f.next=c),s.pending=c}function $2(s,c,f){if((f&4194048)!==0){var m=c.lanes;m&=s.pendingLanes,f|=m,c.lanes=f,$n(s,f)}}var Ym={readContext:Vr,use:$m,useCallback:dr,useContext:dr,useEffect:dr,useImperativeHandle:dr,useLayoutEffect:dr,useInsertionEffect:dr,useMemo:dr,useReducer:dr,useRef:dr,useState:dr,useDebugValue:dr,useDeferredValue:dr,useTransition:dr,useSyncExternalStore:dr,useId:dr,useHostTransitionStatus:dr,useFormState:dr,useActionState:dr,useOptimistic:dr,useMemoCache:dr,useCacheRefresh:dr},G2={readContext:Vr,use:$m,useCallback:function(s,c){return To().memoizedState=[s,c===void 0?null:c],s},useContext:Vr,useEffect:k2,useImperativeHandle:function(s,c,f){f=f!=null?f.concat([s]):null,qm(4194308,4,I2.bind(null,c,s),f)},useLayoutEffect:function(s,c){return qm(4194308,4,s,c)},useInsertionEffect:function(s,c){qm(4,2,s,c)},useMemo:function(s,c){var f=To();c=c===void 0?null:c;var m=s();if(Vl){We(!0);try{s()}finally{We(!1)}}return f.memoizedState=[m,c],m},useReducer:function(s,c,f){var m=To();if(f!==void 0){var x=f(c);if(Vl){We(!0);try{f(c)}finally{We(!1)}}}else x=c;return m.memoizedState=m.baseState=x,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:x},m.queue=s,s=s.dispatch=OF.bind(null,$t,s),[m.memoizedState,s]},useRef:function(s){var c=To();return s={current:s},c.memoizedState=s},useState:function(s){s=c1(s);var c=s.queue,f=z2.bind(null,$t,c);return c.dispatch=f,[s.memoizedState,f]},useDebugValue:d1,useDeferredValue:function(s,c){var f=To();return f1(f,s,c)},useTransition:function(){var s=c1(!1);return s=M2.bind(null,$t,s.queue,!0,!1),To().memoizedState=s,[!1,s]},useSyncExternalStore:function(s,c,f){var m=$t,x=To();if(mn){if(f===void 0)throw Error(r(407));f=f()}else{if(f=c(),Un===null)throw Error(r(349));(en&124)!==0||d2(m,c,f)}x.memoizedState=f;var w={value:f,getSnapshot:c};return x.queue=w,k2(p2.bind(null,m,w,s),[s]),m.flags|=2048,cu(9,Vm(),f2.bind(null,m,w,f,c),null),f},useId:function(){var s=To(),c=Un.identifierPrefix;if(mn){var f=Bi,m=ji;f=(m&~(1<<32-Ke(m)-1)).toString(32)+f,c="«"+c+"R"+f,f=Hm++,0<f&&(c+="H"+f.toString(32)),c+="»"}else f=AF++,c="«"+c+"r"+f.toString(32)+"»";return s.memoizedState=c},useHostTransitionStatus:h1,useFormState:S2,useActionState:S2,useOptimistic:function(s){var c=To();c.memoizedState=c.baseState=s;var f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return c.queue=f,c=m1.bind(null,$t,!0,f),f.dispatch=c,[s,c]},useMemoCache:i1,useCacheRefresh:function(){return To().memoizedState=IF.bind(null,$t)}},V2={readContext:Vr,use:$m,useCallback:N2,useContext:Vr,useEffect:w2,useImperativeHandle:O2,useInsertionEffect:R2,useLayoutEffect:D2,useMemo:P2,useReducer:Gm,useRef:A2,useState:function(){return Gm(Hi)},useDebugValue:d1,useDeferredValue:function(s,c){var f=br();return L2(f,Dn.memoizedState,s,c)},useTransition:function(){var s=Gm(Hi)[0],c=br().memoizedState;return[typeof s=="boolean"?s:bf(s),c]},useSyncExternalStore:u2,useId:B2,useHostTransitionStatus:h1,useFormState:T2,useActionState:T2,useOptimistic:function(s,c){var f=br();return g2(f,Dn,s,c)},useMemoCache:i1,useCacheRefresh:U2},NF={readContext:Vr,use:$m,useCallback:N2,useContext:Vr,useEffect:w2,useImperativeHandle:O2,useInsertionEffect:R2,useLayoutEffect:D2,useMemo:P2,useReducer:l1,useRef:A2,useState:function(){return l1(Hi)},useDebugValue:d1,useDeferredValue:function(s,c){var f=br();return Dn===null?f1(f,s,c):L2(f,Dn.memoizedState,s,c)},useTransition:function(){var s=l1(Hi)[0],c=br().memoizedState;return[typeof s=="boolean"?s:bf(s),c]},useSyncExternalStore:u2,useId:B2,useHostTransitionStatus:h1,useFormState:_2,useActionState:_2,useOptimistic:function(s,c){var f=br();return Dn!==null?g2(f,Dn,s,c):(f.baseState=s,[s,f.queue.dispatch])},useMemoCache:i1,useCacheRefresh:U2},uu=null,xf=0;function Qm(s){var c=xf;return xf+=1,uu===null&&(uu=[]),n2(uu,s,c)}function Sf(s,c){c=c.props.ref,s.ref=c!==void 0?c:null}function Km(s,c){throw c.$$typeof===h?Error(r(525)):(s=Object.prototype.toString.call(c),Error(r(31,s==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":s)))}function q2(s){var c=s._init;return c(s._payload)}function W2(s){function c(ie,ae){if(s){var ce=ie.deletions;ce===null?(ie.deletions=[ae],ie.flags|=16):ce.push(ae)}}function f(ie,ae){if(!s)return null;for(;ae!==null;)c(ie,ae),ae=ae.sibling;return null}function m(ie){for(var ae=new Map;ie!==null;)ie.key!==null?ae.set(ie.key,ie):ae.set(ie.index,ie),ie=ie.sibling;return ae}function x(ie,ae){return ie=Fi(ie,ae),ie.index=0,ie.sibling=null,ie}function w(ie,ae,ce){return ie.index=ce,s?(ce=ie.alternate,ce!==null?(ce=ce.index,ce<ae?(ie.flags|=67108866,ae):ce):(ie.flags|=67108866,ae)):(ie.flags|=1048576,ae)}function M(ie){return s&&ie.alternate===null&&(ie.flags|=67108866),ie}function V(ie,ae,ce,Re){return ae===null||ae.tag!==6?(ae=Mv(ce,ie.mode,Re),ae.return=ie,ae):(ae=x(ae,ce),ae.return=ie,ae)}function te(ie,ae,ce,Re){var nt=ce.type;return nt===b?we(ie,ae,ce.props.children,Re,ce.key):ae!==null&&(ae.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===$&&q2(nt)===ae.type)?(ae=x(ae,ce.props),Sf(ae,ce),ae.return=ie,ae):(ae=Om(ce.type,ce.key,ce.props,null,ie.mode,Re),Sf(ae,ce),ae.return=ie,ae)}function pe(ie,ae,ce,Re){return ae===null||ae.tag!==4||ae.stateNode.containerInfo!==ce.containerInfo||ae.stateNode.implementation!==ce.implementation?(ae=Fv(ce,ie.mode,Re),ae.return=ie,ae):(ae=x(ae,ce.children||[]),ae.return=ie,ae)}function we(ie,ae,ce,Re,nt){return ae===null||ae.tag!==7?(ae=Fl(ce,ie.mode,Re,nt),ae.return=ie,ae):(ae=x(ae,ce),ae.return=ie,ae)}function Ie(ie,ae,ce){if(typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint")return ae=Mv(""+ae,ie.mode,ce),ae.return=ie,ae;if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case y:return ce=Om(ae.type,ae.key,ae.props,null,ie.mode,ce),Sf(ce,ae),ce.return=ie,ce;case g:return ae=Fv(ae,ie.mode,ce),ae.return=ie,ae;case $:var Re=ae._init;return ae=Re(ae._payload),Ie(ie,ae,ce)}if(G(ae)||k(ae))return ae=Fl(ae,ie.mode,ce,null),ae.return=ie,ae;if(typeof ae.then=="function")return Ie(ie,Qm(ae),ce);if(ae.$$typeof===C)return Ie(ie,Mm(ie,ae),ce);Km(ie,ae)}return null}function he(ie,ae,ce,Re){var nt=ae!==null?ae.key:null;if(typeof ce=="string"&&ce!==""||typeof ce=="number"||typeof ce=="bigint")return nt!==null?null:V(ie,ae,""+ce,Re);if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case y:return ce.key===nt?te(ie,ae,ce,Re):null;case g:return ce.key===nt?pe(ie,ae,ce,Re):null;case $:return nt=ce._init,ce=nt(ce._payload),he(ie,ae,ce,Re)}if(G(ce)||k(ce))return nt!==null?null:we(ie,ae,ce,Re,null);if(typeof ce.then=="function")return he(ie,ae,Qm(ce),Re);if(ce.$$typeof===C)return he(ie,ae,Mm(ie,ce),Re);Km(ie,ce)}return null}function ge(ie,ae,ce,Re,nt){if(typeof Re=="string"&&Re!==""||typeof Re=="number"||typeof Re=="bigint")return ie=ie.get(ce)||null,V(ae,ie,""+Re,nt);if(typeof Re=="object"&&Re!==null){switch(Re.$$typeof){case y:return ie=ie.get(Re.key===null?ce:Re.key)||null,te(ae,ie,Re,nt);case g:return ie=ie.get(Re.key===null?ce:Re.key)||null,pe(ae,ie,Re,nt);case $:var Gt=Re._init;return Re=Gt(Re._payload),ge(ie,ae,ce,Re,nt)}if(G(Re)||k(Re))return ie=ie.get(ce)||null,we(ae,ie,Re,nt,null);if(typeof Re.then=="function")return ge(ie,ae,ce,Qm(Re),nt);if(Re.$$typeof===C)return ge(ie,ae,ce,Mm(ae,Re),nt);Km(ae,Re)}return null}function _t(ie,ae,ce,Re){for(var nt=null,Gt=null,ft=ae,Tt=ae=0,Nr=null;ft!==null&&Tt<ce.length;Tt++){ft.index>Tt?(Nr=ft,ft=null):Nr=ft.sibling;var pn=he(ie,ft,ce[Tt],Re);if(pn===null){ft===null&&(ft=Nr);break}s&&ft&&pn.alternate===null&&c(ie,ft),ae=w(pn,ae,Tt),Gt===null?nt=pn:Gt.sibling=pn,Gt=pn,ft=Nr}if(Tt===ce.length)return f(ie,ft),mn&&Bl(ie,Tt),nt;if(ft===null){for(;Tt<ce.length;Tt++)ft=Ie(ie,ce[Tt],Re),ft!==null&&(ae=w(ft,ae,Tt),Gt===null?nt=ft:Gt.sibling=ft,Gt=ft);return mn&&Bl(ie,Tt),nt}for(ft=m(ft);Tt<ce.length;Tt++)Nr=ge(ft,ie,Tt,ce[Tt],Re),Nr!==null&&(s&&Nr.alternate!==null&&ft.delete(Nr.key===null?Tt:Nr.key),ae=w(Nr,ae,Tt),Gt===null?nt=Nr:Gt.sibling=Nr,Gt=Nr);return s&&ft.forEach(function(Qs){return c(ie,Qs)}),mn&&Bl(ie,Tt),nt}function Et(ie,ae,ce,Re){if(ce==null)throw Error(r(151));for(var nt=null,Gt=null,ft=ae,Tt=ae=0,Nr=null,pn=ce.next();ft!==null&&!pn.done;Tt++,pn=ce.next()){ft.index>Tt?(Nr=ft,ft=null):Nr=ft.sibling;var Qs=he(ie,ft,pn.value,Re);if(Qs===null){ft===null&&(ft=Nr);break}s&&ft&&Qs.alternate===null&&c(ie,ft),ae=w(Qs,ae,Tt),Gt===null?nt=Qs:Gt.sibling=Qs,Gt=Qs,ft=Nr}if(pn.done)return f(ie,ft),mn&&Bl(ie,Tt),nt;if(ft===null){for(;!pn.done;Tt++,pn=ce.next())pn=Ie(ie,pn.value,Re),pn!==null&&(ae=w(pn,ae,Tt),Gt===null?nt=pn:Gt.sibling=pn,Gt=pn);return mn&&Bl(ie,Tt),nt}for(ft=m(ft);!pn.done;Tt++,pn=ce.next())pn=ge(ft,ie,Tt,pn.value,Re),pn!==null&&(s&&pn.alternate!==null&&ft.delete(pn.key===null?Tt:pn.key),ae=w(pn,ae,Tt),Gt===null?nt=pn:Gt.sibling=pn,Gt=pn);return s&&ft.forEach(function(Pj){return c(ie,Pj)}),mn&&Bl(ie,Tt),nt}function On(ie,ae,ce,Re){if(typeof ce=="object"&&ce!==null&&ce.type===b&&ce.key===null&&(ce=ce.props.children),typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case y:e:{for(var nt=ce.key;ae!==null;){if(ae.key===nt){if(nt=ce.type,nt===b){if(ae.tag===7){f(ie,ae.sibling),Re=x(ae,ce.props.children),Re.return=ie,ie=Re;break e}}else if(ae.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===$&&q2(nt)===ae.type){f(ie,ae.sibling),Re=x(ae,ce.props),Sf(Re,ce),Re.return=ie,ie=Re;break e}f(ie,ae);break}else c(ie,ae);ae=ae.sibling}ce.type===b?(Re=Fl(ce.props.children,ie.mode,Re,ce.key),Re.return=ie,ie=Re):(Re=Om(ce.type,ce.key,ce.props,null,ie.mode,Re),Sf(Re,ce),Re.return=ie,ie=Re)}return M(ie);case g:e:{for(nt=ce.key;ae!==null;){if(ae.key===nt)if(ae.tag===4&&ae.stateNode.containerInfo===ce.containerInfo&&ae.stateNode.implementation===ce.implementation){f(ie,ae.sibling),Re=x(ae,ce.children||[]),Re.return=ie,ie=Re;break e}else{f(ie,ae);break}else c(ie,ae);ae=ae.sibling}Re=Fv(ce,ie.mode,Re),Re.return=ie,ie=Re}return M(ie);case $:return nt=ce._init,ce=nt(ce._payload),On(ie,ae,ce,Re)}if(G(ce))return _t(ie,ae,ce,Re);if(k(ce)){if(nt=k(ce),typeof nt!="function")throw Error(r(150));return ce=nt.call(ce),Et(ie,ae,ce,Re)}if(typeof ce.then=="function")return On(ie,ae,Qm(ce),Re);if(ce.$$typeof===C)return On(ie,ae,Mm(ie,ce),Re);Km(ie,ce)}return typeof ce=="string"&&ce!==""||typeof ce=="number"||typeof ce=="bigint"?(ce=""+ce,ae!==null&&ae.tag===6?(f(ie,ae.sibling),Re=x(ae,ce),Re.return=ie,ie=Re):(f(ie,ae),Re=Mv(ce,ie.mode,Re),Re.return=ie,ie=Re),M(ie)):f(ie,ae)}return function(ie,ae,ce,Re){try{xf=0;var nt=On(ie,ae,ce,Re);return uu=null,nt}catch(ft){if(ft===ff||ft===jm)throw ft;var Gt=Uo(29,ft,null,ie.mode);return Gt.lanes=Re,Gt.return=ie,Gt}finally{}}}var du=W2(!0),Y2=W2(!1),da=K(null),Za=null;function Ps(s){var c=s.alternate;P(Cr,Cr.current&1),P(da,s),Za===null&&(c===null||iu.current!==null||c.memoizedState!==null)&&(Za=s)}function Q2(s){if(s.tag===22){if(P(Cr,Cr.current),P(da,s),Za===null){var c=s.alternate;c!==null&&c.memoizedState!==null&&(Za=s)}}else Ls()}function Ls(){P(Cr,Cr.current),P(da,da.current)}function $i(s){X(da),Za===s&&(Za=null),X(Cr)}var Cr=K(0);function Xm(s){for(var c=s;c!==null;){if(c.tag===13){var f=c.memoizedState;if(f!==null&&(f=f.dehydrated,f===null||f.data==="$?"||aE(f)))return c}else if(c.tag===19&&c.memoizedProps.revealOrder!==void 0){if((c.flags&128)!==0)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===s)break;for(;c.sibling===null;){if(c.return===null||c.return===s)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}function g1(s,c,f,m){c=s.memoizedState,f=f(m,c),f=f==null?c:p({},c,f),s.memoizedState=f,s.lanes===0&&(s.updateQueue.baseState=f)}var y1={enqueueSetState:function(s,c,f){s=s._reactInternals;var m=Go(),x=Is(m);x.payload=c,f!=null&&(x.callback=f),c=Os(s,x,m),c!==null&&(Vo(c,s,m),hf(c,s,m))},enqueueReplaceState:function(s,c,f){s=s._reactInternals;var m=Go(),x=Is(m);x.tag=1,x.payload=c,f!=null&&(x.callback=f),c=Os(s,x,m),c!==null&&(Vo(c,s,m),hf(c,s,m))},enqueueForceUpdate:function(s,c){s=s._reactInternals;var f=Go(),m=Is(f);m.tag=2,c!=null&&(m.callback=c),c=Os(s,m,f),c!==null&&(Vo(c,s,f),hf(c,s,f))}};function K2(s,c,f,m,x,w,M){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(m,w,M):c.prototype&&c.prototype.isPureReactComponent?!rf(f,m)||!rf(x,w):!0}function X2(s,c,f,m){s=c.state,typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps(f,m),typeof c.UNSAFE_componentWillReceiveProps=="function"&&c.UNSAFE_componentWillReceiveProps(f,m),c.state!==s&&y1.enqueueReplaceState(c,c.state,null)}function ql(s,c){var f=c;if("ref"in c){f={};for(var m in c)m!=="ref"&&(f[m]=c[m])}if(s=s.defaultProps){f===c&&(f=p({},f));for(var x in s)f[x]===void 0&&(f[x]=s[x])}return f}var Zm=typeof reportError=="function"?reportError:function(s){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var c=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof s=="object"&&s!==null&&typeof s.message=="string"?String(s.message):String(s),error:s});if(!window.dispatchEvent(c))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",s);return}console.error(s)};function Z2(s){Zm(s)}function J2(s){console.error(s)}function ek(s){Zm(s)}function Jm(s,c){try{var f=s.onUncaughtError;f(c.value,{componentStack:c.stack})}catch(m){setTimeout(function(){throw m})}}function tk(s,c,f){try{var m=s.onCaughtError;m(f.value,{componentStack:f.stack,errorBoundary:c.tag===1?c.stateNode:null})}catch(x){setTimeout(function(){throw x})}}function b1(s,c,f){return f=Is(f),f.tag=3,f.payload={element:null},f.callback=function(){Jm(s,c)},f}function nk(s){return s=Is(s),s.tag=3,s}function rk(s,c,f,m){var x=f.type.getDerivedStateFromError;if(typeof x=="function"){var w=m.value;s.payload=function(){return x(w)},s.callback=function(){tk(c,f,m)}}var M=f.stateNode;M!==null&&typeof M.componentDidCatch=="function"&&(s.callback=function(){tk(c,f,m),typeof x!="function"&&(zs===null?zs=new Set([this]):zs.add(this));var V=m.stack;this.componentDidCatch(m.value,{componentStack:V!==null?V:""})})}function PF(s,c,f,m,x){if(f.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){if(c=f.alternate,c!==null&&cf(c,f,x,!0),f=da.current,f!==null){switch(f.tag){case 13:return Za===null?H1():f.alternate===null&&or===0&&(or=3),f.flags&=-257,f.flags|=65536,f.lanes=x,m===Wv?f.flags|=16384:(c=f.updateQueue,c===null?f.updateQueue=new Set([m]):c.add(m),G1(s,m,x)),!1;case 22:return f.flags|=65536,m===Wv?f.flags|=16384:(c=f.updateQueue,c===null?(c={transitions:null,markerInstances:null,retryQueue:new Set([m])},f.updateQueue=c):(f=c.retryQueue,f===null?c.retryQueue=new Set([m]):f.add(m)),G1(s,m,x)),!1}throw Error(r(435,f.tag))}return G1(s,m,x),H1(),!1}if(mn)return c=da.current,c!==null?((c.flags&65536)===0&&(c.flags|=256),c.flags|=65536,c.lanes=x,m!==Uv&&(s=Error(r(422),{cause:m}),lf(sa(s,f)))):(m!==Uv&&(c=Error(r(423),{cause:m}),lf(sa(c,f))),s=s.current.alternate,s.flags|=65536,x&=-x,s.lanes|=x,m=sa(m,f),x=b1(s.stateNode,m,x),Kv(s,x),or!==4&&(or=2)),!1;var w=Error(r(520),{cause:m});if(w=sa(w,f),Rf===null?Rf=[w]:Rf.push(w),or!==4&&(or=2),c===null)return!0;m=sa(m,f),f=c;do{switch(f.tag){case 3:return f.flags|=65536,s=x&-x,f.lanes|=s,s=b1(f.stateNode,m,s),Kv(f,s),!1;case 1:if(c=f.type,w=f.stateNode,(f.flags&128)===0&&(typeof c.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(zs===null||!zs.has(w))))return f.flags|=65536,x&=-x,f.lanes|=x,x=nk(x),rk(x,s,f,m),Kv(f,x),!1}f=f.return}while(f!==null);return!1}var ok=Error(r(461)),Ir=!1;function Ur(s,c,f,m){c.child=s===null?Y2(c,null,f,m):du(c,s.child,f,m)}function ak(s,c,f,m,x){f=f.render;var w=c.ref;if("ref"in m){var M={};for(var V in m)V!=="ref"&&(M[V]=m[V])}else M=m;return $l(c),m=t1(s,c,f,M,w,x),V=n1(),s!==null&&!Ir?(r1(s,c,x),Gi(s,c,x)):(mn&&V&&jv(c),c.flags|=1,Ur(s,c,m,x),c.child)}function ik(s,c,f,m,x){if(s===null){var w=f.type;return typeof w=="function"&&!Lv(w)&&w.defaultProps===void 0&&f.compare===null?(c.tag=15,c.type=w,sk(s,c,w,m,x)):(s=Om(f.type,null,m,c,c.mode,x),s.ref=c.ref,s.return=c,c.child=s)}if(w=s.child,!A1(s,x)){var M=w.memoizedProps;if(f=f.compare,f=f!==null?f:rf,f(M,m)&&s.ref===c.ref)return Gi(s,c,x)}return c.flags|=1,s=Fi(w,m),s.ref=c.ref,s.return=c,c.child=s}function sk(s,c,f,m,x){if(s!==null){var w=s.memoizedProps;if(rf(w,m)&&s.ref===c.ref)if(Ir=!1,c.pendingProps=m=w,A1(s,x))(s.flags&131072)!==0&&(Ir=!0);else return c.lanes=s.lanes,Gi(s,c,x)}return v1(s,c,f,m,x)}function lk(s,c,f){var m=c.pendingProps,x=m.children,w=s!==null?s.memoizedState:null;if(m.mode==="hidden"){if((c.flags&128)!==0){if(m=w!==null?w.baseLanes|f:f,s!==null){for(x=c.child=s.child,w=0;x!==null;)w=w|x.lanes|x.childLanes,x=x.sibling;c.childLanes=w&~m}else c.childLanes=0,c.child=null;return ck(s,c,m,f)}if((f&536870912)!==0)c.memoizedState={baseLanes:0,cachePool:null},s!==null&&Fm(c,w!==null?w.cachePool:null),w!==null?s2(c,w):Zv(),Q2(c);else return c.lanes=c.childLanes=536870912,ck(s,c,w!==null?w.baseLanes|f:f,f)}else w!==null?(Fm(c,w.cachePool),s2(c,w),Ls(),c.memoizedState=null):(s!==null&&Fm(c,null),Zv(),Ls());return Ur(s,c,x,f),c.child}function ck(s,c,f,m){var x=qv();return x=x===null?null:{parent:Tr._currentValue,pool:x},c.memoizedState={baseLanes:f,cachePool:x},s!==null&&Fm(c,null),Zv(),Q2(c),s!==null&&cf(s,c,m,!0),null}function eg(s,c){var f=c.ref;if(f===null)s!==null&&s.ref!==null&&(c.flags|=4194816);else{if(typeof f!="function"&&typeof f!="object")throw Error(r(284));(s===null||s.ref!==f)&&(c.flags|=4194816)}}function v1(s,c,f,m,x){return $l(c),f=t1(s,c,f,m,void 0,x),m=n1(),s!==null&&!Ir?(r1(s,c,x),Gi(s,c,x)):(mn&&m&&jv(c),c.flags|=1,Ur(s,c,f,x),c.child)}function uk(s,c,f,m,x,w){return $l(c),c.updateQueue=null,f=c2(c,m,f,x),l2(s),m=n1(),s!==null&&!Ir?(r1(s,c,w),Gi(s,c,w)):(mn&&m&&jv(c),c.flags|=1,Ur(s,c,f,w),c.child)}function dk(s,c,f,m,x){if($l(c),c.stateNode===null){var w=tu,M=f.contextType;typeof M=="object"&&M!==null&&(w=Vr(M)),w=new f(m,w),c.memoizedState=w.state!==null&&w.state!==void 0?w.state:null,w.updater=y1,c.stateNode=w,w._reactInternals=c,w=c.stateNode,w.props=m,w.state=c.memoizedState,w.refs={},Yv(c),M=f.contextType,w.context=typeof M=="object"&&M!==null?Vr(M):tu,w.state=c.memoizedState,M=f.getDerivedStateFromProps,typeof M=="function"&&(g1(c,f,M,m),w.state=c.memoizedState),typeof f.getDerivedStateFromProps=="function"||typeof w.getSnapshotBeforeUpdate=="function"||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(M=w.state,typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount(),M!==w.state&&y1.enqueueReplaceState(w,w.state,null),gf(c,m,w,x),mf(),w.state=c.memoizedState),typeof w.componentDidMount=="function"&&(c.flags|=4194308),m=!0}else if(s===null){w=c.stateNode;var V=c.memoizedProps,te=ql(f,V);w.props=te;var pe=w.context,we=f.contextType;M=tu,typeof we=="object"&&we!==null&&(M=Vr(we));var Ie=f.getDerivedStateFromProps;we=typeof Ie=="function"||typeof w.getSnapshotBeforeUpdate=="function",V=c.pendingProps!==V,we||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(V||pe!==M)&&X2(c,w,m,M),Ds=!1;var he=c.memoizedState;w.state=he,gf(c,m,w,x),mf(),pe=c.memoizedState,V||he!==pe||Ds?(typeof Ie=="function"&&(g1(c,f,Ie,m),pe=c.memoizedState),(te=Ds||K2(c,f,te,m,he,pe,M))?(we||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount()),typeof w.componentDidMount=="function"&&(c.flags|=4194308)):(typeof w.componentDidMount=="function"&&(c.flags|=4194308),c.memoizedProps=m,c.memoizedState=pe),w.props=m,w.state=pe,w.context=M,m=te):(typeof w.componentDidMount=="function"&&(c.flags|=4194308),m=!1)}else{w=c.stateNode,Qv(s,c),M=c.memoizedProps,we=ql(f,M),w.props=we,Ie=c.pendingProps,he=w.context,pe=f.contextType,te=tu,typeof pe=="object"&&pe!==null&&(te=Vr(pe)),V=f.getDerivedStateFromProps,(pe=typeof V=="function"||typeof w.getSnapshotBeforeUpdate=="function")||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(M!==Ie||he!==te)&&X2(c,w,m,te),Ds=!1,he=c.memoizedState,w.state=he,gf(c,m,w,x),mf();var ge=c.memoizedState;M!==Ie||he!==ge||Ds||s!==null&&s.dependencies!==null&&Lm(s.dependencies)?(typeof V=="function"&&(g1(c,f,V,m),ge=c.memoizedState),(we=Ds||K2(c,f,we,m,he,ge,te)||s!==null&&s.dependencies!==null&&Lm(s.dependencies))?(pe||typeof w.UNSAFE_componentWillUpdate!="function"&&typeof w.componentWillUpdate!="function"||(typeof w.componentWillUpdate=="function"&&w.componentWillUpdate(m,ge,te),typeof w.UNSAFE_componentWillUpdate=="function"&&w.UNSAFE_componentWillUpdate(m,ge,te)),typeof w.componentDidUpdate=="function"&&(c.flags|=4),typeof w.getSnapshotBeforeUpdate=="function"&&(c.flags|=1024)):(typeof w.componentDidUpdate!="function"||M===s.memoizedProps&&he===s.memoizedState||(c.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||M===s.memoizedProps&&he===s.memoizedState||(c.flags|=1024),c.memoizedProps=m,c.memoizedState=ge),w.props=m,w.state=ge,w.context=te,m=we):(typeof w.componentDidUpdate!="function"||M===s.memoizedProps&&he===s.memoizedState||(c.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||M===s.memoizedProps&&he===s.memoizedState||(c.flags|=1024),m=!1)}return w=m,eg(s,c),m=(c.flags&128)!==0,w||m?(w=c.stateNode,f=m&&typeof f.getDerivedStateFromError!="function"?null:w.render(),c.flags|=1,s!==null&&m?(c.child=du(c,s.child,null,x),c.child=du(c,null,f,x)):Ur(s,c,f,x),c.memoizedState=w.state,s=c.child):s=Gi(s,c,x),s}function fk(s,c,f,m){return sf(),c.flags|=256,Ur(s,c,f,m),c.child}var E1={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function x1(s){return{baseLanes:s,cachePool:JA()}}function S1(s,c,f){return s=s!==null?s.childLanes&~f:0,c&&(s|=fa),s}function pk(s,c,f){var m=c.pendingProps,x=!1,w=(c.flags&128)!==0,M;if((M=w)||(M=s!==null&&s.memoizedState===null?!1:(Cr.current&2)!==0),M&&(x=!0,c.flags&=-129),M=(c.flags&32)!==0,c.flags&=-33,s===null){if(mn){if(x?Ps(c):Ls(),mn){var V=rr,te;if(te=V){e:{for(te=V,V=Xa;te.nodeType!==8;){if(!V){V=null;break e}if(te=La(te.nextSibling),te===null){V=null;break e}}V=te}V!==null?(c.memoizedState={dehydrated:V,treeContext:jl!==null?{id:ji,overflow:Bi}:null,retryLane:536870912,hydrationErrors:null},te=Uo(18,null,null,0),te.stateNode=V,te.return=c,c.child=te,lo=c,rr=null,te=!0):te=!1}te||zl(c)}if(V=c.memoizedState,V!==null&&(V=V.dehydrated,V!==null))return aE(V)?c.lanes=32:c.lanes=536870912,null;$i(c)}return V=m.children,m=m.fallback,x?(Ls(),x=c.mode,V=tg({mode:"hidden",children:V},x),m=Fl(m,x,f,null),V.return=c,m.return=c,V.sibling=m,c.child=V,x=c.child,x.memoizedState=x1(f),x.childLanes=S1(s,M,f),c.memoizedState=E1,m):(Ps(c),T1(c,V))}if(te=s.memoizedState,te!==null&&(V=te.dehydrated,V!==null)){if(w)c.flags&256?(Ps(c),c.flags&=-257,c=C1(s,c,f)):c.memoizedState!==null?(Ls(),c.child=s.child,c.flags|=128,c=null):(Ls(),x=m.fallback,V=c.mode,m=tg({mode:"visible",children:m.children},V),x=Fl(x,V,f,null),x.flags|=2,m.return=c,x.return=c,m.sibling=x,c.child=m,du(c,s.child,null,f),m=c.child,m.memoizedState=x1(f),m.childLanes=S1(s,M,f),c.memoizedState=E1,c=x);else if(Ps(c),aE(V)){if(M=V.nextSibling&&V.nextSibling.dataset,M)var pe=M.dgst;M=pe,m=Error(r(419)),m.stack="",m.digest=M,lf({value:m,source:null,stack:null}),c=C1(s,c,f)}else if(Ir||cf(s,c,f,!1),M=(f&s.childLanes)!==0,Ir||M){if(M=Un,M!==null&&(m=f&-f,m=(m&42)!==0?1:io(m),m=(m&(M.suspendedLanes|f))!==0?0:m,m!==0&&m!==te.retryLane))throw te.retryLane=m,eu(s,m),Vo(M,s,m),ok;V.data==="$?"||H1(),c=C1(s,c,f)}else V.data==="$?"?(c.flags|=192,c.child=s.child,c=null):(s=te.treeContext,rr=La(V.nextSibling),lo=c,mn=!0,Ul=null,Xa=!1,s!==null&&(ca[ua++]=ji,ca[ua++]=Bi,ca[ua++]=jl,ji=s.id,Bi=s.overflow,jl=c),c=T1(c,m.children),c.flags|=4096);return c}return x?(Ls(),x=m.fallback,V=c.mode,te=s.child,pe=te.sibling,m=Fi(te,{mode:"hidden",children:m.children}),m.subtreeFlags=te.subtreeFlags&65011712,pe!==null?x=Fi(pe,x):(x=Fl(x,V,f,null),x.flags|=2),x.return=c,m.return=c,m.sibling=x,c.child=m,m=x,x=c.child,V=s.child.memoizedState,V===null?V=x1(f):(te=V.cachePool,te!==null?(pe=Tr._currentValue,te=te.parent!==pe?{parent:pe,pool:pe}:te):te=JA(),V={baseLanes:V.baseLanes|f,cachePool:te}),x.memoizedState=V,x.childLanes=S1(s,M,f),c.memoizedState=E1,m):(Ps(c),f=s.child,s=f.sibling,f=Fi(f,{mode:"visible",children:m.children}),f.return=c,f.sibling=null,s!==null&&(M=c.deletions,M===null?(c.deletions=[s],c.flags|=16):M.push(s)),c.child=f,c.memoizedState=null,f)}function T1(s,c){return c=tg({mode:"visible",children:c},s.mode),c.return=s,s.child=c}function tg(s,c){return s=Uo(22,s,null,c),s.lanes=0,s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},s}function C1(s,c,f){return du(c,s.child,null,f),s=T1(c,c.pendingProps.children),s.flags|=2,c.memoizedState=null,s}function hk(s,c,f){s.lanes|=c;var m=s.alternate;m!==null&&(m.lanes|=c),Hv(s.return,c,f)}function _1(s,c,f,m,x){var w=s.memoizedState;w===null?s.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:m,tail:f,tailMode:x}:(w.isBackwards=c,w.rendering=null,w.renderingStartTime=0,w.last=m,w.tail=f,w.tailMode=x)}function mk(s,c,f){var m=c.pendingProps,x=m.revealOrder,w=m.tail;if(Ur(s,c,m.children,f),m=Cr.current,(m&2)!==0)m=m&1|2,c.flags|=128;else{if(s!==null&&(s.flags&128)!==0)e:for(s=c.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&hk(s,f,c);else if(s.tag===19)hk(s,f,c);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===c)break e;for(;s.sibling===null;){if(s.return===null||s.return===c)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}m&=1}switch(P(Cr,m),x){case"forwards":for(f=c.child,x=null;f!==null;)s=f.alternate,s!==null&&Xm(s)===null&&(x=f),f=f.sibling;f=x,f===null?(x=c.child,c.child=null):(x=f.sibling,f.sibling=null),_1(c,!1,x,f,w);break;case"backwards":for(f=null,x=c.child,c.child=null;x!==null;){if(s=x.alternate,s!==null&&Xm(s)===null){c.child=x;break}s=x.sibling,x.sibling=f,f=x,x=s}_1(c,!0,f,null,w);break;case"together":_1(c,!1,null,null,void 0);break;default:c.memoizedState=null}return c.child}function Gi(s,c,f){if(s!==null&&(c.dependencies=s.dependencies),Us|=c.lanes,(f&c.childLanes)===0)if(s!==null){if(cf(s,c,f,!1),(f&c.childLanes)===0)return null}else return null;if(s!==null&&c.child!==s.child)throw Error(r(153));if(c.child!==null){for(s=c.child,f=Fi(s,s.pendingProps),c.child=f,f.return=c;s.sibling!==null;)s=s.sibling,f=f.sibling=Fi(s,s.pendingProps),f.return=c;f.sibling=null}return c.child}function A1(s,c){return(s.lanes&c)!==0?!0:(s=s.dependencies,!!(s!==null&&Lm(s)))}function LF(s,c,f){switch(c.tag){case 3:fe(c,c.stateNode.containerInfo),Rs(c,Tr,s.memoizedState.cache),sf();break;case 27:case 5:Ce(c);break;case 4:fe(c,c.stateNode.containerInfo);break;case 10:Rs(c,c.type,c.memoizedProps.value);break;case 13:var m=c.memoizedState;if(m!==null)return m.dehydrated!==null?(Ps(c),c.flags|=128,null):(f&c.child.childLanes)!==0?pk(s,c,f):(Ps(c),s=Gi(s,c,f),s!==null?s.sibling:null);Ps(c);break;case 19:var x=(s.flags&128)!==0;if(m=(f&c.childLanes)!==0,m||(cf(s,c,f,!1),m=(f&c.childLanes)!==0),x){if(m)return mk(s,c,f);c.flags|=128}if(x=c.memoizedState,x!==null&&(x.rendering=null,x.tail=null,x.lastEffect=null),P(Cr,Cr.current),m)break;return null;case 22:case 23:return c.lanes=0,lk(s,c,f);case 24:Rs(c,Tr,s.memoizedState.cache)}return Gi(s,c,f)}function gk(s,c,f){if(s!==null)if(s.memoizedProps!==c.pendingProps)Ir=!0;else{if(!A1(s,f)&&(c.flags&128)===0)return Ir=!1,LF(s,c,f);Ir=(s.flags&131072)!==0}else Ir=!1,mn&&(c.flags&1048576)!==0&&qA(c,Pm,c.index);switch(c.lanes=0,c.tag){case 16:e:{s=c.pendingProps;var m=c.elementType,x=m._init;if(m=x(m._payload),c.type=m,typeof m=="function")Lv(m)?(s=ql(m,s),c.tag=1,c=dk(null,c,m,s,f)):(c.tag=0,c=v1(null,c,m,s,f));else{if(m!=null){if(x=m.$$typeof,x===D){c.tag=11,c=ak(null,c,m,s,f);break e}else if(x===j){c.tag=14,c=ik(null,c,m,s,f);break e}}throw c=B(m)||m,Error(r(306,c,""))}}return c;case 0:return v1(s,c,c.type,c.pendingProps,f);case 1:return m=c.type,x=ql(m,c.pendingProps),dk(s,c,m,x,f);case 3:e:{if(fe(c,c.stateNode.containerInfo),s===null)throw Error(r(387));m=c.pendingProps;var w=c.memoizedState;x=w.element,Qv(s,c),gf(c,m,null,f);var M=c.memoizedState;if(m=M.cache,Rs(c,Tr,m),m!==w.cache&&$v(c,[Tr],f,!0),mf(),m=M.element,w.isDehydrated)if(w={element:m,isDehydrated:!1,cache:M.cache},c.updateQueue.baseState=w,c.memoizedState=w,c.flags&256){c=fk(s,c,m,f);break e}else if(m!==x){x=sa(Error(r(424)),c),lf(x),c=fk(s,c,m,f);break e}else{switch(s=c.stateNode.containerInfo,s.nodeType){case 9:s=s.body;break;default:s=s.nodeName==="HTML"?s.ownerDocument.body:s}for(rr=La(s.firstChild),lo=c,mn=!0,Ul=null,Xa=!0,f=Y2(c,null,m,f),c.child=f;f;)f.flags=f.flags&-3|4096,f=f.sibling}else{if(sf(),m===x){c=Gi(s,c,f);break e}Ur(s,c,m,f)}c=c.child}return c;case 26:return eg(s,c),s===null?(f=Ew(c.type,null,c.pendingProps,null))?c.memoizedState=f:mn||(f=c.type,s=c.pendingProps,m=mg(ne.current).createElement(f),m[Oe]=c,m[He]=s,Hr(m,f,s),Pt(m),c.stateNode=m):c.memoizedState=Ew(c.type,s.memoizedProps,c.pendingProps,s.memoizedState),null;case 27:return Ce(c),s===null&&mn&&(m=c.stateNode=yw(c.type,c.pendingProps,ne.current),lo=c,Xa=!0,x=rr,Gs(c.type)?(iE=x,rr=La(m.firstChild)):rr=x),Ur(s,c,c.pendingProps.children,f),eg(s,c),s===null&&(c.flags|=4194304),c.child;case 5:return s===null&&mn&&((x=m=rr)&&(m=cj(m,c.type,c.pendingProps,Xa),m!==null?(c.stateNode=m,lo=c,rr=La(m.firstChild),Xa=!1,x=!0):x=!1),x||zl(c)),Ce(c),x=c.type,w=c.pendingProps,M=s!==null?s.memoizedProps:null,m=w.children,nE(x,w)?m=null:M!==null&&nE(x,M)&&(c.flags|=32),c.memoizedState!==null&&(x=t1(s,c,kF,null,null,f),jf._currentValue=x),eg(s,c),Ur(s,c,m,f),c.child;case 6:return s===null&&mn&&((s=f=rr)&&(f=uj(f,c.pendingProps,Xa),f!==null?(c.stateNode=f,lo=c,rr=null,s=!0):s=!1),s||zl(c)),null;case 13:return pk(s,c,f);case 4:return fe(c,c.stateNode.containerInfo),m=c.pendingProps,s===null?c.child=du(c,null,m,f):Ur(s,c,m,f),c.child;case 11:return ak(s,c,c.type,c.pendingProps,f);case 7:return Ur(s,c,c.pendingProps,f),c.child;case 8:return Ur(s,c,c.pendingProps.children,f),c.child;case 12:return Ur(s,c,c.pendingProps.children,f),c.child;case 10:return m=c.pendingProps,Rs(c,c.type,m.value),Ur(s,c,m.children,f),c.child;case 9:return x=c.type._context,m=c.pendingProps.children,$l(c),x=Vr(x),m=m(x),c.flags|=1,Ur(s,c,m,f),c.child;case 14:return ik(s,c,c.type,c.pendingProps,f);case 15:return sk(s,c,c.type,c.pendingProps,f);case 19:return mk(s,c,f);case 31:return m=c.pendingProps,f=c.mode,m={mode:m.mode,children:m.children},s===null?(f=tg(m,f),f.ref=c.ref,c.child=f,f.return=c,c=f):(f=Fi(s.child,m),f.ref=c.ref,c.child=f,f.return=c,c=f),c;case 22:return lk(s,c,f);case 24:return $l(c),m=Vr(Tr),s===null?(x=qv(),x===null&&(x=Un,w=Gv(),x.pooledCache=w,w.refCount++,w!==null&&(x.pooledCacheLanes|=f),x=w),c.memoizedState={parent:m,cache:x},Yv(c),Rs(c,Tr,x)):((s.lanes&f)!==0&&(Qv(s,c),gf(c,null,null,f),mf()),x=s.memoizedState,w=c.memoizedState,x.parent!==m?(x={parent:m,cache:m},c.memoizedState=x,c.lanes===0&&(c.memoizedState=c.updateQueue.baseState=x),Rs(c,Tr,m)):(m=w.cache,Rs(c,Tr,m),m!==x.cache&&$v(c,[Tr],f,!0))),Ur(s,c,c.pendingProps.children,f),c.child;case 29:throw c.pendingProps}throw Error(r(156,c.tag))}function Vi(s){s.flags|=4}function yk(s,c){if(c.type!=="stylesheet"||(c.state.loading&4)!==0)s.flags&=-16777217;else if(s.flags|=16777216,!_w(c)){if(c=da.current,c!==null&&((en&4194048)===en?Za!==null:(en&62914560)!==en&&(en&536870912)===0||c!==Za))throw pf=Wv,e2;s.flags|=8192}}function ng(s,c){c!==null&&(s.flags|=4),s.flags&16384&&(c=s.tag!==22?ao():536870912,s.lanes|=c,mu|=c)}function Tf(s,c){if(!mn)switch(s.tailMode){case"hidden":c=s.tail;for(var f=null;c!==null;)c.alternate!==null&&(f=c),c=c.sibling;f===null?s.tail=null:f.sibling=null;break;case"collapsed":f=s.tail;for(var m=null;f!==null;)f.alternate!==null&&(m=f),f=f.sibling;m===null?c||s.tail===null?s.tail=null:s.tail.sibling=null:m.sibling=null}}function er(s){var c=s.alternate!==null&&s.alternate.child===s.child,f=0,m=0;if(c)for(var x=s.child;x!==null;)f|=x.lanes|x.childLanes,m|=x.subtreeFlags&65011712,m|=x.flags&65011712,x.return=s,x=x.sibling;else for(x=s.child;x!==null;)f|=x.lanes|x.childLanes,m|=x.subtreeFlags,m|=x.flags,x.return=s,x=x.sibling;return s.subtreeFlags|=m,s.childLanes=f,c}function MF(s,c,f){var m=c.pendingProps;switch(Bv(c),c.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return er(c),null;case 1:return er(c),null;case 3:return f=c.stateNode,m=null,s!==null&&(m=s.memoizedState.cache),c.memoizedState.cache!==m&&(c.flags|=2048),zi(Tr),De(),f.pendingContext&&(f.context=f.pendingContext,f.pendingContext=null),(s===null||s.child===null)&&(af(c)?Vi(c):s===null||s.memoizedState.isDehydrated&&(c.flags&256)===0||(c.flags|=1024,QA())),er(c),null;case 26:return f=c.memoizedState,s===null?(Vi(c),f!==null?(er(c),yk(c,f)):(er(c),c.flags&=-16777217)):f?f!==s.memoizedState?(Vi(c),er(c),yk(c,f)):(er(c),c.flags&=-16777217):(s.memoizedProps!==m&&Vi(c),er(c),c.flags&=-16777217),null;case 27:Se(c),f=ne.current;var x=c.type;if(s!==null&&c.stateNode!=null)s.memoizedProps!==m&&Vi(c);else{if(!m){if(c.stateNode===null)throw Error(r(166));return er(c),null}s=J.current,af(c)?WA(c):(s=yw(x,m,f),c.stateNode=s,Vi(c))}return er(c),null;case 5:if(Se(c),f=c.type,s!==null&&c.stateNode!=null)s.memoizedProps!==m&&Vi(c);else{if(!m){if(c.stateNode===null)throw Error(r(166));return er(c),null}if(s=J.current,af(c))WA(c);else{switch(x=mg(ne.current),s){case 1:s=x.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:s=x.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":s=x.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":s=x.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":s=x.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof m.is=="string"?x.createElement("select",{is:m.is}):x.createElement("select"),m.multiple?s.multiple=!0:m.size&&(s.size=m.size);break;default:s=typeof m.is=="string"?x.createElement(f,{is:m.is}):x.createElement(f)}}s[Oe]=c,s[He]=m;e:for(x=c.child;x!==null;){if(x.tag===5||x.tag===6)s.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===c)break e;for(;x.sibling===null;){if(x.return===null||x.return===c)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}c.stateNode=s;e:switch(Hr(s,f,m),f){case"button":case"input":case"select":case"textarea":s=!!m.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&Vi(c)}}return er(c),c.flags&=-16777217,null;case 6:if(s&&c.stateNode!=null)s.memoizedProps!==m&&Vi(c);else{if(typeof m!="string"&&c.stateNode===null)throw Error(r(166));if(s=ne.current,af(c)){if(s=c.stateNode,f=c.memoizedProps,m=null,x=lo,x!==null)switch(x.tag){case 27:case 5:m=x.memoizedProps}s[Oe]=c,s=!!(s.nodeValue===f||m!==null&&m.suppressHydrationWarning===!0||uw(s.nodeValue,f)),s||zl(c)}else s=mg(s).createTextNode(m),s[Oe]=c,c.stateNode=s}return er(c),null;case 13:if(m=c.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(x=af(c),m!==null&&m.dehydrated!==null){if(s===null){if(!x)throw Error(r(318));if(x=c.memoizedState,x=x!==null?x.dehydrated:null,!x)throw Error(r(317));x[Oe]=c}else sf(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;er(c),x=!1}else x=QA(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=x),x=!0;if(!x)return c.flags&256?($i(c),c):($i(c),null)}if($i(c),(c.flags&128)!==0)return c.lanes=f,c;if(f=m!==null,s=s!==null&&s.memoizedState!==null,f){m=c.child,x=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(x=m.alternate.memoizedState.cachePool.pool);var w=null;m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(w=m.memoizedState.cachePool.pool),w!==x&&(m.flags|=2048)}return f!==s&&f&&(c.child.flags|=8192),ng(c,c.updateQueue),er(c),null;case 4:return De(),s===null&&X1(c.stateNode.containerInfo),er(c),null;case 10:return zi(c.type),er(c),null;case 19:if(X(Cr),x=c.memoizedState,x===null)return er(c),null;if(m=(c.flags&128)!==0,w=x.rendering,w===null)if(m)Tf(x,!1);else{if(or!==0||s!==null&&(s.flags&128)!==0)for(s=c.child;s!==null;){if(w=Xm(s),w!==null){for(c.flags|=128,Tf(x,!1),s=w.updateQueue,c.updateQueue=s,ng(c,s),c.subtreeFlags=0,s=f,f=c.child;f!==null;)VA(f,s),f=f.sibling;return P(Cr,Cr.current&1|2),c.child}s=s.sibling}x.tail!==null&&qe()>ag&&(c.flags|=128,m=!0,Tf(x,!1),c.lanes=4194304)}else{if(!m)if(s=Xm(w),s!==null){if(c.flags|=128,m=!0,s=s.updateQueue,c.updateQueue=s,ng(c,s),Tf(x,!0),x.tail===null&&x.tailMode==="hidden"&&!w.alternate&&!mn)return er(c),null}else 2*qe()-x.renderingStartTime>ag&&f!==536870912&&(c.flags|=128,m=!0,Tf(x,!1),c.lanes=4194304);x.isBackwards?(w.sibling=c.child,c.child=w):(s=x.last,s!==null?s.sibling=w:c.child=w,x.last=w)}return x.tail!==null?(c=x.tail,x.rendering=c,x.tail=c.sibling,x.renderingStartTime=qe(),c.sibling=null,s=Cr.current,P(Cr,m?s&1|2:s&1),c):(er(c),null);case 22:case 23:return $i(c),Jv(),m=c.memoizedState!==null,s!==null?s.memoizedState!==null!==m&&(c.flags|=8192):m&&(c.flags|=8192),m?(f&536870912)!==0&&(c.flags&128)===0&&(er(c),c.subtreeFlags&6&&(c.flags|=8192)):er(c),f=c.updateQueue,f!==null&&ng(c,f.retryQueue),f=null,s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(f=s.memoizedState.cachePool.pool),m=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(m=c.memoizedState.cachePool.pool),m!==f&&(c.flags|=2048),s!==null&&X(Gl),null;case 24:return f=null,s!==null&&(f=s.memoizedState.cache),c.memoizedState.cache!==f&&(c.flags|=2048),zi(Tr),er(c),null;case 25:return null;case 30:return null}throw Error(r(156,c.tag))}function FF(s,c){switch(Bv(c),c.tag){case 1:return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 3:return zi(Tr),De(),s=c.flags,(s&65536)!==0&&(s&128)===0?(c.flags=s&-65537|128,c):null;case 26:case 27:case 5:return Se(c),null;case 13:if($i(c),s=c.memoizedState,s!==null&&s.dehydrated!==null){if(c.alternate===null)throw Error(r(340));sf()}return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 19:return X(Cr),null;case 4:return De(),null;case 10:return zi(c.type),null;case 22:case 23:return $i(c),Jv(),s!==null&&X(Gl),s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 24:return zi(Tr),null;case 25:return null;default:return null}}function bk(s,c){switch(Bv(c),c.tag){case 3:zi(Tr),De();break;case 26:case 27:case 5:Se(c);break;case 4:De();break;case 13:$i(c);break;case 19:X(Cr);break;case 10:zi(c.type);break;case 22:case 23:$i(c),Jv(),s!==null&&X(Gl);break;case 24:zi(Tr)}}function Cf(s,c){try{var f=c.updateQueue,m=f!==null?f.lastEffect:null;if(m!==null){var x=m.next;f=x;do{if((f.tag&s)===s){m=void 0;var w=f.create,M=f.inst;m=w(),M.destroy=m}f=f.next}while(f!==x)}}catch(V){Fn(c,c.return,V)}}function Ms(s,c,f){try{var m=c.updateQueue,x=m!==null?m.lastEffect:null;if(x!==null){var w=x.next;m=w;do{if((m.tag&s)===s){var M=m.inst,V=M.destroy;if(V!==void 0){M.destroy=void 0,x=c;var te=f,pe=V;try{pe()}catch(we){Fn(x,te,we)}}}m=m.next}while(m!==w)}}catch(we){Fn(c,c.return,we)}}function vk(s){var c=s.updateQueue;if(c!==null){var f=s.stateNode;try{i2(c,f)}catch(m){Fn(s,s.return,m)}}}function Ek(s,c,f){f.props=ql(s.type,s.memoizedProps),f.state=s.memoizedState;try{f.componentWillUnmount()}catch(m){Fn(s,c,m)}}function _f(s,c){try{var f=s.ref;if(f!==null){switch(s.tag){case 26:case 27:case 5:var m=s.stateNode;break;case 30:m=s.stateNode;break;default:m=s.stateNode}typeof f=="function"?s.refCleanup=f(m):f.current=m}}catch(x){Fn(s,c,x)}}function Ja(s,c){var f=s.ref,m=s.refCleanup;if(f!==null)if(typeof m=="function")try{m()}catch(x){Fn(s,c,x)}finally{s.refCleanup=null,s=s.alternate,s!=null&&(s.refCleanup=null)}else if(typeof f=="function")try{f(null)}catch(x){Fn(s,c,x)}else f.current=null}function xk(s){var c=s.type,f=s.memoizedProps,m=s.stateNode;try{e:switch(c){case"button":case"input":case"select":case"textarea":f.autoFocus&&m.focus();break e;case"img":f.src?m.src=f.src:f.srcSet&&(m.srcset=f.srcSet)}}catch(x){Fn(s,s.return,x)}}function k1(s,c,f){try{var m=s.stateNode;oj(m,s.type,f,c),m[He]=c}catch(x){Fn(s,s.return,x)}}function Sk(s){return s.tag===5||s.tag===3||s.tag===26||s.tag===27&&Gs(s.type)||s.tag===4}function w1(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||Sk(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.tag===27&&Gs(s.type)||s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function R1(s,c,f){var m=s.tag;if(m===5||m===6)s=s.stateNode,c?(f.nodeType===9?f.body:f.nodeName==="HTML"?f.ownerDocument.body:f).insertBefore(s,c):(c=f.nodeType===9?f.body:f.nodeName==="HTML"?f.ownerDocument.body:f,c.appendChild(s),f=f._reactRootContainer,f!=null||c.onclick!==null||(c.onclick=hg));else if(m!==4&&(m===27&&Gs(s.type)&&(f=s.stateNode,c=null),s=s.child,s!==null))for(R1(s,c,f),s=s.sibling;s!==null;)R1(s,c,f),s=s.sibling}function rg(s,c,f){var m=s.tag;if(m===5||m===6)s=s.stateNode,c?f.insertBefore(s,c):f.appendChild(s);else if(m!==4&&(m===27&&Gs(s.type)&&(f=s.stateNode),s=s.child,s!==null))for(rg(s,c,f),s=s.sibling;s!==null;)rg(s,c,f),s=s.sibling}function Tk(s){var c=s.stateNode,f=s.memoizedProps;try{for(var m=s.type,x=c.attributes;x.length;)c.removeAttributeNode(x[0]);Hr(c,m,f),c[Oe]=s,c[He]=f}catch(w){Fn(s,s.return,w)}}var qi=!1,fr=!1,D1=!1,Ck=typeof WeakSet=="function"?WeakSet:Set,Or=null;function jF(s,c){if(s=s.containerInfo,eE=xg,s=LA(s),wv(s)){if("selectionStart"in s)var f={start:s.selectionStart,end:s.selectionEnd};else e:{f=(f=s.ownerDocument)&&f.defaultView||window;var m=f.getSelection&&f.getSelection();if(m&&m.rangeCount!==0){f=m.anchorNode;var x=m.anchorOffset,w=m.focusNode;m=m.focusOffset;try{f.nodeType,w.nodeType}catch{f=null;break e}var M=0,V=-1,te=-1,pe=0,we=0,Ie=s,he=null;t:for(;;){for(var ge;Ie!==f||x!==0&&Ie.nodeType!==3||(V=M+x),Ie!==w||m!==0&&Ie.nodeType!==3||(te=M+m),Ie.nodeType===3&&(M+=Ie.nodeValue.length),(ge=Ie.firstChild)!==null;)he=Ie,Ie=ge;for(;;){if(Ie===s)break t;if(he===f&&++pe===x&&(V=M),he===w&&++we===m&&(te=M),(ge=Ie.nextSibling)!==null)break;Ie=he,he=Ie.parentNode}Ie=ge}f=V===-1||te===-1?null:{start:V,end:te}}else f=null}f=f||{start:0,end:0}}else f=null;for(tE={focusedElem:s,selectionRange:f},xg=!1,Or=c;Or!==null;)if(c=Or,s=c.child,(c.subtreeFlags&1024)!==0&&s!==null)s.return=c,Or=s;else for(;Or!==null;){switch(c=Or,w=c.alternate,s=c.flags,c.tag){case 0:break;case 11:case 15:break;case 1:if((s&1024)!==0&&w!==null){s=void 0,f=c,x=w.memoizedProps,w=w.memoizedState,m=f.stateNode;try{var _t=ql(f.type,x,f.elementType===f.type);s=m.getSnapshotBeforeUpdate(_t,w),m.__reactInternalSnapshotBeforeUpdate=s}catch(Et){Fn(f,f.return,Et)}}break;case 3:if((s&1024)!==0){if(s=c.stateNode.containerInfo,f=s.nodeType,f===9)oE(s);else if(f===1)switch(s.nodeName){case"HEAD":case"HTML":case"BODY":oE(s);break;default:s.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((s&1024)!==0)throw Error(r(163))}if(s=c.sibling,s!==null){s.return=c.return,Or=s;break}Or=c.return}}function _k(s,c,f){var m=f.flags;switch(f.tag){case 0:case 11:case 15:Fs(s,f),m&4&&Cf(5,f);break;case 1:if(Fs(s,f),m&4)if(s=f.stateNode,c===null)try{s.componentDidMount()}catch(M){Fn(f,f.return,M)}else{var x=ql(f.type,c.memoizedProps);c=c.memoizedState;try{s.componentDidUpdate(x,c,s.__reactInternalSnapshotBeforeUpdate)}catch(M){Fn(f,f.return,M)}}m&64&&vk(f),m&512&&_f(f,f.return);break;case 3:if(Fs(s,f),m&64&&(s=f.updateQueue,s!==null)){if(c=null,f.child!==null)switch(f.child.tag){case 27:case 5:c=f.child.stateNode;break;case 1:c=f.child.stateNode}try{i2(s,c)}catch(M){Fn(f,f.return,M)}}break;case 27:c===null&&m&4&&Tk(f);case 26:case 5:Fs(s,f),c===null&&m&4&&xk(f),m&512&&_f(f,f.return);break;case 12:Fs(s,f);break;case 13:Fs(s,f),m&4&&wk(s,f),m&64&&(s=f.memoizedState,s!==null&&(s=s.dehydrated,s!==null&&(f=WF.bind(null,f),dj(s,f))));break;case 22:if(m=f.memoizedState!==null||qi,!m){c=c!==null&&c.memoizedState!==null||fr,x=qi;var w=fr;qi=m,(fr=c)&&!w?js(s,f,(f.subtreeFlags&8772)!==0):Fs(s,f),qi=x,fr=w}break;case 30:break;default:Fs(s,f)}}function Ak(s){var c=s.alternate;c!==null&&(s.alternate=null,Ak(c)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(c=s.stateNode,c!==null&&ct(c)),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}var Wn=null,Co=!1;function Wi(s,c,f){for(f=f.child;f!==null;)kk(s,c,f),f=f.sibling}function kk(s,c,f){if(ye&&typeof ye.onCommitFiberUnmount=="function")try{ye.onCommitFiberUnmount(de,f)}catch{}switch(f.tag){case 26:fr||Ja(f,c),Wi(s,c,f),f.memoizedState?f.memoizedState.count--:f.stateNode&&(f=f.stateNode,f.parentNode.removeChild(f));break;case 27:fr||Ja(f,c);var m=Wn,x=Co;Gs(f.type)&&(Wn=f.stateNode,Co=!1),Wi(s,c,f),Pf(f.stateNode),Wn=m,Co=x;break;case 5:fr||Ja(f,c);case 6:if(m=Wn,x=Co,Wn=null,Wi(s,c,f),Wn=m,Co=x,Wn!==null)if(Co)try{(Wn.nodeType===9?Wn.body:Wn.nodeName==="HTML"?Wn.ownerDocument.body:Wn).removeChild(f.stateNode)}catch(w){Fn(f,c,w)}else try{Wn.removeChild(f.stateNode)}catch(w){Fn(f,c,w)}break;case 18:Wn!==null&&(Co?(s=Wn,mw(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,f.stateNode),Hf(s)):mw(Wn,f.stateNode));break;case 4:m=Wn,x=Co,Wn=f.stateNode.containerInfo,Co=!0,Wi(s,c,f),Wn=m,Co=x;break;case 0:case 11:case 14:case 15:fr||Ms(2,f,c),fr||Ms(4,f,c),Wi(s,c,f);break;case 1:fr||(Ja(f,c),m=f.stateNode,typeof m.componentWillUnmount=="function"&&Ek(f,c,m)),Wi(s,c,f);break;case 21:Wi(s,c,f);break;case 22:fr=(m=fr)||f.memoizedState!==null,Wi(s,c,f),fr=m;break;default:Wi(s,c,f)}}function wk(s,c){if(c.memoizedState===null&&(s=c.alternate,s!==null&&(s=s.memoizedState,s!==null&&(s=s.dehydrated,s!==null))))try{Hf(s)}catch(f){Fn(c,c.return,f)}}function BF(s){switch(s.tag){case 13:case 19:var c=s.stateNode;return c===null&&(c=s.stateNode=new Ck),c;case 22:return s=s.stateNode,c=s._retryCache,c===null&&(c=s._retryCache=new Ck),c;default:throw Error(r(435,s.tag))}}function I1(s,c){var f=BF(s);c.forEach(function(m){var x=YF.bind(null,s,m);f.has(m)||(f.add(m),m.then(x,x))})}function zo(s,c){var f=c.deletions;if(f!==null)for(var m=0;m<f.length;m++){var x=f[m],w=s,M=c,V=M;e:for(;V!==null;){switch(V.tag){case 27:if(Gs(V.type)){Wn=V.stateNode,Co=!1;break e}break;case 5:Wn=V.stateNode,Co=!1;break e;case 3:case 4:Wn=V.stateNode.containerInfo,Co=!0;break e}V=V.return}if(Wn===null)throw Error(r(160));kk(w,M,x),Wn=null,Co=!1,w=x.alternate,w!==null&&(w.return=null),x.return=null}if(c.subtreeFlags&13878)for(c=c.child;c!==null;)Rk(c,s),c=c.sibling}var Pa=null;function Rk(s,c){var f=s.alternate,m=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:zo(c,s),Ho(s),m&4&&(Ms(3,s,s.return),Cf(3,s),Ms(5,s,s.return));break;case 1:zo(c,s),Ho(s),m&512&&(fr||f===null||Ja(f,f.return)),m&64&&qi&&(s=s.updateQueue,s!==null&&(m=s.callbacks,m!==null&&(f=s.shared.hiddenCallbacks,s.shared.hiddenCallbacks=f===null?m:f.concat(m))));break;case 26:var x=Pa;if(zo(c,s),Ho(s),m&512&&(fr||f===null||Ja(f,f.return)),m&4){var w=f!==null?f.memoizedState:null;if(m=s.memoizedState,f===null)if(m===null)if(s.stateNode===null){e:{m=s.type,f=s.memoizedProps,x=x.ownerDocument||x;t:switch(m){case"title":w=x.getElementsByTagName("title")[0],(!w||w[it]||w[Oe]||w.namespaceURI==="http://www.w3.org/2000/svg"||w.hasAttribute("itemprop"))&&(w=x.createElement(m),x.head.insertBefore(w,x.querySelector("head > title"))),Hr(w,m,f),w[Oe]=s,Pt(w),m=w;break e;case"link":var M=Tw("link","href",x).get(m+(f.href||""));if(M){for(var V=0;V<M.length;V++)if(w=M[V],w.getAttribute("href")===(f.href==null||f.href===""?null:f.href)&&w.getAttribute("rel")===(f.rel==null?null:f.rel)&&w.getAttribute("title")===(f.title==null?null:f.title)&&w.getAttribute("crossorigin")===(f.crossOrigin==null?null:f.crossOrigin)){M.splice(V,1);break t}}w=x.createElement(m),Hr(w,m,f),x.head.appendChild(w);break;case"meta":if(M=Tw("meta","content",x).get(m+(f.content||""))){for(V=0;V<M.length;V++)if(w=M[V],w.getAttribute("content")===(f.content==null?null:""+f.content)&&w.getAttribute("name")===(f.name==null?null:f.name)&&w.getAttribute("property")===(f.property==null?null:f.property)&&w.getAttribute("http-equiv")===(f.httpEquiv==null?null:f.httpEquiv)&&w.getAttribute("charset")===(f.charSet==null?null:f.charSet)){M.splice(V,1);break t}}w=x.createElement(m),Hr(w,m,f),x.head.appendChild(w);break;default:throw Error(r(468,m))}w[Oe]=s,Pt(w),m=w}s.stateNode=m}else Cw(x,s.type,s.stateNode);else s.stateNode=Sw(x,m,s.memoizedProps);else w!==m?(w===null?f.stateNode!==null&&(f=f.stateNode,f.parentNode.removeChild(f)):w.count--,m===null?Cw(x,s.type,s.stateNode):Sw(x,m,s.memoizedProps)):m===null&&s.stateNode!==null&&k1(s,s.memoizedProps,f.memoizedProps)}break;case 27:zo(c,s),Ho(s),m&512&&(fr||f===null||Ja(f,f.return)),f!==null&&m&4&&k1(s,s.memoizedProps,f.memoizedProps);break;case 5:if(zo(c,s),Ho(s),m&512&&(fr||f===null||Ja(f,f.return)),s.flags&32){x=s.stateNode;try{Wc(x,"")}catch(ge){Fn(s,s.return,ge)}}m&4&&s.stateNode!=null&&(x=s.memoizedProps,k1(s,x,f!==null?f.memoizedProps:x)),m&1024&&(D1=!0);break;case 6:if(zo(c,s),Ho(s),m&4){if(s.stateNode===null)throw Error(r(162));m=s.memoizedProps,f=s.stateNode;try{f.nodeValue=m}catch(ge){Fn(s,s.return,ge)}}break;case 3:if(bg=null,x=Pa,Pa=gg(c.containerInfo),zo(c,s),Pa=x,Ho(s),m&4&&f!==null&&f.memoizedState.isDehydrated)try{Hf(c.containerInfo)}catch(ge){Fn(s,s.return,ge)}D1&&(D1=!1,Dk(s));break;case 4:m=Pa,Pa=gg(s.stateNode.containerInfo),zo(c,s),Ho(s),Pa=m;break;case 12:zo(c,s),Ho(s);break;case 13:zo(c,s),Ho(s),s.child.flags&8192&&s.memoizedState!==null!=(f!==null&&f.memoizedState!==null)&&(F1=qe()),m&4&&(m=s.updateQueue,m!==null&&(s.updateQueue=null,I1(s,m)));break;case 22:x=s.memoizedState!==null;var te=f!==null&&f.memoizedState!==null,pe=qi,we=fr;if(qi=pe||x,fr=we||te,zo(c,s),fr=we,qi=pe,Ho(s),m&8192)e:for(c=s.stateNode,c._visibility=x?c._visibility&-2:c._visibility|1,x&&(f===null||te||qi||fr||Wl(s)),f=null,c=s;;){if(c.tag===5||c.tag===26){if(f===null){te=f=c;try{if(w=te.stateNode,x)M=w.style,typeof M.setProperty=="function"?M.setProperty("display","none","important"):M.display="none";else{V=te.stateNode;var Ie=te.memoizedProps.style,he=Ie!=null&&Ie.hasOwnProperty("display")?Ie.display:null;V.style.display=he==null||typeof he=="boolean"?"":(""+he).trim()}}catch(ge){Fn(te,te.return,ge)}}}else if(c.tag===6){if(f===null){te=c;try{te.stateNode.nodeValue=x?"":te.memoizedProps}catch(ge){Fn(te,te.return,ge)}}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===s)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===s)break e;for(;c.sibling===null;){if(c.return===null||c.return===s)break e;f===c&&(f=null),c=c.return}f===c&&(f=null),c.sibling.return=c.return,c=c.sibling}m&4&&(m=s.updateQueue,m!==null&&(f=m.retryQueue,f!==null&&(m.retryQueue=null,I1(s,f))));break;case 19:zo(c,s),Ho(s),m&4&&(m=s.updateQueue,m!==null&&(s.updateQueue=null,I1(s,m)));break;case 30:break;case 21:break;default:zo(c,s),Ho(s)}}function Ho(s){var c=s.flags;if(c&2){try{for(var f,m=s.return;m!==null;){if(Sk(m)){f=m;break}m=m.return}if(f==null)throw Error(r(160));switch(f.tag){case 27:var x=f.stateNode,w=w1(s);rg(s,w,x);break;case 5:var M=f.stateNode;f.flags&32&&(Wc(M,""),f.flags&=-33);var V=w1(s);rg(s,V,M);break;case 3:case 4:var te=f.stateNode.containerInfo,pe=w1(s);R1(s,pe,te);break;default:throw Error(r(161))}}catch(we){Fn(s,s.return,we)}s.flags&=-3}c&4096&&(s.flags&=-4097)}function Dk(s){if(s.subtreeFlags&1024)for(s=s.child;s!==null;){var c=s;Dk(c),c.tag===5&&c.flags&1024&&c.stateNode.reset(),s=s.sibling}}function Fs(s,c){if(c.subtreeFlags&8772)for(c=c.child;c!==null;)_k(s,c.alternate,c),c=c.sibling}function Wl(s){for(s=s.child;s!==null;){var c=s;switch(c.tag){case 0:case 11:case 14:case 15:Ms(4,c,c.return),Wl(c);break;case 1:Ja(c,c.return);var f=c.stateNode;typeof f.componentWillUnmount=="function"&&Ek(c,c.return,f),Wl(c);break;case 27:Pf(c.stateNode);case 26:case 5:Ja(c,c.return),Wl(c);break;case 22:c.memoizedState===null&&Wl(c);break;case 30:Wl(c);break;default:Wl(c)}s=s.sibling}}function js(s,c,f){for(f=f&&(c.subtreeFlags&8772)!==0,c=c.child;c!==null;){var m=c.alternate,x=s,w=c,M=w.flags;switch(w.tag){case 0:case 11:case 15:js(x,w,f),Cf(4,w);break;case 1:if(js(x,w,f),m=w,x=m.stateNode,typeof x.componentDidMount=="function")try{x.componentDidMount()}catch(pe){Fn(m,m.return,pe)}if(m=w,x=m.updateQueue,x!==null){var V=m.stateNode;try{var te=x.shared.hiddenCallbacks;if(te!==null)for(x.shared.hiddenCallbacks=null,x=0;x<te.length;x++)a2(te[x],V)}catch(pe){Fn(m,m.return,pe)}}f&&M&64&&vk(w),_f(w,w.return);break;case 27:Tk(w);case 26:case 5:js(x,w,f),f&&m===null&&M&4&&xk(w),_f(w,w.return);break;case 12:js(x,w,f);break;case 13:js(x,w,f),f&&M&4&&wk(x,w);break;case 22:w.memoizedState===null&&js(x,w,f),_f(w,w.return);break;case 30:break;default:js(x,w,f)}c=c.sibling}}function O1(s,c){var f=null;s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(f=s.memoizedState.cachePool.pool),s=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(s=c.memoizedState.cachePool.pool),s!==f&&(s!=null&&s.refCount++,f!=null&&uf(f))}function N1(s,c){s=null,c.alternate!==null&&(s=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==s&&(c.refCount++,s!=null&&uf(s))}function ei(s,c,f,m){if(c.subtreeFlags&10256)for(c=c.child;c!==null;)Ik(s,c,f,m),c=c.sibling}function Ik(s,c,f,m){var x=c.flags;switch(c.tag){case 0:case 11:case 15:ei(s,c,f,m),x&2048&&Cf(9,c);break;case 1:ei(s,c,f,m);break;case 3:ei(s,c,f,m),x&2048&&(s=null,c.alternate!==null&&(s=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==s&&(c.refCount++,s!=null&&uf(s)));break;case 12:if(x&2048){ei(s,c,f,m),s=c.stateNode;try{var w=c.memoizedProps,M=w.id,V=w.onPostCommit;typeof V=="function"&&V(M,c.alternate===null?"mount":"update",s.passiveEffectDuration,-0)}catch(te){Fn(c,c.return,te)}}else ei(s,c,f,m);break;case 13:ei(s,c,f,m);break;case 23:break;case 22:w=c.stateNode,M=c.alternate,c.memoizedState!==null?w._visibility&2?ei(s,c,f,m):Af(s,c):w._visibility&2?ei(s,c,f,m):(w._visibility|=2,fu(s,c,f,m,(c.subtreeFlags&10256)!==0)),x&2048&&O1(M,c);break;case 24:ei(s,c,f,m),x&2048&&N1(c.alternate,c);break;default:ei(s,c,f,m)}}function fu(s,c,f,m,x){for(x=x&&(c.subtreeFlags&10256)!==0,c=c.child;c!==null;){var w=s,M=c,V=f,te=m,pe=M.flags;switch(M.tag){case 0:case 11:case 15:fu(w,M,V,te,x),Cf(8,M);break;case 23:break;case 22:var we=M.stateNode;M.memoizedState!==null?we._visibility&2?fu(w,M,V,te,x):Af(w,M):(we._visibility|=2,fu(w,M,V,te,x)),x&&pe&2048&&O1(M.alternate,M);break;case 24:fu(w,M,V,te,x),x&&pe&2048&&N1(M.alternate,M);break;default:fu(w,M,V,te,x)}c=c.sibling}}function Af(s,c){if(c.subtreeFlags&10256)for(c=c.child;c!==null;){var f=s,m=c,x=m.flags;switch(m.tag){case 22:Af(f,m),x&2048&&O1(m.alternate,m);break;case 24:Af(f,m),x&2048&&N1(m.alternate,m);break;default:Af(f,m)}c=c.sibling}}var kf=8192;function pu(s){if(s.subtreeFlags&kf)for(s=s.child;s!==null;)Ok(s),s=s.sibling}function Ok(s){switch(s.tag){case 26:pu(s),s.flags&kf&&s.memoizedState!==null&&Cj(Pa,s.memoizedState,s.memoizedProps);break;case 5:pu(s);break;case 3:case 4:var c=Pa;Pa=gg(s.stateNode.containerInfo),pu(s),Pa=c;break;case 22:s.memoizedState===null&&(c=s.alternate,c!==null&&c.memoizedState!==null?(c=kf,kf=16777216,pu(s),kf=c):pu(s));break;default:pu(s)}}function Nk(s){var c=s.alternate;if(c!==null&&(s=c.child,s!==null)){c.child=null;do c=s.sibling,s.sibling=null,s=c;while(s!==null)}}function wf(s){var c=s.deletions;if((s.flags&16)!==0){if(c!==null)for(var f=0;f<c.length;f++){var m=c[f];Or=m,Lk(m,s)}Nk(s)}if(s.subtreeFlags&10256)for(s=s.child;s!==null;)Pk(s),s=s.sibling}function Pk(s){switch(s.tag){case 0:case 11:case 15:wf(s),s.flags&2048&&Ms(9,s,s.return);break;case 3:wf(s);break;case 12:wf(s);break;case 22:var c=s.stateNode;s.memoizedState!==null&&c._visibility&2&&(s.return===null||s.return.tag!==13)?(c._visibility&=-3,og(s)):wf(s);break;default:wf(s)}}function og(s){var c=s.deletions;if((s.flags&16)!==0){if(c!==null)for(var f=0;f<c.length;f++){var m=c[f];Or=m,Lk(m,s)}Nk(s)}for(s=s.child;s!==null;){switch(c=s,c.tag){case 0:case 11:case 15:Ms(8,c,c.return),og(c);break;case 22:f=c.stateNode,f._visibility&2&&(f._visibility&=-3,og(c));break;default:og(c)}s=s.sibling}}function Lk(s,c){for(;Or!==null;){var f=Or;switch(f.tag){case 0:case 11:case 15:Ms(8,f,c);break;case 23:case 22:if(f.memoizedState!==null&&f.memoizedState.cachePool!==null){var m=f.memoizedState.cachePool.pool;m!=null&&m.refCount++}break;case 24:uf(f.memoizedState.cache)}if(m=f.child,m!==null)m.return=f,Or=m;else e:for(f=s;Or!==null;){m=Or;var x=m.sibling,w=m.return;if(Ak(m),m===f){Or=null;break e}if(x!==null){x.return=w,Or=x;break e}Or=w}}}var UF={getCacheForType:function(s){var c=Vr(Tr),f=c.data.get(s);return f===void 0&&(f=s(),c.data.set(s,f)),f}},zF=typeof WeakMap=="function"?WeakMap:Map,xn=0,Un=null,qt=null,en=0,Sn=0,$o=null,Bs=!1,hu=!1,P1=!1,Yi=0,or=0,Us=0,Yl=0,L1=0,fa=0,mu=0,Rf=null,_o=null,M1=!1,F1=0,ag=1/0,ig=null,zs=null,zr=0,Hs=null,gu=null,yu=0,j1=0,B1=null,Mk=null,Df=0,U1=null;function Go(){if((xn&2)!==0&&en!==0)return en&-en;if(U.T!==null){var s=ou;return s!==0?s:W1()}return re()}function Fk(){fa===0&&(fa=(en&536870912)===0||mn?Zn():536870912);var s=da.current;return s!==null&&(s.flags|=32),fa}function Vo(s,c,f){(s===Un&&(Sn===2||Sn===9)||s.cancelPendingCommit!==null)&&(bu(s,0),$s(s,en,fa,!1)),Rr(s,f),((xn&2)===0||s!==Un)&&(s===Un&&((xn&2)===0&&(Yl|=f),or===4&&$s(s,en,fa,!1)),ti(s))}function jk(s,c,f){if((xn&6)!==0)throw Error(r(327));var m=!f&&(c&124)===0&&(c&s.expiredLanes)===0||mt(s,c),x=m?GF(s,c):$1(s,c,!0),w=m;do{if(x===0){hu&&!m&&$s(s,c,0,!1);break}else{if(f=s.current.alternate,w&&!HF(f)){x=$1(s,c,!1),w=!1;continue}if(x===2){if(w=c,s.errorRecoveryDisabledLanes&w)var M=0;else M=s.pendingLanes&-536870913,M=M!==0?M:M&536870912?536870912:0;if(M!==0){c=M;e:{var V=s;x=Rf;var te=V.current.memoizedState.isDehydrated;if(te&&(bu(V,M).flags|=256),M=$1(V,M,!1),M!==2){if(P1&&!te){V.errorRecoveryDisabledLanes|=w,Yl|=w,x=4;break e}w=_o,_o=x,w!==null&&(_o===null?_o=w:_o.push.apply(_o,w))}x=M}if(w=!1,x!==2)continue}}if(x===1){bu(s,0),$s(s,c,0,!0);break}e:{switch(m=s,w=x,w){case 0:case 1:throw Error(r(345));case 4:if((c&4194048)!==c)break;case 6:$s(m,c,fa,!Bs);break e;case 2:_o=null;break;case 3:case 5:break;default:throw Error(r(329))}if((c&62914560)===c&&(x=F1+300-qe(),10<x)){if($s(m,c,fa,!Bs),Te(m,0,!0)!==0)break e;m.timeoutHandle=pw(Bk.bind(null,m,f,_o,ig,M1,c,fa,Yl,mu,Bs,w,2,-0,0),x);break e}Bk(m,f,_o,ig,M1,c,fa,Yl,mu,Bs,w,0,-0,0)}}break}while(!0);ti(s)}function Bk(s,c,f,m,x,w,M,V,te,pe,we,Ie,he,ge){if(s.timeoutHandle=-1,Ie=c.subtreeFlags,(Ie&8192||(Ie&16785408)===16785408)&&(Ff={stylesheets:null,count:0,unsuspend:Tj},Ok(c),Ie=_j(),Ie!==null)){s.cancelPendingCommit=Ie(qk.bind(null,s,c,w,f,m,x,M,V,te,we,1,he,ge)),$s(s,w,M,!pe);return}qk(s,c,w,f,m,x,M,V,te)}function HF(s){for(var c=s;;){var f=c.tag;if((f===0||f===11||f===15)&&c.flags&16384&&(f=c.updateQueue,f!==null&&(f=f.stores,f!==null)))for(var m=0;m<f.length;m++){var x=f[m],w=x.getSnapshot;x=x.value;try{if(!Bo(w(),x))return!1}catch{return!1}}if(f=c.child,c.subtreeFlags&16384&&f!==null)f.return=c,c=f;else{if(c===s)break;for(;c.sibling===null;){if(c.return===null||c.return===s)return!0;c=c.return}c.sibling.return=c.return,c=c.sibling}}return!0}function $s(s,c,f,m){c&=~L1,c&=~Yl,s.suspendedLanes|=c,s.pingedLanes&=~c,m&&(s.warmLanes|=c),m=s.expirationTimes;for(var x=c;0<x;){var w=31-Ke(x),M=1<<w;m[w]=-1,x&=~M}f!==0&&ra(s,f,c)}function sg(){return(xn&6)===0?(If(0),!1):!0}function z1(){if(qt!==null){if(Sn===0)var s=qt.return;else s=qt,Ui=Hl=null,o1(s),uu=null,xf=0,s=qt;for(;s!==null;)bk(s.alternate,s),s=s.return;qt=null}}function bu(s,c){var f=s.timeoutHandle;f!==-1&&(s.timeoutHandle=-1,ij(f)),f=s.cancelPendingCommit,f!==null&&(s.cancelPendingCommit=null,f()),z1(),Un=s,qt=f=Fi(s.current,null),en=c,Sn=0,$o=null,Bs=!1,hu=mt(s,c),P1=!1,mu=fa=L1=Yl=Us=or=0,_o=Rf=null,M1=!1,(c&8)!==0&&(c|=c&32);var m=s.entangledLanes;if(m!==0)for(s=s.entanglements,m&=c;0<m;){var x=31-Ke(m),w=1<<x;c|=s[x],m&=~w}return Yi=c,Rm(),f}function Uk(s,c){$t=null,U.H=Ym,c===ff||c===jm?(c=r2(),Sn=3):c===e2?(c=r2(),Sn=4):Sn=c===ok?8:c!==null&&typeof c=="object"&&typeof c.then=="function"?6:1,$o=c,qt===null&&(or=1,Jm(s,sa(c,s.current)))}function zk(){var s=U.H;return U.H=Ym,s===null?Ym:s}function Hk(){var s=U.A;return U.A=UF,s}function H1(){or=4,Bs||(en&4194048)!==en&&da.current!==null||(hu=!0),(Us&134217727)===0&&(Yl&134217727)===0||Un===null||$s(Un,en,fa,!1)}function $1(s,c,f){var m=xn;xn|=2;var x=zk(),w=Hk();(Un!==s||en!==c)&&(ig=null,bu(s,c)),c=!1;var M=or;e:do try{if(Sn!==0&&qt!==null){var V=qt,te=$o;switch(Sn){case 8:z1(),M=6;break e;case 3:case 2:case 9:case 6:da.current===null&&(c=!0);var pe=Sn;if(Sn=0,$o=null,vu(s,V,te,pe),f&&hu){M=0;break e}break;default:pe=Sn,Sn=0,$o=null,vu(s,V,te,pe)}}$F(),M=or;break}catch(we){Uk(s,we)}while(!0);return c&&s.shellSuspendCounter++,Ui=Hl=null,xn=m,U.H=x,U.A=w,qt===null&&(Un=null,en=0,Rm()),M}function $F(){for(;qt!==null;)$k(qt)}function GF(s,c){var f=xn;xn|=2;var m=zk(),x=Hk();Un!==s||en!==c?(ig=null,ag=qe()+500,bu(s,c)):hu=mt(s,c);e:do try{if(Sn!==0&&qt!==null){c=qt;var w=$o;t:switch(Sn){case 1:Sn=0,$o=null,vu(s,c,w,1);break;case 2:case 9:if(t2(w)){Sn=0,$o=null,Gk(c);break}c=function(){Sn!==2&&Sn!==9||Un!==s||(Sn=7),ti(s)},w.then(c,c);break e;case 3:Sn=7;break e;case 4:Sn=5;break e;case 7:t2(w)?(Sn=0,$o=null,Gk(c)):(Sn=0,$o=null,vu(s,c,w,7));break;case 5:var M=null;switch(qt.tag){case 26:M=qt.memoizedState;case 5:case 27:var V=qt;if(!M||_w(M)){Sn=0,$o=null;var te=V.sibling;if(te!==null)qt=te;else{var pe=V.return;pe!==null?(qt=pe,lg(pe)):qt=null}break t}}Sn=0,$o=null,vu(s,c,w,5);break;case 6:Sn=0,$o=null,vu(s,c,w,6);break;case 8:z1(),or=6;break e;default:throw Error(r(462))}}VF();break}catch(we){Uk(s,we)}while(!0);return Ui=Hl=null,U.H=m,U.A=x,xn=f,qt!==null?0:(Un=null,en=0,Rm(),or)}function VF(){for(;qt!==null&&!Ct();)$k(qt)}function $k(s){var c=gk(s.alternate,s,Yi);s.memoizedProps=s.pendingProps,c===null?lg(s):qt=c}function Gk(s){var c=s,f=c.alternate;switch(c.tag){case 15:case 0:c=uk(f,c,c.pendingProps,c.type,void 0,en);break;case 11:c=uk(f,c,c.pendingProps,c.type.render,c.ref,en);break;case 5:o1(c);default:bk(f,c),c=qt=VA(c,Yi),c=gk(f,c,Yi)}s.memoizedProps=s.pendingProps,c===null?lg(s):qt=c}function vu(s,c,f,m){Ui=Hl=null,o1(c),uu=null,xf=0;var x=c.return;try{if(PF(s,x,c,f,en)){or=1,Jm(s,sa(f,s.current)),qt=null;return}}catch(w){if(x!==null)throw qt=x,w;or=1,Jm(s,sa(f,s.current)),qt=null;return}c.flags&32768?(mn||m===1?s=!0:hu||(en&536870912)!==0?s=!1:(Bs=s=!0,(m===2||m===9||m===3||m===6)&&(m=da.current,m!==null&&m.tag===13&&(m.flags|=16384))),Vk(c,s)):lg(c)}function lg(s){var c=s;do{if((c.flags&32768)!==0){Vk(c,Bs);return}s=c.return;var f=MF(c.alternate,c,Yi);if(f!==null){qt=f;return}if(c=c.sibling,c!==null){qt=c;return}qt=c=s}while(c!==null);or===0&&(or=5)}function Vk(s,c){do{var f=FF(s.alternate,s);if(f!==null){f.flags&=32767,qt=f;return}if(f=s.return,f!==null&&(f.flags|=32768,f.subtreeFlags=0,f.deletions=null),!c&&(s=s.sibling,s!==null)){qt=s;return}qt=s=f}while(s!==null);or=6,qt=null}function qk(s,c,f,m,x,w,M,V,te){s.cancelPendingCommit=null;do cg();while(zr!==0);if((xn&6)!==0)throw Error(r(327));if(c!==null){if(c===s.current)throw Error(r(177));if(w=c.lanes|c.childLanes,w|=Nv,Dr(s,f,w,M,V,te),s===Un&&(qt=Un=null,en=0),gu=c,Hs=s,yu=f,j1=w,B1=x,Mk=m,(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?(s.callbackNode=null,s.callbackPriority=0,QF(je,function(){return Xk(),null})):(s.callbackNode=null,s.callbackPriority=0),m=(c.flags&13878)!==0,(c.subtreeFlags&13878)!==0||m){m=U.T,U.T=null,x=Q.p,Q.p=2,M=xn,xn|=4;try{jF(s,c,f)}finally{xn=M,Q.p=x,U.T=m}}zr=1,Wk(),Yk(),Qk()}}function Wk(){if(zr===1){zr=0;var s=Hs,c=gu,f=(c.flags&13878)!==0;if((c.subtreeFlags&13878)!==0||f){f=U.T,U.T=null;var m=Q.p;Q.p=2;var x=xn;xn|=4;try{Rk(c,s);var w=tE,M=LA(s.containerInfo),V=w.focusedElem,te=w.selectionRange;if(M!==V&&V&&V.ownerDocument&&PA(V.ownerDocument.documentElement,V)){if(te!==null&&wv(V)){var pe=te.start,we=te.end;if(we===void 0&&(we=pe),"selectionStart"in V)V.selectionStart=pe,V.selectionEnd=Math.min(we,V.value.length);else{var Ie=V.ownerDocument||document,he=Ie&&Ie.defaultView||window;if(he.getSelection){var ge=he.getSelection(),_t=V.textContent.length,Et=Math.min(te.start,_t),On=te.end===void 0?Et:Math.min(te.end,_t);!ge.extend&&Et>On&&(M=On,On=Et,Et=M);var ie=NA(V,Et),ae=NA(V,On);if(ie&&ae&&(ge.rangeCount!==1||ge.anchorNode!==ie.node||ge.anchorOffset!==ie.offset||ge.focusNode!==ae.node||ge.focusOffset!==ae.offset)){var ce=Ie.createRange();ce.setStart(ie.node,ie.offset),ge.removeAllRanges(),Et>On?(ge.addRange(ce),ge.extend(ae.node,ae.offset)):(ce.setEnd(ae.node,ae.offset),ge.addRange(ce))}}}}for(Ie=[],ge=V;ge=ge.parentNode;)ge.nodeType===1&&Ie.push({element:ge,left:ge.scrollLeft,top:ge.scrollTop});for(typeof V.focus=="function"&&V.focus(),V=0;V<Ie.length;V++){var Re=Ie[V];Re.element.scrollLeft=Re.left,Re.element.scrollTop=Re.top}}xg=!!eE,tE=eE=null}finally{xn=x,Q.p=m,U.T=f}}s.current=c,zr=2}}function Yk(){if(zr===2){zr=0;var s=Hs,c=gu,f=(c.flags&8772)!==0;if((c.subtreeFlags&8772)!==0||f){f=U.T,U.T=null;var m=Q.p;Q.p=2;var x=xn;xn|=4;try{_k(s,c.alternate,c)}finally{xn=x,Q.p=m,U.T=f}}zr=3}}function Qk(){if(zr===4||zr===3){zr=0,At();var s=Hs,c=gu,f=yu,m=Mk;(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?zr=5:(zr=0,gu=Hs=null,Kk(s,s.pendingLanes));var x=s.pendingLanes;if(x===0&&(zs=null),bt(f),c=c.stateNode,ye&&typeof ye.onCommitFiberRoot=="function")try{ye.onCommitFiberRoot(de,c,void 0,(c.current.flags&128)===128)}catch{}if(m!==null){c=U.T,x=Q.p,Q.p=2,U.T=null;try{for(var w=s.onRecoverableError,M=0;M<m.length;M++){var V=m[M];w(V.value,{componentStack:V.stack})}}finally{U.T=c,Q.p=x}}(yu&3)!==0&&cg(),ti(s),x=s.pendingLanes,(f&4194090)!==0&&(x&42)!==0?s===U1?Df++:(Df=0,U1=s):Df=0,If(0)}}function Kk(s,c){(s.pooledCacheLanes&=c)===0&&(c=s.pooledCache,c!=null&&(s.pooledCache=null,uf(c)))}function cg(s){return Wk(),Yk(),Qk(),Xk()}function Xk(){if(zr!==5)return!1;var s=Hs,c=j1;j1=0;var f=bt(yu),m=U.T,x=Q.p;try{Q.p=32>f?32:f,U.T=null,f=B1,B1=null;var w=Hs,M=yu;if(zr=0,gu=Hs=null,yu=0,(xn&6)!==0)throw Error(r(331));var V=xn;if(xn|=4,Pk(w.current),Ik(w,w.current,M,f),xn=V,If(0,!1),ye&&typeof ye.onPostCommitFiberRoot=="function")try{ye.onPostCommitFiberRoot(de,w)}catch{}return!0}finally{Q.p=x,U.T=m,Kk(s,c)}}function Zk(s,c,f){c=sa(f,c),c=b1(s.stateNode,c,2),s=Os(s,c,2),s!==null&&(Rr(s,2),ti(s))}function Fn(s,c,f){if(s.tag===3)Zk(s,s,f);else for(;c!==null;){if(c.tag===3){Zk(c,s,f);break}else if(c.tag===1){var m=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(zs===null||!zs.has(m))){s=sa(f,s),f=nk(2),m=Os(c,f,2),m!==null&&(rk(f,m,c,s),Rr(m,2),ti(m));break}}c=c.return}}function G1(s,c,f){var m=s.pingCache;if(m===null){m=s.pingCache=new zF;var x=new Set;m.set(c,x)}else x=m.get(c),x===void 0&&(x=new Set,m.set(c,x));x.has(f)||(P1=!0,x.add(f),s=qF.bind(null,s,c,f),c.then(s,s))}function qF(s,c,f){var m=s.pingCache;m!==null&&m.delete(c),s.pingedLanes|=s.suspendedLanes&f,s.warmLanes&=~f,Un===s&&(en&f)===f&&(or===4||or===3&&(en&62914560)===en&&300>qe()-F1?(xn&2)===0&&bu(s,0):L1|=f,mu===en&&(mu=0)),ti(s)}function Jk(s,c){c===0&&(c=ao()),s=eu(s,c),s!==null&&(Rr(s,c),ti(s))}function WF(s){var c=s.memoizedState,f=0;c!==null&&(f=c.retryLane),Jk(s,f)}function YF(s,c){var f=0;switch(s.tag){case 13:var m=s.stateNode,x=s.memoizedState;x!==null&&(f=x.retryLane);break;case 19:m=s.stateNode;break;case 22:m=s.stateNode._retryCache;break;default:throw Error(r(314))}m!==null&&m.delete(c),Jk(s,f)}function QF(s,c){return Ne(s,c)}var ug=null,Eu=null,V1=!1,dg=!1,q1=!1,Ql=0;function ti(s){s!==Eu&&s.next===null&&(Eu===null?ug=Eu=s:Eu=Eu.next=s),dg=!0,V1||(V1=!0,XF())}function If(s,c){if(!q1&&dg){q1=!0;do for(var f=!1,m=ug;m!==null;){if(s!==0){var x=m.pendingLanes;if(x===0)var w=0;else{var M=m.suspendedLanes,V=m.pingedLanes;w=(1<<31-Ke(42|s)+1)-1,w&=x&~(M&~V),w=w&201326741?w&201326741|1:w?w|2:0}w!==0&&(f=!0,rw(m,w))}else w=en,w=Te(m,m===Un?w:0,m.cancelPendingCommit!==null||m.timeoutHandle!==-1),(w&3)===0||mt(m,w)||(f=!0,rw(m,w));m=m.next}while(f);q1=!1}}function KF(){ew()}function ew(){dg=V1=!1;var s=0;Ql!==0&&(aj()&&(s=Ql),Ql=0);for(var c=qe(),f=null,m=ug;m!==null;){var x=m.next,w=tw(m,c);w===0?(m.next=null,f===null?ug=x:f.next=x,x===null&&(Eu=f)):(f=m,(s!==0||(w&3)!==0)&&(dg=!0)),m=x}If(s)}function tw(s,c){for(var f=s.suspendedLanes,m=s.pingedLanes,x=s.expirationTimes,w=s.pendingLanes&-62914561;0<w;){var M=31-Ke(w),V=1<<M,te=x[M];te===-1?((V&f)===0||(V&m)!==0)&&(x[M]=lt(V,c)):te<=c&&(s.expiredLanes|=V),w&=~V}if(c=Un,f=en,f=Te(s,s===c?f:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),m=s.callbackNode,f===0||s===c&&(Sn===2||Sn===9)||s.cancelPendingCommit!==null)return m!==null&&m!==null&&_e(m),s.callbackNode=null,s.callbackPriority=0;if((f&3)===0||mt(s,f)){if(c=f&-f,c===s.callbackPriority)return c;switch(m!==null&&_e(m),bt(f)){case 2:case 8:f=tt;break;case 32:f=je;break;case 268435456:f=Ut;break;default:f=je}return m=nw.bind(null,s),f=Ne(f,m),s.callbackPriority=c,s.callbackNode=f,c}return m!==null&&m!==null&&_e(m),s.callbackPriority=2,s.callbackNode=null,2}function nw(s,c){if(zr!==0&&zr!==5)return s.callbackNode=null,s.callbackPriority=0,null;var f=s.callbackNode;if(cg()&&s.callbackNode!==f)return null;var m=en;return m=Te(s,s===Un?m:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),m===0?null:(jk(s,m,c),tw(s,qe()),s.callbackNode!=null&&s.callbackNode===f?nw.bind(null,s):null)}function rw(s,c){if(cg())return null;jk(s,c,!0)}function XF(){sj(function(){(xn&6)!==0?Ne(ot,KF):ew()})}function W1(){return Ql===0&&(Ql=Zn()),Ql}function ow(s){return s==null||typeof s=="symbol"||typeof s=="boolean"?null:typeof s=="function"?s:Sm(""+s)}function aw(s,c){var f=c.ownerDocument.createElement("input");return f.name=c.name,f.value=c.value,s.id&&f.setAttribute("form",s.id),c.parentNode.insertBefore(f,c),s=new FormData(s),f.parentNode.removeChild(f),s}function ZF(s,c,f,m,x){if(c==="submit"&&f&&f.stateNode===x){var w=ow((x[He]||null).action),M=m.submitter;M&&(c=(c=M[He]||null)?ow(c.formAction):M.getAttribute("formAction"),c!==null&&(w=c,M=null));var V=new Am("action","action",null,m,x);s.push({event:V,listeners:[{instance:null,listener:function(){if(m.defaultPrevented){if(Ql!==0){var te=M?aw(x,M):new FormData(x);p1(f,{pending:!0,data:te,method:x.method,action:w},null,te)}}else typeof w=="function"&&(V.preventDefault(),te=M?aw(x,M):new FormData(x),p1(f,{pending:!0,data:te,method:x.method,action:w},w,te))},currentTarget:x}]})}}for(var Y1=0;Y1<Ov.length;Y1++){var Q1=Ov[Y1],JF=Q1.toLowerCase(),ej=Q1[0].toUpperCase()+Q1.slice(1);Na(JF,"on"+ej)}Na(jA,"onAnimationEnd"),Na(BA,"onAnimationIteration"),Na(UA,"onAnimationStart"),Na("dblclick","onDoubleClick"),Na("focusin","onFocus"),Na("focusout","onBlur"),Na(yF,"onTransitionRun"),Na(bF,"onTransitionStart"),Na(vF,"onTransitionCancel"),Na(zA,"onTransitionEnd"),so("onMouseEnter",["mouseout","mouseover"]),so("onMouseLeave",["mouseout","mouseover"]),so("onPointerEnter",["pointerout","pointerover"]),so("onPointerLeave",["pointerout","pointerover"]),jo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),jo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),jo("onBeforeInput",["compositionend","keypress","textInput","paste"]),jo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),jo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),jo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Of="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(" "),tj=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Of));function iw(s,c){c=(c&4)!==0;for(var f=0;f<s.length;f++){var m=s[f],x=m.event;m=m.listeners;e:{var w=void 0;if(c)for(var M=m.length-1;0<=M;M--){var V=m[M],te=V.instance,pe=V.currentTarget;if(V=V.listener,te!==w&&x.isPropagationStopped())break e;w=V,x.currentTarget=pe;try{w(x)}catch(we){Zm(we)}x.currentTarget=null,w=te}else for(M=0;M<m.length;M++){if(V=m[M],te=V.instance,pe=V.currentTarget,V=V.listener,te!==w&&x.isPropagationStopped())break e;w=V,x.currentTarget=pe;try{w(x)}catch(we){Zm(we)}x.currentTarget=null,w=te}}}}function Wt(s,c){var f=c[dt];f===void 0&&(f=c[dt]=new Set);var m=s+"__bubble";f.has(m)||(sw(c,s,2,!1),f.add(m))}function K1(s,c,f){var m=0;c&&(m|=4),sw(f,s,m,c)}var fg="_reactListening"+Math.random().toString(36).slice(2);function X1(s){if(!s[fg]){s[fg]=!0,Rn.forEach(function(f){f!=="selectionchange"&&(tj.has(f)||K1(f,!1,s),K1(f,!0,s))});var c=s.nodeType===9?s:s.ownerDocument;c===null||c[fg]||(c[fg]=!0,K1("selectionchange",!1,c))}}function sw(s,c,f,m){switch(Iw(c)){case 2:var x=wj;break;case 8:x=Rj;break;default:x=dE}f=x.bind(null,c,f,s),x=void 0,!vv||c!=="touchstart"&&c!=="touchmove"&&c!=="wheel"||(x=!0),m?x!==void 0?s.addEventListener(c,f,{capture:!0,passive:x}):s.addEventListener(c,f,!0):x!==void 0?s.addEventListener(c,f,{passive:x}):s.addEventListener(c,f,!1)}function Z1(s,c,f,m,x){var w=m;if((c&1)===0&&(c&2)===0&&m!==null)e:for(;;){if(m===null)return;var M=m.tag;if(M===3||M===4){var V=m.stateNode.containerInfo;if(V===x)break;if(M===4)for(M=m.return;M!==null;){var te=M.tag;if((te===3||te===4)&&M.stateNode.containerInfo===x)return;M=M.return}for(;V!==null;){if(M=zt(V),M===null)return;if(te=M.tag,te===5||te===6||te===26||te===27){m=w=M;continue e}V=V.parentNode}}m=m.return}hA(function(){var pe=w,we=yv(f),Ie=[];e:{var he=HA.get(s);if(he!==void 0){var ge=Am,_t=s;switch(s){case"keypress":if(Cm(f)===0)break e;case"keydown":case"keyup":ge=Q7;break;case"focusin":_t="focus",ge=Tv;break;case"focusout":_t="blur",ge=Tv;break;case"beforeblur":case"afterblur":ge=Tv;break;case"click":if(f.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ge=yA;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ge=F7;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ge=Z7;break;case jA:case BA:case UA:ge=U7;break;case zA:ge=eF;break;case"scroll":case"scrollend":ge=L7;break;case"wheel":ge=nF;break;case"copy":case"cut":case"paste":ge=H7;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ge=vA;break;case"toggle":case"beforetoggle":ge=oF}var Et=(c&4)!==0,On=!Et&&(s==="scroll"||s==="scrollend"),ie=Et?he!==null?he+"Capture":null:he;Et=[];for(var ae=pe,ce;ae!==null;){var Re=ae;if(ce=Re.stateNode,Re=Re.tag,Re!==5&&Re!==26&&Re!==27||ce===null||ie===null||(Re=Kd(ae,ie),Re!=null&&Et.push(Nf(ae,Re,ce))),On)break;ae=ae.return}0<Et.length&&(he=new ge(he,_t,null,f,we),Ie.push({event:he,listeners:Et}))}}if((c&7)===0){e:{if(he=s==="mouseover"||s==="pointerover",ge=s==="mouseout"||s==="pointerout",he&&f!==gv&&(_t=f.relatedTarget||f.fromElement)&&(zt(_t)||_t[rt]))break e;if((ge||he)&&(he=we.window===we?we:(he=we.ownerDocument)?he.defaultView||he.parentWindow:window,ge?(_t=f.relatedTarget||f.toElement,ge=pe,_t=_t?zt(_t):null,_t!==null&&(On=a(_t),Et=_t.tag,_t!==On||Et!==5&&Et!==27&&Et!==6)&&(_t=null)):(ge=null,_t=pe),ge!==_t)){if(Et=yA,Re="onMouseLeave",ie="onMouseEnter",ae="mouse",(s==="pointerout"||s==="pointerover")&&(Et=vA,Re="onPointerLeave",ie="onPointerEnter",ae="pointer"),On=ge==null?he:qn(ge),ce=_t==null?he:qn(_t),he=new Et(Re,ae+"leave",ge,f,we),he.target=On,he.relatedTarget=ce,Re=null,zt(we)===pe&&(Et=new Et(ie,ae+"enter",_t,f,we),Et.target=ce,Et.relatedTarget=On,Re=Et),On=Re,ge&&_t)t:{for(Et=ge,ie=_t,ae=0,ce=Et;ce;ce=xu(ce))ae++;for(ce=0,Re=ie;Re;Re=xu(Re))ce++;for(;0<ae-ce;)Et=xu(Et),ae--;for(;0<ce-ae;)ie=xu(ie),ce--;for(;ae--;){if(Et===ie||ie!==null&&Et===ie.alternate)break t;Et=xu(Et),ie=xu(ie)}Et=null}else Et=null;ge!==null&&lw(Ie,he,ge,Et,!1),_t!==null&&On!==null&&lw(Ie,On,_t,Et,!0)}}e:{if(he=pe?qn(pe):window,ge=he.nodeName&&he.nodeName.toLowerCase(),ge==="select"||ge==="input"&&he.type==="file")var nt=kA;else if(_A(he))if(wA)nt=hF;else{nt=fF;var Gt=dF}else ge=he.nodeName,!ge||ge.toLowerCase()!=="input"||he.type!=="checkbox"&&he.type!=="radio"?pe&&mv(pe.elementType)&&(nt=kA):nt=pF;if(nt&&(nt=nt(s,pe))){AA(Ie,nt,f,we);break e}Gt&&Gt(s,he,pe),s==="focusout"&&pe&&he.type==="number"&&pe.memoizedProps.value!=null&&hv(he,"number",he.value)}switch(Gt=pe?qn(pe):window,s){case"focusin":(_A(Gt)||Gt.contentEditable==="true")&&(Xc=Gt,Rv=pe,of=null);break;case"focusout":of=Rv=Xc=null;break;case"mousedown":Dv=!0;break;case"contextmenu":case"mouseup":case"dragend":Dv=!1,MA(Ie,f,we);break;case"selectionchange":if(gF)break;case"keydown":case"keyup":MA(Ie,f,we)}var ft;if(_v)e:{switch(s){case"compositionstart":var Tt="onCompositionStart";break e;case"compositionend":Tt="onCompositionEnd";break e;case"compositionupdate":Tt="onCompositionUpdate";break e}Tt=void 0}else Kc?TA(s,f)&&(Tt="onCompositionEnd"):s==="keydown"&&f.keyCode===229&&(Tt="onCompositionStart");Tt&&(EA&&f.locale!=="ko"&&(Kc||Tt!=="onCompositionStart"?Tt==="onCompositionEnd"&&Kc&&(ft=mA()):(ws=we,Ev="value"in ws?ws.value:ws.textContent,Kc=!0)),Gt=pg(pe,Tt),0<Gt.length&&(Tt=new bA(Tt,s,null,f,we),Ie.push({event:Tt,listeners:Gt}),ft?Tt.data=ft:(ft=CA(f),ft!==null&&(Tt.data=ft)))),(ft=iF?sF(s,f):lF(s,f))&&(Tt=pg(pe,"onBeforeInput"),0<Tt.length&&(Gt=new bA("onBeforeInput","beforeinput",null,f,we),Ie.push({event:Gt,listeners:Tt}),Gt.data=ft)),ZF(Ie,s,pe,f,we)}iw(Ie,c)})}function Nf(s,c,f){return{instance:s,listener:c,currentTarget:f}}function pg(s,c){for(var f=c+"Capture",m=[];s!==null;){var x=s,w=x.stateNode;if(x=x.tag,x!==5&&x!==26&&x!==27||w===null||(x=Kd(s,f),x!=null&&m.unshift(Nf(s,x,w)),x=Kd(s,c),x!=null&&m.push(Nf(s,x,w))),s.tag===3)return m;s=s.return}return[]}function xu(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5&&s.tag!==27);return s||null}function lw(s,c,f,m,x){for(var w=c._reactName,M=[];f!==null&&f!==m;){var V=f,te=V.alternate,pe=V.stateNode;if(V=V.tag,te!==null&&te===m)break;V!==5&&V!==26&&V!==27||pe===null||(te=pe,x?(pe=Kd(f,w),pe!=null&&M.unshift(Nf(f,pe,te))):x||(pe=Kd(f,w),pe!=null&&M.push(Nf(f,pe,te)))),f=f.return}M.length!==0&&s.push({event:c,listeners:M})}var nj=/\r\n?/g,rj=/\u0000|\uFFFD/g;function cw(s){return(typeof s=="string"?s:""+s).replace(nj,`
|
|
50
|
-
`).replace(rj,"")}function uw(s,c){return c=cw(c),cw(s)===c}function hg(){}function In(s,c,f,m,x,w){switch(f){case"children":typeof m=="string"?c==="body"||c==="textarea"&&m===""||Wc(s,m):(typeof m=="number"||typeof m=="bigint")&&c!=="body"&&Wc(s,""+m);break;case"className":Pi(s,"class",m);break;case"tabIndex":Pi(s,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":Pi(s,f,m);break;case"style":fA(s,m,w);break;case"data":if(c!=="object"){Pi(s,"data",m);break}case"src":case"href":if(m===""&&(c!=="a"||f!=="href")){s.removeAttribute(f);break}if(m==null||typeof m=="function"||typeof m=="symbol"||typeof m=="boolean"){s.removeAttribute(f);break}m=Sm(""+m),s.setAttribute(f,m);break;case"action":case"formAction":if(typeof m=="function"){s.setAttribute(f,"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 w=="function"&&(f==="formAction"?(c!=="input"&&In(s,c,"name",x.name,x,null),In(s,c,"formEncType",x.formEncType,x,null),In(s,c,"formMethod",x.formMethod,x,null),In(s,c,"formTarget",x.formTarget,x,null)):(In(s,c,"encType",x.encType,x,null),In(s,c,"method",x.method,x,null),In(s,c,"target",x.target,x,null)));if(m==null||typeof m=="symbol"||typeof m=="boolean"){s.removeAttribute(f);break}m=Sm(""+m),s.setAttribute(f,m);break;case"onClick":m!=null&&(s.onclick=hg);break;case"onScroll":m!=null&&Wt("scroll",s);break;case"onScrollEnd":m!=null&&Wt("scrollend",s);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(f=m.__html,f!=null){if(x.children!=null)throw Error(r(60));s.innerHTML=f}}break;case"multiple":s.multiple=m&&typeof m!="function"&&typeof m!="symbol";break;case"muted":s.muted=m&&typeof m!="function"&&typeof m!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(m==null||typeof m=="function"||typeof m=="boolean"||typeof m=="symbol"){s.removeAttribute("xlink:href");break}f=Sm(""+m),s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",f);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":m!=null&&typeof m!="function"&&typeof m!="symbol"?s.setAttribute(f,""+m):s.removeAttribute(f);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":m&&typeof m!="function"&&typeof m!="symbol"?s.setAttribute(f,""):s.removeAttribute(f);break;case"capture":case"download":m===!0?s.setAttribute(f,""):m!==!1&&m!=null&&typeof m!="function"&&typeof m!="symbol"?s.setAttribute(f,m):s.removeAttribute(f);break;case"cols":case"rows":case"size":case"span":m!=null&&typeof m!="function"&&typeof m!="symbol"&&!isNaN(m)&&1<=m?s.setAttribute(f,m):s.removeAttribute(f);break;case"rowSpan":case"start":m==null||typeof m=="function"||typeof m=="symbol"||isNaN(m)?s.removeAttribute(f):s.setAttribute(f,m);break;case"popover":Wt("beforetoggle",s),Wt("toggle",s),Ni(s,"popover",m);break;case"xlinkActuate":Lt(s,"http://www.w3.org/1999/xlink","xlink:actuate",m);break;case"xlinkArcrole":Lt(s,"http://www.w3.org/1999/xlink","xlink:arcrole",m);break;case"xlinkRole":Lt(s,"http://www.w3.org/1999/xlink","xlink:role",m);break;case"xlinkShow":Lt(s,"http://www.w3.org/1999/xlink","xlink:show",m);break;case"xlinkTitle":Lt(s,"http://www.w3.org/1999/xlink","xlink:title",m);break;case"xlinkType":Lt(s,"http://www.w3.org/1999/xlink","xlink:type",m);break;case"xmlBase":Lt(s,"http://www.w3.org/XML/1998/namespace","xml:base",m);break;case"xmlLang":Lt(s,"http://www.w3.org/XML/1998/namespace","xml:lang",m);break;case"xmlSpace":Lt(s,"http://www.w3.org/XML/1998/namespace","xml:space",m);break;case"is":Ni(s,"is",m);break;case"innerText":case"textContent":break;default:(!(2<f.length)||f[0]!=="o"&&f[0]!=="O"||f[1]!=="n"&&f[1]!=="N")&&(f=N7.get(f)||f,Ni(s,f,m))}}function J1(s,c,f,m,x,w){switch(f){case"style":fA(s,m,w);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(f=m.__html,f!=null){if(x.children!=null)throw Error(r(60));s.innerHTML=f}}break;case"children":typeof m=="string"?Wc(s,m):(typeof m=="number"||typeof m=="bigint")&&Wc(s,""+m);break;case"onScroll":m!=null&&Wt("scroll",s);break;case"onScrollEnd":m!=null&&Wt("scrollend",s);break;case"onClick":m!=null&&(s.onclick=hg);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ka.hasOwnProperty(f))e:{if(f[0]==="o"&&f[1]==="n"&&(x=f.endsWith("Capture"),c=f.slice(2,x?f.length-7:void 0),w=s[He]||null,w=w!=null?w[f]:null,typeof w=="function"&&s.removeEventListener(c,w,x),typeof m=="function")){typeof w!="function"&&w!==null&&(f in s?s[f]=null:s.hasAttribute(f)&&s.removeAttribute(f)),s.addEventListener(c,m,x);break e}f in s?s[f]=m:m===!0?s.setAttribute(f,""):Ni(s,f,m)}}}function Hr(s,c,f){switch(c){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Wt("error",s),Wt("load",s);var m=!1,x=!1,w;for(w in f)if(f.hasOwnProperty(w)){var M=f[w];if(M!=null)switch(w){case"src":m=!0;break;case"srcSet":x=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,c));default:In(s,c,w,M,f,null)}}x&&In(s,c,"srcSet",f.srcSet,f,null),m&&In(s,c,"src",f.src,f,null);return;case"input":Wt("invalid",s);var V=w=M=x=null,te=null,pe=null;for(m in f)if(f.hasOwnProperty(m)){var we=f[m];if(we!=null)switch(m){case"name":x=we;break;case"type":M=we;break;case"checked":te=we;break;case"defaultChecked":pe=we;break;case"value":w=we;break;case"defaultValue":V=we;break;case"children":case"dangerouslySetInnerHTML":if(we!=null)throw Error(r(137,c));break;default:In(s,c,m,we,f,null)}}lA(s,w,V,te,pe,M,x,!1),Em(s);return;case"select":Wt("invalid",s),m=M=w=null;for(x in f)if(f.hasOwnProperty(x)&&(V=f[x],V!=null))switch(x){case"value":w=V;break;case"defaultValue":M=V;break;case"multiple":m=V;default:In(s,c,x,V,f,null)}c=w,f=M,s.multiple=!!m,c!=null?qc(s,!!m,c,!1):f!=null&&qc(s,!!m,f,!0);return;case"textarea":Wt("invalid",s),w=x=m=null;for(M in f)if(f.hasOwnProperty(M)&&(V=f[M],V!=null))switch(M){case"value":m=V;break;case"defaultValue":x=V;break;case"children":w=V;break;case"dangerouslySetInnerHTML":if(V!=null)throw Error(r(91));break;default:In(s,c,M,V,f,null)}uA(s,m,x,w),Em(s);return;case"option":for(te in f)if(f.hasOwnProperty(te)&&(m=f[te],m!=null))switch(te){case"selected":s.selected=m&&typeof m!="function"&&typeof m!="symbol";break;default:In(s,c,te,m,f,null)}return;case"dialog":Wt("beforetoggle",s),Wt("toggle",s),Wt("cancel",s),Wt("close",s);break;case"iframe":case"object":Wt("load",s);break;case"video":case"audio":for(m=0;m<Of.length;m++)Wt(Of[m],s);break;case"image":Wt("error",s),Wt("load",s);break;case"details":Wt("toggle",s);break;case"embed":case"source":case"link":Wt("error",s),Wt("load",s);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(pe in f)if(f.hasOwnProperty(pe)&&(m=f[pe],m!=null))switch(pe){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,c));default:In(s,c,pe,m,f,null)}return;default:if(mv(c)){for(we in f)f.hasOwnProperty(we)&&(m=f[we],m!==void 0&&J1(s,c,we,m,f,void 0));return}}for(V in f)f.hasOwnProperty(V)&&(m=f[V],m!=null&&In(s,c,V,m,f,null))}function oj(s,c,f,m){switch(c){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var x=null,w=null,M=null,V=null,te=null,pe=null,we=null;for(ge in f){var Ie=f[ge];if(f.hasOwnProperty(ge)&&Ie!=null)switch(ge){case"checked":break;case"value":break;case"defaultValue":te=Ie;default:m.hasOwnProperty(ge)||In(s,c,ge,null,m,Ie)}}for(var he in m){var ge=m[he];if(Ie=f[he],m.hasOwnProperty(he)&&(ge!=null||Ie!=null))switch(he){case"type":w=ge;break;case"name":x=ge;break;case"checked":pe=ge;break;case"defaultChecked":we=ge;break;case"value":M=ge;break;case"defaultValue":V=ge;break;case"children":case"dangerouslySetInnerHTML":if(ge!=null)throw Error(r(137,c));break;default:ge!==Ie&&In(s,c,he,ge,m,Ie)}}pv(s,M,V,te,pe,we,w,x);return;case"select":ge=M=V=he=null;for(w in f)if(te=f[w],f.hasOwnProperty(w)&&te!=null)switch(w){case"value":break;case"multiple":ge=te;default:m.hasOwnProperty(w)||In(s,c,w,null,m,te)}for(x in m)if(w=m[x],te=f[x],m.hasOwnProperty(x)&&(w!=null||te!=null))switch(x){case"value":he=w;break;case"defaultValue":V=w;break;case"multiple":M=w;default:w!==te&&In(s,c,x,w,m,te)}c=V,f=M,m=ge,he!=null?qc(s,!!f,he,!1):!!m!=!!f&&(c!=null?qc(s,!!f,c,!0):qc(s,!!f,f?[]:"",!1));return;case"textarea":ge=he=null;for(V in f)if(x=f[V],f.hasOwnProperty(V)&&x!=null&&!m.hasOwnProperty(V))switch(V){case"value":break;case"children":break;default:In(s,c,V,null,m,x)}for(M in m)if(x=m[M],w=f[M],m.hasOwnProperty(M)&&(x!=null||w!=null))switch(M){case"value":he=x;break;case"defaultValue":ge=x;break;case"children":break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(r(91));break;default:x!==w&&In(s,c,M,x,m,w)}cA(s,he,ge);return;case"option":for(var _t in f)if(he=f[_t],f.hasOwnProperty(_t)&&he!=null&&!m.hasOwnProperty(_t))switch(_t){case"selected":s.selected=!1;break;default:In(s,c,_t,null,m,he)}for(te in m)if(he=m[te],ge=f[te],m.hasOwnProperty(te)&&he!==ge&&(he!=null||ge!=null))switch(te){case"selected":s.selected=he&&typeof he!="function"&&typeof he!="symbol";break;default:In(s,c,te,he,m,ge)}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 Et in f)he=f[Et],f.hasOwnProperty(Et)&&he!=null&&!m.hasOwnProperty(Et)&&In(s,c,Et,null,m,he);for(pe in m)if(he=m[pe],ge=f[pe],m.hasOwnProperty(pe)&&he!==ge&&(he!=null||ge!=null))switch(pe){case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(r(137,c));break;default:In(s,c,pe,he,m,ge)}return;default:if(mv(c)){for(var On in f)he=f[On],f.hasOwnProperty(On)&&he!==void 0&&!m.hasOwnProperty(On)&&J1(s,c,On,void 0,m,he);for(we in m)he=m[we],ge=f[we],!m.hasOwnProperty(we)||he===ge||he===void 0&&ge===void 0||J1(s,c,we,he,m,ge);return}}for(var ie in f)he=f[ie],f.hasOwnProperty(ie)&&he!=null&&!m.hasOwnProperty(ie)&&In(s,c,ie,null,m,he);for(Ie in m)he=m[Ie],ge=f[Ie],!m.hasOwnProperty(Ie)||he===ge||he==null&&ge==null||In(s,c,Ie,he,m,ge)}var eE=null,tE=null;function mg(s){return s.nodeType===9?s:s.ownerDocument}function dw(s){switch(s){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function fw(s,c){if(s===0)switch(c){case"svg":return 1;case"math":return 2;default:return 0}return s===1&&c==="foreignObject"?0:s}function nE(s,c){return s==="textarea"||s==="noscript"||typeof c.children=="string"||typeof c.children=="number"||typeof c.children=="bigint"||typeof c.dangerouslySetInnerHTML=="object"&&c.dangerouslySetInnerHTML!==null&&c.dangerouslySetInnerHTML.__html!=null}var rE=null;function aj(){var s=window.event;return s&&s.type==="popstate"?s===rE?!1:(rE=s,!0):(rE=null,!1)}var pw=typeof setTimeout=="function"?setTimeout:void 0,ij=typeof clearTimeout=="function"?clearTimeout:void 0,hw=typeof Promise=="function"?Promise:void 0,sj=typeof queueMicrotask=="function"?queueMicrotask:typeof hw<"u"?function(s){return hw.resolve(null).then(s).catch(lj)}:pw;function lj(s){setTimeout(function(){throw s})}function Gs(s){return s==="head"}function mw(s,c){var f=c,m=0,x=0;do{var w=f.nextSibling;if(s.removeChild(f),w&&w.nodeType===8)if(f=w.data,f==="/$"){if(0<m&&8>m){f=m;var M=s.ownerDocument;if(f&1&&Pf(M.documentElement),f&2&&Pf(M.body),f&4)for(f=M.head,Pf(f),M=f.firstChild;M;){var V=M.nextSibling,te=M.nodeName;M[it]||te==="SCRIPT"||te==="STYLE"||te==="LINK"&&M.rel.toLowerCase()==="stylesheet"||f.removeChild(M),M=V}}if(x===0){s.removeChild(w),Hf(c);return}x--}else f==="$"||f==="$?"||f==="$!"?x++:m=f.charCodeAt(0)-48;else m=0;f=w}while(f);Hf(c)}function oE(s){var c=s.firstChild;for(c&&c.nodeType===10&&(c=c.nextSibling);c;){var f=c;switch(c=c.nextSibling,f.nodeName){case"HTML":case"HEAD":case"BODY":oE(f),ct(f);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(f.rel.toLowerCase()==="stylesheet")continue}s.removeChild(f)}}function cj(s,c,f,m){for(;s.nodeType===1;){var x=f;if(s.nodeName.toLowerCase()!==c.toLowerCase()){if(!m&&(s.nodeName!=="INPUT"||s.type!=="hidden"))break}else if(m){if(!s[it])switch(c){case"meta":if(!s.hasAttribute("itemprop"))break;return s;case"link":if(w=s.getAttribute("rel"),w==="stylesheet"&&s.hasAttribute("data-precedence"))break;if(w!==x.rel||s.getAttribute("href")!==(x.href==null||x.href===""?null:x.href)||s.getAttribute("crossorigin")!==(x.crossOrigin==null?null:x.crossOrigin)||s.getAttribute("title")!==(x.title==null?null:x.title))break;return s;case"style":if(s.hasAttribute("data-precedence"))break;return s;case"script":if(w=s.getAttribute("src"),(w!==(x.src==null?null:x.src)||s.getAttribute("type")!==(x.type==null?null:x.type)||s.getAttribute("crossorigin")!==(x.crossOrigin==null?null:x.crossOrigin))&&w&&s.hasAttribute("async")&&!s.hasAttribute("itemprop"))break;return s;default:return s}}else if(c==="input"&&s.type==="hidden"){var w=x.name==null?null:""+x.name;if(x.type==="hidden"&&s.getAttribute("name")===w)return s}else return s;if(s=La(s.nextSibling),s===null)break}return null}function uj(s,c,f){if(c==="")return null;for(;s.nodeType!==3;)if((s.nodeType!==1||s.nodeName!=="INPUT"||s.type!=="hidden")&&!f||(s=La(s.nextSibling),s===null))return null;return s}function aE(s){return s.data==="$!"||s.data==="$?"&&s.ownerDocument.readyState==="complete"}function dj(s,c){var f=s.ownerDocument;if(s.data!=="$?"||f.readyState==="complete")c();else{var m=function(){c(),f.removeEventListener("DOMContentLoaded",m)};f.addEventListener("DOMContentLoaded",m),s._reactRetry=m}}function La(s){for(;s!=null;s=s.nextSibling){var c=s.nodeType;if(c===1||c===3)break;if(c===8){if(c=s.data,c==="$"||c==="$!"||c==="$?"||c==="F!"||c==="F")break;if(c==="/$")return null}}return s}var iE=null;function gw(s){s=s.previousSibling;for(var c=0;s;){if(s.nodeType===8){var f=s.data;if(f==="$"||f==="$!"||f==="$?"){if(c===0)return s;c--}else f==="/$"&&c++}s=s.previousSibling}return null}function yw(s,c,f){switch(c=mg(f),s){case"html":if(s=c.documentElement,!s)throw Error(r(452));return s;case"head":if(s=c.head,!s)throw Error(r(453));return s;case"body":if(s=c.body,!s)throw Error(r(454));return s;default:throw Error(r(451))}}function Pf(s){for(var c=s.attributes;c.length;)s.removeAttributeNode(c[0]);ct(s)}var pa=new Map,bw=new Set;function gg(s){return typeof s.getRootNode=="function"?s.getRootNode():s.nodeType===9?s:s.ownerDocument}var Qi=Q.d;Q.d={f:fj,r:pj,D:hj,C:mj,L:gj,m:yj,X:vj,S:bj,M:Ej};function fj(){var s=Qi.f(),c=sg();return s||c}function pj(s){var c=hn(s);c!==null&&c.tag===5&&c.type==="form"?j2(c):Qi.r(s)}var Su=typeof document>"u"?null:document;function vw(s,c,f){var m=Su;if(m&&typeof c=="string"&&c){var x=ia(c);x='link[rel="'+s+'"][href="'+x+'"]',typeof f=="string"&&(x+='[crossorigin="'+f+'"]'),bw.has(x)||(bw.add(x),s={rel:s,crossOrigin:f,href:c},m.querySelector(x)===null&&(c=m.createElement("link"),Hr(c,"link",s),Pt(c),m.head.appendChild(c)))}}function hj(s){Qi.D(s),vw("dns-prefetch",s,null)}function mj(s,c){Qi.C(s,c),vw("preconnect",s,c)}function gj(s,c,f){Qi.L(s,c,f);var m=Su;if(m&&s&&c){var x='link[rel="preload"][as="'+ia(c)+'"]';c==="image"&&f&&f.imageSrcSet?(x+='[imagesrcset="'+ia(f.imageSrcSet)+'"]',typeof f.imageSizes=="string"&&(x+='[imagesizes="'+ia(f.imageSizes)+'"]')):x+='[href="'+ia(s)+'"]';var w=x;switch(c){case"style":w=Tu(s);break;case"script":w=Cu(s)}pa.has(w)||(s=p({rel:"preload",href:c==="image"&&f&&f.imageSrcSet?void 0:s,as:c},f),pa.set(w,s),m.querySelector(x)!==null||c==="style"&&m.querySelector(Lf(w))||c==="script"&&m.querySelector(Mf(w))||(c=m.createElement("link"),Hr(c,"link",s),Pt(c),m.head.appendChild(c)))}}function yj(s,c){Qi.m(s,c);var f=Su;if(f&&s){var m=c&&typeof c.as=="string"?c.as:"script",x='link[rel="modulepreload"][as="'+ia(m)+'"][href="'+ia(s)+'"]',w=x;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":w=Cu(s)}if(!pa.has(w)&&(s=p({rel:"modulepreload",href:s},c),pa.set(w,s),f.querySelector(x)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(f.querySelector(Mf(w)))return}m=f.createElement("link"),Hr(m,"link",s),Pt(m),f.head.appendChild(m)}}}function bj(s,c,f){Qi.S(s,c,f);var m=Su;if(m&&s){var x=nr(m).hoistableStyles,w=Tu(s);c=c||"default";var M=x.get(w);if(!M){var V={loading:0,preload:null};if(M=m.querySelector(Lf(w)))V.loading=5;else{s=p({rel:"stylesheet",href:s,"data-precedence":c},f),(f=pa.get(w))&&sE(s,f);var te=M=m.createElement("link");Pt(te),Hr(te,"link",s),te._p=new Promise(function(pe,we){te.onload=pe,te.onerror=we}),te.addEventListener("load",function(){V.loading|=1}),te.addEventListener("error",function(){V.loading|=2}),V.loading|=4,yg(M,c,m)}M={type:"stylesheet",instance:M,count:1,state:V},x.set(w,M)}}}function vj(s,c){Qi.X(s,c);var f=Su;if(f&&s){var m=nr(f).hoistableScripts,x=Cu(s),w=m.get(x);w||(w=f.querySelector(Mf(x)),w||(s=p({src:s,async:!0},c),(c=pa.get(x))&&lE(s,c),w=f.createElement("script"),Pt(w),Hr(w,"link",s),f.head.appendChild(w)),w={type:"script",instance:w,count:1,state:null},m.set(x,w))}}function Ej(s,c){Qi.M(s,c);var f=Su;if(f&&s){var m=nr(f).hoistableScripts,x=Cu(s),w=m.get(x);w||(w=f.querySelector(Mf(x)),w||(s=p({src:s,async:!0,type:"module"},c),(c=pa.get(x))&&lE(s,c),w=f.createElement("script"),Pt(w),Hr(w,"link",s),f.head.appendChild(w)),w={type:"script",instance:w,count:1,state:null},m.set(x,w))}}function Ew(s,c,f,m){var x=(x=ne.current)?gg(x):null;if(!x)throw Error(r(446));switch(s){case"meta":case"title":return null;case"style":return typeof f.precedence=="string"&&typeof f.href=="string"?(c=Tu(f.href),f=nr(x).hoistableStyles,m=f.get(c),m||(m={type:"style",instance:null,count:0,state:null},f.set(c,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(f.rel==="stylesheet"&&typeof f.href=="string"&&typeof f.precedence=="string"){s=Tu(f.href);var w=nr(x).hoistableStyles,M=w.get(s);if(M||(x=x.ownerDocument||x,M={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},w.set(s,M),(w=x.querySelector(Lf(s)))&&!w._p&&(M.instance=w,M.state.loading=5),pa.has(s)||(f={rel:"preload",as:"style",href:f.href,crossOrigin:f.crossOrigin,integrity:f.integrity,media:f.media,hrefLang:f.hrefLang,referrerPolicy:f.referrerPolicy},pa.set(s,f),w||xj(x,s,f,M.state))),c&&m===null)throw Error(r(528,""));return M}if(c&&m!==null)throw Error(r(529,""));return null;case"script":return c=f.async,f=f.src,typeof f=="string"&&c&&typeof c!="function"&&typeof c!="symbol"?(c=Cu(f),f=nr(x).hoistableScripts,m=f.get(c),m||(m={type:"script",instance:null,count:0,state:null},f.set(c,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,s))}}function Tu(s){return'href="'+ia(s)+'"'}function Lf(s){return'link[rel="stylesheet"]['+s+"]"}function xw(s){return p({},s,{"data-precedence":s.precedence,precedence:null})}function xj(s,c,f,m){s.querySelector('link[rel="preload"][as="style"]['+c+"]")?m.loading=1:(c=s.createElement("link"),m.preload=c,c.addEventListener("load",function(){return m.loading|=1}),c.addEventListener("error",function(){return m.loading|=2}),Hr(c,"link",f),Pt(c),s.head.appendChild(c))}function Cu(s){return'[src="'+ia(s)+'"]'}function Mf(s){return"script[async]"+s}function Sw(s,c,f){if(c.count++,c.instance===null)switch(c.type){case"style":var m=s.querySelector('style[data-href~="'+ia(f.href)+'"]');if(m)return c.instance=m,Pt(m),m;var x=p({},f,{"data-href":f.href,"data-precedence":f.precedence,href:null,precedence:null});return m=(s.ownerDocument||s).createElement("style"),Pt(m),Hr(m,"style",x),yg(m,f.precedence,s),c.instance=m;case"stylesheet":x=Tu(f.href);var w=s.querySelector(Lf(x));if(w)return c.state.loading|=4,c.instance=w,Pt(w),w;m=xw(f),(x=pa.get(x))&&sE(m,x),w=(s.ownerDocument||s).createElement("link"),Pt(w);var M=w;return M._p=new Promise(function(V,te){M.onload=V,M.onerror=te}),Hr(w,"link",m),c.state.loading|=4,yg(w,f.precedence,s),c.instance=w;case"script":return w=Cu(f.src),(x=s.querySelector(Mf(w)))?(c.instance=x,Pt(x),x):(m=f,(x=pa.get(w))&&(m=p({},f),lE(m,x)),s=s.ownerDocument||s,x=s.createElement("script"),Pt(x),Hr(x,"link",m),s.head.appendChild(x),c.instance=x);case"void":return null;default:throw Error(r(443,c.type))}else c.type==="stylesheet"&&(c.state.loading&4)===0&&(m=c.instance,c.state.loading|=4,yg(m,f.precedence,s));return c.instance}function yg(s,c,f){for(var m=f.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),x=m.length?m[m.length-1]:null,w=x,M=0;M<m.length;M++){var V=m[M];if(V.dataset.precedence===c)w=V;else if(w!==x)break}w?w.parentNode.insertBefore(s,w.nextSibling):(c=f.nodeType===9?f.head:f,c.insertBefore(s,c.firstChild))}function sE(s,c){s.crossOrigin==null&&(s.crossOrigin=c.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=c.referrerPolicy),s.title==null&&(s.title=c.title)}function lE(s,c){s.crossOrigin==null&&(s.crossOrigin=c.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=c.referrerPolicy),s.integrity==null&&(s.integrity=c.integrity)}var bg=null;function Tw(s,c,f){if(bg===null){var m=new Map,x=bg=new Map;x.set(f,m)}else x=bg,m=x.get(f),m||(m=new Map,x.set(f,m));if(m.has(s))return m;for(m.set(s,null),f=f.getElementsByTagName(s),x=0;x<f.length;x++){var w=f[x];if(!(w[it]||w[Oe]||s==="link"&&w.getAttribute("rel")==="stylesheet")&&w.namespaceURI!=="http://www.w3.org/2000/svg"){var M=w.getAttribute(c)||"";M=s+M;var V=m.get(M);V?V.push(w):m.set(M,[w])}}return m}function Cw(s,c,f){s=s.ownerDocument||s,s.head.insertBefore(f,c==="title"?s.querySelector("head > title"):null)}function Sj(s,c,f){if(f===1||c.itemProp!=null)return!1;switch(s){case"meta":case"title":return!0;case"style":if(typeof c.precedence!="string"||typeof c.href!="string"||c.href==="")break;return!0;case"link":if(typeof c.rel!="string"||typeof c.href!="string"||c.href===""||c.onLoad||c.onError)break;switch(c.rel){case"stylesheet":return s=c.disabled,typeof c.precedence=="string"&&s==null;default:return!0}case"script":if(c.async&&typeof c.async!="function"&&typeof c.async!="symbol"&&!c.onLoad&&!c.onError&&c.src&&typeof c.src=="string")return!0}return!1}function _w(s){return!(s.type==="stylesheet"&&(s.state.loading&3)===0)}var Ff=null;function Tj(){}function Cj(s,c,f){if(Ff===null)throw Error(r(475));var m=Ff;if(c.type==="stylesheet"&&(typeof f.media!="string"||matchMedia(f.media).matches!==!1)&&(c.state.loading&4)===0){if(c.instance===null){var x=Tu(f.href),w=s.querySelector(Lf(x));if(w){s=w._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(m.count++,m=vg.bind(m),s.then(m,m)),c.state.loading|=4,c.instance=w,Pt(w);return}w=s.ownerDocument||s,f=xw(f),(x=pa.get(x))&&sE(f,x),w=w.createElement("link"),Pt(w);var M=w;M._p=new Promise(function(V,te){M.onload=V,M.onerror=te}),Hr(w,"link",f),c.instance=w}m.stylesheets===null&&(m.stylesheets=new Map),m.stylesheets.set(c,s),(s=c.state.preload)&&(c.state.loading&3)===0&&(m.count++,c=vg.bind(m),s.addEventListener("load",c),s.addEventListener("error",c))}}function _j(){if(Ff===null)throw Error(r(475));var s=Ff;return s.stylesheets&&s.count===0&&cE(s,s.stylesheets),0<s.count?function(c){var f=setTimeout(function(){if(s.stylesheets&&cE(s,s.stylesheets),s.unsuspend){var m=s.unsuspend;s.unsuspend=null,m()}},6e4);return s.unsuspend=c,function(){s.unsuspend=null,clearTimeout(f)}}:null}function vg(){if(this.count--,this.count===0){if(this.stylesheets)cE(this,this.stylesheets);else if(this.unsuspend){var s=this.unsuspend;this.unsuspend=null,s()}}}var Eg=null;function cE(s,c){s.stylesheets=null,s.unsuspend!==null&&(s.count++,Eg=new Map,c.forEach(Aj,s),Eg=null,vg.call(s))}function Aj(s,c){if(!(c.state.loading&4)){var f=Eg.get(s);if(f)var m=f.get(null);else{f=new Map,Eg.set(s,f);for(var x=s.querySelectorAll("link[data-precedence],style[data-precedence]"),w=0;w<x.length;w++){var M=x[w];(M.nodeName==="LINK"||M.getAttribute("media")!=="not all")&&(f.set(M.dataset.precedence,M),m=M)}m&&f.set(null,m)}x=c.instance,M=x.getAttribute("data-precedence"),w=f.get(M)||m,w===m&&f.set(null,x),f.set(M,x),this.count++,m=vg.bind(this),x.addEventListener("load",m),x.addEventListener("error",m),w?w.parentNode.insertBefore(x,w.nextSibling):(s=s.nodeType===9?s.head:s,s.insertBefore(x,s.firstChild)),c.state.loading|=4}}var jf={$$typeof:C,Provider:null,Consumer:null,_currentValue:Y,_currentValue2:Y,_threadCount:0};function kj(s,c,f,m,x,w,M,V){this.tag=1,this.containerInfo=s,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=Br(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Br(0),this.hiddenUpdates=Br(null),this.identifierPrefix=m,this.onUncaughtError=x,this.onCaughtError=w,this.onRecoverableError=M,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=V,this.incompleteTransitions=new Map}function Aw(s,c,f,m,x,w,M,V,te,pe,we,Ie){return s=new kj(s,c,f,M,V,te,pe,Ie),c=1,w===!0&&(c|=24),w=Uo(3,null,null,c),s.current=w,w.stateNode=s,c=Gv(),c.refCount++,s.pooledCache=c,c.refCount++,w.memoizedState={element:m,isDehydrated:f,cache:c},Yv(w),s}function kw(s){return s?(s=tu,s):tu}function ww(s,c,f,m,x,w){x=kw(x),m.context===null?m.context=x:m.pendingContext=x,m=Is(c),m.payload={element:f},w=w===void 0?null:w,w!==null&&(m.callback=w),f=Os(s,m,c),f!==null&&(Vo(f,s,c),hf(f,s,c))}function Rw(s,c){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var f=s.retryLane;s.retryLane=f!==0&&f<c?f:c}}function uE(s,c){Rw(s,c),(s=s.alternate)&&Rw(s,c)}function Dw(s){if(s.tag===13){var c=eu(s,67108864);c!==null&&Vo(c,s,67108864),uE(s,67108864)}}var xg=!0;function wj(s,c,f,m){var x=U.T;U.T=null;var w=Q.p;try{Q.p=2,dE(s,c,f,m)}finally{Q.p=w,U.T=x}}function Rj(s,c,f,m){var x=U.T;U.T=null;var w=Q.p;try{Q.p=8,dE(s,c,f,m)}finally{Q.p=w,U.T=x}}function dE(s,c,f,m){if(xg){var x=fE(m);if(x===null)Z1(s,c,m,Sg,f),Ow(s,m);else if(Ij(x,s,c,f,m))m.stopPropagation();else if(Ow(s,m),c&4&&-1<Dj.indexOf(s)){for(;x!==null;){var w=hn(x);if(w!==null)switch(w.tag){case 3:if(w=w.stateNode,w.current.memoizedState.isDehydrated){var M=xe(w.pendingLanes);if(M!==0){var V=w;for(V.pendingLanes|=2,V.entangledLanes|=2;M;){var te=1<<31-Ke(M);V.entanglements[1]|=te,M&=~te}ti(w),(xn&6)===0&&(ag=qe()+500,If(0))}}break;case 13:V=eu(w,2),V!==null&&Vo(V,w,2),sg(),uE(w,2)}if(w=fE(m),w===null&&Z1(s,c,m,Sg,f),w===x)break;x=w}x!==null&&m.stopPropagation()}else Z1(s,c,m,null,f)}}function fE(s){return s=yv(s),pE(s)}var Sg=null;function pE(s){if(Sg=null,s=zt(s),s!==null){var c=a(s);if(c===null)s=null;else{var f=c.tag;if(f===13){if(s=i(c),s!==null)return s;s=null}else if(f===3){if(c.stateNode.current.memoizedState.isDehydrated)return c.tag===3?c.stateNode.containerInfo:null;s=null}else c!==s&&(s=null)}}return Sg=s,null}function Iw(s){switch(s){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(Rt()){case ot:return 2;case tt:return 8;case je:case Be:return 32;case Ut:return 268435456;default:return 32}default:return 32}}var hE=!1,Vs=null,qs=null,Ws=null,Bf=new Map,Uf=new Map,Ys=[],Dj="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 Ow(s,c){switch(s){case"focusin":case"focusout":Vs=null;break;case"dragenter":case"dragleave":qs=null;break;case"mouseover":case"mouseout":Ws=null;break;case"pointerover":case"pointerout":Bf.delete(c.pointerId);break;case"gotpointercapture":case"lostpointercapture":Uf.delete(c.pointerId)}}function zf(s,c,f,m,x,w){return s===null||s.nativeEvent!==w?(s={blockedOn:c,domEventName:f,eventSystemFlags:m,nativeEvent:w,targetContainers:[x]},c!==null&&(c=hn(c),c!==null&&Dw(c)),s):(s.eventSystemFlags|=m,c=s.targetContainers,x!==null&&c.indexOf(x)===-1&&c.push(x),s)}function Ij(s,c,f,m,x){switch(c){case"focusin":return Vs=zf(Vs,s,c,f,m,x),!0;case"dragenter":return qs=zf(qs,s,c,f,m,x),!0;case"mouseover":return Ws=zf(Ws,s,c,f,m,x),!0;case"pointerover":var w=x.pointerId;return Bf.set(w,zf(Bf.get(w)||null,s,c,f,m,x)),!0;case"gotpointercapture":return w=x.pointerId,Uf.set(w,zf(Uf.get(w)||null,s,c,f,m,x)),!0}return!1}function Nw(s){var c=zt(s.target);if(c!==null){var f=a(c);if(f!==null){if(c=f.tag,c===13){if(c=i(f),c!==null){s.blockedOn=c,le(s.priority,function(){if(f.tag===13){var m=Go();m=io(m);var x=eu(f,m);x!==null&&Vo(x,f,m),uE(f,m)}});return}}else if(c===3&&f.stateNode.current.memoizedState.isDehydrated){s.blockedOn=f.tag===3?f.stateNode.containerInfo:null;return}}}s.blockedOn=null}function Tg(s){if(s.blockedOn!==null)return!1;for(var c=s.targetContainers;0<c.length;){var f=fE(s.nativeEvent);if(f===null){f=s.nativeEvent;var m=new f.constructor(f.type,f);gv=m,f.target.dispatchEvent(m),gv=null}else return c=hn(f),c!==null&&Dw(c),s.blockedOn=f,!1;c.shift()}return!0}function Pw(s,c,f){Tg(s)&&f.delete(c)}function Oj(){hE=!1,Vs!==null&&Tg(Vs)&&(Vs=null),qs!==null&&Tg(qs)&&(qs=null),Ws!==null&&Tg(Ws)&&(Ws=null),Bf.forEach(Pw),Uf.forEach(Pw)}function Cg(s,c){s.blockedOn===c&&(s.blockedOn=null,hE||(hE=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Oj)))}var _g=null;function Lw(s){_g!==s&&(_g=s,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){_g===s&&(_g=null);for(var c=0;c<s.length;c+=3){var f=s[c],m=s[c+1],x=s[c+2];if(typeof m!="function"){if(pE(m||f)===null)continue;break}var w=hn(f);w!==null&&(s.splice(c,3),c-=3,p1(w,{pending:!0,data:x,method:f.method,action:m},m,x))}}))}function Hf(s){function c(te){return Cg(te,s)}Vs!==null&&Cg(Vs,s),qs!==null&&Cg(qs,s),Ws!==null&&Cg(Ws,s),Bf.forEach(c),Uf.forEach(c);for(var f=0;f<Ys.length;f++){var m=Ys[f];m.blockedOn===s&&(m.blockedOn=null)}for(;0<Ys.length&&(f=Ys[0],f.blockedOn===null);)Nw(f),f.blockedOn===null&&Ys.shift();if(f=(s.ownerDocument||s).$$reactFormReplay,f!=null)for(m=0;m<f.length;m+=3){var x=f[m],w=f[m+1],M=x[He]||null;if(typeof w=="function")M||Lw(f);else if(M){var V=null;if(w&&w.hasAttribute("formAction")){if(x=w,M=w[He]||null)V=M.formAction;else if(pE(x)!==null)continue}else V=M.action;typeof V=="function"?f[m+1]=V:(f.splice(m,3),m-=3),Lw(f)}}}function mE(s){this._internalRoot=s}Ag.prototype.render=mE.prototype.render=function(s){var c=this._internalRoot;if(c===null)throw Error(r(409));var f=c.current,m=Go();ww(f,m,s,c,null,null)},Ag.prototype.unmount=mE.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var c=s.containerInfo;ww(s.current,2,null,s,null,null),sg(),c[rt]=null}};function Ag(s){this._internalRoot=s}Ag.prototype.unstable_scheduleHydration=function(s){if(s){var c=re();s={blockedOn:null,target:s,priority:c};for(var f=0;f<Ys.length&&c!==0&&c<Ys[f].priority;f++);Ys.splice(f,0,s),f===0&&Nw(s)}};var Mw=t.version;if(Mw!=="19.1.1")throw Error(r(527,Mw,"19.1.1"));Q.findDOMNode=function(s){var c=s._reactInternals;if(c===void 0)throw typeof s.render=="function"?Error(r(188)):(s=Object.keys(s).join(","),Error(r(268,s)));return s=u(c),s=s!==null?d(s):null,s=s===null?null:s.stateNode,s};var Nj={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var kg=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!kg.isDisabled&&kg.supportsFiber)try{de=kg.inject(Nj),ye=kg}catch{}}return Gf.createRoot=function(s,c){if(!o(s))throw Error(r(299));var f=!1,m="",x=Z2,w=J2,M=ek,V=null;return c!=null&&(c.unstable_strictMode===!0&&(f=!0),c.identifierPrefix!==void 0&&(m=c.identifierPrefix),c.onUncaughtError!==void 0&&(x=c.onUncaughtError),c.onCaughtError!==void 0&&(w=c.onCaughtError),c.onRecoverableError!==void 0&&(M=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(V=c.unstable_transitionCallbacks)),c=Aw(s,1,!1,null,null,f,m,x,w,M,V,null),s[rt]=c.current,X1(s),new mE(c)},Gf.hydrateRoot=function(s,c,f){if(!o(s))throw Error(r(299));var m=!1,x="",w=Z2,M=J2,V=ek,te=null,pe=null;return f!=null&&(f.unstable_strictMode===!0&&(m=!0),f.identifierPrefix!==void 0&&(x=f.identifierPrefix),f.onUncaughtError!==void 0&&(w=f.onUncaughtError),f.onCaughtError!==void 0&&(M=f.onCaughtError),f.onRecoverableError!==void 0&&(V=f.onRecoverableError),f.unstable_transitionCallbacks!==void 0&&(te=f.unstable_transitionCallbacks),f.formState!==void 0&&(pe=f.formState)),c=Aw(s,1,!0,c,f??null,m,x,w,M,V,te,pe),c.context=kw(null),f=c.current,m=Go(),m=io(m),x=Is(m),x.callback=null,Os(f,x,m),f=m,c.current.lanes=f,Rr(c,f),ti(c),s[rt]=c.current,X1(s),new Ag(c)},Gf.version="19.1.1",Gf}var qw;function $j(){if(qw)return bE.exports;qw=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(t){console.error(t)}}return e(),bE.exports=Hj(),bE.exports}var Gj=$j();/**
|
|
51
|
-
* react-router v7.9.1
|
|
52
|
-
*
|
|
53
|
-
* Copyright (c) Remix Software Inc.
|
|
54
|
-
*
|
|
55
|
-
* This source code is licensed under the MIT license found in the
|
|
56
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
57
|
-
*
|
|
58
|
-
* @license MIT
|
|
59
|
-
*/var q3=e=>{throw TypeError(e)},Vj=(e,t,n)=>t.has(e)||q3("Cannot "+n),SE=(e,t,n)=>(Vj(e,t,"read from private field"),n?n.call(e):t.get(e)),qj=(e,t,n)=>t.has(e)?q3("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Ww="popstate";function Wj(e={}){function t(r,o){let{pathname:a,search:i,hash:l}=r.location;return rh("",{pathname:a,search:i,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:bl(o)}return Qj(t,n,null,e)}function Qt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Sr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Yj(){return Math.random().toString(36).substring(2,10)}function Yw(e,t){return{usr:e.state,key:e.key,idx:t}}function rh(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?wl(t):t,state:n,key:t&&t.key||r||Yj()}}function bl({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function wl(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Qj(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,l="POP",u=null,d=p();d==null&&(d=0,i.replaceState({...i.state,idx:d},""));function p(){return(i.state||{idx:null}).idx}function h(){l="POP";let T=p(),E=T==null?null:T-d;d=T,u&&u({action:l,location:S.location,delta:E})}function y(T,E){l="PUSH";let A=rh(S.location,T,E);d=p()+1;let C=Yw(A,d),D=S.createHref(A);try{i.pushState(C,"",D)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;o.location.assign(D)}a&&u&&u({action:l,location:S.location,delta:1})}function g(T,E){l="REPLACE";let A=rh(S.location,T,E);d=p();let C=Yw(A,d),D=S.createHref(A);i.replaceState(C,"",D),a&&u&&u({action:l,location:S.location,delta:0})}function b(T){return W3(T)}let S={get action(){return l},get location(){return e(o,i)},listen(T){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(Ww,h),u=T,()=>{o.removeEventListener(Ww,h),u=null}},createHref(T){return t(o,T)},createURL:b,encodeLocation(T){let E=b(T);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:y,replace:g,go(T){return i.go(T)}};return S}function W3(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Qt(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:bl(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}var xp,Qw=class{constructor(e){if(qj(this,xp,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(SE(this,xp).has(e))return SE(this,xp).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){SE(this,xp).set(e,t)}};xp=new WeakMap;var Kj=new Set(["lazy","caseSensitive","path","id","index","children"]);function Xj(e){return Kj.has(e)}var Zj=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function Jj(e){return Zj.has(e)}function e9(e){return e.index===!0}function oh(e,t,n=[],r={},o=!1){return e.map((a,i)=>{let l=[...n,String(i)],u=typeof a.id=="string"?a.id:l.join("-");if(Qt(a.index!==!0||!a.children,"Cannot specify children on an index route"),Qt(o||!r[u],`Found a route id collision on id "${u}". Route id's must be globally unique within Data Router usages`),e9(a)){let d={...a,...t(a),id:u};return r[u]=d,d}else{let d={...a,...t(a),id:u,children:void 0};return r[u]=d,a.children&&(d.children=oh(a.children,t,l,r,o)),d}})}function al(e,t,n="/"){return sy(e,t,n,!1)}function sy(e,t,n,r){let o=typeof t=="string"?wl(t):t,a=ka(o.pathname||"/",n);if(a==null)return null;let i=Y3(e);n9(i);let l=null;for(let u=0;l==null&&u<i.length;++u){let d=p9(a);l=d9(i[u],d,r)}return l}function t9(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function Y3(e,t=[],n=[],r="",o=!1){let a=(i,l,u=o,d)=>{let p={relativePath:d===void 0?i.path||"":d,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};if(p.relativePath.startsWith("/")){if(!p.relativePath.startsWith(r)&&u)return;Qt(p.relativePath.startsWith(r),`Absolute route path "${p.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(r.length)}let h=vi([r,p.relativePath]),y=n.concat(p);i.children&&i.children.length>0&&(Qt(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),Y3(i.children,t,y,h,u)),!(i.path==null&&!i.index)&&t.push({path:h,score:c9(h,i.index),routesMeta:y})};return e.forEach((i,l)=>{if(i.path===""||!i.path?.includes("?"))a(i,l);else for(let u of Q3(i.path))a(i,l,!0,u)}),t}function Q3(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return o?[a,""]:[a];let i=Q3(r.join("/")),l=[];return l.push(...i.map(u=>u===""?a:[a,u].join("/"))),o&&l.push(...i),l.map(u=>e.startsWith("/")&&u===""?"/":u)}function n9(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:u9(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var r9=/^:[\w-]+$/,o9=3,a9=2,i9=1,s9=10,l9=-2,Kw=e=>e==="*";function c9(e,t){let n=e.split("/"),r=n.length;return n.some(Kw)&&(r+=l9),t&&(r+=a9),n.filter(o=>!Kw(o)).reduce((o,a)=>o+(r9.test(a)?o9:a===""?i9:s9),r)}function u9(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function d9(e,t,n=!1){let{routesMeta:r}=e,o={},a="/",i=[];for(let l=0;l<r.length;++l){let u=r[l],d=l===r.length-1,p=a==="/"?t:t.slice(a.length)||"/",h=Uy({path:u.relativePath,caseSensitive:u.caseSensitive,end:d},p),y=u.route;if(!h&&d&&n&&!r[r.length-1].route.index&&(h=Uy({path:u.relativePath,caseSensitive:u.caseSensitive,end:!1},p)),!h)return null;Object.assign(o,h.params),i.push({params:o,pathname:vi([a,h.pathname]),pathnameBase:y9(vi([a,h.pathnameBase])),route:y}),h.pathnameBase!=="/"&&(a=vi([a,h.pathnameBase]))}return i}function Uy(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=f9(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce((d,{paramName:p,isOptional:h},y)=>{if(p==="*"){let b=l[y]||"";i=a.slice(0,a.length-b.length).replace(/(.)\/+$/,"$1")}const g=l[y];return h&&!g?d[p]=void 0:d[p]=(g||"").replace(/%2F/g,"/"),d},{}),pathname:a,pathnameBase:i,pattern:e}}function f9(e,t=!1,n=!0){Sr(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 r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,l,u)=>(r.push({paramName:l,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function p9(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Sr(!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 (${t}).`),e}}function ka(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function h9({basename:e,pathname:t}){return t==="/"?e:vi([e,t])}function m9(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?wl(e):e;return{pathname:n?n.startsWith("/")?n:g9(n,t):t,search:b9(r),hash:v9(o)}}function g9(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function TE(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function K3(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function MT(e){let t=K3(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function FT(e,t,n,r=!1){let o;typeof e=="string"?o=wl(e):(o={...e},Qt(!o.pathname||!o.pathname.includes("?"),TE("?","pathname","search",o)),Qt(!o.pathname||!o.pathname.includes("#"),TE("#","pathname","hash",o)),Qt(!o.search||!o.search.includes("#"),TE("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,l;if(i==null)l=n;else{let h=t.length-1;if(!r&&i.startsWith("..")){let y=i.split("/");for(;y[0]==="..";)y.shift(),h-=1;o.pathname=y.join("/")}l=h>=0?t[h]:"/"}let u=m9(o,l),d=i&&i!=="/"&&i.endsWith("/"),p=(a||i===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(d||p)&&(u.pathname+="/"),u}var vi=e=>e.join("/").replace(/\/\/+/g,"/"),y9=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),b9=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,v9=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,zy=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function ah(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var X3=["POST","PUT","PATCH","DELETE"],E9=new Set(X3),x9=["GET",...X3],S9=new Set(x9),T9=new Set([301,302,303,307,308]),C9=new Set([307,308]),CE={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},_9={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Vf={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},A9=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,jT=e=>A9.test(e),k9=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Z3="remix-router-transitions",J3=Symbol("ResetLoaderData");function w9(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";Qt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],o=e.mapRouteProperties||k9,a={},i=oh(e.routes,o,void 0,a),l,u=e.basename||"/";u.startsWith("/")||(u=`/${u}`);let d=e.dataStrategy||N9,p={...e.future},h=null,y=new Set,g=null,b=null,S=null,T=e.hydrationData!=null,E=al(i,e.history.location,u),A=!1,C=null,D;if(E==null&&!e.patchRoutesOnNavigation){let re=ma(404,{pathname:e.history.location.pathname}),{matches:le,route:me}=wg(i);D=!0,E=le,C={[me.id]:re}}else if(E&&!e.hydrationData&&ra(E,i,e.history.location.pathname).active&&(E=null),E)if(E.some(re=>re.route.lazy))D=!1;else if(!E.some(re=>re.route.loader))D=!0;else{let re=e.hydrationData?e.hydrationData.loaderData:null,le=e.hydrationData?e.hydrationData.errors:null;if(le){let me=E.findIndex(Oe=>le[Oe.route.id]!==void 0);D=E.slice(0,me+1).every(Oe=>!Kx(Oe.route,re,le))}else D=E.every(me=>!Kx(me.route,re,le))}else{D=!1,E=[];let re=ra(null,i,e.history.location.pathname);re.active&&re.matches&&(A=!0,E=re.matches)}let I,O={historyAction:e.history.action,location:e.history.location,matches:E,initialized:D,navigation:CE,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||C,fetchers:new Map,blockers:new Map},j="POP",$=!1,z,L=!1,H=new Map,k=null,F=!1,B=!1,G=new Set,U=new Map,Q=0,Y=-1,oe=new Map,N=new Set,K=new Map,X=new Map,P=new Set,J=new Map,se,ne=null;function be(){if(h=e.history.listen(({action:re,location:le,delta:me})=>{if(se){se(),se=void 0;return}Sr(J.size===0||me!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Oe=lt({currentLocation:O.location,nextLocation:le,historyAction:re});if(Oe&&me!=null){let He=new Promise(rt=>{se=rt});e.history.go(me*-1),mt(Oe,{state:"blocked",location:le,proceed(){mt(Oe,{state:"proceeding",proceed:void 0,reset:void 0,location:le}),He.then(()=>e.history.go(me))},reset(){let rt=new Map(O.blockers);rt.set(Oe,Vf),Ce({blockers:rt})}});return}return _e(re,le)}),n){Y9(t,H);let re=()=>Q9(t,H);t.addEventListener("pagehide",re),k=()=>t.removeEventListener("pagehide",re)}return O.initialized||_e("POP",O.location,{initialHydration:!0}),I}function fe(){h&&h(),k&&k(),y.clear(),z&&z.abort(),O.fetchers.forEach((re,le)=>Ke(le)),O.blockers.forEach((re,le)=>Te(le))}function De(re){return y.add(re),()=>y.delete(re)}function Ce(re,le={}){re.matches&&(re.matches=re.matches.map(He=>{let rt=a[He.route.id],dt=He.route;return dt.element!==rt.element||dt.errorElement!==rt.errorElement||dt.hydrateFallbackElement!==rt.hydrateFallbackElement?{...He,route:rt}:He})),O={...O,...re};let me=[],Oe=[];O.fetchers.forEach((He,rt)=>{He.state==="idle"&&(P.has(rt)?me.push(rt):Oe.push(rt))}),P.forEach(He=>{!O.fetchers.has(He)&&!U.has(He)&&me.push(He)}),[...y].forEach(He=>He(O,{deletedFetchers:me,viewTransitionOpts:le.viewTransitionOpts,flushSync:le.flushSync===!0})),me.forEach(He=>Ke(He)),Oe.forEach(He=>O.fetchers.delete(He))}function Se(re,le,{flushSync:me}={}){let Oe=O.actionData!=null&&O.navigation.formMethod!=null&&Ro(O.navigation.formMethod)&&O.navigation.state==="loading"&&re.state?._isRedirect!==!0,He;le.actionData?Object.keys(le.actionData).length>0?He=le.actionData:He=null:Oe?He=O.actionData:He=null;let rt=le.loaderData?iR(O.loaderData,le.loaderData,le.matches||[],le.errors):O.loaderData,dt=O.blockers;dt.size>0&&(dt=new Map(dt),dt.forEach((it,ct)=>dt.set(ct,Vf)));let at=F?!1:Dr(re,le.matches||O.matches),pt=$===!0||O.navigation.formMethod!=null&&Ro(O.navigation.formMethod)&&re.state?._isRedirect!==!0;l&&(i=l,l=void 0),F||j==="POP"||(j==="PUSH"?e.history.push(re,re.state):j==="REPLACE"&&e.history.replace(re,re.state));let vt;if(j==="POP"){let it=H.get(O.location.pathname);it&&it.has(re.pathname)?vt={currentLocation:O.location,nextLocation:re}:H.has(re.pathname)&&(vt={currentLocation:re,nextLocation:O.location})}else if(L){let it=H.get(O.location.pathname);it?it.add(re.pathname):(it=new Set([re.pathname]),H.set(O.location.pathname,it)),vt={currentLocation:O.location,nextLocation:re}}Ce({...le,actionData:He,loaderData:rt,historyAction:j,location:re,initialized:!0,navigation:CE,revalidation:"idle",restoreScrollPosition:at,preventScrollReset:pt,blockers:dt},{viewTransitionOpts:vt,flushSync:me===!0}),j="POP",$=!1,L=!1,F=!1,B=!1,ne?.resolve(),ne=null}async function ze(re,le){if(typeof re=="number"){e.history.go(re);return}let me=Qx(O.location,O.matches,u,re,le?.fromRouteId,le?.relative),{path:Oe,submission:He,error:rt}=Xw(!1,me,le),dt=O.location,at=rh(O.location,Oe,le&&le.state);at={...at,...e.history.encodeLocation(at)};let pt=le&&le.replace!=null?le.replace:void 0,vt="PUSH";pt===!0?vt="REPLACE":pt===!1||He!=null&&Ro(He.formMethod)&&He.formAction===O.location.pathname+O.location.search&&(vt="REPLACE");let it=le&&"preventScrollReset"in le?le.preventScrollReset===!0:void 0,ct=(le&&le.flushSync)===!0,zt=lt({currentLocation:dt,nextLocation:at,historyAction:vt});if(zt){mt(zt,{state:"blocked",location:at,proceed(){mt(zt,{state:"proceeding",proceed:void 0,reset:void 0,location:at}),ze(re,le)},reset(){let hn=new Map(O.blockers);hn.set(zt,Vf),Ce({blockers:hn})}});return}await _e(vt,at,{submission:He,pendingError:rt,preventScrollReset:it,replace:le&&le.replace,enableViewTransition:le&&le.viewTransition,flushSync:ct})}function Ne(){ne||(ne=K9()),Ot(),Ce({revalidation:"loading"});let re=ne.promise;return O.navigation.state==="submitting"?re:O.navigation.state==="idle"?(_e(O.historyAction,O.location,{startUninterruptedRevalidation:!0}),re):(_e(j||O.historyAction,O.navigation.location,{overrideNavigation:O.navigation,enableViewTransition:L===!0}),re)}async function _e(re,le,me){z&&z.abort(),z=null,j=re,F=(me&&me.startUninterruptedRevalidation)===!0,Rr(O.location,O.matches),$=(me&&me.preventScrollReset)===!0,L=(me&&me.enableViewTransition)===!0;let Oe=l||i,He=me&&me.overrideNavigation,rt=me?.initialHydration&&O.matches&&O.matches.length>0&&!A?O.matches:al(Oe,le,u),dt=(me&&me.flushSync)===!0;if(rt&&O.initialized&&!B&&z9(O.location,le)&&!(me&&me.submission&&Ro(me.submission.formMethod))){Se(le,{matches:rt},{flushSync:dt});return}let at=ra(rt,Oe,le.pathname);if(at.active&&at.matches&&(rt=at.matches),!rt){let{error:nr,notFoundMatches:Pt,route:Rn}=Zn(le.pathname);Se(le,{matches:Pt,loaderData:{},errors:{[Rn.id]:nr}},{flushSync:dt});return}z=new AbortController;let pt=Hu(e.history,le,z.signal,me&&me.submission),vt=e.getContext?await e.getContext():new Qw,it;if(me&&me.pendingError)it=[il(rt).route.id,{type:"error",error:me.pendingError}];else if(me&&me.submission&&Ro(me.submission.formMethod)){let nr=await Ct(pt,le,me.submission,rt,vt,at.active,me&&me.initialHydration===!0,{replace:me.replace,flushSync:dt});if(nr.shortCircuited)return;if(nr.pendingActionResult){let[Pt,Rn]=nr.pendingActionResult;if(Qo(Rn)&&ah(Rn.error)&&Rn.error.status===404){z=null,Se(le,{matches:nr.matches,loaderData:{},errors:{[Pt]:Rn.error}});return}}rt=nr.matches||rt,it=nr.pendingActionResult,He=_E(le,me.submission),dt=!1,at.active=!1,pt=Hu(e.history,pt.url,pt.signal)}let{shortCircuited:ct,matches:zt,loaderData:hn,errors:qn}=await At(pt,le,rt,vt,at.active,He,me&&me.submission,me&&me.fetcherSubmission,me&&me.replace,me&&me.initialHydration===!0,dt,it);ct||(z=null,Se(le,{matches:zt||rt,...sR(it),loaderData:hn,errors:qn}))}async function Ct(re,le,me,Oe,He,rt,dt,at={}){Ot();let pt=q9(le,me);if(Ce({navigation:pt},{flushSync:at.flushSync===!0}),rt){let ct=await $n(Oe,le.pathname,re.signal);if(ct.type==="aborted")return{shortCircuited:!0};if(ct.type==="error"){if(ct.partialMatches.length===0){let{matches:hn,route:qn}=wg(i);return{matches:hn,pendingActionResult:[qn.id,{type:"error",error:ct.error}]}}let zt=il(ct.partialMatches).route.id;return{matches:ct.partialMatches,pendingActionResult:[zt,{type:"error",error:ct.error}]}}else if(ct.matches)Oe=ct.matches;else{let{notFoundMatches:zt,error:hn,route:qn}=Zn(le.pathname);return{matches:zt,pendingActionResult:[qn.id,{type:"error",error:hn}]}}}let vt,it=ly(Oe,le);if(!it.route.action&&!it.route.lazy)vt={type:"error",error:ma(405,{method:re.method,pathname:le.pathname,routeId:it.route.id})};else{let ct=Ku(o,a,re,Oe,it,dt?[]:r,He),zt=await Ut(re,ct,He,null);if(vt=zt[it.route.id],!vt){for(let hn of Oe)if(zt[hn.route.id]){vt=zt[hn.route.id];break}}if(re.signal.aborted)return{shortCircuited:!0}}if(cc(vt)){let ct;return at&&at.replace!=null?ct=at.replace:ct=rR(vt.response.headers.get("Location"),new URL(re.url),u)===O.location.pathname+O.location.search,await Be(re,vt,!0,{submission:me,replace:ct}),{shortCircuited:!0}}if(Qo(vt)){let ct=il(Oe,it.route.id);return(at&&at.replace)!==!0&&(j="PUSH"),{matches:Oe,pendingActionResult:[ct.route.id,vt,it.route.id]}}return{matches:Oe,pendingActionResult:[it.route.id,vt]}}async function At(re,le,me,Oe,He,rt,dt,at,pt,vt,it,ct){let zt=rt||_E(le,dt),hn=dt||at||cR(zt),qn=!F&&!vt;if(He){if(qn){let gr=qe(ct);Ce({navigation:zt,...gr!==void 0?{actionData:gr}:{}},{flushSync:it})}let Lt=await $n(me,le.pathname,re.signal);if(Lt.type==="aborted")return{shortCircuited:!0};if(Lt.type==="error"){if(Lt.partialMatches.length===0){let{matches:Li,route:xo}=wg(i);return{matches:Li,loaderData:{},errors:{[xo.id]:Lt.error}}}let gr=il(Lt.partialMatches).route.id;return{matches:Lt.partialMatches,loaderData:{},errors:{[gr]:Lt.error}}}else if(Lt.matches)me=Lt.matches;else{let{error:gr,notFoundMatches:Li,route:xo}=Zn(le.pathname);return{matches:Li,loaderData:{},errors:{[xo.id]:gr}}}}let nr=l||i,{dsMatches:Pt,revalidatingFetchers:Rn}=Zw(re,Oe,o,a,e.history,O,me,hn,le,vt?[]:r,vt===!0,B,G,P,K,N,nr,u,e.patchRoutesOnNavigation!=null,ct);if(Y=++Q,!e.dataStrategy&&!Pt.some(Lt=>Lt.shouldLoad)&&!Pt.some(Lt=>Lt.route.middleware)&&Rn.length===0){let Lt=on();return Se(le,{matches:me,loaderData:{},errors:ct&&Qo(ct[1])?{[ct[0]]:ct[1].error}:null,...sR(ct),...Lt?{fetchers:new Map(O.fetchers)}:{}},{flushSync:it}),{shortCircuited:!0}}if(qn){let Lt={};if(!He){Lt.navigation=zt;let gr=qe(ct);gr!==void 0&&(Lt.actionData=gr)}Rn.length>0&&(Lt.fetchers=Rt(Rn)),Ce(Lt,{flushSync:it})}Rn.forEach(Lt=>{St(Lt.key),Lt.controller&&U.set(Lt.key,Lt.controller)});let Ka=()=>Rn.forEach(Lt=>St(Lt.key));z&&z.signal.addEventListener("abort",Ka);let{loaderResults:jo,fetcherResults:so}=await Bn(Pt,Rn,re,Oe);if(re.signal.aborted)return{shortCircuited:!0};z&&z.signal.removeEventListener("abort",Ka),Rn.forEach(Lt=>U.delete(Lt.key));let oa=Rg(jo);if(oa)return await Be(re,oa.result,!0,{replace:pt}),{shortCircuited:!0};if(oa=Rg(so),oa)return N.add(oa.key),await Be(re,oa.result,!0,{replace:pt}),{shortCircuited:!0};let{loaderData:Vc,errors:As}=aR(O,me,jo,ct,Rn,so);vt&&O.errors&&(As={...O.errors,...As});let Oi=on(),Ni=Xe(Y),Pi=Oi||Ni||Rn.length>0;return{matches:me,loaderData:Vc,errors:As,...Pi?{fetchers:new Map(O.fetchers)}:{}}}function qe(re){if(re&&!Qo(re[1]))return{[re[0]]:re[1].data};if(O.actionData)return Object.keys(O.actionData).length===0?null:O.actionData}function Rt(re){return re.forEach(le=>{let me=O.fetchers.get(le.key),Oe=qf(void 0,me?me.data:void 0);O.fetchers.set(le.key,Oe)}),new Map(O.fetchers)}async function ot(re,le,me,Oe){St(re);let He=(Oe&&Oe.flushSync)===!0,rt=l||i,dt=Qx(O.location,O.matches,u,me,le,Oe?.relative),at=al(rt,dt,u),pt=ra(at,rt,dt);if(pt.active&&pt.matches&&(at=pt.matches),!at){ye(re,le,ma(404,{pathname:dt}),{flushSync:He});return}let{path:vt,submission:it,error:ct}=Xw(!0,dt,Oe);if(ct){ye(re,le,ct,{flushSync:He});return}let zt=e.getContext?await e.getContext():new Qw,hn=(Oe&&Oe.preventScrollReset)===!0;if(it&&Ro(it.formMethod)){await tt(re,le,vt,at,zt,pt.active,He,hn,it);return}K.set(re,{routeId:le,path:vt}),await je(re,le,vt,at,zt,pt.active,He,hn,it)}async function tt(re,le,me,Oe,He,rt,dt,at,pt){Ot(),K.delete(re);let vt=O.fetchers.get(re);de(re,W9(pt,vt),{flushSync:dt});let it=new AbortController,ct=Hu(e.history,me,it.signal,pt);if(rt){let Jn=await $n(Oe,new URL(ct.url).pathname,ct.signal,re);if(Jn.type==="aborted")return;if(Jn.type==="error"){ye(re,le,Jn.error,{flushSync:dt});return}else if(Jn.matches)Oe=Jn.matches;else{ye(re,le,ma(404,{pathname:me}),{flushSync:dt});return}}let zt=ly(Oe,me);if(!zt.route.action&&!zt.route.lazy){let Jn=ma(405,{method:pt.formMethod,pathname:me,routeId:le});ye(re,le,Jn,{flushSync:dt});return}U.set(re,it);let hn=Q,qn=Ku(o,a,ct,Oe,zt,r,He),Pt=(await Ut(ct,qn,He,re))[zt.route.id];if(ct.signal.aborted){U.get(re)===it&&U.delete(re);return}if(P.has(re)){if(cc(Pt)||Qo(Pt)){de(re,nl(void 0));return}}else{if(cc(Pt))if(U.delete(re),Y>hn){de(re,nl(void 0));return}else return N.add(re),de(re,qf(pt)),Be(ct,Pt,!1,{fetcherSubmission:pt,preventScrollReset:at});if(Qo(Pt)){ye(re,le,Pt.error);return}}let Rn=O.navigation.location||O.location,Ka=Hu(e.history,Rn,it.signal),jo=l||i,so=O.navigation.state!=="idle"?al(jo,O.navigation.location,u):O.matches;Qt(so,"Didn't find any matches after fetcher action");let oa=++Q;oe.set(re,oa);let Vc=qf(pt,Pt.data);O.fetchers.set(re,Vc);let{dsMatches:As,revalidatingFetchers:Oi}=Zw(Ka,He,o,a,e.history,O,so,pt,Rn,r,!1,B,G,P,K,N,jo,u,e.patchRoutesOnNavigation!=null,[zt.route.id,Pt]);Oi.filter(Jn=>Jn.key!==re).forEach(Jn=>{let ks=Jn.key,bm=O.fetchers.get(ks),vm=qf(void 0,bm?bm.data:void 0);O.fetchers.set(ks,vm),St(ks),Jn.controller&&U.set(ks,Jn.controller)}),Ce({fetchers:new Map(O.fetchers)});let Ni=()=>Oi.forEach(Jn=>St(Jn.key));it.signal.addEventListener("abort",Ni);let{loaderResults:Pi,fetcherResults:Lt}=await Bn(As,Oi,Ka,He);if(it.signal.aborted)return;if(it.signal.removeEventListener("abort",Ni),oe.delete(re),U.delete(re),Oi.forEach(Jn=>U.delete(Jn.key)),O.fetchers.has(re)){let Jn=nl(Pt.data);O.fetchers.set(re,Jn)}let gr=Rg(Pi);if(gr)return Be(Ka,gr.result,!1,{preventScrollReset:at});if(gr=Rg(Lt),gr)return N.add(gr.key),Be(Ka,gr.result,!1,{preventScrollReset:at});let{loaderData:Li,errors:xo}=aR(O,so,Pi,void 0,Oi,Lt);Xe(oa),O.navigation.state==="loading"&&oa>Y?(Qt(j,"Expected pending action"),z&&z.abort(),Se(O.navigation.location,{matches:so,loaderData:Li,errors:xo,fetchers:new Map(O.fetchers)})):(Ce({errors:xo,loaderData:iR(O.loaderData,Li,so,xo),fetchers:new Map(O.fetchers)}),B=!1)}async function je(re,le,me,Oe,He,rt,dt,at,pt){let vt=O.fetchers.get(re);de(re,qf(pt,vt?vt.data:void 0),{flushSync:dt});let it=new AbortController,ct=Hu(e.history,me,it.signal);if(rt){let Rn=await $n(Oe,new URL(ct.url).pathname,ct.signal,re);if(Rn.type==="aborted")return;if(Rn.type==="error"){ye(re,le,Rn.error,{flushSync:dt});return}else if(Rn.matches)Oe=Rn.matches;else{ye(re,le,ma(404,{pathname:me}),{flushSync:dt});return}}let zt=ly(Oe,me);U.set(re,it);let hn=Q,qn=Ku(o,a,ct,Oe,zt,r,He),Pt=(await Ut(ct,qn,He,re))[zt.route.id];if(U.get(re)===it&&U.delete(re),!ct.signal.aborted){if(P.has(re)){de(re,nl(void 0));return}if(cc(Pt))if(Y>hn){de(re,nl(void 0));return}else{N.add(re),await Be(ct,Pt,!1,{preventScrollReset:at});return}if(Qo(Pt)){ye(re,le,Pt.error);return}de(re,nl(Pt.data))}}async function Be(re,le,me,{submission:Oe,fetcherSubmission:He,preventScrollReset:rt,replace:dt}={}){le.response.headers.has("X-Remix-Revalidate")&&(B=!0);let at=le.response.headers.get("Location");Qt(at,"Expected a Location header on the redirect Response"),at=rR(at,new URL(re.url),u);let pt=rh(O.location,at,{_isRedirect:!0});if(n){let qn=!1;if(le.response.headers.has("X-Remix-Reload-Document"))qn=!0;else if(jT(at)){const nr=W3(at,!0);qn=nr.origin!==t.location.origin||ka(nr.pathname,u)==null}if(qn){dt?t.location.replace(at):t.location.assign(at);return}}z=null;let vt=dt===!0||le.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:it,formAction:ct,formEncType:zt}=O.navigation;!Oe&&!He&&it&&ct&&zt&&(Oe=cR(O.navigation));let hn=Oe||He;if(C9.has(le.response.status)&&hn&&Ro(hn.formMethod))await _e(vt,pt,{submission:{...hn,formAction:at},preventScrollReset:rt||$,enableViewTransition:me?L:void 0});else{let qn=_E(pt,Oe);await _e(vt,pt,{overrideNavigation:qn,fetcherSubmission:He,preventScrollReset:rt||$,enableViewTransition:me?L:void 0})}}async function Ut(re,le,me,Oe){let He,rt={};try{He=await L9(d,re,le,Oe,me,!1)}catch(dt){return le.filter(at=>at.shouldLoad).forEach(at=>{rt[at.route.id]={type:"error",error:dt}}),rt}if(re.signal.aborted)return rt;for(let[dt,at]of Object.entries(He))if(G9(at)){let pt=at.result;rt[dt]={type:"redirect",response:B9(pt,re,dt,le,u)}}else rt[dt]=await j9(at);return rt}async function Bn(re,le,me,Oe){let He=Ut(me,re,Oe,null),rt=Promise.all(le.map(async pt=>{if(pt.matches&&pt.match&&pt.request&&pt.controller){let it=(await Ut(pt.request,pt.matches,Oe,pt.key))[pt.match.route.id];return{[pt.key]:it}}else return Promise.resolve({[pt.key]:{type:"error",error:ma(404,{pathname:pt.path})}})})),dt=await He,at=(await rt).reduce((pt,vt)=>Object.assign(pt,vt),{});return{loaderResults:dt,fetcherResults:at}}function Ot(){B=!0,K.forEach((re,le)=>{U.has(le)&&G.add(le),St(le)})}function de(re,le,me={}){O.fetchers.set(re,le),Ce({fetchers:new Map(O.fetchers)},{flushSync:(me&&me.flushSync)===!0})}function ye(re,le,me,Oe={}){let He=il(O.matches,le);Ke(re),Ce({errors:{[He.route.id]:me},fetchers:new Map(O.fetchers)},{flushSync:(Oe&&Oe.flushSync)===!0})}function We(re){return X.set(re,(X.get(re)||0)+1),P.has(re)&&P.delete(re),O.fetchers.get(re)||_9}function Ke(re){let le=O.fetchers.get(re);U.has(re)&&!(le&&le.state==="loading"&&oe.has(re))&&St(re),K.delete(re),oe.delete(re),N.delete(re),P.delete(re),G.delete(re),O.fetchers.delete(re)}function et(re){let le=(X.get(re)||0)-1;le<=0?(X.delete(re),P.add(re)):X.set(re,le),Ce({fetchers:new Map(O.fetchers)})}function St(re){let le=U.get(re);le&&(le.abort(),U.delete(re))}function En(re){for(let le of re){let me=We(le),Oe=nl(me.data);O.fetchers.set(le,Oe)}}function on(){let re=[],le=!1;for(let me of N){let Oe=O.fetchers.get(me);Qt(Oe,`Expected fetcher: ${me}`),Oe.state==="loading"&&(N.delete(me),re.push(me),le=!0)}return En(re),le}function Xe(re){let le=[];for(let[me,Oe]of oe)if(Oe<re){let He=O.fetchers.get(me);Qt(He,`Expected fetcher: ${me}`),He.state==="loading"&&(St(me),oe.delete(me),le.push(me))}return En(le),le.length>0}function xe(re,le){let me=O.blockers.get(re)||Vf;return J.get(re)!==le&&J.set(re,le),me}function Te(re){O.blockers.delete(re),J.delete(re)}function mt(re,le){let me=O.blockers.get(re)||Vf;Qt(me.state==="unblocked"&&le.state==="blocked"||me.state==="blocked"&&le.state==="blocked"||me.state==="blocked"&&le.state==="proceeding"||me.state==="blocked"&&le.state==="unblocked"||me.state==="proceeding"&&le.state==="unblocked",`Invalid blocker state transition: ${me.state} -> ${le.state}`);let Oe=new Map(O.blockers);Oe.set(re,le),Ce({blockers:Oe})}function lt({currentLocation:re,nextLocation:le,historyAction:me}){if(J.size===0)return;J.size>1&&Sr(!1,"A router only supports one blocker at a time");let Oe=Array.from(J.entries()),[He,rt]=Oe[Oe.length-1],dt=O.blockers.get(He);if(!(dt&&dt.state==="proceeding")&&rt({currentLocation:re,nextLocation:le,historyAction:me}))return He}function Zn(re){let le=ma(404,{pathname:re}),me=l||i,{matches:Oe,route:He}=wg(me);return{notFoundMatches:Oe,route:He,error:le}}function ao(re,le,me){if(g=re,S=le,b=me||null,!T&&O.navigation===CE){T=!0;let Oe=Dr(O.location,O.matches);Oe!=null&&Ce({restoreScrollPosition:Oe})}return()=>{g=null,S=null,b=null}}function Br(re,le){return b&&b(re,le.map(Oe=>t9(Oe,O.loaderData)))||re.key}function Rr(re,le){if(g&&S){let me=Br(re,le);g[me]=S()}}function Dr(re,le){if(g){let me=Br(re,le),Oe=g[me];if(typeof Oe=="number")return Oe}return null}function ra(re,le,me){if(e.patchRoutesOnNavigation)if(re){if(Object.keys(re[0].params).length>0)return{active:!0,matches:sy(le,me,u,!0)}}else return{active:!0,matches:sy(le,me,u,!0)||[]};return{active:!1,matches:null}}async function $n(re,le,me,Oe){if(!e.patchRoutesOnNavigation)return{type:"success",matches:re};let He=re;for(;;){let rt=l==null,dt=l||i,at=a;try{await e.patchRoutesOnNavigation({signal:me,path:le,matches:He,fetcherKey:Oe,patch:(it,ct)=>{me.aborted||Jw(it,ct,dt,at,o,!1)}})}catch(it){return{type:"error",error:it,partialMatches:He}}finally{rt&&!me.aborted&&(i=[...i])}if(me.aborted)return{type:"aborted"};let pt=al(dt,le,u);if(pt)return{type:"success",matches:pt};let vt=sy(dt,le,u,!0);if(!vt||He.length===vt.length&&He.every((it,ct)=>it.route.id===vt[ct].route.id))return{type:"success",matches:null};He=vt}}function io(re){a={},l=oh(re,o,void 0,a)}function bt(re,le,me=!1){let Oe=l==null;Jw(re,le,l||i,a,o,me),Oe&&(i=[...i],Ce({}))}return I={get basename(){return u},get future(){return p},get state(){return O},get routes(){return i},get window(){return t},initialize:be,subscribe:De,enableScrollRestoration:ao,navigate:ze,fetch:ot,revalidate:Ne,createHref:re=>e.history.createHref(re),encodeLocation:re=>e.history.encodeLocation(re),getFetcher:We,deleteFetcher:et,dispose:fe,getBlocker:xe,deleteBlocker:Te,patchRoutes:bt,_internalFetchControllers:U,_internalSetRoutes:io,_internalSetStateDoNotUseOrYouWillBreakYourApp(re){Ce(re)}},I}function R9(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Qx(e,t,n,r,o,a){let i,l;if(o){i=[];for(let d of t)if(i.push(d),d.route.id===o){l=d;break}}else i=t,l=t[t.length-1];let u=FT(r||".",MT(i),ka(e.pathname,n)||e.pathname,a==="path");if(r==null&&(u.search=e.search,u.hash=e.hash),(r==null||r===""||r===".")&&l){let d=BT(u.search);if(l.route.index&&!d)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!l.route.index&&d){let p=new URLSearchParams(u.search),h=p.getAll("index");p.delete("index"),h.filter(g=>g).forEach(g=>p.append("index",g));let y=p.toString();u.search=y?`?${y}`:""}}return n!=="/"&&(u.pathname=h9({basename:n,pathname:u.pathname})),bl(u)}function Xw(e,t,n){if(!n||!R9(n))return{path:t};if(n.formMethod&&!V9(n.formMethod))return{path:t,error:ma(405,{method:n.formMethod})};let r=()=>({path:t,error:ma(400,{type:"invalid-body"})}),a=(n.formMethod||"get").toUpperCase(),i=a5(t);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Ro(a))return r();let h=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((y,[g,b])=>`${y}${g}=${b}
|
|
60
|
-
`,""):String(n.body);return{path:t,submission:{formMethod:a,formAction:i,formEncType:n.formEncType,formData:void 0,json:void 0,text:h}}}else if(n.formEncType==="application/json"){if(!Ro(a))return r();try{let h=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:a,formAction:i,formEncType:n.formEncType,formData:void 0,json:h,text:void 0}}}catch{return r()}}}Qt(typeof FormData=="function","FormData is not available in this environment");let l,u;if(n.formData)l=Zx(n.formData),u=n.formData;else if(n.body instanceof FormData)l=Zx(n.body),u=n.body;else if(n.body instanceof URLSearchParams)l=n.body,u=oR(l);else if(n.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(n.body),u=oR(l)}catch{return r()}let d={formMethod:a,formAction:i,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(Ro(d.formMethod))return{path:t,submission:d};let p=wl(t);return e&&p.search&&BT(p.search)&&l.append("index",""),p.search=`?${l}`,{path:bl(p),submission:d}}function Zw(e,t,n,r,o,a,i,l,u,d,p,h,y,g,b,S,T,E,A,C){let D=C?Qo(C[1])?C[1].error:C[1].data:void 0,I=o.createURL(a.location),O=o.createURL(u),j;if(p&&a.errors){let F=Object.keys(a.errors)[0];j=i.findIndex(B=>B.route.id===F)}else if(C&&Qo(C[1])){let F=C[0];j=i.findIndex(B=>B.route.id===F)-1}let $=C?C[1].statusCode:void 0,z=$&&$>=400,L={currentUrl:I,currentParams:a.matches[0]?.params||{},nextUrl:O,nextParams:i[0].params,...l,actionResult:D,actionStatus:$},H=i.map((F,B)=>{let{route:G}=F,U=null;if(j!=null&&B>j?U=!1:G.lazy?U=!0:G.loader==null?U=!1:p?U=Kx(G,a.loaderData,a.errors):D9(a.loaderData,a.matches[B],F)&&(U=!0),U!==null)return Xx(n,r,e,F,d,t,U);let Q=z?!1:h||I.pathname+I.search===O.pathname+O.search||I.search!==O.search||I9(a.matches[B],F),Y={...L,defaultShouldRevalidate:Q},oe=Hy(F,Y);return Xx(n,r,e,F,d,t,oe,Y)}),k=[];return b.forEach((F,B)=>{if(p||!i.some(X=>X.route.id===F.routeId)||g.has(B))return;let G=a.fetchers.get(B),U=G&&G.state!=="idle"&&G.data===void 0,Q=al(T,F.path,E);if(!Q){if(A&&U)return;k.push({key:B,routeId:F.routeId,path:F.path,matches:null,match:null,request:null,controller:null});return}if(S.has(B))return;let Y=ly(Q,F.path),oe=new AbortController,N=Hu(o,F.path,oe.signal),K=null;if(y.has(B))y.delete(B),K=Ku(n,r,N,Q,Y,d,t);else if(U)h&&(K=Ku(n,r,N,Q,Y,d,t));else{let X={...L,defaultShouldRevalidate:z?!1:h};Hy(Y,X)&&(K=Ku(n,r,N,Q,Y,d,t,X))}K&&k.push({key:B,routeId:F.routeId,path:F.path,matches:K,match:Y,request:N,controller:oe})}),{dsMatches:H,revalidatingFetchers:k}}function Kx(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&e.id in t,o=n!=null&&n[e.id]!==void 0;return!r&&o?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!o}function D9(e,t,n){let r=!t||n.route.id!==t.route.id,o=!e.hasOwnProperty(n.route.id);return r||o}function I9(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Hy(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function Jw(e,t,n,r,o,a){let i;if(e){let d=r[e];Qt(d,`No route found to patch children into: routeId = ${e}`),d.children||(d.children=[]),i=d.children}else i=n;let l=[],u=[];if(t.forEach(d=>{let p=i.find(h=>e5(d,h));p?u.push({existingRoute:p,newRoute:d}):l.push(d)}),l.length>0){let d=oh(l,o,[e||"_","patch",String(i?.length||"0")],r);i.push(...d)}if(a&&u.length>0)for(let d=0;d<u.length;d++){let{existingRoute:p,newRoute:h}=u[d],y=p,[g]=oh([h],o,[],{},!0);Object.assign(y,{element:g.element?g.element:y.element,errorElement:g.errorElement?g.errorElement:y.errorElement,hydrateFallbackElement:g.hydrateFallbackElement?g.hydrateFallbackElement:y.hydrateFallbackElement})}}function e5(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>t.children?.some(o=>e5(n,o))):!1}var eR=new WeakMap,t5=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let o=n[t.id];if(Qt(o,"No route found in manifest"),!o.lazy||typeof o.lazy!="object")return;let a=o.lazy[e];if(!a)return;let i=eR.get(o);i||(i={},eR.set(o,i));let l=i[e];if(l)return l;let u=(async()=>{let d=Xj(e),h=o[e]!==void 0&&e!=="hasErrorBoundary";if(d)Sr(!d,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),i[e]=Promise.resolve();else if(h)Sr(!1,`Route "${o.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let y=await a();y!=null&&(Object.assign(o,{[e]:y}),Object.assign(o,r(o)))}typeof o.lazy=="object"&&(o.lazy[e]=void 0,Object.values(o.lazy).every(y=>y===void 0)&&(o.lazy=void 0))})();return i[e]=u,u},tR=new WeakMap;function O9(e,t,n,r,o){let a=n[e.id];if(Qt(a,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let p=tR.get(a);if(p)return{lazyRoutePromise:p,lazyHandlerPromise:p};let h=(async()=>{Qt(typeof e.lazy=="function","No lazy route function found");let y=await e.lazy(),g={};for(let b in y){let S=y[b];if(S===void 0)continue;let T=Jj(b),A=a[b]!==void 0&&b!=="hasErrorBoundary";T?Sr(!T,"Route property "+b+" is not a supported property to be returned from a lazy route function. This property will be ignored."):A?Sr(!A,`Route "${a.id}" has a static property "${b}" defined but its lazy function is also returning a value for this property. The lazy route property "${b}" will be ignored.`):g[b]=S}Object.assign(a,g),Object.assign(a,{...r(a),lazy:void 0})})();return tR.set(a,h),h.catch(()=>{}),{lazyRoutePromise:h,lazyHandlerPromise:h}}let i=Object.keys(e.lazy),l=[],u;for(let p of i){if(o&&o.includes(p))continue;let h=t5({key:p,route:e,manifest:n,mapRouteProperties:r});h&&(l.push(h),p===t&&(u=h))}let d=l.length>0?Promise.all(l).then(()=>{}):void 0;return d?.catch(()=>{}),u?.catch(()=>{}),{lazyRoutePromise:d,lazyHandlerPromise:u}}async function nR(e){let t=e.matches.filter(o=>o.shouldLoad),n={};return(await Promise.all(t.map(o=>o.resolve()))).forEach((o,a)=>{n[t[a].route.id]=o}),n}async function N9(e){return e.matches.some(t=>t.route.middleware)?n5(e,()=>nR(e)):nR(e)}function n5(e,t){return P9(e,t,r=>r,H9,n);function n(r,o,a){if(a)return Promise.resolve(Object.assign(a.value,{[o]:{type:"error",result:r}}));{let{matches:i}=e,l=Math.min(i.findIndex(d=>d.route.id===o)||0,i.findIndex(d=>d.unstable_shouldCallHandler())||0),u=il(i,i[l].route.id).route.id;return Promise.resolve({[u]:{type:"error",result:r}})}}}async function P9(e,t,n,r,o){let{matches:a,request:i,params:l,context:u}=e,d=a.flatMap(h=>h.route.middleware?h.route.middleware.map(y=>[h.route.id,y]):[]);return await r5({request:i,params:l,context:u},d,t,n,r,o)}async function r5(e,t,n,r,o,a,i=0){let{request:l}=e;if(l.signal.aborted)throw l.signal.reason??new Error(`Request aborted: ${l.method} ${l.url}`);let u=t[i];if(!u)return await n();let[d,p]=u,h,y=async()=>{if(h)throw new Error("You may only call `next()` once per middleware");try{return h={value:await r5(e,t,n,r,o,a,i+1)},h.value}catch(g){return h={value:await a(g,d,h)},h.value}};try{let g=await p(e,y),b=g!=null?r(g):void 0;return o(b)?b:h?b??h.value:(h={value:await y()},h.value)}catch(g){return await a(g,d,h)}}function o5(e,t,n,r,o){let a=t5({key:"middleware",route:r.route,manifest:t,mapRouteProperties:e}),i=O9(r.route,Ro(n.method)?"action":"loader",t,e,o);return{middleware:a,route:i.lazyRoutePromise,handler:i.lazyHandlerPromise}}function Xx(e,t,n,r,o,a,i,l=null){let u=!1,d=o5(e,t,n,r,o);return{...r,_lazyPromises:d,shouldLoad:i,unstable_shouldRevalidateArgs:l,unstable_shouldCallHandler(p){return u=!0,l?typeof p=="boolean"?Hy(r,{...l,defaultShouldRevalidate:p}):Hy(r,l):i},resolve(p){return u||i||p&&!Ro(n.method)&&(r.route.lazy||r.route.loader)?M9({request:n,match:r,lazyHandlerPromise:d?.handler,lazyRoutePromise:d?.route,handlerOverride:p,scopedContext:a}):Promise.resolve({type:"data",result:void 0})}}}function Ku(e,t,n,r,o,a,i,l=null){return r.map(u=>u.route.id!==o.route.id?{...u,shouldLoad:!1,unstable_shouldRevalidateArgs:l,unstable_shouldCallHandler:()=>!1,_lazyPromises:o5(e,t,n,u,a),resolve:()=>Promise.resolve({type:"data",result:void 0})}:Xx(e,t,n,u,a,i,!0,l))}async function L9(e,t,n,r,o,a){n.some(d=>d._lazyPromises?.middleware)&&await Promise.all(n.map(d=>d._lazyPromises?.middleware));let i={request:t,params:n[0].params,context:o,matches:n},u=await e({...i,fetcherKey:r,runClientMiddleware:d=>{let p=i;return n5(p,()=>d({...p,fetcherKey:r,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(n.flatMap(d=>[d._lazyPromises?.handler,d._lazyPromises?.route]))}catch{}return u}async function M9({request:e,match:t,lazyHandlerPromise:n,lazyRoutePromise:r,handlerOverride:o,scopedContext:a}){let i,l,u=Ro(e.method),d=u?"action":"loader",p=h=>{let y,g=new Promise((T,E)=>y=E);l=()=>y(),e.signal.addEventListener("abort",l);let b=T=>typeof h!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${t.route.id}]`)):h({request:e,params:t.params,context:a},...T!==void 0?[T]:[]),S=(async()=>{try{return{type:"data",result:await(o?o(E=>b(E)):b())}}catch(T){return{type:"error",result:T}}})();return Promise.race([S,g])};try{let h=u?t.route.action:t.route.loader;if(n||r)if(h){let y,[g]=await Promise.all([p(h).catch(b=>{y=b}),n,r]);if(y!==void 0)throw y;i=g}else{await n;let y=u?t.route.action:t.route.loader;if(y)[i]=await Promise.all([p(y),r]);else if(d==="action"){let g=new URL(e.url),b=g.pathname+g.search;throw ma(405,{method:e.method,pathname:b,routeId:t.route.id})}else return{type:"data",result:void 0}}else if(h)i=await p(h);else{let y=new URL(e.url),g=y.pathname+y.search;throw ma(404,{pathname:g})}}catch(h){return{type:"error",result:h}}finally{l&&e.signal.removeEventListener("abort",l)}return i}async function F9(e){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function j9(e){let{result:t,type:n}=e;if(i5(t)){let r;try{r=await F9(t)}catch(o){return{type:"error",error:o}}return n==="error"?{type:"error",error:new zy(t.status,t.statusText,r),statusCode:t.status,headers:t.headers}:{type:"data",data:r,statusCode:t.status,headers:t.headers}}return n==="error"?lR(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:new zy(t.init?.status||500,void 0,t.data),statusCode:ah(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:ah(t)?t.status:void 0}:lR(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function B9(e,t,n,r,o){let a=e.headers.get("Location");if(Qt(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!jT(a)){let i=r.slice(0,r.findIndex(l=>l.route.id===n)+1);a=Qx(new URL(t.url),i,o,a),e.headers.set("Location",a)}return e}function rR(e,t,n){if(jT(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),a=ka(o.pathname,n)!=null;if(o.origin===t.origin&&a)return o.pathname+o.search+o.hash}return e}function Hu(e,t,n,r){let o=e.createURL(a5(t)).toString(),a={signal:n};if(r&&Ro(r.formMethod)){let{formMethod:i,formEncType:l}=r;a.method=i.toUpperCase(),l==="application/json"?(a.headers=new Headers({"Content-Type":l}),a.body=JSON.stringify(r.json)):l==="text/plain"?a.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?a.body=Zx(r.formData):a.body=r.formData}return new Request(o,a)}function Zx(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function oR(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function U9(e,t,n,r=!1,o=!1){let a={},i=null,l,u=!1,d={},p=n&&Qo(n[1])?n[1].error:void 0;return e.forEach(h=>{if(!(h.route.id in t))return;let y=h.route.id,g=t[y];if(Qt(!cc(g),"Cannot handle redirect results in processLoaderData"),Qo(g)){let b=g.error;if(p!==void 0&&(b=p,p=void 0),i=i||{},o)i[y]=b;else{let S=il(e,y);i[S.route.id]==null&&(i[S.route.id]=b)}r||(a[y]=J3),u||(u=!0,l=ah(g.error)?g.error.status:500),g.headers&&(d[y]=g.headers)}else a[y]=g.data,g.statusCode&&g.statusCode!==200&&!u&&(l=g.statusCode),g.headers&&(d[y]=g.headers)}),p!==void 0&&n&&(i={[n[0]]:p},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:i,statusCode:l||200,loaderHeaders:d}}function aR(e,t,n,r,o,a){let{loaderData:i,errors:l}=U9(t,n,r);return o.filter(u=>!u.matches||u.matches.some(d=>d.shouldLoad)).forEach(u=>{let{key:d,match:p,controller:h}=u;if(h&&h.signal.aborted)return;let y=a[d];if(Qt(y,"Did not find corresponding fetcher result"),Qo(y)){let g=il(e.matches,p?.route.id);l&&l[g.route.id]||(l={...l,[g.route.id]:y.error}),e.fetchers.delete(d)}else if(cc(y))Qt(!1,"Unhandled fetcher revalidation redirect");else{let g=nl(y.data);e.fetchers.set(d,g)}}),{loaderData:i,errors:l}}function iR(e,t,n,r){let o=Object.entries(t).filter(([,a])=>a!==J3).reduce((a,[i,l])=>(a[i]=l,a),{});for(let a of n){let i=a.route.id;if(!t.hasOwnProperty(i)&&e.hasOwnProperty(i)&&a.route.loader&&(o[i]=e[i]),r&&r.hasOwnProperty(i))break}return o}function sR(e){return e?Qo(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function il(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function wg(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ma(e,{pathname:t,routeId:n,method:r,type:o,message:a}={}){let i="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(i="Bad Request",r&&t&&n?l=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:o==="invalid-body"&&(l="Unable to encode submission body")):e===403?(i="Forbidden",l=`Route "${n}" does not match URL "${t}"`):e===404?(i="Not Found",l=`No route matches URL "${t}"`):e===405&&(i="Method Not Allowed",r&&t&&n?l=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(l=`Invalid request method "${r.toUpperCase()}"`)),new zy(e||500,i,new Error(l),!0)}function Rg(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,o]=t[n];if(cc(o))return{key:r,result:o}}}function a5(e){let t=typeof e=="string"?wl(e):e;return bl({...t,hash:""})}function z9(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function H9(e){return e!=null&&typeof e=="object"&&Object.entries(e).every(([t,n])=>typeof t=="string"&&$9(n))}function $9(e){return e!=null&&typeof e=="object"&&"type"in e&&"result"in e&&(e.type==="data"||e.type==="error")}function G9(e){return i5(e.result)&&T9.has(e.result.status)}function Qo(e){return e.type==="error"}function cc(e){return(e&&e.type)==="redirect"}function lR(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function i5(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function V9(e){return S9.has(e.toUpperCase())}function Ro(e){return E9.has(e.toUpperCase())}function BT(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function ly(e,t){let n=typeof t=="string"?wl(t).search:t.search;if(e[e.length-1].route.index&&BT(n||""))return e[e.length-1];let r=K3(e);return r[r.length-1]}function cR(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:a,json:i}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}}}function _E(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function q9(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function qf(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function W9(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function nl(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Y9(e,t){try{let n=e.sessionStorage.getItem(Z3);if(n){let r=JSON.parse(n);for(let[o,a]of Object.entries(r||{}))a&&Array.isArray(a)&&t.set(o,new Set(a||[]))}}catch{}}function Q9(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(Z3,JSON.stringify(n))}catch(r){Sr(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function K9(){let e,t,n=new Promise((r,o)=>{e=async a=>{r(a);try{await n}catch{}},t=async a=>{o(a);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var Fc=_.createContext(null);Fc.displayName="DataRouter";var jh=_.createContext(null);jh.displayName="DataRouterState";_.createContext(!1);var UT=_.createContext({isTransitioning:!1});UT.displayName="ViewTransition";var s5=_.createContext(new Map);s5.displayName="Fetchers";var X9=_.createContext(null);X9.displayName="Await";var ki=_.createContext(null);ki.displayName="Navigation";var z0=_.createContext(null);z0.displayName="Location";var Va=_.createContext({outlet:null,matches:[],isDataRoute:!1});Va.displayName="Route";var zT=_.createContext(null);zT.displayName="RouteError";function Z9(e,{relative:t}={}){Qt(Bh(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=_.useContext(ki),{hash:o,pathname:a,search:i}=Uh(e,{relative:t}),l=a;return n!=="/"&&(l=a==="/"?n:vi([n,a])),r.createHref({pathname:l,search:i,hash:o})}function Bh(){return _.useContext(z0)!=null}function jc(){return Qt(Bh(),"useLocation() may be used only in the context of a <Router> component."),_.useContext(z0).location}var l5="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function c5(e){_.useContext(ki).static||_.useLayoutEffect(e)}function u5(){let{isDataRoute:e}=_.useContext(Va);return e?pB():J9()}function J9(){Qt(Bh(),"useNavigate() may be used only in the context of a <Router> component.");let e=_.useContext(Fc),{basename:t,navigator:n}=_.useContext(ki),{matches:r}=_.useContext(Va),{pathname:o}=jc(),a=JSON.stringify(MT(r)),i=_.useRef(!1);return c5(()=>{i.current=!0}),_.useCallback((u,d={})=>{if(Sr(i.current,l5),!i.current)return;if(typeof u=="number"){n.go(u);return}let p=FT(u,JSON.parse(a),o,d.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:vi([t,p.pathname])),(d.replace?n.replace:n.push)(p,d.state,d)},[t,n,a,o,e])}var eB=_.createContext(null);function tB(e){let t=_.useContext(Va).outlet;return t&&_.createElement(eB.Provider,{value:e},t)}function dTe(){let{matches:e}=_.useContext(Va),t=e[e.length-1];return t?t.params:{}}function Uh(e,{relative:t}={}){let{matches:n}=_.useContext(Va),{pathname:r}=jc(),o=JSON.stringify(MT(n));return _.useMemo(()=>FT(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function nB(e,t,n,r,o){Qt(Bh(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=_.useContext(ki),{matches:i}=_.useContext(Va),l=i[i.length-1],u=l?l.params:{},d=l?l.pathname:"/",p=l?l.pathnameBase:"/",h=l&&l.route;{let A=h&&h.path||"";d5(d,!h||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${A}">) 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.
|
|
61
|
-
|
|
62
|
-
Please change the parent <Route path="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let y=jc(),g;g=y;let b=g.pathname||"/",S=b;if(p!=="/"){let A=p.replace(/^\//,"").split("/");S="/"+b.replace(/^\//,"").split("/").slice(A.length).join("/")}let T=al(e,{pathname:S});return Sr(h||T!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),Sr(T==null||T[T.length-1].route.element!==void 0||T[T.length-1].route.Component!==void 0||T[T.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.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.`),sB(T&&T.map(A=>Object.assign({},A,{params:Object.assign({},u,A.params),pathname:vi([p,a.encodeLocation?a.encodeLocation(A.pathname).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?p:vi([p,a.encodeLocation?a.encodeLocation(A.pathnameBase).pathname:A.pathnameBase])})),i,n,r,o)}function rB(){let e=fB(),t=ah(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=_.createElement(_.Fragment,null,_.createElement("p",null,"💿 Hey developer 👋"),_.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",_.createElement("code",{style:a},"ErrorBoundary")," or"," ",_.createElement("code",{style:a},"errorElement")," prop on your route.")),_.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},t),n?_.createElement("pre",{style:o},n):null,i)}var oB=_.createElement(rB,null),aB=class extends _.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,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?_.createElement(Va.Provider,{value:this.props.routeContext},_.createElement(zT.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function iB({routeContext:e,match:t,children:n}){let r=_.useContext(Fc);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),_.createElement(Va.Provider,{value:e},n)}function sB(e,t=[],n=null,r=null,o=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,i=n?.errors;if(i!=null){let d=a.findIndex(p=>p.route.id&&i?.[p.route.id]!==void 0);Qt(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),a=a.slice(0,Math.min(a.length,d+1))}let l=!1,u=-1;if(n)for(let d=0;d<a.length;d++){let p=a[d];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(u=d),p.route.id){let{loaderData:h,errors:y}=n,g=p.route.loader&&!h.hasOwnProperty(p.route.id)&&(!y||y[p.route.id]===void 0);if(p.route.lazy||g){l=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((d,p,h)=>{let y,g=!1,b=null,S=null;n&&(y=i&&p.route.id?i[p.route.id]:void 0,b=p.route.errorElement||oB,l&&(u<0&&h===0?(d5("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,S=null):u===h&&(g=!0,S=p.route.hydrateFallbackElement||null)));let T=t.concat(a.slice(0,h+1)),E=()=>{let A;return y?A=b:g?A=S:p.route.Component?A=_.createElement(p.route.Component,null):p.route.element?A=p.route.element:A=d,_.createElement(iB,{match:p,routeContext:{outlet:d,matches:T,isDataRoute:n!=null},children:A})};return n&&(p.route.ErrorBoundary||p.route.errorElement||h===0)?_.createElement(aB,{location:n.location,revalidation:n.revalidation,component:b,error:y,children:E(),routeContext:{outlet:null,matches:T,isDataRoute:!0},unstable_onError:r}):E()},null)}function HT(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function lB(e){let t=_.useContext(Fc);return Qt(t,HT(e)),t}function cB(e){let t=_.useContext(jh);return Qt(t,HT(e)),t}function uB(e){let t=_.useContext(Va);return Qt(t,HT(e)),t}function $T(e){let t=uB(e),n=t.matches[t.matches.length-1];return Qt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function dB(){return $T("useRouteId")}function fB(){let e=_.useContext(zT),t=cB("useRouteError"),n=$T("useRouteError");return e!==void 0?e:t.errors?.[n]}function pB(){let{router:e}=lB("useNavigate"),t=$T("useNavigate"),n=_.useRef(!1);return c5(()=>{n.current=!0}),_.useCallback(async(o,a={})=>{Sr(n.current,l5),n.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:t,...a}))},[e,t])}var uR={};function d5(e,t,n){!t&&!uR[e]&&(uR[e]=!0,Sr(!1,n))}var dR={};function fR(e,t){!e&&!dR[t]&&(dR[t]=!0,console.warn(t))}function hB(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&Sr(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:_.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&Sr(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:_.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&Sr(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:_.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var mB=["HydrateFallback","hydrateFallbackElement"],gB=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",e(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",t(n))}})}};function yB({router:e,flushSync:t,unstable_onError:n}){let[r,o]=_.useState(e.state),[a,i]=_.useState(),[l,u]=_.useState({isTransitioning:!1}),[d,p]=_.useState(),[h,y]=_.useState(),[g,b]=_.useState(),S=_.useRef(new Map),T=_.useCallback(I=>{o(O=>(I.errors&&n&&Object.entries(I.errors).forEach(([j,$])=>{O.errors?.[j]!==$&&n($)}),I))},[n]),E=_.useCallback((I,{deletedFetchers:O,flushSync:j,viewTransitionOpts:$})=>{I.fetchers.forEach((L,H)=>{L.data!==void 0&&S.current.set(H,L.data)}),O.forEach(L=>S.current.delete(L)),fR(j===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let z=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(fR($==null||z,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!$||!z){t&&j?t(()=>T(I)):_.startTransition(()=>T(I));return}if(t&&j){t(()=>{h&&(d&&d.resolve(),h.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:$.currentLocation,nextLocation:$.nextLocation})});let L=e.window.document.startViewTransition(()=>{t(()=>T(I))});L.finished.finally(()=>{t(()=>{p(void 0),y(void 0),i(void 0),u({isTransitioning:!1})})}),t(()=>y(L));return}h?(d&&d.resolve(),h.skipTransition(),b({state:I,currentLocation:$.currentLocation,nextLocation:$.nextLocation})):(i(I),u({isTransitioning:!0,flushSync:!1,currentLocation:$.currentLocation,nextLocation:$.nextLocation}))},[e.window,t,h,d,T]);_.useLayoutEffect(()=>e.subscribe(E),[e,E]),_.useEffect(()=>{l.isTransitioning&&!l.flushSync&&p(new gB)},[l]),_.useEffect(()=>{if(d&&a&&e.window){let I=a,O=d.promise,j=e.window.document.startViewTransition(async()=>{_.startTransition(()=>T(I)),await O});j.finished.finally(()=>{p(void 0),y(void 0),i(void 0),u({isTransitioning:!1})}),y(j)}},[a,d,e.window,T]),_.useEffect(()=>{d&&a&&r.location.key===a.location.key&&d.resolve()},[d,h,r.location,a]),_.useEffect(()=>{!l.isTransitioning&&g&&(i(g.state),u({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),b(void 0))},[l.isTransitioning,g]);let A=_.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:I=>e.navigate(I),push:(I,O,j)=>e.navigate(I,{state:O,preventScrollReset:j?.preventScrollReset}),replace:(I,O,j)=>e.navigate(I,{replace:!0,state:O,preventScrollReset:j?.preventScrollReset})}),[e]),C=e.basename||"/",D=_.useMemo(()=>({router:e,navigator:A,static:!1,basename:C,unstable_onError:n}),[e,A,C,n]);return _.createElement(_.Fragment,null,_.createElement(Fc.Provider,{value:D},_.createElement(jh.Provider,{value:r},_.createElement(s5.Provider,{value:S.current},_.createElement(UT.Provider,{value:l},_.createElement(EB,{basename:C,location:r.location,navigationType:r.historyAction,navigator:A},_.createElement(bB,{routes:e.routes,future:e.future,state:r,unstable_onError:n})))))),null)}var bB=_.memo(vB);function vB({routes:e,future:t,state:n,unstable_onError:r}){return nB(e,void 0,n,r,t)}function fTe(e){return tB(e.context)}function EB({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:a=!1}){Qt(!Bh(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let i=e.replace(/^\/*/,"/"),l=_.useMemo(()=>({basename:i,navigator:o,static:a,future:{}}),[i,o,a]);typeof n=="string"&&(n=wl(n));let{pathname:u="/",search:d="",hash:p="",state:h=null,key:y="default"}=n,g=_.useMemo(()=>{let b=ka(u,i);return b==null?null:{location:{pathname:b,search:d,hash:p,state:h,key:y},navigationType:r}},[i,u,d,p,h,y,r]);return Sr(g!=null,`<Router basename="${i}"> is not able to match the URL "${u}${d}${p}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:_.createElement(ki.Provider,{value:l},_.createElement(z0.Provider,{children:t,value:g}))}var cy="get",uy="application/x-www-form-urlencoded";function H0(e){return e!=null&&typeof e.tagName=="string"}function xB(e){return H0(e)&&e.tagName.toLowerCase()==="button"}function SB(e){return H0(e)&&e.tagName.toLowerCase()==="form"}function TB(e){return H0(e)&&e.tagName.toLowerCase()==="input"}function CB(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function _B(e,t){return e.button===0&&(!t||t==="_self")&&!CB(e)}var Dg=null;function AB(){if(Dg===null)try{new FormData(document.createElement("form"),0),Dg=!1}catch{Dg=!0}return Dg}var kB=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function AE(e){return e!=null&&!kB.has(e)?(Sr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${uy}"`),null):e}function wB(e,t){let n,r,o,a,i;if(SB(e)){let l=e.getAttribute("action");r=l?ka(l,t):null,n=e.getAttribute("method")||cy,o=AE(e.getAttribute("enctype"))||uy,a=new FormData(e)}else if(xB(e)||TB(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let u=e.getAttribute("formaction")||l.getAttribute("action");if(r=u?ka(u,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||cy,o=AE(e.getAttribute("formenctype"))||AE(l.getAttribute("enctype"))||uy,a=new FormData(l,e),!AB()){let{name:d,type:p,value:h}=e;if(p==="image"){let y=d?`${d}.`:"";a.append(`${y}x`,"0"),a.append(`${y}y`,"0")}else d&&a.append(d,h)}}else{if(H0(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=cy,r=null,o=uy,i=e}return a&&o==="text/plain"&&(i=a,a=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:a,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function GT(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function RB(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&ka(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function DB(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function IB(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 OB(e,t,n){let r=await Promise.all(e.map(async o=>{let a=t.routes[o.route.id];if(a){let i=await DB(a,n);return i.links?i.links():[]}return[]}));return MB(r.flat(1).filter(IB).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function pR(e,t,n,r,o,a){let i=(u,d)=>n[d]?u.route.id!==n[d].route.id:!0,l=(u,d)=>n[d].pathname!==u.pathname||n[d].route.path?.endsWith("*")&&n[d].params["*"]!==u.params["*"];return a==="assets"?t.filter((u,d)=>i(u,d)||l(u,d)):a==="data"?t.filter((u,d)=>{let p=r.routes[u.route.id];if(!p||!p.hasLoader)return!1;if(i(u,d)||l(u,d))return!0;if(u.route.shouldRevalidate){let h=u.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:u.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function NB(e,t,{includeHydrateFallback:n}={}){return PB(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let a=[o.module];return o.clientActionModule&&(a=a.concat(o.clientActionModule)),o.clientLoaderModule&&(a=a.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(a=a.concat(o.hydrateFallbackModule)),o.imports&&(a=a.concat(o.imports)),a}).flat(1))}function PB(e){return[...new Set(e)]}function LB(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function MB(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let a=JSON.stringify(LB(o));return n.has(a)||(n.add(a),r.push({key:a,link:o})),r},[])}function f5(){let e=_.useContext(Fc);return GT(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function FB(){let e=_.useContext(jh);return GT(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var VT=_.createContext(void 0);VT.displayName="FrameworkContext";function p5(){let e=_.useContext(VT);return GT(e,"You must render this element inside a <HydratedRouter> element"),e}function jB(e,t){let n=_.useContext(VT),[r,o]=_.useState(!1),[a,i]=_.useState(!1),{onFocus:l,onBlur:u,onMouseEnter:d,onMouseLeave:p,onTouchStart:h}=t,y=_.useRef(null);_.useEffect(()=>{if(e==="render"&&i(!0),e==="viewport"){let S=E=>{E.forEach(A=>{i(A.isIntersecting)})},T=new IntersectionObserver(S,{threshold:.5});return y.current&&T.observe(y.current),()=>{T.disconnect()}}},[e]),_.useEffect(()=>{if(r){let S=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(S)}}},[r]);let g=()=>{o(!0)},b=()=>{o(!1),i(!1)};return n?e!=="intent"?[a,y,{}]:[a,y,{onFocus:Wf(l,g),onBlur:Wf(u,b),onMouseEnter:Wf(d,g),onMouseLeave:Wf(p,b),onTouchStart:Wf(h,g)}]:[!1,y,{}]}function Wf(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function BB({page:e,...t}){let{router:n}=f5(),r=_.useMemo(()=>al(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?_.createElement(zB,{page:e,matches:r,...t}):null}function UB(e){let{manifest:t,routeModules:n}=p5(),[r,o]=_.useState([]);return _.useEffect(()=>{let a=!1;return OB(e,t,n).then(i=>{a||o(i)}),()=>{a=!0}},[e,t,n]),r}function zB({page:e,matches:t,...n}){let r=jc(),{manifest:o,routeModules:a}=p5(),{basename:i}=f5(),{loaderData:l,matches:u}=FB(),d=_.useMemo(()=>pR(e,t,u,o,r,"data"),[e,t,u,o,r]),p=_.useMemo(()=>pR(e,t,u,o,r,"assets"),[e,t,u,o,r]),h=_.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let b=new Set,S=!1;if(t.forEach(E=>{let A=o.routes[E.route.id];!A||!A.hasLoader||(!d.some(C=>C.route.id===E.route.id)&&E.route.id in l&&a[E.route.id]?.shouldRevalidate||A.hasClientLoader?S=!0:b.add(E.route.id))}),b.size===0)return[];let T=RB(e,i,"data");return S&&b.size>0&&T.searchParams.set("_routes",t.filter(E=>b.has(E.route.id)).map(E=>E.route.id).join(",")),[T.pathname+T.search]},[i,l,r,o,d,t,e,a]),y=_.useMemo(()=>NB(p,o),[p,o]),g=UB(p);return _.createElement(_.Fragment,null,h.map(b=>_.createElement("link",{key:b,rel:"prefetch",as:"fetch",href:b,...n})),y.map(b=>_.createElement("link",{key:b,rel:"modulepreload",href:b,...n})),g.map(({key:b,link:S})=>_.createElement("link",{key:b,nonce:n.nonce,...S})))}function HB(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var h5=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{h5&&(window.__reactRouterVersion="7.9.1")}catch{}function $B(e,t){return w9({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:Wj({window:t?.window}),hydrationData:GB(),routes:e,mapRouteProperties:hB,hydrationRouteProperties:mB,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function GB(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:VB(e.errors)}),e}function VB(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new zy(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let a=window[o.__subType];if(typeof a=="function")try{let i=new a(o.message);i.stack="",n[r]=i}catch{}}if(n[r]==null){let a=new Error(o.message);a.stack="",n[r]=a}}else n[r]=o;return n}var m5=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,g5=_.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:a,replace:i,state:l,target:u,to:d,preventScrollReset:p,viewTransition:h,...y},g){let{basename:b}=_.useContext(ki),S=typeof d=="string"&&m5.test(d),T,E=!1;if(typeof d=="string"&&S&&(T=d,h5))try{let z=new URL(window.location.href),L=d.startsWith("//")?new URL(z.protocol+d):new URL(d),H=ka(L.pathname,b);L.origin===z.origin&&H!=null?d=H+L.search+L.hash:E=!0}catch{Sr(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let A=Z9(d,{relative:o}),[C,D,I]=jB(r,y),O=QB(d,{replace:i,state:l,target:u,preventScrollReset:p,relative:o,viewTransition:h});function j(z){t&&t(z),z.defaultPrevented||O(z)}let $=_.createElement("a",{...y,...I,href:T||A,onClick:E||a?t:j,ref:HB(g,D),target:u,"data-discover":!S&&n==="render"?"true":void 0});return C&&!S?_.createElement(_.Fragment,null,$,_.createElement(BB,{page:A})):$});g5.displayName="Link";var qB=_.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:a,to:i,viewTransition:l,children:u,...d},p){let h=Uh(i,{relative:d.relative}),y=jc(),g=_.useContext(jh),{navigator:b,basename:S}=_.useContext(ki),T=g!=null&&eU(h)&&l===!0,E=b.encodeLocation?b.encodeLocation(h).pathname:h.pathname,A=y.pathname,C=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;n||(A=A.toLowerCase(),C=C?C.toLowerCase():null,E=E.toLowerCase()),C&&S&&(C=ka(C,S)||C);const D=E!=="/"&&E.endsWith("/")?E.length-1:E.length;let I=A===E||!o&&A.startsWith(E)&&A.charAt(D)==="/",O=C!=null&&(C===E||!o&&C.startsWith(E)&&C.charAt(E.length)==="/"),j={isActive:I,isPending:O,isTransitioning:T},$=I?t:void 0,z;typeof r=="function"?z=r(j):z=[r,I?"active":null,O?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let L=typeof a=="function"?a(j):a;return _.createElement(g5,{...d,"aria-current":$,className:z,ref:p,style:L,to:i,viewTransition:l},typeof u=="function"?u(j):u)});qB.displayName="NavLink";var WB=_.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:a,method:i=cy,action:l,onSubmit:u,relative:d,preventScrollReset:p,viewTransition:h,...y},g)=>{let b=ZB(),S=JB(l,{relative:d}),T=i.toLowerCase()==="get"?"get":"post",E=typeof l=="string"&&m5.test(l),A=C=>{if(u&&u(C),C.defaultPrevented)return;C.preventDefault();let D=C.nativeEvent.submitter,I=D?.getAttribute("formmethod")||i;b(D||C.currentTarget,{fetcherKey:t,method:I,navigate:n,replace:o,state:a,relative:d,preventScrollReset:p,viewTransition:h})};return _.createElement("form",{ref:g,method:T,action:S,onSubmit:r?u:A,...y,"data-discover":!E&&e==="render"?"true":void 0})});WB.displayName="Form";function YB(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function y5(e){let t=_.useContext(Fc);return Qt(t,YB(e)),t}function QB(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:a,viewTransition:i}={}){let l=u5(),u=jc(),d=Uh(e,{relative:a});return _.useCallback(p=>{if(_B(p,t)){p.preventDefault();let h=n!==void 0?n:bl(u)===bl(d);l(e,{replace:h,state:r,preventScrollReset:o,relative:a,viewTransition:i})}},[u,l,d,n,r,t,e,o,a,i])}var KB=0,XB=()=>`__${String(++KB)}__`;function ZB(){let{router:e}=y5("useSubmit"),{basename:t}=_.useContext(ki),n=dB();return _.useCallback(async(r,o={})=>{let{action:a,method:i,encType:l,formData:u,body:d}=wB(r,t);if(o.navigate===!1){let p=o.fetcherKey||XB();await e.fetch(p,n,o.action||a,{preventScrollReset:o.preventScrollReset,formData:u,body:d,formMethod:o.method||i,formEncType:o.encType||l,flushSync:o.flushSync})}else await e.navigate(o.action||a,{preventScrollReset:o.preventScrollReset,formData:u,body:d,formMethod:o.method||i,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function JB(e,{relative:t}={}){let{basename:n}=_.useContext(ki),r=_.useContext(Va);Qt(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),a={...Uh(e||".",{relative:t})},i=jc();if(e==null){a.search=i.search;let l=new URLSearchParams(a.search),u=l.getAll("index");if(u.some(p=>p==="")){l.delete("index"),u.filter(h=>h).forEach(h=>l.append("index",h));let p=l.toString();a.search=p?`?${p}`:""}}return(!e||e===".")&&o.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(a.pathname=a.pathname==="/"?n:vi([n,a.pathname])),bl(a)}function eU(e,{relative:t}={}){let n=_.useContext(UT);Qt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=y5("useViewTransitionState"),o=Uh(e,{relative:t});if(!n.isTransitioning)return!1;let a=ka(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=ka(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Uy(o.pathname,i)!=null||Uy(o.pathname,a)!=null}var zh=V3();const sl=G3(zh);function tU(e){return _.createElement(yB,{flushSync:zh.flushSync,...e})}const nU="modulepreload",rU=function(e){return"/"+e},hR={},W=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let i=function(d){return Promise.all(d.map(p=>Promise.resolve(p).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),u=l?.nonce||l?.getAttribute("nonce");o=i(n.map(d=>{if(d=rU(d),d in hR)return;hR[d]=!0;const p=d.endsWith(".css"),h=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${h}`))return;const y=document.createElement("link");if(y.rel=p?"stylesheet":nU,p||(y.as="script"),y.crossOrigin="",y.href=d,u&&y.setAttribute("nonce",u),document.head.appendChild(y),p)return new Promise((g,b)=>{y.addEventListener("load",g),y.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${d}`)))})}))}function a(i){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i}return o.then(i=>{for(const l of i||[])l.status==="rejected"&&a(l.reason);return t().catch(a)})},ih={black:"#000",white:"#fff"},_u={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Au={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},ku={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},wu={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Ru={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Yf={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},oU={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function _c(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const Ei="$$material";function $y(){return $y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$y.apply(null,arguments)}function aU(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function iU(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var sU=(function(){function e(n){var r=this;this._insertTag=function(o){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,a),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(iU(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=aU(o);try{a.insertRule(r,a.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e})(),Wr="-ms-",Gy="-moz-",gn="-webkit-",b5="comm",qT="rule",WT="decl",lU="@import",v5="@keyframes",cU="@layer",uU=Math.abs,$0=String.fromCharCode,dU=Object.assign;function fU(e,t){return $r(e,0)^45?(((t<<2^$r(e,0))<<2^$r(e,1))<<2^$r(e,2))<<2^$r(e,3):0}function E5(e){return e.trim()}function pU(e,t){return(e=t.exec(e))?e[0]:e}function yn(e,t,n){return e.replace(t,n)}function Jx(e,t){return e.indexOf(t)}function $r(e,t){return e.charCodeAt(t)|0}function sh(e,t,n){return e.slice(t,n)}function di(e){return e.length}function YT(e){return e.length}function Ig(e,t){return t.push(e),e}function hU(e,t){return e.map(t).join("")}var G0=1,cd=1,x5=0,Lo=0,xr=0,Ad="";function V0(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:G0,column:cd,length:i,return:""}}function Qf(e,t){return dU(V0("",null,null,"",null,null,0),e,{length:-e.length},t)}function mU(){return xr}function gU(){return xr=Lo>0?$r(Ad,--Lo):0,cd--,xr===10&&(cd=1,G0--),xr}function ea(){return xr=Lo<x5?$r(Ad,Lo++):0,cd++,xr===10&&(cd=1,G0++),xr}function xi(){return $r(Ad,Lo)}function dy(){return Lo}function Hh(e,t){return sh(Ad,e,t)}function lh(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function S5(e){return G0=cd=1,x5=di(Ad=e),Lo=0,[]}function T5(e){return Ad="",e}function fy(e){return E5(Hh(Lo-1,eS(e===91?e+2:e===40?e+1:e)))}function yU(e){for(;(xr=xi())&&xr<33;)ea();return lh(e)>2||lh(xr)>3?"":" "}function bU(e,t){for(;--t&&ea()&&!(xr<48||xr>102||xr>57&&xr<65||xr>70&&xr<97););return Hh(e,dy()+(t<6&&xi()==32&&ea()==32))}function eS(e){for(;ea();)switch(xr){case e:return Lo;case 34:case 39:e!==34&&e!==39&&eS(xr);break;case 40:e===41&&eS(e);break;case 92:ea();break}return Lo}function vU(e,t){for(;ea()&&e+xr!==57;)if(e+xr===84&&xi()===47)break;return"/*"+Hh(t,Lo-1)+"*"+$0(e===47?e:ea())}function EU(e){for(;!lh(xi());)ea();return Hh(e,Lo)}function xU(e){return T5(py("",null,null,null,[""],e=S5(e),0,[0],e))}function py(e,t,n,r,o,a,i,l,u){for(var d=0,p=0,h=i,y=0,g=0,b=0,S=1,T=1,E=1,A=0,C="",D=o,I=a,O=r,j=C;T;)switch(b=A,A=ea()){case 40:if(b!=108&&$r(j,h-1)==58){Jx(j+=yn(fy(A),"&","&\f"),"&\f")!=-1&&(E=-1);break}case 34:case 39:case 91:j+=fy(A);break;case 9:case 10:case 13:case 32:j+=yU(b);break;case 92:j+=bU(dy()-1,7);continue;case 47:switch(xi()){case 42:case 47:Ig(SU(vU(ea(),dy()),t,n),u);break;default:j+="/"}break;case 123*S:l[d++]=di(j)*E;case 125*S:case 59:case 0:switch(A){case 0:case 125:T=0;case 59+p:E==-1&&(j=yn(j,/\f/g,"")),g>0&&di(j)-h&&Ig(g>32?gR(j+";",r,n,h-1):gR(yn(j," ","")+";",r,n,h-2),u);break;case 59:j+=";";default:if(Ig(O=mR(j,t,n,d,p,o,l,C,D=[],I=[],h),a),A===123)if(p===0)py(j,t,O,O,D,a,h,l,I);else switch(y===99&&$r(j,3)===110?100:y){case 100:case 108:case 109:case 115:py(e,O,O,r&&Ig(mR(e,O,O,0,0,o,l,C,o,D=[],h),I),o,I,h,l,r?D:I);break;default:py(j,O,O,O,[""],I,0,l,I)}}d=p=g=0,S=E=1,C=j="",h=i;break;case 58:h=1+di(j),g=b;default:if(S<1){if(A==123)--S;else if(A==125&&S++==0&&gU()==125)continue}switch(j+=$0(A),A*S){case 38:E=p>0?1:(j+="\f",-1);break;case 44:l[d++]=(di(j)-1)*E,E=1;break;case 64:xi()===45&&(j+=fy(ea())),y=xi(),p=h=di(C=j+=EU(dy())),A++;break;case 45:b===45&&di(j)==2&&(S=0)}}return a}function mR(e,t,n,r,o,a,i,l,u,d,p){for(var h=o-1,y=o===0?a:[""],g=YT(y),b=0,S=0,T=0;b<r;++b)for(var E=0,A=sh(e,h+1,h=uU(S=i[b])),C=e;E<g;++E)(C=E5(S>0?y[E]+" "+A:yn(A,/&\f/g,y[E])))&&(u[T++]=C);return V0(e,t,n,o===0?qT:l,u,d,p)}function SU(e,t,n){return V0(e,t,n,b5,$0(mU()),sh(e,2,-2),0)}function gR(e,t,n,r){return V0(e,t,n,WT,sh(e,0,r),sh(e,r+1,-1),r)}function Xu(e,t){for(var n="",r=YT(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function TU(e,t,n,r){switch(e.type){case cU:if(e.children.length)break;case lU:case WT:return e.return=e.return||e.value;case b5:return"";case v5:return e.return=e.value+"{"+Xu(e.children,r)+"}";case qT:e.value=e.props.join(",")}return di(n=Xu(e.children,r))?e.return=e.value+"{"+n+"}":""}function CU(e){var t=YT(e);return function(n,r,o,a){for(var i="",l=0;l<t;l++)i+=e[l](n,r,o,a)||"";return i}}function _U(e){return function(t){t.root||(t=t.return)&&e(t)}}function C5(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var AU=function(t,n,r){for(var o=0,a=0;o=a,a=xi(),o===38&&a===12&&(n[r]=1),!lh(a);)ea();return Hh(t,Lo)},kU=function(t,n){var r=-1,o=44;do switch(lh(o)){case 0:o===38&&xi()===12&&(n[r]=1),t[r]+=AU(Lo-1,n,r);break;case 2:t[r]+=fy(o);break;case 4:if(o===44){t[++r]=xi()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=$0(o)}while(o=ea());return t},wU=function(t,n){return T5(kU(S5(t),n))},yR=new WeakMap,RU=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!yR.get(r))&&!o){yR.set(t,!0);for(var a=[],i=wU(n,a),l=r.props,u=0,d=0;u<i.length;u++)for(var p=0;p<l.length;p++,d++)t.props[d]=a[u]?i[u].replace(/&\f/g,l[p]):l[p]+" "+i[u]}}},DU=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function _5(e,t){switch(fU(e,t)){case 5103:return gn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return gn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return gn+e+Gy+e+Wr+e+e;case 6828:case 4268:return gn+e+Wr+e+e;case 6165:return gn+e+Wr+"flex-"+e+e;case 5187:return gn+e+yn(e,/(\w+).+(:[^]+)/,gn+"box-$1$2"+Wr+"flex-$1$2")+e;case 5443:return gn+e+Wr+"flex-item-"+yn(e,/flex-|-self/,"")+e;case 4675:return gn+e+Wr+"flex-line-pack"+yn(e,/align-content|flex-|-self/,"")+e;case 5548:return gn+e+Wr+yn(e,"shrink","negative")+e;case 5292:return gn+e+Wr+yn(e,"basis","preferred-size")+e;case 6060:return gn+"box-"+yn(e,"-grow","")+gn+e+Wr+yn(e,"grow","positive")+e;case 4554:return gn+yn(e,/([^-])(transform)/g,"$1"+gn+"$2")+e;case 6187:return yn(yn(yn(e,/(zoom-|grab)/,gn+"$1"),/(image-set)/,gn+"$1"),e,"")+e;case 5495:case 3959:return yn(e,/(image-set\([^]*)/,gn+"$1$`$1");case 4968:return yn(yn(e,/(.+:)(flex-)?(.*)/,gn+"box-pack:$3"+Wr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+gn+e+e;case 4095:case 3583:case 4068:case 2532:return yn(e,/(.+)-inline(.+)/,gn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(di(e)-1-t>6)switch($r(e,t+1)){case 109:if($r(e,t+4)!==45)break;case 102:return yn(e,/(.+:)(.+)-([^]+)/,"$1"+gn+"$2-$3$1"+Gy+($r(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Jx(e,"stretch")?_5(yn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if($r(e,t+1)!==115)break;case 6444:switch($r(e,di(e)-3-(~Jx(e,"!important")&&10))){case 107:return yn(e,":",":"+gn)+e;case 101:return yn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+gn+($r(e,14)===45?"inline-":"")+"box$3$1"+gn+"$2$3$1"+Wr+"$2box$3")+e}break;case 5936:switch($r(e,t+11)){case 114:return gn+e+Wr+yn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return gn+e+Wr+yn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return gn+e+Wr+yn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return gn+e+Wr+e+e}return e}var IU=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case WT:t.return=_5(t.value,t.length);break;case v5:return Xu([Qf(t,{value:yn(t.value,"@","@"+gn)})],o);case qT:if(t.length)return hU(t.props,function(a){switch(pU(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Xu([Qf(t,{props:[yn(a,/:(read-\w+)/,":"+Gy+"$1")]})],o);case"::placeholder":return Xu([Qf(t,{props:[yn(a,/:(plac\w+)/,":"+gn+"input-$1")]}),Qf(t,{props:[yn(a,/:(plac\w+)/,":"+Gy+"$1")]}),Qf(t,{props:[yn(a,/:(plac\w+)/,Wr+"input-$1")]})],o)}return""})}},OU=[IU],NU=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var T=S.getAttribute("data-emotion");T.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var o=t.stylisPlugins||OU,a={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var T=S.getAttribute("data-emotion").split(" "),E=1;E<T.length;E++)a[T[E]]=!0;l.push(S)});var u,d=[RU,DU];{var p,h=[TU,_U(function(S){p.insert(S)})],y=CU(d.concat(o,h)),g=function(T){return Xu(xU(T),y)};u=function(T,E,A,C){p=A,g(T?T+"{"+E.styles+"}":E.styles),C&&(b.inserted[E.name]=!0)}}var b={key:n,sheet:new sU({key:n,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:u};return b.sheet.hydrate(l),b},kE={exports:{}},bn={};/** @license React v16.13.1
|
|
63
|
-
* react-is.production.min.js
|
|
64
|
-
*
|
|
65
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
66
|
-
*
|
|
67
|
-
* This source code is licensed under the MIT license found in the
|
|
68
|
-
* LICENSE file in the root directory of this source tree.
|
|
69
|
-
*/var bR;function PU(){if(bR)return bn;bR=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,A=e?Symbol.for("react.scope"):60119;function C(I){if(typeof I=="object"&&I!==null){var O=I.$$typeof;switch(O){case t:switch(I=I.type,I){case u:case d:case r:case a:case o:case h:return I;default:switch(I=I&&I.$$typeof,I){case l:case p:case b:case g:case i:return I;default:return O}}case n:return O}}}function D(I){return C(I)===d}return bn.AsyncMode=u,bn.ConcurrentMode=d,bn.ContextConsumer=l,bn.ContextProvider=i,bn.Element=t,bn.ForwardRef=p,bn.Fragment=r,bn.Lazy=b,bn.Memo=g,bn.Portal=n,bn.Profiler=a,bn.StrictMode=o,bn.Suspense=h,bn.isAsyncMode=function(I){return D(I)||C(I)===u},bn.isConcurrentMode=D,bn.isContextConsumer=function(I){return C(I)===l},bn.isContextProvider=function(I){return C(I)===i},bn.isElement=function(I){return typeof I=="object"&&I!==null&&I.$$typeof===t},bn.isForwardRef=function(I){return C(I)===p},bn.isFragment=function(I){return C(I)===r},bn.isLazy=function(I){return C(I)===b},bn.isMemo=function(I){return C(I)===g},bn.isPortal=function(I){return C(I)===n},bn.isProfiler=function(I){return C(I)===a},bn.isStrictMode=function(I){return C(I)===o},bn.isSuspense=function(I){return C(I)===h},bn.isValidElementType=function(I){return typeof I=="string"||typeof I=="function"||I===r||I===d||I===a||I===o||I===h||I===y||typeof I=="object"&&I!==null&&(I.$$typeof===b||I.$$typeof===g||I.$$typeof===i||I.$$typeof===l||I.$$typeof===p||I.$$typeof===T||I.$$typeof===E||I.$$typeof===A||I.$$typeof===S)},bn.typeOf=C,bn}var vR;function LU(){return vR||(vR=1,kE.exports=PU()),kE.exports}var wE,ER;function MU(){if(ER)return wE;ER=1;var e=LU(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[e.ForwardRef]=r,a[e.Memo]=o;function i(b){return e.isMemo(b)?o:a[b.$$typeof]||t}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,y=Object.prototype;function g(b,S,T){if(typeof S!="string"){if(y){var E=h(S);E&&E!==y&&g(b,E,T)}var A=u(S);d&&(A=A.concat(d(S)));for(var C=i(b),D=i(S),I=0;I<A.length;++I){var O=A[I];if(!n[O]&&!(T&&T[O])&&!(D&&D[O])&&!(C&&C[O])){var j=p(S,O);try{l(b,O,j)}catch{}}}}return b}return wE=g,wE}MU();var FU=!0;function A5(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var QT=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||FU===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},KT=function(t,n,r){QT(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+o:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function jU(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var BU={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},UU=/[A-Z]|^ms/g,zU=/_EMO_([^_]+?)_([^]*?)_EMO_/g,k5=function(t){return t.charCodeAt(1)===45},xR=function(t){return t!=null&&typeof t!="boolean"},RE=C5(function(e){return k5(e)?e:e.replace(UU,"-$&").toLowerCase()}),SR=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(zU,function(r,o,a){return fi={name:o,styles:a,next:fi},o})}return BU[t]!==1&&!k5(t)&&typeof n=="number"&&n!==0?n+"px":n};function ch(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return fi={name:o.name,styles:o.styles,next:fi},o.name;var a=n;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)fi={name:i.name,styles:i.styles,next:fi},i=i.next;var l=a.styles+";";return l}return HU(e,t,n)}case"function":{if(e!==void 0){var u=fi,d=n(e);return fi=u,ch(e,t,d)}break}}var p=n;if(t==null)return p;var h=t[p];return h!==void 0?h:p}function HU(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ch(e,t,n[o])+";";else for(var a in n){var i=n[a];if(typeof i!="object"){var l=i;t!=null&&t[l]!==void 0?r+=a+"{"+t[l]+"}":xR(l)&&(r+=RE(a)+":"+SR(a,l)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var u=0;u<i.length;u++)xR(i[u])&&(r+=RE(a)+":"+SR(a,i[u])+";");else{var d=ch(e,t,i);switch(a){case"animation":case"animationName":{r+=RE(a)+":"+d+";";break}default:r+=a+"{"+d+"}"}}}return r}var TR=/label:\s*([^\s;{]+)\s*(;|$)/g,fi;function $h(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";fi=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,o+=ch(n,t,a);else{var i=a;o+=i[0]}for(var l=1;l<e.length;l++)if(o+=ch(n,t,e[l]),r){var u=a;o+=u[l]}TR.lastIndex=0;for(var d="",p;(p=TR.exec(o))!==null;)d+="-"+p[1];var h=jU(o)+d;return{name:h,styles:o,next:fi}}var $U=function(t){return t()},w5=By.useInsertionEffect?By.useInsertionEffect:!1,R5=w5||$U,CR=w5||_.useLayoutEffect,D5=_.createContext(typeof HTMLElement<"u"?NU({key:"css"}):null);D5.Provider;var XT=function(t){return _.forwardRef(function(n,r){var o=_.useContext(D5);return t(n,o,r)})},kd=_.createContext({}),ZT={}.hasOwnProperty,tS="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",GU=function(t,n){var r={};for(var o in n)ZT.call(n,o)&&(r[o]=n[o]);return r[tS]=t,r},VU=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return QT(n,r,o),R5(function(){return KT(n,r,o)}),null},qU=XT(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[tS],a=[r],i="";typeof e.className=="string"?i=A5(t.registered,a,e.className):e.className!=null&&(i=e.className+" ");var l=$h(a,void 0,_.useContext(kd));i+=t.key+"-"+l.name;var u={};for(var d in e)ZT.call(e,d)&&d!=="css"&&d!==tS&&(u[d]=e[d]);return u.className=i,n&&(u.ref=n),_.createElement(_.Fragment,null,_.createElement(VU,{cache:t,serialized:l,isStringTag:typeof o=="string"}),_.createElement(o,u))}),WU=qU,_R=function(t,n){var r=arguments;if(n==null||!ZT.call(n,"css"))return _.createElement.apply(void 0,r);var o=r.length,a=new Array(o);a[0]=WU,a[1]=GU(t,n);for(var i=2;i<o;i++)a[i]=r[i];return _.createElement.apply(null,a)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(_R||(_R={}));var YU=XT(function(e,t){var n=e.styles,r=$h([n],void 0,_.useContext(kd)),o=_.useRef();return CR(function(){var a=t.key+"-global",i=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,u=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),u!==null&&(l=!0,u.setAttribute("data-emotion",a),i.hydrate([u])),o.current=[i,l],function(){i.flush()}},[t]),CR(function(){var a=o.current,i=a[0],l=a[1];if(l){a[1]=!1;return}if(r.next!==void 0&&KT(t,r.next,!0),i.tags.length){var u=i.tags[i.tags.length-1].nextElementSibling;i.before=u,i.flush()}t.insert("",r,i,!1)},[t,r.name]),null});function Gh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $h(t)}function wi(){var e=Gh.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var QU=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,KU=C5(function(e){return QU.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),XU=KU,ZU=function(t){return t!=="theme"},AR=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?XU:ZU},kR=function(t,n,r){var o;if(n){var a=n.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},JU=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return QT(n,r,o),R5(function(){return KT(n,r,o)}),null},ez=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,a,i;n!==void 0&&(a=n.label,i=n.target);var l=kR(t,n,r),u=l||AR(o),d=!u("as");return function(){var p=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&h.push("label:"+a+";"),p[0]==null||p[0].raw===void 0)h.push.apply(h,p);else{var y=p[0];h.push(y[0]);for(var g=p.length,b=1;b<g;b++)h.push(p[b],y[b])}var S=XT(function(T,E,A){var C=d&&T.as||o,D="",I=[],O=T;if(T.theme==null){O={};for(var j in T)O[j]=T[j];O.theme=_.useContext(kd)}typeof T.className=="string"?D=A5(E.registered,I,T.className):T.className!=null&&(D=T.className+" ");var $=$h(h.concat(I),E.registered,O);D+=E.key+"-"+$.name,i!==void 0&&(D+=" "+i);var z=d&&l===void 0?AR(C):u,L={};for(var H in T)d&&H==="as"||z(H)&&(L[H]=T[H]);return L.className=D,A&&(L.ref=A),_.createElement(_.Fragment,null,_.createElement(JU,{cache:E,serialized:$,isStringTag:typeof C=="string"}),_.createElement(C,L))});return S.displayName=a!==void 0?a:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",S.defaultProps=t.defaultProps,S.__emotion_real=S,S.__emotion_base=o,S.__emotion_styles=h,S.__emotion_forwardProp=l,Object.defineProperty(S,"toString",{value:function(){return"."+i}}),S.withComponent=function(T,E){var A=e(T,$y({},n,E,{shouldForwardProp:kR(S,E,!0)}));return A.apply(void 0,h)},S}},tz=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Vy=ez.bind(null);tz.forEach(function(e){Vy[e]=Vy(e)});function nz(e){return e==null||Object.keys(e).length===0}function I5(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(nz(o)?n:o):t;return v.jsx(YU,{styles:r})}function O5(e,t){return Vy(e,t)}function rz(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const wR=[];function hl(e){return wR[0]=e,$h(wR)}var DE={exports:{}},Nn={};/**
|
|
70
|
-
* @license React
|
|
71
|
-
* react-is.production.js
|
|
72
|
-
*
|
|
73
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
74
|
-
*
|
|
75
|
-
* This source code is licensed under the MIT license found in the
|
|
76
|
-
* LICENSE file in the root directory of this source tree.
|
|
77
|
-
*/var RR;function oz(){if(RR)return Nn;RR=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");function b(S){if(typeof S=="object"&&S!==null){var T=S.$$typeof;switch(T){case e:switch(S=S.type,S){case n:case o:case r:case u:case d:case y:return S;default:switch(S=S&&S.$$typeof,S){case i:case l:case h:case p:return S;case a:return S;default:return T}}case t:return T}}}return Nn.ContextConsumer=a,Nn.ContextProvider=i,Nn.Element=e,Nn.ForwardRef=l,Nn.Fragment=n,Nn.Lazy=h,Nn.Memo=p,Nn.Portal=t,Nn.Profiler=o,Nn.StrictMode=r,Nn.Suspense=u,Nn.SuspenseList=d,Nn.isContextConsumer=function(S){return b(S)===a},Nn.isContextProvider=function(S){return b(S)===i},Nn.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},Nn.isForwardRef=function(S){return b(S)===l},Nn.isFragment=function(S){return b(S)===n},Nn.isLazy=function(S){return b(S)===h},Nn.isMemo=function(S){return b(S)===p},Nn.isPortal=function(S){return b(S)===t},Nn.isProfiler=function(S){return b(S)===o},Nn.isStrictMode=function(S){return b(S)===r},Nn.isSuspense=function(S){return b(S)===u},Nn.isSuspenseList=function(S){return b(S)===d},Nn.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===n||S===o||S===r||S===u||S===d||typeof S=="object"&&S!==null&&(S.$$typeof===h||S.$$typeof===p||S.$$typeof===i||S.$$typeof===a||S.$$typeof===l||S.$$typeof===g||S.getModuleId!==void 0)},Nn.typeOf=b,Nn}var DR;function az(){return DR||(DR=1,DE.exports=oz()),DE.exports}var N5=az();function mi(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function P5(e){if(_.isValidElement(e)||N5.isValidElementType(e)||!mi(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=P5(e[n])}),t}function mo(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return mi(e)&&mi(t)&&Object.keys(t).forEach(o=>{_.isValidElement(t[o])||N5.isValidElementType(t[o])?r[o]=t[o]:mi(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&mi(e[o])?r[o]=mo(e[o],t[o],n):n.clone?r[o]=mi(t[o])?P5(t[o]):t[o]:r[o]=t[o]}),r}const iz=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function sz(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,a=iz(t),i=Object.keys(a);function l(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n})`}function u(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-r/100}${n})`}function d(y,g){const b=i.indexOf(g);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n}) and (max-width:${(b!==-1&&typeof t[i[b]]=="number"?t[i[b]]:g)-r/100}${n})`}function p(y){return i.indexOf(y)+1<i.length?d(y,i[i.indexOf(y)+1]):l(y)}function h(y){const g=i.indexOf(y);return g===0?l(i[1]):g===i.length-1?u(i[g]):d(y,i[i.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:i,values:a,up:l,down:u,between:d,only:p,not:h,unit:n,...o}}function IR(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{const a=/min-width:\s*([0-9.]+)/;return+(r.match(a)?.[1]||0)-+(o.match(a)?.[1]||0)});return n.length?n.reduce((r,o)=>{const a=t[o];return delete r[o],r[o]=a,r},{...t}):t}function lz(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function cz(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(a)}function uz(e){const t=(a,i)=>a.replace("@media",i?`@container ${i}`:"@container");function n(a,i){a.up=(...l)=>t(e.breakpoints.up(...l),i),a.down=(...l)=>t(e.breakpoints.down(...l),i),a.between=(...l)=>t(e.breakpoints.between(...l),i),a.only=(...l)=>t(e.breakpoints.only(...l),i),a.not=(...l)=>{const u=t(e.breakpoints.not(...l),i);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const r={},o=a=>(n(r,a),r);return n(o),{...e,containerQueries:o}}const dz={borderRadius:4};function Op(e,t){return t?mo(e,t,{clone:!1}):e}const q0={xs:0,sm:600,md:900,lg:1200,xl:1536},OR={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${q0[e]}px)`},fz={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:q0[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Ha(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||OR;return t.reduce((i,l,u)=>(i[a.up(a.keys[u])]=n(t[u]),i),{})}if(typeof t=="object"){const a=r.breakpoints||OR;return Object.keys(t).reduce((i,l)=>{if(lz(a.keys,l)){const u=cz(r.containerQueries?r:fz,l);u&&(i[u]=n(t[l],l))}else if(Object.keys(a.values||q0).includes(l)){const u=a.up(l);i[u]=n(t[l],l)}else{const u=l;i[u]=t[u]}return i},{})}return n(t)}function L5(e={}){return e.keys?.reduce((n,r)=>{const o=e.up(r);return n[o]={},n},{})||{}}function nS(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function pz(e,...t){const n=L5(e),r=[n,...t].reduce((o,a)=>mo(o,a),{});return nS(Object.keys(n),r)}function hz(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,a)=>{a<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function IE({values:e,breakpoints:t,base:n}){const r=n||hz(e,t),o=Object.keys(r);if(o.length===0)return e;let a;return o.reduce((i,l,u)=>(Array.isArray(e)?(i[l]=e[u]!=null?e[u]:e[a],a=u):typeof e=="object"?(i[l]=e[l]!=null?e[l]:e[a],a=l):i[l]=e,i),{})}function Ve(e){if(typeof e!="string")throw new Error(_c(7));return e.charAt(0).toUpperCase()+e.slice(1)}function W0(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function qy(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=W0(e,n)||r,t&&(o=t(o,r,e)),o}function hr(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=i=>{if(i[t]==null)return null;const l=i[t],u=i.theme,d=W0(u,r)||{};return Ha(i,l,h=>{let y=qy(d,o,h);return h===y&&typeof h=="string"&&(y=qy(d,o,`${t}${h==="default"?"":Ve(h)}`,h)),n===!1?y:{[n]:y}})};return a.propTypes={},a.filterProps=[t],a}function mz(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const gz={m:"margin",p:"padding"},yz={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},NR={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},bz=mz(e=>{if(e.length>2)if(NR[e])e=NR[e];else return[e];const[t,n]=e.split(""),r=gz[t],o=yz[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),JT=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],eC=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...JT,...eC];function Vh(e,t,n,r){const o=W0(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:typeof o=="string"?o.startsWith("var(")&&a===0?0:o.startsWith("var(")&&a===1?o:`calc(${a} * ${o})`:o*a:Array.isArray(o)?a=>{if(typeof a=="string")return a;const i=Math.abs(a),l=o[i];return a>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof o=="function"?o:()=>{}}function Y0(e){return Vh(e,"spacing",8)}function Ac(e,t){return typeof t=="string"||t==null?t:e(t)}function vz(e,t){return n=>e.reduce((r,o)=>(r[o]=Ac(t,n),r),{})}function Ez(e,t,n,r){if(!t.includes(n))return null;const o=bz(n),a=vz(o,r),i=e[n];return Ha(e,i,a)}function M5(e,t){const n=Y0(e.theme);return Object.keys(e).map(r=>Ez(e,t,r,n)).reduce(Op,{})}function ar(e){return M5(e,JT)}ar.propTypes={};ar.filterProps=JT;function ir(e){return M5(e,eC)}ir.propTypes={};ir.filterProps=eC;function tC(e=8,t=Y0({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return n.mui=!0,n}function Q0(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),n=r=>Object.keys(r).reduce((o,a)=>t[a]?Op(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function va(e){return typeof e!="number"?e:`${e}px solid`}function Da(e,t){return hr({prop:e,themeKey:"borders",transform:t})}const xz=Da("border",va),Sz=Da("borderTop",va),Tz=Da("borderRight",va),Cz=Da("borderBottom",va),_z=Da("borderLeft",va),Az=Da("borderColor"),kz=Da("borderTopColor"),wz=Da("borderRightColor"),Rz=Da("borderBottomColor"),Dz=Da("borderLeftColor"),Iz=Da("outline",va),Oz=Da("outlineColor"),K0=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Vh(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Ac(t,r)});return Ha(e,e.borderRadius,n)}return null};K0.propTypes={};K0.filterProps=["borderRadius"];Q0(xz,Sz,Tz,Cz,_z,Az,kz,wz,Rz,Dz,K0,Iz,Oz);const X0=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Vh(e.theme,"spacing",8),n=r=>({gap:Ac(t,r)});return Ha(e,e.gap,n)}return null};X0.propTypes={};X0.filterProps=["gap"];const Z0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Vh(e.theme,"spacing",8),n=r=>({columnGap:Ac(t,r)});return Ha(e,e.columnGap,n)}return null};Z0.propTypes={};Z0.filterProps=["columnGap"];const J0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Vh(e.theme,"spacing",8),n=r=>({rowGap:Ac(t,r)});return Ha(e,e.rowGap,n)}return null};J0.propTypes={};J0.filterProps=["rowGap"];const Nz=hr({prop:"gridColumn"}),Pz=hr({prop:"gridRow"}),Lz=hr({prop:"gridAutoFlow"}),Mz=hr({prop:"gridAutoColumns"}),Fz=hr({prop:"gridAutoRows"}),jz=hr({prop:"gridTemplateColumns"}),Bz=hr({prop:"gridTemplateRows"}),Uz=hr({prop:"gridTemplateAreas"}),zz=hr({prop:"gridArea"});Q0(X0,Z0,J0,Nz,Pz,Lz,Mz,Fz,jz,Bz,Uz,zz);function Zu(e,t){return t==="grey"?t:e}const Hz=hr({prop:"color",themeKey:"palette",transform:Zu}),$z=hr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Zu}),Gz=hr({prop:"backgroundColor",themeKey:"palette",transform:Zu});Q0(Hz,$z,Gz);function Ko(e){return e<=1&&e!==0?`${e*100}%`:e}const Vz=hr({prop:"width",transform:Ko}),nC=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||q0[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Ko(n)}};return Ha(e,e.maxWidth,t)}return null};nC.filterProps=["maxWidth"];const qz=hr({prop:"minWidth",transform:Ko}),Wz=hr({prop:"height",transform:Ko}),Yz=hr({prop:"maxHeight",transform:Ko}),Qz=hr({prop:"minHeight",transform:Ko});hr({prop:"size",cssProperty:"width",transform:Ko});hr({prop:"size",cssProperty:"height",transform:Ko});const Kz=hr({prop:"boxSizing"});Q0(Vz,nC,qz,Wz,Yz,Qz,Kz);const qh={border:{themeKey:"borders",transform:va},borderTop:{themeKey:"borders",transform:va},borderRight:{themeKey:"borders",transform:va},borderBottom:{themeKey:"borders",transform:va},borderLeft:{themeKey:"borders",transform:va},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:va},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:K0},color:{themeKey:"palette",transform:Zu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Zu},backgroundColor:{themeKey:"palette",transform:Zu},p:{style:ir},pt:{style:ir},pr:{style:ir},pb:{style:ir},pl:{style:ir},px:{style:ir},py:{style:ir},padding:{style:ir},paddingTop:{style:ir},paddingRight:{style:ir},paddingBottom:{style:ir},paddingLeft:{style:ir},paddingX:{style:ir},paddingY:{style:ir},paddingInline:{style:ir},paddingInlineStart:{style:ir},paddingInlineEnd:{style:ir},paddingBlock:{style:ir},paddingBlockStart:{style:ir},paddingBlockEnd:{style:ir},m:{style:ar},mt:{style:ar},mr:{style:ar},mb:{style:ar},ml:{style:ar},mx:{style:ar},my:{style:ar},margin:{style:ar},marginTop:{style:ar},marginRight:{style:ar},marginBottom:{style:ar},marginLeft:{style:ar},marginX:{style:ar},marginY:{style:ar},marginInline:{style:ar},marginInlineStart:{style:ar},marginInlineEnd:{style:ar},marginBlock:{style:ar},marginBlockStart:{style:ar},marginBlockEnd:{style:ar},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:X0},rowGap:{style:J0},columnGap:{style:Z0},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ko},maxWidth:{style:nC},minWidth:{transform:Ko},height:{transform:Ko},maxHeight:{transform:Ko},minHeight:{transform:Ko},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Xz(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Zz(e,t){return typeof e=="function"?e(t):e}function Jz(){function e(n,r,o,a){const i={[n]:r,theme:o},l=a[n];if(!l)return{[n]:r};const{cssProperty:u=n,themeKey:d,transform:p,style:h}=l;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const y=W0(o,d)||{};return h?h(i):Ha(i,r,b=>{let S=qy(y,p,b);return b===S&&typeof b=="string"&&(S=qy(y,p,`${n}${b==="default"?"":Ve(b)}`,b)),u===!1?S:{[u]:S}})}function t(n){const{sx:r,theme:o={},nested:a}=n||{};if(!r)return null;const i=o.unstable_sxConfig??qh;function l(u){let d=u;if(typeof u=="function")d=u(o);else if(typeof u!="object")return u;if(!d)return null;const p=L5(o.breakpoints),h=Object.keys(p);let y=p;return Object.keys(d).forEach(g=>{const b=Zz(d[g],o);if(b!=null)if(typeof b=="object")if(i[g])y=Op(y,e(g,b,o,i));else{const S=Ha({theme:o},b,T=>({[g]:T}));Xz(S,b)?y[g]=t({sx:b,theme:o,nested:!0}):y=Op(y,S)}else y=Op(y,e(g,b,o,i))}),!a&&o.modularCssLayers?{"@layer sx":IR(o,nS(h,y))}:IR(o,nS(h,y))}return Array.isArray(r)?r.map(l):l(r)}return t}const vl=Jz();vl.filterProps=["sx"];function eH(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function wd(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={},...i}=e,l=sz(n),u=tC(o);let d=mo({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:u,shape:{...dz,...a}},i);return d=uz(d),d.applyStyles=eH,d=t.reduce((p,h)=>mo(p,h),d),d.unstable_sxConfig={...qh,...i?.unstable_sxConfig},d.unstable_sx=function(h){return vl({sx:h,theme:this})},d}function tH(e){return Object.keys(e).length===0}function rC(e=null){const t=_.useContext(kd);return!t||tH(t)?e:t}const nH=wd();function Rd(e=nH){return rC(e)}function OE(e){const t=hl(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function oC({styles:e,themeId:t,defaultTheme:n={}}){const r=Rd(n),o=t&&r[t]||r;let a=typeof e=="function"?e(o):e;return o.modularCssLayers&&(Array.isArray(a)?a=a.map(i=>OE(typeof i=="function"?i(o):i)):a=OE(a)),v.jsx(I5,{styles:a})}const rH=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??qh;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function eb(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=rH(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...i)=>{const l=t(...i);return mi(l)?{...r,...l}:r}:a={...r,...t},{...o,sx:a}}const PR=e=>e,oH=()=>{let e=PR;return{configure(t){e=t},generate(t){return e(t)},reset(){e=PR}}},aC=oH();function F5(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=F5(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Je(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=F5(e))&&(r&&(r+=" "),r+=t);return r}function j5(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,a=O5("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(vl);return _.forwardRef(function(u,d){const p=Rd(n),{className:h,component:y="div",...g}=eb(u);return v.jsx(a,{as:y,ref:d,className:Je(h,o?o(r):r),theme:t&&p[t]||p,...g})})}const aH={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function kt(e,t,n="Mui"){const r=aH[t];return r?`${n}-${r}`:`${aC.generate(e)}-${t}`}function Dt(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=kt(e,o,n)}),r}const iH=Dt("MuiBox",["root"]),sH=j5({defaultClassName:iH.root,generateClassName:aC.generate});function B5(e){const{variants:t,...n}=e,r={variants:t,style:hl(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=hl(o.style))}),r}const lH=wd();function hy(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function uc(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function cH(e){return e?(t,n)=>n[e]:null}function uH(e,t,n){e.theme=fH(e.theme)?n:e.theme[t]||e.theme}function my(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>my(e,o,n));if(Array.isArray(r?.variants)){let o;if(r.isProcessed)o=n?uc(r.style,n):r.style;else{const{variants:a,...i}=r;o=n?uc(hl(i),n):i}return U5(e,r.variants,[o],n)}return r?.isProcessed?n?uc(hl(r.style),n):r.style:n?uc(hl(r),n):r}function U5(e,t,n=[],r=void 0){let o;e:for(let a=0;a<t.length;a+=1){const i=t[a];if(typeof i.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!i.props(o))continue}else for(const l in i.props)if(e[l]!==i.props[l]&&e.ownerState?.[l]!==i.props[l])continue e;typeof i.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?uc(hl(i.style(o)),r):i.style(o))):n.push(r?uc(hl(i.style),r):i.style)}return n}function z5(e={}){const{themeId:t,defaultTheme:n=lH,rootShouldForwardProp:r=hy,slotShouldForwardProp:o=hy}=e;function a(l){uH(l,t,n)}return(l,u={})=>{rz(l,O=>O.filter(j=>j!==vl));const{name:d,slot:p,skipVariantsResolver:h,skipSx:y,overridesResolver:g=cH(hH(p)),...b}=u,S=d&&d.startsWith("Mui")||p?"components":"custom",T=h!==void 0?h:p&&p!=="Root"&&p!=="root"||!1,E=y||!1;let A=hy;p==="Root"||p==="root"?A=r:p?A=o:pH(l)&&(A=void 0);const C=O5(l,{shouldForwardProp:A,label:dH(),...b}),D=O=>{if(O.__emotion_real===O)return O;if(typeof O=="function")return function($){return my($,O,$.theme.modularCssLayers?S:void 0)};if(mi(O)){const j=B5(O);return function(z){return j.variants?my(z,j,z.theme.modularCssLayers?S:void 0):z.theme.modularCssLayers?uc(j.style,S):j.style}}return O},I=(...O)=>{const j=[],$=O.map(D),z=[];if(j.push(a),d&&g&&z.push(function(F){const G=F.theme.components?.[d]?.styleOverrides;if(!G)return null;const U={};for(const Q in G)U[Q]=my(F,G[Q],F.theme.modularCssLayers?"theme":void 0);return g(F,U)}),d&&!T&&z.push(function(F){const G=F.theme?.components?.[d]?.variants;return G?U5(F,G,[],F.theme.modularCssLayers?"theme":void 0):null}),E||z.push(vl),Array.isArray($[0])){const k=$.shift(),F=new Array(j.length).fill(""),B=new Array(z.length).fill("");let G;G=[...F,...k,...B],G.raw=[...F,...k.raw,...B],j.unshift(G)}const L=[...j,...$,...z],H=C(...L);return l.muiName&&(H.muiName=l.muiName),H};return C.withConfig&&(I.withConfig=C.withConfig),I}}function dH(e,t){return void 0}function fH(e){for(const t in e)return!1;return!0}function pH(e){return typeof e=="string"&&e.charCodeAt(0)>96}function hH(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const iC=z5();function uh(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const a=o;if(a==="components"||a==="slots")r[a]={...e[a],...r[a]};else if(a==="componentsProps"||a==="slotProps"){const i=e[a],l=t[a];if(!l)r[a]=i||{};else if(!i)r[a]=l;else{r[a]={...l};for(const u in i)if(Object.prototype.hasOwnProperty.call(i,u)){const d=u;r[a][d]=uh(i[d],l[d],n)}}}else a==="className"&&n&&t.className?r.className=Je(e?.className,t?.className):a==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[a]===void 0&&(r[a]=e[a])}return r}function mH(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:uh(t.components[n].defaultProps,r)}function sC({props:e,name:t,defaultTheme:n,themeId:r}){let o=Rd(n);return r&&(o=o[r]||o),mH({theme:o,name:t,props:e})}const Ci=typeof window<"u"?_.useLayoutEffect:_.useEffect;function gH(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function lC(e,t=0,n=1){return gH(e,t,n)}function yH(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function El(e){if(e.type)return e;if(e.charAt(0)==="#")return El(yH(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(_c(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(_c(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}const bH=e=>{const t=El(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Sp=(e,t)=>{try{return bH(e)}catch{return e}};function tb(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,a)=>a<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function H5(e){e=El(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=(d,p=(d+n/30)%12)=>o-a*Math.max(Math.min(p-3,9-p,1),-1);let l="rgb";const u=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(l+="a",u.push(t[3])),tb({type:l,values:u})}function rS(e){e=El(e);let t=e.type==="hsl"||e.type==="hsla"?El(H5(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function vH(e,t){const n=rS(e),r=rS(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Zo(e,t){return e=El(e),t=lC(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,tb(e)}function Kl(e,t,n){try{return Zo(e,t)}catch{return e}}function nb(e,t){if(e=El(e),t=lC(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return tb(e)}function Tn(e,t,n){try{return nb(e,t)}catch{return e}}function rb(e,t){if(e=El(e),t=lC(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return tb(e)}function Cn(e,t,n){try{return rb(e,t)}catch{return e}}function oS(e,t=.15){return rS(e)>.5?nb(e,t):rb(e,t)}function Og(e,t,n){try{return oS(e,t)}catch{return e}}const $5=_.createContext(null);function cC(){return _.useContext($5)}const EH=typeof Symbol=="function"&&Symbol.for,xH=EH?Symbol.for("mui.nested"):"__THEME_NESTED__";function SH(e,t){return typeof t=="function"?t(e):{...e,...t}}function TH(e){const{children:t,theme:n}=e,r=cC(),o=_.useMemo(()=>{const a=r===null?{...n}:SH(r,n);return a!=null&&(a[xH]=r!==null),a},[n,r]);return v.jsx($5.Provider,{value:o,children:t})}const G5=_.createContext();function CH({value:e,...t}){return v.jsx(G5.Provider,{value:e??!0,...t})}const uC=()=>_.useContext(G5)??!1,V5=_.createContext(void 0);function _H({value:e,children:t}){return v.jsx(V5.Provider,{value:e,children:t})}function AH(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?uh(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?uh(o,r,t.components.mergeClassNameAndStyle):r}function kH({props:e,name:t}){const n=_.useContext(V5);return AH({props:e,name:t,theme:{components:n}})}let LR=0;function wH(e){const[t,n]=_.useState(e),r=e||t;return _.useEffect(()=>{t==null&&(LR+=1,n(`mui-${LR}`))},[t]),r}const RH={...By},MR=RH.useId;function Wh(e){if(MR!==void 0){const t=MR();return e??t}return wH(e)}function DH(e){const t=rC(),n=Wh()||"",{modularCssLayers:r}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!r||t!==null?o="":typeof r=="string"?o=r.replace(/mui(?!\.)/g,o):o=`@layer ${o};`,Ci(()=>{const a=document.querySelector("head");if(!a)return;const i=a.firstChild;if(o){if(i&&i.hasAttribute?.("data-mui-layer-order")&&i.getAttribute("data-mui-layer-order")===n)return;const l=document.createElement("style");l.setAttribute("data-mui-layer-order",n),l.textContent=o,a.prepend(l)}else a.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove()},[o,n]),o?v.jsx(oC,{styles:o}):null}const FR={};function jR(e,t,n,r=!1){return _.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const a=n(o),i=e?{...t,[e]:a}:a;return r?()=>i:i}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function q5(e){const{children:t,theme:n,themeId:r}=e,o=rC(FR),a=cC()||FR,i=jR(r,o,n),l=jR(r,a,n,!0),u=(r?i[r]:i).direction==="rtl",d=DH(i);return v.jsx(TH,{theme:l,children:v.jsx(kd.Provider,{value:i,children:v.jsx(CH,{value:u,children:v.jsxs(_H,{value:r?i[r].components:i.components,children:[d,t]})})})})}const BR={theme:void 0};function W5(e){let t,n;return function(o){let a=t;return(a===void 0||o.theme!==n)&&(BR.theme=o.theme,a=B5(e(BR)),t=a,n=o.theme),a}}const dC="mode",fC="color-scheme",IH="data-color-scheme";function OH(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=dC,colorSchemeStorageKey:a=fC,attribute:i=IH,colorSchemeNode:l="document.documentElement",nonce:u}=e||{};let d="",p=i;if(i==="class"&&(p=".%s"),i==="data"&&(p="[data-%s]"),p.startsWith(".")){const y=p.substring(1);d+=`${l}.classList.remove('${y}'.replace('%s', light), '${y}'.replace('%s', dark));
|
|
78
|
-
${l}.classList.add('${y}'.replace('%s', colorScheme));`}const h=p.match(/\[([^[\]]+)\]/);if(h){const[y,g]=h[1].split("=");g||(d+=`${l}.removeAttribute('${y}'.replace('%s', light));
|
|
79
|
-
${l}.removeAttribute('${y}'.replace('%s', dark));`),d+=`
|
|
80
|
-
${l}.setAttribute('${y}'.replace('%s', colorScheme), ${g?`${g}.replace('%s', colorScheme)`:'""'});`}else d+=`${l}.setAttribute('${p}', colorScheme);`;return v.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?u:"",dangerouslySetInnerHTML:{__html:`(function() {
|
|
81
|
-
try {
|
|
82
|
-
let colorScheme = '';
|
|
83
|
-
const mode = localStorage.getItem('${o}') || '${t}';
|
|
84
|
-
const dark = localStorage.getItem('${a}-dark') || '${r}';
|
|
85
|
-
const light = localStorage.getItem('${a}-light') || '${n}';
|
|
86
|
-
if (mode === 'system') {
|
|
87
|
-
// handle system mode
|
|
88
|
-
const mql = window.matchMedia('(prefers-color-scheme: dark)');
|
|
89
|
-
if (mql.matches) {
|
|
90
|
-
colorScheme = dark
|
|
91
|
-
} else {
|
|
92
|
-
colorScheme = light
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
if (mode === 'light') {
|
|
96
|
-
colorScheme = light;
|
|
97
|
-
}
|
|
98
|
-
if (mode === 'dark') {
|
|
99
|
-
colorScheme = dark;
|
|
100
|
-
}
|
|
101
|
-
if (colorScheme) {
|
|
102
|
-
${d}
|
|
103
|
-
}
|
|
104
|
-
} catch(e){}})();`}},"mui-color-scheme-init")}function NH(){}const PH=({key:e,storageWindow:t})=>(!t&&typeof window<"u"&&(t=window),{get(n){if(typeof window>"u")return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return NH;const r=o=>{const a=o.newValue;o.key===e&&n(a)};return t.addEventListener("storage",r),()=>{t.removeEventListener("storage",r)}}});function NE(){}function UR(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Y5(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function LH(e){return Y5(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function MH(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:a=dC,colorSchemeStorageKey:i=fC,storageWindow:l=typeof window>"u"?void 0:window,storageManager:u=PH,noSsr:d=!1}=e,p=o.join(","),h=o.length>1,y=_.useMemo(()=>u?.({key:a,storageWindow:l}),[u,a,l]),g=_.useMemo(()=>u?.({key:`${i}-light`,storageWindow:l}),[u,i,l]),b=_.useMemo(()=>u?.({key:`${i}-dark`,storageWindow:l}),[u,i,l]),[S,T]=_.useState(()=>{const $=y?.get(t)||t,z=g?.get(n)||n,L=b?.get(r)||r;return{mode:$,systemMode:UR($),lightColorScheme:z,darkColorScheme:L}}),[E,A]=_.useState(d||!h);_.useEffect(()=>{A(!0)},[]);const C=LH(S),D=_.useCallback($=>{T(z=>{if($===z.mode)return z;const L=$??t;return y?.set(L),{...z,mode:L,systemMode:UR(L)}})},[y,t]),I=_.useCallback($=>{$?typeof $=="string"?$&&!p.includes($)?console.error(`\`${$}\` does not exist in \`theme.colorSchemes\`.`):T(z=>{const L={...z};return Y5(z,H=>{H==="light"&&(g?.set($),L.lightColorScheme=$),H==="dark"&&(b?.set($),L.darkColorScheme=$)}),L}):T(z=>{const L={...z},H=$.light===null?n:$.light,k=$.dark===null?r:$.dark;return H&&(p.includes(H)?(L.lightColorScheme=H,g?.set(H)):console.error(`\`${H}\` does not exist in \`theme.colorSchemes\`.`)),k&&(p.includes(k)?(L.darkColorScheme=k,b?.set(k)):console.error(`\`${k}\` does not exist in \`theme.colorSchemes\`.`)),L}):T(z=>(g?.set(n),b?.set(r),{...z,lightColorScheme:n,darkColorScheme:r}))},[p,g,b,n,r]),O=_.useCallback($=>{S.mode==="system"&&T(z=>{const L=$?.matches?"dark":"light";return z.systemMode===L?z:{...z,systemMode:L}})},[S.mode]),j=_.useRef(O);return j.current=O,_.useEffect(()=>{if(typeof window.matchMedia!="function"||!h)return;const $=(...L)=>j.current(...L),z=window.matchMedia("(prefers-color-scheme: dark)");return z.addListener($),$(z),()=>{z.removeListener($)}},[h]),_.useEffect(()=>{if(h){const $=y?.subscribe(H=>{(!H||["light","dark","system"].includes(H))&&D(H||t)})||NE,z=g?.subscribe(H=>{(!H||p.match(H))&&I({light:H})})||NE,L=b?.subscribe(H=>{(!H||p.match(H))&&I({dark:H})})||NE;return()=>{$(),z(),L()}}},[I,D,p,t,l,h,y,g,b]),{...S,mode:E?S.mode:void 0,systemMode:E?S.systemMode:void 0,colorScheme:E?C:void 0,setMode:D,setColorScheme:I}}const FH="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function jH(e){const{themeId:t,theme:n={},modeStorageKey:r=dC,colorSchemeStorageKey:o=fC,disableTransitionOnChange:a=!1,defaultColorScheme:i,resolveTheme:l}=e,u={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},d=_.createContext(void 0),p=()=>_.useContext(d)||u,h={},y={};function g(E){const{children:A,theme:C,modeStorageKey:D=r,colorSchemeStorageKey:I=o,disableTransitionOnChange:O=a,storageManager:j,storageWindow:$=typeof window>"u"?void 0:window,documentNode:z=typeof document>"u"?void 0:document,colorSchemeNode:L=typeof document>"u"?void 0:document.documentElement,disableNestedContext:H=!1,disableStyleSheetGeneration:k=!1,defaultMode:F="system",forceThemeRerender:B=!1,noSsr:G}=E,U=_.useRef(!1),Q=cC(),Y=_.useContext(d),oe=!!Y&&!H,N=_.useMemo(()=>C||(typeof n=="function"?n():n),[C]),K=N[t],X=K||N,{colorSchemes:P=h,components:J=y,cssVarPrefix:se}=X,ne=Object.keys(P).filter(de=>!!P[de]).join(","),be=_.useMemo(()=>ne.split(","),[ne]),fe=typeof i=="string"?i:i.light,De=typeof i=="string"?i:i.dark,Ce=P[fe]&&P[De]?F:P[X.defaultColorScheme]?.palette?.mode||X.palette?.mode,{mode:Se,setMode:ze,systemMode:Ne,lightColorScheme:_e,darkColorScheme:Ct,colorScheme:At,setColorScheme:qe}=MH({supportedColorSchemes:be,defaultLightColorScheme:fe,defaultDarkColorScheme:De,modeStorageKey:D,colorSchemeStorageKey:I,defaultMode:Ce,storageManager:j,storageWindow:$,noSsr:G});let Rt=Se,ot=At;oe&&(Rt=Y.mode,ot=Y.colorScheme);let tt=ot||X.defaultColorScheme;X.vars&&!B&&(tt=X.defaultColorScheme);const je=_.useMemo(()=>{const de=X.generateThemeVars?.()||X.vars,ye={...X,components:J,colorSchemes:P,cssVarPrefix:se,vars:de};if(typeof ye.generateSpacing=="function"&&(ye.spacing=ye.generateSpacing()),tt){const We=P[tt];We&&typeof We=="object"&&Object.keys(We).forEach(Ke=>{We[Ke]&&typeof We[Ke]=="object"?ye[Ke]={...ye[Ke],...We[Ke]}:ye[Ke]=We[Ke]})}return l?l(ye):ye},[X,tt,J,P,se]),Be=X.colorSchemeSelector;Ci(()=>{if(ot&&L&&Be&&Be!=="media"){const de=Be;let ye=Be;if(de==="class"&&(ye=".%s"),de==="data"&&(ye="[data-%s]"),de?.startsWith("data-")&&!de.includes("%s")&&(ye=`[${de}="%s"]`),ye.startsWith("."))L.classList.remove(...be.map(We=>ye.substring(1).replace("%s",We))),L.classList.add(ye.substring(1).replace("%s",ot));else{const We=ye.replace("%s",ot).match(/\[([^\]]+)\]/);if(We){const[Ke,et]=We[1].split("=");et||be.forEach(St=>{L.removeAttribute(Ke.replace(ot,St))}),L.setAttribute(Ke,et?et.replace(/"|'/g,""):"")}else L.setAttribute(ye,ot)}}},[ot,Be,L,be]),_.useEffect(()=>{let de;if(O&&U.current&&z){const ye=z.createElement("style");ye.appendChild(z.createTextNode(FH)),z.head.appendChild(ye),window.getComputedStyle(z.body),de=setTimeout(()=>{z.head.removeChild(ye)},1)}return()=>{clearTimeout(de)}},[ot,O,z]),_.useEffect(()=>(U.current=!0,()=>{U.current=!1}),[]);const Ut=_.useMemo(()=>({allColorSchemes:be,colorScheme:ot,darkColorScheme:Ct,lightColorScheme:_e,mode:Rt,setColorScheme:qe,setMode:ze,systemMode:Ne}),[be,ot,Ct,_e,Rt,qe,ze,Ne,je.colorSchemeSelector]);let Bn=!0;(k||X.cssVariables===!1||oe&&Q?.cssVarPrefix===se)&&(Bn=!1);const Ot=v.jsxs(_.Fragment,{children:[v.jsx(q5,{themeId:K?t:void 0,theme:je,children:A}),Bn&&v.jsx(I5,{styles:je.generateStyleSheets?.()||[]})]});return oe?Ot:v.jsx(d.Provider,{value:Ut,children:Ot})}const b=typeof i=="string"?i:i.light,S=typeof i=="string"?i:i.dark;return{CssVarsProvider:g,useColorScheme:p,getInitColorSchemeScript:E=>OH({colorSchemeStorageKey:o,defaultLightColorScheme:b,defaultDarkColorScheme:S,modeStorageKey:r,...E})}}function Q5(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const zR=(e,t,n,r=[])=>{let o=e;t.forEach((a,i)=>{i===t.length-1?Array.isArray(o)?o[Number(a)]=n:o&&typeof o=="object"&&(o[a]=n):o&&typeof o=="object"&&(o[a]||(o[a]=r.includes(a)?[]:{}),o=o[a])})},BH=(e,t,n)=>{function r(o,a=[],i=[]){Object.entries(o).forEach(([l,u])=>{(!n||n&&!n([...a,l]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?r(u,[...a,l],Array.isArray(u)?[...i,l]:i):t([...a,l],u,i))})}r(e)},UH=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function PE(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},i={};return BH(e,(l,u,d)=>{if((typeof u=="string"||typeof u=="number")&&(!r||!r(l,u))){const p=`--${n?`${n}-`:""}${l.join("-")}`,h=UH(l,u);Object.assign(o,{[p]:h}),zR(a,l,`var(${p})`,d),zR(i,l,`var(${p}, ${h})`,d)}},l=>l[0]==="vars"),{css:o,vars:a,varsWithDefaults:i}}function zH(e,t={}){const{getSelector:n=E,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:a}=t,{colorSchemes:i={},components:l,defaultColorScheme:u="light",...d}=e,{vars:p,css:h,varsWithDefaults:y}=PE(d,t);let g=y;const b={},{[u]:S,...T}=i;if(Object.entries(T||{}).forEach(([D,I])=>{const{vars:O,css:j,varsWithDefaults:$}=PE(I,t);g=mo(g,$),b[D]={css:j,vars:O}}),S){const{css:D,vars:I,varsWithDefaults:O}=PE(S,t);g=mo(g,O),b[u]={css:D,vars:I}}function E(D,I){let O=o;if(o==="class"&&(O=".%s"),o==="data"&&(O="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(O=`[${o}="%s"]`),D){if(O==="media")return e.defaultColorScheme===D?":root":{[`@media (prefers-color-scheme: ${i[D]?.palette?.mode||D})`]:{":root":I}};if(O)return e.defaultColorScheme===D?`:root, ${O.replace("%s",String(D))}`:O.replace("%s",String(D))}return":root"}return{vars:g,generateThemeVars:()=>{let D={...p};return Object.entries(b).forEach(([,{vars:I}])=>{D=mo(D,I)}),D},generateStyleSheets:()=>{const D=[],I=e.defaultColorScheme||"light";function O(z,L){Object.keys(L).length&&D.push(typeof z=="string"?{[z]:{...L}}:z)}O(n(void 0,{...h}),h);const{[I]:j,...$}=b;if(j){const{css:z}=j,L=i[I]?.palette?.mode,H=!r&&L?{colorScheme:L,...z}:{...z};O(n(I,{...H}),H)}return Object.entries($).forEach(([z,{css:L}])=>{const H=i[z]?.palette?.mode,k=!r&&H?{colorScheme:H,...L}:{...L};O(n(z,{...k}),k)}),a&&D.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),D}}}function HH(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function It(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let i="",l=!0;for(let u=0;u<a.length;u+=1){const d=a[u];d&&(i+=(l===!0?"":" ")+t(d),l=!1,n&&n[d]&&(i+=" "+n[d]))}r[o]=i}return r}const $H=wd(),GH=iC("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Ve(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),VH=e=>sC({props:e,name:"MuiContainer",defaultTheme:$H}),qH=(e,t)=>{const n=u=>kt(t,u),{classes:r,fixed:o,disableGutters:a,maxWidth:i}=e,l={root:["root",i&&`maxWidth${Ve(String(i))}`,o&&"fixed",a&&"disableGutters"]};return It(l,n,r)};function WH(e={}){const{createStyledComponent:t=GH,useThemeProps:n=VH,componentName:r="MuiContainer"}=e,o=t(({theme:i,ownerState:l})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!l.disableGutters&&{paddingLeft:i.spacing(2),paddingRight:i.spacing(2),[i.breakpoints.up("sm")]:{paddingLeft:i.spacing(3),paddingRight:i.spacing(3)}}}),({theme:i,ownerState:l})=>l.fixed&&Object.keys(i.breakpoints.values).reduce((u,d)=>{const p=d,h=i.breakpoints.values[p];return h!==0&&(u[i.breakpoints.up(p)]={maxWidth:`${h}${i.breakpoints.unit}`}),u},{}),({theme:i,ownerState:l})=>({...l.maxWidth==="xs"&&{[i.breakpoints.up("xs")]:{maxWidth:Math.max(i.breakpoints.values.xs,444)}},...l.maxWidth&&l.maxWidth!=="xs"&&{[i.breakpoints.up(l.maxWidth)]:{maxWidth:`${i.breakpoints.values[l.maxWidth]}${i.breakpoints.unit}`}}}));return _.forwardRef(function(l,u){const d=n(l),{className:p,component:h="div",disableGutters:y=!1,fixed:g=!1,maxWidth:b="lg",classes:S,...T}=d,E={...d,component:h,disableGutters:y,fixed:g,maxWidth:b},A=qH(E,r);return v.jsx(o,{as:h,ownerState:E,className:Je(A.root,p),ref:u,...T})})}function Np(e,t){return _.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const YH=(e,t)=>e.filter(n=>t.includes(n)),Dd=(e,t,n)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((o,a)=>{n((i,l)=>{a<=e.keys.length-1&&(a===0?Object.assign(i,l):i[e.up(e.keys[a])]=l)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:YH(e.keys,Object.keys(t))).forEach(a=>{if(e.keys.includes(a)){const i=t[a];i!==void 0&&n((l,u)=>{r===a?Object.assign(l,u):l[e.up(a)]=u},i)}}):(typeof t=="number"||typeof t=="string")&&n((o,a)=>{Object.assign(o,a)},t)};function Wy(e){return`--Grid-${e}Spacing`}function ob(e){return`--Grid-parent-${e}Spacing`}const HR="--Grid-columns",Ju="--Grid-parent-columns",QH=({theme:e,ownerState:t})=>{const n={};return Dd(e.breakpoints,t.size,(r,o)=>{let a={};o==="grow"&&(a={flexBasis:0,flexGrow:1,maxWidth:"100%"}),o==="auto"&&(a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof o=="number"&&(a={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / var(${Ju}) - (var(${Ju}) - ${o}) * (var(${ob("column")}) / var(${Ju})))`}),r(n,a)}),n},KH=({theme:e,ownerState:t})=>{const n={};return Dd(e.breakpoints,t.offset,(r,o)=>{let a={};o==="auto"&&(a={marginLeft:"auto"}),typeof o=="number"&&(a={marginLeft:o===0?"0px":`calc(100% * ${o} / var(${Ju}) + var(${ob("column")}) * ${o} / var(${Ju}))`}),r(n,a)}),n},XH=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[HR]:12};return Dd(e.breakpoints,t.columns,(r,o)=>{const a=o??12;r(n,{[HR]:a,"> *":{[Ju]:a}})}),n},ZH=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Dd(e.breakpoints,t.rowSpacing,(r,o)=>{const a=typeof o=="string"?o:e.spacing?.(o);r(n,{[Wy("row")]:a,"> *":{[ob("row")]:a}})}),n},JH=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Dd(e.breakpoints,t.columnSpacing,(r,o)=>{const a=typeof o=="string"?o:e.spacing?.(o);r(n,{[Wy("column")]:a,"> *":{[ob("column")]:a}})}),n},e$=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Dd(e.breakpoints,t.direction,(r,o)=>{r(n,{flexDirection:o})}),n},t$=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${Wy("row")}) var(${Wy("column")})`}}),n$=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},r$=(e,t="xs")=>{function n(r){return r===void 0?!1:typeof r=="string"&&!Number.isNaN(Number(r))||typeof r=="number"&&r>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const r=[];return Object.entries(e).forEach(([o,a])=>{n(a)&&r.push(`spacing-${o}-${String(a)}`)}),r}return[]},o$=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`];function a$(e,t){e.item!==void 0&&delete e.item,e.zeroMinWidth!==void 0&&delete e.zeroMinWidth,t.keys.forEach(n=>{e[n]!==void 0&&delete e[n]})}const i$=wd(),s$=iC("div",{name:"MuiGrid",slot:"Root"});function l$(e){return sC({props:e,name:"MuiGrid",defaultTheme:i$})}function c$(e={}){const{createStyledComponent:t=s$,useThemeProps:n=l$,useTheme:r=Rd,componentName:o="MuiGrid"}=e,a=(d,p)=>{const{container:h,direction:y,spacing:g,wrap:b,size:S}=d,T={root:["root",h&&"container",b!=="wrap"&&`wrap-xs-${String(b)}`,...o$(y),...n$(S),...h?r$(g,p.breakpoints.keys[0]):[]]};return It(T,E=>kt(o,E),{})};function i(d,p,h=()=>!0){const y={};return d===null||(Array.isArray(d)?d.forEach((g,b)=>{g!==null&&h(g)&&p.keys[b]&&(y[p.keys[b]]=g)}):typeof d=="object"?Object.keys(d).forEach(g=>{const b=d[g];b!=null&&h(b)&&(y[g]=b)}):y[p.keys[0]]=d),y}const l=t(XH,JH,ZH,QH,e$,t$,KH),u=_.forwardRef(function(p,h){const y=r(),g=n(p),b=eb(g);a$(b,y.breakpoints);const{className:S,children:T,columns:E=12,container:A=!1,component:C="div",direction:D="row",wrap:I="wrap",size:O={},offset:j={},spacing:$=0,rowSpacing:z=$,columnSpacing:L=$,unstable_level:H=0,...k}=b,F=i(O,y.breakpoints,K=>K!==!1),B=i(j,y.breakpoints),G=p.columns??(H?void 0:E),U=p.spacing??(H?void 0:$),Q=p.rowSpacing??p.spacing??(H?void 0:z),Y=p.columnSpacing??p.spacing??(H?void 0:L),oe={...b,level:H,columns:G,container:A,direction:D,wrap:I,spacing:U,rowSpacing:Q,columnSpacing:Y,size:F,offset:B},N=a(oe,y);return v.jsx(l,{ref:h,as:C,ownerState:oe,className:Je(N.root,S),...k,children:_.Children.map(T,K=>_.isValidElement(K)&&Np(K,["Grid"])&&A&&K.props.container?_.cloneElement(K,{unstable_level:K.props?.unstable_level??H+1}):K)})});return u.muiName="Grid",u}const u$=wd(),d$=iC("div",{name:"MuiStack",slot:"Root"});function f$(e){return sC({props:e,name:"MuiStack",defaultTheme:u$})}function p$(e,t){const n=_.Children.toArray(e).filter(Boolean);return n.reduce((r,o,a)=>(r.push(o),a<n.length-1&&r.push(_.cloneElement(t,{key:`separator-${a}`})),r),[])}const h$=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],m$=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...Ha({theme:t},IE({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=Y0(t),o=Object.keys(t.breakpoints.values).reduce((u,d)=>((typeof e.spacing=="object"&&e.spacing[d]!=null||typeof e.direction=="object"&&e.direction[d]!=null)&&(u[d]=!0),u),{}),a=IE({values:e.direction,base:o}),i=IE({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((u,d,p)=>{if(!a[u]){const y=d>0?a[p[d-1]]:"column";a[u]=y}}),n=mo(n,Ha({theme:t},i,(u,d)=>e.useFlexGap?{gap:Ac(r,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${h$(d?a[d]:e.direction)}`]:Ac(r,u)}}))}return n=pz(t.breakpoints,n),n};function pC(e={}){const{createStyledComponent:t=d$,useThemeProps:n=f$,componentName:r="MuiStack"}=e,o=()=>It({root:["root"]},u=>kt(r,u),{}),a=t(m$);return _.forwardRef(function(u,d){const p=n(u),h=eb(p),{component:y="div",direction:g="column",spacing:b=0,divider:S,children:T,className:E,useFlexGap:A=!1,...C}=h,D={direction:g,spacing:b,useFlexGap:A},I=o();return v.jsx(a,{as:y,ownerState:D,ref:d,className:Je(I.root,E),...C,children:S?p$(T,S):T})})}const g$=pC();function K5(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ih.white,default:ih.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const X5=K5();function Z5(){return{text:{primary:ih.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:ih.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const aS=Z5();function $R(e,t,n,r){const o=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=rb(e.main,o):t==="dark"&&(e.dark=nb(e.main,a)))}function GR(e,t,n,r,o){const a=o.light||o,i=o.dark||o*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(a*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(i*100).toFixed(0)}%)`))}function y$(e="light"){return e==="dark"?{main:ku[200],light:ku[50],dark:ku[400]}:{main:ku[700],light:ku[400],dark:ku[800]}}function b$(e="light"){return e==="dark"?{main:Au[200],light:Au[50],dark:Au[400]}:{main:Au[500],light:Au[300],dark:Au[700]}}function v$(e="light"){return e==="dark"?{main:_u[500],light:_u[300],dark:_u[700]}:{main:_u[700],light:_u[400],dark:_u[800]}}function E$(e="light"){return e==="dark"?{main:wu[400],light:wu[300],dark:wu[700]}:{main:wu[700],light:wu[500],dark:wu[900]}}function x$(e="light"){return e==="dark"?{main:Ru[400],light:Ru[300],dark:Ru[700]}:{main:Ru[800],light:Ru[500],dark:Ru[900]}}function S$(e="light"){return e==="dark"?{main:Yf[400],light:Yf[300],dark:Yf[700]}:{main:"#ed6c02",light:Yf[500],dark:Yf[900]}}function T$(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function hC(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...a}=e,i=e.primary||y$(t),l=e.secondary||b$(t),u=e.error||v$(t),d=e.info||E$(t),p=e.success||x$(t),h=e.warning||S$(t);function y(T){return o?T$(T):vH(T,aS.text.primary)>=n?aS.text.primary:X5.text.primary}const g=({color:T,name:E,mainShade:A=500,lightShade:C=300,darkShade:D=700})=>{if(T={...T},!T.main&&T[A]&&(T.main=T[A]),!T.hasOwnProperty("main"))throw new Error(_c(11,E?` (${E})`:"",A));if(typeof T.main!="string")throw new Error(_c(12,E?` (${E})`:"",JSON.stringify(T.main)));return o?(GR(o,T,"light",C,r),GR(o,T,"dark",D,r)):($R(T,"light",C,r),$R(T,"dark",D,r)),T.contrastText||(T.contrastText=y(T.main)),T};let b;return t==="light"?b=K5():t==="dark"&&(b=Z5()),mo({common:{...ih},mode:t,primary:g({color:i,name:"primary"}),secondary:g({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:u,name:"error"}),warning:g({color:h,name:"warning"}),info:g({color:d,name:"info"}),success:g({color:p,name:"success"}),grey:oU,contrastThreshold:n,getContrastText:y,augmentColor:g,tonalOffset:r,...b},a)}function C$(e){const t={};return Object.entries(e).forEach(r=>{const[o,a]=r;typeof a=="object"&&(t[o]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}function _$(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function A$(e){return Math.round(e*1e5)/1e5}const VR={textTransform:"uppercase"},qR='"Roboto", "Helvetica", "Arial", sans-serif';function J5(e,t){const{fontFamily:n=qR,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:i=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:d,pxToRem:p,...h}=typeof t=="function"?t(e):t,y=r/14,g=p||(T=>`${T/u*y}rem`),b=(T,E,A,C,D)=>({fontFamily:n,fontWeight:T,fontSize:g(E),lineHeight:A,...n===qR?{letterSpacing:`${A$(C/E)}em`}:{},...D,...d}),S={h1:b(o,96,1.167,-1.5),h2:b(o,60,1.2,-.5),h3:b(a,48,1.167,0),h4:b(a,34,1.235,.25),h5:b(a,24,1.334,0),h6:b(i,20,1.6,.15),subtitle1:b(a,16,1.75,.15),subtitle2:b(i,14,1.57,.1),body1:b(a,16,1.5,.15),body2:b(a,14,1.43,.15),button:b(i,14,1.75,.4,VR),caption:b(a,12,1.66,.4),overline:b(a,12,2.66,1,VR),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return mo({htmlFontSize:u,pxToRem:g,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:i,fontWeightBold:l,...S},h,{clone:!1})}const k$=.2,w$=.14,R$=.12;function Yn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${k$})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${w$})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${R$})`].join(",")}const D$=["none",Yn(0,2,1,-1,0,1,1,0,0,1,3,0),Yn(0,3,1,-2,0,2,2,0,0,1,5,0),Yn(0,3,3,-2,0,3,4,0,0,1,8,0),Yn(0,2,4,-1,0,4,5,0,0,1,10,0),Yn(0,3,5,-1,0,5,8,0,0,1,14,0),Yn(0,3,5,-1,0,6,10,0,0,1,18,0),Yn(0,4,5,-2,0,7,10,1,0,2,16,1),Yn(0,5,5,-3,0,8,10,1,0,3,14,2),Yn(0,5,6,-3,0,9,12,1,0,3,16,2),Yn(0,6,6,-3,0,10,14,1,0,4,18,3),Yn(0,6,7,-4,0,11,15,1,0,4,20,3),Yn(0,7,8,-4,0,12,17,2,0,5,22,4),Yn(0,7,8,-4,0,13,19,2,0,5,24,4),Yn(0,7,9,-4,0,14,21,2,0,5,26,4),Yn(0,8,9,-5,0,15,22,2,0,6,28,5),Yn(0,8,10,-5,0,16,24,2,0,6,30,5),Yn(0,8,11,-5,0,17,26,2,0,6,32,5),Yn(0,9,11,-5,0,18,28,2,0,7,34,6),Yn(0,9,12,-6,0,19,29,2,0,7,36,6),Yn(0,10,13,-6,0,20,31,3,0,8,38,7),Yn(0,10,13,-6,0,21,33,3,0,8,40,7),Yn(0,10,14,-6,0,22,35,3,0,8,42,7),Yn(0,11,14,-7,0,23,36,3,0,9,44,8),Yn(0,11,15,-7,0,24,38,3,0,9,46,8)],I$={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},eP={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function WR(e){return`${Math.round(e)}ms`}function O$(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function N$(e){const t={...I$,...e.easing},n={...eP,...e.duration};return{getAutoHeightDuration:O$,create:(o=["all"],a={})=>{const{duration:i=n.standard,easing:l=t.easeInOut,delay:u=0,...d}=a;return(Array.isArray(o)?o:[o]).map(p=>`${p} ${typeof i=="string"?i:WR(i)} ${l} ${typeof u=="string"?u:WR(u)}`).join(",")},...e,easing:t,duration:n}}const P$={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function L$(e){return mi(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function tP(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let a=0;a<o.length;a++){const[i,l]=o[a];!L$(l)||i.startsWith("unstable_")?delete r[i]:mi(l)&&(r[i]={...l},n(r[i]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
105
|
-
|
|
106
|
-
const theme = ${JSON.stringify(t,null,2)};
|
|
107
|
-
|
|
108
|
-
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
109
|
-
theme.transitions = createTransitions(theme.transitions || {});
|
|
110
|
-
|
|
111
|
-
export default theme;`}function YR(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const M$=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function F$(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:Zo(t,M$(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${YR(n)})`:rb(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${YR(n)})`:nb(t,n)}})}function iS(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:a={},transitions:i={},typography:l={},shape:u,colorSpace:d,...p}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(_c(20));const h=hC({...a,colorSpace:d}),y=wd(e);let g=mo(y,{mixins:_$(y.breakpoints,r),palette:h,shadows:D$.slice(),typography:J5(h,l),transitions:N$(i),zIndex:{...P$}});return g=mo(g,p),g=t.reduce((b,S)=>mo(b,S),g),g.unstable_sxConfig={...qh,...p?.unstable_sxConfig},g.unstable_sx=function(S){return vl({sx:S,theme:this})},g.toRuntimeSource=tP,F$(g),g}function sS(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const j$=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=sS(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function nP(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function rP(e){return e==="dark"?j$:[]}function B$(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...a}=e,i=hC({...t,colorSpace:o});return{palette:i,opacity:{...nP(i.mode),...n},overlays:r||rP(i.mode),...a}}function U$(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const z$=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],H$=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let a=o;if(o==="class"&&(a=".%s"),o==="data"&&(a="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const i={};return z$(e.cssVarPrefix).forEach(l=>{i[l]=n[l],delete n[l]}),a==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:a?{[a.replace("%s",t)]:i,[`${r}, ${a.replace("%s",t)}`]:n}:{[r]:{...n,...i}}}if(a&&a!=="media")return`${r}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace("%s",String(t))}return r};function $$(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Ae(e,t,n){!e[t]&&n&&(e[t]=n)}function Tp(e){return typeof e!="string"||!e.startsWith("hsl")?e:H5(e)}function Ki(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Sp(Tp(e[t])))}function G$(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const ni=e=>{try{return e()}catch{}},V$=(e="mui")=>Q5(e);function LE(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const a=o==="dark"?"dark":"light";if(!r){t[o]=B$({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}const{palette:i,...l}=iS({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[o]={...n,palette:i,opacity:{...nP(a),...n?.opacity},overlays:n?.overlays||rP(a)},l}function q$(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",nativeColor:i=!1,shouldSkipGeneratingVar:l=U$,colorSchemeSelector:u=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...p}=e,h=Object.keys(n)[0],y=r||(n.light&&h!=="light"?"light":h),g=V$(a),{[y]:b,light:S,dark:T,...E}=n,A={...E};let C=b;if((y==="dark"&&!("dark"in n)||y==="light"&&!("light"in n))&&(C=!0),!C)throw new Error(_c(21,y));let D;i&&(D="oklch");const I=LE(D,A,C,p,y);S&&!A.light&&LE(D,A,S,void 0,"light"),T&&!A.dark&&LE(D,A,T,void 0,"dark");let O={defaultColorScheme:y,...I,cssVarPrefix:a,colorSchemeSelector:u,rootSelector:d,getCssVar:g,colorSchemes:A,font:{...C$(I.typography),...I.font},spacing:G$(p.spacing)};Object.keys(O.colorSchemes).forEach(H=>{const k=O.colorSchemes[H].palette,F=G=>{const U=G.split("-"),Q=U[1],Y=U[2];return g(G,k[Q][Y])};k.mode==="light"&&(Ae(k.common,"background","#fff"),Ae(k.common,"onBackground","#000")),k.mode==="dark"&&(Ae(k.common,"background","#000"),Ae(k.common,"onBackground","#fff"));function B(G,U,Q){if(D){let Y;return G===Kl&&(Y=`transparent ${((1-Q)*100).toFixed(0)}%`),G===Tn&&(Y=`#000 ${(Q*100).toFixed(0)}%`),G===Cn&&(Y=`#fff ${(Q*100).toFixed(0)}%`),`color-mix(in ${D}, ${U}, ${Y})`}return G(U,Q)}if($$(k,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),k.mode==="light"){Ae(k.Alert,"errorColor",B(Tn,k.error.light,.6)),Ae(k.Alert,"infoColor",B(Tn,k.info.light,.6)),Ae(k.Alert,"successColor",B(Tn,k.success.light,.6)),Ae(k.Alert,"warningColor",B(Tn,k.warning.light,.6)),Ae(k.Alert,"errorFilledBg",F("palette-error-main")),Ae(k.Alert,"infoFilledBg",F("palette-info-main")),Ae(k.Alert,"successFilledBg",F("palette-success-main")),Ae(k.Alert,"warningFilledBg",F("palette-warning-main")),Ae(k.Alert,"errorFilledColor",ni(()=>k.getContrastText(k.error.main))),Ae(k.Alert,"infoFilledColor",ni(()=>k.getContrastText(k.info.main))),Ae(k.Alert,"successFilledColor",ni(()=>k.getContrastText(k.success.main))),Ae(k.Alert,"warningFilledColor",ni(()=>k.getContrastText(k.warning.main))),Ae(k.Alert,"errorStandardBg",B(Cn,k.error.light,.9)),Ae(k.Alert,"infoStandardBg",B(Cn,k.info.light,.9)),Ae(k.Alert,"successStandardBg",B(Cn,k.success.light,.9)),Ae(k.Alert,"warningStandardBg",B(Cn,k.warning.light,.9)),Ae(k.Alert,"errorIconColor",F("palette-error-main")),Ae(k.Alert,"infoIconColor",F("palette-info-main")),Ae(k.Alert,"successIconColor",F("palette-success-main")),Ae(k.Alert,"warningIconColor",F("palette-warning-main")),Ae(k.AppBar,"defaultBg",F("palette-grey-100")),Ae(k.Avatar,"defaultBg",F("palette-grey-400")),Ae(k.Button,"inheritContainedBg",F("palette-grey-300")),Ae(k.Button,"inheritContainedHoverBg",F("palette-grey-A100")),Ae(k.Chip,"defaultBorder",F("palette-grey-400")),Ae(k.Chip,"defaultAvatarColor",F("palette-grey-700")),Ae(k.Chip,"defaultIconColor",F("palette-grey-700")),Ae(k.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Ae(k.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Ae(k.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Ae(k.LinearProgress,"primaryBg",B(Cn,k.primary.main,.62)),Ae(k.LinearProgress,"secondaryBg",B(Cn,k.secondary.main,.62)),Ae(k.LinearProgress,"errorBg",B(Cn,k.error.main,.62)),Ae(k.LinearProgress,"infoBg",B(Cn,k.info.main,.62)),Ae(k.LinearProgress,"successBg",B(Cn,k.success.main,.62)),Ae(k.LinearProgress,"warningBg",B(Cn,k.warning.main,.62)),Ae(k.Skeleton,"bg",D?B(Kl,k.text.primary,.11):`rgba(${F("palette-text-primaryChannel")} / 0.11)`),Ae(k.Slider,"primaryTrack",B(Cn,k.primary.main,.62)),Ae(k.Slider,"secondaryTrack",B(Cn,k.secondary.main,.62)),Ae(k.Slider,"errorTrack",B(Cn,k.error.main,.62)),Ae(k.Slider,"infoTrack",B(Cn,k.info.main,.62)),Ae(k.Slider,"successTrack",B(Cn,k.success.main,.62)),Ae(k.Slider,"warningTrack",B(Cn,k.warning.main,.62));const G=D?B(Tn,k.background.default,.6825):Og(k.background.default,.8);Ae(k.SnackbarContent,"bg",G),Ae(k.SnackbarContent,"color",ni(()=>D?aS.text.primary:k.getContrastText(G))),Ae(k.SpeedDialAction,"fabHoverBg",Og(k.background.paper,.15)),Ae(k.StepConnector,"border",F("palette-grey-400")),Ae(k.StepContent,"border",F("palette-grey-400")),Ae(k.Switch,"defaultColor",F("palette-common-white")),Ae(k.Switch,"defaultDisabledColor",F("palette-grey-100")),Ae(k.Switch,"primaryDisabledColor",B(Cn,k.primary.main,.62)),Ae(k.Switch,"secondaryDisabledColor",B(Cn,k.secondary.main,.62)),Ae(k.Switch,"errorDisabledColor",B(Cn,k.error.main,.62)),Ae(k.Switch,"infoDisabledColor",B(Cn,k.info.main,.62)),Ae(k.Switch,"successDisabledColor",B(Cn,k.success.main,.62)),Ae(k.Switch,"warningDisabledColor",B(Cn,k.warning.main,.62)),Ae(k.TableCell,"border",B(Cn,B(Kl,k.divider,1),.88)),Ae(k.Tooltip,"bg",B(Kl,k.grey[700],.92))}if(k.mode==="dark"){Ae(k.Alert,"errorColor",B(Cn,k.error.light,.6)),Ae(k.Alert,"infoColor",B(Cn,k.info.light,.6)),Ae(k.Alert,"successColor",B(Cn,k.success.light,.6)),Ae(k.Alert,"warningColor",B(Cn,k.warning.light,.6)),Ae(k.Alert,"errorFilledBg",F("palette-error-dark")),Ae(k.Alert,"infoFilledBg",F("palette-info-dark")),Ae(k.Alert,"successFilledBg",F("palette-success-dark")),Ae(k.Alert,"warningFilledBg",F("palette-warning-dark")),Ae(k.Alert,"errorFilledColor",ni(()=>k.getContrastText(k.error.dark))),Ae(k.Alert,"infoFilledColor",ni(()=>k.getContrastText(k.info.dark))),Ae(k.Alert,"successFilledColor",ni(()=>k.getContrastText(k.success.dark))),Ae(k.Alert,"warningFilledColor",ni(()=>k.getContrastText(k.warning.dark))),Ae(k.Alert,"errorStandardBg",B(Tn,k.error.light,.9)),Ae(k.Alert,"infoStandardBg",B(Tn,k.info.light,.9)),Ae(k.Alert,"successStandardBg",B(Tn,k.success.light,.9)),Ae(k.Alert,"warningStandardBg",B(Tn,k.warning.light,.9)),Ae(k.Alert,"errorIconColor",F("palette-error-main")),Ae(k.Alert,"infoIconColor",F("palette-info-main")),Ae(k.Alert,"successIconColor",F("palette-success-main")),Ae(k.Alert,"warningIconColor",F("palette-warning-main")),Ae(k.AppBar,"defaultBg",F("palette-grey-900")),Ae(k.AppBar,"darkBg",F("palette-background-paper")),Ae(k.AppBar,"darkColor",F("palette-text-primary")),Ae(k.Avatar,"defaultBg",F("palette-grey-600")),Ae(k.Button,"inheritContainedBg",F("palette-grey-800")),Ae(k.Button,"inheritContainedHoverBg",F("palette-grey-700")),Ae(k.Chip,"defaultBorder",F("palette-grey-700")),Ae(k.Chip,"defaultAvatarColor",F("palette-grey-300")),Ae(k.Chip,"defaultIconColor",F("palette-grey-300")),Ae(k.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Ae(k.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Ae(k.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Ae(k.LinearProgress,"primaryBg",B(Tn,k.primary.main,.5)),Ae(k.LinearProgress,"secondaryBg",B(Tn,k.secondary.main,.5)),Ae(k.LinearProgress,"errorBg",B(Tn,k.error.main,.5)),Ae(k.LinearProgress,"infoBg",B(Tn,k.info.main,.5)),Ae(k.LinearProgress,"successBg",B(Tn,k.success.main,.5)),Ae(k.LinearProgress,"warningBg",B(Tn,k.warning.main,.5)),Ae(k.Skeleton,"bg",D?B(Kl,k.text.primary,.13):`rgba(${F("palette-text-primaryChannel")} / 0.13)`),Ae(k.Slider,"primaryTrack",B(Tn,k.primary.main,.5)),Ae(k.Slider,"secondaryTrack",B(Tn,k.secondary.main,.5)),Ae(k.Slider,"errorTrack",B(Tn,k.error.main,.5)),Ae(k.Slider,"infoTrack",B(Tn,k.info.main,.5)),Ae(k.Slider,"successTrack",B(Tn,k.success.main,.5)),Ae(k.Slider,"warningTrack",B(Tn,k.warning.main,.5));const G=D?B(Cn,k.background.default,.985):Og(k.background.default,.98);Ae(k.SnackbarContent,"bg",G),Ae(k.SnackbarContent,"color",ni(()=>D?X5.text.primary:k.getContrastText(G))),Ae(k.SpeedDialAction,"fabHoverBg",Og(k.background.paper,.15)),Ae(k.StepConnector,"border",F("palette-grey-600")),Ae(k.StepContent,"border",F("palette-grey-600")),Ae(k.Switch,"defaultColor",F("palette-grey-300")),Ae(k.Switch,"defaultDisabledColor",F("palette-grey-600")),Ae(k.Switch,"primaryDisabledColor",B(Tn,k.primary.main,.55)),Ae(k.Switch,"secondaryDisabledColor",B(Tn,k.secondary.main,.55)),Ae(k.Switch,"errorDisabledColor",B(Tn,k.error.main,.55)),Ae(k.Switch,"infoDisabledColor",B(Tn,k.info.main,.55)),Ae(k.Switch,"successDisabledColor",B(Tn,k.success.main,.55)),Ae(k.Switch,"warningDisabledColor",B(Tn,k.warning.main,.55)),Ae(k.TableCell,"border",B(Tn,B(Kl,k.divider,1),.68)),Ae(k.Tooltip,"bg",B(Kl,k.grey[700],.92))}Ki(k.background,"default"),Ki(k.background,"paper"),Ki(k.common,"background"),Ki(k.common,"onBackground"),Ki(k,"divider"),Object.keys(k).forEach(G=>{const U=k[G];G!=="tonalOffset"&&U&&typeof U=="object"&&(U.main&&Ae(k[G],"mainChannel",Sp(Tp(U.main))),U.light&&Ae(k[G],"lightChannel",Sp(Tp(U.light))),U.dark&&Ae(k[G],"darkChannel",Sp(Tp(U.dark))),U.contrastText&&Ae(k[G],"contrastTextChannel",Sp(Tp(U.contrastText))),G==="text"&&(Ki(k[G],"primary"),Ki(k[G],"secondary")),G==="action"&&(U.active&&Ki(k[G],"active"),U.selected&&Ki(k[G],"selected")))})}),O=t.reduce((H,k)=>mo(H,k),O);const j={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:l,getSelector:H$(O),enableContrastVars:i},{vars:$,generateThemeVars:z,generateStyleSheets:L}=zH(O,j);return O.vars=$,Object.entries(O.colorSchemes[O.defaultColorScheme]).forEach(([H,k])=>{O[H]=k}),O.generateThemeVars=z,O.generateStyleSheets=L,O.generateSpacing=function(){return tC(p.spacing,Y0(this))},O.getColorSchemeSelector=HH(u),O.spacing=O.generateSpacing(),O.shouldSkipGeneratingVar=l,O.unstable_sxConfig={...qh,...p?.unstable_sxConfig},O.unstable_sx=function(k){return vl({sx:k,theme:this})},O.toRuntimeSource=tP,O}function QR(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:hC({...n===!0?{}:n.palette,mode:t})})}function ab(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...i}=e,l=a||"light",u=o?.[l],d={...o,...n?{[l]:{...typeof u!="boolean"&&u,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return iS(e,...t);let p=n;"palette"in e||d[l]&&(d[l]!==!0?p=d[l].palette:l==="dark"&&(p={mode:"dark"}));const h=iS({...e,palette:p},...t);return h.defaultColorScheme=l,h.colorSchemes=d,h.palette.mode==="light"&&(h.colorSchemes.light={...d.light!==!0&&d.light,palette:h.palette},QR(h,"dark",d.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:h.palette},QR(h,"light",d.light)),h}return!n&&!("light"in d)&&l==="light"&&(d.light=!0),q$({...i,colorSchemes:d,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}const mC=ab();function Rl(){const e=Rd(mC);return e[Ei]||e}function W$(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Bc=e=>W$(e)&&e!=="classes",Ue=z5({themeId:Ei,defaultTheme:mC,rootShouldForwardProp:Bc});function Y$({theme:e,...t}){const n=Ei in e?e[Ei]:void 0;return v.jsx(q5,{...t,themeId:n?Ei:void 0,theme:n||e})}const Ng={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:Q$}=jH({themeId:Ei,theme:()=>ab({cssVariables:!0}),colorSchemeStorageKey:Ng.colorSchemeStorageKey,modeStorageKey:Ng.modeStorageKey,defaultColorScheme:{light:Ng.defaultLightColorScheme,dark:Ng.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:J5(e.palette,e.typography)};return t.unstable_sx=function(r){return vl({sx:r,theme:this})},t}}),K$=Q$;function X$({theme:e,...t}){const n=_.useMemo(()=>{if(typeof e=="function")return e;const r=Ei in e?e[Ei]:e;return"colorSchemes"in r?null:"vars"in r?e:{...e,vars:null}},[e]);return n?v.jsx(Y$,{theme:n,...t}):v.jsx(K$,{theme:e,...t})}function KR(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Z$(e){return v.jsx(oC,{...e,defaultTheme:mC,themeId:Ei})}function oP(e){return function(n){return v.jsx(Z$,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function J$(){return eb}const fn=W5;function wt(e){return kH(e)}function eG(e){return kt("MuiSvgIcon",e)}Dt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const tG=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Ve(t)}`,`fontSize${Ve(n)}`]};return It(o,eG,r)},nG=Ue("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Ve(n.color)}`],t[`fontSize${Ve(n.fontSize)}`]]}})(fn(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),lS=_.forwardRef(function(t,n){const r=wt({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:l="svg",fontSize:u="medium",htmlColor:d,inheritViewBox:p=!1,titleAccess:h,viewBox:y="0 0 24 24",...g}=r,b=_.isValidElement(o)&&o.type==="svg",S={...r,color:i,component:l,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:y,hasSvgAsChild:b},T={};p||(T.viewBox=y);const E=tG(S);return v.jsxs(nG,{as:l,className:Je(E.root,a),focusable:"false",color:d,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n,...T,...g,...b&&o.props,ownerState:S,children:[b?o.props.children:o,h?v.jsx("title",{children:h}):null]})});lS.muiName="SvgIcon";function Dl(e,t){function n(r,o){return v.jsx(lS,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=lS.muiName,_.memo(_.forwardRef(n))}function rG(e,t=166){let n;function r(...o){const a=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function go(e){return e&&e.ownerDocument||document}function kc(e){return go(e).defaultView||window}function XR(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function aP(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:a}=_.useRef(t!==void 0),[i,l]=_.useState(n),u=a?t:i,d=_.useCallback(p=>{a||l(p)},[]);return[u,d]}function Ba(e){const t=_.useRef(e);return Ci(()=>{t.current=e}),_.useRef((...n)=>(0,t.current)(...n)).current}function kr(...e){const t=_.useRef(void 0),n=_.useCallback(r=>{const o=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const i=a,l=i(r);return typeof l=="function"?l:()=>{i(null)}}return a.current=r,()=>{a.current=null}});return()=>{o.forEach(a=>a?.())}},e);return _.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function oG(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function aG(e,t){if(!e)return t;function n(i,l){const u={};return Object.keys(l).forEach(d=>{oG(d,l[d])&&typeof i[d]=="function"&&(u[d]=(...p)=>{i[d](...p),l[d](...p)})}),u}if(typeof e=="function"||typeof t=="function")return i=>{const l=typeof t=="function"?t(i):t,u=typeof e=="function"?e({...i,...l}):e,d=Je(i?.className,l?.className,u?.className),p=n(u,l);return{...l,...u,...p,...!!d&&{className:d},...l?.style&&u?.style&&{style:{...l.style,...u.style}},...l?.sx&&u?.sx&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const r=t,o=n(e,r),a=Je(r?.className,e?.className);return{...t,...e,...o,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function iP(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function cS(e,t){return cS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},cS(e,t)}function sP(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,cS(e,t)}const ZR={disabled:!1},Yy=Fe.createContext(null);var iG=function(t){return t.scrollTop},Cp="unmounted",nc="exited",rc="entering",$u="entered",uS="exiting",qa=(function(e){sP(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var i=o,l=i&&!i.isMounting?r.enter:r.appear,u;return a.appearStatus=null,r.in?l?(u=nc,a.appearStatus=rc):u=$u:r.unmountOnExit||r.mountOnEnter?u=Cp:u=nc,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===Cp?{status:nc}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==rc&&i!==$u&&(a=rc):(i===rc||i===$u)&&(a=uS)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,a,i,l;return a=i=l=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,l=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:l}},n.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===rc){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:sl.findDOMNode(this);i&&iG(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===nc&&this.setState({status:Cp})},n.performEnter=function(o){var a=this,i=this.props.enter,l=this.context?this.context.isMounting:o,u=this.props.nodeRef?[l]:[sl.findDOMNode(this),l],d=u[0],p=u[1],h=this.getTimeouts(),y=l?h.appear:h.enter;if(!o&&!i||ZR.disabled){this.safeSetState({status:$u},function(){a.props.onEntered(d)});return}this.props.onEnter(d,p),this.safeSetState({status:rc},function(){a.props.onEntering(d,p),a.onTransitionEnd(y,function(){a.safeSetState({status:$u},function(){a.props.onEntered(d,p)})})})},n.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),l=this.props.nodeRef?void 0:sl.findDOMNode(this);if(!a||ZR.disabled){this.safeSetState({status:nc},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:uS},function(){o.props.onExiting(l),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:nc},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},n.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(l){i&&(i=!1,a.nextCallback=null,o(l))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:sl.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!i||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],d=u[0],p=u[1];this.props.addEndListener(d,p)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Cp)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var l=iP(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Fe.createElement(Yy.Provider,{value:null},typeof i=="function"?i(o,l):Fe.cloneElement(Fe.Children.only(i),l))},t})(Fe.Component);qa.contextType=Yy;qa.propTypes={};function Du(){}qa.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Du,onEntering:Du,onEntered:Du,onExit:Du,onExiting:Du,onExited:Du};qa.UNMOUNTED=Cp;qa.EXITED=nc;qa.ENTERING=rc;qa.ENTERED=$u;qa.EXITING=uS;function sG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gC(e,t){var n=function(a){return t&&_.isValidElement(a)?t(a):a},r=Object.create(null);return e&&_.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function lG(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}var r=Object.create(null),o=[];for(var a in e)a in t?o.length&&(r[a]=o,o=[]):o.push(a);var i,l={};for(var u in t){if(r[u])for(i=0;i<r[u].length;i++){var d=r[u][i];l[r[u][i]]=n(d)}l[u]=n(u)}for(i=0;i<o.length;i++)l[o[i]]=n(o[i]);return l}function dc(e,t,n){return n[t]!=null?n[t]:e.props[t]}function cG(e,t){return gC(e.children,function(n){return _.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:dc(n,"appear",e),enter:dc(n,"enter",e),exit:dc(n,"exit",e)})})}function uG(e,t,n){var r=gC(e.children),o=lG(t,r);return Object.keys(o).forEach(function(a){var i=o[a];if(_.isValidElement(i)){var l=a in t,u=a in r,d=t[a],p=_.isValidElement(d)&&!d.props.in;u&&(!l||p)?o[a]=_.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:dc(i,"exit",e),enter:dc(i,"enter",e)}):!u&&l&&!p?o[a]=_.cloneElement(i,{in:!1}):u&&l&&_.isValidElement(d)&&(o[a]=_.cloneElement(i,{onExited:n.bind(null,i),in:d.props.in,exit:dc(i,"exit",e),enter:dc(i,"enter",e)}))}}),o}var dG=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},fG={component:"div",childFactory:function(t){return t}},yC=(function(e){sP(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var i=a.handleExited.bind(sG(a));return a.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},a}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,a){var i=a.children,l=a.handleExited,u=a.firstRender;return{children:u?cG(o,l):uG(o,i,l),firstRender:!1}},n.handleExited=function(o,a){var i=gC(this.props.children);o.key in i||(o.props.onExited&&o.props.onExited(a),this.mounted&&this.setState(function(l){var u=$y({},l.children);return delete u[o.key],{children:u}}))},n.render=function(){var o=this.props,a=o.component,i=o.childFactory,l=iP(o,["component","childFactory"]),u=this.state.contextValue,d=dG(this.state.children).map(i);return delete l.appear,delete l.enter,delete l.exit,a===null?Fe.createElement(Yy.Provider,{value:u},d):Fe.createElement(Yy.Provider,{value:u},Fe.createElement(a,l,d))},t})(Fe.Component);yC.propTypes={};yC.defaultProps=fG;const JR={};function lP(e,t){const n=_.useRef(JR);return n.current===JR&&(n.current=e(t)),n}const pG=[];function hG(e){_.useEffect(e,pG)}class ib{static create(){return new ib}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function ll(){const e=lP(ib.create).current;return hG(e.disposeEffect),e}const cP=e=>e.scrollTop;function ud(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}function mG(e){return kt("MuiCollapse",e)}Dt("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const gG=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return It(r,mG,n)},yG=Ue("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(fn(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),bG=Ue("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),vG=Ue("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Qy=_.forwardRef(function(t,n){const r=wt({props:t,name:"MuiCollapse"}),{addEndListener:o,children:a,className:i,collapsedSize:l="0px",component:u,easing:d,in:p,onEnter:h,onEntered:y,onEntering:g,onExit:b,onExited:S,onExiting:T,orientation:E="vertical",style:A,timeout:C=eP.standard,TransitionComponent:D=qa,...I}=r,O={...r,orientation:E,collapsedSize:l},j=gG(O),$=Rl(),z=ll(),L=_.useRef(null),H=_.useRef(),k=typeof l=="number"?`${l}px`:l,F=E==="horizontal",B=F?"width":"height",G=_.useRef(null),U=kr(n,G),Q=ne=>be=>{if(ne){const fe=G.current;be===void 0?ne(fe):ne(fe,be)}},Y=()=>L.current?L.current[F?"clientWidth":"clientHeight"]:0,oe=Q((ne,be)=>{L.current&&F&&(L.current.style.position="absolute"),ne.style[B]=k,h&&h(ne,be)}),N=Q((ne,be)=>{const fe=Y();L.current&&F&&(L.current.style.position="");const{duration:De,easing:Ce}=ud({style:A,timeout:C,easing:d},{mode:"enter"});if(C==="auto"){const Se=$.transitions.getAutoHeightDuration(fe);ne.style.transitionDuration=`${Se}ms`,H.current=Se}else ne.style.transitionDuration=typeof De=="string"?De:`${De}ms`;ne.style[B]=`${fe}px`,ne.style.transitionTimingFunction=Ce,g&&g(ne,be)}),K=Q((ne,be)=>{ne.style[B]="auto",y&&y(ne,be)}),X=Q(ne=>{ne.style[B]=`${Y()}px`,b&&b(ne)}),P=Q(S),J=Q(ne=>{const be=Y(),{duration:fe,easing:De}=ud({style:A,timeout:C,easing:d},{mode:"exit"});if(C==="auto"){const Ce=$.transitions.getAutoHeightDuration(be);ne.style.transitionDuration=`${Ce}ms`,H.current=Ce}else ne.style.transitionDuration=typeof fe=="string"?fe:`${fe}ms`;ne.style[B]=k,ne.style.transitionTimingFunction=De,T&&T(ne)}),se=ne=>{C==="auto"&&z.start(H.current||0,ne),o&&o(G.current,ne)};return v.jsx(D,{in:p,onEnter:oe,onEntered:K,onEntering:N,onExit:X,onExited:P,onExiting:J,addEndListener:se,nodeRef:G,timeout:C==="auto"?null:C,...I,children:(ne,{ownerState:be,...fe})=>v.jsx(yG,{as:u,className:Je(j.root,i,{entered:j.entered,exited:!p&&k==="0px"&&j.hidden}[ne]),style:{[F?"minWidth":"minHeight"]:k,...A},ref:U,ownerState:{...O,state:ne},...fe,children:v.jsx(bG,{ownerState:{...O,state:ne},className:j.wrapper,ref:L,children:v.jsx(vG,{ownerState:{...O,state:ne},className:j.wrapperInner,children:a})})})})});Qy&&(Qy.muiSupportAuto=!0);function EG(e){return kt("MuiPaper",e)}Dt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const xG=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return It(a,EG,o)},SG=Ue("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(fn(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),ss=_.forwardRef(function(t,n){const r=wt({props:t,name:"MuiPaper"}),o=Rl(),{className:a,component:i="div",elevation:l=1,square:u=!1,variant:d="elevation",...p}=r,h={...r,component:i,elevation:l,square:u,variant:d},y=xG(h);return v.jsx(SG,{as:i,ownerState:h,className:Je(y.root,a),ref:n,...p,style:{...d==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[l],...o.vars&&{"--Paper-overlay":o.vars.overlays?.[l]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Zo("#fff",sS(l))}, ${Zo("#fff",sS(l))})`}},...p.style}})});function Ky(e){return typeof e=="string"}function uP(e,t,n){return e===void 0||Ky(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function dP(e,t,n){return typeof e=="function"?e(t,n):e}function Xy(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function eD(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function fP(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const g=Je(n?.className,a,o?.className,r?.className),b={...n?.style,...o?.style,...r?.style},S={...n,...o,...r};return g.length>0&&(S.className=g),Object.keys(b).length>0&&(S.style=b),{props:S,internalRef:void 0}}const i=Xy({...o,...r}),l=eD(r),u=eD(o),d=t(i),p=Je(d?.className,n?.className,a,o?.className,r?.className),h={...d?.style,...n?.style,...o?.style,...r?.style},y={...d,...n,...u,...l};return p.length>0&&(y.className=p),Object.keys(h).length>0&&(y.style=h),{props:y,internalRef:d.ref}}function dn(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,internalForwardedProps:i,shouldForwardComponentProp:l=!1,...u}=t,{component:d,slots:p={[e]:void 0},slotProps:h={[e]:void 0},...y}=a,g=p[e]||r,b=dP(h[e],o),{props:{component:S,...T},internalRef:E}=fP({className:n,...u,externalForwardedProps:e==="root"?y:void 0,externalSlotProps:b}),A=kr(E,b?.ref,t.ref),C=e==="root"?S||d:S,D=uP(g,{...e==="root"&&!d&&!p[e]&&i,...e!=="root"&&!p[e]&&i,...T,...C&&!l&&{as:C},...C&&l&&{component:C},ref:A},o);return[g,D]}function Zy(e){try{return e.matches(":focus-visible")}catch{}return!1}class Jy{static create(){return new Jy}static use(){const t=lP(Jy.create).current,[n,r]=_.useState(!1);return t.shouldMount=n,t.setShouldMount=r,_.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=CG(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function TG(){return Jy.use()}function CG(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function _G(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:i,in:l,onExited:u,timeout:d}=e,[p,h]=_.useState(!1),y=Je(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},b=Je(n.child,p&&n.childLeaving,r&&n.childPulsate);return!l&&!p&&h(!0),_.useEffect(()=>{if(!l&&u!=null){const S=setTimeout(u,d);return()=>{clearTimeout(S)}}},[u,l,d]),v.jsx("span",{className:y,style:g,children:v.jsx("span",{className:b})})}const ga=Dt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),dS=550,AG=80,kG=wi`
|
|
112
|
-
0% {
|
|
113
|
-
transform: scale(0);
|
|
114
|
-
opacity: 0.1;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
100% {
|
|
118
|
-
transform: scale(1);
|
|
119
|
-
opacity: 0.3;
|
|
120
|
-
}
|
|
121
|
-
`,wG=wi`
|
|
122
|
-
0% {
|
|
123
|
-
opacity: 1;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
100% {
|
|
127
|
-
opacity: 0;
|
|
128
|
-
}
|
|
129
|
-
`,RG=wi`
|
|
130
|
-
0% {
|
|
131
|
-
transform: scale(1);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
50% {
|
|
135
|
-
transform: scale(0.92);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
100% {
|
|
139
|
-
transform: scale(1);
|
|
140
|
-
}
|
|
141
|
-
`,DG=Ue("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),IG=Ue(_G,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
142
|
-
opacity: 0;
|
|
143
|
-
position: absolute;
|
|
144
|
-
|
|
145
|
-
&.${ga.rippleVisible} {
|
|
146
|
-
opacity: 0.3;
|
|
147
|
-
transform: scale(1);
|
|
148
|
-
animation-name: ${kG};
|
|
149
|
-
animation-duration: ${dS}ms;
|
|
150
|
-
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
&.${ga.ripplePulsate} {
|
|
154
|
-
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
& .${ga.child} {
|
|
158
|
-
opacity: 1;
|
|
159
|
-
display: block;
|
|
160
|
-
width: 100%;
|
|
161
|
-
height: 100%;
|
|
162
|
-
border-radius: 50%;
|
|
163
|
-
background-color: currentColor;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
& .${ga.childLeaving} {
|
|
167
|
-
opacity: 0;
|
|
168
|
-
animation-name: ${wG};
|
|
169
|
-
animation-duration: ${dS}ms;
|
|
170
|
-
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
& .${ga.childPulsate} {
|
|
174
|
-
position: absolute;
|
|
175
|
-
/* @noflip */
|
|
176
|
-
left: 0px;
|
|
177
|
-
top: 0;
|
|
178
|
-
animation-name: ${RG};
|
|
179
|
-
animation-duration: 2500ms;
|
|
180
|
-
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
181
|
-
animation-iteration-count: infinite;
|
|
182
|
-
animation-delay: 200ms;
|
|
183
|
-
}
|
|
184
|
-
`,OG=_.forwardRef(function(t,n){const r=wt({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i,...l}=r,[u,d]=_.useState([]),p=_.useRef(0),h=_.useRef(null);_.useEffect(()=>{h.current&&(h.current(),h.current=null)},[u]);const y=_.useRef(!1),g=ll(),b=_.useRef(null),S=_.useRef(null),T=_.useCallback(D=>{const{pulsate:I,rippleX:O,rippleY:j,rippleSize:$,cb:z}=D;d(L=>[...L,v.jsx(IG,{classes:{ripple:Je(a.ripple,ga.ripple),rippleVisible:Je(a.rippleVisible,ga.rippleVisible),ripplePulsate:Je(a.ripplePulsate,ga.ripplePulsate),child:Je(a.child,ga.child),childLeaving:Je(a.childLeaving,ga.childLeaving),childPulsate:Je(a.childPulsate,ga.childPulsate)},timeout:dS,pulsate:I,rippleX:O,rippleY:j,rippleSize:$},p.current)]),p.current+=1,h.current=z},[a]),E=_.useCallback((D={},I={},O=()=>{})=>{const{pulsate:j=!1,center:$=o||I.pulsate,fakeElement:z=!1}=I;if(D?.type==="mousedown"&&y.current){y.current=!1;return}D?.type==="touchstart"&&(y.current=!0);const L=z?null:S.current,H=L?L.getBoundingClientRect():{width:0,height:0,left:0,top:0};let k,F,B;if($||D===void 0||D.clientX===0&&D.clientY===0||!D.clientX&&!D.touches)k=Math.round(H.width/2),F=Math.round(H.height/2);else{const{clientX:G,clientY:U}=D.touches&&D.touches.length>0?D.touches[0]:D;k=Math.round(G-H.left),F=Math.round(U-H.top)}if($)B=Math.sqrt((2*H.width**2+H.height**2)/3),B%2===0&&(B+=1);else{const G=Math.max(Math.abs((L?L.clientWidth:0)-k),k)*2+2,U=Math.max(Math.abs((L?L.clientHeight:0)-F),F)*2+2;B=Math.sqrt(G**2+U**2)}D?.touches?b.current===null&&(b.current=()=>{T({pulsate:j,rippleX:k,rippleY:F,rippleSize:B,cb:O})},g.start(AG,()=>{b.current&&(b.current(),b.current=null)})):T({pulsate:j,rippleX:k,rippleY:F,rippleSize:B,cb:O})},[o,T,g]),A=_.useCallback(()=>{E({},{pulsate:!0})},[E]),C=_.useCallback((D,I)=>{if(g.clear(),D?.type==="touchend"&&b.current){b.current(),b.current=null,g.start(0,()=>{C(D,I)});return}b.current=null,d(O=>O.length>0?O.slice(1):O),h.current=I},[g]);return _.useImperativeHandle(n,()=>({pulsate:A,start:E,stop:C}),[A,E,C]),v.jsx(DG,{className:Je(ga.root,a.root,i),ref:S,...l,children:v.jsx(yC,{component:null,exit:!0,children:u})})});function NG(e){return kt("MuiButtonBase",e)}const PG=Dt("MuiButtonBase",["root","disabled","focusVisible"]),LG=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=It({root:["root",t&&"disabled",n&&"focusVisible"]},NG,o);return n&&r&&(i.root+=` ${r}`),i},MG=Ue("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${PG.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),wc=_.forwardRef(function(t,n){const r=wt({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:l,component:u="button",disabled:d=!1,disableRipple:p=!1,disableTouchRipple:h=!1,focusRipple:y=!1,focusVisibleClassName:g,LinkComponent:b="a",onBlur:S,onClick:T,onContextMenu:E,onDragLeave:A,onFocus:C,onFocusVisible:D,onKeyDown:I,onKeyUp:O,onMouseDown:j,onMouseLeave:$,onMouseUp:z,onTouchEnd:L,onTouchMove:H,onTouchStart:k,tabIndex:F=0,TouchRippleProps:B,touchRippleRef:G,type:U,...Q}=r,Y=_.useRef(null),oe=TG(),N=kr(oe.ref,G),[K,X]=_.useState(!1);d&&K&&X(!1),_.useImperativeHandle(o,()=>({focusVisible:()=>{X(!0),Y.current.focus()}}),[]);const P=oe.shouldMount&&!p&&!d;_.useEffect(()=>{K&&y&&!p&&oe.pulsate()},[p,y,K,oe]);const J=Xi(oe,"start",j,h),se=Xi(oe,"stop",E,h),ne=Xi(oe,"stop",A,h),be=Xi(oe,"stop",z,h),fe=Xi(oe,"stop",Be=>{K&&Be.preventDefault(),$&&$(Be)},h),De=Xi(oe,"start",k,h),Ce=Xi(oe,"stop",L,h),Se=Xi(oe,"stop",H,h),ze=Xi(oe,"stop",Be=>{Zy(Be.target)||X(!1),S&&S(Be)},!1),Ne=Ba(Be=>{Y.current||(Y.current=Be.currentTarget),Zy(Be.target)&&(X(!0),D&&D(Be)),C&&C(Be)}),_e=()=>{const Be=Y.current;return u&&u!=="button"&&!(Be.tagName==="A"&&Be.href)},Ct=Ba(Be=>{y&&!Be.repeat&&K&&Be.key===" "&&oe.stop(Be,()=>{oe.start(Be)}),Be.target===Be.currentTarget&&_e()&&Be.key===" "&&Be.preventDefault(),I&&I(Be),Be.target===Be.currentTarget&&_e()&&Be.key==="Enter"&&!d&&(Be.preventDefault(),T&&T(Be))}),At=Ba(Be=>{y&&Be.key===" "&&K&&!Be.defaultPrevented&&oe.stop(Be,()=>{oe.pulsate(Be)}),O&&O(Be),T&&Be.target===Be.currentTarget&&_e()&&Be.key===" "&&!Be.defaultPrevented&&T(Be)});let qe=u;qe==="button"&&(Q.href||Q.to)&&(qe=b);const Rt={};qe==="button"?(Rt.type=U===void 0?"button":U,Rt.disabled=d):(!Q.href&&!Q.to&&(Rt.role="button"),d&&(Rt["aria-disabled"]=d));const ot=kr(n,Y),tt={...r,centerRipple:a,component:u,disabled:d,disableRipple:p,disableTouchRipple:h,focusRipple:y,tabIndex:F,focusVisible:K},je=LG(tt);return v.jsxs(MG,{as:qe,className:Je(je.root,l),ownerState:tt,onBlur:ze,onClick:T,onContextMenu:se,onFocus:Ne,onKeyDown:Ct,onKeyUp:At,onMouseDown:J,onMouseLeave:fe,onMouseUp:be,onDragLeave:ne,onTouchEnd:Ce,onTouchMove:Se,onTouchStart:De,ref:ot,tabIndex:d?-1:F,type:U,...Rt,...Q,children:[i,P?v.jsx(OG,{ref:N,center:a,...B}):null]})});function Xi(e,t,n,r=!1){return Ba(o=>(n&&n(o),r||e[t](o),!0))}function FG(e){return typeof e.main=="string"}function jG(e,t=[]){if(!FG(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function yi(e=[]){return([,t])=>t&&jG(t,e)}function BG(e){return kt("MuiCircularProgress",e)}Dt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ks=44,fS=wi`
|
|
185
|
-
0% {
|
|
186
|
-
transform: rotate(0deg);
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
100% {
|
|
190
|
-
transform: rotate(360deg);
|
|
191
|
-
}
|
|
192
|
-
`,pS=wi`
|
|
193
|
-
0% {
|
|
194
|
-
stroke-dasharray: 1px, 200px;
|
|
195
|
-
stroke-dashoffset: 0;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
50% {
|
|
199
|
-
stroke-dasharray: 100px, 200px;
|
|
200
|
-
stroke-dashoffset: -15px;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
100% {
|
|
204
|
-
stroke-dasharray: 1px, 200px;
|
|
205
|
-
stroke-dashoffset: -126px;
|
|
206
|
-
}
|
|
207
|
-
`,UG=typeof fS!="string"?Gh`
|
|
208
|
-
animation: ${fS} 1.4s linear infinite;
|
|
209
|
-
`:null,zG=typeof pS!="string"?Gh`
|
|
210
|
-
animation: ${pS} 1.4s ease-in-out infinite;
|
|
211
|
-
`:null,HG=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,a={root:["root",n,`color${Ve(r)}`],svg:["svg"],circle:["circle",`circle${Ve(n)}`,o&&"circleDisableShrink"]};return It(a,BG,t)},$G=Ue("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Ve(n.color)}`]]}})(fn(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:UG||{animation:`${fS} 1.4s linear infinite`}},...Object.entries(e.palette).filter(yi()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),GG=Ue("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),VG=Ue("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Ve(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(fn(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:zG||{animation:`${pS} 1.4s ease-in-out infinite`}}]}))),bC=_.forwardRef(function(t,n){const r=wt({props:t,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:i=!1,size:l=40,style:u,thickness:d=3.6,value:p=0,variant:h="indeterminate",...y}=r,g={...r,color:a,disableShrink:i,size:l,thickness:d,value:p,variant:h},b=HG(g),S={},T={},E={};if(h==="determinate"){const A=2*Math.PI*((Ks-d)/2);S.strokeDasharray=A.toFixed(3),E["aria-valuenow"]=Math.round(p),S.strokeDashoffset=`${((100-p)/100*A).toFixed(3)}px`,T.transform="rotate(-90deg)"}return v.jsx($G,{className:Je(b.root,o),style:{width:l,height:l,...T,...u},ownerState:g,ref:n,role:"progressbar",...E,...y,children:v.jsx(GG,{className:b.svg,ownerState:g,viewBox:`${Ks/2} ${Ks/2} ${Ks} ${Ks}`,children:v.jsx(VG,{className:b.circle,style:S,ownerState:g,cx:Ks,cy:Ks,r:(Ks-d)/2,fill:"none",strokeWidth:d})})})});function qG(e){return kt("MuiIconButton",e)}const tD=Dt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),WG=e=>{const{classes:t,disabled:n,color:r,edge:o,size:a,loading:i}=e,l={root:["root",i&&"loading",n&&"disabled",r!=="default"&&`color${Ve(r)}`,o&&`edge${Ve(o)}`,`size${Ve(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return It(l,qG,t)},YG=Ue(wc,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${Ve(n.color)}`],n.edge&&t[`edge${Ve(n.edge)}`],t[`size${Ve(n.size)}`]]}})(fn(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),fn(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(yi()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(yi()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${tD.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${tD.loading}`]:{color:"transparent"}}))),QG=Ue("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Gn=_.forwardRef(function(t,n){const r=wt({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:l="default",disabled:u=!1,disableFocusRipple:d=!1,size:p="medium",id:h,loading:y=null,loadingIndicator:g,...b}=r,S=Wh(h),T=g??v.jsx(bC,{"aria-labelledby":S,color:"inherit",size:16}),E={...r,edge:o,color:l,disabled:u,disableFocusRipple:d,loading:y,loadingIndicator:T,size:p},A=WG(E);return v.jsxs(YG,{id:y?S:h,className:Je(A.root,i),centerRipple:!0,focusRipple:!d,disabled:u||y,ref:n,...b,ownerState:E,children:[typeof y=="boolean"&&v.jsx("span",{className:A.loadingWrapper,style:{display:"contents"},children:v.jsx(QG,{className:A.loadingIndicator,ownerState:E,children:y&&T})}),a]})});function KG(e){return kt("MuiTypography",e)}const nD=Dt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),XG={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},ZG=J$(),JG=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e,l={root:["root",a,e.align!=="inherit"&&`align${Ve(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return It(l,KG,i)},eV=Ue("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Ve(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(fn(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(yi()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${Ve(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),rD={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Ze=_.forwardRef(function(t,n){const{color:r,...o}=wt({props:t,name:"MuiTypography"}),a=!XG[r],i=ZG({...o,...a&&{color:r}}),{align:l="inherit",className:u,component:d,gutterBottom:p=!1,noWrap:h=!1,paragraph:y=!1,variant:g="body1",variantMapping:b=rD,...S}=i,T={...i,align:l,color:r,className:u,component:d,gutterBottom:p,noWrap:h,paragraph:y,variant:g,variantMapping:b},E=d||(y?"p":b[g]||rD[g])||"span",A=JG(T);return v.jsx(eV,{as:E,ref:n,className:Je(A.root,u),...S,ownerState:T,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...S.style}})});var Io="top",wa="bottom",Ra="right",Oo="left",vC="auto",Yh=[Io,wa,Ra,Oo],dd="start",dh="end",tV="clippingParents",pP="viewport",Kf="popper",nV="reference",oD=Yh.reduce(function(e,t){return e.concat([t+"-"+dd,t+"-"+dh])},[]),hP=[].concat(Yh,[vC]).reduce(function(e,t){return e.concat([t,t+"-"+dd,t+"-"+dh])},[]),rV="beforeRead",oV="read",aV="afterRead",iV="beforeMain",sV="main",lV="afterMain",cV="beforeWrite",uV="write",dV="afterWrite",fV=[rV,oV,aV,iV,sV,lV,cV,uV,dV];function _i(e){return e?(e.nodeName||"").toLowerCase():null}function na(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Rc(e){var t=na(e).Element;return e instanceof t||e instanceof Element}function _a(e){var t=na(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function EC(e){if(typeof ShadowRoot>"u")return!1;var t=na(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function pV(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},a=t.elements[n];!_a(a)||!_i(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(i){var l=o[i];l===!1?a.removeAttribute(i):a.setAttribute(i,l===!0?"":l)}))})}function hV(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],a=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=i.reduce(function(u,d){return u[d]="",u},{});!_a(o)||!_i(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(u){o.removeAttribute(u)}))})}}const mV={name:"applyStyles",enabled:!0,phase:"write",fn:pV,effect:hV,requires:["computeStyles"]};function Si(e){return e.split("-")[0]}var vc=Math.max,e0=Math.min,fd=Math.round;function hS(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function mP(){return!/^((?!chrome|android).)*safari/i.test(hS())}function pd(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&_a(e)&&(o=e.offsetWidth>0&&fd(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&fd(r.height)/e.offsetHeight||1);var i=Rc(e)?na(e):window,l=i.visualViewport,u=!mP()&&n,d=(r.left+(u&&l?l.offsetLeft:0))/o,p=(r.top+(u&&l?l.offsetTop:0))/a,h=r.width/o,y=r.height/a;return{width:h,height:y,top:p,right:d+h,bottom:p+y,left:d,x:d,y:p}}function xC(e){var t=pd(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function gP(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&EC(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function us(e){return na(e).getComputedStyle(e)}function gV(e){return["table","td","th"].indexOf(_i(e))>=0}function Il(e){return((Rc(e)?e.ownerDocument:e.document)||window.document).documentElement}function sb(e){return _i(e)==="html"?e:e.assignedSlot||e.parentNode||(EC(e)?e.host:null)||Il(e)}function aD(e){return!_a(e)||us(e).position==="fixed"?null:e.offsetParent}function yV(e){var t=/firefox/i.test(hS()),n=/Trident/i.test(hS());if(n&&_a(e)){var r=us(e);if(r.position==="fixed")return null}var o=sb(e);for(EC(o)&&(o=o.host);_a(o)&&["html","body"].indexOf(_i(o))<0;){var a=us(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function Qh(e){for(var t=na(e),n=aD(e);n&&gV(n)&&us(n).position==="static";)n=aD(n);return n&&(_i(n)==="html"||_i(n)==="body"&&us(n).position==="static")?t:n||yV(e)||t}function SC(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Pp(e,t,n){return vc(e,e0(t,n))}function bV(e,t,n){var r=Pp(e,t,n);return r>n?n:r}function yP(){return{top:0,right:0,bottom:0,left:0}}function bP(e){return Object.assign({},yP(),e)}function vP(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var vV=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,bP(typeof t!="number"?t:vP(t,Yh))};function EV(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,l=Si(n.placement),u=SC(l),d=[Oo,Ra].indexOf(l)>=0,p=d?"height":"width";if(!(!a||!i)){var h=vV(o.padding,n),y=xC(a),g=u==="y"?Io:Oo,b=u==="y"?wa:Ra,S=n.rects.reference[p]+n.rects.reference[u]-i[u]-n.rects.popper[p],T=i[u]-n.rects.reference[u],E=Qh(a),A=E?u==="y"?E.clientHeight||0:E.clientWidth||0:0,C=S/2-T/2,D=h[g],I=A-y[p]-h[b],O=A/2-y[p]/2+C,j=Pp(D,O,I),$=u;n.modifiersData[r]=(t={},t[$]=j,t.centerOffset=j-O,t)}}function xV(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||gP(t.elements.popper,o)&&(t.elements.arrow=o))}const SV={name:"arrow",enabled:!0,phase:"main",fn:EV,effect:xV,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function hd(e){return e.split("-")[1]}var TV={top:"auto",right:"auto",bottom:"auto",left:"auto"};function CV(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:fd(n*o)/o||0,y:fd(r*o)/o||0}}function iD(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,l=e.position,u=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,h=e.isFixed,y=i.x,g=y===void 0?0:y,b=i.y,S=b===void 0?0:b,T=typeof p=="function"?p({x:g,y:S}):{x:g,y:S};g=T.x,S=T.y;var E=i.hasOwnProperty("x"),A=i.hasOwnProperty("y"),C=Oo,D=Io,I=window;if(d){var O=Qh(n),j="clientHeight",$="clientWidth";if(O===na(n)&&(O=Il(n),us(O).position!=="static"&&l==="absolute"&&(j="scrollHeight",$="scrollWidth")),O=O,o===Io||(o===Oo||o===Ra)&&a===dh){D=wa;var z=h&&O===I&&I.visualViewport?I.visualViewport.height:O[j];S-=z-r.height,S*=u?1:-1}if(o===Oo||(o===Io||o===wa)&&a===dh){C=Ra;var L=h&&O===I&&I.visualViewport?I.visualViewport.width:O[$];g-=L-r.width,g*=u?1:-1}}var H=Object.assign({position:l},d&&TV),k=p===!0?CV({x:g,y:S},na(n)):{x:g,y:S};if(g=k.x,S=k.y,u){var F;return Object.assign({},H,(F={},F[D]=A?"0":"",F[C]=E?"0":"",F.transform=(I.devicePixelRatio||1)<=1?"translate("+g+"px, "+S+"px)":"translate3d("+g+"px, "+S+"px, 0)",F))}return Object.assign({},H,(t={},t[D]=A?S+"px":"",t[C]=E?g+"px":"",t.transform="",t))}function _V(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,a=n.adaptive,i=a===void 0?!0:a,l=n.roundOffsets,u=l===void 0?!0:l,d={placement:Si(t.placement),variation:hd(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,iD(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,iD(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const AV={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_V,data:{}};var Pg={passive:!0};function kV(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,i=r.resize,l=i===void 0?!0:i,u=na(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach(function(p){p.addEventListener("scroll",n.update,Pg)}),l&&u.addEventListener("resize",n.update,Pg),function(){a&&d.forEach(function(p){p.removeEventListener("scroll",n.update,Pg)}),l&&u.removeEventListener("resize",n.update,Pg)}}const wV={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:kV,data:{}};var RV={left:"right",right:"left",bottom:"top",top:"bottom"};function gy(e){return e.replace(/left|right|bottom|top/g,function(t){return RV[t]})}var DV={start:"end",end:"start"};function sD(e){return e.replace(/start|end/g,function(t){return DV[t]})}function TC(e){var t=na(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function CC(e){return pd(Il(e)).left+TC(e).scrollLeft}function IV(e,t){var n=na(e),r=Il(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,u=0;if(o){a=o.width,i=o.height;var d=mP();(d||!d&&t==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}return{width:a,height:i,x:l+CC(e),y:u}}function OV(e){var t,n=Il(e),r=TC(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=vc(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=vc(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+CC(e),u=-r.scrollTop;return us(o||n).direction==="rtl"&&(l+=vc(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:u}}function _C(e){var t=us(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function EP(e){return["html","body","#document"].indexOf(_i(e))>=0?e.ownerDocument.body:_a(e)&&_C(e)?e:EP(sb(e))}function Lp(e,t){var n;t===void 0&&(t=[]);var r=EP(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=na(r),i=o?[a].concat(a.visualViewport||[],_C(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(Lp(sb(i)))}function mS(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function NV(e,t){var n=pd(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function lD(e,t,n){return t===pP?mS(IV(e,n)):Rc(t)?NV(t,n):mS(OV(Il(e)))}function PV(e){var t=Lp(sb(e)),n=["absolute","fixed"].indexOf(us(e).position)>=0,r=n&&_a(e)?Qh(e):e;return Rc(r)?t.filter(function(o){return Rc(o)&&gP(o,r)&&_i(o)!=="body"}):[]}function LV(e,t,n,r){var o=t==="clippingParents"?PV(e):[].concat(t),a=[].concat(o,[n]),i=a[0],l=a.reduce(function(u,d){var p=lD(e,d,r);return u.top=vc(p.top,u.top),u.right=e0(p.right,u.right),u.bottom=e0(p.bottom,u.bottom),u.left=vc(p.left,u.left),u},lD(e,i,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function xP(e){var t=e.reference,n=e.element,r=e.placement,o=r?Si(r):null,a=r?hd(r):null,i=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,u;switch(o){case Io:u={x:i,y:t.y-n.height};break;case wa:u={x:i,y:t.y+t.height};break;case Ra:u={x:t.x+t.width,y:l};break;case Oo:u={x:t.x-n.width,y:l};break;default:u={x:t.x,y:t.y}}var d=o?SC(o):null;if(d!=null){var p=d==="y"?"height":"width";switch(a){case dd:u[d]=u[d]-(t[p]/2-n[p]/2);break;case dh:u[d]=u[d]+(t[p]/2-n[p]/2);break}}return u}function fh(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,a=n.strategy,i=a===void 0?e.strategy:a,l=n.boundary,u=l===void 0?tV:l,d=n.rootBoundary,p=d===void 0?pP:d,h=n.elementContext,y=h===void 0?Kf:h,g=n.altBoundary,b=g===void 0?!1:g,S=n.padding,T=S===void 0?0:S,E=bP(typeof T!="number"?T:vP(T,Yh)),A=y===Kf?nV:Kf,C=e.rects.popper,D=e.elements[b?A:y],I=LV(Rc(D)?D:D.contextElement||Il(e.elements.popper),u,p,i),O=pd(e.elements.reference),j=xP({reference:O,element:C,placement:o}),$=mS(Object.assign({},C,j)),z=y===Kf?$:O,L={top:I.top-z.top+E.top,bottom:z.bottom-I.bottom+E.bottom,left:I.left-z.left+E.left,right:z.right-I.right+E.right},H=e.modifiersData.offset;if(y===Kf&&H){var k=H[o];Object.keys(L).forEach(function(F){var B=[Ra,wa].indexOf(F)>=0?1:-1,G=[Io,wa].indexOf(F)>=0?"y":"x";L[F]+=k[G]*B})}return L}function MV(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,d=u===void 0?hP:u,p=hd(r),h=p?l?oD:oD.filter(function(b){return hd(b)===p}):Yh,y=h.filter(function(b){return d.indexOf(b)>=0});y.length===0&&(y=h);var g=y.reduce(function(b,S){return b[S]=fh(e,{placement:S,boundary:o,rootBoundary:a,padding:i})[Si(S)],b},{});return Object.keys(g).sort(function(b,S){return g[b]-g[S]})}function FV(e){if(Si(e)===vC)return[];var t=gy(e);return[sD(e),t,sD(t)]}function jV(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,i=n.altAxis,l=i===void 0?!0:i,u=n.fallbackPlacements,d=n.padding,p=n.boundary,h=n.rootBoundary,y=n.altBoundary,g=n.flipVariations,b=g===void 0?!0:g,S=n.allowedAutoPlacements,T=t.options.placement,E=Si(T),A=E===T,C=u||(A||!b?[gy(T)]:FV(T)),D=[T].concat(C).reduce(function(J,se){return J.concat(Si(se)===vC?MV(t,{placement:se,boundary:p,rootBoundary:h,padding:d,flipVariations:b,allowedAutoPlacements:S}):se)},[]),I=t.rects.reference,O=t.rects.popper,j=new Map,$=!0,z=D[0],L=0;L<D.length;L++){var H=D[L],k=Si(H),F=hd(H)===dd,B=[Io,wa].indexOf(k)>=0,G=B?"width":"height",U=fh(t,{placement:H,boundary:p,rootBoundary:h,altBoundary:y,padding:d}),Q=B?F?Ra:Oo:F?wa:Io;I[G]>O[G]&&(Q=gy(Q));var Y=gy(Q),oe=[];if(a&&oe.push(U[k]<=0),l&&oe.push(U[Q]<=0,U[Y]<=0),oe.every(function(J){return J})){z=H,$=!1;break}j.set(H,oe)}if($)for(var N=b?3:1,K=function(se){var ne=D.find(function(be){var fe=j.get(be);if(fe)return fe.slice(0,se).every(function(De){return De})});if(ne)return z=ne,"break"},X=N;X>0;X--){var P=K(X);if(P==="break")break}t.placement!==z&&(t.modifiersData[r]._skip=!0,t.placement=z,t.reset=!0)}}const BV={name:"flip",enabled:!0,phase:"main",fn:jV,requiresIfExists:["offset"],data:{_skip:!1}};function cD(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function uD(e){return[Io,Ra,wa,Oo].some(function(t){return e[t]>=0})}function UV(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=fh(t,{elementContext:"reference"}),l=fh(t,{altBoundary:!0}),u=cD(i,r),d=cD(l,o,a),p=uD(u),h=uD(d);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const zV={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:UV};function HV(e,t,n){var r=Si(e),o=[Oo,Io].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=a[0],l=a[1];return i=i||0,l=(l||0)*o,[Oo,Ra].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}function $V(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,i=hP.reduce(function(p,h){return p[h]=HV(h,t.rects,a),p},{}),l=i[t.placement],u=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=i}const GV={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:$V};function VV(e){var t=e.state,n=e.name;t.modifiersData[n]=xP({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const qV={name:"popperOffsets",enabled:!0,phase:"read",fn:VV,data:{}};function WV(e){return e==="x"?"y":"x"}function YV(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=o===void 0?!0:o,i=n.altAxis,l=i===void 0?!1:i,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.padding,y=n.tether,g=y===void 0?!0:y,b=n.tetherOffset,S=b===void 0?0:b,T=fh(t,{boundary:u,rootBoundary:d,padding:h,altBoundary:p}),E=Si(t.placement),A=hd(t.placement),C=!A,D=SC(E),I=WV(D),O=t.modifiersData.popperOffsets,j=t.rects.reference,$=t.rects.popper,z=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,L=typeof z=="number"?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),H=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(O){if(a){var F,B=D==="y"?Io:Oo,G=D==="y"?wa:Ra,U=D==="y"?"height":"width",Q=O[D],Y=Q+T[B],oe=Q-T[G],N=g?-$[U]/2:0,K=A===dd?j[U]:$[U],X=A===dd?-$[U]:-j[U],P=t.elements.arrow,J=g&&P?xC(P):{width:0,height:0},se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:yP(),ne=se[B],be=se[G],fe=Pp(0,j[U],J[U]),De=C?j[U]/2-N-fe-ne-L.mainAxis:K-fe-ne-L.mainAxis,Ce=C?-j[U]/2+N+fe+be+L.mainAxis:X+fe+be+L.mainAxis,Se=t.elements.arrow&&Qh(t.elements.arrow),ze=Se?D==="y"?Se.clientTop||0:Se.clientLeft||0:0,Ne=(F=H?.[D])!=null?F:0,_e=Q+De-Ne-ze,Ct=Q+Ce-Ne,At=Pp(g?e0(Y,_e):Y,Q,g?vc(oe,Ct):oe);O[D]=At,k[D]=At-Q}if(l){var qe,Rt=D==="x"?Io:Oo,ot=D==="x"?wa:Ra,tt=O[I],je=I==="y"?"height":"width",Be=tt+T[Rt],Ut=tt-T[ot],Bn=[Io,Oo].indexOf(E)!==-1,Ot=(qe=H?.[I])!=null?qe:0,de=Bn?Be:tt-j[je]-$[je]-Ot+L.altAxis,ye=Bn?tt+j[je]+$[je]-Ot-L.altAxis:Ut,We=g&&Bn?bV(de,tt,ye):Pp(g?de:Be,tt,g?ye:Ut);O[I]=We,k[I]=We-tt}t.modifiersData[r]=k}}const QV={name:"preventOverflow",enabled:!0,phase:"main",fn:YV,requiresIfExists:["offset"]};function KV(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function XV(e){return e===na(e)||!_a(e)?TC(e):KV(e)}function ZV(e){var t=e.getBoundingClientRect(),n=fd(t.width)/e.offsetWidth||1,r=fd(t.height)/e.offsetHeight||1;return n!==1||r!==1}function JV(e,t,n){n===void 0&&(n=!1);var r=_a(t),o=_a(t)&&ZV(t),a=Il(t),i=pd(e,o,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((_i(t)!=="body"||_C(a))&&(l=XV(t)),_a(t)?(u=pd(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=CC(a))),{x:i.left+l.scrollLeft-u.x,y:i.top+l.scrollTop-u.y,width:i.width,height:i.height}}function eq(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function o(a){n.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(l){if(!n.has(l)){var u=t.get(l);u&&o(u)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function tq(e){var t=eq(e);return fV.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function nq(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function rq(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var dD={placement:"bottom",modifiers:[],strategy:"absolute"};function fD(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function oq(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,a=o===void 0?dD:o;return function(l,u,d){d===void 0&&(d=a);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},dD,a),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},h=[],y=!1,g={state:p,setOptions:function(E){var A=typeof E=="function"?E(p.options):E;S(),p.options=Object.assign({},a,p.options,A),p.scrollParents={reference:Rc(l)?Lp(l):l.contextElement?Lp(l.contextElement):[],popper:Lp(u)};var C=tq(rq([].concat(r,p.options.modifiers)));return p.orderedModifiers=C.filter(function(D){return D.enabled}),b(),g.update()},forceUpdate:function(){if(!y){var E=p.elements,A=E.reference,C=E.popper;if(fD(A,C)){p.rects={reference:JV(A,Qh(C),p.options.strategy==="fixed"),popper:xC(C)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(L){return p.modifiersData[L.name]=Object.assign({},L.data)});for(var D=0;D<p.orderedModifiers.length;D++){if(p.reset===!0){p.reset=!1,D=-1;continue}var I=p.orderedModifiers[D],O=I.fn,j=I.options,$=j===void 0?{}:j,z=I.name;typeof O=="function"&&(p=O({state:p,options:$,name:z,instance:g})||p)}}}},update:nq(function(){return new Promise(function(T){g.forceUpdate(),T(p)})}),destroy:function(){S(),y=!0}};if(!fD(l,u))return g;g.setOptions(d).then(function(T){!y&&d.onFirstUpdate&&d.onFirstUpdate(T)});function b(){p.orderedModifiers.forEach(function(T){var E=T.name,A=T.options,C=A===void 0?{}:A,D=T.effect;if(typeof D=="function"){var I=D({state:p,name:E,instance:g,options:C}),O=function(){};h.push(I||O)}})}function S(){h.forEach(function(T){return T()}),h=[]}return g}}var aq=[wV,qV,AV,mV,GV,BV,QV,SV,zV],iq=oq({defaultModifiers:aq});function SP(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...a}=e,i=o?{}:dP(n,r),{props:l,internalRef:u}=fP({...a,externalSlotProps:i}),d=kr(u,i?.ref,e.additionalProps?.ref);return uP(t,{...l,ref:d},r)}function Id(e){return parseInt(_.version,10)>=19?e?.props?.ref||null:e?.ref||null}function sq(e){return typeof e=="function"?e():e}const TP=_.forwardRef(function(t,n){const{children:r,container:o,disablePortal:a=!1}=t,[i,l]=_.useState(null),u=kr(_.isValidElement(r)?Id(r):null,n);if(Ci(()=>{a||l(sq(o)||document.body)},[o,a]),Ci(()=>{if(i&&!a)return XR(n,i),()=>{XR(n,null)}},[n,i,a]),a){if(_.isValidElement(r)){const d={ref:u};return _.cloneElement(r,d)}return r}return i&&zh.createPortal(r,i)});function lq(e){return kt("MuiPopper",e)}Dt("MuiPopper",["root"]);function cq(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function gS(e){return typeof e=="function"?e():e}function uq(e){return e.nodeType!==void 0}const dq=e=>{const{classes:t}=e;return It({root:["root"]},lq,t)},fq={},pq=_.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:a,disablePortal:i,modifiers:l,open:u,placement:d,popperOptions:p,popperRef:h,slotProps:y={},slots:g={},TransitionProps:b,ownerState:S,...T}=t,E=_.useRef(null),A=kr(E,n),C=_.useRef(null),D=kr(C,h),I=_.useRef(D);Ci(()=>{I.current=D},[D]),_.useImperativeHandle(h,()=>C.current,[]);const O=cq(d,a),[j,$]=_.useState(O),[z,L]=_.useState(gS(r));_.useEffect(()=>{C.current&&C.current.forceUpdate()}),_.useEffect(()=>{r&&L(gS(r))},[r]),Ci(()=>{if(!z||!u)return;const G=Y=>{$(Y.placement)};let U=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Y})=>{G(Y)}}];l!=null&&(U=U.concat(l)),p&&p.modifiers!=null&&(U=U.concat(p.modifiers));const Q=iq(z,E.current,{placement:O,...p,modifiers:U});return I.current(Q),()=>{Q.destroy(),I.current(null)}},[z,i,l,u,p,O]);const H={placement:j};b!==null&&(H.TransitionProps=b);const k=dq(t),F=g.root??"div",B=SP({elementType:F,externalSlotProps:y.root,externalForwardedProps:T,additionalProps:{role:"tooltip",ref:A},ownerState:t,className:k.root});return v.jsx(F,{...B,children:typeof o=="function"?o(H):o})}),hq=_.forwardRef(function(t,n){const{anchorEl:r,children:o,container:a,direction:i="ltr",disablePortal:l=!1,keepMounted:u=!1,modifiers:d,open:p,placement:h="bottom",popperOptions:y=fq,popperRef:g,style:b,transition:S=!1,slotProps:T={},slots:E={},...A}=t,[C,D]=_.useState(!0),I=()=>{D(!1)},O=()=>{D(!0)};if(!u&&!p&&(!S||C))return null;let j;if(a)j=a;else if(r){const L=gS(r);j=L&&uq(L)?go(L).body:go(null).body}const $=!p&&u&&(!S||C)?"none":void 0,z=S?{in:p,onEnter:I,onExited:O}:void 0;return v.jsx(TP,{disablePortal:l,container:j,children:v.jsx(pq,{anchorEl:r,direction:i,disablePortal:l,modifiers:d,ref:n,open:S?!C:p,placement:h,popperOptions:y,popperRef:g,slotProps:T,slots:E,...A,style:{position:"fixed",top:0,left:0,display:$,...b},TransitionProps:z,children:o})})}),mq=Ue(hq,{name:"MuiPopper",slot:"Root"})({}),CP=_.forwardRef(function(t,n){const r=uC(),o=wt({props:t,name:"MuiPopper"}),{anchorEl:a,component:i,components:l,componentsProps:u,container:d,disablePortal:p,keepMounted:h,modifiers:y,open:g,placement:b,popperOptions:S,popperRef:T,transition:E,slots:A,slotProps:C,...D}=o,I=A?.root??l?.Root,O={anchorEl:a,container:d,disablePortal:p,keepMounted:h,modifiers:y,open:g,placement:b,popperOptions:S,popperRef:T,transition:E,...D};return v.jsx(mq,{as:i,direction:r?"rtl":"ltr",slots:{root:I},slotProps:C??u,...O,ref:n})}),gq=Dl(v.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function yq(e){return kt("MuiChip",e)}const Yt=Dt("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),bq=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:a,onDelete:i,clickable:l,variant:u}=e,d={root:["root",u,n&&"disabled",`size${Ve(r)}`,`color${Ve(o)}`,l&&"clickable",l&&`clickableColor${Ve(o)}`,i&&"deletable",i&&`deletableColor${Ve(o)}`,`${u}${Ve(o)}`],label:["label",`label${Ve(r)}`],avatar:["avatar",`avatar${Ve(r)}`,`avatarColor${Ve(o)}`],icon:["icon",`icon${Ve(r)}`,`iconColor${Ve(a)}`],deleteIcon:["deleteIcon",`deleteIcon${Ve(r)}`,`deleteIconColor${Ve(o)}`,`deleteIcon${Ve(u)}Color${Ve(o)}`]};return It(d,yq,t)},vq=Ue("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:a,onDelete:i,size:l,variant:u}=n;return[{[`& .${Yt.avatar}`]:t.avatar},{[`& .${Yt.avatar}`]:t[`avatar${Ve(l)}`]},{[`& .${Yt.avatar}`]:t[`avatarColor${Ve(r)}`]},{[`& .${Yt.icon}`]:t.icon},{[`& .${Yt.icon}`]:t[`icon${Ve(l)}`]},{[`& .${Yt.icon}`]:t[`iconColor${Ve(o)}`]},{[`& .${Yt.deleteIcon}`]:t.deleteIcon},{[`& .${Yt.deleteIcon}`]:t[`deleteIcon${Ve(l)}`]},{[`& .${Yt.deleteIcon}`]:t[`deleteIconColor${Ve(r)}`]},{[`& .${Yt.deleteIcon}`]:t[`deleteIcon${Ve(u)}Color${Ve(r)}`]},t.root,t[`size${Ve(l)}`],t[`color${Ve(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${Ve(r)})`],i&&t.deletable,i&&r!=="default"&&t[`deletableColor${Ve(r)}`],t[u],t[`${u}${Ve(r)}`]]}})(fn(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Yt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Yt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Yt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Yt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Yt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Yt.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Yt.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Yt.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Yt.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(yi(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Yt.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${Yt.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Yt.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Yt.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(yi(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Yt.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${Yt.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(yi(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Yt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Yt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Yt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Yt.avatar}`]:{marginLeft:4},[`& .${Yt.avatarSmall}`]:{marginLeft:2},[`& .${Yt.icon}`]:{marginLeft:4},[`& .${Yt.iconSmall}`]:{marginLeft:2},[`& .${Yt.deleteIcon}`]:{marginRight:5},[`& .${Yt.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(yi()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.alpha((e.vars||e).palette[n].main,.7)}`,[`&.${Yt.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${Yt.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${Yt.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),Eq=Ue("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Ve(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function pD(e){return e.key==="Backspace"||e.key==="Delete"}const yy=_.forwardRef(function(t,n){const r=wt({props:t,name:"MuiChip"}),{avatar:o,className:a,clickable:i,color:l="default",component:u,deleteIcon:d,disabled:p=!1,icon:h,label:y,onClick:g,onDelete:b,onKeyDown:S,onKeyUp:T,size:E="medium",variant:A="filled",tabIndex:C,skipFocusWhenDisabled:D=!1,slots:I={},slotProps:O={},...j}=r,$=_.useRef(null),z=kr($,n),L=ne=>{ne.stopPropagation(),b&&b(ne)},H=ne=>{ne.currentTarget===ne.target&&pD(ne)&&ne.preventDefault(),S&&S(ne)},k=ne=>{ne.currentTarget===ne.target&&b&&pD(ne)&&b(ne),T&&T(ne)},F=i!==!1&&g?!0:i,B=F||b?wc:u||"div",G={...r,component:B,disabled:p,size:E,color:l,iconColor:_.isValidElement(h)&&h.props.color||l,onDelete:!!b,clickable:F,variant:A},U=bq(G),Q=B===wc?{component:u||"div",focusVisibleClassName:U.focusVisible,...b&&{disableRipple:!0}}:{};let Y=null;b&&(Y=d&&_.isValidElement(d)?_.cloneElement(d,{className:Je(d.props.className,U.deleteIcon),onClick:L}):v.jsx(gq,{className:U.deleteIcon,onClick:L}));let oe=null;o&&_.isValidElement(o)&&(oe=_.cloneElement(o,{className:Je(U.avatar,o.props.className)}));let N=null;h&&_.isValidElement(h)&&(N=_.cloneElement(h,{className:Je(U.icon,h.props.className)}));const K={slots:I,slotProps:O},[X,P]=dn("root",{elementType:vq,externalForwardedProps:{...K,...j},ownerState:G,shouldForwardComponentProp:!0,ref:z,className:Je(U.root,a),additionalProps:{disabled:F&&p?!0:void 0,tabIndex:D&&p?-1:C,...Q},getSlotProps:ne=>({...ne,onClick:be=>{ne.onClick?.(be),g?.(be)},onKeyDown:be=>{ne.onKeyDown?.(be),H(be)},onKeyUp:be=>{ne.onKeyUp?.(be),k(be)}})}),[J,se]=dn("label",{elementType:Eq,externalForwardedProps:K,ownerState:G,className:U.label});return v.jsxs(X,{as:B,...P,children:[oe||N,v.jsx(J,{...se,children:y}),Y]})});function xq({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const _P=_.createContext(void 0);function AP(){return _.useContext(_P)}function hD(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function mD(e,t=!1){return e&&(hD(e.value)&&e.value!==""||t&&hD(e.defaultValue)&&e.defaultValue!=="")}function Sq(e){return e.startAdornment}const Tq={entering:{opacity:1},entered:{opacity:1}},yS=_.forwardRef(function(t,n){const r=Rl(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:l,easing:u,in:d,onEnter:p,onEntered:h,onEntering:y,onExit:g,onExited:b,onExiting:S,style:T,timeout:E=o,TransitionComponent:A=qa,...C}=t,D=_.useRef(null),I=kr(D,Id(l),n),O=B=>G=>{if(B){const U=D.current;G===void 0?B(U):B(U,G)}},j=O(y),$=O((B,G)=>{cP(B);const U=ud({style:T,timeout:E,easing:u},{mode:"enter"});B.style.webkitTransition=r.transitions.create("opacity",U),B.style.transition=r.transitions.create("opacity",U),p&&p(B,G)}),z=O(h),L=O(S),H=O(B=>{const G=ud({style:T,timeout:E,easing:u},{mode:"exit"});B.style.webkitTransition=r.transitions.create("opacity",G),B.style.transition=r.transitions.create("opacity",G),g&&g(B)}),k=O(b),F=B=>{a&&a(D.current,B)};return v.jsx(A,{appear:i,in:d,nodeRef:D,onEnter:$,onEntered:z,onEntering:j,onExit:H,onExited:k,onExiting:L,addEndListener:F,timeout:E,...C,children:(B,{ownerState:G,...U})=>_.cloneElement(l,{style:{opacity:0,visibility:B==="exited"&&!d?"hidden":void 0,...Tq[B],...T,...l.props.style},ref:I,...U})})});function Cq(e){return kt("MuiBackdrop",e)}Dt("MuiBackdrop",["root","invisible"]);const _q=e=>{const{classes:t,invisible:n}=e;return It({root:["root",n&&"invisible"]},Cq,t)},Aq=Ue("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),kP=_.forwardRef(function(t,n){const r=wt({props:t,name:"MuiBackdrop"}),{children:o,className:a,component:i="div",invisible:l=!1,open:u,components:d={},componentsProps:p={},slotProps:h={},slots:y={},TransitionComponent:g,transitionDuration:b,...S}=r,T={...r,component:i,invisible:l},E=_q(T),A={transition:g,root:d.Root,...y},C={...p,...h},D={component:i,slots:A,slotProps:C},[I,O]=dn("root",{elementType:Aq,externalForwardedProps:D,className:Je(E.root,a),ownerState:T}),[j,$]=dn("transition",{elementType:yS,externalForwardedProps:D,ownerState:T});return v.jsx(j,{in:u,timeout:b,...S,...$,children:v.jsx(I,{"aria-hidden":!0,...O,classes:E,ref:n,children:o})})}),kq=Dt("MuiBox",["root"]),wq=ab(),gt=j5({themeId:Ei,defaultTheme:wq,defaultClassName:kq.root,generateClassName:aC.generate});function Rq(e){return kt("MuiButton",e)}const Xl=Dt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),Dq=_.createContext({}),Iq=_.createContext(void 0),Oq=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,loading:i,loadingPosition:l,classes:u}=e,d={root:["root",i&&"loading",a,`${a}${Ve(t)}`,`size${Ve(o)}`,`${a}Size${Ve(o)}`,`color${Ve(t)}`,n&&"disableElevation",r&&"fullWidth",i&&`loadingPosition${Ve(l)}`],startIcon:["icon","startIcon",`iconSize${Ve(o)}`],endIcon:["icon","endIcon",`iconSize${Ve(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},p=It(d,Rq,u);return{...u,...p}},wP=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Nq=Ue(wc,{shouldForwardProp:e=>Bc(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Ve(n.color)}`],t[`size${Ve(n.size)}`],t[`${n.variant}Size${Ve(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(fn(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Xl.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Xl.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Xl.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Xl.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(yi()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Xl.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Xl.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Xl.loading}`]:{color:"transparent"}}}]}})),Pq=Ue("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${Ve(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...wP]})),Lq=Ue("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${Ve(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...wP]})),Mq=Ue("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),gD=Ue("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Fa=_.forwardRef(function(t,n){const r=_.useContext(Dq),o=_.useContext(Iq),a=uh(r,t),i=wt({props:a,name:"MuiButton"}),{children:l,color:u="primary",component:d="button",className:p,disabled:h=!1,disableElevation:y=!1,disableFocusRipple:g=!1,endIcon:b,focusVisibleClassName:S,fullWidth:T=!1,id:E,loading:A=null,loadingIndicator:C,loadingPosition:D="center",size:I="medium",startIcon:O,type:j,variant:$="text",...z}=i,L=Wh(E),H=C??v.jsx(bC,{"aria-labelledby":L,color:"inherit",size:16}),k={...i,color:u,component:d,disabled:h,disableElevation:y,disableFocusRipple:g,fullWidth:T,loading:A,loadingIndicator:H,loadingPosition:D,size:I,type:j,variant:$},F=Oq(k),B=(O||A&&D==="start")&&v.jsx(Pq,{className:F.startIcon,ownerState:k,children:O||v.jsx(gD,{className:F.loadingIconPlaceholder,ownerState:k})}),G=(b||A&&D==="end")&&v.jsx(Lq,{className:F.endIcon,ownerState:k,children:b||v.jsx(gD,{className:F.loadingIconPlaceholder,ownerState:k})}),U=o||"",Q=typeof A=="boolean"?v.jsx("span",{className:F.loadingWrapper,style:{display:"contents"},children:A&&v.jsx(Mq,{className:F.loadingIndicator,ownerState:k,children:H})}):null;return v.jsxs(Nq,{ownerState:k,className:Je(r.className,F.root,p,U),component:d,disabled:h||A,focusRipple:!g,focusVisibleClassName:Je(F.focusVisible,S),ref:n,type:j,id:A?L:E,...z,classes:F,children:[B,D!=="end"&&Q,l,D==="end"&&Q,G]})});function Fq(e){return kt("MuiCard",e)}Dt("MuiCard",["root"]);const jq=e=>{const{classes:t}=e;return It({root:["root"]},Fq,t)},Bq=Ue(ss,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),ed=_.forwardRef(function(t,n){const r=wt({props:t,name:"MuiCard"}),{className:o,raised:a=!1,...i}=r,l={...r,raised:a},u=jq(l);return v.jsx(Bq,{className:Je(u.root,o),elevation:a?8:void 0,ref:n,ownerState:l,...i})});function Uq(e){return kt("MuiCardContent",e)}Dt("MuiCardContent",["root"]);const zq=e=>{const{classes:t}=e;return It({root:["root"]},Uq,t)},Hq=Ue("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),td=_.forwardRef(function(t,n){const r=wt({props:t,name:"MuiCardContent"}),{className:o,component:a="div",...i}=r,l={...r,component:a},u=zq(l);return v.jsx(Hq,{as:a,className:Je(u.root,o),ownerState:l,ref:n,...i})});function $q(e){return kt("MuiCardMedia",e)}Dt("MuiCardMedia",["root","media","img"]);const Gq=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return It({root:["root",n&&"media",r&&"img"]},$q,t)},Vq=Ue("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:o}=n;return[t.root,r&&t.media,o&&t.img]}})({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",variants:[{props:{isMediaComponent:!0},style:{width:"100%"}},{props:{isImageComponent:!0},style:{objectFit:"cover"}}]}),qq=["video","audio","picture","iframe","img"],Wq=["picture","img"],Yq=_.forwardRef(function(t,n){const r=wt({props:t,name:"MuiCardMedia"}),{children:o,className:a,component:i="div",image:l,src:u,style:d,...p}=r,h=qq.includes(i),y=!h&&l?{backgroundImage:`url("${l}")`,...d}:d,g={...r,component:i,isMediaComponent:h,isImageComponent:Wq.includes(i)},b=Gq(g);return v.jsx(Vq,{className:Je(b.root,a),as:i,role:!h&&l?"img":void 0,ref:n,style:y,ownerState:g,src:h?l||u:void 0,...p,children:o})});function Qq(e){return kt("PrivateSwitchBase",e)}Dt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Kq=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,a={root:["root",n&&"checked",r&&"disabled",o&&`edge${Ve(o)}`],input:["input"]};return It(a,Qq,t)},Xq=Ue(wc,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),Zq=Ue("input",{name:"MuiSwitchBase",shouldForwardProp:Bc})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Jq=_.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:a,defaultChecked:i,disabled:l,disableFocusRipple:u=!1,edge:d=!1,icon:p,id:h,inputProps:y,inputRef:g,name:b,onBlur:S,onChange:T,onFocus:E,readOnly:A,required:C=!1,tabIndex:D,type:I,value:O,slots:j={},slotProps:$={},...z}=t,[L,H]=aP({controlled:o,default:!!i,name:"SwitchBase",state:"checked"}),k=AP(),F=se=>{E&&E(se),k&&k.onFocus&&k.onFocus(se)},B=se=>{S&&S(se),k&&k.onBlur&&k.onBlur(se)},G=se=>{if(se.nativeEvent.defaultPrevented)return;const ne=se.target.checked;H(ne),T&&T(se,ne)};let U=l;k&&typeof U>"u"&&(U=k.disabled);const Q=I==="checkbox"||I==="radio",Y={...t,checked:L,disabled:U,disableFocusRipple:u,edge:d},oe=Kq(Y),N={slots:j,slotProps:{input:y,...$}},[K,X]=dn("root",{ref:n,elementType:Xq,className:oe.root,shouldForwardComponentProp:!0,externalForwardedProps:{...N,component:"span",...z},getSlotProps:se=>({...se,onFocus:ne=>{se.onFocus?.(ne),F(ne)},onBlur:ne=>{se.onBlur?.(ne),B(ne)}}),ownerState:Y,additionalProps:{centerRipple:!0,focusRipple:!u,disabled:U,role:void 0,tabIndex:null}}),[P,J]=dn("input",{ref:g,elementType:Zq,className:oe.input,externalForwardedProps:N,getSlotProps:se=>({...se,onChange:ne=>{se.onChange?.(ne),G(ne)}}),ownerState:Y,additionalProps:{autoFocus:r,checked:o,defaultChecked:i,disabled:U,id:Q?h:void 0,name:b,readOnly:A,required:C,tabIndex:D,type:I,...I==="checkbox"&&O===void 0?{}:{value:O}}});return v.jsxs(K,{...X,children:[v.jsx(P,{...J}),L?a:p]})});function yD(e){return e.substring(2).toLowerCase()}function eW(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function tW(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:a="onTouchEnd"}=e,i=_.useRef(!1),l=_.useRef(null),u=_.useRef(!1),d=_.useRef(!1);_.useEffect(()=>(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const p=kr(Id(t),l),h=Ba(b=>{const S=d.current;d.current=!1;const T=go(l.current);if(!u.current||!l.current||"clientX"in b&&eW(b,T))return;if(i.current){i.current=!1;return}let E;b.composedPath?E=b.composedPath().includes(l.current):E=!T.documentElement.contains(b.target)||l.current.contains(b.target),!E&&(n||!S)&&o(b)}),y=b=>S=>{d.current=!0;const T=t.props[b];T&&T(S)},g={ref:p};return a!==!1&&(g[a]=y(a)),_.useEffect(()=>{if(a!==!1){const b=yD(a),S=go(l.current),T=()=>{i.current=!0};return S.addEventListener(b,h),S.addEventListener("touchmove",T),()=>{S.removeEventListener(b,h),S.removeEventListener("touchmove",T)}}},[h,a]),r!==!1&&(g[r]=y(r)),_.useEffect(()=>{if(r!==!1){const b=yD(r),S=go(l.current);return S.addEventListener(b,h),()=>{S.removeEventListener(b,h)}}},[h,r]),_.cloneElement(t,g)}const nW=WH({createStyledComponent:Ue("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Ve(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>wt({props:e,name:"MuiContainer"})}),bS=typeof oP({})=="function",rW=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),oW=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),RP=(e,t=!1)=>{const n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([a,i])=>{const l=e.getColorSchemeSelector(a);l.startsWith("@")?n[l]={":root":{colorScheme:i.palette?.mode}}:n[l.replace(/\s*&/,"")]={colorScheme:i.palette?.mode}});let r={html:rW(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...oW(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const o=e.components?.MuiCssBaseline?.styleOverrides;return o&&(r=[r,o]),r},by="mui-ecs",aW=e=>{const t=RP(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${by})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([r,o])=>{const a=e.getColorSchemeSelector(r);a.startsWith("@")?n[a]={[`:root:not(:has(.${by}))`]:{colorScheme:o.palette?.mode}}:n[a.replace(/\s*&/,"")]={[`&:not(:has(.${by}))`]:{colorScheme:o.palette?.mode}}}),t},iW=oP(bS?({theme:e,enableColorScheme:t})=>RP(e,t):({theme:e})=>aW(e));function sW(e){const t=wt({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return v.jsxs(_.Fragment,{children:[bS&&v.jsx(iW,{enableColorScheme:r}),!bS&&!r&&v.jsx("span",{className:by,style:{display:"none"}}),n]})}function DP(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function lW(e){const t=go(e);return t.body===e?kc(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Mp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function bD(e){return parseInt(kc(e).getComputedStyle(e).paddingRight,10)||0}function cW(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function vD(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,i=>{const l=!a.includes(i),u=!cW(i);l&&u&&Mp(i,o)})}function ME(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function uW(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(lW(r)){const i=DP(kc(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${bD(r)+i}px`;const l=go(r).querySelectorAll(".mui-fixed");[].forEach.call(l,u=>{n.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${bD(u)+i}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=go(r).body;else{const i=r.parentElement,l=kc(r);a=i?.nodeName==="HTML"&&l.getComputedStyle(i).overflowY==="scroll"?i:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:i,property:l})=>{a?i.style.setProperty(l,a):i.style.removeProperty(l)})}}function dW(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class fW{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Mp(t.modalRef,!1);const o=dW(n);vD(n,t.mount,t.modalRef,o,!0);const a=ME(this.containers,i=>i.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=ME(this.containers,a=>a.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=uW(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=ME(this.containers,i=>i.modals.includes(t)),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&Mp(t.modalRef,n),vD(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=a.modals[a.modals.length-1];i.modalRef&&Mp(i.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const pW=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function hW(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function mW(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function gW(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||mW(e))}function yW(e){const t=[],n=[];return Array.from(e.querySelectorAll(pW)).forEach((r,o)=>{const a=hW(r);a===-1||!gW(r)||(a===0?t.push(r):n.push({documentOrder:o,tabIndex:a,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function bW(){return!0}function vW(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=yW,isEnabled:i=bW,open:l}=e,u=_.useRef(!1),d=_.useRef(null),p=_.useRef(null),h=_.useRef(null),y=_.useRef(null),g=_.useRef(!1),b=_.useRef(null),S=kr(Id(t),b),T=_.useRef(null);_.useEffect(()=>{!l||!b.current||(g.current=!n)},[n,l]),_.useEffect(()=>{if(!l||!b.current)return;const C=go(b.current);return b.current.contains(C.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),g.current&&b.current.focus()),()=>{o||(h.current&&h.current.focus&&(u.current=!0,h.current.focus()),h.current=null)}},[l]),_.useEffect(()=>{if(!l||!b.current)return;const C=go(b.current),D=j=>{T.current=j,!(r||!i()||j.key!=="Tab")&&C.activeElement===b.current&&j.shiftKey&&(u.current=!0,p.current&&p.current.focus())},I=()=>{const j=b.current;if(j===null)return;if(!C.hasFocus()||!i()||u.current){u.current=!1;return}if(j.contains(C.activeElement)||r&&C.activeElement!==d.current&&C.activeElement!==p.current)return;if(C.activeElement!==y.current)y.current=null;else if(y.current!==null)return;if(!g.current)return;let $=[];if((C.activeElement===d.current||C.activeElement===p.current)&&($=a(b.current)),$.length>0){const z=!!(T.current?.shiftKey&&T.current?.key==="Tab"),L=$[0],H=$[$.length-1];typeof L!="string"&&typeof H!="string"&&(z?H.focus():L.focus())}else j.focus()};C.addEventListener("focusin",I),C.addEventListener("keydown",D,!0);const O=setInterval(()=>{C.activeElement&&C.activeElement.tagName==="BODY"&&I()},50);return()=>{clearInterval(O),C.removeEventListener("focusin",I),C.removeEventListener("keydown",D,!0)}},[n,r,o,i,l,a]);const E=C=>{h.current===null&&(h.current=C.relatedTarget),g.current=!0,y.current=C.target;const D=t.props.onFocus;D&&D(C)},A=C=>{h.current===null&&(h.current=C.relatedTarget),g.current=!0};return v.jsxs(_.Fragment,{children:[v.jsx("div",{tabIndex:l?0:-1,onFocus:A,ref:d,"data-testid":"sentinelStart"}),_.cloneElement(t,{ref:S,onFocus:E}),v.jsx("div",{tabIndex:l?0:-1,onFocus:A,ref:p,"data-testid":"sentinelEnd"})]})}function EW(e){return typeof e=="function"?e():e}function xW(e){return e?e.props.hasOwnProperty("in"):!1}const ED=()=>{},Lg=new fW;function SW(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:i,children:l,onClose:u,open:d,rootRef:p}=e,h=_.useRef({}),y=_.useRef(null),g=_.useRef(null),b=kr(g,p),[S,T]=_.useState(!d),E=xW(l);let A=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(A=!1);const C=()=>go(y.current),D=()=>(h.current.modalRef=g.current,h.current.mount=y.current,h.current),I=()=>{Lg.mount(D(),{disableScrollLock:r}),g.current&&(g.current.scrollTop=0)},O=Ba(()=>{const G=EW(t)||C().body;Lg.add(D(),G),g.current&&I()}),j=()=>Lg.isTopModal(D()),$=Ba(G=>{y.current=G,G&&(d&&j()?I():g.current&&Mp(g.current,A))}),z=_.useCallback(()=>{Lg.remove(D(),A)},[A]);_.useEffect(()=>()=>{z()},[z]),_.useEffect(()=>{d?O():(!E||!o)&&z()},[d,z,E,o,O]);const L=G=>U=>{G.onKeyDown?.(U),!(U.key!=="Escape"||U.which===229||!j())&&(n||(U.stopPropagation(),u&&u(U,"escapeKeyDown")))},H=G=>U=>{G.onClick?.(U),U.target===U.currentTarget&&u&&u(U,"backdropClick")};return{getRootProps:(G={})=>{const U=Xy(e);delete U.onTransitionEnter,delete U.onTransitionExited;const Q={...U,...G};return{role:"presentation",...Q,onKeyDown:L(Q),ref:b}},getBackdropProps:(G={})=>{const U=G;return{"aria-hidden":!0,...U,onClick:H(U),open:d}},getTransitionProps:()=>{const G=()=>{T(!1),a&&a()},U=()=>{T(!0),i&&i(),o&&z()};return{onEnter:KR(G,l?.props.onEnter??ED),onExited:KR(U,l?.props.onExited??ED)}},rootRef:b,portalRef:$,isTopModal:j,exited:S,hasTransition:E}}function TW(e){return kt("MuiModal",e)}Dt("MuiModal",["root","hidden","backdrop"]);const CW=e=>{const{open:t,exited:n,classes:r}=e;return It({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},TW,r)},_W=Ue("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(fn(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),AW=Ue(kP,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),IP=_.forwardRef(function(t,n){const r=wt({name:"MuiModal",props:t}),{BackdropComponent:o=AW,BackdropProps:a,classes:i,className:l,closeAfterTransition:u=!1,children:d,container:p,component:h,components:y={},componentsProps:g={},disableAutoFocus:b=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:T=!1,disablePortal:E=!1,disableRestoreFocus:A=!1,disableScrollLock:C=!1,hideBackdrop:D=!1,keepMounted:I=!1,onClose:O,onTransitionEnter:j,onTransitionExited:$,open:z,slotProps:L={},slots:H={},theme:k,...F}=r,B={...r,closeAfterTransition:u,disableAutoFocus:b,disableEnforceFocus:S,disableEscapeKeyDown:T,disablePortal:E,disableRestoreFocus:A,disableScrollLock:C,hideBackdrop:D,keepMounted:I},{getRootProps:G,getBackdropProps:U,getTransitionProps:Q,portalRef:Y,isTopModal:oe,exited:N,hasTransition:K}=SW({...B,rootRef:n}),X={...B,exited:N},P=CW(X),J={};if(d.props.tabIndex===void 0&&(J.tabIndex="-1"),K){const{onEnter:Ce,onExited:Se}=Q();J.onEnter=Ce,J.onExited=Se}const se={slots:{root:y.Root,backdrop:y.Backdrop,...H},slotProps:{...g,...L}},[ne,be]=dn("root",{ref:n,elementType:_W,externalForwardedProps:{...se,...F,component:h},getSlotProps:G,ownerState:X,className:Je(l,P?.root,!X.open&&X.exited&&P?.hidden)}),[fe,De]=dn("backdrop",{ref:a?.ref,elementType:o,externalForwardedProps:se,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:Ce=>U({...Ce,onClick:Se=>{Ce?.onClick&&Ce.onClick(Se)}}),className:Je(a?.className,P?.backdrop),ownerState:X});return!I&&!z&&(!K||N)?null:v.jsx(TP,{ref:Y,container:p,disablePortal:E,children:v.jsxs(ne,{...be,children:[!D&&o?v.jsx(fe,{...De}):null,v.jsx(vW,{disableEnforceFocus:S,disableAutoFocus:b,disableRestoreFocus:A,isEnabled:oe,open:z,children:_.cloneElement(d,J)})]})})});function kW(e){return kt("MuiDialog",e)}const FE=Dt("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),OP=_.createContext({}),wW=Ue(kP,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),RW=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:a}=e,i={root:["root"],container:["container",`scroll${Ve(n)}`],paper:["paper",`paperScroll${Ve(n)}`,`paperWidth${Ve(String(r))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return It(i,kW,t)},DW=Ue(IP,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),IW=Ue("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Ve(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),OW=Ue(ss,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Ve(n.scroll)}`],t[`paperWidth${Ve(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(fn(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${FE.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${FE.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${FE.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),xl=_.forwardRef(function(t,n){const r=wt({props:t,name:"MuiDialog"}),o=Rl(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":l,"aria-modal":u=!0,BackdropComponent:d,BackdropProps:p,children:h,className:y,disableEscapeKeyDown:g=!1,fullScreen:b=!1,fullWidth:S=!1,maxWidth:T="sm",onClick:E,onClose:A,open:C,PaperComponent:D=ss,PaperProps:I={},scroll:O="paper",slots:j={},slotProps:$={},TransitionComponent:z=yS,transitionDuration:L=a,TransitionProps:H,...k}=r,F={...r,disableEscapeKeyDown:g,fullScreen:b,fullWidth:S,maxWidth:T,scroll:O},B=RW(F),G=_.useRef(),U=Ne=>{G.current=Ne.target===Ne.currentTarget},Q=Ne=>{E&&E(Ne),G.current&&(G.current=null,A&&A(Ne,"backdropClick"))},Y=Wh(l),oe=_.useMemo(()=>({titleId:Y}),[Y]),N={transition:z,...j},K={transition:H,paper:I,backdrop:p,...$},X={slots:N,slotProps:K},[P,J]=dn("root",{elementType:DW,shouldForwardComponentProp:!0,externalForwardedProps:X,ownerState:F,className:Je(B.root,y),ref:n}),[se,ne]=dn("backdrop",{elementType:wW,shouldForwardComponentProp:!0,externalForwardedProps:X,ownerState:F}),[be,fe]=dn("paper",{elementType:OW,shouldForwardComponentProp:!0,externalForwardedProps:X,ownerState:F,className:Je(B.paper,I.className)}),[De,Ce]=dn("container",{elementType:IW,externalForwardedProps:X,ownerState:F,className:B.container}),[Se,ze]=dn("transition",{elementType:yS,externalForwardedProps:X,ownerState:F,additionalProps:{appear:!0,in:C,timeout:L,role:"presentation"}});return v.jsx(P,{closeAfterTransition:!0,slots:{backdrop:se},slotProps:{backdrop:{transitionDuration:L,as:d,...ne}},disableEscapeKeyDown:g,onClose:A,open:C,onClick:Q,...J,...k,children:v.jsx(Se,{...ze,children:v.jsx(De,{onMouseDown:U,...Ce,children:v.jsx(be,{as:D,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":Y,"aria-modal":u,...fe,children:v.jsx(OP.Provider,{value:oe,children:h})})})})})});function NW(e){return kt("MuiDialogActions",e)}Dt("MuiDialogActions",["root","spacing"]);const PW=e=>{const{classes:t,disableSpacing:n}=e;return It({root:["root",!n&&"spacing"]},NW,t)},LW=Ue("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),NP=_.forwardRef(function(t,n){const r=wt({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1,...i}=r,l={...r,disableSpacing:a},u=PW(l);return v.jsx(LW,{className:Je(u.root,o),ownerState:l,ref:n,...i})});function MW(e){return kt("MuiDialogContent",e)}Dt("MuiDialogContent",["root","dividers"]);function FW(e){return kt("MuiDialogTitle",e)}const jW=Dt("MuiDialogTitle",["root"]),BW=e=>{const{classes:t,dividers:n}=e;return It({root:["root",n&&"dividers"]},MW,t)},UW=Ue("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(fn(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${jW.root} + &`]:{paddingTop:0}}}]}))),Sl=_.forwardRef(function(t,n){const r=wt({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1,...i}=r,l={...r,dividers:a},u=BW(l);return v.jsx(UW,{className:Je(u.root,o),ownerState:l,ref:n,...i})});function zW(e){return kt("MuiDialogContentText",e)}Dt("MuiDialogContentText",["root"]);const HW=e=>{const{classes:t}=e,r=It({root:["root"]},zW,t);return{...t,...r}},$W=Ue(Ze,{shouldForwardProp:e=>Bc(e)||e==="classes",name:"MuiDialogContentText",slot:"Root"})({}),GW=_.forwardRef(function(t,n){const r=wt({props:t,name:"MuiDialogContentText"}),{children:o,className:a,...i}=r,l=HW(i);return v.jsx($W,{component:"p",variant:"body1",color:"textSecondary",ref:n,ownerState:i,className:Je(l.root,a),...r,classes:l})}),VW=e=>{const{classes:t}=e;return It({root:["root"]},FW,t)},qW=Ue(Ze,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),Tl=_.forwardRef(function(t,n){const r=wt({props:t,name:"MuiDialogTitle"}),{className:o,id:a,...i}=r,l=r,u=VW(l),{titleId:d=a}=_.useContext(OP);return v.jsx(qW,{component:"h2",className:Je(u.root,o),ownerState:l,ref:n,variant:"h6",id:a??d,...i})});function WW(e){return kt("MuiDivider",e)}const xD=Dt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),YW=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:i,textAlign:l,variant:u}=e;return It({root:["root",t&&"absolute",u,a&&"light",i==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&i==="vertical"&&"withChildrenVertical",l==="right"&&i!=="vertical"&&"textAlignRight",l==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},WW,r)},QW=Ue("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(fn(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),KW=Ue("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(fn(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),ds=_.forwardRef(function(t,n){const r=wt({props:t,name:"MuiDivider"}),{absolute:o=!1,children:a,className:i,orientation:l="horizontal",component:u=a||l==="vertical"?"div":"hr",flexItem:d=!1,light:p=!1,role:h=u!=="hr"?"separator":void 0,textAlign:y="center",variant:g="fullWidth",...b}=r,S={...r,absolute:o,component:u,flexItem:d,light:p,orientation:l,role:h,textAlign:y,variant:g},T=YW(S);return v.jsx(QW,{as:u,className:Je(T.root,i),role:h,ref:n,ownerState:S,"aria-orientation":h==="separator"&&(u!=="hr"||l==="vertical")?l:void 0,...b,children:a?v.jsx(KW,{className:T.wrapper,ownerState:S,children:a}):null})});ds&&(ds.muiSkipListHighlight=!0);function XW(e){return kt("MuiFormControl",e)}Dt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const ZW=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Ve(n)}`,r&&"fullWidth"]};return It(o,XW,t)},JW=Ue("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${Ve(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),eY=_.forwardRef(function(t,n){const r=wt({props:t,name:"MuiFormControl"}),{children:o,className:a,color:i="primary",component:l="div",disabled:u=!1,error:d=!1,focused:p,fullWidth:h=!1,hiddenLabel:y=!1,margin:g="none",required:b=!1,size:S="medium",variant:T="outlined",...E}=r,A={...r,color:i,component:l,disabled:u,error:d,fullWidth:h,hiddenLabel:y,margin:g,required:b,size:S,variant:T},C=ZW(A),[D,I]=_.useState(()=>{let G=!1;return o&&_.Children.forEach(o,U=>{if(!Np(U,["Input","Select"]))return;const Q=Np(U,["Select"])?U.props.input:U;Q&&Sq(Q.props)&&(G=!0)}),G}),[O,j]=_.useState(()=>{let G=!1;return o&&_.Children.forEach(o,U=>{Np(U,["Input","Select"])&&(mD(U.props,!0)||mD(U.props.inputProps,!0))&&(G=!0)}),G}),[$,z]=_.useState(!1);u&&$&&z(!1);const L=p!==void 0&&!u?p:$;let H;_.useRef(!1);const k=_.useCallback(()=>{j(!0)},[]),F=_.useCallback(()=>{j(!1)},[]),B=_.useMemo(()=>({adornedStart:D,setAdornedStart:I,color:i,disabled:u,error:d,filled:O,focused:L,fullWidth:h,hiddenLabel:y,size:S,onBlur:()=>{z(!1)},onFocus:()=>{z(!0)},onEmpty:F,onFilled:k,registerEffect:H,required:b,variant:T}),[D,i,u,d,O,L,h,y,H,F,k,b,S,T]);return v.jsx(_P.Provider,{value:B,children:v.jsx(JW,{as:l,ownerState:A,className:Je(C.root,a),ref:n,...E,children:o})})});function tY(e){return kt("MuiFormControlLabel",e)}const _p=Dt("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),nY=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:a}=e,i={root:["root",n&&"disabled",`labelPlacement${Ve(r)}`,o&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return It(i,tY,t)},rY=Ue("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${_p.label}`]:t.label},t.root,t[`labelPlacement${Ve(n.labelPlacement)}`]]}})(fn(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${_p.disabled}`]:{cursor:"default"},[`& .${_p.label}`]:{[`&.${_p.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),oY=Ue("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(fn(({theme:e})=>({[`&.${_p.error}`]:{color:(e.vars||e).palette.error.main}}))),aY=_.forwardRef(function(t,n){const r=wt({props:t,name:"MuiFormControlLabel"}),{checked:o,className:a,componentsProps:i={},control:l,disabled:u,disableTypography:d,inputRef:p,label:h,labelPlacement:y="end",name:g,onChange:b,required:S,slots:T={},slotProps:E={},value:A,...C}=r,D=AP(),I=u??l.props.disabled??D?.disabled,O=S??l.props.required,j={disabled:I,required:O};["checked","name","onChange","value","inputRef"].forEach(G=>{typeof l.props[G]>"u"&&typeof r[G]<"u"&&(j[G]=r[G])});const $=xq({props:r,muiFormControl:D,states:["error"]}),z={...r,disabled:I,labelPlacement:y,required:O,error:$.error},L=nY(z),H={slots:T,slotProps:{...i,...E}},[k,F]=dn("typography",{elementType:Ze,externalForwardedProps:H,ownerState:z});let B=h;return B!=null&&B.type!==Ze&&!d&&(B=v.jsx(k,{component:"span",...F,className:Je(L.label,F?.className),children:B})),v.jsxs(rY,{className:Je(L.root,a),ownerState:z,ref:n,...C,children:[_.cloneElement(l,j),O?v.jsxs("div",{children:[B,v.jsxs(oY,{ownerState:z,"aria-hidden":!0,className:L.asterisk,children:[" ","*"]})]}):B]})}),tr=c$({createStyledComponent:Ue("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>wt({props:e,name:"MuiGrid"}),useTheme:Rl});function vS(e){return`scale(${e}, ${e**2})`}const iY={entering:{opacity:1,transform:vS(1)},entered:{opacity:1,transform:"none"}},jE=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ph=_.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:a,easing:i,in:l,onEnter:u,onEntered:d,onEntering:p,onExit:h,onExited:y,onExiting:g,style:b,timeout:S="auto",TransitionComponent:T=qa,...E}=t,A=ll(),C=_.useRef(),D=Rl(),I=_.useRef(null),O=kr(I,Id(a),n),j=G=>U=>{if(G){const Q=I.current;U===void 0?G(Q):G(Q,U)}},$=j(p),z=j((G,U)=>{cP(G);const{duration:Q,delay:Y,easing:oe}=ud({style:b,timeout:S,easing:i},{mode:"enter"});let N;S==="auto"?(N=D.transitions.getAutoHeightDuration(G.clientHeight),C.current=N):N=Q,G.style.transition=[D.transitions.create("opacity",{duration:N,delay:Y}),D.transitions.create("transform",{duration:jE?N:N*.666,delay:Y,easing:oe})].join(","),u&&u(G,U)}),L=j(d),H=j(g),k=j(G=>{const{duration:U,delay:Q,easing:Y}=ud({style:b,timeout:S,easing:i},{mode:"exit"});let oe;S==="auto"?(oe=D.transitions.getAutoHeightDuration(G.clientHeight),C.current=oe):oe=U,G.style.transition=[D.transitions.create("opacity",{duration:oe,delay:Q}),D.transitions.create("transform",{duration:jE?oe:oe*.666,delay:jE?Q:Q||oe*.333,easing:Y})].join(","),G.style.opacity=0,G.style.transform=vS(.75),h&&h(G)}),F=j(y),B=G=>{S==="auto"&&A.start(C.current||0,G),r&&r(I.current,G)};return v.jsx(T,{appear:o,in:l,nodeRef:I,onEnter:z,onEntered:L,onEntering:$,onExit:k,onExited:F,onExiting:H,addEndListener:B,timeout:S==="auto"?null:S,...E,children:(G,{ownerState:U,...Q})=>_.cloneElement(a,{style:{opacity:0,transform:vS(.75),visibility:G==="exited"&&!l?"hidden":void 0,...iY[G],...b,...a.props.style},ref:O,...Q})})});ph&&(ph.muiSupportAuto=!0);const Ua=_.createContext({});function sY(e){return kt("MuiList",e)}Dt("MuiList",["root","padding","dense","subheader"]);const lY=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return It({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},sY,t)},cY=Ue("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),lb=_.forwardRef(function(t,n){const r=wt({props:t,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:l=!1,disablePadding:u=!1,subheader:d,...p}=r,h=_.useMemo(()=>({dense:l}),[l]),y={...r,component:i,dense:l,disablePadding:u},g=lY(y);return v.jsx(Ua.Provider,{value:h,children:v.jsxs(cY,{as:i,className:Je(g.root,a),ref:n,ownerState:y,...p,children:[d,o]})})});function uY(e){return kt("MuiListItem",e)}Dt("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function dY(e){return kt("MuiListItemButton",e)}const Gu=Dt("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),fY=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},pY=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:a,divider:i,selected:l}=e,d=It({root:["root",r&&"dense",!a&&"gutters",i&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",l&&"selected"]},dY,n);return{...n,...d}},hY=Ue(wc,{shouldForwardProp:e=>Bc(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:fY})(fn(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Gu.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Gu.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Gu.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Gu.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Gu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),PP=_.forwardRef(function(t,n){const r=wt({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:a=!1,component:i="div",children:l,dense:u=!1,disableGutters:d=!1,divider:p=!1,focusVisibleClassName:h,selected:y=!1,className:g,...b}=r,S=_.useContext(Ua),T=_.useMemo(()=>({dense:u||S.dense||!1,alignItems:o,disableGutters:d}),[o,S.dense,u,d]),E=_.useRef(null);Ci(()=>{a&&E.current&&E.current.focus()},[a]);const A={...r,alignItems:o,dense:T.dense,disableGutters:d,divider:p,selected:y},C=pY(A),D=kr(E,n);return v.jsx(Ua.Provider,{value:T,children:v.jsx(hY,{ref:D,href:b.href||b.to,component:(b.href||b.to)&&i==="div"?"button":i,focusVisibleClassName:Je(C.focusVisible,h),ownerState:A,className:Je(C.root,g),...b,classes:C,children:l})})});function mY(e){return kt("MuiListItemSecondaryAction",e)}Dt("MuiListItemSecondaryAction",["root","disableGutters"]);const gY=e=>{const{disableGutters:t,classes:n}=e;return It({root:["root",t&&"disableGutters"]},mY,n)},yY=Ue("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),LP=_.forwardRef(function(t,n){const r=wt({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...a}=r,i=_.useContext(Ua),l={...r,disableGutters:i.disableGutters},u=gY(l);return v.jsx(yY,{className:Je(u.root,o),ownerState:l,ref:n,...a})});LP.muiName="ListItemSecondaryAction";const bY=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},vY=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:a,divider:i,hasSecondaryAction:l}=e;return It({root:["root",r&&"dense",!o&&"gutters",!a&&"padding",i&&"divider",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"]},uY,n)},EY=Ue("div",{name:"MuiListItem",slot:"Root",overridesResolver:bY})(fn(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${Gu.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),xY=Ue("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Mg=_.forwardRef(function(t,n){const r=wt({props:t,name:"MuiListItem"}),{alignItems:o="center",children:a,className:i,component:l,components:u={},componentsProps:d={},ContainerComponent:p="li",ContainerProps:{className:h,...y}={},dense:g=!1,disableGutters:b=!1,disablePadding:S=!1,divider:T=!1,secondaryAction:E,slotProps:A={},slots:C={},...D}=r,I=_.useContext(Ua),O=_.useMemo(()=>({dense:g||I.dense||!1,alignItems:o,disableGutters:b}),[o,I.dense,g,b]),j=_.useRef(null),$=_.Children.toArray(a),z=$.length&&Np($[$.length-1],["ListItemSecondaryAction"]),L={...r,alignItems:o,dense:O.dense,disableGutters:b,disablePadding:S,divider:T,hasSecondaryAction:z},H=vY(L),k=kr(j,n),F=C.root||u.Root||EY,B=A.root||d.root||{},G={className:Je(H.root,B.className,i),...D};let U=l||"li";return z?(U=!G.component&&!l?"div":U,p==="li"&&(U==="li"?U="div":G.component==="li"&&(G.component="div")),v.jsx(Ua.Provider,{value:O,children:v.jsxs(xY,{as:p,className:Je(H.container,h),ref:k,ownerState:L,...y,children:[v.jsx(F,{...B,...!Ky(F)&&{as:U,ownerState:{...L,...B.ownerState}},...G,children:$}),$.pop()]})})):v.jsx(Ua.Provider,{value:O,children:v.jsxs(F,{...B,as:U,ref:k,...!Ky(F)&&{ownerState:{...L,...B.ownerState}},...G,children:[$,E&&v.jsx(LP,{children:E})]})})});function SY(e){return kt("MuiListItemIcon",e)}const SD=Dt("MuiListItemIcon",["root","alignItemsFlexStart"]),TY=e=>{const{alignItems:t,classes:n}=e;return It({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},SY,n)},CY=Ue("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(fn(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),cb=_.forwardRef(function(t,n){const r=wt({props:t,name:"MuiListItemIcon"}),{className:o,...a}=r,i=_.useContext(Ua),l={...r,alignItems:i.alignItems},u=TY(l);return v.jsx(CY,{className:Je(u.root,o),ownerState:l,ref:n,...a})});function _Y(e){return kt("MuiListItemText",e)}const Wu=Dt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),AY=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:a}=e;return It({root:["root",n&&"inset",a&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},_Y,t)},kY=Ue("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Wu.primary}`]:t.primary},{[`& .${Wu.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${nD.root}:where(& .${Wu.primary})`]:{display:"block"},[`.${nD.root}:where(& .${Wu.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),ls=_.forwardRef(function(t,n){const r=wt({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:l=!1,primary:u,primaryTypographyProps:d,secondary:p,secondaryTypographyProps:h,slots:y={},slotProps:g={},...b}=r,{dense:S}=_.useContext(Ua);let T=u??o,E=p;const A={...r,disableTypography:i,inset:l,primary:!!T,secondary:!!E,dense:S},C=AY(A),D={slots:y,slotProps:{primary:d,secondary:h,...g}},[I,O]=dn("root",{className:Je(C.root,a),elementType:kY,externalForwardedProps:{...D,...b},ownerState:A,ref:n}),[j,$]=dn("primary",{className:C.primary,elementType:Ze,externalForwardedProps:D,ownerState:A}),[z,L]=dn("secondary",{className:C.secondary,elementType:Ze,externalForwardedProps:D,ownerState:A});return T!=null&&T.type!==Ze&&!i&&(T=v.jsx(j,{variant:S?"body2":"body1",component:$?.variant?void 0:"span",...$,children:T})),E!=null&&E.type!==Ze&&!i&&(E=v.jsx(z,{variant:"body2",color:"textSecondary",...L,children:E})),v.jsxs(I,{...O,children:[T,E]})});function BE(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function TD(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function MP(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function Xf(e,t,n,r,o,a){let i=!1,l=o(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(i)return!1;i=!0}const u=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!MP(l,a)||u)l=o(e,l,n);else return l.focus(),!0}return!1}const wY=_.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:l,disabledItemsFocusable:u=!1,disableListWrap:d=!1,onKeyDown:p,variant:h="selectedMenu",...y}=t,g=_.useRef(null),b=_.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ci(()=>{o&&g.current.focus()},[o]),_.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(C,{direction:D})=>{const I=!g.current.style.width;if(C.clientHeight<g.current.clientHeight&&I){const O=`${DP(kc(C))}px`;g.current.style[D==="rtl"?"paddingLeft":"paddingRight"]=O,g.current.style.width=`calc(100% + ${O})`}return g.current}}),[]);const S=C=>{const D=g.current,I=C.key;if(C.ctrlKey||C.metaKey||C.altKey){p&&p(C);return}const j=go(D).activeElement;if(I==="ArrowDown")C.preventDefault(),Xf(D,j,d,u,BE);else if(I==="ArrowUp")C.preventDefault(),Xf(D,j,d,u,TD);else if(I==="Home")C.preventDefault(),Xf(D,null,d,u,BE);else if(I==="End")C.preventDefault(),Xf(D,null,d,u,TD);else if(I.length===1){const $=b.current,z=I.toLowerCase(),L=performance.now();$.keys.length>0&&(L-$.lastTime>500?($.keys=[],$.repeating=!0,$.previousKeyMatched=!0):$.repeating&&z!==$.keys[0]&&($.repeating=!1)),$.lastTime=L,$.keys.push(z);const H=j&&!$.repeating&&MP(j,$);$.previousKeyMatched&&(H||Xf(D,j,!1,u,BE,$))?C.preventDefault():$.previousKeyMatched=!1}p&&p(C)},T=kr(g,n);let E=-1;_.Children.forEach(i,(C,D)=>{if(!_.isValidElement(C)){E===D&&(E+=1,E>=i.length&&(E=-1));return}C.props.disabled||(h==="selectedMenu"&&C.props.selected||E===-1)&&(E=D),E===D&&(C.props.disabled||C.props.muiSkipListHighlight||C.type.muiSkipListHighlight)&&(E+=1,E>=i.length&&(E=-1))});const A=_.Children.map(i,(C,D)=>{if(D===E){const I={};return a&&(I.autoFocus=!0),C.props.tabIndex===void 0&&h==="selectedMenu"&&(I.tabIndex=0),_.cloneElement(C,I)}return C});return v.jsx(lb,{role:"menu",ref:T,className:l,onKeyDown:S,tabIndex:o?0:-1,...y,children:A})});function RY(e){return kt("MuiPopover",e)}Dt("MuiPopover",["root","paper"]);function CD(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function _D(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function AD(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Fg(e){return typeof e=="function"?e():e}const DY=e=>{const{classes:t}=e;return It({root:["root"],paper:["paper"]},RY,t)},IY=Ue(IP,{name:"MuiPopover",slot:"Root"})({}),FP=Ue(ss,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),OY=_.forwardRef(function(t,n){const r=wt({props:t,name:"MuiPopover"}),{action:o,anchorEl:a,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:u="anchorEl",children:d,className:p,container:h,elevation:y=8,marginThreshold:g=16,open:b,PaperProps:S={},slots:T={},slotProps:E={},transformOrigin:A={vertical:"top",horizontal:"left"},TransitionComponent:C,transitionDuration:D="auto",TransitionProps:I={},disableScrollLock:O=!1,...j}=r,$=_.useRef(),z={...r,anchorOrigin:i,anchorReference:u,elevation:y,marginThreshold:g,transformOrigin:A,TransitionComponent:C,transitionDuration:D,TransitionProps:I},L=DY(z),H=_.useCallback(()=>{if(u==="anchorPosition")return l;const Ce=Fg(a),ze=(Ce&&Ce.nodeType===1?Ce:go($.current).body).getBoundingClientRect();return{top:ze.top+CD(ze,i.vertical),left:ze.left+_D(ze,i.horizontal)}},[a,i.horizontal,i.vertical,l,u]),k=_.useCallback(Ce=>({vertical:CD(Ce,A.vertical),horizontal:_D(Ce,A.horizontal)}),[A.horizontal,A.vertical]),F=_.useCallback(Ce=>{const Se={width:Ce.offsetWidth,height:Ce.offsetHeight},ze=k(Se);if(u==="none")return{top:null,left:null,transformOrigin:AD(ze)};const Ne=H();let _e=Ne.top-ze.vertical,Ct=Ne.left-ze.horizontal;const At=_e+Se.height,qe=Ct+Se.width,Rt=kc(Fg(a)),ot=Rt.innerHeight-g,tt=Rt.innerWidth-g;if(g!==null&&_e<g){const je=_e-g;_e-=je,ze.vertical+=je}else if(g!==null&&At>ot){const je=At-ot;_e-=je,ze.vertical+=je}if(g!==null&&Ct<g){const je=Ct-g;Ct-=je,ze.horizontal+=je}else if(qe>tt){const je=qe-tt;Ct-=je,ze.horizontal+=je}return{top:`${Math.round(_e)}px`,left:`${Math.round(Ct)}px`,transformOrigin:AD(ze)}},[a,u,H,k,g]),[B,G]=_.useState(b),U=_.useCallback(()=>{const Ce=$.current;if(!Ce)return;const Se=F(Ce);Se.top!==null&&Ce.style.setProperty("top",Se.top),Se.left!==null&&(Ce.style.left=Se.left),Ce.style.transformOrigin=Se.transformOrigin,G(!0)},[F]);_.useEffect(()=>(O&&window.addEventListener("scroll",U),()=>window.removeEventListener("scroll",U)),[a,O,U]);const Q=()=>{U()},Y=()=>{G(!1)};_.useEffect(()=>{b&&U()}),_.useImperativeHandle(o,()=>b?{updatePosition:()=>{U()}}:null,[b,U]),_.useEffect(()=>{if(!b)return;const Ce=rG(()=>{U()}),Se=kc(Fg(a));return Se.addEventListener("resize",Ce),()=>{Ce.clear(),Se.removeEventListener("resize",Ce)}},[a,b,U]);let oe=D;const N={slots:{transition:C,...T},slotProps:{transition:I,paper:S,...E}},[K,X]=dn("transition",{elementType:ph,externalForwardedProps:N,ownerState:z,getSlotProps:Ce=>({...Ce,onEntering:(Se,ze)=>{Ce.onEntering?.(Se,ze),Q()},onExited:Se=>{Ce.onExited?.(Se),Y()}}),additionalProps:{appear:!0,in:b}});D==="auto"&&!K.muiSupportAuto&&(oe=void 0);const P=h||(a?go(Fg(a)).body:void 0),[J,{slots:se,slotProps:ne,...be}]=dn("root",{ref:n,elementType:IY,externalForwardedProps:{...N,...j},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:T.backdrop},slotProps:{backdrop:aG(typeof E.backdrop=="function"?E.backdrop(z):E.backdrop,{invisible:!0})},container:P,open:b},ownerState:z,className:Je(L.root,p)}),[fe,De]=dn("paper",{ref:$,className:L.paper,elementType:FP,externalForwardedProps:N,shouldForwardComponentProp:!0,additionalProps:{elevation:y,style:B?void 0:{opacity:0}},ownerState:z});return v.jsx(J,{...be,...!Ky(J)&&{slots:se,slotProps:ne,disableScrollLock:O},children:v.jsx(K,{...X,timeout:oe,children:v.jsx(fe,{...De,children:d})})})});function NY(e){return kt("MuiMenu",e)}Dt("MuiMenu",["root","paper","list"]);const PY={vertical:"top",horizontal:"right"},LY={vertical:"top",horizontal:"left"},MY=e=>{const{classes:t}=e;return It({root:["root"],paper:["paper"],list:["list"]},NY,t)},FY=Ue(OY,{shouldForwardProp:e=>Bc(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),jY=Ue(FP,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),BY=Ue(wY,{name:"MuiMenu",slot:"List"})({outline:0}),ub=_.forwardRef(function(t,n){const r=wt({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:a,className:i,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:d,open:p,PaperProps:h={},PopoverClasses:y,transitionDuration:g="auto",TransitionProps:{onEntering:b,...S}={},variant:T="selectedMenu",slots:E={},slotProps:A={},...C}=r,D=uC(),I={...r,autoFocus:o,disableAutoFocusItem:l,MenuListProps:u,onEntering:b,PaperProps:h,transitionDuration:g,TransitionProps:S,variant:T},O=MY(I),j=o&&!l&&p,$=_.useRef(null),z=(oe,N)=>{$.current&&$.current.adjustStyleForScrollbar(oe,{direction:D?"rtl":"ltr"}),b&&b(oe,N)},L=oe=>{oe.key==="Tab"&&(oe.preventDefault(),d&&d(oe,"tabKeyDown"))};let H=-1;_.Children.map(a,(oe,N)=>{_.isValidElement(oe)&&(oe.props.disabled||(T==="selectedMenu"&&oe.props.selected||H===-1)&&(H=N))});const k={slots:E,slotProps:{list:u,transition:S,paper:h,...A}},F=SP({elementType:E.root,externalSlotProps:A.root,ownerState:I,className:[O.root,i]}),[B,G]=dn("paper",{className:O.paper,elementType:jY,externalForwardedProps:k,shouldForwardComponentProp:!0,ownerState:I}),[U,Q]=dn("list",{className:Je(O.list,u.className),elementType:BY,shouldForwardComponentProp:!0,externalForwardedProps:k,getSlotProps:oe=>({...oe,onKeyDown:N=>{L(N),oe.onKeyDown?.(N)}}),ownerState:I}),Y=typeof k.slotProps.transition=="function"?k.slotProps.transition(I):k.slotProps.transition;return v.jsx(FY,{onClose:d,anchorOrigin:{vertical:"bottom",horizontal:D?"right":"left"},transformOrigin:D?PY:LY,slots:{root:E.root,paper:B,backdrop:E.backdrop,...E.transition&&{transition:E.transition}},slotProps:{root:F,paper:G,backdrop:typeof A.backdrop=="function"?A.backdrop(I):A.backdrop,transition:{...Y,onEntering:(...oe)=>{z(...oe),Y?.onEntering?.(...oe)}}},open:p,ref:n,transitionDuration:g,ownerState:I,...C,classes:y,children:v.jsx(U,{actions:$,autoFocus:o&&(H===-1||l),autoFocusItem:j,variant:T,...Q,children:a})})});function UY(e){return kt("MuiMenuItem",e)}const Zf=Dt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),zY=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},HY=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:i}=e,u=It({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},UY,i);return{...i,...u}},$Y=Ue(wc,{shouldForwardProp:e=>Bc(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:zY})(fn(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Zf.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Zf.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Zf.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Zf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Zf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${xD.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${xD.inset}`]:{marginLeft:52},[`& .${Wu.root}`]:{marginTop:0,marginBottom:0},[`& .${Wu.inset}`]:{paddingLeft:36},[`& .${SD.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${SD.root} svg`]:{fontSize:"1.25rem"}}}]}))),Cl=_.forwardRef(function(t,n){const r=wt({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:l=!1,disableGutters:u=!1,focusVisibleClassName:d,role:p="menuitem",tabIndex:h,className:y,...g}=r,b=_.useContext(Ua),S=_.useMemo(()=>({dense:i||b.dense||!1,disableGutters:u}),[b.dense,i,u]),T=_.useRef(null);Ci(()=>{o&&T.current&&T.current.focus()},[o]);const E={...r,dense:S.dense,divider:l,disableGutters:u},A=HY(r),C=kr(T,n);let D;return r.disabled||(D=h!==void 0?h:-1),v.jsx(Ua.Provider,{value:S,children:v.jsx($Y,{ref:C,role:p,tabIndex:D,component:a,focusVisibleClassName:Je(A.focusVisible,d),className:Je(A.root,y),...g,ownerState:E,classes:A})})});function GY(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:a}=e,i=ll();_.useEffect(()=>{if(!o)return;function E(A){A.defaultPrevented||A.key==="Escape"&&r?.(A,"escapeKeyDown")}return document.addEventListener("keydown",E),()=>{document.removeEventListener("keydown",E)}},[o,r]);const l=Ba((E,A)=>{r?.(E,A)}),u=Ba(E=>{!r||E==null||i.start(E,()=>{l(null,"timeout")})});_.useEffect(()=>(o&&u(t),i.clear),[o,t,u,i]);const d=E=>{r?.(E,"clickaway")},p=i.clear,h=_.useCallback(()=>{t!=null&&u(a??t*.5)},[t,a,u]),y=E=>A=>{const C=E.onBlur;C?.(A),h()},g=E=>A=>{const C=E.onFocus;C?.(A),p()},b=E=>A=>{const C=E.onMouseEnter;C?.(A),p()},S=E=>A=>{const C=E.onMouseLeave;C?.(A),h()};return _.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",h),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",p)}},[n,o,h,p]),{getRootProps:(E={})=>{const A={...Xy(e),...Xy(E)};return{role:"presentation",...E,...A,onBlur:y(A),onFocus:g(A),onMouseEnter:b(A),onMouseLeave:S(A)}},onClickAway:d}}function VY(e){return kt("MuiSnackbarContent",e)}Dt("MuiSnackbarContent",["root","message","action"]);const qY=e=>{const{classes:t}=e;return It({root:["root"],action:["action"],message:["message"]},VY,t)},WY=Ue(ss,{name:"MuiSnackbarContent",slot:"Root"})(fn(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(oS(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:oS(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),YY=Ue("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),QY=Ue("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),KY=_.forwardRef(function(t,n){const r=wt({props:t,name:"MuiSnackbarContent"}),{action:o,className:a,message:i,role:l="alert",...u}=r,d=r,p=qY(d);return v.jsxs(WY,{role:l,elevation:6,className:Je(p.root,a),ownerState:d,ref:n,...u,children:[v.jsx(YY,{className:p.message,ownerState:d,children:i}),o?v.jsx(QY,{className:p.action,ownerState:d,children:o}):null]})});function XY(e){return kt("MuiSnackbar",e)}Dt("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const ZY=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${Ve(n.vertical)}${Ve(n.horizontal)}`]};return It(r,XY,t)},JY=Ue("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${Ve(n.anchorOrigin.vertical)}${Ve(n.anchorOrigin.horizontal)}`]]}})(fn(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),ms=_.forwardRef(function(t,n){const r=wt({props:t,name:"MuiSnackbar"}),o=Rl(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:i,anchorOrigin:{vertical:l,horizontal:u}={vertical:"bottom",horizontal:"left"},autoHideDuration:d=null,children:p,className:h,ClickAwayListenerProps:y,ContentProps:g,disableWindowBlurListener:b=!1,message:S,onBlur:T,onClose:E,onFocus:A,onMouseEnter:C,onMouseLeave:D,open:I,resumeHideDuration:O,slots:j={},slotProps:$={},TransitionComponent:z,transitionDuration:L=a,TransitionProps:{onEnter:H,onExited:k,...F}={},...B}=r,G={...r,anchorOrigin:{vertical:l,horizontal:u},autoHideDuration:d,disableWindowBlurListener:b,TransitionComponent:z,transitionDuration:L},U=ZY(G),{getRootProps:Q,onClickAway:Y}=GY({...G}),[oe,N]=_.useState(!0),K=Ne=>{N(!0),k&&k(Ne)},X=(Ne,_e)=>{N(!1),H&&H(Ne,_e)},P={slots:{transition:z,...j},slotProps:{content:g,clickAwayListener:y,transition:F,...$}},[J,se]=dn("root",{ref:n,className:[U.root,h],elementType:JY,getSlotProps:Q,externalForwardedProps:{...P,...B},ownerState:G}),[ne,{ownerState:be,...fe}]=dn("clickAwayListener",{elementType:tW,externalForwardedProps:P,getSlotProps:Ne=>({onClickAway:(..._e)=>{const Ct=_e[0];Ne.onClickAway?.(..._e),!Ct?.defaultMuiPrevented&&Y(..._e)}}),ownerState:G}),[De,Ce]=dn("content",{elementType:KY,shouldForwardComponentProp:!0,externalForwardedProps:P,additionalProps:{message:S,action:i},ownerState:G}),[Se,ze]=dn("transition",{elementType:ph,externalForwardedProps:P,getSlotProps:Ne=>({onEnter:(..._e)=>{Ne.onEnter?.(..._e),X(..._e)},onExited:(..._e)=>{Ne.onExited?.(..._e),K(..._e)}}),additionalProps:{appear:!0,in:I,timeout:L,direction:l==="top"?"down":"up"},ownerState:G});return!I&&oe?null:v.jsx(ne,{...fe,...j.clickAwayListener&&{ownerState:be},children:v.jsx(J,{...se,children:v.jsx(Se,{...ze,children:p||v.jsx(De,{...Ce})})})})});function eQ(e){return kt("MuiTooltip",e)}const cr=Dt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function tQ(e){return Math.round(e*1e5)/1e5}const nQ=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e,i={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Ve(a.split("-")[0])}`],arrow:["arrow"]};return It(i,eQ,t)},rQ=Ue(CP,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(fn(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${cr.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${cr.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${cr.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${cr.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${cr.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${cr.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${cr.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${cr.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),oQ=Ue("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Ve(n.placement.split("-")[0])}`]]}})(fn(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${cr.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${cr.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${cr.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${cr.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${tQ(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${cr.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${cr.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${cr.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${cr.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${cr.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${cr.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${cr.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${cr.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${cr.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${cr.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),aQ=Ue("span",{name:"MuiTooltip",slot:"Arrow"})(fn(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let jg=!1;const kD=new ib;let Jf={x:0,y:0};function Bg(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const wo=_.forwardRef(function(t,n){const r=wt({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:a,classes:i,components:l={},componentsProps:u={},describeChild:d=!1,disableFocusListener:p=!1,disableHoverListener:h=!1,disableInteractive:y=!1,disableTouchListener:g=!1,enterDelay:b=100,enterNextDelay:S=0,enterTouchDelay:T=700,followCursor:E=!1,id:A,leaveDelay:C=0,leaveTouchDelay:D=1500,onClose:I,onOpen:O,open:j,placement:$="bottom",PopperComponent:z,PopperProps:L={},slotProps:H={},slots:k={},title:F,TransitionComponent:B,TransitionProps:G,...U}=r,Q=_.isValidElement(a)?a:v.jsx("span",{children:a}),Y=Rl(),oe=uC(),[N,K]=_.useState(),[X,P]=_.useState(null),J=_.useRef(!1),se=y||E,ne=ll(),be=ll(),fe=ll(),De=ll(),[Ce,Se]=aP({controlled:j,default:!1,name:"Tooltip",state:"open"});let ze=Ce;const Ne=Wh(A),_e=_.useRef(),Ct=Ba(()=>{_e.current!==void 0&&(document.body.style.WebkitUserSelect=_e.current,_e.current=void 0),De.clear()});_.useEffect(()=>Ct,[Ct]);const At=bt=>{kD.clear(),jg=!0,Se(!0),O&&!ze&&O(bt)},qe=Ba(bt=>{kD.start(800+C,()=>{jg=!1}),Se(!1),I&&ze&&I(bt),ne.start(Y.transitions.duration.shortest,()=>{J.current=!1})}),Rt=bt=>{J.current&&bt.type!=="touchstart"||(N&&N.removeAttribute("title"),be.clear(),fe.clear(),b||jg&&S?be.start(jg?S:b,()=>{At(bt)}):At(bt))},ot=bt=>{be.clear(),fe.start(C,()=>{qe(bt)})},[,tt]=_.useState(!1),je=bt=>{Zy(bt.target)||(tt(!1),ot(bt))},Be=bt=>{N||K(bt.currentTarget),Zy(bt.target)&&(tt(!0),Rt(bt))},Ut=bt=>{J.current=!0;const re=Q.props;re.onTouchStart&&re.onTouchStart(bt)},Bn=bt=>{Ut(bt),fe.clear(),ne.clear(),Ct(),_e.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",De.start(T,()=>{document.body.style.WebkitUserSelect=_e.current,Rt(bt)})},Ot=bt=>{Q.props.onTouchEnd&&Q.props.onTouchEnd(bt),Ct(),fe.start(D,()=>{qe(bt)})};_.useEffect(()=>{if(!ze)return;function bt(re){re.key==="Escape"&&qe(re)}return document.addEventListener("keydown",bt),()=>{document.removeEventListener("keydown",bt)}},[qe,ze]);const de=kr(Id(Q),K,n);!F&&F!==0&&(ze=!1);const ye=_.useRef(),We=bt=>{const re=Q.props;re.onMouseMove&&re.onMouseMove(bt),Jf={x:bt.clientX,y:bt.clientY},ye.current&&ye.current.update()},Ke={},et=typeof F=="string";d?(Ke.title=!ze&&et&&!h?F:null,Ke["aria-describedby"]=ze?Ne:null):(Ke["aria-label"]=et?F:null,Ke["aria-labelledby"]=ze&&!et?Ne:null);const St={...Ke,...U,...Q.props,className:Je(U.className,Q.props.className),onTouchStart:Ut,ref:de,...E?{onMouseMove:We}:{}},En={};g||(St.onTouchStart=Bn,St.onTouchEnd=Ot),h||(St.onMouseOver=Bg(Rt,St.onMouseOver),St.onMouseLeave=Bg(ot,St.onMouseLeave),se||(En.onMouseOver=Rt,En.onMouseLeave=ot)),p||(St.onFocus=Bg(Be,St.onFocus),St.onBlur=Bg(je,St.onBlur),se||(En.onFocus=Be,En.onBlur=je));const on={...r,isRtl:oe,arrow:o,disableInteractive:se,placement:$,PopperComponentProp:z,touch:J.current},Xe=typeof H.popper=="function"?H.popper(on):H.popper,xe=_.useMemo(()=>{let bt=[{name:"arrow",enabled:!!X,options:{element:X,padding:4}}];return L.popperOptions?.modifiers&&(bt=bt.concat(L.popperOptions.modifiers)),Xe?.popperOptions?.modifiers&&(bt=bt.concat(Xe.popperOptions.modifiers)),{...L.popperOptions,...Xe?.popperOptions,modifiers:bt}},[X,L.popperOptions,Xe?.popperOptions]),Te=nQ(on),mt=typeof H.transition=="function"?H.transition(on):H.transition,lt={slots:{popper:l.Popper,transition:l.Transition??B,tooltip:l.Tooltip,arrow:l.Arrow,...k},slotProps:{arrow:H.arrow??u.arrow,popper:{...L,...Xe??u.popper},tooltip:H.tooltip??u.tooltip,transition:{...G,...mt??u.transition}}},[Zn,ao]=dn("popper",{elementType:rQ,externalForwardedProps:lt,ownerState:on,className:Je(Te.popper,L?.className)}),[Br,Rr]=dn("transition",{elementType:ph,externalForwardedProps:lt,ownerState:on}),[Dr,ra]=dn("tooltip",{elementType:oQ,className:Te.tooltip,externalForwardedProps:lt,ownerState:on}),[$n,io]=dn("arrow",{elementType:aQ,className:Te.arrow,externalForwardedProps:lt,ownerState:on,ref:P});return v.jsxs(_.Fragment,{children:[_.cloneElement(Q,St),v.jsx(Zn,{as:z??CP,placement:$,anchorEl:E?{getBoundingClientRect:()=>({top:Jf.y,left:Jf.x,right:Jf.x,bottom:Jf.y,width:0,height:0})}:N,popperRef:ye,open:N?ze:!1,id:Ne,transition:!0,...En,...ao,popperOptions:xe,children:({TransitionProps:bt})=>v.jsx(Br,{timeout:Y.transitions.duration.shorter,...bt,...Rr,children:v.jsxs(Dr,{...ra,children:[F,o?v.jsx($n,{...io}):null]})})})]})}),Mr=pC({createStyledComponent:Ue("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>wt({props:e,name:"MuiStack"})});function iQ(e){return kt("MuiSwitch",e)}const co=Dt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),sQ=e=>{const{classes:t,edge:n,size:r,color:o,checked:a,disabled:i}=e,l={root:["root",n&&`edge${Ve(n)}`,`size${Ve(r)}`],switchBase:["switchBase",`color${Ve(o)}`,a&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=It(l,iQ,t);return{...t,...u}},lQ=Ue("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Ve(n.edge)}`],t[`size${Ve(n.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${co.thumb}`]:{width:16,height:16},[`& .${co.switchBase}`]:{padding:4,[`&.${co.checked}`]:{transform:"translateX(16px)"}}}}]}),cQ=Ue(Jq,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${co.input}`]:t.input},n.color!=="default"&&t[`color${Ve(n.color)}`]]}})(fn(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${co.checked}`]:{transform:"translateX(20px)"},[`&.${co.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${co.checked} + .${co.track}`]:{opacity:.5},[`&.${co.disabled} + .${co.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${co.input}`]:{left:"-100%",width:"300%"}})),fn(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(yi(["light"])).map(([t])=>({props:{color:t},style:{[`&.${co.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${co.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.55)}`}},[`&.${co.checked} + .${co.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),uQ=Ue("span",{name:"MuiSwitch",slot:"Track"})(fn(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),dQ=Ue("span",{name:"MuiSwitch",slot:"Thumb"})(fn(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),fQ=_.forwardRef(function(t,n){const r=wt({props:t,name:"MuiSwitch"}),{className:o,color:a="primary",edge:i=!1,size:l="medium",sx:u,slots:d={},slotProps:p={},...h}=r,y={...r,color:a,edge:i,size:l},g=sQ(y),b={slots:d,slotProps:p},[S,T]=dn("root",{className:Je(g.root,o),elementType:lQ,externalForwardedProps:b,ownerState:y,additionalProps:{sx:u}}),[E,A]=dn("thumb",{className:g.thumb,elementType:dQ,externalForwardedProps:b,ownerState:y}),C=v.jsx(E,{...A}),[D,I]=dn("track",{className:g.track,elementType:uQ,externalForwardedProps:b,ownerState:y});return v.jsxs(S,{...T,children:[v.jsx(cQ,{type:"checkbox",icon:C,checkedIcon:C,ref:n,ownerState:y,...h,classes:{...g,root:g.switchBase},slots:{...d.switchBase&&{root:d.switchBase},...d.input&&{input:d.input}},slotProps:{...p.switchBase&&{root:typeof p.switchBase=="function"?p.switchBase(y):p.switchBase},input:{role:"switch"},...p.input&&{input:typeof p.input=="function"?p.input(y):p.input}}}),v.jsx(D,{...I})]})}),jP=_.createContext();function pQ(e){return kt("MuiTable",e)}Dt("MuiTable",["root","stickyHeader"]);const hQ=e=>{const{classes:t,stickyHeader:n}=e;return It({root:["root",n&&"stickyHeader"]},pQ,t)},mQ=Ue("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(fn(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),wD="table",hh=_.forwardRef(function(t,n){const r=wt({props:t,name:"MuiTable"}),{className:o,component:a=wD,padding:i="normal",size:l="medium",stickyHeader:u=!1,...d}=r,p={...r,component:a,padding:i,size:l,stickyHeader:u},h=hQ(p),y=_.useMemo(()=>({padding:i,size:l,stickyHeader:u}),[i,l,u]);return v.jsx(jP.Provider,{value:y,children:v.jsx(mQ,{as:a,role:a===wD?null:"table",ref:n,className:Je(h.root,o),ownerState:p,...d})})}),db=_.createContext();function gQ(e){return kt("MuiTableBody",e)}Dt("MuiTableBody",["root"]);const yQ=e=>{const{classes:t}=e;return It({root:["root"]},gQ,t)},bQ=Ue("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),vQ={variant:"body"},RD="tbody",mh=_.forwardRef(function(t,n){const r=wt({props:t,name:"MuiTableBody"}),{className:o,component:a=RD,...i}=r,l={...r,component:a},u=yQ(l);return v.jsx(db.Provider,{value:vQ,children:v.jsx(bQ,{className:Je(u.root,o),as:a,ref:n,role:a===RD?null:"rowgroup",ownerState:l,...i})})});function EQ(e){return kt("MuiTableCell",e)}const xQ=Dt("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),SQ=e=>{const{classes:t,variant:n,align:r,padding:o,size:a,stickyHeader:i}=e,l={root:["root",n,i&&"stickyHeader",r!=="inherit"&&`align${Ve(r)}`,o!=="normal"&&`padding${Ve(o)}`,`size${Ve(a)}`]};return It(l,EQ,t)},TQ=Ue("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Ve(n.size)}`],n.padding!=="normal"&&t[`padding${Ve(n.padding)}`],n.align!=="inherit"&&t[`align${Ve(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(fn(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
212
|
-
${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${xQ.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),vn=_.forwardRef(function(t,n){const r=wt({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:i,padding:l,scope:u,size:d,sortDirection:p,variant:h,...y}=r,g=_.useContext(jP),b=_.useContext(db),S=b&&b.variant==="head";let T;i?T=i:T=S?"th":"td";let E=u;T==="td"?E=void 0:!E&&S&&(E="col");const A=h||b&&b.variant,C={...r,align:o,component:T,padding:l||(g&&g.padding?g.padding:"normal"),size:d||(g&&g.size?g.size:"medium"),sortDirection:p,stickyHeader:A==="head"&&g&&g.stickyHeader,variant:A},D=SQ(C);let I=null;return p&&(I=p==="asc"?"ascending":"descending"),v.jsx(TQ,{as:T,ref:n,className:Je(D.root,a),"aria-sort":I,scope:E,ownerState:C,...y})});function CQ(e){return kt("MuiTableContainer",e)}Dt("MuiTableContainer",["root"]);const _Q=e=>{const{classes:t}=e;return It({root:["root"]},CQ,t)},AQ=Ue("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),AC=_.forwardRef(function(t,n){const r=wt({props:t,name:"MuiTableContainer"}),{className:o,component:a="div",...i}=r,l={...r,component:a},u=_Q(l);return v.jsx(AQ,{ref:n,as:a,className:Je(u.root,o),ownerState:l,...i})});function kQ(e){return kt("MuiTableHead",e)}Dt("MuiTableHead",["root"]);const wQ=e=>{const{classes:t}=e;return It({root:["root"]},kQ,t)},RQ=Ue("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),DQ={variant:"head"},DD="thead",kC=_.forwardRef(function(t,n){const r=wt({props:t,name:"MuiTableHead"}),{className:o,component:a=DD,...i}=r,l={...r,component:a},u=wQ(l);return v.jsx(db.Provider,{value:DQ,children:v.jsx(RQ,{as:a,className:Je(u.root,o),ref:n,role:a===DD?null:"rowgroup",ownerState:l,...i})})});function IQ(e){return kt("MuiTableRow",e)}const ID=Dt("MuiTableRow",["root","selected","hover","head","footer"]),OQ=e=>{const{classes:t,selected:n,hover:r,head:o,footer:a}=e;return It({root:["root",n&&"selected",r&&"hover",o&&"head",a&&"footer"]},IQ,t)},NQ=Ue("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(fn(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${ID.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${ID.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),OD="tr",bi=_.forwardRef(function(t,n){const r=wt({props:t,name:"MuiTableRow"}),{className:o,component:a=OD,hover:i=!1,selected:l=!1,...u}=r,d=_.useContext(db),p={...r,component:a,hover:i,selected:l,head:d&&d.variant==="head",footer:d&&d.variant==="footer"},h=OQ(p);return v.jsx(NQ,{as:a,ref:n,className:Je(h.root,o),role:a===OD?null:"row",ownerState:p,...u})});var Od=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},PQ={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},LQ=class{#e=PQ;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},fc=new LQ;function MQ(e){setTimeout(e,0)}var Dc=typeof window>"u"||"Deno"in globalThis;function fo(){}function FQ(e,t){return typeof e=="function"?e(t):e}function ES(e){return typeof e=="number"&&e>=0&&e!==1/0}function BP(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ml(e,t){return typeof e=="function"?e(t):e}function ya(e,t){return typeof e=="function"?e(t):e}function ND(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:a,queryKey:i,stale:l}=e;if(i){if(r){if(t.queryHash!==wC(i,t.options))return!1}else if(!gh(t.queryKey,i))return!1}if(n!=="all"){const u=t.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||o&&o!==t.state.fetchStatus||a&&!a(t))}function PD(e,t){const{exact:n,status:r,predicate:o,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Ic(t.options.mutationKey)!==Ic(a))return!1}else if(!gh(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function wC(e,t){return(t?.queryKeyHashFn||Ic)(e)}function Ic(e){return JSON.stringify(e,(t,n)=>xS(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function gh(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>gh(e[n],t[n])):!1}var jQ=Object.prototype.hasOwnProperty;function UP(e,t){if(e===t)return e;const n=LD(e)&&LD(t);if(!n&&!(xS(e)&&xS(t)))return t;const o=(n?e:Object.keys(e)).length,a=n?t:Object.keys(t),i=a.length,l=n?new Array(i):{};let u=0;for(let d=0;d<i;d++){const p=n?d:a[d],h=e[p],y=t[p];if(h===y){l[p]=h,(n?d<o:jQ.call(e,p))&&u++;continue}if(h===null||y===null||typeof h!="object"||typeof y!="object"){l[p]=y;continue}const g=UP(h,y);l[p]=g,g===h&&u++}return o===i&&u===o?e:l}function t0(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function LD(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function xS(e){if(!MD(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!MD(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function MD(e){return Object.prototype.toString.call(e)==="[object Object]"}function BQ(e){return new Promise(t=>{fc.setTimeout(t,e)})}function SS(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?UP(e,t):t}function UQ(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function zQ(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var RC=Symbol();function zP(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===RC?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function HP(e,t){return typeof e=="function"?e(...t):!!e}var HQ=class extends Od{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!Dc&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},DC=new HQ;function TS(){let e,t;const n=new Promise((o,a)=>{e=o,t=a});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var $Q=MQ;function GQ(){let e=[],t=0,n=l=>{l()},r=l=>{l()},o=$Q;const a=l=>{t?e.push(l):o(()=>{n(l)})},i=()=>{const l=e;e=[],l.length&&o(()=>{r(()=>{l.forEach(u=>{n(u)})})})};return{batch:l=>{let u;t++;try{u=l()}finally{t--,t||i()}return u},batchCalls:l=>(...u)=>{a(()=>{l(...u)})},schedule:a,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{o=l}}}var Ar=GQ(),VQ=class extends Od{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!Dc&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},n0=new VQ;function qQ(e){return Math.min(1e3*2**e,3e4)}function $P(e){return(e??"online")==="online"?n0.isOnline():!0}var CS=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function GP(e){let t=!1,n=0,r;const o=TS(),a=()=>o.status!=="pending",i=S=>{if(!a()){const T=new CS(S);y(T),e.onCancel?.(T)}},l=()=>{t=!0},u=()=>{t=!1},d=()=>DC.isFocused()&&(e.networkMode==="always"||n0.isOnline())&&e.canRun(),p=()=>$P(e.networkMode)&&e.canRun(),h=S=>{a()||(r?.(),o.resolve(S))},y=S=>{a()||(r?.(),o.reject(S))},g=()=>new Promise(S=>{r=T=>{(a()||d())&&S(T)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),b=()=>{if(a())return;let S;const T=n===0?e.initialPromise:void 0;try{S=T??e.fn()}catch(E){S=Promise.reject(E)}Promise.resolve(S).then(h).catch(E=>{if(a())return;const A=e.retry??(Dc?0:3),C=e.retryDelay??qQ,D=typeof C=="function"?C(n,E):C,I=A===!0||typeof A=="number"&&n<A||typeof A=="function"&&A(n,E);if(t||!I){y(E);return}n++,e.onFail?.(n,E),BQ(D).then(()=>d()?void 0:g()).then(()=>{t?y(E):b()})})};return{promise:o,status:()=>o.status,cancel:i,continue:()=>(r?.(),o),cancelRetry:l,continueRetry:u,canStart:p,start:()=>(p()?b():g().then(b),o)}}var VP=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ES(this.gcTime)&&(this.#e=fc.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Dc?1/0:300*1e3))}clearGcTimeout(){this.#e&&(fc.clearTimeout(this.#e),this.#e=void 0)}},WQ=class extends VP{#e;#t;#n;#o;#r;#i;#s;constructor(e){super(),this.#s=!1,this.#i=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#o=e.client,this.#n=this.#o.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=FD(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#i,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=FD(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=SS(this.state.data,e,this.options);return this.#a({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(fo).catch(fo):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>ya(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===RC||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>ml(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!BP(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#s?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const l=this.observers.find(u=>u.options.queryFn);l&&this.setOptions(l.options)}const n=new AbortController,r=l=>{Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},o=()=>{const l=zP(this.options,t),d=(()=>{const p={client:this.#o,queryKey:this.queryKey,meta:this.meta};return r(p),p})();return this.#s=!1,this.options.persister?this.options.persister(l,d,this):l(d)},i=(()=>{const l={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#o,state:this.state,fetchFn:o};return r(l),l})();this.options.behavior?.onFetch(i,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==i.fetchOptions?.meta)&&this.#a({type:"fetch",meta:i.fetchOptions?.meta}),this.#r=GP({initialPromise:t?.initialPromise,fn:i.fetchFn,onCancel:l=>{l instanceof CS&&l.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(l,u)=>{this.#a({type:"failed",failureCount:l,error:u})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0});try{const l=await this.#r.start();if(l===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(l),this.#n.config.onSuccess?.(l,this),this.#n.config.onSettled?.(l,this.state.error,this),l}catch(l){if(l instanceof CS){if(l.silent)return this.#r.promise;if(l.revert){if(this.state.data===void 0)throw l;return this.state.data}}throw this.#a({type:"error",error:l}),this.#n.config.onError?.(l,this),this.#n.config.onSettled?.(this.state.data,l,this),l}finally{this.scheduleGc()}}#a(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...qP(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?r:void 0,r;case"error":const o=e.error;return{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Ar.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function qP(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:$P(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function FD(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var YQ=class extends Od{constructor(e,t){super(),this.options=t,this.#e=e,this.#a=null,this.#s=TS(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#o=void 0;#r;#i;#s;#a;#m;#f;#p;#c;#u;#l;#h=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),jD(this.#t,this.options)?this.#d():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return _S(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return _S(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#E(),this.#x(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ya(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),t._defaulted&&!t0(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&BD(this.#t,n,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#t!==n||ya(this.options.enabled,this.#t)!==ya(t.enabled,this.#t)||ml(this.options.staleTime,this.#t)!==ml(t.staleTime,this.#t))&&this.#g();const o=this.#y();r&&(this.#t!==n||ya(this.options.enabled,this.#t)!==ya(t.enabled,this.#t)||o!==this.#l)&&this.#b(o)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return KQ(this,n)&&(this.#o=n,this.#i=this.options,this.#r=this.#t.state),n}getCurrentResult(){return this.#o}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),r==="promise"&&!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(n,r))})}trackProp(e){this.#h.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#o))}#d(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(fo)),t}#g(){this.#E();const e=ml(this.options.staleTime,this.#t);if(Dc||this.#o.isStale||!ES(e))return;const n=BP(this.#o.dataUpdatedAt,e)+1;this.#c=fc.setTimeout(()=>{this.#o.isStale||this.updateResult()},n)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#b(e){this.#x(),this.#l=e,!(Dc||ya(this.options.enabled,this.#t)===!1||!ES(this.#l)||this.#l===0)&&(this.#u=fc.setInterval(()=>{(this.options.refetchIntervalInBackground||DC.isFocused())&&this.#d()},this.#l))}#v(){this.#g(),this.#b(this.#y())}#E(){this.#c&&(fc.clearTimeout(this.#c),this.#c=void 0)}#x(){this.#u&&(fc.clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const n=this.#t,r=this.options,o=this.#o,a=this.#r,i=this.#i,u=e!==n?e.state:this.#n,{state:d}=e;let p={...d},h=!1,y;if(t._optimisticResults){const $=this.hasListeners(),z=!$&&jD(e,t),L=$&&BD(e,n,t,r);(z||L)&&(p={...p,...qP(d.data,e.options)}),t._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:g,errorUpdatedAt:b,status:S}=p;y=p.data;let T=!1;if(t.placeholderData!==void 0&&y===void 0&&S==="pending"){let $;o?.isPlaceholderData&&t.placeholderData===i?.placeholderData?($=o.data,T=!0):$=typeof t.placeholderData=="function"?t.placeholderData(this.#p?.state.data,this.#p):t.placeholderData,$!==void 0&&(S="success",y=SS(o?.data,$,t),h=!0)}if(t.select&&y!==void 0&&!T)if(o&&y===a?.data&&t.select===this.#m)y=this.#f;else try{this.#m=t.select,y=t.select(y),y=SS(o?.data,y,t),this.#f=y,this.#a=null}catch($){this.#a=$}this.#a&&(g=this.#a,y=this.#f,b=Date.now(),S="error");const E=p.fetchStatus==="fetching",A=S==="pending",C=S==="error",D=A&&E,I=y!==void 0,j={status:S,fetchStatus:p.fetchStatus,isPending:A,isSuccess:S==="success",isError:C,isInitialLoading:D,isLoading:D,data:y,dataUpdatedAt:p.dataUpdatedAt,error:g,errorUpdatedAt:b,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>u.dataUpdateCount||p.errorUpdateCount>u.errorUpdateCount,isFetching:E,isRefetching:E&&!A,isLoadingError:C&&!I,isPaused:p.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:C&&I,isStale:IC(e,t),refetch:this.refetch,promise:this.#s,isEnabled:ya(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const $=H=>{j.status==="error"?H.reject(j.error):j.data!==void 0&&H.resolve(j.data)},z=()=>{const H=this.#s=j.promise=TS();$(H)},L=this.#s;switch(L.status){case"pending":e.queryHash===n.queryHash&&$(L);break;case"fulfilled":(j.status==="error"||j.data!==L.value)&&z();break;case"rejected":(j.status!=="error"||j.error!==L.reason)&&z();break}}return j}updateResult(){const e=this.#o,t=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#i=this.options,this.#r.data!==void 0&&(this.#p=this.#t),t0(t,e))return;this.#o=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,o=typeof r=="function"?r():r;if(o==="all"||!o&&!this.#h.size)return!0;const a=new Set(o??this.#h);return this.options.throwOnError&&a.add("error"),Object.keys(this.#o).some(i=>{const l=i;return this.#o[l]!==e[l]&&a.has(l)})};this.#T({listeners:n()})}#S(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#T(e){Ar.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#o)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function QQ(e,t){return ya(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function jD(e,t){return QQ(e,t)||e.state.data!==void 0&&_S(e,t,t.refetchOnMount)}function _S(e,t,n){if(ya(t.enabled,e)!==!1&&ml(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&IC(e,t)}return!1}function BD(e,t,n,r){return(e!==t||ya(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&IC(e,n)}function IC(e,t){return ya(t.enabled,e)!==!1&&e.isStaleByTime(ml(t.staleTime,e))}function KQ(e,t){return!t0(e.getCurrentResult(),t)}function UD(e){return{onFetch:(t,n)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],i=t.state.data?.pageParams||[];let l={pages:[],pageParams:[]},u=0;const d=async()=>{let p=!1;const h=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},y=zP(t.options,t.fetchOptions),g=async(b,S,T)=>{if(p)return Promise.reject();if(S==null&&b.pages.length)return Promise.resolve(b);const A=(()=>{const O={client:t.client,queryKey:t.queryKey,pageParam:S,direction:T?"backward":"forward",meta:t.options.meta};return h(O),O})(),C=await y(A),{maxPages:D}=t.options,I=T?zQ:UQ;return{pages:I(b.pages,C,D),pageParams:I(b.pageParams,S,D)}};if(o&&a.length){const b=o==="backward",S=b?XQ:zD,T={pages:a,pageParams:i},E=S(r,T);l=await g(T,E,b)}else{const b=e??a.length;do{const S=u===0?i[0]??r.initialPageParam:zD(r,l);if(u>0&&S==null)break;l=await g(l,S),u++}while(u<b)}return l};t.options.persister?t.fetchFn=()=>t.options.persister?.(d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=d}}}function zD(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function XQ(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var ZQ=class extends VP{#e;#t;#n;#o;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||WP(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#o=GP({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(a,i)=>{this.#r({type:"failed",failureCount:a,error:i})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",o=!this.#o.canStart();try{if(r)t();else{this.#r({type:"pending",variables:e,isPaused:o}),await this.#n.config.onMutate?.(e,this,n);const i=await this.options.onMutate?.(e,n);i!==this.state.context&&this.#r({type:"pending",context:i,variables:e,isPaused:o})}const a=await this.#o.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#r({type:"success",data:a}),a}catch(a){try{throw await this.#n.config.onError?.(a,e,this.state.context,this,n),await this.options.onError?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(void 0,a,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,a,e,this.state.context,n),a}finally{this.#r({type:"error",error:a})}}finally{this.#n.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Ar.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function WP(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var JQ=class extends Od{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const r=new ZQ({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);const t=Ug(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Ug(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Ug(e);if(typeof t=="string"){const r=this.#t.get(t)?.find(o=>o.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=Ug(e);return typeof t=="string"?this.#t.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Ar.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>PD(t,n))}findAll(e={}){return this.getAll().filter(t=>PD(e,t))}notify(e){Ar.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Ar.batch(()=>Promise.all(e.map(t=>t.continue().catch(fo))))}};function Ug(e){return e.options.scope?.id}var eK=class extends Od{#e;#t=void 0;#n;#o;constructor(t,n){super(),this.#e=t,this.setOptions(n),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#e.defaultMutationOptions(t),t0(this.options,n)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&Ic(n.mutationKey)!==Ic(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#i(t)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#i()}mutate(t,n){return this.#o=n,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(t)}#r(){const t=this.#n?.state??WP();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#i(t){Ar.batch(()=>{if(this.#o&&this.hasListeners()){const n=this.#t.variables,r=this.#t.context,o={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#o.onSuccess?.(t.data,n,r,o),this.#o.onSettled?.(t.data,null,n,r,o)):t?.type==="error"&&(this.#o.onError?.(t.error,n,r,o),this.#o.onSettled?.(void 0,t.error,n,r,o))}this.listeners.forEach(n=>{n(this.#t)})})}},tK=class extends Od{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,o=t.queryHash??wC(r,t);let a=this.get(o);return a||(a=new WQ({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Ar.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>ND(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>ND(e,n)):t}notify(e){Ar.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Ar.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Ar.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},nK=class{#e;#t;#n;#o;#r;#i;#s;#a;constructor(e={}){this.#e=e.queryCache||new tK,this.#t=e.mutationCache||new JQ,this.#n=e.defaultOptions||{},this.#o=new Map,this.#r=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#s=DC.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#a=n0.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#s?.(),this.#s=void 0,this.#a?.(),this.#a=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ml(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),a=this.#e.get(r.queryHash)?.state.data,i=FQ(t,a);if(i!==void 0)return this.#e.build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Ar.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;Ar.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return Ar.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Ar.batch(()=>this.#e.findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(fo).catch(fo)}invalidateQueries(e,t={}){return Ar.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Ar.batch(()=>this.#e.findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let a=o.fetch(void 0,n);return n.throwOnError||(a=a.catch(fo)),o.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(fo)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(ml(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(fo).catch(fo)}fetchInfiniteQuery(e){return e.behavior=UD(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(fo).catch(fo)}ensureInfiniteQueryData(e){return e.behavior=UD(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return n0.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#o.set(Ic(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#o.values()],n={};return t.forEach(r=>{gh(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(Ic(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{gh(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=wC(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===RC&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},YP=_.createContext(void 0),gs=e=>{const t=_.useContext(YP);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},rK=({client:e,children:t})=>(_.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),v.jsx(YP.Provider,{value:e,children:t})),QP=_.createContext(!1),oK=()=>_.useContext(QP);QP.Provider;function aK(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var iK=_.createContext(aK()),sK=()=>_.useContext(iK),lK=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},cK=e=>{_.useEffect(()=>{e.clearReset()},[e])},uK=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||HP(n,[e.error,r])),dK=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},fK=(e,t)=>e.isLoading&&e.isFetching&&!t,pK=(e,t)=>e?.suspense&&t.isPending,HD=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function hK(e,t,n){const r=oK(),o=sK(),a=gs(n),i=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(i),i._optimisticResults=r?"isRestoring":"optimistic",dK(i),lK(i,o),cK(o);const l=!a.getQueryCache().get(i.queryHash),[u]=_.useState(()=>new t(a,i)),d=u.getOptimisticResult(i),p=!r&&e.subscribed!==!1;if(_.useSyncExternalStore(_.useCallback(h=>{const y=p?u.subscribe(Ar.batchCalls(h)):fo;return u.updateResult(),y},[u,p]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),_.useEffect(()=>{u.setOptions(i)},[i,u]),pK(i,d))throw HD(i,u,o);if(uK({result:d,errorResetBoundary:o,throwOnError:i.throwOnError,query:a.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw d.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(i,d),i.experimental_prefetchInRender&&!Dc&&fK(d,r)&&(l?HD(i,u,o):a.getQueryCache().get(i.queryHash)?.promise)?.catch(fo).finally(()=>{u.updateResult()}),i.notifyOnChangeProps?d:u.trackResult(d)}function mK(e,t){return hK(e,YQ,t)}function gK(e,t){const n=gs(t),[r]=_.useState(()=>new eK(n,e));_.useEffect(()=>{r.setOptions(e)},[r,e]);const o=_.useSyncExternalStore(_.useCallback(i=>r.subscribe(Ar.batchCalls(i)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=_.useCallback((i,l)=>{r.mutate(i,l).catch(fo)},[r]);if(o.error&&HP(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:a,mutateAsync:o.mutate}}function KP(e,t){return function(){return e.apply(t,arguments)}}const{toString:yK}=Object.prototype,{getPrototypeOf:OC}=Object,{iterator:fb,toStringTag:XP}=Symbol,pb=(e=>t=>{const n=yK.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Wa=e=>(e=e.toLowerCase(),t=>pb(t)===e),hb=e=>t=>typeof t===e,{isArray:Nd}=Array,md=hb("undefined");function Kh(e){return e!==null&&!md(e)&&e.constructor!==null&&!md(e.constructor)&&No(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ZP=Wa("ArrayBuffer");function bK(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ZP(e.buffer),t}const vK=hb("string"),No=hb("function"),JP=hb("number"),Xh=e=>e!==null&&typeof e=="object",EK=e=>e===!0||e===!1,vy=e=>{if(pb(e)!=="object")return!1;const t=OC(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(XP in e)&&!(fb in e)},xK=e=>{if(!Xh(e)||Kh(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},SK=Wa("Date"),TK=Wa("File"),CK=Wa("Blob"),_K=Wa("FileList"),AK=e=>Xh(e)&&No(e.pipe),kK=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||No(e.append)&&((t=pb(e))==="formdata"||t==="object"&&No(e.toString)&&e.toString()==="[object FormData]"))},wK=Wa("URLSearchParams"),[RK,DK,IK,OK]=["ReadableStream","Request","Response","Headers"].map(Wa),NK=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Zh(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Nd(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(Kh(e))return;const a=n?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length;let l;for(r=0;r<i;r++)l=a[r],t.call(null,e[l],l,e)}}function e4(e,t){if(Kh(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const pc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,t4=e=>!md(e)&&e!==pc;function AS(){const{caseless:e,skipUndefined:t}=t4(this)&&this||{},n={},r=(o,a)=>{const i=e&&e4(n,a)||a;vy(n[i])&&vy(o)?n[i]=AS(n[i],o):vy(o)?n[i]=AS({},o):Nd(o)?n[i]=o.slice():(!t||!md(o))&&(n[i]=o)};for(let o=0,a=arguments.length;o<a;o++)arguments[o]&&Zh(arguments[o],r);return n}const PK=(e,t,n,{allOwnKeys:r}={})=>(Zh(t,(o,a)=>{n&&No(o)?e[a]=KP(o,n):e[a]=o},{allOwnKeys:r}),e),LK=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),MK=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},FK=(e,t,n,r)=>{let o,a,i;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],(!r||r(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&OC(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},jK=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},BK=e=>{if(!e)return null;if(Nd(e))return e;let t=e.length;if(!JP(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},UK=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&OC(Uint8Array)),zK=(e,t)=>{const r=(e&&e[fb]).call(e);let o;for(;(o=r.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},HK=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},$K=Wa("HTMLFormElement"),GK=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),$D=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),VK=Wa("RegExp"),n4=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Zh(n,(o,a)=>{let i;(i=t(o,a,e))!==!1&&(r[a]=i||o)}),Object.defineProperties(e,r)},qK=e=>{n4(e,(t,n)=>{if(No(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(No(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},WK=(e,t)=>{const n={},r=o=>{o.forEach(a=>{n[a]=!0})};return Nd(e)?r(e):r(String(e).split(t)),n},YK=()=>{},QK=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function KK(e){return!!(e&&No(e.append)&&e[XP]==="FormData"&&e[fb])}const XK=e=>{const t=new Array(10),n=(r,o)=>{if(Xh(r)){if(t.indexOf(r)>=0)return;if(Kh(r))return r;if(!("toJSON"in r)){t[o]=r;const a=Nd(r)?[]:{};return Zh(r,(i,l)=>{const u=n(i,o+1);!md(u)&&(a[l]=u)}),t[o]=void 0,a}}return r};return n(e,0)},ZK=Wa("AsyncFunction"),JK=e=>e&&(Xh(e)||No(e))&&No(e.then)&&No(e.catch),r4=((e,t)=>e?setImmediate:t?((n,r)=>(pc.addEventListener("message",({source:o,data:a})=>{o===pc&&a===n&&r.length&&r.shift()()},!1),o=>{r.push(o),pc.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",No(pc.postMessage)),eX=typeof queueMicrotask<"u"?queueMicrotask.bind(pc):typeof process<"u"&&process.nextTick||r4,tX=e=>e!=null&&No(e[fb]),ve={isArray:Nd,isArrayBuffer:ZP,isBuffer:Kh,isFormData:kK,isArrayBufferView:bK,isString:vK,isNumber:JP,isBoolean:EK,isObject:Xh,isPlainObject:vy,isEmptyObject:xK,isReadableStream:RK,isRequest:DK,isResponse:IK,isHeaders:OK,isUndefined:md,isDate:SK,isFile:TK,isBlob:CK,isRegExp:VK,isFunction:No,isStream:AK,isURLSearchParams:wK,isTypedArray:UK,isFileList:_K,forEach:Zh,merge:AS,extend:PK,trim:NK,stripBOM:LK,inherits:MK,toFlatObject:FK,kindOf:pb,kindOfTest:Wa,endsWith:jK,toArray:BK,forEachEntry:zK,matchAll:HK,isHTMLForm:$K,hasOwnProperty:$D,hasOwnProp:$D,reduceDescriptors:n4,freezeMethods:qK,toObjectSet:WK,toCamelCase:GK,noop:YK,toFiniteNumber:QK,findKey:e4,global:pc,isContextDefined:t4,isSpecCompliantForm:KK,toJSONObject:XK,isAsyncFn:ZK,isThenable:JK,setImmediate:r4,asap:eX,isIterable:tX};function Ft(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}ve.inherits(Ft,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:ve.toJSONObject(this.config),code:this.code,status:this.status}}});const o4=Ft.prototype,a4={};["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=>{a4[e]={value:e}});Object.defineProperties(Ft,a4);Object.defineProperty(o4,"isAxiosError",{value:!0});Ft.from=(e,t,n,r,o,a)=>{const i=Object.create(o4);ve.toFlatObject(e,i,function(p){return p!==Error.prototype},d=>d!=="isAxiosError");const l=e&&e.message?e.message:"Error",u=t==null&&e?e.code:t;return Ft.call(i,l,u,n,r,o),e&&i.cause==null&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",a&&Object.assign(i,a),i};const nX=null;function kS(e){return ve.isPlainObject(e)||ve.isArray(e)}function i4(e){return ve.endsWith(e,"[]")?e.slice(0,-2):e}function GD(e,t,n){return e?e.concat(t).map(function(o,a){return o=i4(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function rX(e){return ve.isArray(e)&&!e.some(kS)}const oX=ve.toFlatObject(ve,{},null,function(t){return/^is[A-Z]/.test(t)});function mb(e,t,n){if(!ve.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ve.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,T){return!ve.isUndefined(T[S])});const r=n.metaTokens,o=n.visitor||p,a=n.dots,i=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&ve.isSpecCompliantForm(t);if(!ve.isFunction(o))throw new TypeError("visitor must be a function");function d(b){if(b===null)return"";if(ve.isDate(b))return b.toISOString();if(ve.isBoolean(b))return b.toString();if(!u&&ve.isBlob(b))throw new Ft("Blob is not supported. Use a Buffer instead.");return ve.isArrayBuffer(b)||ve.isTypedArray(b)?u&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function p(b,S,T){let E=b;if(b&&!T&&typeof b=="object"){if(ve.endsWith(S,"{}"))S=r?S:S.slice(0,-2),b=JSON.stringify(b);else if(ve.isArray(b)&&rX(b)||(ve.isFileList(b)||ve.endsWith(S,"[]"))&&(E=ve.toArray(b)))return S=i4(S),E.forEach(function(C,D){!(ve.isUndefined(C)||C===null)&&t.append(i===!0?GD([S],D,a):i===null?S:S+"[]",d(C))}),!1}return kS(b)?!0:(t.append(GD(T,S,a),d(b)),!1)}const h=[],y=Object.assign(oX,{defaultVisitor:p,convertValue:d,isVisitable:kS});function g(b,S){if(!ve.isUndefined(b)){if(h.indexOf(b)!==-1)throw Error("Circular reference detected in "+S.join("."));h.push(b),ve.forEach(b,function(E,A){(!(ve.isUndefined(E)||E===null)&&o.call(t,E,ve.isString(A)?A.trim():A,S,y))===!0&&g(E,S?S.concat(A):[A])}),h.pop()}}if(!ve.isObject(e))throw new TypeError("data must be an object");return g(e),t}function VD(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function NC(e,t){this._pairs=[],e&&mb(e,this,t)}const s4=NC.prototype;s4.append=function(t,n){this._pairs.push([t,n])};s4.toString=function(t){const n=t?function(r){return t.call(this,r,VD)}:VD;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function aX(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function l4(e,t,n){if(!t)return e;const r=n&&n.encode||aX;ve.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let a;if(o?a=o(t,n):a=ve.isURLSearchParams(t)?t.toString():new NC(t,n).toString(r),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class qD{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ve.forEach(this.handlers,function(r){r!==null&&t(r)})}}const c4={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},iX=typeof URLSearchParams<"u"?URLSearchParams:NC,sX=typeof FormData<"u"?FormData:null,lX=typeof Blob<"u"?Blob:null,cX={isBrowser:!0,classes:{URLSearchParams:iX,FormData:sX,Blob:lX},protocols:["http","https","file","blob","url","data"]},PC=typeof window<"u"&&typeof document<"u",wS=typeof navigator=="object"&&navigator||void 0,uX=PC&&(!wS||["ReactNative","NativeScript","NS"].indexOf(wS.product)<0),dX=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fX=PC&&window.location.href||"http://localhost",pX=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:PC,hasStandardBrowserEnv:uX,hasStandardBrowserWebWorkerEnv:dX,navigator:wS,origin:fX},Symbol.toStringTag,{value:"Module"})),Qr={...pX,...cX};function hX(e,t){return mb(e,new Qr.classes.URLSearchParams,{visitor:function(n,r,o,a){return Qr.isNode&&ve.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function mX(e){return ve.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function gX(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r<o;r++)a=n[r],t[a]=e[a];return t}function u4(e){function t(n,r,o,a){let i=n[a++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),u=a>=n.length;return i=!i&&ve.isArray(o)?o.length:i,u?(ve.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!l):((!o[i]||!ve.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],a)&&ve.isArray(o[i])&&(o[i]=gX(o[i])),!l)}if(ve.isFormData(e)&&ve.isFunction(e.entries)){const n={};return ve.forEachEntry(e,(r,o)=>{t(mX(r),o,n,0)}),n}return null}function yX(e,t,n){if(ve.isString(e))try{return(t||JSON.parse)(e),ve.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Jh={transitional:c4,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=ve.isObject(t);if(a&&ve.isHTMLForm(t)&&(t=new FormData(t)),ve.isFormData(t))return o?JSON.stringify(u4(t)):t;if(ve.isArrayBuffer(t)||ve.isBuffer(t)||ve.isStream(t)||ve.isFile(t)||ve.isBlob(t)||ve.isReadableStream(t))return t;if(ve.isArrayBufferView(t))return t.buffer;if(ve.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return hX(t,this.formSerializer).toString();if((l=ve.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return mb(l?{"files[]":t}:t,u&&new u,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),yX(t)):t}],transformResponse:[function(t){const n=this.transitional||Jh.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(ve.isResponse(t)||ve.isReadableStream(t))return t;if(t&&ve.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(l){if(i)throw l.name==="SyntaxError"?Ft.from(l,Ft.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Qr.classes.FormData,Blob:Qr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ve.forEach(["delete","get","head","post","put","patch"],e=>{Jh.headers[e]={}});const bX=ve.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"]),vX=e=>{const t={};let n,r,o;return e&&e.split(`
|
|
213
|
-
`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&bX[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},WD=Symbol("internals");function ep(e){return e&&String(e).trim().toLowerCase()}function Ey(e){return e===!1||e==null?e:ve.isArray(e)?e.map(Ey):String(e)}function EX(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const xX=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function UE(e,t,n,r,o){if(ve.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!ve.isString(t)){if(ve.isString(r))return t.indexOf(r)!==-1;if(ve.isRegExp(r))return r.test(t)}}function SX(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function TX(e,t){const n=ve.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,a,i){return this[r].call(this,t,o,a,i)},configurable:!0})})}let Po=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function a(l,u,d){const p=ep(u);if(!p)throw new Error("header name must be a non-empty string");const h=ve.findKey(o,p);(!h||o[h]===void 0||d===!0||d===void 0&&o[h]!==!1)&&(o[h||u]=Ey(l))}const i=(l,u)=>ve.forEach(l,(d,p)=>a(d,p,u));if(ve.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(ve.isString(t)&&(t=t.trim())&&!xX(t))i(vX(t),n);else if(ve.isObject(t)&&ve.isIterable(t)){let l={},u,d;for(const p of t){if(!ve.isArray(p))throw TypeError("Object iterator must return a key-value pair");l[d=p[0]]=(u=l[d])?ve.isArray(u)?[...u,p[1]]:[u,p[1]]:p[1]}i(l,n)}else t!=null&&a(n,t,r);return this}get(t,n){if(t=ep(t),t){const r=ve.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return EX(o);if(ve.isFunction(n))return n.call(this,o,r);if(ve.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ep(t),t){const r=ve.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||UE(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function a(i){if(i=ep(i),i){const l=ve.findKey(r,i);l&&(!n||UE(r,r[l],l,n))&&(delete r[l],o=!0)}}return ve.isArray(t)?t.forEach(a):a(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const a=n[r];(!t||UE(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,r={};return ve.forEach(this,(o,a)=>{const i=ve.findKey(r,a);if(i){n[i]=Ey(o),delete n[a];return}const l=t?SX(a):String(a).trim();l!==a&&delete n[a],n[l]=Ey(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ve.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&ve.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
214
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[WD]=this[WD]={accessors:{}}).accessors,o=this.prototype;function a(i){const l=ep(i);r[l]||(TX(o,i),r[l]=!0)}return ve.isArray(t)?t.forEach(a):a(t),this}};Po.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ve.reduceDescriptors(Po.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ve.freezeMethods(Po);function zE(e,t){const n=this||Jh,r=t||n,o=Po.from(r.headers);let a=r.data;return ve.forEach(e,function(l){a=l.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function d4(e){return!!(e&&e.__CANCEL__)}function Pd(e,t,n){Ft.call(this,e??"canceled",Ft.ERR_CANCELED,t,n),this.name="CanceledError"}ve.inherits(Pd,Ft,{__CANCEL__:!0});function f4(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Ft("Request failed with status code "+n.status,[Ft.ERR_BAD_REQUEST,Ft.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function CX(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function _X(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,a=0,i;return t=t!==void 0?t:1e3,function(u){const d=Date.now(),p=r[a];i||(i=d),n[o]=u,r[o]=d;let h=a,y=0;for(;h!==o;)y+=n[h++],h=h%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),d-i<t)return;const g=p&&d-p;return g?Math.round(y*1e3/g):void 0}}function AX(e,t){let n=0,r=1e3/t,o,a;const i=(d,p=Date.now())=>{n=p,o=null,a&&(clearTimeout(a),a=null),e(...d)};return[(...d)=>{const p=Date.now(),h=p-n;h>=r?i(d,p):(o=d,a||(a=setTimeout(()=>{a=null,i(o)},r-h)))},()=>o&&i(o)]}const r0=(e,t,n=3)=>{let r=0;const o=_X(50,250);return AX(a=>{const i=a.loaded,l=a.lengthComputable?a.total:void 0,u=i-r,d=o(u),p=i<=l;r=i;const h={loaded:i,total:l,progress:l?i/l:void 0,bytes:u,rate:d||void 0,estimated:d&&l&&p?(l-i)/d:void 0,event:a,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(h)},n)},YD=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},QD=e=>(...t)=>ve.asap(()=>e(...t)),kX=Qr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Qr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Qr.origin),Qr.navigator&&/(msie|trident)/i.test(Qr.navigator.userAgent)):()=>!0,wX=Qr.hasStandardBrowserEnv?{write(e,t,n,r,o,a){const i=[e+"="+encodeURIComponent(t)];ve.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),ve.isString(r)&&i.push("path="+r),ve.isString(o)&&i.push("domain="+o),a===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function RX(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function DX(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function p4(e,t,n){let r=!RX(t);return e&&(r||n==!1)?DX(e,t):t}const KD=e=>e instanceof Po?{...e}:e;function Oc(e,t){t=t||{};const n={};function r(d,p,h,y){return ve.isPlainObject(d)&&ve.isPlainObject(p)?ve.merge.call({caseless:y},d,p):ve.isPlainObject(p)?ve.merge({},p):ve.isArray(p)?p.slice():p}function o(d,p,h,y){if(ve.isUndefined(p)){if(!ve.isUndefined(d))return r(void 0,d,h,y)}else return r(d,p,h,y)}function a(d,p){if(!ve.isUndefined(p))return r(void 0,p)}function i(d,p){if(ve.isUndefined(p)){if(!ve.isUndefined(d))return r(void 0,d)}else return r(void 0,p)}function l(d,p,h){if(h in t)return r(d,p);if(h in e)return r(void 0,d)}const u={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(d,p,h)=>o(KD(d),KD(p),h,!0)};return ve.forEach(Object.keys({...e,...t}),function(p){const h=u[p]||o,y=h(e[p],t[p],p);ve.isUndefined(y)&&h!==l||(n[p]=y)}),n}const h4=e=>{const t=Oc({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:i,auth:l}=t;if(t.headers=i=Po.from(i),t.url=l4(p4(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),ve.isFormData(n)){if(Qr.hasStandardBrowserEnv||Qr.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(ve.isFunction(n.getHeaders)){const u=n.getHeaders(),d=["content-type","content-length"];Object.entries(u).forEach(([p,h])=>{d.includes(p.toLowerCase())&&i.set(p,h)})}}if(Qr.hasStandardBrowserEnv&&(r&&ve.isFunction(r)&&(r=r(t)),r||r!==!1&&kX(t.url))){const u=o&&a&&wX.read(a);u&&i.set(o,u)}return t},IX=typeof XMLHttpRequest<"u",OX=IX&&function(e){return new Promise(function(n,r){const o=h4(e);let a=o.data;const i=Po.from(o.headers).normalize();let{responseType:l,onUploadProgress:u,onDownloadProgress:d}=o,p,h,y,g,b;function S(){g&&g(),b&&b(),o.cancelToken&&o.cancelToken.unsubscribe(p),o.signal&&o.signal.removeEventListener("abort",p)}let T=new XMLHttpRequest;T.open(o.method.toUpperCase(),o.url,!0),T.timeout=o.timeout;function E(){if(!T)return;const C=Po.from("getAllResponseHeaders"in T&&T.getAllResponseHeaders()),I={data:!l||l==="text"||l==="json"?T.responseText:T.response,status:T.status,statusText:T.statusText,headers:C,config:e,request:T};f4(function(j){n(j),S()},function(j){r(j),S()},I),T=null}"onloadend"in T?T.onloadend=E:T.onreadystatechange=function(){!T||T.readyState!==4||T.status===0&&!(T.responseURL&&T.responseURL.indexOf("file:")===0)||setTimeout(E)},T.onabort=function(){T&&(r(new Ft("Request aborted",Ft.ECONNABORTED,e,T)),T=null)},T.onerror=function(D){const I=D&&D.message?D.message:"Network Error",O=new Ft(I,Ft.ERR_NETWORK,e,T);O.event=D||null,r(O),T=null},T.ontimeout=function(){let D=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const I=o.transitional||c4;o.timeoutErrorMessage&&(D=o.timeoutErrorMessage),r(new Ft(D,I.clarifyTimeoutError?Ft.ETIMEDOUT:Ft.ECONNABORTED,e,T)),T=null},a===void 0&&i.setContentType(null),"setRequestHeader"in T&&ve.forEach(i.toJSON(),function(D,I){T.setRequestHeader(I,D)}),ve.isUndefined(o.withCredentials)||(T.withCredentials=!!o.withCredentials),l&&l!=="json"&&(T.responseType=o.responseType),d&&([y,b]=r0(d,!0),T.addEventListener("progress",y)),u&&T.upload&&([h,g]=r0(u),T.upload.addEventListener("progress",h),T.upload.addEventListener("loadend",g)),(o.cancelToken||o.signal)&&(p=C=>{T&&(r(!C||C.type?new Pd(null,e,T):C),T.abort(),T=null)},o.cancelToken&&o.cancelToken.subscribe(p),o.signal&&(o.signal.aborted?p():o.signal.addEventListener("abort",p)));const A=CX(o.url);if(A&&Qr.protocols.indexOf(A)===-1){r(new Ft("Unsupported protocol "+A+":",Ft.ERR_BAD_REQUEST,e));return}T.send(a||null)})},NX=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const a=function(d){if(!o){o=!0,l();const p=d instanceof Error?d:this.reason;r.abort(p instanceof Ft?p:new Pd(p instanceof Error?p.message:p))}};let i=t&&setTimeout(()=>{i=null,a(new Ft(`timeout ${t} of ms exceeded`,Ft.ETIMEDOUT))},t);const l=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(a):d.removeEventListener("abort",a)}),e=null)};e.forEach(d=>d.addEventListener("abort",a));const{signal:u}=r;return u.unsubscribe=()=>ve.asap(l),u}},PX=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},LX=async function*(e,t){for await(const n of MX(e))yield*PX(n,t)},MX=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},XD=(e,t,n,r)=>{const o=LX(e,t);let a=0,i,l=u=>{i||(i=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:d,value:p}=await o.next();if(d){l(),u.close();return}let h=p.byteLength;if(n){let y=a+=h;n(y)}u.enqueue(new Uint8Array(p))}catch(d){throw l(d),d}},cancel(u){return l(u),o.return()}},{highWaterMark:2})},ZD=64*1024,{isFunction:zg}=ve,FX=(({Request:e,Response:t})=>({Request:e,Response:t}))(ve.global),{ReadableStream:JD,TextEncoder:eI}=ve.global,tI=(e,...t)=>{try{return!!e(...t)}catch{return!1}},jX=e=>{e=ve.merge.call({skipUndefined:!0},FX,e);const{fetch:t,Request:n,Response:r}=e,o=t?zg(t):typeof fetch=="function",a=zg(n),i=zg(r);if(!o)return!1;const l=o&&zg(JD),u=o&&(typeof eI=="function"?(b=>S=>b.encode(S))(new eI):async b=>new Uint8Array(await new n(b).arrayBuffer())),d=a&&l&&tI(()=>{let b=!1;const S=new n(Qr.origin,{body:new JD,method:"POST",get duplex(){return b=!0,"half"}}).headers.has("Content-Type");return b&&!S}),p=i&&l&&tI(()=>ve.isReadableStream(new r("").body)),h={stream:p&&(b=>b.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(b=>{!h[b]&&(h[b]=(S,T)=>{let E=S&&S[b];if(E)return E.call(S);throw new Ft(`Response type '${b}' is not supported`,Ft.ERR_NOT_SUPPORT,T)})});const y=async b=>{if(b==null)return 0;if(ve.isBlob(b))return b.size;if(ve.isSpecCompliantForm(b))return(await new n(Qr.origin,{method:"POST",body:b}).arrayBuffer()).byteLength;if(ve.isArrayBufferView(b)||ve.isArrayBuffer(b))return b.byteLength;if(ve.isURLSearchParams(b)&&(b=b+""),ve.isString(b))return(await u(b)).byteLength},g=async(b,S)=>{const T=ve.toFiniteNumber(b.getContentLength());return T??y(S)};return async b=>{let{url:S,method:T,data:E,signal:A,cancelToken:C,timeout:D,onDownloadProgress:I,onUploadProgress:O,responseType:j,headers:$,withCredentials:z="same-origin",fetchOptions:L}=h4(b),H=t||fetch;j=j?(j+"").toLowerCase():"text";let k=NX([A,C&&C.toAbortSignal()],D),F=null;const B=k&&k.unsubscribe&&(()=>{k.unsubscribe()});let G;try{if(O&&d&&T!=="get"&&T!=="head"&&(G=await g($,E))!==0){let K=new n(S,{method:"POST",body:E,duplex:"half"}),X;if(ve.isFormData(E)&&(X=K.headers.get("content-type"))&&$.setContentType(X),K.body){const[P,J]=YD(G,r0(QD(O)));E=XD(K.body,ZD,P,J)}}ve.isString(z)||(z=z?"include":"omit");const U=a&&"credentials"in n.prototype,Q={...L,signal:k,method:T.toUpperCase(),headers:$.normalize().toJSON(),body:E,duplex:"half",credentials:U?z:void 0};F=a&&new n(S,Q);let Y=await(a?H(F,L):H(S,Q));const oe=p&&(j==="stream"||j==="response");if(p&&(I||oe&&B)){const K={};["status","statusText","headers"].forEach(se=>{K[se]=Y[se]});const X=ve.toFiniteNumber(Y.headers.get("content-length")),[P,J]=I&&YD(X,r0(QD(I),!0))||[];Y=new r(XD(Y.body,ZD,P,()=>{J&&J(),B&&B()}),K)}j=j||"text";let N=await h[ve.findKey(h,j)||"text"](Y,b);return!oe&&B&&B(),await new Promise((K,X)=>{f4(K,X,{data:N,headers:Po.from(Y.headers),status:Y.status,statusText:Y.statusText,config:b,request:F})})}catch(U){throw B&&B(),U&&U.name==="TypeError"&&/Load failed|fetch/i.test(U.message)?Object.assign(new Ft("Network Error",Ft.ERR_NETWORK,b,F),{cause:U.cause||U}):Ft.from(U,U&&U.code,b,F)}}},BX=new Map,m4=e=>{let t=e?e.env:{};const{fetch:n,Request:r,Response:o}=t,a=[r,o,n];let i=a.length,l=i,u,d,p=BX;for(;l--;)u=a[l],d=p.get(u),d===void 0&&p.set(u,d=l?new Map:jX(t)),p=d;return d};m4();const RS={http:nX,xhr:OX,fetch:{get:m4}};ve.forEach(RS,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const nI=e=>`- ${e}`,UX=e=>ve.isFunction(e)||e===null||e===!1,g4={getAdapter:(e,t)=>{e=ve.isArray(e)?e:[e];const{length:n}=e;let r,o;const a={};for(let i=0;i<n;i++){r=e[i];let l;if(o=r,!UX(r)&&(o=RS[(l=String(r)).toLowerCase()],o===void 0))throw new Ft(`Unknown adapter '${l}'`);if(o&&(ve.isFunction(o)||(o=o.get(t))))break;a[l||"#"+i]=o}if(!o){const i=Object.entries(a).map(([u,d])=>`adapter ${u} `+(d===!1?"is not supported by the environment":"is not available in the build"));let l=n?i.length>1?`since :
|
|
215
|
-
`+i.map(nI).join(`
|
|
216
|
-
`):" "+nI(i[0]):"as no adapter specified";throw new Ft("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return o},adapters:RS};function HE(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Pd(null,e)}function rI(e){return HE(e),e.headers=Po.from(e.headers),e.data=zE.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),g4.getAdapter(e.adapter||Jh.adapter,e)(e).then(function(r){return HE(e),r.data=zE.call(e,e.transformResponse,r),r.headers=Po.from(r.headers),r},function(r){return d4(r)||(HE(e),r&&r.response&&(r.response.data=zE.call(e,e.transformResponse,r.response),r.response.headers=Po.from(r.response.headers))),Promise.reject(r)})}const y4="1.12.2",gb={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{gb[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const oI={};gb.transitional=function(t,n,r){function o(a,i){return"[Axios v"+y4+"] Transitional option '"+a+"'"+i+(r?". "+r:"")}return(a,i,l)=>{if(t===!1)throw new Ft(o(i," has been removed"+(n?" in "+n:"")),Ft.ERR_DEPRECATED);return n&&!oI[i]&&(oI[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,i,l):!0}};gb.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function zX(e,t,n){if(typeof e!="object")throw new Ft("options must be an object",Ft.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],i=t[a];if(i){const l=e[a],u=l===void 0||i(l,a,e);if(u!==!0)throw new Ft("option "+a+" must be "+u,Ft.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ft("Unknown option "+a,Ft.ERR_BAD_OPTION)}}const xy={assertOptions:zX,validators:gb},ri=xy.validators;let Ec=class{constructor(t){this.defaults=t||{},this.interceptors={request:new qD,response:new qD}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const a=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
217
|
-
`+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Oc(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:a}=n;r!==void 0&&xy.assertOptions(r,{silentJSONParsing:ri.transitional(ri.boolean),forcedJSONParsing:ri.transitional(ri.boolean),clarifyTimeoutError:ri.transitional(ri.boolean)},!1),o!=null&&(ve.isFunction(o)?n.paramsSerializer={serialize:o}:xy.assertOptions(o,{encode:ri.function,serialize:ri.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),xy.assertOptions(n,{baseUrl:ri.spelling("baseURL"),withXsrfToken:ri.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=a&&ve.merge(a.common,a[n.method]);a&&ve.forEach(["delete","get","head","post","put","patch","common"],b=>{delete a[b]}),n.headers=Po.concat(i,a);const l=[];let u=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(u=u&&S.synchronous,l.unshift(S.fulfilled,S.rejected))});const d=[];this.interceptors.response.forEach(function(S){d.push(S.fulfilled,S.rejected)});let p,h=0,y;if(!u){const b=[rI.bind(this),void 0];for(b.unshift(...l),b.push(...d),y=b.length,p=Promise.resolve(n);h<y;)p=p.then(b[h++],b[h++]);return p}y=l.length;let g=n;for(;h<y;){const b=l[h++],S=l[h++];try{g=b(g)}catch(T){S.call(this,T);break}}try{p=rI.call(this,g)}catch(b){return Promise.reject(b)}for(h=0,y=d.length;h<y;)p=p.then(d[h++],d[h++]);return p}getUri(t){t=Oc(this.defaults,t);const n=p4(t.baseURL,t.url,t.allowAbsoluteUrls);return l4(n,t.params,t.paramsSerializer)}};ve.forEach(["delete","get","head","options"],function(t){Ec.prototype[t]=function(n,r){return this.request(Oc(r||{},{method:t,url:n,data:(r||{}).data}))}});ve.forEach(["post","put","patch"],function(t){function n(r){return function(a,i,l){return this.request(Oc(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}Ec.prototype[t]=n(),Ec.prototype[t+"Form"]=n(!0)});let HX=class b4{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(o=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](o);r._listeners=null}),this.promise.then=o=>{let a;const i=new Promise(l=>{r.subscribe(l),a=l}).then(o);return i.cancel=function(){r.unsubscribe(a)},i},t(function(a,i,l){r.reason||(r.reason=new Pd(a,i,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new b4(function(o){t=o}),cancel:t}}};function $X(e){return function(n){return e.apply(null,n)}}function GX(e){return ve.isObject(e)&&e.isAxiosError===!0}const DS={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(DS).forEach(([e,t])=>{DS[t]=e});function v4(e){const t=new Ec(e),n=KP(Ec.prototype.request,t);return ve.extend(n,Ec.prototype,t,{allOwnKeys:!0}),ve.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return v4(Oc(e,o))},n}const ht=v4(Jh);ht.Axios=Ec;ht.CanceledError=Pd;ht.CancelToken=HX;ht.isCancel=d4;ht.VERSION=y4;ht.toFormData=mb;ht.AxiosError=Ft;ht.Cancel=ht.CanceledError;ht.all=function(t){return Promise.all(t)};ht.spread=$X;ht.isAxiosError=GX;ht.mergeConfig=Oc;ht.AxiosHeaders=Po;ht.formToJSON=e=>u4(ve.isHTMLForm(e)?new FormData(e):e);ht.getAdapter=g4.getAdapter;ht.HttpStatusCode=DS;ht.default=ht;const{Axios:gTe,AxiosError:yTe,CanceledError:bTe,isCancel:vTe,CancelToken:ETe,VERSION:xTe,all:STe,Cancel:TTe,isAxiosError:CTe,spread:_Te,toFormData:ATe,AxiosHeaders:kTe,HttpStatusCode:wTe,formToJSON:RTe,getAdapter:DTe,mergeConfig:ITe}=ht,LC=new nK({defaultOptions:{queries:{retry:!1,throwOnError:!1},mutations:{retry:!1,throwOnError:!1}}}),tn="http://localhost/api/v0".replace(/\/+$/,"");let ys=class{constructor(t,n=tn,r=ht){this.basePath=n,this.axios=r,t&&(this.configuration=t,this.basePath=t.basePath??n)}configuration},VX=class extends Error{constructor(t,n){super(n),this.field=t,this.name="RequiredError"}};const an={},sn="https://example.com",st=function(e,t,n){if(n==null)throw new VX(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function IS(e,t,n=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(r=>IS(e,r,n)):Object.keys(t).forEach(r=>IS(e,t[r],`${n}${n!==""?".":""}${r}`)):e.has(n)?e.append(n,t):e.set(n,t))}const ln=function(e,...t){const n=new URLSearchParams(e.search);IS(n,t),e.search=n.toString()},as=function(e,t,n){const r=typeof e!="string";return(r&&n&&n.isJsonMime?n.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(e!==void 0?e:{}):e||""},cn=function(e){return e.pathname+e.search+e.hash},un=function(e,t,n,r){return(o=t,a=n)=>{const i={...e.options,url:(o.defaults.baseURL?"":r?.basePath??a)+e.url};return o.request(i)}},E4={Postgres:"postgres",Bigquery:"bigquery",Snowflake:"snowflake",Trino:"trino",Mysql:"mysql"},qX=function(e){return{getConnection:async(t,n,r={})=>{st("getConnection","projectName",t),st("getConnection","connectionName",n);const o="/projects/{projectName}/connections/{connectionName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),a=new URL(o,sn);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...r},u={};ln(a,{});let d=i&&i.headers?i.headers:{};return l.headers={...u,...d,...r.headers},{url:cn(a),options:l}},getQuerydata:async(t,n,r,o,a={})=>{st("getQuerydata","projectName",t),st("getQuerydata","connectionName",n);const i="/projects/{projectName}/connections/{connectionName}/queryData".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),l=new URL(i,sn);let u;e&&(u=e.baseOptions);const d={method:"GET",...u,...a},p={},h={};r!==void 0&&(h.sqlStatement=r),o!==void 0&&(h.options=o),ln(l,h);let y=u&&u.headers?u.headers:{};return d.headers={...p,...y,...a.headers},{url:cn(l),options:d}},getSqlsource:async(t,n,r,o={})=>{st("getSqlsource","projectName",t),st("getSqlsource","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),i=new URL(a,sn);let l;e&&(l=e.baseOptions);const u={method:"GET",...l,...o},d={},p={};r!==void 0&&(p.sqlStatement=r),ln(i,p);let h=l&&l.headers?l.headers:{};return u.headers={...d,...h,...o.headers},{url:cn(i),options:u}},getTablesource:async(t,n,r,o,a={})=>{st("getTablesource","projectName",t),st("getTablesource","connectionName",n);const i="/projects/{projectName}/connections/{connectionName}/tableSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),l=new URL(i,sn);let u;e&&(u=e.baseOptions);const d={method:"GET",...u,...a},p={},h={};r!==void 0&&(h.tableKey=r),o!==void 0&&(h.tablePath=o),ln(l,h);let y=u&&u.headers?u.headers:{};return d.headers={...p,...y,...a.headers},{url:cn(l),options:d}},getTemporarytable:async(t,n,r,o={})=>{st("getTemporarytable","projectName",t),st("getTemporarytable","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}/temporaryTable".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),i=new URL(a,sn);let l;e&&(l=e.baseOptions);const u={method:"GET",...l,...o},d={},p={};r!==void 0&&(p.sqlStatement=r),ln(i,p);let h=l&&l.headers?l.headers:{};return u.headers={...d,...h,...o.headers},{url:cn(i),options:u}},listConnections:async(t,n={})=>{st("listConnections","projectName",t);const r="/projects/{projectName}/connections".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(r,sn);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...n},l={};ln(o,{});let u=a&&a.headers?a.headers:{};return i.headers={...l,...u,...n.headers},{url:cn(o),options:i}},listSchemas:async(t,n,r={})=>{st("listSchemas","projectName",t),st("listSchemas","connectionName",n);const o="/projects/{projectName}/connections/{connectionName}/schemas".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),a=new URL(o,sn);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...r},u={};ln(a,{});let d=i&&i.headers?i.headers:{};return l.headers={...u,...d,...r.headers},{url:cn(a),options:l}},listTables:async(t,n,r,o={})=>{st("listTables","projectName",t),st("listTables","connectionName",n),st("listTables","schemaName",r);const a="/projects/{projectName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))).replace("{schemaName}",encodeURIComponent(String(r))),i=new URL(a,sn);let l;e&&(l=e.baseOptions);const u={method:"GET",...l,...o},d={};ln(i,{});let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:cn(i),options:u}},postQuerydata:async(t,n,r,o,a={})=>{st("postQuerydata","projectName",t),st("postQuerydata","connectionName",n),st("postQuerydata","postSqlsourceRequest",r);const i="/projects/{projectName}/connections/{connectionName}/queryData".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),l=new URL(i,sn);let u;e&&(u=e.baseOptions);const d={method:"POST",...u,...a},p={},h={};o!==void 0&&(h.options=o),p["Content-Type"]="application/json",ln(l,h);let y=u&&u.headers?u.headers:{};return d.headers={...p,...y,...a.headers},d.data=as(r,d,e),{url:cn(l),options:d}},postSqlsource:async(t,n,r,o={})=>{st("postSqlsource","projectName",t),st("postSqlsource","connectionName",n),st("postSqlsource","postSqlsourceRequest",r);const a="/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),i=new URL(a,sn);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},d={},p={};d["Content-Type"]="application/json",ln(i,p);let h=l&&l.headers?l.headers:{};return u.headers={...d,...h,...o.headers},u.data=as(r,u,e),{url:cn(i),options:u}},postTemporarytable:async(t,n,r,o={})=>{st("postTemporarytable","projectName",t),st("postTemporarytable","connectionName",n),st("postTemporarytable","postSqlsourceRequest",r);const a="/projects/{projectName}/connections/{connectionName}/temporaryTable".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),i=new URL(a,sn);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},d={},p={};d["Content-Type"]="application/json",ln(i,p);let h=l&&l.headers?l.headers:{};return u.headers={...d,...h,...o.headers},u.data=as(r,u,e),{url:cn(i),options:u}},testConnection:async(t,n,r={})=>{st("testConnection","projectName",t),st("testConnection","connectionName",n);const o="/projects/{projectName}/connections/{connectionName}/test".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),a=new URL(o,sn);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...r},u={};ln(a,{});let d=i&&i.headers?i.headers:{};return l.headers={...u,...d,...r.headers},{url:cn(a),options:l}},testConnectionConfiguration:async(t,n={})=>{st("testConnectionConfiguration","connection",t);const r="/connections/test",o=new URL(r,sn);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...n},l={},u={};l["Content-Type"]="application/json",ln(o,u);let d=a&&a.headers?a.headers:{};return i.headers={...l,...d,...n.headers},i.data=as(t,i,e),{url:cn(o),options:i}}}},qo=function(e){const t=qX(e);return{async getConnection(n,r,o){const a=await t.getConnection(n,r,o),i=e?.serverIndex??0,l=an["ConnectionsApi.getConnection"]?.[i]?.url;return(u,d)=>un(a,ht,tn,e)(u,l||d)},async getQuerydata(n,r,o,a,i){const l=await t.getQuerydata(n,r,o,a,i),u=e?.serverIndex??0,d=an["ConnectionsApi.getQuerydata"]?.[u]?.url;return(p,h)=>un(l,ht,tn,e)(p,d||h)},async getSqlsource(n,r,o,a){const i=await t.getSqlsource(n,r,o,a),l=e?.serverIndex??0,u=an["ConnectionsApi.getSqlsource"]?.[l]?.url;return(d,p)=>un(i,ht,tn,e)(d,u||p)},async getTablesource(n,r,o,a,i){const l=await t.getTablesource(n,r,o,a,i),u=e?.serverIndex??0,d=an["ConnectionsApi.getTablesource"]?.[u]?.url;return(p,h)=>un(l,ht,tn,e)(p,d||h)},async getTemporarytable(n,r,o,a){const i=await t.getTemporarytable(n,r,o,a),l=e?.serverIndex??0,u=an["ConnectionsApi.getTemporarytable"]?.[l]?.url;return(d,p)=>un(i,ht,tn,e)(d,u||p)},async listConnections(n,r){const o=await t.listConnections(n,r),a=e?.serverIndex??0,i=an["ConnectionsApi.listConnections"]?.[a]?.url;return(l,u)=>un(o,ht,tn,e)(l,i||u)},async listSchemas(n,r,o){const a=await t.listSchemas(n,r,o),i=e?.serverIndex??0,l=an["ConnectionsApi.listSchemas"]?.[i]?.url;return(u,d)=>un(a,ht,tn,e)(u,l||d)},async listTables(n,r,o,a){const i=await t.listTables(n,r,o,a),l=e?.serverIndex??0,u=an["ConnectionsApi.listTables"]?.[l]?.url;return(d,p)=>un(i,ht,tn,e)(d,u||p)},async postQuerydata(n,r,o,a,i){const l=await t.postQuerydata(n,r,o,a,i),u=e?.serverIndex??0,d=an["ConnectionsApi.postQuerydata"]?.[u]?.url;return(p,h)=>un(l,ht,tn,e)(p,d||h)},async postSqlsource(n,r,o,a){const i=await t.postSqlsource(n,r,o,a),l=e?.serverIndex??0,u=an["ConnectionsApi.postSqlsource"]?.[l]?.url;return(d,p)=>un(i,ht,tn,e)(d,u||p)},async postTemporarytable(n,r,o,a){const i=await t.postTemporarytable(n,r,o,a),l=e?.serverIndex??0,u=an["ConnectionsApi.postTemporarytable"]?.[l]?.url;return(d,p)=>un(i,ht,tn,e)(d,u||p)},async testConnection(n,r,o){const a=await t.testConnection(n,r,o),i=e?.serverIndex??0,l=an["ConnectionsApi.testConnection"]?.[i]?.url;return(u,d)=>un(a,ht,tn,e)(u,l||d)},async testConnectionConfiguration(n,r){const o=await t.testConnectionConfiguration(n,r),a=e?.serverIndex??0,i=an["ConnectionsApi.testConnectionConfiguration"]?.[a]?.url;return(l,u)=>un(o,ht,tn,e)(l,i||u)}}};let WX=class extends ys{getConnection(t,n,r){return qo(this.configuration).getConnection(t,n,r).then(o=>o(this.axios,this.basePath))}getQuerydata(t,n,r,o,a){return qo(this.configuration).getQuerydata(t,n,r,o,a).then(i=>i(this.axios,this.basePath))}getSqlsource(t,n,r,o){return qo(this.configuration).getSqlsource(t,n,r,o).then(a=>a(this.axios,this.basePath))}getTablesource(t,n,r,o,a){return qo(this.configuration).getTablesource(t,n,r,o,a).then(i=>i(this.axios,this.basePath))}getTemporarytable(t,n,r,o){return qo(this.configuration).getTemporarytable(t,n,r,o).then(a=>a(this.axios,this.basePath))}listConnections(t,n){return qo(this.configuration).listConnections(t,n).then(r=>r(this.axios,this.basePath))}listSchemas(t,n,r){return qo(this.configuration).listSchemas(t,n,r).then(o=>o(this.axios,this.basePath))}listTables(t,n,r,o){return qo(this.configuration).listTables(t,n,r,o).then(a=>a(this.axios,this.basePath))}postQuerydata(t,n,r,o,a){return qo(this.configuration).postQuerydata(t,n,r,o,a).then(i=>i(this.axios,this.basePath))}postSqlsource(t,n,r,o){return qo(this.configuration).postSqlsource(t,n,r,o).then(a=>a(this.axios,this.basePath))}postTemporarytable(t,n,r,o){return qo(this.configuration).postTemporarytable(t,n,r,o).then(a=>a(this.axios,this.basePath))}testConnection(t,n,r){return qo(this.configuration).testConnection(t,n,r).then(o=>o(this.axios,this.basePath))}testConnectionConfiguration(t,n){return qo(this.configuration).testConnectionConfiguration(t,n).then(r=>r(this.axios,this.basePath))}};const YX=function(e){return{listDatabases:async(t,n,r,o={})=>{st("listDatabases","projectName",t),st("listDatabases","packageName",n);const a="/projects/{projectName}/packages/{packageName}/databases".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),i=new URL(a,sn);let l;e&&(l=e.baseOptions);const u={method:"GET",...l,...o},d={},p={};r!==void 0&&(p.versionId=r),ln(i,p);let h=l&&l.headers?l.headers:{};return u.headers={...d,...h,...o.headers},{url:cn(i),options:u}}}},QX=function(e){const t=YX(e);return{async listDatabases(n,r,o,a){const i=await t.listDatabases(n,r,o,a),l=e?.serverIndex??0,u=an["DatabasesApi.listDatabases"]?.[l]?.url;return(d,p)=>un(i,ht,tn,e)(d,u||p)}}};let KX=class extends ys{listDatabases(t,n,r,o){return QX(this.configuration).listDatabases(t,n,r,o).then(a=>a(this.axios,this.basePath))}};const XX=function(e){return{getModel:async(t,n,r,o,a={})=>{st("getModel","projectName",t),st("getModel","packageName",n),st("getModel","path",r);const i="/projects/{projectName}/packages/{packageName}/models/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),l=new URL(i,sn);let u;e&&(u=e.baseOptions);const d={method:"GET",...u,...a},p={},h={};o!==void 0&&(h.versionId=o),ln(l,h);let y=u&&u.headers?u.headers:{};return d.headers={...p,...y,...a.headers},{url:cn(l),options:d}},listModels:async(t,n,r,o={})=>{st("listModels","projectName",t),st("listModels","packageName",n);const a="/projects/{projectName}/packages/{packageName}/models".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),i=new URL(a,sn);let l;e&&(l=e.baseOptions);const u={method:"GET",...l,...o},d={},p={};r!==void 0&&(p.versionId=r),ln(i,p);let h=l&&l.headers?l.headers:{};return u.headers={...d,...h,...o.headers},{url:cn(i),options:u}}}},aI=function(e){const t=XX(e);return{async getModel(n,r,o,a,i){const l=await t.getModel(n,r,o,a,i),u=e?.serverIndex??0,d=an["ModelsApi.getModel"]?.[u]?.url;return(p,h)=>un(l,ht,tn,e)(p,d||h)},async listModels(n,r,o,a){const i=await t.listModels(n,r,o,a),l=e?.serverIndex??0,u=an["ModelsApi.listModels"]?.[l]?.url;return(d,p)=>un(i,ht,tn,e)(d,u||p)}}};let ZX=class extends ys{getModel(t,n,r,o,a){return aI(this.configuration).getModel(t,n,r,o,a).then(i=>i(this.axios,this.basePath))}listModels(t,n,r,o){return aI(this.configuration).listModels(t,n,r,o).then(a=>a(this.axios,this.basePath))}};const JX=function(e){return{getNotebook:async(t,n,r,o,a={})=>{st("getNotebook","projectName",t),st("getNotebook","packageName",n),st("getNotebook","path",r);const i="/projects/{projectName}/packages/{packageName}/notebooks/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),l=new URL(i,sn);let u;e&&(u=e.baseOptions);const d={method:"GET",...u,...a},p={},h={};o!==void 0&&(h.versionId=o),ln(l,h);let y=u&&u.headers?u.headers:{};return d.headers={...p,...y,...a.headers},{url:cn(l),options:d}},listNotebooks:async(t,n,r,o={})=>{st("listNotebooks","projectName",t),st("listNotebooks","packageName",n);const a="/projects/{projectName}/packages/{packageName}/notebooks".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),i=new URL(a,sn);let l;e&&(l=e.baseOptions);const u={method:"GET",...l,...o},d={},p={};r!==void 0&&(p.versionId=r),ln(i,p);let h=l&&l.headers?l.headers:{};return u.headers={...d,...h,...o.headers},{url:cn(i),options:u}}}},iI=function(e){const t=JX(e);return{async getNotebook(n,r,o,a,i){const l=await t.getNotebook(n,r,o,a,i),u=e?.serverIndex??0,d=an["NotebooksApi.getNotebook"]?.[u]?.url;return(p,h)=>un(l,ht,tn,e)(p,d||h)},async listNotebooks(n,r,o,a){const i=await t.listNotebooks(n,r,o,a),l=e?.serverIndex??0,u=an["NotebooksApi.listNotebooks"]?.[l]?.url;return(d,p)=>un(i,ht,tn,e)(d,u||p)}}};let eZ=class extends ys{getNotebook(t,n,r,o,a){return iI(this.configuration).getNotebook(t,n,r,o,a).then(i=>i(this.axios,this.basePath))}listNotebooks(t,n,r,o){return iI(this.configuration).listNotebooks(t,n,r,o).then(a=>a(this.axios,this.basePath))}};const tZ=function(e){return{createPackage:async(t,n,r={})=>{st("createPackage","projectName",t),st("createPackage","_package",n);const o="/projects/{projectName}/packages".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(o,sn);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...r},u={},d={};u["Content-Type"]="application/json",ln(a,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...r.headers},l.data=as(n,l,e),{url:cn(a),options:l}},deletePackage:async(t,n,r={})=>{st("deletePackage","projectName",t),st("deletePackage","packageName",n);const o="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),a=new URL(o,sn);let i;e&&(i=e.baseOptions);const l={method:"DELETE",...i,...r},u={};ln(a,{});let d=i&&i.headers?i.headers:{};return l.headers={...u,...d,...r.headers},{url:cn(a),options:l}},getPackage:async(t,n,r,o,a={})=>{st("getPackage","projectName",t),st("getPackage","packageName",n);const i="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(i,sn);let u;e&&(u=e.baseOptions);const d={method:"GET",...u,...a},p={},h={};r!==void 0&&(h.versionId=r),o!==void 0&&(h.reload=o),ln(l,h);let y=u&&u.headers?u.headers:{};return d.headers={...p,...y,...a.headers},{url:cn(l),options:d}},listPackages:async(t,n={})=>{st("listPackages","projectName",t);const r="/projects/{projectName}/packages".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(r,sn);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...n},l={};ln(o,{});let u=a&&a.headers?a.headers:{};return i.headers={...l,...u,...n.headers},{url:cn(o),options:i}},updatePackage:async(t,n,r,o={})=>{st("updatePackage","projectName",t),st("updatePackage","packageName",n),st("updatePackage","_package",r);const a="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),i=new URL(a,sn);let l;e&&(l=e.baseOptions);const u={method:"PATCH",...l,...o},d={},p={};d["Content-Type"]="application/json",ln(i,p);let h=l&&l.headers?l.headers:{};return u.headers={...d,...h,...o.headers},u.data=as(r,u,e),{url:cn(i),options:u}}}},tp=function(e){const t=tZ(e);return{async createPackage(n,r,o){const a=await t.createPackage(n,r,o),i=e?.serverIndex??0,l=an["PackagesApi.createPackage"]?.[i]?.url;return(u,d)=>un(a,ht,tn,e)(u,l||d)},async deletePackage(n,r,o){const a=await t.deletePackage(n,r,o),i=e?.serverIndex??0,l=an["PackagesApi.deletePackage"]?.[i]?.url;return(u,d)=>un(a,ht,tn,e)(u,l||d)},async getPackage(n,r,o,a,i){const l=await t.getPackage(n,r,o,a,i),u=e?.serverIndex??0,d=an["PackagesApi.getPackage"]?.[u]?.url;return(p,h)=>un(l,ht,tn,e)(p,d||h)},async listPackages(n,r){const o=await t.listPackages(n,r),a=e?.serverIndex??0,i=an["PackagesApi.listPackages"]?.[a]?.url;return(l,u)=>un(o,ht,tn,e)(l,i||u)},async updatePackage(n,r,o,a){const i=await t.updatePackage(n,r,o,a),l=e?.serverIndex??0,u=an["PackagesApi.updatePackage"]?.[l]?.url;return(d,p)=>un(i,ht,tn,e)(d,u||p)}}};let nZ=class extends ys{createPackage(t,n,r){return tp(this.configuration).createPackage(t,n,r).then(o=>o(this.axios,this.basePath))}deletePackage(t,n,r){return tp(this.configuration).deletePackage(t,n,r).then(o=>o(this.axios,this.basePath))}getPackage(t,n,r,o,a){return tp(this.configuration).getPackage(t,n,r,o,a).then(i=>i(this.axios,this.basePath))}listPackages(t,n){return tp(this.configuration).listPackages(t,n).then(r=>r(this.axios,this.basePath))}updatePackage(t,n,r,o){return tp(this.configuration).updatePackage(t,n,r,o).then(a=>a(this.axios,this.basePath))}};const rZ=function(e){return{createProject:async(t,n={})=>{st("createProject","project",t);const r="/projects",o=new URL(r,sn);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...n},l={},u={};l["Content-Type"]="application/json",ln(o,u);let d=a&&a.headers?a.headers:{};return i.headers={...l,...d,...n.headers},i.data=as(t,i,e),{url:cn(o),options:i}},deleteProject:async(t,n={})=>{st("deleteProject","projectName",t);const r="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(r,sn);let a;e&&(a=e.baseOptions);const i={method:"DELETE",...a,...n},l={};ln(o,{});let u=a&&a.headers?a.headers:{};return i.headers={...l,...u,...n.headers},{url:cn(o),options:i}},getProject:async(t,n,r={})=>{st("getProject","projectName",t);const o="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(o,sn);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...r},u={},d={};n!==void 0&&(d.reload=n),ln(a,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...r.headers},{url:cn(a),options:l}},listProjects:async(t={})=>{const n="/projects",r=new URL(n,sn);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};ln(r,{});let l=o&&o.headers?o.headers:{};return a.headers={...i,...l,...t.headers},{url:cn(r),options:a}},updateProject:async(t,n,r={})=>{st("updateProject","projectName",t),st("updateProject","project",n);const o="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(o,sn);let i;e&&(i=e.baseOptions);const l={method:"PATCH",...i,...r},u={},d={};u["Content-Type"]="application/json",ln(a,d);let p=i&&i.headers?i.headers:{};return l.headers={...u,...p,...r.headers},l.data=as(n,l,e),{url:cn(a),options:l}}}},np=function(e){const t=rZ(e);return{async createProject(n,r){const o=await t.createProject(n,r),a=e?.serverIndex??0,i=an["ProjectsApi.createProject"]?.[a]?.url;return(l,u)=>un(o,ht,tn,e)(l,i||u)},async deleteProject(n,r){const o=await t.deleteProject(n,r),a=e?.serverIndex??0,i=an["ProjectsApi.deleteProject"]?.[a]?.url;return(l,u)=>un(o,ht,tn,e)(l,i||u)},async getProject(n,r,o){const a=await t.getProject(n,r,o),i=e?.serverIndex??0,l=an["ProjectsApi.getProject"]?.[i]?.url;return(u,d)=>un(a,ht,tn,e)(u,l||d)},async listProjects(n){const r=await t.listProjects(n),o=e?.serverIndex??0,a=an["ProjectsApi.listProjects"]?.[o]?.url;return(i,l)=>un(r,ht,tn,e)(i,a||l)},async updateProject(n,r,o){const a=await t.updateProject(n,r,o),i=e?.serverIndex??0,l=an["ProjectsApi.updateProject"]?.[i]?.url;return(u,d)=>un(a,ht,tn,e)(u,l||d)}}};let oZ=class extends ys{createProject(t,n){return np(this.configuration).createProject(t,n).then(r=>r(this.axios,this.basePath))}deleteProject(t,n){return np(this.configuration).deleteProject(t,n).then(r=>r(this.axios,this.basePath))}getProject(t,n,r){return np(this.configuration).getProject(t,n,r).then(o=>o(this.axios,this.basePath))}listProjects(t){return np(this.configuration).listProjects(t).then(n=>n(this.axios,this.basePath))}updateProject(t,n,r){return np(this.configuration).updateProject(t,n,r).then(o=>o(this.axios,this.basePath))}};const aZ=function(e){return{executeQuery:async(t,n,r,o,a,i,l,u={})=>{st("executeQuery","projectName",t),st("executeQuery","packageName",n),st("executeQuery","path",r);const d="/projects/{projectName}/packages/{packageName}/queryResults/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),p=new URL(d,sn);let h;e&&(h=e.baseOptions);const y={method:"GET",...h,...u},g={},b={};o!==void 0&&(b.query=o),a!==void 0&&(b.sourceName=a),i!==void 0&&(b.queryName=i),l!==void 0&&(b.versionId=l),ln(p,b);let S=h&&h.headers?h.headers:{};return y.headers={...g,...S,...u.headers},{url:cn(p),options:y}}}},iZ=function(e){const t=aZ(e);return{async executeQuery(n,r,o,a,i,l,u,d){const p=await t.executeQuery(n,r,o,a,i,l,u,d),h=e?.serverIndex??0,y=an["QueryresultsApi.executeQuery"]?.[h]?.url;return(g,b)=>un(p,ht,tn,e)(g,y||b)}}};let sZ=class extends ys{executeQuery(t,n,r,o,a,i,l,u){return iZ(this.configuration).executeQuery(t,n,r,o,a,i,l,u).then(d=>d(this.axios,this.basePath))}};const lZ=function(e){return{listSchedules:async(t,n,r,o={})=>{st("listSchedules","projectName",t),st("listSchedules","packageName",n);const a="/projects/{projectName}/packages/{packageName}/schedules".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),i=new URL(a,sn);let l;e&&(l=e.baseOptions);const u={method:"GET",...l,...o},d={},p={};r!==void 0&&(p.versionId=r),ln(i,p);let h=l&&l.headers?l.headers:{};return u.headers={...d,...h,...o.headers},{url:cn(i),options:u}}}},cZ=function(e){const t=lZ(e);return{async listSchedules(n,r,o,a){const i=await t.listSchedules(n,r,o,a),l=e?.serverIndex??0,u=an["SchedulesApi.listSchedules"]?.[l]?.url;return(d,p)=>un(i,ht,tn,e)(d,u||p)}}};let uZ=class extends ys{listSchedules(t,n,r,o){return cZ(this.configuration).listSchedules(t,n,r,o).then(a=>a(this.axios,this.basePath))}};const dZ=function(e){return{getWatchStatus:async(t={})=>{const n="/watch-mode/status",r=new URL(n,sn);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};ln(r,{});let l=o&&o.headers?o.headers:{};return a.headers={...i,...l,...t.headers},{url:cn(r),options:a}},startWatching:async(t,n={})=>{st("startWatching","startWatchRequest",t);const r="/watch-mode/start",o=new URL(r,sn);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...n},l={},u={};l["Content-Type"]="application/json",ln(o,u);let d=a&&a.headers?a.headers:{};return i.headers={...l,...d,...n.headers},i.data=as(t,i,e),{url:cn(o),options:i}},stopWatching:async(t={})=>{const n="/watch-mode/stop",r=new URL(n,sn);let o;e&&(o=e.baseOptions);const a={method:"POST",...o,...t},i={};ln(r,{});let l=o&&o.headers?o.headers:{};return a.headers={...i,...l,...t.headers},{url:cn(r),options:a}}}},$E=function(e){const t=dZ(e);return{async getWatchStatus(n){const r=await t.getWatchStatus(n),o=e?.serverIndex??0,a=an["WatchModeApi.getWatchStatus"]?.[o]?.url;return(i,l)=>un(r,ht,tn,e)(i,a||l)},async startWatching(n,r){const o=await t.startWatching(n,r),a=e?.serverIndex??0,i=an["WatchModeApi.startWatching"]?.[a]?.url;return(l,u)=>un(o,ht,tn,e)(l,i||u)},async stopWatching(n){const r=await t.stopWatching(n),o=e?.serverIndex??0,a=an["WatchModeApi.stopWatching"]?.[o]?.url;return(i,l)=>un(r,ht,tn,e)(i,a||l)}}};let fZ=class extends ys{getWatchStatus(t){return $E(this.configuration).getWatchStatus(t).then(n=>n(this.axios,this.basePath))}startWatching(t,n){return $E(this.configuration).startWatching(t,n).then(r=>r(this.axios,this.basePath))}stopWatching(t){return $E(this.configuration).stopWatching(t).then(n=>n(this.axios,this.basePath))}},pZ=class{apiKey;username;password;accessToken;basePath;serverIndex;baseOptions;formDataCtor;constructor(t={}){this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.serverIndex=t.serverIndex,this.baseOptions={...t.baseOptions,headers:{...t.baseOptions?.headers}},this.formDataCtor=t.formDataCtor}isJsonMime(t){const n=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return t!==null&&(n.test(t)||t.toLowerCase()==="application/json-patch+json")}};const x4=_.createContext(void 0),hZ=(e,t)=>{const n=`${window.location.protocol}//${window.location.host}/api/v0`,r=ht.create({baseURL:e||n,withCredentials:!0});r.interceptors.request.use(async a=>{const i=await t?.();return a.headers.Authorization=i?`Bearer ${i}`:"",a});const o=new pZ({basePath:n});return{queryResults:new sZ(o,n,r),models:new ZX(o,n,r),projects:new oZ(o,n,r),packages:new nZ(o,n,r),notebooks:new eZ(o,n,r),connections:new WX(o,n,r),databases:new KX(o,n,r),schedules:new uZ(o,n,r),watchMode:new fZ(o,n,r)}},mZ=({children:e,getAccessToken:t,baseURL:n,mutable:r=!0})=>{const o=_.useMemo(()=>hZ(n,t),[n,t]),a={server:n||`${window.location.protocol}//${window.location.host}/api/v0`,getAccessToken:t,apiClients:o,mutable:r};return v.jsx(rK,{client:LC,children:v.jsx(x4.Provider,{value:a,children:e})})},kn=()=>{const e=_.useContext(x4);if(e===void 0)throw new Error("useServer must be used within a ServerProvider");return e},gZ=Dl(v.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),yZ=Dl(v.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m4 11h-3v3c0 .55-.45 1-1 1s-1-.45-1-1v-3H8c-.55 0-1-.45-1-1s.45-1 1-1h3V8c0-.55.45-1 1-1s1 .45 1 1v3h3c.55 0 1 .45 1 1s-.45 1-1 1"})),MC=Dl(v.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"})),FC=Dl(v.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"})),bZ=Dl(v.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"})),vZ=Dl(v.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),S4=Dl(v.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}));function sc(){return sc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sc.apply(this,arguments)}const EZ=["children","options"],sI=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),lI={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},xZ=["style","script","pre"],SZ=["src","href","data","formAction","srcDoc","action"],TZ=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,CZ=/mailto:/i,_Z=/\n{2,}$/,cI=/^(\s*>[\s\S]*?)(?=\n\n|$)/,AZ=/^ *> ?/gm,kZ=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,wZ=/^ {2,}\n/,RZ=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,uI=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,dI=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,DZ=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,IZ=/^(?:\n *)*\n/,OZ=/\r\n?/g,NZ=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,PZ=/^\[\^([^\]]+)]/,LZ=/\f/g,MZ=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,FZ=/^\s*?\[(x|\s)\]/,fI=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,pI=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,hI=/^([^\n]+)\n *(=|-){3,} *\n/,GE=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,jZ=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,mI=/^<!--[\s\S]*?(?:-->)/,BZ=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,VE=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,UZ=/^\{.*\}$/,zZ=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,HZ=/^<([^ >]+@[^ >]+)>/,$Z=/^<([^ >]+:\/[^ >]+)>/,GZ=/-([a-z])?/gi,gI=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,VZ=/^[^\n]+(?: \n|\n{2,})/,qZ=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,WZ=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,YZ=/^\[([^\]]*)\] ?\[([^\]]*)\]/,QZ=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,KZ=/\t/g,XZ=/(^ *\||\| *$)/g,ZZ=/^ *:-+: *$/,JZ=/^ *:-+ *$/,eJ=/^ *-+: *$/,yb=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,bb="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",tJ=RegExp(`^([*_])\\1${yb(1)}${bb}\\1\\1(?!\\1)`),nJ=RegExp(`^([*_])${yb(0)}${bb}\\1(?!\\1)`),rJ=RegExp(`^(==)${yb(0)}${bb}\\1`),oJ=RegExp(`^(~~)${yb(0)}${bb}\\1`),aJ=/^(:[a-zA-Z0-9-_]+:)/,iJ=/^\\([^0-9A-Za-z\s])/,sJ=/\\([^0-9A-Za-z\s])/g,lJ=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,cJ=/^\n+/,uJ=/^([ \t]*)/,dJ=/(?:^|\n)( *)$/,jC="(?:\\d+\\.)",BC="(?:[*+-])";function T4(e){return"( *)("+(e===1?jC:BC)+") +"}const C4=T4(1),_4=T4(2);function A4(e){return RegExp("^"+(e===1?C4:_4))}const fJ=A4(1),pJ=A4(2);function k4(e){return RegExp("^"+(e===1?C4:_4)+"[^\\n]*(?:\\n(?!\\1"+(e===1?jC:BC)+" )[^\\n]*)*(\\n|$)","gm")}const hJ=k4(1),mJ=k4(2);function w4(e){const t=e===1?jC:BC;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const R4=w4(1),D4=w4(2);function yI(e,t){const n=t===1,r=n?R4:D4,o=n?hJ:mJ,a=n?fJ:pJ;return{t:i=>a.test(i),o:gd(function(i,l){const u=dJ.exec(l.prevCapture);return u&&(l.list||!l.inline&&!l.simple)?r.exec(i=u[1]+i):null}),i:1,u(i,l,u){const d=n?+i[2]:void 0,p=i[0].replace(_Z,`
|
|
218
|
-
`).match(o);let h=!1;return{items:p.map(function(y,g){const b=a.exec(y)[0].length,S=RegExp("^ {1,"+b+"}","gm"),T=y.replace(S,"").replace(a,""),E=g===p.length-1,A=T.indexOf(`
|
|
219
|
-
|
|
220
|
-
`)!==-1||E&&h;h=A;const C=u.inline,D=u.list;let I;u.list=!0,A?(u.inline=!1,I=Fp(T)+`
|
|
221
|
-
|
|
222
|
-
`):(u.inline=!0,I=Fp(T));const O=l(I,u);return u.inline=C,u.list=D,O}),ordered:n,start:d}},l:(i,l,u)=>e(i.ordered?"ol":"ul",{key:u.key,start:i.type==="20"?i.start:void 0},i.items.map(function(d,p){return e("li",{key:p},l(d,u))}))}}const gJ=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),yJ=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function Fp(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function Sy(e,t){return e.startsWith(t)}function bJ(e,t,n){if(Array.isArray(n)){for(let r=0;r<n.length;r++)if(Sy(e,n[r]))return!0;return!1}return n(e,t)}function rp(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function vJ(e){return eJ.test(e)?"right":ZZ.test(e)?"center":JZ.test(e)?"left":null}function bI(e,t,n,r){const o=n.inTable;n.inTable=!0;let a=[[]],i="";function l(){if(!i)return;const u=a[a.length-1];u.push.apply(u,t(i,n)),i=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((u,d,p)=>{u.trim()==="|"&&(l(),r)?d!==0&&d!==p.length-1&&a.push([]):i+=u}),l(),n.inTable=o,a}function EJ(e,t,n){n.inline=!0;const r=e[2]?e[2].replace(XZ,"").split("|").map(vJ):[],o=e[3]?(function(i,l,u){return i.trim().split(`
|
|
223
|
-
`).map(function(d){return bI(d,l,u,!0)})})(e[3],t,n):[],a=bI(e[1],t,n,!!o.length);return n.inline=!1,o.length?{align:r,cells:o,header:a,type:"25"}:{children:a,type:"21"}}function vI(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function gd(e){return e.inline=1,e}function Xs(e){return gd(function(t,n){return n.inline?e.exec(t):null})}function Zs(e){return gd(function(t,n){return n.inline||n.simple?e.exec(t):null})}function Zi(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function Hg(e){return gd(function(t){return e.exec(t)})}const xJ=/(javascript|vbscript|data(?!:image)):/i;function SJ(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(xJ.test(t))return null}catch{return null}return e}function oi(e){return e&&e.replace(sJ,"$1")}function Ty(e,t,n){const r=n.inline||!1,o=n.simple||!1;n.inline=!0,n.simple=!0;const a=e(t,n);return n.inline=r,n.simple=o,a}function TJ(e,t,n){const r=n.inline||!1,o=n.simple||!1;n.inline=!1,n.simple=!0;const a=e(t,n);return n.inline=r,n.simple=o,a}function CJ(e,t,n){const r=n.inline||!1;n.inline=!1;const o=e(t,n);return n.inline=r,o}const qE=(e,t,n)=>({children:Ty(t,e[2],n)});function WE(){return{}}function YE(){return null}function _J(...e){return e.filter(Boolean).join(" ")}function QE(e,t,n){let r=e;const o=t.split(".");for(;o.length&&(r=r[o[0]],r!==void 0);)o.shift();return r||n}function AJ(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?sc({},lI,t.namedCodesToUnicode):lI;const n=t.slugify||rp,r=t.sanitizer||SJ,o=t.createElement||_.createElement,a=[cI,uI,dI,t.enforceAtxHeadings?pI:fI,hI,gI,R4,D4],i=[...a,VZ,GE,mI,VE];function l(E,A,...C){const D=QE(t.overrides,E+".props",{});return o((function(I,O){const j=QE(O,I);return j?typeof j=="function"||typeof j=="object"&&"render"in j?j:QE(O,I+".component",I):I})(E,t.overrides),sc({},A,D,{className:_J(A?.className,D.className)||void 0}),...C)}function u(E){E=E.replace(MZ,"");let A=!1;t.forceInline?A=!0:t.forceBlock||(A=QZ.test(E)===!1);const C=b(g(A?E:Fp(E).replace(cJ,"")+`
|
|
224
|
-
|
|
225
|
-
`,{inline:A}));for(;typeof C[C.length-1]=="string"&&!C[C.length-1].trim();)C.pop();if(t.wrapper===null)return C;const D=t.wrapper||(A?"span":"div");let I;if(C.length>1||t.forceWrapper)I=C;else{if(C.length===1)return I=C[0],typeof I=="string"?l("span",{key:"outer"},I):I;I=null}return o(D,{key:"outer"},I)}function d(E,A){if(!A||!A.trim())return null;const C=A.match(TZ);return C?C.reduce(function(D,I){const O=I.indexOf("=");if(O!==-1){const j=(function(H){return H.indexOf("-")!==-1&&H.match(BZ)===null&&(H=H.replace(GZ,function(k,F){return F.toUpperCase()})),H})(I.slice(0,O)).trim(),$=(function(H){const k=H[0];return(k==='"'||k==="'")&&H.length>=2&&H[H.length-1]===k?H.slice(1,-1):H})(I.slice(O+1).trim()),z=sI[j]||j;if(z==="ref")return D;const L=D[z]=(function(H,k,F,B){return k==="style"?(function(G){const U=[];let Q="",Y=!1,oe=!1,N="";if(!G)return U;for(let X=0;X<G.length;X++){const P=G[X];if(P!=='"'&&P!=="'"||Y||(oe?P===N&&(oe=!1,N=""):(oe=!0,N=P)),P==="("&&Q.endsWith("url")?Y=!0:P===")"&&Y&&(Y=!1),P!==";"||oe||Y)Q+=P;else{const J=Q.trim();if(J){const se=J.indexOf(":");if(se>0){const ne=J.slice(0,se).trim(),be=J.slice(se+1).trim();U.push([ne,be])}}Q=""}}const K=Q.trim();if(K){const X=K.indexOf(":");if(X>0){const P=K.slice(0,X).trim(),J=K.slice(X+1).trim();U.push([P,J])}}return U})(F).reduce(function(G,[U,Q]){return G[U.replace(/(-[a-z])/g,Y=>Y[1].toUpperCase())]=B(Q,H,U),G},{}):SZ.indexOf(k)!==-1?B(oi(F),H,k):(F.match(UZ)&&(F=oi(F.slice(1,F.length-1))),F==="true"||F!=="false"&&F)})(E,j,$,r);typeof L=="string"&&(GE.test(L)||VE.test(L))&&(D[z]=u(L.trim()))}else I!=="style"&&(D[sI[I]||I]=!0);return D},{}):null}const p=[],h={},y={0:{t:[">"],o:Zi(cI),i:1,u(E,A,C){const[,D,I]=E[0].replace(AZ,"").match(kZ);return{alert:D,children:A(I,C)}},l(E,A,C){const D={key:C.key};return E.alert&&(D.className="markdown-alert-"+n(E.alert.toLowerCase(),rp),E.children.unshift({attrs:{},children:[{type:"27",text:E.alert}],noInnerParse:!0,type:"11",tag:"header"})),l("blockquote",D,A(E.children,C))}},1:{o:Hg(wZ),i:1,u:WE,l:(E,A,C)=>l("br",{key:C.key})},2:{t:E=>{const A=E[0];return A==="-"||A==="*"||A==="_"},o:Zi(RZ),i:1,u:WE,l:(E,A,C)=>l("hr",{key:C.key})},3:{t:[" "],o:Zi(dI),i:0,u:E=>({lang:void 0,text:oi(Fp(E[0].replace(/^ {4}/gm,"")))}),l:(E,A,C)=>l("pre",{key:C.key},l("code",sc({},E.attrs,{className:E.lang?"lang-"+E.lang:""}),E.text))},4:{t:["```","~~~"],o:Zi(uI),i:0,u:E=>({attrs:d("code",E[3]||""),lang:E[2]||void 0,text:E[4],type:"3"})},5:{t:["`"],o:Zs(DZ),i:3,u:E=>({text:oi(E[2])}),l:(E,A,C)=>l("code",{key:C.key},E.text)},6:{t:["[^"],o:Zi(NZ),i:0,u:E=>(p.push({footnote:E[2],identifier:E[1]}),{}),l:YE},7:{t:["[^"],o:Xs(PZ),i:1,u:E=>({target:"#"+n(E[1],rp),text:E[1]}),l:(E,A,C)=>l("a",{key:C.key,href:r(E.target,"a","href")},l("sup",{key:C.key},E.text))},8:{t:["[ ]","[x]"],o:Xs(FZ),i:1,u:E=>({completed:E[1].toLowerCase()==="x"}),l:(E,A,C)=>l("input",{checked:E.completed,key:C.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:Zi(t.enforceAtxHeadings?pI:fI),i:1,u:(E,A,C)=>({children:Ty(A,E[2],C),id:n(E[2],rp),level:E[1].length}),l:(E,A,C)=>l("h"+E.level,{id:E.id,key:C.key},A(E.children,C))},10:{o:Zi(hI),i:0,u:(E,A,C)=>({children:Ty(A,E[1],C),level:E[2]==="="?1:2,type:"9"})},11:{t:["<"],o:Hg(GE),i:1,u(E,A,C){const[,D]=E[3].match(uJ),I=RegExp("^"+D,"gm"),O=E[3].replace(I,""),j=($=O,i.some(F=>F.test($))?CJ:Ty);var $;const z=E[1].toLowerCase(),L=xZ.indexOf(z)!==-1,H=(L?z:E[1]).trim(),k={attrs:d(H,E[2]),noInnerParse:L,tag:H};if(C.inAnchor=C.inAnchor||z==="a",L)k.text=E[3];else{const F=C.inHTML;C.inHTML=!0,k.children=j(A,O,C),C.inHTML=F}return C.inAnchor=!1,k},l:(E,A,C)=>l(E.tag,sc({key:C.key},E.attrs),E.text||(E.children?A(E.children,C):""))},13:{t:["<"],o:Hg(VE),i:1,u(E){const A=E[1].trim();return{attrs:d(A,E[2]||""),tag:A}},l:(E,A,C)=>l(E.tag,sc({},E.attrs,{key:C.key}))},12:{t:["<!--"],o:Hg(mI),i:1,u:()=>({}),l:YE},14:{t:["!["],o:Zs(yJ),i:1,u:E=>({alt:oi(E[1]),target:oi(E[2]),title:oi(E[3])}),l:(E,A,C)=>l("img",{key:C.key,alt:E.alt||void 0,title:E.title||void 0,src:r(E.target,"img","src")})},15:{t:["["],o:Xs(gJ),i:3,u:(E,A,C)=>({children:TJ(A,E[1],C),target:oi(E[2]),title:oi(E[3])}),l:(E,A,C)=>l("a",{key:C.key,href:r(E.target,"a","href"),title:E.title},A(E.children,C))},16:{t:["<"],o:Xs($Z),i:0,u:E=>({children:[{text:E[1],type:"27"}],target:E[1],type:"15"})},17:{t:(E,A)=>!A.inAnchor&&!t.disableAutoLink&&(Sy(E,"http://")||Sy(E,"https://")),o:Xs(zZ),i:0,u:E=>({children:[{text:E[1],type:"27"}],target:E[1],title:void 0,type:"15"})},18:{t:["<"],o:Xs(HZ),i:0,u(E){let A=E[1],C=E[1];return CZ.test(C)||(C="mailto:"+C),{children:[{text:A.replace("mailto:",""),type:"27"}],target:C,type:"15"}}},20:yI(l,1),33:yI(l,2),19:{o:Zi(IZ),i:3,u:WE,l:()=>`
|
|
226
|
-
`},21:{o:gd(function(E,A){if(A.inline||A.simple||A.inHTML&&E.indexOf(`
|
|
227
|
-
|
|
228
|
-
`)===-1&&A.prevCapture.indexOf(`
|
|
229
|
-
|
|
230
|
-
`)===-1)return null;let C="";E.split(`
|
|
231
|
-
`).every(I=>(I+=`
|
|
232
|
-
`,!a.some(O=>O.test(I))&&(C+=I,!!I.trim())));const D=Fp(C);return D===""?null:[C,,D]}),i:3,u:qE,l:(E,A,C)=>l("p",{key:C.key},A(E.children,C))},22:{t:["["],o:Xs(qZ),i:0,u:E=>(h[E[1]]={target:E[2],title:E[4]},{}),l:YE},23:{t:["!["],o:Zs(WZ),i:0,u:E=>({alt:E[1]?oi(E[1]):void 0,ref:E[2]}),l:(E,A,C)=>h[E.ref]?l("img",{key:C.key,alt:E.alt,src:r(h[E.ref].target,"img","src"),title:h[E.ref].title}):null},24:{t:E=>E[0]==="["&&E.indexOf("](")===-1,o:Xs(YZ),i:0,u:(E,A,C)=>({children:A(E[1],C),fallbackChildren:E[0],ref:E[2]}),l:(E,A,C)=>h[E.ref]?l("a",{key:C.key,href:r(h[E.ref].target,"a","href"),title:h[E.ref].title},A(E.children,C)):l("span",{key:C.key},E.fallbackChildren)},25:{t:["|"],o:Zi(gI),i:1,u:EJ,l(E,A,C){const D=E;return l("table",{key:C.key},l("thead",null,l("tr",null,D.header.map(function(I,O){return l("th",{key:O,style:vI(D,O)},A(I,C))}))),l("tbody",null,D.cells.map(function(I,O){return l("tr",{key:O},I.map(function(j,$){return l("td",{key:$,style:vI(D,$)},A(j,C))}))})))}},27:{o:gd(function(E,A){let C;return Sy(E,":")&&(C=aJ.exec(E)),C||lJ.exec(E)}),i:4,u(E){const A=E[0];return{text:A.indexOf("&")===-1?A:A.replace(jZ,(C,D)=>t.namedCodesToUnicode[D]||C)}},l:E=>E.text},28:{t:["**","__"],o:Zs(tJ),i:2,u:(E,A,C)=>({children:A(E[2],C)}),l:(E,A,C)=>l("strong",{key:C.key},A(E.children,C))},29:{t:E=>{const A=E[0];return(A==="*"||A==="_")&&E[1]!==A},o:Zs(nJ),i:3,u:(E,A,C)=>({children:A(E[2],C)}),l:(E,A,C)=>l("em",{key:C.key},A(E.children,C))},30:{t:["\\"],o:Zs(iJ),i:1,u:E=>({text:E[1],type:"27"})},31:{t:["=="],o:Zs(rJ),i:3,u:qE,l:(E,A,C)=>l("mark",{key:C.key},A(E.children,C))},32:{t:["~~"],o:Zs(oJ),i:3,u:qE,l:(E,A,C)=>l("del",{key:C.key},A(E.children,C))}};t.disableParsingRawHTML===!0&&(delete y[11],delete y[13]);const g=(function(E){var A=Object.keys(E);function C(D,I){var O=[];if(I.prevCapture=I.prevCapture||"",D.trim())for(;D;)for(var j=0;j<A.length;){var $=A[j],z=E[$];if(!z.t||bJ(D,I,z.t)){var L=z.o(D,I);if(L&&L[0]){D=D.substring(L[0].length);var H=z.u(L,C,I);I.prevCapture+=L[0],H.type||(H.type=$),O.push(H);break}j++}else j++}return I.prevCapture="",O}return A.sort(function(D,I){return E[D].i-E[I].i||(D<I?-1:1)}),function(D,I){return C((function(O){return O.replace(OZ,`
|
|
233
|
-
`).replace(LZ,"").replace(KZ," ")})(D),I)}})(y),b=(S=(function(E,A){return function(C,D,I){const O=E[C.type].l;return A?A(()=>O(C,D,I),C,D,I):O(C,D,I)}})(y,t.renderRule),function E(A,C={}){if(Array.isArray(A)){const D=C.key,I=[];let O=!1;for(let j=0;j<A.length;j++){C.key=j;const $=E(A[j],C),z=typeof $=="string";z&&O?I[I.length-1]+=$:$!==null&&I.push($),O=z}return C.key=D,I}return S(A,E,C)});var S;const T=u(e);return p.length?l("div",null,T,l("footer",{key:"footer"},p.map(function(E){return l("div",{id:n(E.identifier,rp),key:E.identifier},E.identifier,b(g(E.footnote,{inline:!0})))}))):T}const o0=e=>{let{children:t="",options:n}=e,r=(function(o,a){if(o==null)return{};var i,l,u={},d=Object.keys(o);for(l=0;l<d.length;l++)a.indexOf(i=d[l])>=0||(u[i]=o[i]);return u})(e,EZ);return _.cloneElement(AJ(t,n),r)};var UC=tm(),Nt=e=>em(e,UC),zC=tm();Nt.write=e=>em(e,zC);var vb=tm();Nt.onStart=e=>em(e,vb);var HC=tm();Nt.onFrame=e=>em(e,HC);var $C=tm();Nt.onFinish=e=>em(e,$C);var nd=[];Nt.setTimeout=(e,t)=>{const n=Nt.now()+t,r=()=>{const a=nd.findIndex(i=>i.cancel==r);~a&&nd.splice(a,1),ul-=~a?1:0},o={time:n,handler:e,cancel:r};return nd.splice(I4(n),0,o),ul+=1,O4(),o};var I4=e=>~(~nd.findIndex(t=>t.time>e)||~nd.length);Nt.cancel=e=>{vb.delete(e),HC.delete(e),$C.delete(e),UC.delete(e),zC.delete(e)};Nt.sync=e=>{OS=!0,Nt.batchedUpdates(e),OS=!1};Nt.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...o){t=o,Nt.onStart(n)}return r.handler=e,r.cancel=()=>{vb.delete(n),t=null},r};var GC=typeof window<"u"?window.requestAnimationFrame:(()=>{});Nt.use=e=>GC=e;Nt.now=typeof performance<"u"?()=>performance.now():Date.now;Nt.batchedUpdates=e=>e();Nt.catch=console.error;Nt.frameLoop="always";Nt.advance=()=>{Nt.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):P4()};var cl=-1,ul=0,OS=!1;function em(e,t){OS?(t.delete(e),e(0)):(t.add(e),O4())}function O4(){cl<0&&(cl=0,Nt.frameLoop!=="demand"&&GC(N4))}function kJ(){cl=-1}function N4(){~cl&&(GC(N4),Nt.batchedUpdates(P4))}function P4(){const e=cl;cl=Nt.now();const t=I4(cl);if(t&&(L4(nd.splice(0,t),n=>n.handler()),ul-=t),!ul){kJ();return}vb.flush(),UC.flush(e?Math.min(64,cl-e):16.667),HC.flush(),zC.flush(),$C.flush()}function tm(){let e=new Set,t=e;return{add(n){ul+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return ul-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,ul-=t.size,L4(t,r=>r(n)&&e.add(r)),ul+=e.size,t=e)}}}function L4(e,t){e.forEach(n=>{try{t(n)}catch(r){Nt.catch(r)}})}var wJ=Object.defineProperty,RJ=(e,t)=>{for(var n in t)wJ(e,n,{get:t[n],enumerable:!0})},$a={};RJ($a,{assign:()=>IJ,colors:()=>gl,createStringInterpolator:()=>qC,skipAnimation:()=>F4,to:()=>M4,willAdvance:()=>WC});function NS(){}var DJ=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Ye={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function rs(e,t){if(Ye.arr(e)){if(!Ye.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var Jt=(e,t)=>e.forEach(t);function Ai(e,t,n){if(Ye.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var Jo=e=>Ye.und(e)?[]:Ye.arr(e)?e:[e];function jp(e,t){if(e.size){const n=Array.from(e);e.clear(),Jt(n,t)}}var Ap=(e,...t)=>jp(e,n=>n(...t)),VC=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),qC,M4,gl=null,F4=!1,WC=NS,IJ=e=>{e.to&&(M4=e.to),e.now&&(Nt.now=e.now),e.colors!==void 0&&(gl=e.colors),e.skipAnimation!=null&&(F4=e.skipAnimation),e.createStringInterpolator&&(qC=e.createStringInterpolator),e.requestAnimationFrame&&Nt.use(e.requestAnimationFrame),e.batchedUpdates&&(Nt.batchedUpdates=e.batchedUpdates),e.willAdvance&&(WC=e.willAdvance),e.frameLoop&&(Nt.frameLoop=e.frameLoop)},Bp=new Set,Ca=[],KE=[],a0=0,Eb={get idle(){return!Bp.size&&!Ca.length},start(e){a0>e.priority?(Bp.add(e),Nt.onStart(OJ)):(j4(e),Nt(PS))},advance:PS,sort(e){if(a0)Nt.onFrame(()=>Eb.sort(e));else{const t=Ca.indexOf(e);~t&&(Ca.splice(t,1),B4(e))}},clear(){Ca=[],Bp.clear()}};function OJ(){Bp.forEach(j4),Bp.clear(),Nt(PS)}function j4(e){Ca.includes(e)||B4(e)}function B4(e){Ca.splice(NJ(Ca,t=>t.priority>e.priority),0,e)}function PS(e){const t=KE;for(let n=0;n<Ca.length;n++){const r=Ca[n];a0=r.priority,r.idle||(WC(r),r.advance(e),r.idle||t.push(r))}return a0=0,KE=Ca,KE.length=0,Ca=t,Ca.length>0}function NJ(e,t){const n=e.findIndex(t);return n<0?e.length:n}var PJ={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},ja="[-+]?\\d*\\.?\\d+",i0=ja+"%";function xb(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var LJ=new RegExp("rgb"+xb(ja,ja,ja)),MJ=new RegExp("rgba"+xb(ja,ja,ja,ja)),FJ=new RegExp("hsl"+xb(ja,i0,i0)),jJ=new RegExp("hsla"+xb(ja,i0,i0,ja)),BJ=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,UJ=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,zJ=/^#([0-9a-fA-F]{6})$/,HJ=/^#([0-9a-fA-F]{8})$/;function $J(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=zJ.exec(e))?parseInt(t[1]+"ff",16)>>>0:gl&&gl[e]!==void 0?gl[e]:(t=LJ.exec(e))?(Iu(t[1])<<24|Iu(t[2])<<16|Iu(t[3])<<8|255)>>>0:(t=MJ.exec(e))?(Iu(t[1])<<24|Iu(t[2])<<16|Iu(t[3])<<8|SI(t[4]))>>>0:(t=BJ.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=HJ.exec(e))?parseInt(t[1],16)>>>0:(t=UJ.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=FJ.exec(e))?(EI(xI(t[1]),$g(t[2]),$g(t[3]))|255)>>>0:(t=jJ.exec(e))?(EI(xI(t[1]),$g(t[2]),$g(t[3]))|SI(t[4]))>>>0:null}function XE(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function EI(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,a=XE(o,r,e+1/3),i=XE(o,r,e),l=XE(o,r,e-1/3);return Math.round(a*255)<<24|Math.round(i*255)<<16|Math.round(l*255)<<8}function Iu(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function xI(e){return(parseFloat(e)%360+360)%360/360}function SI(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function $g(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function TI(e){let t=$J(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,o=(t&65280)>>>8,a=(t&255)/255;return`rgba(${n}, ${r}, ${o}, ${a})`}var yh=(e,t,n)=>{if(Ye.fun(e))return e;if(Ye.arr(e))return yh({range:e,output:t,extrapolate:n});if(Ye.str(e.output[0]))return qC(e);const r=e,o=r.output,a=r.range||[0,1],i=r.extrapolateLeft||r.extrapolate||"extend",l=r.extrapolateRight||r.extrapolate||"extend",u=r.easing||(d=>d);return d=>{const p=VJ(d,a);return GJ(d,a[p],a[p+1],o[p],o[p+1],u,i,l,r.map)}};function GJ(e,t,n,r,o,a,i,l,u){let d=u?u(e):e;if(d<t){if(i==="identity")return d;i==="clamp"&&(d=t)}if(d>n){if(l==="identity")return d;l==="clamp"&&(d=n)}return r===o?r:t===n?e<=t?r:o:(t===-1/0?d=-d:n===1/0?d=d-t:d=(d-t)/(n-t),d=a(d),r===-1/0?d=-d:o===1/0?d=d+r:d=d*(o-r)+r,d)}function VJ(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var qJ={linear:e=>e},bh=Symbol.for("FluidValue.get"),yd=Symbol.for("FluidValue.observers"),Ea=e=>!!(e&&e[bh]),Do=e=>e&&e[bh]?e[bh]():e,CI=e=>e[yd]||null;function WJ(e,t){e.eventObserved?e.eventObserved(t):e(t)}function vh(e,t){const n=e[yd];n&&n.forEach(r=>{WJ(r,t)})}var U4=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");YJ(this,e)}},YJ=(e,t)=>z4(e,bh,t);function Ld(e,t){if(e[bh]){let n=e[yd];n||z4(e,yd,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Eh(e,t){const n=e[yd];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[yd]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var z4=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Cy=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,QJ=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,_I=new RegExp(`(${Cy.source})(%|[a-z]+)`,"i"),KJ=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Sb=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,H4=e=>{const[t,n]=XJ(e);if(!t||VC())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const o=window.getComputedStyle(document.documentElement).getPropertyValue(n);return o||e}else{if(n&&Sb.test(n))return H4(n);if(n)return n}return e},XJ=e=>{const t=Sb.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},ZE,ZJ=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,$4=e=>{ZE||(ZE=gl?new RegExp(`(${Object.keys(gl).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(a=>Do(a).replace(Sb,H4).replace(QJ,TI).replace(ZE,TI)),n=t.map(a=>a.match(Cy).map(Number)),o=n[0].map((a,i)=>n.map(l=>{if(!(i in l))throw Error('The arity of each "output" value must be equal');return l[i]})).map(a=>yh({...e,output:a}));return a=>{const i=!_I.test(t[0])&&t.find(u=>_I.test(u))?.replace(Cy,"");let l=0;return t[0].replace(Cy,()=>`${o[l++](a)}${i||""}`).replace(KJ,ZJ)}},YC="react-spring: ",G4=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${YC}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},JJ=G4(console.warn);function eee(){JJ(`${YC}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var tee=G4(console.warn);function nee(){tee(`${YC}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function Tb(e){return Ye.str(e)&&(e[0]=="#"||/\d/.test(e)||!VC()&&Sb.test(e)||e in(gl||{}))}var QC=VC()?_.useEffect:_.useLayoutEffect,ree=()=>{const e=_.useRef(!1);return QC(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function V4(){const e=_.useState()[1],t=ree();return()=>{t.current&&e(Math.random())}}var q4=e=>_.useEffect(e,oee),oee=[];function AI(e){const t=_.useRef(void 0);return _.useEffect(()=>{t.current=e}),t.current}var xh=Symbol.for("Animated:node"),aee=e=>!!e&&e[xh]===e,ui=e=>e&&e[xh],KC=(e,t)=>DJ(e,xh,t),Cb=e=>e&&e[xh]&&e[xh].getPayload(),W4=class{constructor(){KC(this,this)}getPayload(){return this.payload||[]}},_b=class Y4 extends W4{constructor(t){super(),this._value=t,this.done=!0,this.durationProgress=0,Ye.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new Y4(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,n){return Ye.num(t)&&(this.lastPosition=t,n&&(t=Math.round(t/n)*n,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){const{done:t}=this;this.done=!1,Ye.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},s0=class Q4 extends _b{constructor(t){super(0),this._string=null,this._toString=yh({output:[t,t]})}static create(t){return new Q4(t)}getValue(){const t=this._string;return t??(this._string=this._toString(this._value))}setValue(t){if(Ye.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=yh({output:[this.getValue(),t]})),this._value=0,super.reset()}},l0={dependencies:null},Ab=class extends W4{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Ai(this.source,(n,r)=>{aee(n)?t[r]=n.getValue(e):Ea(n)?t[r]=Do(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Jt(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Ai(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){l0.dependencies&&Ea(e)&&l0.dependencies.add(e);const t=Cb(e);t&&Jt(t,n=>this.add(n))}},iee=class K4 extends Ab{constructor(t){super(t)}static create(t){return new K4(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){const n=this.getPayload();return t.length==n.length?n.map((r,o)=>r.setValue(t[o])).some(Boolean):(super.setValue(t.map(see)),!0)}};function see(e){return(Tb(e)?s0:_b).create(e)}function LS(e){const t=ui(e);return t?t.constructor:Ye.arr(e)?iee:Tb(e)?s0:_b}var kI=(e,t)=>{const n=!Ye.fun(e)||e.prototype&&e.prototype.isReactComponent;return _.forwardRef((r,o)=>{const a=_.useRef(null),i=n&&_.useCallback(b=>{a.current=uee(o,b)},[o]),[l,u]=cee(r,t),d=V4(),p=()=>{const b=a.current;if(n&&!b)return;(b?t.applyAnimatedValues(b,l.getValue(!0)):!1)===!1&&d()},h=new lee(p,u),y=_.useRef(void 0);QC(()=>(y.current=h,Jt(u,b=>Ld(b,h)),()=>{y.current&&(Jt(y.current.deps,b=>Eh(b,y.current)),Nt.cancel(y.current.update))})),_.useEffect(p,[]),q4(()=>()=>{const b=y.current;Jt(b.deps,S=>Eh(S,b))});const g=t.getComponentProps(l.getValue());return _.createElement(e,{...g,ref:i})})},lee=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&Nt.write(this.update)}};function cee(e,t){const n=new Set;return l0.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Ab(e),l0.dependencies=null,[e,n]}function uee(e,t){return e&&(Ye.fun(e)?e(t):e.current=t),t}var wI=Symbol.for("AnimatedComponent"),dee=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=o=>new Ab(o),getComponentProps:r=o=>o}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=i=>{const l=RI(i)||"Anonymous";return Ye.str(i)?i=a[i]||(a[i]=kI(i,o)):i=i[wI]||(i[wI]=kI(i,o)),i.displayName=`Animated(${l})`,i};return Ai(e,(i,l)=>{Ye.arr(e)&&(l=RI(i)),a[l]=a(i)}),{animated:a}},RI=e=>Ye.str(e)?e:e&&Ye.str(e.displayName)?e.displayName:Ye.fun(e)&&e.name||null;function lc(e,...t){return Ye.fun(e)?e(...t):e}var Up=(e,t)=>e===!0||!!(t&&e&&(Ye.fun(e)?e(t):Jo(e).includes(t))),X4=(e,t)=>Ye.obj(e)?t&&e[t]:e,Z4=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,fee=e=>e,XC=(e,t=fee)=>{let n=pee;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const o of n){const a=t(e[o],o);Ye.und(a)||(r[o]=a)}return r},pee=["config","onProps","onStart","onChange","onPause","onResume","onRest"],hee={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function mee(e){const t={};let n=0;if(Ai(e,(r,o)=>{hee[o]||(t[o]=r,n++)}),n)return t}function J4(e){const t=mee(e);if(t){const n={to:t};return Ai(e,(r,o)=>o in t||(n[o]=r)),n}return{...e}}function Sh(e){return e=Do(e),Ye.arr(e)?e.map(Sh):Tb(e)?$a.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function gee(e){for(const t in e)return!0;return!1}function MS(e){return Ye.fun(e)||Ye.arr(e)&&Ye.obj(e[0])}function yee(e,t){e.ref?.delete(e),t?.delete(e)}function bee(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var vee={default:{tension:170,friction:26}},FS={...vee.default,mass:1,damping:1,easing:qJ.linear,clamp:!1},Eee=class{constructor(){this.velocity=0,Object.assign(this,FS)}};function xee(e,t,n){n&&(n={...n},DI(n,t),t={...n,...t}),DI(e,t),Object.assign(e,t);for(const i in FS)e[i]==null&&(e[i]=FS[i]);let{frequency:r,damping:o}=e;const{mass:a}=e;return Ye.und(r)||(r<.01&&(r=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/r,2)*a,e.friction=4*Math.PI*o*a/r),e}function DI(e,t){if(!Ye.und(t.decay))e.duration=void 0;else{const n=!Ye.und(t.tension)||!Ye.und(t.friction);(n||!Ye.und(t.frequency)||!Ye.und(t.damping)||!Ye.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var II=[],See=class{constructor(){this.changed=!1,this.values=II,this.toValues=null,this.fromValues=II,this.config=new Eee,this.immediate=!1}};function eL(e,{key:t,props:n,defaultProps:r,state:o,actions:a}){return new Promise((i,l)=>{let u,d,p=Up(n.cancel??r?.cancel,t);if(p)g();else{Ye.und(n.pause)||(o.paused=Up(n.pause,t));let b=r?.pause;b!==!0&&(b=o.paused||Up(b,t)),u=lc(n.delay||0,t),b?(o.resumeQueue.add(y),a.pause()):(a.resume(),y())}function h(){o.resumeQueue.add(y),o.timeouts.delete(d),d.cancel(),u=d.time-Nt.now()}function y(){u>0&&!$a.skipAnimation?(o.delayed=!0,d=Nt.setTimeout(g,u),o.pauseQueue.add(h),o.timeouts.add(d)):g()}function g(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(h),o.timeouts.delete(d),e<=(o.cancelId||0)&&(p=!0);try{a.start({...n,callId:e,cancel:p},i)}catch(b){l(b)}}})}var ZC=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?rd(e.get()):t.every(n=>n.noop)?tL(e.get()):Ma(e.get(),t.every(n=>n.finished)),tL=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Ma=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),rd=e=>({value:e,cancelled:!0,finished:!1});function nL(e,t,n,r){const{callId:o,parentId:a,onRest:i}=t,{asyncTo:l,promise:u}=n;return!a&&e===l&&!t.reset?u:n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const d=XC(t,(T,E)=>E==="onRest"?void 0:T);let p,h;const y=new Promise((T,E)=>(p=T,h=E)),g=T=>{const E=o<=(n.cancelId||0)&&rd(r)||o!==n.asyncId&&Ma(r,!1);if(E)throw T.result=E,h(T),T},b=(T,E)=>{const A=new OI,C=new NI;return(async()=>{if($a.skipAnimation)throw Th(n),C.result=Ma(r,!1),h(C),C;g(A);const D=Ye.obj(T)?{...T}:{...E,to:T};D.parentId=o,Ai(d,(O,j)=>{Ye.und(D[j])&&(D[j]=O)});const I=await r.start(D);return g(A),n.paused&&await new Promise(O=>{n.resumeQueue.add(O)}),I})()};let S;if($a.skipAnimation)return Th(n),Ma(r,!1);try{let T;Ye.arr(e)?T=(async E=>{for(const A of E)await b(A)})(e):T=Promise.resolve(e(b,r.stop.bind(r))),await Promise.all([T.then(p),y]),S=Ma(r.get(),!0,!1)}catch(T){if(T instanceof OI)S=T.result;else if(T instanceof NI)S=T.result;else throw T}finally{o==n.asyncId&&(n.asyncId=a,n.asyncTo=a?l:void 0,n.promise=a?u:void 0)}return Ye.fun(i)&&Nt.batchedUpdates(()=>{i(S,r,r.item)}),S})()}function Th(e,t){jp(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var OI=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},NI=class extends Error{constructor(){super("SkipAnimationSignal")}},jS=e=>e instanceof JC,Tee=1,JC=class extends U4{constructor(){super(...arguments),this.id=Tee++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=ui(this);return e&&e.getValue()}to(...e){return $a.to(this,e)}interpolate(...e){return eee(),$a.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){vh(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Eb.sort(this),vh(this,{type:"priority",parent:this,priority:e})}},Nc=Symbol.for("SpringPhase"),rL=1,BS=2,US=4,JE=e=>(e[Nc]&rL)>0,Js=e=>(e[Nc]&BS)>0,op=e=>(e[Nc]&US)>0,PI=(e,t)=>t?e[Nc]|=BS|rL:e[Nc]&=~BS,LI=(e,t)=>t?e[Nc]|=US:e[Nc]&=~US,Cee=class extends JC{constructor(e,t){if(super(),this.animation=new See,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Ye.und(e)||!Ye.und(t)){const n=Ye.obj(e)?{...e}:{...t,from:e};Ye.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Js(this)||this._state.asyncTo)||op(this)}get goal(){return Do(this.animation.to)}get velocity(){const e=ui(this);return e instanceof _b?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return JE(this)}get isAnimating(){return Js(this)}get isPaused(){return op(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:o}=r;const{config:a}=r,i=Cb(r.to);!i&&Ea(r.to)&&(o=Jo(Do(r.to))),r.values.forEach((d,p)=>{if(d.done)return;const h=d.constructor==s0?1:i?i[p].lastPosition:o[p];let y=r.immediate,g=h;if(!y){if(g=d.lastPosition,a.tension<=0){d.done=!0;return}let b=d.elapsedTime+=e;const S=r.fromValues[p],T=d.v0!=null?d.v0:d.v0=Ye.arr(a.velocity)?a.velocity[p]:a.velocity;let E;const A=a.precision||(S==h?.005:Math.min(1,Math.abs(h-S)*.001));if(Ye.und(a.duration))if(a.decay){const C=a.decay===!0?.998:a.decay,D=Math.exp(-(1-C)*b);g=S+T/(1-C)*(1-D),y=Math.abs(d.lastPosition-g)<=A,E=T*D}else{E=d.lastVelocity==null?T:d.lastVelocity;const C=a.restVelocity||A/10,D=a.clamp?0:a.bounce,I=!Ye.und(D),O=S==h?d.v0>0:S<h;let j,$=!1;const z=1,L=Math.ceil(e/z);for(let H=0;H<L&&(j=Math.abs(E)>C,!(!j&&(y=Math.abs(h-g)<=A,y)));++H){I&&($=g==h||g>h==O,$&&(E=-E*D,g=h));const k=-a.tension*1e-6*(g-h),F=-a.friction*.001*E,B=(k+F)/a.mass;E=E+B*z,g=g+E*z}}else{let C=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,d.durationProgress>0&&(d.elapsedTime=a.duration*d.durationProgress,b=d.elapsedTime+=e)),C=(a.progress||0)+b/this._memoizedDuration,C=C>1?1:C<0?0:C,d.durationProgress=C),g=S+a.easing(C)*(h-S),E=(g-d.lastPosition)/e,y=C==1}d.lastVelocity=E,Number.isNaN(g)&&(console.warn("Got NaN while animating:",this),y=!0)}i&&!i[p].done&&(y=!1),y?d.done=!0:t=!1,d.setValue(g,a.round)&&(n=!0)});const l=ui(this),u=l.getValue();if(t){const d=Do(r.to);(u!==d||n)&&!a.decay?(l.setValue(d),this._onChange(d)):n&&a.decay&&this._onChange(u),this._stop()}else n&&this._onChange(u)}set(e){return Nt.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Js(this)){const{to:e,config:t}=this.animation;Nt.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return Ye.und(e)?(n=this.queue||[],this.queue=[]):n=[Ye.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>ZC(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Th(this._state,e&&this._lastCallId),Nt.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=Ye.obj(n)?n[t]:n,(n==null||MS(n))&&(n=void 0),r=Ye.obj(r)?r[t]:r,r==null&&(r=void 0);const o={to:n,from:r};return JE(this)||(e.reverse&&([n,r]=[r,n]),r=Do(r),Ye.und(r)?ui(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,XC(e,(i,l)=>/^on/.test(l)?X4(i,n):i)),FI(this,e,"onProps"),ip(this,"onProps",e,this);const o=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const a=this._state;return eL(++this._lastCallId,{key:n,props:e,defaultProps:r,state:a,actions:{pause:()=>{op(this)||(LI(this,!0),Ap(a.pauseQueue),ip(this,"onPause",Ma(this,ap(this,this.animation.to)),this))},resume:()=>{op(this)&&(LI(this,!1),Js(this)&&this._resume(),Ap(a.resumeQueue),ip(this,"onResume",Ma(this,ap(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then(i=>{if(e.loop&&i.finished&&!(t&&i.noop)){const l=oL(e);if(l)return this._update(l,!0)}return i})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(rd(this));const r=!Ye.und(e.to),o=!Ye.und(e.from);if(r||o)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(rd(this));const{key:a,defaultProps:i,animation:l}=this,{to:u,from:d}=l;let{to:p=u,from:h=d}=e;o&&!r&&(!t.default||Ye.und(p))&&(p=h),t.reverse&&([p,h]=[h,p]);const y=!rs(h,d);y&&(l.from=h),h=Do(h);const g=!rs(p,u);g&&this._focus(p);const b=MS(t.to),{config:S}=l,{decay:T,velocity:E}=S;(r||o)&&(S.velocity=0),t.config&&!b&&xee(S,lc(t.config,a),t.config!==i.config?lc(i.config,a):void 0);let A=ui(this);if(!A||Ye.und(p))return n(Ma(this,!0));const C=Ye.und(t.reset)?o&&!t.default:!Ye.und(h)&&Up(t.reset,a),D=C?h:this.get(),I=Sh(p),O=Ye.num(I)||Ye.arr(I)||Tb(I),j=!b&&(!O||Up(i.immediate||t.immediate,a));if(g){const H=LS(p);if(H!==A.constructor)if(j)A=this._set(I);else throw Error(`Cannot animate between ${A.constructor.name} and ${H.name}, as the "to" prop suggests`)}const $=A.constructor;let z=Ea(p),L=!1;if(!z){const H=C||!JE(this)&&y;(g||H)&&(L=rs(Sh(D),I),z=!L),(!rs(l.immediate,j)&&!j||!rs(S.decay,T)||!rs(S.velocity,E))&&(z=!0)}if(L&&Js(this)&&(l.changed&&!C?z=!0:z||this._stop(u)),!b&&((z||Ea(u))&&(l.values=A.getPayload(),l.toValues=Ea(p)?null:$==s0?[1]:Jo(I)),l.immediate!=j&&(l.immediate=j,!j&&!C&&this._set(u)),z)){const{onRest:H}=l;Jt(Aee,F=>FI(this,t,F));const k=Ma(this,ap(this,u));Ap(this._pendingCalls,k),this._pendingCalls.add(n),l.changed&&Nt.batchedUpdates(()=>{l.changed=!C,H?.(k,this),C?lc(i.onRest,k):l.onStart?.(k,this)})}C&&this._set(D),b?n(nL(t.to,t,this._state,this)):z?this._start():Js(this)&&!g?this._pendingCalls.add(n):n(tL(D))}_focus(e){const t=this.animation;e!==t.to&&(CI(this)&&this._detach(),t.to=e,CI(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Ea(t)&&(Ld(t,this),jS(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Ea(e)&&Eh(e,this)}_set(e,t=!0){const n=Do(e);if(!Ye.und(n)){const r=ui(this);if(!r||!rs(n,r.getValue())){const o=LS(n);!r||r.constructor!=o?KC(this,o.create(n)):r.setValue(n),r&&Nt.batchedUpdates(()=>{this._onChange(n,t)})}}return ui(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,ip(this,"onStart",Ma(this,ap(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),lc(this.animation.onChange,e,this)),lc(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;ui(this).reset(Do(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Js(this)||(PI(this,!0),op(this)||this._resume())}_resume(){$a.skipAnimation?this.finish():Eb.start(this)}_stop(e,t){if(Js(this)){PI(this,!1);const n=this.animation;Jt(n.values,o=>{o.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),vh(this,{type:"idle",parent:this});const r=t?rd(this.get()):Ma(this.get(),ap(this,e??n.to));Ap(this._pendingCalls,r),n.changed&&(n.changed=!1,ip(this,"onRest",r,this))}}};function ap(e,t){const n=Sh(t),r=Sh(e.get());return rs(r,n)}function oL(e,t=e.loop,n=e.to){const r=lc(t);if(r){const o=r!==!0&&J4(r),a=(o||e).reverse,i=!o||o.reset;return Ch({...e,loop:t,default:!1,pause:void 0,to:!a||MS(n)?n:void 0,from:i?e.from:void 0,reset:i,...o})}}function Ch(e){const{to:t,from:n}=e=J4(e),r=new Set;return Ye.obj(t)&&MI(t,r),Ye.obj(n)&&MI(n,r),e.keys=r.size?Array.from(r):null,e}function _ee(e){const t=Ch(e);return Ye.und(t.default)&&(t.default=XC(t)),t}function MI(e,t){Ai(e,(n,r)=>n!=null&&t.add(r))}var Aee=["onStart","onRest","onChange","onPause","onResume"];function FI(e,t,n){e.animation[n]=t[n]!==Z4(t,n)?X4(t[n],e.key):void 0}function ip(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var kee=["onStart","onChange","onRest"],wee=1,Ree=class{constructor(e,t){this.id=wee++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];Ye.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Ch(e)),this}start(e){let{queue:t}=this;return e?t=Jo(e).map(Ch):this.queue=[],this._flush?this._flush(this,t):(cL(this,t),zS(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Jt(Jo(t),r=>n[r].stop(!!e))}else Th(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(Ye.und(e))this.start({pause:!0});else{const t=this.springs;Jt(Jo(e),n=>t[n].pause())}return this}resume(e){if(Ye.und(e))this.start({pause:!1});else{const t=this.springs;Jt(Jo(e),n=>t[n].resume())}return this}each(e){Ai(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,o=this._changed.size>0;(r&&!this._started||o&&!this._started)&&(this._started=!0,jp(e,([l,u])=>{u.value=this.get(),l(u,this,this._item)}));const a=!r&&this._started,i=o||a&&n.size?this.get():null;o&&t.size&&jp(t,([l,u])=>{u.value=i,l(u,this,this._item)}),a&&(this._started=!1,jp(n,([l,u])=>{u.value=i,l(u,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;Nt.onFrame(this._onFrame)}};function zS(e,t){return Promise.all(t.map(n=>aL(e,n))).then(n=>ZC(e,n))}async function aL(e,t,n){const{keys:r,to:o,from:a,loop:i,onRest:l,onResolve:u}=t,d=Ye.obj(t.default)&&t.default;i&&(t.loop=!1),o===!1&&(t.to=null),a===!1&&(t.from=null);const p=Ye.arr(o)||Ye.fun(o)?o:void 0;p?(t.to=void 0,t.onRest=void 0,d&&(d.onRest=void 0)):Jt(kee,S=>{const T=t[S];if(Ye.fun(T)){const E=e._events[S];t[S]=({finished:A,cancelled:C})=>{const D=E.get(T);D?(A||(D.finished=!1),C&&(D.cancelled=!0)):E.set(T,{value:null,finished:A||!1,cancelled:C||!1})},d&&(d[S]=t[S])}});const h=e._state;t.pause===!h.paused?(h.paused=t.pause,Ap(t.pause?h.pauseQueue:h.resumeQueue)):h.paused&&(t.pause=!0);const y=(r||Object.keys(e.springs)).map(S=>e.springs[S].start(t)),g=t.cancel===!0||Z4(t,"cancel")===!0;(p||g&&h.asyncId)&&y.push(eL(++e._lastAsyncId,{props:t,state:h,actions:{pause:NS,resume:NS,start(S,T){g?(Th(h,e._lastAsyncId),T(rd(e))):(S.onRest=l,T(nL(p,S,h,e)))}}})),h.paused&&await new Promise(S=>{h.resumeQueue.add(S)});const b=ZC(e,await Promise.all(y));if(i&&b.finished&&!(n&&b.noop)){const S=oL(t,i,o);if(S)return cL(e,[S]),aL(e,S,!0)}return u&&Nt.batchedUpdates(()=>u(b,e,e.item)),b}function jI(e,t){const n={...e.springs};return t&&Jt(Jo(t),r=>{Ye.und(r.keys)&&(r=Ch(r)),Ye.obj(r.to)||(r={...r,to:void 0}),lL(n,r,o=>sL(o))}),iL(e,n),n}function iL(e,t){Ai(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,Ld(n,e))})}function sL(e,t){const n=new Cee;return n.key=e,t&&Ld(n,t),n}function lL(e,t,n){t.keys&&Jt(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function cL(e,t){Jt(t,n=>{lL(e.springs,n,r=>sL(r,e))})}var Dee=_.createContext({pause:!1,immediate:!1}),Iee=()=>{const e=[],t=function(r){nee();const o=[];return Jt(e,(a,i)=>{if(Ye.und(r))o.push(a.start());else{const l=n(r,a,i);l&&o.push(a.start(l))}}),o};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const o=e.indexOf(r);~o&&e.splice(o,1)},t.pause=function(){return Jt(e,r=>r.pause(...arguments)),this},t.resume=function(){return Jt(e,r=>r.resume(...arguments)),this},t.set=function(r){Jt(e,(o,a)=>{const i=Ye.fun(r)?r(a,o):r;i&&o.set(i)})},t.start=function(r){const o=[];return Jt(e,(a,i)=>{if(Ye.und(r))o.push(a.start());else{const l=this._getProps(r,a,i);l&&o.push(a.start(l))}}),o},t.stop=function(){return Jt(e,r=>r.stop(...arguments)),this},t.update=function(r){return Jt(e,(o,a)=>o.update(this._getProps(r,o,a))),this};const n=function(r,o,a){return Ye.fun(r)?r(a,o):r};return t._getProps=n,t};function Oee(e,t,n){const r=Ye.fun(t)&&t;r&&!n&&(n=[]);const o=_.useMemo(()=>r||arguments.length==3?Iee():void 0,[]),a=_.useRef(0),i=V4(),l=_.useMemo(()=>({ctrls:[],queue:[],flush(E,A){const C=jI(E,A);return a.current>0&&!l.queue.length&&!Object.keys(C).some(I=>!E.springs[I])?zS(E,A):new Promise(I=>{iL(E,C),l.queue.push(()=>{I(zS(E,A))}),i()})}}),[]),u=_.useRef([...l.ctrls]),d=_.useRef([]),p=AI(e)||0;_.useMemo(()=>{Jt(u.current.slice(e,p),E=>{yee(E,o),E.stop(!0)}),u.current.length=e,h(p,e)},[e]),_.useMemo(()=>{h(0,Math.min(p,e))},n);function h(E,A){for(let C=E;C<A;C++){const D=u.current[C]||(u.current[C]=new Ree(null,l.flush)),I=r?r(C,D):t[C];I&&(d.current[C]=_ee(I))}}const y=u.current.map((E,A)=>jI(E,d.current[A])),g=_.useContext(Dee),b=AI(g),S=g!==b&&gee(g);QC(()=>{a.current++,l.ctrls=u.current;const{queue:E}=l;E.length&&(l.queue=[],Jt(E,A=>A())),Jt(u.current,(A,C)=>{o?.add(A),S&&A.start({default:g});const D=d.current[C];D&&(bee(A,D.ref),A.ref?A.queue.push(D):A.start(D))})}),q4(()=>()=>{Jt(l.ctrls,E=>E.stop(!0))});const T=y.map(E=>({...E}));return o?[T,o]:T}function Nee(e,t){const n=Ye.fun(e),[[r],o]=Oee(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,o]:r}var Pee=class extends JC{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=yh(...t);const n=this._get(),r=LS(n);KC(this,r.create(n))}advance(e){const t=this._get(),n=this.get();rs(t,n)||(ui(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&BI(this._active)&&ex(this)}_get(){const e=Ye.arr(this.source)?this.source.map(Do):Jo(Do(this.source));return this.calc(...e)}_start(){this.idle&&!BI(this._active)&&(this.idle=!1,Jt(Cb(this),e=>{e.done=!1}),$a.skipAnimation?(Nt.batchedUpdates(()=>this.advance()),ex(this)):Eb.start(this))}_attach(){let e=1;Jt(Jo(this.source),t=>{Ea(t)&&Ld(t,this),jS(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Jt(Jo(this.source),e=>{Ea(e)&&Eh(e,this)}),this._active.clear(),ex(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=Jo(this.source).reduce((t,n)=>Math.max(t,(jS(n)?n.priority:0)+1),0))}};function Lee(e){return e.idle!==!1}function BI(e){return!e.size||Array.from(e).every(Lee)}function ex(e){e.idle||(e.idle=!0,Jt(Cb(e),t=>{t.done=!0}),vh(e,{type:"idle",parent:e}))}$a.assign({createStringInterpolator:$4,to:(e,t)=>new Pee(e,t)});var uL=/^--/;function Mee(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!uL.test(e)&&!(zp.hasOwnProperty(e)&&zp[e])?t+"px":(""+t).trim()}var UI={};function Fee(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:r,style:o,children:a,scrollTop:i,scrollLeft:l,viewBox:u,...d}=t,p=Object.values(d),h=Object.keys(d).map(y=>n||e.hasAttribute(y)?y:UI[y]||(UI[y]=y.replace(/([A-Z])/g,g=>"-"+g.toLowerCase())));a!==void 0&&(e.textContent=a);for(const y in o)if(o.hasOwnProperty(y)){const g=Mee(y,o[y]);uL.test(y)?e.style.setProperty(y,g):e.style[y]=g}h.forEach((y,g)=>{e.setAttribute(y,p[g])}),r!==void 0&&(e.className=r),i!==void 0&&(e.scrollTop=i),l!==void 0&&(e.scrollLeft=l),u!==void 0&&e.setAttribute("viewBox",u)}var zp={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},jee=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),Bee=["Webkit","Ms","Moz","O"];zp=Object.keys(zp).reduce((e,t)=>(Bee.forEach(n=>e[jee(n,t)]=e[t]),e),zp);var Uee=/^(matrix|translate|scale|rotate|skew)/,zee=/^(translate)/,Hee=/^(rotate|skew)/,tx=(e,t)=>Ye.num(e)&&e!==0?e+t:e,_y=(e,t)=>Ye.arr(e)?e.every(n=>_y(n,t)):Ye.num(e)?e===t:parseFloat(e)===t,$ee=class extends Ab{constructor({x:e,y:t,z:n,...r}){const o=[],a=[];(e||t||n)&&(o.push([e||0,t||0,n||0]),a.push(i=>[`translate3d(${i.map(l=>tx(l,"px")).join(",")})`,_y(i,0)])),Ai(r,(i,l)=>{if(l==="transform")o.push([i||""]),a.push(u=>[u,u===""]);else if(Uee.test(l)){if(delete r[l],Ye.und(i))return;const u=zee.test(l)?"px":Hee.test(l)?"deg":"";o.push(Jo(i)),a.push(l==="rotate3d"?([d,p,h,y])=>[`rotate3d(${d},${p},${h},${tx(y,u)})`,_y(y,0)]:d=>[`${l}(${d.map(p=>tx(p,u)).join(",")})`,_y(d,l.startsWith("scale")?1:0)])}}),o.length&&(r.transform=new Gee(o,a)),super(r)}},Gee=class extends U4{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Jt(this.inputs,(n,r)=>{const o=Do(n[0]),[a,i]=this.transforms[r](Ye.arr(o)?o:n.map(Do));e+=" "+a,t=t&&i}),t?"none":e}observerAdded(e){e==1&&Jt(this.inputs,t=>Jt(t,n=>Ea(n)&&Ld(n,this)))}observerRemoved(e){e==0&&Jt(this.inputs,t=>Jt(t,n=>Ea(n)&&Eh(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),vh(this,e)}},Vee=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];$a.assign({batchedUpdates:zh.unstable_batchedUpdates,createStringInterpolator:$4,colors:PJ});var qee=dee(Vee,{applyAnimatedValues:Fee,createAnimatedStyle:e=>new $ee(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Wee=qee.animated;function to({error:e,context:t}){const n=e.data?.message||"Unknown Error";return v.jsxs(v.Fragment,{children:[t&&v.jsx(Ze,{variant:"body2",sx:{p:"10px",m:"auto"},children:t}),v.jsx("pre",{style:{whiteSpace:"pre-wrap",color:"red",padding:"10px",margin:"auto"},children:n})]})}const zI=e=>e,Yee=()=>{let e=zI;return{configure(t){e=t},generate(t){return e(t)},reset(){e=zI}}},Qee=Yee();function fs(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function ut(e){if(typeof e!="string")throw new Error(fs(7));return e.charAt(0).toUpperCase()+e.slice(1)}function HI(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}function kb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $I={exports:{}},nx,GI;function Kee(){if(GI)return nx;GI=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return nx=e,nx}var rx,VI;function Xee(){if(VI)return rx;VI=1;var e=Kee();function t(){}function n(){}return n.resetWarningCache=t,rx=function(){function r(i,l,u,d,p,h){if(h!==e){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}}r.isRequired=r;function o(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},rx}var qI;function Zee(){return qI||(qI=1,$I.exports=Xee()()),$I.exports}var Jee=Zee();const WI=kb(Jee);function dL(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=dL(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function xt(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=dL(e))&&(r&&(r+=" "),r+=t);return r}function Xt(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let i="",l=!0;for(let u=0;u<a.length;u+=1){const d=a[u];d&&(i+=(l===!0?"":" ")+t(d),l=!1,n&&n[d]&&(i+=" "+n[d]))}r[o]=i}return r}var YI={exports:{}},Pn={};/**
|
|
234
|
-
* @license React
|
|
235
|
-
* react-is.production.js
|
|
236
|
-
*
|
|
237
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
238
|
-
*
|
|
239
|
-
* This source code is licensed under the MIT license found in the
|
|
240
|
-
* LICENSE file in the root directory of this source tree.
|
|
241
|
-
*/var QI;function ete(){if(QI)return Pn;QI=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");function b(S){if(typeof S=="object"&&S!==null){var T=S.$$typeof;switch(T){case e:switch(S=S.type,S){case n:case o:case r:case u:case d:case y:return S;default:switch(S=S&&S.$$typeof,S){case i:case l:case h:case p:return S;case a:return S;default:return T}}case t:return T}}}return Pn.ContextConsumer=a,Pn.ContextProvider=i,Pn.Element=e,Pn.ForwardRef=l,Pn.Fragment=n,Pn.Lazy=h,Pn.Memo=p,Pn.Portal=t,Pn.Profiler=o,Pn.StrictMode=r,Pn.Suspense=u,Pn.SuspenseList=d,Pn.isContextConsumer=function(S){return b(S)===a},Pn.isContextProvider=function(S){return b(S)===i},Pn.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},Pn.isForwardRef=function(S){return b(S)===l},Pn.isFragment=function(S){return b(S)===n},Pn.isLazy=function(S){return b(S)===h},Pn.isMemo=function(S){return b(S)===p},Pn.isPortal=function(S){return b(S)===t},Pn.isProfiler=function(S){return b(S)===o},Pn.isStrictMode=function(S){return b(S)===r},Pn.isSuspense=function(S){return b(S)===u},Pn.isSuspenseList=function(S){return b(S)===d},Pn.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===n||S===o||S===r||S===u||S===d||typeof S=="object"&&S!==null&&(S.$$typeof===h||S.$$typeof===p||S.$$typeof===i||S.$$typeof===a||S.$$typeof===l||S.$$typeof===g||S.getModuleId!==void 0)},Pn.typeOf=b,Pn}var KI;function tte(){return KI||(KI=1,YI.exports=ete()),YI.exports}var fL=tte();function gi(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function pL(e){if(_.isValidElement(e)||fL.isValidElementType(e)||!gi(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=pL(e[n])}),t}function Zr(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return gi(e)&&gi(t)&&Object.keys(t).forEach(o=>{_.isValidElement(t[o])||fL.isValidElementType(t[o])?r[o]=t[o]:gi(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&gi(e[o])?r[o]=Zr(e[o],t[o],n):n.clone?r[o]=gi(t[o])?pL(t[o]):t[o]:r[o]=t[o]}),r}function Hp(e,t){return t?Zr(e,t,{clone:!1}):e}function XI(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{const a=/min-width:\s*([0-9.]+)/;return+(r.match(a)?.[1]||0)-+(o.match(a)?.[1]||0)});return n.length?n.reduce((r,o)=>{const a=t[o];return delete r[o],r[o]=a,r},{...t}):t}function nte(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function rte(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(a)}function ote(e){const t=(a,i)=>a.replace("@media",i?`@container ${i}`:"@container");function n(a,i){a.up=(...l)=>t(e.breakpoints.up(...l),i),a.down=(...l)=>t(e.breakpoints.down(...l),i),a.between=(...l)=>t(e.breakpoints.between(...l),i),a.only=(...l)=>t(e.breakpoints.only(...l),i),a.not=(...l)=>{const u=t(e.breakpoints.not(...l),i);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const r={},o=a=>(n(r,a),r);return n(o),{...e,containerQueries:o}}const wb={xs:0,sm:600,md:900,lg:1200,xl:1536},ZI={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${wb[e]}px)`},ate={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:wb[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function ps(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||ZI;return t.reduce((a,i,l)=>(a[o.up(o.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const o=r.breakpoints||ZI;return Object.keys(t).reduce((a,i)=>{if(nte(o.keys,i)){const l=rte(r.containerQueries?r:ate,i);l&&(a[l]=n(t[i],i))}else if(Object.keys(o.values||wb).includes(i)){const l=o.up(i);a[l]=n(t[i],i)}else{const l=i;a[l]=t[l]}return a},{})}return n(t)}function ite(e={}){return e.keys?.reduce((t,n)=>{const r=e.up(n);return t[r]={},t},{})||{}}function JI(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Rb(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function c0(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Rb(e,n)||r,t&&(o=t(o,r,e)),o}function mr(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=i=>{if(i[t]==null)return null;const l=i[t],u=i.theme,d=Rb(u,r)||{};return ps(i,l,p=>{let h=c0(d,o,p);return p===h&&typeof p=="string"&&(h=c0(d,o,`${t}${p==="default"?"":ut(p)}`,p)),n===!1?h:{[n]:h}})};return a.propTypes={},a.filterProps=[t],a}function ste(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const lte={m:"margin",p:"padding"},cte={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},eO={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ute=ste(e=>{if(e.length>2)if(eO[e])e=eO[e];else return[e];const[t,n]=e.split(""),r=lte[t],o=cte[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),e_=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],t_=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...e_,...t_];function nm(e,t,n,r){const o=Rb(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:typeof o=="string"?o.startsWith("var(")&&a===0?0:o.startsWith("var(")&&a===1?o:`calc(${a} * ${o})`:o*a:Array.isArray(o)?a=>{if(typeof a=="string")return a;const i=Math.abs(a),l=o[i];return a>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof o=="function"?o:()=>{}}function n_(e){return nm(e,"spacing",8)}function rm(e,t){return typeof t=="string"||t==null?t:e(t)}function dte(e,t){return n=>e.reduce((r,o)=>(r[o]=rm(t,n),r),{})}function fte(e,t,n,r){if(!t.includes(n))return null;const o=ute(n),a=dte(o,r),i=e[n];return ps(e,i,a)}function hL(e,t){const n=n_(e.theme);return Object.keys(e).map(r=>fte(e,t,r,n)).reduce(Hp,{})}function sr(e){return hL(e,e_)}sr.propTypes={};sr.filterProps=e_;function lr(e){return hL(e,t_)}lr.propTypes={};lr.filterProps=t_;function Db(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),n=r=>Object.keys(r).reduce((o,a)=>t[a]?Hp(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function xa(e){return typeof e!="number"?e:`${e}px solid`}function Ia(e,t){return mr({prop:e,themeKey:"borders",transform:t})}const pte=Ia("border",xa),hte=Ia("borderTop",xa),mte=Ia("borderRight",xa),gte=Ia("borderBottom",xa),yte=Ia("borderLeft",xa),bte=Ia("borderColor"),vte=Ia("borderTopColor"),Ete=Ia("borderRightColor"),xte=Ia("borderBottomColor"),Ste=Ia("borderLeftColor"),Tte=Ia("outline",xa),Cte=Ia("outlineColor"),Ib=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=nm(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:rm(t,r)});return ps(e,e.borderRadius,n)}return null};Ib.propTypes={};Ib.filterProps=["borderRadius"];Db(pte,hte,mte,gte,yte,bte,vte,Ete,xte,Ste,Ib,Tte,Cte);const Ob=e=>{if(e.gap!==void 0&&e.gap!==null){const t=nm(e.theme,"spacing",8),n=r=>({gap:rm(t,r)});return ps(e,e.gap,n)}return null};Ob.propTypes={};Ob.filterProps=["gap"];const Nb=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=nm(e.theme,"spacing",8),n=r=>({columnGap:rm(t,r)});return ps(e,e.columnGap,n)}return null};Nb.propTypes={};Nb.filterProps=["columnGap"];const Pb=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=nm(e.theme,"spacing",8),n=r=>({rowGap:rm(t,r)});return ps(e,e.rowGap,n)}return null};Pb.propTypes={};Pb.filterProps=["rowGap"];const _te=mr({prop:"gridColumn"}),Ate=mr({prop:"gridRow"}),kte=mr({prop:"gridAutoFlow"}),wte=mr({prop:"gridAutoColumns"}),Rte=mr({prop:"gridAutoRows"}),Dte=mr({prop:"gridTemplateColumns"}),Ite=mr({prop:"gridTemplateRows"}),Ote=mr({prop:"gridTemplateAreas"}),Nte=mr({prop:"gridArea"});Db(Ob,Nb,Pb,_te,Ate,kte,wte,Rte,Dte,Ite,Ote,Nte);function od(e,t){return t==="grey"?t:e}const Pte=mr({prop:"color",themeKey:"palette",transform:od}),Lte=mr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:od}),Mte=mr({prop:"backgroundColor",themeKey:"palette",transform:od});Db(Pte,Lte,Mte);function Xo(e){return e<=1&&e!==0?`${e*100}%`:e}const Fte=mr({prop:"width",transform:Xo}),r_=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||wb[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Xo(n)}};return ps(e,e.maxWidth,t)}return null};r_.filterProps=["maxWidth"];const jte=mr({prop:"minWidth",transform:Xo}),Bte=mr({prop:"height",transform:Xo}),Ute=mr({prop:"maxHeight",transform:Xo}),zte=mr({prop:"minHeight",transform:Xo});mr({prop:"size",cssProperty:"width",transform:Xo});mr({prop:"size",cssProperty:"height",transform:Xo});const Hte=mr({prop:"boxSizing"});Db(Fte,r_,jte,Bte,Ute,zte,Hte);const om={border:{themeKey:"borders",transform:xa},borderTop:{themeKey:"borders",transform:xa},borderRight:{themeKey:"borders",transform:xa},borderBottom:{themeKey:"borders",transform:xa},borderLeft:{themeKey:"borders",transform:xa},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:xa},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ib},color:{themeKey:"palette",transform:od},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:od},backgroundColor:{themeKey:"palette",transform:od},p:{style:lr},pt:{style:lr},pr:{style:lr},pb:{style:lr},pl:{style:lr},px:{style:lr},py:{style:lr},padding:{style:lr},paddingTop:{style:lr},paddingRight:{style:lr},paddingBottom:{style:lr},paddingLeft:{style:lr},paddingX:{style:lr},paddingY:{style:lr},paddingInline:{style:lr},paddingInlineStart:{style:lr},paddingInlineEnd:{style:lr},paddingBlock:{style:lr},paddingBlockStart:{style:lr},paddingBlockEnd:{style:lr},m:{style:sr},mt:{style:sr},mr:{style:sr},mb:{style:sr},ml:{style:sr},mx:{style:sr},my:{style:sr},margin:{style:sr},marginTop:{style:sr},marginRight:{style:sr},marginBottom:{style:sr},marginLeft:{style:sr},marginX:{style:sr},marginY:{style:sr},marginInline:{style:sr},marginInlineStart:{style:sr},marginInlineEnd:{style:sr},marginBlock:{style:sr},marginBlockStart:{style:sr},marginBlockEnd:{style:sr},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ob},rowGap:{style:Pb},columnGap:{style:Nb},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Xo},maxWidth:{style:r_},minWidth:{transform:Xo},height:{transform:Xo},maxHeight:{transform:Xo},minHeight:{transform:Xo},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function $te(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Gte(e,t){return typeof e=="function"?e(t):e}function Vte(){function e(n,r,o,a){const i={[n]:r,theme:o},l=a[n];if(!l)return{[n]:r};const{cssProperty:u=n,themeKey:d,transform:p,style:h}=l;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const y=Rb(o,d)||{};return h?h(i):ps(i,r,g=>{let b=c0(y,p,g);return g===b&&typeof g=="string"&&(b=c0(y,p,`${n}${g==="default"?"":ut(g)}`,g)),u===!1?b:{[u]:b}})}function t(n){const{sx:r,theme:o={},nested:a}=n||{};if(!r)return null;const i=o.unstable_sxConfig??om;function l(u){let d=u;if(typeof u=="function")d=u(o);else if(typeof u!="object")return u;if(!d)return null;const p=ite(o.breakpoints),h=Object.keys(p);let y=p;return Object.keys(d).forEach(g=>{const b=Gte(d[g],o);if(b!=null)if(typeof b=="object")if(i[g])y=Hp(y,e(g,b,o,i));else{const S=ps({theme:o},b,T=>({[g]:T}));$te(S,b)?y[g]=t({sx:b,theme:o,nested:!0}):y=Hp(y,S)}else y=Hp(y,e(g,b,o,i))}),!a&&o.modularCssLayers?{"@layer sx":XI(o,JI(h,y))}:XI(o,JI(h,y))}return Array.isArray(r)?r.map(l):l(r)}return t}const bd=Vte();bd.filterProps=["sx"];const qte=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??om;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function Wte(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=qte(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...i)=>{const l=t(...i);return gi(l)?{...r,...l}:r}:a={...r,...t},{...o,sx:a}}function Yte(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function o_(e,t=0,n=1){return Yte(e,t,n)}function Qte(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function _l(e){if(e.type)return e;if(e.charAt(0)==="#")return _l(Qte(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(fs(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(fs(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}const Kte=e=>{const t=_l(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},kp=(e,t)=>{try{return Kte(e)}catch{return e}};function Lb(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,a)=>a<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function mL(e){e=_l(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=(d,p=(d+n/30)%12)=>o-a*Math.max(Math.min(p-3,9-p,1),-1);let l="rgb";const u=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(l+="a",u.push(t[3])),Lb({type:l,values:u})}function HS(e){e=_l(e);let t=e.type==="hsl"||e.type==="hsla"?_l(mL(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Xte(e,t){const n=HS(e),r=HS(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function u0(e,t){return e=_l(e),t=o_(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Lb(e)}function Zl(e,t,n){try{return u0(e,t)}catch{return e}}function Mb(e,t){if(e=_l(e),t=o_(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Lb(e)}function _n(e,t,n){try{return Mb(e,t)}catch{return e}}function Fb(e,t){if(e=_l(e),t=o_(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Lb(e)}function An(e,t,n){try{return Fb(e,t)}catch{return e}}function $S(e,t=.15){return HS(e)>.5?Mb(e,t):Fb(e,t)}function Gg(e,t,n){try{return $S(e,t)}catch{return e}}const _h={black:"#000",white:"#fff"},Zte={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Ou={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Nu={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},sp={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Pu={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Lu={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Mu={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function gL(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:_h.white,default:_h.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const yL=gL();function bL(){return{text:{primary:_h.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:_h.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const GS=bL();function tO(e,t,n,r){const o=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Fb(e.main,o):t==="dark"&&(e.dark=Mb(e.main,a)))}function nO(e,t,n,r,o){const a=o.light||o,i=o.dark||o*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(a*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(i*100).toFixed(0)}%)`))}function Jte(e="light"){return e==="dark"?{main:Pu[200],light:Pu[50],dark:Pu[400]}:{main:Pu[700],light:Pu[400],dark:Pu[800]}}function ene(e="light"){return e==="dark"?{main:Ou[200],light:Ou[50],dark:Ou[400]}:{main:Ou[500],light:Ou[300],dark:Ou[700]}}function tne(e="light"){return e==="dark"?{main:Nu[500],light:Nu[300],dark:Nu[700]}:{main:Nu[700],light:Nu[400],dark:Nu[800]}}function nne(e="light"){return e==="dark"?{main:Lu[400],light:Lu[300],dark:Lu[700]}:{main:Lu[700],light:Lu[500],dark:Lu[900]}}function rne(e="light"){return e==="dark"?{main:Mu[400],light:Mu[300],dark:Mu[700]}:{main:Mu[800],light:Mu[500],dark:Mu[900]}}function one(e="light"){return e==="dark"?{main:sp[400],light:sp[300],dark:sp[700]}:{main:"#ed6c02",light:sp[500],dark:sp[900]}}function ane(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function a_(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...a}=e,i=e.primary||Jte(t),l=e.secondary||ene(t),u=e.error||tne(t),d=e.info||nne(t),p=e.success||rne(t),h=e.warning||one(t);function y(S){return o?ane(S):Xte(S,GS.text.primary)>=n?GS.text.primary:yL.text.primary}const g=({color:S,name:T,mainShade:E=500,lightShade:A=300,darkShade:C=700})=>{if(S={...S},!S.main&&S[E]&&(S.main=S[E]),!S.hasOwnProperty("main"))throw new Error(fs(11,T?` (${T})`:"",E));if(typeof S.main!="string")throw new Error(fs(12,T?` (${T})`:"",JSON.stringify(S.main)));return o?(nO(o,S,"light",A,r),nO(o,S,"dark",C,r)):(tO(S,"light",A,r),tO(S,"dark",C,r)),S.contrastText||(S.contrastText=y(S.main)),S};let b;return t==="light"?b=gL():t==="dark"&&(b=bL()),Zr({common:{..._h},mode:t,primary:g({color:i,name:"primary"}),secondary:g({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:u,name:"error"}),warning:g({color:h,name:"warning"}),info:g({color:d,name:"info"}),success:g({color:p,name:"success"}),grey:Zte,contrastThreshold:n,getContrastText:y,augmentColor:g,tonalOffset:r,...b},a)}function ine(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var sne={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function lne(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var cne=/[A-Z]|^ms/g,une=/_EMO_([^_]+?)_([^]*?)_EMO_/g,vL=function(e){return e.charCodeAt(1)===45},rO=function(e){return e!=null&&typeof e!="boolean"},ox=lne(function(e){return vL(e)?e:e.replace(cne,"-$&").toLowerCase()}),oO=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(une,function(n,r,o){return dl={name:r,styles:o,next:dl},r})}return sne[e]!==1&&!vL(e)&&typeof t=="number"&&t!==0?t+"px":t};function d0(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return dl={name:o.name,styles:o.styles,next:dl},o.name;var a=n;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)dl={name:i.name,styles:i.styles,next:dl},i=i.next;var l=a.styles+";";return l}return dne(e,t,n)}}var u=n;return u}function dne(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=d0(e,t,n[o])+";";else for(var a in n){var i=n[a];if(typeof i!="object"){var l=i;rO(l)&&(r+=ox(a)+":"+oO(a,l)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&t==null)for(var u=0;u<i.length;u++)rO(i[u])&&(r+=ox(a)+":"+oO(a,i[u])+";");else{var d=d0(e,t,i);switch(a){case"animation":case"animationName":{r+=ox(a)+":"+d+";";break}default:r+=a+"{"+d+"}"}}}return r}var aO=/label:\s*([^\s;{]+)\s*(;|$)/g,dl;function fne(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";dl=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,o+=d0(n,t,a);else{var i=a;o+=i[0]}for(var l=1;l<e.length;l++)if(o+=d0(n,t,e[l]),r){var u=a;o+=u[l]}aO.lastIndex=0;for(var d="",p;(p=aO.exec(o))!==null;)d+="-"+p[1];var h=ine(o)+d;return{name:h,styles:o,next:dl}}function pne(e,t){return Vy(e,t)}function hne(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const iO=[];function xc(e){return iO[0]=e,fne(iO)}const Al=typeof window<"u"?_.useLayoutEffect:_.useEffect;function mne(e){return Object.keys(e).length===0}function gne(e=null){const t=_.useContext(kd);return!t||mne(t)?e:t}const yne=_.createContext(),EL=()=>_.useContext(yne)??!1;function Ah(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const a=o;if(a==="components"||a==="slots")r[a]={...e[a],...r[a]};else if(a==="componentsProps"||a==="slotProps"){const i=e[a],l=t[a];if(!l)r[a]=i||{};else if(!i)r[a]=l;else{r[a]={...l};for(const u in i)if(Object.prototype.hasOwnProperty.call(i,u)){const d=u;r[a][d]=Ah(i[d],l[d],n)}}}else a==="className"&&n&&t.className?r.className=xt(e?.className,t?.className):a==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[a]===void 0&&(r[a]=e[a])}return r}const bne=_.createContext(void 0);function vne(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Ah(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Ah(o,r,t.components.mergeClassNameAndStyle):r}function Ene({props:e,name:t}){const n=_.useContext(bne);return vne({props:e,name:t,theme:{components:n}})}let sO=0;function xne(e){const[t,n]=_.useState(e),r=e||t;return _.useEffect(()=>{t==null&&(sO+=1,n(`mui-${sO}`))},[t]),r}const Sne={...By},lO=Sne.useId;function am(e){if(lO!==void 0){const t=lO();return e??t}return xne(e)}const Tne=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function Cne(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,a=Tne(t),i=Object.keys(a);function l(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n})`}function u(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-r/100}${n})`}function d(y,g){const b=i.indexOf(g);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n}) and (max-width:${(b!==-1&&typeof t[i[b]]=="number"?t[i[b]]:g)-r/100}${n})`}function p(y){return i.indexOf(y)+1<i.length?d(y,i[i.indexOf(y)+1]):l(y)}function h(y){const g=i.indexOf(y);return g===0?l(i[1]):g===i.length-1?u(i[g]):d(y,i[i.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:i,values:a,up:l,down:u,between:d,only:p,not:h,unit:n,...o}}const _ne={borderRadius:4};function Ane(e=8,t=n_({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function kne(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function i_(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={},...i}=e,l=Cne(n),u=Ane(o);let d=Zr({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:u,shape:{..._ne,...a}},i);return d=ote(d),d.applyStyles=kne,d=t.reduce((p,h)=>Zr(p,h),d),d.unstable_sxConfig={...om,...i?.unstable_sxConfig},d.unstable_sx=function(p){return bd({sx:p,theme:this})},d}const wne=i_();function Rne(e=wne){return gne(e)}const cO=(e,t,n,r=[])=>{let o=e;t.forEach((a,i)=>{i===t.length-1?Array.isArray(o)?o[Number(a)]=n:o&&typeof o=="object"&&(o[a]=n):o&&typeof o=="object"&&(o[a]||(o[a]=r.includes(a)?[]:{}),o=o[a])})},Dne=(e,t,n)=>{function r(o,a=[],i=[]){Object.entries(o).forEach(([l,u])=>{(!n||n&&!n([...a,l]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?r(u,[...a,l],Array.isArray(u)?[...i,l]:i):t([...a,l],u,i))})}r(e)},Ine=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function ax(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},i={};return Dne(e,(l,u,d)=>{if((typeof u=="string"||typeof u=="number")&&(!r||!r(l,u))){const p=`--${n?`${n}-`:""}${l.join("-")}`,h=Ine(l,u);Object.assign(o,{[p]:h}),cO(a,l,`var(${p})`,d),cO(i,l,`var(${p}, ${h})`,d)}},l=>l[0]==="vars"),{css:o,vars:a,varsWithDefaults:i}}function One(e,t={}){const{getSelector:n=E,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:a}=t,{colorSchemes:i={},components:l,defaultColorScheme:u="light",...d}=e,{vars:p,css:h,varsWithDefaults:y}=ax(d,t);let g=y;const b={},{[u]:S,...T}=i;if(Object.entries(T||{}).forEach(([A,C])=>{const{vars:D,css:I,varsWithDefaults:O}=ax(C,t);g=Zr(g,O),b[A]={css:I,vars:D}}),S){const{css:A,vars:C,varsWithDefaults:D}=ax(S,t);g=Zr(g,D),b[u]={css:A,vars:C}}function E(A,C){let D=o;if(o==="class"&&(D=".%s"),o==="data"&&(D="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(D=`[${o}="%s"]`),A){if(D==="media")return e.defaultColorScheme===A?":root":{[`@media (prefers-color-scheme: ${i[A]?.palette?.mode||A})`]:{":root":C}};if(D)return e.defaultColorScheme===A?`:root, ${D.replace("%s",String(A))}`:D.replace("%s",String(A))}return":root"}return{vars:g,generateThemeVars:()=>{let A={...p};return Object.entries(b).forEach(([,{vars:C}])=>{A=Zr(A,C)}),A},generateStyleSheets:()=>{const A=[],C=e.defaultColorScheme||"light";function D(j,$){Object.keys($).length&&A.push(typeof j=="string"?{[j]:{...$}}:j)}D(n(void 0,{...h}),h);const{[C]:I,...O}=b;if(I){const{css:j}=I,$=i[C]?.palette?.mode,z=!r&&$?{colorScheme:$,...j}:{...j};D(n(C,{...z}),z)}return Object.entries(O).forEach(([j,{css:$}])=>{const z=i[j]?.palette?.mode,L=!r&&z?{colorScheme:z,...$}:{...$};D(n(j,{...L}),L)}),a&&A.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),A}}}function Nne(e){const t={};return Object.entries(e).forEach(n=>{const[r,o]=n;typeof o=="object"&&(t[r]=`${o.fontStyle?`${o.fontStyle} `:""}${o.fontVariant?`${o.fontVariant} `:""}${o.fontWeight?`${o.fontWeight} `:""}${o.fontStretch?`${o.fontStretch} `:""}${o.fontSize||""}${o.lineHeight?`/${o.lineHeight} `:""}${o.fontFamily||""}`)}),t}function Pne(e){return function(t){return e==="media"?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:e==="class"?`.${t} &`:e==="data"?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}const Lne={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Zt(e,t,n="Mui"){const r=Lne[t];return r?`${n}-${r}`:`${Qee.generate(e)}-${t}`}function Mne(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Fne(e){return Math.round(e*1e5)/1e5}const uO={textTransform:"uppercase"},dO='"Roboto", "Helvetica", "Arial", sans-serif';function jne(e,t){const{fontFamily:n=dO,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:i=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:d,pxToRem:p,...h}=typeof t=="function"?t(e):t,y=r/14,g=p||(T=>`${T/u*y}rem`),b=(T,E,A,C,D)=>({fontFamily:n,fontWeight:T,fontSize:g(E),lineHeight:A,...n===dO?{letterSpacing:`${Fne(C/E)}em`}:{},...D,...d}),S={h1:b(o,96,1.167,-1.5),h2:b(o,60,1.2,-.5),h3:b(a,48,1.167,0),h4:b(a,34,1.235,.25),h5:b(a,24,1.334,0),h6:b(i,20,1.6,.15),subtitle1:b(a,16,1.75,.15),subtitle2:b(i,14,1.57,.1),body1:b(a,16,1.5,.15),body2:b(a,14,1.43,.15),button:b(i,14,1.75,.4,uO),caption:b(a,12,1.66,.4),overline:b(a,12,2.66,1,uO),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Zr({htmlFontSize:u,pxToRem:g,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:i,fontWeightBold:l,...S},h,{clone:!1})}const Bne=.2,Une=.14,zne=.12;function Qn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Bne})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Une})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${zne})`].join(",")}const Hne=["none",Qn(0,2,1,-1,0,1,1,0,0,1,3,0),Qn(0,3,1,-2,0,2,2,0,0,1,5,0),Qn(0,3,3,-2,0,3,4,0,0,1,8,0),Qn(0,2,4,-1,0,4,5,0,0,1,10,0),Qn(0,3,5,-1,0,5,8,0,0,1,14,0),Qn(0,3,5,-1,0,6,10,0,0,1,18,0),Qn(0,4,5,-2,0,7,10,1,0,2,16,1),Qn(0,5,5,-3,0,8,10,1,0,3,14,2),Qn(0,5,6,-3,0,9,12,1,0,3,16,2),Qn(0,6,6,-3,0,10,14,1,0,4,18,3),Qn(0,6,7,-4,0,11,15,1,0,4,20,3),Qn(0,7,8,-4,0,12,17,2,0,5,22,4),Qn(0,7,8,-4,0,13,19,2,0,5,24,4),Qn(0,7,9,-4,0,14,21,2,0,5,26,4),Qn(0,8,9,-5,0,15,22,2,0,6,28,5),Qn(0,8,10,-5,0,16,24,2,0,6,30,5),Qn(0,8,11,-5,0,17,26,2,0,6,32,5),Qn(0,9,11,-5,0,18,28,2,0,7,34,6),Qn(0,9,12,-6,0,19,29,2,0,7,36,6),Qn(0,10,13,-6,0,20,31,3,0,8,38,7),Qn(0,10,13,-6,0,21,33,3,0,8,40,7),Qn(0,10,14,-6,0,22,35,3,0,8,42,7),Qn(0,11,14,-7,0,23,36,3,0,9,44,8),Qn(0,11,15,-7,0,24,38,3,0,9,46,8)],$ne={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},xL={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function fO(e){return`${Math.round(e)}ms`}function Gne(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Vne(e){const t={...$ne,...e.easing},n={...xL,...e.duration};return{getAutoHeightDuration:Gne,create:(r=["all"],o={})=>{const{duration:a=n.standard,easing:i=t.easeInOut,delay:l=0,...u}=o;return(Array.isArray(r)?r:[r]).map(d=>`${d} ${typeof a=="string"?a:fO(a)} ${i} ${typeof l=="string"?l:fO(l)}`).join(",")},...e,easing:t,duration:n}}const qne={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Wne(e){return gi(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function SL(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let a=0;a<o.length;a++){const[i,l]=o[a];!Wne(l)||i.startsWith("unstable_")?delete r[i]:gi(l)&&(r[i]={...l},n(r[i]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
242
|
-
|
|
243
|
-
const theme = ${JSON.stringify(t,null,2)};
|
|
244
|
-
|
|
245
|
-
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
246
|
-
theme.transitions = createTransitions(theme.transitions || {});
|
|
247
|
-
|
|
248
|
-
export default theme;`}function pO(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Yne=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function Qne(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:u0(t,Yne(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${pO(n)})`:Fb(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${pO(n)})`:Mb(t,n)}})}function VS(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:a={},transitions:i={},typography:l={},shape:u,colorSpace:d,...p}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(fs(20));const h=a_({...a,colorSpace:d}),y=i_(e);let g=Zr(y,{mixins:Mne(y.breakpoints,r),palette:h,shadows:Hne.slice(),typography:jne(h,l),transitions:Vne(i),zIndex:{...qne}});return g=Zr(g,p),g=t.reduce((b,S)=>Zr(b,S),g),g.unstable_sxConfig={...om,...p?.unstable_sxConfig},g.unstable_sx=function(b){return bd({sx:b,theme:this})},g.toRuntimeSource=SL,Qne(g),g}function qS(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const Kne=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=qS(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function TL(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function CL(e){return e==="dark"?Kne:[]}function Xne(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...a}=e,i=a_({...t,colorSpace:o});return{palette:i,opacity:{...TL(i.mode),...n},overlays:r||CL(i.mode),...a}}function Zne(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const Jne=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],ere=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let a=o;if(o==="class"&&(a=".%s"),o==="data"&&(a="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const i={};return Jne(e.cssVarPrefix).forEach(l=>{i[l]=n[l],delete n[l]}),a==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:a?{[a.replace("%s",t)]:i,[`${r}, ${a.replace("%s",t)}`]:n}:{[r]:{...n,...i}}}if(a&&a!=="media")return`${r}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace("%s",String(t))}return r};function tre(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function ke(e,t,n){!e[t]&&n&&(e[t]=n)}function wp(e){return typeof e!="string"||!e.startsWith("hsl")?e:mL(e)}function Ji(e,t){`${t}Channel`in e||(e[`${t}Channel`]=kp(wp(e[t])))}function nre(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const ai=e=>{try{return e()}catch{}},rre=(e="mui")=>Q5(e);function ix(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const a=o==="dark"?"dark":"light";if(!r){t[o]=Xne({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}const{palette:i,...l}=VS({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[o]={...n,palette:i,opacity:{...TL(a),...n?.opacity},overlays:n?.overlays||CL(a)},l}function ore(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",nativeColor:i=!1,shouldSkipGeneratingVar:l=Zne,colorSchemeSelector:u=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...p}=e,h=Object.keys(n)[0],y=r||(n.light&&h!=="light"?"light":h),g=rre(a),{[y]:b,light:S,dark:T,...E}=n,A={...E};let C=b;if((y==="dark"&&!("dark"in n)||y==="light"&&!("light"in n))&&(C=!0),!C)throw new Error(fs(21,y));let D;i&&(D="oklch");const I=ix(D,A,C,p,y);S&&!A.light&&ix(D,A,S,void 0,"light"),T&&!A.dark&&ix(D,A,T,void 0,"dark");let O={defaultColorScheme:y,...I,cssVarPrefix:a,colorSchemeSelector:u,rootSelector:d,getCssVar:g,colorSchemes:A,font:{...Nne(I.typography),...I.font},spacing:nre(p.spacing)};Object.keys(O.colorSchemes).forEach(H=>{const k=O.colorSchemes[H].palette,F=G=>{const U=G.split("-"),Q=U[1],Y=U[2];return g(G,k[Q][Y])};k.mode==="light"&&(ke(k.common,"background","#fff"),ke(k.common,"onBackground","#000")),k.mode==="dark"&&(ke(k.common,"background","#000"),ke(k.common,"onBackground","#fff"));function B(G,U,Q){if(D){let Y;return G===Zl&&(Y=`transparent ${((1-Q)*100).toFixed(0)}%`),G===_n&&(Y=`#000 ${(Q*100).toFixed(0)}%`),G===An&&(Y=`#fff ${(Q*100).toFixed(0)}%`),`color-mix(in ${D}, ${U}, ${Y})`}return G(U,Q)}if(tre(k,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),k.mode==="light"){ke(k.Alert,"errorColor",B(_n,k.error.light,.6)),ke(k.Alert,"infoColor",B(_n,k.info.light,.6)),ke(k.Alert,"successColor",B(_n,k.success.light,.6)),ke(k.Alert,"warningColor",B(_n,k.warning.light,.6)),ke(k.Alert,"errorFilledBg",F("palette-error-main")),ke(k.Alert,"infoFilledBg",F("palette-info-main")),ke(k.Alert,"successFilledBg",F("palette-success-main")),ke(k.Alert,"warningFilledBg",F("palette-warning-main")),ke(k.Alert,"errorFilledColor",ai(()=>k.getContrastText(k.error.main))),ke(k.Alert,"infoFilledColor",ai(()=>k.getContrastText(k.info.main))),ke(k.Alert,"successFilledColor",ai(()=>k.getContrastText(k.success.main))),ke(k.Alert,"warningFilledColor",ai(()=>k.getContrastText(k.warning.main))),ke(k.Alert,"errorStandardBg",B(An,k.error.light,.9)),ke(k.Alert,"infoStandardBg",B(An,k.info.light,.9)),ke(k.Alert,"successStandardBg",B(An,k.success.light,.9)),ke(k.Alert,"warningStandardBg",B(An,k.warning.light,.9)),ke(k.Alert,"errorIconColor",F("palette-error-main")),ke(k.Alert,"infoIconColor",F("palette-info-main")),ke(k.Alert,"successIconColor",F("palette-success-main")),ke(k.Alert,"warningIconColor",F("palette-warning-main")),ke(k.AppBar,"defaultBg",F("palette-grey-100")),ke(k.Avatar,"defaultBg",F("palette-grey-400")),ke(k.Button,"inheritContainedBg",F("palette-grey-300")),ke(k.Button,"inheritContainedHoverBg",F("palette-grey-A100")),ke(k.Chip,"defaultBorder",F("palette-grey-400")),ke(k.Chip,"defaultAvatarColor",F("palette-grey-700")),ke(k.Chip,"defaultIconColor",F("palette-grey-700")),ke(k.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ke(k.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ke(k.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ke(k.LinearProgress,"primaryBg",B(An,k.primary.main,.62)),ke(k.LinearProgress,"secondaryBg",B(An,k.secondary.main,.62)),ke(k.LinearProgress,"errorBg",B(An,k.error.main,.62)),ke(k.LinearProgress,"infoBg",B(An,k.info.main,.62)),ke(k.LinearProgress,"successBg",B(An,k.success.main,.62)),ke(k.LinearProgress,"warningBg",B(An,k.warning.main,.62)),ke(k.Skeleton,"bg",D?B(Zl,k.text.primary,.11):`rgba(${F("palette-text-primaryChannel")} / 0.11)`),ke(k.Slider,"primaryTrack",B(An,k.primary.main,.62)),ke(k.Slider,"secondaryTrack",B(An,k.secondary.main,.62)),ke(k.Slider,"errorTrack",B(An,k.error.main,.62)),ke(k.Slider,"infoTrack",B(An,k.info.main,.62)),ke(k.Slider,"successTrack",B(An,k.success.main,.62)),ke(k.Slider,"warningTrack",B(An,k.warning.main,.62));const G=D?B(_n,k.background.default,.6825):Gg(k.background.default,.8);ke(k.SnackbarContent,"bg",G),ke(k.SnackbarContent,"color",ai(()=>D?GS.text.primary:k.getContrastText(G))),ke(k.SpeedDialAction,"fabHoverBg",Gg(k.background.paper,.15)),ke(k.StepConnector,"border",F("palette-grey-400")),ke(k.StepContent,"border",F("palette-grey-400")),ke(k.Switch,"defaultColor",F("palette-common-white")),ke(k.Switch,"defaultDisabledColor",F("palette-grey-100")),ke(k.Switch,"primaryDisabledColor",B(An,k.primary.main,.62)),ke(k.Switch,"secondaryDisabledColor",B(An,k.secondary.main,.62)),ke(k.Switch,"errorDisabledColor",B(An,k.error.main,.62)),ke(k.Switch,"infoDisabledColor",B(An,k.info.main,.62)),ke(k.Switch,"successDisabledColor",B(An,k.success.main,.62)),ke(k.Switch,"warningDisabledColor",B(An,k.warning.main,.62)),ke(k.TableCell,"border",B(An,B(Zl,k.divider,1),.88)),ke(k.Tooltip,"bg",B(Zl,k.grey[700],.92))}if(k.mode==="dark"){ke(k.Alert,"errorColor",B(An,k.error.light,.6)),ke(k.Alert,"infoColor",B(An,k.info.light,.6)),ke(k.Alert,"successColor",B(An,k.success.light,.6)),ke(k.Alert,"warningColor",B(An,k.warning.light,.6)),ke(k.Alert,"errorFilledBg",F("palette-error-dark")),ke(k.Alert,"infoFilledBg",F("palette-info-dark")),ke(k.Alert,"successFilledBg",F("palette-success-dark")),ke(k.Alert,"warningFilledBg",F("palette-warning-dark")),ke(k.Alert,"errorFilledColor",ai(()=>k.getContrastText(k.error.dark))),ke(k.Alert,"infoFilledColor",ai(()=>k.getContrastText(k.info.dark))),ke(k.Alert,"successFilledColor",ai(()=>k.getContrastText(k.success.dark))),ke(k.Alert,"warningFilledColor",ai(()=>k.getContrastText(k.warning.dark))),ke(k.Alert,"errorStandardBg",B(_n,k.error.light,.9)),ke(k.Alert,"infoStandardBg",B(_n,k.info.light,.9)),ke(k.Alert,"successStandardBg",B(_n,k.success.light,.9)),ke(k.Alert,"warningStandardBg",B(_n,k.warning.light,.9)),ke(k.Alert,"errorIconColor",F("palette-error-main")),ke(k.Alert,"infoIconColor",F("palette-info-main")),ke(k.Alert,"successIconColor",F("palette-success-main")),ke(k.Alert,"warningIconColor",F("palette-warning-main")),ke(k.AppBar,"defaultBg",F("palette-grey-900")),ke(k.AppBar,"darkBg",F("palette-background-paper")),ke(k.AppBar,"darkColor",F("palette-text-primary")),ke(k.Avatar,"defaultBg",F("palette-grey-600")),ke(k.Button,"inheritContainedBg",F("palette-grey-800")),ke(k.Button,"inheritContainedHoverBg",F("palette-grey-700")),ke(k.Chip,"defaultBorder",F("palette-grey-700")),ke(k.Chip,"defaultAvatarColor",F("palette-grey-300")),ke(k.Chip,"defaultIconColor",F("palette-grey-300")),ke(k.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ke(k.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ke(k.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ke(k.LinearProgress,"primaryBg",B(_n,k.primary.main,.5)),ke(k.LinearProgress,"secondaryBg",B(_n,k.secondary.main,.5)),ke(k.LinearProgress,"errorBg",B(_n,k.error.main,.5)),ke(k.LinearProgress,"infoBg",B(_n,k.info.main,.5)),ke(k.LinearProgress,"successBg",B(_n,k.success.main,.5)),ke(k.LinearProgress,"warningBg",B(_n,k.warning.main,.5)),ke(k.Skeleton,"bg",D?B(Zl,k.text.primary,.13):`rgba(${F("palette-text-primaryChannel")} / 0.13)`),ke(k.Slider,"primaryTrack",B(_n,k.primary.main,.5)),ke(k.Slider,"secondaryTrack",B(_n,k.secondary.main,.5)),ke(k.Slider,"errorTrack",B(_n,k.error.main,.5)),ke(k.Slider,"infoTrack",B(_n,k.info.main,.5)),ke(k.Slider,"successTrack",B(_n,k.success.main,.5)),ke(k.Slider,"warningTrack",B(_n,k.warning.main,.5));const G=D?B(An,k.background.default,.985):Gg(k.background.default,.98);ke(k.SnackbarContent,"bg",G),ke(k.SnackbarContent,"color",ai(()=>D?yL.text.primary:k.getContrastText(G))),ke(k.SpeedDialAction,"fabHoverBg",Gg(k.background.paper,.15)),ke(k.StepConnector,"border",F("palette-grey-600")),ke(k.StepContent,"border",F("palette-grey-600")),ke(k.Switch,"defaultColor",F("palette-grey-300")),ke(k.Switch,"defaultDisabledColor",F("palette-grey-600")),ke(k.Switch,"primaryDisabledColor",B(_n,k.primary.main,.55)),ke(k.Switch,"secondaryDisabledColor",B(_n,k.secondary.main,.55)),ke(k.Switch,"errorDisabledColor",B(_n,k.error.main,.55)),ke(k.Switch,"infoDisabledColor",B(_n,k.info.main,.55)),ke(k.Switch,"successDisabledColor",B(_n,k.success.main,.55)),ke(k.Switch,"warningDisabledColor",B(_n,k.warning.main,.55)),ke(k.TableCell,"border",B(_n,B(Zl,k.divider,1),.68)),ke(k.Tooltip,"bg",B(Zl,k.grey[700],.92))}Ji(k.background,"default"),Ji(k.background,"paper"),Ji(k.common,"background"),Ji(k.common,"onBackground"),Ji(k,"divider"),Object.keys(k).forEach(G=>{const U=k[G];G!=="tonalOffset"&&U&&typeof U=="object"&&(U.main&&ke(k[G],"mainChannel",kp(wp(U.main))),U.light&&ke(k[G],"lightChannel",kp(wp(U.light))),U.dark&&ke(k[G],"darkChannel",kp(wp(U.dark))),U.contrastText&&ke(k[G],"contrastTextChannel",kp(wp(U.contrastText))),G==="text"&&(Ji(k[G],"primary"),Ji(k[G],"secondary")),G==="action"&&(U.active&&Ji(k[G],"active"),U.selected&&Ji(k[G],"selected")))})}),O=t.reduce((H,k)=>Zr(H,k),O);const j={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:l,getSelector:ere(O),enableContrastVars:i},{vars:$,generateThemeVars:z,generateStyleSheets:L}=One(O,j);return O.vars=$,Object.entries(O.colorSchemes[O.defaultColorScheme]).forEach(([H,k])=>{O[H]=k}),O.generateThemeVars=z,O.generateStyleSheets=L,O.generateSpacing=function(){return tC(p.spacing,n_(this))},O.getColorSchemeSelector=Pne(u),O.spacing=O.generateSpacing(),O.shouldSkipGeneratingVar=l,O.unstable_sxConfig={...om,...p?.unstable_sxConfig},O.unstable_sx=function(H){return bd({sx:H,theme:this})},O.toRuntimeSource=SL,O}function hO(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:a_({...n===!0?{}:n.palette,mode:t})})}function are(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...i}=e,l=a||"light",u=o?.[l],d={...o,...n?{[l]:{...typeof u!="boolean"&&u,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return VS(e,...t);let p=n;"palette"in e||d[l]&&(d[l]!==!0?p=d[l].palette:l==="dark"&&(p={mode:"dark"}));const h=VS({...e,palette:p},...t);return h.defaultColorScheme=l,h.colorSchemes=d,h.palette.mode==="light"&&(h.colorSchemes.light={...d.light!==!0&&d.light,palette:h.palette},hO(h,"dark",d.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:h.palette},hO(h,"light",d.light)),h}return!n&&!("light"in d)&&l==="light"&&(d.light=!0),ore({...i,colorSchemes:d,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}const jb=are(),Bb="$$material";function Md(){const e=Rd(jb);return e[Bb]||e}function ire(e){return v.jsx(oC,{...e,defaultTheme:jb,themeId:Bb})}function sre(e){const{variants:t,...n}=e,r={variants:t,style:xc(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=xc(o.style))}),r}const lre=i_();function yl(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function hc(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function cre(e){return e?(t,n)=>n[e]:null}function ure(e,t,n){e.theme=fre(e.theme)?n:e.theme[t]||e.theme}function Ay(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>Ay(e,o,n));if(Array.isArray(r?.variants)){let o;if(r.isProcessed)o=n?hc(r.style,n):r.style;else{const{variants:a,...i}=r;o=n?hc(xc(i),n):i}return _L(e,r.variants,[o],n)}return r?.isProcessed?n?hc(xc(r.style),n):r.style:n?hc(xc(r),n):r}function _L(e,t,n=[],r=void 0){let o;e:for(let a=0;a<t.length;a+=1){const i=t[a];if(typeof i.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!i.props(o))continue}else for(const l in i.props)if(e[l]!==i.props[l]&&e.ownerState?.[l]!==i.props[l])continue e;typeof i.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?hc(xc(i.style(o)),r):i.style(o))):n.push(r?hc(xc(i.style),r):i.style)}return n}function dre(e={}){const{themeId:t,defaultTheme:n=lre,rootShouldForwardProp:r=yl,slotShouldForwardProp:o=yl}=e;function a(i){ure(i,t,n)}return(i,l={})=>{hne(i,I=>I.filter(O=>O!==bd));const{name:u,slot:d,skipVariantsResolver:p,skipSx:h,overridesResolver:y=cre(hre(d)),...g}=l,b=u&&u.startsWith("Mui")||d?"components":"custom",S=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,T=h||!1;let E=yl;d==="Root"||d==="root"?E=r:d?E=o:pre(i)&&(E=void 0);const A=pne(i,{shouldForwardProp:E,label:void 0,...g}),C=I=>{if(I.__emotion_real===I)return I;if(typeof I=="function")return function(O){return Ay(O,I,O.theme.modularCssLayers?b:void 0)};if(gi(I)){const O=sre(I);return function(j){return O.variants?Ay(j,O,j.theme.modularCssLayers?b:void 0):j.theme.modularCssLayers?hc(O.style,b):O.style}}return I},D=(...I)=>{const O=[],j=I.map(C),$=[];if(O.push(a),u&&y&&$.push(function(H){const k=H.theme.components?.[u]?.styleOverrides;if(!k)return null;const F={};for(const B in k)F[B]=Ay(H,k[B],H.theme.modularCssLayers?"theme":void 0);return y(H,F)}),u&&!S&&$.push(function(H){const k=H.theme?.components?.[u]?.variants;return k?_L(H,k,[],H.theme.modularCssLayers?"theme":void 0):null}),T||$.push(bd),Array.isArray(j[0])){const H=j.shift(),k=new Array(O.length).fill(""),F=new Array($.length).fill("");let B;B=[...k,...H,...F],B.raw=[...k,...H.raw,...F],O.unshift(B)}const z=[...O,...j,...$],L=A(...z);return i.muiName&&(L.muiName=i.muiName),L};return A.withConfig&&(D.withConfig=A.withConfig),D}}function fre(e){for(const t in e)return!1;return!0}function pre(e){return typeof e=="string"&&e.charCodeAt(0)>96}function hre(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function AL(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Eo=e=>AL(e)&&e!=="classes",Qe=dre({themeId:Bb,defaultTheme:jb,rootShouldForwardProp:Eo});function mre(e){return function(t){return v.jsx(ire,{styles:typeof e=="function"?n=>e({theme:n,...t}):e})}}function gre(){return Wte}const wn=W5;function rn(e){return Ene(e)}function Ht(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Zt(e,o,n)}),r}function yre(e){return Zt("MuiSvgIcon",e)}Ht("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const bre=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ut(t)}`,`fontSize${ut(n)}`]};return Xt(o,yre,r)},vre=Qe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ut(n.color)}`],t[`fontSize${ut(n.fontSize)}`]]}})(wn(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),WS=_.forwardRef(function(e,t){const n=rn({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:a="inherit",component:i="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:p,viewBox:h="0 0 24 24",...y}=n,g=_.isValidElement(r)&&r.type==="svg",b={...n,color:a,component:i,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:g},S={};d||(S.viewBox=h);const T=bre(b);return v.jsxs(vre,{as:i,className:xt(T.root,o),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:t,...S,...y,...g&&r.props,ownerState:b,children:[g?r.props.children:r,p?v.jsx("title",{children:p}):null]})});WS.muiName="SvgIcon";function Mn(e,t){function n(r,o){return v.jsx(WS,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=WS.muiName,_.memo(_.forwardRef(n))}function kL(e,t=166){let n;function r(...o){const a=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function sx(e,t){return _.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function yo(e){return e&&e.ownerDocument||document}function hs(e){return yo(e).defaultView||window}function mO(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function YS(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:a}=_.useRef(t!==void 0),[i,l]=_.useState(n),u=a?t:i,d=_.useCallback(p=>{a||l(p)},[]);return[u,d]}function Jr(e){const t=_.useRef(e);return Al(()=>{t.current=e}),_.useRef((...n)=>(0,t.current)(...n)).current}function ur(...e){const t=_.useRef(void 0),n=_.useCallback(r=>{const o=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const i=a,l=i(r);return typeof l=="function"?l:()=>{i(null)}}return a.current=r,()=>{a.current=null}});return()=>{o.forEach(a=>a?.())}},e);return _.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function Ere(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function wL(e,t){if(!e)return t;function n(i,l){const u={};return Object.keys(l).forEach(d=>{Ere(d,l[d])&&typeof i[d]=="function"&&(u[d]=(...p)=>{i[d](...p),l[d](...p)})}),u}if(typeof e=="function"||typeof t=="function")return i=>{const l=typeof t=="function"?t(i):t,u=typeof e=="function"?e({...i,...l}):e,d=xt(i?.className,l?.className,u?.className),p=n(u,l);return{...l,...u,...p,...!!d&&{className:d},...l?.style&&u?.style&&{style:{...l.style,...u.style}},...l?.sx&&u?.sx&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const r=t,o=n(e,r),a=xt(r?.className,e?.className);return{...t,...e,...o,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const vd=Mn(v.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"})),RL=Mn(v.jsx("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92"}));function eo({text:e,size:t=20,color:n="primary",thickness:r=3.6,centered:o=!0,spacing:a=2,textVariant:i="body2"}){const l=v.jsxs(gt,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:a},children:[v.jsx(bC,{size:t,color:n,thickness:r}),e&&v.jsx(Ze,{variant:i,color:"text.secondary",children:e})]});return o?v.jsx(gt,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px",width:"100%"},children:l}):l}function xre(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Ah(t.components[n].defaultProps,r)}function Sre({props:e,name:t,defaultTheme:n,themeId:r}){let o=Rne(n);return o=o[r]||o,xre({theme:o,name:t,props:e})}function Tre({props:e,name:t}){return Sre({props:e,name:t,defaultTheme:jb,themeId:Bb})}const Vn=e=>{const t=new URL(e),n={};if(t.protocol!=="publisher:")throw new Error(`Failed to parse resource URI: ${e}`);const r=(t.hostname+t.pathname).split("/");for(let o=0;o<r.length;o+=2){const a=r[o];a==="projects"?n.projectName=decodeURI(r[o+1])||void 0:a==="packages"?n.packageName=decodeURI(r[o+1])||void 0:a==="connections"?n.connectionName=decodeURI(r[o+1])||void 0:a==="models"&&(n.modelPath=decodeURI(r[o+1])||void 0)}if(n.versionId=t.searchParams.get("versionId")||void 0,!n.projectName)throw new Error(`Failed to parse resource URI: ${e}`);return n},s_=e=>{if(!e.projectName)throw new Error(`Failed to encode resource URI, missing project name: ${e}`);let t=`publisher://projects/${e.projectName}`;return e.packageName&&(t+=`/packages/${e.packageName}`),e.connectionName&&(t+=`/connections/${e.connectionName}`),e.modelPath&&(t+=`/models/${e.modelPath}`),e.packageName&&e.versionId&&(t+=`?versionId=${e.versionId}`),t},f0=Ue(ed)({display:"flex",flexDirection:"column",height:"100%",boxShadow:"none",border:"none",backgroundColor:"transparent"}),DL=Ue(td)({display:"flex",flexDirection:"column",padding:"0",flexGrow:1}),l_=Ue(Yq)({padding:"0"}),Cre=Ue("div")({backgroundColor:"#ffffff",padding:"0 32px 32px 32px",borderRadius:"12px",boxShadow:"none",border:"none",maxWidth:"1200px",margin:"0 auto"});Ue("div")({marginBottom:"40px",paddingBottom:"24px",borderBottom:"1px solid #f0f0f0"});const _re=Ue("div")({marginBottom:"48px",padding:"0",backgroundColor:"transparent",border:"none",boxShadow:"none"}),QS=Ue("div")({marginBottom:"0",padding:"0",backgroundColor:"transparent",border:"none",boxShadow:"none"}),KS=Ue("div")({backgroundColor:"#ffffff",padding:"24px",borderRadius:"8px",border:"1px solid #f0f0f0",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.04)",marginBottom:"0",transition:"box-shadow 0.2s ease-in-out","&:hover":{boxShadow:"0 2px 6px rgba(0, 0, 0, 0.08)"}});Ue("div")({backgroundColor:"#f8f9fa",padding:"16px",borderRadius:"8px",border:"1px solid #e9ecef",fontFamily:"'Monaco', 'Menlo', 'Ubuntu Mono', monospace",fontSize:"13px",lineHeight:"1.5",overflowX:"auto"});Ue("div")({backgroundColor:"#f8f9fa",padding:"12px 16px",borderRadius:"8px",border:"1px solid #e9ecef",marginBottom:"16px",display:"flex",justifyContent:"space-between",alignItems:"center"});const Are=Ue("div")({height:"100%"});Ue("div")({height:"30px",backgroundColor:"rgba(225, 240, 255, 1)",display:"flex",padding:"4px",alignItems:"center"});const IL=Ue("div")({height:"75vh",width:"100%",overflowY:"auto"});Ue("div")({position:"relative",height:"100%",flex:"0 0 auto"});const bs=Ue(ed)({backgroundColor:"#ffffff",padding:"24px",borderRadius:"8px",border:"1px solid #f0f0f0",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.04)",height:"100%",transition:"box-shadow 0.2s ease-in-out","&:hover":{boxShadow:"0 2px 6px rgba(0, 0, 0, 0.08)"}}),vs=Ue(td)({padding:"0","&:last-child":{paddingBottom:"0"}}),Ol=Ue("div")({fontSize:"12px",fontWeight:"600",color:"#666666",textTransform:"uppercase",letterSpacing:"0.5px",marginBottom:"16px",paddingBottom:"8px",borderBottom:"1px solid #f0f0f0"}),kre=Ue("div")({padding:"32px",maxWidth:"1400px",margin:"0 auto",minHeight:"100vh"});function no(e){const{server:t}=kn(),n={...e,queryKey:[...e.queryKey,t],queryFn:async()=>{try{return await e.queryFn()}catch(r){if(r&&typeof r=="object"&&"response"in r){const o=r;if(o.response?.data){const a=new Error(o.response.data.message||o.message);throw a.status=o.response.status,a.data=o.response.data,a}}throw r}},retry:!1,throwOnError:!1};return mK(n,LC)}function Ti(e){const t={...e,mutationFn:async n=>{try{return await e.mutationFn(n)}catch(r){if(r&&typeof r=="object"&&"response"in r){const o=r;if(o.response?.data){const a=new Error(o.response.data.message||o.message);throw a.status=o.response.status,a.data=o.response.data,a}}throw r}},retry:!1,throwOnError:!1};return gK(t,LC)}function OL({sourceAndPaths:e,selectedSourceIndex:t,existingQuery:n,onQueryChange:r,onSourceChange:o,resourceUri:a}){return Fe.useEffect(()=>{o&&o(t)},[t,o]),v.jsx(l_,{children:v.jsxs(g$,{spacing:2,component:"section",children:[v.jsx(Rre,{sourceAndPath:e[t],existingQuery:n,onChange:i=>{r&&r(i)},resourceUri:a}),v.jsx(sH,{height:"5px"})]})})}function ky(){return{query:void 0,malloyQuery:void 0,malloyResult:void 0}}function wre({sourceAndPath:e,onChange:t,existingQuery:n,explorerComponents:r,QueryBuilder:o,resourceUri:a}){const[i,l]=Fe.useState(n||ky()),[u,d]=Fe.useState(void 0);Fe.useEffect(()=>{n&&l(n)},[n]);const[p,h]=Fe.useState([]),{MalloyExplorerProvider:y,QueryPanel:g,ResizableCollapsiblePanel:b,ResultPanel:S,SourcePanel:T}=r;Fe.useEffect(()=>{t&&t(i)},[t,i]);const{projectName:E,packageName:A,versionId:C}=Vn(a),{apiClients:D}=kn(),I=Ti({mutationFn:()=>{const z=typeof i?.malloyQuery=="string"?i.malloyQuery:new o.ASTQuery({source:e.sourceInfo,query:i?.malloyQuery}).toMalloy();return d({executionState:"running",query:i?.malloyQuery,queryResolutionStartMillis:Date.now(),onCancel:I.reset,response:{result:{}}}),l({...i,query:z}),D.queryResults.executeQuery(E,A,e.modelPath,z,void 0,void 0,C)},onSuccess:z=>{if(z){const L=JSON.parse(z.data.result);l({...i,malloyResult:L}),d(H=>H?{...H,executionState:"finished",response:{result:L}}:void 0)}}}),[O,j]=Fe.useState(e.sourceInfo.name);Fe.useEffect(()=>{O!==e.sourceInfo.name&&(j(e.sourceInfo.name),l(ky()),d(void 0))},[e,O]);const $=Fe.useCallback(z=>{l({...i,malloyQuery:z,malloyResult:void 0})},[i]);return O!==e.sourceInfo.name?v.jsx("div",{children:"Loading..."}):v.jsx(IL,{sx:{border:"1px solid #e0e0e0",borderRadius:"8px",overflow:"hidden"},children:v.jsx(y,{source:e.sourceInfo,query:i?.malloyQuery,topValues:[],onFocusedNestViewPathChange:h,focusedNestViewPath:p,onQueryChange:$,children:v.jsxs("div",{style:{display:"flex",height:"100%",overflowY:"auto"},children:[v.jsx(b,{isInitiallyExpanded:!0,initialWidth:180,minWidth:180,icon:"database",title:e.sourceInfo.name,children:v.jsx(T,{onRefresh:()=>l(ky())})}),v.jsx(b,{isInitiallyExpanded:!0,initialWidth:280,minWidth:280,icon:"filterSliders",title:"Query",children:v.jsx(g,{runQuery:()=>{console.log(`running query with: ${i?.malloyQuery}`);try{I.mutate()}catch(z){console.error("Error running query:",z)}}})}),v.jsx(S,{source:e.sourceInfo,draftQuery:i?.malloyQuery,setDraftQuery:z=>l({...i,malloyQuery:z}),submittedQuery:u,options:{showRawQuery:!0}})]})})},e.sourceInfo.name)}function Rre(e){const[t,n]=_.useState(null),[r,o]=_.useState(null),[a,i]=_.useState(!0);return _.useEffect(()=>{let l=!0;return Promise.all([W(()=>import("./index-bIu6ohLf.js"),__vite__mapDeps([0,1,2])),W(()=>import("./index-BZ_1Ar9v.js").then(u=>u.i),[])]).then(([u,d])=>{l&&(n(u),o(d),i(!1))}).catch(u=>{console.error("Failed to load Malloy components:",u),l&&i(!1)}),()=>{l=!1}},[]),a||!t||!r?v.jsx(Are,{children:v.jsx(IL,{children:v.jsx("div",{style:{alignItems:"center",justifyContent:"center",height:"200px",color:"#666"},children:"Loading explorer..."})})}):v.jsx(wre,{...e,explorerComponents:t,QueryBuilder:r,resourceUri:e.resourceUri})}function NL(e,t=!0){const{modelPath:n,projectName:r,packageName:o,versionId:a}=Vn(e),{apiClients:i}=kn();return no({queryKey:["package",r,o,n,a],queryFn:async()=>(await i.models.getModel(r,o,n,a)).data,enabled:t})}const Dre=Qe(gt)(({theme:e})=>({display:"flex",flexWrap:"wrap",gap:e.spacing(1),borderBottom:"1px solid #f0f0f0",minHeight:48,paddingBottom:"8px"})),Ire=Qe(Fa)(({theme:e,selected:t})=>({minHeight:32,padding:e.spacing(.75,2),borderRadius:"6px",background:t?"#f8f9fa":"transparent",color:t?"#495057":"#666666",fontWeight:t?600:500,border:t?"1px solid #e9ecef":"1px solid transparent",boxShadow:"none",textTransform:"none",fontSize:"15px","&:hover":{background:t?"#f8f9fa":"#fafafa",border:t?"1px solid #e9ecef":"1px solid #f0f0f0"}}));function PL({data:e,onChange:t,existingQuery:n,initialSelectedSourceIndex:r=0,onSourceChange:o,resourceUri:a}){const[i,l]=Fe.useState(r);Fe.useEffect(()=>{l(r)},[r]);const{data:u,isError:d,isLoading:p,error:h}=NL(a,!e),{modelPath:y}=Vn(a),g=e||u;return p&&!e?v.jsx(eo,{text:"Fetching Model..."}):d&&!e?(console.log("error",h),v.jsx(to,{error:h,context:`ModelExplorer > ${y}`})):g?v.jsxs(f0,{variant:"outlined",children:[v.jsx(DL,{children:v.jsx(Mr,{sx:{flexDirection:"row",justifyContent:"space-between"},children:Array.isArray(g.sourceInfos)&&g.sourceInfos.length>0&&v.jsx(Dre,{children:g.sourceInfos.map((b,S)=>{let T;try{T=JSON.parse(b)}catch{T={name:String(S)}}return v.jsx(Ire,{selected:i===S,onClick:()=>{l(S),o&&o(S)},children:T.name||`Source ${S+1}`},T.name||S)})})})}),v.jsx(l_,{children:v.jsxs(Mr,{spacing:2,component:"section",children:[Array.isArray(g.sourceInfos)&&g.sourceInfos.length>0&&v.jsx(OL,{sourceAndPaths:g.sourceInfos.map(b=>({sourceInfo:JSON.parse(b),modelPath:y})),selectedSourceIndex:i,existingQuery:n,onQueryChange:t,resourceUri:a}),v.jsx(gt,{height:"5px"})]})})]}):v.jsx(eo,{text:"Loading..."})}const kl=Mn(v.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}));function LL({open:e,onClose:t,resourceUri:n,data:r,title:o="Data Sources",hasValidImport:a=!0,existingQuery:i,initialSelectedSourceIndex:l,onChange:u,onSourceChange:d}){return v.jsxs(xl,{open:e,onClose:t,maxWidth:!1,fullWidth:!0,sx:{"& .MuiDialog-paper":{width:"95vw",height:"95vh",maxWidth:"none"}},children:[v.jsxs(Tl,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[o,v.jsx(Gn,{onClick:t,sx:{color:"#666666"},children:v.jsx(kl,{})})]}),v.jsx(Sl,{children:a?v.jsx(PL,{resourceUri:n,data:r,existingQuery:i,initialSelectedSourceIndex:l,onChange:u,onSourceChange:d}):v.jsx("div",{children:"No valid import statement found in cell"})})]})}const ML=[{id:"abap",name:"ABAP",import:()=>W(()=>import("./abap-BmBUA35e.es-DsBKuouk.js"),[])},{id:"actionscript-3",name:"ActionScript",import:()=>W(()=>import("./actionscript-3-zFUbzQa9.es-D_z4Izcz.js"),[])},{id:"ada",name:"Ada",import:()=>W(()=>import("./ada-CBvPkFpZ.es-727ZlQH0.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>W(()=>import("./angular-html-D3aW1y6T.es-CRu3QO-y.js"),__vite__mapDeps([3,4,5,6])).then(e=>e.f)},{id:"angular-ts",name:"Angular TypeScript",import:()=>W(()=>import("./angular-ts-Jud40GrY.es-ZQeME4ih.js"),__vite__mapDeps([7,3,4,5,6,8]))},{id:"apache",name:"Apache Conf",import:()=>W(()=>import("./apache-CVNlsSDc.es-Dn00JSTd.js"),[])},{id:"apex",name:"Apex",import:()=>W(()=>import("./apex-DFk3KRB1.es-COJ4H7py.js"),[])},{id:"apl",name:"APL",import:()=>W(()=>import("./apl-pE3PRTDr.es-CQSepgku.js"),__vite__mapDeps([9,4,5,6,10,11,12]))},{id:"applescript",name:"AppleScript",import:()=>W(()=>import("./applescript-CYMR_y0g.es-Bu5BbsvL.js"),[])},{id:"ara",name:"Ara",import:()=>W(()=>import("./ara-4QmU5e04.es-7O62HKoU.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>W(()=>import("./asciidoc-v_1bjgUg.es-BPT9niGB.js"),[])},{id:"asm",name:"Assembly",import:()=>W(()=>import("./asm-RC0Yh-NZ.es-Dhn9LcZ4.js"),[])},{id:"astro",name:"Astro",import:()=>W(()=>import("./astro-Be6fybGX.es-fPsVT2Pm.js"),__vite__mapDeps([13,12,5,14,6,15]))},{id:"awk",name:"AWK",import:()=>W(()=>import("./awk-gPH8MVMW.es-eg146-Ew.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>W(()=>import("./ballerina-kvLnRU_e.es-Du268qiB.js"),[])},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>W(()=>import("./bat-BHYy44sT.es-fje9CFhw.js"),[])},{id:"beancount",name:"Beancount",import:()=>W(()=>import("./beancount-D-MADTs_.es-BwXTMy5W.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>W(()=>import("./berry-Ci9U0o4h.es-3xVqZejG.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>W(()=>import("./bibtex-CX618D15.es-xW4inM5L.js"),[])},{id:"bicep",name:"Bicep",import:()=>W(()=>import("./bicep-iuYiPopT.es-DHo0CJ0O.js"),[])},{id:"blade",name:"Blade",import:()=>W(()=>import("./blade-DmXp5Zcz.es-D3zQbxlG.js"),__vite__mapDeps([16,4,5,6,10,11,17,12]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>W(()=>import("./bsl-NPX_d-bb.es-CKrxbqO6.js"),__vite__mapDeps([18,19]))},{id:"c",name:"C",import:()=>W(()=>import("./c-DASdrs7p.es-C3t2pwGQ.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>W(()=>import("./cadence-BDALQi26.es-DNquZEk8.js"),[])},{id:"cairo",name:"Cairo",import:()=>W(()=>import("./cairo-17kO8-kb.es-N2Uzg40c.js"),__vite__mapDeps([20,21]))},{id:"clarity",name:"Clarity",import:()=>W(()=>import("./clarity-CNgV2Ths.es-BHOwM8T6.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>W(()=>import("./clojure-CsKKFGwv.es-DxSadP1t.js"),[])},{id:"cmake",name:"CMake",import:()=>W(()=>import("./cmake-Dr-A3iJx.es-DbXoA79R.js"),[])},{id:"cobol",name:"COBOL",import:()=>W(()=>import("./cobol-BzcJm6ie.es-BWBq31KV.js"),__vite__mapDeps([22,4,5,6,11]))},{id:"codeowners",name:"CODEOWNERS",import:()=>W(()=>import("./codeowners-Bt9yU6NX.es-Bp6g37R7.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>W(()=>import("./codeql-DBNTqJi1.es-sacFqUAJ.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>W(()=>import("./coffee-q2iaxUnQ.es-B85jwlP6.js"),__vite__mapDeps([23,5]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>W(()=>import("./common-lisp-r7ZEOG7T.es-C7gG9l05.js"),[])},{id:"coq",name:"Coq",import:()=>W(()=>import("./coq-CB6Pv_W9.es-Dsg_Bt_b.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>W(()=>import("./cpp-CPQtoCcU.es-D1V2BO11.js"),__vite__mapDeps([24,25,26,27,17]))},{id:"crystal",name:"Crystal",import:()=>W(()=>import("./crystal-BY_Cg265.es-H3j-N6XT.js"),__vite__mapDeps([28,4,5,6,17,27,29]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>W(()=>import("./csharp-CYWRhZ2R.es-D9R-vmeu.js"),[])},{id:"css",name:"CSS",import:()=>W(()=>import("./css-D1aVdRIU.es-BPhBrDlE.js"),[])},{id:"csv",name:"CSV",import:()=>W(()=>import("./csv-DvCncUGQ.es-C-TU5hQ_.js"),[])},{id:"cue",name:"CUE",import:()=>W(()=>import("./cue-BXMrmvay.es-DtFQj3wx.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>W(()=>import("./cypher-DTm5zNR1.es-m2LEI-9-.js"),[])},{id:"d",name:"D",import:()=>W(()=>import("./d-D6ZXmn3l.es-BoXegm-a.js"),[])},{id:"dart",name:"Dart",import:()=>W(()=>import("./dart-Dz59Is3F.es-B9wLZaAG.js"),[])},{id:"dax",name:"DAX",import:()=>W(()=>import("./dax-DTVGzydb.es-ClGRhx96.js"),[])},{id:"desktop",name:"Desktop",import:()=>W(()=>import("./desktop-Db9vb-dl.es-DEIpsLCJ.js"),[])},{id:"diff",name:"Diff",import:()=>W(()=>import("./diff-XmNrvgM1.es-BgYniUM_.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>W(()=>import("./docker-DWH2onkn.es-COcR7UxN.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>W(()=>import("./dotenv-4337wvzu.es-BjQB5zDj.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>W(()=>import("./dream-maker-CvvfrJSx.es-C-nORZOA.js"),[])},{id:"edge",name:"Edge",import:()=>W(()=>import("./edge-DI6_BHKG.es-CysQ3joS.js"),__vite__mapDeps([30,14,4,5,6,31]))},{id:"elixir",name:"Elixir",import:()=>W(()=>import("./elixir-ic9y5jcd.es-BhdVfZIc.js"),__vite__mapDeps([32,4,5,6]))},{id:"elm",name:"Elm",import:()=>W(()=>import("./elm-DxnUqUaW.es-BM2_y8XT.js"),__vite__mapDeps([33,26,27]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>W(()=>import("./emacs-lisp-BAefI874.es-BX77sIaO.js"),[])},{id:"erb",name:"ERB",import:()=>W(()=>import("./erb-Cbj2YePa.es-DRu4t7o3.js"),__vite__mapDeps([34,4,5,6,35,36,10,11,17,37,14,38,39,24,25,26,27,29,40,41]))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>W(()=>import("./erlang-CmIiwF3I.es-B-DoSBHF.js"),[])},{id:"fennel",name:"Fennel",import:()=>W(()=>import("./fennel-DNqkz9pE.es-bCA53EVm.js"),[])},{id:"fish",name:"Fish",import:()=>W(()=>import("./fish-DIm72t2T.es-w-ucz2PV.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>W(()=>import("./fluent-BapTxJsC.es-Dayu4EKP.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>W(()=>import("./fortran-fixed-form-DECY15PY.es-DU-ZL2d9.js"),__vite__mapDeps([42,43]))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>W(()=>import("./fortran-free-form-CNDsBFUj.es-DKXYxT9g.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>W(()=>import("./fsharp-D2ZqviWP.es-BxlBxsP5.js"),__vite__mapDeps([44,45]))},{id:"gdresource",name:"GDResource",import:()=>W(()=>import("./gdresource-RIsK8sku.es-B20oF6eU.js"),__vite__mapDeps([46,47,48]))},{id:"gdscript",name:"GDScript",import:()=>W(()=>import("./gdscript-D7aheHm-.es-DfxzS6Rs.js"),[])},{id:"gdshader",name:"GDShader",import:()=>W(()=>import("./gdshader-BGJEsM2Z.es-SKMF96pI.js"),[])},{id:"genie",name:"Genie",import:()=>W(()=>import("./genie-C9gPjc6J.es-ajMbGru0.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>W(()=>import("./gherkin-bka1Exbx.es--30QC5Em.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>W(()=>import("./git-commit-BRJ1E4Bx.es-BbGpbqw6.js"),__vite__mapDeps([49,50]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>W(()=>import("./git-rebase-C3X7aMpn.es-BtbFLN_-.js"),__vite__mapDeps([51,29]))},{id:"gleam",name:"Gleam",import:()=>W(()=>import("./gleam-B4k9YFGD.es-B430Bg39.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>W(()=>import("./glimmer-js-C4MQf3Na.es-BEVrinj1.js"),__vite__mapDeps([52,5,14,6,4]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>W(()=>import("./glimmer-ts-CoYpqZrZ.es-BREYyOZ9.js"),__vite__mapDeps([53,14,6,5,4]))},{id:"glsl",name:"GLSL",import:()=>W(()=>import("./glsl-BYTq1Tfl.es-ELtdM8O0.js"),__vite__mapDeps([26,27]))},{id:"gnuplot",name:"Gnuplot",import:()=>W(()=>import("./gnuplot-DnWoRZt-.es-CM8KxXT1.js"),[])},{id:"go",name:"Go",import:()=>W(()=>import("./go-BErP6iv1.es-B1SYOhNW.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>W(()=>import("./graphql-g3nHRc0M.es-DSxiSR3X.js"),__vite__mapDeps([37,5,14,38,39]))},{id:"groovy",name:"Groovy",import:()=>W(()=>import("./groovy-IWs5-NIO.es-DkBy-JyN.js"),[])},{id:"hack",name:"Hack",import:()=>W(()=>import("./hack-wPAsyujS.es-BZgRSYeF.js"),__vite__mapDeps([54,4,5,6,17]))},{id:"haml",name:"Ruby Haml",import:()=>W(()=>import("./haml-4TJ757dz.es-DgP9dPqU.js"),__vite__mapDeps([36,5,6]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>W(()=>import("./handlebars-7GDLw__F.es-9gasINI1.js"),__vite__mapDeps([55,4,5,6,41]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>W(()=>import("./haskell-CtlGos0K.es-BILxekzW.js"),[])},{id:"haxe",name:"Haxe",import:()=>W(()=>import("./haxe-CZZ33vZw.es-C5wWYbrZ.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>W(()=>import("./hcl-6hOg9WP4.es-HzYwdGDm.js"),[])},{id:"hjson",name:"Hjson",import:()=>W(()=>import("./hjson-CgwED-oz.es-T-Tgc4AT.js"),[])},{id:"hlsl",name:"HLSL",import:()=>W(()=>import("./hlsl-3-lv4gi7.es-ifBTmRxC.js"),[])},{id:"html",name:"HTML",import:()=>W(()=>import("./html-PSPajZka.es-BayZgXUb.js"),__vite__mapDeps([4,5,6]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>W(()=>import("./html-derivative-Brb3b4aI.es-BOeRDW72.js"),__vite__mapDeps([31,4,5,6]))},{id:"http",name:"HTTP",import:()=>W(()=>import("./http-CWBcr-Ch.es-BydQIEc3.js"),__vite__mapDeps([56,29,12,10,11,37,5,14,38,39]))},{id:"hxml",name:"HXML",import:()=>W(()=>import("./hxml-DLduiIv3.es-KtyOMmRZ.js"),__vite__mapDeps([57,58]))},{id:"hy",name:"Hy",import:()=>W(()=>import("./hy-C2xHhR6I.es-BMj5Y0dO.js"),[])},{id:"imba",name:"Imba",import:()=>W(()=>import("./imba-BEYqRZzB.es-CMdLgtbc.js"),__vite__mapDeps([59,14]))},{id:"ini",name:"INI",aliases:["properties"],import:()=>W(()=>import("./ini-BUcvsX-U.es-BjABl1g7.js"),[])},{id:"java",name:"Java",import:()=>W(()=>import("./java-B7odJ7Ap.es-xI-RfyKK.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>W(()=>import("./javascript-fa8UlHZE.es-ySlJ1b_l.js"),[])},{id:"jinja",name:"Jinja",import:()=>W(()=>import("./jinja-DKLHYjK0.es-Bc5vrI9a.js"),__vite__mapDeps([60,4,5,6]))},{id:"jison",name:"Jison",import:()=>W(()=>import("./jison-CzPfUIvM.es-FIbl5Mke.js"),__vite__mapDeps([61,5]))},{id:"json",name:"JSON",import:()=>W(()=>import("./json-71t8ZF9g.es-BQoSv7ci.js"),[])},{id:"json5",name:"JSON5",import:()=>W(()=>import("./json5-Z7F6rA6a.es-w8dY5SsB.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>W(()=>import("./jsonc-Dphhs4m2.es-TU54ms6u.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>W(()=>import("./jsonl-D9jj92Gg.es-DREVFZK8.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>W(()=>import("./jsonnet-DEQ7IUoJ.es-BfivnA6A.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>W(()=>import("./jssm-j74e88UX.es-P4WzXJd0.js"),[])},{id:"jsx",name:"JSX",import:()=>W(()=>import("./jsx-Bkesy5tT.es-BAng5TT0.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>W(()=>import("./julia-B_r6juN7.es-UTBdB3hN.js"),__vite__mapDeps([62,24,25,26,27,17,21,5,63]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>W(()=>import("./kotlin-DCgZY7Ii.es-B5lbUyaz.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>W(()=>import("./kusto-Cw029H-v.es-mebxcVVE.js"),[])},{id:"latex",name:"LaTeX",import:()=>W(()=>import("./latex-GxBxlqbc.es-BIcleNUg.js"),__vite__mapDeps([64,65,63]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>W(()=>import("./lean-CYSet4vs.es-XBlWyCtg.js"),[])},{id:"less",name:"Less",import:()=>W(()=>import("./less-DQA4v-Nm.es-BfCpw3nA.js"),[])},{id:"liquid",name:"Liquid",import:()=>W(()=>import("./liquid-BxBkR-z5.es-BPU8qCnT.js"),__vite__mapDeps([66,4,5,6,12]))},{id:"log",name:"Log file",import:()=>W(()=>import("./log-D2eRfqDn.es-Cc5clBb7.js"),[])},{id:"logo",name:"Logo",import:()=>W(()=>import("./logo-QEAtGWZ9.es-IuBKFhSY.js"),[])},{id:"lua",name:"Lua",import:()=>W(()=>import("./lua-DeXVjwzF.es-Dr4fCD2G.js"),__vite__mapDeps([40,27]))},{id:"luau",name:"Luau",import:()=>W(()=>import("./luau-BjYGiqID.es-Du5NY7AG.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>W(()=>import("./make-BjuHP00g.es-Bvotw-X0.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>W(()=>import("./markdown-B6guhLWd.es-UIAJJxZW.js"),[])},{id:"marko",name:"Marko",import:()=>W(()=>import("./marko-DwPYPpB3.es-DWcUhJ8-.js"),__vite__mapDeps([67,6,68,8,5]))},{id:"matlab",name:"MATLAB",import:()=>W(()=>import("./matlab-BpQlIJiw.es-D9-PGadD.js"),[])},{id:"mdc",name:"MDC",import:()=>W(()=>import("./mdc-X4YjkufV.es-CkjSLJEI.js"),__vite__mapDeps([69,45,41,31,4,5,6]))},{id:"mdx",name:"MDX",import:()=>W(()=>import("./mdx-DIoECIFU.es-sdHcTMYB.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>W(()=>import("./mermaid-BZ7WHNIe.es-Ci6OQyBP.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>W(()=>import("./mipsasm-DusDYkFc.es-BC5c_5Pe.js"),[])},{id:"mojo",name:"Mojo",import:()=>W(()=>import("./mojo-CY9jaezJ.es-Tz6hzZYG.js"),[])},{id:"move",name:"Move",import:()=>W(()=>import("./move-ChphFumd.es-DB_GagMm.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>W(()=>import("./narrat-Dz4d7OmN.es-DLbgOhZU.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>W(()=>import("./nextflow-DW0Yq9a2.es-B0XVJmRM.js"),[])},{id:"nginx",name:"Nginx",import:()=>W(()=>import("./nginx-ChI-VqNT.es-DWZcbbz-.js"),__vite__mapDeps([70,40,27]))},{id:"nim",name:"Nim",import:()=>W(()=>import("./nim-BiJA-5u7.es-znXiz4wV.js"),__vite__mapDeps([71,27,4,5,6,10,11,26,45]))},{id:"nix",name:"Nix",import:()=>W(()=>import("./nix-Cg5uV_xg.es-shcSOmrb.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>W(()=>import("./nushell-BfRnzRWn.es-D4Tzg5kh.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>W(()=>import("./objective-c-BGg9R27G.es-Deuh7S70.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>W(()=>import("./objective-cpp-CJ3y3V_5.es-BUEGK8hf.js"),[])},{id:"ocaml",name:"OCaml",import:()=>W(()=>import("./ocaml-BZLsfx_o.es-BNioltXt.js"),[])},{id:"pascal",name:"Pascal",import:()=>W(()=>import("./pascal-l2bqd7Dz.es-JqZropPD.js"),[])},{id:"perl",name:"Perl",import:()=>W(()=>import("./perl-CkXYjL3t.es-BGcPZ9HO.js"),__vite__mapDeps([72,4,5,6,10,11,17]))},{id:"php",name:"PHP",import:()=>W(()=>import("./php-q40Yjh5d.es-BkXnuPYP.js"),__vite__mapDeps([73,4,5,6,10,11,17,12]))},{id:"plsql",name:"PL/SQL",import:()=>W(()=>import("./plsql-oVq_K_wH.es-LKU2TuZ1.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>W(()=>import("./po-5jaeIyVd.es-BFLt1xDp.js"),[])},{id:"polar",name:"Polar",import:()=>W(()=>import("./polar-wcLp8ci7.es-DKykz6zU.js"),[])},{id:"postcss",name:"PostCSS",import:()=>W(()=>import("./postcss-BZ3MNRIJ.es-B3ZDOciz.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>W(()=>import("./powerquery-CgRa2XRw.es-CSHBycmS.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>W(()=>import("./powershell-Diwyv8Eh.es-BIEUsx6d.js"),[])},{id:"prisma",name:"Prisma",import:()=>W(()=>import("./prisma-COL_v1x4.es-B48N-Iqd.js"),[])},{id:"prolog",name:"Prolog",import:()=>W(()=>import("./prolog-CuvJOxqT.es-BY-TUvya.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>W(()=>import("./proto-o9HLmF90.es-zocC4JxJ.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>W(()=>import("./pug-Br4hpvIv.es-DSNbVJpq.js"),__vite__mapDeps([74,5,6,4]))},{id:"puppet",name:"Puppet",import:()=>W(()=>import("./puppet-wpGOnQp5.es-Cza_XSSt.js"),[])},{id:"purescript",name:"PureScript",import:()=>W(()=>import("./purescript-B_1NgE2N.es-Bg-kzb6g.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>W(()=>import("./python-xYxLFJY-.es-DhUJRlN_.js"),[])},{id:"qml",name:"QML",import:()=>W(()=>import("./qml-D5gi21kK.es-DPPvKkcg.js"),__vite__mapDeps([75,5]))},{id:"qmldir",name:"QML Directory",import:()=>W(()=>import("./qmldir-BInDYbpo.es-C8lEn-DE.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>W(()=>import("./qss-D-h4NdUG.es-DhMKtDLN.js"),[])},{id:"r",name:"R",import:()=>W(()=>import("./r-F-9I-ITZ.es-CwjWoCRV.js"),[])},{id:"racket",name:"Racket",import:()=>W(()=>import("./racket-BoD1TBFT.es-CzouJOBO.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>W(()=>import("./raku-IaYcw19m.es-B1bQXN8T.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>W(()=>import("./razor-Bt_t1YJb.es-CZnAzo4o.js"),__vite__mapDeps([76,4,5,6,77]))},{id:"reg",name:"Windows Registry Script",import:()=>W(()=>import("./reg-CMUdAgIP.es-5LuOXUq_.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>W(()=>import("./regexp-GiFkbxS-.es-DWJ3fJO_.js"),[])},{id:"rel",name:"Rel",import:()=>W(()=>import("./rel-BaRn3QX7.es-DJlmqQ1C.js"),[])},{id:"riscv",name:"RISC-V",import:()=>W(()=>import("./riscv-B9V3SsvW.es-QhoSD0DR.js"),[])},{id:"rst",name:"reStructuredText",import:()=>W(()=>import("./rst-BmKw97ch.es-CR4pK9fb.js"),__vite__mapDeps([78,31,4,5,6,24,25,26,27,17,21,29,41,79,35,36,10,11,37,14,38,39,40]))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>W(()=>import("./ruby-cs7BSa_9.es-CPbNUT0O.js"),__vite__mapDeps([35,4,5,6,36,10,11,17,37,14,38,39,24,25,26,27,29,40,41]))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>W(()=>import("./rust-Pc7DCsZD.es-Be6lgOlo.js"),[])},{id:"sas",name:"SAS",import:()=>W(()=>import("./sas-DgvHx4mL.es-CucEgNpN.js"),__vite__mapDeps([80,17]))},{id:"sass",name:"Sass",import:()=>W(()=>import("./sass-iCyS6eP9.es-BJ4Li9vH.js"),[])},{id:"scala",name:"Scala",import:()=>W(()=>import("./scala-Cly-fENF.es-DQVVAn-B.js"),[])},{id:"scheme",name:"Scheme",import:()=>W(()=>import("./scheme-Zi24oEYu.es-BJGe-b2p.js"),[])},{id:"scss",name:"SCSS",import:()=>W(()=>import("./scss-B_hSZppj.es-BurBaP11.js"),__vite__mapDeps([8,6]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>W(()=>import("./sdbl-BBamrXFL.es-BLhTXw86.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>W(()=>import("./shaderlab-U9mqcu_f.es-BbQCwWDD.js"),__vite__mapDeps([81,82]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>W(()=>import("./shellscript-Dn0-btNd.es-atvbtKCR.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>W(()=>import("./shellsession-LvXGClmj.es-BA33EWkN.js"),__vite__mapDeps([83,29]))},{id:"smalltalk",name:"Smalltalk",import:()=>W(()=>import("./smalltalk-Cns31tKw.es-DkLiglaE.js"),[])},{id:"solidity",name:"Solidity",import:()=>W(()=>import("./solidity-BG_k8fA_.es-C1w2a3ep.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>W(()=>import("./soy-C0yEn39K.es-BwliuvcW.js"),__vite__mapDeps([84,4,5,6]))},{id:"sparql",name:"SPARQL",import:()=>W(()=>import("./sparql-CuZaxpno.es-DA2vjzn9.js"),__vite__mapDeps([85,86]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>W(()=>import("./splunk-CTqDjQdo.es-Cf8iN4DR.js"),[])},{id:"sql",name:"SQL",import:()=>W(()=>import("./sql-DCkt643-.es-COK4E0Yg.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>W(()=>import("./ssh-config-DHHGll-v.es-BknIz3MU.js"),[])},{id:"stata",name:"Stata",import:()=>W(()=>import("./stata-Dv81f34z.es-CMwo8ydZ.js"),__vite__mapDeps([87,17]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>W(()=>import("./stylus-n_9f0QQ5.es-BeQkCIfX.js"),[])},{id:"svelte",name:"Svelte",import:()=>W(()=>import("./svelte-SoJd35Jr.es-CClskEeK.js"),__vite__mapDeps([88,5,14,6,15]))},{id:"swift",name:"Swift",import:()=>W(()=>import("./swift-BAWqNR8A.es-BSxZ-RaX.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>W(()=>import("./system-verilog-Cui-g-ut.es-C7L56vO4.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>W(()=>import("./systemd-CsKYQIQK.es-CUnW07Te.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>W(()=>import("./talonscript-D2dGh8FO.es-C1XDQQGZ.js"),[])},{id:"tasl",name:"Tasl",import:()=>W(()=>import("./tasl-D3W8HMV6.es-CQjiPCtT.js"),[])},{id:"tcl",name:"Tcl",import:()=>W(()=>import("./tcl-2y0Fuc4S.es-DQ1-QYvQ.js"),[])},{id:"templ",name:"Templ",import:()=>W(()=>import("./templ-C7he2afp.es-DoaZGgQ7.js"),__vite__mapDeps([89,90,5,6]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>W(()=>import("./terraform-BGW6Oerf.es-BbSNqyBO.js"),[])},{id:"tex",name:"TeX",import:()=>W(()=>import("./tex-B0y3cEZp.es-sNFHINbC.js"),__vite__mapDeps([65,63]))},{id:"toml",name:"TOML",import:()=>W(()=>import("./toml-CQSfOn0e.es-CB2ApiWb.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>W(()=>import("./ts-tags-C5-4VQhf.es-BAFqzONk.js"),__vite__mapDeps([91,14,6,5,26,27,4,17,10,11]))},{id:"tsv",name:"TSV",import:()=>W(()=>import("./tsv-BtvSkaG0.es-B_m7g4N7.js"),[])},{id:"tsx",name:"TSX",import:()=>W(()=>import("./tsx-DiGsgWT8.es-B6W0miNI.js"),[])},{id:"turtle",name:"Turtle",import:()=>W(()=>import("./turtle-BJ2wmjPc.es-BMR_PYu6.js"),[])},{id:"twig",name:"Twig",import:()=>W(()=>import("./twig-OmkATFdv.es-Bjz-OhEW.js"),__vite__mapDeps([92,6,5,8,73,4,10,11,17,12,21,35,36,37,14,38,39,24,25,26,27,29,40,41]))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>W(()=>import("./typescript-buWNZFwO.es-Dj6nwHGl.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>W(()=>import("./typespec-bLbdsxJL.es-BpWG_bgh.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>W(()=>import("./typst-Y9_SmXTs.es-BVUVsWT6.js"),[])},{id:"v",name:"V",import:()=>W(()=>import("./v-wa8Orrdd.es-CAQ2eGtk.js"),[])},{id:"vala",name:"Vala",import:()=>W(()=>import("./vala-DRdriFr_.es-BFOHcciG.js"),[])},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>W(()=>import("./vb-E2_-jk4M.es-CdO5JTpU.js"),[])},{id:"verilog",name:"Verilog",import:()=>W(()=>import("./verilog-B1iBoR5_.es-CJaU5se_.js"),[])},{id:"vhdl",name:"VHDL",import:()=>W(()=>import("./vhdl-CRVaAhXk.es-DYoNaHQp.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>W(()=>import("./viml-B-zWOd7Z.es-m4uW47V2.js"),[])},{id:"vue",name:"Vue",import:()=>W(()=>import("./vue-DCwwWMGI.es-Ctq8hiPI.js"),__vite__mapDeps([93,4,5,6,14,12,31]))},{id:"vue-html",name:"Vue HTML",import:()=>W(()=>import("./vue-html-sRE_Ny23.es-By6muIb_.js"),__vite__mapDeps([94,93,4,5,6,14,12,31]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>W(()=>import("./vyper-DWutKXpa.es-nyqBNV6O.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>W(()=>import("./wasm-Bv5f0gKv.es-C6j12Q_x.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>W(()=>import("./wenyan-BMYnfus1.es-7A4Fjokl.js"),[])},{id:"wgsl",name:"WGSL",import:()=>W(()=>import("./wgsl-DnPoPGDU.es-CB0Krxn9.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>W(()=>import("./wikitext-CntM04PE.es-DCE3LsBG.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>W(()=>import("./wolfram-Ws5qPlX9.es-C3FkfJm5.js"),[])},{id:"xml",name:"XML",import:()=>W(()=>import("./xml-Ch1q_kJp.es-af2B2Zxm.js"),__vite__mapDeps([10,11]))},{id:"xsl",name:"XSL",import:()=>W(()=>import("./xsl-DyL8yqXw.es-DIeMqyL3.js"),__vite__mapDeps([95,10,11]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>W(()=>import("./yaml-Bbg74JKr.es-CVw76BM1.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>W(()=>import("./zenscript-C0RKE4nU.es-HnGAYVZD.js"),[])},{id:"zig",name:"Zig",import:()=>W(()=>import("./zig-D6SXBGNm.es-BVz_zdnA.js"),[])}],Ore=Object.fromEntries(ML.map(e=>[e.id,e.import])),Nre=Object.fromEntries(ML.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),Pre={...Ore,...Nre},Lre=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>W(()=>import("./andromeeda-uXNdzNpk.es-C3khCPGq.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>W(()=>import("./aurora-x-BwoVEUWZ.es-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>W(()=>import("./ayu-dark-CxPZkpb2.es-Cv9koXgw.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>W(()=>import("./catppuccin-frappe-BrTOiad2.es-CD_QflpE.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>W(()=>import("./catppuccin-latte-D-dc_R4m.es-DRW-0cLl.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>W(()=>import("./catppuccin-macchiato-DN4jOp0G.es-C-_shW-Y.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>W(()=>import("./catppuccin-mocha-B8yCE3-3.es-LGGdnPYs.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>W(()=>import("./dark-plus-pUHDTVV0.es-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>W(()=>import("./dracula-BtZx2Kac.es-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>W(()=>import("./dracula-soft-BKa-aqBv.es-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>W(()=>import("./everforest-dark-DMCBqXCK.es-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>W(()=>import("./everforest-light-BbXl82Em.es-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>W(()=>import("./github-dark-DenFmJkN.es-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>W(()=>import("./github-dark-default-BJPUVz4H.es-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>W(()=>import("./github-dark-dimmed-DUshB20C.es-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>W(()=>import("./github-dark-high-contrast-D3aGCnF8.es-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>W(()=>import("./github-light-JYsPkUQd.es-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>W(()=>import("./github-light-default-D99KPAby.es-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>W(()=>import("./github-light-high-contrast-BbmZE-Mp.es-BfjtVDDH.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>W(()=>import("./houston-BDYrDoDW.es-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>W(()=>import("./kanagawa-dragon-CiKur4Hl.es-CkXjmgJE.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>W(()=>import("./kanagawa-lotus-BKu-smKu.es-CfQXZHmo.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>W(()=>import("./kanagawa-wave-CQwozSzG.es-DWedfzmr.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>W(()=>import("./laserwave-6a00oqik.es-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>W(()=>import("./light-plus-CZuVqSLX.es-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>W(()=>import("./material-theme-D6KBX41T.es-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>W(()=>import("./material-theme-darker-CkRroheE.es-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>W(()=>import("./material-theme-lighter-BUBw43Yz.es-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>W(()=>import("./material-theme-ocean-ClGX14Ja.es-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>W(()=>import("./material-theme-palenight-C1RVm8K1.es-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>W(()=>import("./min-dark-C7ak0t6c.es-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>W(()=>import("./min-light-CKFxVcPp.es-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>W(()=>import("./monokai-C1KBYcO0.es-D4h5O-jR.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>W(()=>import("./night-owl-Bm2rzalh.es-C39BiMTA.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>W(()=>import("./nord-CC5OiUXg.es-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>W(()=>import("./one-dark-pro-D7-kP8fv.es-GBQ2dnAY.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>W(()=>import("./one-light-D9sNaUtq.es-PoHY5YXO.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>W(()=>import("./plastic-CSTz3KZp.es-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>W(()=>import("./poimandres-C-VADXHD.es-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>W(()=>import("./red-7y8PH7HH.es-bN70gL4F.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>W(()=>import("./rose-pine-DhT-HZE9.es-CmCqftbK.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>W(()=>import("./rose-pine-dawn-DiCjL2i4.es-Ds-gbosJ.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>W(()=>import("./rose-pine-moon-BNmGHlcn.es-CjDtw9vr.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>W(()=>import("./slack-dark-i7wN4OET.es-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>W(()=>import("./slack-ochin-ndHf0LoP.es-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>W(()=>import("./snazzy-light-BlSJXAu4.es-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>W(()=>import("./solarized-dark-UTmkh7lw.es-DXbdFlpD.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>W(()=>import("./solarized-light-BheCkDPT.es-L9t79GZl.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>W(()=>import("./synthwave-84-NU3C_KFZ.es-CbfX1IO0.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>W(()=>import("./tokyo-night-LhP3hHhi.es-DBQeEorK.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>W(()=>import("./vesper-CJsaOsSM.es-BEBZ7ncR.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>W(()=>import("./vitesse-black-BoGvW84i.es-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>W(()=>import("./vitesse-dark-Cym-eLtO.es-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>W(()=>import("./vitesse-light-CcmG315c.es-CVO1_9PV.js"),[])}],Mre=Object.fromEntries(Lre.map(e=>[e.id,e.import]));let cs=class extends Error{constructor(e){super(e),this.name="ShikiError"}},c_=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Fre(){return 2147483648}function jre(){return typeof performance<"u"?performance.now():Date.now()}const Bre=(e,t)=>e+(t-e%t)%t;async function Ure(e){let t,n;const r={};function o(g){n=g,r.HEAPU8=new Uint8Array(g),r.HEAPU32=new Uint32Array(g)}function a(g,b,S){r.HEAPU8.copyWithin(g,b,b+S)}function i(g){try{return t.grow(g-n.byteLength+65535>>>16),o(t.buffer),1}catch{}}function l(g){const b=r.HEAPU8.length;g=g>>>0;const S=Fre();if(g>S)return!1;for(let T=1;T<=4;T*=2){let E=b*(1+.2/T);E=Math.min(E,g+100663296);const A=Math.min(S,Bre(Math.max(g,E),65536));if(i(A))return!0}return!1}const u=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function d(g,b,S=1024){const T=b+S;let E=b;for(;g[E]&&!(E>=T);)++E;if(E-b>16&&g.buffer&&u)return u.decode(g.subarray(b,E));let A="";for(;b<E;){let C=g[b++];if(!(C&128)){A+=String.fromCharCode(C);continue}const D=g[b++]&63;if((C&224)===192){A+=String.fromCharCode((C&31)<<6|D);continue}const I=g[b++]&63;if((C&240)===224?C=(C&15)<<12|D<<6|I:C=(C&7)<<18|D<<12|I<<6|g[b++]&63,C<65536)A+=String.fromCharCode(C);else{const O=C-65536;A+=String.fromCharCode(55296|O>>10,56320|O&1023)}}return A}function p(g,b){return g?d(r.HEAPU8,g,b):""}const h={emscripten_get_now:jre,emscripten_memcpy_big:a,emscripten_resize_heap:l,fd_write:()=>0};async function y(){const g=await e({env:h,wasi_snapshot_preview1:h});t=g.memory,o(t.buffer),Object.assign(r,g),r.UTF8ToString=p}return await y(),r}var zre=Object.defineProperty,Hre=(e,t,n)=>t in e?zre(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_r=(e,t,n)=>(Hre(e,typeof t!="symbol"?t+"":t,n),n);let Lr=null;function $re(e){throw new c_(e.UTF8ToString(e.getLastOnigError()))}class Ub{constructor(t){_r(this,"utf16Length"),_r(this,"utf8Length"),_r(this,"utf16Value"),_r(this,"utf8Value"),_r(this,"utf16OffsetToUtf8"),_r(this,"utf8OffsetToUtf16");const n=t.length,r=Ub._utf8ByteLength(t),o=r!==n,a=o?new Uint32Array(n+1):null;o&&(a[n]=r);const i=o?new Uint32Array(r+1):null;o&&(i[r]=n);const l=new Uint8Array(r);let u=0;for(let d=0;d<n;d++){const p=t.charCodeAt(d);let h=p,y=!1;if(p>=55296&&p<=56319&&d+1<n){const g=t.charCodeAt(d+1);g>=56320&&g<=57343&&(h=(p-55296<<10)+65536|g-56320,y=!0)}o&&(a[d]=u,y&&(a[d+1]=u),h<=127?i[u+0]=d:h<=2047?(i[u+0]=d,i[u+1]=d):h<=65535?(i[u+0]=d,i[u+1]=d,i[u+2]=d):(i[u+0]=d,i[u+1]=d,i[u+2]=d,i[u+3]=d)),h<=127?l[u++]=h:h<=2047?(l[u++]=192|(h&1984)>>>6,l[u++]=128|(h&63)>>>0):h<=65535?(l[u++]=224|(h&61440)>>>12,l[u++]=128|(h&4032)>>>6,l[u++]=128|(h&63)>>>0):(l[u++]=240|(h&1835008)>>>18,l[u++]=128|(h&258048)>>>12,l[u++]=128|(h&4032)>>>6,l[u++]=128|(h&63)>>>0),y&&d++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=l,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=i}static _utf8ByteLength(t){let n=0;for(let r=0,o=t.length;r<o;r++){const a=t.charCodeAt(r);let i=a,l=!1;if(a>=55296&&a<=56319&&r+1<o){const u=t.charCodeAt(r+1);u>=56320&&u<=57343&&(i=(a-55296<<10)+65536|u-56320,l=!0)}i<=127?n+=1:i<=2047?n+=2:i<=65535?n+=3:n+=4,l&&r++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const si=class{constructor(e){if(_r(this,"id",++si.LAST_ID),_r(this,"_onigBinding"),_r(this,"content"),_r(this,"utf16Length"),_r(this,"utf8Length"),_r(this,"utf16OffsetToUtf8"),_r(this,"utf8OffsetToUtf16"),_r(this,"ptr"),!Lr)throw new c_("Must invoke loadWasm first.");this._onigBinding=Lr,this.content=e;const t=new Ub(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!si._sharedPtrInUse?(si._sharedPtr||(si._sharedPtr=Lr.omalloc(1e4)),si._sharedPtrInUse=!0,Lr.HEAPU8.set(t.utf8Value,si._sharedPtr),this.ptr=si._sharedPtr):this.ptr=t.createString(Lr)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===si._sharedPtr?si._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let im=si;_r(im,"LAST_ID",0);_r(im,"_sharedPtr",0);_r(im,"_sharedPtrInUse",!1);class Gre{constructor(t){if(_r(this,"_onigBinding"),_r(this,"_ptr"),!Lr)throw new c_("Must invoke loadWasm first.");const n=[],r=[];for(let l=0,u=t.length;l<u;l++){const d=new Ub(t[l]);n[l]=d.createString(Lr),r[l]=d.utf8Length}const o=Lr.omalloc(4*t.length);Lr.HEAPU32.set(n,o/4);const a=Lr.omalloc(4*t.length);Lr.HEAPU32.set(r,a/4);const i=Lr.createOnigScanner(o,a,t.length);for(let l=0,u=t.length;l<u;l++)Lr.ofree(n[l]);Lr.ofree(a),Lr.ofree(o),i===0&&$re(Lr),this._onigBinding=Lr,this._ptr=i}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,r){let o=0;if(typeof r=="number"&&(o=r),typeof t=="string"){t=new im(t);const a=this._findNextMatchSync(t,n,!1,o);return t.dispose(),a}return this._findNextMatchSync(t,n,!1,o)}_findNextMatchSync(t,n,r,o){const a=this._onigBinding,i=a.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),o);if(i===0)return null;const l=a.HEAPU32;let u=i/4;const d=l[u++],p=l[u++],h=[];for(let y=0;y<p;y++){const g=t.convertUtf8OffsetToUtf16(l[u++]),b=t.convertUtf8OffsetToUtf16(l[u++]);h[y]={start:g,end:b,length:b-g}}return{index:d,captureIndices:h}}}function Vre(e){return typeof e.instantiator=="function"}function qre(e){return typeof e.default=="function"}function Wre(e){return typeof e.data<"u"}function Yre(e){return typeof Response<"u"&&e instanceof Response}function Qre(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let Vg;function Kre(e){if(Vg)return Vg;async function t(){Lr=await Ure(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),Vre(r)?r=await r.instantiator(n):qre(r)?r=await r.default(n):(Wre(r)&&(r=r.data),Yre(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await Xre(r)(n):r=await Zre(r)(n):Qre(r)?r=await lx(r)(n):r instanceof WebAssembly.Module?r=await lx(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await lx(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return Vg=t(),Vg}function lx(e){return t=>WebAssembly.instantiate(e,t)}function Xre(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Zre(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}let Jre;function eoe(){return Jre}async function FL(e){return e&&await Kre(e),{createScanner(t){return new Gre(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new im(t)}}}function toe(e){return u_(e)}function u_(e){return Array.isArray(e)?noe(e):e instanceof RegExp?e:typeof e=="object"?roe(e):e}function noe(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=u_(e[n]);return t}function roe(e){let t={};for(let n in e)t[n]=u_(e[n]);return t}function jL(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function BL(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?BL(e.substring(0,e.length-1)):e.substr(~t+1)}var cx=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,qg=class{static hasCaptures(e){return e===null?!1:(cx.lastIndex=0,cx.test(e))}static replaceCaptures(e,t,n){return e.replace(cx,(r,o,a,i)=>{let l=n[parseInt(o||a,10)];if(l){let u=t.substring(l.start,l.end);for(;u[0]===".";)u=u.substring(1);switch(i){case"downcase":return u.toLowerCase();case"upcase":return u.toUpperCase();default:return u}}else return r})}};function UL(e,t){return e<t?-1:e>t?1:0}function zL(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let o=0;o<n;o++){let a=UL(e[o],t[o]);if(a!==0)return a}return 0}return n-r}function gO(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function HL(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var $L=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},p0=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(ioe(e),t)}static createFromParsedTheme(e,t){return loe(e,t)}_cachedMatchRoot=new $L(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,n=this._cachedMatchRoot.get(t).find(r=>ooe(e.parent,r.parentScopes));return n?new GL(n.fontStyle,n.foreground,n.background):null}},ux=class wy{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new wy(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new wy(n,t[r]);return n}push(t){return new wy(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push(r.scopeName),r=r.parent;return r===t?n.reverse():void 0}};function ooe(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],o=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],o=!0}for(;e&&!aoe(e.scopeName,r);){if(o)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function aoe(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var GL=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function ioe(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let o=0,a=t.length;o<a;o++){let i=t[o];if(!i.settings)continue;let l;if(typeof i.scope=="string"){let h=i.scope;h=h.replace(/^[,]+/,""),h=h.replace(/[,]+$/,""),l=h.split(",")}else Array.isArray(i.scope)?l=i.scope:l=[""];let u=-1;if(typeof i.settings.fontStyle=="string"){u=0;let h=i.settings.fontStyle.split(" ");for(let y=0,g=h.length;y<g;y++)switch(h[y]){case"italic":u=u|1;break;case"bold":u=u|2;break;case"underline":u=u|4;break;case"strikethrough":u=u|8;break}}let d=null;typeof i.settings.foreground=="string"&&gO(i.settings.foreground)&&(d=i.settings.foreground);let p=null;typeof i.settings.background=="string"&&gO(i.settings.background)&&(p=i.settings.background);for(let h=0,y=l.length;h<y;h++){let g=l[h].trim().split(" "),b=g[g.length-1],S=null;g.length>1&&(S=g.slice(0,g.length-1),S.reverse()),n[r++]=new soe(b,S,o,u,d,p)}}return n}var soe=class{constructor(e,t,n,r,o,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=o,this.background=a}},is=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(is||{});function loe(e,t){e.sort((u,d)=>{let p=UL(u.scope,d.scope);return p!==0||(p=zL(u.parentScopes,d.parentScopes),p!==0)?p:u.index-d.index});let n=0,r="#000000",o="#ffffff";for(;e.length>=1&&e[0].scope==="";){let u=e.shift();u.fontStyle!==-1&&(n=u.fontStyle),u.foreground!==null&&(r=u.foreground),u.background!==null&&(o=u.background)}let a=new coe(t),i=new GL(n,a.getId(r),a.getId(o)),l=new doe(new XS(0,null,-1,0,0),[]);for(let u=0,d=e.length;u<d;u++){let p=e[u];l.insert(0,p.scope,p.parentScopes,p.fontStyle,a.getId(p.foreground),a.getId(p.background))}return new p0(a,i,l)}var coe=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},uoe=Object.freeze([]),XS=class VL{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,o,a){this.scopeDepth=t,this.parentScopes=n||uoe,this.fontStyle=r,this.foreground=o,this.background=a}clone(){return new VL(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,o=t.length;r<o;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,o){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),o!==0&&(this.background=o)}},doe=class ZS{constructor(t,n=[],r={}){this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,o=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[o]===">"&&o++,!(r>=t.parentScopes.length||o>=n.parentScopes.length);){const a=n.parentScopes[o].length-t.parentScopes[r].length;if(a!==0)return a;r++,o++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),o,a;if(r===-1?(o=t,a=""):(o=t.substring(0,r),a=t.substring(r+1)),this._children.hasOwnProperty(o))return this._children[o].match(a)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(ZS._cmpBySpecificity),n}insert(t,n,r,o,a,i){if(n===""){this._doInsertHere(t,r,o,a,i);return}let l=n.indexOf("."),u,d;l===-1?(u=n,d=""):(u=n.substring(0,l),d=n.substring(l+1));let p;this._children.hasOwnProperty(u)?p=this._children[u]:(p=new ZS(this._mainRule.clone(),XS.cloneArr(this._rulesWithParentScopes)),this._children[u]=p),p.insert(t+1,d,r,o,a,i)}_doInsertHere(t,n,r,o,a){if(n===null){this._mainRule.acceptOverwrite(t,r,o,a);return}for(let i=0,l=this._rulesWithParentScopes.length;i<l;i++){let u=this._rulesWithParentScopes[i];if(zL(u.parentScopes,n)===0){u.acceptOverwrite(t,r,o,a);return}}r===-1&&(r=this._mainRule.fontStyle),o===0&&(o=this._mainRule.foreground),a===0&&(a=this._mainRule.background),this._rulesWithParentScopes.push(new XS(t,n,r,o,a))}},Ed=class ha{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=ha.getLanguageId(t),r=ha.getTokenType(t),o=ha.getFontStyle(t),a=ha.getForeground(t),i=ha.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:o,foreground:a,background:i})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,r,o,a,i,l){let u=ha.getLanguageId(t),d=ha.getTokenType(t),p=ha.containsBalancedBrackets(t)?1:0,h=ha.getFontStyle(t),y=ha.getForeground(t),g=ha.getBackground(t);return n!==0&&(u=n),r!==8&&(d=r),o!==null&&(p=o?1:0),a!==-1&&(h=a),i!==0&&(y=i),l!==0&&(g=l),(u<<0|d<<8|p<<10|h<<11|y<<15|g<<24)>>>0}};function h0(e,t){const n=[],r=foe(e);let o=r.next();for(;o!==null;){let u=0;if(o.length===2&&o.charAt(1)===":"){switch(o.charAt(0)){case"R":u=1;break;case"L":u=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=r.next()}let d=i();if(n.push({matcher:d,priority:u}),o!==",")break;o=r.next()}return n;function a(){if(o==="-"){o=r.next();const u=a();return d=>!!u&&!u(d)}if(o==="("){o=r.next();const u=l();return o===")"&&(o=r.next()),u}if(yO(o)){const u=[];do u.push(o),o=r.next();while(yO(o));return d=>t(u,d)}return null}function i(){const u=[];let d=a();for(;d;)u.push(d),d=a();return p=>u.every(h=>h(p))}function l(){const u=[];let d=i();for(;d&&(u.push(d),o==="|"||o===",");){do o=r.next();while(o==="|"||o===",");d=i()}return p=>u.some(h=>h(p))}}function yO(e){return!!e&&!!e.match(/[\w\.:]+/)}function foe(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}function qL(e){typeof e.dispose=="function"&&e.dispose()}var kh=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},poe=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},hoe=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},moe=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new kh(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const t=new hoe;for(const n of e)goe(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof kh){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function goe(e,t,n,r){const o=n.lookup(e.scopeName);if(!o){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const a=n.lookup(t);e instanceof kh?Ry({baseGrammar:a,selfGrammar:o},r):JS(e.ruleName,{baseGrammar:a,selfGrammar:o,repository:o.repository},r);const i=n.injections(e.scopeName);if(i)for(const l of i)r.add(new kh(l))}function JS(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];m0([r],t,n)}}function Ry(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&m0(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&m0(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function m0(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const o=r.repository?jL({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&m0(r.patterns,{...t,repository:o},n);const a=r.include;if(!a)continue;const i=WL(a);switch(i.kind){case 0:Ry({...t,selfGrammar:t.baseGrammar},n);break;case 1:Ry(t,n);break;case 2:JS(i.ruleName,{...t,repository:o},n);break;case 3:case 4:const l=i.scopeName===t.selfGrammar.scopeName?t.selfGrammar:i.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(l){const u={baseGrammar:t.baseGrammar,selfGrammar:l,repository:o};i.kind===4?JS(i.ruleName,u,n):Ry(u,n)}else i.kind===4?n.add(new poe(i.scopeName,i.ruleName)):n.add(new kh(i.scopeName));break}}}var yoe=class{kind=0},boe=class{kind=1},voe=class{constructor(e){this.ruleName=e}kind=2},Eoe=class{constructor(e){this.scopeName=e}kind=3},xoe=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function WL(e){if(e==="$base")return new yoe;if(e==="$self")return new boe;const t=e.indexOf("#");if(t===-1)return new Eoe(e);if(t===0)return new voe(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new xoe(n,r)}}var Soe=/\\(\d+)/,bO=/\\(\d+)/g,Toe=-1,YL=-2,sm=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=qg.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=qg.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${BL(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:qg.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:qg.replaceCaptures(this._contentName,e,t)}},Coe=class extends sm{retokenizeCapturedWithRuleId;constructor(e,t,n,r,o){super(e,t,n,r),this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,r){throw new Error("Not supported!")}},_oe=class extends sm{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,o){super(e,t,n,null),this._match=new wh(r,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Rh,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},vO=class extends sm{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,o){super(e,t,n,r),this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Rh,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},eT=class extends sm{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,o,a,i,l,u,d){super(e,t,n,r),this._begin=new wh(o,this.id),this.beginCaptures=a,this._end=new wh(i||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=u||!1,this.patterns=d.patterns,this.hasMissingPatterns=d.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Rh;for(const n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},g0=class extends sm{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,o,a,i,l,u){super(e,t,n,r),this._begin=new wh(o,this.id),this.beginCaptures=a,this.whileCaptures=l,this._while=new wh(i,YL),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Rh;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Rh,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}},QL=class Yr{static createCaptureRule(t,n,r,o,a){return t.registerRule(i=>new Coe(n,i,r,o,a))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(o=>{if(t.id=o,t.match)return new _oe(t.$vscodeTextmateLocation,t.id,t.name,t.match,Yr._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=jL({},r,t.repository));let a=t.patterns;return typeof a>"u"&&t.include&&(a=[{include:t.include}]),new vO(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Yr._compilePatterns(a,n,r))}return t.while?new g0(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Yr._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,Yr._compileCaptures(t.whileCaptures||t.captures,n,r),Yr._compilePatterns(t.patterns,n,r)):new eT(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Yr._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,Yr._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,Yr._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let o=[];if(t){let a=0;for(const i in t){if(i==="$vscodeTextmateLocation")continue;const l=parseInt(i,10);l>a&&(a=l)}for(let i=0;i<=a;i++)o[i]=null;for(const i in t){if(i==="$vscodeTextmateLocation")continue;const l=parseInt(i,10);let u=0;t[i].patterns&&(u=Yr.getCompiledRuleId(t[i],n,r)),o[l]=Yr.createCaptureRule(n,t[i].$vscodeTextmateLocation,t[i].name,t[i].contentName,u)}}return o}static _compilePatterns(t,n,r){let o=[];if(t)for(let a=0,i=t.length;a<i;a++){const l=t[a];let u=-1;if(l.include){const d=WL(l.include);switch(d.kind){case 0:case 1:u=Yr.getCompiledRuleId(r[l.include],n,r);break;case 2:let p=r[d.ruleName];p&&(u=Yr.getCompiledRuleId(p,n,r));break;case 3:case 4:const h=d.scopeName,y=d.kind===4?d.ruleName:null,g=n.getExternalGrammar(h,r);if(g)if(y){let b=g.repository[y];b&&(u=Yr.getCompiledRuleId(b,n,g.repository))}else u=Yr.getCompiledRuleId(g.repository.$self,n,g.repository);break}}else u=Yr.getCompiledRuleId(l,n,r);if(u!==-1){const d=n.getRule(u);let p=!1;if((d instanceof vO||d instanceof eT||d instanceof g0)&&d.hasMissingPatterns&&d.patterns.length===0&&(p=!0),p)continue;o.push(u)}}return{patterns:o,hasMissingPatterns:(t?t.length:0)!==o.length}}},wh=class KL{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){const r=t.length;let o=0,a=[],i=!1;for(let l=0;l<r;l++)if(t.charAt(l)==="\\"&&l+1<r){const u=t.charAt(l+1);u==="z"?(a.push(t.substring(o,l)),a.push("$(?!\\n)(?<!\\n)"),o=l+2):(u==="A"||u==="G")&&(i=!0),l++}this.hasAnchor=i,o===0?this.source=t:(a.push(t.substring(o,r)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=Soe.test(this.source):this.hasBackReferences=!1}clone(){return new KL(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(o=>t.substring(o.start,o.end));return bO.lastIndex=0,this.source.replace(bO,(o,a)=>HL(r[parseInt(a,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],r=[],o=[],a,i,l,u;for(a=0,i=this.source.length;a<i;a++)l=this.source.charAt(a),t[a]=l,n[a]=l,r[a]=l,o[a]=l,l==="\\"&&a+1<i&&(u=this.source.charAt(a+1),u==="A"?(t[a+1]="",n[a+1]="",r[a+1]="A",o[a+1]="A"):u==="G"?(t[a+1]="",n[a+1]="G",r[a+1]="",o[a+1]="G"):(t[a+1]=u,n[a+1]=u,r[a+1]=u,o[a+1]=u),a++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:o.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Rh=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new EO(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map(o=>o.resolveAnchors(t,n));return new EO(e,r,this._items.map(o=>o.ruleId))}},EO=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
|
|
249
|
-
`)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},dx=class{constructor(e,t){this.languageId=e,this.tokenType=t}},Aoe=class tT{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new dx(t,8),this._embeddedLanguagesMatcher=new koe(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?tT._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new dx(0,0);_getBasicScopeAttributes=new $L(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new dx(n,r)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(tT.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},koe=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,r])=>HL(n));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},xO=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function XL(e,t,n,r,o,a,i,l){const u=t.content.length;let d=!1,p=-1;if(i){const g=woe(e,t,n,r,o,a);o=g.stack,r=g.linePos,n=g.isFirstLine,p=g.anchorPosition}const h=Date.now();for(;!d;){if(l!==0&&Date.now()-h>l)return new xO(o,!0);y()}return new xO(o,!1);function y(){const g=Roe(e,t,n,r,o,p);if(!g){a.produce(o,u),d=!0;return}const b=g.captureIndices,S=g.matchedRuleId,T=b&&b.length>0?b[0].end>r:!1;if(S===Toe){const E=o.getRule(e);a.produce(o,b[0].start),o=o.withContentNameScopesList(o.nameScopesList),Rp(e,t,n,o,a,E.endCaptures,b),a.produce(o,b[0].end);const A=o;if(o=o.parent,p=A.getAnchorPos(),!T&&A.getEnterPos()===r){o=A,a.produce(o,u),d=!0;return}}else{const E=e.getRule(S);a.produce(o,b[0].start);const A=o,C=E.getName(t.content,b),D=o.contentNameScopesList.pushAttributed(C,e);if(o=o.push(S,r,p,b[0].end===u,null,D,D),E instanceof eT){const I=E;Rp(e,t,n,o,a,I.beginCaptures,b),a.produce(o,b[0].end),p=b[0].end;const O=I.getContentName(t.content,b),j=D.pushAttributed(O,e);if(o=o.withContentNameScopesList(j),I.endHasBackReferences&&(o=o.withEndRule(I.getEndWithResolvedBackReferences(t.content,b))),!T&&A.hasSameRuleAs(o)){o=o.pop(),a.produce(o,u),d=!0;return}}else if(E instanceof g0){const I=E;Rp(e,t,n,o,a,I.beginCaptures,b),a.produce(o,b[0].end),p=b[0].end;const O=I.getContentName(t.content,b),j=D.pushAttributed(O,e);if(o=o.withContentNameScopesList(j),I.whileHasBackReferences&&(o=o.withEndRule(I.getWhileWithResolvedBackReferences(t.content,b))),!T&&A.hasSameRuleAs(o)){o=o.pop(),a.produce(o,u),d=!0;return}}else if(Rp(e,t,n,o,a,E.captures,b),a.produce(o,b[0].end),o=o.pop(),!T){o=o.safePop(),a.produce(o,u),d=!0;return}}b[0].end>r&&(r=b[0].end,n=!1)}}function woe(e,t,n,r,o,a){let i=o.beginRuleCapturedEOL?0:-1;const l=[];for(let u=o;u;u=u.pop()){const d=u.getRule(e);d instanceof g0&&l.push({rule:d,stack:u})}for(let u=l.pop();u;u=l.pop()){const{ruleScanner:d,findOptions:p}=Ooe(u.rule,e,u.stack.endRule,n,r===i),h=d.findNextMatchSync(t,r,p);if(h){if(h.ruleId!==YL){o=u.stack.pop();break}h.captureIndices&&h.captureIndices.length&&(a.produce(u.stack,h.captureIndices[0].start),Rp(e,t,n,u.stack,a,u.rule.whileCaptures,h.captureIndices),a.produce(u.stack,h.captureIndices[0].end),i=h.captureIndices[0].end,h.captureIndices[0].end>r&&(r=h.captureIndices[0].end,n=!1))}else{o=u.stack.pop();break}}return{stack:o,linePos:r,anchorPosition:i,isFirstLine:n}}function Roe(e,t,n,r,o,a){const i=Doe(e,t,n,r,o,a),l=e.getInjections();if(l.length===0)return i;const u=Ioe(l,e,t,n,r,o,a);if(!u)return i;if(!i)return u;const d=i.captureIndices[0].start,p=u.captureIndices[0].start;return p<d||u.priorityMatch&&p===d?u:i}function Doe(e,t,n,r,o,a){const i=o.getRule(e),{ruleScanner:l,findOptions:u}=ZL(i,e,o.endRule,n,r===a),d=l.findNextMatchSync(t,r,u);return d?{captureIndices:d.captureIndices,matchedRuleId:d.ruleId}:null}function Ioe(e,t,n,r,o,a,i){let l=Number.MAX_VALUE,u=null,d,p=0;const h=a.contentNameScopesList.getScopeNames();for(let y=0,g=e.length;y<g;y++){const b=e[y];if(!b.matcher(h))continue;const S=t.getRule(b.ruleId),{ruleScanner:T,findOptions:E}=ZL(S,t,null,r,o===i),A=T.findNextMatchSync(n,o,E);if(!A)continue;const C=A.captureIndices[0].start;if(!(C>=l)&&(l=C,u=A.captureIndices,d=A.ruleId,p=b.priority,l===o))break}return u?{priorityMatch:p===-1,captureIndices:u,matchedRuleId:d}:null}function ZL(e,t,n,r,o){return{ruleScanner:e.compileAG(t,n,r,o),findOptions:0}}function Ooe(e,t,n,r,o){return{ruleScanner:e.compileWhileAG(t,n,r,o),findOptions:0}}function Rp(e,t,n,r,o,a,i){if(a.length===0)return;const l=t.content,u=Math.min(a.length,i.length),d=[],p=i[0].end;for(let h=0;h<u;h++){const y=a[h];if(y===null)continue;const g=i[h];if(g.length===0)continue;if(g.start>p)break;for(;d.length>0&&d[d.length-1].endPos<=g.start;)o.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop();if(d.length>0?o.produceFromScopes(d[d.length-1].scopes,g.start):o.produce(r,g.start),y.retokenizeCapturedWithRuleId){const S=y.getName(l,i),T=r.contentNameScopesList.pushAttributed(S,e),E=y.getContentName(l,i),A=T.pushAttributed(E,e),C=r.push(y.retokenizeCapturedWithRuleId,g.start,-1,!1,null,T,A),D=e.createOnigString(l.substring(0,g.end));XL(e,D,n&&g.start===0,g.start,C,o,!1,0),qL(D);continue}const b=y.getName(l,i);if(b!==null){const S=(d.length>0?d[d.length-1].scopes:r.contentNameScopesList).pushAttributed(b,e);d.push(new Noe(S,g.end))}}for(;d.length>0;)o.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop()}var Noe=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function Poe(e,t,n,r,o,a,i,l){return new Moe(e,t,n,r,o,a,i,l)}function SO(e,t,n,r,o){const a=h0(t,y0),i=QL.getCompiledRuleId(n,r,o.repository);for(const l of a)e.push({debugSelector:t,matcher:l.matcher,ruleId:i,grammar:o,priority:l.priority})}function y0(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let o=n;o<t.length;o++)if(Loe(t[o],r))return n=o+1,!0;return!1})}function Loe(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var Moe=class{constructor(e,t,n,r,o,a,i,l){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=l,this._basicScopeAttributesProvider=new Aoe(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=TO(t,null),this._injections=null,this._tokenTypeMatchers=[],o)for(const u of Object.keys(o)){const d=h0(u,y0);for(const p of d)this._tokenTypeMatchers.push({matcher:p.matcher,type:o[u]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:o=>o===this._rootScopeName?this._grammar:this.getExternalGrammar(o),injections:o=>this._grammarRepository.injections(o)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){const o=r.injections;if(o)for(let i in o)SO(t,i,o[i],this,r);const a=this._grammarRepository.injections(n);a&&a.forEach(i=>{const l=this.getExternalGrammar(i);if(l){const u=l.injectionSelector;u&&SO(t,u,l,this,l)}})}return t.sort((o,a)=>o.priority-a.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=TO(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=QL.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let o;if(!t||t===nT.NULL){o=!0;const d=this._basicScopeAttributesProvider.getDefaultAttributes(),p=this.themeProvider.getDefaults(),h=Ed.set(0,d.languageId,d.tokenType,null,p.fontStyle,p.foregroundId,p.backgroundId),y=this.getRule(this._rootId).getName(null,null);let g;y?g=$p.createRootAndLookUpScopeName(y,h,this):g=$p.createRoot("unknown",h),t=new nT(null,this._rootId,-1,-1,!1,null,g,g)}else o=!1,t.reset();e=e+`
|
|
250
|
-
`;const a=this.createOnigString(e),i=a.content.length,l=new joe(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),u=XL(this,a,o,0,t,l,!0,r);return qL(a),{lineLength:i,lineTokens:l,ruleStack:u.stack,stoppedEarly:u.stoppedEarly}}};function TO(e,t){return e=toe(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var $p=class li{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,o=t?.scopePath??null;for(const a of n)o=ux.push(o,a.scopeNames),r=new li(r,o,a.encodedTokenAttributes);return r}static createRoot(t,n){return new li(null,new ux(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const o=r.getMetadataForScope(t),a=new ux(null,t),i=r.themeProvider.themeMatch(a),l=li.mergeAttributes(n,o,i);return new li(null,a,l)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return li.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,r){let o=-1,a=0,i=0;return r!==null&&(o=r.fontStyle,a=r.foregroundId,i=r.backgroundId),Ed.set(t,n.languageId,n.tokenType,null,o,a,i)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return li._pushAttributed(this,t,n);const r=t.split(/ /g);let o=this;for(const a of r)o=li._pushAttributed(o,a,n);return o}static _pushAttributed(t,n,r){const o=r.getMetadataForScope(n),a=t.scopePath.push(n),i=r.themeProvider.themeMatch(a),l=li.mergeAttributes(t.tokenAttributes,o,i);return new li(t,a,l)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===t?n.reverse():void 0}},nT=class oc{constructor(t,n,r,o,a,i,l,u){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=a,this.endRule=i,this.nameScopesList=l,this.contentNameScopesList=u,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=o}_stackElementBrand=void 0;static NULL=new oc(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:oc._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?$p.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){oc._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,o,a,i,l){return new oc(this,t,n,r,o,a,i,l)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new oc(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){const r=$p.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new oc(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,$p.fromExtension(r,n.contentNameScopesList))}},Foe=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):h0(n,y0).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>h0(n,y0).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},joe=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let r=e?.tokenAttributes??0,o=!1;if(this.balancedBracketSelectors?.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const a=e?.getScopeNames()??[];for(const i of this._tokenTypeOverrides)i.matcher(a)&&(r=Ed.set(r,0,i.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(a))}if(o&&(r=Ed.set(r,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=t;return}const n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,o=this._binaryTokens.length;r<o;r++)n[r]=this._binaryTokens[r];return n}},Boe=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,o){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,Poe(e,a,t,n,r,o,this,this._onigLib))}return this._grammars.get(e)}},Uoe=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new Boe(p0.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(p0.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new Foe(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,o){const a=new moe(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(i=>this._loadSingleGrammar(i.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,r,o)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const t=this._options.loadGrammar(e);if(t){const n=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,o=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,o)}},rT=nT.NULL;const JL=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];let lm=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};lm.prototype.normal={};lm.prototype.property={};lm.prototype.space=void 0;function eM(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new lm(n,r,t)}function Dh(e){return e.toLowerCase()}let Fo=class{constructor(e,t){this.attribute=t,this.property=e}};Fo.prototype.attribute="";Fo.prototype.booleanish=!1;Fo.prototype.boolean=!1;Fo.prototype.commaOrSpaceSeparated=!1;Fo.prototype.commaSeparated=!1;Fo.prototype.defined=!1;Fo.prototype.mustUseProperty=!1;Fo.prototype.number=!1;Fo.prototype.overloadedBoolean=!1;Fo.prototype.property="";Fo.prototype.spaceSeparated=!1;Fo.prototype.space=void 0;let zoe=0;const Bt=Uc(),vr=Uc(),oT=Uc(),$e=Uc(),zn=Uc(),ad=Uc(),Wo=Uc();function Uc(){return 2**++zoe}const aT=Object.freeze(Object.defineProperty({__proto__:null,boolean:Bt,booleanish:vr,commaOrSpaceSeparated:Wo,commaSeparated:ad,number:$e,overloadedBoolean:oT,spaceSeparated:zn},Symbol.toStringTag,{value:"Module"})),fx=Object.keys(aT);let d_=class extends Fo{constructor(e,t,n,r){let o=-1;if(super(e,t),CO(this,"space",r),typeof n=="number")for(;++o<fx.length;){const a=fx[o];CO(this,fx[o],(n&aT[a])===aT[a])}}};d_.prototype.defined=!0;function CO(e,t,n){n&&(e[t]=n)}function Fd(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const a=new d_(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Dh(r)]=r,n[Dh(a.attribute)]=r}return new lm(t,n,e.space)}const tM=Fd({properties:{ariaActiveDescendant:null,ariaAtomic:vr,ariaAutoComplete:null,ariaBusy:vr,ariaChecked:vr,ariaColCount:$e,ariaColIndex:$e,ariaColSpan:$e,ariaControls:zn,ariaCurrent:null,ariaDescribedBy:zn,ariaDetails:null,ariaDisabled:vr,ariaDropEffect:zn,ariaErrorMessage:null,ariaExpanded:vr,ariaFlowTo:zn,ariaGrabbed:vr,ariaHasPopup:null,ariaHidden:vr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:zn,ariaLevel:$e,ariaLive:null,ariaModal:vr,ariaMultiLine:vr,ariaMultiSelectable:vr,ariaOrientation:null,ariaOwns:zn,ariaPlaceholder:null,ariaPosInSet:$e,ariaPressed:vr,ariaReadOnly:vr,ariaRelevant:null,ariaRequired:vr,ariaRoleDescription:zn,ariaRowCount:$e,ariaRowIndex:$e,ariaRowSpan:$e,ariaSelected:vr,ariaSetSize:$e,ariaSort:null,ariaValueMax:$e,ariaValueMin:$e,ariaValueNow:$e,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function nM(e,t){return t in e?e[t]:t}function rM(e,t){return nM(e,t.toLowerCase())}const Hoe=Fd({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ad,acceptCharset:zn,accessKey:zn,action:null,allow:null,allowFullScreen:Bt,allowPaymentRequest:Bt,allowUserMedia:Bt,alt:null,as:null,async:Bt,autoCapitalize:null,autoComplete:zn,autoFocus:Bt,autoPlay:Bt,blocking:zn,capture:null,charSet:null,checked:Bt,cite:null,className:zn,cols:$e,colSpan:null,content:null,contentEditable:vr,controls:Bt,controlsList:zn,coords:$e|ad,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Bt,defer:Bt,dir:null,dirName:null,disabled:Bt,download:oT,draggable:vr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Bt,formTarget:null,headers:zn,height:$e,hidden:oT,high:$e,href:null,hrefLang:null,htmlFor:zn,httpEquiv:zn,id:null,imageSizes:null,imageSrcSet:null,inert:Bt,inputMode:null,integrity:null,is:null,isMap:Bt,itemId:null,itemProp:zn,itemRef:zn,itemScope:Bt,itemType:zn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Bt,low:$e,manifest:null,max:null,maxLength:$e,media:null,method:null,min:null,minLength:$e,multiple:Bt,muted:Bt,name:null,nonce:null,noModule:Bt,noValidate:Bt,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:Bt,optimum:$e,pattern:null,ping:zn,placeholder:null,playsInline:Bt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Bt,referrerPolicy:null,rel:zn,required:Bt,reversed:Bt,rows:$e,rowSpan:$e,sandbox:zn,scope:null,scoped:Bt,seamless:Bt,selected:Bt,shadowRootClonable:Bt,shadowRootDelegatesFocus:Bt,shadowRootMode:null,shape:null,size:$e,sizes:null,slot:null,span:$e,spellCheck:vr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:$e,step:null,style:null,tabIndex:$e,target:null,title:null,translate:null,type:null,typeMustMatch:Bt,useMap:null,value:vr,width:$e,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:zn,axis:null,background:null,bgColor:null,border:$e,borderColor:null,bottomMargin:$e,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Bt,declare:Bt,event:null,face:null,frame:null,frameBorder:null,hSpace:$e,leftMargin:$e,link:null,longDesc:null,lowSrc:null,marginHeight:$e,marginWidth:$e,noResize:Bt,noHref:Bt,noShade:Bt,noWrap:Bt,object:null,profile:null,prompt:null,rev:null,rightMargin:$e,rules:null,scheme:null,scrolling:vr,standby:null,summary:null,text:null,topMargin:$e,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$e,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Bt,disableRemotePlayback:Bt,prefix:null,property:null,results:$e,security:null,unselectable:null},space:"html",transform:rM}),$oe=Fd({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:Wo,accentHeight:$e,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:$e,amplitude:$e,arabicForm:null,ascent:$e,attributeName:null,attributeType:null,azimuth:$e,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:$e,by:null,calcMode:null,capHeight:$e,className:zn,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:$e,diffuseConstant:$e,direction:null,display:null,dur:null,divisor:$e,dominantBaseline:null,download:Bt,dx:null,dy:null,edgeMode:null,editable:null,elevation:$e,enableBackground:null,end:null,event:null,exponent:$e,externalResourcesRequired:null,fill:null,fillOpacity:$e,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:ad,g2:ad,glyphName:ad,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:$e,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:$e,horizOriginX:$e,horizOriginY:$e,id:null,ideographic:$e,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:$e,k:$e,k1:$e,k2:$e,k3:$e,k4:$e,kernelMatrix:Wo,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:$e,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:$e,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:$e,overlineThickness:$e,paintOrder:null,panose1:null,path:null,pathLength:$e,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:zn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:$e,pointsAtY:$e,pointsAtZ:$e,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Wo,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Wo,rev:Wo,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Wo,requiredFeatures:Wo,requiredFonts:Wo,requiredFormats:Wo,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:$e,specularExponent:$e,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:$e,strikethroughThickness:$e,string:null,stroke:null,strokeDashArray:Wo,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:$e,strokeOpacity:$e,strokeWidth:null,style:null,surfaceScale:$e,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Wo,tabIndex:$e,tableValues:null,target:null,targetX:$e,targetY:$e,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Wo,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:$e,underlineThickness:$e,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:$e,values:null,vAlphabetic:$e,vMathematical:$e,vectorEffect:null,vHanging:$e,vIdeographic:$e,version:null,vertAdvY:$e,vertOriginX:$e,vertOriginY:$e,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:$e,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:nM}),oM=Fd({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),aM=Fd({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:rM}),iM=Fd({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Goe={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"},Voe=/[A-Z]/g,_O=/-[a-z]/g,qoe=/^data[-\w.:]+$/i;function cm(e,t){const n=Dh(t);let r=t,o=Fo;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&qoe.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(_O,Yoe);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!_O.test(a)){let i=a.replace(Voe,Woe);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}o=d_}return new o(r,t)}function Woe(e){return"-"+e.toLowerCase()}function Yoe(e){return e.charAt(1).toUpperCase()}const jd=eM([tM,Hoe,oM,aM,iM],"html"),Es=eM([tM,$oe,oM,aM,iM],"svg"),AO={}.hasOwnProperty;function zb(e,t){const n=t||{};function r(o,...a){let i=r.invalid;const l=r.handlers;if(o&&AO.call(o,e)){const u=String(o[e]);i=AO.call(l,u)?l[u]:r.unknown}if(i)return i.call(this,o,...a)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const Qoe=/["&'<>`]/g,Koe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Xoe=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Zoe=/[|\\{}()[\]^$+*?.]/g,kO=new WeakMap;function Joe(e,t){if(e=e.replace(t.subset?eae(t.subset):Qoe,r),t.subset||t.escapeOnly)return e;return e.replace(Koe,n).replace(Xoe,r);function n(o,a,i){return t.format((o.charCodeAt(0)-55296)*1024+o.charCodeAt(1)-56320+65536,i.charCodeAt(a+2),t)}function r(o,a,i){return t.format(o.charCodeAt(0),i.charCodeAt(a+1),t)}}function eae(e){let t=kO.get(e);return t||(t=tae(e),kO.set(e,t)),t}function tae(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(Zoe,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const nae=/[\dA-Fa-f]/;function rae(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!nae.test(String.fromCharCode(t))?r:r+";"}const oae=/\d/;function aae(e,t,n){const r="&#"+String(e);return n&&t&&!oae.test(String.fromCharCode(t))?r:r+";"}const iae=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],px={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},sae=["cent","copy","divide","gt","lt","not","para","times"],sM={}.hasOwnProperty,iT={};let Wg;for(Wg in px)sM.call(px,Wg)&&(iT[px[Wg]]=Wg);const lae=/[^\dA-Za-z]/;function cae(e,t,n,r){const o=String.fromCharCode(e);if(sM.call(iT,o)){const a=iT[o],i="&"+a;return n&&iae.includes(a)&&!sae.includes(a)&&(!r||t&&t!==61&&lae.test(String.fromCharCode(t)))?i:i+";"}return""}function uae(e,t,n){let r=rae(e,t,n.omitOptionalSemicolons),o;if((n.useNamedReferences||n.useShortestReferences)&&(o=cae(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!o)&&n.useShortestReferences){const a=aae(e,t,n.omitOptionalSemicolons);a.length<r.length&&(r=a)}return o&&(!n.useShortestReferences||o.length<r.length)?o:r}function id(e,t){return Joe(e,Object.assign({format:uae},t))}const dae=/^>|^->|<!--|-->|--!>|<!-$/g,fae=[">"],pae=["<",">"];function hae(e,t,n,r){return r.settings.bogusComments?"<?"+id(e.value,Object.assign({},r.settings.characterReferences,{subset:fae}))+">":"<!--"+e.value.replace(dae,o)+"-->";function o(a){return id(a,Object.assign({},r.settings.characterReferences,{subset:pae}))}}function mae(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function b0(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;o!==-1;)r++,o=n.indexOf(t,o+t.length);return r}function sT(e){const t=[],n=String(e||"");let r=n.indexOf(","),o=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const i=n.slice(o,r).trim();(i||!a)&&t.push(i),o=r+1,r=n.indexOf(",",o)}return t}function Hb(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function lT(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function $b(e){return e.join(" ").trim()}const gae=/[ \t\n\f\r]/g;function um(e){return typeof e=="object"?e.type==="text"?wO(e.value):!1:wO(e)}function wO(e){return e.replace(gae,"")===""}const wr=cM(1),lM=cM(-1),yae=[];function cM(e){return t;function t(n,r,o){const a=n?n.children:yae;let i=(r||0)+e,l=a[i];if(!o)for(;l&&um(l);)i+=e,l=a[i];return l}}const bae={}.hasOwnProperty;function uM(e){return t;function t(n,r,o){return bae.call(e,n.tagName)&&e[n.tagName](n,r,o)}}const f_=uM({body:Eae,caption:hx,colgroup:hx,dd:Cae,dt:Tae,head:hx,html:vae,li:Sae,optgroup:_ae,option:Aae,p:xae,rp:RO,rt:RO,tbody:wae,td:DO,tfoot:Rae,th:DO,thead:kae,tr:Dae});function hx(e,t,n){const r=wr(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&um(r.value.charAt(0)))}function vae(e,t,n){const r=wr(n,t);return!r||r.type!=="comment"}function Eae(e,t,n){const r=wr(n,t);return!r||r.type!=="comment"}function xae(e,t,n){const r=wr(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function Sae(e,t,n){const r=wr(n,t);return!r||r.type==="element"&&r.tagName==="li"}function Tae(e,t,n){const r=wr(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function Cae(e,t,n){const r=wr(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function RO(e,t,n){const r=wr(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function _ae(e,t,n){const r=wr(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function Aae(e,t,n){const r=wr(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function kae(e,t,n){const r=wr(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function wae(e,t,n){const r=wr(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Rae(e,t,n){return!wr(n,t)}function Dae(e,t,n){const r=wr(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function DO(e,t,n){const r=wr(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const Iae=uM({body:Pae,colgroup:Lae,head:Nae,html:Oae,tbody:Mae});function Oae(e){const t=wr(e,-1);return!t||t.type!=="comment"}function Nae(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function Pae(e){const t=wr(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&um(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function Lae(e,t,n){const r=lM(n,t),o=wr(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&f_(r,n.children.indexOf(r),n)?!1:!!(o&&o.type==="element"&&o.tagName==="col")}function Mae(e,t,n){const r=lM(n,t),o=wr(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&f_(r,n.children.indexOf(r),n)?!1:!!(o&&o.type==="element"&&o.tagName==="tr")}const Yg={name:[[`
|
|
251
|
-
\f\r &/=>`.split(""),`
|
|
252
|
-
\f\r "&'/=>\``.split("")],[`\0
|
|
253
|
-
\f\r "&'/<=>`.split(""),`\0
|
|
254
|
-
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
255
|
-
\f\r &>`.split(""),`\0
|
|
256
|
-
\f\r "&'<=>\``.split("")],[`\0
|
|
257
|
-
\f\r "&'<=>\``.split(""),`\0
|
|
258
|
-
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Fae(e,t,n,r){const o=r.schema,a=o.space==="svg"?!1:r.settings.omitOptionalTags;let i=o.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const l=[];let u;o.space==="html"&&e.tagName==="svg"&&(r.schema=Es);const d=jae(r,e.properties),p=r.all(o.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=o,p&&(i=!1),(d||!a||!Iae(e,t,n))&&(l.push("<",e.tagName,d?" "+d:""),i&&(o.space==="svg"||r.settings.closeSelfClosing)&&(u=d.charAt(d.length-1),(!r.settings.tightSelfClosing||u==="/"||u&&u!=='"'&&u!=="'")&&l.push(" "),l.push("/")),l.push(">")),l.push(p),!i&&(!a||!f_(e,t,n))&&l.push("</"+e.tagName+">"),l.join("")}function jae(e,t){const n=[];let r=-1,o;if(t){for(o in t)if(t[o]!==null&&t[o]!==void 0){const a=Bae(e,o,t[o]);a&&n.push(a)}}for(;++r<n.length;){const a=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&a!=='"'&&a!=="'"&&(n[r]+=" ")}return n.join("")}function Bae(e,t,n){const r=cm(e.schema,t),o=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,a=e.settings.allowDangerousCharacters?0:1;let i=e.quote,l;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const u=id(r.attribute,Object.assign({},e.settings.characterReferences,{subset:Yg.name[o][a]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?Hb:$b)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?u:(e.settings.preferUnquoted&&(l=id(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Yg.unquoted[o][a]}))),l!==n&&(e.settings.quoteSmart&&b0(n,i)>b0(n,e.alternative)&&(i=e.alternative),l=i+id(n,Object.assign({},e.settings.characterReferences,{subset:(i==="'"?Yg.single:Yg.double)[o][a],attribute:!0}))+i),u+(l&&"="+l))}const Uae=["<","&"];function dM(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:id(e.value,Object.assign({},r.settings.characterReferences,{subset:Uae}))}function zae(e,t,n,r){return r.settings.allowDangerousHtml?e.value:dM(e,t,n,r)}function Hae(e,t,n,r){return r.all(e)}const $ae=zb("type",{invalid:Gae,unknown:Vae,handlers:{comment:hae,doctype:mae,element:Fae,raw:zae,root:Hae,text:dM}});function Gae(e){throw new Error("Expected node, not `"+e+"`")}function Vae(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const qae={},Wae={},Yae=[];function Qae(e,t){const n=qae,r=n.quote||'"',o=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Kae,all:Xae,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||JL,characterReferences:n.characterReferences||Wae,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Es:jd,quote:r,alternative:o}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function Kae(e,t,n){return $ae(e,t,n,this)}function Xae(e){const t=[],n=e&&e.children||Yae;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function Zae(e){return Array.isArray(e)?e:[e]}function Gb(e,t=!1){const n=e.split(/(\r?\n)/g);let r=0;const o=[];for(let a=0;a<n.length;a+=2){const i=t?n[a]+(n[a+1]||""):n[a];o.push([i,r]),r+=n[a].length,r+=n[a+1]?.length||0}return o}function p_(e){return!e||["plaintext","txt","text","plain"].includes(e)}function fM(e){return e==="ansi"||p_(e)}function h_(e){return e==="none"}function pM(e){return h_(e)}function hM(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const r of n)r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}function Jae(e,t){let n=0;const r=[];for(const o of t)o>n&&r.push({...e,content:e.content.slice(n,o),offset:e.offset+n}),n=o;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function eie(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,o)=>r-o);return n.length?e.map(r=>r.flatMap(o=>{const a=n.filter(i=>o.offset<i&&i<o.offset+o.content.length).map(i=>i-o.offset).sort((i,l)=>i-l);return a.length?Jae(o,a):o})):e}async function mM(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function v0(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[o,a]of Object.entries(t?.colorReplacements||{}))typeof a=="string"?n[o]=a:o===r&&Object.assign(n,a);return n}function mc(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function gM(e){const t={};return e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle&&(e.fontStyle&is.Italic&&(t["font-style"]="italic"),e.fontStyle&is.Bold&&(t["font-weight"]="bold"),e.fontStyle&is.Underline&&(t["text-decoration"]="underline")),t}function tie(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}function nie(e){const t=Gb(e,!0).map(([o])=>o);function n(o){if(o===e.length)return{line:t.length-1,character:t[t.length-1].length};let a=o,i=0;for(const l of t){if(a<l.length)break;a-=l.length,i++}return{line:i,character:a}}function r(o,a){let i=0;for(let l=0;l<o;l++)i+=t[l].length;return i+=a,i}return{lines:t,indexToPos:n,posToIndex:r}}class po extends Error{constructor(t){super(t),this.name="ShikiError"}}const yM=new WeakMap;function Vb(e,t){yM.set(e,t)}function Ih(e){return yM.get(e)}class Bd{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new Bd(Object.fromEntries(Zae(n).map(r=>[r,rT])),t)}constructor(...t){if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,o]=t;this.lang=r,this._stacks={[o]:n}}}getInternalStack(t=this.theme){return this._stacks[t]}get scopes(){return IO(this._stacks[this.theme])}getScopes(t=this.theme){return IO(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}}function IO(e){const t=[],n=new Set;function r(o){if(n.has(o))return;n.add(o);const a=o?.nameScopesList?.scopeName;a&&t.push(a),o.parent&&r(o.parent)}return r(e),t}function rie(e,t){if(!(e instanceof Bd))throw new po("Invalid grammar state");return e.getInternalStack(t)}function oie(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(i){if(typeof i=="number"){if(i<0||i>n.source.length)throw new po(`Invalid decoration offset: ${i}. Code length: ${n.source.length}`);return{...o.indexToPos(i),offset:i}}else{const l=o.lines[i.line];if(l===void 0)throw new po(`Invalid decoration position ${JSON.stringify(i)}. Lines length: ${o.lines.length}`);if(i.character<0||i.character>l.length)throw new po(`Invalid decoration position ${JSON.stringify(i)}. Line ${i.line} length: ${l.length}`);return{...i,offset:o.posToIndex(i.line,i.character)}}};const o=nie(n.source),a=(n.options.decorations||[]).map(i=>({...i,start:r(i.start),end:r(i.end)}));aie(a),e.set(n.meta,{decorations:a,converter:o,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(!this.options.decorations?.length)return;const r=t(this).decorations.flatMap(o=>[o.start.offset,o.end.offset]);return eie(n,r)},code(n){if(!this.options.decorations?.length)return;const r=t(this),o=Array.from(n.children).filter(p=>p.type==="element"&&p.tagName==="span");if(o.length!==r.converter.lines.length)throw new po(`Number of lines in code element (${o.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function a(p,h,y,g){const b=o[p];let S="",T=-1,E=-1;if(h===0&&(T=0),y===0&&(E=0),y===Number.POSITIVE_INFINITY&&(E=b.children.length),T===-1||E===-1)for(let C=0;C<b.children.length;C++)S+=bM(b.children[C]),T===-1&&S.length===h&&(T=C+1),E===-1&&S.length===y&&(E=C+1);if(T===-1)throw new po(`Failed to find start index for decoration ${JSON.stringify(g.start)}`);if(E===-1)throw new po(`Failed to find end index for decoration ${JSON.stringify(g.end)}`);const A=b.children.slice(T,E);if(!g.alwaysWrap&&A.length===b.children.length)l(b,g,"line");else if(!g.alwaysWrap&&A.length===1&&A[0].type==="element")l(A[0],g,"token");else{const C={type:"element",tagName:"span",properties:{},children:A};l(C,g,"wrapper"),b.children.splice(T,A.length,C)}}function i(p,h){o[p]=l(o[p],h,"line")}function l(p,h,y){const g=h.properties||{},b=h.transform||(S=>S);return p.tagName=h.tagName||"span",p.properties={...p.properties,...g,class:p.properties.class},h.properties?.class&&hM(p,h.properties.class),p=b(p,y)||p,p}const u=[],d=r.decorations.sort((p,h)=>h.start.offset-p.start.offset);for(const p of d){const{start:h,end:y}=p;if(h.line===y.line)a(h.line,h.character,y.character,p);else if(h.line<y.line){a(h.line,h.character,Number.POSITIVE_INFINITY,p);for(let g=h.line+1;g<y.line;g++)u.unshift(()=>i(g,p));a(y.line,0,y.character,p)}}u.forEach(p=>p())}}}function aie(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new po(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const o=e[r],a=n.start.offset<o.start.offset&&o.start.offset<n.end.offset,i=n.start.offset<o.end.offset&&o.end.offset<n.end.offset,l=o.start.offset<n.start.offset&&n.start.offset<o.end.offset,u=o.start.offset<n.end.offset&&n.end.offset<o.end.offset;if(a||i||l||u){if(i&&i||l&&u)continue;throw new po(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(o.start)} intersect.`)}}}}function bM(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(bM).join(""):""}const iie=[oie()];function E0(e){return[...e.transformers||[],...iie]}var gc=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],mx={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function sie(e,t){const n=e.indexOf("\x1B[",t);if(n!==-1){const r=e.indexOf("m",n);return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function OO(e,t){let n=1;const r=e[t+n++];let o;if(r==="2"){const a=[e[t+n++],e[t+n++],e[t+n]].map(i=>Number.parseInt(i));a.length===3&&!a.some(i=>Number.isNaN(i))&&(o={type:"rgb",rgb:a})}else if(r==="5"){const a=Number.parseInt(e[t+n]);Number.isNaN(a)||(o={type:"table",index:Number(a)})}return[n,o]}function lie(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n],o=Number.parseInt(r);if(!Number.isNaN(o))if(o===0)t.push({type:"resetAll"});else if(o<=9)mx[o]&&t.push({type:"setDecoration",value:mx[o]});else if(o<=29){const a=mx[o-20];a&&t.push({type:"resetDecoration",value:a})}else if(o<=37)t.push({type:"setForegroundColor",value:{type:"named",name:gc[o-30]}});else if(o===38){const[a,i]=OO(e,n);i&&t.push({type:"setForegroundColor",value:i}),n+=a}else if(o===39)t.push({type:"resetForegroundColor"});else if(o<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:gc[o-40]}});else if(o===48){const[a,i]=OO(e,n);i&&t.push({type:"setBackgroundColor",value:i}),n+=a}else o===49?t.push({type:"resetBackgroundColor"}):o>=90&&o<=97?t.push({type:"setForegroundColor",value:{type:"named",name:gc[o-90+8]}}):o>=100&&o<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:gc[o-100+8]}})}return t}function cie(){let e=null,t=null,n=new Set;return{parse(r){const o=[];let a=0;do{const i=sie(r,a),l=i.sequence?r.substring(a,i.startPosition):r.substring(a);if(l.length>0&&o.push({value:l,foreground:e,background:t,decorations:new Set(n)}),i.sequence){const u=lie(i.sequence);for(const d of u)d.type==="resetAll"?(e=null,t=null,n.clear()):d.type==="resetForegroundColor"?e=null:d.type==="resetBackgroundColor"?t=null:d.type==="resetDecoration"&&n.delete(d.value);for(const d of u)d.type==="setForegroundColor"?e=d.value:d.type==="setBackgroundColor"?t=d.value:d.type==="setDecoration"&&n.add(d.value)}a=i.position}while(a<r.length);return o}}}var uie={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function die(e=uie){function t(l){return e[l]}function n(l){return`#${l.map(u=>Math.max(0,Math.min(u,255)).toString(16).padStart(2,"0")).join("")}`}let r;function o(){if(r)return r;r=[];for(let d=0;d<gc.length;d++)r.push(t(gc[d]));let l=[0,95,135,175,215,255];for(let d=0;d<6;d++)for(let p=0;p<6;p++)for(let h=0;h<6;h++)r.push(n([l[d],l[p],l[h]]));let u=8;for(let d=0;d<24;d++,u+=10)r.push(n([u,u,u]));return r}function a(l){return o()[l]}function i(l){switch(l.type){case"named":return t(l.name);case"rgb":return n(l.rgb);case"table":return a(l.index)}}return{value:i}}function fie(e,t,n){const r=v0(e,n),o=Gb(t),a=die(Object.fromEntries(gc.map(l=>[l,e.colors?.[`terminal.ansi${l[0].toUpperCase()}${l.substring(1)}`]]))),i=cie();return o.map(l=>i.parse(l[0]).map(u=>{let d,p;u.decorations.has("reverse")?(d=u.background?a.value(u.background):e.bg,p=u.foreground?a.value(u.foreground):e.fg):(d=u.foreground?a.value(u.foreground):e.fg,p=u.background?a.value(u.background):void 0),d=mc(d,r),p=mc(p,r),u.decorations.has("dim")&&(d=pie(d));let h=is.None;return u.decorations.has("bold")&&(h|=is.Bold),u.decorations.has("italic")&&(h|=is.Italic),u.decorations.has("underline")&&(h|=is.Underline),{content:u.value,offset:l[1],color:d,bgColor:p,fontStyle:h}}))}function pie(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t)if(t[3]){const r=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${r}`}else return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(r=>`${r}${r}`).join("")}80`;const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function m_(e,t,n={}){const{lang:r="text",theme:o=e.getLoadedThemes()[0]}=n;if(p_(r)||h_(o))return Gb(t).map(u=>[{content:u[0],offset:u[1]}]);const{theme:a,colorMap:i}=e.setTheme(o);if(r==="ansi")return fie(a,t,n);const l=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==l.name)throw new cs(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${l.name}"`);if(!n.grammarState.themes.includes(a.name))throw new cs(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${a.name}"`)}return mie(t,l,a,i,n)}function hie(...e){if(e.length===2)return Ih(e[1]);const[t,n,r={}]=e,{lang:o="text",theme:a=t.getLoadedThemes()[0]}=r;if(p_(o)||h_(a))throw new cs("Plain language does not have grammar state");if(o==="ansi")throw new cs("ANSI language does not have grammar state");const{theme:i,colorMap:l}=t.setTheme(a),u=t.getLanguage(o);return new Bd(x0(n,u,i,l,r).stateStack,u.name,i.name)}function mie(e,t,n,r,o){const a=x0(e,t,n,r,o),i=new Bd(x0(e,t,n,r,o).stateStack,t.name,n.name);return Vb(a.tokens,i),a.tokens}function x0(e,t,n,r,o){const a=v0(n,o),{tokenizeMaxLineLength:i=0,tokenizeTimeLimit:l=500}=o,u=Gb(e);let d=o.grammarState?rie(o.grammarState,n.name)??rT:o.grammarContextCode!=null?x0(o.grammarContextCode,t,n,r,{...o,grammarState:void 0,grammarContextCode:void 0}).stateStack:rT,p=[];const h=[];for(let y=0,g=u.length;y<g;y++){const[b,S]=u[y];if(b===""){p=[],h.push([]);continue}if(i>0&&b.length>=i){p=[],h.push([{content:b,offset:S,color:"",fontStyle:0}]);continue}let T,E,A;o.includeExplanation&&(T=t.tokenizeLine(b,d),E=T.tokens,A=0);const C=t.tokenizeLine2(b,d,l),D=C.tokens.length/2;for(let I=0;I<D;I++){const O=C.tokens[2*I],j=I+1<D?C.tokens[2*I+2]:b.length;if(O===j)continue;const $=C.tokens[2*I+1],z=mc(r[Ed.getForeground($)],a),L=Ed.getFontStyle($),H={content:b.substring(O,j),offset:S+O,color:z,fontStyle:L};if(o.includeExplanation){const k=[];if(o.includeExplanation!=="scopeName")for(const B of n.settings){let G;switch(typeof B.scope){case"string":G=B.scope.split(/,/).map(U=>U.trim());break;case"object":G=B.scope;break;default:continue}k.push({settings:B,selectors:G.map(U=>U.split(/ /))})}H.explanation=[];let F=0;for(;O+F<j;){const B=E[A],G=b.substring(B.startIndex,B.endIndex);F+=G.length,H.explanation.push({content:G,scopes:o.includeExplanation==="scopeName"?gie(B.scopes):yie(k,B.scopes)}),A+=1}}p.push(H)}h.push(p),p=[],d=C.ruleStack}return{tokens:h,stateStack:d}}function gie(e){return e.map(t=>({scopeName:t}))}function yie(e,t){const n=[];for(let r=0,o=t.length;r<o;r++){const a=t[r];n[r]={scopeName:a,themeMatches:vie(e,a,t.slice(0,r))}}return n}function NO(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function bie(e,t,n){if(!NO(e[e.length-1],t))return!1;let r=e.length-2,o=n.length-1;for(;r>=0&&o>=0;)NO(e[r],n[o])&&(r-=1),o-=1;return r===-1}function vie(e,t,n){const r=[];for(const{selectors:o,settings:a}of e)for(const i of o)if(bie(i,t,n)){r.push(a);break}return r}function vM(e,t,n){const r=Object.entries(n.themes).filter(u=>u[1]).map(u=>({color:u[0],theme:u[1]})),o=r.map(u=>{const d=m_(e,t,{...n,theme:u.theme}),p=Ih(d),h=typeof u.theme=="string"?u.theme:u.theme.name;return{tokens:d,state:p,theme:h}}),a=Eie(...o.map(u=>u.tokens)),i=a[0].map((u,d)=>u.map((p,h)=>{const y={content:p.content,variants:{},offset:p.offset};return"includeExplanation"in n&&n.includeExplanation&&(y.explanation=p.explanation),a.forEach((g,b)=>{const{content:S,explanation:T,offset:E,...A}=g[d][h];y.variants[r[b].color]=A}),y})),l=o[0].state?new Bd(Object.fromEntries(o.map(u=>[u.theme,u.state?.getInternalStack(u.theme)])),o[0].state.lang):void 0;return l&&Vb(i,l),i}function Eie(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const o=e.map(u=>u[r]),a=t.map(()=>[]);t.forEach((u,d)=>u.push(a[d]));const i=o.map(()=>0),l=o.map(u=>u[0]);for(;l.every(u=>u);){const u=Math.min(...l.map(d=>d.content.length));for(let d=0;d<n;d++){const p=l[d];p.content.length===u?(a[d].push(p),i[d]+=1,l[d]=o[d][i[d]]):(a[d].push({...p,content:p.content.slice(0,u)}),l[d]={...p,content:p.content.slice(u),offset:p.offset+u})}}}return t}function S0(e,t,n){let r,o,a,i,l,u;if("themes"in n){const{defaultColor:d="light",cssVariablePrefix:p="--shiki-"}=n,h=Object.entries(n.themes).filter(T=>T[1]).map(T=>({color:T[0],theme:T[1]})).sort((T,E)=>T.color===d?-1:E.color===d?1:0);if(h.length===0)throw new cs("`themes` option must not be empty");const y=vM(e,t,n);if(u=Ih(y),d&&!h.find(T=>T.color===d))throw new cs(`\`themes\` option must contain the defaultColor key \`${d}\``);const g=h.map(T=>e.getTheme(T.theme)),b=h.map(T=>T.color);a=y.map(T=>T.map(E=>xie(E,b,p,d))),u&&Vb(a,u);const S=h.map(T=>v0(T.theme,n));o=h.map((T,E)=>(E===0&&d?"":`${p+T.color}:`)+(mc(g[E].fg,S[E])||"inherit")).join(";"),r=h.map((T,E)=>(E===0&&d?"":`${p+T.color}-bg:`)+(mc(g[E].bg,S[E])||"inherit")).join(";"),i=`shiki-themes ${g.map(T=>T.name).join(" ")}`,l=d?void 0:[o,r].join(";")}else if("theme"in n){const d=v0(n.theme,n);a=m_(e,t,n);const p=e.getTheme(n.theme);r=mc(p.bg,d),o=mc(p.fg,d),i=p.name,u=Ih(a)}else throw new cs("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:o,bg:r,themeName:i,rootStyle:l,grammarState:u}}function xie(e,t,n,r){const o={content:e.content,explanation:e.explanation,offset:e.offset},a=t.map(u=>gM(e.variants[u])),i=new Set(a.flatMap(u=>Object.keys(u))),l={};return a.forEach((u,d)=>{for(const p of i){const h=u[p]||"inherit";if(d===0&&r)l[p]=h;else{const y=p==="color"?"":p==="background-color"?"-bg":`-${p}`,g=n+t[d]+(p==="color"?"":y);l[g]=h}}}),o.htmlStyle=l,o}function T0(e,t,n,r={meta:{},options:n,codeToHast:(o,a)=>T0(e,o,a),codeToTokens:(o,a)=>S0(e,o,a)}){let o=t;for(const g of E0(n))o=g.preprocess?.call(r,o,n)||o;let{tokens:a,fg:i,bg:l,themeName:u,rootStyle:d,grammarState:p}=S0(e,o,n);const{mergeWhitespaces:h=!0}=n;h===!0?a=Tie(a):h==="never"&&(a=Cie(a));const y={...r,get source(){return o}};for(const g of E0(n))a=g.tokens?.call(y,a)||a;return Sie(a,{...n,fg:i,bg:l,themeName:u,rootStyle:d},y,p)}function Sie(e,t,n,r=Ih(e)){const o=E0(t),a=[],i={type:"root",children:[]},{structure:l="classic",tabindex:u="0"}=t;let d={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...u!==!1&&u!=null?{tabindex:u.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([b])=>!b.startsWith("_")))},children:[]},p={type:"element",tagName:"code",properties:{},children:a};const h=[],y={...n,structure:l,addClassToHast:hM,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return i},get pre(){return d},get code(){return p},get lines(){return h}};if(e.forEach((b,S)=>{S&&(l==="inline"?i.children.push({type:"element",tagName:"br",properties:{},children:[]}):l==="classic"&&a.push({type:"text",value:`
|
|
259
|
-
`}));let T={type:"element",tagName:"span",properties:{class:"line"},children:[]},E=0;for(const A of b){let C={type:"element",tagName:"span",properties:{...A.htmlAttrs},children:[{type:"text",value:A.content}]};A.htmlStyle;const D=tie(A.htmlStyle||gM(A));D&&(C.properties.style=D);for(const I of o)C=I?.span?.call(y,C,S+1,E,T,A)||C;l==="inline"?i.children.push(C):l==="classic"&&T.children.push(C),E+=A.content.length}if(l==="classic"){for(const A of o)T=A?.line?.call(y,T,S+1)||T;h.push(T),a.push(T)}}),l==="classic"){for(const b of o)p=b?.code?.call(y,p)||p;d.children.push(p);for(const b of o)d=b?.pre?.call(y,d)||d;i.children.push(d)}let g=i;for(const b of o)g=b?.root?.call(y,g)||g;return r&&Vb(g,r),g}function Tie(e){return e.map(t=>{const n=[];let r="",o=0;return t.forEach((a,i)=>{const l=!(a.fontStyle&&a.fontStyle&is.Underline);l&&a.content.match(/^\s+$/)&&t[i+1]?(o||(o=a.offset),r+=a.content):r?(l?n.push({...a,offset:o,content:r+a.content}):n.push({content:r,offset:o},a),o=0,r=""):n.push(a)}),n})}function Cie(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,o,a,i]=r;if(!o&&!i)return n;const l=[{...n,offset:n.offset+o.length,content:a}];return o&&l.unshift({content:o,offset:n.offset}),i&&l.push({content:i,offset:n.offset+o.length+a.length}),l}))}function _ie(e,t,n){const r={meta:{},options:n,codeToHast:(a,i)=>T0(e,a,i),codeToTokens:(a,i)=>S0(e,a,i)};let o=Qae(T0(e,t,n,r));for(const a of E0(n))o=a.postprocess?.call(r,o,n)||o;return o}const PO={light:"#333333",dark:"#bbbbbb"},LO={light:"#fffffe",dark:"#1e1e1e"},MO="__shiki_resolved";function g_(e){if(e?.[MO])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){const l=t.settings?t.settings.find(u=>!u.name&&!u.scope):void 0;l?.settings?.foreground&&(r=l.settings.foreground),l?.settings?.background&&(n=l.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?PO.light:PO.dark),n||(n=t.type==="light"?LO.light:LO.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let o=0;const a=new Map;function i(l){if(a.has(l))return a.get(l);o+=1;const u=`#${o.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${u}`]?i(l):(a.set(l,u),u)}t.settings=t.settings.map(l=>{const u=l.settings?.foreground&&!l.settings.foreground.startsWith("#"),d=l.settings?.background&&!l.settings.background.startsWith("#");if(!u&&!d)return l;const p={...l,settings:{...l.settings}};if(u){const h=i(l.settings.foreground);t.colorReplacements[h]=l.settings.foreground,p.settings.foreground=h}if(d){const h=i(l.settings.background);t.colorReplacements[h]=l.settings.background,p.settings.background=h}return p});for(const l of Object.keys(t.colors||{}))if((l==="editor.foreground"||l==="editor.background"||l.startsWith("terminal.ansi"))&&!t.colors[l]?.startsWith("#")){const u=i(t.colors[l]);t.colorReplacements[u]=t.colors[l],t.colors[l]=u}return Object.defineProperty(t,MO,{enumerable:!1,writable:!1,value:!0}),t}async function EM(e){return Array.from(new Set((await Promise.all(e.filter(t=>!fM(t)).map(async t=>await mM(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function xM(e){return(await Promise.all(e.map(async t=>pM(t)?null:g_(await mM(t))))).filter(t=>!!t)}class Aie extends Uoe{constructor(t,n,r,o={}){super(t),this._resolver=t,this._themes=n,this._langs=r,this._alias=o,this._themes.map(a=>this.loadTheme(a)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const n=g_(t);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let n=this._textmateThemeCache.get(t);n||(n=p0.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){if(this._alias[t]){const n=new Set([t]);for(;this._alias[t];){if(t=this._alias[t],n.has(t))throw new po(`Circular alias \`${Array.from(n).join(" -> ")} -> ${t}\``);n.add(t)}}return this._resolvedGrammars.get(t)}loadLanguage(t){if(this.getGrammar(t.name))return;const n=new Set([...this._langMap.values()].filter(a=>a.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);const r={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const o=this.loadGrammarWithConfiguration(t.scopeName,1,r);if(o.name=t.name,this._resolvedGrammars.set(t.name,o),t.aliases&&t.aliases.forEach(a=>{this._alias[a]=t.name}),this._loadedLanguagesCache=null,n.size)for(const a of n)this._resolvedGrammars.delete(a.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(a.scopeName),this._syncRegistry?._grammars?.delete(a.scopeName),this.loadLanguage(this._langMap.get(a.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const o of t)this.resolveEmbeddedLanguages(o);const n=Array.from(this._langGraph.entries()),r=n.filter(([o,a])=>!a);if(r.length){const o=n.filter(([a,i])=>i&&i.embeddedLangs?.some(l=>r.map(([u])=>u).includes(l))).filter(a=>!r.includes(a));throw new po(`Missing languages ${r.map(([a])=>`\`${a}\``).join(", ")}, required by ${o.map(([a])=>`\`${a}\``).join(", ")}`)}for(const[o,a]of n)this._resolver.addLanguage(a);for(const[o,a]of n)this.loadLanguage(a)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){if(this._langMap.set(t.name,t),this._langGraph.set(t.name,t),t.embeddedLangs)for(const n of t.embeddedLangs)this._langGraph.set(n,this._langMap.get(n))}}class kie{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(t,n){this._onigLib={createOnigScanner:r=>t.createScanner(r),createOnigString:r=>t.createString(r)},n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let r=[];for(let o=1;o<=n.length;o++){const a=n.slice(0,o).join(".");r=[...r,...this._injections.get(a)||[]]}return r}}let lp=0;function wie(e){lp+=1,e.warnings!==!1&&lp>=10&&lp%10===0&&console.warn(`[Shiki] ${lp} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new po("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(g_),o=new kie(e.engine,n),a=new Aie(o,r,n,e.langAlias);let i;function l(A){T();const C=a.getGrammar(typeof A=="string"?A:A.name);if(!C)throw new po(`Language \`${A}\` not found, you may need to load it first`);return C}function u(A){if(A==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};T();const C=a.getTheme(A);if(!C)throw new po(`Theme \`${A}\` not found, you may need to load it first`);return C}function d(A){T();const C=u(A);i!==A&&(a.setTheme(C),i=A);const D=a.getColorMap();return{theme:C,colorMap:D}}function p(){return T(),a.getLoadedThemes()}function h(){return T(),a.getLoadedLanguages()}function y(...A){T(),a.loadLanguages(A.flat(1))}async function g(...A){return y(await EM(A))}function b(...A){T();for(const C of A.flat(1))a.loadTheme(C)}async function S(...A){return T(),b(await xM(A))}function T(){if(t)throw new po("Shiki instance has been disposed")}function E(){t||(t=!0,a.dispose(),lp-=1)}return{setTheme:d,getTheme:u,getLanguage:l,getLoadedThemes:p,getLoadedLanguages:h,loadLanguage:g,loadLanguageSync:y,loadTheme:S,loadThemeSync:b,dispose:E,[Symbol.dispose]:E}}async function Rie(e={}){e.loadWasm;const[t,n,r]=await Promise.all([xM(e.themes||[]),EM(e.langs||[]),e.engine||FL(e.loadWasm||eoe())]);return wie({...e,themes:t,langs:n,engine:r})}async function Die(e={}){const t=await Rie(e);return{getLastGrammarState:(...n)=>hie(t,...n),codeToTokensBase:(n,r)=>m_(t,n,r),codeToTokensWithThemes:(n,r)=>vM(t,n,r),codeToTokens:(n,r)=>S0(t,n,r),codeToHast:(n,r)=>T0(t,n,r),codeToHtml:(n,r)=>_ie(t,n,r),...t,getInternalContext:()=>t}}function Iie(e,t,n){let r,o,a;{const l=e;r=l.langs,o=l.themes,a=l.engine}async function i(l){function u(g){if(typeof g=="string"){if(fM(g))return[];const b=r[g];if(!b)throw new cs(`Language \`${g}\` is not included in this bundle. You may want to load it from external source.`);return b}return g}function d(g){if(pM(g))return"none";if(typeof g=="string"){const b=o[g];if(!b)throw new cs(`Theme \`${g}\` is not included in this bundle. You may want to load it from external source.`);return b}return g}const p=(l.themes??[]).map(g=>d(g)),h=(l.langs??[]).map(g=>u(g)),y=await Die({engine:l.engine??a(),...l,themes:p,langs:h});return{...y,loadLanguage(...g){return y.loadLanguage(...g.map(u))},loadTheme(...g){return y.loadTheme(...g.map(d))}}}return i}const Oie=Iie({langs:Pre,themes:Mre,engine:()=>FL(W(()=>import("./wasm-DQxwEHae.es-CG6Dc4jp.js"),[]))}),gx={scopeName:"source.malloy",patterns:[{include:"#malloy-language"}],repository:{"malloy-language":{patterns:[{include:"#sql-string"},{include:"#comments"},{include:"#tags"},{include:"#strings"},{include:"#numbers"},{include:"#keywords"},{include:"#properties"},{include:"#functions"},{include:"#datetimes"},{include:"#identifiers-quoted"},{include:"#types"},{include:"#constants"},{include:"#timeframes"},{include:"#identifiers-unquoted"}]},"malloy-matched":{begin:"{",end:"}",patterns:[{include:"#malloy-matched"},{include:"#malloy-language"}]},"malloy-in-sql":{begin:"%{",name:"source.malloy-in-sql",end:"}%?",patterns:[{include:"#malloy-matched"},{include:"#malloy-language"}]},"sql-string":{patterns:[{begin:'(\\b[A-Za-z_][A-Za-z_0-9]*)(\\s*\\.\\s*)(sql)(\\s*\\(\\s*)(""")',end:'"""',beginCaptures:{1:{name:"variable.other"},3:{name:"keyword.control.sql"},5:{name:"punctuation.sql-block.open"}},endCaptures:{0:{name:"punctuation.sql-block.close"}},name:"source.sql",patterns:[{include:"#malloy-in-sql"},{include:"source.sql"}]}]},functions:{patterns:[{match:"(?i)\\b(count)(\\s*\\()(distinct)",captures:{1:{name:"entity.name.function"},3:{name:"entity.name.function.modifier"}}},{match:"(?i)\\b(AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE|UNGROUPED)(\\s*\\()",captures:{1:{name:"entity.name.function"}}},{match:"(?i)\\b([a-zA-Z_][a-zA-Z_0-9]*)(\\s*\\()",captures:{1:{name:"entity.name.function"}}},{match:"(?i)\\b([a-zA-Z_][a-zA-Z_0-9]*)(!)(timestamp|number|string|boolean|date)?(\\s*\\()",captures:{1:{name:"entity.name.function"},3:{name:"entity.name.type"}}}]},datetimes:{patterns:[{match:"(?i)@[0-9]{4}-[0-9]{2}-[0-9]{2}[ T][0-9]{2}:[0-9]{2}((:[0-9]{2})(([\\.,][0-9]+)(\\[[A-Za-z_/]+\\])?)?)?",name:"constant.numeric.timestamp"},{match:"(?i)@[0-9]{4}(-Q[1-4]|-[0-9]{2}(-[0-9]{2}(-WK)?)?)?",name:"constant.numeric.date"}]},"identifiers-quoted":{patterns:[{match:"`[^`]*`",name:"variable.other.quoted"}]},"identifiers-unquoted":{patterns:[{match:"(?i)\\b[A-Za-z_][A-Za-z_0-9]*\\b",name:"variable.other"}]},timeframes:{patterns:[{match:"(?i)\\b((year|quarter|month|week|day|hour|minute|second)s?)\\b",name:"keyword.other.timeframe"},{match:"(?i)\\b(day_of_year|day_of_month)\\b",name:"keyword.other.timeframe"}]},comments:{patterns:[{begin:"/\\*",end:"\\*/",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"comment.block"},{begin:"//",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{begin:"--",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-hyphen"}]},tags:{patterns:[{match:"##\\n",name:"string.quoted",captures:{0:{name:"string.quoted"}}},{begin:'#"',end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{match:"#\\n",name:"string.quoted",captures:{0:{name:"string.quoted"}}},{begin:"#\\s",end:"\\n",beginCaptures:{0:{name:"support.type.property-name.json"}},name:"comment.line.double-slash",patterns:[{include:"#tag-values"}]},{begin:"##\\s",end:"\\n",beginCaptures:{0:{name:"support.type.property-name.json"}},name:"comment.line.double-slash",patterns:[{include:"#tag-values"}]},{begin:"#",end:"\\n",beginCaptures:{0:{name:"string.quoted"}},name:"string.quoted"}],repository:{"tag-values":{name:"support.type.property-name.json",match:'(-)?((?:[^\\s=#]+)|(?:"[^#]+"))(?:\\s*(=)\\s*((?:[^\\s=#]+)|(?:"[^#]+")))?',captures:{1:{name:"keyword.control.negate"},2:{name:"support.type.property-name.json"},3:{name:"keyword.operator.comparison.ts"},4:{name:"string.quoted"}}}}},strings:{patterns:[{begin:"'",end:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.single",patterns:[{include:"#escapes"}]},{begin:'"',end:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.double",patterns:[{include:"#escapes"}]},{begin:'"""',end:'"""',beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.triple"},{begin:"(?i)[r|/]'",end:"'",name:"string.regexp",patterns:[{include:"#regex-escapes"}]}],repository:{escapes:{name:"constant.character.escape",match:"\\\\(u[A-Fa-f0-9]{4}|.)",captures:{0:{name:"constant.character.escape"}}},"regex-escapes":{name:"constant.character.escape",match:"\\\\.",captures:{0:{name:"constant.character.escape"}}}}},numbers:{match:"(?i)(\\b((0|[1-9][0-9]*)(E[+-]?[0-9]+|\\.[0-9]*)?)|\\.[0-9]+)",name:"constant.numeric"},constants:{patterns:[{match:"(?i)\\bnull\\b",name:"constant.language.null"},{match:"(?i)\\btrue\\b",name:"constant.language.true"},{match:"(?i)\\bfalse\\b",name:"constant.language.false"}]},types:{patterns:[{match:"(?i)\\bstring\\b",name:"entity.name.type.string"},{match:"(?i)\\bnumber\\b",name:"entity.name.type.number"},{match:"(?i)\\bdate\\b",name:"entity.name.type.date"},{match:"(?i)\\btimestamp\\b",name:"entity.name.type.timestamp"},{match:"(?i)\\bboolean\\b",name:"entity.name.type.boolean"}]},properties:{patterns:[{match:"(?i)\\baccept\\b",name:"keyword.control.accept"},{match:"(?i)\\bselect\\b",name:"keyword.control.select"},{match:"(?i)\\bconnection\\b",name:"keyword.control.connection"},{match:"(?i)\\brun\\b",name:"keyword.control.run"},{match:"(?i)\\bextend\\b",name:"keyword.control.extend"},{match:"(?i)\\brefine\\b",name:"keyword.control.refine"},{match:"(?i)\\baggregate\\b",name:"keyword.control.aggregate"},{match:"(?i)\\bsample\\b",name:"keyword.control.sample"},{match:"(?i)\\bcalculate\\b",name:"keyword.control.calculate"},{match:"(?i)\\btimezone\\b",name:"keyword.control.timezone"},{match:"(?i)\\bdimension\\b",name:"keyword.control.dimension"},{match:"(?i)\\bexcept\\b",name:"keyword.control.except"},{match:"(?i)\\bsource\\b",name:"keyword.control.source"},{match:"(?i)\\bgroup_by\\b",name:"keyword.control.group_by"},{match:"(?i)\\bhaving\\b",name:"keyword.control.having"},{match:"(?i)\\bindex\\b",name:"keyword.control.index"},{match:"(?i)\\bjoin_one\\b",name:"keyword.control.join_one"},{match:"(?i)\\bwith\\b",name:"keyword.control.with"},{match:"(?i)\\bjoin_many\\b",name:"keyword.control.join_many"},{match:"(?i)\\bjoin_cross\\b",name:"keyword.control.join_cross"},{match:"(?i)\\blimit\\b",name:"keyword.control.limit"},{match:"(?i)\\bmeasure\\b",name:"keyword.control.measure"},{match:"(?i)\\bnest\\b",name:"keyword.control.nest"},{match:"(?i)\\border_by\\b",name:"keyword.control.order_by"},{match:"(?i)\\bpartition_by\\b",name:"keyword.control.partition_by"},{match:"(?i)\\bprimary_key\\b",name:"keyword.control.primary_key"},{match:"(?i)\\bproject\\b",name:"keyword.control.project"},{match:"(?i)\\bquery\\b",name:"keyword.control.query"},{match:"(?i)\\brename\\b",name:"keyword.control.rename"},{match:"(?i)\\btop\\b",name:"keyword.control.top"},{match:"(?i)\\bview\\b",name:"keyword.control.view"},{match:"(?i)\\bwhere\\b",name:"keyword.control.where"},{match:"(?i)\\bdeclare\\b",name:"keyword.control.declare"}]},keywords:{patterns:[{match:"(?i)\\bis\\b",name:"keyword.control.is"},{match:"(?i)\\bon\\b",name:"keyword.control.on"},{match:"(?i)\\bnot\\b",name:"keyword.other.not"},{match:"(?i)\\bor\\b",name:"keyword.other.or"},{match:"(?i)\\bdesc\\b",name:"keyword.control.desc"},{match:"(?i)\\bby\\b",name:"keyword.control.by"},{match:"(?i)\\band\\b",name:"keyword.other.and"},{match:"(?i)\\basc\\b",name:"keyword.control.asc"},{match:"(?i)\\bfor\\b",name:"keyword.other.for"},{match:"(?i)\\belse\\b",name:"keyword.other.else"},{match:"(?i)\\bto\\b",name:"keyword.other.to"},{match:"(?i)\\bwhen\\b",name:"keyword.other.when"},{match:"(?i)\\bpick\\b",name:"keyword.other.pick"},{match:"(?i)\\bimport\\b",name:"keyword.control.import"}]}}},Nie={...gx,patterns:[...gx.patterns,{include:"#docvar"}],repository:{...gx.repository,docvar:{patterns:[{match:"\\<\\<[^(\\>\\>)]*\\>\\>",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"markup.italic.markdown"}]}}},Pie={name:"Malloy SQL",scopeName:"source.malloy-sql",patterns:[{include:"#malloysql-sql"}],repository:{"malloysql-sql":{beginCaptures:{0:{name:"entity.other.attribute.malloy-sql"},1:{name:"entity.other.attribute.malloy-sql"},3:{name:"comment.line.double-slash"}},name:"meta.embedded.block.malloysql.sql",patterns:[{include:"#comments"},{begin:"%{",end:"}%",beginCaptures:{0:{name:"punctuation.definition.malloy-sql"}},endCaptures:{0:{name:"punctuation.definition.malloy-sql"}},name:"meta.embedded.block.malloy",patterns:[{include:"source.malloy"}]},{include:"source.sql"}]},comments:{patterns:[{begin:"/\\*",end:"\\*/",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"comment.block"},{begin:"//",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{begin:"--",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-hyphen"}]}}},SM="github-light",Lie=Oie({themes:[SM],langs:["sql","json","typescript",{name:"malloy",scopeName:"source.malloy",embeddedLangs:["sql"],...Nie},{name:"malloysql",scopeName:"source.malloy-sql",embeddedLangs:["sql"],...Pie}]});async function C0(e,t){return(await Lie).codeToHtml(e,{lang:t,theme:SM})}const Mie=_.lazy(()=>Promise.resolve().then(()=>R7));function qb({result:e,minHeight:t,maxHeight:n,hideToggle:r=!1}){const[o,a]=_.useState(!1),[i,l]=_.useState(0),[u,d]=_.useState(!1),p=_.useRef(null),h=_.useRef(null),[y,g]=_.useState(void 0),[b,S]=_.useState(!1),T=_.useCallback(()=>{const I=o;a(!o),I&&h.current&&setTimeout(()=>{h.current?.scrollIntoView({behavior:"smooth",block:"start"})},100)},[o]),E=_.useCallback(I=>{l(I)},[]);if(_.useEffect(()=>{if(r){d(!1);return}if(b){d(!0);return}if(i===0){d(!1);return}const I=t-20,O=i>I;i<I&&g(i+20),d(O)},[i,b,t,r]),!e)return null;const A=v.jsx(eo,{text:"Loading...",centered:!0,size:32}),C=b?o?n-40:t-40:void 0,D=y?{minHeight:`${y}px`,height:"100%"}:{height:"100%"};return v.jsx(v.Fragment,{children:v.jsxs(gt,{ref:h,sx:{position:"relative",minHeight:`${t}px`,maxHeight:`${o?n:t}px`,border:"0px",borderRadius:0,overflow:"hidden",display:"flex",flexDirection:"column",...D},children:[v.jsx(gt,{ref:p,sx:{flex:1,overflow:"scroll",p:0,pb:u?"40px":1},children:e&&v.jsx(_.Suspense,{fallback:A,children:v.jsx(Mie,{result:e,height:C,isFillElement:I=>{S(I)},onSizeChange:E})})||A}),u&&v.jsx(gt,{sx:{position:"absolute",bottom:0,left:0,right:0,height:"32px",backgroundColor:"rgba(255,255,255,0.75)",display:"flex",alignItems:"center",justifyContent:"center"},children:v.jsx(Gn,{size:"small",onClick:T,sx:{color:"text.secondary","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},title:o?"Collapse to original size":"Expand to full size",children:o?v.jsx(bZ,{sx:{fontSize:30}}):v.jsx(vZ,{sx:{fontSize:30}})})})]})})}function TM({open:e,onClose:t,result:n,title:r="Results"}){return v.jsxs(xl,{open:e,onClose:t,maxWidth:!1,fullWidth:!0,sx:{"& .MuiDialog-paper":{width:"95vw",height:"95vh",maxWidth:"none"}},children:[v.jsxs(Tl,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r,v.jsx(Gn,{onClick:t,sx:{color:"#666666"},children:v.jsx(kl,{})})]}),v.jsx(Sl,{sx:{height:"calc(95vh - 120px)",overflow:"auto",padding:"0 16px"},children:v.jsx(qb,{result:n,minHeight:800,maxHeight:800,hideToggle:!0})})]})}function Fie({queryName:e,annotations:t,resourceUri:n}){const[r,o]=Fe.useState(),[a,i]=Fe.useState(!1),{packageName:l,projectName:u,versionId:d,modelPath:p}=Vn(n),{apiClients:h}=kn(),{data:y,isSuccess:g,isLoading:b}=no({queryKey:["namedQueryResult",n,e],queryFn:()=>h.queryResults.executeQuery(u,l,p,void 0,void 0,e,d),enabled:!0});return _.useEffect(()=>{if(t&&t.length>0){const S=t.map(T=>`// ${T}`).join(`
|
|
260
|
-
`);C0(S,"typescript").then(T=>{o(T)})}},[t]),v.jsxs(QS,{children:[r&&v.jsx(gt,{sx:{marginBottom:"16px"},children:v.jsx(Ze,{fontSize:"12px",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:v.jsx("div",{className:"content",dangerouslySetInnerHTML:{__html:r}})})}),v.jsxs(gt,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"8px"},children:[v.jsx(Ze,{variant:"body2",sx:{fontSize:"15px",fontWeight:"600",color:"#495057",padding:"8px 16px",backgroundColor:"#f8f9fa",borderRadius:"6px",border:"1px solid #e9ecef"},children:e}),v.jsx(Gn,{sx:{backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px"},onClick:()=>i(!0),children:v.jsx(vd,{sx:{fontSize:"18px",color:"#666666"}})})]}),v.jsxs(KS,{sx:{position:"relative"},children:[b&&v.jsx(gt,{sx:{padding:"20px",textAlign:"center"},children:v.jsx(Ze,{children:"Loading results..."})}),g&&y?.data?.result&&v.jsx(qb,{result:y.data.result,minHeight:300,maxHeight:600,hideToggle:!1})]}),v.jsx(TM,{open:a,onClose:()=>i(!1),result:y?.data?.result||"",title:`Query: ${e}`})]})}function GTe({onChange:e,resourceUri:t}){const{modelPath:n}=Vn(t),{data:r,isError:o,isLoading:a,error:i}=NL(t),[l,u]=Fe.useState(!1),[d,p]=Fe.useState(),[h,y]=Fe.useState(0),[g,b]=_.useState("");if(a)return v.jsx(eo,{text:"Fetching Model..."});if(o)return console.log("error",i),v.jsx(to,{error:i,context:`Model > ${n}`});const S=A=>{p(A),e&&e(A)},T=A=>{y(A)},E=()=>{const A=window.location.href;navigator.clipboard.writeText(A).then(()=>b("URL copied to clipboard!")).catch(()=>b("Failed to copy URL"))};return v.jsxs(v.Fragment,{children:[v.jsxs(gt,{sx:{position:"relative",maxWidth:"1200px",margin:"0 auto",paddingTop:"24px"},children:[Array.isArray(r?.sourceInfos)&&r.sourceInfos.length>0&&v.jsxs(Mr,{spacing:2,component:"section",children:[v.jsxs(gt,{sx:{padding:"0 0 16px 0",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[v.jsx(Ze,{variant:"h1",sx:{fontSize:"28px",fontWeight:"600",color:"#1a1a1a",marginBottom:"8px",marginTop:"0",paddingLeft:"0"},children:"Sources"}),v.jsx(wo,{title:"Click to copy and share",children:v.jsx(RL,{sx:{fontSize:"24px",color:"#666666",cursor:"pointer"},onClick:E})})]}),v.jsx(PL,{data:r,onChange:S,onSourceChange:T,existingQuery:d,initialSelectedSourceIndex:h,resourceUri:t}),v.jsx(Gn,{sx:{position:"absolute",top:"90px",right:"4px",backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px",zIndex:2},onClick:()=>u(!0),children:v.jsx(vd,{sx:{fontSize:"18px",color:"#666666"}})})]}),r?.queries?.length>0&&v.jsxs(Mr,{spacing:2,component:"section",sx:{marginTop:"24px"},children:[v.jsx(gt,{sx:{padding:"0 0 16px 0"},children:v.jsx(Ze,{variant:"h2",sx:{fontSize:"24px",fontWeight:"600",color:"#1a1a1a",marginBottom:"0",marginTop:"8px",paddingLeft:"0"},children:"Named Queries"})}),r.queries.map(A=>v.jsx(Fie,{queryName:A.name,annotations:A.annotations,resourceUri:t},A.name))]}),v.jsx(LL,{open:l,onClose:()=>u(!1),resourceUri:t,data:r,title:`Model: ${n.split("/").pop()}`,existingQuery:d,initialSelectedSourceIndex:h,onChange:S,onSourceChange:T})]}),v.jsx(ms,{open:g!=="",autoHideDuration:6e3,onClose:()=>b(""),message:g})]})}const CM=Mn(v.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"})),jie=Mn(v.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}));_.lazy(()=>Promise.resolve().then(()=>R7));function Bie(e){const{projectName:t,packageName:n}=Vn(e.resourceUri);if(!t||!n)throw new Error("Project and Package name must be provided for query embedding.");return JSON.stringify({...e})}function Uie({cell:e,hideCodeCellIcon:t,hideEmbeddingIcon:n,resourceUri:r,index:o}){const[a,i]=Fe.useState(!1),[l,u]=Fe.useState(!1),[d,p]=Fe.useState(!1),[h,y]=Fe.useState(),[g,b]=Fe.useState(),[S,T]=Fe.useState(!1),[E,A]=_.useState(""),C=/import\s*\{([^}]+)\}\s*from\s*['"`][^'"`]+['"`]/,D=/import\s*(?:\{[^}]*\}\s*from\s*)?['"`]([^'"`]+)['"`]/,I=!!e.text&&(C.test(e.text)||D.test(e.text)),O=()=>{if(!e.newSources||e.newSources.length===0)return 0;let L=[],H="";if(e.text){const k=e.text.match(C);k&&(L=k[1].split(",").map(B=>B.trim()));const F=e.text.match(D);F&&(H=F[1].trim())}for(let k=0;k<e.newSources.length;k++)try{const F=JSON.parse(e.newSources[k]);if(L.length>0&&L.includes(F.name)||H&&H===F.path)return k}catch{continue}return 0},j=e.newSources&&e.newSources.length>0?{sourceInfos:e.newSources,resource:r}:void 0,$=Bie({query:e.text,resourceUri:r});_.useEffect(()=>{e.type==="code"&&C0(e.text,"malloy").then(L=>{y(L)})},[e]),_.useEffect(()=>{C0($,"typescript").then(L=>{b(L)})},[$]);const z=()=>{const L=window.location.href;navigator.clipboard.writeText(L).then(()=>A("URL copied to clipboard!")).catch(()=>A("Failed to copy URL"))};return e.type==="markdown"&&v.jsx(QS,{children:v.jsxs(gt,{sx:{"& h1, & h2, & h3, & h4, & h5, & h6":{fontWeight:"600",color:"#1a1a1a",marginBottom:"8px",marginTop:"16px"},"& h1":{fontSize:"28px"},"& h2":{fontSize:"24px"},"& h3":{fontSize:"20px"},"& p":{color:"#333333",lineHeight:"1.7",marginBottom:"8px",fontSize:"16px"},"& ul, & ol":{color:"#333333",lineHeight:"1.7",marginBottom:"8px",fontSize:"16px"},"& li":{marginBottom:"4px"}},children:[o===0?v.jsxs(Mr,{direction:"row",alignItems:"flex-start",justifyContent:"space-between",children:[v.jsx(o0,{children:e.text}),v.jsx(wo,{title:"Click to copy and share",children:v.jsx(RL,{sx:{fontSize:"24px",color:"#666666",cursor:"pointer",marginTop:"26px"},onClick:z})})]}):v.jsx(o0,{children:e.text}),v.jsx(ms,{open:E!=="",autoHideDuration:6e3,onClose:()=>A(""),message:E})]})})||e.type==="code"&&v.jsxs(QS,{children:[(!t||!n&&e.result||e.newSources&&e.newSources.length>0)&&v.jsx(Mr,{sx:{flexDirection:"column",gap:"8px",marginBottom:"16px"},children:e.newSources&&e.newSources.length>0&&I&&v.jsx(KS,{sx:{position:"relative",padding:"0"},children:v.jsxs(gt,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingLeft:"24px",paddingRight:"8px"},children:[h&&v.jsx("span",{dangerouslySetInnerHTML:{__html:e.text.length>50&&h?`${h.substring(0,50)}...`:h},style:{fontFamily:"monospace",fontSize:"14px",flex:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",marginRight:"8px"}}),v.jsx(Gn,{sx:{backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px",flexShrink:0},onClick:()=>T(!0),children:v.jsx(vd,{sx:{fontSize:"18px",color:"#666666"}})})]})})}),v.jsx(LL,{open:S,onClose:()=>T(!1),title:"Data Sources",hasValidImport:I,resourceUri:r,data:j,initialSelectedSourceIndex:O()}),v.jsxs(xl,{open:a,onClose:()=>i(!1),maxWidth:"lg",fullWidth:!0,children:[v.jsxs(Tl,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:["Malloy Code",v.jsx(Gn,{onClick:()=>i(!1),sx:{color:"#666666"},children:v.jsx(kl,{})})]}),v.jsx(Sl,{children:v.jsx(gt,{sx:{border:"1px solid #e0e0e0",borderRadius:"8px",padding:"16px",fontFamily:"monospace",fontSize:"14px",lineHeight:"1.5",overflow:"auto",maxHeight:"70vh",backgroundColor:"#ffffff"},children:v.jsx("pre",{className:"code-display",style:{margin:0},dangerouslySetInnerHTML:{__html:h}})})})]}),v.jsxs(xl,{open:l,onClose:()=>u(!1),maxWidth:"lg",fullWidth:!0,children:[v.jsxs(Tl,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:["Embeddable Code",v.jsx(Gn,{onClick:()=>u(!1),sx:{color:"#666666"},children:v.jsx(kl,{})})]}),v.jsx(Sl,{children:v.jsxs(Mr,{sx:{flexDirection:"row",justifyContent:"space-between",alignItems:"flex-start"},children:[v.jsx(Ze,{component:"div",sx:{fontSize:"12px",fontFamily:"monospace","& .line":{textWrap:"wrap"},flex:1},dangerouslySetInnerHTML:{__html:g}}),v.jsx(wo,{title:"Copy Embeddable Code",children:v.jsx(Gn,{sx:{width:"24px",height:"24px",marginLeft:"8px",color:"#666666"},onClick:()=>{navigator.clipboard.writeText($)},children:v.jsx(jie,{})})})]})})]}),v.jsx(TM,{open:d,onClose:()=>p(!1),result:e.result||"",title:"Results"}),e.result&&v.jsxs(KS,{sx:{position:"relative"},children:[v.jsx(gt,{sx:{paddingTop:"24px"},children:v.jsx(qb,{result:e.result,minHeight:300,maxHeight:1e3})}),v.jsx(gt,{sx:{position:"absolute",bottom:0,left:0,right:0,height:"40px",background:"linear-gradient(transparent, rgba(255, 255, 255, 0.9))",pointerEvents:"none",zIndex:1}}),v.jsxs(Mr,{sx:{position:"absolute",top:"8px",right:"8px",flexDirection:"row",gap:"8px",alignItems:"center",zIndex:2},children:[!t&&v.jsx(Gn,{sx:{backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px"},onClick:L=>{L.stopPropagation(),i(!0)},children:v.jsx(CM,{sx:{fontSize:"18px",color:"#666666"}})}),v.jsx(Gn,{sx:{backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px"},onClick:()=>p(!0),children:v.jsx(vd,{sx:{fontSize:"18px",color:"#666666"}})})]})]})]})}function zie({resourceUri:e}){const{apiClients:t}=kn(),{projectName:n,packageName:r,versionId:o,modelPath:a}=Vn(e),{data:i,isSuccess:l,isError:u,error:d}=no({queryKey:[e],queryFn:async()=>(await t.notebooks.getNotebook(n,r,a,o)).data});return v.jsx(Cre,{children:v.jsx(_re,{children:v.jsxs(Mr,{spacing:3,component:"section",children:[!l&&!u&&v.jsx(eo,{text:"Fetching Notebook..."}),l&&i.notebookCells?.map((p,h)=>v.jsx(Uie,{cell:p,index:h,resourceUri:e},h)),u&&d.status===404&&v.jsxs(Ze,{variant:"body2",sx:{color:"#666666"},children:[v.jsx("code",{children:`${n} > ${r} > ${a}`})," ","not found."]}),u&&d.status!==404&&v.jsx(to,{error:d,context:`${n} > ${r} > ${a}`})]})})})}const Hie=Mn(v.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),Fu=pC({createStyledComponent:Qe("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>rn({props:e,name:"MuiStack"})});class Gp{constructor(t,n){this.workbookData=n,this.workbookStorage=t,this.workbookData?this.isSaved=!0:(this.workbookData={models:[],cells:[],workbookPath:void 0},this.isSaved=!1)}isSaved;workbookStorage;getWorkbookData(){return this.workbookData}getWorkbookPath(){return this.workbookData.workbookPath}async renameWorkbook(t){if(this.workbookData.workbookPath.path!==t)try{await this.workbookStorage.moveWorkbook(this.workbookData.workbookPath,{path:t,workspace:this.workbookData.workbookPath.workspace})}catch{}return this.workbookData.workbookPath.path=t,this.isSaved=!1,await this.saveWorkbook()}getCells(){return this.workbookData.cells}deleteCell(t){return this.workbookData.cells=[...this.workbookData.cells.slice(0,t),...this.workbookData.cells.slice(t+1)],this.isSaved=!1,this}insertCell(t,n){return this.workbookData.cells=[...this.workbookData.cells.slice(0,t),n,...this.workbookData.cells.slice(t)],this.isSaved=!1,this}setCell(t,n){return this.workbookData.cells[t]=n,this.isSaved=!1,this}setModels(t){return this.workbookData.models=t,this.isSaved=!1,this}getModels(){return this.workbookData.models}updateWorkbookData(t){return this.workbookData=t,this.isSaved=!1,this}async saveWorkbook(){if(!this.isSaved){if(!this.workbookData.workbookPath)throw new Error("Workbook path is not set");await this.workbookStorage.saveWorkbook(this.workbookData.workbookPath,JSON.stringify(this.workbookData)),this.isSaved=!0}return new Gp(this.workbookStorage,this.workbookData)}toMalloyWorkbook(){return this.workbookData.cells.map(t=>t.isMarkdown?`>>>markdown
|
|
261
|
-
`+t.value:`>>>malloy
|
|
262
|
-
import {${t.sourceName}}" from '${t.modelPath}'"
|
|
263
|
-
`+t.value+`
|
|
264
|
-
`).join(`
|
|
265
|
-
`)}static newWorkbook(t){return new Gp(t,void 0)}static async loadWorkbook(t,n){let r;try{const o=await t.getWorkbook(n);o&&(r=JSON.parse(o))}catch{r={models:[],cells:[],workbookPath:n}}return new Gp(t,r)}}const Qg=Mn(v.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),FO=Mn(v.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"})),$ie=Mn(v.jsx("path",{d:"M17 7h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5m-6 8H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4zm-3-4h8v2H8z"}));function Le(){return Le=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Le.apply(null,arguments)}function Kr(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}const Gie=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Vie=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,qie={};function jO(e,t){return(qie.jsx?Vie:Gie).test(e)}var ju={},yx,BO;function Wie(){if(BO)return yx;BO=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,i=/^[;\s]*/,l=/^\s+|\s+$/g,u=`
|
|
266
|
-
`,d="/",p="*",h="",y="comment",g="declaration";yx=function(S,T){if(typeof S!="string")throw new TypeError("First argument must be a string");if(!S)return[];T=T||{};var E=1,A=1;function C(F){var B=F.match(t);B&&(E+=B.length);var G=F.lastIndexOf(u);A=~G?F.length-G:A+F.length}function D(){var F={line:E,column:A};return function(B){return B.position=new I(F),$(),B}}function I(F){this.start=F,this.end={line:E,column:A},this.source=T.source}I.prototype.content=S;function O(F){var B=new Error(T.source+":"+E+":"+A+": "+F);if(B.reason=F,B.filename=T.source,B.line=E,B.column=A,B.source=S,!T.silent)throw B}function j(F){var B=F.exec(S);if(B){var G=B[0];return C(G),S=S.slice(G.length),B}}function $(){j(n)}function z(F){var B;for(F=F||[];B=L();)B!==!1&&F.push(B);return F}function L(){var F=D();if(!(d!=S.charAt(0)||p!=S.charAt(1))){for(var B=2;h!=S.charAt(B)&&(p!=S.charAt(B)||d!=S.charAt(B+1));)++B;if(B+=2,h===S.charAt(B-1))return O("End of comment missing");var G=S.slice(2,B-2);return A+=2,C(G),S=S.slice(B),A+=2,F({type:y,comment:G})}}function H(){var F=D(),B=j(r);if(B){if(L(),!j(o))return O("property missing ':'");var G=j(a),U=F({type:g,property:b(B[0].replace(e,h)),value:G?b(G[0].replace(e,h)):h});return j(i),U}}function k(){var F=[];z(F);for(var B;B=H();)B!==!1&&(F.push(B),z(F));return F}return $(),k()};function b(S){return S?S.replace(l,h):h}return yx}var UO;function Yie(){if(UO)return ju;UO=1;var e=ju&&ju.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ju,"__esModule",{value:!0}),ju.default=n;var t=e(Wie());function n(r,o){var a=null;if(!r||typeof r!="string")return a;var i=(0,t.default)(r),l=typeof o=="function";return i.forEach(function(u){if(u.type==="declaration"){var d=u.property,p=u.value;l?o(d,p,u):p&&(a=a||{},a[d]=p)}}),a}return ju}var cp={},zO;function Qie(){if(zO)return cp;zO=1,Object.defineProperty(cp,"__esModule",{value:!0}),cp.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,a=function(d){return!d||n.test(d)||e.test(d)},i=function(d,p){return p.toUpperCase()},l=function(d,p){return"".concat(p,"-")},u=function(d,p){return p===void 0&&(p={}),a(d)?d:(d=d.toLowerCase(),p.reactCompat?d=d.replace(o,l):d=d.replace(r,l),d.replace(t,i))};return cp.camelCase=u,cp}var up,HO;function Kie(){if(HO)return up;HO=1;var e=up&&up.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(Yie()),n=Qie();function r(o,a){var i={};return!o||typeof o!="string"||(0,t.default)(o,function(l,u){l&&u&&(i[(0,n.camelCase)(l,a)]=u)}),i}return r.default=r,up=r,up}var Xie=Kie();const Zie=kb(Xie),Wb=_M("end"),Ri=_M("start");function _M(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Jie(e){const t=Ri(e),n=Wb(e);if(t&&n)return{start:t,end:n}}function Vp(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?$O(e.position):"start"in e||"end"in e?$O(e):"line"in e||"column"in e?cT(e):""}function cT(e){return GO(e&&e.line)+":"+GO(e&&e.column)}function $O(e){return cT(e&&e.start)+"-"+cT(e&&e.end)}function GO(e){return e&&typeof e=="number"?e:1}class ro extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let o="",a={},i=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?o=t:!a.cause&&t&&(i=!0,o=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?a.ruleId=r:(a.source=r.slice(0,u),a.ruleId=r.slice(u+1))}if(!a.place&&a.ancestors&&a.ancestors){const u=a.ancestors[a.ancestors.length-1];u&&(a.place=u.position)}const l=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=l?l.line:void 0,this.name=Vp(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=i&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ro.prototype.file="";ro.prototype.name="";ro.prototype.reason="";ro.prototype.message="";ro.prototype.stack="";ro.prototype.column=void 0;ro.prototype.line=void 0;ro.prototype.ancestors=void 0;ro.prototype.cause=void 0;ro.prototype.fatal=void 0;ro.prototype.place=void 0;ro.prototype.ruleId=void 0;ro.prototype.source=void 0;const y_={}.hasOwnProperty,ese=new Map,tse=/[A-Z]/g,nse=new Set(["table","tbody","thead","tfoot","tr"]),rse=new Set(["td","th"]),AM="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ose(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=fse(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=dse(n,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Es:jd,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=kM(o,e,void 0);return a&&typeof a!="string"?a:o.create(e,o.Fragment,{children:a||void 0},void 0)}function kM(e,t,n){if(t.type==="element")return ase(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return ise(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return lse(e,t,n);if(t.type==="mdxjsEsm")return sse(e,t);if(t.type==="root")return cse(e,t,n);if(t.type==="text")return use(e,t)}function ase(e,t,n){const r=e.schema;let o=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(o=Es,e.schema=o),e.ancestors.push(t);const a=RM(e,t.tagName,!1),i=pse(e,t);let l=v_(e,t);return nse.has(t.tagName)&&(l=l.filter(function(u){return typeof u=="string"?!um(u):!0})),wM(e,i,a,t),b_(i,l),e.ancestors.pop(),e.schema=r,e.create(t,a,i,n)}function ise(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Oh(e,t.position)}function sse(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Oh(e,t.position)}function lse(e,t,n){const r=e.schema;let o=r;t.name==="svg"&&r.space==="html"&&(o=Es,e.schema=o),e.ancestors.push(t);const a=t.name===null?e.Fragment:RM(e,t.name,!0),i=hse(e,t),l=v_(e,t);return wM(e,i,a,t),b_(i,l),e.ancestors.pop(),e.schema=r,e.create(t,a,i,n)}function cse(e,t,n){const r={};return b_(r,v_(e,t)),e.create(t,e.Fragment,r,n)}function use(e,t){return t.value}function wM(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function b_(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function dse(e,t,n){return r;function r(o,a,i,l){const u=Array.isArray(i.children)?n:t;return l?u(a,i,l):u(a,i)}}function fse(e,t){return n;function n(r,o,a,i){const l=Array.isArray(a.children),u=Ri(r);return t(o,a,i,l,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function pse(e,t){const n={};let r,o;for(o in t.properties)if(o!=="children"&&y_.call(t.properties,o)){const a=mse(e,o,t.properties[o]);if(a){const[i,l]=a;e.tableCellAlignToStyle&&i==="align"&&typeof l=="string"&&rse.has(t.tagName)?r=l:n[i]=l}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function hse(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const a=o.expression;a.type;const i=a.properties[0];i.type,Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else Oh(e,t.position);else{const o=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const i=r.value.data.estree.body[0];i.type,a=e.evaluater.evaluateExpression(i.expression)}else Oh(e,t.position);else a=r.value===null?!0:r.value;n[o]=a}return n}function v_(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:ese;for(;++r<t.children.length;){const a=t.children[r];let i;if(e.passKeys){const u=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(u){const d=o.get(u)||0;i=u+"-"+d,o.set(u,d+1)}}const l=kM(e,a,i);l!==void 0&&n.push(l)}return n}function mse(e,t,n){const r=cm(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Hb(n):$b(n)),r.property==="style"){let o=typeof n=="object"?n:gse(e,String(n));return e.stylePropertyNameCase==="css"&&(o=yse(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&r.space?Goe[r.property]||r.property:r.attribute,n]}}function gse(e,t){try{return Zie(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,o=new ro("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=AM+"#cannot-parse-style-attribute",o}}function RM(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const o=t.split(".");let a=-1,i;for(;++a<o.length;){const l=jO(o[a])?{type:"Identifier",name:o[a]}:{type:"Literal",value:o[a]};i=i?{type:"MemberExpression",object:i,property:l,computed:!!(a&&l.type==="Literal"),optional:!1}:l}r=i}else r=jO(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const o=r.value;return y_.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(r);Oh(e)}function Oh(e,t){const n=new ro("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=AM+"#cannot-handle-mdx-estrees-without-createevaluater",n}function yse(e){const t={};let n;for(n in e)y_.call(e,n)&&(t[bse(n)]=e[n]);return t}function bse(e){let t=e.replace(tse,vse);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function vse(e){return"-"+e.toLowerCase()}const bx={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"]},Ese={};function E_(e,t){const n=Ese,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,o=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return DM(e,r,o)}function DM(e,t,n){if(xse(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return VO(e.children,t,n)}return Array.isArray(e)?VO(e,t,n):""}function VO(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=DM(e[o],t,n);return r.join("")}function xse(e){return!!(e&&typeof e=="object")}const qO=document.createElement("i");function x_(e){const t="&"+e+";";qO.innerHTML=t;const n=qO.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function ta(e,t,n,r){const o=e.length;let a=0,i;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a<r.length;)i=r.slice(a,a+1e4),i.unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function Sa(e,t){return e.length>0?(ta(e,e.length,0,t),e):t}const WO={}.hasOwnProperty;function IM(e){const t={};let n=-1;for(;++n<e.length;)Sse(t,e[n]);return t}function Sse(e,t){let n;for(n in t){const r=(WO.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){WO.call(r,a)||(r[a]=[]);const i=o[a];Tse(r[a],Array.isArray(i)?i:i?[i]:[])}}}function Tse(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);ta(e,0,0,r)}function OM(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function za(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ho=Nl(/[A-Za-z]/),Xr=Nl(/[\dA-Za-z]/),Cse=Nl(/[#-'*+\--9=?A-Z^-~]/);function _0(e){return e!==null&&(e<32||e===127)}const uT=Nl(/\d/),_se=Nl(/[\dA-Fa-f]/),Ase=Nl(/[!-/:-@[-`{-~]/);function yt(e){return e!==null&&e<-2}function jn(e){return e!==null&&(e<0||e===32)}function Kt(e){return e===-2||e===-1||e===32}const Yb=Nl(/\p{P}|\p{S}/u),Pc=Nl(/\s/);function Nl(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Ud(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const a=e.charCodeAt(n);let i="";if(a===37&&Xr(e.charCodeAt(n+1))&&Xr(e.charCodeAt(n+2)))o=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(i=String.fromCharCode(a));else if(a>55295&&a<57344){const l=e.charCodeAt(n+1);a<56320&&l>56319&&l<57344?(i=String.fromCharCode(a,l),o=1):i="�"}else i=String.fromCharCode(a);i&&(t.push(e.slice(r,n),encodeURIComponent(i)),r=n+o+1,i=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function nn(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let a=0;return i;function i(u){return Kt(u)?(e.enter(n),l(u)):t(u)}function l(u){return Kt(u)&&a++<o?(e.consume(u),l):(e.exit(n),t(u))}}const kse={tokenize:wse};function wse(e){const t=e.attempt(this.parser.constructs.contentInitial,r,o);let n;return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),nn(e,t,"linePrefix")}function o(l){return e.enter("paragraph"),a(l)}function a(l){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,i(l)}function i(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return yt(l)?(e.consume(l),e.exit("chunkText"),a):(e.consume(l),i)}}const Rse={tokenize:Dse},YO={tokenize:Ise};function Dse(e){const t=this,n=[];let r=0,o,a,i;return l;function l(C){if(r<n.length){const D=n[r];return t.containerState=D[1],e.attempt(D[0].continuation,u,d)(C)}return d(C)}function u(C){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&A();const D=t.events.length;let I=D,O;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){O=t.events[I][1].end;break}E(r);let j=D;for(;j<t.events.length;)t.events[j][1].end={...O},j++;return ta(t.events,I+1,0,t.events.slice(D)),t.events.length=j,d(C)}return l(C)}function d(C){if(r===n.length){if(!o)return y(C);if(o.currentConstruct&&o.currentConstruct.concrete)return b(C);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(YO,p,h)(C)}function p(C){return o&&A(),E(r),y(C)}function h(C){return t.parser.lazy[t.now().line]=r!==n.length,i=t.now().offset,b(C)}function y(C){return t.containerState={},e.attempt(YO,g,b)(C)}function g(C){return r++,n.push([t.currentConstruct,t.containerState]),y(C)}function b(C){if(C===null){o&&A(),E(0),e.consume(C);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:a}),S(C)}function S(C){if(C===null){T(e.exit("chunkFlow"),!0),E(0),e.consume(C);return}return yt(C)?(e.consume(C),T(e.exit("chunkFlow")),r=0,t.interrupt=void 0,l):(e.consume(C),S)}function T(C,D){const I=t.sliceStream(C);if(D&&I.push(null),C.previous=a,a&&(a.next=C),a=C,o.defineSkip(C.start),o.write(I),t.parser.lazy[C.start.line]){let O=o.events.length;for(;O--;)if(o.events[O][1].start.offset<i&&(!o.events[O][1].end||o.events[O][1].end.offset>i))return;const j=t.events.length;let $=j,z,L;for(;$--;)if(t.events[$][0]==="exit"&&t.events[$][1].type==="chunkFlow"){if(z){L=t.events[$][1].end;break}z=!0}for(E(r),O=j;O<t.events.length;)t.events[O][1].end={...L},O++;ta(t.events,$+1,0,t.events.slice(j)),t.events.length=O}}function E(C){let D=n.length;for(;D-- >C;){const I=n[D];t.containerState=I[1],I[0].exit.call(t,e)}n.length=C}function A(){o.write([null]),a=void 0,o=void 0,t.containerState._closeFlow=void 0}}function Ise(e,t,n){return nn(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function xd(e){if(e===null||jn(e)||Pc(e))return 1;if(Yb(e))return 2}function Qb(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const a=e[o].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const dT={name:"attention",resolveAll:Ose,tokenize:Nse};function Ose(e,t){let n=-1,r,o,a,i,l,u,d,p;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const h={...e[r][1].end},y={...e[n][1].start};QO(h,-u),QO(y,u),i={type:u>1?"strongSequence":"emphasisSequence",start:h,end:{...e[r][1].end}},l={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:y},a={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},o={type:u>1?"strong":"emphasis",start:{...i.start},end:{...l.end}},e[r][1].end={...i.start},e[n][1].start={...l.end},d=[],e[r][1].end.offset-e[r][1].start.offset&&(d=Sa(d,[["enter",e[r][1],t],["exit",e[r][1],t]])),d=Sa(d,[["enter",o,t],["enter",i,t],["exit",i,t],["enter",a,t]]),d=Sa(d,Qb(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),d=Sa(d,[["exit",a,t],["enter",l,t],["exit",l,t],["exit",o,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,d=Sa(d,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,ta(e,r-1,n-r+3,d),n=r+d.length-p-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Nse(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=xd(r);let a;return i;function i(u){return a=u,e.enter("attentionSequence"),l(u)}function l(u){if(u===a)return e.consume(u),l;const d=e.exit("attentionSequence"),p=xd(u),h=!p||p===2&&o||n.includes(u),y=!o||o===2&&p||n.includes(r);return d._open=!!(a===42?h:h&&(o||!y)),d._close=!!(a===42?y:y&&(p||!h)),t(u)}}function QO(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Pse={name:"autolink",tokenize:Lse};function Lse(e,t,n){let r=0;return o;function o(g){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(g){return ho(g)?(e.consume(g),i):g===64?n(g):d(g)}function i(g){return g===43||g===45||g===46||Xr(g)?(r=1,l(g)):d(g)}function l(g){return g===58?(e.consume(g),r=0,u):(g===43||g===45||g===46||Xr(g))&&r++<32?(e.consume(g),l):(r=0,d(g))}function u(g){return g===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t):g===null||g===32||g===60||_0(g)?n(g):(e.consume(g),u)}function d(g){return g===64?(e.consume(g),p):Cse(g)?(e.consume(g),d):n(g)}function p(g){return Xr(g)?h(g):n(g)}function h(g){return g===46?(e.consume(g),r=0,p):g===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t):y(g)}function y(g){if((g===45||Xr(g))&&r++<63){const b=g===45?y:h;return e.consume(g),b}return n(g)}}const dm={partial:!0,tokenize:Mse};function Mse(e,t,n){return r;function r(a){return Kt(a)?nn(e,o,"linePrefix")(a):o(a)}function o(a){return a===null||yt(a)?t(a):n(a)}}const NM={continuation:{tokenize:jse},exit:Bse,name:"blockQuote",tokenize:Fse};function Fse(e,t,n){const r=this;return o;function o(i){if(i===62){const l=r.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(i),e.exit("blockQuoteMarker"),a}return n(i)}function a(i){return Kt(i)?(e.enter("blockQuotePrefixWhitespace"),e.consume(i),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(i))}}function jse(e,t,n){const r=this;return o;function o(i){return Kt(i)?nn(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):a(i)}function a(i){return e.attempt(NM,t,n)(i)}}function Bse(e){e.exit("blockQuote")}const PM={name:"characterEscape",tokenize:Use};function Use(e,t,n){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),o}function o(a){return Ase(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const LM={name:"characterReference",tokenize:zse};function zse(e,t,n){const r=this;let o=0,a,i;return l;function l(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),u}function u(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),d):(e.enter("characterReferenceValue"),a=31,i=Xr,p(h))}function d(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,i=_se,p):(e.enter("characterReferenceValue"),a=7,i=uT,p(h))}function p(h){if(h===59&&o){const y=e.exit("characterReferenceValue");return i===Xr&&!x_(r.sliceSerialize(y))?n(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return i(h)&&o++<a?(e.consume(h),p):n(h)}}const KO={partial:!0,tokenize:$se},XO={concrete:!0,name:"codeFenced",tokenize:Hse};function Hse(e,t,n){const r=this,o={partial:!0,tokenize:I};let a=0,i=0,l;return u;function u(O){return d(O)}function d(O){const j=r.events[r.events.length-1];return a=j&&j[1].type==="linePrefix"?j[2].sliceSerialize(j[1],!0).length:0,l=O,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(O)}function p(O){return O===l?(i++,e.consume(O),p):i<3?n(O):(e.exit("codeFencedFenceSequence"),Kt(O)?nn(e,h,"whitespace")(O):h(O))}function h(O){return O===null||yt(O)?(e.exit("codeFencedFence"),r.interrupt?t(O):e.check(KO,S,D)(O)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),y(O))}function y(O){return O===null||yt(O)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(O)):Kt(O)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),nn(e,g,"whitespace")(O)):O===96&&O===l?n(O):(e.consume(O),y)}function g(O){return O===null||yt(O)?h(O):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(O))}function b(O){return O===null||yt(O)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(O)):O===96&&O===l?n(O):(e.consume(O),b)}function S(O){return e.attempt(o,D,T)(O)}function T(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),E}function E(O){return a>0&&Kt(O)?nn(e,A,"linePrefix",a+1)(O):A(O)}function A(O){return O===null||yt(O)?e.check(KO,S,D)(O):(e.enter("codeFlowValue"),C(O))}function C(O){return O===null||yt(O)?(e.exit("codeFlowValue"),A(O)):(e.consume(O),C)}function D(O){return e.exit("codeFenced"),t(O)}function I(O,j,$){let z=0;return L;function L(G){return O.enter("lineEnding"),O.consume(G),O.exit("lineEnding"),H}function H(G){return O.enter("codeFencedFence"),Kt(G)?nn(O,k,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(G):k(G)}function k(G){return G===l?(O.enter("codeFencedFenceSequence"),F(G)):$(G)}function F(G){return G===l?(z++,O.consume(G),F):z>=i?(O.exit("codeFencedFenceSequence"),Kt(G)?nn(O,B,"whitespace")(G):B(G)):$(G)}function B(G){return G===null||yt(G)?(O.exit("codeFencedFence"),j(G)):$(G)}}}function $se(e,t,n){const r=this;return o;function o(i){return i===null?n(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),a)}function a(i){return r.parser.lazy[r.now().line]?n(i):t(i)}}const vx={name:"codeIndented",tokenize:Vse},Gse={partial:!0,tokenize:qse};function Vse(e,t,n){const r=this;return o;function o(d){return e.enter("codeIndented"),nn(e,a,"linePrefix",5)(d)}function a(d){const p=r.events[r.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?i(d):n(d)}function i(d){return d===null?u(d):yt(d)?e.attempt(Gse,i,u)(d):(e.enter("codeFlowValue"),l(d))}function l(d){return d===null||yt(d)?(e.exit("codeFlowValue"),i(d)):(e.consume(d),l)}function u(d){return e.exit("codeIndented"),t(d)}}function qse(e,t,n){const r=this;return o;function o(i){return r.parser.lazy[r.now().line]?n(i):yt(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),o):nn(e,a,"linePrefix",5)(i)}function a(i){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(i):yt(i)?o(i):n(i)}}const Wse={name:"codeText",previous:Qse,resolve:Yse,tokenize:Kse};function Yse(e){let t=e.length-4,n=3,r,o;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)o===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(o=r):(r===t||e[r][1].type==="lineEnding")&&(e[o][1].type="codeTextData",r!==o+2&&(e[o][1].end=e[r-1][1].end,e.splice(o+2,r-o-2),t-=r-o-2,r=o+2),o=void 0);return e}function Qse(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Kse(e,t,n){let r=0,o,a;return i;function i(h){return e.enter("codeText"),e.enter("codeTextSequence"),l(h)}function l(h){return h===96?(e.consume(h),r++,l):(e.exit("codeTextSequence"),u(h))}function u(h){return h===null?n(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),u):h===96?(a=e.enter("codeTextSequence"),o=0,p(h)):yt(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),u):(e.enter("codeTextData"),d(h))}function d(h){return h===null||h===32||h===96||yt(h)?(e.exit("codeTextData"),u(h)):(e.consume(h),d)}function p(h){return h===96?(e.consume(h),o++,p):o===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(a.type="codeTextData",d(h))}}class Xse{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const o=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return r&&dp(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),dp(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),dp(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);dp(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);dp(this.left,n.reverse())}}}function dp(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function MM(e){const t={};let n=-1,r,o,a,i,l,u,d;const p=new Xse(e);for(;++n<p.length;){for(;n in t;)n=t[n];if(r=p.get(n),n&&r[1].type==="chunkFlow"&&p.get(n-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,a=0,a<u.length&&u[a][1].type==="lineEndingBlank"&&(a+=2),a<u.length&&u[a][1].type==="content"))for(;++a<u.length&&u[a][1].type!=="content";)u[a][1].type==="chunkText"&&(u[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Zse(p,n)),n=t[n],d=!0);else if(r[1]._container){for(a=n,o=void 0;a--;)if(i=p.get(a),i[1].type==="lineEnding"||i[1].type==="lineEndingBlank")i[0]==="enter"&&(o&&(p.get(o)[1].type="lineEndingBlank"),i[1].type="lineEnding",o=a);else if(!(i[1].type==="linePrefix"||i[1].type==="listItemIndent"))break;o&&(r[1].end={...p.get(o)[1].start},l=p.slice(o,n),l.unshift(r),p.splice(o,n-o+1,l))}}return ta(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!d}function Zse(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const a=[];let i=n._tokenizer;i||(i=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(i._contentTypeTextTrailing=!0));const l=i.events,u=[],d={};let p,h,y=-1,g=n,b=0,S=0;const T=[S];for(;g;){for(;e.get(++o)[1]!==g;);a.push(o),g._tokenizer||(p=r.sliceStream(g),g.next||p.push(null),h&&i.defineSkip(g.start),g._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(p),g._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),h=g,g=g.next}for(g=n;++y<l.length;)l[y][0]==="exit"&&l[y-1][0]==="enter"&&l[y][1].type===l[y-1][1].type&&l[y][1].start.line!==l[y][1].end.line&&(S=y+1,T.push(S),g._tokenizer=void 0,g.previous=void 0,g=g.next);for(i.events=[],g?(g._tokenizer=void 0,g.previous=void 0):T.pop(),y=T.length;y--;){const E=l.slice(T[y],T[y+1]),A=a.pop();u.push([A,A+E.length-1]),e.splice(A,2,E)}for(u.reverse(),y=-1;++y<u.length;)d[b+u[y][0]]=b+u[y][1],b+=u[y][1]-u[y][0]-1;return d}const Jse={resolve:tle,tokenize:nle},ele={partial:!0,tokenize:rle};function tle(e){return MM(e),e}function nle(e,t){let n;return r;function r(l){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),o(l)}function o(l){return l===null?a(l):yt(l)?e.check(ele,i,a)(l):(e.consume(l),o)}function a(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function i(l){return e.consume(l),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,o}}function rle(e,t,n){const r=this;return o;function o(i){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),nn(e,a,"linePrefix")}function a(i){if(i===null||yt(i))return n(i);const l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function FM(e,t,n,r,o,a,i,l,u){const d=u||Number.POSITIVE_INFINITY;let p=0;return h;function h(E){return E===60?(e.enter(r),e.enter(o),e.enter(a),e.consume(E),e.exit(a),y):E===null||E===32||E===41||_0(E)?n(E):(e.enter(r),e.enter(i),e.enter(l),e.enter("chunkString",{contentType:"string"}),S(E))}function y(E){return E===62?(e.enter(a),e.consume(E),e.exit(a),e.exit(o),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),g(E))}function g(E){return E===62?(e.exit("chunkString"),e.exit(l),y(E)):E===null||E===60||yt(E)?n(E):(e.consume(E),E===92?b:g)}function b(E){return E===60||E===62||E===92?(e.consume(E),g):g(E)}function S(E){return!p&&(E===null||E===41||jn(E))?(e.exit("chunkString"),e.exit(l),e.exit(i),e.exit(r),t(E)):p<d&&E===40?(e.consume(E),p++,S):E===41?(e.consume(E),p--,S):E===null||E===32||E===40||_0(E)?n(E):(e.consume(E),E===92?T:S)}function T(E){return E===40||E===41||E===92?(e.consume(E),S):S(E)}}function jM(e,t,n,r,o,a){const i=this;let l=0,u;return d;function d(g){return e.enter(r),e.enter(o),e.consume(g),e.exit(o),e.enter(a),p}function p(g){return l>999||g===null||g===91||g===93&&!u||g===94&&!l&&"_hiddenFootnoteSupport"in i.parser.constructs?n(g):g===93?(e.exit(a),e.enter(o),e.consume(g),e.exit(o),e.exit(r),t):yt(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),h(g))}function h(g){return g===null||g===91||g===93||yt(g)||l++>999?(e.exit("chunkString"),p(g)):(e.consume(g),u||(u=!Kt(g)),g===92?y:h)}function y(g){return g===91||g===92||g===93?(e.consume(g),l++,h):h(g)}}function BM(e,t,n,r,o,a){let i;return l;function l(y){return y===34||y===39||y===40?(e.enter(r),e.enter(o),e.consume(y),e.exit(o),i=y===40?41:y,u):n(y)}function u(y){return y===i?(e.enter(o),e.consume(y),e.exit(o),e.exit(r),t):(e.enter(a),d(y))}function d(y){return y===i?(e.exit(a),u(i)):y===null?n(y):yt(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),nn(e,d,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===i||y===null||yt(y)?(e.exit("chunkString"),d(y)):(e.consume(y),y===92?h:p)}function h(y){return y===i||y===92?(e.consume(y),p):p(y)}}function qp(e,t){let n;return r;function r(o){return yt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):Kt(o)?nn(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}const ole={name:"definition",tokenize:ile},ale={partial:!0,tokenize:sle};function ile(e,t,n){const r=this;let o;return a;function a(g){return e.enter("definition"),i(g)}function i(g){return jM.call(r,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function l(g){return o=za(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),u):n(g)}function u(g){return jn(g)?qp(e,d)(g):d(g)}function d(g){return FM(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function p(g){return e.attempt(ale,h,h)(g)}function h(g){return Kt(g)?nn(e,y,"whitespace")(g):y(g)}function y(g){return g===null||yt(g)?(e.exit("definition"),r.parser.defined.push(o),t(g)):n(g)}}function sle(e,t,n){return r;function r(l){return jn(l)?qp(e,o)(l):n(l)}function o(l){return BM(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function a(l){return Kt(l)?nn(e,i,"whitespace")(l):i(l)}function i(l){return l===null||yt(l)?t(l):n(l)}}const lle={name:"hardBreakEscape",tokenize:cle};function cle(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),o}function o(a){return yt(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const ule={name:"headingAtx",resolve:dle,tokenize:fle};function dle(e,t){let n=e.length-2,r=3,o,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(o={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},ta(e,r,n-r+1,[["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t]])),e}function fle(e,t,n){let r=0;return o;function o(p){return e.enter("atxHeading"),a(p)}function a(p){return e.enter("atxHeadingSequence"),i(p)}function i(p){return p===35&&r++<6?(e.consume(p),i):p===null||jn(p)?(e.exit("atxHeadingSequence"),l(p)):n(p)}function l(p){return p===35?(e.enter("atxHeadingSequence"),u(p)):p===null||yt(p)?(e.exit("atxHeading"),t(p)):Kt(p)?nn(e,l,"whitespace")(p):(e.enter("atxHeadingText"),d(p))}function u(p){return p===35?(e.consume(p),u):(e.exit("atxHeadingSequence"),l(p))}function d(p){return p===null||p===35||jn(p)?(e.exit("atxHeadingText"),l(p)):(e.consume(p),d)}}const ple=["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"],ZO=["pre","script","style","textarea"],hle={concrete:!0,name:"htmlFlow",resolveTo:yle,tokenize:ble},mle={partial:!0,tokenize:Ele},gle={partial:!0,tokenize:vle};function yle(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function ble(e,t,n){const r=this;let o,a,i,l,u;return d;function d(P){return p(P)}function p(P){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(P),h}function h(P){return P===33?(e.consume(P),y):P===47?(e.consume(P),a=!0,S):P===63?(e.consume(P),o=3,r.interrupt?t:N):ho(P)?(e.consume(P),i=String.fromCharCode(P),T):n(P)}function y(P){return P===45?(e.consume(P),o=2,g):P===91?(e.consume(P),o=5,l=0,b):ho(P)?(e.consume(P),o=4,r.interrupt?t:N):n(P)}function g(P){return P===45?(e.consume(P),r.interrupt?t:N):n(P)}function b(P){const J="CDATA[";return P===J.charCodeAt(l++)?(e.consume(P),l===J.length?r.interrupt?t:k:b):n(P)}function S(P){return ho(P)?(e.consume(P),i=String.fromCharCode(P),T):n(P)}function T(P){if(P===null||P===47||P===62||jn(P)){const J=P===47,se=i.toLowerCase();return!J&&!a&&ZO.includes(se)?(o=1,r.interrupt?t(P):k(P)):ple.includes(i.toLowerCase())?(o=6,J?(e.consume(P),E):r.interrupt?t(P):k(P)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(P):a?A(P):C(P))}return P===45||Xr(P)?(e.consume(P),i+=String.fromCharCode(P),T):n(P)}function E(P){return P===62?(e.consume(P),r.interrupt?t:k):n(P)}function A(P){return Kt(P)?(e.consume(P),A):L(P)}function C(P){return P===47?(e.consume(P),L):P===58||P===95||ho(P)?(e.consume(P),D):Kt(P)?(e.consume(P),C):L(P)}function D(P){return P===45||P===46||P===58||P===95||Xr(P)?(e.consume(P),D):I(P)}function I(P){return P===61?(e.consume(P),O):Kt(P)?(e.consume(P),I):C(P)}function O(P){return P===null||P===60||P===61||P===62||P===96?n(P):P===34||P===39?(e.consume(P),u=P,j):Kt(P)?(e.consume(P),O):$(P)}function j(P){return P===u?(e.consume(P),u=null,z):P===null||yt(P)?n(P):(e.consume(P),j)}function $(P){return P===null||P===34||P===39||P===47||P===60||P===61||P===62||P===96||jn(P)?I(P):(e.consume(P),$)}function z(P){return P===47||P===62||Kt(P)?C(P):n(P)}function L(P){return P===62?(e.consume(P),H):n(P)}function H(P){return P===null||yt(P)?k(P):Kt(P)?(e.consume(P),H):n(P)}function k(P){return P===45&&o===2?(e.consume(P),U):P===60&&o===1?(e.consume(P),Q):P===62&&o===4?(e.consume(P),K):P===63&&o===3?(e.consume(P),N):P===93&&o===5?(e.consume(P),oe):yt(P)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(mle,X,F)(P)):P===null||yt(P)?(e.exit("htmlFlowData"),F(P)):(e.consume(P),k)}function F(P){return e.check(gle,B,X)(P)}function B(P){return e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),G}function G(P){return P===null||yt(P)?F(P):(e.enter("htmlFlowData"),k(P))}function U(P){return P===45?(e.consume(P),N):k(P)}function Q(P){return P===47?(e.consume(P),i="",Y):k(P)}function Y(P){if(P===62){const J=i.toLowerCase();return ZO.includes(J)?(e.consume(P),K):k(P)}return ho(P)&&i.length<8?(e.consume(P),i+=String.fromCharCode(P),Y):k(P)}function oe(P){return P===93?(e.consume(P),N):k(P)}function N(P){return P===62?(e.consume(P),K):P===45&&o===2?(e.consume(P),N):k(P)}function K(P){return P===null||yt(P)?(e.exit("htmlFlowData"),X(P)):(e.consume(P),K)}function X(P){return e.exit("htmlFlow"),t(P)}}function vle(e,t,n){const r=this;return o;function o(i){return yt(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),a):n(i)}function a(i){return r.parser.lazy[r.now().line]?n(i):t(i)}}function Ele(e,t,n){return r;function r(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(dm,t,n)}}const xle={name:"htmlText",tokenize:Sle};function Sle(e,t,n){const r=this;let o,a,i;return l;function l(N){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(N),u}function u(N){return N===33?(e.consume(N),d):N===47?(e.consume(N),I):N===63?(e.consume(N),C):ho(N)?(e.consume(N),$):n(N)}function d(N){return N===45?(e.consume(N),p):N===91?(e.consume(N),a=0,b):ho(N)?(e.consume(N),A):n(N)}function p(N){return N===45?(e.consume(N),g):n(N)}function h(N){return N===null?n(N):N===45?(e.consume(N),y):yt(N)?(i=h,Q(N)):(e.consume(N),h)}function y(N){return N===45?(e.consume(N),g):h(N)}function g(N){return N===62?U(N):N===45?y(N):h(N)}function b(N){const K="CDATA[";return N===K.charCodeAt(a++)?(e.consume(N),a===K.length?S:b):n(N)}function S(N){return N===null?n(N):N===93?(e.consume(N),T):yt(N)?(i=S,Q(N)):(e.consume(N),S)}function T(N){return N===93?(e.consume(N),E):S(N)}function E(N){return N===62?U(N):N===93?(e.consume(N),E):S(N)}function A(N){return N===null||N===62?U(N):yt(N)?(i=A,Q(N)):(e.consume(N),A)}function C(N){return N===null?n(N):N===63?(e.consume(N),D):yt(N)?(i=C,Q(N)):(e.consume(N),C)}function D(N){return N===62?U(N):C(N)}function I(N){return ho(N)?(e.consume(N),O):n(N)}function O(N){return N===45||Xr(N)?(e.consume(N),O):j(N)}function j(N){return yt(N)?(i=j,Q(N)):Kt(N)?(e.consume(N),j):U(N)}function $(N){return N===45||Xr(N)?(e.consume(N),$):N===47||N===62||jn(N)?z(N):n(N)}function z(N){return N===47?(e.consume(N),U):N===58||N===95||ho(N)?(e.consume(N),L):yt(N)?(i=z,Q(N)):Kt(N)?(e.consume(N),z):U(N)}function L(N){return N===45||N===46||N===58||N===95||Xr(N)?(e.consume(N),L):H(N)}function H(N){return N===61?(e.consume(N),k):yt(N)?(i=H,Q(N)):Kt(N)?(e.consume(N),H):z(N)}function k(N){return N===null||N===60||N===61||N===62||N===96?n(N):N===34||N===39?(e.consume(N),o=N,F):yt(N)?(i=k,Q(N)):Kt(N)?(e.consume(N),k):(e.consume(N),B)}function F(N){return N===o?(e.consume(N),o=void 0,G):N===null?n(N):yt(N)?(i=F,Q(N)):(e.consume(N),F)}function B(N){return N===null||N===34||N===39||N===60||N===61||N===96?n(N):N===47||N===62||jn(N)?z(N):(e.consume(N),B)}function G(N){return N===47||N===62||jn(N)?z(N):n(N)}function U(N){return N===62?(e.consume(N),e.exit("htmlTextData"),e.exit("htmlText"),t):n(N)}function Q(N){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),Y}function Y(N){return Kt(N)?nn(e,oe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):oe(N)}function oe(N){return e.enter("htmlTextData"),i(N)}}const S_={name:"labelEnd",resolveAll:Ale,resolveTo:kle,tokenize:wle},Tle={tokenize:Rle},Cle={tokenize:Dle},_le={tokenize:Ile};function Ale(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const o=r.type==="labelImage"?4:2;r.type="data",t+=o}}return e.length!==n.length&&ta(e,0,e.length,n),e}function kle(e,t){let n=e.length,r=0,o,a,i,l;for(;n--;)if(o=e[n][1],a){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[n][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(i){if(e[n][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(a=n,o.type!=="labelLink")){r=2;break}}else o.type==="labelEnd"&&(i=n);const u={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},d={type:"label",start:{...e[a][1].start},end:{...e[i][1].end}},p={type:"labelText",start:{...e[a+r+2][1].end},end:{...e[i-2][1].start}};return l=[["enter",u,t],["enter",d,t]],l=Sa(l,e.slice(a+1,a+r+3)),l=Sa(l,[["enter",p,t]]),l=Sa(l,Qb(t.parser.constructs.insideSpan.null,e.slice(a+r+4,i-3),t)),l=Sa(l,[["exit",p,t],e[i-2],e[i-1],["exit",d,t]]),l=Sa(l,e.slice(i+1)),l=Sa(l,[["exit",u,t]]),ta(e,a,e.length,l),e}function wle(e,t,n){const r=this;let o=r.events.length,a,i;for(;o--;)if((r.events[o][1].type==="labelImage"||r.events[o][1].type==="labelLink")&&!r.events[o][1]._balanced){a=r.events[o][1];break}return l;function l(y){return a?a._inactive?h(y):(i=r.parser.defined.includes(za(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(y),e.exit("labelMarker"),e.exit("labelEnd"),u):n(y)}function u(y){return y===40?e.attempt(Tle,p,i?p:h)(y):y===91?e.attempt(Cle,p,i?d:h)(y):i?p(y):h(y)}function d(y){return e.attempt(_le,p,h)(y)}function p(y){return t(y)}function h(y){return a._balanced=!0,n(y)}}function Rle(e,t,n){return r;function r(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),o}function o(h){return jn(h)?qp(e,a)(h):a(h)}function a(h){return h===41?p(h):FM(e,i,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function i(h){return jn(h)?qp(e,u)(h):p(h)}function l(h){return n(h)}function u(h){return h===34||h===39||h===40?BM(e,d,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):p(h)}function d(h){return jn(h)?qp(e,p)(h):p(h)}function p(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),t):n(h)}}function Dle(e,t,n){const r=this;return o;function o(l){return jM.call(r,e,a,i,"reference","referenceMarker","referenceString")(l)}function a(l){return r.parser.defined.includes(za(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(l):n(l)}function i(l){return n(l)}}function Ile(e,t,n){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),o}function o(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const Ole={name:"labelStartImage",resolveAll:S_.resolveAll,tokenize:Nle};function Nle(e,t,n){const r=this;return o;function o(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),a}function a(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),i):n(l)}function i(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const Ple={name:"labelStartLink",resolveAll:S_.resolveAll,tokenize:Lle};function Lle(e,t,n){const r=this;return o;function o(i){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(i),e.exit("labelMarker"),e.exit("labelLink"),a}function a(i){return i===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(i):t(i)}}const Ex={name:"lineEnding",tokenize:Mle};function Mle(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),nn(e,t,"linePrefix")}}const Dy={name:"thematicBreak",tokenize:Fle};function Fle(e,t,n){let r=0,o;return a;function a(d){return e.enter("thematicBreak"),i(d)}function i(d){return o=d,l(d)}function l(d){return d===o?(e.enter("thematicBreakSequence"),u(d)):r>=3&&(d===null||yt(d))?(e.exit("thematicBreak"),t(d)):n(d)}function u(d){return d===o?(e.consume(d),r++,u):(e.exit("thematicBreakSequence"),Kt(d)?nn(e,l,"whitespace")(d):l(d))}}const ko={continuation:{tokenize:zle},exit:$le,name:"list",tokenize:Ule},jle={partial:!0,tokenize:Gle},Ble={partial:!0,tokenize:Hle};function Ule(e,t,n){const r=this,o=r.events[r.events.length-1];let a=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,i=0;return l;function l(g){const b=r.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||g===r.containerState.marker:uT(g)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(Dy,n,d)(g):d(g);if(!r.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(g)}return n(g)}function u(g){return uT(g)&&++i<10?(e.consume(g),u):(!r.interrupt||i<2)&&(r.containerState.marker?g===r.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),d(g)):n(g)}function d(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||g,e.check(dm,r.interrupt?n:p,e.attempt(jle,y,h))}function p(g){return r.containerState.initialBlankLine=!0,a++,y(g)}function h(g){return Kt(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),y):n(g)}function y(g){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(g)}}function zle(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(dm,o,a);function o(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,nn(e,t,"listItemIndent",r.containerState.size+1)(l)}function a(l){return r.containerState.furtherBlankLines||!Kt(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Ble,t,i)(l))}function i(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,nn(e,e.attempt(ko,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function Hle(e,t,n){const r=this;return nn(e,o,"listItemIndent",r.containerState.size+1);function o(a){const i=r.events[r.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(a):n(a)}}function $le(e){e.exit(this.containerState.type)}function Gle(e,t,n){const r=this;return nn(e,o,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(a){const i=r.events[r.events.length-1];return!Kt(a)&&i&&i[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const JO={name:"setextUnderline",resolveTo:Vle,tokenize:qle};function Vle(e,t){let n=e.length,r,o,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(o=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const i={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",a?(e.splice(o,0,["enter",i,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=i,e.push(["exit",i,t]),e}function qle(e,t,n){const r=this;let o;return a;function a(d){let p=r.events.length,h;for(;p--;)if(r.events[p][1].type!=="lineEnding"&&r.events[p][1].type!=="linePrefix"&&r.events[p][1].type!=="content"){h=r.events[p][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(e.enter("setextHeadingLine"),o=d,i(d)):n(d)}function i(d){return e.enter("setextHeadingLineSequence"),l(d)}function l(d){return d===o?(e.consume(d),l):(e.exit("setextHeadingLineSequence"),Kt(d)?nn(e,u,"lineSuffix")(d):u(d))}function u(d){return d===null||yt(d)?(e.exit("setextHeadingLine"),t(d)):n(d)}}const Wle={tokenize:Yle};function Yle(e){const t=this,n=e.attempt(dm,r,e.attempt(this.parser.constructs.flowInitial,o,nn(e,e.attempt(this.parser.constructs.flow,o,e.attempt(Jse,o)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function o(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Qle={resolveAll:zM()},Kle=UM("string"),Xle=UM("text");function UM(e){return{resolveAll:zM(e==="text"?Zle:void 0),tokenize:t};function t(n){const r=this,o=this.parser.constructs[e],a=n.attempt(o,i,l);return i;function i(p){return d(p)?a(p):l(p)}function l(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),u}function u(p){return d(p)?(n.exit("data"),a(p)):(n.consume(p),u)}function d(p){if(p===null)return!0;const h=o[p];let y=-1;if(h)for(;++y<h.length;){const g=h[y];if(!g.previous||g.previous.call(r,r.previous))return!0}return!1}}}function zM(e){return t;function t(n,r){let o=-1,a;for(;++o<=n.length;)a===void 0?n[o]&&n[o][1].type==="data"&&(a=o,o++):(!n[o]||n[o][1].type!=="data")&&(o!==a+2&&(n[a][1].end=n[o-1][1].end,n.splice(a+2,o-a-2),o=a+2),a=void 0);return e?e(n,r):n}}function Zle(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],o=t.sliceStream(r);let a=o.length,i=-1,l=0,u;for(;a--;){const d=o[a];if(typeof d=="string"){for(i=d.length;d.charCodeAt(i-1)===32;)l++,i--;if(i)break;i=-1}else if(d===-2)u=!0,l++;else if(d!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const d={type:n===e.length||u||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?i:r.start._bufferIndex+i,_index:r.start._index+a,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...d.start},r.start.offset===r.end.offset?Object.assign(r,d):(e.splice(n,0,["enter",d,t],["exit",d,t]),n+=2)}n++}return e}const Jle={42:ko,43:ko,45:ko,48:ko,49:ko,50:ko,51:ko,52:ko,53:ko,54:ko,55:ko,56:ko,57:ko,62:NM},ece={91:ole},tce={[-2]:vx,[-1]:vx,32:vx},nce={35:ule,42:Dy,45:[JO,Dy],60:hle,61:JO,95:Dy,96:XO,126:XO},rce={38:LM,92:PM},oce={[-5]:Ex,[-4]:Ex,[-3]:Ex,33:Ole,38:LM,42:dT,60:[Pse,xle],91:Ple,92:[lle,PM],93:S_,95:dT,96:Wse},ace={null:[dT,Qle]},ice={null:[42,95]},sce={null:[]},lce=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:ice,contentInitial:ece,disable:sce,document:Jle,flow:nce,flowInitial:tce,insideSpan:ace,string:rce,text:oce},Symbol.toStringTag,{value:"Module"}));function cce(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},a=[];let i=[],l=[];const u={attempt:j(I),check:j(O),consume:A,enter:C,exit:D,interrupt:j(O,{interrupt:!0})},d={code:null,containerState:{},defineSkip:S,events:[],now:b,parser:e,previous:null,sliceSerialize:y,sliceStream:g,write:h};let p=t.tokenize.call(d,u);return t.resolveAll&&a.push(t),d;function h(H){return i=Sa(i,H),T(),i[i.length-1]!==null?[]:($(t,0),d.events=Qb(a,d.events,d),d.events)}function y(H,k){return dce(g(H),k)}function g(H){return uce(i,H)}function b(){const{_bufferIndex:H,_index:k,line:F,column:B,offset:G}=r;return{_bufferIndex:H,_index:k,line:F,column:B,offset:G}}function S(H){o[H.line]=H.column,L()}function T(){let H;for(;r._index<i.length;){const k=i[r._index];if(typeof k=="string")for(H=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===H&&r._bufferIndex<k.length;)E(k.charCodeAt(r._bufferIndex));else E(k)}}function E(H){p=p(H)}function A(H){yt(H)?(r.line++,r.column=1,r.offset+=H===-3?2:1,L()):H!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===i[r._index].length&&(r._bufferIndex=-1,r._index++)),d.previous=H}function C(H,k){const F=k||{};return F.type=H,F.start=b(),d.events.push(["enter",F,d]),l.push(F),F}function D(H){const k=l.pop();return k.end=b(),d.events.push(["exit",k,d]),k}function I(H,k){$(H,k.from)}function O(H,k){k.restore()}function j(H,k){return F;function F(B,G,U){let Q,Y,oe,N;return Array.isArray(B)?X(B):"tokenize"in B?X([B]):K(B);function K(ne){return be;function be(fe){const De=fe!==null&&ne[fe],Ce=fe!==null&&ne.null,Se=[...Array.isArray(De)?De:De?[De]:[],...Array.isArray(Ce)?Ce:Ce?[Ce]:[]];return X(Se)(fe)}}function X(ne){return Q=ne,Y=0,ne.length===0?U:P(ne[Y])}function P(ne){return be;function be(fe){return N=z(),oe=ne,ne.partial||(d.currentConstruct=ne),ne.name&&d.parser.constructs.disable.null.includes(ne.name)?se():ne.tokenize.call(k?Object.assign(Object.create(d),k):d,u,J,se)(fe)}}function J(ne){return H(oe,N),G}function se(ne){return N.restore(),++Y<Q.length?P(Q[Y]):U}}}function $(H,k){H.resolveAll&&!a.includes(H)&&a.push(H),H.resolve&&ta(d.events,k,d.events.length-k,H.resolve(d.events.slice(k),d)),H.resolveTo&&(d.events=H.resolveTo(d.events,d))}function z(){const H=b(),k=d.previous,F=d.currentConstruct,B=d.events.length,G=Array.from(l);return{from:B,restore:U};function U(){r=H,d.previous=k,d.currentConstruct=F,d.events.length=B,l=G,L()}}function L(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}function uce(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,a=t.end._bufferIndex;let i;if(n===o)i=[e[n].slice(r,a)];else{if(i=e.slice(n,o),r>-1){const l=i[0];typeof l=="string"?i[0]=l.slice(r):i.shift()}a>0&&i.push(e[o].slice(0,a))}return i}function dce(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const a=e[n];let i;if(typeof a=="string")i=a;else switch(a){case-5:{i="\r";break}case-4:{i=`
|
|
267
|
-
`;break}case-3:{i=`\r
|
|
268
|
-
`;break}case-2:{i=t?" ":" ";break}case-1:{if(!t&&o)continue;i=" ";break}default:i=String.fromCharCode(a)}o=a===-2,r.push(i)}return r.join("")}function fce(e){const t={constructs:IM([lce,...(e||{}).extensions||[]]),content:n(kse),defined:[],document:n(Rse),flow:n(Wle),lazy:{},string:n(Kle),text:n(Xle)};return t;function n(r){return o;function o(a){return cce(t,r,a)}}}function pce(e){for(;!MM(e););return e}const eN=/[\0\t\n\r]/g;function hce(){let e=1,t="",n=!0,r;return o;function o(a,i,l){const u=[];let d,p,h,y,g;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(i||void 0).decode(a)),h=0,t="",n&&(a.charCodeAt(0)===65279&&h++,n=void 0);h<a.length;){if(eN.lastIndex=h,d=eN.exec(a),y=d&&d.index!==void 0?d.index:a.length,g=a.charCodeAt(y),!d){t=a.slice(h);break}if(g===10&&h===y&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),h<y&&(u.push(a.slice(h,y)),e+=y-h),g){case 0:{u.push(65533),e++;break}case 9:{for(p=Math.ceil(e/4)*4,u.push(-2);e++<p;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}h=y+1}return l&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}const mce=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function gce(e){return e.replace(mce,yce)}function yce(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),o=r===120||r===88;return OM(n.slice(o?2:1),o?16:10)}return x_(n)||e}const HM={}.hasOwnProperty;function bce(e,t,n){return typeof t!="string"&&(n=t,t=void 0),vce(n)(pce(fce(n).document().write(hce()(e,t,!0))))}function vce(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(ot),autolinkProtocol:z,autolinkEmail:z,atxHeading:a(Ct),blockQuote:a(Ce),characterEscape:z,characterReference:z,codeFenced:a(Se),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:a(Se,i),codeText:a(ze,i),codeTextData:z,data:z,codeFlowValue:z,definition:a(Ne),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:a(_e),hardBreakEscape:a(At),hardBreakTrailing:a(At),htmlFlow:a(qe,i),htmlFlowData:z,htmlText:a(qe,i),htmlTextData:z,image:a(Rt),label:i,link:a(ot),listItem:a(je),listItemValue:y,listOrdered:a(tt,h),listUnordered:a(tt),paragraph:a(Be),reference:P,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:a(Ct),strong:a(Ut),thematicBreak:a(Ot)},exit:{atxHeading:u(),atxHeadingSequence:I,autolink:u(),autolinkEmail:De,autolinkProtocol:fe,blockQuote:u(),characterEscapeValue:L,characterReferenceMarkerHexadecimal:se,characterReferenceMarkerNumeric:se,characterReferenceValue:ne,characterReference:be,codeFenced:u(T),codeFencedFence:S,codeFencedFenceInfo:g,codeFencedFenceMeta:b,codeFlowValue:L,codeIndented:u(E),codeText:u(G),codeTextData:L,data:L,definition:u(),definitionDestinationString:D,definitionLabelString:A,definitionTitleString:C,emphasis:u(),hardBreakEscape:u(k),hardBreakTrailing:u(k),htmlFlow:u(F),htmlFlowData:L,htmlText:u(B),htmlTextData:L,image:u(Q),label:oe,labelText:Y,lineEnding:H,link:u(U),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:J,resourceDestinationString:N,resourceTitleString:K,resource:X,setextHeading:u($),setextHeadingLineSequence:j,setextHeadingText:O,strong:u(),thematicBreak:u()}};$M(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(de){let ye={type:"root",children:[]};const We={stack:[ye],tokenStack:[],config:t,enter:l,exit:d,buffer:i,resume:p,data:n},Ke=[];let et=-1;for(;++et<de.length;)if(de[et][1].type==="listOrdered"||de[et][1].type==="listUnordered")if(de[et][0]==="enter")Ke.push(et);else{const St=Ke.pop();et=o(de,St,et)}for(et=-1;++et<de.length;){const St=t[de[et][0]];HM.call(St,de[et][1].type)&&St[de[et][1].type].call(Object.assign({sliceSerialize:de[et][2].sliceSerialize},We),de[et][1])}if(We.tokenStack.length>0){const St=We.tokenStack[We.tokenStack.length-1];(St[1]||tN).call(We,void 0,St[0])}for(ye.position={start:el(de.length>0?de[0][1].start:{line:1,column:1,offset:0}),end:el(de.length>0?de[de.length-2][1].end:{line:1,column:1,offset:0})},et=-1;++et<t.transforms.length;)ye=t.transforms[et](ye)||ye;return ye}function o(de,ye,We){let Ke=ye-1,et=-1,St=!1,En,on,Xe,xe;for(;++Ke<=We;){const Te=de[Ke];switch(Te[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Te[0]==="enter"?et++:et--,xe=void 0;break}case"lineEndingBlank":{Te[0]==="enter"&&(En&&!xe&&!et&&!Xe&&(Xe=Ke),xe=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:xe=void 0}if(!et&&Te[0]==="enter"&&Te[1].type==="listItemPrefix"||et===-1&&Te[0]==="exit"&&(Te[1].type==="listUnordered"||Te[1].type==="listOrdered")){if(En){let mt=Ke;for(on=void 0;mt--;){const lt=de[mt];if(lt[1].type==="lineEnding"||lt[1].type==="lineEndingBlank"){if(lt[0]==="exit")continue;on&&(de[on][1].type="lineEndingBlank",St=!0),lt[1].type="lineEnding",on=mt}else if(!(lt[1].type==="linePrefix"||lt[1].type==="blockQuotePrefix"||lt[1].type==="blockQuotePrefixWhitespace"||lt[1].type==="blockQuoteMarker"||lt[1].type==="listItemIndent"))break}Xe&&(!on||Xe<on)&&(En._spread=!0),En.end=Object.assign({},on?de[on][1].start:Te[1].end),de.splice(on||Ke,0,["exit",En,Te[2]]),Ke++,We++}if(Te[1].type==="listItemPrefix"){const mt={type:"listItem",_spread:!1,start:Object.assign({},Te[1].start),end:void 0};En=mt,de.splice(Ke,0,["enter",mt,Te[2]]),Ke++,We++,Xe=void 0,xe=!0}}}return de[ye][1]._spread=St,We}function a(de,ye){return We;function We(Ke){l.call(this,de(Ke),Ke),ye&&ye.call(this,Ke)}}function i(){this.stack.push({type:"fragment",children:[]})}function l(de,ye,We){this.stack[this.stack.length-1].children.push(de),this.stack.push(de),this.tokenStack.push([ye,We||void 0]),de.position={start:el(ye.start),end:void 0}}function u(de){return ye;function ye(We){de&&de.call(this,We),d.call(this,We)}}function d(de,ye){const We=this.stack.pop(),Ke=this.tokenStack.pop();if(Ke)Ke[0].type!==de.type&&(ye?ye.call(this,de,Ke[0]):(Ke[1]||tN).call(this,de,Ke[0]));else throw new Error("Cannot close `"+de.type+"` ("+Vp({start:de.start,end:de.end})+"): it’s not open");We.position.end=el(de.end)}function p(){return E_(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function y(de){if(this.data.expectingFirstListItemValue){const ye=this.stack[this.stack.length-2];ye.start=Number.parseInt(this.sliceSerialize(de),10),this.data.expectingFirstListItemValue=void 0}}function g(){const de=this.resume(),ye=this.stack[this.stack.length-1];ye.lang=de}function b(){const de=this.resume(),ye=this.stack[this.stack.length-1];ye.meta=de}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function T(){const de=this.resume(),ye=this.stack[this.stack.length-1];ye.value=de.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function E(){const de=this.resume(),ye=this.stack[this.stack.length-1];ye.value=de.replace(/(\r?\n|\r)$/g,"")}function A(de){const ye=this.resume(),We=this.stack[this.stack.length-1];We.label=ye,We.identifier=za(this.sliceSerialize(de)).toLowerCase()}function C(){const de=this.resume(),ye=this.stack[this.stack.length-1];ye.title=de}function D(){const de=this.resume(),ye=this.stack[this.stack.length-1];ye.url=de}function I(de){const ye=this.stack[this.stack.length-1];if(!ye.depth){const We=this.sliceSerialize(de).length;ye.depth=We}}function O(){this.data.setextHeadingSlurpLineEnding=!0}function j(de){const ye=this.stack[this.stack.length-1];ye.depth=this.sliceSerialize(de).codePointAt(0)===61?1:2}function $(){this.data.setextHeadingSlurpLineEnding=void 0}function z(de){const ye=this.stack[this.stack.length-1].children;let We=ye[ye.length-1];(!We||We.type!=="text")&&(We=Bn(),We.position={start:el(de.start),end:void 0},ye.push(We)),this.stack.push(We)}function L(de){const ye=this.stack.pop();ye.value+=this.sliceSerialize(de),ye.position.end=el(de.end)}function H(de){const ye=this.stack[this.stack.length-1];if(this.data.atHardBreak){const We=ye.children[ye.children.length-1];We.position.end=el(de.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ye.type)&&(z.call(this,de),L.call(this,de))}function k(){this.data.atHardBreak=!0}function F(){const de=this.resume(),ye=this.stack[this.stack.length-1];ye.value=de}function B(){const de=this.resume(),ye=this.stack[this.stack.length-1];ye.value=de}function G(){const de=this.resume(),ye=this.stack[this.stack.length-1];ye.value=de}function U(){const de=this.stack[this.stack.length-1];if(this.data.inReference){const ye=this.data.referenceType||"shortcut";de.type+="Reference",de.referenceType=ye,delete de.url,delete de.title}else delete de.identifier,delete de.label;this.data.referenceType=void 0}function Q(){const de=this.stack[this.stack.length-1];if(this.data.inReference){const ye=this.data.referenceType||"shortcut";de.type+="Reference",de.referenceType=ye,delete de.url,delete de.title}else delete de.identifier,delete de.label;this.data.referenceType=void 0}function Y(de){const ye=this.sliceSerialize(de),We=this.stack[this.stack.length-2];We.label=gce(ye),We.identifier=za(ye).toLowerCase()}function oe(){const de=this.stack[this.stack.length-1],ye=this.resume(),We=this.stack[this.stack.length-1];if(this.data.inReference=!0,We.type==="link"){const Ke=de.children;We.children=Ke}else We.alt=ye}function N(){const de=this.resume(),ye=this.stack[this.stack.length-1];ye.url=de}function K(){const de=this.resume(),ye=this.stack[this.stack.length-1];ye.title=de}function X(){this.data.inReference=void 0}function P(){this.data.referenceType="collapsed"}function J(de){const ye=this.resume(),We=this.stack[this.stack.length-1];We.label=ye,We.identifier=za(this.sliceSerialize(de)).toLowerCase(),this.data.referenceType="full"}function se(de){this.data.characterReferenceType=de.type}function ne(de){const ye=this.sliceSerialize(de),We=this.data.characterReferenceType;let Ke;We?(Ke=OM(ye,We==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ke=x_(ye);const et=this.stack[this.stack.length-1];et.value+=Ke}function be(de){const ye=this.stack.pop();ye.position.end=el(de.end)}function fe(de){L.call(this,de);const ye=this.stack[this.stack.length-1];ye.url=this.sliceSerialize(de)}function De(de){L.call(this,de);const ye=this.stack[this.stack.length-1];ye.url="mailto:"+this.sliceSerialize(de)}function Ce(){return{type:"blockquote",children:[]}}function Se(){return{type:"code",lang:null,meta:null,value:""}}function ze(){return{type:"inlineCode",value:""}}function Ne(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function _e(){return{type:"emphasis",children:[]}}function Ct(){return{type:"heading",depth:0,children:[]}}function At(){return{type:"break"}}function qe(){return{type:"html",value:""}}function Rt(){return{type:"image",title:null,url:"",alt:null}}function ot(){return{type:"link",title:null,url:"",children:[]}}function tt(de){return{type:"list",ordered:de.type==="listOrdered",start:null,spread:de._spread,children:[]}}function je(de){return{type:"listItem",spread:de._spread,checked:null,children:[]}}function Be(){return{type:"paragraph",children:[]}}function Ut(){return{type:"strong",children:[]}}function Bn(){return{type:"text",value:""}}function Ot(){return{type:"thematicBreak"}}}function el(e){return{line:e.line,column:e.column,offset:e.offset}}function $M(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?$M(e,r):Ece(e,r)}}function Ece(e,t){let n;for(n in t)if(HM.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function tN(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Vp({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Vp({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Vp({start:t.start,end:t.end})+") is still open")}function xce(e){const t=this;t.parser=n;function n(r){return bce(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Sce(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Tce(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
269
|
-
`}]}function Cce(e,t){const n=t.value?t.value+`
|
|
270
|
-
`:"",r={};t.lang&&(r.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function _ce(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ace(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function kce(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=Ud(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let i,l=e.footnoteCounts.get(r);l===void 0?(l=0,e.footnoteOrder.push(r),i=e.footnoteOrder.length):i=a+1,l+=1,e.footnoteCounts.set(r,l);const u={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(t,u);const d={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,d),e.applyData(t,d)}function wce(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Rce(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function GM(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),a=o[0];a&&a.type==="text"?a.value="["+a.value:o.unshift({type:"text",value:"["});const i=o[o.length-1];return i&&i.type==="text"?i.value+=r:o.push({type:"text",value:r}),o}function Dce(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return GM(e,t);const o={src:Ud(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(o.title=r.title);const a={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,a),e.applyData(t,a)}function Ice(e,t){const n={src:Ud(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Oce(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Nce(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return GM(e,t);const o={href:Ud(r.url||"")};r.title!==null&&r.title!==void 0&&(o.title=r.title);const a={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Pce(e,t){const n={href:Ud(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Lce(e,t,n){const r=e.all(t),o=n?Mce(n):VM(t),a={},i=[];if(typeof t.checked=="boolean"){const p=r[0];let h;p&&p.type==="element"&&p.tagName==="p"?h=p:(h={type:"element",tagName:"p",properties:{},children:[]},r.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const p=r[l];(o||l!==0||p.type!=="element"||p.tagName!=="p")&&i.push({type:"text",value:`
|
|
271
|
-
`}),p.type==="element"&&p.tagName==="p"&&!o?i.push(...p.children):i.push(p)}const u=r[r.length-1];u&&(o||u.type!=="element"||u.tagName!=="p")&&i.push({type:"text",value:`
|
|
272
|
-
`});const d={type:"element",tagName:"li",properties:a,children:i};return e.patch(t,d),e.applyData(t,d)}function Mce(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=VM(n[r])}return t}function VM(e){return e.spread??e.children.length>1}function Fce(e,t){const n={},r=e.all(t);let o=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++o<r.length;){const i=r[o];if(i.type==="element"&&i.tagName==="li"&&i.properties&&Array.isArray(i.properties.className)&&i.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function jce(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Bce(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Uce(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function zce(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const i={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],i),o.push(i)}if(n.length>0){const i={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=Ri(t.children[1]),u=Wb(t.children[t.children.length-1]);l&&u&&(i.position={start:l,end:u}),o.push(i)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,a),e.applyData(t,a)}function Hce(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,i=a?a.length:t.children.length;let l=-1;const u=[];for(;++l<i;){const p=t.children[l],h={},y=a?a[l]:void 0;y&&(h.align=y);let g={type:"element",tagName:o,properties:h,children:[]};p&&(g.children=e.all(p),e.patch(p,g),g=e.applyData(p,g)),u.push(g)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,d),e.applyData(t,d)}function $ce(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const nN=9,rN=32;function Gce(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const a=[];for(;r;)a.push(oN(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return a.push(oN(t.slice(o),o>0,!1)),a.join("")}function oN(e,t,n){let r=0,o=e.length;if(t){let a=e.codePointAt(r);for(;a===nN||a===rN;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(o-1);for(;a===nN||a===rN;)o--,a=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}function Vce(e,t){const n={type:"text",value:Gce(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function qce(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Wce={blockquote:Sce,break:Tce,code:Cce,delete:_ce,emphasis:Ace,footnoteReference:kce,heading:wce,html:Rce,imageReference:Dce,image:Ice,inlineCode:Oce,linkReference:Nce,link:Pce,listItem:Lce,list:Fce,paragraph:jce,root:Bce,strong:Uce,table:zce,tableCell:$ce,tableRow:Hce,text:Vce,thematicBreak:qce,toml:Kg,yaml:Kg,definition:Kg,footnoteDefinition:Kg};function Kg(){}const qM=-1,Kb=0,Wp=1,A0=2,T_=3,C_=4,__=5,A_=6,WM=7,YM=8,aN=typeof self=="object"?self:globalThis,Yce=(e,t)=>{const n=(o,a)=>(e.set(a,o),o),r=o=>{if(e.has(o))return e.get(o);const[a,i]=t[o];switch(a){case Kb:case qM:return n(i,o);case Wp:{const l=n([],o);for(const u of i)l.push(r(u));return l}case A0:{const l=n({},o);for(const[u,d]of i)l[r(u)]=r(d);return l}case T_:return n(new Date(i),o);case C_:{const{source:l,flags:u}=i;return n(new RegExp(l,u),o)}case __:{const l=n(new Map,o);for(const[u,d]of i)l.set(r(u),r(d));return l}case A_:{const l=n(new Set,o);for(const u of i)l.add(r(u));return l}case WM:{const{name:l,message:u}=i;return n(new aN[l](u),o)}case YM:return n(BigInt(i),o);case"BigInt":return n(Object(BigInt(i)),o);case"ArrayBuffer":return n(new Uint8Array(i).buffer,i);case"DataView":{const{buffer:l}=new Uint8Array(i);return n(new DataView(l),i)}}return n(new aN[a](i),o)};return r},iN=e=>Yce(new Map,e)(0),Bu="",{toString:Qce}={},{keys:Kce}=Object,fp=e=>{const t=typeof e;if(t!=="object"||!e)return[Kb,t];const n=Qce.call(e).slice(8,-1);switch(n){case"Array":return[Wp,Bu];case"Object":return[A0,Bu];case"Date":return[T_,Bu];case"RegExp":return[C_,Bu];case"Map":return[__,Bu];case"Set":return[A_,Bu];case"DataView":return[Wp,n]}return n.includes("Array")?[Wp,n]:n.includes("Error")?[WM,n]:[A0,n]},Xg=([e,t])=>e===Kb&&(t==="function"||t==="symbol"),Xce=(e,t,n,r)=>{const o=(i,l)=>{const u=r.push(i)-1;return n.set(l,u),u},a=i=>{if(n.has(i))return n.get(i);let[l,u]=fp(i);switch(l){case Kb:{let p=i;switch(u){case"bigint":l=YM,p=i.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);p=null;break;case"undefined":return o([qM],i)}return o([l,p],i)}case Wp:{if(u){let y=i;return u==="DataView"?y=new Uint8Array(i.buffer):u==="ArrayBuffer"&&(y=new Uint8Array(i)),o([u,[...y]],i)}const p=[],h=o([l,p],i);for(const y of i)p.push(a(y));return h}case A0:{if(u)switch(u){case"BigInt":return o([u,i.toString()],i);case"Boolean":case"Number":case"String":return o([u,i.valueOf()],i)}if(t&&"toJSON"in i)return a(i.toJSON());const p=[],h=o([l,p],i);for(const y of Kce(i))(e||!Xg(fp(i[y])))&&p.push([a(y),a(i[y])]);return h}case T_:return o([l,i.toISOString()],i);case C_:{const{source:p,flags:h}=i;return o([l,{source:p,flags:h}],i)}case __:{const p=[],h=o([l,p],i);for(const[y,g]of i)(e||!(Xg(fp(y))||Xg(fp(g))))&&p.push([a(y),a(g)]);return h}case A_:{const p=[],h=o([l,p],i);for(const y of i)(e||!Xg(fp(y)))&&p.push(a(y));return h}}const{message:d}=i;return o([l,{name:u,message:d}],i)};return a},sN=(e,{json:t,lossy:n}={})=>{const r=[];return Xce(!(t||n),!!t,new Map,r)(e),r},Lc=typeof structuredClone=="function"?((e,t)=>t&&("json"in t||"lossy"in t)?iN(sN(e,t)):structuredClone(e)):(e,t)=>iN(sN(e,t));function Zce(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Jce(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function eue(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Zce,r=e.options.footnoteBackLabel||Jce,o=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",i=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let u=-1;for(;++u<e.footnoteOrder.length;){const d=e.footnoteById.get(e.footnoteOrder[u]);if(!d)continue;const p=e.all(d),h=String(d.identifier).toUpperCase(),y=Ud(h.toLowerCase());let g=0;const b=[],S=e.footnoteCounts.get(h);for(;S!==void 0&&++g<=S;){b.length>0&&b.push({type:"text",value:" "});let A=typeof n=="string"?n:n(u,g);typeof A=="string"&&(A={type:"text",value:A}),b.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+y+(g>1?"-"+g:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,g),className:["data-footnote-backref"]},children:Array.isArray(A)?A:[A]})}const T=p[p.length-1];if(T&&T.type==="element"&&T.tagName==="p"){const A=T.children[T.children.length-1];A&&A.type==="text"?A.value+=" ":T.children.push({type:"text",value:" "}),T.children.push(...b)}else p.push(...b);const E={type:"element",tagName:"li",properties:{id:t+"fn-"+y},children:e.wrap(p,!0)};e.patch(d,E),l.push(E)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Lc(i),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
|
|
273
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:`
|
|
274
|
-
`}]}}const Xb=(function(e){if(e==null)return oue;if(typeof e=="function")return Zb(e);if(typeof e=="object")return Array.isArray(e)?tue(e):nue(e);if(typeof e=="string")return rue(e);throw new Error("Expected function, string, or object as test")});function tue(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Xb(e[n]);return Zb(r);function r(...o){let a=-1;for(;++a<t.length;)if(t[a].apply(this,o))return!0;return!1}}function nue(e){const t=e;return Zb(n);function n(r){const o=r;let a;for(a in e)if(o[a]!==t[a])return!1;return!0}}function rue(e){return Zb(t);function t(n){return n&&n.type===e}}function Zb(e){return t;function t(n,r,o){return!!(aue(n)&&e.call(this,n,typeof r=="number"?r:void 0,o||void 0))}}function oue(){return!0}function aue(e){return e!==null&&typeof e=="object"&&"type"in e}const QM=[],iue=!0,k0=!1,Yp="skip";function KM(e,t,n,r){let o;typeof t=="function"&&typeof n!="function"?(r=n,n=t):o=t;const a=Xb(o),i=r?-1:1;l(e,void 0,[])();function l(u,d,p){const h=u&&typeof u=="object"?u:{};if(typeof h.type=="string"){const g=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(y,"name",{value:"node ("+(u.type+(g?"<"+g+">":""))+")"})}return y;function y(){let g=QM,b,S,T;if((!t||a(u,d,p[p.length-1]||void 0))&&(g=sue(n(u,p)),g[0]===k0))return g;if("children"in u&&u.children){const E=u;if(E.children&&g[0]!==Yp)for(S=(r?E.children.length:-1)+i,T=p.concat(E);S>-1&&S<E.children.length;){const A=E.children[S];if(b=l(A,S,T)(),b[0]===k0)return b;S=typeof b[1]=="number"?b[1]:S+i}}return g}}}function sue(e){return Array.isArray(e)?e:typeof e=="number"?[iue,e]:e==null?QM:[e]}function Mo(e,t,n,r){let o,a,i;typeof t=="function"&&typeof n!="function"?(a=void 0,i=t,o=n):(a=t,i=n,o=r),KM(e,a,l,o);function l(u,d){const p=d[d.length-1],h=p?p.children.indexOf(u):void 0;return i(u,h,p)}}const fT={}.hasOwnProperty,lue={};function cue(e,t){const n=t||lue,r=new Map,o=new Map,a=new Map,i={...Wce,...n.handlers},l={all:d,applyData:due,definitionById:r,footnoteById:o,footnoteCounts:a,footnoteOrder:[],handlers:i,one:u,options:n,patch:uue,wrap:pue};return Mo(e,function(p){if(p.type==="definition"||p.type==="footnoteDefinition"){const h=p.type==="definition"?r:o,y=String(p.identifier).toUpperCase();h.has(y)||h.set(y,p)}}),l;function u(p,h){const y=p.type,g=l.handlers[y];if(fT.call(l.handlers,y)&&g)return g(l,p,h);if(l.options.passThrough&&l.options.passThrough.includes(y)){if("children"in p){const{children:b,...S}=p,T=Lc(S);return T.children=l.all(p),T}return Lc(p)}return(l.options.unknownHandler||fue)(l,p,h)}function d(p){const h=[];if("children"in p){const y=p.children;let g=-1;for(;++g<y.length;){const b=l.one(y[g],p);if(b){if(g&&y[g-1].type==="break"&&(!Array.isArray(b)&&b.type==="text"&&(b.value=lN(b.value)),!Array.isArray(b)&&b.type==="element")){const S=b.children[0];S&&S.type==="text"&&(S.value=lN(S.value))}Array.isArray(b)?h.push(...b):h.push(b)}}}return h}}function uue(e,t){e.position&&(t.position=Jie(e))}function due(e,t){let n=t;if(e&&e.data){const r=e.data.hName,o=e.data.hChildren,a=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const i="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:i}}n.type==="element"&&a&&Object.assign(n.properties,Lc(a)),"children"in n&&n.children&&o!==null&&o!==void 0&&(n.children=o)}return n}function fue(e,t){const n=t.data||{},r="value"in t&&!(fT.call(n,"hProperties")||fT.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function pue(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
275
|
-
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
276
|
-
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
277
|
-
`}),n}function lN(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function cN(e,t){const n=cue(e,t),r=n.one(e,void 0),o=eue(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&a.children.push({type:"text",value:`
|
|
278
|
-
`},o),a}function hue(e,t){return e&&"run"in e?async function(n,r){const o=cN(n,{file:r,...t});await e.run(o,r)}:function(n,r){return cN(n,{file:r,...e||t})}}function uN(e){if(e)throw e}var xx,dN;function mue(){if(dN)return xx;dN=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},a=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var d=e.call(u,"constructor"),p=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!d&&!p)return!1;var h;for(h in u);return typeof h>"u"||e.call(u,h)},i=function(u,d){n&&d.name==="__proto__"?n(u,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):u[d.name]=d.newValue},l=function(u,d){if(d==="__proto__")if(e.call(u,d)){if(r)return r(u,d).value}else return;return u[d]};return xx=function u(){var d,p,h,y,g,b,S=arguments[0],T=1,E=arguments.length,A=!1;for(typeof S=="boolean"&&(A=S,S=arguments[1]||{},T=2),(S==null||typeof S!="object"&&typeof S!="function")&&(S={});T<E;++T)if(d=arguments[T],d!=null)for(p in d)h=l(S,p),y=l(d,p),S!==y&&(A&&y&&(a(y)||(g=o(y)))?(g?(g=!1,b=h&&o(h)?h:[]):b=h&&a(h)?h:{},i(S,{name:p,newValue:u(A,b,y)})):typeof y<"u"&&i(S,{name:p,newValue:y}));return S},xx}var gue=mue();const Sx=kb(gue);function pT(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function yue(){const e=[],t={run:n,use:r};return t;function n(...o){let a=-1;const i=o.pop();if(typeof i!="function")throw new TypeError("Expected function as last argument, not "+i);l(null,...o);function l(u,...d){const p=e[++a];let h=-1;if(u){i(u);return}for(;++h<o.length;)(d[h]===null||d[h]===void 0)&&(d[h]=o[h]);o=d,p?bue(p,l)(...d):i(null,...d)}}function r(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}function bue(e,t){let n;return r;function r(...i){const l=e.length>i.length;let u;l&&i.push(o);try{u=e.apply(this,i)}catch(d){const p=d;if(l&&n)throw p;return o(p)}l||(u&&u.then&&typeof u.then=="function"?u.then(a,o):u instanceof Error?o(u):a(u))}function o(i,...l){n||(n=!0,t(i,...l))}function a(i){o(null,i)}}const ci={basename:vue,dirname:Eue,extname:xue,join:Sue,sep:"/"};function vue(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');fm(e);let n=0,r=-1,o=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(a){n=o+1;break}}else r<0&&(a=!0,r=o+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let i=-1,l=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(a){n=o+1;break}}else i<0&&(a=!0,i=o+1),l>-1&&(e.codePointAt(o)===t.codePointAt(l--)?l<0&&(r=o):(l=-1,r=i));return n===r?r=i:r<0&&(r=e.length),e.slice(n,r)}function Eue(e){if(fm(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function xue(e){fm(e);let t=e.length,n=-1,r=0,o=-1,a=0,i;for(;t--;){const l=e.codePointAt(t);if(l===47){if(i){r=t+1;break}continue}n<0&&(i=!0,n=t+1),l===46?o<0?o=t:a!==1&&(a=1):o>-1&&(a=-1)}return o<0||n<0||a===0||a===1&&o===n-1&&o===r+1?"":e.slice(o,n)}function Sue(...e){let t=-1,n;for(;++t<e.length;)fm(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Tue(n)}function Tue(e){fm(e);const t=e.codePointAt(0)===47;let n=Cue(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Cue(e,t){let n="",r=0,o=-1,a=0,i=-1,l,u;for(;++i<=e.length;){if(i<e.length)l=e.codePointAt(i);else{if(l===47)break;l=47}if(l===47){if(!(o===i-1||a===1))if(o!==i-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),o=i,a=0;continue}}else if(n.length>0){n="",r=0,o=i,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(o+1,i):n=e.slice(o+1,i),r=i-o-1;o=i,a=0}else l===46&&a>-1?a++:a=-1}return n}function fm(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const _ue={cwd:Aue};function Aue(){return"/"}function hT(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function kue(e){if(typeof e=="string")e=new URL(e);else if(!hT(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return wue(e)}function wue(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}const Tx=["history","path","basename","stem","extname","dirname"];class XM{constructor(t){let n;t?hT(t)?n={path:t}:typeof t=="string"||Rue(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":_ue.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Tx.length;){const a=Tx[r];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let o;for(o in n)Tx.includes(o)||(this[o]=n[o])}get basename(){return typeof this.path=="string"?ci.basename(this.path):void 0}set basename(t){_x(t,"basename"),Cx(t,"basename"),this.path=ci.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ci.dirname(this.path):void 0}set dirname(t){fN(this.basename,"dirname"),this.path=ci.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ci.extname(this.path):void 0}set extname(t){if(Cx(t,"extname"),fN(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ci.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){hT(t)&&(t=kue(t)),_x(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ci.basename(this.path,this.extname):void 0}set stem(t){_x(t,"stem"),Cx(t,"stem"),this.path=ci.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const o=this.message(t,n,r);throw o.fatal=!0,o}info(t,n,r){const o=this.message(t,n,r);return o.fatal=void 0,o}message(t,n,r){const o=new ro(t,n,r);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Cx(e,t){if(e&&e.includes(ci.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ci.sep+"`")}function _x(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function fN(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Rue(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Due=(function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),Iue={}.hasOwnProperty;class k_ extends Due{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=yue()}copy(){const t=new k_;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Sx(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(wx("data",this.frozen),this.namespace[t]=n,this):Iue.call(this.namespace,t)&&this.namespace[t]||void 0:t?(wx("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const o=n.call(t,...r);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Zg(t),r=this.parser||this.Parser;return Ax("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Ax("process",this.parser||this.Parser),kx("process",this.compiler||this.Compiler),n?o(void 0,n):new Promise(o);function o(a,i){const l=Zg(t),u=r.parse(l);r.run(u,l,function(p,h,y){if(p||!h||!y)return d(p);const g=h,b=r.stringify(g,y);Pue(b)?y.value=b:y.result=b,d(p,y)});function d(p,h){p||!h?i(p):a?a(h):n(void 0,h)}}}processSync(t){let n=!1,r;return this.freeze(),Ax("processSync",this.parser||this.Parser),kx("processSync",this.compiler||this.Compiler),this.process(t,o),hN("processSync","process",n),r;function o(a,i){n=!0,uN(a),r=i}}run(t,n,r){pN(t),this.freeze();const o=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?a(void 0,r):new Promise(a);function a(i,l){const u=Zg(n);o.run(t,u,d);function d(p,h,y){const g=h||t;p?l(p):i?i(g):r(void 0,g,y)}}}runSync(t,n){let r=!1,o;return this.run(t,n,a),hN("runSync","run",r),o;function a(i,l){uN(i),o=l,r=!0}}stringify(t,n){this.freeze();const r=Zg(n),o=this.compiler||this.Compiler;return kx("stringify",o),pN(t),o(t,r)}use(t,...n){const r=this.attachers,o=this.namespace;if(wx("use",this.frozen),t!=null)if(typeof t=="function")u(t,n);else if(typeof t=="object")Array.isArray(t)?l(t):i(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(d){if(typeof d=="function")u(d,[]);else if(typeof d=="object")if(Array.isArray(d)){const[p,...h]=d;u(p,h)}else i(d);else throw new TypeError("Expected usable value, not `"+d+"`")}function i(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");l(d.plugins),d.settings&&(o.settings=Sx(!0,o.settings,d.settings))}function l(d){let p=-1;if(d!=null)if(Array.isArray(d))for(;++p<d.length;){const h=d[p];a(h)}else throw new TypeError("Expected a list of plugins, not `"+d+"`")}function u(d,p){let h=-1,y=-1;for(;++h<r.length;)if(r[h][0]===d){y=h;break}if(y===-1)r.push([d,...p]);else if(p.length>0){let[g,...b]=p;const S=r[y][1];pT(S)&&pT(g)&&(g=Sx(!0,S,g)),r[y]=[d,g,...b]}}}}const Oue=new k_().freeze();function Ax(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function kx(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function wx(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function pN(e){if(!pT(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function hN(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Zg(e){return Nue(e)?e:new XM(e)}function Nue(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Pue(e){return typeof e=="string"||Lue(e)}function Lue(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Mue="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",mN=[],gN={allowDangerousHtml:!0},Fue=/^(https?|ircs?|mailto|xmpp)$/i,jue=[{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:"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 Bue(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",o=e.className,a=e.components,i=e.disallowedElements,l=e.rehypePlugins||mN,u=e.remarkPlugins||mN,d=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...gN}:gN,p=e.skipHtml,h=e.unwrapDisallowed,y=e.urlTransform||Uue,g=Oue().use(xce).use(u).use(hue,d).use(l),b=new XM;typeof r=="string"&&(b.value=r);for(const A of jue)Object.hasOwn(e,A.from)&&""+A.from+(A.to?"use `"+A.to+"` instead":"remove it")+Mue+A.id;const S=g.parse(b);let T=g.runSync(S,b);return o&&(T={type:"element",tagName:"div",properties:{className:o},children:T.type==="root"?T.children:[T]}),Mo(T,E),ose(T,{Fragment:v.Fragment,components:a,ignoreInvalidStyle:!0,jsx:v.jsx,jsxs:v.jsxs,passKeys:!0,passNode:!0});function E(A,C,D){if(A.type==="raw"&&D&&typeof C=="number")return p?D.children.splice(C,1):D.children[C]={type:"text",value:A.value},C;if(A.type==="element"){let I;for(I in bx)if(Object.hasOwn(bx,I)&&Object.hasOwn(A.properties,I)){const O=A.properties[I],j=bx[I];(j===null||j.includes(A.tagName))&&(A.properties[I]=y(String(O||""),I,A))}}if(A.type==="element"){let I=t?!t.includes(A.tagName):i?i.includes(A.tagName):!1;if(!I&&n&&typeof C=="number"&&(I=!n(A,C,D)),I&&D&&typeof C=="number")return h&&A.children?D.children.splice(C,1,...A.children):D.children.splice(C,1),C}}}function Uue(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return t===-1||o!==-1&&t>o||n!==-1&&t>n||r!==-1&&t>r||Fue.test(e.slice(0,t))?e:""}function zue(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Hue(e,t,n){const r=Xb((n||{}).ignore||[]),o=$ue(t);let a=-1;for(;++a<o.length;)KM(e,"text",i);function i(u,d){let p=-1,h;for(;++p<d.length;){const y=d[p],g=h?h.children:void 0;if(r(y,g?g.indexOf(y):void 0,h))return;h=y}if(h)return l(u,d)}function l(u,d){const p=d[d.length-1],h=o[a][0],y=o[a][1];let g=0;const b=p.children.indexOf(u);let S=!1,T=[];h.lastIndex=0;let E=h.exec(u.value);for(;E;){const A=E.index,C={index:E.index,input:E.input,stack:[...d,u]};let D=y(...E,C);if(typeof D=="string"&&(D=D.length>0?{type:"text",value:D}:void 0),D===!1?h.lastIndex=A+1:(g!==A&&T.push({type:"text",value:u.value.slice(g,A)}),Array.isArray(D)?T.push(...D):D&&T.push(D),g=A+E[0].length,S=!0),!h.global)break;E=h.exec(u.value)}return S?(g<u.value.length&&T.push({type:"text",value:u.value.slice(g)}),p.children.splice(b,1,...T)):T=[u],b+T.length}}function $ue(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const o=n[r];t.push([Gue(o[0]),Vue(o[1])])}return t}function Gue(e){return typeof e=="string"?new RegExp(zue(e),"g"):e}function Vue(e){return typeof e=="function"?e:function(){return e}}const Rx="phrasing",Dx=["autolink","link","image","label"];function que(){return{transforms:[Jue],enter:{literalAutolink:Yue,literalAutolinkEmail:Ix,literalAutolinkHttp:Ix,literalAutolinkWww:Ix},exit:{literalAutolink:Zue,literalAutolinkEmail:Xue,literalAutolinkHttp:Que,literalAutolinkWww:Kue}}}function Wue(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Rx,notInConstruct:Dx},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Rx,notInConstruct:Dx},{character:":",before:"[ps]",after:"\\/",inConstruct:Rx,notInConstruct:Dx}]}}function Yue(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Ix(e){this.config.enter.autolinkProtocol.call(this,e)}function Que(e){this.config.exit.autolinkProtocol.call(this,e)}function Kue(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Xue(e){this.config.exit.autolinkEmail.call(this,e)}function Zue(e){this.exit(e)}function Jue(e){Hue(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ede],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,tde]],{ignore:["link","linkReference"]})}function ede(e,t,n,r,o){let a="";if(!ZM(o)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!nde(n)))return!1;const i=rde(n+r);if(!i[0])return!1;const l={type:"link",title:null,url:a+t+i[0],children:[{type:"text",value:t+i[0]}]};return i[1]?[l,{type:"text",value:i[1]}]:l}function tde(e,t,n,r){return!ZM(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function nde(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function rde(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const o=b0(e,"(");let a=b0(e,")");for(;r!==-1&&o>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function ZM(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Pc(n)||Yb(n))&&(!t||n!==47)}JM.peek=fde;function ode(){this.buffer()}function ade(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function ide(){this.buffer()}function sde(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function lde(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=za(this.sliceSerialize(e)).toLowerCase(),n.label=t}function cde(e){this.exit(e)}function ude(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=za(this.sliceSerialize(e)).toLowerCase(),n.label=t}function dde(e){this.exit(e)}function fde(){return"["}function JM(e,t,n,r){const o=n.createTracker(r);let a=o.move("[^");const i=n.enter("footnoteReference"),l=n.enter("reference");return a+=o.move(n.safe(n.associationId(e),{after:"]",before:a})),l(),i(),a+=o.move("]"),a}function pde(){return{enter:{gfmFootnoteCallString:ode,gfmFootnoteCall:ade,gfmFootnoteDefinitionLabelString:ide,gfmFootnoteDefinition:sde},exit:{gfmFootnoteCallString:lde,gfmFootnoteCall:cde,gfmFootnoteDefinitionLabelString:ude,gfmFootnoteDefinition:dde}}}function hde(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:JM},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,o,a,i){const l=a.createTracker(i);let u=l.move("[^");const d=a.enter("footnoteDefinition"),p=a.enter("label");return u+=l.move(a.safe(a.associationId(r),{before:u,after:"]"})),p(),u+=l.move("]:"),r.children&&r.children.length>0&&(l.shift(4),u+=l.move((t?`
|
|
279
|
-
`:" ")+a.indentLines(a.containerFlow(r,l.current()),t?e6:mde))),d(),u}}function mde(e,t,n){return t===0?e:e6(e,t,n)}function e6(e,t,n){return(n?"":" ")+e}const gde=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];t6.peek=xde;function yde(){return{canContainEols:["delete"],enter:{strikethrough:vde},exit:{strikethrough:Ede}}}function bde(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:gde}],handlers:{delete:t6}}}function vde(e){this.enter({type:"delete",children:[]},e)}function Ede(e){this.exit(e)}function t6(e,t,n,r){const o=n.createTracker(r),a=n.enter("strikethrough");let i=o.move("~~");return i+=n.containerPhrasing(e,{...o.current(),before:i,after:"~"}),i+=o.move("~~"),a(),i}function xde(){return"~"}function Sde(e){return e.length}function Tde(e,t){const n=t||{},r=(n.align||[]).concat(),o=n.stringLength||Sde,a=[],i=[],l=[],u=[];let d=0,p=-1;for(;++p<e.length;){const S=[],T=[];let E=-1;for(e[p].length>d&&(d=e[p].length);++E<e[p].length;){const A=Cde(e[p][E]);if(n.alignDelimiters!==!1){const C=o(A);T[E]=C,(u[E]===void 0||C>u[E])&&(u[E]=C)}S.push(A)}i[p]=S,l[p]=T}let h=-1;if(typeof r=="object"&&"length"in r)for(;++h<d;)a[h]=yN(r[h]);else{const S=yN(r);for(;++h<d;)a[h]=S}h=-1;const y=[],g=[];for(;++h<d;){const S=a[h];let T="",E="";S===99?(T=":",E=":"):S===108?T=":":S===114&&(E=":");let A=n.alignDelimiters===!1?1:Math.max(1,u[h]-T.length-E.length);const C=T+"-".repeat(A)+E;n.alignDelimiters!==!1&&(A=T.length+A+E.length,A>u[h]&&(u[h]=A),g[h]=A),y[h]=C}i.splice(1,0,y),l.splice(1,0,g),p=-1;const b=[];for(;++p<i.length;){const S=i[p],T=l[p];h=-1;const E=[];for(;++h<d;){const A=S[h]||"";let C="",D="";if(n.alignDelimiters!==!1){const I=u[h]-(T[h]||0),O=a[h];O===114?C=" ".repeat(I):O===99?I%2?(C=" ".repeat(I/2+.5),D=" ".repeat(I/2-.5)):(C=" ".repeat(I/2),D=C):D=" ".repeat(I)}n.delimiterStart!==!1&&!h&&E.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&A==="")&&(n.delimiterStart!==!1||h)&&E.push(" "),n.alignDelimiters!==!1&&E.push(C),E.push(A),n.alignDelimiters!==!1&&E.push(D),n.padding!==!1&&E.push(" "),(n.delimiterEnd!==!1||h!==d-1)&&E.push("|")}b.push(n.delimiterEnd===!1?E.join("").replace(/ +$/,""):E.join(""))}return b.join(`
|
|
280
|
-
`)}function Cde(e){return e==null?"":String(e)}function yN(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function _de(e,t,n,r){const o=n.enter("blockquote"),a=n.createTracker(r);a.move("> "),a.shift(2);const i=n.indentLines(n.containerFlow(e,a.current()),Ade);return o(),i}function Ade(e,t,n){return">"+(n?"":" ")+e}function kde(e,t){return bN(e,t.inConstruct,!0)&&!bN(e,t.notInConstruct,!1)}function bN(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function vN(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;)if(n.unsafe[o].character===`
|
|
281
|
-
`&&kde(n.stack,n.unsafe[o]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
282
|
-
`}function wde(e,t){const n=String(e);let r=n.indexOf(t),o=r,a=0,i=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===o?++a>i&&(i=a):a=1,o=r+t.length,r=n.indexOf(t,o);return i}function Rde(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Dde(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Ide(e,t,n,r){const o=Dde(n),a=e.value||"",i=o==="`"?"GraveAccent":"Tilde";if(Rde(e,n)){const h=n.enter("codeIndented"),y=n.indentLines(a,Ode);return h(),y}const l=n.createTracker(r),u=o.repeat(Math.max(wde(a,o)+1,3)),d=n.enter("codeFenced");let p=l.move(u);if(e.lang){const h=n.enter(`codeFencedLang${i}`);p+=l.move(n.safe(e.lang,{before:p,after:" ",encode:["`"],...l.current()})),h()}if(e.lang&&e.meta){const h=n.enter(`codeFencedMeta${i}`);p+=l.move(" "),p+=l.move(n.safe(e.meta,{before:p,after:`
|
|
283
|
-
`,encode:["`"],...l.current()})),h()}return p+=l.move(`
|
|
284
|
-
`),a&&(p+=l.move(a+`
|
|
285
|
-
`)),p+=l.move(u),d(),p}function Ode(e,t,n){return(n?"":" ")+e}function w_(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Nde(e,t,n,r){const o=w_(n),a=o==='"'?"Quote":"Apostrophe",i=n.enter("definition");let l=n.enter("label");const u=n.createTracker(r);let d=u.move("[");return d+=u.move(n.safe(n.associationId(e),{before:d,after:"]",...u.current()})),d+=u.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),d+=u.move("<"),d+=u.move(n.safe(e.url,{before:d,after:">",...u.current()})),d+=u.move(">")):(l=n.enter("destinationRaw"),d+=u.move(n.safe(e.url,{before:d,after:e.title?" ":`
|
|
286
|
-
`,...u.current()}))),l(),e.title&&(l=n.enter(`title${a}`),d+=u.move(" "+o),d+=u.move(n.safe(e.title,{before:d,after:o,...u.current()})),d+=u.move(o),l()),i(),d}function Pde(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Nh(e){return"&#x"+e.toString(16).toUpperCase()+";"}function w0(e,t,n){const r=xd(e),o=xd(t);return r===void 0?o===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===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}}n6.peek=Lde;function n6(e,t,n,r){const o=Pde(n),a=n.enter("emphasis"),i=n.createTracker(r),l=i.move(o);let u=i.move(n.containerPhrasing(e,{after:o,before:l,...i.current()}));const d=u.charCodeAt(0),p=w0(r.before.charCodeAt(r.before.length-1),d,o);p.inside&&(u=Nh(d)+u.slice(1));const h=u.charCodeAt(u.length-1),y=w0(r.after.charCodeAt(0),h,o);y.inside&&(u=u.slice(0,-1)+Nh(h));const g=i.move(o);return a(),n.attentionEncodeSurroundingInfo={after:y.outside,before:p.outside},l+u+g}function Lde(e,t,n){return n.options.emphasis||"*"}function Mde(e,t){let n=!1;return Mo(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,k0}),!!((!e.depth||e.depth<3)&&E_(e)&&(t.options.setext||n))}function Fde(e,t,n,r){const o=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(Mde(e,n)){const p=n.enter("headingSetext"),h=n.enter("phrasing"),y=n.containerPhrasing(e,{...a.current(),before:`
|
|
287
|
-
`,after:`
|
|
288
|
-
`});return h(),p(),y+`
|
|
289
|
-
`+(o===1?"=":"-").repeat(y.length-(Math.max(y.lastIndexOf("\r"),y.lastIndexOf(`
|
|
290
|
-
`))+1))}const i="#".repeat(o),l=n.enter("headingAtx"),u=n.enter("phrasing");a.move(i+" ");let d=n.containerPhrasing(e,{before:"# ",after:`
|
|
291
|
-
`,...a.current()});return/^[\t ]/.test(d)&&(d=Nh(d.charCodeAt(0))+d.slice(1)),d=d?i+" "+d:i,n.options.closeAtx&&(d+=" "+i),u(),l(),d}r6.peek=jde;function r6(e){return e.value||""}function jde(){return"<"}o6.peek=Bde;function o6(e,t,n,r){const o=w_(n),a=o==='"'?"Quote":"Apostrophe",i=n.enter("image");let l=n.enter("label");const u=n.createTracker(r);let d=u.move("![");return d+=u.move(n.safe(e.alt,{before:d,after:"]",...u.current()})),d+=u.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),d+=u.move("<"),d+=u.move(n.safe(e.url,{before:d,after:">",...u.current()})),d+=u.move(">")):(l=n.enter("destinationRaw"),d+=u.move(n.safe(e.url,{before:d,after:e.title?" ":")",...u.current()}))),l(),e.title&&(l=n.enter(`title${a}`),d+=u.move(" "+o),d+=u.move(n.safe(e.title,{before:d,after:o,...u.current()})),d+=u.move(o),l()),d+=u.move(")"),i(),d}function Bde(){return"!"}a6.peek=Ude;function a6(e,t,n,r){const o=e.referenceType,a=n.enter("imageReference");let i=n.enter("label");const l=n.createTracker(r);let u=l.move("![");const d=n.safe(e.alt,{before:u,after:"]",...l.current()});u+=l.move(d+"]["),i();const p=n.stack;n.stack=[],i=n.enter("reference");const h=n.safe(n.associationId(e),{before:u,after:"]",...l.current()});return i(),n.stack=p,a(),o==="full"||!d||d!==h?u+=l.move(h+"]"):o==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}function Ude(){return"!"}i6.peek=zde;function i6(e,t,n){let r=e.value||"",o="`",a=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){const i=n.unsafe[a],l=n.compilePattern(i);let u;if(i.atBreak)for(;u=l.exec(r);){let d=u.index;r.charCodeAt(d)===10&&r.charCodeAt(d-1)===13&&d--,r=r.slice(0,d)+" "+r.slice(u.index+1)}}return o+r+o}function zde(){return"`"}function s6(e,t){const n=E_(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}l6.peek=Hde;function l6(e,t,n,r){const o=w_(n),a=o==='"'?"Quote":"Apostrophe",i=n.createTracker(r);let l,u;if(s6(e,n)){const p=n.stack;n.stack=[],l=n.enter("autolink");let h=i.move("<");return h+=i.move(n.containerPhrasing(e,{before:h,after:">",...i.current()})),h+=i.move(">"),l(),n.stack=p,h}l=n.enter("link"),u=n.enter("label");let d=i.move("[");return d+=i.move(n.containerPhrasing(e,{before:d,after:"](",...i.current()})),d+=i.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),d+=i.move("<"),d+=i.move(n.safe(e.url,{before:d,after:">",...i.current()})),d+=i.move(">")):(u=n.enter("destinationRaw"),d+=i.move(n.safe(e.url,{before:d,after:e.title?" ":")",...i.current()}))),u(),e.title&&(u=n.enter(`title${a}`),d+=i.move(" "+o),d+=i.move(n.safe(e.title,{before:d,after:o,...i.current()})),d+=i.move(o),u()),d+=i.move(")"),l(),d}function Hde(e,t,n){return s6(e,n)?"<":"["}c6.peek=$de;function c6(e,t,n,r){const o=e.referenceType,a=n.enter("linkReference");let i=n.enter("label");const l=n.createTracker(r);let u=l.move("[");const d=n.containerPhrasing(e,{before:u,after:"]",...l.current()});u+=l.move(d+"]["),i();const p=n.stack;n.stack=[],i=n.enter("reference");const h=n.safe(n.associationId(e),{before:u,after:"]",...l.current()});return i(),n.stack=p,a(),o==="full"||!d||d!==h?u+=l.move(h+"]"):o==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}function $de(){return"["}function R_(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Gde(e){const t=R_(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Vde(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function u6(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function qde(e,t,n,r){const o=n.enter("list"),a=n.bulletCurrent;let i=e.ordered?Vde(n):R_(n);const l=e.ordered?i==="."?")":".":Gde(n);let u=t&&n.bulletLastUsed?i===n.bulletLastUsed:!1;if(!e.ordered){const p=e.children?e.children[0]:void 0;if((i==="*"||i==="-")&&p&&(!p.children||!p.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(u=!0),u6(n)===i&&p){let h=-1;for(;++h<e.children.length;){const y=e.children[h];if(y&&y.type==="listItem"&&y.children&&y.children[0]&&y.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(i=l),n.bulletCurrent=i;const d=n.containerFlow(e,r);return n.bulletLastUsed=i,n.bulletCurrent=a,o(),d}function Wde(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function Yde(e,t,n,r){const o=Wde(n);let a=n.bulletCurrent||R_(n);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let i=a.length+1;(o==="tab"||o==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(i=Math.ceil(i/4)*4);const l=n.createTracker(r);l.move(a+" ".repeat(i-a.length)),l.shift(i);const u=n.enter("listItem"),d=n.indentLines(n.containerFlow(e,l.current()),p);return u(),d;function p(h,y,g){return y?(g?"":" ".repeat(i))+h:(g?a:a+" ".repeat(i-a.length))+h}}function Qde(e,t,n,r){const o=n.enter("paragraph"),a=n.enter("phrasing"),i=n.containerPhrasing(e,r);return a(),o(),i}const Kde=Xb(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Xde(e,t,n,r){return(e.children.some(function(o){return Kde(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Zde(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}d6.peek=Jde;function d6(e,t,n,r){const o=Zde(n),a=n.enter("strong"),i=n.createTracker(r),l=i.move(o+o);let u=i.move(n.containerPhrasing(e,{after:o,before:l,...i.current()}));const d=u.charCodeAt(0),p=w0(r.before.charCodeAt(r.before.length-1),d,o);p.inside&&(u=Nh(d)+u.slice(1));const h=u.charCodeAt(u.length-1),y=w0(r.after.charCodeAt(0),h,o);y.inside&&(u=u.slice(0,-1)+Nh(h));const g=i.move(o+o);return a(),n.attentionEncodeSurroundingInfo={after:y.outside,before:p.outside},l+u+g}function Jde(e,t,n){return n.options.strong||"*"}function efe(e,t,n,r){return n.safe(e.value,r)}function tfe(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function nfe(e,t,n){const r=(u6(n)+(n.options.ruleSpaces?" ":"")).repeat(tfe(n));return n.options.ruleSpaces?r.slice(0,-1):r}const f6={blockquote:_de,break:vN,code:Ide,definition:Nde,emphasis:n6,hardBreak:vN,heading:Fde,html:r6,image:o6,imageReference:a6,inlineCode:i6,link:l6,linkReference:c6,list:qde,listItem:Yde,paragraph:Qde,root:Xde,strong:d6,text:efe,thematicBreak:nfe};function rfe(){return{enter:{table:ofe,tableData:EN,tableHeader:EN,tableRow:ife},exit:{codeText:sfe,table:afe,tableData:Ox,tableHeader:Ox,tableRow:Ox}}}function ofe(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function afe(e){this.exit(e),this.data.inTable=void 0}function ife(e){this.enter({type:"tableRow",children:[]},e)}function Ox(e){this.exit(e)}function EN(e){this.enter({type:"tableCell",children:[]},e)}function sfe(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,lfe));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function lfe(e,t){return t==="|"?t:e}function cfe(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
292
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:y,table:i,tableCell:u,tableRow:l}};function i(g,b,S,T){return d(p(g,S,T),g.align)}function l(g,b,S,T){const E=h(g,S,T),A=d([E]);return A.slice(0,A.indexOf(`
|
|
293
|
-
`))}function u(g,b,S,T){const E=S.enter("tableCell"),A=S.enter("phrasing"),C=S.containerPhrasing(g,{...T,before:a,after:a});return A(),E(),C}function d(g,b){return Tde(g,{align:b,alignDelimiters:r,padding:n,stringLength:o})}function p(g,b,S){const T=g.children;let E=-1;const A=[],C=b.enter("table");for(;++E<T.length;)A[E]=h(T[E],b,S);return C(),A}function h(g,b,S){const T=g.children;let E=-1;const A=[],C=b.enter("tableRow");for(;++E<T.length;)A[E]=u(T[E],g,b,S);return C(),A}function y(g,b,S){let T=f6.inlineCode(g,b,S);return S.stack.includes("tableCell")&&(T=T.replace(/\|/g,"\\$&")),T}}function ufe(){return{exit:{taskListCheckValueChecked:xN,taskListCheckValueUnchecked:xN,paragraph:ffe}}}function dfe(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:pfe}}}function xN(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function ffe(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const o=t.children;let a=-1,i;for(;++a<o.length;){const l=o[a];if(l.type==="paragraph"){i=l;break}}i===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function pfe(e,t,n,r){const o=e.children[0],a=typeof e.checked=="boolean"&&o&&o.type==="paragraph",i="["+(e.checked?"x":" ")+"] ",l=n.createTracker(r);a&&l.move(i);let u=f6.listItem(e,t,n,{...r,...l.current()});return a&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,d)),u;function d(p){return p+i}}function hfe(){return[que(),pde(),yde(),rfe(),ufe()]}function mfe(e){return{extensions:[Wue(),hde(e),bde(),cfe(e),dfe()]}}const gfe={tokenize:Sfe,partial:!0},p6={tokenize:Tfe,partial:!0},h6={tokenize:Cfe,partial:!0},m6={tokenize:_fe,partial:!0},yfe={tokenize:Afe,partial:!0},g6={name:"wwwAutolink",tokenize:Efe,previous:b6},y6={name:"protocolAutolink",tokenize:xfe,previous:v6},xs={name:"emailAutolink",tokenize:vfe,previous:E6},Di={};function bfe(){return{text:Di}}let Jl=48;for(;Jl<123;)Di[Jl]=xs,Jl++,Jl===58?Jl=65:Jl===91&&(Jl=97);Di[43]=xs;Di[45]=xs;Di[46]=xs;Di[95]=xs;Di[72]=[xs,y6];Di[104]=[xs,y6];Di[87]=[xs,g6];Di[119]=[xs,g6];function vfe(e,t,n){const r=this;let o,a;return i;function i(h){return!mT(h)||!E6.call(r,r.previous)||D_(r.events)?n(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(h))}function l(h){return mT(h)?(e.consume(h),l):h===64?(e.consume(h),u):n(h)}function u(h){return h===46?e.check(yfe,p,d)(h):h===45||h===95||Xr(h)?(a=!0,e.consume(h),u):p(h)}function d(h){return e.consume(h),o=!0,u}function p(h){return a&&o&&ho(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(h)):n(h)}}function Efe(e,t,n){const r=this;return o;function o(i){return i!==87&&i!==119||!b6.call(r,r.previous)||D_(r.events)?n(i):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(gfe,e.attempt(p6,e.attempt(h6,a),n),n)(i))}function a(i){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(i)}}function xfe(e,t,n){const r=this;let o="",a=!1;return i;function i(h){return(h===72||h===104)&&v6.call(r,r.previous)&&!D_(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(h),e.consume(h),l):n(h)}function l(h){if(ho(h)&&o.length<5)return o+=String.fromCodePoint(h),e.consume(h),l;if(h===58){const y=o.toLowerCase();if(y==="http"||y==="https")return e.consume(h),u}return n(h)}function u(h){return h===47?(e.consume(h),a?d:(a=!0,u)):n(h)}function d(h){return h===null||_0(h)||jn(h)||Pc(h)||Yb(h)?n(h):e.attempt(p6,e.attempt(h6,p),n)(h)}function p(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}function Sfe(e,t,n){let r=0;return o;function o(i){return(i===87||i===119)&&r<3?(r++,e.consume(i),o):i===46&&r===3?(e.consume(i),a):n(i)}function a(i){return i===null?n(i):t(i)}}function Tfe(e,t,n){let r,o,a;return i;function i(d){return d===46||d===95?e.check(m6,u,l)(d):d===null||jn(d)||Pc(d)||d!==45&&Yb(d)?u(d):(a=!0,e.consume(d),i)}function l(d){return d===95?r=!0:(o=r,r=void 0),e.consume(d),i}function u(d){return o||r||!a?n(d):t(d)}}function Cfe(e,t){let n=0,r=0;return o;function o(i){return i===40?(n++,e.consume(i),o):i===41&&r<n?a(i):i===33||i===34||i===38||i===39||i===41||i===42||i===44||i===46||i===58||i===59||i===60||i===63||i===93||i===95||i===126?e.check(m6,t,a)(i):i===null||jn(i)||Pc(i)?t(i):(e.consume(i),o)}function a(i){return i===41&&r++,e.consume(i),o}}function _fe(e,t,n){return r;function r(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),r):l===38?(e.consume(l),a):l===93?(e.consume(l),o):l===60||l===null||jn(l)||Pc(l)?t(l):n(l)}function o(l){return l===null||l===40||l===91||jn(l)||Pc(l)?t(l):r(l)}function a(l){return ho(l)?i(l):n(l)}function i(l){return l===59?(e.consume(l),r):ho(l)?(e.consume(l),i):n(l)}}function Afe(e,t,n){return r;function r(a){return e.consume(a),o}function o(a){return Xr(a)?n(a):t(a)}}function b6(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||jn(e)}function v6(e){return!ho(e)}function E6(e){return!(e===47||mT(e))}function mT(e){return e===43||e===45||e===46||e===95||Xr(e)}function D_(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const kfe={tokenize:Lfe,partial:!0};function wfe(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Ofe,continuation:{tokenize:Nfe},exit:Pfe}},text:{91:{name:"gfmFootnoteCall",tokenize:Ife},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Rfe,resolveTo:Dfe}}}}function Rfe(e,t,n){const r=this;let o=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i;for(;o--;){const u=r.events[o][1];if(u.type==="labelImage"){i=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return l;function l(u){if(!i||!i._balanced)return n(u);const d=za(r.sliceSerialize({start:i.end,end:r.now()}));return d.codePointAt(0)!==94||!a.includes(d.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function Dfe(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},i={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},l=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...l),e}function Ife(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,i;return l;function l(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),u}function u(h){return h!==94?n(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",d)}function d(h){if(a>999||h===93&&!i||h===null||h===91||jn(h))return n(h);if(h===93){e.exit("chunkString");const y=e.exit("gfmFootnoteCallString");return o.includes(za(r.sliceSerialize(y)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(h)}return jn(h)||(i=!0),a++,e.consume(h),h===92?p:d}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,d):d(h)}}function Ofe(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,i=0,l;return u;function u(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),d}function d(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):n(b)}function p(b){if(i>999||b===93&&!l||b===null||b===91||jn(b))return n(b);if(b===93){e.exit("chunkString");const S=e.exit("gfmFootnoteDefinitionLabelString");return a=za(r.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),y}return jn(b)||(l=!0),i++,e.consume(b),b===92?h:p}function h(b){return b===91||b===92||b===93?(e.consume(b),i++,p):p(b)}function y(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),o.includes(a)||o.push(a),nn(e,g,"gfmFootnoteDefinitionWhitespace")):n(b)}function g(b){return t(b)}}function Nfe(e,t,n){return e.check(dm,t,e.attempt(kfe,t,n))}function Pfe(e){e.exit("gfmFootnoteDefinition")}function Lfe(e,t,n){const r=this;return nn(e,o,"gfmFootnoteDefinitionIndent",5);function o(a){const i=r.events[r.events.length-1];return i&&i[1].type==="gfmFootnoteDefinitionIndent"&&i[2].sliceSerialize(i[1],!0).length===4?t(a):n(a)}}function Mfe(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:o,resolveAll:r};return t==null&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(a,i){let l=-1;for(;++l<a.length;)if(a[l][0]==="enter"&&a[l][1].type==="strikethroughSequenceTemporary"&&a[l][1]._close){let u=l;for(;u--;)if(a[u][0]==="exit"&&a[u][1].type==="strikethroughSequenceTemporary"&&a[u][1]._open&&a[l][1].end.offset-a[l][1].start.offset===a[u][1].end.offset-a[u][1].start.offset){a[l][1].type="strikethroughSequence",a[u][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},a[u][1].start),end:Object.assign({},a[l][1].end)},p={type:"strikethroughText",start:Object.assign({},a[u][1].end),end:Object.assign({},a[l][1].start)},h=[["enter",d,i],["enter",a[u][1],i],["exit",a[u][1],i],["enter",p,i]],y=i.parser.constructs.insideSpan.null;y&&ta(h,h.length,0,Qb(y,a.slice(u+1,l),i)),ta(h,h.length,0,[["exit",p,i],["enter",a[l][1],i],["exit",a[l][1],i],["exit",d,i]]),ta(a,u-1,l-u+3,h),l=u+h.length-2;break}}for(l=-1;++l<a.length;)a[l][1].type==="strikethroughSequenceTemporary"&&(a[l][1].type="data");return a}function o(a,i,l){const u=this.previous,d=this.events;let p=0;return h;function h(g){return u===126&&d[d.length-1][1].type!=="characterEscape"?l(g):(a.enter("strikethroughSequenceTemporary"),y(g))}function y(g){const b=xd(u);if(g===126)return p>1?l(g):(a.consume(g),p++,y);if(p<2&&!t)return l(g);const S=a.exit("strikethroughSequenceTemporary"),T=xd(g);return S._open=!T||T===2&&!!b,S._close=!b||b===2&&!!T,i(g)}}}class Ffe{constructor(){this.map=[]}add(t,n,r){jfe(this,t,n,r)}consume(t){if(this.map.sort(function(a,i){return a[0]-i[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let o=r.pop();for(;o;){for(const a of o)t.push(a);o=r.pop()}this.map.length=0}}function jfe(e,t,n,r){let o=0;if(!(n===0&&r.length===0)){for(;o<e.map.length;){if(e.map[o][0]===t){e.map[o][1]+=n,e.map[o][2].push(...r);return}o+=1}e.map.push([t,n,r])}}function Bfe(e,t){let n=!1;const r=[];for(;t<e.length;){const o=e[t];if(n){if(o[0]==="enter")o[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function Ufe(){return{flow:{null:{name:"table",tokenize:zfe,resolveAll:Hfe}}}}function zfe(e,t,n){const r=this;let o=0,a=0,i;return l;function l(L){let H=r.events.length-1;for(;H>-1;){const B=r.events[H][1].type;if(B==="lineEnding"||B==="linePrefix")H--;else break}const k=H>-1?r.events[H][1].type:null,F=k==="tableHead"||k==="tableRow"?O:u;return F===O&&r.parser.lazy[r.now().line]?n(L):F(L)}function u(L){return e.enter("tableHead"),e.enter("tableRow"),d(L)}function d(L){return L===124||(i=!0,a+=1),p(L)}function p(L){return L===null?n(L):yt(L)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),g):n(L):Kt(L)?nn(e,p,"whitespace")(L):(a+=1,i&&(i=!1,o+=1),L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),i=!0,p):(e.enter("data"),h(L)))}function h(L){return L===null||L===124||jn(L)?(e.exit("data"),p(L)):(e.consume(L),L===92?y:h)}function y(L){return L===92||L===124?(e.consume(L),h):h(L)}function g(L){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(L):(e.enter("tableDelimiterRow"),i=!1,Kt(L)?nn(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):b(L))}function b(L){return L===45||L===58?T(L):L===124?(i=!0,e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),S):I(L)}function S(L){return Kt(L)?nn(e,T,"whitespace")(L):T(L)}function T(L){return L===58?(a+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),E):L===45?(a+=1,E(L)):L===null||yt(L)?D(L):I(L)}function E(L){return L===45?(e.enter("tableDelimiterFiller"),A(L)):I(L)}function A(L){return L===45?(e.consume(L),A):L===58?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),C):(e.exit("tableDelimiterFiller"),C(L))}function C(L){return Kt(L)?nn(e,D,"whitespace")(L):D(L)}function D(L){return L===124?b(L):L===null||yt(L)?!i||o!==a?I(L):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(L)):I(L)}function I(L){return n(L)}function O(L){return e.enter("tableRow"),j(L)}function j(L){return L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),j):L===null||yt(L)?(e.exit("tableRow"),t(L)):Kt(L)?nn(e,j,"whitespace")(L):(e.enter("data"),$(L))}function $(L){return L===null||L===124||jn(L)?(e.exit("data"),j(L)):(e.consume(L),L===92?z:$)}function z(L){return L===92||L===124?(e.consume(L),$):$(L)}}function Hfe(e,t){let n=-1,r=!0,o=0,a=[0,0,0,0],i=[0,0,0,0],l=!1,u=0,d,p,h;const y=new Ffe;for(;++n<e.length;){const g=e[n],b=g[1];g[0]==="enter"?b.type==="tableHead"?(l=!1,u!==0&&(SN(y,t,u,d,p),p=void 0,u=0),d={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},y.add(n,0,[["enter",d,t]])):b.type==="tableRow"||b.type==="tableDelimiterRow"?(r=!0,h=void 0,a=[0,0,0,0],i=[0,n+1,0,0],l&&(l=!1,p={type:"tableBody",start:Object.assign({},b.start),end:Object.assign({},b.end)},y.add(n,0,[["enter",p,t]])),o=b.type==="tableDelimiterRow"?2:p?3:1):o&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")?(r=!1,i[2]===0&&(a[1]!==0&&(i[0]=i[1],h=Jg(y,t,a,o,void 0,h),a=[0,0,0,0]),i[2]=n)):b.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(i[0]=i[1],h=Jg(y,t,a,o,void 0,h)),a=i,i=[a[1],n,0,0])):b.type==="tableHead"?(l=!0,u=n):b.type==="tableRow"||b.type==="tableDelimiterRow"?(u=n,a[1]!==0?(i[0]=i[1],h=Jg(y,t,a,o,n,h)):i[1]!==0&&(h=Jg(y,t,i,o,n,h)),o=0):o&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(i[3]=n)}for(u!==0&&SN(y,t,u,d,p),y.consume(t.events),n=-1;++n<t.events.length;){const g=t.events[n];g[0]==="enter"&&g[1].type==="table"&&(g[1]._align=Bfe(t.events,n))}return e}function Jg(e,t,n,r,o,a){const i=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",l="tableContent";n[0]!==0&&(a.end=Object.assign({},Vu(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const u=Vu(t.events,n[1]);if(a={type:i,start:Object.assign({},u),end:Object.assign({},u)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const d=Vu(t.events,n[2]),p=Vu(t.events,n[3]),h={type:l,start:Object.assign({},d),end:Object.assign({},p)};if(e.add(n[2],0,[["enter",h,t]]),r!==2){const y=t.events[n[2]],g=t.events[n[3]];if(y[1].end=Object.assign({},g[1].end),y[1].type="chunkText",y[1].contentType="text",n[3]>n[2]+1){const b=n[2]+1,S=n[3]-n[2]-1;e.add(b,S,[])}}e.add(n[3]+1,0,[["exit",h,t]])}return o!==void 0&&(a.end=Object.assign({},Vu(t.events,o)),e.add(o,0,[["exit",a,t]]),a=void 0),a}function SN(e,t,n,r,o){const a=[],i=Vu(t.events,n);o&&(o.end=Object.assign({},i),a.push(["exit",o,t])),r.end=Object.assign({},i),a.push(["exit",r,t]),e.add(n+1,0,a)}function Vu(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const $fe={name:"tasklistCheck",tokenize:Vfe};function Gfe(){return{text:{91:$fe}}}function Vfe(e,t,n){const r=this;return o;function o(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return jn(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),i):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),i):n(u)}function i(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):n(u)}function l(u){return yt(u)?t(u):Kt(u)?e.check({tokenize:qfe},t,n)(u):n(u)}}function qfe(e,t,n){return nn(e,r,"whitespace");function r(o){return o===null?n(o):t(o)}}function Wfe(e){return IM([bfe(),wfe(),Mfe(e),Ufe(),Gfe()])}const Yfe={};function Qfe(e){const t=this,n=e||Yfe,r=t.data(),o=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),i=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);o.push(Wfe(n)),a.push(hfe()),i.push(mfe(n))}const TN=/[#.]/g;function Kfe(e,t){const n=e||"",r={};let o=0,a,i;for(;o<n.length;){TN.lastIndex=o;const l=TN.exec(n),u=n.slice(o,l?l.index:n.length);u&&(a?a==="#"?r.id=u:Array.isArray(r.className)?r.className.push(u):r.className=[u]:i=u,o+=u.length),l&&(a=l[0],o++)}return{type:"element",tagName:i||t||"div",properties:r,children:[]}}function x6(e,t,n){const r=n?epe(n):void 0;function o(a,i,...l){let u;if(a==null){u={type:"root",children:[]};const d=i;l.unshift(d)}else{u=Kfe(a,t);const d=u.tagName.toLowerCase(),p=r?r.get(d):void 0;if(u.tagName=p||d,Xfe(i))l.unshift(i);else for(const[h,y]of Object.entries(i))Zfe(e,u.properties,h,y)}for(const d of l)gT(u.children,d);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return o}function Xfe(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const o=t[r];if(o&&typeof o=="object"){if(!Array.isArray(o))return!0;const a=o;for(const i of a)if(typeof i!="number"&&typeof i!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function Zfe(e,t,n,r){const o=cm(e,n);let a;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;a=r}else typeof r=="boolean"?a=r:typeof r=="string"?o.spaceSeparated?a=lT(r):o.commaSeparated?a=sT(r):o.commaOrSpaceSeparated?a=lT(sT(r).join(" ")):a=CN(o,o.property,r):Array.isArray(r)?a=[...r]:a=o.property==="style"?Jfe(r):String(r);if(Array.isArray(a)){const i=[];for(const l of a)i.push(CN(o,o.property,l));a=i}o.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[o.property]=a}}function gT(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)gT(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?gT(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function CN(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Dh(n)===Dh(t)))return!0}return n}function Jfe(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function epe(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const tpe=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],npe=x6(jd,"div"),rpe=x6(Es,"g",tpe);function ope(e){const t=String(e),n=[];return{toOffset:o,toPoint:r};function r(a){if(typeof a=="number"&&a>-1&&a<=t.length){let i=0;for(;;){let l=n[i];if(l===void 0){const u=_N(t,n[i-1]);l=u===-1?t.length+1:u+1,n[i]=l}if(l>a)return{line:i+1,column:a-(i>0?n[i-1]:0)+1,offset:a};i++}}}function o(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;n.length<a.line;){const l=n[n.length-1],u=_N(t,l),d=u===-1?t.length+1:u+1;if(l===d)break;n.push(d)}const i=(a.line>1?n[a.line-2]:0)+a.column-1;if(i<n[a.line-1])return i}}}function _N(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
294
|
-
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const yc={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},S6={}.hasOwnProperty,ape=Object.prototype;function ipe(e,t){const n=t||{};return I_({file:n.file||void 0,location:!1,schema:n.space==="svg"?Es:jd,verbose:n.verbose||!1},e)}function I_(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Iy(e,r,n),n}case"#document":case"#document-fragment":{const r=t,o="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:T6(e,t.childNodes),data:{quirksMode:o}},e.file&&e.location){const a=String(e.file),i=ope(a),l=i.toPoint(0),u=i.toPoint(a.length);n.position={start:l,end:u}}return n}case"#documentType":{const r=t;return n={type:"doctype"},Iy(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},Iy(e,r,n),n}default:return n=spe(e,t),n}}function T6(e,t){let n=-1;const r=[];for(;++n<t.length;){const o=I_(e,t[n]);r.push(o)}return r}function spe(e,t){const n=e.schema;e.schema=t.namespaceURI===yc.svg?Es:jd;let r=-1;const o={};for(;++r<t.attrs.length;){const i=t.attrs[r],l=(i.prefix?i.prefix+":":"")+i.name;S6.call(ape,l)||(o[l]=i.value)}const a=(e.schema.space==="svg"?rpe:npe)(t.tagName,o,T6(e,t.childNodes));if(Iy(e,t,a),a.tagName==="template"){const i=t,l=i.sourceCodeLocation,u=l&&l.startTag&&Yu(l.startTag),d=l&&l.endTag&&Yu(l.endTag),p=I_(e,i.content);u&&d&&e.file&&(p.position={start:u.end,end:d.start}),a.content=p}return e.schema=n,a}function Iy(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=lpe(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function lpe(e,t,n){const r=Yu(n);if(t.type==="element"){const o=t.children[t.children.length-1];if(r&&!n.endTag&&o&&o.position&&o.position.end&&(r.end=Object.assign({},o.position.end)),e.verbose){const a={};let i;if(n.attrs)for(i in n.attrs)S6.call(n.attrs,i)&&(a[cm(e.schema,i).property]=Yu(n.attrs[i]));n.startTag;const l=Yu(n.startTag),u=n.endTag?Yu(n.endTag):void 0,d={opening:l};u&&(d.closing=u),d.properties=a,t.data={position:d}}}return r}function Yu(e){const t=AN({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=AN({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function AN(e){return e.line&&e.column?e:void 0}class pm{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}pm.prototype.property={};pm.prototype.normal={};pm.prototype.space=null;function C6(e,t){const n={},r={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new pm(n,r,t)}function yT(e){return e.toLowerCase()}class Oa{constructor(t,n){this.property=t,this.attribute=n}}Oa.prototype.space=null;Oa.prototype.boolean=!1;Oa.prototype.booleanish=!1;Oa.prototype.overloadedBoolean=!1;Oa.prototype.number=!1;Oa.prototype.commaSeparated=!1;Oa.prototype.spaceSeparated=!1;Oa.prototype.commaOrSpaceSeparated=!1;Oa.prototype.mustUseProperty=!1;Oa.prototype.defined=!1;let cpe=0;const Mt=zc(),Er=zc(),_6=zc(),Ge=zc(),Hn=zc(),sd=zc(),Yo=zc();function zc(){return 2**++cpe}const bT=Object.freeze(Object.defineProperty({__proto__:null,boolean:Mt,booleanish:Er,commaOrSpaceSeparated:Yo,commaSeparated:sd,number:Ge,overloadedBoolean:_6,spaceSeparated:Hn},Symbol.toStringTag,{value:"Module"})),Nx=Object.keys(bT);class O_ extends Oa{constructor(t,n,r,o){let a=-1;if(super(t,n),kN(this,"space",o),typeof r=="number")for(;++a<Nx.length;){const i=Nx[a];kN(this,Nx[a],(r&bT[i])===bT[i])}}}O_.prototype.defined=!0;function kN(e,t,n){n&&(e[t]=n)}const upe={}.hasOwnProperty;function zd(e){const t={},n={};let r;for(r in e.properties)if(upe.call(e.properties,r)){const o=e.properties[r],a=new O_(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[yT(r)]=r,n[yT(a.attribute)]=r}return new pm(t,n,e.space)}const A6=zd({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),k6=zd({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function w6(e,t){return t in e?e[t]:t}function R6(e,t){return w6(e,t.toLowerCase())}const D6=zd({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:R6,properties:{xmlns:null,xmlnsXLink:null}}),I6=zd({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Er,ariaAutoComplete:null,ariaBusy:Er,ariaChecked:Er,ariaColCount:Ge,ariaColIndex:Ge,ariaColSpan:Ge,ariaControls:Hn,ariaCurrent:null,ariaDescribedBy:Hn,ariaDetails:null,ariaDisabled:Er,ariaDropEffect:Hn,ariaErrorMessage:null,ariaExpanded:Er,ariaFlowTo:Hn,ariaGrabbed:Er,ariaHasPopup:null,ariaHidden:Er,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Hn,ariaLevel:Ge,ariaLive:null,ariaModal:Er,ariaMultiLine:Er,ariaMultiSelectable:Er,ariaOrientation:null,ariaOwns:Hn,ariaPlaceholder:null,ariaPosInSet:Ge,ariaPressed:Er,ariaReadOnly:Er,ariaRelevant:null,ariaRequired:Er,ariaRoleDescription:Hn,ariaRowCount:Ge,ariaRowIndex:Ge,ariaRowSpan:Ge,ariaSelected:Er,ariaSetSize:Ge,ariaSort:null,ariaValueMax:Ge,ariaValueMin:Ge,ariaValueNow:Ge,ariaValueText:null,role:null}}),dpe=zd({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:R6,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:sd,acceptCharset:Hn,accessKey:Hn,action:null,allow:null,allowFullScreen:Mt,allowPaymentRequest:Mt,allowUserMedia:Mt,alt:null,as:null,async:Mt,autoCapitalize:null,autoComplete:Hn,autoFocus:Mt,autoPlay:Mt,blocking:Hn,capture:null,charSet:null,checked:Mt,cite:null,className:Hn,cols:Ge,colSpan:null,content:null,contentEditable:Er,controls:Mt,controlsList:Hn,coords:Ge|sd,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Mt,defer:Mt,dir:null,dirName:null,disabled:Mt,download:_6,draggable:Er,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Mt,formTarget:null,headers:Hn,height:Ge,hidden:Mt,high:Ge,href:null,hrefLang:null,htmlFor:Hn,httpEquiv:Hn,id:null,imageSizes:null,imageSrcSet:null,inert:Mt,inputMode:null,integrity:null,is:null,isMap:Mt,itemId:null,itemProp:Hn,itemRef:Hn,itemScope:Mt,itemType:Hn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Mt,low:Ge,manifest:null,max:null,maxLength:Ge,media:null,method:null,min:null,minLength:Ge,multiple:Mt,muted:Mt,name:null,nonce:null,noModule:Mt,noValidate:Mt,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:Mt,optimum:Ge,pattern:null,ping:Hn,placeholder:null,playsInline:Mt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Mt,referrerPolicy:null,rel:Hn,required:Mt,reversed:Mt,rows:Ge,rowSpan:Ge,sandbox:Hn,scope:null,scoped:Mt,seamless:Mt,selected:Mt,shadowRootClonable:Mt,shadowRootDelegatesFocus:Mt,shadowRootMode:null,shape:null,size:Ge,sizes:null,slot:null,span:Ge,spellCheck:Er,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ge,step:null,style:null,tabIndex:Ge,target:null,title:null,translate:null,type:null,typeMustMatch:Mt,useMap:null,value:Er,width:Ge,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Hn,axis:null,background:null,bgColor:null,border:Ge,borderColor:null,bottomMargin:Ge,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Mt,declare:Mt,event:null,face:null,frame:null,frameBorder:null,hSpace:Ge,leftMargin:Ge,link:null,longDesc:null,lowSrc:null,marginHeight:Ge,marginWidth:Ge,noResize:Mt,noHref:Mt,noShade:Mt,noWrap:Mt,object:null,profile:null,prompt:null,rev:null,rightMargin:Ge,rules:null,scheme:null,scrolling:Er,standby:null,summary:null,text:null,topMargin:Ge,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ge,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Mt,disableRemotePlayback:Mt,prefix:null,property:null,results:Ge,security:null,unselectable:null}}),fpe=zd({space:"svg",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"},transform:w6,properties:{about:Yo,accentHeight:Ge,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ge,amplitude:Ge,arabicForm:null,ascent:Ge,attributeName:null,attributeType:null,azimuth:Ge,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ge,by:null,calcMode:null,capHeight:Ge,className:Hn,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:Ge,diffuseConstant:Ge,direction:null,display:null,dur:null,divisor:Ge,dominantBaseline:null,download:Mt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ge,enableBackground:null,end:null,event:null,exponent:Ge,externalResourcesRequired:null,fill:null,fillOpacity:Ge,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:sd,g2:sd,glyphName:sd,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ge,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ge,horizOriginX:Ge,horizOriginY:Ge,id:null,ideographic:Ge,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ge,k:Ge,k1:Ge,k2:Ge,k3:Ge,k4:Ge,kernelMatrix:Yo,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ge,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:Ge,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:Ge,overlineThickness:Ge,paintOrder:null,panose1:null,path:null,pathLength:Ge,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Hn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ge,pointsAtY:Ge,pointsAtZ:Ge,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Yo,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Yo,rev:Yo,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Yo,requiredFeatures:Yo,requiredFonts:Yo,requiredFormats:Yo,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:Ge,specularExponent:Ge,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ge,strikethroughThickness:Ge,string:null,stroke:null,strokeDashArray:Yo,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ge,strokeOpacity:Ge,strokeWidth:null,style:null,surfaceScale:Ge,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Yo,tabIndex:Ge,tableValues:null,target:null,targetX:Ge,targetY:Ge,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Yo,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ge,underlineThickness:Ge,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ge,values:null,vAlphabetic:Ge,vMathematical:Ge,vectorEffect:null,vHanging:Ge,vIdeographic:Ge,version:null,vertAdvY:Ge,vertOriginX:Ge,vertOriginY:Ge,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ge,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),ppe=/^data[-\w.:]+$/i,wN=/-[a-z]/g,hpe=/[A-Z]/g;function mpe(e,t){const n=yT(t);let r=t,o=Oa;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&ppe.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(wN,ype);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!wN.test(a)){let i=a.replace(hpe,gpe);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}o=O_}return new o(r,t)}function gpe(e){return"-"+e.toLowerCase()}function ype(e){return e.charAt(1).toUpperCase()}const bpe=C6([k6,A6,D6,I6,dpe],"html"),O6=C6([k6,A6,D6,I6,fpe],"svg"),vpe={},Epe={}.hasOwnProperty,N6=zb("type",{handlers:{root:Spe,element:kpe,text:_pe,comment:Ape,doctype:Cpe}});function xpe(e,t){const n=(t||vpe).space;return N6(e,n==="svg"?O6:bpe)}function Spe(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=N_(e.children,n,t),Hd(e,n),n}function Tpe(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=N_(e.children,n,t),Hd(e,n),n}function Cpe(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Hd(e,t),t}function _pe(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Hd(e,t),t}function Ape(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Hd(e,t),t}function kpe(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=O6);const o=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&Epe.call(e.properties,a)){const u=wpe(r,a,e.properties[a]);u&&o.push(u)}}const i=r.space,l={nodeName:e.tagName,tagName:e.tagName,attrs:o,namespaceURI:yc[i],childNodes:[],parentNode:null};return l.childNodes=N_(e.children,l,r),Hd(e,l),e.tagName==="template"&&e.content&&(l.content=Tpe(e.content,r)),l}function wpe(e,t,n){const r=mpe(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?Hb(n):$b(n));const o={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const a=o.name.indexOf(":");a<0?o.prefix="":(o.name=o.name.slice(a+1),o.prefix=r.attribute.slice(0,a)),o.namespace=yc[r.space]}return o}function N_(e,t,n){let r=-1;const o=[];if(e)for(;++r<e.length;){const a=N6(e[r],n);a.parentNode=t,o.push(a)}return o}function Hd(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const Rpe=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Xn="�";var q;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(q||(q={}));const Ao={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function P6(e){return e>=55296&&e<=57343}function Dpe(e){return e>=56320&&e<=57343}function Ipe(e,t){return(e-55296)*1024+9216+t}function L6(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function M6(e){return e>=64976&&e<=65007||Rpe.has(e)}var Ee;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(Ee||(Ee={}));const Ope=65536;class Npe{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Ope,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:o,offset:a}=this,i=o+n,l=a+n;return{code:t,startLine:r,endLine:r,startCol:i,endCol:i,startOffset:l,endOffset:l}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(Dpe(n))return this.pos++,this._addGap(),Ipe(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,q.EOF;return this._err(Ee.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,q.EOF;const r=this.html.charCodeAt(n);return r===q.CARRIAGE_RETURN?q.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,q.EOF;let t=this.html.charCodeAt(this.pos);return t===q.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,q.LINE_FEED):t===q.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,P6(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===q.LINE_FEED||t===q.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){L6(t)?this._err(Ee.controlCharacterInInputStream):M6(t)&&this._err(Ee.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Vt;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(Vt||(Vt={}));function F6(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const Ppe=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Lpe=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function Mpe(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Lpe.get(e))!==null&&t!==void 0?t:e}var Fr;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Fr||(Fr={}));const Fpe=32;var fl;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(fl||(fl={}));function vT(e){return e>=Fr.ZERO&&e<=Fr.NINE}function jpe(e){return e>=Fr.UPPER_A&&e<=Fr.UPPER_F||e>=Fr.LOWER_A&&e<=Fr.LOWER_F}function Bpe(e){return e>=Fr.UPPER_A&&e<=Fr.UPPER_Z||e>=Fr.LOWER_A&&e<=Fr.LOWER_Z||vT(e)}function Upe(e){return e===Fr.EQUALS||Bpe(e)}var Pr;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Pr||(Pr={}));var os;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(os||(os={}));class zpe{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Pr.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=os.Strict}startEntity(t){this.decodeMode=t,this.state=Pr.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Pr.EntityStart:return t.charCodeAt(n)===Fr.NUM?(this.state=Pr.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Pr.NamedEntity,this.stateNamedEntity(t,n));case Pr.NumericStart:return this.stateNumericStart(t,n);case Pr.NumericDecimal:return this.stateNumericDecimal(t,n);case Pr.NumericHex:return this.stateNumericHex(t,n);case Pr.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|Fpe)===Fr.LOWER_X?(this.state=Pr.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Pr.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,o){if(n!==r){const a=r-n;this.result=this.result*Math.pow(o,a)+Number.parseInt(t.substr(n,a),o),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const o=t.charCodeAt(n);if(vT(o)||jpe(o))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(o,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const o=t.charCodeAt(n);if(vT(o))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(o,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Fr.SEMI)this.consumed+=1;else if(this.decodeMode===os.Strict)return 0;return this.emitCodePoint(Mpe(this.result),this.consumed),this.errors&&(t!==Fr.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let o=r[this.treeIndex],a=(o&fl.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const i=t.charCodeAt(n);if(this.treeIndex=Hpe(r,o,this.treeIndex+Math.max(1,a),i),this.treeIndex<0)return this.result===0||this.decodeMode===os.Attribute&&(a===0||Upe(i))?0:this.emitNotTerminatedNamedEntity();if(o=r[this.treeIndex],a=(o&fl.VALUE_LENGTH)>>14,a!==0){if(i===Fr.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==os.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,o=(r[n]&fl.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,o,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:o}=this;return this.emitCodePoint(n===1?o[t]&~fl.VALUE_LENGTH:o[t+1],r),n===3&&this.emitCodePoint(o[t+2],r),r}end(){var t;switch(this.state){case Pr.NamedEntity:return this.result!==0&&(this.decodeMode!==os.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Pr.NumericDecimal:return this.emitNumericEntity(0,2);case Pr.NumericHex:return this.emitNumericEntity(0,3);case Pr.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Pr.EntityStart:return 0}}}function Hpe(e,t,n,r){const o=(t&fl.BRANCH_LENGTH)>>7,a=t&fl.JUMP_TABLE;if(o===0)return a!==0&&r===a?n:-1;if(a){const u=r-a;return u<0||u>=o?-1:e[n+u]-1}let i=n,l=i+o-1;for(;i<=l;){const u=i+l>>>1,d=e[u];if(d<r)i=u+1;else if(d>r)l=u-1;else return e[u+o]}return-1}var Pe;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(Pe||(Pe={}));var Sc;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Sc||(Sc={}));var Ta;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Ta||(Ta={}));var ue;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(ue||(ue={}));var R;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(R||(R={}));const $pe=new Map([[ue.A,R.A],[ue.ADDRESS,R.ADDRESS],[ue.ANNOTATION_XML,R.ANNOTATION_XML],[ue.APPLET,R.APPLET],[ue.AREA,R.AREA],[ue.ARTICLE,R.ARTICLE],[ue.ASIDE,R.ASIDE],[ue.B,R.B],[ue.BASE,R.BASE],[ue.BASEFONT,R.BASEFONT],[ue.BGSOUND,R.BGSOUND],[ue.BIG,R.BIG],[ue.BLOCKQUOTE,R.BLOCKQUOTE],[ue.BODY,R.BODY],[ue.BR,R.BR],[ue.BUTTON,R.BUTTON],[ue.CAPTION,R.CAPTION],[ue.CENTER,R.CENTER],[ue.CODE,R.CODE],[ue.COL,R.COL],[ue.COLGROUP,R.COLGROUP],[ue.DD,R.DD],[ue.DESC,R.DESC],[ue.DETAILS,R.DETAILS],[ue.DIALOG,R.DIALOG],[ue.DIR,R.DIR],[ue.DIV,R.DIV],[ue.DL,R.DL],[ue.DT,R.DT],[ue.EM,R.EM],[ue.EMBED,R.EMBED],[ue.FIELDSET,R.FIELDSET],[ue.FIGCAPTION,R.FIGCAPTION],[ue.FIGURE,R.FIGURE],[ue.FONT,R.FONT],[ue.FOOTER,R.FOOTER],[ue.FOREIGN_OBJECT,R.FOREIGN_OBJECT],[ue.FORM,R.FORM],[ue.FRAME,R.FRAME],[ue.FRAMESET,R.FRAMESET],[ue.H1,R.H1],[ue.H2,R.H2],[ue.H3,R.H3],[ue.H4,R.H4],[ue.H5,R.H5],[ue.H6,R.H6],[ue.HEAD,R.HEAD],[ue.HEADER,R.HEADER],[ue.HGROUP,R.HGROUP],[ue.HR,R.HR],[ue.HTML,R.HTML],[ue.I,R.I],[ue.IMG,R.IMG],[ue.IMAGE,R.IMAGE],[ue.INPUT,R.INPUT],[ue.IFRAME,R.IFRAME],[ue.KEYGEN,R.KEYGEN],[ue.LABEL,R.LABEL],[ue.LI,R.LI],[ue.LINK,R.LINK],[ue.LISTING,R.LISTING],[ue.MAIN,R.MAIN],[ue.MALIGNMARK,R.MALIGNMARK],[ue.MARQUEE,R.MARQUEE],[ue.MATH,R.MATH],[ue.MENU,R.MENU],[ue.META,R.META],[ue.MGLYPH,R.MGLYPH],[ue.MI,R.MI],[ue.MO,R.MO],[ue.MN,R.MN],[ue.MS,R.MS],[ue.MTEXT,R.MTEXT],[ue.NAV,R.NAV],[ue.NOBR,R.NOBR],[ue.NOFRAMES,R.NOFRAMES],[ue.NOEMBED,R.NOEMBED],[ue.NOSCRIPT,R.NOSCRIPT],[ue.OBJECT,R.OBJECT],[ue.OL,R.OL],[ue.OPTGROUP,R.OPTGROUP],[ue.OPTION,R.OPTION],[ue.P,R.P],[ue.PARAM,R.PARAM],[ue.PLAINTEXT,R.PLAINTEXT],[ue.PRE,R.PRE],[ue.RB,R.RB],[ue.RP,R.RP],[ue.RT,R.RT],[ue.RTC,R.RTC],[ue.RUBY,R.RUBY],[ue.S,R.S],[ue.SCRIPT,R.SCRIPT],[ue.SEARCH,R.SEARCH],[ue.SECTION,R.SECTION],[ue.SELECT,R.SELECT],[ue.SOURCE,R.SOURCE],[ue.SMALL,R.SMALL],[ue.SPAN,R.SPAN],[ue.STRIKE,R.STRIKE],[ue.STRONG,R.STRONG],[ue.STYLE,R.STYLE],[ue.SUB,R.SUB],[ue.SUMMARY,R.SUMMARY],[ue.SUP,R.SUP],[ue.TABLE,R.TABLE],[ue.TBODY,R.TBODY],[ue.TEMPLATE,R.TEMPLATE],[ue.TEXTAREA,R.TEXTAREA],[ue.TFOOT,R.TFOOT],[ue.TD,R.TD],[ue.TH,R.TH],[ue.THEAD,R.THEAD],[ue.TITLE,R.TITLE],[ue.TR,R.TR],[ue.TRACK,R.TRACK],[ue.TT,R.TT],[ue.U,R.U],[ue.UL,R.UL],[ue.SVG,R.SVG],[ue.VAR,R.VAR],[ue.WBR,R.WBR],[ue.XMP,R.XMP]]);function $d(e){var t;return(t=$pe.get(e))!==null&&t!==void 0?t:R.UNKNOWN}const Me=R,Gpe={[Pe.HTML]:new Set([Me.ADDRESS,Me.APPLET,Me.AREA,Me.ARTICLE,Me.ASIDE,Me.BASE,Me.BASEFONT,Me.BGSOUND,Me.BLOCKQUOTE,Me.BODY,Me.BR,Me.BUTTON,Me.CAPTION,Me.CENTER,Me.COL,Me.COLGROUP,Me.DD,Me.DETAILS,Me.DIR,Me.DIV,Me.DL,Me.DT,Me.EMBED,Me.FIELDSET,Me.FIGCAPTION,Me.FIGURE,Me.FOOTER,Me.FORM,Me.FRAME,Me.FRAMESET,Me.H1,Me.H2,Me.H3,Me.H4,Me.H5,Me.H6,Me.HEAD,Me.HEADER,Me.HGROUP,Me.HR,Me.HTML,Me.IFRAME,Me.IMG,Me.INPUT,Me.LI,Me.LINK,Me.LISTING,Me.MAIN,Me.MARQUEE,Me.MENU,Me.META,Me.NAV,Me.NOEMBED,Me.NOFRAMES,Me.NOSCRIPT,Me.OBJECT,Me.OL,Me.P,Me.PARAM,Me.PLAINTEXT,Me.PRE,Me.SCRIPT,Me.SECTION,Me.SELECT,Me.SOURCE,Me.STYLE,Me.SUMMARY,Me.TABLE,Me.TBODY,Me.TD,Me.TEMPLATE,Me.TEXTAREA,Me.TFOOT,Me.TH,Me.THEAD,Me.TITLE,Me.TR,Me.TRACK,Me.UL,Me.WBR,Me.XMP]),[Pe.MATHML]:new Set([Me.MI,Me.MO,Me.MN,Me.MS,Me.MTEXT,Me.ANNOTATION_XML]),[Pe.SVG]:new Set([Me.TITLE,Me.FOREIGN_OBJECT,Me.DESC]),[Pe.XLINK]:new Set,[Pe.XML]:new Set,[Pe.XMLNS]:new Set},ET=new Set([Me.H1,Me.H2,Me.H3,Me.H4,Me.H5,Me.H6]);ue.STYLE,ue.SCRIPT,ue.XMP,ue.IFRAME,ue.NOEMBED,ue.NOFRAMES,ue.PLAINTEXT;var Z;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(Z||(Z={}));const pr={DATA:Z.DATA,RCDATA:Z.RCDATA,RAWTEXT:Z.RAWTEXT,SCRIPT_DATA:Z.SCRIPT_DATA,PLAINTEXT:Z.PLAINTEXT,CDATA_SECTION:Z.CDATA_SECTION};function Vpe(e){return e>=q.DIGIT_0&&e<=q.DIGIT_9}function Dp(e){return e>=q.LATIN_CAPITAL_A&&e<=q.LATIN_CAPITAL_Z}function qpe(e){return e>=q.LATIN_SMALL_A&&e<=q.LATIN_SMALL_Z}function rl(e){return qpe(e)||Dp(e)}function RN(e){return rl(e)||Vpe(e)}function ey(e){return e+32}function j6(e){return e===q.SPACE||e===q.LINE_FEED||e===q.TABULATION||e===q.FORM_FEED}function DN(e){return j6(e)||e===q.SOLIDUS||e===q.GREATER_THAN_SIGN}function Wpe(e){return e===q.NULL?Ee.nullCharacterReference:e>1114111?Ee.characterReferenceOutsideUnicodeRange:P6(e)?Ee.surrogateCharacterReference:M6(e)?Ee.noncharacterCharacterReference:L6(e)||e===q.CARRIAGE_RETURN?Ee.controlCharacterReference:null}class Ype{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=Z.DATA,this.returnState=Z.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Npe(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new zpe(Ppe,(r,o)=>{this.preprocessor.pos=this.entityStartPos+o-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Ee.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(Ee.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const o=Wpe(r);o&&this._err(o,1)}}:void 0)}_err(t,n=0){var r,o;(o=(r=this.handler).onParseError)===null||o===void 0||o.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Vt.START_TAG,tagName:"",tagID:R.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Vt.END_TAG,tagName:"",tagID:R.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Vt.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Vt.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(F6(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const o=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);o[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(Ee.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=$d(t.tagName),t.type===Vt.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(Ee.endTagWithAttributes),t.selfClosing&&this._err(Ee.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Vt.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Vt.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Vt.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Vt.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=j6(t)?Vt.WHITESPACE_CHARACTER:t===q.NULL?Vt.NULL_CHARACTER:Vt.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Vt.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=Z.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?os.Attribute:os.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===Z.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===Z.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===Z.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case Z.DATA:{this._stateData(t);break}case Z.RCDATA:{this._stateRcdata(t);break}case Z.RAWTEXT:{this._stateRawtext(t);break}case Z.SCRIPT_DATA:{this._stateScriptData(t);break}case Z.PLAINTEXT:{this._statePlaintext(t);break}case Z.TAG_OPEN:{this._stateTagOpen(t);break}case Z.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case Z.TAG_NAME:{this._stateTagName(t);break}case Z.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case Z.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case Z.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case Z.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case Z.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case Z.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case Z.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case Z.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case Z.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case Z.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case Z.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case Z.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case Z.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case Z.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case Z.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case Z.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case Z.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case Z.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case Z.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case Z.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case Z.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case Z.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case Z.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case Z.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case Z.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case Z.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case Z.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case Z.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case Z.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case Z.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case Z.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case Z.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case Z.BOGUS_COMMENT:{this._stateBogusComment(t);break}case Z.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case Z.COMMENT_START:{this._stateCommentStart(t);break}case Z.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case Z.COMMENT:{this._stateComment(t);break}case Z.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case Z.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case Z.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case Z.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case Z.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case Z.COMMENT_END:{this._stateCommentEnd(t);break}case Z.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case Z.DOCTYPE:{this._stateDoctype(t);break}case Z.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case Z.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case Z.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case Z.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case Z.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case Z.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case Z.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case Z.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case Z.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case Z.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case Z.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case Z.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case Z.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case Z.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case Z.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case Z.CDATA_SECTION:{this._stateCdataSection(t);break}case Z.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case Z.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case Z.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case Z.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case q.LESS_THAN_SIGN:{this.state=Z.TAG_OPEN;break}case q.AMPERSAND:{this._startCharacterReference();break}case q.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitCodePoint(t);break}case q.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case q.AMPERSAND:{this._startCharacterReference();break}case q.LESS_THAN_SIGN:{this.state=Z.RCDATA_LESS_THAN_SIGN;break}case q.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(Xn);break}case q.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case q.LESS_THAN_SIGN:{this.state=Z.RAWTEXT_LESS_THAN_SIGN;break}case q.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(Xn);break}case q.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case q.LESS_THAN_SIGN:{this.state=Z.SCRIPT_DATA_LESS_THAN_SIGN;break}case q.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(Xn);break}case q.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case q.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(Xn);break}case q.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(rl(t))this._createStartTagToken(),this.state=Z.TAG_NAME,this._stateTagName(t);else switch(t){case q.EXCLAMATION_MARK:{this.state=Z.MARKUP_DECLARATION_OPEN;break}case q.SOLIDUS:{this.state=Z.END_TAG_OPEN;break}case q.QUESTION_MARK:{this._err(Ee.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=Z.BOGUS_COMMENT,this._stateBogusComment(t);break}case q.EOF:{this._err(Ee.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Ee.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=Z.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(rl(t))this._createEndTagToken(),this.state=Z.TAG_NAME,this._stateTagName(t);else switch(t){case q.GREATER_THAN_SIGN:{this._err(Ee.missingEndTagName),this.state=Z.DATA;break}case q.EOF:{this._err(Ee.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(Ee.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=Z.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case q.SPACE:case q.LINE_FEED:case q.TABULATION:case q.FORM_FEED:{this.state=Z.BEFORE_ATTRIBUTE_NAME;break}case q.SOLIDUS:{this.state=Z.SELF_CLOSING_START_TAG;break}case q.GREATER_THAN_SIGN:{this.state=Z.DATA,this.emitCurrentTagToken();break}case q.NULL:{this._err(Ee.unexpectedNullCharacter),n.tagName+=Xn;break}case q.EOF:{this._err(Ee.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(Dp(t)?ey(t):t)}}_stateRcdataLessThanSign(t){t===q.SOLIDUS?this.state=Z.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=Z.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){rl(t)?(this.state=Z.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=Z.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case q.SPACE:case q.LINE_FEED:case q.TABULATION:case q.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=Z.BEFORE_ATTRIBUTE_NAME,!1;case q.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=Z.SELF_CLOSING_START_TAG,!1;case q.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=Z.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=Z.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===q.SOLIDUS?this.state=Z.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=Z.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){rl(t)?(this.state=Z.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=Z.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=Z.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case q.SOLIDUS:{this.state=Z.SCRIPT_DATA_END_TAG_OPEN;break}case q.EXCLAMATION_MARK:{this.state=Z.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=Z.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){rl(t)?(this.state=Z.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=Z.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=Z.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===q.HYPHEN_MINUS?(this.state=Z.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=Z.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===q.HYPHEN_MINUS?(this.state=Z.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=Z.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case q.HYPHEN_MINUS:{this.state=Z.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case q.LESS_THAN_SIGN:{this.state=Z.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case q.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(Xn);break}case q.EOF:{this._err(Ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case q.HYPHEN_MINUS:{this.state=Z.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case q.LESS_THAN_SIGN:{this.state=Z.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case q.NULL:{this._err(Ee.unexpectedNullCharacter),this.state=Z.SCRIPT_DATA_ESCAPED,this._emitChars(Xn);break}case q.EOF:{this._err(Ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=Z.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case q.HYPHEN_MINUS:{this._emitChars("-");break}case q.LESS_THAN_SIGN:{this.state=Z.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case q.GREATER_THAN_SIGN:{this.state=Z.SCRIPT_DATA,this._emitChars(">");break}case q.NULL:{this._err(Ee.unexpectedNullCharacter),this.state=Z.SCRIPT_DATA_ESCAPED,this._emitChars(Xn);break}case q.EOF:{this._err(Ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=Z.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===q.SOLIDUS?this.state=Z.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:rl(t)?(this._emitChars("<"),this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=Z.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){rl(t)?(this.state=Z.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=Z.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=Z.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Ao.SCRIPT,!1)&&DN(this.preprocessor.peek(Ao.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Ao.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=Z.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case q.HYPHEN_MINUS:{this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case q.LESS_THAN_SIGN:{this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case q.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(Xn);break}case q.EOF:{this._err(Ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case q.HYPHEN_MINUS:{this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case q.LESS_THAN_SIGN:{this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case q.NULL:{this._err(Ee.unexpectedNullCharacter),this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Xn);break}case q.EOF:{this._err(Ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case q.HYPHEN_MINUS:{this._emitChars("-");break}case q.LESS_THAN_SIGN:{this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case q.GREATER_THAN_SIGN:{this.state=Z.SCRIPT_DATA,this._emitChars(">");break}case q.NULL:{this._err(Ee.unexpectedNullCharacter),this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Xn);break}case q.EOF:{this._err(Ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===q.SOLIDUS?(this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Ao.SCRIPT,!1)&&DN(this.preprocessor.peek(Ao.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Ao.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=Z.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case q.SPACE:case q.LINE_FEED:case q.TABULATION:case q.FORM_FEED:break;case q.SOLIDUS:case q.GREATER_THAN_SIGN:case q.EOF:{this.state=Z.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case q.EQUALS_SIGN:{this._err(Ee.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=Z.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=Z.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case q.SPACE:case q.LINE_FEED:case q.TABULATION:case q.FORM_FEED:case q.SOLIDUS:case q.GREATER_THAN_SIGN:case q.EOF:{this._leaveAttrName(),this.state=Z.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case q.EQUALS_SIGN:{this._leaveAttrName(),this.state=Z.BEFORE_ATTRIBUTE_VALUE;break}case q.QUOTATION_MARK:case q.APOSTROPHE:case q.LESS_THAN_SIGN:{this._err(Ee.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case q.NULL:{this._err(Ee.unexpectedNullCharacter),this.currentAttr.name+=Xn;break}default:this.currentAttr.name+=String.fromCodePoint(Dp(t)?ey(t):t)}}_stateAfterAttributeName(t){switch(t){case q.SPACE:case q.LINE_FEED:case q.TABULATION:case q.FORM_FEED:break;case q.SOLIDUS:{this.state=Z.SELF_CLOSING_START_TAG;break}case q.EQUALS_SIGN:{this.state=Z.BEFORE_ATTRIBUTE_VALUE;break}case q.GREATER_THAN_SIGN:{this.state=Z.DATA,this.emitCurrentTagToken();break}case q.EOF:{this._err(Ee.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=Z.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case q.SPACE:case q.LINE_FEED:case q.TABULATION:case q.FORM_FEED:break;case q.QUOTATION_MARK:{this.state=Z.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case q.APOSTROPHE:{this.state=Z.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case q.GREATER_THAN_SIGN:{this._err(Ee.missingAttributeValue),this.state=Z.DATA,this.emitCurrentTagToken();break}default:this.state=Z.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case q.QUOTATION_MARK:{this.state=Z.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case q.AMPERSAND:{this._startCharacterReference();break}case q.NULL:{this._err(Ee.unexpectedNullCharacter),this.currentAttr.value+=Xn;break}case q.EOF:{this._err(Ee.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case q.APOSTROPHE:{this.state=Z.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case q.AMPERSAND:{this._startCharacterReference();break}case q.NULL:{this._err(Ee.unexpectedNullCharacter),this.currentAttr.value+=Xn;break}case q.EOF:{this._err(Ee.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case q.SPACE:case q.LINE_FEED:case q.TABULATION:case q.FORM_FEED:{this._leaveAttrValue(),this.state=Z.BEFORE_ATTRIBUTE_NAME;break}case q.AMPERSAND:{this._startCharacterReference();break}case q.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=Z.DATA,this.emitCurrentTagToken();break}case q.NULL:{this._err(Ee.unexpectedNullCharacter),this.currentAttr.value+=Xn;break}case q.QUOTATION_MARK:case q.APOSTROPHE:case q.LESS_THAN_SIGN:case q.EQUALS_SIGN:case q.GRAVE_ACCENT:{this._err(Ee.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case q.EOF:{this._err(Ee.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case q.SPACE:case q.LINE_FEED:case q.TABULATION:case q.FORM_FEED:{this._leaveAttrValue(),this.state=Z.BEFORE_ATTRIBUTE_NAME;break}case q.SOLIDUS:{this._leaveAttrValue(),this.state=Z.SELF_CLOSING_START_TAG;break}case q.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=Z.DATA,this.emitCurrentTagToken();break}case q.EOF:{this._err(Ee.eofInTag),this._emitEOFToken();break}default:this._err(Ee.missingWhitespaceBetweenAttributes),this.state=Z.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case q.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=Z.DATA,this.emitCurrentTagToken();break}case q.EOF:{this._err(Ee.eofInTag),this._emitEOFToken();break}default:this._err(Ee.unexpectedSolidusInTag),this.state=Z.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case q.GREATER_THAN_SIGN:{this.state=Z.DATA,this.emitCurrentComment(n);break}case q.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case q.NULL:{this._err(Ee.unexpectedNullCharacter),n.data+=Xn;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Ao.DASH_DASH,!0)?(this._createCommentToken(Ao.DASH_DASH.length+1),this.state=Z.COMMENT_START):this._consumeSequenceIfMatch(Ao.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Ao.DOCTYPE.length+1),this.state=Z.DOCTYPE):this._consumeSequenceIfMatch(Ao.CDATA_START,!0)?this.inForeignNode?this.state=Z.CDATA_SECTION:(this._err(Ee.cdataInHtmlContent),this._createCommentToken(Ao.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=Z.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Ee.incorrectlyOpenedComment),this._createCommentToken(2),this.state=Z.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case q.HYPHEN_MINUS:{this.state=Z.COMMENT_START_DASH;break}case q.GREATER_THAN_SIGN:{this._err(Ee.abruptClosingOfEmptyComment),this.state=Z.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=Z.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case q.HYPHEN_MINUS:{this.state=Z.COMMENT_END;break}case q.GREATER_THAN_SIGN:{this._err(Ee.abruptClosingOfEmptyComment),this.state=Z.DATA,this.emitCurrentComment(n);break}case q.EOF:{this._err(Ee.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=Z.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case q.HYPHEN_MINUS:{this.state=Z.COMMENT_END_DASH;break}case q.LESS_THAN_SIGN:{n.data+="<",this.state=Z.COMMENT_LESS_THAN_SIGN;break}case q.NULL:{this._err(Ee.unexpectedNullCharacter),n.data+=Xn;break}case q.EOF:{this._err(Ee.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case q.EXCLAMATION_MARK:{n.data+="!",this.state=Z.COMMENT_LESS_THAN_SIGN_BANG;break}case q.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=Z.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===q.HYPHEN_MINUS?this.state=Z.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=Z.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===q.HYPHEN_MINUS?this.state=Z.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=Z.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==q.GREATER_THAN_SIGN&&t!==q.EOF&&this._err(Ee.nestedComment),this.state=Z.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case q.HYPHEN_MINUS:{this.state=Z.COMMENT_END;break}case q.EOF:{this._err(Ee.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=Z.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case q.GREATER_THAN_SIGN:{this.state=Z.DATA,this.emitCurrentComment(n);break}case q.EXCLAMATION_MARK:{this.state=Z.COMMENT_END_BANG;break}case q.HYPHEN_MINUS:{n.data+="-";break}case q.EOF:{this._err(Ee.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=Z.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case q.HYPHEN_MINUS:{n.data+="--!",this.state=Z.COMMENT_END_DASH;break}case q.GREATER_THAN_SIGN:{this._err(Ee.incorrectlyClosedComment),this.state=Z.DATA,this.emitCurrentComment(n);break}case q.EOF:{this._err(Ee.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=Z.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case q.SPACE:case q.LINE_FEED:case q.TABULATION:case q.FORM_FEED:{this.state=Z.BEFORE_DOCTYPE_NAME;break}case q.GREATER_THAN_SIGN:{this.state=Z.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case q.EOF:{this._err(Ee.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Ee.missingWhitespaceBeforeDoctypeName),this.state=Z.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Dp(t))this._createDoctypeToken(String.fromCharCode(ey(t))),this.state=Z.DOCTYPE_NAME;else switch(t){case q.SPACE:case q.LINE_FEED:case q.TABULATION:case q.FORM_FEED:break;case q.NULL:{this._err(Ee.unexpectedNullCharacter),this._createDoctypeToken(Xn),this.state=Z.DOCTYPE_NAME;break}case q.GREATER_THAN_SIGN:{this._err(Ee.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=Z.DATA;break}case q.EOF:{this._err(Ee.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=Z.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case q.SPACE:case q.LINE_FEED:case q.TABULATION:case q.FORM_FEED:{this.state=Z.AFTER_DOCTYPE_NAME;break}case q.GREATER_THAN_SIGN:{this.state=Z.DATA,this.emitCurrentDoctype(n);break}case q.NULL:{this._err(Ee.unexpectedNullCharacter),n.name+=Xn;break}case q.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(Dp(t)?ey(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case q.SPACE:case q.LINE_FEED:case q.TABULATION:case q.FORM_FEED:break;case q.GREATER_THAN_SIGN:{this.state=Z.DATA,this.emitCurrentDoctype(n);break}case q.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Ao.PUBLIC,!1)?this.state=Z.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Ao.SYSTEM,!1)?this.state=Z.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Ee.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=Z.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case q.SPACE:case q.LINE_FEED:case q.TABULATION:case q.FORM_FEED:{this.state=Z.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case q.QUOTATION_MARK:{this._err(Ee.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=Z.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case q.APOSTROPHE:{this._err(Ee.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=Z.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case q.GREATER_THAN_SIGN:{this._err(Ee.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=Z.DATA,this.emitCurrentDoctype(n);break}case q.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Ee.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=Z.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case q.SPACE:case q.LINE_FEED:case q.TABULATION:case q.FORM_FEED:break;case q.QUOTATION_MARK:{n.publicId="",this.state=Z.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case q.APOSTROPHE:{n.publicId="",this.state=Z.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case q.GREATER_THAN_SIGN:{this._err(Ee.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=Z.DATA,this.emitCurrentDoctype(n);break}case q.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Ee.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=Z.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case q.QUOTATION_MARK:{this.state=Z.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case q.NULL:{this._err(Ee.unexpectedNullCharacter),n.publicId+=Xn;break}case q.GREATER_THAN_SIGN:{this._err(Ee.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=Z.DATA;break}case q.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case q.APOSTROPHE:{this.state=Z.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case q.NULL:{this._err(Ee.unexpectedNullCharacter),n.publicId+=Xn;break}case q.GREATER_THAN_SIGN:{this._err(Ee.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=Z.DATA;break}case q.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case q.SPACE:case q.LINE_FEED:case q.TABULATION:case q.FORM_FEED:{this.state=Z.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case q.GREATER_THAN_SIGN:{this.state=Z.DATA,this.emitCurrentDoctype(n);break}case q.QUOTATION_MARK:{this._err(Ee.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=Z.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case q.APOSTROPHE:{this._err(Ee.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=Z.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case q.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Ee.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=Z.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case q.SPACE:case q.LINE_FEED:case q.TABULATION:case q.FORM_FEED:break;case q.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=Z.DATA;break}case q.QUOTATION_MARK:{n.systemId="",this.state=Z.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case q.APOSTROPHE:{n.systemId="",this.state=Z.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case q.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Ee.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=Z.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case q.SPACE:case q.LINE_FEED:case q.TABULATION:case q.FORM_FEED:{this.state=Z.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case q.QUOTATION_MARK:{this._err(Ee.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=Z.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case q.APOSTROPHE:{this._err(Ee.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=Z.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case q.GREATER_THAN_SIGN:{this._err(Ee.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=Z.DATA,this.emitCurrentDoctype(n);break}case q.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Ee.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=Z.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case q.SPACE:case q.LINE_FEED:case q.TABULATION:case q.FORM_FEED:break;case q.QUOTATION_MARK:{n.systemId="",this.state=Z.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case q.APOSTROPHE:{n.systemId="",this.state=Z.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case q.GREATER_THAN_SIGN:{this._err(Ee.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=Z.DATA,this.emitCurrentDoctype(n);break}case q.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Ee.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=Z.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case q.QUOTATION_MARK:{this.state=Z.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case q.NULL:{this._err(Ee.unexpectedNullCharacter),n.systemId+=Xn;break}case q.GREATER_THAN_SIGN:{this._err(Ee.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=Z.DATA;break}case q.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case q.APOSTROPHE:{this.state=Z.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case q.NULL:{this._err(Ee.unexpectedNullCharacter),n.systemId+=Xn;break}case q.GREATER_THAN_SIGN:{this._err(Ee.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=Z.DATA;break}case q.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case q.SPACE:case q.LINE_FEED:case q.TABULATION:case q.FORM_FEED:break;case q.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=Z.DATA;break}case q.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Ee.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=Z.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case q.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=Z.DATA;break}case q.NULL:{this._err(Ee.unexpectedNullCharacter);break}case q.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case q.RIGHT_SQUARE_BRACKET:{this.state=Z.CDATA_SECTION_BRACKET;break}case q.EOF:{this._err(Ee.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===q.RIGHT_SQUARE_BRACKET?this.state=Z.CDATA_SECTION_END:(this._emitChars("]"),this.state=Z.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case q.GREATER_THAN_SIGN:{this.state=Z.DATA;break}case q.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=Z.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(q.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&RN(this.preprocessor.peek(1))?Z.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){RN(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===q.SEMICOLON&&this._err(Ee.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const B6=new Set([R.DD,R.DT,R.LI,R.OPTGROUP,R.OPTION,R.P,R.RB,R.RP,R.RT,R.RTC]),IN=new Set([...B6,R.CAPTION,R.COLGROUP,R.TBODY,R.TD,R.TFOOT,R.TH,R.THEAD,R.TR]),R0=new Set([R.APPLET,R.CAPTION,R.HTML,R.MARQUEE,R.OBJECT,R.TABLE,R.TD,R.TEMPLATE,R.TH]),Qpe=new Set([...R0,R.OL,R.UL]),Kpe=new Set([...R0,R.BUTTON]),ON=new Set([R.ANNOTATION_XML,R.MI,R.MN,R.MO,R.MS,R.MTEXT]),NN=new Set([R.DESC,R.FOREIGN_OBJECT,R.TITLE]),Xpe=new Set([R.TR,R.TEMPLATE,R.HTML]),Zpe=new Set([R.TBODY,R.TFOOT,R.THEAD,R.TEMPLATE,R.HTML]),Jpe=new Set([R.TABLE,R.TEMPLATE,R.HTML]),ehe=new Set([R.TD,R.TH]);class the{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=R.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===R.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Pe.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const o=this._indexOf(t)+1;this.items.splice(o,0,n),this.tagIDs.splice(o,0,r),this.stackTop++,o===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,o===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==Pe.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(ET,Pe.HTML)}popUntilTableCellPopped(){this.popUntilPopped(ehe,Pe.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(Jpe,Pe.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Zpe,Pe.HTML)}clearBackToTableRowContext(){this.clearBackTo(Xpe,Pe.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===R.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===R.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const o=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case Pe.HTML:{if(o===t)return!0;if(n.has(o))return!1;break}case Pe.SVG:{if(NN.has(o))return!1;break}case Pe.MATHML:{if(ON.has(o))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,R0)}hasInListItemScope(t){return this.hasInDynamicScope(t,Qpe)}hasInButtonScope(t){return this.hasInDynamicScope(t,Kpe)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case Pe.HTML:{if(ET.has(n))return!0;if(R0.has(n))return!1;break}case Pe.SVG:{if(NN.has(n))return!1;break}case Pe.MATHML:{if(ON.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Pe.HTML)switch(this.tagIDs[n]){case t:return!0;case R.TABLE:case R.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Pe.HTML)switch(this.tagIDs[t]){case R.TBODY:case R.THEAD:case R.TFOOT:return!0;case R.TABLE:case R.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Pe.HTML)switch(this.tagIDs[n]){case t:return!0;case R.OPTION:case R.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&B6.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&IN.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&IN.has(this.currentTagId);)this.pop()}}const Px=3;var pi;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(pi||(pi={}));const PN={type:pi.Marker};class nhe{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],o=n.length,a=this.treeAdapter.getTagName(t),i=this.treeAdapter.getNamespaceURI(t);for(let l=0;l<this.entries.length;l++){const u=this.entries[l];if(u.type===pi.Marker)break;const{element:d}=u;if(this.treeAdapter.getTagName(d)===a&&this.treeAdapter.getNamespaceURI(d)===i){const p=this.treeAdapter.getAttrList(d);p.length===o&&r.push({idx:l,attrs:p})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<Px)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<Px)return;const o=new Map(n.map(i=>[i.name,i.value]));let a=0;for(let i=0;i<r.length;i++){const l=r[i];l.attrs.every(u=>o.get(u.name)===u.value)&&(a+=1,a>=Px&&this.entries.splice(l.idx,1))}}insertMarker(){this.entries.unshift(PN)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:pi.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:pi.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(PN);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===pi.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===pi.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===pi.Element&&n.element===t)}}const ol={createDocument(){return{nodeName:"#document",mode:Ta.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const o=e.childNodes.find(a=>a.nodeName==="#documentType");if(o)o.name=t,o.publicId=n,o.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};ol.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(ol.isTextNode(n)){n.value+=t;return}}ol.appendChild(e,ol.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&ol.isTextNode(r)?r.value+=t:ol.insertBefore(e,ol.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},U6="html",rhe="about:legacy-compat",ohe="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",z6=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],ahe=[...z6,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],ihe=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),H6=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],she=[...H6,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function LN(e,t){return t.some(n=>e.startsWith(n))}function lhe(e){return e.name===U6&&e.publicId===null&&(e.systemId===null||e.systemId===rhe)}function che(e){if(e.name!==U6)return Ta.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===ohe)return Ta.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),ihe.has(n))return Ta.QUIRKS;let r=t===null?ahe:z6;if(LN(n,r))return Ta.QUIRKS;if(r=t===null?H6:she,LN(n,r))return Ta.LIMITED_QUIRKS}return Ta.NO_QUIRKS}const MN={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},uhe="definitionurl",dhe="definitionURL",fhe=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),phe=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Pe.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Pe.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Pe.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Pe.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Pe.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Pe.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Pe.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Pe.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Pe.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Pe.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Pe.XMLNS}]]),hhe=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),mhe=new Set([R.B,R.BIG,R.BLOCKQUOTE,R.BODY,R.BR,R.CENTER,R.CODE,R.DD,R.DIV,R.DL,R.DT,R.EM,R.EMBED,R.H1,R.H2,R.H3,R.H4,R.H5,R.H6,R.HEAD,R.HR,R.I,R.IMG,R.LI,R.LISTING,R.MENU,R.META,R.NOBR,R.OL,R.P,R.PRE,R.RUBY,R.S,R.SMALL,R.SPAN,R.STRONG,R.STRIKE,R.SUB,R.SUP,R.TABLE,R.TT,R.U,R.UL,R.VAR]);function ghe(e){const t=e.tagID;return t===R.FONT&&e.attrs.some(({name:n})=>n===Sc.COLOR||n===Sc.SIZE||n===Sc.FACE)||mhe.has(t)}function $6(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===uhe){e.attrs[t].name=dhe;break}}function G6(e){for(let t=0;t<e.attrs.length;t++){const n=fhe.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function P_(e){for(let t=0;t<e.attrs.length;t++){const n=phe.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function yhe(e){const t=hhe.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=$d(e.tagName))}function bhe(e,t){return t===Pe.MATHML&&(e===R.MI||e===R.MO||e===R.MN||e===R.MS||e===R.MTEXT)}function vhe(e,t,n){if(t===Pe.MATHML&&e===R.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Sc.ENCODING){const o=n[r].value.toLowerCase();return o===MN.TEXT_HTML||o===MN.APPLICATION_XML}}return t===Pe.SVG&&(e===R.FOREIGN_OBJECT||e===R.DESC||e===R.TITLE)}function Ehe(e,t,n,r){return(!r||r===Pe.HTML)&&vhe(e,t,n)||(!r||r===Pe.MATHML)&&bhe(e,t)}const xhe="hidden",She=8,The=3;var ee;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(ee||(ee={}));const Che={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},V6=new Set([R.TABLE,R.TBODY,R.TFOOT,R.THEAD,R.TR]),FN={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:ol,onParseError:null};class jN{constructor(t,n,r=null,o=null){this.fragmentContext=r,this.scriptHandler=o,this.currentToken=null,this.stopped=!1,this.insertionMode=ee.INITIAL,this.originalInsertionMode=ee.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...FN,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new Ype(this.options,this),this.activeFormattingElements=new nhe(this.treeAdapter),this.fragmentContextID=r?$d(this.treeAdapter.getTagName(r)):R.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new the(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...FN,...n};t??(t=r.treeAdapter.createElement(ue.TEMPLATE,Pe.HTML,[]));const o=r.treeAdapter.createElement("documentmock",Pe.HTML,[]),a=new this(r,o,t);return a.fragmentContextID===R.TEMPLATE&&a.tmplInsertionModeStack.unshift(ee.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var o;if(!this.onParseError)return;const a=(o=t.location)!==null&&o!==void 0?o:Che,i={code:n,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:r?a.startLine:a.endLine,endCol:r?a.startCol:a.endCol,endOffset:r?a.startOffset:a.endOffset};this.onParseError(i)}onItemPush(t,n,r){var o,a;(a=(o=this.treeAdapter).onItemPush)===null||a===void 0||a.call(o,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,o;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(o=(r=this.treeAdapter).onItemPop)===null||o===void 0||o.call(r,t,this.openElements.current),n){let a,i;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,i=this.fragmentContextID):{current:a,currentTagId:i}=this.openElements,this._setContextModes(a,i)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===Pe.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,Pe.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=ee.TEXT}switchToPlaintextParsing(){this.insertionMode=ee.TEXT,this.originalInsertionMode=ee.IN_BODY,this.tokenizer.state=pr.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===ue.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Pe.HTML))switch(this.fragmentContextID){case R.TITLE:case R.TEXTAREA:{this.tokenizer.state=pr.RCDATA;break}case R.STYLE:case R.XMP:case R.IFRAME:case R.NOEMBED:case R.NOFRAMES:case R.NOSCRIPT:{this.tokenizer.state=pr.RAWTEXT;break}case R.SCRIPT:{this.tokenizer.state=pr.SCRIPT_DATA;break}case R.PLAINTEXT:{this.tokenizer.state=pr.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",o=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,o),t.location){const a=this.treeAdapter.getChildNodes(this.document).find(i=>this.treeAdapter.isDocumentTypeNode(i));a&&this.treeAdapter.setNodeSourceCodeLocation(a,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,Pe.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,Pe.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(ue.HTML,Pe.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,R.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const o=this.treeAdapter.getChildNodes(n),a=r?o.lastIndexOf(r):o.length,i=o[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(i)){const{endLine:l,endCol:u,endOffset:d}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(i,{endLine:l,endCol:u,endOffset:d})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,o=this.treeAdapter.getTagName(t),a=n.type===Vt.END_TAG&&o===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===R.SVG&&this.treeAdapter.getTagName(n)===ue.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===Pe.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===R.MGLYPH||t.tagID===R.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,Pe.HTML)}_processToken(t){switch(t.type){case Vt.CHARACTER:{this.onCharacter(t);break}case Vt.NULL_CHARACTER:{this.onNullCharacter(t);break}case Vt.COMMENT:{this.onComment(t);break}case Vt.DOCTYPE:{this.onDoctype(t);break}case Vt.START_TAG:{this._processStartTag(t);break}case Vt.END_TAG:{this.onEndTag(t);break}case Vt.EOF:{this.onEof(t);break}case Vt.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const o=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return Ehe(t,o,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(o=>o.type===pi.Marker||this.openElements.contains(o.element)),r=n===-1?t-1:n-1;for(let o=r;o>=0;o--){const a=this.activeFormattingElements.entries[o];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=ee.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(R.P),this.openElements.popUntilTagNamePopped(R.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case R.TR:{this.insertionMode=ee.IN_ROW;return}case R.TBODY:case R.THEAD:case R.TFOOT:{this.insertionMode=ee.IN_TABLE_BODY;return}case R.CAPTION:{this.insertionMode=ee.IN_CAPTION;return}case R.COLGROUP:{this.insertionMode=ee.IN_COLUMN_GROUP;return}case R.TABLE:{this.insertionMode=ee.IN_TABLE;return}case R.BODY:{this.insertionMode=ee.IN_BODY;return}case R.FRAMESET:{this.insertionMode=ee.IN_FRAMESET;return}case R.SELECT:{this._resetInsertionModeForSelect(t);return}case R.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case R.HTML:{this.insertionMode=this.headElement?ee.AFTER_HEAD:ee.BEFORE_HEAD;return}case R.TD:case R.TH:{if(t>0){this.insertionMode=ee.IN_CELL;return}break}case R.HEAD:{if(t>0){this.insertionMode=ee.IN_HEAD;return}break}}this.insertionMode=ee.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===R.TEMPLATE)break;if(r===R.TABLE){this.insertionMode=ee.IN_SELECT_IN_TABLE;return}}this.insertionMode=ee.IN_SELECT}_isElementCausesFosterParenting(t){return V6.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case R.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===Pe.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case R.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return Gpe[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){ege(this,t);return}switch(this.insertionMode){case ee.INITIAL:{pp(this,t);break}case ee.BEFORE_HTML:{Qp(this,t);break}case ee.BEFORE_HEAD:{Kp(this,t);break}case ee.IN_HEAD:{Xp(this,t);break}case ee.IN_HEAD_NO_SCRIPT:{Zp(this,t);break}case ee.AFTER_HEAD:{Jp(this,t);break}case ee.IN_BODY:case ee.IN_CAPTION:case ee.IN_CELL:case ee.IN_TEMPLATE:{W6(this,t);break}case ee.TEXT:case ee.IN_SELECT:case ee.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case ee.IN_TABLE:case ee.IN_TABLE_BODY:case ee.IN_ROW:{Lx(this,t);break}case ee.IN_TABLE_TEXT:{J6(this,t);break}case ee.IN_COLUMN_GROUP:{D0(this,t);break}case ee.AFTER_BODY:{I0(this,t);break}case ee.AFTER_AFTER_BODY:{Oy(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Jme(this,t);return}switch(this.insertionMode){case ee.INITIAL:{pp(this,t);break}case ee.BEFORE_HTML:{Qp(this,t);break}case ee.BEFORE_HEAD:{Kp(this,t);break}case ee.IN_HEAD:{Xp(this,t);break}case ee.IN_HEAD_NO_SCRIPT:{Zp(this,t);break}case ee.AFTER_HEAD:{Jp(this,t);break}case ee.TEXT:{this._insertCharacters(t);break}case ee.IN_TABLE:case ee.IN_TABLE_BODY:case ee.IN_ROW:{Lx(this,t);break}case ee.IN_COLUMN_GROUP:{D0(this,t);break}case ee.AFTER_BODY:{I0(this,t);break}case ee.AFTER_AFTER_BODY:{Oy(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){xT(this,t);return}switch(this.insertionMode){case ee.INITIAL:case ee.BEFORE_HTML:case ee.BEFORE_HEAD:case ee.IN_HEAD:case ee.IN_HEAD_NO_SCRIPT:case ee.AFTER_HEAD:case ee.IN_BODY:case ee.IN_TABLE:case ee.IN_CAPTION:case ee.IN_COLUMN_GROUP:case ee.IN_TABLE_BODY:case ee.IN_ROW:case ee.IN_CELL:case ee.IN_SELECT:case ee.IN_SELECT_IN_TABLE:case ee.IN_TEMPLATE:case ee.IN_FRAMESET:case ee.AFTER_FRAMESET:{xT(this,t);break}case ee.IN_TABLE_TEXT:{hp(this,t);break}case ee.AFTER_BODY:{Ihe(this,t);break}case ee.AFTER_AFTER_BODY:case ee.AFTER_AFTER_FRAMESET:{Ohe(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case ee.INITIAL:{Nhe(this,t);break}case ee.BEFORE_HEAD:case ee.IN_HEAD:case ee.IN_HEAD_NO_SCRIPT:case ee.AFTER_HEAD:{this._err(t,Ee.misplacedDoctype);break}case ee.IN_TABLE_TEXT:{hp(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,Ee.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?tge(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case ee.INITIAL:{pp(this,t);break}case ee.BEFORE_HTML:{Phe(this,t);break}case ee.BEFORE_HEAD:{Mhe(this,t);break}case ee.IN_HEAD:{Ya(this,t);break}case ee.IN_HEAD_NO_SCRIPT:{Bhe(this,t);break}case ee.AFTER_HEAD:{zhe(this,t);break}case ee.IN_BODY:{oo(this,t);break}case ee.IN_TABLE:{Sd(this,t);break}case ee.IN_TABLE_TEXT:{hp(this,t);break}case ee.IN_CAPTION:{Fme(this,t);break}case ee.IN_COLUMN_GROUP:{F_(this,t);break}case ee.IN_TABLE_BODY:{tv(this,t);break}case ee.IN_ROW:{nv(this,t);break}case ee.IN_CELL:{Ume(this,t);break}case ee.IN_SELECT:{n8(this,t);break}case ee.IN_SELECT_IN_TABLE:{Hme(this,t);break}case ee.IN_TEMPLATE:{Gme(this,t);break}case ee.AFTER_BODY:{qme(this,t);break}case ee.IN_FRAMESET:{Wme(this,t);break}case ee.AFTER_FRAMESET:{Qme(this,t);break}case ee.AFTER_AFTER_BODY:{Xme(this,t);break}case ee.AFTER_AFTER_FRAMESET:{Zme(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?nge(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case ee.INITIAL:{pp(this,t);break}case ee.BEFORE_HTML:{Lhe(this,t);break}case ee.BEFORE_HEAD:{Fhe(this,t);break}case ee.IN_HEAD:{jhe(this,t);break}case ee.IN_HEAD_NO_SCRIPT:{Uhe(this,t);break}case ee.AFTER_HEAD:{Hhe(this,t);break}case ee.IN_BODY:{ev(this,t);break}case ee.TEXT:{kme(this,t);break}case ee.IN_TABLE:{Ph(this,t);break}case ee.IN_TABLE_TEXT:{hp(this,t);break}case ee.IN_CAPTION:{jme(this,t);break}case ee.IN_COLUMN_GROUP:{Bme(this,t);break}case ee.IN_TABLE_BODY:{ST(this,t);break}case ee.IN_ROW:{t8(this,t);break}case ee.IN_CELL:{zme(this,t);break}case ee.IN_SELECT:{r8(this,t);break}case ee.IN_SELECT_IN_TABLE:{$me(this,t);break}case ee.IN_TEMPLATE:{Vme(this,t);break}case ee.AFTER_BODY:{a8(this,t);break}case ee.IN_FRAMESET:{Yme(this,t);break}case ee.AFTER_FRAMESET:{Kme(this,t);break}case ee.AFTER_AFTER_BODY:{Oy(this,t);break}}}onEof(t){switch(this.insertionMode){case ee.INITIAL:{pp(this,t);break}case ee.BEFORE_HTML:{Qp(this,t);break}case ee.BEFORE_HEAD:{Kp(this,t);break}case ee.IN_HEAD:{Xp(this,t);break}case ee.IN_HEAD_NO_SCRIPT:{Zp(this,t);break}case ee.AFTER_HEAD:{Jp(this,t);break}case ee.IN_BODY:case ee.IN_TABLE:case ee.IN_CAPTION:case ee.IN_COLUMN_GROUP:case ee.IN_TABLE_BODY:case ee.IN_ROW:case ee.IN_CELL:case ee.IN_SELECT:case ee.IN_SELECT_IN_TABLE:{X6(this,t);break}case ee.TEXT:{wme(this,t);break}case ee.IN_TABLE_TEXT:{hp(this,t);break}case ee.IN_TEMPLATE:{o8(this,t);break}case ee.AFTER_BODY:case ee.IN_FRAMESET:case ee.AFTER_FRAMESET:case ee.AFTER_AFTER_BODY:case ee.AFTER_AFTER_FRAMESET:{M_(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===q.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case ee.IN_HEAD:case ee.IN_HEAD_NO_SCRIPT:case ee.AFTER_HEAD:case ee.TEXT:case ee.IN_COLUMN_GROUP:case ee.IN_SELECT:case ee.IN_SELECT_IN_TABLE:case ee.IN_FRAMESET:case ee.AFTER_FRAMESET:{this._insertCharacters(t);break}case ee.IN_BODY:case ee.IN_CAPTION:case ee.IN_CELL:case ee.IN_TEMPLATE:case ee.AFTER_BODY:case ee.AFTER_AFTER_BODY:case ee.AFTER_AFTER_FRAMESET:{q6(this,t);break}case ee.IN_TABLE:case ee.IN_TABLE_BODY:case ee.IN_ROW:{Lx(this,t);break}case ee.IN_TABLE_TEXT:{Z6(this,t);break}}}}function _he(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):K6(e,t),n}function Ahe(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const o=e.openElements.items[r];if(o===t.element)break;e._isSpecialElement(o,e.openElements.tagIDs[r])&&(n=o)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function khe(e,t,n){let r=t,o=e.openElements.getCommonAncestor(t);for(let a=0,i=o;i!==n;a++,i=o){o=e.openElements.getCommonAncestor(i);const l=e.activeFormattingElements.getElementEntry(i),u=l&&a>=The;!l||u?(u&&e.activeFormattingElements.removeEntry(l),e.openElements.remove(i)):(i=whe(e,l),r===t&&(e.activeFormattingElements.bookmark=l),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(i,r),r=i)}return r}function whe(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function Rhe(e,t,n){const r=e.treeAdapter.getTagName(t),o=$d(r);if(e._isElementCausesFosterParenting(o))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);o===R.TEMPLATE&&a===Pe.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Dhe(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:o}=n,a=e.treeAdapter.createElement(o.tagName,r,o.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,o),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,o.tagID)}function L_(e,t){for(let n=0;n<She;n++){const r=_he(e,t);if(!r)break;const o=Ahe(e,r);if(!o)break;e.activeFormattingElements.bookmark=r;const a=khe(e,o,r.element),i=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(a),i&&Rhe(e,i,a),Dhe(e,o,r)}}function xT(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Ihe(e,t){e._appendCommentNode(t,e.openElements.items[0])}function Ohe(e,t){e._appendCommentNode(t,e.document)}function M_(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],o=e.treeAdapter.getNodeSourceCodeLocation(r);if(o&&!o.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],i=e.treeAdapter.getNodeSourceCodeLocation(a);i&&!i.endTag&&e._setEndLocation(a,t)}}}}function Nhe(e,t){e._setDocumentType(t);const n=t.forceQuirks?Ta.QUIRKS:che(t);lhe(t)||e._err(t,Ee.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=ee.BEFORE_HTML}function pp(e,t){e._err(t,Ee.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Ta.QUIRKS),e.insertionMode=ee.BEFORE_HTML,e._processToken(t)}function Phe(e,t){t.tagID===R.HTML?(e._insertElement(t,Pe.HTML),e.insertionMode=ee.BEFORE_HEAD):Qp(e,t)}function Lhe(e,t){const n=t.tagID;(n===R.HTML||n===R.HEAD||n===R.BODY||n===R.BR)&&Qp(e,t)}function Qp(e,t){e._insertFakeRootElement(),e.insertionMode=ee.BEFORE_HEAD,e._processToken(t)}function Mhe(e,t){switch(t.tagID){case R.HTML:{oo(e,t);break}case R.HEAD:{e._insertElement(t,Pe.HTML),e.headElement=e.openElements.current,e.insertionMode=ee.IN_HEAD;break}default:Kp(e,t)}}function Fhe(e,t){const n=t.tagID;n===R.HEAD||n===R.BODY||n===R.HTML||n===R.BR?Kp(e,t):e._err(t,Ee.endTagWithoutMatchingOpenElement)}function Kp(e,t){e._insertFakeElement(ue.HEAD,R.HEAD),e.headElement=e.openElements.current,e.insertionMode=ee.IN_HEAD,e._processToken(t)}function Ya(e,t){switch(t.tagID){case R.HTML:{oo(e,t);break}case R.BASE:case R.BASEFONT:case R.BGSOUND:case R.LINK:case R.META:{e._appendElement(t,Pe.HTML),t.ackSelfClosing=!0;break}case R.TITLE:{e._switchToTextParsing(t,pr.RCDATA);break}case R.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,pr.RAWTEXT):(e._insertElement(t,Pe.HTML),e.insertionMode=ee.IN_HEAD_NO_SCRIPT);break}case R.NOFRAMES:case R.STYLE:{e._switchToTextParsing(t,pr.RAWTEXT);break}case R.SCRIPT:{e._switchToTextParsing(t,pr.SCRIPT_DATA);break}case R.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=ee.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(ee.IN_TEMPLATE);break}case R.HEAD:{e._err(t,Ee.misplacedStartTagForHeadElement);break}default:Xp(e,t)}}function jhe(e,t){switch(t.tagID){case R.HEAD:{e.openElements.pop(),e.insertionMode=ee.AFTER_HEAD;break}case R.BODY:case R.BR:case R.HTML:{Xp(e,t);break}case R.TEMPLATE:{Hc(e,t);break}default:e._err(t,Ee.endTagWithoutMatchingOpenElement)}}function Hc(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==R.TEMPLATE&&e._err(t,Ee.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(R.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Ee.endTagWithoutMatchingOpenElement)}function Xp(e,t){e.openElements.pop(),e.insertionMode=ee.AFTER_HEAD,e._processToken(t)}function Bhe(e,t){switch(t.tagID){case R.HTML:{oo(e,t);break}case R.BASEFONT:case R.BGSOUND:case R.HEAD:case R.LINK:case R.META:case R.NOFRAMES:case R.STYLE:{Ya(e,t);break}case R.NOSCRIPT:{e._err(t,Ee.nestedNoscriptInHead);break}default:Zp(e,t)}}function Uhe(e,t){switch(t.tagID){case R.NOSCRIPT:{e.openElements.pop(),e.insertionMode=ee.IN_HEAD;break}case R.BR:{Zp(e,t);break}default:e._err(t,Ee.endTagWithoutMatchingOpenElement)}}function Zp(e,t){const n=t.type===Vt.EOF?Ee.openElementsLeftAfterEof:Ee.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=ee.IN_HEAD,e._processToken(t)}function zhe(e,t){switch(t.tagID){case R.HTML:{oo(e,t);break}case R.BODY:{e._insertElement(t,Pe.HTML),e.framesetOk=!1,e.insertionMode=ee.IN_BODY;break}case R.FRAMESET:{e._insertElement(t,Pe.HTML),e.insertionMode=ee.IN_FRAMESET;break}case R.BASE:case R.BASEFONT:case R.BGSOUND:case R.LINK:case R.META:case R.NOFRAMES:case R.SCRIPT:case R.STYLE:case R.TEMPLATE:case R.TITLE:{e._err(t,Ee.abandonedHeadElementChild),e.openElements.push(e.headElement,R.HEAD),Ya(e,t),e.openElements.remove(e.headElement);break}case R.HEAD:{e._err(t,Ee.misplacedStartTagForHeadElement);break}default:Jp(e,t)}}function Hhe(e,t){switch(t.tagID){case R.BODY:case R.HTML:case R.BR:{Jp(e,t);break}case R.TEMPLATE:{Hc(e,t);break}default:e._err(t,Ee.endTagWithoutMatchingOpenElement)}}function Jp(e,t){e._insertFakeElement(ue.BODY,R.BODY),e.insertionMode=ee.IN_BODY,Jb(e,t)}function Jb(e,t){switch(t.type){case Vt.CHARACTER:{W6(e,t);break}case Vt.WHITESPACE_CHARACTER:{q6(e,t);break}case Vt.COMMENT:{xT(e,t);break}case Vt.START_TAG:{oo(e,t);break}case Vt.END_TAG:{ev(e,t);break}case Vt.EOF:{X6(e,t);break}}}function q6(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function W6(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function $he(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Ghe(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function Vhe(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Pe.HTML),e.insertionMode=ee.IN_FRAMESET)}function qhe(e,t){e.openElements.hasInButtonScope(R.P)&&e._closePElement(),e._insertElement(t,Pe.HTML)}function Whe(e,t){e.openElements.hasInButtonScope(R.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&ET.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Pe.HTML)}function Yhe(e,t){e.openElements.hasInButtonScope(R.P)&&e._closePElement(),e._insertElement(t,Pe.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Qhe(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(R.P)&&e._closePElement(),e._insertElement(t,Pe.HTML),n||(e.formElement=e.openElements.current))}function Khe(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const o=e.openElements.tagIDs[r];if(n===R.LI&&o===R.LI||(n===R.DD||n===R.DT)&&(o===R.DD||o===R.DT)){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(o!==R.ADDRESS&&o!==R.DIV&&o!==R.P&&e._isSpecialElement(e.openElements.items[r],o))break}e.openElements.hasInButtonScope(R.P)&&e._closePElement(),e._insertElement(t,Pe.HTML)}function Xhe(e,t){e.openElements.hasInButtonScope(R.P)&&e._closePElement(),e._insertElement(t,Pe.HTML),e.tokenizer.state=pr.PLAINTEXT}function Zhe(e,t){e.openElements.hasInScope(R.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(R.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Pe.HTML),e.framesetOk=!1}function Jhe(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(ue.A);n&&(L_(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Pe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function eme(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Pe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function tme(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(R.NOBR)&&(L_(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Pe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function nme(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Pe.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function rme(e,t){e.treeAdapter.getDocumentMode(e.document)!==Ta.QUIRKS&&e.openElements.hasInButtonScope(R.P)&&e._closePElement(),e._insertElement(t,Pe.HTML),e.framesetOk=!1,e.insertionMode=ee.IN_TABLE}function Y6(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Pe.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Q6(e){const t=F6(e,Sc.TYPE);return t!=null&&t.toLowerCase()===xhe}function ome(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Pe.HTML),Q6(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function ame(e,t){e._appendElement(t,Pe.HTML),t.ackSelfClosing=!0}function ime(e,t){e.openElements.hasInButtonScope(R.P)&&e._closePElement(),e._appendElement(t,Pe.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function sme(e,t){t.tagName=ue.IMG,t.tagID=R.IMG,Y6(e,t)}function lme(e,t){e._insertElement(t,Pe.HTML),e.skipNextNewLine=!0,e.tokenizer.state=pr.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=ee.TEXT}function cme(e,t){e.openElements.hasInButtonScope(R.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,pr.RAWTEXT)}function ume(e,t){e.framesetOk=!1,e._switchToTextParsing(t,pr.RAWTEXT)}function BN(e,t){e._switchToTextParsing(t,pr.RAWTEXT)}function dme(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Pe.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===ee.IN_TABLE||e.insertionMode===ee.IN_CAPTION||e.insertionMode===ee.IN_TABLE_BODY||e.insertionMode===ee.IN_ROW||e.insertionMode===ee.IN_CELL?ee.IN_SELECT_IN_TABLE:ee.IN_SELECT}function fme(e,t){e.openElements.currentTagId===R.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Pe.HTML)}function pme(e,t){e.openElements.hasInScope(R.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Pe.HTML)}function hme(e,t){e.openElements.hasInScope(R.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(R.RTC),e._insertElement(t,Pe.HTML)}function mme(e,t){e._reconstructActiveFormattingElements(),$6(t),P_(t),t.selfClosing?e._appendElement(t,Pe.MATHML):e._insertElement(t,Pe.MATHML),t.ackSelfClosing=!0}function gme(e,t){e._reconstructActiveFormattingElements(),G6(t),P_(t),t.selfClosing?e._appendElement(t,Pe.SVG):e._insertElement(t,Pe.SVG),t.ackSelfClosing=!0}function UN(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Pe.HTML)}function oo(e,t){switch(t.tagID){case R.I:case R.S:case R.B:case R.U:case R.EM:case R.TT:case R.BIG:case R.CODE:case R.FONT:case R.SMALL:case R.STRIKE:case R.STRONG:{eme(e,t);break}case R.A:{Jhe(e,t);break}case R.H1:case R.H2:case R.H3:case R.H4:case R.H5:case R.H6:{Whe(e,t);break}case R.P:case R.DL:case R.OL:case R.UL:case R.DIV:case R.DIR:case R.NAV:case R.MAIN:case R.MENU:case R.ASIDE:case R.CENTER:case R.FIGURE:case R.FOOTER:case R.HEADER:case R.HGROUP:case R.DIALOG:case R.DETAILS:case R.ADDRESS:case R.ARTICLE:case R.SEARCH:case R.SECTION:case R.SUMMARY:case R.FIELDSET:case R.BLOCKQUOTE:case R.FIGCAPTION:{qhe(e,t);break}case R.LI:case R.DD:case R.DT:{Khe(e,t);break}case R.BR:case R.IMG:case R.WBR:case R.AREA:case R.EMBED:case R.KEYGEN:{Y6(e,t);break}case R.HR:{ime(e,t);break}case R.RB:case R.RTC:{pme(e,t);break}case R.RT:case R.RP:{hme(e,t);break}case R.PRE:case R.LISTING:{Yhe(e,t);break}case R.XMP:{cme(e,t);break}case R.SVG:{gme(e,t);break}case R.HTML:{$he(e,t);break}case R.BASE:case R.LINK:case R.META:case R.STYLE:case R.TITLE:case R.SCRIPT:case R.BGSOUND:case R.BASEFONT:case R.TEMPLATE:{Ya(e,t);break}case R.BODY:{Ghe(e,t);break}case R.FORM:{Qhe(e,t);break}case R.NOBR:{tme(e,t);break}case R.MATH:{mme(e,t);break}case R.TABLE:{rme(e,t);break}case R.INPUT:{ome(e,t);break}case R.PARAM:case R.TRACK:case R.SOURCE:{ame(e,t);break}case R.IMAGE:{sme(e,t);break}case R.BUTTON:{Zhe(e,t);break}case R.APPLET:case R.OBJECT:case R.MARQUEE:{nme(e,t);break}case R.IFRAME:{ume(e,t);break}case R.SELECT:{dme(e,t);break}case R.OPTION:case R.OPTGROUP:{fme(e,t);break}case R.NOEMBED:case R.NOFRAMES:{BN(e,t);break}case R.FRAMESET:{Vhe(e,t);break}case R.TEXTAREA:{lme(e,t);break}case R.NOSCRIPT:{e.options.scriptingEnabled?BN(e,t):UN(e,t);break}case R.PLAINTEXT:{Xhe(e,t);break}case R.COL:case R.TH:case R.TD:case R.TR:case R.HEAD:case R.FRAME:case R.TBODY:case R.TFOOT:case R.THEAD:case R.CAPTION:case R.COLGROUP:break;default:UN(e,t)}}function yme(e,t){if(e.openElements.hasInScope(R.BODY)&&(e.insertionMode=ee.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function bme(e,t){e.openElements.hasInScope(R.BODY)&&(e.insertionMode=ee.AFTER_BODY,a8(e,t))}function vme(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Eme(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(R.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(R.FORM):n&&e.openElements.remove(n))}function xme(e){e.openElements.hasInButtonScope(R.P)||e._insertFakeElement(ue.P,R.P),e._closePElement()}function Sme(e){e.openElements.hasInListItemScope(R.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(R.LI),e.openElements.popUntilTagNamePopped(R.LI))}function Tme(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function Cme(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function _me(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function Ame(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(ue.BR,R.BR),e.openElements.pop(),e.framesetOk=!1}function K6(e,t){const n=t.tagName,r=t.tagID;for(let o=e.openElements.stackTop;o>0;o--){const a=e.openElements.items[o],i=e.openElements.tagIDs[o];if(r===i&&(r!==R.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=o&&e.openElements.shortenToLength(o);break}if(e._isSpecialElement(a,i))break}}function ev(e,t){switch(t.tagID){case R.A:case R.B:case R.I:case R.S:case R.U:case R.EM:case R.TT:case R.BIG:case R.CODE:case R.FONT:case R.NOBR:case R.SMALL:case R.STRIKE:case R.STRONG:{L_(e,t);break}case R.P:{xme(e);break}case R.DL:case R.UL:case R.OL:case R.DIR:case R.DIV:case R.NAV:case R.PRE:case R.MAIN:case R.MENU:case R.ASIDE:case R.BUTTON:case R.CENTER:case R.FIGURE:case R.FOOTER:case R.HEADER:case R.HGROUP:case R.DIALOG:case R.ADDRESS:case R.ARTICLE:case R.DETAILS:case R.SEARCH:case R.SECTION:case R.SUMMARY:case R.LISTING:case R.FIELDSET:case R.BLOCKQUOTE:case R.FIGCAPTION:{vme(e,t);break}case R.LI:{Sme(e);break}case R.DD:case R.DT:{Tme(e,t);break}case R.H1:case R.H2:case R.H3:case R.H4:case R.H5:case R.H6:{Cme(e);break}case R.BR:{Ame(e);break}case R.BODY:{yme(e,t);break}case R.HTML:{bme(e,t);break}case R.FORM:{Eme(e);break}case R.APPLET:case R.OBJECT:case R.MARQUEE:{_me(e,t);break}case R.TEMPLATE:{Hc(e,t);break}default:K6(e,t)}}function X6(e,t){e.tmplInsertionModeStack.length>0?o8(e,t):M_(e,t)}function kme(e,t){var n;t.tagID===R.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function wme(e,t){e._err(t,Ee.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Lx(e,t){if(e.openElements.currentTagId!==void 0&&V6.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=ee.IN_TABLE_TEXT,t.type){case Vt.CHARACTER:{J6(e,t);break}case Vt.WHITESPACE_CHARACTER:{Z6(e,t);break}}else hm(e,t)}function Rme(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Pe.HTML),e.insertionMode=ee.IN_CAPTION}function Dme(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Pe.HTML),e.insertionMode=ee.IN_COLUMN_GROUP}function Ime(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(ue.COLGROUP,R.COLGROUP),e.insertionMode=ee.IN_COLUMN_GROUP,F_(e,t)}function Ome(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Pe.HTML),e.insertionMode=ee.IN_TABLE_BODY}function Nme(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(ue.TBODY,R.TBODY),e.insertionMode=ee.IN_TABLE_BODY,tv(e,t)}function Pme(e,t){e.openElements.hasInTableScope(R.TABLE)&&(e.openElements.popUntilTagNamePopped(R.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function Lme(e,t){Q6(t)?e._appendElement(t,Pe.HTML):hm(e,t),t.ackSelfClosing=!0}function Mme(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Pe.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Sd(e,t){switch(t.tagID){case R.TD:case R.TH:case R.TR:{Nme(e,t);break}case R.STYLE:case R.SCRIPT:case R.TEMPLATE:{Ya(e,t);break}case R.COL:{Ime(e,t);break}case R.FORM:{Mme(e,t);break}case R.TABLE:{Pme(e,t);break}case R.TBODY:case R.TFOOT:case R.THEAD:{Ome(e,t);break}case R.INPUT:{Lme(e,t);break}case R.CAPTION:{Rme(e,t);break}case R.COLGROUP:{Dme(e,t);break}default:hm(e,t)}}function Ph(e,t){switch(t.tagID){case R.TABLE:{e.openElements.hasInTableScope(R.TABLE)&&(e.openElements.popUntilTagNamePopped(R.TABLE),e._resetInsertionMode());break}case R.TEMPLATE:{Hc(e,t);break}case R.BODY:case R.CAPTION:case R.COL:case R.COLGROUP:case R.HTML:case R.TBODY:case R.TD:case R.TFOOT:case R.TH:case R.THEAD:case R.TR:break;default:hm(e,t)}}function hm(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Jb(e,t),e.fosterParentingEnabled=n}function Z6(e,t){e.pendingCharacterTokens.push(t)}function J6(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function hp(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)hm(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const e8=new Set([R.CAPTION,R.COL,R.COLGROUP,R.TBODY,R.TD,R.TFOOT,R.TH,R.THEAD,R.TR]);function Fme(e,t){const n=t.tagID;e8.has(n)?e.openElements.hasInTableScope(R.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(R.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=ee.IN_TABLE,Sd(e,t)):oo(e,t)}function jme(e,t){const n=t.tagID;switch(n){case R.CAPTION:case R.TABLE:{e.openElements.hasInTableScope(R.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(R.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=ee.IN_TABLE,n===R.TABLE&&Ph(e,t));break}case R.BODY:case R.COL:case R.COLGROUP:case R.HTML:case R.TBODY:case R.TD:case R.TFOOT:case R.TH:case R.THEAD:case R.TR:break;default:ev(e,t)}}function F_(e,t){switch(t.tagID){case R.HTML:{oo(e,t);break}case R.COL:{e._appendElement(t,Pe.HTML),t.ackSelfClosing=!0;break}case R.TEMPLATE:{Ya(e,t);break}default:D0(e,t)}}function Bme(e,t){switch(t.tagID){case R.COLGROUP:{e.openElements.currentTagId===R.COLGROUP&&(e.openElements.pop(),e.insertionMode=ee.IN_TABLE);break}case R.TEMPLATE:{Hc(e,t);break}case R.COL:break;default:D0(e,t)}}function D0(e,t){e.openElements.currentTagId===R.COLGROUP&&(e.openElements.pop(),e.insertionMode=ee.IN_TABLE,e._processToken(t))}function tv(e,t){switch(t.tagID){case R.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Pe.HTML),e.insertionMode=ee.IN_ROW;break}case R.TH:case R.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(ue.TR,R.TR),e.insertionMode=ee.IN_ROW,nv(e,t);break}case R.CAPTION:case R.COL:case R.COLGROUP:case R.TBODY:case R.TFOOT:case R.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ee.IN_TABLE,Sd(e,t));break}default:Sd(e,t)}}function ST(e,t){const n=t.tagID;switch(t.tagID){case R.TBODY:case R.TFOOT:case R.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ee.IN_TABLE);break}case R.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ee.IN_TABLE,Ph(e,t));break}case R.BODY:case R.CAPTION:case R.COL:case R.COLGROUP:case R.HTML:case R.TD:case R.TH:case R.TR:break;default:Ph(e,t)}}function nv(e,t){switch(t.tagID){case R.TH:case R.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,Pe.HTML),e.insertionMode=ee.IN_CELL,e.activeFormattingElements.insertMarker();break}case R.CAPTION:case R.COL:case R.COLGROUP:case R.TBODY:case R.TFOOT:case R.THEAD:case R.TR:{e.openElements.hasInTableScope(R.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ee.IN_TABLE_BODY,tv(e,t));break}default:Sd(e,t)}}function t8(e,t){switch(t.tagID){case R.TR:{e.openElements.hasInTableScope(R.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ee.IN_TABLE_BODY);break}case R.TABLE:{e.openElements.hasInTableScope(R.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ee.IN_TABLE_BODY,ST(e,t));break}case R.TBODY:case R.TFOOT:case R.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(R.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ee.IN_TABLE_BODY,ST(e,t));break}case R.BODY:case R.CAPTION:case R.COL:case R.COLGROUP:case R.HTML:case R.TD:case R.TH:break;default:Ph(e,t)}}function Ume(e,t){const n=t.tagID;e8.has(n)?(e.openElements.hasInTableScope(R.TD)||e.openElements.hasInTableScope(R.TH))&&(e._closeTableCell(),nv(e,t)):oo(e,t)}function zme(e,t){const n=t.tagID;switch(n){case R.TD:case R.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=ee.IN_ROW);break}case R.TABLE:case R.TBODY:case R.TFOOT:case R.THEAD:case R.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),t8(e,t));break}case R.BODY:case R.CAPTION:case R.COL:case R.COLGROUP:case R.HTML:break;default:ev(e,t)}}function n8(e,t){switch(t.tagID){case R.HTML:{oo(e,t);break}case R.OPTION:{e.openElements.currentTagId===R.OPTION&&e.openElements.pop(),e._insertElement(t,Pe.HTML);break}case R.OPTGROUP:{e.openElements.currentTagId===R.OPTION&&e.openElements.pop(),e.openElements.currentTagId===R.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Pe.HTML);break}case R.HR:{e.openElements.currentTagId===R.OPTION&&e.openElements.pop(),e.openElements.currentTagId===R.OPTGROUP&&e.openElements.pop(),e._appendElement(t,Pe.HTML),t.ackSelfClosing=!0;break}case R.INPUT:case R.KEYGEN:case R.TEXTAREA:case R.SELECT:{e.openElements.hasInSelectScope(R.SELECT)&&(e.openElements.popUntilTagNamePopped(R.SELECT),e._resetInsertionMode(),t.tagID!==R.SELECT&&e._processStartTag(t));break}case R.SCRIPT:case R.TEMPLATE:{Ya(e,t);break}}}function r8(e,t){switch(t.tagID){case R.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===R.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===R.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===R.OPTGROUP&&e.openElements.pop();break}case R.OPTION:{e.openElements.currentTagId===R.OPTION&&e.openElements.pop();break}case R.SELECT:{e.openElements.hasInSelectScope(R.SELECT)&&(e.openElements.popUntilTagNamePopped(R.SELECT),e._resetInsertionMode());break}case R.TEMPLATE:{Hc(e,t);break}}}function Hme(e,t){const n=t.tagID;n===R.CAPTION||n===R.TABLE||n===R.TBODY||n===R.TFOOT||n===R.THEAD||n===R.TR||n===R.TD||n===R.TH?(e.openElements.popUntilTagNamePopped(R.SELECT),e._resetInsertionMode(),e._processStartTag(t)):n8(e,t)}function $me(e,t){const n=t.tagID;n===R.CAPTION||n===R.TABLE||n===R.TBODY||n===R.TFOOT||n===R.THEAD||n===R.TR||n===R.TD||n===R.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(R.SELECT),e._resetInsertionMode(),e.onEndTag(t)):r8(e,t)}function Gme(e,t){switch(t.tagID){case R.BASE:case R.BASEFONT:case R.BGSOUND:case R.LINK:case R.META:case R.NOFRAMES:case R.SCRIPT:case R.STYLE:case R.TEMPLATE:case R.TITLE:{Ya(e,t);break}case R.CAPTION:case R.COLGROUP:case R.TBODY:case R.TFOOT:case R.THEAD:{e.tmplInsertionModeStack[0]=ee.IN_TABLE,e.insertionMode=ee.IN_TABLE,Sd(e,t);break}case R.COL:{e.tmplInsertionModeStack[0]=ee.IN_COLUMN_GROUP,e.insertionMode=ee.IN_COLUMN_GROUP,F_(e,t);break}case R.TR:{e.tmplInsertionModeStack[0]=ee.IN_TABLE_BODY,e.insertionMode=ee.IN_TABLE_BODY,tv(e,t);break}case R.TD:case R.TH:{e.tmplInsertionModeStack[0]=ee.IN_ROW,e.insertionMode=ee.IN_ROW,nv(e,t);break}default:e.tmplInsertionModeStack[0]=ee.IN_BODY,e.insertionMode=ee.IN_BODY,oo(e,t)}}function Vme(e,t){t.tagID===R.TEMPLATE&&Hc(e,t)}function o8(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(R.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):M_(e,t)}function qme(e,t){t.tagID===R.HTML?oo(e,t):I0(e,t)}function a8(e,t){var n;if(t.tagID===R.HTML){if(e.fragmentContext||(e.insertionMode=ee.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===R.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else I0(e,t)}function I0(e,t){e.insertionMode=ee.IN_BODY,Jb(e,t)}function Wme(e,t){switch(t.tagID){case R.HTML:{oo(e,t);break}case R.FRAMESET:{e._insertElement(t,Pe.HTML);break}case R.FRAME:{e._appendElement(t,Pe.HTML),t.ackSelfClosing=!0;break}case R.NOFRAMES:{Ya(e,t);break}}}function Yme(e,t){t.tagID===R.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==R.FRAMESET&&(e.insertionMode=ee.AFTER_FRAMESET))}function Qme(e,t){switch(t.tagID){case R.HTML:{oo(e,t);break}case R.NOFRAMES:{Ya(e,t);break}}}function Kme(e,t){t.tagID===R.HTML&&(e.insertionMode=ee.AFTER_AFTER_FRAMESET)}function Xme(e,t){t.tagID===R.HTML?oo(e,t):Oy(e,t)}function Oy(e,t){e.insertionMode=ee.IN_BODY,Jb(e,t)}function Zme(e,t){switch(t.tagID){case R.HTML:{oo(e,t);break}case R.NOFRAMES:{Ya(e,t);break}}}function Jme(e,t){t.chars=Xn,e._insertCharacters(t)}function ege(e,t){e._insertCharacters(t),e.framesetOk=!1}function i8(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Pe.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function tge(e,t){if(ghe(t))i8(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Pe.MATHML?$6(t):r===Pe.SVG&&(yhe(t),G6(t)),P_(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function nge(e,t){if(t.tagID===R.P||t.tagID===R.BR){i8(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===Pe.HTML){e._endTagOutsideForeignContent(t);break}const o=e.treeAdapter.getTagName(r);if(o.toLowerCase()===t.tagName){t.tagName=o,e.openElements.shortenToLength(n);break}}}ue.AREA,ue.BASE,ue.BASEFONT,ue.BGSOUND,ue.BR,ue.COL,ue.EMBED,ue.FRAME,ue.HR,ue.IMG,ue.INPUT,ue.KEYGEN,ue.LINK,ue.META,ue.PARAM,ue.SOURCE,ue.TRACK,ue.WBR;const rge=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,oge=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),zN={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function s8(e,t){const n=hge(e),r=zb("type",{handlers:{root:age,element:ige,text:sge,comment:c8,doctype:lge,raw:uge},unknown:dge}),o={parser:n?new jN(zN):jN.getFragmentParser(void 0,zN),handle(l){r(l,o)},stitches:!1,options:t||{}};r(e,o),Gd(o,Ri());const a=n?o.parser.document:o.parser.getFragment(),i=ipe(a,{file:o.options.file});return o.stitches&&Mo(i,"comment",function(l,u,d){const p=l;if(p.value.stitch&&d&&u!==void 0){const h=d.children;return h[u]=p.value.stitch,u}}),i.type==="root"&&i.children.length===1&&i.children[0].type===e.type?i.children[0]:i}function l8(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function age(e,t){l8(e.children,t)}function ige(e,t){fge(e,t),l8(e.children,t),pge(e,t)}function sge(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:Vt.CHARACTER,chars:e.value,location:mm(e)};Gd(t,Ri(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function lge(e,t){const n={type:Vt.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:mm(e)};Gd(t,Ri(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function cge(e,t){t.stitches=!0;const n=mge(e);if("children"in e&&"children"in n){const r=s8({type:"root",children:e.children},t.options);n.children=r.children}c8({type:"comment",value:{stitch:n}},t)}function c8(e,t){const n=e.value,r={type:Vt.COMMENT,data:n,location:mm(e)};Gd(t,Ri(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function uge(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,u8(t,Ri(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(rge,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function dge(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))cge(n,t);else{let r="";throw oge.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function Gd(e,t){u8(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=pr.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function u8(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function fge(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===pr.PLAINTEXT)return;Gd(t,Ri(e));const r=t.parser.openElements.current;let o="namespaceURI"in r?r.namespaceURI:yc.html;o===yc.html&&n==="svg"&&(o=yc.svg);const a=xpe({...e,children:[]},{space:o===yc.svg?"svg":"html"}),i={type:Vt.START_TAG,tagName:n,tagID:$d(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:mm(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function pge(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&JL.includes(n)||t.parser.tokenizer.state===pr.PLAINTEXT)return;Gd(t,Wb(e));const r={type:Vt.END_TAG,tagName:n,tagID:$d(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:mm(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===pr.RCDATA||t.parser.tokenizer.state===pr.RAWTEXT||t.parser.tokenizer.state===pr.SCRIPT_DATA)&&(t.parser.tokenizer.state=pr.DATA)}function hge(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function mm(e){const t=Ri(e)||{line:void 0,column:void 0,offset:void 0},n=Wb(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function mge(e){return"children"in e?Lc({...e,children:[]}):Lc(e)}function gge(e){return function(t,n){return s8(t,{...e,file:n})}}const yge=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,bge=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,vge=({legacyTitle:e=!1,tagName:t="div"}={})=>n=>{Mo(n,"blockquote",(r,o,a)=>{let i="",l="",u=!0,d=r.children.map(p=>{if(u&&p.type==="paragraph"){const h=p.children[0],y=h.type==="text"?h.value:"",g=e?bge:yge,b=y.match(g);if(b&&(u=!1,i=b[1].toLocaleLowerCase(),l=e&&b[2]||i.toLocaleUpperCase(),y.includes(`
|
|
295
|
-
`)&&(p.children[0]={type:"text",value:y.replace(g,"").replace(/^\n+/,"")}),!y.includes(`
|
|
296
|
-
`))){const S=[];p.children.forEach((T,E)=>{E!=0&&(E==1&&T.type==="break"||S.push(T))}),p.children=[...S]}}return p});i&&(r.data={hName:t,hProperties:{class:`markdown-alert markdown-alert-${i}`,dir:"auto"}},d.unshift({type:"paragraph",children:[Ege(i),{type:"text",value:l.replace(/^\//,"")}],data:{hProperties:{class:"markdown-alert-title",dir:"auto"}}})),r.children=[...d]})};function Ege(e){let t=xge[e]??"";return{type:"emphasis",data:{hName:"svg",hProperties:{class:"octicon",viewBox:"0 0 16 16",width:"16",height:"16",ariaHidden:"true"}},children:[{type:"emphasis",data:{hName:"path",hProperties:{d:t}},children:[]}]}}const xge={note:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z",tip:"M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z",important:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",warning:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",caution:"M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"};function Sge(e,t){if(typeof document>"u")return;const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style={position:"absolute",left:"-9999px"},document.body.appendChild(n);const r=document.getSelection().rangeCount>0?document.getSelection().getRangeAt(0):!1;n.select();let o=!1;try{o=!!document.execCommand("copy")}catch{o=!1}document.body.removeChild(n),r&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r)),t&&t(o)}function d8(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?d8(t.parentElement):null}function Tge(e){var t=n=>{var r=d8(n.target);r&&(r.classList.add("active"),Sge(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};_.useEffect(()=>{var n,r;return(n=e.current)==null||n.removeEventListener("click",t,!1),(r=e.current)==null||r.addEventListener("click",t,!1),()=>{var o;(o=e.current)==null||o.removeEventListener("click",t,!1)}},[e])}var Cge=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],_ge=e=>e;const Age=Fe.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:o,style:a,disableCopy:i=!1,skipHtml:l=!0,onScroll:u,onMouseOver:d,pluginsFilter:p,wrapperElement:h={},warpperElement:y={},urlTransform:g}=e,b=Kr(e,Cge),S=Fe.useRef(null);_.useImperativeHandle(t,()=>Le({},e,{mdp:S}),[S,e]);var T=(n||"")+" "+(r||"");Tge(S);var E=[...b.rehypePlugins||[]],A={allowElement:(I,O,j)=>b.allowElement?b.allowElement(I,O,j):/^[A-Za-z0-9]+$/.test(I.tagName)};l||E.push(gge);var C=[vge,...b.remarkPlugins||[],Qfe],D=Le({},y,h);return v.jsx("div",Le({ref:S,onScroll:u,onMouseOver:d},D,{className:T,style:a,children:v.jsx(Bue,Le({},A,b,{skipHtml:!l,urlTransform:g||_ge,rehypePlugins:p?p("rehype",E):E,remarkPlugins:p?p("remark",C):C,children:o||""}))}))});var Ny={},TT={};function kge(e,t){for(var n=t,r=0;r<e.length;r++){var o=r===e.length-1,a=e.charAt(r),i=n[a]||(n[a]={chars:{}});o&&(i.self=e),n=i.chars}}function HN(e){if(e.length===0)return Ny;for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];kge(o,t)}return t}function wge(e){if(e.length===0)return TT;for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];t[o]=!0}return t}var ty={},$N={type:"String",optional:!0};function Rge(e){var t={type:"NoArgument",optional:!1};function n(i){if(t.type&&t.type!==i&&t.type!=="NoArgument")throw new Error('Conflicting pseudo-class argument type: "'.concat(t.type,'" vs "').concat(i,'".'));t.type=i}for(var r=0,o=e;r<o.length;r++){var a=o[r];a==="NoArgument"&&(t.optional=!0),a==="Formula"&&n("Formula"),a==="FormulaOfSelector"&&(n("Formula"),t.ofSelector=!0),a==="String"&&n("String"),a==="Selector"&&n("Selector")}return t}function Dge(e){for(var t={},n=0,r=Object.keys(e);n<r.length;n++){var o=r[n],a=e[o];if(a)for(var i=0,l=a;i<l.length;i++){var u=l[i];(t[u]||(t[u]=[])).push(o)}}return t}function GN(e){for(var t=Dge(e),n={},r=0,o=Object.keys(t);r<o.length;r++){var a=o[r],i=t[a];i&&(n[a]=Rge(i))}return n}var Td=function(){return Td=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Td.apply(this,arguments)},Ige={},CT={wildcard:!0};function Oge(e){return e?typeof e=="boolean"?CT:e:Ige}function Nge(e,t){return function(n,r){return t(e(n),e(r))}}function Pge(e){return function(t,n){var r=e(t,n);if(!r)throw new Error("Syntax definition cannot be null or undefined.");return r}}function VN(e,t){return function(n,r){return r===!0?e:t(n===!0?e:n,r)}}function Uu(e){return function(t,n){if(!n||!t)return n;if(typeof n!="object"||n===null)throw new Error("Unexpected syntax definition extension type: ".concat(n,"."));for(var r=Td({},t),o=0,a=Object.entries(n);o<a.length;o++){var i=a[o],l=i[0],u=i[1];if(l!=="latest"){var d=e[l];r[l]=d(t[l],u)}}return r}}function es(e,t){return t!==void 0?t:e}function ny(e,t){return t?e?e.concat(t):t:e}function qN(e,t){if(!t)return e;if(!e)return t;for(var n=Td({},e),r=0,o=Object.entries(t);r<o.length;r++){var a=o[r],i=a[0],l=a[1];if(!l){delete n[i];continue}var u=e[i];if(!u){n[i]=l;continue}n[i]=u.concat(l)}return n}var Tc=Pge(Uu({baseSyntax:es,modules:ny,tag:VN(CT,Uu({wildcard:es})),ids:es,classNames:es,namespace:VN(CT,Uu({wildcard:es})),combinators:ny,attributes:Uu({operators:ny,caseSensitivityModifiers:ny,unknownCaseSensitivityModifiers:es}),pseudoClasses:Uu({unknown:es,definitions:qN}),pseudoElements:Uu({unknown:es,notation:es,definitions:Nge(function(e){return Array.isArray(e)?{NoArgument:e}:e},qN)})})),f8={tag:{},ids:!0,classNames:!0,combinators:[],pseudoElements:{unknown:"reject",notation:"singleColon",definitions:["first-letter","first-line"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["link","visited","active"]}}},p8=Tc(f8,{tag:{wildcard:!0},combinators:[">","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),_T=Tc(p8,{namespace:{wildcard:!0},combinators:["~"],attributes:{operators:["^=","$=","*="]},pseudoElements:{notation:"both"},pseudoClasses:{definitions:{NoArgument:["root","last-child","first-of-type","last-of-type","only-child","only-of-type","empty","target","enabled","disabled","checked","indeterminate"],Formula:["nth-child","nth-last-child","nth-of-type","nth-last-of-type"],Selector:["not"]}}}),h8=Tc(_T,{combinators:["||"],attributes:{caseSensitivityModifiers:["i","I","s","S"]},pseudoClasses:{definitions:{NoArgument:["any-link","local-link","target-within","scope","current","past","future","focus-within","focus-visible","read-write","read-only","placeholder-shown","default","valid","invalid","in-range","out-of-range","required","optional","blank","user-invalid","playing","paused","autofill","modal","fullscreen","picture-in-picture","defined","loading","popover-open"],Formula:["nth-col","nth-last-col"],String:["dir"],FormulaOfSelector:["nth-child","nth-last-child"],Selector:["current","is","where","has","state"]}},pseudoElements:{definitions:{NoArgument:["marker"]}}}),O0={"css-position-1":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute"]}}},"css-position-2":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute","fixed"]}}},"css-position-3":{latest:!1,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static"]}}},"css-position-4":{latest:!0,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static","initial"]}}},"css-scoping-1":{latest:!0,pseudoClasses:{definitions:{NoArgument:["host","host-context"],Selector:["host","host-context"]}},pseudoElements:{definitions:{Selector:["slotted"]}}},"css-pseudo-4":{latest:!0,pseudoElements:{definitions:{NoArgument:["marker","selection","target-text","search-text","spelling-error","grammar-error","backdrop","file-selector-button","prefix","postfix","placeholder","details-content"],String:["highlight"]}}},"css-shadow-parts-1":{latest:!0,pseudoElements:{definitions:{String:["part"]}}}},m8=Td(Td({},h8),{modules:Object.entries(O0).filter(function(e){var t=e[1].latest;return t}).map(function(e){var t=e[0];return t})}),Lge=Tc(m8,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),AT={css1:f8,css2:p8,css3:_T,"selectors-3":_T,"selectors-4":h8,latest:m8,progressive:Lge};function Mge(){for(var e={pseudoClasses:{},pseudoElements:{}},t=["css1","css2","css3","selectors-3","selectors-4"],n=0,r=t;n<r.length;n++){var o=r[n],a=AT[o];if(a.pseudoClasses&&typeof a.pseudoClasses=="object"){var i=a.pseudoClasses.definitions;if(i)for(var l=0,u=Object.entries(i);l<u.length;l++)for(var d=u[l],p=d[1],h=0,y=p;h<y.length;h++){var g=y[h];e.pseudoClasses[g]||(e.pseudoClasses[g]=[]),e.pseudoClasses[g].includes(o)||e.pseudoClasses[g].push(o)}}if(a.pseudoElements&&typeof a.pseudoElements=="object"){var i=a.pseudoElements.definitions;if(i)if(Array.isArray(i))for(var b=0,S=i;b<S.length;b++){var T=S[b];e.pseudoElements[T]||(e.pseudoElements[T]=[]),e.pseudoElements[T].includes(o)||e.pseudoElements[T].push(o)}else for(var E=0,A=Object.values(i);E<A.length;E++)for(var p=A[E],C=0,D=p;C<D.length;C++){var I=D[C];e.pseudoElements[I]||(e.pseudoElements[I]=[]),e.pseudoElements[I].includes(o)||e.pseudoElements[I].push(o)}}}for(var O=0,j=Object.entries(O0);O<j.length;O++){var $=j[O],z=$[0],L=$[1];if(L.pseudoClasses&&typeof L.pseudoClasses=="object"){var i=L.pseudoClasses.definitions;if(i)for(var H=0,k=Object.values(i);H<k.length;H++)for(var p=k[H],F=0,B=p;F<B.length;F++){var G=B[F];e.pseudoClasses[G]||(e.pseudoClasses[G]=[]),e.pseudoClasses[G].includes(z)||e.pseudoClasses[G].push(z)}}if(L.pseudoElements&&typeof L.pseudoElements=="object"){var i=L.pseudoElements.definitions;if(i)if(Array.isArray(i))for(var U=0,Q=i;U<Q.length;U++){var Y=Q[U];e.pseudoElements[Y]||(e.pseudoElements[Y]=[]),e.pseudoElements[Y].includes(z)||e.pseudoElements[Y].push(z)}else for(var oe=0,N=Object.values(i);oe<N.length;oe++)for(var p=N[oe],K=0,X=p;K<X.length;K++){var P=X[K];e.pseudoElements[P]||(e.pseudoElements[P]=[]),e.pseudoElements[P].includes(z)||e.pseudoElements[P].push(z)}}}return e}var WN=Mge();function mp(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function YN(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function gp(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var Fge={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},jge={'"':!0,"'":!0},Mx={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},Bge=6,Fx="css-selector-parser parse error: ";function Uge(e){e===void 0&&(e={});var t=e.syntax,n=t===void 0?"latest":t,r=e.substitutes,o=e.strict,a=o===void 0?!0:o,i=e.modules,l=typeof n=="object"?n:AT[n];if(l.baseSyntax&&(l=Tc(AT[l.baseSyntax],l)),l.modules&&l.modules.length>0)for(var u=0,d=l.modules;u<d.length;u++){var p=d[u],h=O0[p];h&&(l=Tc(h,l))}if(i&&i.length>0)for(var y=0,g=i;y<g.length;y++){var b=g[y],h=O0[b];h&&(l=Tc(h,l))}var S=l.tag?[!0,!!Oge(l.tag).wildcard]:[!1,!1],T=S[0],E=S[1],A=!!l.ids,C=!!l.classNames,D=!!l.namespace,I=l.namespace&&(l.namespace===!0||l.namespace.wildcard===!0);if(D&&!T)throw new Error("".concat(Fx,"Namespaces cannot be enabled while tags are disabled."));var O=!!r,j=l.combinators?HN(l.combinators):Ny,$=l.attributes?[!0,l.attributes.operators?HN(l.attributes.operators):Ny,l.attributes.caseSensitivityModifiers?wge(l.attributes.caseSensitivityModifiers):TT,l.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,Ny,TT,!1],z=$[0],L=$[1],H=$[2],k=$[3],F=k||Object.keys(H).length>0,B=l.pseudoClasses?[!0,l.pseudoClasses.definitions?GN(l.pseudoClasses.definitions):ty,l.pseudoClasses.unknown==="accept"]:[!1,ty,!1],G=B[0],U=B[1],Q=B[2],Y=l.pseudoElements?[!0,l.pseudoElements.notation==="singleColon"||l.pseudoElements.notation==="both",!l.pseudoElements.notation||l.pseudoElements.notation==="doubleColon"||l.pseudoElements.notation==="both",l.pseudoElements.definitions?GN(Array.isArray(l.pseudoElements.definitions)?{NoArgument:l.pseudoElements.definitions}:l.pseudoElements.definitions):ty,l.pseudoElements.unknown==="accept"]:[!1,!1,!1,ty,!1],oe=Y[0],N=Y[1],K=Y[2],X=Y[3],P=Y[4],J="",se=J.length,ne=0,be="",fe=function(xe){return be===xe},De=function(){return fe("*")||mp(be)},Ce=function(xe){ne=xe,be=J.charAt(ne)},Se=function(){ne++,be=J.charAt(ne)},ze=function(){var xe=be;return ne++,be=J.charAt(ne),xe};function Ne(xe){var Te=Math.min(se-1,ne),mt=new Error("".concat(Fx).concat(xe," Pos: ").concat(Te,"."));throw mt.position=Te,mt.name="ParserError",mt}function _e(xe,Te){if(!xe)return Ne(Te)}var Ct=function(){_e(ne<se,"Unexpected end of input.")},At=function(){return ne>=se},qe=function(xe){_e(ne<se,'Expected "'.concat(xe,'" but end of input reached.')),_e(be===xe,'Expected "'.concat(xe,'" but "').concat(be,'" found.')),ne++,be=J.charAt(ne)};function Rt(xe){var Te=ot(xe,ne);if(Te)return ne+=Te.length,be=J.charAt(ne),Te}function ot(xe,Te){var mt=J.charAt(Te),lt=xe[mt];if(lt){var Zn=ot(lt.chars,Te+1);if(Zn)return Zn;if(lt.self)return lt.self}}function tt(){for(var xe=ze(),Te=1;gp(be)&&Te<Bge;)xe+=ze(),Te++;return Bn(),String.fromCharCode(parseInt(xe,16))}function je(xe){var Te="";for(qe(xe);ne<se;){if(fe(xe))return Se(),Te;fe("\\")?(Se(),fe(xe)?(Te+=xe,Se()):be===`
|
|
297
|
-
`||be==="\f"?Se():be==="\r"?(Se(),fe(`
|
|
298
|
-
`)&&Se()):gp(be)?Te+=tt():(Te+=be,Se())):(Te+=be,Se())}return Te}function Be(){if(!mp(be))return null;for(var xe="";fe("-");)xe+=be,Se();for(xe==="-"&&!YN(be)&&!fe("\\")&&Ne("Identifiers cannot consist of a single hyphen."),a&&xe.length>=2&&Ne("Identifiers cannot start with two hyphens with strict mode on."),Mx[be]&&Ne("Identifiers cannot start with hyphens followed by digits.");ne<se;)if(YN(be))xe+=ze();else if(fe("\\"))Se(),Ct(),gp(be)?xe+=tt():xe+=ze();else break;return xe}function Ut(){for(var xe="";ne<se&&!fe(")");)if(fe("\\")){if(Se(),At()&&!a)return(xe+"\\").trim();Ct(),gp(be)?xe+=tt():xe+=ze()}else xe+=ze();return xe.trim()}function Bn(){if(be===" "||be===" "||be==="\f"||be===`
|
|
299
|
-
`){Se();return}be==="\r"&&Se(),be===`
|
|
300
|
-
`&&Se()}function Ot(){for(;Fge[be];)Se()}function de(xe){xe===void 0&&(xe=!1),Ot();for(var Te=[Xe(xe)];fe(",");)Se(),Ot(),Te.push(Xe(xe));return{type:"Selector",rules:Te}}function ye(){qe("["),Ot();var xe;if(fe("|")){_e(D,"Namespaces are not enabled."),Se();var Te=Be();_e(Te,"Expected attribute name."),xe={type:"Attribute",name:Te,namespace:{type:"NoNamespace"}}}else if(fe("*")){_e(D,"Namespaces are not enabled."),_e(I,"Wildcard namespace is not enabled."),Se(),qe("|");var mt=Be();_e(mt,"Expected attribute name."),xe={type:"Attribute",name:mt,namespace:{type:"WildcardNamespace"}}}else{var lt=Be();if(_e(lt,"Expected attribute name."),xe={type:"Attribute",name:lt},fe("|")){var Zn=ne;if(Se(),mp(be)){_e(D,"Namespaces are not enabled.");var ao=Be();_e(ao,"Expected attribute name."),xe={type:"Attribute",name:ao,namespace:{type:"NamespaceName",name:lt}}}else Ce(Zn)}}if(_e(xe.name,"Expected attribute name."),Ot(),At()&&!a)return xe;if(fe("]"))Se();else{if(xe.operator=Rt(L),_e(xe.operator,"Expected a valid attribute selector operator."),Ot(),Ct(),jge[be])xe.value={type:"String",value:je(be)};else if(O&&fe("$")){Se();var Br=Be();_e(Br,"Expected substitute name."),xe.value={type:"Substitution",name:Br}}else{var Rr=Be();_e(Rr,"Expected attribute value."),xe.value={type:"String",value:Rr}}if(Ot(),At()&&!a)return xe;if(!fe("]")){var Dr=Be();if(_e(Dr,"Expected end of attribute selector."),xe.caseSensitivityModifier=Dr,_e(F,"Attribute case sensitivity modifiers are not enabled."),_e(k||H[xe.caseSensitivityModifier],"Unknown attribute case sensitivity modifier."),Ot(),At()&&!a)return xe}qe("]")}return xe}function We(){for(var xe="";Mx[be];)xe+=ze();return _e(xe!=="","Formula parse error."),parseInt(xe)}var Ke=function(){return fe("-")||fe("+")||Mx[be]};function et(){if(fe("e")||fe("o")){var xe=Be();if(xe==="even")return Ot(),[2,0];if(xe==="odd")return Ot(),[2,1]}var Te=null,mt=1;if(fe("-")&&(Se(),mt=-1),Ke()&&(fe("+")&&Se(),Te=We(),!fe("\\")&&!fe("n")))return[0,Te*mt];Te===null&&(Te=1),Te*=mt;var lt;if(fe("\\")?(Se(),gp(be)?lt=tt():lt=ze()):lt=ze(),_e(lt==="n",'Formula parse error: expected "n".'),Ot(),fe("+")||fe("-")){var Zn=fe("+")?1:-1;return Se(),Ot(),[Te,Zn*We()]}else return[Te,0]}function St(xe,Te,mt){var lt;if(fe("(")){if(Se(),Ot(),O&&fe("$")){Se();var Zn=Be();_e(Zn,"Expected substitute name."),lt={type:"Substitution",name:Zn}}else if(mt.type==="String")lt={type:"String",value:Ut()},_e(lt.value,"Expected ".concat(Te," argument value."));else if(mt.type==="Selector")lt=de(!0);else if(mt.type==="Formula"){var ao=et(),Br=ao[0],Rr=ao[1];if(lt={type:"Formula",a:Br,b:Rr},mt.ofSelector&&(Ot(),fe("o")||fe("\\"))){var Dr=Be();_e(Dr==="of","Formula of selector parse error."),Ot(),lt={type:"FormulaOfSelector",a:Br,b:Rr,selector:Xe()}}}else return Ne("Invalid ".concat(Te," signature."));if(Ot(),At()&&!a)return lt;qe(")")}else _e(mt.optional,"Argument is required for ".concat(Te,' "').concat(xe,'".'));return lt}function En(){if(fe("*"))return _e(E,"Wildcard tag name is not enabled."),Se(),{type:"WildcardTag"};if(mp(be)){_e(T,"Tag names are not enabled.");var xe=Be();return _e(xe,"Expected tag name."),{type:"TagName",name:xe}}else return Ne("Expected tag name.")}function on(){if(fe("*")){var xe=ne;if(Se(),!fe("|")||(Se(),!De()))return Ce(xe),En();_e(D,"Namespaces are not enabled."),_e(I,"Wildcard namespace is not enabled.");var Te=En();return Te.namespace={type:"WildcardNamespace"},Te}else if(fe("|")){_e(D,"Namespaces are not enabled."),Se();var Te=En();return Te.namespace={type:"NoNamespace"},Te}else if(mp(be)){var mt=Be();if(_e(mt,"Expected tag name."),!fe("|"))return _e(T,"Tag names are not enabled."),{type:"TagName",name:mt};var xe=ne;if(Se(),!De())return Ce(xe),{type:"TagName",name:mt};_e(D,"Namespaces are not enabled.");var Te=En();return Te.namespace={type:"NamespaceName",name:mt},Te}else return Ne("Expected tag name.")}function Xe(xe){var Te,mt;xe===void 0&&(xe=!1);var lt={type:"Rule",items:[]};if(xe){var Zn=Rt(j);Zn&&(lt.combinator=Zn,Ot())}for(;ne<se;)if(De())_e(lt.items.length===0,"Unexpected tag/namespace start."),lt.items.push(on());else if(fe("|")){var ao=ne;if(Se(),De())_e(lt.items.length===0,"Unexpected tag/namespace start."),Ce(ao),lt.items.push(on());else{Ce(ao);break}}else if(fe(".")){_e(C,"Class names are not enabled."),Se();var Br=Be();_e(Br,"Expected class name."),lt.items.push({type:"ClassName",name:Br})}else if(fe("#")){_e(A,"IDs are not enabled."),Se();var Rr=Be();_e(Rr,"Expected ID name."),lt.items.push({type:"Id",name:Rr})}else if(fe("["))_e(z,"Attributes are not enabled."),lt.items.push(ye());else if(fe(":")){var Dr=!1,ra=!1;Se(),fe(":")&&(_e(oe,"Pseudo elements are not enabled."),_e(K,"Pseudo elements double colon notation is not enabled."),Dr=!0,Se());var $n=Be();if(_e(Dr||$n,"Expected pseudo-class name."),_e(!Dr||$n,"Expected pseudo-element name."),_e($n,"Expected pseudo-class name."),!(!Dr||P||Object.prototype.hasOwnProperty.call(X,$n))){var io=WN.pseudoElements[$n],bt='Unknown pseudo-element "'.concat($n,'"');io&&io.length>0&&(bt+=". It is defined in: ".concat(io.join(", "))),Ne(bt+".")}if(ra=oe&&(Dr||!Dr&&N&&Object.prototype.hasOwnProperty.call(X,$n)),ra){var re=(Te=X[$n])!==null&&Te!==void 0?Te:P&&$N,le={type:"PseudoElement",name:$n},me=St($n,"pseudo-element",re);me&&(_e(me.type!=="Formula"&&me.type!=="FormulaOfSelector","Pseudo-elements cannot have formula argument."),le.argument=me),lt.items.push(le)}else{_e(G,"Pseudo-classes are not enabled.");var re=(mt=U[$n])!==null&&mt!==void 0?mt:Q&&$N;if(!re){var io=WN.pseudoClasses[$n],bt='Unknown pseudo-class: "'.concat($n,'"');io&&io.length>0&&(bt+=". It is defined in: ".concat(io.join(", "))),Ne(bt+".")}var me=St($n,"pseudo-class",re),Oe={type:"PseudoClass",name:$n};me&&(Oe.argument=me),lt.items.push(Oe)}}else break;if(lt.items.length===0)return At()?Ne("Expected rule but end of input reached."):Ne('Expected rule but "'.concat(be,'" found.'));if(Ot(),!At()&&!fe(",")&&!fe(")")){var Zn=Rt(j);Ot(),lt.nestedRule=Xe(),lt.nestedRule.combinator=Zn}return lt}return function(xe){if(typeof xe!="string")throw new Error("".concat(Fx,"Expected string input."));return J=xe,se=J.length,ne=0,be=J.charAt(0),de()}}const zge=Uge({syntax:"selectors-4"});function Hge(e){if(typeof e!="string")throw new TypeError("Expected `string` as selector, not `"+e+"`");return zge(e)}const g8="֑-߿יִ-﷽ﹰ-ﻼ",y8="A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--",$ge=new RegExp("^[^"+y8+"]*["+g8+"]"),Gge=new RegExp("^[^"+g8+"]*["+y8+"]");function Vge(e){const t=String(e||"");return $ge.test(t)?"rtl":Gge.test(t)?"ltr":"neutral"}function b8(e){return"children"in e?v8(e):"value"in e?e.value:""}function qge(e){return e.type==="text"?e.value:"children"in e?v8(e):""}function v8(e){let t=-1;const n=[];for(;++t<e.children.length;)n[t]=qge(e.children[t]);return n.join("")}function Wge(e,t){const n=e.schema,r=e.language,o=e.direction,a=e.editableOrEditingHost;let i;if(t.type==="element"){const d=t.properties.xmlLang||t.properties.lang,p=t.properties.type||"text",h=QN(t);d!=null&&(e.language=String(d)),n&&n.space==="html"?(t.properties.contentEditable==="true"&&(e.editableOrEditingHost=!0),t.tagName==="svg"&&(e.schema=Es),h==="rtl"?i=h:h==="ltr"||h!=="auto"&&t.tagName==="html"||h!=="auto"&&t.tagName==="input"&&p==="tel"?i="ltr":(h==="auto"||t.tagName==="bdi")&&(t.tagName==="textarea"?i=jx(b8(t)):t.tagName==="input"&&(p==="email"||p==="search"||p==="tel"||p==="text")?i=t.properties.value?jx(String(t.properties.value)):"ltr":Mo(t,u)),i&&(e.direction=i)):e.editableOrEditingHost&&(e.editableOrEditingHost=!1)}return l;function l(){e.schema=n,e.language=r,e.direction=o,e.editableOrEditingHost=a}function u(d){if(d.type==="text")return i=jx(d.value),i?k0:void 0;if(d!==t&&d.type==="element"&&(d.tagName==="bdi"||d.tagName==="script"||d.tagName==="style"||d.tagName==="textare"||QN(d)))return Yp}}function jx(e){const t=Vge(e);return t==="neutral"?void 0:t}function QN(e){const t=e.type==="element"&&typeof e.properties.dir=="string"?e.properties.dir.toLowerCase():void 0;return t==="auto"||t==="ltr"||t==="rtl"?t:void 0}function Yge(e,t,n){const r=cm(n,e.name),o=t.properties[r.property];let a=Qge(o,r);if(!e.value)return a!==void 0;e.value.type;let i=e.value.value;if(e.caseSensitivityModifier==="i"&&(i=i.toLowerCase(),a&&(a=a.toLowerCase())),a!==void 0)switch(e.operator){case"=":return i===a;case"$=":return i===a.slice(-i.length);case"*=":return a.includes(i);case"^=":return i===a.slice(0,i.length);case"|=":return i===a||i===a.slice(0,i.length)&&a.charAt(i.length)==="-";case"~=":return i===a||lT(a).includes(i)}return!1}function Qge(e,t){if(e!=null)if(typeof e=="boolean"){if(e)return t.attribute}else if(Array.isArray(e)){if(e.length>0)return(t.commaSeparated?Hb:$b)(e)}else return String(e)}const Kge=[];function Xge(e,t){return(t.properties.className||Kge).includes(e.name)}function Zge(e,t){return t.properties.id===e.name}function Jge(e,t){return e.name===t.tagName}function eye(e,t){return function(n,r){let o=KN(n,"tag");const a=KN(r??"*","range"),i=[];let l=-1;for(;++l<a.length;){const u=a[l].toLowerCase();let d=-1;const p=[];for(;++d<o.length;)e(o[d].toLowerCase(),u)?i.push(o[d]):p.push(o[d]);o=p}return i}}const tye=eye(function(e,t){const n=e.split("-"),r=t.split("-");let o=0,a=0;if(r[a]!=="*"&&n[o]!==r[a])return!1;for(o++,a++;a<r.length;){if(r[a]==="*"){a++;continue}if(!n[o])return!1;if(n[o]===r[a]){o++,a++;continue}if(n[o].length===1)return!1;o++}return!0});function KN(e,t){const n=e&&typeof e=="string"?[e]:e;if(!n||typeof n!="object"||!("length"in n))throw new Error("Invalid "+t+" `"+n+"`, expected non-empty string");return n}const nye={}.hasOwnProperty;function Mc(e,t){const n=e.type==="element"&&nye.call(e.properties,t)&&e.properties[t];return n!=null&&n!==!1}const rye=new Set([9,10,12,13,32]),XN=48,oye=57;function aye(e){if(e=e.trim().toLowerCase(),e==="even")return[2,0];if(e==="odd")return[2,1];let t=0,n=0,r=a(),o=i();if(t<e.length&&e.charAt(t)==="n"&&(t++,n=r*(o??1),l(),t<e.length?(r=a(),l(),o=i()):r=o=0),o===null||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[n,r*o];function a(){return e.charAt(t)==="-"?(t++,-1):(e.charAt(t)==="+"&&t++,1)}function i(){const u=t;let d=0;for(;t<e.length&&e.charCodeAt(t)>=XN&&e.charCodeAt(t)<=oye;)d=d*10+(e.charCodeAt(t)-XN),t++;return t===u?null:d}function l(){for(;t<e.length&&rye.has(e.charCodeAt(t));)t++}}var ZN,JN;function iye(){return JN||(JN=1,ZN={trueFunc:function(){return!0},falseFunc:function(){return!1}}),ZN}var sye=iye();const e3=kb(sye);function lye(e){const t=e[0],n=e[1]-1;if(n<0&&t<=0)return e3.falseFunc;if(t===-1)return a=>a<=n;if(t===0)return a=>a===n;if(t===1)return n<0?e3.trueFunc:a=>a>=n;const r=Math.abs(t),o=(n%r+r)%r;return t>1?a=>a>=n&&a%r===o:a=>a<=n&&a%r===o}function t3(e){return lye(aye(e))}const cye=t3.default||t3,uye=zb("name",{handlers:{"any-link":dye,blank:fye,checked:pye,dir:hye,disabled:E8,empty:mye,enabled:gye,"first-child":yye,"first-of-type":bye,has:vye,is:x8,lang:xye,"last-child":Sye,"last-of-type":Tye,not:Cye,"nth-child":_ye,"nth-last-child":Aye,"nth-last-of-type":kye,"nth-of-type":wye,"only-child":Rye,"only-of-type":Dye,optional:Iye,"read-only":Oye,"read-write":S8,required:T8,root:Nye,scope:Pye},invalid:Eye,unknown:Lye});function dye(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&Mc(t,"href")}function Ii(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function fye(e,t){return!C8(t,n);function n(r){return r.type==="element"||r.type==="text"&&!um(r)}}function pye(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&Mc(t,"checked")):t.tagName==="option"?Mc(t,"selected"):!1}function hye(e,t,n,r,o){return e.argument,e.argument.type,o.direction===e.argument.value}function E8(e,t){return(t.tagName==="button"||t.tagName==="input"||t.tagName==="select"||t.tagName==="textarea"||t.tagName==="optgroup"||t.tagName==="option"||t.tagName==="menuitem"||t.tagName==="fieldset")&&Mc(t,"disabled")}function mye(e,t){return!C8(t,n);function n(r){return r.type==="element"||r.type==="text"}}function gye(e,t){return!E8(e,t)}function yye(e,t,n,r,o){return Ii(o,e),o.elementIndex===0}function bye(e,t,n,r,o){return Ii(o,e),o.typeIndex===0}function rv(e){let t=e._cachedFn;if(!t){const n=e.argument;if(n.type!=="Formula")throw new Error("Expected `nth` formula, such as `even` or `2n+1` (`of` is not yet supported)");t=cye(n.a+"n+"+n.b),e._cachedFn=t}return t}function vye(e,t,n,r,o){e.argument,e.argument.type;const a={...o,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return j_(a,{type:"root",children:t.children}),a.results.length>0}function Eye(){}function x8(e,t,n,r,o){e.argument,e.argument.type;const a={...o,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return j_(a,t),a.results[0]===t}function xye(e,t,n,r,o){return e.argument,e.argument.type,o.language!==""&&o.language!==void 0&&tye(o.language,sT(e.argument.value)).length>0}function Sye(e,t,n,r,o){return Ii(o,e),!!(o.elementCount&&o.elementIndex===o.elementCount-1)}function Tye(e,t,n,r,o){return Ii(o,e),typeof o.typeIndex=="number"&&typeof o.typeCount=="number"&&o.typeIndex===o.typeCount-1}function Cye(e,t,n,r,o){return!x8(e,t,n,r,o)}function _ye(e,t,n,r,o){const a=rv(e);return Ii(o,e),typeof o.elementIndex=="number"&&a(o.elementIndex)}function Aye(e,t,n,r,o){const a=rv(e);return Ii(o,e),!!(typeof o.elementCount=="number"&&typeof o.elementIndex=="number"&&a(o.elementCount-o.elementIndex-1))}function kye(e,t,n,r,o){const a=rv(e);return Ii(o,e),typeof o.typeCount=="number"&&typeof o.typeIndex=="number"&&a(o.typeCount-1-o.typeIndex)}function wye(e,t,n,r,o){const a=rv(e);return Ii(o,e),typeof o.typeIndex=="number"&&a(o.typeIndex)}function Rye(e,t,n,r,o){return Ii(o,e),o.elementCount===1}function Dye(e,t,n,r,o){return Ii(o,e),o.typeCount===1}function Iye(e,t){return!T8(e,t)}function Oye(e,t,n,r,o){return!S8(e,t,n,r,o)}function S8(e,t,n,r,o){return t.tagName==="input"||t.tagName==="textarea"?!Mc(t,"readOnly")&&!Mc(t,"disabled"):!!o.editableOrEditingHost}function T8(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&Mc(t,"required")}function Nye(e,t,n,r,o){return!!((!r||r.type==="root")&&o.schema&&(o.schema.space==="html"||o.schema.space==="svg")&&(t.tagName==="html"||t.tagName==="svg"))}function Pye(e,t,n,r,o){return o.scopeElements.includes(t)}function C8(e,t){const n=e.children;let r=-1;for(;++r<n.length;)if(t(n[r]))return!0;return!1}function Lye(e){const t=e;throw new Error("Unknown pseudo-selector `"+t.name+"`")}function Mye(e,t,n,r,o){for(const a of e.items)if(a.type==="Attribute"){if(!Yge(a,t,o.schema))return!1}else if(a.type==="Id"){if(!Zge(a,t))return!1}else if(a.type==="ClassName"){if(!Xge(a,t))return!1}else if(a.type==="PseudoClass"){if(!uye(a,t,n,r,o))return!1}else{if(a.type==="PseudoElement")throw new Error("Invalid selector: `::"+a.name+"`");if(a.type==="TagName"&&!Jge(a,t))return!1}return!0}const Fye=[];function j_(e,t){t&&_8(e,[],t,void 0,void 0,t)}function Bx(e,t,n){const r=e[t];r?r.push(n):e[t]=[n]}function jye(e,t,n,r){const o=Py(t.descendant,t.directChild);let a,i=-1;const l={count:0,types:new Map},u={count:0,types:new Map};for(;++i<n.children.length;)n3(l,n.children[i]);for(i=-1;++i<n.children.length;){const d=n.children[i],p=d.type==="element"?d.tagName.toUpperCase():void 0;if(e.elementIndex=u.count,e.typeIndex=p&&u.types.get(p)||0,e.elementCount=l.count,e.typeCount=p?l.types.get(p):0,"children"in d){const h=Py(o,a),y=_8(e,h,n.children[i],i,n,r);a=Py(y.generalSibling,y.adjacentSibling)}if(e.one&&e.found)break;n3(u,n.children[i])}}function Bye(e,t,n,r,o){const a={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};let i=-1;for(;++i<t.length;){const l=t[i];if(e.one&&e.found)break;if(e.shallow&&l.nestedRule)throw new Error("Expected selector without nesting");if(Mye(l,n,r,o,e)){const u=l.nestedRule;if(u){const d=u.combinator==="+"?"adjacentSibling":u.combinator==="~"?"generalSibling":u.combinator===">"?"directChild":"descendant";Bx(a,d,u)}else e.found=!0,e.results.includes(n)||e.results.push(n)}l.combinator===void 0?Bx(a,"descendant",l):l.combinator==="~"&&Bx(a,"generalSibling",l)}return a}function Py(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:Fye}function n3(e,t){if(t.type==="element"){const n=t.tagName.toUpperCase(),r=(e.types.get(n)||0)+1;e.count++,e.types.set(n,r)}}function _8(e,t,n,r,o,a){let i={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const l=Wge(e,n);if(n.type==="element"){let u=e.rootQuery.rules;o&&o!==a&&(u=e.rootQuery.rules.filter(d=>d.combinator===void 0||d.combinator===">"&&o===a)),i=Bye(e,Py(t,u),n,r,o)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&jye(e,i,n,a),l(),i}function Uye(e,t,n){const r=zye(e,t);return j_(r,t||void 0),r.results}function zye(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:Hge(e),schema:jd,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const A8=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=A8(n.children))}),t),Hye=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const o=Uye(t,r);o&&o.length>0&&Mo(r,o,(a,i,l)=>{n(a,i,l)});return}Mo(r,(o,a,i)=>{n(o,a,i)})}}},$ye=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),Gye=(e=[],t)=>{let n=t;for(;n>-1;){if(n--,!e[n])return;if(e[n]&&e[n].value&&e[n].value.replace(/(\n|\s)/g,"")!==""||e[n].type!=="text")return!/^rehype:/.test(e[n].value)||e[n].type!=="comment"?void 0:e[n]}},k8=(e=[],t,n,r)=>{let o=t;for(;o<e.length;)if(o++,n){const a=e[o];if(a&&a.value&&a.value.replace(/(\n|\s)/g,"")!==""||e[o]&&e[o].type==="element")return a.tagName===n?a:void 0}else{const a=e[o];if(!a||a.type==="element"||a.type==="text"&&a.value.replace(/(\n|\s)/g,"")!=="")return;if(a.type&&/^(comment|raw)$/ig.test(a.type))return a.value&&!/^rehype:/.test(a.value.replace(/^(\s+)?<!--(.*?)-->/,"$2")||"")?void 0:r?k8(e,o,"pre",r)?void 0:(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a):(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a)}},r3=({value:e=""})=>{const t=$ye(e.replace(/^<!--(.*?)-->/,"$1").replace(/^rehype:/,""));return Object.keys(t).forEach(n=>{t[n]==="true"&&(t[n]=!0),t[n]==="false"&&(t[n]=!1),typeof t[n]=="string"&&!/^0/.test(t[n])&&!isNaN(+t[n])&&(t[n]=+t[n])}),t},o3=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},Vye=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{Mo(r,"element",(o,a,i)=>{if(n&&o.tagName==="pre"&&o&&Array.isArray(o.children)&&i&&Array.isArray(i.children)&&i.children.length>1){const l=o.children[0];if(l&&l.tagName==="code"&&typeof a=="number"){const u=Gye(i.children,a);if(u){const d=r3(u);Object.keys(d).length>0&&(o.properties={...o.properties,"data-type":"rehyp"},l.properties=o3(l.properties,d,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(o.tagName)&&i&&Array.isArray(i.children)&&typeof a=="number"){const l=k8(i.children,a,"",n);if(l){const u=r3(l);Object.keys(u).length>0&&(o.properties=o3(o.properties,u,t))}}})}};var qye=function(e){return t=>{Mo(t,n=>{n.type==="element"&&n.tagName==="code"&&n.data&&n.data.meta&&(n.properties=Le({},n.properties,{"data-meta":String(n.data.meta)}))})}},Wye=function(e){return t=>{Mo(t,n=>{if(n.type==="element"&&n.tagName==="code"&&n.properties&&n.properties.dataMeta){n.data||(n.data={});var r=n.properties.dataMeta;typeof r=="string"&&(n.data.meta=r),delete n.properties.dataMeta}})}};const Yye=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,Qye=Object.hasOwnProperty;class Kye{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let o=Xye(t,n===!0);const a=o;for(;Qye.call(r.occurrences,o);)r.occurrences[a]++,o=a+"-"+r.occurrences[a];return r.occurrences[o]=0,o}reset(){this.occurrences=Object.create(null)}}function Xye(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(Yye,"").replace(/ /g,"-"))}function w8(e){const t=e.type==="element"?e.tagName.toLowerCase():"",n=t.length===2&&t.charCodeAt(0)===104?t.charCodeAt(1):0;return n>48&&n<55?n-48:void 0}const Zye={},a3=new Kye;function Jye(e){const t=(e||Zye).prefix||"";return function(n){a3.reset(),Mo(n,"element",function(r){w8(r)&&!r.properties.id&&(r.properties.id=t+a3.slug(b8(r)))})}}const R8=(function(e){if(e==null)return n0e;if(typeof e=="string")return t0e(e);if(typeof e=="object")return e0e(e);if(typeof e=="function")return B_(e);throw new Error("Expected function, string, or array as `test`")});function e0e(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=R8(e[n]);return B_(r);function r(...o){let a=-1;for(;++a<t.length;)if(t[a].apply(this,o))return!0;return!1}}function t0e(e){return B_(t);function t(n){return n.tagName===e}}function B_(e){return t;function t(n,r,o){return!!(r0e(n)&&e.call(this,n,typeof r=="number"?r:void 0,o||void 0))}}function n0e(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function r0e(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const i3={type:"element",tagName:"span",properties:{className:["icon","icon-link"]},children:[]},o0e={};function a0e(e){const t=e||o0e;let n=t.properties;const r=t.headingProperties,o=t.behavior||"prepend",a=t.content,i=t.group,l=R8(t.test);let u;return o==="after"||o==="before"?u=p:o==="wrap"?u=h:(u=d,n||(n={ariaHidden:"true",tabIndex:-1})),function(y){Mo(y,"element",function(g,b,S){if(w8(g)&&g.properties.id&&l(g,b,S))return Object.assign(g.properties,ry(r,g)),u(g,b,S)})};function d(y){const g=s3(a||i3,y);return y.children[o==="prepend"?"unshift":"push"](Ux(y,ry(n,y),g)),[Yp]}function p(y,g,b){if(typeof g!="number"||!b)return;const S=s3(a||i3,y),T=Ux(y,ry(n,y),S);let E=o==="before"?[T,y]:[y,T];if(i){const A=D8(i,y);A&&!Array.isArray(A)&&A.type==="element"&&(A.children=E,E=[A])}return b.children.splice(g,1,...E),[Yp,g+E.length]}function h(y){let g=y.children,b=[];return typeof a=="function"?(g=[],b=a(y)):a&&(b=U_(a)),y.children=[Ux(y,ry(n,y),Array.isArray(b)?[...g,...b]:[...g,b])],[Yp]}}function U_(e){return Lc(e)}function Ux(e,t,n){return{type:"element",tagName:"a",properties:{...t,href:"#"+e.properties.id},children:n}}function s3(e,t){const n=D8(e,t);return Array.isArray(n)?n:[n]}function D8(e,t){return typeof e=="function"?e(t):U_(e)}function ry(e,t){return typeof e=="function"?e(t):e?U_(e):{}}const i0e=(e={})=>{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{Mo(r,(o,a,i)=>{if(o.type==="element"||o.type==="root"){let l=!1;o.children=o.children.filter(u=>{if(u.type==="raw"||u.type==="comment"){let d=(u.value||"").trim();if(d=d.replace(/^<!--(.*?)-->/,"$1"),d===t)return l=!0,!1;if(d===n)return l=!1,!1}return!l})}})}};var s0e={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};function l0e(e){return e===void 0&&(e=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":e},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}}var c0e=(e,t)=>(n,r,o)=>{if(n.type==="element"&&o&&o.type==="root"&&/h(1|2|3|4|5|6)/.test(n.tagName)){var a=n.children&&n.children[0];a&&a.properties&&a.properties.ariaHidden==="true"&&(a.properties=Le({class:"anchor"},a.properties),a.children=[s0e])}if(n.type==="element"&&n.tagName==="pre"&&!e){var i=A8(n.children);n.children.push(l0e(i))}t&&t(n,r===null?void 0:r,o===null?void 0:o)},u0e=[Jye,a0e,i0e];const I8=Fe.forwardRef((e,t)=>{var n,r=[qye,Wye,...u0e,[Hye,{rewrite:c0e((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[Vye,{properties:"attr"}],...e.rehypePlugins||[]];return v.jsx(Age,Le({},e,{rehypePlugins:r,ref:t}))});function d0e(e,t){return Le({},e,t)}var Vd=Fe.createContext({markdown:""});function O8(e,t){return e===void 0&&(e=[]),t===void 0&&(t={}),e.forEach(n=>{n.children&&Array.isArray(n.children)?t=Le({},t,O8(n.children||[])):n.keyCommand&&n.shortcuts&&n.execute&&(t[n.shortcuts.toLocaleLowerCase()]=n)}),t}function N8(e,t,n,r,o){t===void 0&&(t=[]);var a=O8(t||[]),i=[];if(e.altKey&&i.push("alt"),e.shiftKey&&i.push("shift"),e.metaKey&&i.push("cmd"),e.ctrlKey&&i.push("ctrl"),i.length>0&&!/(control|alt|meta|shift)/.test(e.key.toLocaleLowerCase())&&i.push(e.key.toLocaleLowerCase()),/escape/.test(e.key.toLocaleLowerCase())&&i.push("escape"),!(i.length<1)){var l=!!a[i.join("+")],u=l?a[i.join("+")]:void 0;if(Object.keys(a).forEach(d=>{var p=d.split("+").every(h=>/ctrlcmd/.test(h)?i.includes("ctrl")||i.includes("cmd"):i.includes(h));p&&(u=a[d])}),u&&n){e.stopPropagation(),e.preventDefault(),n.executeCommand(u,r,o,i);return}}}var zx;function l3(e){if(e.nodeName!=="TEXTAREA")return!1;if(typeof zx>"u"){var t=document.createElement("textarea");t.value="1",zx=!!t.firstChild}return zx}function ld(e,t){if(e.focus(),document.selection){var n=document.selection.createRange();n.text=t,n.collapse(!1),n.select();return}var r=!1;if(t!==""?r=document.execCommand&&document.execCommand("insertText",!1,t):r=document.execCommand&&document.execCommand("delete",!1),!r){var o=e.selectionStart,a=e.selectionEnd;if(typeof e.setRangeText=="function")e.setRangeText(t);else{var i=document.createRange(),l=document.createTextNode(t);if(l3(e)){var u=e.firstChild;if(!u)e.appendChild(l);else{for(var d=0,p=null,h=null;u&&(p===null||h===null);){var y=u.nodeValue.length;o>=d&&o<=d+y&&i.setStart(p=u,o-d),a>=d&&a<=d+y&&i.setEnd(h=u,a-d),d+=y,u=u.nextSibling}o!==a&&i.deleteContents()}}if(l3(e)&&i.commonAncestorContainer.nodeName==="#text")i.insertNode(l);else{var g=e.value;e.value=g.slice(0,o)+t+g.slice(a)}}e.setSelectionRange(o+t.length,o+t.length);var b=document.createEvent("UIEvent");b.initEvent("input",!0,!1),e.dispatchEvent(b)}}function vo(e){var{text:t,selection:n,prefix:r,suffix:o=r}=e,a=n;if(t&&t.length&&n.start===n.end&&(a=f0e(t,n.start)),a.start>=r.length&&a.end<=t.length-o.length){var i=t.slice(a.start-r.length,a.end+o.length);if(i.startsWith(r)&&i.endsWith(o))return{start:a.start-r.length,end:a.end+o.length}}return a}function eh(e){var{text:t,selection:n}=e,r=t.slice(0,n.start).lastIndexOf(`
|
|
301
|
-
`)+1,o=t.slice(n.end).indexOf(`
|
|
302
|
-
`)+n.end;return o===n.end-1&&(o=t.length),{start:r,end:o}}function P8(e,t){if(e===void 0&&(e=""),t===0)return 0;for(var n=2,r=!0,o=t-1;o>=0&&n>=0;o--)switch(e.charCodeAt(o)){case 32:continue;case 10:n--,r=!1;break;default:return n}return r?0:n}function L8(e,t){if(e===void 0&&(e=""),t===e.length-1)return 0;for(var n=2,r=!0,o=t;o<e.length&&n>=0;o++)switch(e.charCodeAt(o)){case 32:continue;case 10:{n--,r=!1;break}default:return n}return r?0:n}function f0e(e,t){if(!e)throw Error("Argument 'text' should be truthy");for(var n=l=>l===" "||l.charCodeAt(0)===10,r=0,o=e.length,a=t;a-1>-1;a--)if(n(e[a-1])){r=a;break}for(var i=t;i<e.length;i++)if(n(e[i])){o=i;break}return{start:r,end:o}}function Gr(e){var{api:t,selectedText:n,selection:r,prefix:o,suffix:a=o}=e;n.length>=o.length+a.length&&n.startsWith(o)&&n.endsWith(a)?(t.replaceSelection(n.slice(o.length,a.length?-a.length:void 0)),t.setSelectionRange({start:r.start-o.length,end:r.end-o.length})):(t.replaceSelection(""+o+n+a),t.setSelectionRange({start:r.start+o.length,end:r.end+o.length}))}function z_(e,t){var n=e.split(/\n/),r=0,o=n.map((a,i)=>{if(typeof t=="string")return a.startsWith(t)?(r-=t.length,a.slice(t.length)):(r+=t.length,t+a);if(typeof t=="function"){if(a.startsWith(t(a,i)))return r-=t(a,i).length,a.slice(t(a,i).length);var l=t(a,i);return r+=l.length,t(a,i)+a}throw Error("insertion is expected to be either a string or a function")}).join(`
|
|
303
|
-
`);return{modifiedText:o,insertionLength:r}}var p0e={name:"bold",keyCommand:"bold",shortcuts:"ctrlcmd+b",prefix:"**",buttonProps:{"aria-label":"Add bold text (ctrl + b)",title:"Add bold text (ctrl + b)"},icon:v.jsx("svg",{role:"img",width:"12",height:"12",viewBox:"0 0 384 512",children:v.jsx("path",{fill:"currentColor",d:"M304.793 243.891c33.639-18.537 53.657-54.16 53.657-95.693 0-48.236-26.25-87.626-68.626-104.179C265.138 34.01 240.849 32 209.661 32H24c-8.837 0-16 7.163-16 16v33.049c0 8.837 7.163 16 16 16h33.113v318.53H24c-8.837 0-16 7.163-16 16V464c0 8.837 7.163 16 16 16h195.69c24.203 0 44.834-1.289 66.866-7.584C337.52 457.193 376 410.647 376 350.014c0-52.168-26.573-91.684-71.207-106.123zM142.217 100.809h67.444c16.294 0 27.536 2.019 37.525 6.717 15.828 8.479 24.906 26.502 24.906 49.446 0 35.029-20.32 56.79-53.029 56.79h-76.846V100.809zm112.642 305.475c-10.14 4.056-22.677 4.907-31.409 4.907h-81.233V281.943h84.367c39.645 0 63.057 25.38 63.057 63.057.001 28.425-13.66 52.483-34.782 61.284z"})}),execute:(e,t)=>{var n=vo({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);Gr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},M8={name:"codeBlock",keyCommand:"codeBlock",shortcuts:"ctrlcmd+shift+j",prefix:"```",buttonProps:{"aria-label":"Insert Code Block (ctrl + shift + j)",title:"Insert Code Block (ctrl + shift +j)"},icon:v.jsx("svg",{width:"13",height:"13",role:"img",viewBox:"0 0 156 156",children:v.jsx("path",{fill:"currentColor",d:"M110.85 120.575 43.7 120.483333 43.7083334 110.091667 110.85 110.191667 110.841667 120.583333 110.85 120.575ZM85.1333334 87.1916666 43.625 86.7083332 43.7083334 76.3166666 85.2083334 76.7916666 85.1333334 87.1916666 85.1333334 87.1916666ZM110.841667 53.4166666 43.7 53.3166666 43.7083334 42.925 110.85 43.025 110.841667 53.4166666ZM36 138C27.2916666 138 20.75 136.216667 16.4 132.666667 12.1333334 129.2 10 124.308333 10 118L10 95.3333332C10 91.0666666 9.25 88.1333332 7.7333334 86.5333332 6.3166668 84.8416666 3.7333334 84 0 84L0 72C3.7333334 72 6.3083334 71.2 7.7333334 69.6 9.2416668 67.9083334 10 64.9333334 10 60.6666666L10 38C10 31.775 12.1333334 26.8833334 16.4 23.3333332 20.7583334 19.7749998 27.2916666 18 36 18L40.6666668 18 40.6666668 30 36 30C34.0212222 29.9719277 32.1263151 30.7979128 30.8 32.2666666 29.3605875 33.8216362 28.5938182 35.8823287 28.6666668 38L28.6666668 60.6666666C28.6666668 67.5083332 26.6666668 72.4 22.6666668 75.3333332 20.9317416 76.7274684 18.8640675 77.6464347 16.6666668 78 18.8916668 78.35 20.8916668 79.2416666 22.6666668 80.6666666 26.6666668 83.95 28.6666668 88.8416666 28.6666668 95.3333332L28.6666668 118C28.6666668 120.308333 29.3750002 122.216667 30.8 123.733333 32.2166666 125.241667 33.9583334 126 36 126L40.6666668 126 40.6666668 138 36 138 36 138ZM114.116667 126 118.783333 126C120.833333 126 122.566667 125.241667 123.983333 123.733333 125.422746 122.178364 126.189515 120.117671 126.116667 118L126.116667 95.3333332C126.116667 88.8333332 128.116667 83.9499998 132.116667 80.6666666 133.9 79.2416666 135.9 78.35 138.116667 78 135.919156 77.6468047 133.851391 76.7277979 132.116667 75.3333332 128.116667 72.3999998 126.116667 67.5 126.116667 60.6666666L126.116667 38C126.189515 35.8823287 125.422746 33.8216361 123.983333 32.2666666 122.657018 30.7979128 120.762111 29.9719277 118.783333 30L114.116667 30 114.116667 18 118.783333 18C127.5 18 133.983333 19.775 138.25 23.3333332 142.608333 26.8833332 144.783333 31.7749998 144.783333 38L144.783333 60.6666666C144.783333 64.9333332 145.5 67.9083332 146.916667 69.6 148.433333 71.2 151.05 72 154.783333 72L154.783333 84C151.05 84 148.433333 84.8333334 146.916667 86.5333332 145.5 88.1333332 144.783333 91.0666666 144.783333 95.3333332L144.783333 118C144.783333 124.308333 142.616667 129.2 138.25 132.666667 133.983333 136.216667 127.5 138 118.783333 138L114.116667 138 114.116667 126 114.116667 126Z"})}),execute:(e,t)=>{var n=vo({text:e.text,selection:e.selection,prefix:"```\n",suffix:"\n```"}),r=t.setSelectionRange(n),o="\n```\n",a="\n```\n";r.selectedText.length>=o.length+a.length-2&&r.selectedText.startsWith(o)&&r.selectedText.endsWith(a)?(o="```\n",a="\n```"):((r.selection.start>=1&&e.text.slice(r.selection.start-1,r.selection.start)===`
|
|
304
|
-
`||r.selection.start===0)&&(o="```\n"),(r.selection.end<=e.text.length-1&&e.text.slice(r.selection.end,r.selection.end+1)===`
|
|
305
|
-
`||r.selection.end===e.text.length)&&(a="\n```"));var i=vo({text:e.text,selection:e.selection,prefix:o,suffix:a}),l=t.setSelectionRange(i);Gr({api:t,selectedText:l.selectedText,selection:e.selection,prefix:o,suffix:a})}},h0e={name:"code",keyCommand:"code",shortcuts:"ctrlcmd+j",prefix:"`",buttonProps:{"aria-label":"Insert code (ctrl + j)",title:"Insert code (ctrl + j)"},icon:v.jsx("svg",{width:"14",height:"14",role:"img",viewBox:"0 0 640 512",children:v.jsx("path",{fill:"currentColor",d:"M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"})}),execute:(e,t)=>{if(e.selectedText.indexOf(`
|
|
306
|
-
`)===-1){var n=vo({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);Gr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}else M8.execute(e,t)}},m0e={name:"comment",keyCommand:"comment",shortcuts:"ctrlcmd+/",prefix:"<!-- ",suffix:" -->",buttonProps:{"aria-label":"Insert comment (ctrl + /)",title:"Insert comment (ctrl + /)"},icon:v.jsx("svg",{height:"1em",width:"1em",viewBox:"0 0 25 25",children:v.jsxs("g",{fill:"none",fillRule:"evenodd",children:[v.jsx("polygon",{points:".769 .727 24.981 .727 24.981 24.727 .769 24.727"}),v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3",d:"M12.625,23.8787879 L8.125,19.6969697 L5.125,19.6969697 C2.63971863,19.6969697 0.625,17.8247059 0.625,15.5151515 L0.625,7.15151515 C0.625,4.84196074 2.63971863,2.96969697 5.125,2.96969697 L20.125,2.96969697 C22.6102814,2.96969697 24.625,4.84196074 24.625,7.15151515 L24.625,15.5151515 C24.625,17.8247059 22.6102814,19.6969697 20.125,19.6969697 L17.125,19.6969697 L12.625,23.8787879"}),v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3",d:"M10.625,8.54545455 L7.25,11.3333333 L10.625,14.1212121 M15.6875,8.54545455 L19.0625,11.3333333 L15.6875,14.1212121"})]})}),execute:(e,t)=>{var n=vo({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);Gr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix})}},Ly={keyCommand:"divider"},g0e={name:"fullscreen",keyCommand:"fullscreen",shortcuts:"ctrlcmd+0",value:"fullscreen",buttonProps:{"aria-label":"Toggle fullscreen (ctrl + 0)",title:"Toggle fullscreen (ctrl+ 0)"},icon:v.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:v.jsx("path",{fill:"currentColor",d:"M118 171.133334L118 342.200271C118 353.766938 126.675 365.333605 141.133333 365.333605L382.634614 365.333605C394.201281 365.333605 405.767948 356.658605 405.767948 342.200271L405.767948 171.133334C405.767948 159.566667 397.092948 148 382.634614 148L141.133333 148C126.674999 148 117.999999 156.675 118 171.133334zM465.353591 413.444444L370 413.444444 370 471.222222 474.0221 471.222222C500.027624 471.222222 520.254143 451 520.254143 425L520.254143 321 462.464089 321 462.464089 413.444444 465.353591 413.444444zM471.0221 43L367 43 367 100.777778 462.353591 100.777778 462.353591 196.111111 520.143647 196.111111 520.143647 89.2222219C517.254144 63.2222219 497.027624 43 471.0221 43zM57.7900547 100.777778L153.143646 100.777778 153.143646 43 46.2320439 43C20.2265191 43 0 63.2222219 0 89.2222219L0 193.222222 57.7900547 193.222222 57.7900547 100.777778zM57.7900547 321L0 321 0 425C0 451 20.2265191 471.222222 46.2320439 471.222223L150.254143 471.222223 150.254143 413.444445 57.7900547 413.444445 57.7900547 321z"})}),execute:(e,t,n,r,o)=>{t.textArea.focus(),o&&n&&r&&n({fullscreen:!r.fullscreen})}};function y0e(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var b0e=(e,t)=>{var n=Le({children:e,icon:v.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:v.jsx("path",{fill:"currentColor",d:"M15.7083333,468 C7.03242448,468 0,462.030833 0,454.666667 L0,421.333333 C0,413.969167 7.03242448,408 15.7083333,408 L361.291667,408 C369.967576,408 377,413.969167 377,421.333333 L377,454.666667 C377,462.030833 369.967576,468 361.291667,468 L15.7083333,468 Z M21.6666667,366 C9.69989583,366 0,359.831861 0,352.222222 L0,317.777778 C0,310.168139 9.69989583,304 21.6666667,304 L498.333333,304 C510.300104,304 520,310.168139 520,317.777778 L520,352.222222 C520,359.831861 510.300104,366 498.333333,366 L21.6666667,366 Z M136.835938,64 L136.835937,126 L107.25,126 L107.25,251 L40.75,251 L40.75,126 L-5.68434189e-14,126 L-5.68434189e-14,64 L136.835938,64 Z M212,64 L212,251 L161.648438,251 L161.648438,64 L212,64 Z M378,64 L378,126 L343.25,126 L343.25,251 L281.75,251 L281.75,126 L238,126 L238,64 L378,64 Z M449.047619,189.550781 L520,189.550781 L520,251 L405,251 L405,64 L449.047619,64 L449.047619,189.550781 Z"})}),execute:()=>{}},t,{keyCommand:"group"});return Array.isArray(n.children)&&(n.children=n.children.map(r=>{var o=Le({},(y0e(r),r));return o.parent=n,Le({},o)})),n},v0e={name:"hr",keyCommand:"hr",shortcuts:"ctrlcmd+h",prefix:`
|
|
307
|
-
|
|
308
|
-
---
|
|
309
|
-
`,suffix:"",buttonProps:{"aria-label":"Insert HR (ctrl + h)",title:"Insert HR (ctrl + h)"},icon:v.jsx("svg",{width:"12",height:"12",viewBox:"0 0 175 175",children:v.jsx("path",{fill:"currentColor",d:"M0,129 L175,129 L175,154 L0,154 L0,129 Z M3,9 L28.2158203,9 L28.2158203,47.9824219 L55.7695313,47.9824219 L55.7695313,9 L81.0966797,9 L81.0966797,107.185547 L55.7695313,107.185547 L55.7695313,68.0214844 L28.2158203,68.0214844 L28.2158203,107.185547 L3,107.185547 L3,9 Z M93.1855469,100.603516 L93.1855469,19 L135.211914,19 C143.004922,19 148.960917,19.6679621 153.080078,21.0039063 C157.199239,22.3398504 160.520495,24.8168764 163.043945,28.4350586 C165.567395,32.0532407 166.829102,36.459935 166.829102,41.6552734 C166.829102,46.1826398 165.864267,50.0883625 163.93457,53.3725586 C162.004873,56.6567547 159.351579,59.3193257 155.974609,61.3603516 C153.822255,62.6591862 150.872089,63.7353473 147.124023,64.5888672 C150.129898,65.5908253 152.319329,66.5927684 153.692383,67.5947266 C154.620122,68.2626987 155.965323,69.6913953 157.728027,71.8808594 C159.490731,74.0703234 160.668942,75.7587831 161.262695,76.9462891 L173,100.603516 L144.953125,100.603516 L131.482422,75.6660156 C129.775382,72.4374839 128.253913,70.3408251 126.917969,69.3759766 C125.0996,68.1142515 123.040051,67.4833984 120.739258,67.4833984 L118.512695,67.4833984 L118.512695,100.603516 L93.1855469,100.603516 Z M118.512695,52.0644531 L129.144531,52.0644531 C130.294928,52.0644531 132.521468,51.6933631 135.824219,50.9511719 C137.494149,50.6171858 138.857905,49.7636787 139.915527,48.390625 C140.97315,47.0175713 141.501953,45.4404386 141.501953,43.6591797 C141.501953,41.0244009 140.667001,39.0019602 138.99707,37.5917969 C137.32714,36.1816336 134.191429,35.4765625 129.589844,35.4765625 L117.512695,35.4765625 L118.512695,52.0644531 Z",transform:"translate(0 9)"})}),execute:(e,t)=>{var n=vo({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);r.selectedText.length>=e.command.prefix.length&&r.selectedText.startsWith(e.command.prefix)?Gr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}):(r=t.setSelectionRange({start:e.selection.start,end:e.selection.start}),Gr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}))}},E0e={name:"image",keyCommand:"image",shortcuts:"ctrlcmd+k",prefix:"",buttonProps:{"aria-label":"Add image (ctrl + k)",title:"Add image (ctrl + k)"},icon:v.jsx("svg",{width:"13",height:"13",viewBox:"0 0 20 20",children:v.jsx("path",{fill:"currentColor",d:"M15 9c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm4-7H1c-.55 0-1 .45-1 1v14c0 .55.45 1 1 1h18c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1zm-1 13l-6-5-2 2-4-5-4 8V4h16v11z"})}),execute:(e,t)=>{var n=vo({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);r.selectedText.includes("http")||r.selectedText.includes("www")?Gr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}):(n=vo({text:e.text,selection:e.selection,prefix:"![",suffix:"]()"}),r=t.setSelectionRange(n),r.selectedText.length===0?Gr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:""}):Gr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"![",suffix:"]()"}))}},x0e={name:"italic",keyCommand:"italic",shortcuts:"ctrlcmd+i",prefix:"*",buttonProps:{"aria-label":"Add italic text (ctrl + i)",title:"Add italic text (ctrl + i)"},icon:v.jsx("svg",{"data-name":"italic",width:"12",height:"12",role:"img",viewBox:"0 0 320 512",children:v.jsx("path",{fill:"currentColor",d:"M204.758 416h-33.849l62.092-320h40.725a16 16 0 0 0 15.704-12.937l6.242-32C297.599 41.184 290.034 32 279.968 32H120.235a16 16 0 0 0-15.704 12.937l-6.242 32C96.362 86.816 103.927 96 113.993 96h33.846l-62.09 320H46.278a16 16 0 0 0-15.704 12.935l-6.245 32C22.402 470.815 29.967 480 40.034 480h158.479a16 16 0 0 0 15.704-12.935l6.245-32c1.927-9.88-5.638-19.065-15.704-19.065z"})}),execute:(e,t)=>{var n=vo({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);Gr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},S0e={name:"link",keyCommand:"link",shortcuts:"ctrlcmd+l",prefix:"[",suffix:"](url)",buttonProps:{"aria-label":"Add a link (ctrl + l)",title:"Add a link (ctrl + l)"},icon:v.jsx("svg",{"data-name":"italic",width:"12",height:"12",role:"img",viewBox:"0 0 520 520",children:v.jsx("path",{fill:"currentColor",d:"M331.751196,182.121107 C392.438214,241.974735 391.605313,337.935283 332.11686,396.871226 C332.005129,396.991316 331.873084,397.121413 331.751196,397.241503 L263.493918,464.491645 C203.291404,523.80587 105.345257,523.797864 45.151885,464.491645 C-15.0506283,405.187427 -15.0506283,308.675467 45.151885,249.371249 L82.8416853,212.237562 C92.836501,202.39022 110.049118,208.9351 110.56511,222.851476 C111.223305,240.5867 114.451306,258.404985 120.407566,275.611815 C122.424812,281.438159 120.983487,287.882964 116.565047,292.23621 L103.272145,305.332975 C74.8052033,333.379887 73.9123737,379.047937 102.098973,407.369054 C130.563883,435.969378 177.350591,436.139505 206.033884,407.879434 L274.291163,340.6393 C302.9257,312.427264 302.805844,266.827265 274.291163,238.733318 C270.531934,235.036561 266.74528,232.16442 263.787465,230.157924 C259.544542,227.2873 256.928256,222.609848 256.731165,217.542518 C256.328935,206.967633 260.13184,196.070508 268.613213,187.714278 L289.998463,166.643567 C295.606326,161.118448 304.403592,160.439942 310.906317,164.911276 C318.353355,170.034591 325.328531,175.793397 331.751196,182.121107 Z M240.704978,55.4828366 L172.447607,122.733236 C172.325719,122.853326 172.193674,122.983423 172.081943,123.103513 C117.703294,179.334654 129.953294,261.569283 185.365841,328.828764 C191.044403,335.721376 198.762988,340.914712 206.209732,346.037661 C212.712465,350.509012 221.510759,349.829503 227.117615,344.305363 L248.502893,323.234572 C256.984277,314.87831 260.787188,303.981143 260.384957,293.406218 C260.187865,288.338869 257.571576,283.661398 253.328648,280.790763 C250.370829,278.78426 246.58417,275.912107 242.824936,272.215337 C214.310216,244.121282 206.209732,204.825874 229.906702,179.334654 L298.164073,112.094263 C326.847404,83.8340838 373.633159,84.0042113 402.099123,112.604645 C430.285761,140.92587 429.393946,186.594095 400.92595,214.641114 L387.63303,227.737929 C383.214584,232.091191 381.773257,238.536021 383.790506,244.362388 C389.746774,261.569283 392.974779,279.387637 393.632975,297.122928 C394.149984,311.039357 411.361608,317.584262 421.356437,307.736882 L459.046288,270.603053 C519.249898,211.29961 519.249898,114.787281 459.047304,55.4828366 C398.853851,-3.82360914 300.907572,-3.83161514 240.704978,55.4828366 Z"})}),execute:(e,t)=>{var n=vo({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);r.selectedText.includes("http")||r.selectedText.includes("www")?(n=vo({text:e.text,selection:e.selection,prefix:"[](",suffix:")"}),r=t.setSelectionRange(n),Gr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"[](",suffix:")"})):r.selectedText.length===0?Gr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"[title",suffix:"](url)"}):Gr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix})}},H_=(e,t,n)=>{var r=vo({text:e.text,selection:e.selection,prefix:e.command.prefix}),o=t.setSelectionRange(r),a=P8(o.text,o.selection.start),i=Array(a+1).join(`
|
|
310
|
-
`),l=L8(o.text,o.selection.end),u=Array(l+1).join(`
|
|
311
|
-
`),{modifiedText:d,insertionLength:p}=z_(o.selectedText,n);if(p<0){var h=o.selection.start,y=o.selection.end;o.selection.start>0&&e.text.slice(o.selection.start-1,o.selection.start)===`
|
|
312
|
-
`&&(h-=1),o.selection.end<e.text.length-1&&e.text.slice(o.selection.end,o.selection.end+1)===`
|
|
313
|
-
`&&(y+=1),t.setSelectionRange({start:h,end:y}),t.replaceSelection(""+d),t.setSelectionRange({start:h,end:h+d.length})}else{t.replaceSelection(""+i+d+u);var g=o.selection.start+a,b=g+d.length;t.setSelectionRange({start:g,end:b})}},T0e={name:"unordered-list",keyCommand:"list",shortcuts:"ctrl+shift+u",prefix:"- ",buttonProps:{"aria-label":"Add unordered list (ctrl + shift + u)",title:"Add unordered list (ctrl + shift + u)"},icon:v.jsx("svg",{"data-name":"unordered-list",width:"12",height:"12",viewBox:"0 0 512 512",children:v.jsx("path",{fill:"currentColor",d:"M96 96c0 26.51-21.49 48-48 48S0 122.51 0 96s21.49-48 48-48 48 21.49 48 48zM48 208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm0 160c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm96-236h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"})}),execute:(e,t)=>{H_(e,t,"- ")}},C0e={name:"ordered-list",keyCommand:"list",shortcuts:"ctrl+shift+o",prefix:"1. ",buttonProps:{"aria-label":"Add ordered list (ctrl + shift + o)",title:"Add ordered list (ctrl + shift + o)"},icon:v.jsx("svg",{"data-name":"ordered-list",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:v.jsx("path",{fill:"currentColor",d:"M3.263 139.527c0-7.477 3.917-11.572 11.573-11.572h15.131V88.078c0-5.163.534-10.503.534-10.503h-.356s-1.779 2.67-2.848 3.738c-4.451 4.273-10.504 4.451-15.666-1.068l-5.518-6.231c-5.342-5.341-4.984-11.216.534-16.379l21.72-19.938C32.815 33.602 36.732 32 42.785 32H54.89c7.656 0 11.749 3.916 11.749 11.572v84.384h15.488c7.655 0 11.572 4.094 11.572 11.572v8.901c0 7.477-3.917 11.572-11.572 11.572H14.836c-7.656 0-11.573-4.095-11.573-11.572v-8.902zM2.211 304.591c0-47.278 50.955-56.383 50.955-69.165 0-7.18-5.954-8.755-9.28-8.755-3.153 0-6.479 1.051-9.455 3.852-5.079 4.903-10.507 7.004-16.111 2.451l-8.579-6.829c-5.779-4.553-7.18-9.805-2.803-15.409C13.592 201.981 26.025 192 47.387 192c19.437 0 44.476 10.506 44.476 39.573 0 38.347-46.753 46.402-48.679 56.909h39.049c7.529 0 11.557 4.027 11.557 11.382v8.755c0 7.354-4.028 11.382-11.557 11.382h-67.94c-7.005 0-12.083-4.028-12.083-11.382v-4.028zM5.654 454.61l5.603-9.28c3.853-6.654 9.105-7.004 15.584-3.152 4.903 2.101 9.63 3.152 14.359 3.152 10.155 0 14.358-3.502 14.358-8.23 0-6.654-5.604-9.106-15.934-9.106h-4.728c-5.954 0-9.28-2.101-12.258-7.88l-1.05-1.926c-2.451-4.728-1.226-9.806 2.801-14.884l5.604-7.004c6.829-8.405 12.257-13.483 12.257-13.483v-.35s-4.203 1.051-12.608 1.051H16.685c-7.53 0-11.383-4.028-11.383-11.382v-8.755c0-7.53 3.853-11.382 11.383-11.382h58.484c7.529 0 11.382 4.027 11.382 11.382v3.327c0 5.778-1.401 9.806-5.079 14.183l-17.509 20.137c19.611 5.078 28.716 20.487 28.716 34.845 0 21.363-14.358 44.126-48.503 44.126-16.636 0-28.192-4.728-35.896-9.455-5.779-4.202-6.304-9.805-2.626-15.934zM144 132h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"})}),execute:(e,t)=>{H_(e,t,(n,r)=>r+1+". ")}},_0e={name:"checked-list",keyCommand:"list",shortcuts:"ctrl+shift+c",prefix:"- [ ] ",buttonProps:{"aria-label":"Add checked list (ctrl + shift + c)",title:"Add checked list (ctrl + shift + c)"},icon:v.jsx("svg",{"data-name":"checked-list",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:v.jsx("path",{fill:"currentColor",d:"M208 132h288c8.8 0 16-7.2 16-16V76c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zM64 368c-26.5 0-48.6 21.5-48.6 48s22.1 48 48.6 48 48-21.5 48-48-21.5-48-48-48zm92.5-299l-72.2 72.2-15.6 15.6c-4.7 4.7-12.9 4.7-17.6 0L3.5 109.4c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.3c4.7-4.7 12.3-4.7 17 0l17 16.5c4.6 4.7 4.6 12.3-.1 17zm0 159.6l-72.2 72.2-15.7 15.7c-4.7 4.7-12.9 4.7-17.6 0L3.5 269c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.7c4.7-4.7 12.3-4.7 17 0l17 17c4.6 4.6 4.6 12.2-.1 16.9z"})}),execute:(e,t)=>{H_(e,t,(n,r)=>"- [ ] ")}},A0e={name:"preview",keyCommand:"preview",value:"preview",shortcuts:"ctrlcmd+9",buttonProps:{"aria-label":"Preview code (ctrl + 9)",title:"Preview code (ctrl + 9)"},icon:v.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[v.jsx("polygon",{fill:"currentColor",points:"0 71.293 0 122 38.023 123 38.023 398 0 397 0 449.707 91.023 450.413 91.023 72.293"}),v.jsx("polygon",{fill:"currentColor",points:"148.023 72.293 520 71.293 520 122 200.023 124 200.023 397 520 396 520 449.707 148.023 450.413"})]}),execute:(e,t,n,r,o)=>{t.textArea.focus(),o&&n&&r&&n({preview:"preview"})}},k0e={name:"edit",keyCommand:"preview",value:"edit",shortcuts:"ctrlcmd+7",buttonProps:{"aria-label":"Edit code (ctrl + 7)",title:"Edit code (ctrl + 7)"},icon:v.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[v.jsx("polygon",{fill:"currentColor",points:"0 71.293 0 122 319 122 319 397 0 397 0 449.707 372 449.413 372 71.293"}),v.jsx("polygon",{fill:"currentColor",points:"429 71.293 520 71.293 520 122 481 123 481 396 520 396 520 449.707 429 449.413"})]}),execute:(e,t,n,r,o)=>{t.textArea.focus(),o&&n&&r&&n({preview:"edit"})}},w0e={name:"live",keyCommand:"preview",value:"live",shortcuts:"ctrlcmd+8",buttonProps:{"aria-label":"Live code (ctrl + 8)",title:"Live code (ctrl + 8)"},icon:v.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[v.jsx("polygon",{fill:"currentColor",points:"0 71.293 0 122 179 122 179 397 0 397 0 449.707 232 449.413 232 71.293"}),v.jsx("polygon",{fill:"currentColor",points:"289 71.293 520 71.293 520 122 341 123 341 396 520 396 520 449.707 289 449.413"})]}),execute:(e,t,n,r,o)=>{t.textArea.focus(),o&&n&&r&&n({preview:"live"})}},R0e={name:"quote",keyCommand:"quote",shortcuts:"ctrlcmd+q",prefix:"> ",buttonProps:{"aria-label":"Insert a quote (ctrl + q)",title:"Insert a quote (ctrl + q)"},icon:v.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:v.jsx("path",{fill:"currentColor",d:"M520,95.75 L520,225.75 C520,364.908906 457.127578,437.050625 325.040469,472.443125 C309.577578,476.586875 294.396016,464.889922 294.396016,448.881641 L294.396016,414.457031 C294.396016,404.242891 300.721328,395.025078 310.328125,391.554687 C377.356328,367.342187 414.375,349.711094 414.375,274.5 L341.25,274.5 C314.325781,274.5 292.5,252.674219 292.5,225.75 L292.5,95.75 C292.5,68.8257812 314.325781,47 341.25,47 L471.25,47 C498.174219,47 520,68.8257812 520,95.75 Z M178.75,47 L48.75,47 C21.8257813,47 0,68.8257812 0,95.75 L0,225.75 C0,252.674219 21.8257813,274.5 48.75,274.5 L121.875,274.5 C121.875,349.711094 84.8563281,367.342187 17.828125,391.554687 C8.22132813,395.025078 1.89601563,404.242891 1.89601563,414.457031 L1.89601563,448.881641 C1.89601563,464.889922 17.0775781,476.586875 32.5404687,472.443125 C164.627578,437.050625 227.5,364.908906 227.5,225.75 L227.5,95.75 C227.5,68.8257812 205.674219,47 178.75,47 Z"})}),execute:(e,t)=>{var n=vo({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n),o=P8(r.text,r.selection.start),a=Array(o+1).join(`
|
|
314
|
-
`),i=L8(r.text,r.selection.end),l=Array(i+1).join(`
|
|
315
|
-
`),u=z_(r.selectedText,e.command.prefix);t.replaceSelection(""+a+u.modifiedText+l);var d=r.selection.start+o,p=d+u.modifiedText.length;t.setSelectionRange({start:d,end:p})}},D0e={name:"strikethrough",keyCommand:"strikethrough",shortcuts:"ctrl+shift+x",buttonProps:{"aria-label":"Add strikethrough text (ctrl + shift + x)",title:"Add strikethrough text (ctrl + shift + x)"},prefix:"~~",icon:v.jsx("svg",{"data-name":"strikethrough",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:v.jsx("path",{fill:"currentColor",d:"M496 288H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h480c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16zm-214.666 16c27.258 12.937 46.524 28.683 46.524 56.243 0 33.108-28.977 53.676-75.621 53.676-32.325 0-76.874-12.08-76.874-44.271V368c0-8.837-7.164-16-16-16H113.75c-8.836 0-16 7.163-16 16v19.204c0 66.845 77.717 101.82 154.487 101.82 88.578 0 162.013-45.438 162.013-134.424 0-19.815-3.618-36.417-10.143-50.6H281.334zm-30.952-96c-32.422-13.505-56.836-28.946-56.836-59.683 0-33.92 30.901-47.406 64.962-47.406 42.647 0 64.962 16.593 64.962 32.985V136c0 8.837 7.164 16 16 16h45.613c8.836 0 16-7.163 16-16v-30.318c0-52.438-71.725-79.875-142.575-79.875-85.203 0-150.726 40.972-150.726 125.646 0 22.71 4.665 41.176 12.777 56.547h129.823z"})}),execute:(e,t)=>{var n=vo({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);Gr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},F8={name:"heading1",keyCommand:"heading1",shortcuts:"ctrlcmd+1",prefix:"# ",suffix:"",buttonProps:{"aria-label":"Insert Heading 1 (ctrl + 1)",title:"Insert Heading 1 (ctrl + 1)"},icon:v.jsx("div",{style:{fontSize:18,textAlign:"left"},children:"Heading 1"}),execute:(e,t)=>{qd({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},I0e=F8;function qd(e){var{state:t,api:n,prefix:r,suffix:o=r}=e,a=eh({text:t.text,selection:t.selection}),i=n.setSelectionRange(a);Gr({api:n,selectedText:i.selectedText,selection:t.selection,prefix:r,suffix:o})}Le({},F8,{icon:v.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:v.jsx("path",{fill:"currentColor",d:"M15.7083333,468 C7.03242448,468 0,462.030833 0,454.666667 L0,421.333333 C0,413.969167 7.03242448,408 15.7083333,408 L361.291667,408 C369.967576,408 377,413.969167 377,421.333333 L377,454.666667 C377,462.030833 369.967576,468 361.291667,468 L15.7083333,468 Z M21.6666667,366 C9.69989583,366 0,359.831861 0,352.222222 L0,317.777778 C0,310.168139 9.69989583,304 21.6666667,304 L498.333333,304 C510.300104,304 520,310.168139 520,317.777778 L520,352.222222 C520,359.831861 510.300104,366 498.333333,366 L21.6666667,366 Z M136.835938,64 L136.835937,126 L107.25,126 L107.25,251 L40.75,251 L40.75,126 L-5.68434189e-14,126 L-5.68434189e-14,64 L136.835938,64 Z M212,64 L212,251 L161.648438,251 L161.648438,64 L212,64 Z M378,64 L378,126 L343.25,126 L343.25,251 L281.75,251 L281.75,126 L238,126 L238,64 L378,64 Z M449.047619,189.550781 L520,189.550781 L520,251 L405,251 L405,64 L449.047619,64 L449.047619,189.550781 Z"})})});var O0e={name:"heading2",keyCommand:"heading2",shortcuts:"ctrlcmd+2",prefix:"## ",suffix:"",buttonProps:{"aria-label":"Insert Heading 2 (ctrl + 2)",title:"Insert Heading 2 (ctrl + 2)"},icon:v.jsx("div",{style:{fontSize:16,textAlign:"left"},children:"Heading 2"}),execute:(e,t)=>{qd({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},N0e=O0e,P0e={name:"heading3",keyCommand:"heading3",shortcuts:"ctrlcmd+3",prefix:"### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 3 (ctrl + 3)",title:"Insert Heading 3 (ctrl + 3)"},icon:v.jsx("div",{style:{fontSize:15,textAlign:"left"},children:"Heading 3"}),execute:(e,t)=>{qd({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},L0e=P0e,M0e={name:"heading4",keyCommand:"heading4",shortcuts:"ctrlcmd+4",prefix:"#### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 4 (ctrl + 4)",title:"Insert Heading 4 (ctrl + 4)"},icon:v.jsx("div",{style:{fontSize:14,textAlign:"left"},children:"Heading 4"}),execute:(e,t)=>{qd({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},F0e=M0e,j0e={name:"heading5",keyCommand:"heading5",shortcuts:"ctrlcmd+5",prefix:"##### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 5 (ctrl + 5)",title:"Insert Heading 5 (ctrl + 5)"},icon:v.jsx("div",{style:{fontSize:12,textAlign:"left"},children:"Heading 5"}),execute:(e,t)=>{qd({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},B0e=j0e,U0e={name:"heading6",keyCommand:"heading6",shortcuts:"ctrlcmd+6",prefix:"###### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 6 (ctrl + 6)",title:"Insert Heading 6 (ctrl + 6)"},icon:v.jsx("div",{style:{fontSize:12,textAlign:"left"},children:"Heading 6"}),execute:(e,t)=>{qd({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},z0e=U0e,H0e={name:"table",keyCommand:"table",prefix:`
|
|
316
|
-
| Header | Header |
|
|
317
|
-
|--------|--------|
|
|
318
|
-
| Cell | Cell |
|
|
319
|
-
| Cell | Cell |
|
|
320
|
-
| Cell | Cell |
|
|
321
|
-
|
|
322
|
-
`,suffix:"",buttonProps:{"aria-label":"Add table",title:"Add table"},icon:v.jsx("svg",{role:"img",width:"12",height:"12",viewBox:"0 0 512 512",children:v.jsx("path",{fill:"currentColor",d:"M64 256V160H224v96H64zm0 64H224v96H64V320zm224 96V320H448v96H288zM448 256H288V160H448v96zM64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64z"})}),execute:(e,t)=>{var n=vo({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);r.selectedText.length>=e.command.prefix.length+e.command.suffix.length&&r.selectedText.startsWith(e.command.prefix)?Gr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}):(r=t.setSelectionRange({start:e.selection.start,end:e.selection.start}),Gr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}))}},$0e={name:"help",keyCommand:"help",buttonProps:{"aria-label":"Open help",title:"Open help"},icon:v.jsx("svg",{viewBox:"0 0 16 16",width:"12px",height:"12px",children:v.jsx("path",{d:"M8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8Zm.9 13H7v-1.8h1.9V13Zm-.1-3.6v.5H7.1v-.6c.2-2.1 2-1.9 1.9-3.2.1-.7-.3-1.1-1-1.1-.8 0-1.2.7-1.2 1.6H5c0-1.7 1.2-3 2.9-3 2.3 0 3 1.4 3 2.3.1 2.3-1.9 2-2.1 3.5Z",fill:"currentColor"})}),execute:()=>{window.open("https://www.markdownguide.org/basic-syntax/","_blank","noreferrer")}},G0e=()=>[p0e,x0e,D0e,v0e,b0e([I0e,N0e,L0e,F0e,B0e,z0e],{name:"title",groupName:"title",buttonProps:{"aria-label":"Insert title",title:"Insert title"}}),Ly,S0e,R0e,h0e,M8,m0e,E0e,H0e,Ly,T0e,C0e,_0e,Ly,$0e],V0e=()=>[k0e,w0e,A0e,Ly,g0e];function N0(e){var t;return{selection:{start:e.selectionStart,end:e.selectionEnd},text:e.value,selectedText:(t=e.value)==null?void 0:t.slice(e.selectionStart,e.selectionEnd)}}class $_{constructor(t){this.textArea=void 0,this.textArea=t}replaceSelection(t){return ld(this.textArea,t),N0(this.textArea)}setSelectionRange(t){return this.textArea.focus(),this.textArea.selectionStart=t.start,this.textArea.selectionEnd=t.end,N0(this.textArea)}}class G_{constructor(t){this.textArea=void 0,this.textApi=void 0,this.textArea=t,this.textApi=new $_(t)}getState(){return this.textArea?N0(this.textArea):!1}executeCommand(t,n,r,o){t.execute&&t.execute(Le({command:t},N0(this.textArea)),this.textApi,n,r,o)}}function My(e){e.stopPropagation(),e.preventDefault()}function c3(e,t){My(e);var n=e.target,r=new $_(n),o={start:n.selectionStart,end:n.selectionEnd};if(o=eh({text:n.value,selection:o}),!(t<0&&o.start<=0||t>0&&o.end>=n.value.length)){var a=n.value.slice(o.start,o.end);if(t<0){var i=eh({text:n.value,selection:{start:o.start-1,end:o.start-1}}),l=n.value.slice(i.start,i.end);r.setSelectionRange({start:i.start,end:o.end}),ld(n,a+`
|
|
323
|
-
`+l),r.setSelectionRange({start:i.start,end:i.start+a.length})}else{var u=eh({text:n.value,selection:{start:o.end+1,end:o.end+1}}),d=n.value.slice(u.start,u.end);r.setSelectionRange({start:o.start,end:u.end}),ld(n,d+`
|
|
324
|
-
`+a),r.setSelectionRange({start:u.end-a.length,end:u.end})}}}function q0e(e,t,n){t===void 0&&(t=2),n===void 0&&(n=!1);var r=e.target,o=r.value.substr(0,r.selectionStart),a=o.split(`
|
|
325
|
-
`),i=a[a.length-1],l=new $_(r);if(!n&&e.code&&e.code.toLowerCase()==="tab"){My(e);var u=new Array(t+1).join(" ");if(r.selectionStart!==r.selectionEnd){var d=r.value.substring(0,r.selectionStart).split(`
|
|
326
|
-
`),p=r.value.substring(0,r.selectionEnd).split(`
|
|
327
|
-
`),h=[];p.forEach((j,$)=>{j!==d[$]&&h.push(j)});var y=h.join(`
|
|
328
|
-
`),g=r.value.substring(r.selectionStart,r.selectionEnd),b=r.value.substring(0,r.selectionStart).length;l.setSelectionRange({start:r.value.indexOf(y),end:r.selectionEnd});var S=z_(y,e.shiftKey?"":u),T=S.modifiedText;e.shiftKey&&(T=T.split(`
|
|
329
|
-
`).map(j=>j.replace(new RegExp("^"+u),"")).join(`
|
|
330
|
-
`)),l.replaceSelection(T);var E=e.shiftKey?-t:t,A=e.shiftKey?-h.length*t:h.length*t;l.setSelectionRange({start:b+E,end:b+g.length+A})}else return ld(r,u)}else if(e.keyCode===13&&e.code.toLowerCase()==="enter"&&(/^(-|\*)\s/.test(i)||/^\d+.\s/.test(i))&&!e.shiftKey){My(e);var C=`
|
|
331
|
-
- `;return i.startsWith("*")&&(C=`
|
|
332
|
-
* `),(i.startsWith("- [ ]")||i.startsWith("- [X]")||i.startsWith("- [x]"))&&(C=`
|
|
333
|
-
- [ ] `),/^\d+.\s/.test(i)&&(C=`
|
|
334
|
-
`+(parseInt(i)+1)+". "),ld(r,C)}else if(e.code&&e.code.toLowerCase()==="keyd"&&e.ctrlKey){My(e);var D={start:r.selectionStart,end:r.selectionEnd},I=D;D=eh({text:r.value,selection:D});var O=r.value.slice(D.start,D.end);l.setSelectionRange({start:D.end,end:D.end}),ld(r,`
|
|
335
|
-
`+O),l.setSelectionRange({start:I.start,end:I.end})}else e.code&&e.code.toLowerCase()==="arrowup"&&e.altKey?c3(e,-1):e.code&&e.code.toLowerCase()==="arrowdown"&&e.altKey&&c3(e,1)}var W0e=["prefixCls","onChange"],Y0e=["markdown","commands","fullscreen","preview","highlightEnable","extraCommands","tabSize","defaultTabEnable","autoFocusEnd","textareaWarp","dispatch"];function Q0e(e){var{prefixCls:t,onChange:n}=e,r=Kr(e,W0e),o=_.useContext(Vd),{markdown:a,commands:i,fullscreen:l,preview:u,highlightEnable:d,extraCommands:p,tabSize:h,defaultTabEnable:y,autoFocusEnd:g,textareaWarp:b,dispatch:S}=o;Kr(o,Y0e);var T=Fe.useRef(null),E=Fe.useRef(),A=Fe.useRef({fullscreen:l,preview:u});_.useEffect(()=>{A.current={fullscreen:l,preview:u,highlightEnable:d}},[l,u,d]),_.useEffect(()=>{if(T.current&&S){var D=new G_(T.current);E.current=D,S({textarea:T.current,commandOrchestrator:D})}},[]),_.useEffect(()=>{if(g&&T.current&&b){T.current.focus();var D=T.current.value.length;T.current.setSelectionRange(D,D),setTimeout(()=>{b&&(b.scrollTop=b.scrollHeight),T.current&&(T.current.scrollTop=T.current.scrollHeight)},0)}},[b]);var C=D=>{q0e(D,h,y),N8(D,[...i||[],...p||[]],E.current,S,A.current)};return _.useEffect(()=>(T.current&&T.current.addEventListener("keydown",C),()=>{T.current&&T.current.removeEventListener("keydown",C)}),[]),v.jsx("textarea",Le({autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1},r,{ref:T,className:t+"-text-input "+(r.className?r.className:""),value:a,onChange:D=>{S&&S({markdown:D.target.value}),n&&n(D)}}))}var K0e=["prefixCls","className","onScroll","renderTextarea"];function X0e(e){var t=e||{},{prefixCls:n,className:r,onScroll:o,renderTextarea:a}=t,i=Kr(t,K0e),{markdown:l,scrollTop:u,commands:d,extraCommands:p,dispatch:h}=_.useContext(Vd),y=Fe.useRef(null),g=Fe.useRef(),b=Fe.createRef();_.useEffect(()=>{var T={};b.current&&(T.textareaWarp=b.current||void 0,b.current.scrollTop=u||0),h&&h(Le({},T))},[]),_.useEffect(()=>{if(y.current&&h){var T=new G_(y.current);g.current=T,h({textarea:y.current,commandOrchestrator:T})}},[]);var S={WebkitTextFillColor:"initial",overflow:"auto"};return v.jsx("div",{ref:b,className:n+"-area "+(r||""),onScroll:o,children:v.jsx("div",{className:n+"-text",children:a?Fe.cloneElement(a(Le({},i,{value:l,autoComplete:"off",autoCorrect:"off",spellCheck:"false",autoCapitalize:"off",className:n+"-text-input",style:{WebkitTextFillColor:"inherit",overflow:"auto"}}),{dispatch:h,onChange:i.onChange,shortcuts:N8,useContext:{commands:d,extraCommands:p,commandOrchestrator:g.current}}),{ref:y}):v.jsx(_.Fragment,{children:v.jsx(Q0e,Le({prefixCls:n},i,{style:S}))})})})}function Z0e(e){var{prefixCls:t,groupName:n,commands:r,children:o}=e||{},{barPopup:a={}}=_.useContext(Vd);return _.useMemo(()=>v.jsx("div",{className:t+"-toolbar-child "+(n&&a[n]?"active":""),onClick:i=>i.stopPropagation(),children:Array.isArray(r)?v.jsx(j8,Le({commands:r},e,{isChild:!0})):o}),[r,a,n,t])}function u3(e){var{prefixCls:t,overflow:n}=e,{fullscreen:r,preview:o,barPopup:a={},components:i,commandOrchestrator:l,dispatch:u}=_.useContext(Vd),d=_.useRef("");function p(h,y){if(u){var g={barPopup:Le({},a)};h.keyCommand==="preview"&&(g.preview=h.value),h.keyCommand==="fullscreen"&&(g.fullscreen=!r),e.commands&&h.keyCommand==="group"?e.commands.forEach(b=>{y===b.groupName?g.barPopup[y]=!0:b.keyCommand&&(g.barPopup[b.groupName]=!1)}):(y||h.parent)&&Object.keys(g.barPopup||{}).forEach(b=>{g.barPopup[b]=!1}),Object.keys(g).length&&u(Le({},g)),l&&l.executeCommand(h)}}return _.useEffect(()=>{document&&n&&(r?document.body.style.overflow="hidden":(d.current||(d.current=window.getComputedStyle(document.body,null).overflow),document.body.style.overflow=d.current))},[r,d,n]),v.jsx("ul",{children:(e.commands||[]).map((h,y)=>{if(h.keyCommand==="divider")return v.jsx("li",Le({},h.liProps,{className:t+"-toolbar-divider"}),y);if(!h.keyCommand)return v.jsx(_.Fragment,{},y);var g=r&&h.keyCommand==="fullscreen"||h.keyCommand==="preview"&&o===h.value,b=h.children&&typeof h.children=="function"?h.children({getState:()=>l.getState(),textApi:l?l.textApi:void 0,close:()=>p({},h.groupName),execute:()=>p({execute:h.execute}),dispatch:u}):void 0,S=a&&o&&o==="preview"&&!/(preview|fullscreen)/.test(h.keyCommand),T=i?.toolbar||h.render,E=T&&typeof T=="function"?T(h,!!S,p,y):null;return v.jsxs("li",Le({},h.liProps,{className:g?"active":"",children:[E&&Fe.isValidElement(E)&&E,!E&&!h.buttonProps&&h.icon,!E&&h.buttonProps&&Fe.createElement("button",Le({type:"button",key:y,disabled:S,"data-name":h.name},h.buttonProps,{onClick:A=>{A.stopPropagation(),p(h,h.groupName)}}),h.icon),h.children&&v.jsx(Z0e,{overflow:n,groupName:h.groupName,prefixCls:t,children:b,commands:Array.isArray(h.children)?h.children:void 0})]}),y)})})}function j8(e){e===void 0&&(e={});var{prefixCls:t,isChild:n,className:r}=e,{commands:o,extraCommands:a}=_.useContext(Vd);return v.jsxs("div",{className:t+"-toolbar "+r,children:[v.jsx(u3,Le({},e,{commands:e.commands||o||[]})),!n&&v.jsx(u3,Le({},e,{commands:a||[]}))]})}function d3(e){var{hideToolbar:t,toolbarBottom:n,placement:r,overflow:o,prefixCls:a}=e;if(t||r==="bottom"&&!n||r==="top"&&n)return null;var i=n?"bottom":"";return v.jsx(j8,{prefixCls:a,overflow:o,className:i})}var J0e=e=>{var{prefixCls:t,onChange:n}=e||{},r=_.useRef(null),o=_.useRef(),a=_.useRef(e.height);_.useEffect(()=>{a.current!==e.height&&(a.current=e.height)},[e.height]);function i(p){if(o.current){var h,y=p.clientY||((h=p.changedTouches[0])==null?void 0:h.clientY),g=o.current.height+y-o.current.dragY;g>=e.minHeight&&g<=e.maxHeight&&n&&n(o.current.height+(y-o.current.dragY))}}function l(){var p,h;o.current=void 0,document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",l),(p=r.current)==null||p.removeEventListener("touchmove",i),(h=r.current)==null||h.removeEventListener("touchend",l)}function u(p){var h,y,g;p.preventDefault();var b=p.clientY||((h=p.changedTouches[0])==null?void 0:h.clientY);o.current={height:a.current,dragY:b},document.addEventListener("mousemove",i),document.addEventListener("mouseup",l),(y=r.current)==null||y.addEventListener("touchmove",i,{passive:!1}),(g=r.current)==null||g.addEventListener("touchend",l,{passive:!1})}_.useEffect(()=>{if(document){var p,h;(p=r.current)==null||p.addEventListener("touchstart",u,{passive:!1}),(h=r.current)==null||h.addEventListener("mousedown",u)}return()=>{if(document){var y;(y=r.current)==null||y.removeEventListener("touchstart",u),document.removeEventListener("mousemove",i)}}},[]);var d=_.useMemo(()=>v.jsx("svg",{viewBox:"0 0 512 512",height:"100%",children:v.jsx("path",{fill:"currentColor",d:"M304 256c0 26.5-21.5 48-48 48s-48-21.5-48-48 21.5-48 48-48 48 21.5 48 48zm120-48c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zm-336 0c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48z"})}),[]);return v.jsx("div",{className:t+"-bar",ref:r,children:d})},ebe=["prefixCls","className","value","commands","commandsFilter","direction","extraCommands","height","enableScroll","visibleDragbar","highlightEnable","preview","fullscreen","overflow","previewOptions","textareaProps","maxHeight","minHeight","autoFocus","autoFocusEnd","tabSize","defaultTabEnable","onChange","onStatistics","onHeightChange","hideToolbar","toolbarBottom","components","renderTextarea"];function tbe(e){return e===void 0&&(e={}),Object.keys(e).forEach(t=>{e[t]=!1}),e}var nbe=Fe.forwardRef((e,t)=>{var n=e||{},{prefixCls:r="w-md-editor",className:o,value:a,commands:i=G0e(),commandsFilter:l,direction:u,extraCommands:d=V0e(),height:p=200,enableScroll:h=!0,visibleDragbar:y=typeof e.visiableDragbar=="boolean"?e.visiableDragbar:!0,highlightEnable:g=!0,preview:b="live",fullscreen:S=!1,overflow:T=!0,previewOptions:E={},textareaProps:A,maxHeight:C=1200,minHeight:D=100,autoFocus:I,autoFocusEnd:O=!1,tabSize:j=2,defaultTabEnable:$=!1,onChange:z,onStatistics:L,onHeightChange:H,hideToolbar:k,toolbarBottom:F=!1,components:B,renderTextarea:G}=n,U=Kr(n,ebe),Q=i.map(qe=>l?l(qe,!1):qe).filter(Boolean),Y=d.map(qe=>l?l(qe,!0):qe).filter(Boolean),[oe,N]=_.useReducer(d0e,{markdown:a,preview:b,components:B,height:p,minHeight:D,highlightEnable:g,tabSize:j,defaultTabEnable:$,scrollTop:0,scrollTopPreview:0,commands:Q,extraCommands:Y,fullscreen:S,barPopup:{}}),K=_.useRef(null),X=_.useRef(null),P=_.useRef(h);_.useImperativeHandle(t,()=>Le({},oe,{container:K.current,dispatch:N})),_.useMemo(()=>P.current=h,[h]),_.useEffect(()=>{var qe={};K.current&&(qe.container=K.current||void 0),qe.markdown=a||"",qe.barPopup={},N&&N(Le({},oe,qe))},[]);var J=[o,"wmde-markdown-var",u?r+"-"+u:null,r,oe.preview?r+"-show-"+oe.preview:null,oe.fullscreen?r+"-fullscreen":null].filter(Boolean).join(" ").trim();_.useMemo(()=>a!==oe.markdown&&N({markdown:a||""}),[a,oe.markdown]),_.useMemo(()=>b!==oe.preview&&N({preview:b}),[b]),_.useMemo(()=>j!==oe.tabSize&&N({tabSize:j}),[j]),_.useMemo(()=>g!==oe.highlightEnable&&N({highlightEnable:g}),[g]),_.useMemo(()=>I!==oe.autoFocus&&N({autoFocus:I}),[I]),_.useMemo(()=>O!==oe.autoFocusEnd&&N({autoFocusEnd:O}),[O]),_.useMemo(()=>S!==oe.fullscreen&&N({fullscreen:S}),[S]),_.useMemo(()=>p!==oe.height&&N({height:p}),[p]),_.useMemo(()=>p!==oe.height&&H&&H(oe.height,p,oe),[p,H,oe]),_.useMemo(()=>i!==oe.commands&&N({commands:Q}),[e.commands]),_.useMemo(()=>d!==oe.extraCommands&&N({extraCommands:Y}),[e.extraCommands]);var se=_.useRef(),ne=_.useRef("preview"),be=_.useRef(!1);_.useMemo(()=>{se.current=oe.textareaWarp,oe.textareaWarp&&(oe.textareaWarp.addEventListener("mouseover",()=>{ne.current="text"}),oe.textareaWarp.addEventListener("mouseleave",()=>{ne.current="preview"}))},[oe.textareaWarp]);var fe=(qe,Rt)=>{if(P.current){var ot=se.current,tt=X.current?X.current:void 0;if(be.current||(ne.current=Rt,be.current=!0),ot&&tt){var je=(ot.scrollHeight-ot.offsetHeight)/(tt.scrollHeight-tt.offsetHeight);qe.target===ot&&ne.current==="text"&&(tt.scrollTop=ot.scrollTop/je),qe.target===tt&&ne.current==="preview"&&(ot.scrollTop=tt.scrollTop*je);var Be=0;ne.current==="text"?Be=ot.scrollTop||0:ne.current==="preview"&&(Be=tt.scrollTop||0),N({scrollTop:Be})}}},De=r+"-preview "+(E.className||""),Ce=qe=>fe(qe,"preview"),Se=_.useMemo(()=>v.jsx("div",{ref:X,className:De,children:v.jsx(I8,Le({},E,{onScroll:Ce,source:oe.markdown||""}))}),[De,E,oe.markdown]),ze=B?.preview&&B?.preview(oe.markdown||"",oe,N);ze&&Fe.isValidElement(ze)&&(Se=v.jsx("div",{className:De,ref:X,onScroll:Ce,children:ze}));var Ne=Le({},U.style,{height:oe.height||"100%"}),_e=()=>N({barPopup:Le({},tbe(oe.barPopup))}),Ct=qe=>N({height:qe}),At=qe=>{if(z&&z(qe.target.value,qe,oe),A&&A.onChange&&A.onChange(qe),oe.textarea&&oe.textarea instanceof HTMLTextAreaElement&&L){var Rt=new G_(oe.textarea),ot=Rt.getState()||{};L(Le({},ot,{lineCount:qe.target.value.split(`
|
|
336
|
-
`).length,length:qe.target.value.length}))}};return v.jsx(Vd.Provider,{value:Le({},oe,{dispatch:N}),children:v.jsxs("div",Le({ref:K,className:J},U,{onClick:_e,style:Ne,children:[v.jsx(d3,{hideToolbar:k,toolbarBottom:F,prefixCls:r,overflow:T,placement:"top"}),v.jsxs("div",{className:r+"-content",children:[/(edit|live)/.test(oe.preview||"")&&v.jsx(X0e,Le({className:r+"-input",prefixCls:r,autoFocus:I},A,{onChange:At,renderTextarea:B?.textarea||G,onScroll:qe=>fe(qe,"text")})),/(live|preview)/.test(oe.preview||"")&&Se]}),y&&!oe.fullscreen&&v.jsx(J0e,{prefixCls:r,height:oe.height,maxHeight:C,minHeight:D,onChange:Ct}),v.jsx(d3,{hideToolbar:k,toolbarBottom:F,prefixCls:r,overflow:T,placement:"bottom"})]}))})}),B8=nbe;B8.Markdown=I8;function rbe({cell:e,sourceAndPaths:t,resourceUri:n,onQueryChange:r,onSourceChange:o}){const a={query:e.value,malloyResult:e.result?JSON.parse(e.result):void 0,malloyQuery:e.queryInfo?JSON.parse(e.queryInfo):void 0},i=t.findIndex(l=>l.sourceInfo.name===e.sourceName);return v.jsx(OL,{resourceUri:n,sourceAndPaths:t,selectedSourceIndex:i>=0?i:0,existingQuery:a,onQueryChange:r,onSourceChange:o})}function obe({cell:e,editingMalloy:t,editingMarkdown:n,sourceAndPaths:r,resourceUri:o,onCellChange:a,onClose:i,onEdit:l,onDelete:u,addButtonCallback:d}){const[p,h]=_.useState(e.value),[y,g]=Fe.useState(!1),[b,S]=Fe.useState(!1),[T,E]=Fe.useState(),[A]=Fe.useState(),[C,D]=Fe.useState(ky()),[I,O]=Fe.useState(!1),[j,$]=Fe.useState(e.sourceName?r.findIndex(K=>K.sourceInfo.name===e.sourceName):0);_.useEffect(()=>{e.isMarkdown||C0(e.value,"malloy").then(K=>{E(K)})},[e]),Fe.useEffect(()=>{document.documentElement.setAttribute("data-color-mode","light")});const[z,L]=_.useState(!1),H=()=>{u(),L(!1)},k=r.length===0,F=Fe.useCallback(()=>{const K=r[j],X=K?.modelPath||e.modelPath||"",P=K?.sourceInfo.name||e.sourceName||"";a({...e,value:e.isMarkdown?p:C.query,result:C.malloyResult?JSON.stringify(C.malloyResult):void 0,queryInfo:C.malloyQuery?JSON.stringify(C.malloyQuery):void 0,sourceName:P,modelPath:X})},[e,p,C,a,j,r]),B=v.jsx(wo,{title:"Delete Cell",children:v.jsx(Gn,{size:"small",onClick:()=>L(!0),children:v.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:v.jsx("path",{d:"M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2m2 0v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6h14zM10 11v6M14 11v6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})}),G=v.jsxs(xl,{open:z,onClose:()=>L(!1),children:[v.jsx(Tl,{children:"Confirm Delete"}),v.jsx(Sl,{children:v.jsx(Ze,{children:"Are you sure you want to delete this cell?"})}),v.jsxs(NP,{children:[v.jsx(Fa,{onClick:()=>L(!1),children:"Cancel"}),v.jsx(Fa,{onClick:H,color:"error",children:"Delete"})]})]}),U=()=>{F(),i()},Q=e.isMarkdown?v.jsxs(v.Fragment,{children:[n?v.jsx(wo,{title:"Save",children:v.jsx(Gn,{size:"small",onClick:U,children:v.jsx(Qg,{})})}):v.jsx(wo,{title:"Edit",children:v.jsx(Gn,{size:"small",onClick:l,children:v.jsx(FO,{})})}),!n&&B]}):v.jsxs(v.Fragment,{children:[!t&&v.jsx(wo,{title:y?"Hide Code":"View Code",children:v.jsx(Gn,{size:"small",onClick:()=>{g(!y)},children:v.jsx(CM,{})})}),!t&&e.result&&v.jsx(wo,{title:b?"Hide Embedding":"View Embedding",children:v.jsx(Gn,{size:"small",onClick:()=>{S(!b)},children:v.jsx($ie,{})})}),t&&v.jsx(wo,{title:"Save",children:v.jsx(Gn,{size:"small",onClick:U,children:v.jsx(Qg,{})})}),!t&&v.jsx(wo,{title:"Edit",children:v.jsx(Gn,{size:"small",onClick:l,children:v.jsx(FO,{})})}),!t&&B]}),Y=t||n,oe=n?v.jsx(wo,{title:"Save",children:v.jsx(Gn,{size:"small",onClick:U,children:v.jsx(Qg,{})})}):t?v.jsx(wo,{title:"Save",children:v.jsx(Gn,{size:"small",onClick:U,children:v.jsx(Qg,{})})}):null,N=I&&v.jsx(gt,{sx:{position:"absolute",top:"4px",right:"4px",display:"flex",gap:"8px",backgroundColor:"background.paper",border:"1px solid",borderColor:"divider",borderRadius:"8px",padding:"2px 4px",boxShadow:1,zIndex:10},children:!Y&&v.jsxs(v.Fragment,{children:[d(!0),d(!1),Q]})||oe});return v.jsxs(f0,{sx:{position:"relative",marginTop:"5px",marginBottom:"5px",borderWidth:"1.5px",backgroundColor:"#fff",minHeight:"50px"},onMouseEnter:()=>O(!0),onMouseLeave:()=>{O(!1)},children:[N,e.isMarkdown?v.jsx(v.Fragment,{children:n?v.jsx(B8,{value:p,preview:"edit",autoFocus:!0,onChange:K=>{h(K),a({...e,value:K})},onBlur:()=>{F(),I||U()}}):v.jsx(gt,{sx:{px:.5,pt:0,mt:0,"& h1, & h2, & h3, & h4, & h5, & h6":{mt:.5,mb:.5},"& p":{mt:.5,mb:.5},"& ul, & ol":{mt:.5,mb:.5},"& li":{mt:0,mb:0},"& pre, & code":{mt:.5,mb:.5},"& blockquote":{mt:.5,mb:.5}},children:e.value?v.jsx(gt,{onClick:l,sx:{cursor:"pointer"},children:v.jsx(o0,{children:e.value})}):v.jsxs(gt,{onClick:l,sx:{cursor:"pointer"},children:[v.jsx(Ze,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"Markdown is empty"}),v.jsx(Ze,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Click to edit."})]})})}):v.jsxs(v.Fragment,{children:[v.jsx(Qy,{in:b,timeout:"auto",unmountOnExit:!0,children:v.jsx(Mr,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:v.jsx(Ze,{component:"div",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},dangerouslySetInnerHTML:{__html:A}})})}),v.jsx(Qy,{in:y,timeout:"auto",unmountOnExit:!0,children:v.jsx(Mr,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:v.jsx(Ze,{component:"div",className:"content",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},dangerouslySetInnerHTML:{__html:T}})})}),t&&(k?v.jsxs(v.Fragment,{children:[v.jsx(Ze,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"No Model Imports"}),v.jsx(Ze,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Please add a model import above."})]}):v.jsx(rbe,{sourceAndPaths:r,resourceUri:o,onQueryChange:K=>{D(K)},onSourceChange:K=>{$(K)},cell:e})),!t&&e.result&&v.jsx(f0,{variant:"outlined",sx:{borderRadius:0},children:v.jsx(qb,{result:e.result,minHeight:300,maxHeight:800})}),!t&&!e.result&&v.jsxs(gt,{onClick:l,sx:{cursor:"pointer"},children:[v.jsx(Ze,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"Explore is empty"}),v.jsx(Ze,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Click to edit."})]})]}),z&&G]})}const U8=_.createContext(void 0);function abe({children:e,workbookStorage:t}){const n=_.useMemo(()=>({workbookStorage:t}),[t]);return v.jsx(U8.Provider,{value:n,children:e})}function ibe(){const e=_.useContext(U8);if(!e)throw new Error("useWorkbookStorage must be used within a WorkbookStorageProvider");return e}const sbe=Mn(v.jsx("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5z"}));function lbe({initialSelectedModels:e,onModelChange:t,resourceUri:n}){const{projectName:r,packageName:o,versionId:a}=Vn(n),{apiClients:i}=kn(),{data:l,isLoading:u,isSuccess:d,isError:p,error:h}=no({queryKey:["models",r,o,a],queryFn:()=>i.models.listModels(r,o,a)}),[y,g]=Fe.useState(e||[]),[b,S]=Fe.useState(null);Fe.useEffect(()=>{g(e||[])},[e]);const T=C=>{const D=y.filter(I=>I!==C);g(D),t(D)},E=C=>{const D=[...y,C];g(D),t(D),S(null)};let A=[];return d&&l?.data&&(A=l.data.filter(C=>!y.includes(C.path)).map(C=>C.path)),p?v.jsx(to,{error:h,context:`${r} > ${o} > Model Picker`}):v.jsxs(v.Fragment,{children:[v.jsxs(eY,{fullWidth:!0,children:[u&&v.jsx(Ze,{children:"Loading..."}),v.jsxs(Mr,{direction:"row",spacing:1,children:[y.map(C=>v.jsx(yy,{label:C,onDelete:()=>T(C),deleteIcon:v.jsx(kl,{}),sx:{marginBottom:"5px"}},C)),v.jsx(Fa,{size:"small",startIcon:v.jsx(sbe,{}),onClick:C=>S(C.currentTarget),disabled:u||p||A.length===0,children:"Add Model"})]})]}),v.jsxs(ub,{anchorEl:b,open:!!b,onClose:()=>S(null),children:[v.jsx(Ze,{variant:"subtitle2",sx:{ml:1},children:"Models"}),v.jsx(ds,{}),A.length===0?v.jsx(Cl,{disabled:!0,children:"No models available"}):A.map(C=>v.jsx(Cl,{onClick:()=>E(C),children:v.jsx(Ze,{variant:"body2",children:C})},C))]})]})}function cbe(){const e=u5();return(t,n)=>{if(!n||!n.metaKey&&!n.ctrlKey&&!n.shiftKey&&n.button!==1){e(t);return}const r=new URL(t,window.location.href).href;(n.metaKey||n.ctrlKey||n.button===1||n.shiftKey)&&window.open(r,"_blank")}}function VTe({workbookPath:e,resourceUri:t}){const n=cbe(),{server:r,getAccessToken:o}=kn(),{apiClients:a}=kn(),{workbookStorage:i}=ibe(),{projectName:l,packageName:u}=Vn(t),[d,p]=Fe.useState(void 0),[h,y]=Fe.useState(void 0);if(!i)throw new Error("Workbook storage be provided via WorkbookStorageProvider");const[g,b]=Fe.useState(),[S,T]=Fe.useState(),[E,A]=Fe.useState(),[C,D]=Fe.useState([]),[I,O]=Fe.useState(null),[j,$]=Fe.useState(null),z=!!I,L=()=>{O(null),$(null)},H=(K,X)=>{g&&(b(g.insertCell(X,{isMarkdown:K,value:""})),K?A(X):T(X),L(),console.log("handleAddCell",K,X))},[k,F]=Fe.useState(!1),B=()=>{F(!0)},G=async()=>{e&&i&&await i.deleteWorkbook(e).then(()=>{y(void 0),p(void 0)}).catch(K=>{y(`Error deleting workbook: ${K.message}`),p(void 0)}),F(!1),n(`/${l}/${u}`)},U=()=>{F(!1)},Q=Fe.useCallback(async()=>{if(!g){console.log("No workbook data ref");return}try{b(await g.saveWorkbook()),y(void 0),p("Workbook saved")}catch(K){y(`Error saving workbook: ${K.message}`),p(void 0)}},[g]);if(Fe.useEffect(()=>{g&&(async()=>{const K=new Map(C.map(({modelPath:J,sourceInfos:se})=>[J,se])),X=[],P=[];for(const J of g.getModels())K.has(J)?X.push({modelPath:J,sourceInfos:K.get(J)}):(console.log("Fetching model from Publisher",J),P.push(a.models.getModel(l,u,J,void 0).then(se=>({modelPath:J,sourceInfos:se.data.sourceInfos.map(ne=>JSON.parse(ne))}))));if(P.length>0){const J=await Promise.all(P);D([...X,...J])}else D(X)})()},[o,g,u,l,r]),Fe.useEffect(()=>{e&&Gp.loadWorkbook(i,e).then(K=>{b(K)})},[e,i]),!g)return v.jsx("div",{children:"Loading..."});const Y=K=>{const X=[];for(const P of K)for(const J of P.sourceInfos)X.push({modelPath:P.modelPath,sourceInfo:J});return X},oe=(K,X)=>v.jsx(Fa,{size:"small",startIcon:v.jsx(Hie,{}),onClick:()=>H(K,X),variant:"contained",sx:{backgroundColor:"#fff",color:P=>P.palette.mode==="dark"?P.palette.grey[100]:P.palette.grey[700],boxShadow:"none","&:hover":{backgroundColor:P=>P.palette.mode==="dark"?P.palette.grey[500]:P.palette.grey[300],boxShadow:"none"}},children:K?"Markdown":"Explore"}),N=v.jsxs(gt,{sx:{display:"flex",gap:1,justifyContent:"center",flex:2},children:[oe(!1,g.getCells().length),oe(!0,g.getCells().length)]});return v.jsxs(f0,{variant:"outlined",children:[v.jsxs(DL,{children:[v.jsx(gt,{sx:{mb:2},children:v.jsx(gt,{sx:{minHeight:"24px"},children:h?v.jsx(Ze,{color:"error",variant:"body2",children:h}):d?v.jsx(Ze,{color:"success",variant:"body2",children:d}):v.jsx("span",{children:" "})})}),v.jsxs(Fu,{sx:{flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:[v.jsxs(Fu,{direction:"row",spacing:1,alignItems:"center",children:[v.jsx(Ze,{variant:"overline",sx:{fontSize:"13px",fontWeight:"bold",verticalAlign:"middle"},children:"Workbook"}),v.jsx(Ze,{variant:"subtitle2",sx:{fontSize:"13px",fontWeight:"normal",verticalAlign:"middle",ml:1},children:`${e.workspace} > ${e.path}`})]}),v.jsxs(Fu,{sx:{display:"flex",flexDirection:"row",gap:1},children:[v.jsx(gt,{sx:{display:"flex",alignItems:"center",mt:1,mb:1},children:v.jsx(ube,{workbookData:g})}),v.jsxs(gt,{sx:{display:"flex",alignItems:"center",mt:1,mb:1},children:[v.jsx(Fa,{color:"error",onClick:B,size:"small",children:"Delete"}),v.jsxs(xl,{open:k,onClose:U,children:[v.jsx(Tl,{children:"Delete Workbook"}),v.jsx(Sl,{children:v.jsxs(GW,{children:['Are you sure you want to delete the workbook "',e.path,'"? This action cannot be undone.']})}),v.jsxs(NP,{children:[v.jsx(Fa,{onClick:U,color:"primary",size:"small",children:"Cancel"}),v.jsx(Fa,{onClick:G,color:"error",autoFocus:!0,size:"small",children:"Delete"})]})]})]})]})]}),v.jsx(ds,{}),v.jsxs(Fu,{sx:{display:"flex",flexDirection:"row",width:"100%",mt:2},children:[v.jsx(gt,{sx:{flex:1},children:v.jsx(lbe,{initialSelectedModels:g.getModels(),onModelChange:K=>{b(g.setModels(K)),Q()},resourceUri:t})}),v.jsx(gt,{sx:{flex:1}})]})]}),v.jsx(l_,{children:v.jsxs(Fu,{children:[g.getCells().length===0&&v.jsxs(v.Fragment,{children:[v.jsx(Ze,{sx:{textAlign:"center",p:2,variant:"subtitle2",fontWeight:"medium"},children:"Workbook is empty"}),v.jsx(Ze,{variant:"body2",sx:{textAlign:"center",mb:2,variant:"body2"},children:"Click the + buttons to add a markdown or code cell."})]}),g.getCells().map((K,X)=>v.jsx(Fe.Fragment,{children:v.jsx(obe,{cell:K,resourceUri:t,addButtonCallback:P=>oe(P,X),sourceAndPaths:Y(C),editingMarkdown:E===X,editingMalloy:S===X,onDelete:()=>{b(g.deleteCell(X)),Q()},onCellChange:P=>{b(g.setCell(X,P))},onEdit:()=>{K.isMarkdown?A(X):T(X)},onClose:()=>{K.isMarkdown?A(void 0):T(void 0),Q()}},`${X}-${K.isMarkdown}-${e.workspace}-${e.path}`)},`${X}-${g.getCells().length}`)),N,v.jsxs(ub,{anchorEl:I,open:z,onClose:L,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[v.jsx(Cl,{onClick:()=>H(!0,j??0),children:"Add Markdown"}),v.jsx(Cl,{onClick:()=>H(!1,j??0),children:"Add Malloy"})]}),v.jsx(Fu,{sx:{flexDirection:"row",justifyContent:"flex-end",p:1}})]})})]})}function ube({workbookData:e}){const[t,n]=Fe.useState(!1);return v.jsx(Fa,{color:"primary",onClick:async()=>{if(!e)return;const r=e.toMalloyWorkbook();try{await navigator.clipboard.writeText(r),n(!0),setTimeout(()=>n(!1),1500)}catch{n(!1),alert("Failed to copy to clipboard")}},size:"small",children:t?"Copied!":"Export"})}const f3="Local";class dbe{async listWorkspaces(t){return Promise.resolve([{name:f3,description:"Stored locally- only accessible to this browser",writeable:!0}])}async listWorkbooks(t){const n=[];for(let r=0;r<localStorage.length;r++){const o=localStorage.key(r);n.push({path:o,workspace:f3})}return n}async getWorkbook(t){const n=localStorage.getItem(t.path);if(n===null)throw new Error(`Notebook not found at path: ${t}`);return n}async deleteWorkbook(t){if(localStorage.getItem(t.path)===null)throw new Error(`Notebook not found at path: ${t}`);localStorage.removeItem(t.path)}async saveWorkbook(t,n){localStorage.setItem(t.path,n)}async moveWorkbook(t,n){const r=localStorage.getItem(t.path);if(r===null)throw new Error(`Notebook not found at path: ${t.path}`);localStorage.setItem(n.path,r),localStorage.removeItem(t.path)}}const z8=Mn(v.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}));function fbe({resourceUri:e}){const{apiClients:t}=kn(),{projectName:n,packageName:r,versionId:o}=Vn(e),{data:a,isSuccess:i,isError:l,error:u}=no({queryKey:["package",n,r,o],queryFn:()=>t.packages.getPackage(n,r,o,!1)});return v.jsx(bs,{children:v.jsxs(vs,{children:[v.jsx(Ol,{children:"Package Config"}),v.jsx(gt,{sx:{maxHeight:"200px",overflowY:"auto"},children:v.jsxs(lb,{dense:!0,disablePadding:!0,children:[v.jsx(Mg,{dense:!0,disablePadding:!0,children:v.jsx(ls,{primary:"Name",primaryTypographyProps:{fontWeight:"500"},secondary:r})}),!i&&!l&&v.jsx(Mg,{children:v.jsx(eo,{text:"Fetching Package Metadata..."})}),i&&(a.data&&v.jsx(Mg,{dense:!0,disablePadding:!0,children:v.jsx(ls,{primary:"Description",primaryTypographyProps:{fontWeight:"500"},secondary:a.data.description})})||v.jsxs(Mg,{disablePadding:!0,dense:!0,sx:{mt:"20px"},children:[v.jsx(z8,{sx:{color:"grey.600",mr:"10px"}}),v.jsx(ls,{primary:"No package manifest"})]})),l&&v.jsx(to,{error:u,context:`${n} > ${r} > ${o}`})]})})]})})}function p3(e){try{return e.matches(":focus-visible")}catch{}return!1}const h3={};function H8(e,t){const n=_.useRef(h3);return n.current===h3&&(n.current=e(t)),n}class P0{static create(){return new P0}static use(){const t=H8(P0.create).current,[n,r]=_.useState(!1);return t.shouldMount=n,t.setShouldMount=r,_.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=hbe(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function pbe(){return P0.use()}function hbe(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function kT(e,t){return kT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},kT(e,t)}function $8(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,kT(e,t)}const m3={disabled:!1},L0=Fe.createContext(null);var mbe=function(e){return e.scrollTop},Ip="unmounted",ac="exited",ic="entering",qu="entered",wT="exiting",Qa=(function(e){$8(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var i=o,l=i&&!i.isMounting?r.enter:r.appear,u;return a.appearStatus=null,r.in?l?(u=ac,a.appearStatus=ic):u=qu:r.unmountOnExit||r.mountOnEnter?u=Ip:u=ac,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(r,o){var a=r.in;return a&&o.status===Ip?{status:ac}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var o=null;if(r!==this.props){var a=this.state.status;this.props.in?a!==ic&&a!==qu&&(o=ic):(a===ic||a===qu)&&(o=wT)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,o,a,i;return o=a=i=r,r!=null&&typeof r!="number"&&(o=r.exit,a=r.enter,i=r.appear!==void 0?r.appear:a),{exit:o,enter:a,appear:i}},n.updateStatus=function(r,o){if(r===void 0&&(r=!1),o!==null)if(this.cancelNextCallback(),o===ic){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:sl.findDOMNode(this);a&&mbe(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ac&&this.setState({status:Ip})},n.performEnter=function(r){var o=this,a=this.props.enter,i=this.context?this.context.isMounting:r,l=this.props.nodeRef?[i]:[sl.findDOMNode(this),i],u=l[0],d=l[1],p=this.getTimeouts(),h=i?p.appear:p.enter;if(!r&&!a||m3.disabled){this.safeSetState({status:qu},function(){o.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:ic},function(){o.props.onEntering(u,d),o.onTransitionEnd(h,function(){o.safeSetState({status:qu},function(){o.props.onEntered(u,d)})})})},n.performExit=function(){var r=this,o=this.props.exit,a=this.getTimeouts(),i=this.props.nodeRef?void 0:sl.findDOMNode(this);if(!o||m3.disabled){this.safeSetState({status:ac},function(){r.props.onExited(i)});return}this.props.onExit(i),this.safeSetState({status:wT},function(){r.props.onExiting(i),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:ac},function(){r.props.onExited(i)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,o){o=this.setNextCallback(o),this.setState(r,o)},n.setNextCallback=function(r){var o=this,a=!0;return this.nextCallback=function(i){a&&(a=!1,o.nextCallback=null,r(i))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(r,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:sl.findDOMNode(this),i=r==null&&!this.props.addEndListener;if(!a||i){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=l[0],d=l[1];this.props.addEndListener(u,d)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===Ip)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var i=Kr(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Fe.createElement(L0.Provider,{value:null},typeof a=="function"?a(r,i):Fe.cloneElement(Fe.Children.only(a),i))},t})(Fe.Component);Qa.contextType=L0;Qa.propTypes={};function zu(){}Qa.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:zu,onEntering:zu,onEntered:zu,onExit:zu,onExiting:zu,onExited:zu};Qa.UNMOUNTED=Ip;Qa.EXITED=ac;Qa.ENTERING=ic;Qa.ENTERED=qu;Qa.EXITING=wT;function gbe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V_(e,t){var n=function(o){return t&&_.isValidElement(o)?t(o):o},r=Object.create(null);return e&&_.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function ybe(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}var r=Object.create(null),o=[];for(var a in e)a in t?o.length&&(r[a]=o,o=[]):o.push(a);var i,l={};for(var u in t){if(r[u])for(i=0;i<r[u].length;i++){var d=r[u][i];l[r[u][i]]=n(d)}l[u]=n(u)}for(i=0;i<o.length;i++)l[o[i]]=n(o[i]);return l}function bc(e,t,n){return n[t]!=null?n[t]:e.props[t]}function bbe(e,t){return V_(e.children,function(n){return _.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:bc(n,"appear",e),enter:bc(n,"enter",e),exit:bc(n,"exit",e)})})}function vbe(e,t,n){var r=V_(e.children),o=ybe(t,r);return Object.keys(o).forEach(function(a){var i=o[a];if(_.isValidElement(i)){var l=a in t,u=a in r,d=t[a],p=_.isValidElement(d)&&!d.props.in;u&&(!l||p)?o[a]=_.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:bc(i,"exit",e),enter:bc(i,"enter",e)}):!u&&l&&!p?o[a]=_.cloneElement(i,{in:!1}):u&&l&&_.isValidElement(d)&&(o[a]=_.cloneElement(i,{onExited:n.bind(null,i),in:d.props.in,exit:bc(i,"exit",e),enter:bc(i,"enter",e)}))}}),o}var Ebe=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},xbe={component:"div",childFactory:function(e){return e}},q_=(function(e){$8(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var i=a.handleExited.bind(gbe(a));return a.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},a}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(r,o){var a=o.children,i=o.handleExited,l=o.firstRender;return{children:l?bbe(r,i):vbe(r,a,i),firstRender:!1}},n.handleExited=function(r,o){var a=V_(this.props.children);r.key in a||(r.props.onExited&&r.props.onExited(o),this.mounted&&this.setState(function(i){var l=Le({},i.children);return delete l[r.key],{children:l}}))},n.render=function(){var r=this.props,o=r.component,a=r.childFactory,i=Kr(r,["component","childFactory"]),l=this.state.contextValue,u=Ebe(this.state.children).map(a);return delete i.appear,delete i.enter,delete i.exit,o===null?Fe.createElement(L0.Provider,{value:l},u):Fe.createElement(L0.Provider,{value:l},Fe.createElement(o,i,u))},t})(Fe.Component);q_.propTypes={};q_.defaultProps=xbe;const Sbe=[];function Tbe(e){_.useEffect(e,Sbe)}class W_{static create(){return new W_}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function ov(){const e=H8(W_.create).current;return Tbe(e.disposeEffect),e}function Cbe(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:i,in:l,onExited:u,timeout:d}=e,[p,h]=_.useState(!1),y=xt(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},b=xt(n.child,p&&n.childLeaving,r&&n.childPulsate);return!l&&!p&&h(!0),_.useEffect(()=>{if(!l&&u!=null){const S=setTimeout(u,d);return()=>{clearTimeout(S)}}},[u,l,d]),v.jsx("span",{className:y,style:g,children:v.jsx("span",{className:b})})}const ba=Ht("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),RT=550,_be=80,Abe=wi`
|
|
337
|
-
0% {
|
|
338
|
-
transform: scale(0);
|
|
339
|
-
opacity: 0.1;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
100% {
|
|
343
|
-
transform: scale(1);
|
|
344
|
-
opacity: 0.3;
|
|
345
|
-
}
|
|
346
|
-
`,kbe=wi`
|
|
347
|
-
0% {
|
|
348
|
-
opacity: 1;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
100% {
|
|
352
|
-
opacity: 0;
|
|
353
|
-
}
|
|
354
|
-
`,wbe=wi`
|
|
355
|
-
0% {
|
|
356
|
-
transform: scale(1);
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
50% {
|
|
360
|
-
transform: scale(0.92);
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
100% {
|
|
364
|
-
transform: scale(1);
|
|
365
|
-
}
|
|
366
|
-
`,Rbe=Qe("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Dbe=Qe(Cbe,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
367
|
-
opacity: 0;
|
|
368
|
-
position: absolute;
|
|
369
|
-
|
|
370
|
-
&.${ba.rippleVisible} {
|
|
371
|
-
opacity: 0.3;
|
|
372
|
-
transform: scale(1);
|
|
373
|
-
animation-name: ${Abe};
|
|
374
|
-
animation-duration: ${RT}ms;
|
|
375
|
-
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
&.${ba.ripplePulsate} {
|
|
379
|
-
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
& .${ba.child} {
|
|
383
|
-
opacity: 1;
|
|
384
|
-
display: block;
|
|
385
|
-
width: 100%;
|
|
386
|
-
height: 100%;
|
|
387
|
-
border-radius: 50%;
|
|
388
|
-
background-color: currentColor;
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
& .${ba.childLeaving} {
|
|
392
|
-
opacity: 0;
|
|
393
|
-
animation-name: ${kbe};
|
|
394
|
-
animation-duration: ${RT}ms;
|
|
395
|
-
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
& .${ba.childPulsate} {
|
|
399
|
-
position: absolute;
|
|
400
|
-
/* @noflip */
|
|
401
|
-
left: 0px;
|
|
402
|
-
top: 0;
|
|
403
|
-
animation-name: ${wbe};
|
|
404
|
-
animation-duration: 2500ms;
|
|
405
|
-
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
406
|
-
animation-iteration-count: infinite;
|
|
407
|
-
animation-delay: 200ms;
|
|
408
|
-
}
|
|
409
|
-
`,Ibe=_.forwardRef(function(e,t){const n=rn({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a,...i}=n,[l,u]=_.useState([]),d=_.useRef(0),p=_.useRef(null);_.useEffect(()=>{p.current&&(p.current(),p.current=null)},[l]);const h=_.useRef(!1),y=ov(),g=_.useRef(null),b=_.useRef(null),S=_.useCallback(C=>{const{pulsate:D,rippleX:I,rippleY:O,rippleSize:j,cb:$}=C;u(z=>[...z,v.jsx(Dbe,{classes:{ripple:xt(o.ripple,ba.ripple),rippleVisible:xt(o.rippleVisible,ba.rippleVisible),ripplePulsate:xt(o.ripplePulsate,ba.ripplePulsate),child:xt(o.child,ba.child),childLeaving:xt(o.childLeaving,ba.childLeaving),childPulsate:xt(o.childPulsate,ba.childPulsate)},timeout:RT,pulsate:D,rippleX:I,rippleY:O,rippleSize:j},d.current)]),d.current+=1,p.current=$},[o]),T=_.useCallback((C={},D={},I=()=>{})=>{const{pulsate:O=!1,center:j=r||D.pulsate,fakeElement:$=!1}=D;if(C?.type==="mousedown"&&h.current){h.current=!1;return}C?.type==="touchstart"&&(h.current=!0);const z=$?null:b.current,L=z?z.getBoundingClientRect():{width:0,height:0,left:0,top:0};let H,k,F;if(j||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)H=Math.round(L.width/2),k=Math.round(L.height/2);else{const{clientX:B,clientY:G}=C.touches&&C.touches.length>0?C.touches[0]:C;H=Math.round(B-L.left),k=Math.round(G-L.top)}if(j)F=Math.sqrt((2*L.width**2+L.height**2)/3),F%2===0&&(F+=1);else{const B=Math.max(Math.abs((z?z.clientWidth:0)-H),H)*2+2,G=Math.max(Math.abs((z?z.clientHeight:0)-k),k)*2+2;F=Math.sqrt(B**2+G**2)}C?.touches?g.current===null&&(g.current=()=>{S({pulsate:O,rippleX:H,rippleY:k,rippleSize:F,cb:I})},y.start(_be,()=>{g.current&&(g.current(),g.current=null)})):S({pulsate:O,rippleX:H,rippleY:k,rippleSize:F,cb:I})},[r,S,y]),E=_.useCallback(()=>{T({},{pulsate:!0})},[T]),A=_.useCallback((C,D)=>{if(y.clear(),C?.type==="touchend"&&g.current){g.current(),g.current=null,y.start(0,()=>{A(C,D)});return}g.current=null,u(I=>I.length>0?I.slice(1):I),p.current=D},[y]);return _.useImperativeHandle(t,()=>({pulsate:E,start:T,stop:A}),[E,T,A]),v.jsx(Rbe,{className:xt(ba.root,o.root,a),ref:b,...i,children:v.jsx(q_,{component:null,exit:!0,children:l})})});function Obe(e){return Zt("MuiButtonBase",e)}const Nbe=Ht("MuiButtonBase",["root","disabled","focusVisible"]),Pbe=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Xt({root:["root",t&&"disabled",n&&"focusVisible"]},Obe,o);return n&&r&&(a.root+=` ${r}`),a},Lbe=Qe("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Nbe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),av=_.forwardRef(function(e,t){const n=rn({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:a,className:i,component:l="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:p=!1,focusRipple:h=!1,focusVisibleClassName:y,LinkComponent:g="a",onBlur:b,onClick:S,onContextMenu:T,onDragLeave:E,onFocus:A,onFocusVisible:C,onKeyDown:D,onKeyUp:I,onMouseDown:O,onMouseLeave:j,onMouseUp:$,onTouchEnd:z,onTouchMove:L,onTouchStart:H,tabIndex:k=0,TouchRippleProps:F,touchRippleRef:B,type:G,...U}=n,Q=_.useRef(null),Y=pbe(),oe=ur(Y.ref,B),[N,K]=_.useState(!1);u&&N&&K(!1),_.useImperativeHandle(r,()=>({focusVisible:()=>{K(!0),Q.current.focus()}}),[]);const X=Y.shouldMount&&!d&&!u;_.useEffect(()=>{N&&h&&!d&&Y.pulsate()},[d,h,N,Y]);const P=ts(Y,"start",O,p),J=ts(Y,"stop",T,p),se=ts(Y,"stop",E,p),ne=ts(Y,"stop",$,p),be=ts(Y,"stop",je=>{N&&je.preventDefault(),j&&j(je)},p),fe=ts(Y,"start",H,p),De=ts(Y,"stop",z,p),Ce=ts(Y,"stop",L,p),Se=ts(Y,"stop",je=>{p3(je.target)||K(!1),b&&b(je)},!1),ze=Jr(je=>{Q.current||(Q.current=je.currentTarget),p3(je.target)&&(K(!0),C&&C(je)),A&&A(je)}),Ne=()=>{const je=Q.current;return l&&l!=="button"&&!(je.tagName==="A"&&je.href)},_e=Jr(je=>{h&&!je.repeat&&N&&je.key===" "&&Y.stop(je,()=>{Y.start(je)}),je.target===je.currentTarget&&Ne()&&je.key===" "&&je.preventDefault(),D&&D(je),je.target===je.currentTarget&&Ne()&&je.key==="Enter"&&!u&&(je.preventDefault(),S&&S(je))}),Ct=Jr(je=>{h&&je.key===" "&&N&&!je.defaultPrevented&&Y.stop(je,()=>{Y.pulsate(je)}),I&&I(je),S&&je.target===je.currentTarget&&Ne()&&je.key===" "&&!je.defaultPrevented&&S(je)});let At=l;At==="button"&&(U.href||U.to)&&(At=g);const qe={};At==="button"?(qe.type=G===void 0?"button":G,qe.disabled=u):(!U.href&&!U.to&&(qe.role="button"),u&&(qe["aria-disabled"]=u));const Rt=ur(t,Q),ot={...n,centerRipple:o,component:l,disabled:u,disableRipple:d,disableTouchRipple:p,focusRipple:h,tabIndex:k,focusVisible:N},tt=Pbe(ot);return v.jsxs(Lbe,{as:At,className:xt(tt.root,i),ownerState:ot,onBlur:Se,onClick:S,onContextMenu:J,onFocus:ze,onKeyDown:_e,onKeyUp:Ct,onMouseDown:P,onMouseLeave:be,onMouseUp:ne,onDragLeave:se,onTouchEnd:De,onTouchMove:Ce,onTouchStart:fe,ref:Rt,tabIndex:u?-1:k,type:G,...qe,...U,children:[a,X?v.jsx(Ibe,{ref:oe,center:o,...F}):null]})});function ts(e,t,n,r=!1){return Jr(o=>(n&&n(o),r||e[t](o),!0))}function Mbe(e){return typeof e.main=="string"}function Fbe(e,t=[]){if(!Mbe(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Ga(e=[]){return([,t])=>t&&Fbe(t,e)}function jbe(e){return Zt("MuiCircularProgress",e)}Ht("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const tl=44,DT=wi`
|
|
410
|
-
0% {
|
|
411
|
-
transform: rotate(0deg);
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
100% {
|
|
415
|
-
transform: rotate(360deg);
|
|
416
|
-
}
|
|
417
|
-
`,IT=wi`
|
|
418
|
-
0% {
|
|
419
|
-
stroke-dasharray: 1px, 200px;
|
|
420
|
-
stroke-dashoffset: 0;
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
50% {
|
|
424
|
-
stroke-dasharray: 100px, 200px;
|
|
425
|
-
stroke-dashoffset: -15px;
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
100% {
|
|
429
|
-
stroke-dasharray: 1px, 200px;
|
|
430
|
-
stroke-dashoffset: -126px;
|
|
431
|
-
}
|
|
432
|
-
`,Bbe=typeof DT!="string"?Gh`
|
|
433
|
-
animation: ${DT} 1.4s linear infinite;
|
|
434
|
-
`:null,Ube=typeof IT!="string"?Gh`
|
|
435
|
-
animation: ${IT} 1.4s ease-in-out infinite;
|
|
436
|
-
`:null,zbe=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,a={root:["root",n,`color${ut(r)}`],svg:["svg"],circle:["circle",`circle${ut(n)}`,o&&"circleDisableShrink"]};return Xt(a,jbe,t)},Hbe=Qe("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ut(n.color)}`]]}})(wn(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Bbe||{animation:`${DT} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Ga()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),$be=Qe("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),Gbe=Qe("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ut(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(wn(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:Ube||{animation:`${IT} 1.4s ease-in-out infinite`}}]}))),G8=_.forwardRef(function(e,t){const n=rn({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:a=!1,size:i=40,style:l,thickness:u=3.6,value:d=0,variant:p="indeterminate",...h}=n,y={...n,color:o,disableShrink:a,size:i,thickness:u,value:d,variant:p},g=zbe(y),b={},S={},T={};if(p==="determinate"){const E=2*Math.PI*((tl-u)/2);b.strokeDasharray=E.toFixed(3),T["aria-valuenow"]=Math.round(d),b.strokeDashoffset=`${((100-d)/100*E).toFixed(3)}px`,S.transform="rotate(-90deg)"}return v.jsx(Hbe,{className:xt(g.root,r),style:{width:i,height:i,...S,...l},ownerState:y,ref:t,role:"progressbar",...T,...h,children:v.jsx($be,{className:g.svg,ownerState:y,viewBox:`${tl/2} ${tl/2} ${tl} ${tl}`,children:v.jsx(Gbe,{className:g.circle,style:b,ownerState:y,cx:tl,cy:tl,r:(tl-u)/2,fill:"none",strokeWidth:u})})})});function Vbe(e){return Zt("MuiButton",e)}const ec=Ht("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),qbe=_.createContext({}),Wbe=_.createContext(void 0),Ybe=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,loading:i,loadingPosition:l,classes:u}=e,d={root:["root",i&&"loading",a,`${a}${ut(t)}`,`size${ut(o)}`,`${a}Size${ut(o)}`,`color${ut(t)}`,n&&"disableElevation",r&&"fullWidth",i&&`loadingPosition${ut(l)}`],startIcon:["icon","startIcon",`iconSize${ut(o)}`],endIcon:["icon","endIcon",`iconSize${ut(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},p=Xt(d,Vbe,u);return{...u,...p}},V8=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Qbe=Qe(av,{shouldForwardProp:e=>Eo(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ut(n.color)}`],t[`size${ut(n.size)}`],t[`${n.variant}Size${ut(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(wn(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${ec.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${ec.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${ec.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${ec.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Ga()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${ec.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ec.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${ec.loading}`]:{color:"transparent"}}}]}})),Kbe=Qe("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${ut(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...V8]})),Xbe=Qe("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${ut(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...V8]})),Zbe=Qe("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),g3=Qe("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),jr=_.forwardRef(function(e,t){const n=_.useContext(qbe),r=_.useContext(Wbe),o=Ah(n,e),a=rn({props:o,name:"MuiButton"}),{children:i,color:l="primary",component:u="button",className:d,disabled:p=!1,disableElevation:h=!1,disableFocusRipple:y=!1,endIcon:g,focusVisibleClassName:b,fullWidth:S=!1,id:T,loading:E=null,loadingIndicator:A,loadingPosition:C="center",size:D="medium",startIcon:I,type:O,variant:j="text",...$}=a,z=am(T),L=A??v.jsx(G8,{"aria-labelledby":z,color:"inherit",size:16}),H={...a,color:l,component:u,disabled:p,disableElevation:h,disableFocusRipple:y,fullWidth:S,loading:E,loadingIndicator:L,loadingPosition:C,size:D,type:O,variant:j},k=Ybe(H),F=(I||E&&C==="start")&&v.jsx(Kbe,{className:k.startIcon,ownerState:H,children:I||v.jsx(g3,{className:k.loadingIconPlaceholder,ownerState:H})}),B=(g||E&&C==="end")&&v.jsx(Xbe,{className:k.endIcon,ownerState:H,children:g||v.jsx(g3,{className:k.loadingIconPlaceholder,ownerState:H})}),G=r||"",U=typeof E=="boolean"?v.jsx("span",{className:k.loadingWrapper,style:{display:"contents"},children:E&&v.jsx(Zbe,{className:k.loadingIndicator,ownerState:H,children:L})}):null;return v.jsxs(Qbe,{ownerState:H,className:xt(n.className,k.root,d,G),component:u,disabled:p||E,focusRipple:!y,focusVisibleClassName:xt(k.focusVisible,b),ref:t,type:O,id:E?z:T,...$,classes:k,children:[F,C!=="end"&&U,i,C==="end"&&U,B]})});function q8(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Jbe(e){const t=yo(e);return t.body===e?hs(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function th(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function y3(e){return parseInt(hs(e).getComputedStyle(e).paddingRight,10)||0}function eve(e){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return t||n}function b3(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,i=>{const l=!a.includes(i),u=!eve(i);l&&u&&th(i,o)})}function Hx(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function tve(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Jbe(r)){const a=q8(hs(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${y3(r)+a}px`;const i=yo(r).querySelectorAll(".mui-fixed");[].forEach.call(i,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${y3(l)+a}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=yo(r).body;else{const a=r.parentElement,i=hs(r);o=a?.nodeName==="HTML"&&i.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:a,property:i})=>{o?a.style.setProperty(i,o):a.style.removeProperty(i)})}}function nve(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class rve{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&th(t.modalRef,!1);const o=nve(n);b3(n,t.mount,t.modalRef,o,!0);const a=Hx(this.containers,i=>i.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Hx(this.containers,a=>a.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=tve(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Hx(this.containers,i=>i.modals.includes(t)),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&th(t.modalRef,n),b3(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=a.modals[a.modals.length-1];i.modalRef&&th(i.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Wd(e){return parseInt(_.version,10)>=19?e?.props?.ref||null:e?.ref||null}const ove=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ave(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function ive(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function sve(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||ive(e))}function lve(e){const t=[],n=[];return Array.from(e.querySelectorAll(ove)).forEach((r,o)=>{const a=ave(r);a===-1||!sve(r)||(a===0?t.push(r):n.push({documentOrder:o,tabIndex:a,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function cve(){return!0}function uve(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=lve,isEnabled:i=cve,open:l}=e,u=_.useRef(!1),d=_.useRef(null),p=_.useRef(null),h=_.useRef(null),y=_.useRef(null),g=_.useRef(!1),b=_.useRef(null),S=ur(Wd(t),b),T=_.useRef(null);_.useEffect(()=>{!l||!b.current||(g.current=!n)},[n,l]),_.useEffect(()=>{if(!l||!b.current)return;const C=yo(b.current);return b.current.contains(C.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),g.current&&b.current.focus()),()=>{o||(h.current&&h.current.focus&&(u.current=!0,h.current.focus()),h.current=null)}},[l]),_.useEffect(()=>{if(!l||!b.current)return;const C=yo(b.current),D=j=>{T.current=j,!(r||!i()||j.key!=="Tab")&&C.activeElement===b.current&&j.shiftKey&&(u.current=!0,p.current&&p.current.focus())},I=()=>{const j=b.current;if(j===null)return;if(!C.hasFocus()||!i()||u.current){u.current=!1;return}if(j.contains(C.activeElement)||r&&C.activeElement!==d.current&&C.activeElement!==p.current)return;if(C.activeElement!==y.current)y.current=null;else if(y.current!==null)return;if(!g.current)return;let $=[];if((C.activeElement===d.current||C.activeElement===p.current)&&($=a(b.current)),$.length>0){const z=!!(T.current?.shiftKey&&T.current?.key==="Tab"),L=$[0],H=$[$.length-1];typeof L!="string"&&typeof H!="string"&&(z?H.focus():L.focus())}else j.focus()};C.addEventListener("focusin",I),C.addEventListener("keydown",D,!0);const O=setInterval(()=>{C.activeElement&&C.activeElement.tagName==="BODY"&&I()},50);return()=>{clearInterval(O),C.removeEventListener("focusin",I),C.removeEventListener("keydown",D,!0)}},[n,r,o,i,l,a]);const E=C=>{h.current===null&&(h.current=C.relatedTarget),g.current=!0,y.current=C.target;const D=t.props.onFocus;D&&D(C)},A=C=>{h.current===null&&(h.current=C.relatedTarget),g.current=!0};return v.jsxs(_.Fragment,{children:[v.jsx("div",{tabIndex:l?0:-1,onFocus:A,ref:d,"data-testid":"sentinelStart"}),_.cloneElement(t,{ref:S,onFocus:E}),v.jsx("div",{tabIndex:l?0:-1,onFocus:A,ref:p,"data-testid":"sentinelEnd"})]})}function dve(e){return typeof e=="function"?e():e}const fve=_.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[a,i]=_.useState(null),l=ur(_.isValidElement(n)?Wd(n):null,t);if(Al(()=>{o||i(dve(r)||document.body)},[r,o]),Al(()=>{if(a&&!o)return mO(t,a),()=>{mO(t,null)}},[t,a,o]),o){if(_.isValidElement(n)){const u={ref:l};return _.cloneElement(n,u)}return n}return a&&zh.createPortal(n,a)});function M0(e){return typeof e=="string"}function W8(e,t,n){return e===void 0||M0(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function hi(e,t,n){return typeof e=="function"?e(t,n):e}function uo(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function v3(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Y8(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const g=xt(n?.className,a,o?.className,r?.className),b={...n?.style,...o?.style,...r?.style},S={...n,...o,...r};return g.length>0&&(S.className=g),Object.keys(b).length>0&&(S.style=b),{props:S,internalRef:void 0}}const i=uo({...o,...r}),l=v3(r),u=v3(o),d=t(i),p=xt(d?.className,n?.className,a,o?.className,r?.className),h={...d?.style,...n?.style,...o?.style,...r?.style},y={...d,...n,...u,...l};return p.length>0&&(y.className=p),Object.keys(h).length>0&&(y.style=h),{props:y,internalRef:d.ref}}function Ln(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,internalForwardedProps:i,shouldForwardComponentProp:l=!1,...u}=t,{component:d,slots:p={[e]:void 0},slotProps:h={[e]:void 0},...y}=a,g=p[e]||r,b=hi(h[e],o),{props:{component:S,...T},internalRef:E}=Y8({className:n,...u,externalForwardedProps:e==="root"?y:void 0,externalSlotProps:b}),A=ur(E,b?.ref,t.ref),C=e==="root"?S||d:S,D=W8(g,{...e==="root"&&!d&&!p[e]&&i,...e!=="root"&&!p[e]&&i,...T,...C&&!l&&{as:C},...C&&l&&{component:C},ref:A},o);return[g,D]}const Q8=e=>e.scrollTop;function Cd(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}const pve={entering:{opacity:1},entered:{opacity:1}},OT=_.forwardRef(function(e,t){const n=Md(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:i,easing:l,in:u,onEnter:d,onEntered:p,onEntering:h,onExit:y,onExited:g,onExiting:b,style:S,timeout:T=r,TransitionComponent:E=Qa,...A}=e,C=_.useRef(null),D=ur(C,Wd(i),t),I=k=>F=>{if(k){const B=C.current;F===void 0?k(B):k(B,F)}},O=I(h),j=I((k,F)=>{Q8(k);const B=Cd({style:S,timeout:T,easing:l},{mode:"enter"});k.style.webkitTransition=n.transitions.create("opacity",B),k.style.transition=n.transitions.create("opacity",B),d&&d(k,F)}),$=I(p),z=I(b),L=I(k=>{const F=Cd({style:S,timeout:T,easing:l},{mode:"exit"});k.style.webkitTransition=n.transitions.create("opacity",F),k.style.transition=n.transitions.create("opacity",F),y&&y(k)}),H=I(g);return v.jsx(E,{appear:a,in:u,nodeRef:C,onEnter:j,onEntered:$,onEntering:O,onExit:L,onExited:H,onExiting:z,addEndListener:k=>{o&&o(C.current,k)},timeout:T,...A,children:(k,{ownerState:F,...B})=>_.cloneElement(i,{style:{opacity:0,visibility:k==="exited"&&!u?"hidden":void 0,...pve[k],...S,...i.props.style},ref:D,...B})})});function hve(e){return Zt("MuiBackdrop",e)}Ht("MuiBackdrop",["root","invisible"]);const mve=e=>{const{classes:t,invisible:n}=e;return Xt({root:["root",n&&"invisible"]},hve,t)},gve=Qe("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),K8=_.forwardRef(function(e,t){const n=rn({props:e,name:"MuiBackdrop"}),{children:r,className:o,component:a="div",invisible:i=!1,open:l,components:u={},componentsProps:d={},slotProps:p={},slots:h={},TransitionComponent:y,transitionDuration:g,...b}=n,S={...n,component:a,invisible:i},T=mve(S),E={transition:y,root:u.Root,...h},A={...d,...p},C={component:a,slots:E,slotProps:A},[D,I]=Ln("root",{elementType:gve,externalForwardedProps:C,className:xt(T.root,o),ownerState:S}),[O,j]=Ln("transition",{elementType:OT,externalForwardedProps:C,ownerState:S});return v.jsx(O,{in:l,timeout:g,...b,...j,children:v.jsx(D,{"aria-hidden":!0,...I,classes:T,ref:t,children:r})})});function yve(e){return typeof e=="function"?e():e}function bve(e){return e?e.props.hasOwnProperty("in"):!1}const E3=()=>{},oy=new rve;function vve(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:i,children:l,onClose:u,open:d,rootRef:p}=e,h=_.useRef({}),y=_.useRef(null),g=_.useRef(null),b=ur(g,p),[S,T]=_.useState(!d),E=bve(l);let A=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(A=!1);const C=()=>yo(y.current),D=()=>(h.current.modalRef=g.current,h.current.mount=y.current,h.current),I=()=>{oy.mount(D(),{disableScrollLock:r}),g.current&&(g.current.scrollTop=0)},O=Jr(()=>{const k=yve(t)||C().body;oy.add(D(),k),g.current&&I()}),j=()=>oy.isTopModal(D()),$=Jr(k=>{y.current=k,k&&(d&&j()?I():g.current&&th(g.current,A))}),z=_.useCallback(()=>{oy.remove(D(),A)},[A]);_.useEffect(()=>()=>{z()},[z]),_.useEffect(()=>{d?O():(!E||!o)&&z()},[d,z,E,o,O]);const L=k=>F=>{k.onKeyDown?.(F),!(F.key!=="Escape"||F.which===229||!j())&&(n||(F.stopPropagation(),u&&u(F,"escapeKeyDown")))},H=k=>F=>{k.onClick?.(F),F.target===F.currentTarget&&u&&u(F,"backdropClick")};return{getRootProps:(k={})=>{const F=uo(e);delete F.onTransitionEnter,delete F.onTransitionExited;const B={...F,...k};return{role:"presentation",...B,onKeyDown:L(B),ref:b}},getBackdropProps:(k={})=>{const F=k;return{"aria-hidden":!0,...F,onClick:H(F),open:d}},getTransitionProps:()=>{const k=()=>{T(!1),a&&a()},F=()=>{T(!0),i&&i(),o&&z()};return{onEnter:HI(k,l?.props.onEnter??E3),onExited:HI(F,l?.props.onExited??E3)}},rootRef:b,portalRef:$,isTopModal:j,exited:S,hasTransition:E}}function Eve(e){return Zt("MuiModal",e)}Ht("MuiModal",["root","hidden","backdrop"]);const xve=e=>{const{open:t,exited:n,classes:r}=e;return Xt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Eve,r)},Sve=Qe("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(wn(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),Tve=Qe(K8,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),X8=_.forwardRef(function(e,t){const n=rn({name:"MuiModal",props:e}),{BackdropComponent:r=Tve,BackdropProps:o,classes:a,className:i,closeAfterTransition:l=!1,children:u,container:d,component:p,components:h={},componentsProps:y={},disableAutoFocus:g=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:S=!1,disablePortal:T=!1,disableRestoreFocus:E=!1,disableScrollLock:A=!1,hideBackdrop:C=!1,keepMounted:D=!1,onClose:I,onTransitionEnter:O,onTransitionExited:j,open:$,slotProps:z={},slots:L={},theme:H,...k}=n,F={...n,closeAfterTransition:l,disableAutoFocus:g,disableEnforceFocus:b,disableEscapeKeyDown:S,disablePortal:T,disableRestoreFocus:E,disableScrollLock:A,hideBackdrop:C,keepMounted:D},{getRootProps:B,getBackdropProps:G,getTransitionProps:U,portalRef:Q,isTopModal:Y,exited:oe,hasTransition:N}=vve({...F,rootRef:t}),K={...F,exited:oe},X=xve(K),P={};if(u.props.tabIndex===void 0&&(P.tabIndex="-1"),N){const{onEnter:De,onExited:Ce}=U();P.onEnter=De,P.onExited=Ce}const J={slots:{root:h.Root,backdrop:h.Backdrop,...L},slotProps:{...y,...z}},[se,ne]=Ln("root",{ref:t,elementType:Sve,externalForwardedProps:{...J,...k,component:p},getSlotProps:B,ownerState:K,className:xt(i,X?.root,!K.open&&K.exited&&X?.hidden)}),[be,fe]=Ln("backdrop",{ref:o?.ref,elementType:r,externalForwardedProps:J,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:De=>G({...De,onClick:Ce=>{De?.onClick&&De.onClick(Ce)}}),className:xt(o?.className,X?.backdrop),ownerState:K});return!D&&!$&&(!N||oe)?null:v.jsx(fve,{ref:Q,container:d,disablePortal:T,children:v.jsxs(se,{...ne,children:[!C&&r?v.jsx(be,{...fe}):null,v.jsx(uve,{disableEnforceFocus:b,disableAutoFocus:g,disableRestoreFocus:E,isEnabled:Y,open:$,children:_.cloneElement(u,P)})]})})});function Cve(e){return Zt("MuiPaper",e)}Ht("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const _ve=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Xt(a,Cve,o)},Ave=Qe("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(wn(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),iv=_.forwardRef(function(e,t){const n=rn({props:e,name:"MuiPaper"}),r=Md(),{className:o,component:a="div",elevation:i=1,square:l=!1,variant:u="elevation",...d}=n,p={...n,component:a,elevation:i,square:l,variant:u},h=_ve(p);return v.jsx(Ave,{as:a,ownerState:p,className:xt(h.root,o),ref:t,...d,style:{...u==="elevation"&&{"--Paper-shadow":(r.vars||r).shadows[i],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[i]},...!r.vars&&r.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${u0("#fff",qS(i))}, ${u0("#fff",qS(i))})`}},...d.style}})});function kve(e){return Zt("MuiDialog",e)}const $x=Ht("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Z8=_.createContext({}),wve=Qe(K8,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Rve=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:a}=e,i={root:["root"],container:["container",`scroll${ut(n)}`],paper:["paper",`paperScroll${ut(n)}`,`paperWidth${ut(String(r))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return Xt(i,kve,t)},Dve=Qe(X8,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),Ive=Qe("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ut(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),Ove=Qe(iv,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ut(n.scroll)}`],t[`paperWidth${ut(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(wn(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${$x.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${$x.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${$x.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Ss=_.forwardRef(function(e,t){const n=rn({props:e,name:"MuiDialog"}),r=Md(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":i,"aria-modal":l=!0,BackdropComponent:u,BackdropProps:d,children:p,className:h,disableEscapeKeyDown:y=!1,fullScreen:g=!1,fullWidth:b=!1,maxWidth:S="sm",onClick:T,onClose:E,open:A,PaperComponent:C=iv,PaperProps:D={},scroll:I="paper",slots:O={},slotProps:j={},TransitionComponent:$=OT,transitionDuration:z=o,TransitionProps:L,...H}=n,k={...n,disableEscapeKeyDown:y,fullScreen:g,fullWidth:b,maxWidth:S,scroll:I},F=Rve(k),B=_.useRef(),G=ze=>{B.current=ze.target===ze.currentTarget},U=ze=>{T&&T(ze),B.current&&(B.current=null,E&&E(ze,"backdropClick"))},Q=am(i),Y=_.useMemo(()=>({titleId:Q}),[Q]),oe={transition:$,...O},N={transition:L,paper:D,backdrop:d,...j},K={slots:oe,slotProps:N},[X,P]=Ln("root",{elementType:Dve,shouldForwardComponentProp:!0,externalForwardedProps:K,ownerState:k,className:xt(F.root,h),ref:t}),[J,se]=Ln("backdrop",{elementType:wve,shouldForwardComponentProp:!0,externalForwardedProps:K,ownerState:k}),[ne,be]=Ln("paper",{elementType:Ove,shouldForwardComponentProp:!0,externalForwardedProps:K,ownerState:k,className:xt(F.paper,D.className)}),[fe,De]=Ln("container",{elementType:Ive,externalForwardedProps:K,ownerState:k,className:F.container}),[Ce,Se]=Ln("transition",{elementType:OT,externalForwardedProps:K,ownerState:k,additionalProps:{appear:!0,in:A,timeout:z,role:"presentation"}});return v.jsx(X,{closeAfterTransition:!0,slots:{backdrop:J},slotProps:{backdrop:{transitionDuration:z,as:u,...se}},disableEscapeKeyDown:y,onClose:E,open:A,onClick:U,...P,...H,children:v.jsx(Ce,{...Se,children:v.jsx(fe,{onMouseDown:G,...De,children:v.jsx(ne,{as:C,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":Q,"aria-modal":l,...be,children:v.jsx(Z8.Provider,{value:Y,children:p})})})})})});function Nve(e){return Zt("MuiDialogActions",e)}Ht("MuiDialogActions",["root","spacing"]);const Pve=e=>{const{classes:t,disableSpacing:n}=e;return Xt({root:["root",!n&&"spacing"]},Nve,t)},Lve=Qe("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),Ts=_.forwardRef(function(e,t){const n=rn({props:e,name:"MuiDialogActions"}),{className:r,disableSpacing:o=!1,...a}=n,i={...n,disableSpacing:o},l=Pve(i);return v.jsx(Lve,{className:xt(l.root,r),ownerState:i,ref:t,...a})});function Mve(e){return Zt("MuiDialogContent",e)}Ht("MuiDialogContent",["root","dividers"]);function Fve(e){return Zt("MuiDialogTitle",e)}const jve=Ht("MuiDialogTitle",["root"]),Bve=e=>{const{classes:t,dividers:n}=e;return Xt({root:["root",n&&"dividers"]},Mve,t)},Uve=Qe("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(wn(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${jve.root} + &`]:{paddingTop:0}}}]}))),Cs=_.forwardRef(function(e,t){const n=rn({props:e,name:"MuiDialogContent"}),{className:r,dividers:o=!1,...a}=n,i={...n,dividers:o},l=Bve(i);return v.jsx(Uve,{className:xt(l.root,r),ownerState:i,ref:t,...a})});function zve(e){return Zt("MuiTypography",e)}Ht("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Hve={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},$ve=gre(),Gve=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e,l={root:["root",a,e.align!=="inherit"&&`align${ut(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Xt(l,zve,i)},Vve=Qe("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${ut(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(wn(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(Ga()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${ut(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),x3={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},gm=_.forwardRef(function(e,t){const{color:n,...r}=rn({props:e,name:"MuiTypography"}),o=!Hve[n],a=$ve({...r,...o&&{color:n}}),{align:i="inherit",className:l,component:u,gutterBottom:d=!1,noWrap:p=!1,paragraph:h=!1,variant:y="body1",variantMapping:g=x3,...b}=a,S={...a,align:i,color:n,className:l,component:u,gutterBottom:d,noWrap:p,paragraph:h,variant:y,variantMapping:g},T=u||(h?"p":g[y]||x3[y])||"span",E=Gve(S);return v.jsx(Vve,{as:T,ref:t,className:xt(E.root,l),...b,ownerState:S,style:{...i!=="inherit"&&{"--Typography-textAlign":i},...b.style}})});function qve(e){return Zt("MuiDialogContentText",e)}Ht("MuiDialogContentText",["root"]);const Wve=e=>{const{classes:t}=e,n=Xt({root:["root"]},qve,t);return{...t,...n}},Yve=Qe(gm,{shouldForwardProp:e=>Eo(e)||e==="classes",name:"MuiDialogContentText",slot:"Root"})({}),Yd=_.forwardRef(function(e,t){const n=rn({props:e,name:"MuiDialogContentText"}),{children:r,className:o,...a}=n,i=Wve(a);return v.jsx(Yve,{component:"p",variant:"body1",color:"textSecondary",ref:t,ownerState:a,className:xt(i.root,o),...n,classes:i})}),Qve=e=>{const{classes:t}=e;return Xt({root:["root"]},Fve,t)},Kve=Qe(gm,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),_s=_.forwardRef(function(e,t){const n=rn({props:e,name:"MuiDialogTitle"}),{className:r,id:o,...a}=n,i=n,l=Qve(i),{titleId:u=o}=_.useContext(Z8);return v.jsx(Kve,{component:"h2",className:xt(l.root,r),ownerState:i,ref:t,variant:"h6",id:o??u,...a})});function ay(e){return parseInt(e,10)||0}const Xve={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Zve(e){for(const t in e)return!1;return!0}function S3(e){return Zve(e)||e.outerHeightStyle===0&&!e.overflowing}const Jve=_.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:a,value:i,...l}=e,{current:u}=_.useRef(i!=null),d=_.useRef(null),p=ur(t,d),h=_.useRef(null),y=_.useRef(null),g=_.useCallback(()=>{const A=d.current,C=y.current;if(!A||!C)return;const D=hs(A).getComputedStyle(A);if(D.width==="0px")return{outerHeightStyle:0,overflowing:!1};C.style.width=D.width,C.value=A.value||e.placeholder||"x",C.value.slice(-1)===`
|
|
437
|
-
`&&(C.value+=" ");const I=D.boxSizing,O=ay(D.paddingBottom)+ay(D.paddingTop),j=ay(D.borderBottomWidth)+ay(D.borderTopWidth),$=C.scrollHeight;C.value="x";const z=C.scrollHeight;let L=$;o&&(L=Math.max(Number(o)*z,L)),r&&(L=Math.min(Number(r)*z,L)),L=Math.max(L,z);const H=L+(I==="border-box"?O+j:0),k=Math.abs(L-$)<=1;return{outerHeightStyle:H,overflowing:k}},[r,o,e.placeholder]),b=Jr(()=>{const A=d.current,C=g();if(!A||!C||S3(C))return!1;const D=C.outerHeightStyle;return h.current!=null&&h.current!==D}),S=_.useCallback(()=>{const A=d.current,C=g();if(!A||!C||S3(C))return;const D=C.outerHeightStyle;h.current!==D&&(h.current=D,A.style.height=`${D}px`),A.style.overflow=C.overflowing?"hidden":""},[g]),T=_.useRef(-1);Al(()=>{const A=kL(S),C=d?.current;if(!C)return;const D=hs(C);D.addEventListener("resize",A);let I;return typeof ResizeObserver<"u"&&(I=new ResizeObserver(()=>{b()&&(I.unobserve(C),cancelAnimationFrame(T.current),S(),T.current=requestAnimationFrame(()=>{I.observe(C)}))}),I.observe(C)),()=>{A.clear(),cancelAnimationFrame(T.current),D.removeEventListener("resize",A),I&&I.disconnect()}},[g,S,b]),Al(()=>{S()});const E=A=>{u||S();const C=A.target,D=C.value.length,I=C.value.endsWith(`
|
|
438
|
-
`),O=C.selectionStart===D;I&&O&&C.setSelectionRange(D,D),n&&n(A)};return v.jsxs(_.Fragment,{children:[v.jsx("textarea",{value:i,onChange:E,ref:p,rows:o,style:a,...l}),v.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:y,tabIndex:-1,style:{...Xve.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function Qd({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const Y_=_.createContext(void 0);function $c(){return _.useContext(Y_)}function T3(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function F0(e,t=!1){return e&&(T3(e.value)&&e.value!==""||t&&T3(e.defaultValue)&&e.defaultValue!=="")}function e1e(e){return e.startAdornment}function t1e(e){return Zt("MuiInputBase",e)}const _d=Ht("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var C3;const sv=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${ut(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},lv=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},n1e=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:l,fullWidth:u,hiddenLabel:d,multiline:p,readOnly:h,size:y,startAdornment:g,type:b}=e,S={root:["root",`color${ut(n)}`,r&&"disabled",o&&"error",u&&"fullWidth",i&&"focused",l&&"formControl",y&&y!=="medium"&&`size${ut(y)}`,p&&"multiline",g&&"adornedStart",a&&"adornedEnd",d&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",p&&"inputMultiline",y==="small"&&"inputSizeSmall",d&&"inputHiddenLabel",g&&"inputAdornedStart",a&&"inputAdornedEnd",h&&"readOnly"]};return Xt(S,t1e,t)},cv=Qe("div",{name:"MuiInputBase",slot:"Root",overridesResolver:sv})(wn(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${_d.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),uv=Qe("input",{name:"MuiInputBase",slot:"Input",overridesResolver:lv})(wn(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${_d.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${_d.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),_3=mre({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Q_=_.forwardRef(function(e,t){const n=rn({props:e,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:o,autoFocus:a,className:i,color:l,components:u={},componentsProps:d={},defaultValue:p,disabled:h,disableInjectingGlobalStyles:y,endAdornment:g,error:b,fullWidth:S=!1,id:T,inputComponent:E="input",inputProps:A={},inputRef:C,margin:D,maxRows:I,minRows:O,multiline:j=!1,name:$,onBlur:z,onChange:L,onClick:H,onFocus:k,onKeyDown:F,onKeyUp:B,placeholder:G,readOnly:U,renderSuffix:Q,rows:Y,size:oe,slotProps:N={},slots:K={},startAdornment:X,type:P="text",value:J,...se}=n,ne=A.value!=null?A.value:J,{current:be}=_.useRef(ne!=null),fe=_.useRef(),De=_.useCallback(et=>{},[]),Ce=ur(fe,C,A.ref,De),[Se,ze]=_.useState(!1),Ne=$c(),_e=Qd({props:n,muiFormControl:Ne,states:["color","disabled","error","hiddenLabel","size","required","filled"]});_e.focused=Ne?Ne.focused:Se,_.useEffect(()=>{!Ne&&h&&Se&&(ze(!1),z&&z())},[Ne,h,Se,z]);const Ct=Ne&&Ne.onFilled,At=Ne&&Ne.onEmpty,qe=_.useCallback(et=>{F0(et)?Ct&&Ct():At&&At()},[Ct,At]);Al(()=>{be&&qe({value:ne})},[ne,qe,be]);const Rt=et=>{k&&k(et),A.onFocus&&A.onFocus(et),Ne&&Ne.onFocus?Ne.onFocus(et):ze(!0)},ot=et=>{z&&z(et),A.onBlur&&A.onBlur(et),Ne&&Ne.onBlur?Ne.onBlur(et):ze(!1)},tt=(et,...St)=>{if(!be){const En=et.target||fe.current;if(En==null)throw new Error(fs(1));qe({value:En.value})}A.onChange&&A.onChange(et,...St),L&&L(et,...St)};_.useEffect(()=>{qe(fe.current)},[]);const je=et=>{fe.current&&et.currentTarget===et.target&&fe.current.focus(),H&&H(et)};let Be=E,Ut=A;j&&Be==="input"&&(Y?Ut={type:void 0,minRows:Y,maxRows:Y,...Ut}:Ut={type:void 0,maxRows:I,minRows:O,...Ut},Be=Jve);const Bn=et=>{qe(et.animationName==="mui-auto-fill-cancel"?fe.current:{value:"x"})};_.useEffect(()=>{Ne&&Ne.setAdornedStart(!!X)},[Ne,X]);const Ot={...n,color:_e.color||"primary",disabled:_e.disabled,endAdornment:g,error:_e.error,focused:_e.focused,formControl:Ne,fullWidth:S,hiddenLabel:_e.hiddenLabel,multiline:j,size:_e.size,startAdornment:X,type:P},de=n1e(Ot),ye=K.root||u.Root||cv,We=N.root||d.root||{},Ke=K.input||u.Input||uv;return Ut={...Ut,...N.input??d.input},v.jsxs(_.Fragment,{children:[!y&&typeof _3=="function"&&(C3||(C3=v.jsx(_3,{}))),v.jsxs(ye,{...We,ref:t,onClick:je,...se,...!M0(ye)&&{ownerState:{...Ot,...We.ownerState}},className:xt(de.root,We.className,i,U&&"MuiInputBase-readOnly"),children:[X,v.jsx(Y_.Provider,{value:null,children:v.jsx(Ke,{"aria-invalid":_e.error,"aria-describedby":r,autoComplete:o,autoFocus:a,defaultValue:p,disabled:_e.disabled,id:T,onAnimationStart:Bn,name:$,placeholder:G,readOnly:U,required:_e.required,rows:Y,value:ne,onKeyDown:F,onKeyUp:B,type:P,...Ut,...!M0(Ke)&&{as:Be,ownerState:{...Ot,...Ut.ownerState}},ref:Ce,className:xt(de.input,Ut.className,U&&"MuiInputBase-readOnly"),onBlur:ot,onChange:tt,onFocus:Rt})}),g,Q?Q({..._e,startAdornment:X}):null]})]})});function r1e(e){return Zt("MuiInput",e)}const yp={..._d,...Ht("MuiInput",["root","underline","input"])},o1e=e=>{const{classes:t,disableUnderline:n}=e,r=Xt({root:["root",!n&&"underline"],input:["input"]},r1e,t);return{...t,...r}},a1e=Qe(cv,{shouldForwardProp:e=>Eo(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...sv(e,t),!n.disableUnderline&&t.underline]}})(wn(({theme:e})=>{let t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(t=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${yp.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${yp.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${yp.disabled}, .${yp.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${yp.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Ga()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[n].main}`}}}))]}})),i1e=Qe(uv,{name:"MuiInput",slot:"Input",overridesResolver:lv})({}),K_=_.forwardRef(function(e,t){const n=rn({props:e,name:"MuiInput"}),{disableUnderline:r=!1,components:o={},componentsProps:a,fullWidth:i=!1,inputComponent:l="input",multiline:u=!1,slotProps:d,slots:p={},type:h="text",...y}=n,g=o1e(n),b={root:{ownerState:{disableUnderline:r}}},S=d??a?Zr(d??a,b):b,T=p.root??o.Root??a1e,E=p.input??o.Input??i1e;return v.jsx(Q_,{slots:{root:T,input:E},slotProps:S,fullWidth:i,inputComponent:l,multiline:u,ref:t,type:h,...y,classes:g})});K_.muiName="Input";function s1e(e){return Zt("MuiFilledInput",e)}const tc={..._d,...Ht("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},l1e=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:a,hiddenLabel:i,multiline:l}=e,u={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",a==="small"&&`size${ut(a)}`,i&&"hiddenLabel",l&&"multiline"],input:["input"]},d=Xt(u,s1e,t);return{...t,...d}},c1e=Qe(cv,{shouldForwardProp:e=>Eo(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...sv(e,t),!n.disableUnderline&&t.underline]}})(wn(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${tc.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${tc.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:i})=>!i.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${tc.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${tc.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${tc.disabled}, .${tc.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${tc.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Ga()).map(([i])=>({props:{disableUnderline:!1,color:i},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[i]?.main}`}}})),{props:({ownerState:i})=>i.startAdornment,style:{paddingLeft:12}},{props:({ownerState:i})=>i.endAdornment,style:{paddingRight:12}},{props:({ownerState:i})=>i.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:i,size:l})=>i.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel&&i.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),u1e=Qe(uv,{name:"MuiFilledInput",slot:"Input",overridesResolver:lv})(wn(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),X_=_.forwardRef(function(e,t){const n=rn({props:e,name:"MuiFilledInput"}),{disableUnderline:r=!1,components:o={},componentsProps:a,fullWidth:i=!1,hiddenLabel:l,inputComponent:u="input",multiline:d=!1,slotProps:p,slots:h={},type:y="text",...g}=n,b={...n,disableUnderline:r,fullWidth:i,inputComponent:u,multiline:d,type:y},S=l1e(n),T={root:{ownerState:b},input:{ownerState:b}},E=p??a?Zr(T,p??a):T,A=h.root??o.Root??c1e,C=h.input??o.Input??u1e;return v.jsx(Q_,{slots:{root:A,input:C},slotProps:E,fullWidth:i,inputComponent:u,multiline:d,ref:t,type:y,...g,classes:S})});X_.muiName="Input";var A3;const d1e=Qe("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Eo})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),f1e=Qe("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Eo})(wn(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function p1e(e){const{children:t,classes:n,className:r,label:o,notched:a,...i}=e,l=o!=null&&o!=="",u={...e,notched:a,withLabel:l};return v.jsx(d1e,{"aria-hidden":!0,className:r,ownerState:u,...i,children:v.jsx(f1e,{ownerState:u,children:l?v.jsx("span",{children:o}):A3||(A3=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}function h1e(e){return Zt("MuiOutlinedInput",e)}const ii={..._d,...Ht("MuiOutlinedInput",["root","notchedOutline","input"])},m1e=e=>{const{classes:t}=e,n=Xt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},h1e,t);return{...t,...n}},g1e=Qe(cv,{shouldForwardProp:e=>Eo(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:sv})(wn(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ii.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ii.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${ii.focused} .${ii.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Ga()).map(([n])=>({props:{color:n},style:{[`&.${ii.focused} .${ii.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${ii.error} .${ii.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ii.disabled} .${ii.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),y1e=Qe(p1e,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(wn(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),b1e=Qe(uv,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:lv})(wn(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),Z_=_.forwardRef(function(e,t){const n=rn({props:e,name:"MuiOutlinedInput"}),{components:r={},fullWidth:o=!1,inputComponent:a="input",label:i,multiline:l=!1,notched:u,slots:d={},slotProps:p={},type:h="text",...y}=n,g=m1e(n),b=$c(),S=Qd({props:n,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),T={...n,color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:b,fullWidth:o,hiddenLabel:S.hiddenLabel,multiline:l,size:S.size,type:h},E=d.root??r.Root??g1e,A=d.input??r.Input??b1e,[C,D]=Ln("notchedOutline",{elementType:y1e,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:T,externalForwardedProps:{slots:d,slotProps:p},additionalProps:{label:i!=null&&i!==""&&S.required?v.jsxs(_.Fragment,{children:[i," ","*"]}):i}});return v.jsx(Q_,{slots:{root:E,input:A},slotProps:p,renderSuffix:I=>v.jsx(C,{...D,notched:typeof u<"u"?u:!!(I.startAdornment||I.filled||I.focused)}),fullWidth:o,inputComponent:a,multiline:l,ref:t,type:h,...y,classes:{...g,notchedOutline:null}})});Z_.muiName="Input";function v1e(e){return Zt("MuiFormLabel",e)}const nh=Ht("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),E1e=e=>{const{classes:t,color:n,focused:r,disabled:o,error:a,filled:i,required:l}=e,u={root:["root",`color${ut(n)}`,o&&"disabled",a&&"error",i&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",a&&"error"]};return Xt(u,v1e,t)},x1e=Qe("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(wn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Ga()).map(([t])=>({props:{color:t},style:{[`&.${nh.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${nh.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${nh.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),S1e=Qe("span",{name:"MuiFormLabel",slot:"Asterisk"})(wn(({theme:e})=>({[`&.${nh.error}`]:{color:(e.vars||e).palette.error.main}}))),T1e=_.forwardRef(function(e,t){const n=rn({props:e,name:"MuiFormLabel"}),{children:r,className:o,color:a,component:i="label",disabled:l,error:u,filled:d,focused:p,required:h,...y}=n,g=$c(),b=Qd({props:n,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),S={...n,color:b.color||"primary",component:i,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required},T=E1e(S);return v.jsxs(x1e,{as:i,ownerState:S,className:xt(T.root,o),ref:t,...y,children:[r,b.required&&v.jsxs(S1e,{ownerState:S,"aria-hidden":!0,className:T.asterisk,children:[" ","*"]})]})});function C1e(e){return Zt("MuiInputLabel",e)}Ht("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const _1e=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:a,variant:i,required:l}=e,u={root:["root",n&&"formControl",!a&&"animated",o&&"shrink",r&&r!=="medium"&&`size${ut(r)}`,i],asterisk:[l&&"asterisk"]},d=Xt(u,C1e,t);return{...t,...d}},A1e=Qe(T1e,{shouldForwardProp:e=>Eo(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${nh.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(wn(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),k1e=_.forwardRef(function(e,t){const n=rn({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,margin:o,shrink:a,variant:i,className:l,...u}=n,d=$c();let p=a;typeof p>"u"&&d&&(p=d.filled||d.focused||d.adornedStart);const h=Qd({props:n,muiFormControl:d,states:["size","variant","required","focused"]}),y={...n,disableAnimation:r,formControl:d,shrink:p,size:h.size,variant:h.variant,required:h.required,focused:h.focused},g=_1e(y);return v.jsx(A1e,{"data-shrink":p,ref:t,className:xt(g.root,l),...u,ownerState:y,classes:g})});function w1e(e){return Zt("MuiFormControl",e)}Ht("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const R1e=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${ut(n)}`,r&&"fullWidth"]};return Xt(o,w1e,t)},D1e=Qe("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${ut(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),I1e=_.forwardRef(function(e,t){const n=rn({props:e,name:"MuiFormControl"}),{children:r,className:o,color:a="primary",component:i="div",disabled:l=!1,error:u=!1,focused:d,fullWidth:p=!1,hiddenLabel:h=!1,margin:y="none",required:g=!1,size:b="medium",variant:S="outlined",...T}=n,E={...n,color:a,component:i,disabled:l,error:u,fullWidth:p,hiddenLabel:h,margin:y,required:g,size:b,variant:S},A=R1e(E),[C,D]=_.useState(()=>{let B=!1;return r&&_.Children.forEach(r,G=>{if(!sx(G,["Input","Select"]))return;const U=sx(G,["Select"])?G.props.input:G;U&&e1e(U.props)&&(B=!0)}),B}),[I,O]=_.useState(()=>{let B=!1;return r&&_.Children.forEach(r,G=>{sx(G,["Input","Select"])&&(F0(G.props,!0)||F0(G.props.inputProps,!0))&&(B=!0)}),B}),[j,$]=_.useState(!1);l&&j&&$(!1);const z=d!==void 0&&!l?d:j;let L;_.useRef(!1);const H=_.useCallback(()=>{O(!0)},[]),k=_.useCallback(()=>{O(!1)},[]),F=_.useMemo(()=>({adornedStart:C,setAdornedStart:D,color:a,disabled:l,error:u,filled:I,focused:z,fullWidth:p,hiddenLabel:h,size:b,onBlur:()=>{$(!1)},onFocus:()=>{$(!0)},onEmpty:k,onFilled:H,registerEffect:L,required:g,variant:S}),[C,a,l,u,I,z,p,h,L,k,H,g,b,S]);return v.jsx(Y_.Provider,{value:F,children:v.jsx(D1e,{as:i,ownerState:E,className:xt(A.root,o),ref:t,...T,children:r})})});function O1e(e){return Zt("MuiFormHelperText",e)}const k3=Ht("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var w3;const N1e=e=>{const{classes:t,contained:n,size:r,disabled:o,error:a,filled:i,focused:l,required:u}=e,d={root:["root",o&&"disabled",a&&"error",r&&`size${ut(r)}`,n&&"contained",l&&"focused",i&&"filled",u&&"required"]};return Xt(d,O1e,t)},P1e=Qe("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ut(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(wn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${k3.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${k3.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),L1e=_.forwardRef(function(e,t){const n=rn({props:e,name:"MuiFormHelperText"}),{children:r,className:o,component:a="p",disabled:i,error:l,filled:u,focused:d,margin:p,required:h,variant:y,...g}=n,b=$c(),S=Qd({props:n,muiFormControl:b,states:["variant","size","disabled","error","filled","focused","required"]}),T={...n,component:a,contained:S.variant==="filled"||S.variant==="outlined",variant:S.variant,size:S.size,disabled:S.disabled,error:S.error,filled:S.filled,focused:S.focused,required:S.required};delete T.ownerState;const E=N1e(T);return v.jsx(P1e,{as:a,className:xt(E.root,o),ref:t,...g,ownerState:T,children:r===" "?w3||(w3=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):r})});function pl(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...a}=e,i=o?{}:hi(n,r),{props:l,internalRef:u}=Y8({...a,externalSlotProps:i}),d=ur(u,i?.ref,e.additionalProps?.ref);return W8(t,{...l,ref:d},r)}const NT=_.createContext({});function M1e(e){return Zt("MuiList",e)}Ht("MuiList",["root","padding","dense","subheader"]);const F1e=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Xt({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},M1e,t)},j1e=Qe("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),B1e=_.forwardRef(function(e,t){const n=rn({props:e,name:"MuiList"}),{children:r,className:o,component:a="ul",dense:i=!1,disablePadding:l=!1,subheader:u,...d}=n,p=_.useMemo(()=>({dense:i}),[i]),h={...n,component:a,dense:i,disablePadding:l},y=F1e(h);return v.jsx(NT.Provider,{value:p,children:v.jsxs(j1e,{as:a,className:xt(y.root,o),ref:t,ownerState:h,...d,children:[u,r]})})});function Gx(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function R3(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function J8(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function bp(e,t,n,r,o,a){let i=!1,l=o(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(i)return!1;i=!0}const u=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!J8(l,a)||u)l=o(e,l,n);else return l.focus(),!0}return!1}const U1e=_.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:a,className:i,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:d,variant:p="selectedMenu",...h}=e,y=_.useRef(null),g=_.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Al(()=>{r&&y.current.focus()},[r]),_.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(A,{direction:C})=>{const D=!y.current.style.width;if(A.clientHeight<y.current.clientHeight&&D){const I=`${q8(hs(A))}px`;y.current.style[C==="rtl"?"paddingLeft":"paddingRight"]=I,y.current.style.width=`calc(100% + ${I})`}return y.current}}),[]);const b=A=>{const C=y.current,D=A.key;if(A.ctrlKey||A.metaKey||A.altKey){d&&d(A);return}const I=yo(C).activeElement;if(D==="ArrowDown")A.preventDefault(),bp(C,I,u,l,Gx);else if(D==="ArrowUp")A.preventDefault(),bp(C,I,u,l,R3);else if(D==="Home")A.preventDefault(),bp(C,null,u,l,Gx);else if(D==="End")A.preventDefault(),bp(C,null,u,l,R3);else if(D.length===1){const O=g.current,j=D.toLowerCase(),$=performance.now();O.keys.length>0&&($-O.lastTime>500?(O.keys=[],O.repeating=!0,O.previousKeyMatched=!0):O.repeating&&j!==O.keys[0]&&(O.repeating=!1)),O.lastTime=$,O.keys.push(j);const z=I&&!O.repeating&&J8(I,O);O.previousKeyMatched&&(z||bp(C,I,!1,l,Gx,O))?A.preventDefault():O.previousKeyMatched=!1}d&&d(A)},S=ur(y,t);let T=-1;_.Children.forEach(a,(A,C)=>{if(!_.isValidElement(A)){T===C&&(T+=1,T>=a.length&&(T=-1));return}A.props.disabled||(p==="selectedMenu"&&A.props.selected||T===-1)&&(T=C),T===C&&(A.props.disabled||A.props.muiSkipListHighlight||A.type.muiSkipListHighlight)&&(T+=1,T>=a.length&&(T=-1))});const E=_.Children.map(a,(A,C)=>{if(C===T){const D={};return o&&(D.autoFocus=!0),A.props.tabIndex===void 0&&p==="selectedMenu"&&(D.tabIndex=0),_.cloneElement(A,D)}return A});return v.jsx(B1e,{role:"menu",ref:S,className:i,onKeyDown:b,tabIndex:r?0:-1,...h,children:E})});function PT(e){return`scale(${e}, ${e**2})`}const z1e={entering:{opacity:1,transform:PT(1)},entered:{opacity:1,transform:"none"}},Vx=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),j0=_.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:a,in:i,onEnter:l,onEntered:u,onEntering:d,onExit:p,onExited:h,onExiting:y,style:g,timeout:b="auto",TransitionComponent:S=Qa,...T}=e,E=ov(),A=_.useRef(),C=Md(),D=_.useRef(null),I=ur(D,Wd(o),t),O=F=>B=>{if(F){const G=D.current;B===void 0?F(G):F(G,B)}},j=O(d),$=O((F,B)=>{Q8(F);const{duration:G,delay:U,easing:Q}=Cd({style:g,timeout:b,easing:a},{mode:"enter"});let Y;b==="auto"?(Y=C.transitions.getAutoHeightDuration(F.clientHeight),A.current=Y):Y=G,F.style.transition=[C.transitions.create("opacity",{duration:Y,delay:U}),C.transitions.create("transform",{duration:Vx?Y:Y*.666,delay:U,easing:Q})].join(","),l&&l(F,B)}),z=O(u),L=O(y),H=O(F=>{const{duration:B,delay:G,easing:U}=Cd({style:g,timeout:b,easing:a},{mode:"exit"});let Q;b==="auto"?(Q=C.transitions.getAutoHeightDuration(F.clientHeight),A.current=Q):Q=B,F.style.transition=[C.transitions.create("opacity",{duration:Q,delay:G}),C.transitions.create("transform",{duration:Vx?Q:Q*.666,delay:Vx?G:G||Q*.333,easing:U})].join(","),F.style.opacity=0,F.style.transform=PT(.75),p&&p(F)}),k=O(h);return v.jsx(S,{appear:r,in:i,nodeRef:D,onEnter:$,onEntered:z,onEntering:j,onExit:H,onExited:k,onExiting:L,addEndListener:F=>{b==="auto"&&E.start(A.current||0,F),n&&n(D.current,F)},timeout:b==="auto"?null:b,...T,children:(F,{ownerState:B,...G})=>_.cloneElement(o,{style:{opacity:0,transform:PT(.75),visibility:F==="exited"&&!i?"hidden":void 0,...z1e[F],...g,...o.props.style},ref:I,...G})})});j0&&(j0.muiSupportAuto=!0);function H1e(e){return Zt("MuiPopover",e)}Ht("MuiPopover",["root","paper"]);function D3(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function I3(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function O3(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function iy(e){return typeof e=="function"?e():e}const $1e=e=>{const{classes:t}=e;return Xt({root:["root"],paper:["paper"]},H1e,t)},G1e=Qe(X8,{name:"MuiPopover",slot:"Root"})({}),e7=Qe(iv,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),V1e=_.forwardRef(function(e,t){const n=rn({props:e,name:"MuiPopover"}),{action:r,anchorEl:o,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:i,anchorReference:l="anchorEl",children:u,className:d,container:p,elevation:h=8,marginThreshold:y=16,open:g,PaperProps:b={},slots:S={},slotProps:T={},transformOrigin:E={vertical:"top",horizontal:"left"},TransitionComponent:A,transitionDuration:C="auto",TransitionProps:D={},disableScrollLock:I=!1,...O}=n,j=_.useRef(),$={...n,anchorOrigin:a,anchorReference:l,elevation:h,marginThreshold:y,transformOrigin:E,TransitionComponent:A,transitionDuration:C,TransitionProps:D},z=$1e($),L=_.useCallback(()=>{if(l==="anchorPosition")return i;const De=iy(o),Ce=(De&&De.nodeType===1?De:yo(j.current).body).getBoundingClientRect();return{top:Ce.top+D3(Ce,a.vertical),left:Ce.left+I3(Ce,a.horizontal)}},[o,a.horizontal,a.vertical,i,l]),H=_.useCallback(De=>({vertical:D3(De,E.vertical),horizontal:I3(De,E.horizontal)}),[E.horizontal,E.vertical]),k=_.useCallback(De=>{const Ce={width:De.offsetWidth,height:De.offsetHeight},Se=H(Ce);if(l==="none")return{top:null,left:null,transformOrigin:O3(Se)};const ze=L();let Ne=ze.top-Se.vertical,_e=ze.left-Se.horizontal;const Ct=Ne+Ce.height,At=_e+Ce.width,qe=hs(iy(o)),Rt=qe.innerHeight-y,ot=qe.innerWidth-y;if(y!==null&&Ne<y){const tt=Ne-y;Ne-=tt,Se.vertical+=tt}else if(y!==null&&Ct>Rt){const tt=Ct-Rt;Ne-=tt,Se.vertical+=tt}if(y!==null&&_e<y){const tt=_e-y;_e-=tt,Se.horizontal+=tt}else if(At>ot){const tt=At-ot;_e-=tt,Se.horizontal+=tt}return{top:`${Math.round(Ne)}px`,left:`${Math.round(_e)}px`,transformOrigin:O3(Se)}},[o,l,L,H,y]),[F,B]=_.useState(g),G=_.useCallback(()=>{const De=j.current;if(!De)return;const Ce=k(De);Ce.top!==null&&De.style.setProperty("top",Ce.top),Ce.left!==null&&(De.style.left=Ce.left),De.style.transformOrigin=Ce.transformOrigin,B(!0)},[k]);_.useEffect(()=>(I&&window.addEventListener("scroll",G),()=>window.removeEventListener("scroll",G)),[o,I,G]);const U=()=>{G()},Q=()=>{B(!1)};_.useEffect(()=>{g&&G()}),_.useImperativeHandle(r,()=>g?{updatePosition:()=>{G()}}:null,[g,G]),_.useEffect(()=>{if(!g)return;const De=kL(()=>{G()}),Ce=hs(iy(o));return Ce.addEventListener("resize",De),()=>{De.clear(),Ce.removeEventListener("resize",De)}},[o,g,G]);let Y=C;const oe={slots:{transition:A,...S},slotProps:{transition:D,paper:b,...T}},[N,K]=Ln("transition",{elementType:j0,externalForwardedProps:oe,ownerState:$,getSlotProps:De=>({...De,onEntering:(Ce,Se)=>{De.onEntering?.(Ce,Se),U()},onExited:Ce=>{De.onExited?.(Ce),Q()}}),additionalProps:{appear:!0,in:g}});C==="auto"&&!N.muiSupportAuto&&(Y=void 0);const X=p||(o?yo(iy(o)).body:void 0),[P,{slots:J,slotProps:se,...ne}]=Ln("root",{ref:t,elementType:G1e,externalForwardedProps:{...oe,...O},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:S.backdrop},slotProps:{backdrop:wL(typeof T.backdrop=="function"?T.backdrop($):T.backdrop,{invisible:!0})},container:X,open:g},ownerState:$,className:xt(z.root,d)}),[be,fe]=Ln("paper",{ref:j,className:z.paper,elementType:e7,externalForwardedProps:oe,shouldForwardComponentProp:!0,additionalProps:{elevation:h,style:F?void 0:{opacity:0}},ownerState:$});return v.jsx(P,{...ne,...!M0(P)&&{slots:J,slotProps:se,disableScrollLock:I},children:v.jsx(N,{...K,timeout:Y,children:v.jsx(be,{...fe,children:u})})})});function q1e(e){return Zt("MuiMenu",e)}Ht("MuiMenu",["root","paper","list"]);const W1e={vertical:"top",horizontal:"right"},Y1e={vertical:"top",horizontal:"left"},Q1e=e=>{const{classes:t}=e;return Xt({root:["root"],paper:["paper"],list:["list"]},q1e,t)},K1e=Qe(V1e,{shouldForwardProp:e=>Eo(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),X1e=Qe(e7,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Z1e=Qe(U1e,{name:"MuiMenu",slot:"List"})({outline:0}),J1e=_.forwardRef(function(e,t){const n=rn({props:e,name:"MuiMenu"}),{autoFocus:r=!0,children:o,className:a,disableAutoFocusItem:i=!1,MenuListProps:l={},onClose:u,open:d,PaperProps:p={},PopoverClasses:h,transitionDuration:y="auto",TransitionProps:{onEntering:g,...b}={},variant:S="selectedMenu",slots:T={},slotProps:E={},...A}=n,C=EL(),D={...n,autoFocus:r,disableAutoFocusItem:i,MenuListProps:l,onEntering:g,PaperProps:p,transitionDuration:y,TransitionProps:b,variant:S},I=Q1e(D),O=r&&!i&&d,j=_.useRef(null),$=(Y,oe)=>{j.current&&j.current.adjustStyleForScrollbar(Y,{direction:C?"rtl":"ltr"}),g&&g(Y,oe)},z=Y=>{Y.key==="Tab"&&(Y.preventDefault(),u&&u(Y,"tabKeyDown"))};let L=-1;_.Children.map(o,(Y,oe)=>{_.isValidElement(Y)&&(Y.props.disabled||(S==="selectedMenu"&&Y.props.selected||L===-1)&&(L=oe))});const H={slots:T,slotProps:{list:l,transition:b,paper:p,...E}},k=pl({elementType:T.root,externalSlotProps:E.root,ownerState:D,className:[I.root,a]}),[F,B]=Ln("paper",{className:I.paper,elementType:X1e,externalForwardedProps:H,shouldForwardComponentProp:!0,ownerState:D}),[G,U]=Ln("list",{className:xt(I.list,l.className),elementType:Z1e,shouldForwardComponentProp:!0,externalForwardedProps:H,getSlotProps:Y=>({...Y,onKeyDown:oe=>{z(oe),Y.onKeyDown?.(oe)}}),ownerState:D}),Q=typeof H.slotProps.transition=="function"?H.slotProps.transition(D):H.slotProps.transition;return v.jsx(K1e,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?W1e:Y1e,slots:{root:T.root,paper:F,backdrop:T.backdrop,...T.transition&&{transition:T.transition}},slotProps:{root:k,paper:B,backdrop:typeof E.backdrop=="function"?E.backdrop(D):E.backdrop,transition:{...Q,onEntering:(...Y)=>{$(...Y),Q?.onEntering?.(...Y)}}},open:d,ref:t,transitionDuration:y,ownerState:D,...A,classes:h,children:v.jsx(G,{actions:j,autoFocus:r&&(L===-1||i),autoFocusItem:O,variant:S,...U,children:o})})});function eEe(e){return Zt("MuiNativeSelect",e)}const J_=Ht("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),tEe=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e,l={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${ut(n)}`,a&&"iconOpen",r&&"disabled"]};return Xt(l,eEe,t)},t7=Qe("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${J_.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),nEe=Qe(t7,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Eo,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${J_.multiple}`]:t.multiple}]}})({}),n7=Qe("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${J_.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),rEe=Qe(n7,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ut(n.variant)}`],n.open&&t.iconOpen]}})({}),oEe=_.forwardRef(function(e,t){const{className:n,disabled:r,error:o,IconComponent:a,inputRef:i,variant:l="standard",...u}=e,d={...e,disabled:r,variant:l,error:o},p=tEe(d);return v.jsxs(_.Fragment,{children:[v.jsx(nEe,{ownerState:d,className:xt(p.select,n),disabled:r,ref:i||t,...u}),e.multiple?null:v.jsx(rEe,{as:a,ownerState:d,className:p.icon})]})});function r7(e){return Zt("MuiSelect",e)}const vp=Ht("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var N3;const aEe=Qe(t7,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${vp.select}`]:t.select},{[`&.${vp.select}`]:t[n.variant]},{[`&.${vp.error}`]:t.error},{[`&.${vp.multiple}`]:t.multiple}]}})({[`&.${vp.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),iEe=Qe(n7,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ut(n.variant)}`],n.open&&t.iconOpen]}})({}),sEe=Qe("input",{shouldForwardProp:e=>AL(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function P3(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function lEe(e){return e==null||typeof e=="string"&&!e.trim()}const cEe=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e,l={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${ut(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Xt(l,r7,t)},uEe=_.forwardRef(function(e,t){const{"aria-describedby":n,"aria-label":r,autoFocus:o,autoWidth:a,children:i,className:l,defaultOpen:u,defaultValue:d,disabled:p,displayEmpty:h,error:y=!1,IconComponent:g,inputRef:b,labelId:S,MenuProps:T={},multiple:E,name:A,onBlur:C,onChange:D,onClose:I,onFocus:O,onOpen:j,open:$,readOnly:z,renderValue:L,required:H,SelectDisplayProps:k={},tabIndex:F,type:B,value:G,variant:U="standard",...Q}=e,[Y,oe]=YS({controlled:G,default:d,name:"Select"}),[N,K]=YS({controlled:$,default:u,name:"Select"}),X=_.useRef(null),P=_.useRef(null),[J,se]=_.useState(null),{current:ne}=_.useRef($!=null),[be,fe]=_.useState(),De=ur(t,b),Ce=_.useCallback(Xe=>{P.current=Xe,Xe&&se(Xe)},[]),Se=J?.parentNode;_.useImperativeHandle(De,()=>({focus:()=>{P.current.focus()},node:X.current,value:Y}),[Y]),_.useEffect(()=>{u&&N&&J&&!ne&&(fe(a?null:Se.clientWidth),P.current.focus())},[J,a]),_.useEffect(()=>{o&&P.current.focus()},[o]),_.useEffect(()=>{if(!S)return;const Xe=yo(P.current).getElementById(S);if(Xe){const xe=()=>{getSelection().isCollapsed&&P.current.focus()};return Xe.addEventListener("click",xe),()=>{Xe.removeEventListener("click",xe)}}},[S]);const ze=(Xe,xe)=>{Xe?j&&j(xe):I&&I(xe),ne||(fe(a?null:Se.clientWidth),K(Xe))},Ne=Xe=>{Xe.button===0&&(Xe.preventDefault(),P.current.focus(),ze(!0,Xe))},_e=Xe=>{ze(!1,Xe)},Ct=_.Children.toArray(i),At=Xe=>{const xe=Ct.find(Te=>Te.props.value===Xe.target.value);xe!==void 0&&(oe(xe.props.value),D&&D(Xe,xe))},qe=Xe=>xe=>{let Te;if(xe.currentTarget.hasAttribute("tabindex")){if(E){Te=Array.isArray(Y)?Y.slice():[];const mt=Y.indexOf(Xe.props.value);mt===-1?Te.push(Xe.props.value):Te.splice(mt,1)}else Te=Xe.props.value;if(Xe.props.onClick&&Xe.props.onClick(xe),Y!==Te&&(oe(Te),D)){const mt=xe.nativeEvent||xe,lt=new mt.constructor(mt.type,mt);Object.defineProperty(lt,"target",{writable:!0,value:{value:Te,name:A}}),D(lt,Xe)}E||ze(!1,xe)}},Rt=Xe=>{z||[" ","ArrowUp","ArrowDown","Enter"].includes(Xe.key)&&(Xe.preventDefault(),ze(!0,Xe))},ot=J!==null&&N,tt=Xe=>{!ot&&C&&(Object.defineProperty(Xe,"target",{writable:!0,value:{value:Y,name:A}}),C(Xe))};delete Q["aria-invalid"];let je,Be;const Ut=[];let Bn=!1;(F0({value:Y})||h)&&(L?je=L(Y):Bn=!0);const Ot=Ct.map(Xe=>{if(!_.isValidElement(Xe))return null;let xe;if(E){if(!Array.isArray(Y))throw new Error(fs(2));xe=Y.some(Te=>P3(Te,Xe.props.value)),xe&&Bn&&Ut.push(Xe.props.children)}else xe=P3(Y,Xe.props.value),xe&&Bn&&(Be=Xe.props.children);return _.cloneElement(Xe,{"aria-selected":xe?"true":"false",onClick:qe(Xe),onKeyUp:Te=>{Te.key===" "&&Te.preventDefault(),Xe.props.onKeyUp&&Xe.props.onKeyUp(Te)},role:"option",selected:xe,value:void 0,"data-value":Xe.props.value})});Bn&&(E?Ut.length===0?je=null:je=Ut.reduce((Xe,xe,Te)=>(Xe.push(xe),Te<Ut.length-1&&Xe.push(", "),Xe),[]):je=Be);let de=be;!a&&ne&&J&&(de=Se.clientWidth);let ye;typeof F<"u"?ye=F:ye=p?null:0;const We=k.id||(A?`mui-component-select-${A}`:void 0),Ke={...e,variant:U,value:Y,open:ot,error:y},et=cEe(Ke),St={...T.PaperProps,...typeof T.slotProps?.paper=="function"?T.slotProps.paper(Ke):T.slotProps?.paper},En={...T.MenuListProps,...typeof T.slotProps?.list=="function"?T.slotProps.list(Ke):T.slotProps?.list},on=am();return v.jsxs(_.Fragment,{children:[v.jsx(aEe,{as:"div",ref:Ce,tabIndex:ye,role:"combobox","aria-controls":ot?on:void 0,"aria-disabled":p?"true":void 0,"aria-expanded":ot?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[S,We].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":H?"true":void 0,"aria-invalid":y?"true":void 0,onKeyDown:Rt,onMouseDown:p||z?null:Ne,onBlur:tt,onFocus:O,...k,ownerState:Ke,className:xt(k.className,et.select,l),id:We,children:lEe(je)?N3||(N3=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):je}),v.jsx(sEe,{"aria-invalid":y,value:Array.isArray(Y)?Y.join(","):Y,name:A,ref:X,"aria-hidden":!0,onChange:At,tabIndex:-1,disabled:p,className:et.nativeInput,autoFocus:o,required:H,...Q,ownerState:Ke}),v.jsx(iEe,{as:g,className:et.icon,ownerState:Ke}),v.jsx(J1e,{id:`menu-${A||""}`,anchorEl:Se,open:ot,onClose:_e,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...T,slotProps:{...T.slotProps,list:{"aria-labelledby":S,role:"listbox","aria-multiselectable":E?"true":void 0,disableListWrap:!0,id:on,...En},paper:{...St,style:{minWidth:de,...St!=null?St.style:null}}},children:Ot})]})}),dEe=Mn(v.jsx("path",{d:"M7 10l5 5 5-5z"})),fEe=e=>{const{classes:t}=e,n=Xt({root:["root"]},r7,t);return{...t,...n}},eA={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Eo(e)&&e!=="variant"},pEe=Qe(K_,eA)(""),hEe=Qe(Z_,eA)(""),mEe=Qe(X_,eA)(""),o7=_.forwardRef(function(e,t){const n=rn({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:a={},className:i,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:d=dEe,id:p,input:h,inputProps:y,label:g,labelId:b,MenuProps:S,multiple:T=!1,native:E=!1,onClose:A,onOpen:C,open:D,renderValue:I,SelectDisplayProps:O,variant:j="outlined",...$}=n,z=E?oEe:uEe,L=$c(),H=Qd({props:n,muiFormControl:L,states:["variant","error"]}),k=H.variant||j,F={...n,variant:k,classes:a},B=fEe(F),{root:G,...U}=B,Q=h||{standard:v.jsx(pEe,{ownerState:F}),outlined:v.jsx(hEe,{label:g,ownerState:F}),filled:v.jsx(mEe,{ownerState:F})}[k],Y=ur(t,Wd(Q));return v.jsx(_.Fragment,{children:_.cloneElement(Q,{inputComponent:z,inputProps:{children:o,error:H.error,IconComponent:d,variant:k,type:void 0,multiple:T,...E?{id:p}:{autoWidth:r,defaultOpen:l,displayEmpty:u,labelId:b,MenuProps:S,onClose:A,onOpen:C,open:D,renderValue:I,SelectDisplayProps:{id:p,...O}},...y,classes:y?Zr(U,y.classes):U,...h?h.props.inputProps:{}},...(T&&E||u)&&k==="outlined"?{notched:!0}:{},ref:Y,className:xt(Q.props.className,i,B.root),...!h&&{variant:k},...$})})});o7.muiName="Select";function gEe(e){return Zt("MuiTextField",e)}Ht("MuiTextField",["root"]);const yEe={standard:K_,filled:X_,outlined:Z_},bEe=e=>{const{classes:t}=e;return Xt({root:["root"]},gEe,t)},vEe=Qe(I1e,{name:"MuiTextField",slot:"Root"})({}),bo=_.forwardRef(function(e,t){const n=rn({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:o=!1,children:a,className:i,color:l="primary",defaultValue:u,disabled:d=!1,error:p=!1,FormHelperTextProps:h,fullWidth:y=!1,helperText:g,id:b,InputLabelProps:S,inputProps:T,InputProps:E,inputRef:A,label:C,maxRows:D,minRows:I,multiline:O=!1,name:j,onBlur:$,onChange:z,onFocus:L,placeholder:H,required:k=!1,rows:F,select:B=!1,SelectProps:G,slots:U={},slotProps:Q={},type:Y,value:oe,variant:N="outlined",...K}=n,X={...n,autoFocus:o,color:l,disabled:d,error:p,fullWidth:y,multiline:O,required:k,select:B,variant:N},P=bEe(X),J=am(b),se=g&&J?`${J}-helper-text`:void 0,ne=C&&J?`${J}-label`:void 0,be=yEe[N],fe={slots:U,slotProps:{input:E,inputLabel:S,htmlInput:T,formHelperText:h,select:G,...Q}},De={},Ce=fe.slotProps.inputLabel;N==="outlined"&&(Ce&&typeof Ce.shrink<"u"&&(De.notched=Ce.shrink),De.label=C),B&&((!G||!G.native)&&(De.id=void 0),De["aria-describedby"]=void 0);const[Se,ze]=Ln("root",{elementType:vEe,shouldForwardComponentProp:!0,externalForwardedProps:{...fe,...K},ownerState:X,className:xt(P.root,i),ref:t,additionalProps:{disabled:d,error:p,fullWidth:y,required:k,color:l,variant:N}}),[Ne,_e]=Ln("input",{elementType:be,externalForwardedProps:fe,additionalProps:De,ownerState:X}),[Ct,At]=Ln("inputLabel",{elementType:k1e,externalForwardedProps:fe,ownerState:X}),[qe,Rt]=Ln("htmlInput",{elementType:"input",externalForwardedProps:fe,ownerState:X}),[ot,tt]=Ln("formHelperText",{elementType:L1e,externalForwardedProps:fe,ownerState:X}),[je,Be]=Ln("select",{elementType:o7,externalForwardedProps:fe,ownerState:X}),Ut=v.jsx(Ne,{"aria-describedby":se,autoComplete:r,autoFocus:o,defaultValue:u,fullWidth:y,multiline:O,name:j,rows:F,maxRows:D,minRows:I,type:Y,value:oe,id:J,inputRef:A,onBlur:$,onChange:z,onFocus:L,placeholder:H,inputProps:Rt,slots:{input:U.htmlInput?qe:void 0},..._e});return v.jsxs(Se,{...ze,children:[C!=null&&C!==""&&v.jsx(Ct,{htmlFor:J,id:ne,...At,children:C}),B?v.jsx(je,{"aria-describedby":se,id:J,labelId:ne,value:oe,input:Ut,...Be,children:a}):Ut,g&&v.jsx(ot,{id:se,...tt,children:g})]})}),L3=Ht("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),M3=Ht("MuiListItemIcon",["root","alignItemsFlexStart"]),F3=Ht("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function EEe(e){return Zt("MuiMenuItem",e)}const Ep=Ht("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),xEe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},SEe=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:i}=e,l=Xt({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},EEe,i);return{...i,...l}},TEe=Qe(av,{shouldForwardProp:e=>Eo(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:xEe})(wn(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ep.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Ep.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Ep.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Ep.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ep.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${L3.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${L3.inset}`]:{marginLeft:52},[`& .${F3.root}`]:{marginTop:0,marginBottom:0},[`& .${F3.inset}`]:{paddingLeft:36},[`& .${M3.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${M3.root} svg`]:{fontSize:"1.25rem"}}}]}))),a7=_.forwardRef(function(e,t){const n=rn({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:a=!1,divider:i=!1,disableGutters:l=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:p,className:h,...y}=n,g=_.useContext(NT),b=_.useMemo(()=>({dense:a||g.dense||!1,disableGutters:l}),[g.dense,a,l]),S=_.useRef(null);Al(()=>{r&&S.current&&S.current.focus()},[r]);const T={...n,dense:b.dense,divider:i,disableGutters:l},E=SEe(n),A=ur(S,t);let C;return n.disabled||(C=p!==void 0?p:-1),v.jsx(NT.Provider,{value:b,children:v.jsx(TEe,{ref:A,role:d,tabIndex:C,component:o,focusVisibleClassName:xt(E.focusVisible,u),className:xt(E.root,h),...y,ownerState:T,classes:E})})}),B0={postgres:[{label:"Host",name:"host",type:"text"},{label:"Port",name:"port",type:"number"},{label:"Database Name",name:"databaseName",type:"text"},{label:"User Name",name:"userName",type:"text"},{label:"Password",name:"password",type:"password"},{label:"Connection String",name:"connectionString",type:"text"}],bigquery:[{label:"Project ID",name:"defaultProjectId",type:"text"},{label:"Billing Project ID",name:"billingProjectId",type:"text"},{label:"Location",name:"location",type:"text"},{label:"Service Account Key JSON",name:"serviceAccountKeyJson",type:"text"},{label:"Maximum Bytes Billed",name:"maximumBytesBilled",type:"text"},{label:"Query Timeout Milliseconds",name:"queryTimeoutMilliseconds",type:"text"}],snowflake:[{label:"Account",name:"account",type:"text"},{label:"Username",name:"username",type:"text"},{label:"Password",name:"password",type:"password"},{label:"Role",name:"role",type:"text"},{label:"Warehouse",name:"warehouse",type:"text"},{label:"Database",name:"database",type:"text"},{label:"Schema",name:"schema",type:"text"},{label:"Response Timeout Milliseconds",name:"responseTimeoutMilliseconds",type:"text"}],trino:[{label:"Server",name:"server",type:"text"},{label:"Port",name:"port",type:"number"},{label:"Catalog",name:"catalog",type:"text"},{label:"Schema",name:"schema",type:"text"},{label:"User",name:"user",type:"text"},{label:"Password",name:"password",type:"password"}],mysql:[{label:"Host",name:"host",type:"text"},{label:"Port",name:"port",type:"number"},{label:"User",name:"user",type:"text"},{label:"Password",name:"password",type:"password"},{label:"Database",name:"database",type:"text"}]},qx={postgres:"postgresConnection",bigquery:"bigqueryConnection",snowflake:"snowflakeConnection",trino:"trinoConnection",mysql:"mysqlConnection"};function CEe({onSubmit:e,isSubmitting:t}){const[n,r]=_.useState(!1),[o,a]=_.useState("postgres"),i=()=>{r(!0)},l=()=>{r(!1)},u=async d=>{d.preventDefault();const p=new FormData(d.currentTarget),h=p.get("name")?.toString(),y=p.get("type")?.toString(),g=B0[y];if(!h)throw new Error("Name is required");if(!y)throw new Error("Type is required");const b={name:h,type:y,[{postgres:"postgresConnection",bigquery:"bigqueryConnection",snowflake:"snowflakeConnection",trino:"trinoConnection",mysql:"mysqlConnection"}[y]]:g.reduce((S,T)=>(S[T.name]=p.get(T.name)?.toString(),S),{})};await e(b),l()};return v.jsxs(Fe.Fragment,{children:[v.jsx(jr,{variant:"outlined",onClick:i,children:"Add Connection"}),v.jsxs(Ss,{open:n,onClose:l,children:[v.jsx(_s,{children:"Create New Connection"}),v.jsxs(Cs,{children:[v.jsx(Yd,{children:"Add a new connection to query your data database using Malloy."}),v.jsxs("form",{onSubmit:u,id:"connection-form",children:[v.jsx(bo,{autoFocus:!0,required:!0,margin:"dense",id:"name",name:"name",label:"Connection Name",type:"text",fullWidth:!0,variant:"standard"}),v.jsx(bo,{margin:"dense",id:"type",name:"type",label:"Connection Type",fullWidth:!0,variant:"standard",value:o,select:!0,onChange:d=>a(d.target.value),children:Object.values(E4).map(d=>v.jsx(a7,{value:d,children:d},d))}),B0[o].map(d=>v.jsx(bo,{margin:"dense",id:d.name,name:d.name,label:d.label,type:d.type,fullWidth:!0,variant:"standard"},d.name))]})]}),v.jsxs(Ts,{children:[v.jsx(jr,{disabled:t,onClick:l,children:"Cancel"}),v.jsx(jr,{type:"submit",form:"connection-form",loading:t,children:"Create Connection"})]})]})]})}function _Ee(e){return Zt("MuiIconButton",e)}const j3=Ht("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),AEe=e=>{const{classes:t,disabled:n,color:r,edge:o,size:a,loading:i}=e,l={root:["root",i&&"loading",n&&"disabled",r!=="default"&&`color${ut(r)}`,o&&`edge${ut(o)}`,`size${ut(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Xt(l,_Ee,t)},kEe=Qe(av,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${ut(n.color)}`],n.edge&&t[`edge${ut(n.edge)}`],t[`size${ut(n.size)}`]]}})(wn(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),wn(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Ga()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Ga()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${j3.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${j3.loading}`]:{color:"transparent"}}))),wEe=Qe("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),U0=_.forwardRef(function(e,t){const n=rn({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:a,color:i="default",disabled:l=!1,disableFocusRipple:u=!1,size:d="medium",id:p,loading:h=null,loadingIndicator:y,...g}=n,b=am(p),S=y??v.jsx(G8,{"aria-labelledby":b,color:"inherit",size:16}),T={...n,edge:r,color:i,disabled:l,disableFocusRipple:u,loading:h,loadingIndicator:S,size:d},E=AEe(T);return v.jsxs(kEe,{id:h?b:p,className:xt(E.root,a),centerRipple:!0,focusRipple:!u,disabled:l||h,ref:t,...g,ownerState:T,children:[typeof h=="boolean"&&v.jsx("span",{className:E.loadingWrapper,style:{display:"contents"},children:v.jsx(wEe,{className:E.loadingIndicator,ownerState:T,children:h&&S})}),o]})});function REe({connection:e,onCloseDialog:t,isMutating:n,onDelete:r}){const[o,a]=_.useState(!1),[i,l]=_.useState(""),u=()=>{a(!0)},d=()=>{a(!1),t()};return v.jsxs(Fe.Fragment,{children:[v.jsx(U0,{onClick:p=>{p.stopPropagation(),u()},children:v.jsx(MC,{})}),v.jsxs(Ss,{onClose:d,"aria-labelledby":"customized-dialog-title",open:o,children:[v.jsx(_s,{sx:{m:0,p:2},id:"customized-dialog-title",children:"Delete Connection"}),v.jsx(U0,{"aria-label":"close",onClick:d,sx:p=>({position:"absolute",right:8,top:8,color:p.palette.grey[500]}),children:v.jsx(kl,{})}),v.jsx(Cs,{dividers:!0,children:v.jsxs(gm,{gutterBottom:!0,children:['Are you sure you want to delete "',e.name,'"? This action cannot be undone.']})}),v.jsx(Ts,{children:v.jsx(jr,{loading:n,variant:"contained",autoFocus:!0,onClick:()=>r(),color:"error",children:"Delete"})}),v.jsx(ms,{open:i!=="",autoHideDuration:6e3,onClose:()=>l(""),message:i})]})]})}function DEe({connection:e,onSubmit:t,isSubmitting:n}){const[r,o]=_.useState(!1),[a,i]=_.useState(e.type),l=()=>{o(!0)},u=()=>{o(!1)},d=async p=>{p.preventDefault();const h=new FormData(p.currentTarget),y=h.get("name")?.toString(),g=h.get("type")?.toString(),b=B0[g];if(!y)throw new Error("Name is required");if(!g)throw new Error("Type is required");const S={name:y,type:g,[qx[g]]:b.reduce((T,E)=>(T[E.name]=h.get(E.name)?.toString()??e[qx[g]][E.name],T),{})};await t(S),u()};return v.jsxs(Fe.Fragment,{children:[v.jsx(Gn,{onClick:p=>{p.preventDefault(),p.stopPropagation(),l()},children:v.jsx(FC,{})}),v.jsxs(Ss,{open:r,onClose:u,children:[v.jsx(_s,{onClick:p=>{p.stopPropagation()},children:"Edit Connection"}),v.jsxs(Cs,{onClick:p=>{p.stopPropagation()},children:[v.jsx(Yd,{children:"Edit a connection to query your data database using Malloy."}),v.jsxs("form",{onSubmit:d,id:"connection-form",children:[v.jsx(bo,{autoFocus:!0,required:!0,margin:"dense",id:"name",name:"name",label:"Connection Name",type:"text",fullWidth:!0,variant:"standard",value:e.name,defaultValue:e.name}),v.jsx(bo,{margin:"dense",id:"type",name:"type",label:"Connection Type",fullWidth:!0,variant:"standard",value:a,select:!0,onChange:p=>i(p.target.value),children:Object.values(E4).map(p=>v.jsx(a7,{value:p,children:p},p))}),B0[a].map(p=>v.jsx(bo,{margin:"dense",id:p.name,name:p.name,label:p.label,type:p.type,fullWidth:!0,variant:"standard",defaultValue:e?.[qx[a]??""]?.[p.name??""]??""},p.name))]})]}),v.jsxs(Ts,{onClick:p=>{p.stopPropagation()},children:[v.jsx(jr,{disabled:n,onClick:u,children:"Cancel"}),v.jsx(jr,{type:"submit",form:"connection-form",loading:n,children:"Edit Connection"})]})]})]})}function IEe({connectionName:e,resourceUri:t,schema:n}){const{apiClients:r}=kn(),{projectName:o}=Vn(t),[a,i]=Fe.useState(void 0),[l,u]=Fe.useState(n||null),[d,p]=Fe.useState(!1),{data:h,isSuccess:y,isError:g,error:b,isLoading:S}=no({queryKey:["tablePath",o,e],queryFn:()=>r.connections.listSchemas(o,e)});return v.jsxs(tr,{container:!0,spacing:1,children:[!n&&v.jsx(tr,{size:{xs:12,md:4},children:v.jsxs(ss,{sx:{p:1,m:0},children:[v.jsxs(gt,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:0},children:[v.jsx(Ze,{variant:"overline",fontWeight:"bold",children:"Table Paths"}),v.jsx(aY,{control:v.jsx(fQ,{checked:d,onChange:T=>p(T.target.checked)}),label:"Hidden Schemas"})]}),v.jsx(ds,{sx:{mt:"2px"}}),v.jsxs(gt,{sx:{mt:"2px",maxHeight:"600px",overflowY:"auto"},children:[S&&v.jsx(eo,{text:"Fetching Table Paths..."}),g&&v.jsx(to,{error:b,context:`${o} > ${e}`}),y&&h.data.length===0&&v.jsx(Ze,{variant:"body2",children:"No Schemas"}),y&&h.data.length>0&&v.jsx(lb,{dense:!0,disablePadding:!0,children:h.data.filter(({isHidden:T})=>d||!T).sort((T,E)=>T.isDefault===E.isDefault?0:T.isDefault?-1:1).map(T=>{const E=(T.description||"").trim(),A=E!=="",C=A?E.split(/\r?\n/)[0]:void 0,D=v.jsx(PP,{selected:l===T.name,onClick:()=>u(T.name),children:v.jsx(ls,{primary:T.name,secondary:C})},T.name);return A?v.jsx(wo,{title:E,arrow:!0,children:D},T.name):D})})]})]})}),v.jsx(tr,{size:{xs:12,md:n?6:4},children:l&&v.jsx(ss,{sx:{p:1,m:0},children:v.jsx(NEe,{connectionName:e,schemaName:l,onTableClick:T=>{i(T)},resourceUri:t})})}),v.jsx(tr,{size:{xs:12,md:n?6:4},children:a&&l&&v.jsx(ss,{sx:{p:1,m:0},children:v.jsx(OEe,{connectionName:e,schemaName:l,tableName:a,resourceUri:t})})})]})}function OEe({connectionName:e,schemaName:t,tableName:n,resourceUri:r}){const{apiClients:o}=kn(),{projectName:a}=Vn(r),{data:i,isSuccess:l,isError:u,error:d,isLoading:p}=no({queryKey:["tablePathSchema",a,e,t,n],queryFn:()=>o.connections.getTablesource(a,e,n,`${t}.${n}`)});return v.jsxs(v.Fragment,{children:[v.jsxs(Ze,{variant:"overline",fontWeight:"bold",children:["Schema: ",t,".",n]}),v.jsx(ds,{}),v.jsxs(gt,{sx:{mt:"10px",maxHeight:"600px",overflowY:"auto"},children:[p&&v.jsx(eo,{text:"Fetching Table Details..."}),u&&v.jsx(to,{error:d,context:`${a} > ${e} > ${t}.${n}`}),l&&i&&v.jsx(AC,{children:v.jsxs(hh,{size:"small",sx:{"& .MuiTableCell-root":{padding:"10px"}},children:[v.jsx(kC,{children:v.jsxs(bi,{children:[v.jsx(vn,{children:"NAME"}),v.jsx(vn,{children:"TYPE"})]})}),v.jsx(mh,{children:i.data.columns?.map(h=>v.jsxs(bi,{children:[v.jsx(vn,{children:h.name}),v.jsx(vn,{children:h.type})]},h.name))})]})})]})]})}function NEe({connectionName:e,schemaName:t,onTableClick:n,resourceUri:r}){const{projectName:o}=Vn(r),{apiClients:a}=kn(),{data:i,isSuccess:l,isError:u,error:d,isLoading:p}=no({queryKey:["tablesInSchema",o,e,t],queryFn:()=>a.connections.listTables(o,e,t)});return v.jsxs(v.Fragment,{children:[v.jsxs(Ze,{variant:"overline",fontWeight:"bold",children:["Tables in ",t]}),v.jsx(ds,{}),v.jsxs(gt,{sx:{mt:"2px",maxHeight:"600px",overflowY:"auto"},children:[p&&v.jsx(eo,{text:"Fetching Tables..."}),u&&v.jsx(to,{error:d,context:`${o} > ${e} > ${t}`}),l&&i.data.length===0&&v.jsx(Ze,{variant:"body2",children:"No Tables"}),l&&i.data.length>0&&v.jsx(lb,{dense:!0,disablePadding:!0,children:i.data.map(h=>v.jsx(PP,{onClick:()=>n(h),children:v.jsx(ls,{primary:h})},h))})]})]})}function PEe({connection:e,onClick:t,onEdit:n,onDelete:r,isMutating:o,mutable:a}){return v.jsxs(bi,{sx:{"&:hover":{backgroundColor:"action.hover"}},children:[v.jsx(vn,{sx:{cursor:"pointer",flexGrow:1},onClick:t,children:v.jsxs(gt,{sx:{display:"flex",alignItems:"center",gap:1},children:[v.jsx(Ze,{variant:"body2",children:e.name}),v.jsx(vd,{sx:{fontSize:"1rem",color:"action.active",opacity:.7}})]})}),v.jsx(vn,{sx:{minWidth:"120px"},children:v.jsx(Ze,{variant:"body2",children:e.type})}),a&&v.jsxs(vn,{sx:{minWidth:"120px"},children:[v.jsx(DEe,{connection:e,onSubmit:n,isSubmitting:o}),v.jsx(REe,{connection:e,onCloseDialog:()=>{},isMutating:o,onDelete:()=>r(e)})]})]},e.name)}function LEe({resourceUri:e}){const{apiClients:t,mutable:n}=kn(),r=gs(),{projectName:o}=Vn(e),[a,i]=_.useState(""),[l,u]=_.useState(null),d=s_({projectName:o,connectionName:l}),{data:p,isSuccess:h,isError:y,error:g}=no({queryKey:["connections",o],queryFn:()=>t.connections.listConnections(o)}),b=C=>{u(C)},S=()=>{u(null)},T=Ti({mutationFn:C=>t.projects.updateProject(o,{name:o,connections:[...p.data,C]}),onSuccess(){i("Connection added successfully"),r.invalidateQueries({queryKey:["connections",o]})},onError(C){i(C.message)}}),E=Ti({mutationFn:C=>t.projects.updateProject(o,{name:o,connections:p.data.map(D=>D.name===C.name?C:D)}),onSuccess(C,D){i(`Connection ${D.name} updated successfully`),r.invalidateQueries({queryKey:["connections",o]})},onError(C){i(C.message)}}),A=Ti({mutationFn:C=>t.projects.updateProject(o,{name:o,connections:p.data.filter(D=>D.name!==C.name)}),onSuccess(C,D){i(`Connection ${D.name} deleted successfully`),r.invalidateQueries({queryKey:["connections",o]})},onError(C){i(C.message)}});return v.jsxs(v.Fragment,{children:[v.jsx(bs,{children:v.jsxs(vs,{children:[v.jsx(Ol,{children:"Database Connections"}),v.jsxs(gt,{sx:{mb:1,maxHeight:"200px",overflowY:"auto"},children:[!h&&!y&&v.jsx(Ze,{variant:"body2",sx:{m:"auto"},children:"Fetching Connections..."}),h&&p.data.length>0&&v.jsx(hh,{size:"small",sx:{borderCollapse:"collapse","& .MuiTableRow-root":{display:"flex",width:"100%"},"& .MuiTableCell-root":{borderBottom:"1px solid #e0e0e0",display:"flex",alignItems:"center"},"& .MuiTableRow-root:last-child .MuiTableCell-root":{borderBottom:"none"}},children:v.jsxs(mh,{children:[v.jsxs(bi,{children:[v.jsx(vn,{sx:{flexGrow:1},children:v.jsx(Ze,{variant:"body2",fontWeight:"500",color:"text.secondary",children:"Connection Name"})}),v.jsx(vn,{sx:{minWidth:"120px"},children:v.jsx(Ze,{variant:"body2",fontWeight:"500",color:"text.secondary",children:"Type"})}),n&&v.jsx(vn,{sx:{minWidth:"120px"},children:v.jsx(Ze,{variant:"body2",fontWeight:"500",color:"text.secondary",sx:{mx:"auto"},children:"Actions"})})]}),p.data.map(C=>v.jsx(PEe,{connection:C,onClick:()=>b(C.name),onEdit:D=>E.mutateAsync(D),onDelete:D=>A.mutateAsync(D),isMutating:E.isPending||A.isPending,mutable:n},C.name))]})}),h&&p.data.length===0&&v.jsx(Ze,{variant:"body2",children:"No Connections"}),y&&v.jsx(to,{error:g,context:`${o} > Connections`})]}),n&&v.jsx(gt,{sx:{display:"flex",justifyContent:"flex-end"},children:v.jsx(CEe,{onSubmit:C=>T.mutateAsync(C),isSubmitting:T.isPending})})]})}),v.jsx(ms,{open:a!=="",autoHideDuration:6e3,onClose:()=>i(""),message:a}),v.jsxs(xl,{open:l!==null,onClose:S,maxWidth:"lg",fullWidth:!0,children:[v.jsxs(Tl,{children:["Connection Explorer: ",l,v.jsx(Gn,{"aria-label":"close",onClick:S,sx:{position:"absolute",right:8,top:8},children:v.jsx(gt,{sx:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"},children:"X"})})]}),v.jsx(Sl,{children:l&&v.jsx(IEe,{resourceUri:d,connectionName:l})})]})]})}function MEe({resourceUri:e}){const{apiClients:t}=kn(),{projectName:n,packageName:r,versionId:o}=Vn(e),[a,i]=Fe.useState(!1),[l,u]=Fe.useState(null),d=T=>{u(T),i(!0)},p=()=>{i(!1),u(null)},{data:h,isError:y,error:g,isSuccess:b}=no({queryKey:["databases",n,r,o],queryFn:()=>t.databases.listDatabases(n,r,o)}),S=T=>T>=1024*1024*1024*1024?`${(T/(1024*1024*1024)).toFixed(2)} T`:T>=1024*1024*1024?`${(T/(1024*1024*1024)).toFixed(2)} G`:T>=1024*1024?`${(T/(1024*1024)).toFixed(2)} M`:`${(T/1024).toFixed(2)} K`;return v.jsxs(v.Fragment,{children:[v.jsx(bs,{children:v.jsxs(vs,{children:[v.jsx(Ol,{children:"Embedded Databases"}),v.jsxs(gt,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!b&&!y&&v.jsx(eo,{text:"Fetching Databases..."}),y&&v.jsx(to,{error:g,context:`${n} > ${r} > Databases`}),b&&h.data.length>0&&v.jsx(hh,{size:"small",sx:{borderCollapse:"collapse","& .MuiTableCell-root":{borderBottom:"1px solid #e0e0e0"},"& .MuiTableRow-root:last-child .MuiTableCell-root":{borderBottom:"none"}},children:v.jsxs(mh,{children:[v.jsxs(bi,{children:[v.jsx(vn,{children:v.jsx(Ze,{variant:"body2",fontWeight:"500",color:"text.secondary",children:"Name"})}),v.jsx(vn,{align:"right",children:v.jsx(Ze,{variant:"body2",fontWeight:"500",color:"text.secondary",children:"Rows"})})]}),h.data.map(T=>v.jsxs(bi,{onClick:()=>d(T),sx:{cursor:"pointer","&:hover":{backgroundColor:"action.hover"}},children:[v.jsx(vn,{component:"th",scope:"row",children:v.jsxs(gt,{sx:{display:"flex",alignItems:"center",gap:1},children:[v.jsx(Ze,{variant:"body2",children:T.path}),v.jsx(vd,{sx:{fontSize:"1rem",color:"action.active",opacity:.7}})]})}),v.jsx(vn,{align:"right",children:v.jsx(Ze,{variant:"body2",children:S(T.info.rowCount)})})]},T.path))]})}),b&&h.data.length===0&&v.jsx(Ze,{variant:"body2",sx:{m:"auto"},children:"No databases found"})]})]})}),v.jsxs(xl,{open:a,onClose:p,maxWidth:"sm",fullWidth:!0,children:[v.jsxs(Tl,{children:[l?.path,v.jsx(Gn,{"aria-label":"close",onClick:p,sx:{position:"absolute",right:8,top:8},children:v.jsx(gt,{sx:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"},children:"X"})})]}),v.jsx(Sl,{children:l?.info?.columns&&v.jsx(AC,{children:v.jsxs(hh,{size:"small",children:[v.jsx(kC,{children:v.jsxs(bi,{children:[v.jsx(vn,{children:"Column"}),v.jsx(vn,{children:"Type"})]})}),v.jsx(mh,{children:l.info.columns.map(T=>v.jsxs(bi,{children:[v.jsx(vn,{component:"th",scope:"row",children:T.name}),v.jsx(vn,{children:T.type})]},T.name))})]})})})]})]})}function FEe(e){return Zt("MuiCollapse",e)}Ht("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const jEe=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Xt(r,FEe,n)},BEe=Qe("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(wn(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),UEe=Qe("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),zEe=Qe("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Lh=_.forwardRef(function(e,t){const n=rn({props:e,name:"MuiCollapse"}),{addEndListener:r,children:o,className:a,collapsedSize:i="0px",component:l,easing:u,in:d,onEnter:p,onEntered:h,onEntering:y,onExit:g,onExited:b,onExiting:S,orientation:T="vertical",style:E,timeout:A=xL.standard,TransitionComponent:C=Qa,...D}=n,I={...n,orientation:T,collapsedSize:i},O=jEe(I),j=Md(),$=ov(),z=_.useRef(null),L=_.useRef(),H=typeof i=="number"?`${i}px`:i,k=T==="horizontal",F=k?"width":"height",B=_.useRef(null),G=ur(t,B),U=J=>se=>{if(J){const ne=B.current;se===void 0?J(ne):J(ne,se)}},Q=()=>z.current?z.current[k?"clientWidth":"clientHeight"]:0,Y=U((J,se)=>{z.current&&k&&(z.current.style.position="absolute"),J.style[F]=H,p&&p(J,se)}),oe=U((J,se)=>{const ne=Q();z.current&&k&&(z.current.style.position="");const{duration:be,easing:fe}=Cd({style:E,timeout:A,easing:u},{mode:"enter"});if(A==="auto"){const De=j.transitions.getAutoHeightDuration(ne);J.style.transitionDuration=`${De}ms`,L.current=De}else J.style.transitionDuration=typeof be=="string"?be:`${be}ms`;J.style[F]=`${ne}px`,J.style.transitionTimingFunction=fe,y&&y(J,se)}),N=U((J,se)=>{J.style[F]="auto",h&&h(J,se)}),K=U(J=>{J.style[F]=`${Q()}px`,g&&g(J)}),X=U(b),P=U(J=>{const se=Q(),{duration:ne,easing:be}=Cd({style:E,timeout:A,easing:u},{mode:"exit"});if(A==="auto"){const fe=j.transitions.getAutoHeightDuration(se);J.style.transitionDuration=`${fe}ms`,L.current=fe}else J.style.transitionDuration=typeof ne=="string"?ne:`${ne}ms`;J.style[F]=H,J.style.transitionTimingFunction=be,S&&S(J)});return v.jsx(C,{in:d,onEnter:Y,onEntered:N,onEntering:oe,onExit:K,onExited:X,onExiting:P,addEndListener:J=>{A==="auto"&&$.start(L.current||0,J),r&&r(B.current,J)},nodeRef:B,timeout:A==="auto"?null:A,...D,children:(J,{ownerState:se,...ne})=>v.jsx(BEe,{as:l,className:xt(O.root,a,{entered:O.entered,exited:!d&&H==="0px"&&O.hidden}[J]),style:{[k?"minWidth":"minHeight"]:H,...E},ref:G,ownerState:{...I,state:J},...ne,children:v.jsx(UEe,{ownerState:{...I,state:J},className:O.wrapper,ref:z,children:v.jsx(zEe,{ownerState:{...I,state:J},className:O.wrapperInner,children:o})})})})});Lh&&(Lh.muiSupportAuto=!0);function HEe(e){return Zt("PrivateSwitchBase",e)}Ht("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const $Ee=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,a={root:["root",n&&"checked",r&&"disabled",o&&`edge${ut(o)}`],input:["input"]};return Xt(a,HEe,t)},GEe=Qe(av,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),VEe=Qe("input",{name:"MuiSwitchBase",shouldForwardProp:Eo})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),qEe=_.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,defaultChecked:a,disabled:i,disableFocusRipple:l=!1,edge:u=!1,icon:d,id:p,inputProps:h,inputRef:y,name:g,onBlur:b,onChange:S,onFocus:T,readOnly:E,required:A=!1,tabIndex:C,type:D,value:I,slots:O={},slotProps:j={},...$}=e,[z,L]=YS({controlled:r,default:!!a,name:"SwitchBase",state:"checked"}),H=$c(),k=J=>{T&&T(J),H&&H.onFocus&&H.onFocus(J)},F=J=>{b&&b(J),H&&H.onBlur&&H.onBlur(J)},B=J=>{if(J.nativeEvent.defaultPrevented)return;const se=J.target.checked;L(se),S&&S(J,se)};let G=i;H&&typeof G>"u"&&(G=H.disabled);const U=D==="checkbox"||D==="radio",Q={...e,checked:z,disabled:G,disableFocusRipple:l,edge:u},Y=$Ee(Q),oe={slots:O,slotProps:{input:h,...j}},[N,K]=Ln("root",{ref:t,elementType:GEe,className:Y.root,shouldForwardComponentProp:!0,externalForwardedProps:{...oe,component:"span",...$},getSlotProps:J=>({...J,onFocus:se=>{J.onFocus?.(se),k(se)},onBlur:se=>{J.onBlur?.(se),F(se)}}),ownerState:Q,additionalProps:{centerRipple:!0,focusRipple:!l,disabled:G,role:void 0,tabIndex:null}}),[X,P]=Ln("input",{ref:y,elementType:VEe,className:Y.input,externalForwardedProps:oe,getSlotProps:J=>({...J,onChange:se=>{J.onChange?.(se),B(se)}}),ownerState:Q,additionalProps:{autoFocus:n,checked:r,defaultChecked:a,disabled:G,id:U?p:void 0,name:g,readOnly:E,required:A,tabIndex:C,type:D,...D==="checkbox"&&I===void 0?{}:{value:I}}});return v.jsxs(N,{...K,children:[v.jsx(X,{...P}),z?o:d]})}),WEe=Mn(v.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),YEe=Mn(v.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),QEe=Mn(v.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));function KEe(e){return Zt("MuiCheckbox",e)}const Wx=Ht("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),XEe=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,a={root:["root",n&&"indeterminate",`color${ut(r)}`,`size${ut(o)}`]},i=Xt(a,KEe,t);return{...t,...i}},ZEe=Qe(qEe,{shouldForwardProp:e=>Eo(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${ut(n.size)}`],n.color!=="default"&&t[`color${ut(n.color)}`]]}})(wn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Ga()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Ga()).map(([t])=>({props:{color:t},style:{[`&.${Wx.checked}, &.${Wx.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Wx.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),JEe=v.jsx(YEe,{}),exe=v.jsx(WEe,{}),txe=v.jsx(QEe,{}),i7=_.forwardRef(function(e,t){const n=rn({props:e,name:"MuiCheckbox"}),{checkedIcon:r=JEe,color:o="primary",icon:a=exe,indeterminate:i=!1,indeterminateIcon:l=txe,inputProps:u,size:d="medium",disableRipple:p=!1,className:h,slots:y={},slotProps:g={},...b}=n,S=i?l:a,T=i?l:r,E={...n,disableRipple:p,color:o,indeterminate:i,size:d},A=XEe(E),C=g.input??u,[D,I]=Ln("root",{ref:t,elementType:ZEe,className:xt(A.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:g,...b},ownerState:E,additionalProps:{type:"checkbox",icon:_.cloneElement(S,{fontSize:S.props.fontSize??d}),checkedIcon:_.cloneElement(T,{fontSize:T.props.fontSize??d}),disableRipple:p,slots:y,slotProps:{input:wL(typeof C=="function"?C(E):C,{"data-indeterminate":i})}}});return v.jsx(D,{...I,classes:A})});function s7(e){return Tre}const l7=_.createContext(null);function nxe(e){const{value:t,children:n}=e;return v.jsx(l7.Provider,{value:t,children:t.wrapRoot({children:n,instance:t.instance})})}const Gc=()=>{const e=_.useContext(l7);if(e==null)throw new Error(["MUI X: Could not find the Tree View context.","It looks like you rendered your component outside of a SimpleTreeView or RichTreeView parent component.","This can also happen if you are bundling multiple versions of the Tree View."].join(`
|
|
439
|
-
`));return e},rxe=({props:e})=>{const{instance:t}=Gc(),{label:n,itemId:r}=e,[o,a]=_.useState(n),i=t.isItemBeingEdited(r);return _.useEffect(()=>{i||a(n)},[i,n]),{propsEnhancers:{labelInput:({externalEventHandlers:l,interactions:u})=>t.isItemEditable(r)?{value:o??"","data-element":"labelInput",onChange:d=>{l.onChange?.(d),a(d.target.value)},onKeyDown:d=>{if(l.onKeyDown?.(d),d.defaultMuiPrevented)return;const p=d.target;d.key==="Enter"&&p.value?u.handleSaveItemLabel(d,p.value):d.key==="Escape"&&u.handleCancelItemLabelEditing(d)},onBlur:d=>{l.onBlur?.(d),!d.defaultMuiPrevented&&d.target.value&&u.handleSaveItemLabel(d,d.target.value)},autoFocus:!0,type:"text"}:{}}}},Aa=({instance:e,state:t,setState:n,params:r})=>{const o=_.useRef(t.editedItemId),a=h=>o.current===h,i=h=>{n(y=>Le({},y,{editedItemId:h})),o.current=h},l=h=>h===t.editedItemId,u=!!r.isItemEditable,d=h=>{if(h==null||!u)return!1;const y=e.getItem(h);return y?typeof r.isItemEditable=="function"?r.isItemEditable(y):!!r.isItemEditable:!1},p=(h,y)=>{if(!y)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","The label of an item cannot be empty.",h].join(`
|
|
440
|
-
`));n(g=>{const b=g.items.itemMetaMap[h];return b.label!==y?Le({},g,{items:Le({},g.items,{itemMetaMap:Le({},g.items.itemMetaMap,{[h]:Le({},b,{label:y})})})}):g}),r.onItemLabelChange&&r.onItemLabelChange(h,y)};return{instance:{setEditedItemId:i,isItemBeingEdited:l,updateItemLabel:p,isItemEditable:d,isTreeViewEditable:u,isItemBeingEditedRef:a},publicAPI:{updateItemLabel:p}}};Aa.itemPlugin=rxe;Aa.getDefaultizedParams=({params:e,experimentalFeatures:t})=>{const n=t?.labelEditing;return Le({},e,{isItemEditable:n?e.isItemEditable??!1:!1})};Aa.getInitialState=()=>({editedItemId:null});Aa.params={onItemLabelChange:!0,isItemEditable:!0};const Cc=(e,t)=>e.getAvailablePlugins().has(t),c7=e=>Array.isArray(e)?e.length>0&&e.some(c7):!!e,oxe=({itemId:e,children:t})=>{const{instance:n,selection:{multiSelect:r},publicAPI:o}=Gc(),a={expandable:c7(t),expanded:n.isItemExpanded(e),focused:n.isItemFocused(e),selected:n.isItemSelected(e),disabled:n.isItemDisabled(e),editing:n?.isItemBeingEdited?n?.isItemBeingEdited(e):!1,editable:n.isItemEditable?n.isItemEditable(e):!1},i=p=>{if(a.disabled)return;a.focused||n.focusItem(p,e);const h=r&&(p.shiftKey||p.ctrlKey||p.metaKey);a.expandable&&!(h&&n.isItemExpanded(e))&&n.toggleItemExpansion(p,e)},l=p=>{a.disabled||(!a.focused&&!a.editing&&n.focusItem(p,e),r&&(p.shiftKey||p.ctrlKey||p.metaKey)?p.shiftKey?n.expandSelectionRange(p,e):n.selectItem({event:p,itemId:e,keepExistingSelection:!0}):n.selectItem({event:p,itemId:e,shouldBeSelected:!0}))},u=p=>{const h=p.nativeEvent.shiftKey;r&&h?n.expandSelectionRange(p,e):n.selectItem({event:p,itemId:e,keepExistingSelection:r,shouldBeSelected:p.target.checked})},d=()=>{Cc(n,Aa)&&n.isItemEditable(e)&&(n.isItemBeingEdited(e)?n.setEditedItemId(null):n.setEditedItemId(e))};return{interactions:{handleExpansion:i,handleSelection:l,handleCheckboxSelection:u,toggleItemEditing:d,handleSaveItemLabel:(p,h)=>{Cc(n,Aa)&&n.isItemBeingEditedRef(e)&&(n.updateItemLabel(e,h),d(),n.focusItem(p,e))},handleCancelItemLabelEditing:p=>{Cc(n,Aa)&&n.isItemBeingEditedRef(e)&&(d(),n.focusItem(p,e))}},status:a,publicAPI:o}},tA=_.createContext(()=>-1),u7=(e,t)=>{let n=t.length-1;for(;n>=0&&!e.isItemNavigable(t[n]);)n-=1;if(n!==-1)return t[n]},d7=(e,t)=>{const n=e.getItemMeta(t),r=e.getItemOrderedChildrenIds(n.parentId),o=e.getItemIndex(t);if(o===0)return n.parentId;let a=o-1;for(;!e.isItemNavigable(r[a])&&a>=0;)a-=1;if(a===-1)return n.parentId==null?null:d7(e,n.parentId);let i=r[a],l=u7(e,e.getItemOrderedChildrenIds(i));for(;e.isItemExpanded(i)&&l!=null;)i=l,l=e.getItemOrderedChildrenIds(i).find(e.isItemNavigable);return i},Fy=(e,t)=>{if(e.isItemExpanded(t)){const r=e.getItemOrderedChildrenIds(t).find(e.isItemNavigable);if(r!=null)return r}let n=e.getItemMeta(t);for(;n!=null;){const r=e.getItemOrderedChildrenIds(n.parentId),o=e.getItemIndex(n.id);if(o<r.length-1){let a=o+1;for(;!e.isItemNavigable(r[a])&&a<r.length-1;)a+=1;if(e.isItemNavigable(r[a]))return r[a]}n=e.getItemMeta(n.parentId)}return null},f7=e=>{let t=null;for(;t==null||e.isItemExpanded(t);){const n=e.getItemOrderedChildrenIds(t),r=u7(e,n);if(r==null)return t;t=r}return t},Mh=e=>e.getItemOrderedChildrenIds(null).find(e.isItemNavigable),p7=(e,t,n)=>{if(t===n)return[t,n];const r=e.getItemMeta(t),o=e.getItemMeta(n);if(r.parentId===o.id||o.parentId===r.id)return o.parentId===r.id?[r.id,o.id]:[o.id,r.id];const a=[r.id],i=[o.id];let l=r.parentId,u=o.parentId,d=i.indexOf(l)!==-1,p=a.indexOf(u)!==-1,h=!0,y=!0;for(;!p&&!d;)h&&(a.push(l),d=i.indexOf(l)!==-1,h=l!==null,!d&&h&&(l=e.getItemMeta(l).parentId)),y&&!d&&(i.push(u),p=a.indexOf(u)!==-1,y=u!==null,!p&&y&&(u=e.getItemMeta(u).parentId));const g=d?l:u,b=e.getItemOrderedChildrenIds(g),S=a[a.indexOf(g)-1],T=i[i.indexOf(g)-1];return b.indexOf(S)<b.indexOf(T)?[t,n]:[n,t]},axe=(e,t,n)=>{const r=u=>{if(e.isItemExpandable(u)&&e.isItemExpanded(u))return e.getItemOrderedChildrenIds(u)[0];let d=e.getItemMeta(u);for(;d!=null;){const p=e.getItemOrderedChildrenIds(d.parentId),h=e.getItemIndex(d.id);if(h<p.length-1)return p[h+1];d=e.getItemMeta(d.parentId)}throw new Error("Invalid range")},[o,a]=p7(e,t,n),i=[o];let l=o;for(;l!==a;)l=r(l),e.isItemDisabled(l)||i.push(l);return i},ixe=e=>{let t=Mh(e);const n=[];for(;t!=null;)n.push(t),t=Fy(e,t);return n},Fh=(e,t)=>t!==e.closest('*[role="treeitem"]');let B3=0;const sxe=()=>(B3+=1,`mui-tree-view-${B3}`),nA=({id:e,treeId:t="",itemId:n})=>e??`${t}-${n}`,lxe=e=>{const{runItemPlugins:t,items:{onItemClick:n,disabledItemsFocusable:r,indentationAtItemLevel:o},selection:{disableSelection:a,checkboxSelection:i},expansion:{expansionTrigger:l},treeId:u,instance:d,publicAPI:p}=Gc(),h=_.useContext(tA),{id:y,itemId:g,label:b,children:S,rootRef:T}=e,{rootRef:E,contentRef:A,propsEnhancers:C}=t(e),{interactions:D,status:I}=oxe({itemId:g,children:S}),O=_.useRef(null),j=_.useRef(null),$=ur(T,E,O),z=ur(A,j),L=_.useRef(null),H=nA({itemId:g,treeId:u,id:y}),k=d.canItemBeTabbed(g)?0:-1,F={rootRefObject:O,contentRefObject:j,interactions:D},B=X=>P=>{if(X.onFocus?.(P),P.defaultMuiPrevented)return;const J=!I.disabled||r;!I.focused&&J&&P.currentTarget===P.target&&d.focusItem(P,g)},G=X=>P=>{if(X.onBlur?.(P),P.defaultMuiPrevented)return;const J=d.getItemDOMElement(g);I.editing||P.relatedTarget&&Fh(P.relatedTarget,J)&&(P.target&&P.target?.dataset?.element==="labelInput"&&Fh(P.target,J)||P.relatedTarget?.dataset?.element==="labelInput")||d.removeFocusedItem()},U=X=>P=>{X.onKeyDown?.(P),!(P.defaultMuiPrevented||P.target?.dataset?.element==="labelInput")&&d.handleItemKeyDown(P,g)},Q=X=>P=>{X.onDoubleClick?.(P),!P.defaultMuiPrevented&&D.toggleItemEditing()},Y=X=>P=>{X.onClick?.(P),n?.(P,g),!(P.defaultMuiPrevented||L.current?.contains(P.target))&&(l==="content"&&D.handleExpansion(P),i||D.handleSelection(P))},oe=X=>P=>{X.onMouseDown?.(P),!P.defaultMuiPrevented&&(P.shiftKey||P.ctrlKey||P.metaKey||I.disabled)&&P.preventDefault()},N=X=>P=>{X.onChange?.(P),!P.defaultMuiPrevented&&(a||I.disabled||D.handleCheckboxSelection(P))},K=X=>P=>{X.onClick?.(P),!P.defaultMuiPrevented&&l==="iconContainer"&&D.handleExpansion(P)};return{getRootProps:(X={})=>{const P=Le({},uo(e),uo(X));let J;I.selected?J=!0:a||I.disabled?J=void 0:J=!1;const se=Le({},P,{ref:$,role:"treeitem",tabIndex:k,id:H,"aria-expanded":I.expandable?I.expanded:void 0,"aria-selected":J,"aria-disabled":I.disabled||void 0},X,{onFocus:B(P),onBlur:G(P),onKeyDown:U(P)});o&&(se.style={"--TreeView-itemDepth":typeof h=="function"?h(g):h});const ne=C.root?.(Le({},F,{externalEventHandlers:P}))??{};return Le({},se,ne)},getContentProps:(X={})=>{const P=uo(X),J=Le({},P,X,{ref:z,onClick:Y(P),onMouseDown:oe(P),status:I});o&&(J.indentationAtItemLevel=!0);const se=C.content?.(Le({},F,{externalEventHandlers:P}))??{};return Le({},J,se)},getGroupTransitionProps:(X={})=>{const P=uo(X),J=Le({},P,{unmountOnExit:!0,component:"ul",role:"group",in:I.expanded,children:S},X);return o&&(J.indentationAtItemLevel=!0),J},getIconContainerProps:(X={})=>{const P=uo(X);return Le({},P,X,{onClick:K(P)})},getCheckboxProps:(X={})=>{const P=uo(X);return Le({},P,{visible:i,ref:L,checked:I.selected,disabled:a||I.disabled,tabIndex:-1},X,{onChange:N(P)})},getLabelProps:(X={})=>{const P=Le({},uo(X)),J=Le({},P,{children:b},X,{onDoubleClick:Q(P)});return d.isTreeViewEditable&&(J.editable=I.editable),J},getLabelInputProps:(X={})=>{const P=uo(X),J=C.labelInput?.({rootRefObject:O,contentRefObject:j,externalEventHandlers:P,interactions:D})??{};return Le({},X,J)},getDragAndDropOverlayProps:(X={})=>{const P=uo(X),J=C.dragAndDropOverlay?.(Le({},F,{externalEventHandlers:P}))??{};return Le({},X,J)},rootRef:$,status:I,publicAPI:p}},cxe=lxe;function h7(e){const{instance:t,items:{onItemClick:n},selection:{multiSelect:r,checkboxSelection:o,disableSelection:a},expansion:{expansionTrigger:i}}=Gc(),l=t.isItemExpandable(e),u=t.isItemExpanded(e),d=t.isItemFocused(e),p=t.isItemSelected(e),h=t.isItemDisabled(e),y=t?.isItemBeingEdited?t?.isItemBeingEdited(e):!1,g=t.isItemEditable?t.isItemEditable(e):!1,b=C=>{if(!h){d||t.focusItem(C,e);const D=r&&(C.shiftKey||C.ctrlKey||C.metaKey);l&&!(D&&t.isItemExpanded(e))&&t.toggleItemExpansion(C,e)}},S=C=>{h||(!d&&!y&&t.focusItem(C,e),r&&(C.shiftKey||C.ctrlKey||C.metaKey)?C.shiftKey?t.expandSelectionRange(C,e):t.selectItem({event:C,itemId:e,keepExistingSelection:!0}):t.selectItem({event:C,itemId:e,shouldBeSelected:!0}))},T=C=>{if(a||h)return;const D=C.nativeEvent.shiftKey;r&&D?t.expandSelectionRange(C,e):t.selectItem({event:C,itemId:e,keepExistingSelection:r,shouldBeSelected:C.target.checked})},E=C=>{(C.shiftKey||C.ctrlKey||C.metaKey||h)&&C.preventDefault()},A=()=>{Cc(t,Aa)&&t.isItemEditable(e)&&(t.isItemBeingEdited(e)?t.setEditedItemId(null):t.setEditedItemId(e))};return{disabled:h,expanded:u,selected:p,focused:d,editable:g,editing:y,disableSelection:a,checkboxSelection:o,handleExpansion:b,handleSelection:S,handleCheckboxSelection:T,handleContentClick:n,preventSelection:E,expansionTrigger:i,toggleItemEditing:A,handleSaveItemLabel:(C,D)=>{Cc(t,Aa)&&t.isItemBeingEditedRef(e)&&(t.updateItemLabel(e,D),A(),t.focusItem(C,e))},handleCancelItemLabelEditing:C=>{Cc(t,Aa)&&t.isItemBeingEditedRef(e)&&(A(),t.focusItem(C,e))}}}const uxe=Qe("div",{name:"MuiTreeItem2DragAndDropOverlay",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>hy(e)&&e!=="action"})(({theme:e})=>({position:"absolute",left:0,display:"flex",top:0,bottom:0,right:0,pointerEvents:"none",variants:[{props:{action:"make-child"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderRadius:e.shape.borderRadius,backgroundColor:e.vars?`rgba(${e.vars.palette.primary.darkChannel} / ${e.vars.palette.action.focusOpacity})`:Zo(e.palette.primary.dark,e.palette.action.focusOpacity)}},{props:{action:"reorder-above"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderTop:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"reorder-below"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"move-to-parent"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * calc(var(--TreeView-itemDepth) - 1))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}}]}));function dxe(e){return e.action==null?null:v.jsx(uxe,Le({},e))}const fxe=Qe("input",{name:"MuiTreeItem2",slot:"LabelInput",overridesResolver:(e,t)=>t.labelInput})(({theme:e})=>Le({},e.typography.body1,{width:"100%",backgroundColor:e.palette.background.paper,borderRadius:e.shape.borderRadius,border:"none",padding:"0 2px",boxSizing:"border-box","&:focus":{outline:`1px solid ${e.palette.primary.main}`}})),pxe=["classes","className","displayIcon","expansionIcon","icon","label","itemId","onClick","onMouseDown","dragAndDropOverlayProps","labelInputProps"],m7=_.forwardRef(function(e,t){const{classes:n,className:r,displayIcon:o,expansionIcon:a,icon:i,label:l,itemId:u,onClick:d,onMouseDown:p,dragAndDropOverlayProps:h,labelInputProps:y}=e,g=Kr(e,pxe),{disabled:b,expanded:S,selected:T,focused:E,editing:A,editable:C,disableSelection:D,checkboxSelection:I,handleExpansion:O,handleSelection:j,handleCheckboxSelection:$,handleContentClick:z,preventSelection:L,expansionTrigger:H,toggleItemEditing:k}=h7(u),F=i||a||o,B=_.useRef(null),G=Y=>{L(Y),p&&p(Y)},U=Y=>{z?.(Y,u),!B.current?.contains(Y.target)&&(H==="content"&&O(Y),I||j(Y),d&&d(Y))},Q=Y=>{Y.defaultMuiPrevented||k()};return v.jsxs("div",Le({},g,{className:xt(n.root,r,S&&n.expanded,T&&n.selected,E&&n.focused,b&&n.disabled,A&&n.editing,C&&n.editable),onClick:U,onMouseDown:G,ref:t,children:[v.jsx("div",{className:n.iconContainer,children:F}),I&&v.jsx(i7,{className:n.checkbox,checked:T,onChange:$,disabled:b||D,ref:B,tabIndex:-1}),A?v.jsx(fxe,Le({},y,{className:n.labelInput})):v.jsx("div",Le({className:n.label},C&&{onDoubleClick:Q},{children:l})),h&&v.jsx(dxe,Le({},h))]}))});function hxe(e){return Zt("MuiTreeItem",e)}const ns=Ht("MuiTreeItem",["root","groupTransition","content","expanded","selected","focused","disabled","iconContainer","label","checkbox","labelInput","editable","editing","dragAndDropOverlay"]),g7=Mn(v.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),y7=Mn(v.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}));function rA(e){const{children:t,itemId:n}=e,{wrapItem:r,instance:o}=Gc();return r({children:t,itemId:n,instance:o})}rA.propTypes={children:WI.node,itemId:WI.string.isRequired};const mxe=["children","className","slots","slotProps","ContentComponent","ContentProps","itemId","id","label","onClick","onMouseDown","onFocus","onBlur","onKeyDown"],gxe=["ownerState"],yxe=["ownerState"],bxe=["ownerState"],vxe=s7(),Exe=e=>{const{classes:t}=e;return Xt({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],checkbox:["checkbox"],label:["label"],labelInput:["labelInput"],editing:["editing"],editable:["editable"],groupTransition:["groupTransition"]},hxe,t)},xxe=Qe("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),Sxe=Qe(m7,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${ns.iconContainer}`]:t.iconContainer},t.label&&{[`& .${ns.label}`]:t.label}],shouldForwardProp:e=>yl(e)&&e!=="indentationAtItemLevel"})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ns.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${ns.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ns.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Zo(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Zo(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Zo(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ns.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Zo(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${ns.iconContainer}`]:{width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${ns.label}`]:Le({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1),[`& .${ns.checkbox}`]:{padding:0},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}}]})),Txe=Qe(Lh,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>yl(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]}),Cxe=_.forwardRef(function(e,t){const{icons:n,runItemPlugins:r,items:{disabledItemsFocusable:o,indentationAtItemLevel:a},selection:{disableSelection:i},expansion:{expansionTrigger:l},treeId:u,instance:d}=Gc(),p=_.useContext(tA),h=vxe({props:e,name:"MuiTreeItem"}),{children:y,className:g,slots:b,slotProps:S,ContentComponent:T=m7,ContentProps:E,itemId:A,id:C,label:D,onClick:I,onMouseDown:O,onBlur:j,onKeyDown:$}=h,z=Kr(h,mxe),{expanded:L,focused:H,selected:k,disabled:F,editing:B,handleExpansion:G,handleCancelItemLabelEditing:U,handleSaveItemLabel:Q}=h7(A),{contentRef:Y,rootRef:oe,propsEnhancers:N}=r(h),K=_.useRef(null),X=_.useRef(null),P=ur(t,oe,K),J=ur(E?.ref,Y,X),se={expandIcon:b?.expandIcon??n.slots.expandIcon??g7,collapseIcon:b?.collapseIcon??n.slots.collapseIcon??y7,endIcon:b?.endIcon??n.slots.endIcon,icon:b?.icon,groupTransition:b?.groupTransition},ne=Te=>Array.isArray(Te)?Te.length>0&&Te.some(ne):!!Te,be=ne(y),fe=Le({},h,{expanded:L,focused:H,selected:k,disabled:F,indentationAtItemLevel:a}),De=Exe(fe),Ce=se.groupTransition??void 0,Se=pl({elementType:Ce,ownerState:{},externalSlotProps:S?.groupTransition,additionalProps:Le({unmountOnExit:!0,in:L,component:"ul",role:"group"},a?{indentationAtItemLevel:!0}:{}),className:De.groupTransition}),ze=Te=>{l==="iconContainer"&&G(Te)},Ne=L?se.collapseIcon:se.expandIcon,_e=pl({elementType:Ne,ownerState:{},externalSlotProps:Te=>L?Le({},hi(n.slotProps.collapseIcon,Te),hi(S?.collapseIcon,Te)):Le({},hi(n.slotProps.expandIcon,Te),hi(S?.expandIcon,Te)),additionalProps:{onClick:ze}}),Ct=Kr(_e,gxe),At=be&&Ne?v.jsx(Ne,Le({},Ct)):null,qe=be?void 0:se.endIcon,Rt=pl({elementType:qe,ownerState:{},externalSlotProps:Te=>be?{}:Le({},hi(n.slotProps.endIcon,Te),hi(S?.endIcon,Te))}),ot=Kr(Rt,yxe),tt=qe?v.jsx(qe,Le({},ot)):null,je=se.icon,Be=pl({elementType:je,ownerState:{},externalSlotProps:S?.icon}),Ut=Kr(Be,bxe),Bn=je?v.jsx(je,Le({},Ut)):null;let Ot;k?Ot=!0:i||F?Ot=void 0:Ot=!1;function de(Te){!H&&(!F||o)&&Te.currentTarget===Te.target&&d.focusItem(Te,A)}function ye(Te){j?.(Te),!(B||Te.relatedTarget&&Fh(Te.relatedTarget,K.current)&&(Te.target&&Te.target?.dataset?.element==="labelInput"&&Fh(Te.target,K.current)||Te.relatedTarget?.dataset?.element==="labelInput"))&&d.removeFocusedItem()}const We=Te=>{$?.(Te),Te.target?.dataset?.element!=="labelInput"&&d.handleItemKeyDown(Te,A)},Ke=nA({itemId:A,treeId:u,id:C}),et=d.canItemBeTabbed(A)?0:-1,St={rootRefObject:K,contentRefObject:X,interactions:{handleSaveItemLabel:Q,handleCancelItemLabelEditing:U}},En=N.root?.(Le({},St,{externalEventHandlers:uo(z)}))??{},on=N.content?.(Le({},St,{externalEventHandlers:uo(E)}))??{},Xe=N.dragAndDropOverlay?.(Le({},St,{externalEventHandlers:{}}))??{},xe=N.labelInput?.(Le({},St,{externalEventHandlers:{}}))??{};return v.jsx(rA,{itemId:A,children:v.jsxs(xxe,Le({className:xt(De.root,g),role:"treeitem","aria-expanded":be?L:void 0,"aria-selected":Ot,"aria-disabled":F||void 0,id:Ke,tabIndex:et},z,{ownerState:fe,onFocus:de,onBlur:ye,onKeyDown:We,ref:P,style:a?Le({},z.style,{"--TreeView-itemDepth":typeof p=="function"?p(A):p}):z.style},En,{children:[v.jsx(Sxe,Le({as:T,classes:{root:De.content,expanded:De.expanded,selected:De.selected,focused:De.focused,disabled:De.disabled,editable:De.editable,editing:De.editing,iconContainer:De.iconContainer,label:De.label,labelInput:De.labelInput,checkbox:De.checkbox},label:D,itemId:A,onClick:I,onMouseDown:O,icon:Bn,expansionIcon:At,displayIcon:tt,ownerState:fe},E,on,Xe.action==null?{}:{dragAndDropOverlayProps:Xe},xe.value==null?{}:{labelInputProps:xe},{ref:J})),y&&v.jsx(Txe,Le({as:Ce},Se,{children:y}))]}))})});function _xe(e){const{slots:t,slotProps:n,status:r}=e,o=Gc(),a=Le({},o.icons.slots,{expandIcon:o.icons.slots.expandIcon??g7,collapseIcon:o.icons.slots.collapseIcon??y7}),i=o.icons.slotProps;let l;t?.icon?l="icon":r.expandable?r.expanded?l="collapseIcon":l="expandIcon":l="endIcon";const u=t?.[l]??a[l],d=pl({elementType:u,externalSlotProps:p=>Le({},hi(i[l],p),hi(n?.[l],p)),ownerState:{}});return u?v.jsx(u,Le({},d)):null}const Axe=["visible"],kxe=Qe("li",{name:"MuiTreeItem2",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),wxe=Qe("div",{name:"MuiTreeItem2",slot:"Content",overridesResolver:(e,t)=>t.content,shouldForwardProp:e=>yl(e)&&e!=="status"&&e!=="indentationAtItemLevel"})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}},{props:({status:t})=>t.disabled,style:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"}},{props:({status:t})=>t.focused,style:{backgroundColor:(e.vars||e).palette.action.focus}},{props:({status:t})=>t.selected,style:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Zo(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Zo(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Zo(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},{props:({status:t})=>t.selected&&t.focused,style:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Zo(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}]})),Rxe=Qe("div",{name:"MuiTreeItem2",slot:"Label",overridesResolver:(e,t)=>t.label,shouldForwardProp:e=>yl(e)&&e!=="editable"})(({theme:e})=>Le({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative",overflow:"hidden"},e.typography.body1,{variants:[{props:({editable:t})=>t,style:{paddingLeft:"2px"}}]})),Dxe=Qe("div",{name:"MuiTreeItem2",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})({width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}});Qe(Lh,{name:"MuiTreeItem2",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>yl(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]});Qe(_.forwardRef((e,t)=>{const{visible:n}=e,r=Kr(e,Axe);return n?v.jsx(i7,Le({},r,{ref:t})):null}),{name:"MuiTreeItem2",slot:"Checkbox",overridesResolver:(e,t)=>t.checkbox})({padding:0});function Ixe(e){return Zt("MuiRichTreeView",e)}Ht("MuiRichTreeView",["root"]);const Oxe=(e,t)=>{const n=_.useRef({}),[r,o]=_.useState(()=>{const a={};return e.forEach(i=>{i.models&&Object.entries(i.models).forEach(([l,u])=>{n.current[l]={isControlled:t[l]!==void 0,getDefaultValue:u.getDefaultValue},a[l]=u.getDefaultValue(t)})}),a});return Object.fromEntries(Object.entries(n.current).map(([a,i])=>{const l=t[a]??r[a];return[a,{value:l,setControlledValue:u=>{i.isControlled||o(d=>Le({},d,{[a]:u}))}}]}))};class Nxe{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let o=this.events[t];o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),r.isFirst?o.highPriority.set(n,!0):o.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const o=Array.from(r.highPriority.keys()),a=Array.from(r.regular.keys());for(let i=o.length-1;i>=0;i-=1){const l=o[i];r.highPriority.has(l)&&l.apply(this,n)}for(let i=0;i<a.length;i+=1){const l=a[i];r.regular.has(l)&&l.apply(this,n)}}once(t,n){const r=this;this.on(t,function o(...a){r.removeListener(t,o),n.apply(r,a)})}}const Pxe=e=>e.isPropagationStopped!==void 0,b7=()=>{const[e]=_.useState(()=>new Nxe),t=_.useCallback((...r)=>{const[o,a,i={}]=r;i.defaultMuiPrevented=!1,!(Pxe(i)&&i.isPropagationStopped())&&e.emit(o,a,i)},[e]),n=_.useCallback((r,o)=>(e.on(r,o),()=>{e.removeListener(r,o)}),[e]);return{instance:{$$publishEvent:t,$$subscribeEvent:n}}};b7.params={};const v7=({plugins:e})=>{const t=new Set(e);return{instance:{getAvailablePlugins:()=>t}}};v7.params={};const oA=({params:e,state:t,setState:n})=>{_.useEffect(()=>{n(o=>o.id.treeId===e.id&&o.id.treeId!==void 0?o:Le({},o,{id:Le({},o.id,{treeId:e.id??sxe()})}))},[n,e.id]);const r=e.id??t.id.treeId;return{getRootProps:()=>({id:r}),contextValue:{treeId:r}}};oA.params={id:!0};oA.getInitialState=({id:e})=>({id:{treeId:e??void 0}});const Lxe=[b7,v7,oA],Mxe=["slots","slotProps","apiRef","experimentalFeatures"],Fxe=e=>{let{props:{slots:t,slotProps:n,apiRef:r,experimentalFeatures:o},plugins:a}=e,i=Kr(e.props,Mxe);const l={};a.forEach(y=>{Object.assign(l,y.params)});const u={},d={};Object.keys(i).forEach(y=>{const g=i[y];l[y]?u[y]=g:d[y]=g});const p=o??{},h=a.reduce((y,g)=>g.getDefaultizedParams?g.getDefaultizedParams({params:y,experimentalFeatures:p}):y,u);return{apiRef:r,forwardedProps:d,pluginParams:h,slots:t??{},slotProps:n??{},experimentalFeatures:p}},jxe=({plugins:e,instance:t,publicAPI:n,rootRef:r})=>({runItemPlugins:o=>{let a=null,i=null;const l=[],u={};e.forEach(h=>{if(!h.itemPlugin)return;const y=h.itemPlugin({props:o,rootRef:a,contentRef:i});y?.rootRef&&(a=y.rootRef),y?.contentRef&&(i=y.contentRef),y?.propsEnhancers&&(l.push(y.propsEnhancers),Object.keys(y.propsEnhancers).forEach(g=>{u[g]=!0}))});const d=h=>y=>{const g={};return l.forEach(b=>{const S=b[h];S!=null&&Object.assign(g,S(y))}),g},p=Object.fromEntries(Object.keys(u).map(h=>[h,d(h)]));return{contentRef:i,rootRef:a,propsEnhancers:p}},wrapItem:({itemId:o,children:a})=>{let i=a;for(let l=e.length-1;l>=0;l-=1){const u=e[l];u.wrapItem&&(i=u.wrapItem({itemId:o,children:i,instance:t}))}return i},wrapRoot:({children:o})=>{let a=o;for(let i=e.length-1;i>=0;i-=1){const l=e[i];l.wrapRoot&&(a=l.wrapRoot({children:a,instance:t}))}return a},instance:t,rootRef:r,publicAPI:n});function Bxe(e){const t=_.useRef({});return e?(e.current==null&&(e.current={}),e.current):t.current}const Uxe=({plugins:e,rootRef:t,props:n})=>{const r=[...Lxe,...e],{pluginParams:o,forwardedProps:a,apiRef:i,experimentalFeatures:l,slots:u,slotProps:d}=Fxe({plugins:r,props:n}),p=Oxe(r,o),h=_.useRef({}).current,y=Bxe(i),g=_.useRef(null),b=ur(g,t),S=jxe({plugins:r,instance:h,publicAPI:y,rootRef:g}),[T,E]=_.useState(()=>{const D={};return r.forEach(I=>{I.getInitialState&&Object.assign(D,I.getInitialState(o))}),D}),A=[],C=D=>{const I=D({instance:h,params:o,slots:u,slotProps:d,experimentalFeatures:l,state:T,setState:E,rootRef:g,models:p,plugins:r});I.getRootProps&&A.push(I.getRootProps),I.publicAPI&&Object.assign(y,I.publicAPI),I.instance&&Object.assign(h,I.instance),I.contextValue&&Object.assign(S,I.contextValue)};return r.forEach(C),{getRootProps:(D={})=>{const I=Le({role:"tree"},a,D,{ref:b});return A.forEach(O=>{Object.assign(I,O(D))}),I},rootRef:b,contextValue:S,instance:h}},zxe=(e,t,n)=>{e.$$publishEvent(t,n)},Qu="__TREE_VIEW_ROOT_PARENT_ID__",Hxe=e=>{const t={};return e.forEach((n,r)=>{t[n]=r}),t},$xe=["children"],E7=({items:e,isItemDisabled:t,getItemLabel:n,getItemId:r})=>{const o={},a={},i={[Qu]:[]},l=(d,p,h)=>{const y=r?r(d):d.id;if(y==null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.","An item was provided without id in the `items` prop:",JSON.stringify(d)].join(`
|
|
441
|
-
`));if(o[y]!=null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.",`Two items were provided with the same id in the \`items\` prop: "${y}"`].join(`
|
|
442
|
-
`));const g=n?n(d):d.label;if(g==null)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","Alternatively, you can use the `getItemLabel` prop to specify a custom label for each item.","An item was provided without label in the `items` prop:",JSON.stringify(d)].join(`
|
|
443
|
-
`));o[y]={id:y,label:g,parentId:h,idAttribute:void 0,expandable:!!d.children?.length,disabled:t?t(d):!1,depth:p},a[y]=d;const b=h??Qu;i[b]||(i[b]=[]),i[b].push(y),d.children?.forEach(S=>l(S,p+1,y))};e.forEach(d=>l(d,0,null));const u={};return Object.keys(i).forEach(d=>{u[d]=Hxe(i[d])}),{itemMetaMap:o,itemMap:a,itemOrderedChildrenIds:i,itemChildrenIndexes:u}},ym=({instance:e,params:t,state:n,setState:r,experimentalFeatures:o})=>{const a=_.useCallback(T=>n.items.itemMetaMap[T],[n.items.itemMetaMap]),i=_.useCallback(T=>n.items.itemMap[T],[n.items.itemMap]),l=_.useCallback(()=>{const T=E=>{const A=n.items.itemMap[E],C=Kr(A,$xe),D=n.items.itemOrderedChildrenIds[E];return D&&(C.children=D.map(T)),C};return n.items.itemOrderedChildrenIds[Qu].map(T)},[n.items.itemMap,n.items.itemOrderedChildrenIds]),u=_.useCallback(T=>{if(T==null)return!1;let E=e.getItemMeta(T);if(!E)return!1;if(E.disabled)return!0;for(;E.parentId!=null;)if(E=e.getItemMeta(E.parentId),E.disabled)return!0;return!1},[e]),d=_.useCallback(T=>{const E=e.getItemMeta(T).parentId??Qu;return n.items.itemChildrenIndexes[E][T]},[e,n.items.itemChildrenIndexes]),p=_.useCallback(T=>n.items.itemOrderedChildrenIds[T??Qu]??[],[n.items.itemOrderedChildrenIds]),h=T=>{const E=e.getItemMeta(T);return E==null?null:document.getElementById(nA({treeId:n.id.treeId,itemId:T,id:E.idAttribute}))},y=T=>t.disabledItemsFocusable?!0:!e.isItemDisabled(T),g=_.useRef(!1),b=_.useCallback(()=>{g.current=!0},[]),S=_.useCallback(()=>g.current,[]);return _.useEffect(()=>{e.areItemUpdatesPrevented()||r(T=>{const E=E7({items:t.items,isItemDisabled:t.isItemDisabled,getItemId:t.getItemId,getItemLabel:t.getItemLabel});return Object.values(T.items.itemMetaMap).forEach(A=>{E.itemMetaMap[A.id]||zxe(e,"removeItem",{id:A.id})}),Le({},T,{items:E})})},[e,r,t.items,t.isItemDisabled,t.getItemId,t.getItemLabel]),{getRootProps:()=>({style:{"--TreeView-itemChildrenIndentation":typeof t.itemChildrenIndentation=="number"?`${t.itemChildrenIndentation}px`:t.itemChildrenIndentation}}),publicAPI:{getItem:i,getItemDOMElement:h,getItemTree:l,getItemOrderedChildrenIds:p},instance:{getItemMeta:a,getItem:i,getItemTree:l,getItemsToRender:()=>{const T=E=>{const A=n.items.itemMetaMap[E];return{label:A.label,itemId:A.id,id:A.idAttribute,children:n.items.itemOrderedChildrenIds[E]?.map(T)}};return n.items.itemOrderedChildrenIds[Qu].map(T)},getItemIndex:d,getItemDOMElement:h,getItemOrderedChildrenIds:p,isItemDisabled:u,isItemNavigable:y,preventItemUpdates:b,areItemUpdatesPrevented:S},contextValue:{items:{onItemClick:t.onItemClick,disabledItemsFocusable:t.disabledItemsFocusable,indentationAtItemLevel:o.indentationAtItemLevel??!1}}}};ym.getInitialState=e=>({items:E7({items:e.items,isItemDisabled:e.isItemDisabled,getItemId:e.getItemId,getItemLabel:e.getItemLabel})});ym.getDefaultizedParams=({params:e})=>Le({},e,{disabledItemsFocusable:e.disabledItemsFocusable??!1,itemChildrenIndentation:e.itemChildrenIndentation??"12px"});ym.wrapRoot=({children:e,instance:t})=>v.jsx(tA.Provider,{value:n=>t.getItemMeta(n)?.depth??0,children:e});ym.params={disabledItemsFocusable:!0,items:!0,isItemDisabled:!0,getItemLabel:!0,getItemId:!0,onItemClick:!0,itemChildrenIndentation:!0};const dv=({instance:e,params:t,models:n})=>{const r=_.useMemo(()=>{const h=new Map;return n.expandedItems.value.forEach(y=>{h.set(y,!0)}),h},[n.expandedItems.value]),o=(h,y)=>{t.onExpandedItemsChange?.(h,y),n.expandedItems.setControlledValue(y)},a=_.useCallback(h=>r.has(h),[r]),i=_.useCallback(h=>!!e.getItemMeta(h)?.expandable,[e]),l=Jr((h,y)=>{const g=e.isItemExpanded(y);e.setItemExpansion(h,y,!g)}),u=Jr((h,y,g)=>{if(e.isItemExpanded(y)===g)return;let b;g?b=[y].concat(n.expandedItems.value):b=n.expandedItems.value.filter(S=>S!==y),t.onItemExpansionToggle&&t.onItemExpansionToggle(h,y,g),o(h,b)}),d=(h,y)=>{const g=e.getItemMeta(y),b=e.getItemOrderedChildrenIds(g.parentId).filter(T=>e.isItemExpandable(T)&&!e.isItemExpanded(T)),S=n.expandedItems.value.concat(b);b.length>0&&(t.onItemExpansionToggle&&b.forEach(T=>{t.onItemExpansionToggle(h,T,!0)}),o(h,S))},p=_.useMemo(()=>t.expansionTrigger?t.expansionTrigger:e.isTreeViewEditable?"iconContainer":"content",[t.expansionTrigger,e.isTreeViewEditable]);return{publicAPI:{setItemExpansion:u},instance:{isItemExpanded:a,isItemExpandable:i,setItemExpansion:u,toggleItemExpansion:l,expandAllSiblings:d},contextValue:{expansion:{expansionTrigger:p}}}};dv.models={expandedItems:{getDefaultValue:e=>e.defaultExpandedItems}};const Gxe=[];dv.getDefaultizedParams=({params:e})=>Le({},e,{defaultExpandedItems:e.defaultExpandedItems??Gxe});dv.params={expandedItems:!0,defaultExpandedItems:!0,onExpandedItemsChange:!0,onItemExpansionToggle:!0,expansionTrigger:!0};const jy=e=>Array.isArray(e)?e:e!=null?[e]:[],Yx=e=>{const t={};return e.forEach(n=>{t[n]=!0}),t},fv=({instance:e,params:t,models:n})=>{const r=_.useRef(null),o=_.useRef({}),a=_.useMemo(()=>{const p=new Map;return Array.isArray(n.selectedItems.value)?n.selectedItems.value.forEach(h=>{p.set(h,!0)}):n.selectedItems.value!=null&&p.set(n.selectedItems.value,!0),p},[n.selectedItems.value]),i=(p,h)=>{if(t.onItemSelectionToggle)if(t.multiSelect){const y=h.filter(b=>!e.isItemSelected(b)),g=n.selectedItems.value.filter(b=>!h.includes(b));y.forEach(b=>{t.onItemSelectionToggle(p,b,!0)}),g.forEach(b=>{t.onItemSelectionToggle(p,b,!1)})}else h!==n.selectedItems.value&&(n.selectedItems.value!=null&&t.onItemSelectionToggle(p,n.selectedItems.value,!1),h!=null&&t.onItemSelectionToggle(p,h,!0));t.onSelectedItemsChange&&t.onSelectedItemsChange(p,h),n.selectedItems.setControlledValue(h)},l=p=>a.has(p),u=({event:p,itemId:h,keepExistingSelection:y=!1,shouldBeSelected:g})=>{if(t.disableSelection)return;let b;if(y){const S=jy(n.selectedItems.value),T=e.isItemSelected(h);T&&(g===!1||g==null)?b=S.filter(E=>E!==h):!T&&(g===!0||g==null)?b=[h].concat(S):b=S}else g===!1||g==null&&e.isItemSelected(h)?b=t.multiSelect?[]:null:b=t.multiSelect?[h]:h;i(p,b),r.current=h,o.current={}},d=(p,[h,y])=>{if(t.disableSelection||!t.multiSelect)return;let g=jy(n.selectedItems.value).slice();Object.keys(o.current).length>0&&(g=g.filter(E=>!o.current[E]));const b=Yx(g),S=axe(e,h,y),T=S.filter(E=>!b[E]);g=g.concat(T),i(p,g),o.current=Yx(S)};return{getRootProps:()=>({"aria-multiselectable":t.multiSelect}),publicAPI:{selectItem:u},instance:{isItemSelected:l,selectItem:u,selectAllNavigableItems:p=>{if(t.disableSelection||!t.multiSelect)return;const h=ixe(e);i(p,h),o.current=Yx(h)},expandSelectionRange:(p,h)=>{if(r.current!=null){const[y,g]=p7(e,h,r.current);d(p,[y,g])}},selectRangeFromStartToItem:(p,h)=>{d(p,[Mh(e),h])},selectRangeFromItemToEnd:(p,h)=>{d(p,[h,f7(e)])},selectItemFromArrowNavigation:(p,h,y)=>{if(t.disableSelection||!t.multiSelect)return;let g=jy(n.selectedItems.value).slice();Object.keys(o.current).length===0?(g.push(y),o.current={[h]:!0,[y]:!0}):(o.current[h]||(o.current={}),o.current[y]?(g=g.filter(b=>b!==h),delete o.current[h]):(g.push(y),o.current[y]=!0)),i(p,g)}},contextValue:{selection:{multiSelect:t.multiSelect,checkboxSelection:t.checkboxSelection,disableSelection:t.disableSelection}}}};fv.models={selectedItems:{getDefaultValue:e=>e.defaultSelectedItems}};const Vxe=[];fv.getDefaultizedParams=({params:e})=>Le({},e,{disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,checkboxSelection:e.checkboxSelection??!1,defaultSelectedItems:e.defaultSelectedItems??(e.multiSelect?Vxe:null)});fv.params={disableSelection:!0,multiSelect:!0,checkboxSelection:!0,defaultSelectedItems:!0,selectedItems:!0,onSelectedItemsChange:!0,onItemSelectionToggle:!0};const U3=1e3;class qxe{constructor(t=U3){this.timeouts=new Map,this.cleanupTimeout=U3,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const o=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,o)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}}class Wxe{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}class Yxe{}function Qxe(e){let t=0;return function(n,r,o){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new Wxe:new qxe);const[a]=_.useState(new Yxe),i=_.useRef(null),l=_.useRef(void 0);l.current=o;const u=_.useRef(null);if(!i.current&&l.current){const d=(p,h)=>{h.defaultMuiPrevented||l.current?.(p,h)};i.current=n.$$subscribeEvent(r,d),t+=1,u.current={cleanupToken:t},e.registry.register(a,()=>{i.current?.(),i.current=null,u.current=null},u.current)}else!l.current&&i.current&&(i.current(),i.current=null,u.current&&(e.registry.unregister(u.current),u.current=null));_.useEffect(()=>{if(!i.current&&l.current){const d=(p,h)=>{h.defaultMuiPrevented||l.current?.(p,h)};i.current=n.$$subscribeEvent(r,d)}return u.current&&e.registry&&(e.registry.unregister(u.current),u.current=null),()=>{i.current?.(),i.current=null}},[n,r])}}const Kxe={registry:null},Xxe=Qxe(Kxe),x7=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?x7(t.shadowRoot):t:null},Zxe=(e,t)=>{let n=jy(t).find(r=>{if(!e.isItemNavigable(r))return!1;const o=e.getItemMeta(r);return o&&(o.parentId==null||e.isItemExpanded(o.parentId))});return n==null&&(n=Mh(e)),n},aA=({instance:e,params:t,state:n,setState:r,models:o,rootRef:a})=>{const i=Zxe(e,o.selectedItems.value),l=Jr(T=>{const E=typeof T=="function"?T(n.focusedItemId):T;n.focusedItemId!==E&&r(A=>Le({},A,{focusedItemId:E}))}),u=_.useCallback(()=>!!a.current&&a.current.contains(x7(yo(a.current))),[a]),d=_.useCallback(T=>n.focusedItemId===T&&u(),[n.focusedItemId,u]),p=T=>{const E=e.getItemMeta(T);return E&&(E.parentId==null||e.isItemExpanded(E.parentId))},h=(T,E)=>{const A=e.getItemDOMElement(E);A&&A.focus(),l(E),t.onItemFocus&&t.onItemFocus(T,E)},y=Jr((T,E)=>{p(E)&&h(T,E)}),g=Jr(()=>{if(n.focusedItemId!=null){if(e.getItemMeta(n.focusedItemId)){const T=e.getItemDOMElement(n.focusedItemId);T&&T.blur()}l(null)}}),b=T=>T===i;Xxe(e,"removeItem",({id:T})=>{n.focusedItemId===T&&h(null,i)});const S=T=>E=>{T.onFocus?.(E),!E.defaultMuiPrevented&&E.target===E.currentTarget&&h(E,i)};return{getRootProps:T=>({onFocus:S(T)}),publicAPI:{focusItem:y},instance:{isItemFocused:d,canItemBeTabbed:b,focusItem:y,removeFocusedItem:g}}};aA.getInitialState=()=>({focusedItemId:null});aA.params={onItemFocus:!0};function Jxe(e){return!!e&&e.length===1&&!!e.match(/\S/)}const S7=({instance:e,params:t,state:n})=>{const r=EL(),o=_.useRef({}),a=Jr(d=>{o.current=d(o.current)});_.useEffect(()=>{if(e.areItemUpdatesPrevented())return;const d={},p=h=>{d[h.id]=h.label.substring(0,1).toLowerCase()};Object.values(n.items.itemMetaMap).forEach(p),o.current=d},[n.items.itemMetaMap,t.getItemId,e]);const i=(d,p)=>{const h=p.toLowerCase(),y=T=>{const E=Fy(e,T);return E===null?Mh(e):E};let g=null,b=y(d);const S={};for(;g==null&&!S[b];)o.current[b]===h?g=b:(S[b]=!0,b=y(b));return g},l=d=>!t.disableSelection&&!e.isItemDisabled(d),u=d=>!e.isItemDisabled(d)&&e.isItemExpandable(d);return{instance:{updateFirstCharMap:a,handleItemKeyDown:(d,p)=>{if(d.defaultMuiPrevented||d.altKey||Fh(d.target,d.currentTarget))return;const h=d.ctrlKey||d.metaKey,y=d.key;switch(!0){case(y===" "&&l(p)):{d.preventDefault(),t.multiSelect&&d.shiftKey?e.expandSelectionRange(d,p):e.selectItem({event:d,itemId:p,keepExistingSelection:t.multiSelect,shouldBeSelected:t.multiSelect?void 0:!0});break}case y==="Enter":{Cc(e,Aa)&&e.isItemEditable(p)&&!e.isItemBeingEdited(p)?e.setEditedItemId(p):u(p)?(e.toggleItemExpansion(d,p),d.preventDefault()):l(p)&&(t.multiSelect?(d.preventDefault(),e.selectItem({event:d,itemId:p,keepExistingSelection:!0})):e.isItemSelected(p)||(e.selectItem({event:d,itemId:p}),d.preventDefault()));break}case y==="ArrowDown":{const g=Fy(e,p);g&&(d.preventDefault(),e.focusItem(d,g),t.multiSelect&&d.shiftKey&&l(g)&&e.selectItemFromArrowNavigation(d,p,g));break}case y==="ArrowUp":{const g=d7(e,p);g&&(d.preventDefault(),e.focusItem(d,g),t.multiSelect&&d.shiftKey&&l(g)&&e.selectItemFromArrowNavigation(d,p,g));break}case(y==="ArrowRight"&&!r||y==="ArrowLeft"&&r):{if(h)return;if(e.isItemExpanded(p)){const g=Fy(e,p);g&&(e.focusItem(d,g),d.preventDefault())}else u(p)&&(e.toggleItemExpansion(d,p),d.preventDefault());break}case(y==="ArrowLeft"&&!r||y==="ArrowRight"&&r):{if(h)return;if(u(p)&&e.isItemExpanded(p))e.toggleItemExpansion(d,p),d.preventDefault();else{const g=e.getItemMeta(p).parentId;g&&(e.focusItem(d,g),d.preventDefault())}break}case y==="Home":{l(p)&&t.multiSelect&&h&&d.shiftKey?e.selectRangeFromStartToItem(d,p):e.focusItem(d,Mh(e)),d.preventDefault();break}case y==="End":{l(p)&&t.multiSelect&&h&&d.shiftKey?e.selectRangeFromItemToEnd(d,p):e.focusItem(d,f7(e)),d.preventDefault();break}case y==="*":{e.expandAllSiblings(d,p),d.preventDefault();break}case(String.fromCharCode(d.keyCode)==="A"&&h&&t.multiSelect&&!t.disableSelection):{e.selectAllNavigableItems(d),d.preventDefault();break}case(!h&&!d.shiftKey&&Jxe(y)):{const g=i(p,y);g!=null&&(e.focusItem(d,g),d.preventDefault());break}}}}}};S7.params={};const T7=({slots:e,slotProps:t})=>({contextValue:{icons:{slots:{collapseIcon:e.collapseIcon,expandIcon:e.expandIcon,endIcon:e.endIcon},slotProps:{collapseIcon:t.collapseIcon,expandIcon:t.expandIcon,endIcon:t.endIcon}}}});T7.params={};const eSe=[ym,dv,fv,aA,S7,T7,Aa],tSe=["ownerState"];function nSe({slots:e,slotProps:t,label:n,id:r,itemId:o,itemsToRender:a}){const i=e?.item??Cxe,l=pl({elementType:i,externalSlotProps:t?.item,additionalProps:{itemId:o,id:r,label:n},ownerState:{itemId:o,label:n}}),u=Kr(l,tSe),d=_.useMemo(()=>a?v.jsx(C7,{itemsToRender:a,slots:e,slotProps:t}):null,[a,e,t]);return v.jsx(i,Le({},u,{children:d}))}function C7(e){const{itemsToRender:t,slots:n,slotProps:r}=e;return v.jsx(_.Fragment,{children:t.map(o=>v.jsx(nSe,{slots:n,slotProps:r,label:o.label,id:o.id,itemId:o.itemId,itemsToRender:o.children},o.itemId))})}const rSe=s7(),oSe=e=>{const{classes:t}=e;return Xt({root:["root"]},Ixe,t)},aSe=Qe("ul",{name:"MuiRichTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"}),iSe=_.forwardRef(function(e,t){const n=rSe({props:e,name:"MuiRichTreeView"}),{getRootProps:r,contextValue:o,instance:a}=Uxe({plugins:eSe,rootRef:t,props:n}),{slots:i,slotProps:l}=n,u=oSe(n),d=i?.root??aSe,p=pl({elementType:d,externalSlotProps:l?.root,className:u.root,getSlotProps:r,ownerState:n});return v.jsx(nxe,{value:o,children:v.jsx(d,Le({},p,{children:v.jsx(C7,{slots:i,slotProps:l,itemsToRender:a.getItemsToRender()})}))})}),sSe=Mn(v.jsx("path",{d:"m9.17 6 2 2H20v10H4V6zM10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"})),lSe=Mn([v.jsx("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"},"0"),v.jsx("path",{d:"M14 17H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"},"1")]),cSe=Mn(v.jsx("path",{d:"M19 15v4H5v-4zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1M7 18.5c-.82 0-1.5-.67-1.5-1.5s.68-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5M19 5v4H5V5zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1M7 8.5c-.82 0-1.5-.67-1.5-1.5S6.18 5.5 7 5.5s1.5.68 1.5 1.5S7.83 8.5 7 8.5"})),uSe=Mn(v.jsx("path",{d:"M15 4v2h3v12h-3v2h5V4zM4 20h5v-2H6V6h3V4H4z"}));function _7({items:e,defaultExpandedItems:t,onClickTreeNode:n}){return v.jsx(iSe,{items:mSe(e,n),defaultExpandedItems:t,slots:{item:hSe}})}const dSe=Wee(Lh);function fSe(e){const t=Nee({to:{opacity:e.in?1:0,transform:`translate3d(0,${e.in?0:20}px,0)`}});return v.jsx(dSe,{style:t,...e})}function pSe({item:e,...t}){const n=v.jsxs(Rxe,{...t,sx:{display:"flex",alignItems:"center",color:e.error?"error.main":"grey.600"},children:[e.fileType==="directory"&&v.jsx(sSe,{})||e.fileType==="notebook"&&v.jsx(lSe,{})||e.fileType==="model"&&v.jsx(uSe,{})||e.fileType=="database"&&v.jsx(cSe,{})||v.jsx(z8,{}),v.jsx(Ze,{variant:"body2",sx:{marginLeft:"5px"},color:e.error?"error.main":e.link?"primary.main":"grey.600",children:e.label})]});return e.error?v.jsx(wo,{title:e.error,placement:"right",children:n}):n}const hSe=_.forwardRef(function(e,t){const{id:n,itemId:r,label:o,children:a,disabled:i,...l}=e,{getRootProps:u,getContentProps:d,getLabelProps:p,getIconContainerProps:h,getGroupTransitionProps:y,status:g,publicAPI:b}=cxe({id:n,itemId:r,children:a,label:o,disabled:i,rootRef:t}),S=b.getItem(r);return g.selected=!1,g.focused=!1,v.jsx(rA,{itemId:r,children:v.jsxs(kxe,{...u(l),children:[v.jsxs(wxe,{...d(),...S.link&&{onClick:T=>S.link(T)},sx:{pointerEvents:!S.selectable&&"none"},children:[v.jsx(Dxe,{...h(),children:v.jsx(_xe,{status:g})}),v.jsx(pSe,{...p({item:S})})]}),a&&v.jsx(fSe,{...y()})]})})});function mSe(e,t){const n=new Map;return e.map(r=>{let o=n;const a=r.path.split("/");a.forEach((i,l)=>{l===a.length-1?o.set(i,r):(o.has(i)||o.set(i,new Map),o=o.get(i))})}),A7(n,"",t)}function A7(e,t,n){const r=[];return e.forEach((o,a)=>{const i=a.endsWith(".malloy")&&"model"||a.endsWith(".malloynb")&&"notebook"||a.endsWith(".parquet")&&"database"||"unknown";if(i!=="unknown"){const l=o;r.push({id:t+a,label:a,fileType:i,link:i==="model"||i==="notebook"?u=>n(t+a,u):void 0,selectable:i==="model"||i==="notebook",error:"error"in l?l.error:void 0})}else t+=`${a}/`,r.push({id:t,label:a,fileType:"directory",selectable:!0,link:void 0,children:A7(o,t,n)})}),r}const gSe=["notebooks/","models/"];function ySe({onClickModelFile:e,resourceUri:t}){const{projectName:n,packageName:r,versionId:o}=Vn(t),{apiClients:a}=kn(),{data:i,isError:l,error:u,isSuccess:d}=no({queryKey:["models",n,r,o],queryFn:()=>a.models.listModels(n,r,o)});return v.jsx(bs,{children:v.jsxs(vs,{children:[v.jsx(Ol,{children:"Semantic Models"}),v.jsxs(gt,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!d&&!l&&v.jsx(eo,{text:"Fetching Models..."}),l&&v.jsx(to,{error:u,context:`${n} > ${r} > Models`}),d&&i.data.length>0&&v.jsx(_7,{items:i.data.sort((p,h)=>p.path.localeCompare(h.path)),onClickTreeNode:e,defaultExpandedItems:gSe}),d&&i.data.length===0&&v.jsx(Ze,{variant:"body2",children:"No models found"})]})]})})}const bSe=["notebooks/"];function vSe({onClickNotebookFile:e,resourceUri:t}){const{apiClients:n}=kn(),{projectName:r,packageName:o,versionId:a}=Vn(t),{data:i,isError:l,error:u,isSuccess:d}=no({queryKey:["notebooks",r,o,a],queryFn:()=>n.notebooks.listNotebooks(r,o,a)});return v.jsx(bs,{children:v.jsxs(vs,{children:[v.jsx(Ol,{children:"Notebooks"}),v.jsxs(gt,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!d&&!l&&v.jsx(eo,{text:"Fetching Notebooks..."}),l&&v.jsx(to,{error:u,context:`${r} > ${o} > Notebooks`}),d&&i.data.length>0&&v.jsx(_7,{items:i.data.sort((p,h)=>p.path.localeCompare(h.path)),defaultExpandedItems:bSe,onClickTreeNode:e}),d&&i.data.length===0&&v.jsx(Ze,{variant:"body2",children:"No notebooks found"})]})]})})}function ESe({resourceUri:e}){const{apiClients:t}=kn(),{projectName:n,packageName:r,versionId:o}=Vn(e),{data:a,isError:i,isLoading:l,error:u}=no({queryKey:["schedules",n,r,o],queryFn:()=>t.schedules.listSchedules(n,r,o)});return l?v.jsx(eo,{text:"Fetching Schedules..."}):i?v.jsx(to,{error:u,context:`${n} > ${r} > Schedules`}):a.data.length?v.jsx(bs,{children:v.jsxs(vs,{children:[v.jsx(Ol,{children:"Scheduler"}),v.jsx(gt,{sx:{maxHeight:"200px",overflowY:"auto"},children:v.jsx(AC,{component:ss,children:v.jsxs(hh,{sx:{minWidth:300},size:"small",children:[v.jsx(kC,{children:v.jsxs(bi,{children:[v.jsx(vn,{align:"left",children:"Resource"}),v.jsx(vn,{align:"left",children:"Schedule"}),v.jsx(vn,{align:"left",children:"Action"}),v.jsx(vn,{align:"left",children:"Connection"}),v.jsx(vn,{align:"left",children:"Last Run"}),v.jsx(vn,{align:"left",children:"Status"})]})}),v.jsx(mh,{children:a.data.map(d=>v.jsxs(bi,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[v.jsx(vn,{align:"left",children:d.resource}),v.jsx(vn,{align:"left",children:d.schedule}),v.jsx(vn,{align:"left",children:d.action}),v.jsx(vn,{align:"left",children:d.connection}),v.jsx(vn,{align:"left",children:d.lastRunTime?new Date(d.lastRunTime).toLocaleString():"n/a"}),v.jsx(vn,{align:"left",children:d.lastRunStatus})]},d.resource))})]})})})]})}):null}const xSe="README.malloynb";function qTe({onClickPackageFile:e,resourceUri:t}){e||(e=r=>{window.location.href=r});const n=s_({...Vn(t),modelPath:xSe});return v.jsx(v.Fragment,{children:v.jsxs(tr,{container:!0,spacing:3,columns:12,children:[v.jsx(tr,{size:{xs:12,md:4},children:v.jsx(fbe,{resourceUri:t})}),v.jsx(tr,{size:{xs:12,md:4},children:v.jsx(vSe,{onClickNotebookFile:e,resourceUri:t})}),v.jsx(tr,{size:{xs:12,md:4},children:v.jsx(ySe,{onClickModelFile:e,resourceUri:t})}),v.jsx(tr,{size:{xs:12,md:6},children:v.jsx(MEe,{resourceUri:t})}),v.jsx(tr,{size:{xs:12,md:6},children:v.jsx(LEe,{resourceUri:t})}),v.jsx(tr,{size:{xs:12,md:12},children:v.jsx(ESe,{resourceUri:t})}),v.jsx(tr,{size:{xs:12,md:12},children:v.jsx(bs,{children:v.jsxs(vs,{children:[v.jsx(Ol,{children:"README"}),v.jsx(gt,{sx:{mt:1},children:v.jsx(zie,{resourceUri:n})})]})})})]})})}function SSe({resourceUri:e}){const{projectName:t}=Vn(e),{apiClients:n}=kn(),{data:r,isSuccess:o,isError:a,error:i}=no({queryKey:["about",t],queryFn:()=>n.projects.getProject(t,!1)});return v.jsxs(v.Fragment,{children:[!o&&!a&&v.jsx(eo,{text:"Fetching About..."}),o&&r.data?.readme&&v.jsx(bs,{children:v.jsxs(vs,{children:[v.jsx(Ol,{children:"Readme"}),v.jsx(gt,{sx:{mt:1},children:v.jsx(o0,{children:r.data.readme})})]})}),a&&v.jsx(to,{error:i,context:`${t} > About`})]})}function TSe({resourceUri:e}){const[t,n]=_.useState(!1),{apiClients:r}=kn(),o=gs(),[a,i]=_.useState(""),l=()=>{n(!0)},u=()=>{n(!1)},{projectName:d}=Vn(e),p=Ti({async mutationFn(y){return r.packages.createPackage(d,{name:y.name,description:y.description,location:y.location})},onSuccess(){u(),i("Package created successfully"),o.invalidateQueries({queryKey:["packages",d]})},onError(y){i(y instanceof Error?y.message:"An unknown error occurred")}}),h=y=>{y.preventDefault();const g=new FormData(y.currentTarget),b=g.get("name")?.toString(),S=g.get("description")?.toString(),T=g.get("location")?.toString();p.mutate({name:b,description:S,location:T})};return v.jsxs(Fe.Fragment,{children:[v.jsx(jr,{onClick:l,variant:"contained",color:"primary",startIcon:v.jsx(gZ,{}),sx:{color:"white"},children:"Add Package"}),v.jsxs(Ss,{open:t,onClose:u,children:[v.jsx(_s,{children:"Create New Package"}),v.jsxs(Cs,{children:[v.jsxs(Yd,{children:["Create a new malloy package to start exploring your data.",v.jsx("br",{}),v.jsx("br",{}),"The location can be a GitHub/S3/GCP URL containing a package (Zipped or unzipped), or an absolute path to a directory that the publisher server has access to.",v.jsx("br",{}),v.jsx("br",{}),"Make sure to conform the"," ",v.jsx("a",{href:"https://github.com/malloydata/publisher/blob/main/README.md#architecture-overview",target:"_blank",rel:"noopener noreferrer",children:"Malloy Package Format"}),"."]}),v.jsxs("form",{onSubmit:h,id:"package-form",children:[v.jsx(bo,{autoFocus:!0,required:!0,margin:"dense",id:"name",name:"name",label:"Package Name",type:"text",fullWidth:!0,variant:"standard"}),v.jsx(bo,{id:"description",name:"description",label:"Description",multiline:!0,fullWidth:!0,rows:4,variant:"standard"}),v.jsx(bo,{id:"location",name:"location",label:"Location",type:"text",placeholder:"E.g. s3://my-bucket/my-package.zip",fullWidth:!0,variant:"standard"})]})]}),v.jsxs(Ts,{children:[v.jsx(jr,{disabled:p.isPending,onClick:u,children:"Cancel"}),v.jsx(jr,{type:"submit",form:"package-form",loading:p.isPending,children:"Save Changes"})]})]}),v.jsx(ms,{open:a!=="",autoHideDuration:6e3,onClose:()=>i(""),message:a})]})}function CSe({resourceUri:e,onCloseDialog:t}){const[n,r]=_.useState(!1),{apiClients:o}=kn(),a=gs(),[i,l]=_.useState(""),u=()=>{r(!0)},d=()=>{r(!1),t()},{projectName:p,packageName:h}=Vn(e),y=Ti({mutationFn:()=>o.packages.deletePackage(p,h),onSuccess(){d(),a.invalidateQueries({queryKey:["packages"]}),l("Package deleted successfully")},onError(g){l(g instanceof Error?g.message:"An unknown error occurred")}});return v.jsxs(Fe.Fragment,{children:[v.jsxs(Cl,{onClick:u,children:[v.jsx(cb,{children:v.jsx(MC,{fontSize:"small"})}),v.jsx(ls,{children:"Delete"})]}),v.jsxs(Ss,{onClose:d,"aria-labelledby":"customized-dialog-title",open:n,children:[v.jsx(_s,{sx:{m:0,p:2},id:"customized-dialog-title",children:"Delete Package"}),v.jsx(U0,{"aria-label":"close",onClick:d,sx:g=>({position:"absolute",right:8,top:8,color:g.palette.grey[500]}),children:v.jsx(kl,{})}),v.jsx(Cs,{dividers:!0,children:v.jsxs(gm,{gutterBottom:!0,children:['Are you sure you want to delete "',h,'"? This action cannot be undone.']})}),v.jsx(Ts,{children:v.jsx(jr,{variant:"contained",autoFocus:!0,onClick:()=>y.mutate(),color:"error",loading:y.isPending,children:"Delete"})}),v.jsx(ms,{open:i!=="",autoHideDuration:6e3,onClose:()=>l(""),message:i})]})]})}function _Se({package:e,resourceUri:t,onCloseDialog:n}){const[r,o]=_.useState(!1),{apiClients:a}=kn(),i=gs(),[l,u]=_.useState(""),d=()=>{o(!0)},p=()=>{o(!1),n()},{packageName:h,projectName:y}=Vn(t),g=Ti({async mutationFn(S){return a.packages.updatePackage(y,h,{name:h,description:S.description})},onSuccess(){p(),u("Package updated successfully"),i.invalidateQueries({queryKey:["packages",y]})},onError(S){u(S instanceof Error?S.message:"An unknown error occurred")}}),b=S=>{S.preventDefault();const T=new FormData(S.currentTarget).get("description")?.toString();g.mutate({description:T})};return v.jsxs(Fe.Fragment,{children:[v.jsxs(Cl,{onClick:d,children:[v.jsx(cb,{children:v.jsx(FC,{fontSize:"small"})}),v.jsx(ls,{children:"Edit"})]}),v.jsxs(Ss,{open:r,onClose:p,children:[v.jsx(_s,{children:"Edit Package"}),v.jsxs(Cs,{children:[v.jsxs(Yd,{children:['Update the details for "',e.name,'".']}),v.jsxs("form",{onSubmit:b,id:"package-form",children:[v.jsx(bo,{autoFocus:!0,required:!0,margin:"dense",id:"name",name:"name",label:"Package Name",disabled:!0,type:"text",fullWidth:!0,variant:"standard",defaultValue:e.name}),v.jsx(bo,{id:"description",name:"description",label:"Description",multiline:!0,fullWidth:!0,rows:4,defaultValue:e.description,variant:"standard"})]})]}),v.jsxs(Ts,{children:[v.jsx(jr,{disabled:g.isPending,onClick:p,children:"Cancel"}),v.jsx(jr,{type:"submit",form:"package-form",loading:g.isPending,children:"Save Changes"})]})]}),v.jsx(ms,{open:l!=="",autoHideDuration:6e3,onClose:()=>u(""),message:l})]})}const ASe=({package:e,resourceUri:t})=>{const{mutable:n}=kn(),[r,o]=_.useState(null),a=!!r,i=u=>{o(u.currentTarget)},l=()=>{o(null)};return v.jsx(v.Fragment,{children:n&&v.jsxs(v.Fragment,{children:[v.jsx(Gn,{onClick:u=>{u.stopPropagation(),i(u)},"aria-controls":a?"package-menu":void 0,"aria-haspopup":"true","aria-expanded":a?"true":void 0,children:v.jsx(S4,{fontSize:"small"})}),v.jsxs(ub,{id:"package-menu","aria-haspopup":"true","aria-expanded":a?"true":void 0,open:a,anchorEl:r,onClose:l,disableRestoreFocus:!0,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"},onClick:u=>{u.stopPropagation()},children:[v.jsx(_Se,{package:e,resourceUri:t,onCloseDialog:l}),v.jsx(CSe,{resourceUri:t,onCloseDialog:l})]})]})})};function kSe({onSelectPackage:e,resourceUri:t}){const{apiClients:n}=kn(),{projectName:r}=Vn(t),{data:o,isSuccess:a,isError:i,error:l}=no({queryKey:["packages",r],queryFn:()=>n.packages.listPackages(r)});return v.jsxs(v.Fragment,{children:[!a&&!i&&v.jsx(eo,{text:"Fetching Packages..."}),a&&v.jsx(tr,{container:!0,spacing:3,columns:12,children:o.data.sort((u,d)=>u.name.localeCompare(d.name)).map(u=>{const d=s_({projectName:r,packageName:u.name});return v.jsx(tr,{size:{xs:12,sm:12,md:12,lg:4},children:v.jsx(bs,{sx:{cursor:"pointer",transition:"all 0.2s ease-in-out",paddingTop:"8px","&:hover":{boxShadow:"0 2px 6px rgba(0, 0, 0, 0.08)",transform:"translateY(-1px)"}},onClick:p=>{e(u.name,p)},children:v.jsxs(vs,{children:[v.jsxs(gt,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{marginBottom:"8px"},children:[v.jsx(Ze,{variant:"overline",sx:{fontSize:"12px",fontWeight:"600",color:"primary.main",textTransform:"uppercase",letterSpacing:"0.5px"},children:u.name}),v.jsx(ASe,{package:u,resourceUri:d})]}),v.jsx(ds,{sx:{mb:2}}),v.jsx(gt,{sx:{maxHeight:"120px",overflowY:"auto",mt:2},children:v.jsx(Ze,{variant:"body2",children:u.description})})]})})},u.name)})}),i&&v.jsx(to,{error:l,context:`${r} > Packages`})]})}function WTe({onSelectPackage:e,resourceUri:t}){const{mutable:n}=kn(),{projectName:r}=Vn(t);return v.jsx(v.Fragment,{children:v.jsxs(kre,{children:[v.jsxs(gt,{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2,children:[v.jsxs(Ze,{variant:"h6",children:[r," packages"]}),n&&v.jsx(TSe,{resourceUri:t})]}),v.jsxs(tr,{container:!0,spacing:3,columns:12,children:[v.jsx(tr,{size:{xs:12,md:12},children:v.jsx(kSe,{onSelectPackage:e,resourceUri:t})}),v.jsx(tr,{size:{xs:12,md:12},children:v.jsx(SSe,{resourceUri:t})})]})]})})}const wSe=Mn(v.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M8 17c-.55 0-1-.45-1-1v-3c0-.55.45-1 1-1s1 .45 1 1v3c0 .55-.45 1-1 1m4 0c-.55 0-1-.45-1-1v-1c0-.55.45-1 1-1s1 .45 1 1v1c0 .55-.45 1-1 1m0-5c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m4 5c-.55 0-1-.45-1-1V8c0-.55.45-1 1-1s1 .45 1 1v8c0 .55-.45 1-1 1"})),RSe=Mn(v.jsx("path",{d:"M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42s1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41l-6.58-6.6a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1"})),z3=Mn(v.jsx("path",{d:"m19.46 8 .79-1.75L22 5.46c.39-.18.39-.73 0-.91l-1.75-.79L19.46 2c-.18-.39-.73-.39-.91 0l-.79 1.75-1.76.79c-.39.18-.39.73 0 .91l1.75.79.79 1.76c.18.39.74.39.92 0M11.5 9.5 9.91 6c-.35-.78-1.47-.78-1.82 0L6.5 9.5 3 11.09c-.78.36-.78 1.47 0 1.82l3.5 1.59L8.09 18c.36.78 1.47.78 1.82 0l1.59-3.5 3.5-1.59c.78-.36.78-1.47 0-1.82zm7.04 6.5-.79 1.75-1.75.79c-.39.18-.39.73 0 .91l1.75.79.79 1.76c.18.39.73.39.91 0l.79-1.75 1.76-.79c.39-.18.39-.73 0-.91l-1.75-.79-.79-1.76c-.18-.39-.74-.39-.92 0"})),DSe=Mn(v.jsx("path",{d:"M8.7 15.9 4.8 12l3.9-3.9c.39-.39.39-1.01 0-1.4a.984.984 0 0 0-1.4 0l-4.59 4.59c-.39.39-.39 1.02 0 1.41l4.59 4.6c.39.39 1.01.39 1.4 0s.39-1.01 0-1.4m6.6 0 3.9-3.9-3.9-3.9a.984.984 0 0 1 0-1.4c.39-.39 1.01-.39 1.4 0l4.59 4.59c.39.39.39 1.02 0 1.41l-4.59 4.6c-.39.39-1.01.39-1.4 0a.984.984 0 0 1 0-1.4"})),ISe=Mn(v.jsx("path",{d:"M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1 1.1-.49 1.1-1.1-.49-1.1-1.1-1.1M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m2.19 12.19L6 18l3.81-8.19L18 6z"})),OSe=Mn([v.jsx("path",{d:"M13 8.57c-.79 0-1.43.64-1.43 1.43s.64 1.43 1.43 1.43 1.43-.64 1.43-1.43-.64-1.43-1.43-1.43"},"0"),v.jsx("path",{d:"M13.21 3c-3.84-.11-7 2.87-7.19 6.64L4.1 12.2c-.25.33-.01.8.4.8H6v3c0 1.1.9 2 2 2h1v2c0 .55.45 1 1 1h5c.55 0 1-.45 1-1v-3.68c2.44-1.16 4.1-3.68 4-6.58-.14-3.62-3.18-6.63-6.79-6.74M16 10c0 .13-.01.26-.02.39l.83.66c.08.06.1.16.05.25l-.8 1.39c-.05.09-.16.12-.24.09l-.99-.4c-.21.16-.43.29-.67.39L14 13.83c-.01.1-.1.17-.2.17h-1.6c-.1 0-.18-.07-.2-.17l-.15-1.06c-.25-.1-.47-.23-.68-.39l-.99.4c-.09.03-.2 0-.25-.09l-.8-1.39c-.05-.08-.03-.19.05-.25l.84-.66c-.01-.13-.02-.26-.02-.39s.02-.27.04-.39l-.85-.66c-.08-.06-.1-.16-.05-.26l.8-1.38c.05-.09.15-.12.24-.09l1 .4c.2-.15.43-.29.67-.39L12 6.17c.02-.1.1-.17.2-.17h1.6c.1 0 .18.07.2.17l.15 1.06c.24.1.46.23.67.39l1-.4c.09-.03.2 0 .24.09l.8 1.38c.05.09.03.2-.05.26l-.85.66c.03.12.04.25.04.39"},"1")]),H3=Mn(v.jsx("path",{d:"M4 20h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2s.9 2 2 2m0-3h2v2H4zM2 6c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2m4 1H4V5h2zm-2 7h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2s.9 2 2 2m0-3h2v2H4z"})),k7=e=>{if(!e)return"Explore semantic models, run queries, and build dashboards";const t=e.replace(/^#+\s+/gm,"").replace(/\*\*(.*?)\*\*/g,"$1").replace(/\*(.*?)\*/g,"$1").replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/`([^`]+)`/g,"$1").trim(),n=t.split(/\n\s*\n/)[0]||t;if(n.length<=120)return n;const r=n.substring(0,120).split(" ");return r.pop(),r.join(" ")+"..."},w7=(e,t)=>{const n=(e.readme||void 0)?.split(`
|
|
444
|
-
`)??[];return n.length===0&&(n.push(`# ${e.name}`),n.push("")),(e.readme?.length??0)>0&&t?n.splice(2,1,t):t&&n.push(t),n.join(`
|
|
445
|
-
`)};function NSe(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:a}=e,i=ov();_.useEffect(()=>{if(!o)return;function T(E){E.defaultPrevented||E.key==="Escape"&&r?.(E,"escapeKeyDown")}return document.addEventListener("keydown",T),()=>{document.removeEventListener("keydown",T)}},[o,r]);const l=Jr((T,E)=>{r?.(T,E)}),u=Jr(T=>{!r||T==null||i.start(T,()=>{l(null,"timeout")})});_.useEffect(()=>(o&&u(t),i.clear),[o,t,u,i]);const d=T=>{r?.(T,"clickaway")},p=i.clear,h=_.useCallback(()=>{t!=null&&u(a??t*.5)},[t,a,u]),y=T=>E=>{const A=T.onBlur;A?.(E),h()},g=T=>E=>{const A=T.onFocus;A?.(E),p()},b=T=>E=>{const A=T.onMouseEnter;A?.(E),p()},S=T=>E=>{const A=T.onMouseLeave;A?.(E),h()};return _.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",h),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",p)}},[n,o,h,p]),{getRootProps:(T={})=>{const E={...uo(e),...uo(T)};return{role:"presentation",...T,...E,onBlur:y(E),onFocus:g(E),onMouseEnter:b(E),onMouseLeave:S(E)}},onClickAway:d}}function $3(e){return e.substring(2).toLowerCase()}function PSe(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function LSe(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:a="onTouchEnd"}=e,i=_.useRef(!1),l=_.useRef(null),u=_.useRef(!1),d=_.useRef(!1);_.useEffect(()=>(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const p=ur(Wd(t),l),h=Jr(b=>{const S=d.current;d.current=!1;const T=yo(l.current);if(!u.current||!l.current||"clientX"in b&&PSe(b,T))return;if(i.current){i.current=!1;return}let E;b.composedPath?E=b.composedPath().includes(l.current):E=!T.documentElement.contains(b.target)||l.current.contains(b.target),!E&&(n||!S)&&o(b)}),y=b=>S=>{d.current=!0;const T=t.props[b];T&&T(S)},g={ref:p};return a!==!1&&(g[a]=y(a)),_.useEffect(()=>{if(a!==!1){const b=$3(a),S=yo(l.current),T=()=>{i.current=!0};return S.addEventListener(b,h),S.addEventListener("touchmove",T),()=>{S.removeEventListener(b,h),S.removeEventListener("touchmove",T)}}},[h,a]),r!==!1&&(g[r]=y(r)),_.useEffect(()=>{if(r!==!1){const b=$3(r),S=yo(l.current);return S.addEventListener(b,h),()=>{S.removeEventListener(b,h)}}},[h,r]),_.cloneElement(t,g)}function MSe(e){return Zt("MuiSnackbarContent",e)}Ht("MuiSnackbarContent",["root","message","action"]);const FSe=e=>{const{classes:t}=e;return Xt({root:["root"],action:["action"],message:["message"]},MSe,t)},jSe=Qe(iv,{name:"MuiSnackbarContent",slot:"Root"})(wn(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText($S(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:$S(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),BSe=Qe("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),USe=Qe("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),zSe=_.forwardRef(function(e,t){const n=rn({props:e,name:"MuiSnackbarContent"}),{action:r,className:o,message:a,role:i="alert",...l}=n,u=n,d=FSe(u);return v.jsxs(jSe,{role:i,elevation:6,className:xt(d.root,o),ownerState:u,ref:t,...l,children:[v.jsx(BSe,{className:d.message,ownerState:u,children:a}),r?v.jsx(USe,{className:d.action,ownerState:u,children:r}):null]})});function HSe(e){return Zt("MuiSnackbar",e)}Ht("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const $Se=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${ut(n.vertical)}${ut(n.horizontal)}`]};return Xt(r,HSe,t)},GSe=Qe("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${ut(n.anchorOrigin.vertical)}${ut(n.anchorOrigin.horizontal)}`]]}})(wn(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),VSe=_.forwardRef(function(e,t){const n=rn({props:e,name:"MuiSnackbar"}),r=Md(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:i,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:u=null,children:d,className:p,ClickAwayListenerProps:h,ContentProps:y,disableWindowBlurListener:g=!1,message:b,onBlur:S,onClose:T,onFocus:E,onMouseEnter:A,onMouseLeave:C,open:D,resumeHideDuration:I,slots:O={},slotProps:j={},TransitionComponent:$,transitionDuration:z=o,TransitionProps:{onEnter:L,onExited:H,...k}={},...F}=n,B={...n,anchorOrigin:{vertical:i,horizontal:l},autoHideDuration:u,disableWindowBlurListener:g,TransitionComponent:$,transitionDuration:z},G=$Se(B),{getRootProps:U,onClickAway:Q}=NSe({...B}),[Y,oe]=_.useState(!0),N=ze=>{oe(!0),H&&H(ze)},K=(ze,Ne)=>{oe(!1),L&&L(ze,Ne)},X={slots:{transition:$,...O},slotProps:{content:y,clickAwayListener:h,transition:k,...j}},[P,J]=Ln("root",{ref:t,className:[G.root,p],elementType:GSe,getSlotProps:U,externalForwardedProps:{...X,...F},ownerState:B}),[se,{ownerState:ne,...be}]=Ln("clickAwayListener",{elementType:LSe,externalForwardedProps:X,getSlotProps:ze=>({onClickAway:(...Ne)=>{const _e=Ne[0];ze.onClickAway?.(...Ne),!_e?.defaultMuiPrevented&&Q(...Ne)}}),ownerState:B}),[fe,De]=Ln("content",{elementType:zSe,shouldForwardComponentProp:!0,externalForwardedProps:X,additionalProps:{message:b,action:a},ownerState:B}),[Ce,Se]=Ln("transition",{elementType:j0,externalForwardedProps:X,getSlotProps:ze=>({onEnter:(...Ne)=>{ze.onEnter?.(...Ne),K(...Ne)},onExited:(...Ne)=>{ze.onExited?.(...Ne),N(...Ne)}}),additionalProps:{appear:!0,in:D,timeout:z,direction:i==="top"?"down":"up"},ownerState:B});return!D&&Y?null:v.jsx(se,{...be,...O.clickAwayListener&&{ownerState:ne},children:v.jsx(P,{...J,children:v.jsx(Ce,{...Se,children:d||v.jsx(fe,{...De})})})})});function qSe(){const[e,t]=_.useState(!1),{apiClients:n}=kn(),[r,o]=_.useState(""),a=()=>{t(!0)},i=()=>{t(!1)},l=gs(),u=Ti({async mutationFn(p){return n.projects.createProject({name:p.name,readme:w7({name:p.name,readme:""},p.description)})},onSuccess(){i(),l.invalidateQueries({queryKey:["projects"]}),o("Project created successfully")},onError(p){o(p instanceof Error?p.message:"An unknown error occurred")}}),d=async p=>{p.preventDefault();const h=new FormData(p.currentTarget),y=h.get("name")?.toString(),g=h.get("description")?.toString();if(!y)throw new Error("Name is required");u.mutate({name:y,description:g})};return v.jsxs(Fe.Fragment,{children:[v.jsx(jr,{variant:"contained",onClick:a,startIcon:v.jsx(yZ,{}),sx:{mt:2,color:"white"},children:"Create New Project"}),v.jsxs(Ss,{open:e,onClose:i,children:[v.jsx(_s,{children:"Create New Project"}),v.jsxs(Cs,{children:[v.jsx(Yd,{children:"Add a new project to start exploring semantic models and analyzing data."}),v.jsxs("form",{onSubmit:d,id:"project-form",children:[v.jsx(bo,{autoFocus:!0,required:!0,margin:"dense",id:"name",name:"name",label:"Project Name",type:"text",fullWidth:!0,variant:"standard"}),v.jsx(bo,{margin:"dense",id:"description",name:"description",label:"Project Description",placeholder:"Explore semantic models, run queries, and build dashboards",type:"text",fullWidth:!0,variant:"standard"})]})]}),v.jsxs(Ts,{children:[v.jsx(jr,{disabled:u.isPending,onClick:i,children:"Cancel"}),v.jsx(jr,{type:"submit",form:"project-form",loading:u.isPending,children:"Create Project"})]})]}),v.jsx(VSe,{open:r!=="",autoHideDuration:6e3,onClose:()=>o(""),message:r})]})}function WSe({project:e,onCloseDialog:t}){const[n,r]=_.useState(!1),{apiClients:o}=kn(),a=gs(),[i,l]=_.useState(""),u=()=>{r(!0)},d=()=>{r(!1),t()},p=Ti({mutationFn:()=>o.projects.deleteProject(e.name),onSuccess(){d(),a.invalidateQueries({queryKey:["projects"]}),l("Project deleted successfully")},onError(h){l(h instanceof Error?h.message:"An unknown error occurred")}});return v.jsxs(Fe.Fragment,{children:[v.jsxs(Cl,{onClick:u,children:[v.jsx(cb,{children:v.jsx(MC,{fontSize:"small"})}),v.jsx(ls,{children:"Delete"})]}),v.jsxs(Ss,{onClose:d,"aria-labelledby":"customized-dialog-title",open:n,children:[v.jsx(_s,{sx:{m:0,p:2},id:"customized-dialog-title",children:"Delete Project"}),v.jsx(U0,{"aria-label":"close",onClick:d,sx:h=>({position:"absolute",right:8,top:8,color:h.palette.grey[500]}),children:v.jsx(kl,{})}),v.jsx(Cs,{dividers:!0,children:v.jsxs(gm,{gutterBottom:!0,children:['Are you sure you want to delete "',e.name,'"? This action cannot be undone.']})}),v.jsx(Ts,{children:v.jsx(jr,{loading:p.isPending,variant:"contained",autoFocus:!0,onClick:()=>p.mutate(),color:"error",children:"Delete"})}),v.jsx(ms,{open:i!=="",autoHideDuration:6e3,onClose:()=>l(""),message:i})]})]})}function YSe({project:e,onCloseDialog:t}){const[n,r]=_.useState(!1),{apiClients:o}=kn(),a=gs(),[i,l]=_.useState(""),u=()=>{r(!0)},d=()=>{r(!1),t()},p=Ti({async mutationFn(y){return o.projects.updateProject(e.name,{name:e.name,readme:w7({name:e.name,readme:e.readme},y.description)})},onSuccess(){d(),a.invalidateQueries({queryKey:["projects"]}),l("Project updated successfully")},onError(y){l(y instanceof Error?y.message:"An unknown error occurred")}}),h=y=>{y.preventDefault();const g=new FormData(y.currentTarget).get("description")?.toString();p.mutate({description:g})};return v.jsxs(Fe.Fragment,{children:[v.jsxs(Cl,{onClick:u,children:[v.jsx(cb,{children:v.jsx(FC,{fontSize:"small"})}),v.jsx(ls,{children:"Edit"})]}),v.jsxs(Ss,{open:n,onClose:d,children:[v.jsx(_s,{children:"Edit Project"}),v.jsxs(Cs,{children:[v.jsx(Yd,{children:"Add a new project to start exploring semantic models and analyzing data."}),v.jsxs("form",{onSubmit:h,id:"project-form",children:[v.jsx(bo,{autoFocus:!0,required:!0,margin:"dense",id:"name",name:"name",label:"Project Name",disabled:!0,type:"text",fullWidth:!0,variant:"standard",defaultValue:e.name}),v.jsx(bo,{margin:"dense",id:"description",name:"description",label:"Project Description",type:"text",fullWidth:!0,variant:"standard",defaultValue:k7(e.readme)})]})]}),v.jsxs(Ts,{children:[v.jsx(jr,{disabled:p.isPending,onClick:d,children:"Cancel"}),v.jsx(jr,{type:"submit",form:"project-form",loading:p.isPending,children:"Save Changes"})]})]}),v.jsx(ms,{open:i!=="",autoHideDuration:6e3,onClose:()=>l(""),message:i})]})}function YTe({onClickProject:e}){const{apiClients:t,mutable:n}=kn(),{data:r,isSuccess:o,isError:a,error:i}=no({queryKey:["projects"],queryFn:()=>t.projects.listProjects()});return a?v.jsx(to,{error:i,context:"Projects List"}):o?v.jsxs(nW,{maxWidth:"lg",sx:{py:4},children:[v.jsxs(gt,{sx:{textAlign:"center",mb:6},children:[v.jsxs(Mr,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[v.jsx(z3,{sx:{fontSize:32,color:"primary.main"}}),v.jsx(Ze,{variant:"h3",component:"h1",fontWeight:700,children:"Publisher"})]}),v.jsx(Ze,{variant:"h5",color:"text.secondary",sx:{mb:3,maxWidth:600,mx:"auto"},children:"The open-source semantic model server for the Malloy data language"}),v.jsx(Ze,{variant:"body1",color:"text.secondary",sx:{maxWidth:800,mx:"auto"},children:"Define semantic models once — and use them everywhere. Publisher serves Malloy models through clean APIs, enabling consistent, interpretable, and AI-ready data access for tools, applications, and agents."})]}),v.jsxs(tr,{container:!0,spacing:3,sx:{mb:6},children:[v.jsx(tr,{size:{xs:12,md:4},children:v.jsx(ed,{variant:"outlined",onClick:()=>{window.open("https://github.com/malloydata/publisher/blob/main/README.md#ad-hoc-data-analysis","_blank")},sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2}},children:v.jsxs(td,{sx:{p:3},children:[v.jsxs(Mr,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[v.jsx(wSe,{sx:{color:"info.main",fontSize:28}}),v.jsx(Ze,{variant:"h6",fontWeight:600,children:"Ad Hoc Analysis"})]}),v.jsx(Ze,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Use Explorer, a visual query builder that allows analysts to browse semantic sources, build queries, and run nested logic — all without writing code."}),v.jsx(yy,{label:"No-code",size:"small",color:"primary",variant:"outlined"})]})})}),v.jsx(tr,{size:{xs:12,md:4},children:v.jsx(ed,{variant:"outlined",onClick:()=>{window.open("https://github.com/malloydata/publisher/blob/main/README.md#notebook-based-dashboards","_blank")},sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2}},children:v.jsxs(td,{sx:{p:3},children:[v.jsxs(Mr,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[v.jsx(DSe,{sx:{color:"warning.main",fontSize:28}}),v.jsx(Ze,{variant:"h6",fontWeight:600,children:"Notebook Dashboards"})]}),v.jsx(Ze,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Create shareable, code-first dashboards using Malloy notebooks. Include text, charts, and reusable views — all versioned alongside your models."}),v.jsx(yy,{label:"Versioned",size:"small",color:"warning",variant:"outlined"})]})})}),v.jsx(tr,{size:{xs:12,md:4},children:v.jsx(ed,{variant:"outlined",onClick:()=>{window.open("https://github.com/malloydata/publisher/blob/main/README.md#mcp-based-ai-data-agents","_blank")},sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2}},children:v.jsxs(td,{sx:{p:3},children:[v.jsxs(Mr,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[v.jsx(OSe,{sx:{color:"success.main",fontSize:28}}),v.jsx(Ze,{variant:"h6",fontWeight:600,children:"AI Data Agents"})]}),v.jsx(Ze,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Expose your semantic models via the Model Context Protocol (MCP), enabling AI agents to discover sources and ask well-formed questions."}),v.jsx(yy,{label:"AI-Ready",size:"small",color:"success",variant:"outlined"})]})})})]}),v.jsx(ds,{sx:{my:4}}),r.data.length>0?v.jsxs(v.Fragment,{children:[v.jsxs(gt,{sx:{textAlign:"center",mb:4},children:[v.jsxs(Mr,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[v.jsx(H3,{sx:{color:"primary.main",fontSize:24}}),v.jsx(Ze,{variant:"h4",fontWeight:600,children:"Select a Project"})]}),v.jsx(Ze,{variant:"body1",color:"text.secondary",children:"Choose a project to explore its semantic models and start analyzing your data"}),n&&v.jsx(qSe,{})]}),v.jsx(tr,{container:!0,spacing:3,justifyContent:"center",children:r.data.map(l=>v.jsx(tr,{size:{xs:12,sm:6,md:4},children:v.jsx(QSe,{project:l,onClickProject:e})},l.name))})]}):v.jsxs(gt,{sx:{textAlign:"center",mb:4},children:[v.jsxs(Mr,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[v.jsx(H3,{sx:{color:"primary.main",fontSize:24}}),v.jsx(Ze,{variant:"h4",fontWeight:600,children:"Get Started"})]}),v.jsx(Ze,{variant:"body1",color:"text.secondary",sx:{mb:3},children:"No projects found. Create your first Malloy project to start exploring semantic models and building data experiences."}),v.jsx(Fa,{variant:"contained",size:"large",color:"primary",startIcon:v.jsx(z3,{}),href:"https://github.com/malloydata/publisher/blob/main/README.md#server-configuration",target:"_blank",rel:"noopener noreferrer",children:"Learn How to Create Models"})]}),v.jsx(gt,{sx:{textAlign:"center",mt:6,pt:4,borderTop:1,borderColor:"divider"},children:v.jsxs(Ze,{variant:"body2",color:"text.secondary",children:["Publisher is built on fully open infrastructure and designed for the AI era. Join the"," ",v.jsx("a",{href:"https://join.slack.com/t/malloy-community/shared_invite/zt-1kgfwgi5g-CrsdaRqs81QY67QW0~t_uw",target:"_blank",rel:"noopener noreferrer",style:{color:"primary.main",textDecoration:"underline"},children:"Malloy Slack community"})," ","to ask questions, share ideas, and contribute to the future of data modeling."]})})]}):v.jsx(eo,{text:"Loading projects..."})}function QSe({project:e,onClickProject:t}){const{mutable:n}=kn(),[r,o]=_.useState(null),a=!!r,i=u=>{o(u.currentTarget)},l=()=>{o(null)};return v.jsx("div",{children:v.jsxs(ed,{variant:"outlined",sx:{height:"100%",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2,borderColor:"primary.main"}},children:[n&&v.jsxs(v.Fragment,{children:[v.jsx(Gn,{"aria-controls":a?"project-menu":void 0,"aria-haspopup":"true","aria-expanded":a?"true":void 0,onClick:i,sx:{position:"absolute",top:8,right:8},children:v.jsx(S4,{fontSize:"small"})}),v.jsxs(ub,{id:"project-menu","aria-haspopup":"true","aria-expanded":a?"true":void 0,open:a,anchorEl:r,onClose:l,disableRestoreFocus:!0,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"},children:[v.jsx(YSe,{project:e,onCloseDialog:l}),v.jsx(WSe,{project:e,onCloseDialog:l})]})]}),v.jsxs(td,{sx:{p:3,textAlign:"center"},children:[v.jsx(ISe,{sx:{fontSize:48,color:"primary.main",mb:2}}),v.jsx(Ze,{variant:"h6",fontWeight:600,gutterBottom:!0,children:e.name}),v.jsx(Ze,{variant:"body2",color:"text.secondary",sx:{mb:2},children:k7(e.readme)}),v.jsx(Fa,{variant:"contained",color:"secondary",endIcon:v.jsx(RSe,{}),fullWidth:!0,onClick:u=>t(`/${e.name}/`,u),children:"Open Project"})]})]})})}const KSe=async e=>{if(typeof window>"u")throw new Error("MalloyRenderer can only be used in browser environment");const{MalloyRenderer:t}=await W(async()=>{const{MalloyRenderer:n}=await import("./index.umd-9JpsJxlU.js").then(r=>r.i);return{MalloyRenderer:n}},[]);return new t({onClick:e,onError:n=>{console.error("Error rendering visualization:",typeof n,n)}}).createViz()};function XSe({result:e,height:t,isFillElement:n,onSizeChange:r,onDrill:o}){const a=_.useRef(null),[i,l]=_.useState(!1);return _.useLayoutEffect(()=>{if(!a.current||!e)return;let u=!0;const d=a.current;for(;d.firstChild;)d.removeChild(d.firstChild);return KSe(o).then(p=>{if(!u)return;const h=new MutationObserver(y=>{for(const g of y)if(g.type==="childList"&&g.addedNodes.length>0&&Array.from(g.addedNodes).some(b=>b.nodeType===Node.ELEMENT_NODE)){h.disconnect(),setTimeout(()=>{u&&l(!0)},50);break}});h.observe(d,{childList:!0,subtree:!0,characterData:!0});try{p.setResult(JSON.parse(e)),p.render(d)}catch(y){console.error("Error rendering visualization:",y),h.disconnect(),u&&l(!0)}}).catch(p=>{console.error("Failed to create renderer:",p),u&&l(!0)}),()=>{u=!1}},[e,o]),_.useEffect(()=>{if(!a.current||!i)return;const u=a.current,d=()=>{if(u){const y=u.offsetHeight;y>0?r&&r(y):n&&u.firstChild&&(u.firstChild.offsetHeight==0?n(!0):n(!1))}},p=setTimeout(d,100);let h=null;return h=new MutationObserver(d),h.observe(u,{childList:!0,subtree:!0,attributes:!0}),()=>{clearTimeout(p),h?.disconnect()}},[r,e,n,i]),v.jsx("div",{ref:a,style:{width:"100%",height:t?`${t}px`:"100%"}})}function ZSe(e){return typeof window>"u"?v.jsx("div",{style:{width:"100%",height:e.height?`${e.height}px`:"100%",display:"flex",alignItems:"center",justifyContent:"center",color:"#666"},children:"Loading..."}):v.jsx(_.Suspense,{fallback:v.jsx("div",{style:{width:"100%",height:e.height?`${e.height}px`:"100%",display:"flex",alignItems:"center",justifyContent:"center",color:"#666"},children:"Loading visualization..."}),children:v.jsx(XSe,{...e})})}const R7=Object.freeze(Object.defineProperty({__proto__:null,default:ZSe},Symbol.toStringTag,{value:"Module"}));ht.defaults.baseURL="IfYouAreSeeingThis_baseURL_IsNotSet";const Kn={primary:{main:"#14b3cb",light:"#22d3ee",dark:"#0e7490",50:"#ecfeff",100:"#cffafe",500:"#14b3cb",600:"#0891b2",700:"#0e7490"},secondary:{main:"#fbbb04",light:"#fde047",dark:"#eab308",50:"#fefce8",100:"#fef3c7",500:"#fbbb04",600:"#eab308",700:"#ca8a04"},grey:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},success:{main:"#059669",light:"#10b981",dark:"#047857"},warning:{main:"#d97706",light:"#f59e0b",dark:"#b45309"},error:{main:"#dc2626",light:"#ef4444",dark:"#b91c1c"},info:{main:"#0891b2",light:"#06b6d4",dark:"#0e7490"}},JSe=ab({palette:{mode:"light",primary:Kn.primary,secondary:Kn.secondary,grey:Kn.grey,success:Kn.success,warning:Kn.warning,error:Kn.error,info:Kn.info,background:{default:"#ffffff",paper:"#ffffff"},text:{primary:Kn.grey[900],secondary:Kn.grey[600]},divider:Kn.grey[200]},typography:{fontFamily:'"Inter", "Roboto", "Helvetica", "Arial", sans-serif',h1:{fontWeight:700,letterSpacing:"-0.025em"},h2:{fontWeight:700,letterSpacing:"-0.025em"},h3:{fontWeight:600,letterSpacing:"-0.025em"},h4:{fontWeight:600,letterSpacing:"-0.025em"},h5:{fontWeight:600,letterSpacing:"-0.025em"},h6:{fontWeight:600,letterSpacing:"-0.025em"},subtitle1:{fontWeight:500,letterSpacing:"-0.025em"},subtitle2:{fontWeight:500,letterSpacing:"-0.025em"},body1:{letterSpacing:"-0.025em"},body2:{letterSpacing:"-0.025em"},button:{fontWeight:500,letterSpacing:"-0.025em",textTransform:"none"}},shape:{borderRadius:4},components:{MuiCssBaseline:{styleOverrides:{body:{scrollbarWidth:"thin",scrollbarColor:`${Kn.grey[300]} ${Kn.grey[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:Kn.grey[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:Kn.grey[300],borderRadius:"4px","&:hover":{background:Kn.grey[400]}},"&::-webkit-scrollbar-corner":{background:Kn.grey[100]}},"*":{scrollbarWidth:"thin",scrollbarColor:`${Kn.grey[300]} ${Kn.grey[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:Kn.grey[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:Kn.grey[300],borderRadius:"4px","&:hover":{background:Kn.grey[400]}},"&::-webkit-scrollbar-corner":{background:Kn.grey[100]}},"div[data-radix-popper-content-wrapper]":{zIndex:"1300 !important"}}},MuiButton:{styleOverrides:{root:{borderRadius:4,textTransform:"none",fontWeight:500,boxShadow:"none","&:hover":{boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)"}},contained:{"&:hover":{boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"}}}},MuiCard:{styleOverrides:{root:{borderRadius:4,boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)",border:"1px solid",borderColor:"rgba(0, 0, 0, 0.05)"}}},MuiChip:{styleOverrides:{root:{borderRadius:4,fontWeight:500}}},MuiTextField:{styleOverrides:{root:{"& .MuiOutlinedInput-root":{borderRadius:4}}}},MuiDialog:{styleOverrides:{paper:{borderRadius:4,boxShadow:"0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 10px 10px -5px rgba(0, 0, 0, 0.04)"}}},MuiMenu:{styleOverrides:{paper:{borderRadius:4,boxShadow:"0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -2px rgba(0, 0, 0, 0.05)",border:"1px solid rgba(0, 0, 0, 0.05)"}}},MuiBreadcrumbs:{styleOverrides:{root:{"& .MuiBreadcrumbs-separator":{margin:"0 6px",color:Kn.grey[400]}}}},MuiDivider:{styleOverrides:{root:{margin:"4px 0",borderColor:Kn.grey[200]}},defaultProps:{sx:{my:1}}}}}),eTe=_.lazy(()=>W(()=>import("./HomePage-ds2gUb3z.js"),[])),tTe=_.lazy(()=>W(()=>import("./MainPage-arikDX4e.js"),[])),nTe=_.lazy(()=>W(()=>import("./ModelPage-CTrGQfsf.js"),[])),rTe=_.lazy(()=>W(()=>import("./PackagePage-D8L11ZP_.js"),[])),oTe=_.lazy(()=>W(()=>import("./ProjectPage-Dj8Z5I0J.js"),[])),aTe=_.lazy(()=>W(()=>import("./RouteError-BgsaIu4c.js"),[])),iTe=_.lazy(()=>W(()=>import("./WorkbookPage-McJT5YnW.js"),[])),sTe=(e="/",t,n)=>$B([{path:e,element:v.jsx(mZ,{children:v.jsx(abe,{workbookStorage:t,children:v.jsxs(X$,{theme:JSe,children:[v.jsx(sW,{}),v.jsx(tTe,{headerProps:n})]})})}),errorElement:v.jsx(aTe,{}),children:[{path:"",element:v.jsx(eTe,{})},{path:":projectName",element:v.jsx(oTe,{})},{path:":projectName/:packageName",element:v.jsx(rTe,{})},{path:":projectName/:packageName/*",element:v.jsx(nTe,{})},{path:":projectName/:packageName/workbook/:workspace/:workbookPath",element:v.jsx(iTe,{})}]}]),lTe=sTe("/",new dbe,void 0);Gj.createRoot(document.getElementById("root")).render(v.jsx(_.StrictMode,{children:v.jsx(tU,{router:lTe})}));export{VTe as A,wc as B,yy as C,uTe as D,By as E,sl as F,zh as G,cTe as H,G3 as I,fTe as O,ss as P,Fe as R,Mr as S,Ze as T,GTe as X,Dt as a,Ve as b,Je as c,It as d,yi as e,Dl as f,kt as g,oS as h,YTe as i,v as j,SP as k,dTe as l,fn as m,gt as n,u5 as o,Fa as p,nW as q,_ as r,Ue as s,s_ as t,wt as u,zie as v,qTe as w,WTe as x,fB as y,cbe as z};
|