@malloy-publisher/server 0.0.82 → 0.0.84
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/{RenderedResult-BAZuT25g-IRFKLhAP.js → RenderedResult-BAZuT25g-l7gGLqsb.js} +2 -2
- package/dist/app/assets/{index-B_dNAjy-.js → index-9VijFY1i.js} +1 -1
- package/dist/app/assets/index-CEiaO_E2.js +432 -0
- package/dist/app/assets/{index-CW_uoJdN.js → index-DJXyqbuQ.js} +1 -1
- package/dist/app/assets/index-RMQQYOAi.css +1 -0
- package/dist/app/assets/{index.umd-B0FgcoQt.js → index.umd-DHTBUjVU.js} +1 -1
- package/dist/app/index.html +2 -2
- package/dist/server.js +294 -20
- package/package.json +11 -10
- package/src/controller/database.controller.ts +2 -2
- package/src/logger.ts +5 -6
- package/src/server.ts +12 -0
- package/src/service/connection.ts +1 -1
- package/src/service/package.ts +57 -10
- package/src/service/project.ts +26 -11
- package/dist/app/assets/index-BKC-ikb3.css +0 -1
- package/dist/app/assets/index-DL8Ov73S.js +0 -432
|
@@ -0,0 +1,432 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-0fTdLuKf-C_Z-qPys.js","assets/html-B0P_v3yU-5FUQOWqS.js","assets/javascript-fa8UlHZE-ySlJ1b_l.js","assets/css-D1aVdRIU-BPhBrDlE.js","assets/angular-ts-wkniW60G-CLxf_aqD.js","assets/scss-DhHc4lxB-DOVe6m7U.js","assets/apl-TLDHFJX6-4Ja2pao0.js","assets/xml-ChBsf5uy-CRY5u_dA.js","assets/java-B7odJ7Ap-xI-RfyKK.js","assets/json-71t8ZF9g-BQoSv7ci.js","assets/astro-Uf8_VxKJ-CLNq6E27.js","assets/typescript-buWNZFwO-Dj6nwHGl.js","assets/postcss-BZ3MNRIJ-B3ZDOciz.js","assets/blade-BtR00Gx0-BH_u9bLw.js","assets/sql-DCkt643--COK4E0Yg.js","assets/bsl-BIXPNqL4-B7NuXuWJ.js","assets/sdbl-BBamrXFL-BLhTXw86.js","assets/cairo-tXZKA2PT-BLBT-6ii.js","assets/python-xYxLFJY--DhUJRlN_.js","assets/cobol-DMssKNmC-B2fukI-w.js","assets/coffee-D_GzM8k1-4lliG68M.js","assets/cpp-CJF2i3ah-pZOsOWe_.js","assets/regexp-GiFkbxS--DWJ3fJO_.js","assets/glsl-XLGYNq5B-BsoackK0.js","assets/c-DASdrs7p-C3t2pwGQ.js","assets/crystal-BKWnaU3g-DLUiimt9.js","assets/shellscript-Dn0-btNd-atvbtKCR.js","assets/edge-CgxR-qhM-C4-j-4jN.js","assets/html-derivative-D59SHfh8-CSkG6UyS.js","assets/elixir-DZkeSPwW-CcKXTVRL.js","assets/elm-BKuV1HE1-DhehEoOI.js","assets/erb-BLwkpXUJ-ChmaBI6f.js","assets/ruby-DcPLUUK3-ComHSJZD.js","assets/haml-CMN0hQaL-P2mc1-Uz.js","assets/graphql-DWpQF4JI-Bg_kbUNo.js","assets/jsx-Bkesy5tT-BAng5TT0.js","assets/tsx-DiGsgWT8-B6W0miNI.js","assets/lua-BVfhNLDr-CWJMHgTQ.js","assets/yaml-Bbg74JKr-CVw76BM1.js","assets/fortran-fixed-form-s9Hnb3av-DpX1AVnn.js","assets/fortran-free-form-CNDsBFUj-DKXYxT9g.js","assets/fsharp-Cv0x43wb-Dg8cqrY9.js","assets/markdown-B6guhLWd-UIAJJxZW.js","assets/gdresource-CMcKXvgJ-CWt23EK3.js","assets/gdshader-BGJEsM2Z-SKMF96pI.js","assets/gdscript-D7aheHm--DfxzS6Rs.js","assets/git-commit-BspYIY3P-n1pa9hpQ.js","assets/diff-XmNrvgM1-BgYniUM_.js","assets/git-rebase--zLBTjUa-D_BU2XLr.js","assets/glimmer-js-DhY9umHJ-VrvmblrN.js","assets/glimmer-ts-CCrHcYH5-JtH9P_df.js","assets/hack-CQrV-ytR-DsU69WFl.js","assets/handlebars-Cc-7fXX5-1wmMMko9.js","assets/http-Dcjm_K1m-BIoBBtFi.js","assets/hxml-BNKImryz-C86vEiUs.js","assets/haxe-CZZ33vZw-C5wWYbrZ.js","assets/imba-Drd0AMDo-ClNo5Aft.js","assets/jinja-CCSYduCH-DYrHgqe4.js","assets/jison-BygvlveW-CnxAXEK_.js","assets/julia-CiahampL-V7UYV-sq.js","assets/r-F-9I-ITZ-CwjWoCRV.js","assets/latex-LfGCYGw5-BH0TQ0ei.js","assets/tex-mHs7a43s-GNY7iZwJ.js","assets/liquid-CvufO3kO-CDc-Ahzk.js","assets/marko-CHlMS8w5-BMD3FaEa.js","assets/less-DQA4v-Nm-BfCpw3nA.js","assets/mdc-4K6B6lHG-BAGHtNo-.js","assets/nginx-Can2eAjw-CdY2tLiv.js","assets/nim-B3r2RtQZ-VfCbv_TB.js","assets/perl-DaMQyPwp-C4BFOiY3.js","assets/php-BL3EfPBi-BMN5eA9q.js","assets/pug-HKe4Luo3-BjTLA0bL.js","assets/qml-FlMIyjU9-DSnJ_WBo.js","assets/razor-CeqqNtyB-CTLKKD1r.js","assets/csharp-CYWRhZ2R-D9R-vmeu.js","assets/rst-C3D6-dqL-DnZbUBhI.js","assets/cmake-Dr-A3iJx-DbXoA79R.js","assets/sas-tDSYjXcL-BoaRjvJ1.js","assets/shaderlab-CvqEIoL0-D4Zbm5h2.js","assets/hlsl-3-lv4gi7-ifBTmRxC.js","assets/shellsession-8OLo3sB6-BcsC7Rtk.js","assets/soy-EwHMOVPj-g2bfMTqc.js","assets/sparql-DhuelBut-DSDXMn9h.js","assets/turtle-BJ2wmjPc-BMR_PYu6.js","assets/stata-Dok6hMw0-Dx5Z5W33.js","assets/svelte-01qw6Rxm-BPq1Epw_.js","assets/templ-Hmy8U0DD-bZJvPZVc.js","assets/go-BErP6iv1-B1SYOhNW.js","assets/ts-tags-DYZ4SGcN-DHCrqCAy.js","assets/twig-BmytkGQV-gxvDbPvi.js","assets/vue-Bl1uVNsA-B0HO5ROf.js","assets/vue-html-DHr5wjBG-BZddcMPi.js","assets/xsl-BefjlXrd-kO2fudRX.js","assets/index-9VijFY1i.js","assets/index-DJXyqbuQ.js","assets/index.umd-DHTBUjVU.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
function IF(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 s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).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 jEe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function PN(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var D1={exports:{}},xf={};/**
|
|
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 qk;function OF(){if(qk)return xf;qk=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,a){var s=null;if(a!==void 0&&(s=""+a),o.key!==void 0&&(s=""+o.key),"key"in o){a={};for(var c in o)c!=="key"&&(a[c]=o[c])}else a=o;return o=a.ref,{$$typeof:e,type:r,key:s,ref:o!==void 0?o:null,props:a}}return xf.Fragment=t,xf.jsx=n,xf.jsxs=n,xf}var Wk;function NF(){return Wk||(Wk=1,D1.exports=OF()),D1.exports}var v=NF(),R1={exports:{}},Bt={};/**
|
|
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 Yk;function PF(){if(Yk)return Bt;Yk=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"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.iterator;function g(N){return N===null||typeof N!="object"?null:(N=h&&N[h]||N["@@iterator"],typeof N=="function"?N:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,x={};function S(N,oe,K){this.props=N,this.context=oe,this.refs=x,this.updater=K||y}S.prototype.isReactComponent={},S.prototype.setState=function(N,oe){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,oe,"setState")},S.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function T(){}T.prototype=S.prototype;function D(N,oe,K){this.props=N,this.context=oe,this.refs=x,this.updater=K||y}var w=D.prototype=new T;w.constructor=D,b(w,S.prototype),w.isPureReactComponent=!0;var R=Array.isArray,I={H:null,A:null,T:null,S:null,V:null},O=Object.prototype.hasOwnProperty;function F(N,oe,K,P,ee,ce){return K=ce.ref,{$$typeof:e,type:N,key:oe,ref:K!==void 0?K:null,props:ce}}function j(N,oe){return F(N.type,oe,void 0,void 0,void 0,N.props)}function H(N){return typeof N=="object"&&N!==null&&N.$$typeof===e}function C(N){var oe={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(K){return oe[K]})}var M=/\/+/g;function $(N,oe){return typeof N=="object"&&N!==null&&N.key!=null?C(""+N.key):oe.toString(36)}function z(){}function q(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(z,z):(N.status="pending",N.then(function(oe){N.status==="pending"&&(N.status="fulfilled",N.value=oe)},function(oe){N.status==="pending"&&(N.status="rejected",N.reason=oe)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function Y(N,oe,K,P,ee){var ce=typeof N;(ce==="undefined"||ce==="boolean")&&(N=null);var re=!1;if(N===null)re=!0;else switch(ce){case"bigint":case"string":case"number":re=!0;break;case"object":switch(N.$$typeof){case e:case t:re=!0;break;case p:return re=N._init,Y(re(N._payload),oe,K,P,ee)}}if(re)return ee=ee(N),re=P===""?"."+$(N,0):P,R(ee)?(K="",re!=null&&(K=re.replace(M,"$&/")+"/"),Y(ee,oe,K,"",function(Ge){return Ge})):ee!=null&&(H(ee)&&(ee=j(ee,K+(ee.key==null||N&&N.key===ee.key?"":(""+ee.key).replace(M,"$&/")+"/")+re)),oe.push(ee)),1;re=0;var be=P===""?".":P+":";if(R(N))for(var ye=0;ye<N.length;ye++)P=N[ye],ce=be+$(P,ye),re+=Y(P,oe,K,ce,ee);else if(ye=g(N),typeof ye=="function")for(N=ye.call(N),ye=0;!(P=N.next()).done;)P=P.value,ce=be+$(P,ye++),re+=Y(P,oe,K,ce,ee);else if(ce==="object"){if(typeof N.then=="function")return Y(q(N),oe,K,P,ee);throw oe=String(N),Error("Objects are not valid as a React child (found: "+(oe==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":oe)+"). If you meant to render a collection of children, use an array instead.")}return re}function B(N,oe,K){if(N==null)return N;var P=[],ee=0;return Y(N,P,"","",function(ce){return oe.call(K,ce,ee++)}),P}function X(N){if(N._status===-1){var oe=N._result;oe=oe(),oe.then(function(K){(N._status===0||N._status===-1)&&(N._status=1,N._result=K)},function(K){(N._status===0||N._status===-1)&&(N._status=2,N._result=K)}),N._status===-1&&(N._status=0,N._result=oe)}if(N._status===1)return N._result.default;throw N._result}var ae=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var oe=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(oe))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)};function te(){}return Bt.Children={map:B,forEach:function(N,oe,K){B(N,function(){oe.apply(this,arguments)},K)},count:function(N){var oe=0;return B(N,function(){oe++}),oe},toArray:function(N){return B(N,function(oe){return oe})||[]},only:function(N){if(!H(N))throw Error("React.Children.only expected to receive a single React element child.");return N}},Bt.Component=S,Bt.Fragment=n,Bt.Profiler=o,Bt.PureComponent=D,Bt.StrictMode=r,Bt.Suspense=u,Bt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,Bt.__COMPILER_RUNTIME={__proto__:null,c:function(N){return I.H.useMemoCache(N)}},Bt.cache=function(N){return function(){return N.apply(null,arguments)}},Bt.cloneElement=function(N,oe,K){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var P=b({},N.props),ee=N.key,ce=void 0;if(oe!=null)for(re in oe.ref!==void 0&&(ce=void 0),oe.key!==void 0&&(ee=""+oe.key),oe)!O.call(oe,re)||re==="key"||re==="__self"||re==="__source"||re==="ref"&&oe.ref===void 0||(P[re]=oe[re]);var re=arguments.length-2;if(re===1)P.children=K;else if(1<re){for(var be=Array(re),ye=0;ye<re;ye++)be[ye]=arguments[ye+2];P.children=be}return F(N.type,ee,void 0,void 0,ce,P)},Bt.createContext=function(N){return N={$$typeof:s,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:a,_context:N},N},Bt.createElement=function(N,oe,K){var P,ee={},ce=null;if(oe!=null)for(P in oe.key!==void 0&&(ce=""+oe.key),oe)O.call(oe,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(ee[P]=oe[P]);var re=arguments.length-2;if(re===1)ee.children=K;else if(1<re){for(var be=Array(re),ye=0;ye<re;ye++)be[ye]=arguments[ye+2];ee.children=be}if(N&&N.defaultProps)for(P in re=N.defaultProps,re)ee[P]===void 0&&(ee[P]=re[P]);return F(N,ce,void 0,void 0,null,ee)},Bt.createRef=function(){return{current:null}},Bt.forwardRef=function(N){return{$$typeof:c,render:N}},Bt.isValidElement=H,Bt.lazy=function(N){return{$$typeof:p,_payload:{_status:-1,_result:N},_init:X}},Bt.memo=function(N,oe){return{$$typeof:d,type:N,compare:oe===void 0?null:oe}},Bt.startTransition=function(N){var oe=I.T,K={};I.T=K;try{var P=N(),ee=I.S;ee!==null&&ee(K,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(te,ae)}catch(ce){ae(ce)}finally{I.T=oe}},Bt.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},Bt.use=function(N){return I.H.use(N)},Bt.useActionState=function(N,oe,K){return I.H.useActionState(N,oe,K)},Bt.useCallback=function(N,oe){return I.H.useCallback(N,oe)},Bt.useContext=function(N){return I.H.useContext(N)},Bt.useDebugValue=function(){},Bt.useDeferredValue=function(N,oe){return I.H.useDeferredValue(N,oe)},Bt.useEffect=function(N,oe,K){var P=I.H;if(typeof K=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return P.useEffect(N,oe)},Bt.useId=function(){return I.H.useId()},Bt.useImperativeHandle=function(N,oe,K){return I.H.useImperativeHandle(N,oe,K)},Bt.useInsertionEffect=function(N,oe){return I.H.useInsertionEffect(N,oe)},Bt.useLayoutEffect=function(N,oe){return I.H.useLayoutEffect(N,oe)},Bt.useMemo=function(N,oe){return I.H.useMemo(N,oe)},Bt.useOptimistic=function(N,oe){return I.H.useOptimistic(N,oe)},Bt.useReducer=function(N,oe,K){return I.H.useReducer(N,oe,K)},Bt.useRef=function(N){return I.H.useRef(N)},Bt.useState=function(N){return I.H.useState(N)},Bt.useSyncExternalStore=function(N,oe,K){return I.H.useSyncExternalStore(N,oe,K)},Bt.useTransition=function(){return I.H.useTransition()},Bt.version="19.1.0",Bt}var Kk;function PT(){return Kk||(Kk=1,R1.exports=PF()),R1.exports}var k=PT();const Fe=PN(k),tx=IF({__proto__:null,default:Fe},[k]);var I1={exports:{}},Tf={},O1={exports:{}},N1={};/**
|
|
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 Qk;function LF(){return Qk||(Qk=1,function(e){function t(B,X){var ae=B.length;B.push(X);e:for(;0<ae;){var te=ae-1>>>1,N=B[te];if(0<o(N,X))B[te]=X,B[ae]=N,ae=te;else break e}}function n(B){return B.length===0?null:B[0]}function r(B){if(B.length===0)return null;var X=B[0],ae=B.pop();if(ae!==X){B[0]=ae;e:for(var te=0,N=B.length,oe=N>>>1;te<oe;){var K=2*(te+1)-1,P=B[K],ee=K+1,ce=B[ee];if(0>o(P,ae))ee<N&&0>o(ce,P)?(B[te]=ce,B[ee]=ae,te=ee):(B[te]=P,B[K]=ae,te=K);else if(ee<N&&0>o(ce,ae))B[te]=ce,B[ee]=ae,te=ee;else break e}}return X}function o(B,X){var ae=B.sortIndex-X.sortIndex;return ae!==0?ae:B.id-X.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 s=Date,c=s.now();e.unstable_now=function(){return s.now()-c}}var u=[],d=[],p=1,h=null,g=3,y=!1,b=!1,x=!1,S=!1,T=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function R(B){for(var X=n(d);X!==null;){if(X.callback===null)r(d);else if(X.startTime<=B)r(d),X.sortIndex=X.expirationTime,t(u,X);else break;X=n(d)}}function I(B){if(x=!1,R(B),!b)if(n(u)!==null)b=!0,O||(O=!0,$());else{var X=n(d);X!==null&&Y(I,X.startTime-B)}}var O=!1,F=-1,j=5,H=-1;function C(){return S?!0:!(e.unstable_now()-H<j)}function M(){if(S=!1,O){var B=e.unstable_now();H=B;var X=!0;try{e:{b=!1,x&&(x=!1,D(F),F=-1),y=!0;var ae=g;try{t:{for(R(B),h=n(u);h!==null&&!(h.expirationTime>B&&C());){var te=h.callback;if(typeof te=="function"){h.callback=null,g=h.priorityLevel;var N=te(h.expirationTime<=B);if(B=e.unstable_now(),typeof N=="function"){h.callback=N,R(B),X=!0;break t}h===n(u)&&r(u),R(B)}else r(u);h=n(u)}if(h!==null)X=!0;else{var oe=n(d);oe!==null&&Y(I,oe.startTime-B),X=!1}}break e}finally{h=null,g=ae,y=!1}X=void 0}}finally{X?$():O=!1}}}var $;if(typeof w=="function")$=function(){w(M)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,q=z.port2;z.port1.onmessage=M,$=function(){q.postMessage(null)}}else $=function(){T(M,0)};function Y(B,X){F=T(function(){B(e.unstable_now())},X)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(B){B.callback=null},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(B){switch(g){case 1:case 2:case 3:var X=3;break;default:X=g}var ae=g;g=X;try{return B()}finally{g=ae}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(B,X){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var ae=g;g=B;try{return X()}finally{g=ae}},e.unstable_scheduleCallback=function(B,X,ae){var te=e.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?te+ae:te):ae=te,B){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=ae+N,B={id:p++,callback:X,priorityLevel:B,startTime:ae,expirationTime:N,sortIndex:-1},ae>te?(B.sortIndex=ae,t(d,B),n(u)===null&&B===n(d)&&(x?(D(F),F=-1):x=!0,Y(I,ae-te))):(B.sortIndex=N,t(u,B),b||y||(b=!0,O||(O=!0,$()))),B},e.unstable_shouldYield=C,e.unstable_wrapCallback=function(B){var X=g;return function(){var ae=g;g=X;try{return B.apply(this,arguments)}finally{g=ae}}}}(N1)),N1}var Xk;function MF(){return Xk||(Xk=1,O1.exports=LF()),O1.exports}var P1={exports:{}},Wr={};/**
|
|
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 Zk;function FF(){if(Zk)return Wr;Zk=1;var e=PT();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 s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(u,d){if(u==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return Wr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Wr.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)},Wr.flushSync=function(u){var d=s.T,p=r.p;try{if(s.T=null,r.p=2,u)return u()}finally{s.T=d,r.p=p,r.d.f()}},Wr.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))},Wr.prefetchDNS=function(u){typeof u=="string"&&r.d.D(u)},Wr.preinit=function(u,d){if(typeof u=="string"&&d&&typeof d.as=="string"){var p=d.as,h=c(p,d.crossOrigin),g=typeof d.integrity=="string"?d.integrity:void 0,y=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:g,fetchPriority:y}):p==="script"&&r.d.X(u,{crossOrigin:h,integrity:g,fetchPriority:y,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Wr.preinitModule=function(u,d){if(typeof u=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var p=c(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)},Wr.preload=function(u,d){if(typeof u=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var p=d.as,h=c(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})}},Wr.preloadModule=function(u,d){if(typeof u=="string")if(d){var p=c(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)},Wr.requestFormReset=function(u){r.d.r(u)},Wr.unstable_batchedUpdates=function(u,d){return u(d)},Wr.useFormState=function(u,d,p){return s.H.useFormState(u,d,p)},Wr.useFormStatus=function(){return s.H.useHostTransitionStatus()},Wr.version="19.1.0",Wr}var Jk;function LN(){if(Jk)return P1.exports;Jk=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(),P1.exports=FF(),P1.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 ew;function BF(){if(ew)return Tf;ew=1;var e=MF(),t=PT(),n=LN();function r(i){var l="https://react.dev/errors/"+i;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)l+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+i+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function a(i){var l=i,f=i;if(i.alternate)for(;l.return;)l=l.return;else{i=l;do l=i,(l.flags&4098)!==0&&(f=l.return),i=l.return;while(i)}return l.tag===3?f:null}function s(i){if(i.tag===13){var l=i.memoizedState;if(l===null&&(i=i.alternate,i!==null&&(l=i.memoizedState)),l!==null)return l.dehydrated}return null}function c(i){if(a(i)!==i)throw Error(r(188))}function u(i){var l=i.alternate;if(!l){if(l=a(i),l===null)throw Error(r(188));return l!==i?null:i}for(var f=i,m=l;;){var E=f.return;if(E===null)break;var _=E.alternate;if(_===null){if(m=E.return,m!==null){f=m;continue}break}if(E.child===_.child){for(_=E.child;_;){if(_===f)return c(E),i;if(_===m)return c(E),l;_=_.sibling}throw Error(r(188))}if(f.return!==m.return)f=E,m=_;else{for(var L=!1,U=E.child;U;){if(U===f){L=!0,f=E,m=_;break}if(U===m){L=!0,m=E,f=_;break}U=U.sibling}if(!L){for(U=_.child;U;){if(U===f){L=!0,f=_,m=E;break}if(U===m){L=!0,m=_,f=E;break}U=U.sibling}if(!L)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?i:l}function d(i){var l=i.tag;if(l===5||l===26||l===27||l===6)return i;for(i=i.child;i!==null;){if(l=d(i),l!==null)return l;i=i.sibling}return null}var p=Object.assign,h=Symbol.for("react.element"),g=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),D=Symbol.for("react.consumer"),w=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),C=Symbol.for("react.memo_cache_sentinel"),M=Symbol.iterator;function $(i){return i===null||typeof i!="object"?null:(i=M&&i[M]||i["@@iterator"],typeof i=="function"?i:null)}var z=Symbol.for("react.client.reference");function q(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===z?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case b:return"Fragment";case S:return"Profiler";case x:return"StrictMode";case I:return"Suspense";case O:return"SuspenseList";case H:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case y:return"Portal";case w:return(i.displayName||"Context")+".Provider";case D:return(i._context.displayName||"Context")+".Consumer";case R:var l=i.render;return i=i.displayName,i||(i=l.displayName||l.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case F:return l=i.displayName||null,l!==null?l:q(i.type)||"Memo";case j:l=i._payload,i=i._init;try{return q(i(l))}catch{}}return null}var Y=Array.isArray,B=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},te=[],N=-1;function oe(i){return{current:i}}function K(i){0>N||(i.current=te[N],te[N]=null,N--)}function P(i,l){N++,te[N]=i.current,i.current=l}var ee=oe(null),ce=oe(null),re=oe(null),be=oe(null);function ye(i,l){switch(P(re,l),P(ce,i),P(ee,null),l.nodeType){case 9:case 11:i=(i=l.documentElement)&&(i=i.namespaceURI)?Ek(i):0;break;default:if(i=l.tagName,l=l.namespaceURI)l=Ek(l),i=xk(l,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}K(ee),P(ee,i)}function Ge(){K(ee),K(ce),K(re)}function Me(i){i.memoizedState!==null&&P(be,i);var l=ee.current,f=xk(l,i.type);l!==f&&(P(ce,i),P(ee,f))}function Oe(i){ce.current===i&&(K(ee),K(ce)),be.current===i&&(K(be),gf._currentValue=ae)}var Qe=Object.prototype.hasOwnProperty,nt=e.unstable_scheduleCallback,Re=e.unstable_cancelCallback,gt=e.unstable_shouldYield,_t=e.unstable_requestPaint,je=e.unstable_now,mt=e.unstable_getCurrentPriorityLevel,lt=e.unstable_ImmediatePriority,ft=e.unstable_UserBlockingPriority,Ue=e.unstable_NormalPriority,Le=e.unstable_LowPriority,Jt=e.unstable_IdlePriority,jt=e.log,At=e.unstable_setDisableYieldValue,de=null,ge=null;function ze(i){if(typeof jt=="function"&&At(i),ge&&typeof ge.setStrictMode=="function")try{ge.setStrictMode(de,i)}catch{}}var Xe=Math.clz32?Math.clz32:en,Et=Math.log,Je=Math.LN2;function en(i){return i>>>=0,i===0?32:31-(Et(i)/Je|0)|0}var zt=256,Ke=4194304;function Ee(i){var l=i&42;if(l!==0)return l;switch(i&-i){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 i&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function Se(i,l,f){var m=i.pendingLanes;if(m===0)return 0;var E=0,_=i.suspendedLanes,L=i.pingedLanes;i=i.warmLanes;var U=m&134217727;return U!==0?(m=U&~_,m!==0?E=Ee(m):(L&=U,L!==0?E=Ee(L):f||(f=U&~i,f!==0&&(E=Ee(f))))):(U=m&~_,U!==0?E=Ee(U):L!==0?E=Ee(L):f||(f=m&~i,f!==0&&(E=Ee(f)))),E===0?0:l!==0&&l!==E&&(l&_)===0&&(_=E&-E,f=l&-l,_>=f||_===32&&(f&4194048)!==0)?l:E}function ht(i,l){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&l)===0}function rt(i,l){switch(i){case 1:case 2:case 4:case 8:case 64:return l+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 l+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 mn(){var i=zt;return zt<<=1,(zt&4194048)===0&&(zt=256),i}function Lr(){var i=Ke;return Ke<<=1,(Ke&62914560)===0&&(Ke=4194304),i}function Er(i){for(var l=[],f=0;31>f;f++)l.push(i);return l}function Vn(i,l){i.pendingLanes|=l,l!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function lr(i,l,f,m,E,_){var L=i.pendingLanes;i.pendingLanes=f,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=f,i.entangledLanes&=f,i.errorRecoveryDisabledLanes&=f,i.shellSuspendCounter=0;var U=i.entanglements,Z=i.expirationTimes,pe=i.hiddenUpdates;for(f=L&~f;0<f;){var Ae=31-Xe(f),Ie=1<<Ae;U[Ae]=0,Z[Ae]=-1;var he=pe[Ae];if(he!==null)for(pe[Ae]=null,Ae=0;Ae<he.length;Ae++){var me=he[Ae];me!==null&&(me.lane&=-536870913)}f&=~Ie}m!==0&&fo(i,m,0),_!==0&&E===0&&i.tag!==0&&(i.suspendedLanes|=_&~(L&~l))}function fo(i,l,f){i.pendingLanes|=l,i.suspendedLanes&=~l;var m=31-Xe(l);i.entangledLanes|=l,i.entanglements[m]=i.entanglements[m]|1073741824|f&4194090}function Tn(i,l){var f=i.entangledLanes|=l;for(i=i.entanglements;f;){var m=31-Xe(f),E=1<<m;E&l|i[m]&l&&(i[m]|=l),f&=~E}}function Mr(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=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:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function yt(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function ne(){var i=X.p;return i!==0?i:(i=window.event,i===void 0?32:Uk(i.type))}function J(i,l){var f=X.p;try{return X.p=i,l()}finally{X.p=f}}var ie=Math.random().toString(36).slice(2),ve="__reactFiber$"+ie,we="__reactProps$"+ie,Ye="__reactContainer$"+ie,ot="__reactEvents$"+ie,Ze="__reactListeners$"+ie,ct="__reactHandles$"+ie,et="__reactResources$"+ie,bt="__reactMarker$"+ie;function kt(i){delete i[ve],delete i[we],delete i[ot],delete i[Ze],delete i[ct]}function Rt(i){var l=i[ve];if(l)return l;for(var f=i.parentNode;f;){if(l=f[Ye]||f[ve]){if(f=l.alternate,l.child!==null||f!==null&&f.child!==null)for(i=_k(i);i!==null;){if(f=i[ve])return f;i=_k(i)}return l}i=f,f=i.parentNode}return null}function rn(i){if(i=i[ve]||i[Ye]){var l=i.tag;if(l===5||l===6||l===13||l===26||l===27||l===3)return i}return null}function Nn(i){var l=i.tag;if(l===5||l===26||l===27||l===6)return i.stateNode;throw Error(r(33))}function Hn(i){var l=i[et];return l||(l=i[et]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function on(i){i[bt]=!0}var Xt=new Set,ss={};function no(i,l){Qo(i,l),Qo(i+"Capture",l)}function Qo(i,l){for(ss[i]=l,i=0;i<l.length;i++)Xt.add(l[i])}var po=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]*$"),ls={},cs={};function Ad(i){return Qe.call(cs,i)?!0:Qe.call(ls,i)?!1:po.test(i)?cs[i]=!0:(ls[i]=!0,!1)}function Xo(i,l,f){if(Ad(l))if(f===null)i.removeAttribute(l);else{switch(typeof f){case"undefined":case"function":case"symbol":i.removeAttribute(l);return;case"boolean":var m=l.toLowerCase().slice(0,5);if(m!=="data-"&&m!=="aria-"){i.removeAttribute(l);return}}i.setAttribute(l,""+f)}}function Si(i,l,f){if(f===null)i.removeAttribute(l);else{switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(l);return}i.setAttribute(l,""+f)}}function $t(i,l,f,m){if(m===null)i.removeAttribute(f);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(f);return}i.setAttributeNS(l,f,""+m)}}var Gr,wa;function Da(i){if(Gr===void 0)try{throw Error()}catch(f){var l=f.stack.trim().match(/\n( *(at )?)/);Gr=l&&l[1]||"",wa=-1<f.stack.indexOf(`
|
|
43
|
+
at`)?" (<anonymous>)":-1<f.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
+
`+Gr+i+wa}var sl=!1;function Ln(i,l){if(!i||sl)return"";sl=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var m={DetermineComponentFrameRoot:function(){try{if(l){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(me){var he=me}Reflect.construct(i,[],Ie)}else{try{Ie.call()}catch(me){he=me}i.call(Ie.prototype)}}else{try{throw Error()}catch(me){he=me}(Ie=i())&&typeof Ie.catch=="function"&&Ie.catch(function(){})}}catch(me){if(me&&he&&typeof me.stack=="string")return[me.stack,he.stack]}return[null,null]}};m.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var E=Object.getOwnPropertyDescriptor(m.DetermineComponentFrameRoot,"name");E&&E.configurable&&Object.defineProperty(m.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var _=m.DetermineComponentFrameRoot(),L=_[0],U=_[1];if(L&&U){var Z=L.split(`
|
|
45
|
+
`),pe=U.split(`
|
|
46
|
+
`);for(E=m=0;m<Z.length&&!Z[m].includes("DetermineComponentFrameRoot");)m++;for(;E<pe.length&&!pe[E].includes("DetermineComponentFrameRoot");)E++;if(m===Z.length||E===pe.length)for(m=Z.length-1,E=pe.length-1;1<=m&&0<=E&&Z[m]!==pe[E];)E--;for(;1<=m&&0<=E;m--,E--)if(Z[m]!==pe[E]){if(m!==1||E!==1)do if(m--,E--,0>E||Z[m]!==pe[E]){var Ae=`
|
|
47
|
+
`+Z[m].replace(" at new "," at ");return i.displayName&&Ae.includes("<anonymous>")&&(Ae=Ae.replace("<anonymous>",i.displayName)),Ae}while(1<=m&&0<=E);break}}}finally{sl=!1,Error.prepareStackTrace=f}return(f=i?i.displayName||i.name:"")?Da(f):""}function us(i){switch(i.tag){case 26:case 27:case 5:return Da(i.type);case 16:return Da("Lazy");case 13:return Da("Suspense");case 19:return Da("SuspenseList");case 0:case 15:return Ln(i.type,!1);case 11:return Ln(i.type.render,!1);case 1:return Ln(i.type,!0);case 31:return Da("Activity");default:return""}}function kd(i){try{var l="";do l+=us(i),i=i.return;while(i);return l}catch(f){return`
|
|
48
|
+
Error generating stack: `+f.message+`
|
|
49
|
+
`+f.stack}}function ho(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function m_(i){var l=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function A8(i){var l=m_(i)?"checked":"value",f=Object.getOwnPropertyDescriptor(i.constructor.prototype,l),m=""+i[l];if(!i.hasOwnProperty(l)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var E=f.get,_=f.set;return Object.defineProperty(i,l,{configurable:!0,get:function(){return E.call(this)},set:function(L){m=""+L,_.call(this,L)}}),Object.defineProperty(i,l,{enumerable:f.enumerable}),{getValue:function(){return m},setValue:function(L){m=""+L},stopTracking:function(){i._valueTracker=null,delete i[l]}}}}function Yh(i){i._valueTracker||(i._valueTracker=A8(i))}function g_(i){if(!i)return!1;var l=i._valueTracker;if(!l)return!0;var f=l.getValue(),m="";return i&&(m=m_(i)?i.checked?"true":"false":i.value),i=m,i!==f?(l.setValue(i),!0):!1}function Kh(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var k8=/[\n"\\]/g;function Zo(i){return i.replace(k8,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function Ab(i,l,f,m,E,_,L,U){i.name="",L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"?i.type=L:i.removeAttribute("type"),l!=null?L==="number"?(l===0&&i.value===""||i.value!=l)&&(i.value=""+ho(l)):i.value!==""+ho(l)&&(i.value=""+ho(l)):L!=="submit"&&L!=="reset"||i.removeAttribute("value"),l!=null?kb(i,L,ho(l)):f!=null?kb(i,L,ho(f)):m!=null&&i.removeAttribute("value"),E==null&&_!=null&&(i.defaultChecked=!!_),E!=null&&(i.checked=E&&typeof E!="function"&&typeof E!="symbol"),U!=null&&typeof U!="function"&&typeof U!="symbol"&&typeof U!="boolean"?i.name=""+ho(U):i.removeAttribute("name")}function y_(i,l,f,m,E,_,L,U){if(_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(i.type=_),l!=null||f!=null){if(!(_!=="submit"&&_!=="reset"||l!=null))return;f=f!=null?""+ho(f):"",l=l!=null?""+ho(l):f,U||l===i.value||(i.value=l),i.defaultValue=l}m=m??E,m=typeof m!="function"&&typeof m!="symbol"&&!!m,i.checked=U?i.checked:!!m,i.defaultChecked=!!m,L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"&&(i.name=L)}function kb(i,l,f){l==="number"&&Kh(i.ownerDocument)===i||i.defaultValue===""+f||(i.defaultValue=""+f)}function Ec(i,l,f,m){if(i=i.options,l){l={};for(var E=0;E<f.length;E++)l["$"+f[E]]=!0;for(f=0;f<i.length;f++)E=l.hasOwnProperty("$"+i[f].value),i[f].selected!==E&&(i[f].selected=E),E&&m&&(i[f].defaultSelected=!0)}else{for(f=""+ho(f),l=null,E=0;E<i.length;E++){if(i[E].value===f){i[E].selected=!0,m&&(i[E].defaultSelected=!0);return}l!==null||i[E].disabled||(l=i[E])}l!==null&&(l.selected=!0)}}function b_(i,l,f){if(l!=null&&(l=""+ho(l),l!==i.value&&(i.value=l),f==null)){i.defaultValue!==l&&(i.defaultValue=l);return}i.defaultValue=f!=null?""+ho(f):""}function v_(i,l,f,m){if(l==null){if(m!=null){if(f!=null)throw Error(r(92));if(Y(m)){if(1<m.length)throw Error(r(93));m=m[0]}f=m}f==null&&(f=""),l=f}f=ho(l),i.defaultValue=f,m=i.textContent,m===f&&m!==""&&m!==null&&(i.value=m)}function xc(i,l){if(l){var f=i.firstChild;if(f&&f===i.lastChild&&f.nodeType===3){f.nodeValue=l;return}}i.textContent=l}var w8=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 E_(i,l,f){var m=l.indexOf("--")===0;f==null||typeof f=="boolean"||f===""?m?i.setProperty(l,""):l==="float"?i.cssFloat="":i[l]="":m?i.setProperty(l,f):typeof f!="number"||f===0||w8.has(l)?l==="float"?i.cssFloat=f:i[l]=(""+f).trim():i[l]=f+"px"}function x_(i,l,f){if(l!=null&&typeof l!="object")throw Error(r(62));if(i=i.style,f!=null){for(var m in f)!f.hasOwnProperty(m)||l!=null&&l.hasOwnProperty(m)||(m.indexOf("--")===0?i.setProperty(m,""):m==="float"?i.cssFloat="":i[m]="");for(var E in l)m=l[E],l.hasOwnProperty(E)&&f[E]!==m&&E_(i,E,m)}else for(var _ in l)l.hasOwnProperty(_)&&E_(i,_,l[_])}function wb(i){if(i.indexOf("-")===-1)return!1;switch(i){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 D8=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"]]),R8=/^[\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 Qh(i){return R8.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}var Db=null;function Rb(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Tc=null,Sc=null;function T_(i){var l=rn(i);if(l&&(i=l.stateNode)){var f=i[we]||null;e:switch(i=l.stateNode,l.type){case"input":if(Ab(i,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name),l=f.name,f.type==="radio"&&l!=null){for(f=i;f.parentNode;)f=f.parentNode;for(f=f.querySelectorAll('input[name="'+Zo(""+l)+'"][type="radio"]'),l=0;l<f.length;l++){var m=f[l];if(m!==i&&m.form===i.form){var E=m[we]||null;if(!E)throw Error(r(90));Ab(m,E.value,E.defaultValue,E.defaultValue,E.checked,E.defaultChecked,E.type,E.name)}}for(l=0;l<f.length;l++)m=f[l],m.form===i.form&&g_(m)}break e;case"textarea":b_(i,f.value,f.defaultValue);break e;case"select":l=f.value,l!=null&&Ec(i,!!f.multiple,l,!1)}}}var Ib=!1;function S_(i,l,f){if(Ib)return i(l,f);Ib=!0;try{var m=i(l);return m}finally{if(Ib=!1,(Tc!==null||Sc!==null)&&(Lm(),Tc&&(l=Tc,i=Sc,Sc=Tc=null,T_(l),i)))for(l=0;l<i.length;l++)T_(i[l])}}function wd(i,l){var f=i.stateNode;if(f===null)return null;var m=f[we]||null;if(m===null)return null;f=m[l];e:switch(l){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)||(i=i.type,m=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!m;break e;default:i=!1}if(i)return null;if(f&&typeof f!="function")throw Error(r(231,l,typeof f));return f}var Ci=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ob=!1;if(Ci)try{var Dd={};Object.defineProperty(Dd,"passive",{get:function(){Ob=!0}}),window.addEventListener("test",Dd,Dd),window.removeEventListener("test",Dd,Dd)}catch{Ob=!1}var ds=null,Nb=null,Xh=null;function C_(){if(Xh)return Xh;var i,l=Nb,f=l.length,m,E="value"in ds?ds.value:ds.textContent,_=E.length;for(i=0;i<f&&l[i]===E[i];i++);var L=f-i;for(m=1;m<=L&&l[f-m]===E[_-m];m++);return Xh=E.slice(i,1<m?1-m:void 0)}function Zh(i){var l=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&l===13&&(i=13)):i=l,i===10&&(i=13),32<=i||i===13?i:0}function Jh(){return!0}function __(){return!1}function mo(i){function l(f,m,E,_,L){this._reactName=f,this._targetInst=E,this.type=m,this.nativeEvent=_,this.target=L,this.currentTarget=null;for(var U in i)i.hasOwnProperty(U)&&(f=i[U],this[U]=f?f(_):_[U]);return this.isDefaultPrevented=(_.defaultPrevented!=null?_.defaultPrevented:_.returnValue===!1)?Jh:__,this.isPropagationStopped=__,this}return p(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var f=this.nativeEvent;f&&(f.preventDefault?f.preventDefault():typeof f.returnValue!="unknown"&&(f.returnValue=!1),this.isDefaultPrevented=Jh)},stopPropagation:function(){var f=this.nativeEvent;f&&(f.stopPropagation?f.stopPropagation():typeof f.cancelBubble!="unknown"&&(f.cancelBubble=!0),this.isPropagationStopped=Jh)},persist:function(){},isPersistent:Jh}),l}var ll={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},em=mo(ll),Rd=p({},ll,{view:0,detail:0}),I8=mo(Rd),Pb,Lb,Id,tm=p({},Rd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fb,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==Id&&(Id&&i.type==="mousemove"?(Pb=i.screenX-Id.screenX,Lb=i.screenY-Id.screenY):Lb=Pb=0,Id=i),Pb)},movementY:function(i){return"movementY"in i?i.movementY:Lb}}),A_=mo(tm),O8=p({},tm,{dataTransfer:0}),N8=mo(O8),P8=p({},Rd,{relatedTarget:0}),Mb=mo(P8),L8=p({},ll,{animationName:0,elapsedTime:0,pseudoElement:0}),M8=mo(L8),F8=p({},ll,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),B8=mo(F8),j8=p({},ll,{data:0}),k_=mo(j8),U8={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},H8={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"},z8={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function $8(i){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(i):(i=z8[i])?!!l[i]:!1}function Fb(){return $8}var V8=p({},Rd,{key:function(i){if(i.key){var l=U8[i.key]||i.key;if(l!=="Unidentified")return l}return i.type==="keypress"?(i=Zh(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?H8[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fb,charCode:function(i){return i.type==="keypress"?Zh(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Zh(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),G8=mo(V8),q8=p({},tm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),w_=mo(q8),W8=p({},Rd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fb}),Y8=mo(W8),K8=p({},ll,{propertyName:0,elapsedTime:0,pseudoElement:0}),Q8=mo(K8),X8=p({},tm,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),Z8=mo(X8),J8=p({},ll,{newState:0,oldState:0}),e7=mo(J8),t7=[9,13,27,32],Bb=Ci&&"CompositionEvent"in window,Od=null;Ci&&"documentMode"in document&&(Od=document.documentMode);var n7=Ci&&"TextEvent"in window&&!Od,D_=Ci&&(!Bb||Od&&8<Od&&11>=Od),R_=" ",I_=!1;function O_(i,l){switch(i){case"keyup":return t7.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function N_(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Cc=!1;function r7(i,l){switch(i){case"compositionend":return N_(l);case"keypress":return l.which!==32?null:(I_=!0,R_);case"textInput":return i=l.data,i===R_&&I_?null:i;default:return null}}function o7(i,l){if(Cc)return i==="compositionend"||!Bb&&O_(i,l)?(i=C_(),Xh=Nb=ds=null,Cc=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return D_&&l.locale!=="ko"?null:l.data;default:return null}}var a7={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 P_(i){var l=i&&i.nodeName&&i.nodeName.toLowerCase();return l==="input"?!!a7[i.type]:l==="textarea"}function L_(i,l,f,m){Tc?Sc?Sc.push(m):Sc=[m]:Tc=m,l=Hm(l,"onChange"),0<l.length&&(f=new em("onChange","change",null,f,m),i.push({event:f,listeners:l}))}var Nd=null,Pd=null;function i7(i){mk(i,0)}function nm(i){var l=Nn(i);if(g_(l))return i}function M_(i,l){if(i==="change")return l}var F_=!1;if(Ci){var jb;if(Ci){var Ub="oninput"in document;if(!Ub){var B_=document.createElement("div");B_.setAttribute("oninput","return;"),Ub=typeof B_.oninput=="function"}jb=Ub}else jb=!1;F_=jb&&(!document.documentMode||9<document.documentMode)}function j_(){Nd&&(Nd.detachEvent("onpropertychange",U_),Pd=Nd=null)}function U_(i){if(i.propertyName==="value"&&nm(Pd)){var l=[];L_(l,Pd,i,Rb(i)),S_(i7,l)}}function s7(i,l,f){i==="focusin"?(j_(),Nd=l,Pd=f,Nd.attachEvent("onpropertychange",U_)):i==="focusout"&&j_()}function l7(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return nm(Pd)}function c7(i,l){if(i==="click")return nm(l)}function u7(i,l){if(i==="input"||i==="change")return nm(l)}function d7(i,l){return i===l&&(i!==0||1/i===1/l)||i!==i&&l!==l}var Ro=typeof Object.is=="function"?Object.is:d7;function Ld(i,l){if(Ro(i,l))return!0;if(typeof i!="object"||i===null||typeof l!="object"||l===null)return!1;var f=Object.keys(i),m=Object.keys(l);if(f.length!==m.length)return!1;for(m=0;m<f.length;m++){var E=f[m];if(!Qe.call(l,E)||!Ro(i[E],l[E]))return!1}return!0}function H_(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function z_(i,l){var f=H_(i);i=0;for(var m;f;){if(f.nodeType===3){if(m=i+f.textContent.length,i<=l&&m>=l)return{node:f,offset:l-i};i=m}e:{for(;f;){if(f.nextSibling){f=f.nextSibling;break e}f=f.parentNode}f=void 0}f=H_(f)}}function $_(i,l){return i&&l?i===l?!0:i&&i.nodeType===3?!1:l&&l.nodeType===3?$_(i,l.parentNode):"contains"in i?i.contains(l):i.compareDocumentPosition?!!(i.compareDocumentPosition(l)&16):!1:!1}function V_(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var l=Kh(i.document);l instanceof i.HTMLIFrameElement;){try{var f=typeof l.contentWindow.location.href=="string"}catch{f=!1}if(f)i=l.contentWindow;else break;l=Kh(i.document)}return l}function Hb(i){var l=i&&i.nodeName&&i.nodeName.toLowerCase();return l&&(l==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||l==="textarea"||i.contentEditable==="true")}var f7=Ci&&"documentMode"in document&&11>=document.documentMode,_c=null,zb=null,Md=null,$b=!1;function G_(i,l,f){var m=f.window===f?f.document:f.nodeType===9?f:f.ownerDocument;$b||_c==null||_c!==Kh(m)||(m=_c,"selectionStart"in m&&Hb(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}),Md&&Ld(Md,m)||(Md=m,m=Hm(zb,"onSelect"),0<m.length&&(l=new em("onSelect","select",null,l,f),i.push({event:l,listeners:m}),l.target=_c)))}function cl(i,l){var f={};return f[i.toLowerCase()]=l.toLowerCase(),f["Webkit"+i]="webkit"+l,f["Moz"+i]="moz"+l,f}var Ac={animationend:cl("Animation","AnimationEnd"),animationiteration:cl("Animation","AnimationIteration"),animationstart:cl("Animation","AnimationStart"),transitionrun:cl("Transition","TransitionRun"),transitionstart:cl("Transition","TransitionStart"),transitioncancel:cl("Transition","TransitionCancel"),transitionend:cl("Transition","TransitionEnd")},Vb={},q_={};Ci&&(q_=document.createElement("div").style,"AnimationEvent"in window||(delete Ac.animationend.animation,delete Ac.animationiteration.animation,delete Ac.animationstart.animation),"TransitionEvent"in window||delete Ac.transitionend.transition);function ul(i){if(Vb[i])return Vb[i];if(!Ac[i])return i;var l=Ac[i],f;for(f in l)if(l.hasOwnProperty(f)&&f in q_)return Vb[i]=l[f];return i}var W_=ul("animationend"),Y_=ul("animationiteration"),K_=ul("animationstart"),p7=ul("transitionrun"),h7=ul("transitionstart"),m7=ul("transitioncancel"),Q_=ul("transitionend"),X_=new Map,Gb="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(" ");Gb.push("scrollEnd");function Ra(i,l){X_.set(i,l),no(l,[i])}var Z_=new WeakMap;function Jo(i,l){if(typeof i=="object"&&i!==null){var f=Z_.get(i);return f!==void 0?f:(l={value:i,source:l,stack:kd(l)},Z_.set(i,l),l)}return{value:i,source:l,stack:kd(l)}}var ea=[],kc=0,qb=0;function rm(){for(var i=kc,l=qb=kc=0;l<i;){var f=ea[l];ea[l++]=null;var m=ea[l];ea[l++]=null;var E=ea[l];ea[l++]=null;var _=ea[l];if(ea[l++]=null,m!==null&&E!==null){var L=m.pending;L===null?E.next=E:(E.next=L.next,L.next=E),m.pending=E}_!==0&&J_(f,E,_)}}function om(i,l,f,m){ea[kc++]=i,ea[kc++]=l,ea[kc++]=f,ea[kc++]=m,qb|=m,i.lanes|=m,i=i.alternate,i!==null&&(i.lanes|=m)}function Wb(i,l,f,m){return om(i,l,f,m),am(i)}function wc(i,l){return om(i,null,null,l),am(i)}function J_(i,l,f){i.lanes|=f;var m=i.alternate;m!==null&&(m.lanes|=f);for(var E=!1,_=i.return;_!==null;)_.childLanes|=f,m=_.alternate,m!==null&&(m.childLanes|=f),_.tag===22&&(i=_.stateNode,i===null||i._visibility&1||(E=!0)),i=_,_=_.return;return i.tag===3?(_=i.stateNode,E&&l!==null&&(E=31-Xe(f),i=_.hiddenUpdates,m=i[E],m===null?i[E]=[l]:m.push(l),l.lane=f|536870912),_):null}function am(i){if(50<lf)throw lf=0,Jv=null,Error(r(185));for(var l=i.return;l!==null;)i=l,l=i.return;return i.tag===3?i.stateNode:null}var Dc={};function g7(i,l,f,m){this.tag=i,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=l,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 Io(i,l,f,m){return new g7(i,l,f,m)}function Yb(i){return i=i.prototype,!(!i||!i.isReactComponent)}function _i(i,l){var f=i.alternate;return f===null?(f=Io(i.tag,l,i.key,i.mode),f.elementType=i.elementType,f.type=i.type,f.stateNode=i.stateNode,f.alternate=i,i.alternate=f):(f.pendingProps=l,f.type=i.type,f.flags=0,f.subtreeFlags=0,f.deletions=null),f.flags=i.flags&65011712,f.childLanes=i.childLanes,f.lanes=i.lanes,f.child=i.child,f.memoizedProps=i.memoizedProps,f.memoizedState=i.memoizedState,f.updateQueue=i.updateQueue,l=i.dependencies,f.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},f.sibling=i.sibling,f.index=i.index,f.ref=i.ref,f.refCleanup=i.refCleanup,f}function eA(i,l){i.flags&=65011714;var f=i.alternate;return f===null?(i.childLanes=0,i.lanes=l,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=f.childLanes,i.lanes=f.lanes,i.child=f.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=f.memoizedProps,i.memoizedState=f.memoizedState,i.updateQueue=f.updateQueue,i.type=f.type,l=f.dependencies,i.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),i}function im(i,l,f,m,E,_){var L=0;if(m=i,typeof i=="function")Yb(i)&&(L=1);else if(typeof i=="string")L=bF(i,f,ee.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case H:return i=Io(31,f,l,E),i.elementType=H,i.lanes=_,i;case b:return dl(f.children,E,_,l);case x:L=8,E|=24;break;case S:return i=Io(12,f,l,E|2),i.elementType=S,i.lanes=_,i;case I:return i=Io(13,f,l,E),i.elementType=I,i.lanes=_,i;case O:return i=Io(19,f,l,E),i.elementType=O,i.lanes=_,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case T:case w:L=10;break e;case D:L=9;break e;case R:L=11;break e;case F:L=14;break e;case j:L=16,m=null;break e}L=29,f=Error(r(130,i===null?"null":typeof i,"")),m=null}return l=Io(L,f,l,E),l.elementType=i,l.type=m,l.lanes=_,l}function dl(i,l,f,m){return i=Io(7,i,m,l),i.lanes=f,i}function Kb(i,l,f){return i=Io(6,i,null,l),i.lanes=f,i}function Qb(i,l,f){return l=Io(4,i.children!==null?i.children:[],i.key,l),l.lanes=f,l.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},l}var Rc=[],Ic=0,sm=null,lm=0,ta=[],na=0,fl=null,Ai=1,ki="";function pl(i,l){Rc[Ic++]=lm,Rc[Ic++]=sm,sm=i,lm=l}function tA(i,l,f){ta[na++]=Ai,ta[na++]=ki,ta[na++]=fl,fl=i;var m=Ai;i=ki;var E=32-Xe(m)-1;m&=~(1<<E),f+=1;var _=32-Xe(l)+E;if(30<_){var L=E-E%5;_=(m&(1<<L)-1).toString(32),m>>=L,E-=L,Ai=1<<32-Xe(l)+E|f<<E|m,ki=_+i}else Ai=1<<_|f<<E|m,ki=i}function Xb(i){i.return!==null&&(pl(i,1),tA(i,1,0))}function Zb(i){for(;i===sm;)sm=Rc[--Ic],Rc[Ic]=null,lm=Rc[--Ic],Rc[Ic]=null;for(;i===fl;)fl=ta[--na],ta[na]=null,ki=ta[--na],ta[na]=null,Ai=ta[--na],ta[na]=null}var ro=null,Gn=null,sn=!1,hl=null,Wa=!1,Jb=Error(r(519));function ml(i){var l=Error(r(418,""));throw jd(Jo(l,i)),Jb}function nA(i){var l=i.stateNode,f=i.type,m=i.memoizedProps;switch(l[ve]=i,l[we]=m,f){case"dialog":Wt("cancel",l),Wt("close",l);break;case"iframe":case"object":case"embed":Wt("load",l);break;case"video":case"audio":for(f=0;f<uf.length;f++)Wt(uf[f],l);break;case"source":Wt("error",l);break;case"img":case"image":case"link":Wt("error",l),Wt("load",l);break;case"details":Wt("toggle",l);break;case"input":Wt("invalid",l),y_(l,m.value,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name,!0),Yh(l);break;case"select":Wt("invalid",l);break;case"textarea":Wt("invalid",l),v_(l,m.value,m.defaultValue,m.children),Yh(l)}f=m.children,typeof f!="string"&&typeof f!="number"&&typeof f!="bigint"||l.textContent===""+f||m.suppressHydrationWarning===!0||vk(l.textContent,f)?(m.popover!=null&&(Wt("beforetoggle",l),Wt("toggle",l)),m.onScroll!=null&&Wt("scroll",l),m.onScrollEnd!=null&&Wt("scrollend",l),m.onClick!=null&&(l.onclick=zm),l=!0):l=!1,l||ml(i)}function rA(i){for(ro=i.return;ro;)switch(ro.tag){case 5:case 13:Wa=!1;return;case 27:case 3:Wa=!0;return;default:ro=ro.return}}function Fd(i){if(i!==ro)return!1;if(!sn)return rA(i),sn=!0,!1;var l=i.tag,f;if((f=l!==3&&l!==27)&&((f=l===5)&&(f=i.type,f=!(f!=="form"&&f!=="button")||m1(i.type,i.memoizedProps)),f=!f),f&&Gn&&ml(i),rA(i),l===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));e:{for(i=i.nextSibling,l=0;i;){if(i.nodeType===8)if(f=i.data,f==="/$"){if(l===0){Gn=Oa(i.nextSibling);break e}l--}else f!=="$"&&f!=="$!"&&f!=="$?"||l++;i=i.nextSibling}Gn=null}}else l===27?(l=Gn,ks(i.type)?(i=v1,v1=null,Gn=i):Gn=l):Gn=ro?Oa(i.stateNode.nextSibling):null;return!0}function Bd(){Gn=ro=null,sn=!1}function oA(){var i=hl;return i!==null&&(bo===null?bo=i:bo.push.apply(bo,i),hl=null),i}function jd(i){hl===null?hl=[i]:hl.push(i)}var ev=oe(null),gl=null,wi=null;function fs(i,l,f){P(ev,l._currentValue),l._currentValue=f}function Di(i){i._currentValue=ev.current,K(ev)}function tv(i,l,f){for(;i!==null;){var m=i.alternate;if((i.childLanes&l)!==l?(i.childLanes|=l,m!==null&&(m.childLanes|=l)):m!==null&&(m.childLanes&l)!==l&&(m.childLanes|=l),i===f)break;i=i.return}}function nv(i,l,f,m){var E=i.child;for(E!==null&&(E.return=i);E!==null;){var _=E.dependencies;if(_!==null){var L=E.child;_=_.firstContext;e:for(;_!==null;){var U=_;_=E;for(var Z=0;Z<l.length;Z++)if(U.context===l[Z]){_.lanes|=f,U=_.alternate,U!==null&&(U.lanes|=f),tv(_.return,f,i),m||(L=null);break e}_=U.next}}else if(E.tag===18){if(L=E.return,L===null)throw Error(r(341));L.lanes|=f,_=L.alternate,_!==null&&(_.lanes|=f),tv(L,f,i),L=null}else L=E.child;if(L!==null)L.return=E;else for(L=E;L!==null;){if(L===i){L=null;break}if(E=L.sibling,E!==null){E.return=L.return,L=E;break}L=L.return}E=L}}function Ud(i,l,f,m){i=null;for(var E=l,_=!1;E!==null;){if(!_){if((E.flags&524288)!==0)_=!0;else if((E.flags&262144)!==0)break}if(E.tag===10){var L=E.alternate;if(L===null)throw Error(r(387));if(L=L.memoizedProps,L!==null){var U=E.type;Ro(E.pendingProps.value,L.value)||(i!==null?i.push(U):i=[U])}}else if(E===be.current){if(L=E.alternate,L===null)throw Error(r(387));L.memoizedState.memoizedState!==E.memoizedState.memoizedState&&(i!==null?i.push(gf):i=[gf])}E=E.return}i!==null&&nv(l,i,f,m),l.flags|=262144}function cm(i){for(i=i.firstContext;i!==null;){if(!Ro(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function yl(i){gl=i,wi=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function qr(i){return aA(gl,i)}function um(i,l){return gl===null&&yl(i),aA(i,l)}function aA(i,l){var f=l._currentValue;if(l={context:l,memoizedValue:f,next:null},wi===null){if(i===null)throw Error(r(308));wi=l,i.dependencies={lanes:0,firstContext:l},i.flags|=524288}else wi=wi.next=l;return f}var y7=typeof AbortController<"u"?AbortController:function(){var i=[],l=this.signal={aborted:!1,addEventListener:function(f,m){i.push(m)}};this.abort=function(){l.aborted=!0,i.forEach(function(f){return f()})}},b7=e.unstable_scheduleCallback,v7=e.unstable_NormalPriority,xr={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function rv(){return{controller:new y7,data:new Map,refCount:0}}function Hd(i){i.refCount--,i.refCount===0&&b7(v7,function(){i.controller.abort()})}var zd=null,ov=0,Oc=0,Nc=null;function E7(i,l){if(zd===null){var f=zd=[];ov=0,Oc=i1(),Nc={status:"pending",value:void 0,then:function(m){f.push(m)}}}return ov++,l.then(iA,iA),l}function iA(){if(--ov===0&&zd!==null){Nc!==null&&(Nc.status="fulfilled");var i=zd;zd=null,Oc=0,Nc=null;for(var l=0;l<i.length;l++)(0,i[l])()}}function x7(i,l){var f=[],m={status:"pending",value:null,reason:null,then:function(E){f.push(E)}};return i.then(function(){m.status="fulfilled",m.value=l;for(var E=0;E<f.length;E++)(0,f[E])(l)},function(E){for(m.status="rejected",m.reason=E,E=0;E<f.length;E++)(0,f[E])(void 0)}),m}var sA=B.S;B.S=function(i,l){typeof l=="object"&&l!==null&&typeof l.then=="function"&&E7(i,l),sA!==null&&sA(i,l)};var bl=oe(null);function av(){var i=bl.current;return i!==null?i:Rn.pooledCache}function dm(i,l){l===null?P(bl,bl.current):P(bl,l.pool)}function lA(){var i=av();return i===null?null:{parent:xr._currentValue,pool:i}}var $d=Error(r(460)),cA=Error(r(474)),fm=Error(r(542)),iv={then:function(){}};function uA(i){return i=i.status,i==="fulfilled"||i==="rejected"}function pm(){}function dA(i,l,f){switch(f=i[f],f===void 0?i.push(l):f!==l&&(l.then(pm,pm),l=f),l.status){case"fulfilled":return l.value;case"rejected":throw i=l.reason,pA(i),i;default:if(typeof l.status=="string")l.then(pm,pm);else{if(i=Rn,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=l,i.status="pending",i.then(function(m){if(l.status==="pending"){var E=l;E.status="fulfilled",E.value=m}},function(m){if(l.status==="pending"){var E=l;E.status="rejected",E.reason=m}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw i=l.reason,pA(i),i}throw Vd=l,$d}}var Vd=null;function fA(){if(Vd===null)throw Error(r(459));var i=Vd;return Vd=null,i}function pA(i){if(i===$d||i===fm)throw Error(r(483))}var ps=!1;function sv(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function lv(i,l){i=i.updateQueue,l.updateQueue===i&&(l.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function hs(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function ms(i,l,f){var m=i.updateQueue;if(m===null)return null;if(m=m.shared,(pn&2)!==0){var E=m.pending;return E===null?l.next=l:(l.next=E.next,E.next=l),m.pending=l,l=am(i),J_(i,null,f),l}return om(i,m,l,f),am(i)}function Gd(i,l,f){if(l=l.updateQueue,l!==null&&(l=l.shared,(f&4194048)!==0)){var m=l.lanes;m&=i.pendingLanes,f|=m,l.lanes=f,Tn(i,f)}}function cv(i,l){var f=i.updateQueue,m=i.alternate;if(m!==null&&(m=m.updateQueue,f===m)){var E=null,_=null;if(f=f.firstBaseUpdate,f!==null){do{var L={lane:f.lane,tag:f.tag,payload:f.payload,callback:null,next:null};_===null?E=_=L:_=_.next=L,f=f.next}while(f!==null);_===null?E=_=l:_=_.next=l}else E=_=l;f={baseState:m.baseState,firstBaseUpdate:E,lastBaseUpdate:_,shared:m.shared,callbacks:m.callbacks},i.updateQueue=f;return}i=f.lastBaseUpdate,i===null?f.firstBaseUpdate=l:i.next=l,f.lastBaseUpdate=l}var uv=!1;function qd(){if(uv){var i=Nc;if(i!==null)throw i}}function Wd(i,l,f,m){uv=!1;var E=i.updateQueue;ps=!1;var _=E.firstBaseUpdate,L=E.lastBaseUpdate,U=E.shared.pending;if(U!==null){E.shared.pending=null;var Z=U,pe=Z.next;Z.next=null,L===null?_=pe:L.next=pe,L=Z;var Ae=i.alternate;Ae!==null&&(Ae=Ae.updateQueue,U=Ae.lastBaseUpdate,U!==L&&(U===null?Ae.firstBaseUpdate=pe:U.next=pe,Ae.lastBaseUpdate=Z))}if(_!==null){var Ie=E.baseState;L=0,Ae=pe=Z=null,U=_;do{var he=U.lane&-536870913,me=he!==U.lane;if(me?(tn&he)===he:(m&he)===he){he!==0&&he===Oc&&(uv=!0),Ae!==null&&(Ae=Ae.next={lane:0,tag:U.tag,payload:U.payload,callback:null,next:null});e:{var wt=i,xt=U;he=l;var bn=f;switch(xt.tag){case 1:if(wt=xt.payload,typeof wt=="function"){Ie=wt.call(bn,Ie,he);break e}Ie=wt;break e;case 3:wt.flags=wt.flags&-65537|128;case 0:if(wt=xt.payload,he=typeof wt=="function"?wt.call(bn,Ie,he):wt,he==null)break e;Ie=p({},Ie,he);break e;case 2:ps=!0}}he=U.callback,he!==null&&(i.flags|=64,me&&(i.flags|=8192),me=E.callbacks,me===null?E.callbacks=[he]:me.push(he))}else me={lane:he,tag:U.tag,payload:U.payload,callback:U.callback,next:null},Ae===null?(pe=Ae=me,Z=Ie):Ae=Ae.next=me,L|=he;if(U=U.next,U===null){if(U=E.shared.pending,U===null)break;me=U,U=me.next,me.next=null,E.lastBaseUpdate=me,E.shared.pending=null}}while(!0);Ae===null&&(Z=Ie),E.baseState=Z,E.firstBaseUpdate=pe,E.lastBaseUpdate=Ae,_===null&&(E.shared.lanes=0),Ss|=L,i.lanes=L,i.memoizedState=Ie}}function hA(i,l){if(typeof i!="function")throw Error(r(191,i));i.call(l)}function mA(i,l){var f=i.callbacks;if(f!==null)for(i.callbacks=null,i=0;i<f.length;i++)hA(f[i],l)}var Pc=oe(null),hm=oe(0);function gA(i,l){i=Mi,P(hm,i),P(Pc,l),Mi=i|l.baseLanes}function dv(){P(hm,Mi),P(Pc,Pc.current)}function fv(){Mi=hm.current,K(Pc),K(hm)}var gs=0,Ut=null,gn=null,cr=null,mm=!1,Lc=!1,vl=!1,gm=0,Yd=0,Mc=null,T7=0;function er(){throw Error(r(321))}function pv(i,l){if(l===null)return!1;for(var f=0;f<l.length&&f<i.length;f++)if(!Ro(i[f],l[f]))return!1;return!0}function hv(i,l,f,m,E,_){return gs=_,Ut=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,B.H=i===null||i.memoizedState===null?JA:e2,vl=!1,_=f(m,E),vl=!1,Lc&&(_=bA(l,f,m,E)),yA(i),_}function yA(i){B.H=Tm;var l=gn!==null&&gn.next!==null;if(gs=0,cr=gn=Ut=null,mm=!1,Yd=0,Mc=null,l)throw Error(r(300));i===null||wr||(i=i.dependencies,i!==null&&cm(i)&&(wr=!0))}function bA(i,l,f,m){Ut=i;var E=0;do{if(Lc&&(Mc=null),Yd=0,Lc=!1,25<=E)throw Error(r(301));if(E+=1,cr=gn=null,i.updateQueue!=null){var _=i.updateQueue;_.lastEffect=null,_.events=null,_.stores=null,_.memoCache!=null&&(_.memoCache.index=0)}B.H=D7,_=l(f,m)}while(Lc);return _}function S7(){var i=B.H,l=i.useState()[0];return l=typeof l.then=="function"?Kd(l):l,i=i.useState()[0],(gn!==null?gn.memoizedState:null)!==i&&(Ut.flags|=1024),l}function mv(){var i=gm!==0;return gm=0,i}function gv(i,l,f){l.updateQueue=i.updateQueue,l.flags&=-2053,i.lanes&=~f}function yv(i){if(mm){for(i=i.memoizedState;i!==null;){var l=i.queue;l!==null&&(l.pending=null),i=i.next}mm=!1}gs=0,cr=gn=Ut=null,Lc=!1,Yd=gm=0,Mc=null}function go(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return cr===null?Ut.memoizedState=cr=i:cr=cr.next=i,cr}function ur(){if(gn===null){var i=Ut.alternate;i=i!==null?i.memoizedState:null}else i=gn.next;var l=cr===null?Ut.memoizedState:cr.next;if(l!==null)cr=l,gn=i;else{if(i===null)throw Ut.alternate===null?Error(r(467)):Error(r(310));gn=i,i={memoizedState:gn.memoizedState,baseState:gn.baseState,baseQueue:gn.baseQueue,queue:gn.queue,next:null},cr===null?Ut.memoizedState=cr=i:cr=cr.next=i}return cr}function bv(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Kd(i){var l=Yd;return Yd+=1,Mc===null&&(Mc=[]),i=dA(Mc,i,l),l=Ut,(cr===null?l.memoizedState:cr.next)===null&&(l=l.alternate,B.H=l===null||l.memoizedState===null?JA:e2),i}function ym(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return Kd(i);if(i.$$typeof===w)return qr(i)}throw Error(r(438,String(i)))}function vv(i){var l=null,f=Ut.updateQueue;if(f!==null&&(l=f.memoCache),l==null){var m=Ut.alternate;m!==null&&(m=m.updateQueue,m!==null&&(m=m.memoCache,m!=null&&(l={data:m.data.map(function(E){return E.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),f===null&&(f=bv(),Ut.updateQueue=f),f.memoCache=l,f=l.data[l.index],f===void 0)for(f=l.data[l.index]=Array(i),m=0;m<i;m++)f[m]=C;return l.index++,f}function Ri(i,l){return typeof l=="function"?l(i):l}function bm(i){var l=ur();return Ev(l,gn,i)}function Ev(i,l,f){var m=i.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=f;var E=i.baseQueue,_=m.pending;if(_!==null){if(E!==null){var L=E.next;E.next=_.next,_.next=L}l.baseQueue=E=_,m.pending=null}if(_=i.baseState,E===null)i.memoizedState=_;else{l=E.next;var U=L=null,Z=null,pe=l,Ae=!1;do{var Ie=pe.lane&-536870913;if(Ie!==pe.lane?(tn&Ie)===Ie:(gs&Ie)===Ie){var he=pe.revertLane;if(he===0)Z!==null&&(Z=Z.next={lane:0,revertLane:0,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null}),Ie===Oc&&(Ae=!0);else if((gs&he)===he){pe=pe.next,he===Oc&&(Ae=!0);continue}else Ie={lane:0,revertLane:pe.revertLane,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null},Z===null?(U=Z=Ie,L=_):Z=Z.next=Ie,Ut.lanes|=he,Ss|=he;Ie=pe.action,vl&&f(_,Ie),_=pe.hasEagerState?pe.eagerState:f(_,Ie)}else he={lane:Ie,revertLane:pe.revertLane,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null},Z===null?(U=Z=he,L=_):Z=Z.next=he,Ut.lanes|=Ie,Ss|=Ie;pe=pe.next}while(pe!==null&&pe!==l);if(Z===null?L=_:Z.next=U,!Ro(_,i.memoizedState)&&(wr=!0,Ae&&(f=Nc,f!==null)))throw f;i.memoizedState=_,i.baseState=L,i.baseQueue=Z,m.lastRenderedState=_}return E===null&&(m.lanes=0),[i.memoizedState,m.dispatch]}function xv(i){var l=ur(),f=l.queue;if(f===null)throw Error(r(311));f.lastRenderedReducer=i;var m=f.dispatch,E=f.pending,_=l.memoizedState;if(E!==null){f.pending=null;var L=E=E.next;do _=i(_,L.action),L=L.next;while(L!==E);Ro(_,l.memoizedState)||(wr=!0),l.memoizedState=_,l.baseQueue===null&&(l.baseState=_),f.lastRenderedState=_}return[_,m]}function vA(i,l,f){var m=Ut,E=ur(),_=sn;if(_){if(f===void 0)throw Error(r(407));f=f()}else f=l();var L=!Ro((gn||E).memoizedState,f);L&&(E.memoizedState=f,wr=!0),E=E.queue;var U=TA.bind(null,m,E,i);if(Qd(2048,8,U,[i]),E.getSnapshot!==l||L||cr!==null&&cr.memoizedState.tag&1){if(m.flags|=2048,Fc(9,vm(),xA.bind(null,m,E,f,l),null),Rn===null)throw Error(r(349));_||(gs&124)!==0||EA(m,l,f)}return f}function EA(i,l,f){i.flags|=16384,i={getSnapshot:l,value:f},l=Ut.updateQueue,l===null?(l=bv(),Ut.updateQueue=l,l.stores=[i]):(f=l.stores,f===null?l.stores=[i]:f.push(i))}function xA(i,l,f,m){l.value=f,l.getSnapshot=m,SA(l)&&CA(i)}function TA(i,l,f){return f(function(){SA(l)&&CA(i)})}function SA(i){var l=i.getSnapshot;i=i.value;try{var f=l();return!Ro(i,f)}catch{return!0}}function CA(i){var l=wc(i,2);l!==null&&Mo(l,i,2)}function Tv(i){var l=go();if(typeof i=="function"){var f=i;if(i=f(),vl){ze(!0);try{f()}finally{ze(!1)}}}return l.memoizedState=l.baseState=i,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ri,lastRenderedState:i},l}function _A(i,l,f,m){return i.baseState=f,Ev(i,gn,typeof m=="function"?m:Ri)}function C7(i,l,f,m,E){if(xm(i))throw Error(r(485));if(i=l.action,i!==null){var _={payload:E,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(L){_.listeners.push(L)}};B.T!==null?f(!0):_.isTransition=!1,m(_),f=l.pending,f===null?(_.next=l.pending=_,AA(l,_)):(_.next=f.next,l.pending=f.next=_)}}function AA(i,l){var f=l.action,m=l.payload,E=i.state;if(l.isTransition){var _=B.T,L={};B.T=L;try{var U=f(E,m),Z=B.S;Z!==null&&Z(L,U),kA(i,l,U)}catch(pe){Sv(i,l,pe)}finally{B.T=_}}else try{_=f(E,m),kA(i,l,_)}catch(pe){Sv(i,l,pe)}}function kA(i,l,f){f!==null&&typeof f=="object"&&typeof f.then=="function"?f.then(function(m){wA(i,l,m)},function(m){return Sv(i,l,m)}):wA(i,l,f)}function wA(i,l,f){l.status="fulfilled",l.value=f,DA(l),i.state=f,l=i.pending,l!==null&&(f=l.next,f===l?i.pending=null:(f=f.next,l.next=f,AA(i,f)))}function Sv(i,l,f){var m=i.pending;if(i.pending=null,m!==null){m=m.next;do l.status="rejected",l.reason=f,DA(l),l=l.next;while(l!==m)}i.action=null}function DA(i){i=i.listeners;for(var l=0;l<i.length;l++)(0,i[l])()}function RA(i,l){return l}function IA(i,l){if(sn){var f=Rn.formState;if(f!==null){e:{var m=Ut;if(sn){if(Gn){t:{for(var E=Gn,_=Wa;E.nodeType!==8;){if(!_){E=null;break t}if(E=Oa(E.nextSibling),E===null){E=null;break t}}_=E.data,E=_==="F!"||_==="F"?E:null}if(E){Gn=Oa(E.nextSibling),m=E.data==="F!";break e}}ml(m)}m=!1}m&&(l=f[0])}}return f=go(),f.memoizedState=f.baseState=l,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:RA,lastRenderedState:l},f.queue=m,f=QA.bind(null,Ut,m),m.dispatch=f,m=Tv(!1),_=wv.bind(null,Ut,!1,m.queue),m=go(),E={state:l,dispatch:null,action:i,pending:null},m.queue=E,f=C7.bind(null,Ut,E,_,f),E.dispatch=f,m.memoizedState=i,[l,f,!1]}function OA(i){var l=ur();return NA(l,gn,i)}function NA(i,l,f){if(l=Ev(i,l,RA)[0],i=bm(Ri)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var m=Kd(l)}catch(L){throw L===$d?fm:L}else m=l;l=ur();var E=l.queue,_=E.dispatch;return f!==l.memoizedState&&(Ut.flags|=2048,Fc(9,vm(),_7.bind(null,E,f),null)),[m,_,i]}function _7(i,l){i.action=l}function PA(i){var l=ur(),f=gn;if(f!==null)return NA(l,f,i);ur(),l=l.memoizedState,f=ur();var m=f.queue.dispatch;return f.memoizedState=i,[l,m,!1]}function Fc(i,l,f,m){return i={tag:i,create:f,deps:m,inst:l,next:null},l=Ut.updateQueue,l===null&&(l=bv(),Ut.updateQueue=l),f=l.lastEffect,f===null?l.lastEffect=i.next=i:(m=f.next,f.next=i,i.next=m,l.lastEffect=i),i}function vm(){return{destroy:void 0,resource:void 0}}function LA(){return ur().memoizedState}function Em(i,l,f,m){var E=go();m=m===void 0?null:m,Ut.flags|=i,E.memoizedState=Fc(1|l,vm(),f,m)}function Qd(i,l,f,m){var E=ur();m=m===void 0?null:m;var _=E.memoizedState.inst;gn!==null&&m!==null&&pv(m,gn.memoizedState.deps)?E.memoizedState=Fc(l,_,f,m):(Ut.flags|=i,E.memoizedState=Fc(1|l,_,f,m))}function MA(i,l){Em(8390656,8,i,l)}function FA(i,l){Qd(2048,8,i,l)}function BA(i,l){return Qd(4,2,i,l)}function jA(i,l){return Qd(4,4,i,l)}function UA(i,l){if(typeof l=="function"){i=i();var f=l(i);return function(){typeof f=="function"?f():l(null)}}if(l!=null)return i=i(),l.current=i,function(){l.current=null}}function HA(i,l,f){f=f!=null?f.concat([i]):null,Qd(4,4,UA.bind(null,l,i),f)}function Cv(){}function zA(i,l){var f=ur();l=l===void 0?null:l;var m=f.memoizedState;return l!==null&&pv(l,m[1])?m[0]:(f.memoizedState=[i,l],i)}function $A(i,l){var f=ur();l=l===void 0?null:l;var m=f.memoizedState;if(l!==null&&pv(l,m[1]))return m[0];if(m=i(),vl){ze(!0);try{i()}finally{ze(!1)}}return f.memoizedState=[m,l],m}function _v(i,l,f){return f===void 0||(gs&1073741824)!==0?i.memoizedState=l:(i.memoizedState=f,i=q2(),Ut.lanes|=i,Ss|=i,f)}function VA(i,l,f,m){return Ro(f,l)?f:Pc.current!==null?(i=_v(i,f,m),Ro(i,l)||(wr=!0),i):(gs&42)===0?(wr=!0,i.memoizedState=f):(i=q2(),Ut.lanes|=i,Ss|=i,l)}function GA(i,l,f,m,E){var _=X.p;X.p=_!==0&&8>_?_:8;var L=B.T,U={};B.T=U,wv(i,!1,l,f);try{var Z=E(),pe=B.S;if(pe!==null&&pe(U,Z),Z!==null&&typeof Z=="object"&&typeof Z.then=="function"){var Ae=x7(Z,m);Xd(i,l,Ae,Lo(i))}else Xd(i,l,m,Lo(i))}catch(Ie){Xd(i,l,{then:function(){},status:"rejected",reason:Ie},Lo())}finally{X.p=_,B.T=L}}function A7(){}function Av(i,l,f,m){if(i.tag!==5)throw Error(r(476));var E=qA(i).queue;GA(i,E,l,ae,f===null?A7:function(){return WA(i),f(m)})}function qA(i){var l=i.memoizedState;if(l!==null)return l;l={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ri,lastRenderedState:ae},next:null};var f={};return l.next={memoizedState:f,baseState:f,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ri,lastRenderedState:f},next:null},i.memoizedState=l,i=i.alternate,i!==null&&(i.memoizedState=l),l}function WA(i){var l=qA(i).next.queue;Xd(i,l,{},Lo())}function kv(){return qr(gf)}function YA(){return ur().memoizedState}function KA(){return ur().memoizedState}function k7(i){for(var l=i.return;l!==null;){switch(l.tag){case 24:case 3:var f=Lo();i=hs(f);var m=ms(l,i,f);m!==null&&(Mo(m,l,f),Gd(m,l,f)),l={cache:rv()},i.payload=l;return}l=l.return}}function w7(i,l,f){var m=Lo();f={lane:m,revertLane:0,action:f,hasEagerState:!1,eagerState:null,next:null},xm(i)?XA(l,f):(f=Wb(i,l,f,m),f!==null&&(Mo(f,i,m),ZA(f,l,m)))}function QA(i,l,f){var m=Lo();Xd(i,l,f,m)}function Xd(i,l,f,m){var E={lane:m,revertLane:0,action:f,hasEagerState:!1,eagerState:null,next:null};if(xm(i))XA(l,E);else{var _=i.alternate;if(i.lanes===0&&(_===null||_.lanes===0)&&(_=l.lastRenderedReducer,_!==null))try{var L=l.lastRenderedState,U=_(L,f);if(E.hasEagerState=!0,E.eagerState=U,Ro(U,L))return om(i,l,E,0),Rn===null&&rm(),!1}catch{}finally{}if(f=Wb(i,l,E,m),f!==null)return Mo(f,i,m),ZA(f,l,m),!0}return!1}function wv(i,l,f,m){if(m={lane:2,revertLane:i1(),action:m,hasEagerState:!1,eagerState:null,next:null},xm(i)){if(l)throw Error(r(479))}else l=Wb(i,f,m,2),l!==null&&Mo(l,i,2)}function xm(i){var l=i.alternate;return i===Ut||l!==null&&l===Ut}function XA(i,l){Lc=mm=!0;var f=i.pending;f===null?l.next=l:(l.next=f.next,f.next=l),i.pending=l}function ZA(i,l,f){if((f&4194048)!==0){var m=l.lanes;m&=i.pendingLanes,f|=m,l.lanes=f,Tn(i,f)}}var Tm={readContext:qr,use:ym,useCallback:er,useContext:er,useEffect:er,useImperativeHandle:er,useLayoutEffect:er,useInsertionEffect:er,useMemo:er,useReducer:er,useRef:er,useState:er,useDebugValue:er,useDeferredValue:er,useTransition:er,useSyncExternalStore:er,useId:er,useHostTransitionStatus:er,useFormState:er,useActionState:er,useOptimistic:er,useMemoCache:er,useCacheRefresh:er},JA={readContext:qr,use:ym,useCallback:function(i,l){return go().memoizedState=[i,l===void 0?null:l],i},useContext:qr,useEffect:MA,useImperativeHandle:function(i,l,f){f=f!=null?f.concat([i]):null,Em(4194308,4,UA.bind(null,l,i),f)},useLayoutEffect:function(i,l){return Em(4194308,4,i,l)},useInsertionEffect:function(i,l){Em(4,2,i,l)},useMemo:function(i,l){var f=go();l=l===void 0?null:l;var m=i();if(vl){ze(!0);try{i()}finally{ze(!1)}}return f.memoizedState=[m,l],m},useReducer:function(i,l,f){var m=go();if(f!==void 0){var E=f(l);if(vl){ze(!0);try{f(l)}finally{ze(!1)}}}else E=l;return m.memoizedState=m.baseState=E,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:E},m.queue=i,i=i.dispatch=w7.bind(null,Ut,i),[m.memoizedState,i]},useRef:function(i){var l=go();return i={current:i},l.memoizedState=i},useState:function(i){i=Tv(i);var l=i.queue,f=QA.bind(null,Ut,l);return l.dispatch=f,[i.memoizedState,f]},useDebugValue:Cv,useDeferredValue:function(i,l){var f=go();return _v(f,i,l)},useTransition:function(){var i=Tv(!1);return i=GA.bind(null,Ut,i.queue,!0,!1),go().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,l,f){var m=Ut,E=go();if(sn){if(f===void 0)throw Error(r(407));f=f()}else{if(f=l(),Rn===null)throw Error(r(349));(tn&124)!==0||EA(m,l,f)}E.memoizedState=f;var _={value:f,getSnapshot:l};return E.queue=_,MA(TA.bind(null,m,_,i),[i]),m.flags|=2048,Fc(9,vm(),xA.bind(null,m,_,f,l),null),f},useId:function(){var i=go(),l=Rn.identifierPrefix;if(sn){var f=ki,m=Ai;f=(m&~(1<<32-Xe(m)-1)).toString(32)+f,l="«"+l+"R"+f,f=gm++,0<f&&(l+="H"+f.toString(32)),l+="»"}else f=T7++,l="«"+l+"r"+f.toString(32)+"»";return i.memoizedState=l},useHostTransitionStatus:kv,useFormState:IA,useActionState:IA,useOptimistic:function(i){var l=go();l.memoizedState=l.baseState=i;var f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=f,l=wv.bind(null,Ut,!0,f),f.dispatch=l,[i,l]},useMemoCache:vv,useCacheRefresh:function(){return go().memoizedState=k7.bind(null,Ut)}},e2={readContext:qr,use:ym,useCallback:zA,useContext:qr,useEffect:FA,useImperativeHandle:HA,useInsertionEffect:BA,useLayoutEffect:jA,useMemo:$A,useReducer:bm,useRef:LA,useState:function(){return bm(Ri)},useDebugValue:Cv,useDeferredValue:function(i,l){var f=ur();return VA(f,gn.memoizedState,i,l)},useTransition:function(){var i=bm(Ri)[0],l=ur().memoizedState;return[typeof i=="boolean"?i:Kd(i),l]},useSyncExternalStore:vA,useId:YA,useHostTransitionStatus:kv,useFormState:OA,useActionState:OA,useOptimistic:function(i,l){var f=ur();return _A(f,gn,i,l)},useMemoCache:vv,useCacheRefresh:KA},D7={readContext:qr,use:ym,useCallback:zA,useContext:qr,useEffect:FA,useImperativeHandle:HA,useInsertionEffect:BA,useLayoutEffect:jA,useMemo:$A,useReducer:xv,useRef:LA,useState:function(){return xv(Ri)},useDebugValue:Cv,useDeferredValue:function(i,l){var f=ur();return gn===null?_v(f,i,l):VA(f,gn.memoizedState,i,l)},useTransition:function(){var i=xv(Ri)[0],l=ur().memoizedState;return[typeof i=="boolean"?i:Kd(i),l]},useSyncExternalStore:vA,useId:YA,useHostTransitionStatus:kv,useFormState:PA,useActionState:PA,useOptimistic:function(i,l){var f=ur();return gn!==null?_A(f,gn,i,l):(f.baseState=i,[i,f.queue.dispatch])},useMemoCache:vv,useCacheRefresh:KA},Bc=null,Zd=0;function Sm(i){var l=Zd;return Zd+=1,Bc===null&&(Bc=[]),dA(Bc,i,l)}function Jd(i,l){l=l.props.ref,i.ref=l!==void 0?l:null}function Cm(i,l){throw l.$$typeof===h?Error(r(525)):(i=Object.prototype.toString.call(l),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":i)))}function t2(i){var l=i._init;return l(i._payload)}function n2(i){function l(le,se){if(i){var ue=le.deletions;ue===null?(le.deletions=[se],le.flags|=16):ue.push(se)}}function f(le,se){if(!i)return null;for(;se!==null;)l(le,se),se=se.sibling;return null}function m(le){for(var se=new Map;le!==null;)le.key!==null?se.set(le.key,le):se.set(le.index,le),le=le.sibling;return se}function E(le,se){return le=_i(le,se),le.index=0,le.sibling=null,le}function _(le,se,ue){return le.index=ue,i?(ue=le.alternate,ue!==null?(ue=ue.index,ue<se?(le.flags|=67108866,se):ue):(le.flags|=67108866,se)):(le.flags|=1048576,se)}function L(le){return i&&le.alternate===null&&(le.flags|=67108866),le}function U(le,se,ue,De){return se===null||se.tag!==6?(se=Kb(ue,le.mode,De),se.return=le,se):(se=E(se,ue),se.return=le,se)}function Z(le,se,ue,De){var tt=ue.type;return tt===b?Ae(le,se,ue.props.children,De,ue.key):se!==null&&(se.elementType===tt||typeof tt=="object"&&tt!==null&&tt.$$typeof===j&&t2(tt)===se.type)?(se=E(se,ue.props),Jd(se,ue),se.return=le,se):(se=im(ue.type,ue.key,ue.props,null,le.mode,De),Jd(se,ue),se.return=le,se)}function pe(le,se,ue,De){return se===null||se.tag!==4||se.stateNode.containerInfo!==ue.containerInfo||se.stateNode.implementation!==ue.implementation?(se=Qb(ue,le.mode,De),se.return=le,se):(se=E(se,ue.children||[]),se.return=le,se)}function Ae(le,se,ue,De,tt){return se===null||se.tag!==7?(se=dl(ue,le.mode,De,tt),se.return=le,se):(se=E(se,ue),se.return=le,se)}function Ie(le,se,ue){if(typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint")return se=Kb(""+se,le.mode,ue),se.return=le,se;if(typeof se=="object"&&se!==null){switch(se.$$typeof){case g:return ue=im(se.type,se.key,se.props,null,le.mode,ue),Jd(ue,se),ue.return=le,ue;case y:return se=Qb(se,le.mode,ue),se.return=le,se;case j:var De=se._init;return se=De(se._payload),Ie(le,se,ue)}if(Y(se)||$(se))return se=dl(se,le.mode,ue,null),se.return=le,se;if(typeof se.then=="function")return Ie(le,Sm(se),ue);if(se.$$typeof===w)return Ie(le,um(le,se),ue);Cm(le,se)}return null}function he(le,se,ue,De){var tt=se!==null?se.key:null;if(typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint")return tt!==null?null:U(le,se,""+ue,De);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case g:return ue.key===tt?Z(le,se,ue,De):null;case y:return ue.key===tt?pe(le,se,ue,De):null;case j:return tt=ue._init,ue=tt(ue._payload),he(le,se,ue,De)}if(Y(ue)||$(ue))return tt!==null?null:Ae(le,se,ue,De,null);if(typeof ue.then=="function")return he(le,se,Sm(ue),De);if(ue.$$typeof===w)return he(le,se,um(le,ue),De);Cm(le,ue)}return null}function me(le,se,ue,De,tt){if(typeof De=="string"&&De!==""||typeof De=="number"||typeof De=="bigint")return le=le.get(ue)||null,U(se,le,""+De,tt);if(typeof De=="object"&&De!==null){switch(De.$$typeof){case g:return le=le.get(De.key===null?ue:De.key)||null,Z(se,le,De,tt);case y:return le=le.get(De.key===null?ue:De.key)||null,pe(se,le,De,tt);case j:var Vt=De._init;return De=Vt(De._payload),me(le,se,ue,De,tt)}if(Y(De)||$(De))return le=le.get(ue)||null,Ae(se,le,De,tt,null);if(typeof De.then=="function")return me(le,se,ue,Sm(De),tt);if(De.$$typeof===w)return me(le,se,ue,um(se,De),tt);Cm(se,De)}return null}function wt(le,se,ue,De){for(var tt=null,Vt=null,pt=se,Tt=se=0,Rr=null;pt!==null&&Tt<ue.length;Tt++){pt.index>Tt?(Rr=pt,pt=null):Rr=pt.sibling;var an=he(le,pt,ue[Tt],De);if(an===null){pt===null&&(pt=Rr);break}i&&pt&&an.alternate===null&&l(le,pt),se=_(an,se,Tt),Vt===null?tt=an:Vt.sibling=an,Vt=an,pt=Rr}if(Tt===ue.length)return f(le,pt),sn&&pl(le,Tt),tt;if(pt===null){for(;Tt<ue.length;Tt++)pt=Ie(le,ue[Tt],De),pt!==null&&(se=_(pt,se,Tt),Vt===null?tt=pt:Vt.sibling=pt,Vt=pt);return sn&&pl(le,Tt),tt}for(pt=m(pt);Tt<ue.length;Tt++)Rr=me(pt,le,Tt,ue[Tt],De),Rr!==null&&(i&&Rr.alternate!==null&&pt.delete(Rr.key===null?Tt:Rr.key),se=_(Rr,se,Tt),Vt===null?tt=Rr:Vt.sibling=Rr,Vt=Rr);return i&&pt.forEach(function(Os){return l(le,Os)}),sn&&pl(le,Tt),tt}function xt(le,se,ue,De){if(ue==null)throw Error(r(151));for(var tt=null,Vt=null,pt=se,Tt=se=0,Rr=null,an=ue.next();pt!==null&&!an.done;Tt++,an=ue.next()){pt.index>Tt?(Rr=pt,pt=null):Rr=pt.sibling;var Os=he(le,pt,an.value,De);if(Os===null){pt===null&&(pt=Rr);break}i&&pt&&Os.alternate===null&&l(le,pt),se=_(Os,se,Tt),Vt===null?tt=Os:Vt.sibling=Os,Vt=Os,pt=Rr}if(an.done)return f(le,pt),sn&&pl(le,Tt),tt;if(pt===null){for(;!an.done;Tt++,an=ue.next())an=Ie(le,an.value,De),an!==null&&(se=_(an,se,Tt),Vt===null?tt=an:Vt.sibling=an,Vt=an);return sn&&pl(le,Tt),tt}for(pt=m(pt);!an.done;Tt++,an=ue.next())an=me(pt,le,Tt,an.value,De),an!==null&&(i&&an.alternate!==null&&pt.delete(an.key===null?Tt:an.key),se=_(an,se,Tt),Vt===null?tt=an:Vt.sibling=an,Vt=an);return i&&pt.forEach(function(RF){return l(le,RF)}),sn&&pl(le,Tt),tt}function bn(le,se,ue,De){if(typeof ue=="object"&&ue!==null&&ue.type===b&&ue.key===null&&(ue=ue.props.children),typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case g:e:{for(var tt=ue.key;se!==null;){if(se.key===tt){if(tt=ue.type,tt===b){if(se.tag===7){f(le,se.sibling),De=E(se,ue.props.children),De.return=le,le=De;break e}}else if(se.elementType===tt||typeof tt=="object"&&tt!==null&&tt.$$typeof===j&&t2(tt)===se.type){f(le,se.sibling),De=E(se,ue.props),Jd(De,ue),De.return=le,le=De;break e}f(le,se);break}else l(le,se);se=se.sibling}ue.type===b?(De=dl(ue.props.children,le.mode,De,ue.key),De.return=le,le=De):(De=im(ue.type,ue.key,ue.props,null,le.mode,De),Jd(De,ue),De.return=le,le=De)}return L(le);case y:e:{for(tt=ue.key;se!==null;){if(se.key===tt)if(se.tag===4&&se.stateNode.containerInfo===ue.containerInfo&&se.stateNode.implementation===ue.implementation){f(le,se.sibling),De=E(se,ue.children||[]),De.return=le,le=De;break e}else{f(le,se);break}else l(le,se);se=se.sibling}De=Qb(ue,le.mode,De),De.return=le,le=De}return L(le);case j:return tt=ue._init,ue=tt(ue._payload),bn(le,se,ue,De)}if(Y(ue))return wt(le,se,ue,De);if($(ue)){if(tt=$(ue),typeof tt!="function")throw Error(r(150));return ue=tt.call(ue),xt(le,se,ue,De)}if(typeof ue.then=="function")return bn(le,se,Sm(ue),De);if(ue.$$typeof===w)return bn(le,se,um(le,ue),De);Cm(le,ue)}return typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint"?(ue=""+ue,se!==null&&se.tag===6?(f(le,se.sibling),De=E(se,ue),De.return=le,le=De):(f(le,se),De=Kb(ue,le.mode,De),De.return=le,le=De),L(le)):f(le,se)}return function(le,se,ue,De){try{Zd=0;var tt=bn(le,se,ue,De);return Bc=null,tt}catch(pt){if(pt===$d||pt===fm)throw pt;var Vt=Io(29,pt,null,le.mode);return Vt.lanes=De,Vt.return=le,Vt}finally{}}}var jc=n2(!0),r2=n2(!1),ra=oe(null),Ya=null;function ys(i){var l=i.alternate;P(Tr,Tr.current&1),P(ra,i),Ya===null&&(l===null||Pc.current!==null||l.memoizedState!==null)&&(Ya=i)}function o2(i){if(i.tag===22){if(P(Tr,Tr.current),P(ra,i),Ya===null){var l=i.alternate;l!==null&&l.memoizedState!==null&&(Ya=i)}}else bs()}function bs(){P(Tr,Tr.current),P(ra,ra.current)}function Ii(i){K(ra),Ya===i&&(Ya=null),K(Tr)}var Tr=oe(0);function _m(i){for(var l=i;l!==null;){if(l.tag===13){var f=l.memoizedState;if(f!==null&&(f=f.dehydrated,f===null||f.data==="$?"||b1(f)))return l}else if(l.tag===19&&l.memoizedProps.revealOrder!==void 0){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===i)break;for(;l.sibling===null;){if(l.return===null||l.return===i)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}function Dv(i,l,f,m){l=i.memoizedState,f=f(m,l),f=f==null?l:p({},l,f),i.memoizedState=f,i.lanes===0&&(i.updateQueue.baseState=f)}var Rv={enqueueSetState:function(i,l,f){i=i._reactInternals;var m=Lo(),E=hs(m);E.payload=l,f!=null&&(E.callback=f),l=ms(i,E,m),l!==null&&(Mo(l,i,m),Gd(l,i,m))},enqueueReplaceState:function(i,l,f){i=i._reactInternals;var m=Lo(),E=hs(m);E.tag=1,E.payload=l,f!=null&&(E.callback=f),l=ms(i,E,m),l!==null&&(Mo(l,i,m),Gd(l,i,m))},enqueueForceUpdate:function(i,l){i=i._reactInternals;var f=Lo(),m=hs(f);m.tag=2,l!=null&&(m.callback=l),l=ms(i,m,f),l!==null&&(Mo(l,i,f),Gd(l,i,f))}};function a2(i,l,f,m,E,_,L){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(m,_,L):l.prototype&&l.prototype.isPureReactComponent?!Ld(f,m)||!Ld(E,_):!0}function i2(i,l,f,m){i=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(f,m),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(f,m),l.state!==i&&Rv.enqueueReplaceState(l,l.state,null)}function El(i,l){var f=l;if("ref"in l){f={};for(var m in l)m!=="ref"&&(f[m]=l[m])}if(i=i.defaultProps){f===l&&(f=p({},f));for(var E in i)f[E]===void 0&&(f[E]=i[E])}return f}var Am=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)};function s2(i){Am(i)}function l2(i){console.error(i)}function c2(i){Am(i)}function km(i,l){try{var f=i.onUncaughtError;f(l.value,{componentStack:l.stack})}catch(m){setTimeout(function(){throw m})}}function u2(i,l,f){try{var m=i.onCaughtError;m(f.value,{componentStack:f.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(E){setTimeout(function(){throw E})}}function Iv(i,l,f){return f=hs(f),f.tag=3,f.payload={element:null},f.callback=function(){km(i,l)},f}function d2(i){return i=hs(i),i.tag=3,i}function f2(i,l,f,m){var E=f.type.getDerivedStateFromError;if(typeof E=="function"){var _=m.value;i.payload=function(){return E(_)},i.callback=function(){u2(l,f,m)}}var L=f.stateNode;L!==null&&typeof L.componentDidCatch=="function"&&(i.callback=function(){u2(l,f,m),typeof E!="function"&&(Cs===null?Cs=new Set([this]):Cs.add(this));var U=m.stack;this.componentDidCatch(m.value,{componentStack:U!==null?U:""})})}function R7(i,l,f,m,E){if(f.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){if(l=f.alternate,l!==null&&Ud(l,f,E,!0),f=ra.current,f!==null){switch(f.tag){case 13:return Ya===null?t1():f.alternate===null&&qn===0&&(qn=3),f.flags&=-257,f.flags|=65536,f.lanes=E,m===iv?f.flags|=16384:(l=f.updateQueue,l===null?f.updateQueue=new Set([m]):l.add(m),r1(i,m,E)),!1;case 22:return f.flags|=65536,m===iv?f.flags|=16384:(l=f.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([m])},f.updateQueue=l):(f=l.retryQueue,f===null?l.retryQueue=new Set([m]):f.add(m)),r1(i,m,E)),!1}throw Error(r(435,f.tag))}return r1(i,m,E),t1(),!1}if(sn)return l=ra.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=E,m!==Jb&&(i=Error(r(422),{cause:m}),jd(Jo(i,f)))):(m!==Jb&&(l=Error(r(423),{cause:m}),jd(Jo(l,f))),i=i.current.alternate,i.flags|=65536,E&=-E,i.lanes|=E,m=Jo(m,f),E=Iv(i.stateNode,m,E),cv(i,E),qn!==4&&(qn=2)),!1;var _=Error(r(520),{cause:m});if(_=Jo(_,f),sf===null?sf=[_]:sf.push(_),qn!==4&&(qn=2),l===null)return!0;m=Jo(m,f),f=l;do{switch(f.tag){case 3:return f.flags|=65536,i=E&-E,f.lanes|=i,i=Iv(f.stateNode,m,i),cv(f,i),!1;case 1:if(l=f.type,_=f.stateNode,(f.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(Cs===null||!Cs.has(_))))return f.flags|=65536,E&=-E,f.lanes|=E,E=d2(E),f2(E,i,f,m),cv(f,E),!1}f=f.return}while(f!==null);return!1}var p2=Error(r(461)),wr=!1;function Fr(i,l,f,m){l.child=i===null?r2(l,null,f,m):jc(l,i.child,f,m)}function h2(i,l,f,m,E){f=f.render;var _=l.ref;if("ref"in m){var L={};for(var U in m)U!=="ref"&&(L[U]=m[U])}else L=m;return yl(l),m=hv(i,l,f,L,_,E),U=mv(),i!==null&&!wr?(gv(i,l,E),Oi(i,l,E)):(sn&&U&&Xb(l),l.flags|=1,Fr(i,l,m,E),l.child)}function m2(i,l,f,m,E){if(i===null){var _=f.type;return typeof _=="function"&&!Yb(_)&&_.defaultProps===void 0&&f.compare===null?(l.tag=15,l.type=_,g2(i,l,_,m,E)):(i=im(f.type,null,m,l,l.mode,E),i.ref=l.ref,i.return=l,l.child=i)}if(_=i.child,!jv(i,E)){var L=_.memoizedProps;if(f=f.compare,f=f!==null?f:Ld,f(L,m)&&i.ref===l.ref)return Oi(i,l,E)}return l.flags|=1,i=_i(_,m),i.ref=l.ref,i.return=l,l.child=i}function g2(i,l,f,m,E){if(i!==null){var _=i.memoizedProps;if(Ld(_,m)&&i.ref===l.ref)if(wr=!1,l.pendingProps=m=_,jv(i,E))(i.flags&131072)!==0&&(wr=!0);else return l.lanes=i.lanes,Oi(i,l,E)}return Ov(i,l,f,m,E)}function y2(i,l,f){var m=l.pendingProps,E=m.children,_=i!==null?i.memoizedState:null;if(m.mode==="hidden"){if((l.flags&128)!==0){if(m=_!==null?_.baseLanes|f:f,i!==null){for(E=l.child=i.child,_=0;E!==null;)_=_|E.lanes|E.childLanes,E=E.sibling;l.childLanes=_&~m}else l.childLanes=0,l.child=null;return b2(i,l,m,f)}if((f&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},i!==null&&dm(l,_!==null?_.cachePool:null),_!==null?gA(l,_):dv(),o2(l);else return l.lanes=l.childLanes=536870912,b2(i,l,_!==null?_.baseLanes|f:f,f)}else _!==null?(dm(l,_.cachePool),gA(l,_),bs(),l.memoizedState=null):(i!==null&&dm(l,null),dv(),bs());return Fr(i,l,E,f),l.child}function b2(i,l,f,m){var E=av();return E=E===null?null:{parent:xr._currentValue,pool:E},l.memoizedState={baseLanes:f,cachePool:E},i!==null&&dm(l,null),dv(),o2(l),i!==null&&Ud(i,l,m,!0),null}function wm(i,l){var f=l.ref;if(f===null)i!==null&&i.ref!==null&&(l.flags|=4194816);else{if(typeof f!="function"&&typeof f!="object")throw Error(r(284));(i===null||i.ref!==f)&&(l.flags|=4194816)}}function Ov(i,l,f,m,E){return yl(l),f=hv(i,l,f,m,void 0,E),m=mv(),i!==null&&!wr?(gv(i,l,E),Oi(i,l,E)):(sn&&m&&Xb(l),l.flags|=1,Fr(i,l,f,E),l.child)}function v2(i,l,f,m,E,_){return yl(l),l.updateQueue=null,f=bA(l,m,f,E),yA(i),m=mv(),i!==null&&!wr?(gv(i,l,_),Oi(i,l,_)):(sn&&m&&Xb(l),l.flags|=1,Fr(i,l,f,_),l.child)}function E2(i,l,f,m,E){if(yl(l),l.stateNode===null){var _=Dc,L=f.contextType;typeof L=="object"&&L!==null&&(_=qr(L)),_=new f(m,_),l.memoizedState=_.state!==null&&_.state!==void 0?_.state:null,_.updater=Rv,l.stateNode=_,_._reactInternals=l,_=l.stateNode,_.props=m,_.state=l.memoizedState,_.refs={},sv(l),L=f.contextType,_.context=typeof L=="object"&&L!==null?qr(L):Dc,_.state=l.memoizedState,L=f.getDerivedStateFromProps,typeof L=="function"&&(Dv(l,f,L,m),_.state=l.memoizedState),typeof f.getDerivedStateFromProps=="function"||typeof _.getSnapshotBeforeUpdate=="function"||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(L=_.state,typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount(),L!==_.state&&Rv.enqueueReplaceState(_,_.state,null),Wd(l,m,_,E),qd(),_.state=l.memoizedState),typeof _.componentDidMount=="function"&&(l.flags|=4194308),m=!0}else if(i===null){_=l.stateNode;var U=l.memoizedProps,Z=El(f,U);_.props=Z;var pe=_.context,Ae=f.contextType;L=Dc,typeof Ae=="object"&&Ae!==null&&(L=qr(Ae));var Ie=f.getDerivedStateFromProps;Ae=typeof Ie=="function"||typeof _.getSnapshotBeforeUpdate=="function",U=l.pendingProps!==U,Ae||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(U||pe!==L)&&i2(l,_,m,L),ps=!1;var he=l.memoizedState;_.state=he,Wd(l,m,_,E),qd(),pe=l.memoizedState,U||he!==pe||ps?(typeof Ie=="function"&&(Dv(l,f,Ie,m),pe=l.memoizedState),(Z=ps||a2(l,f,Z,m,he,pe,L))?(Ae||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount()),typeof _.componentDidMount=="function"&&(l.flags|=4194308)):(typeof _.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=m,l.memoizedState=pe),_.props=m,_.state=pe,_.context=L,m=Z):(typeof _.componentDidMount=="function"&&(l.flags|=4194308),m=!1)}else{_=l.stateNode,lv(i,l),L=l.memoizedProps,Ae=El(f,L),_.props=Ae,Ie=l.pendingProps,he=_.context,pe=f.contextType,Z=Dc,typeof pe=="object"&&pe!==null&&(Z=qr(pe)),U=f.getDerivedStateFromProps,(pe=typeof U=="function"||typeof _.getSnapshotBeforeUpdate=="function")||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(L!==Ie||he!==Z)&&i2(l,_,m,Z),ps=!1,he=l.memoizedState,_.state=he,Wd(l,m,_,E),qd();var me=l.memoizedState;L!==Ie||he!==me||ps||i!==null&&i.dependencies!==null&&cm(i.dependencies)?(typeof U=="function"&&(Dv(l,f,U,m),me=l.memoizedState),(Ae=ps||a2(l,f,Ae,m,he,me,Z)||i!==null&&i.dependencies!==null&&cm(i.dependencies))?(pe||typeof _.UNSAFE_componentWillUpdate!="function"&&typeof _.componentWillUpdate!="function"||(typeof _.componentWillUpdate=="function"&&_.componentWillUpdate(m,me,Z),typeof _.UNSAFE_componentWillUpdate=="function"&&_.UNSAFE_componentWillUpdate(m,me,Z)),typeof _.componentDidUpdate=="function"&&(l.flags|=4),typeof _.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof _.componentDidUpdate!="function"||L===i.memoizedProps&&he===i.memoizedState||(l.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||L===i.memoizedProps&&he===i.memoizedState||(l.flags|=1024),l.memoizedProps=m,l.memoizedState=me),_.props=m,_.state=me,_.context=Z,m=Ae):(typeof _.componentDidUpdate!="function"||L===i.memoizedProps&&he===i.memoizedState||(l.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||L===i.memoizedProps&&he===i.memoizedState||(l.flags|=1024),m=!1)}return _=m,wm(i,l),m=(l.flags&128)!==0,_||m?(_=l.stateNode,f=m&&typeof f.getDerivedStateFromError!="function"?null:_.render(),l.flags|=1,i!==null&&m?(l.child=jc(l,i.child,null,E),l.child=jc(l,null,f,E)):Fr(i,l,f,E),l.memoizedState=_.state,i=l.child):i=Oi(i,l,E),i}function x2(i,l,f,m){return Bd(),l.flags|=256,Fr(i,l,f,m),l.child}var Nv={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Pv(i){return{baseLanes:i,cachePool:lA()}}function Lv(i,l,f){return i=i!==null?i.childLanes&~f:0,l&&(i|=oa),i}function T2(i,l,f){var m=l.pendingProps,E=!1,_=(l.flags&128)!==0,L;if((L=_)||(L=i!==null&&i.memoizedState===null?!1:(Tr.current&2)!==0),L&&(E=!0,l.flags&=-129),L=(l.flags&32)!==0,l.flags&=-33,i===null){if(sn){if(E?ys(l):bs(),sn){var U=Gn,Z;if(Z=U){e:{for(Z=U,U=Wa;Z.nodeType!==8;){if(!U){U=null;break e}if(Z=Oa(Z.nextSibling),Z===null){U=null;break e}}U=Z}U!==null?(l.memoizedState={dehydrated:U,treeContext:fl!==null?{id:Ai,overflow:ki}:null,retryLane:536870912,hydrationErrors:null},Z=Io(18,null,null,0),Z.stateNode=U,Z.return=l,l.child=Z,ro=l,Gn=null,Z=!0):Z=!1}Z||ml(l)}if(U=l.memoizedState,U!==null&&(U=U.dehydrated,U!==null))return b1(U)?l.lanes=32:l.lanes=536870912,null;Ii(l)}return U=m.children,m=m.fallback,E?(bs(),E=l.mode,U=Dm({mode:"hidden",children:U},E),m=dl(m,E,f,null),U.return=l,m.return=l,U.sibling=m,l.child=U,E=l.child,E.memoizedState=Pv(f),E.childLanes=Lv(i,L,f),l.memoizedState=Nv,m):(ys(l),Mv(l,U))}if(Z=i.memoizedState,Z!==null&&(U=Z.dehydrated,U!==null)){if(_)l.flags&256?(ys(l),l.flags&=-257,l=Fv(i,l,f)):l.memoizedState!==null?(bs(),l.child=i.child,l.flags|=128,l=null):(bs(),E=m.fallback,U=l.mode,m=Dm({mode:"visible",children:m.children},U),E=dl(E,U,f,null),E.flags|=2,m.return=l,E.return=l,m.sibling=E,l.child=m,jc(l,i.child,null,f),m=l.child,m.memoizedState=Pv(f),m.childLanes=Lv(i,L,f),l.memoizedState=Nv,l=E);else if(ys(l),b1(U)){if(L=U.nextSibling&&U.nextSibling.dataset,L)var pe=L.dgst;L=pe,m=Error(r(419)),m.stack="",m.digest=L,jd({value:m,source:null,stack:null}),l=Fv(i,l,f)}else if(wr||Ud(i,l,f,!1),L=(f&i.childLanes)!==0,wr||L){if(L=Rn,L!==null&&(m=f&-f,m=(m&42)!==0?1:Mr(m),m=(m&(L.suspendedLanes|f))!==0?0:m,m!==0&&m!==Z.retryLane))throw Z.retryLane=m,wc(i,m),Mo(L,i,m),p2;U.data==="$?"||t1(),l=Fv(i,l,f)}else U.data==="$?"?(l.flags|=192,l.child=i.child,l=null):(i=Z.treeContext,Gn=Oa(U.nextSibling),ro=l,sn=!0,hl=null,Wa=!1,i!==null&&(ta[na++]=Ai,ta[na++]=ki,ta[na++]=fl,Ai=i.id,ki=i.overflow,fl=l),l=Mv(l,m.children),l.flags|=4096);return l}return E?(bs(),E=m.fallback,U=l.mode,Z=i.child,pe=Z.sibling,m=_i(Z,{mode:"hidden",children:m.children}),m.subtreeFlags=Z.subtreeFlags&65011712,pe!==null?E=_i(pe,E):(E=dl(E,U,f,null),E.flags|=2),E.return=l,m.return=l,m.sibling=E,l.child=m,m=E,E=l.child,U=i.child.memoizedState,U===null?U=Pv(f):(Z=U.cachePool,Z!==null?(pe=xr._currentValue,Z=Z.parent!==pe?{parent:pe,pool:pe}:Z):Z=lA(),U={baseLanes:U.baseLanes|f,cachePool:Z}),E.memoizedState=U,E.childLanes=Lv(i,L,f),l.memoizedState=Nv,m):(ys(l),f=i.child,i=f.sibling,f=_i(f,{mode:"visible",children:m.children}),f.return=l,f.sibling=null,i!==null&&(L=l.deletions,L===null?(l.deletions=[i],l.flags|=16):L.push(i)),l.child=f,l.memoizedState=null,f)}function Mv(i,l){return l=Dm({mode:"visible",children:l},i.mode),l.return=i,i.child=l}function Dm(i,l){return i=Io(22,i,null,l),i.lanes=0,i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},i}function Fv(i,l,f){return jc(l,i.child,null,f),i=Mv(l,l.pendingProps.children),i.flags|=2,l.memoizedState=null,i}function S2(i,l,f){i.lanes|=l;var m=i.alternate;m!==null&&(m.lanes|=l),tv(i.return,l,f)}function Bv(i,l,f,m,E){var _=i.memoizedState;_===null?i.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:m,tail:f,tailMode:E}:(_.isBackwards=l,_.rendering=null,_.renderingStartTime=0,_.last=m,_.tail=f,_.tailMode=E)}function C2(i,l,f){var m=l.pendingProps,E=m.revealOrder,_=m.tail;if(Fr(i,l,m.children,f),m=Tr.current,(m&2)!==0)m=m&1|2,l.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=l.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&S2(i,f,l);else if(i.tag===19)S2(i,f,l);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===l)break e;for(;i.sibling===null;){if(i.return===null||i.return===l)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}m&=1}switch(P(Tr,m),E){case"forwards":for(f=l.child,E=null;f!==null;)i=f.alternate,i!==null&&_m(i)===null&&(E=f),f=f.sibling;f=E,f===null?(E=l.child,l.child=null):(E=f.sibling,f.sibling=null),Bv(l,!1,E,f,_);break;case"backwards":for(f=null,E=l.child,l.child=null;E!==null;){if(i=E.alternate,i!==null&&_m(i)===null){l.child=E;break}i=E.sibling,E.sibling=f,f=E,E=i}Bv(l,!0,f,null,_);break;case"together":Bv(l,!1,null,null,void 0);break;default:l.memoizedState=null}return l.child}function Oi(i,l,f){if(i!==null&&(l.dependencies=i.dependencies),Ss|=l.lanes,(f&l.childLanes)===0)if(i!==null){if(Ud(i,l,f,!1),(f&l.childLanes)===0)return null}else return null;if(i!==null&&l.child!==i.child)throw Error(r(153));if(l.child!==null){for(i=l.child,f=_i(i,i.pendingProps),l.child=f,f.return=l;i.sibling!==null;)i=i.sibling,f=f.sibling=_i(i,i.pendingProps),f.return=l;f.sibling=null}return l.child}function jv(i,l){return(i.lanes&l)!==0?!0:(i=i.dependencies,!!(i!==null&&cm(i)))}function I7(i,l,f){switch(l.tag){case 3:ye(l,l.stateNode.containerInfo),fs(l,xr,i.memoizedState.cache),Bd();break;case 27:case 5:Me(l);break;case 4:ye(l,l.stateNode.containerInfo);break;case 10:fs(l,l.type,l.memoizedProps.value);break;case 13:var m=l.memoizedState;if(m!==null)return m.dehydrated!==null?(ys(l),l.flags|=128,null):(f&l.child.childLanes)!==0?T2(i,l,f):(ys(l),i=Oi(i,l,f),i!==null?i.sibling:null);ys(l);break;case 19:var E=(i.flags&128)!==0;if(m=(f&l.childLanes)!==0,m||(Ud(i,l,f,!1),m=(f&l.childLanes)!==0),E){if(m)return C2(i,l,f);l.flags|=128}if(E=l.memoizedState,E!==null&&(E.rendering=null,E.tail=null,E.lastEffect=null),P(Tr,Tr.current),m)break;return null;case 22:case 23:return l.lanes=0,y2(i,l,f);case 24:fs(l,xr,i.memoizedState.cache)}return Oi(i,l,f)}function _2(i,l,f){if(i!==null)if(i.memoizedProps!==l.pendingProps)wr=!0;else{if(!jv(i,f)&&(l.flags&128)===0)return wr=!1,I7(i,l,f);wr=(i.flags&131072)!==0}else wr=!1,sn&&(l.flags&1048576)!==0&&tA(l,lm,l.index);switch(l.lanes=0,l.tag){case 16:e:{i=l.pendingProps;var m=l.elementType,E=m._init;if(m=E(m._payload),l.type=m,typeof m=="function")Yb(m)?(i=El(m,i),l.tag=1,l=E2(null,l,m,i,f)):(l.tag=0,l=Ov(null,l,m,i,f));else{if(m!=null){if(E=m.$$typeof,E===R){l.tag=11,l=h2(null,l,m,i,f);break e}else if(E===F){l.tag=14,l=m2(null,l,m,i,f);break e}}throw l=q(m)||m,Error(r(306,l,""))}}return l;case 0:return Ov(i,l,l.type,l.pendingProps,f);case 1:return m=l.type,E=El(m,l.pendingProps),E2(i,l,m,E,f);case 3:e:{if(ye(l,l.stateNode.containerInfo),i===null)throw Error(r(387));m=l.pendingProps;var _=l.memoizedState;E=_.element,lv(i,l),Wd(l,m,null,f);var L=l.memoizedState;if(m=L.cache,fs(l,xr,m),m!==_.cache&&nv(l,[xr],f,!0),qd(),m=L.element,_.isDehydrated)if(_={element:m,isDehydrated:!1,cache:L.cache},l.updateQueue.baseState=_,l.memoizedState=_,l.flags&256){l=x2(i,l,m,f);break e}else if(m!==E){E=Jo(Error(r(424)),l),jd(E),l=x2(i,l,m,f);break e}else{switch(i=l.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(Gn=Oa(i.firstChild),ro=l,sn=!0,hl=null,Wa=!0,f=r2(l,null,m,f),l.child=f;f;)f.flags=f.flags&-3|4096,f=f.sibling}else{if(Bd(),m===E){l=Oi(i,l,f);break e}Fr(i,l,m,f)}l=l.child}return l;case 26:return wm(i,l),i===null?(f=Dk(l.type,null,l.pendingProps,null))?l.memoizedState=f:sn||(f=l.type,i=l.pendingProps,m=$m(re.current).createElement(f),m[ve]=l,m[we]=i,jr(m,f,i),on(m),l.stateNode=m):l.memoizedState=Dk(l.type,i.memoizedProps,l.pendingProps,i.memoizedState),null;case 27:return Me(l),i===null&&sn&&(m=l.stateNode=Ak(l.type,l.pendingProps,re.current),ro=l,Wa=!0,E=Gn,ks(l.type)?(v1=E,Gn=Oa(m.firstChild)):Gn=E),Fr(i,l,l.pendingProps.children,f),wm(i,l),i===null&&(l.flags|=4194304),l.child;case 5:return i===null&&sn&&((E=m=Gn)&&(m=aF(m,l.type,l.pendingProps,Wa),m!==null?(l.stateNode=m,ro=l,Gn=Oa(m.firstChild),Wa=!1,E=!0):E=!1),E||ml(l)),Me(l),E=l.type,_=l.pendingProps,L=i!==null?i.memoizedProps:null,m=_.children,m1(E,_)?m=null:L!==null&&m1(E,L)&&(l.flags|=32),l.memoizedState!==null&&(E=hv(i,l,S7,null,null,f),gf._currentValue=E),wm(i,l),Fr(i,l,m,f),l.child;case 6:return i===null&&sn&&((i=f=Gn)&&(f=iF(f,l.pendingProps,Wa),f!==null?(l.stateNode=f,ro=l,Gn=null,i=!0):i=!1),i||ml(l)),null;case 13:return T2(i,l,f);case 4:return ye(l,l.stateNode.containerInfo),m=l.pendingProps,i===null?l.child=jc(l,null,m,f):Fr(i,l,m,f),l.child;case 11:return h2(i,l,l.type,l.pendingProps,f);case 7:return Fr(i,l,l.pendingProps,f),l.child;case 8:return Fr(i,l,l.pendingProps.children,f),l.child;case 12:return Fr(i,l,l.pendingProps.children,f),l.child;case 10:return m=l.pendingProps,fs(l,l.type,m.value),Fr(i,l,m.children,f),l.child;case 9:return E=l.type._context,m=l.pendingProps.children,yl(l),E=qr(E),m=m(E),l.flags|=1,Fr(i,l,m,f),l.child;case 14:return m2(i,l,l.type,l.pendingProps,f);case 15:return g2(i,l,l.type,l.pendingProps,f);case 19:return C2(i,l,f);case 31:return m=l.pendingProps,f=l.mode,m={mode:m.mode,children:m.children},i===null?(f=Dm(m,f),f.ref=l.ref,l.child=f,f.return=l,l=f):(f=_i(i.child,m),f.ref=l.ref,l.child=f,f.return=l,l=f),l;case 22:return y2(i,l,f);case 24:return yl(l),m=qr(xr),i===null?(E=av(),E===null&&(E=Rn,_=rv(),E.pooledCache=_,_.refCount++,_!==null&&(E.pooledCacheLanes|=f),E=_),l.memoizedState={parent:m,cache:E},sv(l),fs(l,xr,E)):((i.lanes&f)!==0&&(lv(i,l),Wd(l,null,null,f),qd()),E=i.memoizedState,_=l.memoizedState,E.parent!==m?(E={parent:m,cache:m},l.memoizedState=E,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=E),fs(l,xr,m)):(m=_.cache,fs(l,xr,m),m!==E.cache&&nv(l,[xr],f,!0))),Fr(i,l,l.pendingProps.children,f),l.child;case 29:throw l.pendingProps}throw Error(r(156,l.tag))}function Ni(i){i.flags|=4}function A2(i,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!Pk(l)){if(l=ra.current,l!==null&&((tn&4194048)===tn?Ya!==null:(tn&62914560)!==tn&&(tn&536870912)===0||l!==Ya))throw Vd=iv,cA;i.flags|=8192}}function Rm(i,l){l!==null&&(i.flags|=4),i.flags&16384&&(l=i.tag!==22?Lr():536870912,i.lanes|=l,$c|=l)}function ef(i,l){if(!sn)switch(i.tailMode){case"hidden":l=i.tail;for(var f=null;l!==null;)l.alternate!==null&&(f=l),l=l.sibling;f===null?i.tail=null:f.sibling=null;break;case"collapsed":f=i.tail;for(var m=null;f!==null;)f.alternate!==null&&(m=f),f=f.sibling;m===null?l||i.tail===null?i.tail=null:i.tail.sibling=null:m.sibling=null}}function zn(i){var l=i.alternate!==null&&i.alternate.child===i.child,f=0,m=0;if(l)for(var E=i.child;E!==null;)f|=E.lanes|E.childLanes,m|=E.subtreeFlags&65011712,m|=E.flags&65011712,E.return=i,E=E.sibling;else for(E=i.child;E!==null;)f|=E.lanes|E.childLanes,m|=E.subtreeFlags,m|=E.flags,E.return=i,E=E.sibling;return i.subtreeFlags|=m,i.childLanes=f,l}function O7(i,l,f){var m=l.pendingProps;switch(Zb(l),l.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zn(l),null;case 1:return zn(l),null;case 3:return f=l.stateNode,m=null,i!==null&&(m=i.memoizedState.cache),l.memoizedState.cache!==m&&(l.flags|=2048),Di(xr),Ge(),f.pendingContext&&(f.context=f.pendingContext,f.pendingContext=null),(i===null||i.child===null)&&(Fd(l)?Ni(l):i===null||i.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,oA())),zn(l),null;case 26:return f=l.memoizedState,i===null?(Ni(l),f!==null?(zn(l),A2(l,f)):(zn(l),l.flags&=-16777217)):f?f!==i.memoizedState?(Ni(l),zn(l),A2(l,f)):(zn(l),l.flags&=-16777217):(i.memoizedProps!==m&&Ni(l),zn(l),l.flags&=-16777217),null;case 27:Oe(l),f=re.current;var E=l.type;if(i!==null&&l.stateNode!=null)i.memoizedProps!==m&&Ni(l);else{if(!m){if(l.stateNode===null)throw Error(r(166));return zn(l),null}i=ee.current,Fd(l)?nA(l):(i=Ak(E,m,f),l.stateNode=i,Ni(l))}return zn(l),null;case 5:if(Oe(l),f=l.type,i!==null&&l.stateNode!=null)i.memoizedProps!==m&&Ni(l);else{if(!m){if(l.stateNode===null)throw Error(r(166));return zn(l),null}if(i=ee.current,Fd(l))nA(l);else{switch(E=$m(re.current),i){case 1:i=E.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:i=E.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":i=E.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":i=E.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":i=E.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof m.is=="string"?E.createElement("select",{is:m.is}):E.createElement("select"),m.multiple?i.multiple=!0:m.size&&(i.size=m.size);break;default:i=typeof m.is=="string"?E.createElement(f,{is:m.is}):E.createElement(f)}}i[ve]=l,i[we]=m;e:for(E=l.child;E!==null;){if(E.tag===5||E.tag===6)i.appendChild(E.stateNode);else if(E.tag!==4&&E.tag!==27&&E.child!==null){E.child.return=E,E=E.child;continue}if(E===l)break e;for(;E.sibling===null;){if(E.return===null||E.return===l)break e;E=E.return}E.sibling.return=E.return,E=E.sibling}l.stateNode=i;e:switch(jr(i,f,m),f){case"button":case"input":case"select":case"textarea":i=!!m.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Ni(l)}}return zn(l),l.flags&=-16777217,null;case 6:if(i&&l.stateNode!=null)i.memoizedProps!==m&&Ni(l);else{if(typeof m!="string"&&l.stateNode===null)throw Error(r(166));if(i=re.current,Fd(l)){if(i=l.stateNode,f=l.memoizedProps,m=null,E=ro,E!==null)switch(E.tag){case 27:case 5:m=E.memoizedProps}i[ve]=l,i=!!(i.nodeValue===f||m!==null&&m.suppressHydrationWarning===!0||vk(i.nodeValue,f)),i||ml(l)}else i=$m(i).createTextNode(m),i[ve]=l,l.stateNode=i}return zn(l),null;case 13:if(m=l.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(E=Fd(l),m!==null&&m.dehydrated!==null){if(i===null){if(!E)throw Error(r(318));if(E=l.memoizedState,E=E!==null?E.dehydrated:null,!E)throw Error(r(317));E[ve]=l}else Bd(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;zn(l),E=!1}else E=oA(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=E),E=!0;if(!E)return l.flags&256?(Ii(l),l):(Ii(l),null)}if(Ii(l),(l.flags&128)!==0)return l.lanes=f,l;if(f=m!==null,i=i!==null&&i.memoizedState!==null,f){m=l.child,E=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(E=m.alternate.memoizedState.cachePool.pool);var _=null;m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(_=m.memoizedState.cachePool.pool),_!==E&&(m.flags|=2048)}return f!==i&&f&&(l.child.flags|=8192),Rm(l,l.updateQueue),zn(l),null;case 4:return Ge(),i===null&&u1(l.stateNode.containerInfo),zn(l),null;case 10:return Di(l.type),zn(l),null;case 19:if(K(Tr),E=l.memoizedState,E===null)return zn(l),null;if(m=(l.flags&128)!==0,_=E.rendering,_===null)if(m)ef(E,!1);else{if(qn!==0||i!==null&&(i.flags&128)!==0)for(i=l.child;i!==null;){if(_=_m(i),_!==null){for(l.flags|=128,ef(E,!1),i=_.updateQueue,l.updateQueue=i,Rm(l,i),l.subtreeFlags=0,i=f,f=l.child;f!==null;)eA(f,i),f=f.sibling;return P(Tr,Tr.current&1|2),l.child}i=i.sibling}E.tail!==null&&je()>Nm&&(l.flags|=128,m=!0,ef(E,!1),l.lanes=4194304)}else{if(!m)if(i=_m(_),i!==null){if(l.flags|=128,m=!0,i=i.updateQueue,l.updateQueue=i,Rm(l,i),ef(E,!0),E.tail===null&&E.tailMode==="hidden"&&!_.alternate&&!sn)return zn(l),null}else 2*je()-E.renderingStartTime>Nm&&f!==536870912&&(l.flags|=128,m=!0,ef(E,!1),l.lanes=4194304);E.isBackwards?(_.sibling=l.child,l.child=_):(i=E.last,i!==null?i.sibling=_:l.child=_,E.last=_)}return E.tail!==null?(l=E.tail,E.rendering=l,E.tail=l.sibling,E.renderingStartTime=je(),l.sibling=null,i=Tr.current,P(Tr,m?i&1|2:i&1),l):(zn(l),null);case 22:case 23:return Ii(l),fv(),m=l.memoizedState!==null,i!==null?i.memoizedState!==null!==m&&(l.flags|=8192):m&&(l.flags|=8192),m?(f&536870912)!==0&&(l.flags&128)===0&&(zn(l),l.subtreeFlags&6&&(l.flags|=8192)):zn(l),f=l.updateQueue,f!==null&&Rm(l,f.retryQueue),f=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(f=i.memoizedState.cachePool.pool),m=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(m=l.memoizedState.cachePool.pool),m!==f&&(l.flags|=2048),i!==null&&K(bl),null;case 24:return f=null,i!==null&&(f=i.memoizedState.cache),l.memoizedState.cache!==f&&(l.flags|=2048),Di(xr),zn(l),null;case 25:return null;case 30:return null}throw Error(r(156,l.tag))}function N7(i,l){switch(Zb(l),l.tag){case 1:return i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 3:return Di(xr),Ge(),i=l.flags,(i&65536)!==0&&(i&128)===0?(l.flags=i&-65537|128,l):null;case 26:case 27:case 5:return Oe(l),null;case 13:if(Ii(l),i=l.memoizedState,i!==null&&i.dehydrated!==null){if(l.alternate===null)throw Error(r(340));Bd()}return i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 19:return K(Tr),null;case 4:return Ge(),null;case 10:return Di(l.type),null;case 22:case 23:return Ii(l),fv(),i!==null&&K(bl),i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 24:return Di(xr),null;case 25:return null;default:return null}}function k2(i,l){switch(Zb(l),l.tag){case 3:Di(xr),Ge();break;case 26:case 27:case 5:Oe(l);break;case 4:Ge();break;case 13:Ii(l);break;case 19:K(Tr);break;case 10:Di(l.type);break;case 22:case 23:Ii(l),fv(),i!==null&&K(bl);break;case 24:Di(xr)}}function tf(i,l){try{var f=l.updateQueue,m=f!==null?f.lastEffect:null;if(m!==null){var E=m.next;f=E;do{if((f.tag&i)===i){m=void 0;var _=f.create,L=f.inst;m=_(),L.destroy=m}f=f.next}while(f!==E)}}catch(U){Sn(l,l.return,U)}}function vs(i,l,f){try{var m=l.updateQueue,E=m!==null?m.lastEffect:null;if(E!==null){var _=E.next;m=_;do{if((m.tag&i)===i){var L=m.inst,U=L.destroy;if(U!==void 0){L.destroy=void 0,E=l;var Z=f,pe=U;try{pe()}catch(Ae){Sn(E,Z,Ae)}}}m=m.next}while(m!==_)}}catch(Ae){Sn(l,l.return,Ae)}}function w2(i){var l=i.updateQueue;if(l!==null){var f=i.stateNode;try{mA(l,f)}catch(m){Sn(i,i.return,m)}}}function D2(i,l,f){f.props=El(i.type,i.memoizedProps),f.state=i.memoizedState;try{f.componentWillUnmount()}catch(m){Sn(i,l,m)}}function nf(i,l){try{var f=i.ref;if(f!==null){switch(i.tag){case 26:case 27:case 5:var m=i.stateNode;break;case 30:m=i.stateNode;break;default:m=i.stateNode}typeof f=="function"?i.refCleanup=f(m):f.current=m}}catch(E){Sn(i,l,E)}}function Ka(i,l){var f=i.ref,m=i.refCleanup;if(f!==null)if(typeof m=="function")try{m()}catch(E){Sn(i,l,E)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof f=="function")try{f(null)}catch(E){Sn(i,l,E)}else f.current=null}function R2(i){var l=i.type,f=i.memoizedProps,m=i.stateNode;try{e:switch(l){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(E){Sn(i,i.return,E)}}function Uv(i,l,f){try{var m=i.stateNode;eF(m,i.type,f,l),m[we]=l}catch(E){Sn(i,i.return,E)}}function I2(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&ks(i.type)||i.tag===4}function Hv(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||I2(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&ks(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function zv(i,l,f){var m=i.tag;if(m===5||m===6)i=i.stateNode,l?(f.nodeType===9?f.body:f.nodeName==="HTML"?f.ownerDocument.body:f).insertBefore(i,l):(l=f.nodeType===9?f.body:f.nodeName==="HTML"?f.ownerDocument.body:f,l.appendChild(i),f=f._reactRootContainer,f!=null||l.onclick!==null||(l.onclick=zm));else if(m!==4&&(m===27&&ks(i.type)&&(f=i.stateNode,l=null),i=i.child,i!==null))for(zv(i,l,f),i=i.sibling;i!==null;)zv(i,l,f),i=i.sibling}function Im(i,l,f){var m=i.tag;if(m===5||m===6)i=i.stateNode,l?f.insertBefore(i,l):f.appendChild(i);else if(m!==4&&(m===27&&ks(i.type)&&(f=i.stateNode),i=i.child,i!==null))for(Im(i,l,f),i=i.sibling;i!==null;)Im(i,l,f),i=i.sibling}function O2(i){var l=i.stateNode,f=i.memoizedProps;try{for(var m=i.type,E=l.attributes;E.length;)l.removeAttributeNode(E[0]);jr(l,m,f),l[ve]=i,l[we]=f}catch(_){Sn(i,i.return,_)}}var Pi=!1,tr=!1,$v=!1,N2=typeof WeakSet=="function"?WeakSet:Set,Dr=null;function P7(i,l){if(i=i.containerInfo,p1=Km,i=V_(i),Hb(i)){if("selectionStart"in i)var f={start:i.selectionStart,end:i.selectionEnd};else e:{f=(f=i.ownerDocument)&&f.defaultView||window;var m=f.getSelection&&f.getSelection();if(m&&m.rangeCount!==0){f=m.anchorNode;var E=m.anchorOffset,_=m.focusNode;m=m.focusOffset;try{f.nodeType,_.nodeType}catch{f=null;break e}var L=0,U=-1,Z=-1,pe=0,Ae=0,Ie=i,he=null;t:for(;;){for(var me;Ie!==f||E!==0&&Ie.nodeType!==3||(U=L+E),Ie!==_||m!==0&&Ie.nodeType!==3||(Z=L+m),Ie.nodeType===3&&(L+=Ie.nodeValue.length),(me=Ie.firstChild)!==null;)he=Ie,Ie=me;for(;;){if(Ie===i)break t;if(he===f&&++pe===E&&(U=L),he===_&&++Ae===m&&(Z=L),(me=Ie.nextSibling)!==null)break;Ie=he,he=Ie.parentNode}Ie=me}f=U===-1||Z===-1?null:{start:U,end:Z}}else f=null}f=f||{start:0,end:0}}else f=null;for(h1={focusedElem:i,selectionRange:f},Km=!1,Dr=l;Dr!==null;)if(l=Dr,i=l.child,(l.subtreeFlags&1024)!==0&&i!==null)i.return=l,Dr=i;else for(;Dr!==null;){switch(l=Dr,_=l.alternate,i=l.flags,l.tag){case 0:break;case 11:case 15:break;case 1:if((i&1024)!==0&&_!==null){i=void 0,f=l,E=_.memoizedProps,_=_.memoizedState,m=f.stateNode;try{var wt=El(f.type,E,f.elementType===f.type);i=m.getSnapshotBeforeUpdate(wt,_),m.__reactInternalSnapshotBeforeUpdate=i}catch(xt){Sn(f,f.return,xt)}}break;case 3:if((i&1024)!==0){if(i=l.stateNode.containerInfo,f=i.nodeType,f===9)y1(i);else if(f===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":y1(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(r(163))}if(i=l.sibling,i!==null){i.return=l.return,Dr=i;break}Dr=l.return}}function P2(i,l,f){var m=f.flags;switch(f.tag){case 0:case 11:case 15:Es(i,f),m&4&&tf(5,f);break;case 1:if(Es(i,f),m&4)if(i=f.stateNode,l===null)try{i.componentDidMount()}catch(L){Sn(f,f.return,L)}else{var E=El(f.type,l.memoizedProps);l=l.memoizedState;try{i.componentDidUpdate(E,l,i.__reactInternalSnapshotBeforeUpdate)}catch(L){Sn(f,f.return,L)}}m&64&&w2(f),m&512&&nf(f,f.return);break;case 3:if(Es(i,f),m&64&&(i=f.updateQueue,i!==null)){if(l=null,f.child!==null)switch(f.child.tag){case 27:case 5:l=f.child.stateNode;break;case 1:l=f.child.stateNode}try{mA(i,l)}catch(L){Sn(f,f.return,L)}}break;case 27:l===null&&m&4&&O2(f);case 26:case 5:Es(i,f),l===null&&m&4&&R2(f),m&512&&nf(f,f.return);break;case 12:Es(i,f);break;case 13:Es(i,f),m&4&&F2(i,f),m&64&&(i=f.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(f=$7.bind(null,f),sF(i,f))));break;case 22:if(m=f.memoizedState!==null||Pi,!m){l=l!==null&&l.memoizedState!==null||tr,E=Pi;var _=tr;Pi=m,(tr=l)&&!_?xs(i,f,(f.subtreeFlags&8772)!==0):Es(i,f),Pi=E,tr=_}break;case 30:break;default:Es(i,f)}}function L2(i){var l=i.alternate;l!==null&&(i.alternate=null,L2(l)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(l=i.stateNode,l!==null&&kt(l)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var Mn=null,yo=!1;function Li(i,l,f){for(f=f.child;f!==null;)M2(i,l,f),f=f.sibling}function M2(i,l,f){if(ge&&typeof ge.onCommitFiberUnmount=="function")try{ge.onCommitFiberUnmount(de,f)}catch{}switch(f.tag){case 26:tr||Ka(f,l),Li(i,l,f),f.memoizedState?f.memoizedState.count--:f.stateNode&&(f=f.stateNode,f.parentNode.removeChild(f));break;case 27:tr||Ka(f,l);var m=Mn,E=yo;ks(f.type)&&(Mn=f.stateNode,yo=!1),Li(i,l,f),ff(f.stateNode),Mn=m,yo=E;break;case 5:tr||Ka(f,l);case 6:if(m=Mn,E=yo,Mn=null,Li(i,l,f),Mn=m,yo=E,Mn!==null)if(yo)try{(Mn.nodeType===9?Mn.body:Mn.nodeName==="HTML"?Mn.ownerDocument.body:Mn).removeChild(f.stateNode)}catch(_){Sn(f,l,_)}else try{Mn.removeChild(f.stateNode)}catch(_){Sn(f,l,_)}break;case 18:Mn!==null&&(yo?(i=Mn,Ck(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,f.stateNode),Ef(i)):Ck(Mn,f.stateNode));break;case 4:m=Mn,E=yo,Mn=f.stateNode.containerInfo,yo=!0,Li(i,l,f),Mn=m,yo=E;break;case 0:case 11:case 14:case 15:tr||vs(2,f,l),tr||vs(4,f,l),Li(i,l,f);break;case 1:tr||(Ka(f,l),m=f.stateNode,typeof m.componentWillUnmount=="function"&&D2(f,l,m)),Li(i,l,f);break;case 21:Li(i,l,f);break;case 22:tr=(m=tr)||f.memoizedState!==null,Li(i,l,f),tr=m;break;default:Li(i,l,f)}}function F2(i,l){if(l.memoizedState===null&&(i=l.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{Ef(i)}catch(f){Sn(l,l.return,f)}}function L7(i){switch(i.tag){case 13:case 19:var l=i.stateNode;return l===null&&(l=i.stateNode=new N2),l;case 22:return i=i.stateNode,l=i._retryCache,l===null&&(l=i._retryCache=new N2),l;default:throw Error(r(435,i.tag))}}function Vv(i,l){var f=L7(i);l.forEach(function(m){var E=V7.bind(null,i,m);f.has(m)||(f.add(m),m.then(E,E))})}function Oo(i,l){var f=l.deletions;if(f!==null)for(var m=0;m<f.length;m++){var E=f[m],_=i,L=l,U=L;e:for(;U!==null;){switch(U.tag){case 27:if(ks(U.type)){Mn=U.stateNode,yo=!1;break e}break;case 5:Mn=U.stateNode,yo=!1;break e;case 3:case 4:Mn=U.stateNode.containerInfo,yo=!0;break e}U=U.return}if(Mn===null)throw Error(r(160));M2(_,L,E),Mn=null,yo=!1,_=E.alternate,_!==null&&(_.return=null),E.return=null}if(l.subtreeFlags&13878)for(l=l.child;l!==null;)B2(l,i),l=l.sibling}var Ia=null;function B2(i,l){var f=i.alternate,m=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:Oo(l,i),No(i),m&4&&(vs(3,i,i.return),tf(3,i),vs(5,i,i.return));break;case 1:Oo(l,i),No(i),m&512&&(tr||f===null||Ka(f,f.return)),m&64&&Pi&&(i=i.updateQueue,i!==null&&(m=i.callbacks,m!==null&&(f=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=f===null?m:f.concat(m))));break;case 26:var E=Ia;if(Oo(l,i),No(i),m&512&&(tr||f===null||Ka(f,f.return)),m&4){var _=f!==null?f.memoizedState:null;if(m=i.memoizedState,f===null)if(m===null)if(i.stateNode===null){e:{m=i.type,f=i.memoizedProps,E=E.ownerDocument||E;t:switch(m){case"title":_=E.getElementsByTagName("title")[0],(!_||_[bt]||_[ve]||_.namespaceURI==="http://www.w3.org/2000/svg"||_.hasAttribute("itemprop"))&&(_=E.createElement(m),E.head.insertBefore(_,E.querySelector("head > title"))),jr(_,m,f),_[ve]=i,on(_),m=_;break e;case"link":var L=Ok("link","href",E).get(m+(f.href||""));if(L){for(var U=0;U<L.length;U++)if(_=L[U],_.getAttribute("href")===(f.href==null||f.href===""?null:f.href)&&_.getAttribute("rel")===(f.rel==null?null:f.rel)&&_.getAttribute("title")===(f.title==null?null:f.title)&&_.getAttribute("crossorigin")===(f.crossOrigin==null?null:f.crossOrigin)){L.splice(U,1);break t}}_=E.createElement(m),jr(_,m,f),E.head.appendChild(_);break;case"meta":if(L=Ok("meta","content",E).get(m+(f.content||""))){for(U=0;U<L.length;U++)if(_=L[U],_.getAttribute("content")===(f.content==null?null:""+f.content)&&_.getAttribute("name")===(f.name==null?null:f.name)&&_.getAttribute("property")===(f.property==null?null:f.property)&&_.getAttribute("http-equiv")===(f.httpEquiv==null?null:f.httpEquiv)&&_.getAttribute("charset")===(f.charSet==null?null:f.charSet)){L.splice(U,1);break t}}_=E.createElement(m),jr(_,m,f),E.head.appendChild(_);break;default:throw Error(r(468,m))}_[ve]=i,on(_),m=_}i.stateNode=m}else Nk(E,i.type,i.stateNode);else i.stateNode=Ik(E,m,i.memoizedProps);else _!==m?(_===null?f.stateNode!==null&&(f=f.stateNode,f.parentNode.removeChild(f)):_.count--,m===null?Nk(E,i.type,i.stateNode):Ik(E,m,i.memoizedProps)):m===null&&i.stateNode!==null&&Uv(i,i.memoizedProps,f.memoizedProps)}break;case 27:Oo(l,i),No(i),m&512&&(tr||f===null||Ka(f,f.return)),f!==null&&m&4&&Uv(i,i.memoizedProps,f.memoizedProps);break;case 5:if(Oo(l,i),No(i),m&512&&(tr||f===null||Ka(f,f.return)),i.flags&32){E=i.stateNode;try{xc(E,"")}catch(me){Sn(i,i.return,me)}}m&4&&i.stateNode!=null&&(E=i.memoizedProps,Uv(i,E,f!==null?f.memoizedProps:E)),m&1024&&($v=!0);break;case 6:if(Oo(l,i),No(i),m&4){if(i.stateNode===null)throw Error(r(162));m=i.memoizedProps,f=i.stateNode;try{f.nodeValue=m}catch(me){Sn(i,i.return,me)}}break;case 3:if(qm=null,E=Ia,Ia=Vm(l.containerInfo),Oo(l,i),Ia=E,No(i),m&4&&f!==null&&f.memoizedState.isDehydrated)try{Ef(l.containerInfo)}catch(me){Sn(i,i.return,me)}$v&&($v=!1,j2(i));break;case 4:m=Ia,Ia=Vm(i.stateNode.containerInfo),Oo(l,i),No(i),Ia=m;break;case 12:Oo(l,i),No(i);break;case 13:Oo(l,i),No(i),i.child.flags&8192&&i.memoizedState!==null!=(f!==null&&f.memoizedState!==null)&&(Qv=je()),m&4&&(m=i.updateQueue,m!==null&&(i.updateQueue=null,Vv(i,m)));break;case 22:E=i.memoizedState!==null;var Z=f!==null&&f.memoizedState!==null,pe=Pi,Ae=tr;if(Pi=pe||E,tr=Ae||Z,Oo(l,i),tr=Ae,Pi=pe,No(i),m&8192)e:for(l=i.stateNode,l._visibility=E?l._visibility&-2:l._visibility|1,E&&(f===null||Z||Pi||tr||xl(i)),f=null,l=i;;){if(l.tag===5||l.tag===26){if(f===null){Z=f=l;try{if(_=Z.stateNode,E)L=_.style,typeof L.setProperty=="function"?L.setProperty("display","none","important"):L.display="none";else{U=Z.stateNode;var Ie=Z.memoizedProps.style,he=Ie!=null&&Ie.hasOwnProperty("display")?Ie.display:null;U.style.display=he==null||typeof he=="boolean"?"":(""+he).trim()}}catch(me){Sn(Z,Z.return,me)}}}else if(l.tag===6){if(f===null){Z=l;try{Z.stateNode.nodeValue=E?"":Z.memoizedProps}catch(me){Sn(Z,Z.return,me)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===i)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===i)break e;for(;l.sibling===null;){if(l.return===null||l.return===i)break e;f===l&&(f=null),l=l.return}f===l&&(f=null),l.sibling.return=l.return,l=l.sibling}m&4&&(m=i.updateQueue,m!==null&&(f=m.retryQueue,f!==null&&(m.retryQueue=null,Vv(i,f))));break;case 19:Oo(l,i),No(i),m&4&&(m=i.updateQueue,m!==null&&(i.updateQueue=null,Vv(i,m)));break;case 30:break;case 21:break;default:Oo(l,i),No(i)}}function No(i){var l=i.flags;if(l&2){try{for(var f,m=i.return;m!==null;){if(I2(m)){f=m;break}m=m.return}if(f==null)throw Error(r(160));switch(f.tag){case 27:var E=f.stateNode,_=Hv(i);Im(i,_,E);break;case 5:var L=f.stateNode;f.flags&32&&(xc(L,""),f.flags&=-33);var U=Hv(i);Im(i,U,L);break;case 3:case 4:var Z=f.stateNode.containerInfo,pe=Hv(i);zv(i,pe,Z);break;default:throw Error(r(161))}}catch(Ae){Sn(i,i.return,Ae)}i.flags&=-3}l&4096&&(i.flags&=-4097)}function j2(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var l=i;j2(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),i=i.sibling}}function Es(i,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)P2(i,l.alternate,l),l=l.sibling}function xl(i){for(i=i.child;i!==null;){var l=i;switch(l.tag){case 0:case 11:case 14:case 15:vs(4,l,l.return),xl(l);break;case 1:Ka(l,l.return);var f=l.stateNode;typeof f.componentWillUnmount=="function"&&D2(l,l.return,f),xl(l);break;case 27:ff(l.stateNode);case 26:case 5:Ka(l,l.return),xl(l);break;case 22:l.memoizedState===null&&xl(l);break;case 30:xl(l);break;default:xl(l)}i=i.sibling}}function xs(i,l,f){for(f=f&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var m=l.alternate,E=i,_=l,L=_.flags;switch(_.tag){case 0:case 11:case 15:xs(E,_,f),tf(4,_);break;case 1:if(xs(E,_,f),m=_,E=m.stateNode,typeof E.componentDidMount=="function")try{E.componentDidMount()}catch(pe){Sn(m,m.return,pe)}if(m=_,E=m.updateQueue,E!==null){var U=m.stateNode;try{var Z=E.shared.hiddenCallbacks;if(Z!==null)for(E.shared.hiddenCallbacks=null,E=0;E<Z.length;E++)hA(Z[E],U)}catch(pe){Sn(m,m.return,pe)}}f&&L&64&&w2(_),nf(_,_.return);break;case 27:O2(_);case 26:case 5:xs(E,_,f),f&&m===null&&L&4&&R2(_),nf(_,_.return);break;case 12:xs(E,_,f);break;case 13:xs(E,_,f),f&&L&4&&F2(E,_);break;case 22:_.memoizedState===null&&xs(E,_,f),nf(_,_.return);break;case 30:break;default:xs(E,_,f)}l=l.sibling}}function Gv(i,l){var f=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(f=i.memoizedState.cachePool.pool),i=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),i!==f&&(i!=null&&i.refCount++,f!=null&&Hd(f))}function qv(i,l){i=null,l.alternate!==null&&(i=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==i&&(l.refCount++,i!=null&&Hd(i))}function Qa(i,l,f,m){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)U2(i,l,f,m),l=l.sibling}function U2(i,l,f,m){var E=l.flags;switch(l.tag){case 0:case 11:case 15:Qa(i,l,f,m),E&2048&&tf(9,l);break;case 1:Qa(i,l,f,m);break;case 3:Qa(i,l,f,m),E&2048&&(i=null,l.alternate!==null&&(i=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==i&&(l.refCount++,i!=null&&Hd(i)));break;case 12:if(E&2048){Qa(i,l,f,m),i=l.stateNode;try{var _=l.memoizedProps,L=_.id,U=_.onPostCommit;typeof U=="function"&&U(L,l.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(Z){Sn(l,l.return,Z)}}else Qa(i,l,f,m);break;case 13:Qa(i,l,f,m);break;case 23:break;case 22:_=l.stateNode,L=l.alternate,l.memoizedState!==null?_._visibility&2?Qa(i,l,f,m):rf(i,l):_._visibility&2?Qa(i,l,f,m):(_._visibility|=2,Uc(i,l,f,m,(l.subtreeFlags&10256)!==0)),E&2048&&Gv(L,l);break;case 24:Qa(i,l,f,m),E&2048&&qv(l.alternate,l);break;default:Qa(i,l,f,m)}}function Uc(i,l,f,m,E){for(E=E&&(l.subtreeFlags&10256)!==0,l=l.child;l!==null;){var _=i,L=l,U=f,Z=m,pe=L.flags;switch(L.tag){case 0:case 11:case 15:Uc(_,L,U,Z,E),tf(8,L);break;case 23:break;case 22:var Ae=L.stateNode;L.memoizedState!==null?Ae._visibility&2?Uc(_,L,U,Z,E):rf(_,L):(Ae._visibility|=2,Uc(_,L,U,Z,E)),E&&pe&2048&&Gv(L.alternate,L);break;case 24:Uc(_,L,U,Z,E),E&&pe&2048&&qv(L.alternate,L);break;default:Uc(_,L,U,Z,E)}l=l.sibling}}function rf(i,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var f=i,m=l,E=m.flags;switch(m.tag){case 22:rf(f,m),E&2048&&Gv(m.alternate,m);break;case 24:rf(f,m),E&2048&&qv(m.alternate,m);break;default:rf(f,m)}l=l.sibling}}var of=8192;function Hc(i){if(i.subtreeFlags&of)for(i=i.child;i!==null;)H2(i),i=i.sibling}function H2(i){switch(i.tag){case 26:Hc(i),i.flags&of&&i.memoizedState!==null&&EF(Ia,i.memoizedState,i.memoizedProps);break;case 5:Hc(i);break;case 3:case 4:var l=Ia;Ia=Vm(i.stateNode.containerInfo),Hc(i),Ia=l;break;case 22:i.memoizedState===null&&(l=i.alternate,l!==null&&l.memoizedState!==null?(l=of,of=16777216,Hc(i),of=l):Hc(i));break;default:Hc(i)}}function z2(i){var l=i.alternate;if(l!==null&&(i=l.child,i!==null)){l.child=null;do l=i.sibling,i.sibling=null,i=l;while(i!==null)}}function af(i){var l=i.deletions;if((i.flags&16)!==0){if(l!==null)for(var f=0;f<l.length;f++){var m=l[f];Dr=m,V2(m,i)}z2(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)$2(i),i=i.sibling}function $2(i){switch(i.tag){case 0:case 11:case 15:af(i),i.flags&2048&&vs(9,i,i.return);break;case 3:af(i);break;case 12:af(i);break;case 22:var l=i.stateNode;i.memoizedState!==null&&l._visibility&2&&(i.return===null||i.return.tag!==13)?(l._visibility&=-3,Om(i)):af(i);break;default:af(i)}}function Om(i){var l=i.deletions;if((i.flags&16)!==0){if(l!==null)for(var f=0;f<l.length;f++){var m=l[f];Dr=m,V2(m,i)}z2(i)}for(i=i.child;i!==null;){switch(l=i,l.tag){case 0:case 11:case 15:vs(8,l,l.return),Om(l);break;case 22:f=l.stateNode,f._visibility&2&&(f._visibility&=-3,Om(l));break;default:Om(l)}i=i.sibling}}function V2(i,l){for(;Dr!==null;){var f=Dr;switch(f.tag){case 0:case 11:case 15:vs(8,f,l);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:Hd(f.memoizedState.cache)}if(m=f.child,m!==null)m.return=f,Dr=m;else e:for(f=i;Dr!==null;){m=Dr;var E=m.sibling,_=m.return;if(L2(m),m===f){Dr=null;break e}if(E!==null){E.return=_,Dr=E;break e}Dr=_}}}var M7={getCacheForType:function(i){var l=qr(xr),f=l.data.get(i);return f===void 0&&(f=i(),l.data.set(i,f)),f}},F7=typeof WeakMap=="function"?WeakMap:Map,pn=0,Rn=null,qt=null,tn=0,hn=0,Po=null,Ts=!1,zc=!1,Wv=!1,Mi=0,qn=0,Ss=0,Tl=0,Yv=0,oa=0,$c=0,sf=null,bo=null,Kv=!1,Qv=0,Nm=1/0,Pm=null,Cs=null,Br=0,_s=null,Vc=null,Gc=0,Xv=0,Zv=null,G2=null,lf=0,Jv=null;function Lo(){if((pn&2)!==0&&tn!==0)return tn&-tn;if(B.T!==null){var i=Oc;return i!==0?i:i1()}return ne()}function q2(){oa===0&&(oa=(tn&536870912)===0||sn?mn():536870912);var i=ra.current;return i!==null&&(i.flags|=32),oa}function Mo(i,l,f){(i===Rn&&(hn===2||hn===9)||i.cancelPendingCommit!==null)&&(qc(i,0),As(i,tn,oa,!1)),Vn(i,f),((pn&2)===0||i!==Rn)&&(i===Rn&&((pn&2)===0&&(Tl|=f),qn===4&&As(i,tn,oa,!1)),Xa(i))}function W2(i,l,f){if((pn&6)!==0)throw Error(r(327));var m=!f&&(l&124)===0&&(l&i.expiredLanes)===0||ht(i,l),E=m?U7(i,l):n1(i,l,!0),_=m;do{if(E===0){zc&&!m&&As(i,l,0,!1);break}else{if(f=i.current.alternate,_&&!B7(f)){E=n1(i,l,!1),_=!1;continue}if(E===2){if(_=l,i.errorRecoveryDisabledLanes&_)var L=0;else L=i.pendingLanes&-536870913,L=L!==0?L:L&536870912?536870912:0;if(L!==0){l=L;e:{var U=i;E=sf;var Z=U.current.memoizedState.isDehydrated;if(Z&&(qc(U,L).flags|=256),L=n1(U,L,!1),L!==2){if(Wv&&!Z){U.errorRecoveryDisabledLanes|=_,Tl|=_,E=4;break e}_=bo,bo=E,_!==null&&(bo===null?bo=_:bo.push.apply(bo,_))}E=L}if(_=!1,E!==2)continue}}if(E===1){qc(i,0),As(i,l,0,!0);break}e:{switch(m=i,_=E,_){case 0:case 1:throw Error(r(345));case 4:if((l&4194048)!==l)break;case 6:As(m,l,oa,!Ts);break e;case 2:bo=null;break;case 3:case 5:break;default:throw Error(r(329))}if((l&62914560)===l&&(E=Qv+300-je(),10<E)){if(As(m,l,oa,!Ts),Se(m,0,!0)!==0)break e;m.timeoutHandle=Tk(Y2.bind(null,m,f,bo,Pm,Kv,l,oa,Tl,$c,Ts,_,2,-0,0),E);break e}Y2(m,f,bo,Pm,Kv,l,oa,Tl,$c,Ts,_,0,-0,0)}}break}while(!0);Xa(i)}function Y2(i,l,f,m,E,_,L,U,Z,pe,Ae,Ie,he,me){if(i.timeoutHandle=-1,Ie=l.subtreeFlags,(Ie&8192||(Ie&16785408)===16785408)&&(mf={stylesheets:null,count:0,unsuspend:vF},H2(l),Ie=xF(),Ie!==null)){i.cancelPendingCommit=Ie(tk.bind(null,i,l,_,f,m,E,L,U,Z,Ae,1,he,me)),As(i,_,L,!pe);return}tk(i,l,_,f,m,E,L,U,Z)}function B7(i){for(var l=i;;){var f=l.tag;if((f===0||f===11||f===15)&&l.flags&16384&&(f=l.updateQueue,f!==null&&(f=f.stores,f!==null)))for(var m=0;m<f.length;m++){var E=f[m],_=E.getSnapshot;E=E.value;try{if(!Ro(_(),E))return!1}catch{return!1}}if(f=l.child,l.subtreeFlags&16384&&f!==null)f.return=l,l=f;else{if(l===i)break;for(;l.sibling===null;){if(l.return===null||l.return===i)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function As(i,l,f,m){l&=~Yv,l&=~Tl,i.suspendedLanes|=l,i.pingedLanes&=~l,m&&(i.warmLanes|=l),m=i.expirationTimes;for(var E=l;0<E;){var _=31-Xe(E),L=1<<_;m[_]=-1,E&=~L}f!==0&&fo(i,f,l)}function Lm(){return(pn&6)===0?(cf(0),!1):!0}function e1(){if(qt!==null){if(hn===0)var i=qt.return;else i=qt,wi=gl=null,yv(i),Bc=null,Zd=0,i=qt;for(;i!==null;)k2(i.alternate,i),i=i.return;qt=null}}function qc(i,l){var f=i.timeoutHandle;f!==-1&&(i.timeoutHandle=-1,nF(f)),f=i.cancelPendingCommit,f!==null&&(i.cancelPendingCommit=null,f()),e1(),Rn=i,qt=f=_i(i.current,null),tn=l,hn=0,Po=null,Ts=!1,zc=ht(i,l),Wv=!1,$c=oa=Yv=Tl=Ss=qn=0,bo=sf=null,Kv=!1,(l&8)!==0&&(l|=l&32);var m=i.entangledLanes;if(m!==0)for(i=i.entanglements,m&=l;0<m;){var E=31-Xe(m),_=1<<E;l|=i[E],m&=~_}return Mi=l,rm(),f}function K2(i,l){Ut=null,B.H=Tm,l===$d||l===fm?(l=fA(),hn=3):l===cA?(l=fA(),hn=4):hn=l===p2?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,Po=l,qt===null&&(qn=1,km(i,Jo(l,i.current)))}function Q2(){var i=B.H;return B.H=Tm,i===null?Tm:i}function X2(){var i=B.A;return B.A=M7,i}function t1(){qn=4,Ts||(tn&4194048)!==tn&&ra.current!==null||(zc=!0),(Ss&134217727)===0&&(Tl&134217727)===0||Rn===null||As(Rn,tn,oa,!1)}function n1(i,l,f){var m=pn;pn|=2;var E=Q2(),_=X2();(Rn!==i||tn!==l)&&(Pm=null,qc(i,l)),l=!1;var L=qn;e:do try{if(hn!==0&&qt!==null){var U=qt,Z=Po;switch(hn){case 8:e1(),L=6;break e;case 3:case 2:case 9:case 6:ra.current===null&&(l=!0);var pe=hn;if(hn=0,Po=null,Wc(i,U,Z,pe),f&&zc){L=0;break e}break;default:pe=hn,hn=0,Po=null,Wc(i,U,Z,pe)}}j7(),L=qn;break}catch(Ae){K2(i,Ae)}while(!0);return l&&i.shellSuspendCounter++,wi=gl=null,pn=m,B.H=E,B.A=_,qt===null&&(Rn=null,tn=0,rm()),L}function j7(){for(;qt!==null;)Z2(qt)}function U7(i,l){var f=pn;pn|=2;var m=Q2(),E=X2();Rn!==i||tn!==l?(Pm=null,Nm=je()+500,qc(i,l)):zc=ht(i,l);e:do try{if(hn!==0&&qt!==null){l=qt;var _=Po;t:switch(hn){case 1:hn=0,Po=null,Wc(i,l,_,1);break;case 2:case 9:if(uA(_)){hn=0,Po=null,J2(l);break}l=function(){hn!==2&&hn!==9||Rn!==i||(hn=7),Xa(i)},_.then(l,l);break e;case 3:hn=7;break e;case 4:hn=5;break e;case 7:uA(_)?(hn=0,Po=null,J2(l)):(hn=0,Po=null,Wc(i,l,_,7));break;case 5:var L=null;switch(qt.tag){case 26:L=qt.memoizedState;case 5:case 27:var U=qt;if(!L||Pk(L)){hn=0,Po=null;var Z=U.sibling;if(Z!==null)qt=Z;else{var pe=U.return;pe!==null?(qt=pe,Mm(pe)):qt=null}break t}}hn=0,Po=null,Wc(i,l,_,5);break;case 6:hn=0,Po=null,Wc(i,l,_,6);break;case 8:e1(),qn=6;break e;default:throw Error(r(462))}}H7();break}catch(Ae){K2(i,Ae)}while(!0);return wi=gl=null,B.H=m,B.A=E,pn=f,qt!==null?0:(Rn=null,tn=0,rm(),qn)}function H7(){for(;qt!==null&&!gt();)Z2(qt)}function Z2(i){var l=_2(i.alternate,i,Mi);i.memoizedProps=i.pendingProps,l===null?Mm(i):qt=l}function J2(i){var l=i,f=l.alternate;switch(l.tag){case 15:case 0:l=v2(f,l,l.pendingProps,l.type,void 0,tn);break;case 11:l=v2(f,l,l.pendingProps,l.type.render,l.ref,tn);break;case 5:yv(l);default:k2(f,l),l=qt=eA(l,Mi),l=_2(f,l,Mi)}i.memoizedProps=i.pendingProps,l===null?Mm(i):qt=l}function Wc(i,l,f,m){wi=gl=null,yv(l),Bc=null,Zd=0;var E=l.return;try{if(R7(i,E,l,f,tn)){qn=1,km(i,Jo(f,i.current)),qt=null;return}}catch(_){if(E!==null)throw qt=E,_;qn=1,km(i,Jo(f,i.current)),qt=null;return}l.flags&32768?(sn||m===1?i=!0:zc||(tn&536870912)!==0?i=!1:(Ts=i=!0,(m===2||m===9||m===3||m===6)&&(m=ra.current,m!==null&&m.tag===13&&(m.flags|=16384))),ek(l,i)):Mm(l)}function Mm(i){var l=i;do{if((l.flags&32768)!==0){ek(l,Ts);return}i=l.return;var f=O7(l.alternate,l,Mi);if(f!==null){qt=f;return}if(l=l.sibling,l!==null){qt=l;return}qt=l=i}while(l!==null);qn===0&&(qn=5)}function ek(i,l){do{var f=N7(i.alternate,i);if(f!==null){f.flags&=32767,qt=f;return}if(f=i.return,f!==null&&(f.flags|=32768,f.subtreeFlags=0,f.deletions=null),!l&&(i=i.sibling,i!==null)){qt=i;return}qt=i=f}while(i!==null);qn=6,qt=null}function tk(i,l,f,m,E,_,L,U,Z){i.cancelPendingCommit=null;do Fm();while(Br!==0);if((pn&6)!==0)throw Error(r(327));if(l!==null){if(l===i.current)throw Error(r(177));if(_=l.lanes|l.childLanes,_|=qb,lr(i,f,_,L,U,Z),i===Rn&&(qt=Rn=null,tn=0),Vc=l,_s=i,Gc=f,Xv=_,Zv=E,G2=m,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,G7(Ue,function(){return ik(),null})):(i.callbackNode=null,i.callbackPriority=0),m=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||m){m=B.T,B.T=null,E=X.p,X.p=2,L=pn,pn|=4;try{P7(i,l,f)}finally{pn=L,X.p=E,B.T=m}}Br=1,nk(),rk(),ok()}}function nk(){if(Br===1){Br=0;var i=_s,l=Vc,f=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||f){f=B.T,B.T=null;var m=X.p;X.p=2;var E=pn;pn|=4;try{B2(l,i);var _=h1,L=V_(i.containerInfo),U=_.focusedElem,Z=_.selectionRange;if(L!==U&&U&&U.ownerDocument&&$_(U.ownerDocument.documentElement,U)){if(Z!==null&&Hb(U)){var pe=Z.start,Ae=Z.end;if(Ae===void 0&&(Ae=pe),"selectionStart"in U)U.selectionStart=pe,U.selectionEnd=Math.min(Ae,U.value.length);else{var Ie=U.ownerDocument||document,he=Ie&&Ie.defaultView||window;if(he.getSelection){var me=he.getSelection(),wt=U.textContent.length,xt=Math.min(Z.start,wt),bn=Z.end===void 0?xt:Math.min(Z.end,wt);!me.extend&&xt>bn&&(L=bn,bn=xt,xt=L);var le=z_(U,xt),se=z_(U,bn);if(le&&se&&(me.rangeCount!==1||me.anchorNode!==le.node||me.anchorOffset!==le.offset||me.focusNode!==se.node||me.focusOffset!==se.offset)){var ue=Ie.createRange();ue.setStart(le.node,le.offset),me.removeAllRanges(),xt>bn?(me.addRange(ue),me.extend(se.node,se.offset)):(ue.setEnd(se.node,se.offset),me.addRange(ue))}}}}for(Ie=[],me=U;me=me.parentNode;)me.nodeType===1&&Ie.push({element:me,left:me.scrollLeft,top:me.scrollTop});for(typeof U.focus=="function"&&U.focus(),U=0;U<Ie.length;U++){var De=Ie[U];De.element.scrollLeft=De.left,De.element.scrollTop=De.top}}Km=!!p1,h1=p1=null}finally{pn=E,X.p=m,B.T=f}}i.current=l,Br=2}}function rk(){if(Br===2){Br=0;var i=_s,l=Vc,f=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||f){f=B.T,B.T=null;var m=X.p;X.p=2;var E=pn;pn|=4;try{P2(i,l.alternate,l)}finally{pn=E,X.p=m,B.T=f}}Br=3}}function ok(){if(Br===4||Br===3){Br=0,_t();var i=_s,l=Vc,f=Gc,m=G2;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?Br=5:(Br=0,Vc=_s=null,ak(i,i.pendingLanes));var E=i.pendingLanes;if(E===0&&(Cs=null),yt(f),l=l.stateNode,ge&&typeof ge.onCommitFiberRoot=="function")try{ge.onCommitFiberRoot(de,l,void 0,(l.current.flags&128)===128)}catch{}if(m!==null){l=B.T,E=X.p,X.p=2,B.T=null;try{for(var _=i.onRecoverableError,L=0;L<m.length;L++){var U=m[L];_(U.value,{componentStack:U.stack})}}finally{B.T=l,X.p=E}}(Gc&3)!==0&&Fm(),Xa(i),E=i.pendingLanes,(f&4194090)!==0&&(E&42)!==0?i===Jv?lf++:(lf=0,Jv=i):lf=0,cf(0)}}function ak(i,l){(i.pooledCacheLanes&=l)===0&&(l=i.pooledCache,l!=null&&(i.pooledCache=null,Hd(l)))}function Fm(i){return nk(),rk(),ok(),ik()}function ik(){if(Br!==5)return!1;var i=_s,l=Xv;Xv=0;var f=yt(Gc),m=B.T,E=X.p;try{X.p=32>f?32:f,B.T=null,f=Zv,Zv=null;var _=_s,L=Gc;if(Br=0,Vc=_s=null,Gc=0,(pn&6)!==0)throw Error(r(331));var U=pn;if(pn|=4,$2(_.current),U2(_,_.current,L,f),pn=U,cf(0,!1),ge&&typeof ge.onPostCommitFiberRoot=="function")try{ge.onPostCommitFiberRoot(de,_)}catch{}return!0}finally{X.p=E,B.T=m,ak(i,l)}}function sk(i,l,f){l=Jo(f,l),l=Iv(i.stateNode,l,2),i=ms(i,l,2),i!==null&&(Vn(i,2),Xa(i))}function Sn(i,l,f){if(i.tag===3)sk(i,i,f);else for(;l!==null;){if(l.tag===3){sk(l,i,f);break}else if(l.tag===1){var m=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(Cs===null||!Cs.has(m))){i=Jo(f,i),f=d2(2),m=ms(l,f,2),m!==null&&(f2(f,m,l,i),Vn(m,2),Xa(m));break}}l=l.return}}function r1(i,l,f){var m=i.pingCache;if(m===null){m=i.pingCache=new F7;var E=new Set;m.set(l,E)}else E=m.get(l),E===void 0&&(E=new Set,m.set(l,E));E.has(f)||(Wv=!0,E.add(f),i=z7.bind(null,i,l,f),l.then(i,i))}function z7(i,l,f){var m=i.pingCache;m!==null&&m.delete(l),i.pingedLanes|=i.suspendedLanes&f,i.warmLanes&=~f,Rn===i&&(tn&f)===f&&(qn===4||qn===3&&(tn&62914560)===tn&&300>je()-Qv?(pn&2)===0&&qc(i,0):Yv|=f,$c===tn&&($c=0)),Xa(i)}function lk(i,l){l===0&&(l=Lr()),i=wc(i,l),i!==null&&(Vn(i,l),Xa(i))}function $7(i){var l=i.memoizedState,f=0;l!==null&&(f=l.retryLane),lk(i,f)}function V7(i,l){var f=0;switch(i.tag){case 13:var m=i.stateNode,E=i.memoizedState;E!==null&&(f=E.retryLane);break;case 19:m=i.stateNode;break;case 22:m=i.stateNode._retryCache;break;default:throw Error(r(314))}m!==null&&m.delete(l),lk(i,f)}function G7(i,l){return nt(i,l)}var Bm=null,Yc=null,o1=!1,jm=!1,a1=!1,Sl=0;function Xa(i){i!==Yc&&i.next===null&&(Yc===null?Bm=Yc=i:Yc=Yc.next=i),jm=!0,o1||(o1=!0,W7())}function cf(i,l){if(!a1&&jm){a1=!0;do for(var f=!1,m=Bm;m!==null;){if(i!==0){var E=m.pendingLanes;if(E===0)var _=0;else{var L=m.suspendedLanes,U=m.pingedLanes;_=(1<<31-Xe(42|i)+1)-1,_&=E&~(L&~U),_=_&201326741?_&201326741|1:_?_|2:0}_!==0&&(f=!0,fk(m,_))}else _=tn,_=Se(m,m===Rn?_:0,m.cancelPendingCommit!==null||m.timeoutHandle!==-1),(_&3)===0||ht(m,_)||(f=!0,fk(m,_));m=m.next}while(f);a1=!1}}function q7(){ck()}function ck(){jm=o1=!1;var i=0;Sl!==0&&(tF()&&(i=Sl),Sl=0);for(var l=je(),f=null,m=Bm;m!==null;){var E=m.next,_=uk(m,l);_===0?(m.next=null,f===null?Bm=E:f.next=E,E===null&&(Yc=f)):(f=m,(i!==0||(_&3)!==0)&&(jm=!0)),m=E}cf(i)}function uk(i,l){for(var f=i.suspendedLanes,m=i.pingedLanes,E=i.expirationTimes,_=i.pendingLanes&-62914561;0<_;){var L=31-Xe(_),U=1<<L,Z=E[L];Z===-1?((U&f)===0||(U&m)!==0)&&(E[L]=rt(U,l)):Z<=l&&(i.expiredLanes|=U),_&=~U}if(l=Rn,f=tn,f=Se(i,i===l?f:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),m=i.callbackNode,f===0||i===l&&(hn===2||hn===9)||i.cancelPendingCommit!==null)return m!==null&&m!==null&&Re(m),i.callbackNode=null,i.callbackPriority=0;if((f&3)===0||ht(i,f)){if(l=f&-f,l===i.callbackPriority)return l;switch(m!==null&&Re(m),yt(f)){case 2:case 8:f=ft;break;case 32:f=Ue;break;case 268435456:f=Jt;break;default:f=Ue}return m=dk.bind(null,i),f=nt(f,m),i.callbackPriority=l,i.callbackNode=f,l}return m!==null&&m!==null&&Re(m),i.callbackPriority=2,i.callbackNode=null,2}function dk(i,l){if(Br!==0&&Br!==5)return i.callbackNode=null,i.callbackPriority=0,null;var f=i.callbackNode;if(Fm()&&i.callbackNode!==f)return null;var m=tn;return m=Se(i,i===Rn?m:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),m===0?null:(W2(i,m,l),uk(i,je()),i.callbackNode!=null&&i.callbackNode===f?dk.bind(null,i):null)}function fk(i,l){if(Fm())return null;W2(i,l,!0)}function W7(){rF(function(){(pn&6)!==0?nt(lt,q7):ck()})}function i1(){return Sl===0&&(Sl=mn()),Sl}function pk(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:Qh(""+i)}function hk(i,l){var f=l.ownerDocument.createElement("input");return f.name=l.name,f.value=l.value,i.id&&f.setAttribute("form",i.id),l.parentNode.insertBefore(f,l),i=new FormData(i),f.parentNode.removeChild(f),i}function Y7(i,l,f,m,E){if(l==="submit"&&f&&f.stateNode===E){var _=pk((E[we]||null).action),L=m.submitter;L&&(l=(l=L[we]||null)?pk(l.formAction):L.getAttribute("formAction"),l!==null&&(_=l,L=null));var U=new em("action","action",null,m,E);i.push({event:U,listeners:[{instance:null,listener:function(){if(m.defaultPrevented){if(Sl!==0){var Z=L?hk(E,L):new FormData(E);Av(f,{pending:!0,data:Z,method:E.method,action:_},null,Z)}}else typeof _=="function"&&(U.preventDefault(),Z=L?hk(E,L):new FormData(E),Av(f,{pending:!0,data:Z,method:E.method,action:_},_,Z))},currentTarget:E}]})}}for(var s1=0;s1<Gb.length;s1++){var l1=Gb[s1],K7=l1.toLowerCase(),Q7=l1[0].toUpperCase()+l1.slice(1);Ra(K7,"on"+Q7)}Ra(W_,"onAnimationEnd"),Ra(Y_,"onAnimationIteration"),Ra(K_,"onAnimationStart"),Ra("dblclick","onDoubleClick"),Ra("focusin","onFocus"),Ra("focusout","onBlur"),Ra(p7,"onTransitionRun"),Ra(h7,"onTransitionStart"),Ra(m7,"onTransitionCancel"),Ra(Q_,"onTransitionEnd"),Qo("onMouseEnter",["mouseout","mouseover"]),Qo("onMouseLeave",["mouseout","mouseover"]),Qo("onPointerEnter",["pointerout","pointerover"]),Qo("onPointerLeave",["pointerout","pointerover"]),no("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),no("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),no("onBeforeInput",["compositionend","keypress","textInput","paste"]),no("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),no("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),no("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var uf="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(" "),X7=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(uf));function mk(i,l){l=(l&4)!==0;for(var f=0;f<i.length;f++){var m=i[f],E=m.event;m=m.listeners;e:{var _=void 0;if(l)for(var L=m.length-1;0<=L;L--){var U=m[L],Z=U.instance,pe=U.currentTarget;if(U=U.listener,Z!==_&&E.isPropagationStopped())break e;_=U,E.currentTarget=pe;try{_(E)}catch(Ae){Am(Ae)}E.currentTarget=null,_=Z}else for(L=0;L<m.length;L++){if(U=m[L],Z=U.instance,pe=U.currentTarget,U=U.listener,Z!==_&&E.isPropagationStopped())break e;_=U,E.currentTarget=pe;try{_(E)}catch(Ae){Am(Ae)}E.currentTarget=null,_=Z}}}}function Wt(i,l){var f=l[ot];f===void 0&&(f=l[ot]=new Set);var m=i+"__bubble";f.has(m)||(gk(l,i,2,!1),f.add(m))}function c1(i,l,f){var m=0;l&&(m|=4),gk(f,i,m,l)}var Um="_reactListening"+Math.random().toString(36).slice(2);function u1(i){if(!i[Um]){i[Um]=!0,Xt.forEach(function(f){f!=="selectionchange"&&(X7.has(f)||c1(f,!1,i),c1(f,!0,i))});var l=i.nodeType===9?i:i.ownerDocument;l===null||l[Um]||(l[Um]=!0,c1("selectionchange",!1,l))}}function gk(i,l,f,m){switch(Uk(l)){case 2:var E=CF;break;case 8:E=_F;break;default:E=C1}f=E.bind(null,l,f,i),E=void 0,!Ob||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(E=!0),m?E!==void 0?i.addEventListener(l,f,{capture:!0,passive:E}):i.addEventListener(l,f,!0):E!==void 0?i.addEventListener(l,f,{passive:E}):i.addEventListener(l,f,!1)}function d1(i,l,f,m,E){var _=m;if((l&1)===0&&(l&2)===0&&m!==null)e:for(;;){if(m===null)return;var L=m.tag;if(L===3||L===4){var U=m.stateNode.containerInfo;if(U===E)break;if(L===4)for(L=m.return;L!==null;){var Z=L.tag;if((Z===3||Z===4)&&L.stateNode.containerInfo===E)return;L=L.return}for(;U!==null;){if(L=Rt(U),L===null)return;if(Z=L.tag,Z===5||Z===6||Z===26||Z===27){m=_=L;continue e}U=U.parentNode}}m=m.return}S_(function(){var pe=_,Ae=Rb(f),Ie=[];e:{var he=X_.get(i);if(he!==void 0){var me=em,wt=i;switch(i){case"keypress":if(Zh(f)===0)break e;case"keydown":case"keyup":me=G8;break;case"focusin":wt="focus",me=Mb;break;case"focusout":wt="blur",me=Mb;break;case"beforeblur":case"afterblur":me=Mb;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":me=A_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":me=N8;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":me=Y8;break;case W_:case Y_:case K_:me=M8;break;case Q_:me=Q8;break;case"scroll":case"scrollend":me=I8;break;case"wheel":me=Z8;break;case"copy":case"cut":case"paste":me=B8;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":me=w_;break;case"toggle":case"beforetoggle":me=e7}var xt=(l&4)!==0,bn=!xt&&(i==="scroll"||i==="scrollend"),le=xt?he!==null?he+"Capture":null:he;xt=[];for(var se=pe,ue;se!==null;){var De=se;if(ue=De.stateNode,De=De.tag,De!==5&&De!==26&&De!==27||ue===null||le===null||(De=wd(se,le),De!=null&&xt.push(df(se,De,ue))),bn)break;se=se.return}0<xt.length&&(he=new me(he,wt,null,f,Ae),Ie.push({event:he,listeners:xt}))}}if((l&7)===0){e:{if(he=i==="mouseover"||i==="pointerover",me=i==="mouseout"||i==="pointerout",he&&f!==Db&&(wt=f.relatedTarget||f.fromElement)&&(Rt(wt)||wt[Ye]))break e;if((me||he)&&(he=Ae.window===Ae?Ae:(he=Ae.ownerDocument)?he.defaultView||he.parentWindow:window,me?(wt=f.relatedTarget||f.toElement,me=pe,wt=wt?Rt(wt):null,wt!==null&&(bn=a(wt),xt=wt.tag,wt!==bn||xt!==5&&xt!==27&&xt!==6)&&(wt=null)):(me=null,wt=pe),me!==wt)){if(xt=A_,De="onMouseLeave",le="onMouseEnter",se="mouse",(i==="pointerout"||i==="pointerover")&&(xt=w_,De="onPointerLeave",le="onPointerEnter",se="pointer"),bn=me==null?he:Nn(me),ue=wt==null?he:Nn(wt),he=new xt(De,se+"leave",me,f,Ae),he.target=bn,he.relatedTarget=ue,De=null,Rt(Ae)===pe&&(xt=new xt(le,se+"enter",wt,f,Ae),xt.target=ue,xt.relatedTarget=bn,De=xt),bn=De,me&&wt)t:{for(xt=me,le=wt,se=0,ue=xt;ue;ue=Kc(ue))se++;for(ue=0,De=le;De;De=Kc(De))ue++;for(;0<se-ue;)xt=Kc(xt),se--;for(;0<ue-se;)le=Kc(le),ue--;for(;se--;){if(xt===le||le!==null&&xt===le.alternate)break t;xt=Kc(xt),le=Kc(le)}xt=null}else xt=null;me!==null&&yk(Ie,he,me,xt,!1),wt!==null&&bn!==null&&yk(Ie,bn,wt,xt,!0)}}e:{if(he=pe?Nn(pe):window,me=he.nodeName&&he.nodeName.toLowerCase(),me==="select"||me==="input"&&he.type==="file")var tt=M_;else if(P_(he))if(F_)tt=u7;else{tt=l7;var Vt=s7}else me=he.nodeName,!me||me.toLowerCase()!=="input"||he.type!=="checkbox"&&he.type!=="radio"?pe&&wb(pe.elementType)&&(tt=M_):tt=c7;if(tt&&(tt=tt(i,pe))){L_(Ie,tt,f,Ae);break e}Vt&&Vt(i,he,pe),i==="focusout"&&pe&&he.type==="number"&&pe.memoizedProps.value!=null&&kb(he,"number",he.value)}switch(Vt=pe?Nn(pe):window,i){case"focusin":(P_(Vt)||Vt.contentEditable==="true")&&(_c=Vt,zb=pe,Md=null);break;case"focusout":Md=zb=_c=null;break;case"mousedown":$b=!0;break;case"contextmenu":case"mouseup":case"dragend":$b=!1,G_(Ie,f,Ae);break;case"selectionchange":if(f7)break;case"keydown":case"keyup":G_(Ie,f,Ae)}var pt;if(Bb)e:{switch(i){case"compositionstart":var Tt="onCompositionStart";break e;case"compositionend":Tt="onCompositionEnd";break e;case"compositionupdate":Tt="onCompositionUpdate";break e}Tt=void 0}else Cc?O_(i,f)&&(Tt="onCompositionEnd"):i==="keydown"&&f.keyCode===229&&(Tt="onCompositionStart");Tt&&(D_&&f.locale!=="ko"&&(Cc||Tt!=="onCompositionStart"?Tt==="onCompositionEnd"&&Cc&&(pt=C_()):(ds=Ae,Nb="value"in ds?ds.value:ds.textContent,Cc=!0)),Vt=Hm(pe,Tt),0<Vt.length&&(Tt=new k_(Tt,i,null,f,Ae),Ie.push({event:Tt,listeners:Vt}),pt?Tt.data=pt:(pt=N_(f),pt!==null&&(Tt.data=pt)))),(pt=n7?r7(i,f):o7(i,f))&&(Tt=Hm(pe,"onBeforeInput"),0<Tt.length&&(Vt=new k_("onBeforeInput","beforeinput",null,f,Ae),Ie.push({event:Vt,listeners:Tt}),Vt.data=pt)),Y7(Ie,i,pe,f,Ae)}mk(Ie,l)})}function df(i,l,f){return{instance:i,listener:l,currentTarget:f}}function Hm(i,l){for(var f=l+"Capture",m=[];i!==null;){var E=i,_=E.stateNode;if(E=E.tag,E!==5&&E!==26&&E!==27||_===null||(E=wd(i,f),E!=null&&m.unshift(df(i,E,_)),E=wd(i,l),E!=null&&m.push(df(i,E,_))),i.tag===3)return m;i=i.return}return[]}function Kc(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function yk(i,l,f,m,E){for(var _=l._reactName,L=[];f!==null&&f!==m;){var U=f,Z=U.alternate,pe=U.stateNode;if(U=U.tag,Z!==null&&Z===m)break;U!==5&&U!==26&&U!==27||pe===null||(Z=pe,E?(pe=wd(f,_),pe!=null&&L.unshift(df(f,pe,Z))):E||(pe=wd(f,_),pe!=null&&L.push(df(f,pe,Z)))),f=f.return}L.length!==0&&i.push({event:l,listeners:L})}var Z7=/\r\n?/g,J7=/\u0000|\uFFFD/g;function bk(i){return(typeof i=="string"?i:""+i).replace(Z7,`
|
|
50
|
+
`).replace(J7,"")}function vk(i,l){return l=bk(l),bk(i)===l}function zm(){}function yn(i,l,f,m,E,_){switch(f){case"children":typeof m=="string"?l==="body"||l==="textarea"&&m===""||xc(i,m):(typeof m=="number"||typeof m=="bigint")&&l!=="body"&&xc(i,""+m);break;case"className":Si(i,"class",m);break;case"tabIndex":Si(i,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":Si(i,f,m);break;case"style":x_(i,m,_);break;case"data":if(l!=="object"){Si(i,"data",m);break}case"src":case"href":if(m===""&&(l!=="a"||f!=="href")){i.removeAttribute(f);break}if(m==null||typeof m=="function"||typeof m=="symbol"||typeof m=="boolean"){i.removeAttribute(f);break}m=Qh(""+m),i.setAttribute(f,m);break;case"action":case"formAction":if(typeof m=="function"){i.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 _=="function"&&(f==="formAction"?(l!=="input"&&yn(i,l,"name",E.name,E,null),yn(i,l,"formEncType",E.formEncType,E,null),yn(i,l,"formMethod",E.formMethod,E,null),yn(i,l,"formTarget",E.formTarget,E,null)):(yn(i,l,"encType",E.encType,E,null),yn(i,l,"method",E.method,E,null),yn(i,l,"target",E.target,E,null)));if(m==null||typeof m=="symbol"||typeof m=="boolean"){i.removeAttribute(f);break}m=Qh(""+m),i.setAttribute(f,m);break;case"onClick":m!=null&&(i.onclick=zm);break;case"onScroll":m!=null&&Wt("scroll",i);break;case"onScrollEnd":m!=null&&Wt("scrollend",i);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(f=m.__html,f!=null){if(E.children!=null)throw Error(r(60));i.innerHTML=f}}break;case"multiple":i.multiple=m&&typeof m!="function"&&typeof m!="symbol";break;case"muted":i.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"){i.removeAttribute("xlink:href");break}f=Qh(""+m),i.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"?i.setAttribute(f,""+m):i.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"?i.setAttribute(f,""):i.removeAttribute(f);break;case"capture":case"download":m===!0?i.setAttribute(f,""):m!==!1&&m!=null&&typeof m!="function"&&typeof m!="symbol"?i.setAttribute(f,m):i.removeAttribute(f);break;case"cols":case"rows":case"size":case"span":m!=null&&typeof m!="function"&&typeof m!="symbol"&&!isNaN(m)&&1<=m?i.setAttribute(f,m):i.removeAttribute(f);break;case"rowSpan":case"start":m==null||typeof m=="function"||typeof m=="symbol"||isNaN(m)?i.removeAttribute(f):i.setAttribute(f,m);break;case"popover":Wt("beforetoggle",i),Wt("toggle",i),Xo(i,"popover",m);break;case"xlinkActuate":$t(i,"http://www.w3.org/1999/xlink","xlink:actuate",m);break;case"xlinkArcrole":$t(i,"http://www.w3.org/1999/xlink","xlink:arcrole",m);break;case"xlinkRole":$t(i,"http://www.w3.org/1999/xlink","xlink:role",m);break;case"xlinkShow":$t(i,"http://www.w3.org/1999/xlink","xlink:show",m);break;case"xlinkTitle":$t(i,"http://www.w3.org/1999/xlink","xlink:title",m);break;case"xlinkType":$t(i,"http://www.w3.org/1999/xlink","xlink:type",m);break;case"xmlBase":$t(i,"http://www.w3.org/XML/1998/namespace","xml:base",m);break;case"xmlLang":$t(i,"http://www.w3.org/XML/1998/namespace","xml:lang",m);break;case"xmlSpace":$t(i,"http://www.w3.org/XML/1998/namespace","xml:space",m);break;case"is":Xo(i,"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=D8.get(f)||f,Xo(i,f,m))}}function f1(i,l,f,m,E,_){switch(f){case"style":x_(i,m,_);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(f=m.__html,f!=null){if(E.children!=null)throw Error(r(60));i.innerHTML=f}}break;case"children":typeof m=="string"?xc(i,m):(typeof m=="number"||typeof m=="bigint")&&xc(i,""+m);break;case"onScroll":m!=null&&Wt("scroll",i);break;case"onScrollEnd":m!=null&&Wt("scrollend",i);break;case"onClick":m!=null&&(i.onclick=zm);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ss.hasOwnProperty(f))e:{if(f[0]==="o"&&f[1]==="n"&&(E=f.endsWith("Capture"),l=f.slice(2,E?f.length-7:void 0),_=i[we]||null,_=_!=null?_[f]:null,typeof _=="function"&&i.removeEventListener(l,_,E),typeof m=="function")){typeof _!="function"&&_!==null&&(f in i?i[f]=null:i.hasAttribute(f)&&i.removeAttribute(f)),i.addEventListener(l,m,E);break e}f in i?i[f]=m:m===!0?i.setAttribute(f,""):Xo(i,f,m)}}}function jr(i,l,f){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Wt("error",i),Wt("load",i);var m=!1,E=!1,_;for(_ in f)if(f.hasOwnProperty(_)){var L=f[_];if(L!=null)switch(_){case"src":m=!0;break;case"srcSet":E=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:yn(i,l,_,L,f,null)}}E&&yn(i,l,"srcSet",f.srcSet,f,null),m&&yn(i,l,"src",f.src,f,null);return;case"input":Wt("invalid",i);var U=_=L=E=null,Z=null,pe=null;for(m in f)if(f.hasOwnProperty(m)){var Ae=f[m];if(Ae!=null)switch(m){case"name":E=Ae;break;case"type":L=Ae;break;case"checked":Z=Ae;break;case"defaultChecked":pe=Ae;break;case"value":_=Ae;break;case"defaultValue":U=Ae;break;case"children":case"dangerouslySetInnerHTML":if(Ae!=null)throw Error(r(137,l));break;default:yn(i,l,m,Ae,f,null)}}y_(i,_,U,Z,pe,L,E,!1),Yh(i);return;case"select":Wt("invalid",i),m=L=_=null;for(E in f)if(f.hasOwnProperty(E)&&(U=f[E],U!=null))switch(E){case"value":_=U;break;case"defaultValue":L=U;break;case"multiple":m=U;default:yn(i,l,E,U,f,null)}l=_,f=L,i.multiple=!!m,l!=null?Ec(i,!!m,l,!1):f!=null&&Ec(i,!!m,f,!0);return;case"textarea":Wt("invalid",i),_=E=m=null;for(L in f)if(f.hasOwnProperty(L)&&(U=f[L],U!=null))switch(L){case"value":m=U;break;case"defaultValue":E=U;break;case"children":_=U;break;case"dangerouslySetInnerHTML":if(U!=null)throw Error(r(91));break;default:yn(i,l,L,U,f,null)}v_(i,m,E,_),Yh(i);return;case"option":for(Z in f)if(f.hasOwnProperty(Z)&&(m=f[Z],m!=null))switch(Z){case"selected":i.selected=m&&typeof m!="function"&&typeof m!="symbol";break;default:yn(i,l,Z,m,f,null)}return;case"dialog":Wt("beforetoggle",i),Wt("toggle",i),Wt("cancel",i),Wt("close",i);break;case"iframe":case"object":Wt("load",i);break;case"video":case"audio":for(m=0;m<uf.length;m++)Wt(uf[m],i);break;case"image":Wt("error",i),Wt("load",i);break;case"details":Wt("toggle",i);break;case"embed":case"source":case"link":Wt("error",i),Wt("load",i);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,l));default:yn(i,l,pe,m,f,null)}return;default:if(wb(l)){for(Ae in f)f.hasOwnProperty(Ae)&&(m=f[Ae],m!==void 0&&f1(i,l,Ae,m,f,void 0));return}}for(U in f)f.hasOwnProperty(U)&&(m=f[U],m!=null&&yn(i,l,U,m,f,null))}function eF(i,l,f,m){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var E=null,_=null,L=null,U=null,Z=null,pe=null,Ae=null;for(me in f){var Ie=f[me];if(f.hasOwnProperty(me)&&Ie!=null)switch(me){case"checked":break;case"value":break;case"defaultValue":Z=Ie;default:m.hasOwnProperty(me)||yn(i,l,me,null,m,Ie)}}for(var he in m){var me=m[he];if(Ie=f[he],m.hasOwnProperty(he)&&(me!=null||Ie!=null))switch(he){case"type":_=me;break;case"name":E=me;break;case"checked":pe=me;break;case"defaultChecked":Ae=me;break;case"value":L=me;break;case"defaultValue":U=me;break;case"children":case"dangerouslySetInnerHTML":if(me!=null)throw Error(r(137,l));break;default:me!==Ie&&yn(i,l,he,me,m,Ie)}}Ab(i,L,U,Z,pe,Ae,_,E);return;case"select":me=L=U=he=null;for(_ in f)if(Z=f[_],f.hasOwnProperty(_)&&Z!=null)switch(_){case"value":break;case"multiple":me=Z;default:m.hasOwnProperty(_)||yn(i,l,_,null,m,Z)}for(E in m)if(_=m[E],Z=f[E],m.hasOwnProperty(E)&&(_!=null||Z!=null))switch(E){case"value":he=_;break;case"defaultValue":U=_;break;case"multiple":L=_;default:_!==Z&&yn(i,l,E,_,m,Z)}l=U,f=L,m=me,he!=null?Ec(i,!!f,he,!1):!!m!=!!f&&(l!=null?Ec(i,!!f,l,!0):Ec(i,!!f,f?[]:"",!1));return;case"textarea":me=he=null;for(U in f)if(E=f[U],f.hasOwnProperty(U)&&E!=null&&!m.hasOwnProperty(U))switch(U){case"value":break;case"children":break;default:yn(i,l,U,null,m,E)}for(L in m)if(E=m[L],_=f[L],m.hasOwnProperty(L)&&(E!=null||_!=null))switch(L){case"value":he=E;break;case"defaultValue":me=E;break;case"children":break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(r(91));break;default:E!==_&&yn(i,l,L,E,m,_)}b_(i,he,me);return;case"option":for(var wt in f)if(he=f[wt],f.hasOwnProperty(wt)&&he!=null&&!m.hasOwnProperty(wt))switch(wt){case"selected":i.selected=!1;break;default:yn(i,l,wt,null,m,he)}for(Z in m)if(he=m[Z],me=f[Z],m.hasOwnProperty(Z)&&he!==me&&(he!=null||me!=null))switch(Z){case"selected":i.selected=he&&typeof he!="function"&&typeof he!="symbol";break;default:yn(i,l,Z,he,m,me)}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 xt in f)he=f[xt],f.hasOwnProperty(xt)&&he!=null&&!m.hasOwnProperty(xt)&&yn(i,l,xt,null,m,he);for(pe in m)if(he=m[pe],me=f[pe],m.hasOwnProperty(pe)&&he!==me&&(he!=null||me!=null))switch(pe){case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(r(137,l));break;default:yn(i,l,pe,he,m,me)}return;default:if(wb(l)){for(var bn in f)he=f[bn],f.hasOwnProperty(bn)&&he!==void 0&&!m.hasOwnProperty(bn)&&f1(i,l,bn,void 0,m,he);for(Ae in m)he=m[Ae],me=f[Ae],!m.hasOwnProperty(Ae)||he===me||he===void 0&&me===void 0||f1(i,l,Ae,he,m,me);return}}for(var le in f)he=f[le],f.hasOwnProperty(le)&&he!=null&&!m.hasOwnProperty(le)&&yn(i,l,le,null,m,he);for(Ie in m)he=m[Ie],me=f[Ie],!m.hasOwnProperty(Ie)||he===me||he==null&&me==null||yn(i,l,Ie,he,m,me)}var p1=null,h1=null;function $m(i){return i.nodeType===9?i:i.ownerDocument}function Ek(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function xk(i,l){if(i===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&l==="foreignObject"?0:i}function m1(i,l){return i==="textarea"||i==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var g1=null;function tF(){var i=window.event;return i&&i.type==="popstate"?i===g1?!1:(g1=i,!0):(g1=null,!1)}var Tk=typeof setTimeout=="function"?setTimeout:void 0,nF=typeof clearTimeout=="function"?clearTimeout:void 0,Sk=typeof Promise=="function"?Promise:void 0,rF=typeof queueMicrotask=="function"?queueMicrotask:typeof Sk<"u"?function(i){return Sk.resolve(null).then(i).catch(oF)}:Tk;function oF(i){setTimeout(function(){throw i})}function ks(i){return i==="head"}function Ck(i,l){var f=l,m=0,E=0;do{var _=f.nextSibling;if(i.removeChild(f),_&&_.nodeType===8)if(f=_.data,f==="/$"){if(0<m&&8>m){f=m;var L=i.ownerDocument;if(f&1&&ff(L.documentElement),f&2&&ff(L.body),f&4)for(f=L.head,ff(f),L=f.firstChild;L;){var U=L.nextSibling,Z=L.nodeName;L[bt]||Z==="SCRIPT"||Z==="STYLE"||Z==="LINK"&&L.rel.toLowerCase()==="stylesheet"||f.removeChild(L),L=U}}if(E===0){i.removeChild(_),Ef(l);return}E--}else f==="$"||f==="$?"||f==="$!"?E++:m=f.charCodeAt(0)-48;else m=0;f=_}while(f);Ef(l)}function y1(i){var l=i.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var f=l;switch(l=l.nextSibling,f.nodeName){case"HTML":case"HEAD":case"BODY":y1(f),kt(f);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(f.rel.toLowerCase()==="stylesheet")continue}i.removeChild(f)}}function aF(i,l,f,m){for(;i.nodeType===1;){var E=f;if(i.nodeName.toLowerCase()!==l.toLowerCase()){if(!m&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(m){if(!i[bt])switch(l){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(_=i.getAttribute("rel"),_==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(_!==E.rel||i.getAttribute("href")!==(E.href==null||E.href===""?null:E.href)||i.getAttribute("crossorigin")!==(E.crossOrigin==null?null:E.crossOrigin)||i.getAttribute("title")!==(E.title==null?null:E.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(_=i.getAttribute("src"),(_!==(E.src==null?null:E.src)||i.getAttribute("type")!==(E.type==null?null:E.type)||i.getAttribute("crossorigin")!==(E.crossOrigin==null?null:E.crossOrigin))&&_&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(l==="input"&&i.type==="hidden"){var _=E.name==null?null:""+E.name;if(E.type==="hidden"&&i.getAttribute("name")===_)return i}else return i;if(i=Oa(i.nextSibling),i===null)break}return null}function iF(i,l,f){if(l==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!f||(i=Oa(i.nextSibling),i===null))return null;return i}function b1(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState==="complete"}function sF(i,l){var f=i.ownerDocument;if(i.data!=="$?"||f.readyState==="complete")l();else{var m=function(){l(),f.removeEventListener("DOMContentLoaded",m)};f.addEventListener("DOMContentLoaded",m),i._reactRetry=m}}function Oa(i){for(;i!=null;i=i.nextSibling){var l=i.nodeType;if(l===1||l===3)break;if(l===8){if(l=i.data,l==="$"||l==="$!"||l==="$?"||l==="F!"||l==="F")break;if(l==="/$")return null}}return i}var v1=null;function _k(i){i=i.previousSibling;for(var l=0;i;){if(i.nodeType===8){var f=i.data;if(f==="$"||f==="$!"||f==="$?"){if(l===0)return i;l--}else f==="/$"&&l++}i=i.previousSibling}return null}function Ak(i,l,f){switch(l=$m(f),i){case"html":if(i=l.documentElement,!i)throw Error(r(452));return i;case"head":if(i=l.head,!i)throw Error(r(453));return i;case"body":if(i=l.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function ff(i){for(var l=i.attributes;l.length;)i.removeAttributeNode(l[0]);kt(i)}var aa=new Map,kk=new Set;function Vm(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var Fi=X.d;X.d={f:lF,r:cF,D:uF,C:dF,L:fF,m:pF,X:mF,S:hF,M:gF};function lF(){var i=Fi.f(),l=Lm();return i||l}function cF(i){var l=rn(i);l!==null&&l.tag===5&&l.type==="form"?WA(l):Fi.r(i)}var Qc=typeof document>"u"?null:document;function wk(i,l,f){var m=Qc;if(m&&typeof l=="string"&&l){var E=Zo(l);E='link[rel="'+i+'"][href="'+E+'"]',typeof f=="string"&&(E+='[crossorigin="'+f+'"]'),kk.has(E)||(kk.add(E),i={rel:i,crossOrigin:f,href:l},m.querySelector(E)===null&&(l=m.createElement("link"),jr(l,"link",i),on(l),m.head.appendChild(l)))}}function uF(i){Fi.D(i),wk("dns-prefetch",i,null)}function dF(i,l){Fi.C(i,l),wk("preconnect",i,l)}function fF(i,l,f){Fi.L(i,l,f);var m=Qc;if(m&&i&&l){var E='link[rel="preload"][as="'+Zo(l)+'"]';l==="image"&&f&&f.imageSrcSet?(E+='[imagesrcset="'+Zo(f.imageSrcSet)+'"]',typeof f.imageSizes=="string"&&(E+='[imagesizes="'+Zo(f.imageSizes)+'"]')):E+='[href="'+Zo(i)+'"]';var _=E;switch(l){case"style":_=Xc(i);break;case"script":_=Zc(i)}aa.has(_)||(i=p({rel:"preload",href:l==="image"&&f&&f.imageSrcSet?void 0:i,as:l},f),aa.set(_,i),m.querySelector(E)!==null||l==="style"&&m.querySelector(pf(_))||l==="script"&&m.querySelector(hf(_))||(l=m.createElement("link"),jr(l,"link",i),on(l),m.head.appendChild(l)))}}function pF(i,l){Fi.m(i,l);var f=Qc;if(f&&i){var m=l&&typeof l.as=="string"?l.as:"script",E='link[rel="modulepreload"][as="'+Zo(m)+'"][href="'+Zo(i)+'"]',_=E;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":_=Zc(i)}if(!aa.has(_)&&(i=p({rel:"modulepreload",href:i},l),aa.set(_,i),f.querySelector(E)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(f.querySelector(hf(_)))return}m=f.createElement("link"),jr(m,"link",i),on(m),f.head.appendChild(m)}}}function hF(i,l,f){Fi.S(i,l,f);var m=Qc;if(m&&i){var E=Hn(m).hoistableStyles,_=Xc(i);l=l||"default";var L=E.get(_);if(!L){var U={loading:0,preload:null};if(L=m.querySelector(pf(_)))U.loading=5;else{i=p({rel:"stylesheet",href:i,"data-precedence":l},f),(f=aa.get(_))&&E1(i,f);var Z=L=m.createElement("link");on(Z),jr(Z,"link",i),Z._p=new Promise(function(pe,Ae){Z.onload=pe,Z.onerror=Ae}),Z.addEventListener("load",function(){U.loading|=1}),Z.addEventListener("error",function(){U.loading|=2}),U.loading|=4,Gm(L,l,m)}L={type:"stylesheet",instance:L,count:1,state:U},E.set(_,L)}}}function mF(i,l){Fi.X(i,l);var f=Qc;if(f&&i){var m=Hn(f).hoistableScripts,E=Zc(i),_=m.get(E);_||(_=f.querySelector(hf(E)),_||(i=p({src:i,async:!0},l),(l=aa.get(E))&&x1(i,l),_=f.createElement("script"),on(_),jr(_,"link",i),f.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},m.set(E,_))}}function gF(i,l){Fi.M(i,l);var f=Qc;if(f&&i){var m=Hn(f).hoistableScripts,E=Zc(i),_=m.get(E);_||(_=f.querySelector(hf(E)),_||(i=p({src:i,async:!0,type:"module"},l),(l=aa.get(E))&&x1(i,l),_=f.createElement("script"),on(_),jr(_,"link",i),f.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},m.set(E,_))}}function Dk(i,l,f,m){var E=(E=re.current)?Vm(E):null;if(!E)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof f.precedence=="string"&&typeof f.href=="string"?(l=Xc(f.href),f=Hn(E).hoistableStyles,m=f.get(l),m||(m={type:"style",instance:null,count:0,state:null},f.set(l,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(f.rel==="stylesheet"&&typeof f.href=="string"&&typeof f.precedence=="string"){i=Xc(f.href);var _=Hn(E).hoistableStyles,L=_.get(i);if(L||(E=E.ownerDocument||E,L={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},_.set(i,L),(_=E.querySelector(pf(i)))&&!_._p&&(L.instance=_,L.state.loading=5),aa.has(i)||(f={rel:"preload",as:"style",href:f.href,crossOrigin:f.crossOrigin,integrity:f.integrity,media:f.media,hrefLang:f.hrefLang,referrerPolicy:f.referrerPolicy},aa.set(i,f),_||yF(E,i,f,L.state))),l&&m===null)throw Error(r(528,""));return L}if(l&&m!==null)throw Error(r(529,""));return null;case"script":return l=f.async,f=f.src,typeof f=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=Zc(f),f=Hn(E).hoistableScripts,m=f.get(l),m||(m={type:"script",instance:null,count:0,state:null},f.set(l,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function Xc(i){return'href="'+Zo(i)+'"'}function pf(i){return'link[rel="stylesheet"]['+i+"]"}function Rk(i){return p({},i,{"data-precedence":i.precedence,precedence:null})}function yF(i,l,f,m){i.querySelector('link[rel="preload"][as="style"]['+l+"]")?m.loading=1:(l=i.createElement("link"),m.preload=l,l.addEventListener("load",function(){return m.loading|=1}),l.addEventListener("error",function(){return m.loading|=2}),jr(l,"link",f),on(l),i.head.appendChild(l))}function Zc(i){return'[src="'+Zo(i)+'"]'}function hf(i){return"script[async]"+i}function Ik(i,l,f){if(l.count++,l.instance===null)switch(l.type){case"style":var m=i.querySelector('style[data-href~="'+Zo(f.href)+'"]');if(m)return l.instance=m,on(m),m;var E=p({},f,{"data-href":f.href,"data-precedence":f.precedence,href:null,precedence:null});return m=(i.ownerDocument||i).createElement("style"),on(m),jr(m,"style",E),Gm(m,f.precedence,i),l.instance=m;case"stylesheet":E=Xc(f.href);var _=i.querySelector(pf(E));if(_)return l.state.loading|=4,l.instance=_,on(_),_;m=Rk(f),(E=aa.get(E))&&E1(m,E),_=(i.ownerDocument||i).createElement("link"),on(_);var L=_;return L._p=new Promise(function(U,Z){L.onload=U,L.onerror=Z}),jr(_,"link",m),l.state.loading|=4,Gm(_,f.precedence,i),l.instance=_;case"script":return _=Zc(f.src),(E=i.querySelector(hf(_)))?(l.instance=E,on(E),E):(m=f,(E=aa.get(_))&&(m=p({},f),x1(m,E)),i=i.ownerDocument||i,E=i.createElement("script"),on(E),jr(E,"link",m),i.head.appendChild(E),l.instance=E);case"void":return null;default:throw Error(r(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(m=l.instance,l.state.loading|=4,Gm(m,f.precedence,i));return l.instance}function Gm(i,l,f){for(var m=f.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),E=m.length?m[m.length-1]:null,_=E,L=0;L<m.length;L++){var U=m[L];if(U.dataset.precedence===l)_=U;else if(_!==E)break}_?_.parentNode.insertBefore(i,_.nextSibling):(l=f.nodeType===9?f.head:f,l.insertBefore(i,l.firstChild))}function E1(i,l){i.crossOrigin==null&&(i.crossOrigin=l.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=l.referrerPolicy),i.title==null&&(i.title=l.title)}function x1(i,l){i.crossOrigin==null&&(i.crossOrigin=l.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=l.referrerPolicy),i.integrity==null&&(i.integrity=l.integrity)}var qm=null;function Ok(i,l,f){if(qm===null){var m=new Map,E=qm=new Map;E.set(f,m)}else E=qm,m=E.get(f),m||(m=new Map,E.set(f,m));if(m.has(i))return m;for(m.set(i,null),f=f.getElementsByTagName(i),E=0;E<f.length;E++){var _=f[E];if(!(_[bt]||_[ve]||i==="link"&&_.getAttribute("rel")==="stylesheet")&&_.namespaceURI!=="http://www.w3.org/2000/svg"){var L=_.getAttribute(l)||"";L=i+L;var U=m.get(L);U?U.push(_):m.set(L,[_])}}return m}function Nk(i,l,f){i=i.ownerDocument||i,i.head.insertBefore(f,l==="title"?i.querySelector("head > title"):null)}function bF(i,l,f){if(f===1||l.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;switch(l.rel){case"stylesheet":return i=l.disabled,typeof l.precedence=="string"&&i==null;default:return!0}case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function Pk(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}var mf=null;function vF(){}function EF(i,l,f){if(mf===null)throw Error(r(475));var m=mf;if(l.type==="stylesheet"&&(typeof f.media!="string"||matchMedia(f.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var E=Xc(f.href),_=i.querySelector(pf(E));if(_){i=_._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(m.count++,m=Wm.bind(m),i.then(m,m)),l.state.loading|=4,l.instance=_,on(_);return}_=i.ownerDocument||i,f=Rk(f),(E=aa.get(E))&&E1(f,E),_=_.createElement("link"),on(_);var L=_;L._p=new Promise(function(U,Z){L.onload=U,L.onerror=Z}),jr(_,"link",f),l.instance=_}m.stylesheets===null&&(m.stylesheets=new Map),m.stylesheets.set(l,i),(i=l.state.preload)&&(l.state.loading&3)===0&&(m.count++,l=Wm.bind(m),i.addEventListener("load",l),i.addEventListener("error",l))}}function xF(){if(mf===null)throw Error(r(475));var i=mf;return i.stylesheets&&i.count===0&&T1(i,i.stylesheets),0<i.count?function(l){var f=setTimeout(function(){if(i.stylesheets&&T1(i,i.stylesheets),i.unsuspend){var m=i.unsuspend;i.unsuspend=null,m()}},6e4);return i.unsuspend=l,function(){i.unsuspend=null,clearTimeout(f)}}:null}function Wm(){if(this.count--,this.count===0){if(this.stylesheets)T1(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var Ym=null;function T1(i,l){i.stylesheets=null,i.unsuspend!==null&&(i.count++,Ym=new Map,l.forEach(TF,i),Ym=null,Wm.call(i))}function TF(i,l){if(!(l.state.loading&4)){var f=Ym.get(i);if(f)var m=f.get(null);else{f=new Map,Ym.set(i,f);for(var E=i.querySelectorAll("link[data-precedence],style[data-precedence]"),_=0;_<E.length;_++){var L=E[_];(L.nodeName==="LINK"||L.getAttribute("media")!=="not all")&&(f.set(L.dataset.precedence,L),m=L)}m&&f.set(null,m)}E=l.instance,L=E.getAttribute("data-precedence"),_=f.get(L)||m,_===m&&f.set(null,E),f.set(L,E),this.count++,m=Wm.bind(this),E.addEventListener("load",m),E.addEventListener("error",m),_?_.parentNode.insertBefore(E,_.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(E,i.firstChild)),l.state.loading|=4}}var gf={$$typeof:w,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function SF(i,l,f,m,E,_,L,U){this.tag=1,this.containerInfo=i,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=Er(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Er(0),this.hiddenUpdates=Er(null),this.identifierPrefix=m,this.onUncaughtError=E,this.onCaughtError=_,this.onRecoverableError=L,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=U,this.incompleteTransitions=new Map}function Lk(i,l,f,m,E,_,L,U,Z,pe,Ae,Ie){return i=new SF(i,l,f,L,U,Z,pe,Ie),l=1,_===!0&&(l|=24),_=Io(3,null,null,l),i.current=_,_.stateNode=i,l=rv(),l.refCount++,i.pooledCache=l,l.refCount++,_.memoizedState={element:m,isDehydrated:f,cache:l},sv(_),i}function Mk(i){return i?(i=Dc,i):Dc}function Fk(i,l,f,m,E,_){E=Mk(E),m.context===null?m.context=E:m.pendingContext=E,m=hs(l),m.payload={element:f},_=_===void 0?null:_,_!==null&&(m.callback=_),f=ms(i,m,l),f!==null&&(Mo(f,i,l),Gd(f,i,l))}function Bk(i,l){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var f=i.retryLane;i.retryLane=f!==0&&f<l?f:l}}function S1(i,l){Bk(i,l),(i=i.alternate)&&Bk(i,l)}function jk(i){if(i.tag===13){var l=wc(i,67108864);l!==null&&Mo(l,i,67108864),S1(i,67108864)}}var Km=!0;function CF(i,l,f,m){var E=B.T;B.T=null;var _=X.p;try{X.p=2,C1(i,l,f,m)}finally{X.p=_,B.T=E}}function _F(i,l,f,m){var E=B.T;B.T=null;var _=X.p;try{X.p=8,C1(i,l,f,m)}finally{X.p=_,B.T=E}}function C1(i,l,f,m){if(Km){var E=_1(m);if(E===null)d1(i,l,m,Qm,f),Hk(i,m);else if(kF(E,i,l,f,m))m.stopPropagation();else if(Hk(i,m),l&4&&-1<AF.indexOf(i)){for(;E!==null;){var _=rn(E);if(_!==null)switch(_.tag){case 3:if(_=_.stateNode,_.current.memoizedState.isDehydrated){var L=Ee(_.pendingLanes);if(L!==0){var U=_;for(U.pendingLanes|=2,U.entangledLanes|=2;L;){var Z=1<<31-Xe(L);U.entanglements[1]|=Z,L&=~Z}Xa(_),(pn&6)===0&&(Nm=je()+500,cf(0))}}break;case 13:U=wc(_,2),U!==null&&Mo(U,_,2),Lm(),S1(_,2)}if(_=_1(m),_===null&&d1(i,l,m,Qm,f),_===E)break;E=_}E!==null&&m.stopPropagation()}else d1(i,l,m,null,f)}}function _1(i){return i=Rb(i),A1(i)}var Qm=null;function A1(i){if(Qm=null,i=Rt(i),i!==null){var l=a(i);if(l===null)i=null;else{var f=l.tag;if(f===13){if(i=s(l),i!==null)return i;i=null}else if(f===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;i=null}else l!==i&&(i=null)}}return Qm=i,null}function Uk(i){switch(i){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(mt()){case lt:return 2;case ft:return 8;case Ue:case Le:return 32;case Jt:return 268435456;default:return 32}default:return 32}}var k1=!1,ws=null,Ds=null,Rs=null,yf=new Map,bf=new Map,Is=[],AF="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 Hk(i,l){switch(i){case"focusin":case"focusout":ws=null;break;case"dragenter":case"dragleave":Ds=null;break;case"mouseover":case"mouseout":Rs=null;break;case"pointerover":case"pointerout":yf.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":bf.delete(l.pointerId)}}function vf(i,l,f,m,E,_){return i===null||i.nativeEvent!==_?(i={blockedOn:l,domEventName:f,eventSystemFlags:m,nativeEvent:_,targetContainers:[E]},l!==null&&(l=rn(l),l!==null&&jk(l)),i):(i.eventSystemFlags|=m,l=i.targetContainers,E!==null&&l.indexOf(E)===-1&&l.push(E),i)}function kF(i,l,f,m,E){switch(l){case"focusin":return ws=vf(ws,i,l,f,m,E),!0;case"dragenter":return Ds=vf(Ds,i,l,f,m,E),!0;case"mouseover":return Rs=vf(Rs,i,l,f,m,E),!0;case"pointerover":var _=E.pointerId;return yf.set(_,vf(yf.get(_)||null,i,l,f,m,E)),!0;case"gotpointercapture":return _=E.pointerId,bf.set(_,vf(bf.get(_)||null,i,l,f,m,E)),!0}return!1}function zk(i){var l=Rt(i.target);if(l!==null){var f=a(l);if(f!==null){if(l=f.tag,l===13){if(l=s(f),l!==null){i.blockedOn=l,J(i.priority,function(){if(f.tag===13){var m=Lo();m=Mr(m);var E=wc(f,m);E!==null&&Mo(E,f,m),S1(f,m)}});return}}else if(l===3&&f.stateNode.current.memoizedState.isDehydrated){i.blockedOn=f.tag===3?f.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Xm(i){if(i.blockedOn!==null)return!1;for(var l=i.targetContainers;0<l.length;){var f=_1(i.nativeEvent);if(f===null){f=i.nativeEvent;var m=new f.constructor(f.type,f);Db=m,f.target.dispatchEvent(m),Db=null}else return l=rn(f),l!==null&&jk(l),i.blockedOn=f,!1;l.shift()}return!0}function $k(i,l,f){Xm(i)&&f.delete(l)}function wF(){k1=!1,ws!==null&&Xm(ws)&&(ws=null),Ds!==null&&Xm(Ds)&&(Ds=null),Rs!==null&&Xm(Rs)&&(Rs=null),yf.forEach($k),bf.forEach($k)}function Zm(i,l){i.blockedOn===l&&(i.blockedOn=null,k1||(k1=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,wF)))}var Jm=null;function Vk(i){Jm!==i&&(Jm=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Jm===i&&(Jm=null);for(var l=0;l<i.length;l+=3){var f=i[l],m=i[l+1],E=i[l+2];if(typeof m!="function"){if(A1(m||f)===null)continue;break}var _=rn(f);_!==null&&(i.splice(l,3),l-=3,Av(_,{pending:!0,data:E,method:f.method,action:m},m,E))}}))}function Ef(i){function l(Z){return Zm(Z,i)}ws!==null&&Zm(ws,i),Ds!==null&&Zm(Ds,i),Rs!==null&&Zm(Rs,i),yf.forEach(l),bf.forEach(l);for(var f=0;f<Is.length;f++){var m=Is[f];m.blockedOn===i&&(m.blockedOn=null)}for(;0<Is.length&&(f=Is[0],f.blockedOn===null);)zk(f),f.blockedOn===null&&Is.shift();if(f=(i.ownerDocument||i).$$reactFormReplay,f!=null)for(m=0;m<f.length;m+=3){var E=f[m],_=f[m+1],L=E[we]||null;if(typeof _=="function")L||Vk(f);else if(L){var U=null;if(_&&_.hasAttribute("formAction")){if(E=_,L=_[we]||null)U=L.formAction;else if(A1(E)!==null)continue}else U=L.action;typeof U=="function"?f[m+1]=U:(f.splice(m,3),m-=3),Vk(f)}}}function w1(i){this._internalRoot=i}eg.prototype.render=w1.prototype.render=function(i){var l=this._internalRoot;if(l===null)throw Error(r(409));var f=l.current,m=Lo();Fk(f,m,i,l,null,null)},eg.prototype.unmount=w1.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var l=i.containerInfo;Fk(i.current,2,null,i,null,null),Lm(),l[Ye]=null}};function eg(i){this._internalRoot=i}eg.prototype.unstable_scheduleHydration=function(i){if(i){var l=ne();i={blockedOn:null,target:i,priority:l};for(var f=0;f<Is.length&&l!==0&&l<Is[f].priority;f++);Is.splice(f,0,i),f===0&&zk(i)}};var Gk=t.version;if(Gk!=="19.1.0")throw Error(r(527,Gk,"19.1.0"));X.findDOMNode=function(i){var l=i._reactInternals;if(l===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=u(l),i=i!==null?d(i):null,i=i===null?null:i.stateNode,i};var DF={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var tg=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!tg.isDisabled&&tg.supportsFiber)try{de=tg.inject(DF),ge=tg}catch{}}return Tf.createRoot=function(i,l){if(!o(i))throw Error(r(299));var f=!1,m="",E=s2,_=l2,L=c2,U=null;return l!=null&&(l.unstable_strictMode===!0&&(f=!0),l.identifierPrefix!==void 0&&(m=l.identifierPrefix),l.onUncaughtError!==void 0&&(E=l.onUncaughtError),l.onCaughtError!==void 0&&(_=l.onCaughtError),l.onRecoverableError!==void 0&&(L=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(U=l.unstable_transitionCallbacks)),l=Lk(i,1,!1,null,null,f,m,E,_,L,U,null),i[Ye]=l.current,u1(i),new w1(l)},Tf.hydrateRoot=function(i,l,f){if(!o(i))throw Error(r(299));var m=!1,E="",_=s2,L=l2,U=c2,Z=null,pe=null;return f!=null&&(f.unstable_strictMode===!0&&(m=!0),f.identifierPrefix!==void 0&&(E=f.identifierPrefix),f.onUncaughtError!==void 0&&(_=f.onUncaughtError),f.onCaughtError!==void 0&&(L=f.onCaughtError),f.onRecoverableError!==void 0&&(U=f.onRecoverableError),f.unstable_transitionCallbacks!==void 0&&(Z=f.unstable_transitionCallbacks),f.formState!==void 0&&(pe=f.formState)),l=Lk(i,1,!0,l,f??null,m,E,_,L,U,Z,pe),l.context=Mk(null),f=l.current,m=Lo(),m=Mr(m),E=hs(m),E.callback=null,ms(f,E,m),f=m,l.current.lanes=f,Vn(l,f),Xa(l),i[Ye]=l.current,u1(i),new eg(l)},Tf.version="19.1.0",Tf}var tw;function jF(){if(tw)return I1.exports;tw=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(),I1.exports=BF(),I1.exports}var UF=jF(),Sf={},nw;function HF(){if(nw)return Sf;nw=1,Object.defineProperty(Sf,"__esModule",{value:!0}),Sf.parse=s,Sf.serialize=d;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,o=Object.prototype.toString,a=(()=>{const g=function(){};return g.prototype=Object.create(null),g})();function s(g,y){const b=new a,x=g.length;if(x<2)return b;const S=y?.decode||p;let T=0;do{const D=g.indexOf("=",T);if(D===-1)break;const w=g.indexOf(";",T),R=w===-1?x:w;if(D>R){T=g.lastIndexOf(";",D-1)+1;continue}const I=c(g,T,D),O=u(g,D,I),F=g.slice(I,O);if(b[F]===void 0){let j=c(g,D+1,R),H=u(g,R,j);const C=S(g.slice(j,H));b[F]=C}T=R+1}while(T<x);return b}function c(g,y,b){do{const x=g.charCodeAt(y);if(x!==32&&x!==9)return y}while(++y<b);return b}function u(g,y,b){for(;y>b;){const x=g.charCodeAt(--y);if(x!==32&&x!==9)return y+1}return b}function d(g,y,b){const x=b?.encode||encodeURIComponent;if(!e.test(g))throw new TypeError(`argument name is invalid: ${g}`);const S=x(y);if(!t.test(S))throw new TypeError(`argument val is invalid: ${y}`);let T=g+"="+S;if(!b)return T;if(b.maxAge!==void 0){if(!Number.isInteger(b.maxAge))throw new TypeError(`option maxAge is invalid: ${b.maxAge}`);T+="; Max-Age="+b.maxAge}if(b.domain){if(!n.test(b.domain))throw new TypeError(`option domain is invalid: ${b.domain}`);T+="; Domain="+b.domain}if(b.path){if(!r.test(b.path))throw new TypeError(`option path is invalid: ${b.path}`);T+="; Path="+b.path}if(b.expires){if(!h(b.expires)||!Number.isFinite(b.expires.valueOf()))throw new TypeError(`option expires is invalid: ${b.expires}`);T+="; Expires="+b.expires.toUTCString()}if(b.httpOnly&&(T+="; HttpOnly"),b.secure&&(T+="; Secure"),b.partitioned&&(T+="; Partitioned"),b.priority)switch(typeof b.priority=="string"?b.priority.toLowerCase():void 0){case"low":T+="; Priority=Low";break;case"medium":T+="; Priority=Medium";break;case"high":T+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${b.priority}`)}if(b.sameSite)switch(typeof b.sameSite=="string"?b.sameSite.toLowerCase():b.sameSite){case!0:case"strict":T+="; SameSite=Strict";break;case"lax":T+="; SameSite=Lax";break;case"none":T+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${b.sameSite}`)}return T}function p(g){if(g.indexOf("%")===-1)return g;try{return decodeURIComponent(g)}catch{return g}}function h(g){return o.call(g)==="[object Date]"}return Sf}HF();/**
|
|
51
|
+
* react-router v7.6.2
|
|
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 MN=e=>{throw TypeError(e)},zF=(e,t,n)=>t.has(e)||MN("Cannot "+n),L1=(e,t,n)=>(zF(e,t,"read from private field"),n?n.call(e):t.get(e)),$F=(e,t,n)=>t.has(e)?MN("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),rw="popstate";function VF(e={}){function t(r,o){let{pathname:a,search:s,hash:c}=r.location;return Np("",{pathname:a,search:s,hash:c},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:Ks(o)}return qF(t,n,null,e)}function Kt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function vr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function GF(){return Math.random().toString(36).substring(2,10)}function ow(e,t){return{usr:e.state,key:e.key,idx:t}}function Np(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?el(t):t,state:n,key:t&&t.key||r||GF()}}function Ks({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 el(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 qF(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:a=!1}=r,s=o.history,c="POP",u=null,d=p();d==null&&(d=0,s.replaceState({...s.state,idx:d},""));function p(){return(s.state||{idx:null}).idx}function h(){c="POP";let S=p(),T=S==null?null:S-d;d=S,u&&u({action:c,location:x.location,delta:T})}function g(S,T){c="PUSH";let D=Np(x.location,S,T);d=p()+1;let w=ow(D,d),R=x.createHref(D);try{s.pushState(w,"",R)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;o.location.assign(R)}a&&u&&u({action:c,location:x.location,delta:1})}function y(S,T){c="REPLACE";let D=Np(x.location,S,T);d=p();let w=ow(D,d),R=x.createHref(D);s.replaceState(w,"",R),a&&u&&u({action:c,location:x.location,delta:0})}function b(S){return FN(S)}let x={get action(){return c},get location(){return e(o,s)},listen(S){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(rw,h),u=S,()=>{o.removeEventListener(rw,h),u=null}},createHref(S){return t(o,S)},createURL:b,encodeLocation(S){let T=b(S);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:g,replace:y,go(S){return s.go(S)}};return x}function FN(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Kt(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Ks(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}var Xf,aw=class{constructor(e){if($F(this,Xf,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(L1(this,Xf).has(e))return L1(this,Xf).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){L1(this,Xf).set(e,t)}};Xf=new WeakMap;var WF=new Set(["lazy","caseSensitive","path","id","index","children"]);function YF(e){return WF.has(e)}var KF=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function QF(e){return KF.has(e)}function XF(e){return e.index===!0}function sy(e,t,n=[],r={}){return e.map((o,a)=>{let s=[...n,String(a)],c=typeof o.id=="string"?o.id:s.join("-");if(Kt(o.index!==!0||!o.children,"Cannot specify children on an index route"),Kt(!r[c],`Found a route id collision on id "${c}". Route id's must be globally unique within Data Router usages`),XF(o)){let u={...o,...t(o),id:c};return r[c]=u,u}else{let u={...o,...t(o),id:c,children:void 0};return r[c]=u,o.children&&(u.children=sy(o.children,t,s,r)),u}})}function Hs(e,t,n="/"){return Og(e,t,n,!1)}function Og(e,t,n,r){let o=typeof t=="string"?el(t):t,a=Ta(o.pathname||"/",n);if(a==null)return null;let s=BN(e);JF(s);let c=null;for(let u=0;c==null&&u<s.length;++u){let d=uB(a);c=lB(s[u],d,r)}return c}function ZF(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function BN(e,t=[],n=[],r=""){let o=(a,s,c)=>{let u={relativePath:c===void 0?a.path||"":c,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};u.relativePath.startsWith("/")&&(Kt(u.relativePath.startsWith(r),`Absolute route path "${u.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),u.relativePath=u.relativePath.slice(r.length));let d=di([r,u.relativePath]),p=n.concat(u);a.children&&a.children.length>0&&(Kt(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),BN(a.children,t,p,d)),!(a.path==null&&!a.index)&&t.push({path:d,score:iB(d,a.index),routesMeta:p})};return e.forEach((a,s)=>{if(a.path===""||!a.path?.includes("?"))o(a,s);else for(let c of jN(a.path))o(a,s,c)}),t}function jN(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 s=jN(r.join("/")),c=[];return c.push(...s.map(u=>u===""?a:[a,u].join("/"))),o&&c.push(...s),c.map(u=>e.startsWith("/")&&u===""?"/":u)}function JF(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:sB(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var eB=/^:[\w-]+$/,tB=3,nB=2,rB=1,oB=10,aB=-2,iw=e=>e==="*";function iB(e,t){let n=e.split("/"),r=n.length;return n.some(iw)&&(r+=aB),t&&(r+=nB),n.filter(o=>!iw(o)).reduce((o,a)=>o+(eB.test(a)?tB:a===""?rB:oB),r)}function sB(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 lB(e,t,n=!1){let{routesMeta:r}=e,o={},a="/",s=[];for(let c=0;c<r.length;++c){let u=r[c],d=c===r.length-1,p=a==="/"?t:t.slice(a.length)||"/",h=ly({path:u.relativePath,caseSensitive:u.caseSensitive,end:d},p),g=u.route;if(!h&&d&&n&&!r[r.length-1].route.index&&(h=ly({path:u.relativePath,caseSensitive:u.caseSensitive,end:!1},p)),!h)return null;Object.assign(o,h.params),s.push({params:o,pathname:di([a,h.pathname]),pathnameBase:pB(di([a,h.pathnameBase])),route:g}),h.pathnameBase!=="/"&&(a=di([a,h.pathnameBase]))}return s}function ly(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=cB(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],s=a.replace(/(.)\/+$/,"$1"),c=o.slice(1);return{params:r.reduce((d,{paramName:p,isOptional:h},g)=>{if(p==="*"){let b=c[g]||"";s=a.slice(0,a.length-b.length).replace(/(.)\/+$/,"$1")}const y=c[g];return h&&!y?d[p]=void 0:d[p]=(y||"").replace(/%2F/g,"/"),d},{}),pathname:a,pathnameBase:s,pattern:e}}function cB(e,t=!1,n=!0){vr(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,(s,c,u)=>(r.push({paramName:c,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function uB(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return vr(!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 Ta(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 dB(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?el(e):e;return{pathname:n?n.startsWith("/")?n:fB(n,t):t,search:hB(r),hash:mB(o)}}function fB(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 M1(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 UN(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function LT(e){let t=UN(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function MT(e,t,n,r=!1){let o;typeof e=="string"?o=el(e):(o={...e},Kt(!o.pathname||!o.pathname.includes("?"),M1("?","pathname","search",o)),Kt(!o.pathname||!o.pathname.includes("#"),M1("#","pathname","hash",o)),Kt(!o.search||!o.search.includes("#"),M1("#","search","hash",o)));let a=e===""||o.pathname==="",s=a?"/":o.pathname,c;if(s==null)c=n;else{let h=t.length-1;if(!r&&s.startsWith("..")){let g=s.split("/");for(;g[0]==="..";)g.shift(),h-=1;o.pathname=g.join("/")}c=h>=0?t[h]:"/"}let u=dB(o,c),d=s&&s!=="/"&&s.endsWith("/"),p=(a||s===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(d||p)&&(u.pathname+="/"),u}var di=e=>e.join("/").replace(/\/\/+/g,"/"),pB=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),hB=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,mB=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,cy=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 Pp(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var HN=["POST","PUT","PATCH","DELETE"],gB=new Set(HN),yB=["GET",...HN],bB=new Set(yB),vB=new Set([301,302,303,307,308]),EB=new Set([307,308]),F1={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},xB={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Cf={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},FT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,TB=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),zN="remix-router-transitions",$N=Symbol("ResetLoaderData");function SB(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";Kt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],o=e.mapRouteProperties||TB,a={},s=sy(e.routes,o,void 0,a),c,u=e.basename||"/",d=e.dataStrategy||wB,p={unstable_middleware:!1,...e.future},h=null,g=new Set,y=null,b=null,x=null,S=e.hydrationData!=null,T=Hs(s,e.history.location,u),D=!1,w=null,R;if(T==null&&!e.patchRoutesOnNavigation){let ne=ca(404,{pathname:e.history.location.pathname}),{matches:J,route:ie}=bw(s);R=!0,T=J,w={[ie.id]:ne}}else if(T&&!e.hydrationData&&fo(T,s,e.history.location.pathname).active&&(T=null),T)if(T.some(ne=>ne.route.lazy))R=!1;else if(!T.some(ne=>ne.route.loader))R=!0;else{let ne=e.hydrationData?e.hydrationData.loaderData:null,J=e.hydrationData?e.hydrationData.errors:null;if(J){let ie=T.findIndex(ve=>J[ve.route.id]!==void 0);R=T.slice(0,ie+1).every(ve=>!rx(ve.route,ne,J))}else R=T.every(ie=>!rx(ie.route,ne,J))}else{R=!1,T=[];let ne=fo(null,s,e.history.location.pathname);ne.active&&ne.matches&&(D=!0,T=ne.matches)}let I,O={historyAction:e.history.action,location:e.history.location,matches:T,initialized:R,navigation:F1,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||w,fetchers:new Map,blockers:new Map},F="POP",j=!1,H,C=!1,M=new Map,$=null,z=!1,q=!1,Y=new Set,B=new Map,X=0,ae=-1,te=new Map,N=new Set,oe=new Map,K=new Map,P=new Set,ee=new Map,ce,re=null;function be(){if(h=e.history.listen(({action:ne,location:J,delta:ie})=>{if(ce){ce(),ce=void 0;return}vr(ee.size===0||ie!=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 ve=rt({currentLocation:O.location,nextLocation:J,historyAction:ne});if(ve&&ie!=null){let we=new Promise(Ye=>{ce=Ye});e.history.go(ie*-1),ht(ve,{state:"blocked",location:J,proceed(){ht(ve,{state:"proceeding",proceed:void 0,reset:void 0,location:J}),we.then(()=>e.history.go(ie))},reset(){let Ye=new Map(O.blockers);Ye.set(ve,Cf),Me({blockers:Ye})}});return}return Re(ne,J)}),n){jB(t,M);let ne=()=>UB(t,M);t.addEventListener("pagehide",ne),$=()=>t.removeEventListener("pagehide",ne)}return O.initialized||Re("POP",O.location,{initialHydration:!0}),I}function ye(){h&&h(),$&&$(),g.clear(),H&&H.abort(),O.fetchers.forEach((ne,J)=>Xe(J)),O.blockers.forEach((ne,J)=>Se(J))}function Ge(ne){return g.add(ne),()=>g.delete(ne)}function Me(ne,J={}){O={...O,...ne};let ie=[],ve=[];O.fetchers.forEach((we,Ye)=>{we.state==="idle"&&(P.has(Ye)?ie.push(Ye):ve.push(Ye))}),P.forEach(we=>{!O.fetchers.has(we)&&!B.has(we)&&ie.push(we)}),[...g].forEach(we=>we(O,{deletedFetchers:ie,viewTransitionOpts:J.viewTransitionOpts,flushSync:J.flushSync===!0})),ie.forEach(we=>Xe(we)),ve.forEach(we=>O.fetchers.delete(we))}function Oe(ne,J,{flushSync:ie}={}){let ve=O.actionData!=null&&O.navigation.formMethod!=null&&Uo(O.navigation.formMethod)&&O.navigation.state==="loading"&&ne.state?._isRedirect!==!0,we;J.actionData?Object.keys(J.actionData).length>0?we=J.actionData:we=null:ve?we=O.actionData:we=null;let Ye=J.loaderData?gw(O.loaderData,J.loaderData,J.matches||[],J.errors):O.loaderData,ot=O.blockers;ot.size>0&&(ot=new Map(ot),ot.forEach((et,bt)=>ot.set(bt,Cf)));let Ze=j===!0||O.navigation.formMethod!=null&&Uo(O.navigation.formMethod)&&ne.state?._isRedirect!==!0;c&&(s=c,c=void 0),z||F==="POP"||(F==="PUSH"?e.history.push(ne,ne.state):F==="REPLACE"&&e.history.replace(ne,ne.state));let ct;if(F==="POP"){let et=M.get(O.location.pathname);et&&et.has(ne.pathname)?ct={currentLocation:O.location,nextLocation:ne}:M.has(ne.pathname)&&(ct={currentLocation:ne,nextLocation:O.location})}else if(C){let et=M.get(O.location.pathname);et?et.add(ne.pathname):(et=new Set([ne.pathname]),M.set(O.location.pathname,et)),ct={currentLocation:O.location,nextLocation:ne}}Me({...J,actionData:we,loaderData:Ye,historyAction:F,location:ne,initialized:!0,navigation:F1,revalidation:"idle",restoreScrollPosition:lr(ne,J.matches||O.matches),preventScrollReset:Ze,blockers:ot},{viewTransitionOpts:ct,flushSync:ie===!0}),F="POP",j=!1,C=!1,z=!1,q=!1,re?.resolve(),re=null}async function Qe(ne,J){if(typeof ne=="number"){e.history.go(ne);return}let ie=nx(O.location,O.matches,u,ne,J?.fromRouteId,J?.relative),{path:ve,submission:we,error:Ye}=sw(!1,ie,J),ot=O.location,Ze=Np(O.location,ve,J&&J.state);Ze={...Ze,...e.history.encodeLocation(Ze)};let ct=J&&J.replace!=null?J.replace:void 0,et="PUSH";ct===!0?et="REPLACE":ct===!1||we!=null&&Uo(we.formMethod)&&we.formAction===O.location.pathname+O.location.search&&(et="REPLACE");let bt=J&&"preventScrollReset"in J?J.preventScrollReset===!0:void 0,kt=(J&&J.flushSync)===!0,Rt=rt({currentLocation:ot,nextLocation:Ze,historyAction:et});if(Rt){ht(Rt,{state:"blocked",location:Ze,proceed(){ht(Rt,{state:"proceeding",proceed:void 0,reset:void 0,location:Ze}),Qe(ne,J)},reset(){let rn=new Map(O.blockers);rn.set(Rt,Cf),Me({blockers:rn})}});return}await Re(et,Ze,{submission:we,pendingError:Ye,preventScrollReset:bt,replace:J&&J.replace,enableViewTransition:J&&J.viewTransition,flushSync:kt})}function nt(){re||(re=HB()),At(),Me({revalidation:"loading"});let ne=re.promise;return O.navigation.state==="submitting"?ne:O.navigation.state==="idle"?(Re(O.historyAction,O.location,{startUninterruptedRevalidation:!0}),ne):(Re(F||O.historyAction,O.navigation.location,{overrideNavigation:O.navigation,enableViewTransition:C===!0}),ne)}async function Re(ne,J,ie){H&&H.abort(),H=null,F=ne,z=(ie&&ie.startUninterruptedRevalidation)===!0,Vn(O.location,O.matches),j=(ie&&ie.preventScrollReset)===!0,C=(ie&&ie.enableViewTransition)===!0;let ve=c||s,we=ie&&ie.overrideNavigation,Ye=ie?.initialHydration&&O.matches&&O.matches.length>0&&!D?O.matches:Hs(ve,J,u),ot=(ie&&ie.flushSync)===!0;if(Ye&&O.initialized&&!q&&PB(O.location,J)&&!(ie&&ie.submission&&Uo(ie.submission.formMethod))){Oe(J,{matches:Ye},{flushSync:ot});return}let Ze=fo(Ye,ve,J.pathname);if(Ze.active&&Ze.matches&&(Ye=Ze.matches),!Ye){let{error:Hn,notFoundMatches:on,route:Xt}=mn(J.pathname);Oe(J,{matches:on,loaderData:{},errors:{[Xt.id]:Hn}},{flushSync:ot});return}H=new AbortController;let ct=gu(e.history,J,H.signal,ie&&ie.submission),et=new aw(e.unstable_getContext?await e.unstable_getContext():void 0),bt;if(ie&&ie.pendingError)bt=[Ol(Ye).route.id,{type:"error",error:ie.pendingError}];else if(ie&&ie.submission&&Uo(ie.submission.formMethod)){let Hn=await gt(ct,J,ie.submission,Ye,et,Ze.active,ie&&ie.initialHydration===!0,{replace:ie.replace,flushSync:ot});if(Hn.shortCircuited)return;if(Hn.pendingActionResult){let[on,Xt]=Hn.pendingActionResult;if(jo(Xt)&&Pp(Xt.error)&&Xt.error.status===404){H=null,Oe(J,{matches:Hn.matches,loaderData:{},errors:{[on]:Xt.error}});return}}Ye=Hn.matches||Ye,bt=Hn.pendingActionResult,we=B1(J,ie.submission),ot=!1,Ze.active=!1,ct=gu(e.history,ct.url,ct.signal)}let{shortCircuited:kt,matches:Rt,loaderData:rn,errors:Nn}=await _t(ct,J,Ye,et,Ze.active,we,ie&&ie.submission,ie&&ie.fetcherSubmission,ie&&ie.replace,ie&&ie.initialHydration===!0,ot,bt);kt||(H=null,Oe(J,{matches:Rt||Ye,...yw(bt),loaderData:rn,errors:Nn}))}async function gt(ne,J,ie,ve,we,Ye,ot,Ze={}){At();let ct=FB(J,ie);if(Me({navigation:ct},{flushSync:Ze.flushSync===!0}),Ye){let kt=await Tn(ve,J.pathname,ne.signal);if(kt.type==="aborted")return{shortCircuited:!0};if(kt.type==="error"){let Rt=Ol(kt.partialMatches).route.id;return{matches:kt.partialMatches,pendingActionResult:[Rt,{type:"error",error:kt.error}]}}else if(kt.matches)ve=kt.matches;else{let{notFoundMatches:Rt,error:rn,route:Nn}=mn(J.pathname);return{matches:Rt,pendingActionResult:[Nn.id,{type:"error",error:rn}]}}}let et,bt=Zf(ve,J);if(!bt.route.action&&!bt.route.lazy)et={type:"error",error:ca(405,{method:ne.method,pathname:J.pathname,routeId:bt.route.id})};else{let kt=ku(o,a,ne,ve,bt,ot?[]:r,we),Rt=await Jt(ne,kt,we,null);if(et=Rt[bt.route.id],!et){for(let rn of ve)if(Rt[rn.route.id]){et=Rt[rn.route.id];break}}if(ne.signal.aborted)return{shortCircuited:!0}}if(Ll(et)){let kt;return Ze&&Ze.replace!=null?kt=Ze.replace:kt=pw(et.response.headers.get("Location"),new URL(ne.url),u)===O.location.pathname+O.location.search,await Le(ne,et,!0,{submission:ie,replace:kt}),{shortCircuited:!0}}if(jo(et)){let kt=Ol(ve,bt.route.id);return(Ze&&Ze.replace)!==!0&&(F="PUSH"),{matches:ve,pendingActionResult:[kt.route.id,et,bt.route.id]}}return{matches:ve,pendingActionResult:[bt.route.id,et]}}async function _t(ne,J,ie,ve,we,Ye,ot,Ze,ct,et,bt,kt){let Rt=Ye||B1(J,ot),rn=ot||Ze||Ew(Rt),Nn=!z&&!et;if(we){if(Nn){let Gr=je(kt);Me({navigation:Rt,...Gr!==void 0?{actionData:Gr}:{}},{flushSync:bt})}let $t=await Tn(ie,J.pathname,ne.signal);if($t.type==="aborted")return{shortCircuited:!0};if($t.type==="error"){let Gr=Ol($t.partialMatches).route.id;return{matches:$t.partialMatches,loaderData:{},errors:{[Gr]:$t.error}}}else if($t.matches)ie=$t.matches;else{let{error:Gr,notFoundMatches:wa,route:Da}=mn(J.pathname);return{matches:wa,loaderData:{},errors:{[Da.id]:Gr}}}}let Hn=c||s,{dsMatches:on,revalidatingFetchers:Xt}=lw(ne,ve,o,a,e.history,O,ie,rn,J,et?[]:r,et===!0,q,Y,P,oe,N,Hn,u,e.patchRoutesOnNavigation!=null,kt);if(ae=++X,!e.dataStrategy&&!on.some($t=>$t.shouldLoad)&&Xt.length===0){let $t=zt();return Oe(J,{matches:ie,loaderData:{},errors:kt&&jo(kt[1])?{[kt[0]]:kt[1].error}:null,...yw(kt),...$t?{fetchers:new Map(O.fetchers)}:{}},{flushSync:bt}),{shortCircuited:!0}}if(Nn){let $t={};if(!we){$t.navigation=Rt;let Gr=je(kt);Gr!==void 0&&($t.actionData=Gr)}Xt.length>0&&($t.fetchers=mt(Xt)),Me($t,{flushSync:bt})}Xt.forEach($t=>{Je($t.key),$t.controller&&B.set($t.key,$t.controller)});let ss=()=>Xt.forEach($t=>Je($t.key));H&&H.signal.addEventListener("abort",ss);let{loaderResults:no,fetcherResults:Qo}=await jt(on,Xt,ne,ve);if(ne.signal.aborted)return{shortCircuited:!0};H&&H.signal.removeEventListener("abort",ss),Xt.forEach($t=>B.delete($t.key));let po=ng(no);if(po)return await Le(ne,po.result,!0,{replace:ct}),{shortCircuited:!0};if(po=ng(Qo),po)return N.add(po.key),await Le(ne,po.result,!0,{replace:ct}),{shortCircuited:!0};let{loaderData:ls,errors:cs}=mw(O,ie,no,kt,Xt,Qo);et&&O.errors&&(cs={...O.errors,...cs});let Ad=zt(),Xo=Ke(ae),Si=Ad||Xo||Xt.length>0;return{matches:ie,loaderData:ls,errors:cs,...Si?{fetchers:new Map(O.fetchers)}:{}}}function je(ne){if(ne&&!jo(ne[1]))return{[ne[0]]:ne[1].data};if(O.actionData)return Object.keys(O.actionData).length===0?null:O.actionData}function mt(ne){return ne.forEach(J=>{let ie=O.fetchers.get(J.key),ve=_f(void 0,ie?ie.data:void 0);O.fetchers.set(J.key,ve)}),new Map(O.fetchers)}async function lt(ne,J,ie,ve){Je(ne);let we=(ve&&ve.flushSync)===!0,Ye=c||s,ot=nx(O.location,O.matches,u,ie,J,ve?.relative),Ze=Hs(Ye,ot,u),ct=fo(Ze,Ye,ot);if(ct.active&&ct.matches&&(Ze=ct.matches),!Ze){ge(ne,J,ca(404,{pathname:ot}),{flushSync:we});return}let{path:et,submission:bt,error:kt}=sw(!0,ot,ve);if(kt){ge(ne,J,kt,{flushSync:we});return}let Rt=Zf(Ze,et),rn=new aw(e.unstable_getContext?await e.unstable_getContext():void 0),Nn=(ve&&ve.preventScrollReset)===!0;if(bt&&Uo(bt.formMethod)){await ft(ne,J,et,Rt,Ze,rn,ct.active,we,Nn,bt);return}oe.set(ne,{routeId:J,path:et}),await Ue(ne,J,et,Rt,Ze,rn,ct.active,we,Nn,bt)}async function ft(ne,J,ie,ve,we,Ye,ot,Ze,ct,et){At(),oe.delete(ne);function bt(Ln){if(!Ln.route.action&&!Ln.route.lazy){let us=ca(405,{method:et.formMethod,pathname:ie,routeId:J});return ge(ne,J,us,{flushSync:Ze}),!0}return!1}if(!ot&&bt(ve))return;let kt=O.fetchers.get(ne);de(ne,BB(et,kt),{flushSync:Ze});let Rt=new AbortController,rn=gu(e.history,ie,Rt.signal,et);if(ot){let Ln=await Tn(we,ie,rn.signal,ne);if(Ln.type==="aborted")return;if(Ln.type==="error"){ge(ne,J,Ln.error,{flushSync:Ze});return}else if(Ln.matches){if(we=Ln.matches,ve=Zf(we,ie),bt(ve))return}else{ge(ne,J,ca(404,{pathname:ie}),{flushSync:Ze});return}}B.set(ne,Rt);let Nn=X,Hn=ku(o,a,rn,we,ve,r,Ye),Xt=(await Jt(rn,Hn,Ye,ne))[ve.route.id];if(rn.signal.aborted){B.get(ne)===Rt&&B.delete(ne);return}if(P.has(ne)){if(Ll(Xt)||jo(Xt)){de(ne,Bs(void 0));return}}else{if(Ll(Xt))if(B.delete(ne),ae>Nn){de(ne,Bs(void 0));return}else return N.add(ne),de(ne,_f(et)),Le(rn,Xt,!1,{fetcherSubmission:et,preventScrollReset:ct});if(jo(Xt)){ge(ne,J,Xt.error);return}}let ss=O.navigation.location||O.location,no=gu(e.history,ss,Rt.signal),Qo=c||s,po=O.navigation.state!=="idle"?Hs(Qo,O.navigation.location,u):O.matches;Kt(po,"Didn't find any matches after fetcher action");let ls=++X;te.set(ne,ls);let cs=_f(et,Xt.data);O.fetchers.set(ne,cs);let{dsMatches:Ad,revalidatingFetchers:Xo}=lw(no,Ye,o,a,e.history,O,po,et,ss,r,!1,q,Y,P,oe,N,Qo,u,e.patchRoutesOnNavigation!=null,[ve.route.id,Xt]);Xo.filter(Ln=>Ln.key!==ne).forEach(Ln=>{let us=Ln.key,kd=O.fetchers.get(us),ho=_f(void 0,kd?kd.data:void 0);O.fetchers.set(us,ho),Je(us),Ln.controller&&B.set(us,Ln.controller)}),Me({fetchers:new Map(O.fetchers)});let Si=()=>Xo.forEach(Ln=>Je(Ln.key));Rt.signal.addEventListener("abort",Si);let{loaderResults:$t,fetcherResults:Gr}=await jt(Ad,Xo,no,Ye);if(Rt.signal.aborted)return;if(Rt.signal.removeEventListener("abort",Si),te.delete(ne),B.delete(ne),Xo.forEach(Ln=>B.delete(Ln.key)),O.fetchers.has(ne)){let Ln=Bs(Xt.data);O.fetchers.set(ne,Ln)}let wa=ng($t);if(wa)return Le(no,wa.result,!1,{preventScrollReset:ct});if(wa=ng(Gr),wa)return N.add(wa.key),Le(no,wa.result,!1,{preventScrollReset:ct});let{loaderData:Da,errors:sl}=mw(O,po,$t,void 0,Xo,Gr);Ke(ls),O.navigation.state==="loading"&&ls>ae?(Kt(F,"Expected pending action"),H&&H.abort(),Oe(O.navigation.location,{matches:po,loaderData:Da,errors:sl,fetchers:new Map(O.fetchers)})):(Me({errors:sl,loaderData:gw(O.loaderData,Da,po,sl),fetchers:new Map(O.fetchers)}),q=!1)}async function Ue(ne,J,ie,ve,we,Ye,ot,Ze,ct,et){let bt=O.fetchers.get(ne);de(ne,_f(et,bt?bt.data:void 0),{flushSync:Ze});let kt=new AbortController,Rt=gu(e.history,ie,kt.signal);if(ot){let Xt=await Tn(we,ie,Rt.signal,ne);if(Xt.type==="aborted")return;if(Xt.type==="error"){ge(ne,J,Xt.error,{flushSync:Ze});return}else if(Xt.matches)we=Xt.matches,ve=Zf(we,ie);else{ge(ne,J,ca(404,{pathname:ie}),{flushSync:Ze});return}}B.set(ne,kt);let rn=X,Nn=ku(o,a,Rt,we,ve,r,Ye),on=(await Jt(Rt,Nn,Ye,ne))[ve.route.id];if(B.get(ne)===kt&&B.delete(ne),!Rt.signal.aborted){if(P.has(ne)){de(ne,Bs(void 0));return}if(Ll(on))if(ae>rn){de(ne,Bs(void 0));return}else{N.add(ne),await Le(Rt,on,!1,{preventScrollReset:ct});return}if(jo(on)){ge(ne,J,on.error);return}de(ne,Bs(on.data))}}async function Le(ne,J,ie,{submission:ve,fetcherSubmission:we,preventScrollReset:Ye,replace:ot}={}){J.response.headers.has("X-Remix-Revalidate")&&(q=!0);let Ze=J.response.headers.get("Location");Kt(Ze,"Expected a Location header on the redirect Response"),Ze=pw(Ze,new URL(ne.url),u);let ct=Np(O.location,Ze,{_isRedirect:!0});if(n){let Nn=!1;if(J.response.headers.has("X-Remix-Reload-Document"))Nn=!0;else if(FT.test(Ze)){const Hn=FN(Ze,!0);Nn=Hn.origin!==t.location.origin||Ta(Hn.pathname,u)==null}if(Nn){ot?t.location.replace(Ze):t.location.assign(Ze);return}}H=null;let et=ot===!0||J.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:bt,formAction:kt,formEncType:Rt}=O.navigation;!ve&&!we&&bt&&kt&&Rt&&(ve=Ew(O.navigation));let rn=ve||we;if(EB.has(J.response.status)&&rn&&Uo(rn.formMethod))await Re(et,ct,{submission:{...rn,formAction:Ze},preventScrollReset:Ye||j,enableViewTransition:ie?C:void 0});else{let Nn=B1(ct,ve);await Re(et,ct,{overrideNavigation:Nn,fetcherSubmission:we,preventScrollReset:Ye||j,enableViewTransition:ie?C:void 0})}}async function Jt(ne,J,ie,ve){let we,Ye={};try{we=await DB(d,ne,J,ve,ie,!1)}catch(ot){return J.filter(Ze=>Ze.shouldLoad).forEach(Ze=>{Ye[Ze.route.id]={type:"error",error:ot}}),Ye}if(ne.signal.aborted)return Ye;for(let[ot,Ze]of Object.entries(we))if(LB(Ze)){let ct=Ze.result;Ye[ot]={type:"redirect",response:OB(ct,ne,ot,J,u)}}else Ye[ot]=await IB(Ze);return Ye}async function jt(ne,J,ie,ve){let we=Jt(ie,ne,ve,null),Ye=Promise.all(J.map(async ct=>{if(ct.matches&&ct.match&&ct.request&&ct.controller){let bt=(await Jt(ct.request,ct.matches,ve,ct.key))[ct.match.route.id];return{[ct.key]:bt}}else return Promise.resolve({[ct.key]:{type:"error",error:ca(404,{pathname:ct.path})}})})),ot=await we,Ze=(await Ye).reduce((ct,et)=>Object.assign(ct,et),{});return{loaderResults:ot,fetcherResults:Ze}}function At(){q=!0,oe.forEach((ne,J)=>{B.has(J)&&Y.add(J),Je(J)})}function de(ne,J,ie={}){O.fetchers.set(ne,J),Me({fetchers:new Map(O.fetchers)},{flushSync:(ie&&ie.flushSync)===!0})}function ge(ne,J,ie,ve={}){let we=Ol(O.matches,J);Xe(ne),Me({errors:{[we.route.id]:ie},fetchers:new Map(O.fetchers)},{flushSync:(ve&&ve.flushSync)===!0})}function ze(ne){return K.set(ne,(K.get(ne)||0)+1),P.has(ne)&&P.delete(ne),O.fetchers.get(ne)||xB}function Xe(ne){let J=O.fetchers.get(ne);B.has(ne)&&!(J&&J.state==="loading"&&te.has(ne))&&Je(ne),oe.delete(ne),te.delete(ne),N.delete(ne),P.delete(ne),Y.delete(ne),O.fetchers.delete(ne)}function Et(ne){let J=(K.get(ne)||0)-1;J<=0?(K.delete(ne),P.add(ne)):K.set(ne,J),Me({fetchers:new Map(O.fetchers)})}function Je(ne){let J=B.get(ne);J&&(J.abort(),B.delete(ne))}function en(ne){for(let J of ne){let ie=ze(J),ve=Bs(ie.data);O.fetchers.set(J,ve)}}function zt(){let ne=[],J=!1;for(let ie of N){let ve=O.fetchers.get(ie);Kt(ve,`Expected fetcher: ${ie}`),ve.state==="loading"&&(N.delete(ie),ne.push(ie),J=!0)}return en(ne),J}function Ke(ne){let J=[];for(let[ie,ve]of te)if(ve<ne){let we=O.fetchers.get(ie);Kt(we,`Expected fetcher: ${ie}`),we.state==="loading"&&(Je(ie),te.delete(ie),J.push(ie))}return en(J),J.length>0}function Ee(ne,J){let ie=O.blockers.get(ne)||Cf;return ee.get(ne)!==J&&ee.set(ne,J),ie}function Se(ne){O.blockers.delete(ne),ee.delete(ne)}function ht(ne,J){let ie=O.blockers.get(ne)||Cf;Kt(ie.state==="unblocked"&&J.state==="blocked"||ie.state==="blocked"&&J.state==="blocked"||ie.state==="blocked"&&J.state==="proceeding"||ie.state==="blocked"&&J.state==="unblocked"||ie.state==="proceeding"&&J.state==="unblocked",`Invalid blocker state transition: ${ie.state} -> ${J.state}`);let ve=new Map(O.blockers);ve.set(ne,J),Me({blockers:ve})}function rt({currentLocation:ne,nextLocation:J,historyAction:ie}){if(ee.size===0)return;ee.size>1&&vr(!1,"A router only supports one blocker at a time");let ve=Array.from(ee.entries()),[we,Ye]=ve[ve.length-1],ot=O.blockers.get(we);if(!(ot&&ot.state==="proceeding")&&Ye({currentLocation:ne,nextLocation:J,historyAction:ie}))return we}function mn(ne){let J=ca(404,{pathname:ne}),ie=c||s,{matches:ve,route:we}=bw(ie);return{notFoundMatches:ve,route:we,error:J}}function Lr(ne,J,ie){if(y=ne,x=J,b=ie||null,!S&&O.navigation===F1){S=!0;let ve=lr(O.location,O.matches);ve!=null&&Me({restoreScrollPosition:ve})}return()=>{y=null,x=null,b=null}}function Er(ne,J){return b&&b(ne,J.map(ve=>ZF(ve,O.loaderData)))||ne.key}function Vn(ne,J){if(y&&x){let ie=Er(ne,J);y[ie]=x()}}function lr(ne,J){if(y){let ie=Er(ne,J),ve=y[ie];if(typeof ve=="number")return ve}return null}function fo(ne,J,ie){if(e.patchRoutesOnNavigation)if(ne){if(Object.keys(ne[0].params).length>0)return{active:!0,matches:Og(J,ie,u,!0)}}else return{active:!0,matches:Og(J,ie,u,!0)||[]};return{active:!1,matches:null}}async function Tn(ne,J,ie,ve){if(!e.patchRoutesOnNavigation)return{type:"success",matches:ne};let we=ne;for(;;){let Ye=c==null,ot=c||s,Ze=a;try{await e.patchRoutesOnNavigation({signal:ie,path:J,matches:we,fetcherKey:ve,patch:(bt,kt)=>{ie.aborted||cw(bt,kt,ot,Ze,o)}})}catch(bt){return{type:"error",error:bt,partialMatches:we}}finally{Ye&&!ie.aborted&&(s=[...s])}if(ie.aborted)return{type:"aborted"};let ct=Hs(ot,J,u);if(ct)return{type:"success",matches:ct};let et=Og(ot,J,u,!0);if(!et||we.length===et.length&&we.every((bt,kt)=>bt.route.id===et[kt].route.id))return{type:"success",matches:null};we=et}}function Mr(ne){a={},c=sy(ne,o,void 0,a)}function yt(ne,J){let ie=c==null;cw(ne,J,c||s,a,o),ie&&(s=[...s],Me({}))}return I={get basename(){return u},get future(){return p},get state(){return O},get routes(){return s},get window(){return t},initialize:be,subscribe:Ge,enableScrollRestoration:Lr,navigate:Qe,fetch:lt,revalidate:nt,createHref:ne=>e.history.createHref(ne),encodeLocation:ne=>e.history.encodeLocation(ne),getFetcher:ze,deleteFetcher:Et,dispose:ye,getBlocker:Ee,deleteBlocker:Se,patchRoutes:yt,_internalFetchControllers:B,_internalSetRoutes:Mr},I}function CB(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function nx(e,t,n,r,o,a){let s,c;if(o){s=[];for(let d of t)if(s.push(d),d.route.id===o){c=d;break}}else s=t,c=t[t.length-1];let u=MT(r||".",LT(s),Ta(e.pathname,n)||e.pathname,a==="path");if(r==null&&(u.search=e.search,u.hash=e.hash),(r==null||r===""||r===".")&&c){let d=BT(u.search);if(c.route.index&&!d)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&d){let p=new URLSearchParams(u.search),h=p.getAll("index");p.delete("index"),h.filter(y=>y).forEach(y=>p.append("index",y));let g=p.toString();u.search=g?`?${g}`:""}}return n!=="/"&&(u.pathname=u.pathname==="/"?n:di([n,u.pathname])),Ks(u)}function sw(e,t,n){if(!n||!CB(n))return{path:t};if(n.formMethod&&!MB(n.formMethod))return{path:t,error:ca(405,{method:n.formMethod})};let r=()=>({path:t,error:ca(400,{type:"invalid-body"})}),a=(n.formMethod||"get").toUpperCase(),s=KN(t);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Uo(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((g,[y,b])=>`${g}${y}=${b}
|
|
60
|
+
`,""):String(n.body);return{path:t,submission:{formMethod:a,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:h}}}else if(n.formEncType==="application/json"){if(!Uo(a))return r();try{let h=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:a,formAction:s,formEncType:n.formEncType,formData:void 0,json:h,text:void 0}}}catch{return r()}}}Kt(typeof FormData=="function","FormData is not available in this environment");let c,u;if(n.formData)c=ax(n.formData),u=n.formData;else if(n.body instanceof FormData)c=ax(n.body),u=n.body;else if(n.body instanceof URLSearchParams)c=n.body,u=hw(c);else if(n.body==null)c=new URLSearchParams,u=new FormData;else try{c=new URLSearchParams(n.body),u=hw(c)}catch{return r()}let d={formMethod:a,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(Uo(d.formMethod))return{path:t,submission:d};let p=el(t);return e&&p.search&&BT(p.search)&&c.append("index",""),p.search=`?${c}`,{path:Ks(p),submission:d}}function lw(e,t,n,r,o,a,s,c,u,d,p,h,g,y,b,x,S,T,D,w){let R=w?jo(w[1])?w[1].error:w[1].data:void 0,I=o.createURL(a.location),O=o.createURL(u),F;if(p&&a.errors){let z=Object.keys(a.errors)[0];F=s.findIndex(q=>q.route.id===z)}else if(w&&jo(w[1])){let z=w[0];F=s.findIndex(q=>q.route.id===z)-1}let j=w?w[1].statusCode:void 0,H=j&&j>=400,C={currentUrl:I,currentParams:a.matches[0]?.params||{},nextUrl:O,nextParams:s[0].params,...c,actionResult:R,actionStatus:j},M=s.map((z,q)=>{let{route:Y}=z,B=null;if(F!=null&&q>F?B=!1:Y.lazy?B=!0:Y.loader==null?B=!1:p?B=rx(Y,a.loaderData,a.errors):_B(a.loaderData,a.matches[q],z)&&(B=!0),B!==null)return ox(n,r,e,z,d,t,B);let X=H?!1:h||I.pathname+I.search===O.pathname+O.search||I.search!==O.search||AB(a.matches[q],z),ae={...C,defaultShouldRevalidate:X},te=uy(z,ae);return ox(n,r,e,z,d,t,te,ae)}),$=[];return b.forEach((z,q)=>{if(p||!s.some(K=>K.route.id===z.routeId)||y.has(q))return;let Y=a.fetchers.get(q),B=Y&&Y.state!=="idle"&&Y.data===void 0,X=Hs(S,z.path,T);if(!X){if(D&&B)return;$.push({key:q,routeId:z.routeId,path:z.path,matches:null,match:null,request:null,controller:null});return}if(x.has(q))return;let ae=Zf(X,z.path),te=new AbortController,N=gu(o,z.path,te.signal),oe=null;if(g.has(q))g.delete(q),oe=ku(n,r,N,X,ae,d,t);else if(B)h&&(oe=ku(n,r,N,X,ae,d,t));else{let K={...C,defaultShouldRevalidate:H?!1:h};uy(ae,K)&&(oe=ku(n,r,N,X,ae,d,t,K))}oe&&$.push({key:q,routeId:z.routeId,path:z.path,matches:oe,match:ae,request:N,controller:te})}),{dsMatches:M,revalidatingFetchers:$}}function rx(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 _B(e,t,n){let r=!t||n.route.id!==t.route.id,o=!e.hasOwnProperty(n.route.id);return r||o}function AB(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function uy(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function cw(e,t,n,r,o){let a;if(e){let u=r[e];Kt(u,`No route found to patch children into: routeId = ${e}`),u.children||(u.children=[]),a=u.children}else a=n;let s=t.filter(u=>!a.some(d=>VN(u,d))),c=sy(s,o,[e||"_","patch",String(a?.length||"0")],r);a.push(...c)}function VN(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=>VN(n,o))):!1}var uw=new WeakMap,GN=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let o=n[t.id];if(Kt(o,"No route found in manifest"),!o.lazy||typeof o.lazy!="object")return;let a=o.lazy[e];if(!a)return;let s=uw.get(o);s||(s={},uw.set(o,s));let c=s[e];if(c)return c;let u=(async()=>{let d=YF(e),h=o[e]!==void 0&&e!=="hasErrorBoundary";if(d)vr(!d,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),s[e]=Promise.resolve();else if(h)vr(!1,`Route "${o.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let g=await a();g!=null&&(Object.assign(o,{[e]:g}),Object.assign(o,r(o)))}typeof o.lazy=="object"&&(o.lazy[e]=void 0,Object.values(o.lazy).every(g=>g===void 0)&&(o.lazy=void 0))})();return s[e]=u,u},dw=new WeakMap;function kB(e,t,n,r,o){let a=n[e.id];if(Kt(a,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let p=dw.get(a);if(p)return{lazyRoutePromise:p,lazyHandlerPromise:p};let h=(async()=>{Kt(typeof e.lazy=="function","No lazy route function found");let g=await e.lazy(),y={};for(let b in g){let x=g[b];if(x===void 0)continue;let S=QF(b),D=a[b]!==void 0&&b!=="hasErrorBoundary";S?vr(!S,"Route property "+b+" is not a supported property to be returned from a lazy route function. This property will be ignored."):D?vr(!D,`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.`):y[b]=x}Object.assign(a,y),Object.assign(a,{...r(a),lazy:void 0})})();return dw.set(a,h),h.catch(()=>{}),{lazyRoutePromise:h,lazyHandlerPromise:h}}let s=Object.keys(e.lazy),c=[],u;for(let p of s){if(o&&o.includes(p))continue;let h=GN({key:p,route:e,manifest:n,mapRouteProperties:r});h&&(c.push(h),p===t&&(u=h))}let d=c.length>0?Promise.all(c).then(()=>{}):void 0;return d?.catch(()=>{}),u?.catch(()=>{}),{lazyRoutePromise:d,lazyHandlerPromise:u}}async function fw(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 wB(e){return e.matches.some(t=>t.route.unstable_middleware)?qN(e,!1,()=>fw(e),(t,n)=>({[n]:{type:"error",result:t}})):fw(e)}async function qN(e,t,n,r){let{matches:o,request:a,params:s,context:c}=e,u={handlerResult:void 0};try{let d=o.flatMap(h=>h.route.unstable_middleware?h.route.unstable_middleware.map(g=>[h.route.id,g]):[]),p=await WN({request:a,params:s,context:c},d,t,u,n);return t?p:u.handlerResult}catch(d){if(!u.middlewareError)throw d;let p=await r(u.middlewareError.error,u.middlewareError.routeId);return u.handlerResult?Object.assign(u.handlerResult,p):p}}async function WN(e,t,n,r,o,a=0){let{request:s}=e;if(s.signal.aborted)throw s.signal.reason?s.signal.reason:new Error(`Request aborted without an \`AbortSignal.reason\`: ${s.method} ${s.url}`);let c=t[a];if(!c)return r.handlerResult=await o(),r.handlerResult;let[u,d]=c,p=!1,h,g=async()=>{if(p)throw new Error("You may only call `next()` once per middleware");p=!0,await WN(e,t,n,r,o,a+1)};try{let y=await d({request:e.request,params:e.params,context:e.context},g);return p?y===void 0?h:y:g()}catch(y){throw r.middlewareError?r.middlewareError.error!==y&&(r.middlewareError={routeId:u,error:y}):r.middlewareError={routeId:u,error:y},y}}function YN(e,t,n,r,o){let a=GN({key:"unstable_middleware",route:r.route,manifest:t,mapRouteProperties:e}),s=kB(r.route,Uo(n.method)?"action":"loader",t,e,o);return{middleware:a,route:s.lazyRoutePromise,handler:s.lazyHandlerPromise}}function ox(e,t,n,r,o,a,s,c=null){let u=!1,d=YN(e,t,n,r,o);return{...r,_lazyPromises:d,shouldLoad:s,unstable_shouldRevalidateArgs:c,unstable_shouldCallHandler(p){return u=!0,c?typeof p=="boolean"?uy(r,{...c,defaultShouldRevalidate:p}):uy(r,c):s},resolve(p){return u||s||p&&n.method==="GET"&&(r.route.lazy||r.route.loader)?RB({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,s,c=null){return r.map(u=>u.route.id!==o.route.id?{...u,shouldLoad:!1,unstable_shouldRevalidateArgs:c,unstable_shouldCallHandler:()=>!1,_lazyPromises:YN(e,t,n,u,a),resolve:()=>Promise.resolve({type:"data",result:void 0})}:ox(e,t,n,u,a,s,!0,c))}async function DB(e,t,n,r,o,a){n.some(d=>d._lazyPromises?.middleware)&&await Promise.all(n.map(d=>d._lazyPromises?.middleware));let s={request:t,params:n[0].params,context:o,matches:n},u=await e({...s,fetcherKey:r,unstable_runClientMiddleware:d=>{let p=s;return qN(p,!1,()=>d({...p,fetcherKey:r,unstable_runClientMiddleware:()=>{throw new Error("Cannot call `unstable_runClientMiddleware()` from within an `unstable_runClientMiddleware` handler")}}),(h,g)=>({[g]:{type:"error",result:h}}))}});try{await Promise.all(n.flatMap(d=>[d._lazyPromises?.handler,d._lazyPromises?.route]))}catch{}return u}async function RB({request:e,match:t,lazyHandlerPromise:n,lazyRoutePromise:r,handlerOverride:o,scopedContext:a}){let s,c,u=Uo(e.method),d=u?"action":"loader",p=h=>{let g,y=new Promise((S,T)=>g=T);c=()=>g(),e.signal.addEventListener("abort",c);let b=S=>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},...S!==void 0?[S]:[]),x=(async()=>{try{return{type:"data",result:await(o?o(T=>b(T)):b())}}catch(S){return{type:"error",result:S}}})();return Promise.race([x,y])};try{let h=u?t.route.action:t.route.loader;if(n||r)if(h){let g,[y]=await Promise.all([p(h).catch(b=>{g=b}),n,r]);if(g!==void 0)throw g;s=y}else{await n;let g=u?t.route.action:t.route.loader;if(g)[s]=await Promise.all([p(g),r]);else if(d==="action"){let y=new URL(e.url),b=y.pathname+y.search;throw ca(405,{method:e.method,pathname:b,routeId:t.route.id})}else return{type:"data",result:void 0}}else if(h)s=await p(h);else{let g=new URL(e.url),y=g.pathname+g.search;throw ca(404,{pathname:y})}}catch(h){return{type:"error",result:h}}finally{c&&e.signal.removeEventListener("abort",c)}return s}async function IB(e){let{result:t,type:n}=e;if(QN(t)){let r;try{let o=t.headers.get("Content-Type");o&&/\bapplication\/json\b/.test(o)?t.body==null?r=null:r=await t.json():r=await t.text()}catch(o){return{type:"error",error:o}}return n==="error"?{type:"error",error:new cy(t.status,t.statusText,r),statusCode:t.status,headers:t.headers}:{type:"data",data:r,statusCode:t.status,headers:t.headers}}return n==="error"?vw(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 cy(t.init?.status||500,void 0,t.data),statusCode:Pp(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:Pp(t)?t.status:void 0}:vw(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 OB(e,t,n,r,o){let a=e.headers.get("Location");if(Kt(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!FT.test(a)){let s=r.slice(0,r.findIndex(c=>c.route.id===n)+1);a=nx(new URL(t.url),s,o,a),e.headers.set("Location",a)}return e}function pw(e,t,n){if(FT.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),a=Ta(o.pathname,n)!=null;if(o.origin===t.origin&&a)return o.pathname+o.search+o.hash}return e}function gu(e,t,n,r){let o=e.createURL(KN(t)).toString(),a={signal:n};if(r&&Uo(r.formMethod)){let{formMethod:s,formEncType:c}=r;a.method=s.toUpperCase(),c==="application/json"?(a.headers=new Headers({"Content-Type":c}),a.body=JSON.stringify(r.json)):c==="text/plain"?a.body=r.text:c==="application/x-www-form-urlencoded"&&r.formData?a.body=ax(r.formData):a.body=r.formData}return new Request(o,a)}function ax(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function hw(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function NB(e,t,n,r=!1,o=!1){let a={},s=null,c,u=!1,d={},p=n&&jo(n[1])?n[1].error:void 0;return e.forEach(h=>{if(!(h.route.id in t))return;let g=h.route.id,y=t[g];if(Kt(!Ll(y),"Cannot handle redirect results in processLoaderData"),jo(y)){let b=y.error;if(p!==void 0&&(b=p,p=void 0),s=s||{},o)s[g]=b;else{let x=Ol(e,g);s[x.route.id]==null&&(s[x.route.id]=b)}r||(a[g]=$N),u||(u=!0,c=Pp(y.error)?y.error.status:500),y.headers&&(d[g]=y.headers)}else a[g]=y.data,y.statusCode&&y.statusCode!==200&&!u&&(c=y.statusCode),y.headers&&(d[g]=y.headers)}),p!==void 0&&n&&(s={[n[0]]:p},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:s,statusCode:c||200,loaderHeaders:d}}function mw(e,t,n,r,o,a){let{loaderData:s,errors:c}=NB(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,g=a[d];if(Kt(g,"Did not find corresponding fetcher result"),!(h&&h.signal.aborted))if(jo(g)){let y=Ol(e.matches,p?.route.id);c&&c[y.route.id]||(c={...c,[y.route.id]:g.error}),e.fetchers.delete(d)}else if(Ll(g))Kt(!1,"Unhandled fetcher revalidation redirect");else{let y=Bs(g.data);e.fetchers.set(d,y)}}),{loaderData:s,errors:c}}function gw(e,t,n,r){let o=Object.entries(t).filter(([,a])=>a!==$N).reduce((a,[s,c])=>(a[s]=c,a),{});for(let a of n){let s=a.route.id;if(!t.hasOwnProperty(s)&&e.hasOwnProperty(s)&&a.route.loader&&(o[s]=e[s]),r&&r.hasOwnProperty(s))break}return o}function yw(e){return e?jo(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Ol(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 bw(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 ca(e,{pathname:t,routeId:n,method:r,type:o,message:a}={}){let s="Unknown Server Error",c="Unknown @remix-run/router error";return e===400?(s="Bad Request",r&&t&&n?c=`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"&&(c="Unable to encode submission body")):e===403?(s="Forbidden",c=`Route "${n}" does not match URL "${t}"`):e===404?(s="Not Found",c=`No route matches URL "${t}"`):e===405&&(s="Method Not Allowed",r&&t&&n?c=`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&&(c=`Invalid request method "${r.toUpperCase()}"`)),new cy(e||500,s,new Error(c),!0)}function ng(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,o]=t[n];if(Ll(o))return{key:r,result:o}}}function KN(e){let t=typeof e=="string"?el(e):e;return Ks({...t,hash:""})}function PB(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function LB(e){return QN(e.result)&&vB.has(e.result.status)}function jo(e){return e.type==="error"}function Ll(e){return(e&&e.type)==="redirect"}function vw(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function QN(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function MB(e){return bB.has(e.toUpperCase())}function Uo(e){return gB.has(e.toUpperCase())}function BT(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Zf(e,t){let n=typeof t=="string"?el(t).search:t.search;if(e[e.length-1].route.index&&BT(n||""))return e[e.length-1];let r=UN(e);return r[r.length-1]}function Ew(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:a,json:s}=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(s!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}}}function B1(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 FB(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 _f(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 BB(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 Bs(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 jB(e,t){try{let n=e.sessionStorage.getItem(zN);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 UB(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(zN,JSON.stringify(n))}catch(r){vr(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function HB(){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=k.createContext(null);fc.displayName="DataRouter";var mh=k.createContext(null);mh.displayName="DataRouterState";var jT=k.createContext({isTransitioning:!1});jT.displayName="ViewTransition";var XN=k.createContext(new Map);XN.displayName="Fetchers";var zB=k.createContext(null);zB.displayName="Await";var bi=k.createContext(null);bi.displayName="Navigation";var a0=k.createContext(null);a0.displayName="Location";var $a=k.createContext({outlet:null,matches:[],isDataRoute:!1});$a.displayName="Route";var UT=k.createContext(null);UT.displayName="RouteError";function $B(e,{relative:t}={}){Kt(gh(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=k.useContext(bi),{hash:o,pathname:a,search:s}=yh(e,{relative:t}),c=a;return n!=="/"&&(c=a==="/"?n:di([n,a])),r.createHref({pathname:c,search:s,hash:o})}function gh(){return k.useContext(a0)!=null}function pc(){return Kt(gh(),"useLocation() may be used only in the context of a <Router> component."),k.useContext(a0).location}var ZN="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function JN(e){k.useContext(bi).static||k.useLayoutEffect(e)}function HT(){let{isDataRoute:e}=k.useContext($a);return e?r9():VB()}function VB(){Kt(gh(),"useNavigate() may be used only in the context of a <Router> component.");let e=k.useContext(fc),{basename:t,navigator:n}=k.useContext(bi),{matches:r}=k.useContext($a),{pathname:o}=pc(),a=JSON.stringify(LT(r)),s=k.useRef(!1);return JN(()=>{s.current=!0}),k.useCallback((u,d={})=>{if(vr(s.current,ZN),!s.current)return;if(typeof u=="number"){n.go(u);return}let p=MT(u,JSON.parse(a),o,d.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:di([t,p.pathname])),(d.replace?n.replace:n.push)(p,d.state,d)},[t,n,a,o,e])}var GB=k.createContext(null);function qB(e){let t=k.useContext($a).outlet;return t&&k.createElement(GB.Provider,{value:e},t)}function hc(){let{matches:e}=k.useContext($a),t=e[e.length-1];return t?t.params:{}}function yh(e,{relative:t}={}){let{matches:n}=k.useContext($a),{pathname:r}=pc(),o=JSON.stringify(LT(n));return k.useMemo(()=>MT(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function WB(e,t,n,r){Kt(gh(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=k.useContext(bi),{matches:a}=k.useContext($a),s=a[a.length-1],c=s?s.params:{},u=s?s.pathname:"/",d=s?s.pathnameBase:"/",p=s&&s.route;{let T=p&&p.path||"";t3(u,!p||T.endsWith("*")||T.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${T}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
61
|
+
|
|
62
|
+
Please change the parent <Route path="${T}"> to <Route path="${T==="/"?"*":`${T}/*`}">.`)}let h=pc(),g;g=h;let y=g.pathname||"/",b=y;if(d!=="/"){let T=d.replace(/^\//,"").split("/");b="/"+y.replace(/^\//,"").split("/").slice(T.length).join("/")}let x=Hs(e,{pathname:b});return vr(p||x!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),vr(x==null||x[x.length-1].route.element!==void 0||x[x.length-1].route.Component!==void 0||x[x.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.`),ZB(x&&x.map(T=>Object.assign({},T,{params:Object.assign({},c,T.params),pathname:di([d,o.encodeLocation?o.encodeLocation(T.pathname).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?d:di([d,o.encodeLocation?o.encodeLocation(T.pathnameBase).pathname:T.pathnameBase])})),a,n,r)}function YB(){let e=e3(),t=Pp(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},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=k.createElement(k.Fragment,null,k.createElement("p",null,"💿 Hey developer 👋"),k.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",k.createElement("code",{style:a},"ErrorBoundary")," or"," ",k.createElement("code",{style:a},"errorElement")," prop on your route.")),k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),n?k.createElement("pre",{style:o},n):null,s)}var KB=k.createElement(YB,null),QB=class extends k.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,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){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?k.createElement($a.Provider,{value:this.props.routeContext},k.createElement(UT.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function XB({routeContext:e,match:t,children:n}){let r=k.useContext(fc);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),k.createElement($a.Provider,{value:e},n)}function ZB(e,t=[],n=null,r=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 o=e,a=n?.errors;if(a!=null){let u=o.findIndex(d=>d.route.id&&a?.[d.route.id]!==void 0);Kt(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),o=o.slice(0,Math.min(o.length,u+1))}let s=!1,c=-1;if(n)for(let u=0;u<o.length;u++){let d=o[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(c=u),d.route.id){let{loaderData:p,errors:h}=n,g=d.route.loader&&!p.hasOwnProperty(d.route.id)&&(!h||h[d.route.id]===void 0);if(d.route.lazy||g){s=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((u,d,p)=>{let h,g=!1,y=null,b=null;n&&(h=a&&d.route.id?a[d.route.id]:void 0,y=d.route.errorElement||KB,s&&(c<0&&p===0?(t3("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,b=null):c===p&&(g=!0,b=d.route.hydrateFallbackElement||null)));let x=t.concat(o.slice(0,p+1)),S=()=>{let T;return h?T=y:g?T=b:d.route.Component?T=k.createElement(d.route.Component,null):d.route.element?T=d.route.element:T=u,k.createElement(XB,{match:d,routeContext:{outlet:u,matches:x,isDataRoute:n!=null},children:T})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?k.createElement(QB,{location:n.location,revalidation:n.revalidation,component:y,error:h,children:S(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):S()},null)}function zT(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function JB(e){let t=k.useContext(fc);return Kt(t,zT(e)),t}function e9(e){let t=k.useContext(mh);return Kt(t,zT(e)),t}function t9(e){let t=k.useContext($a);return Kt(t,zT(e)),t}function $T(e){let t=t9(e),n=t.matches[t.matches.length-1];return Kt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function n9(){return $T("useRouteId")}function e3(){let e=k.useContext(UT),t=e9("useRouteError"),n=$T("useRouteError");return e!==void 0?e:t.errors?.[n]}function r9(){let{router:e}=JB("useNavigate"),t=$T("useNavigate"),n=k.useRef(!1);return JN(()=>{n.current=!0}),k.useCallback(async(o,a={})=>{vr(n.current,ZN),n.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:t,...a}))},[e,t])}var xw={};function t3(e,t,n){!t&&!xw[e]&&(xw[e]=!0,vr(!1,n))}var Tw={};function Sw(e,t){!e&&!Tw[t]&&(Tw[t]=!0,console.warn(t))}function o9(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&vr(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:k.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&vr(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:k.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&vr(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:k.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var a9=["HydrateFallback","hydrateFallbackElement"],i9=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 s9({router:e,flushSync:t}){let[n,r]=k.useState(e.state),[o,a]=k.useState(),[s,c]=k.useState({isTransitioning:!1}),[u,d]=k.useState(),[p,h]=k.useState(),[g,y]=k.useState(),b=k.useRef(new Map),x=k.useCallback((w,{deletedFetchers:R,flushSync:I,viewTransitionOpts:O})=>{w.fetchers.forEach((j,H)=>{j.data!==void 0&&b.current.set(H,j.data)}),R.forEach(j=>b.current.delete(j)),Sw(I===!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 F=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(Sw(O==null||F,"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."),!O||!F){t&&I?t(()=>r(w)):k.startTransition(()=>r(w));return}if(t&&I){t(()=>{p&&(u&&u.resolve(),p.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:O.currentLocation,nextLocation:O.nextLocation})});let j=e.window.document.startViewTransition(()=>{t(()=>r(w))});j.finished.finally(()=>{t(()=>{d(void 0),h(void 0),a(void 0),c({isTransitioning:!1})})}),t(()=>h(j));return}p?(u&&u.resolve(),p.skipTransition(),y({state:w,currentLocation:O.currentLocation,nextLocation:O.nextLocation})):(a(w),c({isTransitioning:!0,flushSync:!1,currentLocation:O.currentLocation,nextLocation:O.nextLocation}))},[e.window,t,p,u]);k.useLayoutEffect(()=>e.subscribe(x),[e,x]),k.useEffect(()=>{s.isTransitioning&&!s.flushSync&&d(new i9)},[s]),k.useEffect(()=>{if(u&&o&&e.window){let w=o,R=u.promise,I=e.window.document.startViewTransition(async()=>{k.startTransition(()=>r(w)),await R});I.finished.finally(()=>{d(void 0),h(void 0),a(void 0),c({isTransitioning:!1})}),h(I)}},[o,u,e.window]),k.useEffect(()=>{u&&o&&n.location.key===o.location.key&&u.resolve()},[u,p,n.location,o]),k.useEffect(()=>{!s.isTransitioning&&g&&(a(g.state),c({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),y(void 0))},[s.isTransitioning,g]);let S=k.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:w=>e.navigate(w),push:(w,R,I)=>e.navigate(w,{state:R,preventScrollReset:I?.preventScrollReset}),replace:(w,R,I)=>e.navigate(w,{replace:!0,state:R,preventScrollReset:I?.preventScrollReset})}),[e]),T=e.basename||"/",D=k.useMemo(()=>({router:e,navigator:S,static:!1,basename:T}),[e,S,T]);return k.createElement(k.Fragment,null,k.createElement(fc.Provider,{value:D},k.createElement(mh.Provider,{value:n},k.createElement(XN.Provider,{value:b.current},k.createElement(jT.Provider,{value:s},k.createElement(d9,{basename:T,location:n.location,navigationType:n.historyAction,navigator:S},k.createElement(l9,{routes:e.routes,future:e.future,state:n})))))),null)}var l9=k.memo(c9);function c9({routes:e,future:t,state:n}){return WB(e,void 0,n,t)}function u9(e){return qB(e.context)}function d9({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:a=!1}){Kt(!gh(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),c=k.useMemo(()=>({basename:s,navigator:o,static:a,future:{}}),[s,o,a]);typeof n=="string"&&(n=el(n));let{pathname:u="/",search:d="",hash:p="",state:h=null,key:g="default"}=n,y=k.useMemo(()=>{let b=Ta(u,s);return b==null?null:{location:{pathname:b,search:d,hash:p,state:h,key:g},navigationType:r}},[s,u,d,p,h,g,r]);return vr(y!=null,`<Router basename="${s}"> 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.`),y==null?null:k.createElement(bi.Provider,{value:c},k.createElement(a0.Provider,{children:t,value:y}))}var Ng="get",Pg="application/x-www-form-urlencoded";function i0(e){return e!=null&&typeof e.tagName=="string"}function f9(e){return i0(e)&&e.tagName.toLowerCase()==="button"}function p9(e){return i0(e)&&e.tagName.toLowerCase()==="form"}function h9(e){return i0(e)&&e.tagName.toLowerCase()==="input"}function m9(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function g9(e,t){return e.button===0&&(!t||t==="_self")&&!m9(e)}var rg=null;function y9(){if(rg===null)try{new FormData(document.createElement("form"),0),rg=!1}catch{rg=!0}return rg}var b9=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function j1(e){return e!=null&&!b9.has(e)?(vr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Pg}"`),null):e}function v9(e,t){let n,r,o,a,s;if(p9(e)){let c=e.getAttribute("action");r=c?Ta(c,t):null,n=e.getAttribute("method")||Ng,o=j1(e.getAttribute("enctype"))||Pg,a=new FormData(e)}else if(f9(e)||h9(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let u=e.getAttribute("formaction")||c.getAttribute("action");if(r=u?Ta(u,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||Ng,o=j1(e.getAttribute("formenctype"))||j1(c.getAttribute("enctype"))||Pg,a=new FormData(c,e),!y9()){let{name:d,type:p,value:h}=e;if(p==="image"){let g=d?`${d}.`:"";a.append(`${g}x`,"0"),a.append(`${g}y`,"0")}else d&&a.append(d,h)}}else{if(i0(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Ng,r=null,o=Pg,s=e}return a&&o==="text/plain"&&(s=a,a=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:a,body:s}}function VT(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function E9(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 x9(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 T9(e,t,n){let r=await Promise.all(e.map(async o=>{let a=t.routes[o.route.id];if(a){let s=await E9(a,n);return s.links?s.links():[]}return[]}));return A9(r.flat(1).filter(x9).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Cw(e,t,n,r,o,a){let s=(u,d)=>n[d]?u.route.id!==n[d].route.id:!0,c=(u,d)=>n[d].pathname!==u.pathname||n[d].route.path?.endsWith("*")&&n[d].params["*"]!==u.params["*"];return a==="assets"?t.filter((u,d)=>s(u,d)||c(u,d)):a==="data"?t.filter((u,d)=>{let p=r.routes[u.route.id];if(!p||!p.hasLoader)return!1;if(s(u,d)||c(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 S9(e,t,{includeHydrateFallback:n}={}){return C9(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 C9(e){return[...new Set(e)]}function _9(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function A9(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let a=JSON.stringify(_9(o));return n.has(a)||(n.add(a),r.push({key:a,link:o})),r},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var k9=new Set([100,101,204,205]);function w9(e,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname="_root.data":t&&Ta(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function n3(){let e=k.useContext(fc);return VT(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function D9(){let e=k.useContext(mh);return VT(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var GT=k.createContext(void 0);GT.displayName="FrameworkContext";function r3(){let e=k.useContext(GT);return VT(e,"You must render this element inside a <HydratedRouter> element"),e}function R9(e,t){let n=k.useContext(GT),[r,o]=k.useState(!1),[a,s]=k.useState(!1),{onFocus:c,onBlur:u,onMouseEnter:d,onMouseLeave:p,onTouchStart:h}=t,g=k.useRef(null);k.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let x=T=>{T.forEach(D=>{s(D.isIntersecting)})},S=new IntersectionObserver(x,{threshold:.5});return g.current&&S.observe(g.current),()=>{S.disconnect()}}},[e]),k.useEffect(()=>{if(r){let x=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(x)}}},[r]);let y=()=>{o(!0)},b=()=>{o(!1),s(!1)};return n?e!=="intent"?[a,g,{}]:[a,g,{onFocus:Af(c,y),onBlur:Af(u,b),onMouseEnter:Af(d,y),onMouseLeave:Af(p,b),onTouchStart:Af(h,y)}]:[!1,g,{}]}function Af(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function I9({page:e,...t}){let{router:n}=n3(),r=k.useMemo(()=>Hs(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?k.createElement(N9,{page:e,matches:r,...t}):null}function O9(e){let{manifest:t,routeModules:n}=r3(),[r,o]=k.useState([]);return k.useEffect(()=>{let a=!1;return T9(e,t,n).then(s=>{a||o(s)}),()=>{a=!0}},[e,t,n]),r}function N9({page:e,matches:t,...n}){let r=pc(),{manifest:o,routeModules:a}=r3(),{basename:s}=n3(),{loaderData:c,matches:u}=D9(),d=k.useMemo(()=>Cw(e,t,u,o,r,"data"),[e,t,u,o,r]),p=k.useMemo(()=>Cw(e,t,u,o,r,"assets"),[e,t,u,o,r]),h=k.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let b=new Set,x=!1;if(t.forEach(T=>{let D=o.routes[T.route.id];!D||!D.hasLoader||(!d.some(w=>w.route.id===T.route.id)&&T.route.id in c&&a[T.route.id]?.shouldRevalidate||D.hasClientLoader?x=!0:b.add(T.route.id))}),b.size===0)return[];let S=w9(e,s);return x&&b.size>0&&S.searchParams.set("_routes",t.filter(T=>b.has(T.route.id)).map(T=>T.route.id).join(",")),[S.pathname+S.search]},[s,c,r,o,d,t,e,a]),g=k.useMemo(()=>S9(p,o),[p,o]),y=O9(p);return k.createElement(k.Fragment,null,h.map(b=>k.createElement("link",{key:b,rel:"prefetch",as:"fetch",href:b,...n})),g.map(b=>k.createElement("link",{key:b,rel:"modulepreload",href:b,...n})),y.map(({key:b,link:x})=>k.createElement("link",{key:b,...x})))}function P9(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var o3=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{o3&&(window.__reactRouterVersion="7.6.2")}catch{}function L9(e,t){return SB({basename:t?.basename,unstable_getContext:t?.unstable_getContext,future:t?.future,history:VF({window:t?.window}),hydrationData:M9(),routes:e,mapRouteProperties:o9,hydrationRouteProperties:a9,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function M9(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:F9(e.errors)}),e}function F9(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 cy(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 s=new a(o.message);s.stack="",n[r]=s}catch{}}if(n[r]==null){let a=new Error(o.message);a.stack="",n[r]=a}}else n[r]=o;return n}var a3=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,i3=k.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:a,replace:s,state:c,target:u,to:d,preventScrollReset:p,viewTransition:h,...g},y){let{basename:b}=k.useContext(bi),x=typeof d=="string"&&a3.test(d),S,T=!1;if(typeof d=="string"&&x&&(S=d,o3))try{let H=new URL(window.location.href),C=d.startsWith("//")?new URL(H.protocol+d):new URL(d),M=Ta(C.pathname,b);C.origin===H.origin&&M!=null?d=M+C.search+C.hash:T=!0}catch{vr(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let D=$B(d,{relative:o}),[w,R,I]=R9(r,g),O=H9(d,{replace:s,state:c,target:u,preventScrollReset:p,relative:o,viewTransition:h});function F(H){t&&t(H),H.defaultPrevented||O(H)}let j=k.createElement("a",{...g,...I,href:S||D,onClick:T||a?t:F,ref:P9(y,R),target:u,"data-discover":!x&&n==="render"?"true":void 0});return w&&!x?k.createElement(k.Fragment,null,j,k.createElement(I9,{page:D})):j});i3.displayName="Link";var B9=k.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:a,to:s,viewTransition:c,children:u,...d},p){let h=yh(s,{relative:d.relative}),g=pc(),y=k.useContext(mh),{navigator:b,basename:x}=k.useContext(bi),S=y!=null&&q9(h)&&c===!0,T=b.encodeLocation?b.encodeLocation(h).pathname:h.pathname,D=g.pathname,w=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;n||(D=D.toLowerCase(),w=w?w.toLowerCase():null,T=T.toLowerCase()),w&&x&&(w=Ta(w,x)||w);const R=T!=="/"&&T.endsWith("/")?T.length-1:T.length;let I=D===T||!o&&D.startsWith(T)&&D.charAt(R)==="/",O=w!=null&&(w===T||!o&&w.startsWith(T)&&w.charAt(T.length)==="/"),F={isActive:I,isPending:O,isTransitioning:S},j=I?t:void 0,H;typeof r=="function"?H=r(F):H=[r,I?"active":null,O?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let C=typeof a=="function"?a(F):a;return k.createElement(i3,{...d,"aria-current":j,className:H,ref:p,style:C,to:s,viewTransition:c},typeof u=="function"?u(F):u)});B9.displayName="NavLink";var j9=k.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:a,method:s=Ng,action:c,onSubmit:u,relative:d,preventScrollReset:p,viewTransition:h,...g},y)=>{let b=V9(),x=G9(c,{relative:d}),S=s.toLowerCase()==="get"?"get":"post",T=typeof c=="string"&&a3.test(c),D=w=>{if(u&&u(w),w.defaultPrevented)return;w.preventDefault();let R=w.nativeEvent.submitter,I=R?.getAttribute("formmethod")||s;b(R||w.currentTarget,{fetcherKey:t,method:I,navigate:n,replace:o,state:a,relative:d,preventScrollReset:p,viewTransition:h})};return k.createElement("form",{ref:y,method:S,action:x,onSubmit:r?u:D,...g,"data-discover":!T&&e==="render"?"true":void 0})});j9.displayName="Form";function U9(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function s3(e){let t=k.useContext(fc);return Kt(t,U9(e)),t}function H9(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:a,viewTransition:s}={}){let c=HT(),u=pc(),d=yh(e,{relative:a});return k.useCallback(p=>{if(g9(p,t)){p.preventDefault();let h=n!==void 0?n:Ks(u)===Ks(d);c(e,{replace:h,state:r,preventScrollReset:o,relative:a,viewTransition:s})}},[u,c,d,n,r,t,e,o,a,s])}var z9=0,$9=()=>`__${String(++z9)}__`;function V9(){let{router:e}=s3("useSubmit"),{basename:t}=k.useContext(bi),n=n9();return k.useCallback(async(r,o={})=>{let{action:a,method:s,encType:c,formData:u,body:d}=v9(r,t);if(o.navigate===!1){let p=o.fetcherKey||$9();await e.fetch(p,n,o.action||a,{preventScrollReset:o.preventScrollReset,formData:u,body:d,formMethod:o.method||s,formEncType:o.encType||c,flushSync:o.flushSync})}else await e.navigate(o.action||a,{preventScrollReset:o.preventScrollReset,formData:u,body:d,formMethod:o.method||s,formEncType:o.encType||c,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function G9(e,{relative:t}={}){let{basename:n}=k.useContext(bi),r=k.useContext($a);Kt(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),a={...yh(e||".",{relative:t})},s=pc();if(e==null){a.search=s.search;let c=new URLSearchParams(a.search),u=c.getAll("index");if(u.some(p=>p==="")){c.delete("index"),u.filter(h=>h).forEach(h=>c.append("index",h));let p=c.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:di([n,a.pathname])),Ks(a)}function q9(e,t={}){let n=k.useContext(jT);Kt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=s3("useViewTransitionState"),o=yh(e,{relative:t.relative});if(!n.isTransitioning)return!1;let a=Ta(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=Ta(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ly(o.pathname,s)!=null||ly(o.pathname,a)!=null}[...k9];var s0=LN();const zs=PN(s0);/**
|
|
63
|
+
* react-router v7.6.2
|
|
64
|
+
*
|
|
65
|
+
* Copyright (c) Remix Software Inc.
|
|
66
|
+
*
|
|
67
|
+
* This source code is licensed under the MIT license found in the
|
|
68
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
69
|
+
*
|
|
70
|
+
* @license MIT
|
|
71
|
+
*/function W9(e){return k.createElement(s9,{flushSync:s0.flushSync,...e})}const Y9="modulepreload",K9=function(e){return"/"+e},_w={},G=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let s=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 c=document.querySelector("meta[property=csp-nonce]"),u=c?.nonce||c?.getAttribute("nonce");o=s(n.map(d=>{if(d=K9(d),d in _w)return;_w[d]=!0;const p=d.endsWith(".css"),h=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${h}`))return;const g=document.createElement("link");if(g.rel=p?"stylesheet":Y9,p||(g.as="script"),g.crossOrigin="",g.href=d,u&&g.setAttribute("nonce",u),document.head.appendChild(g),p)return new Promise((y,b)=>{g.addEventListener("load",y),g.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${d}`)))})}))}function a(s){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=s,window.dispatchEvent(c),!c.defaultPrevented)throw s}return o.then(s=>{for(const c of s||[])c.status==="rejected"&&a(c.reason);return t().catch(a)})};function ts(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 ix(){return ix=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},ix.apply(null,arguments)}function Q9(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 X9(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 Z9=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(X9(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=Q9(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}(),Yr="-ms-",dy="-moz-",ln="-webkit-",l3="comm",qT="rule",WT="decl",J9="@import",c3="@keyframes",ej="@layer",tj=Math.abs,l0=String.fromCharCode,nj=Object.assign;function rj(e,t){return Ur(e,0)^45?(((t<<2^Ur(e,0))<<2^Ur(e,1))<<2^Ur(e,2))<<2^Ur(e,3):0}function u3(e){return e.trim()}function oj(e,t){return(e=t.exec(e))?e[0]:e}function cn(e,t,n){return e.replace(t,n)}function sx(e,t){return e.indexOf(t)}function Ur(e,t){return e.charCodeAt(t)|0}function Lp(e,t,n){return e.slice(t,n)}function ii(e){return e.length}function YT(e){return e.length}function og(e,t){return t.push(e),e}function aj(e,t){return e.map(t).join("")}var c0=1,Uu=1,d3=0,Ao=0,br=0,td="";function u0(e,t,n,r,o,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:c0,column:Uu,length:s,return:""}}function kf(e,t){return nj(u0("",null,null,"",null,null,0),e,{length:-e.length},t)}function ij(){return br}function sj(){return br=Ao>0?Ur(td,--Ao):0,Uu--,br===10&&(Uu=1,c0--),br}function Vo(){return br=Ao<d3?Ur(td,Ao++):0,Uu++,br===10&&(Uu=1,c0++),br}function fi(){return Ur(td,Ao)}function Lg(){return Ao}function bh(e,t){return Lp(td,e,t)}function Mp(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 f3(e){return c0=Uu=1,d3=ii(td=e),Ao=0,[]}function p3(e){return td="",e}function Mg(e){return u3(bh(Ao-1,lx(e===91?e+2:e===40?e+1:e)))}function lj(e){for(;(br=fi())&&br<33;)Vo();return Mp(e)>2||Mp(br)>3?"":" "}function cj(e,t){for(;--t&&Vo()&&!(br<48||br>102||br>57&&br<65||br>70&&br<97););return bh(e,Lg()+(t<6&&fi()==32&&Vo()==32))}function lx(e){for(;Vo();)switch(br){case e:return Ao;case 34:case 39:e!==34&&e!==39&&lx(br);break;case 40:e===41&&lx(e);break;case 92:Vo();break}return Ao}function uj(e,t){for(;Vo()&&e+br!==57;)if(e+br===84&&fi()===47)break;return"/*"+bh(t,Ao-1)+"*"+l0(e===47?e:Vo())}function dj(e){for(;!Mp(fi());)Vo();return bh(e,Ao)}function fj(e){return p3(Fg("",null,null,null,[""],e=f3(e),0,[0],e))}function Fg(e,t,n,r,o,a,s,c,u){for(var d=0,p=0,h=s,g=0,y=0,b=0,x=1,S=1,T=1,D=0,w="",R=o,I=a,O=r,F=w;S;)switch(b=D,D=Vo()){case 40:if(b!=108&&Ur(F,h-1)==58){sx(F+=cn(Mg(D),"&","&\f"),"&\f")!=-1&&(T=-1);break}case 34:case 39:case 91:F+=Mg(D);break;case 9:case 10:case 13:case 32:F+=lj(b);break;case 92:F+=cj(Lg()-1,7);continue;case 47:switch(fi()){case 42:case 47:og(pj(uj(Vo(),Lg()),t,n),u);break;default:F+="/"}break;case 123*x:c[d++]=ii(F)*T;case 125*x:case 59:case 0:switch(D){case 0:case 125:S=0;case 59+p:T==-1&&(F=cn(F,/\f/g,"")),y>0&&ii(F)-h&&og(y>32?kw(F+";",r,n,h-1):kw(cn(F," ","")+";",r,n,h-2),u);break;case 59:F+=";";default:if(og(O=Aw(F,t,n,d,p,o,c,w,R=[],I=[],h),a),D===123)if(p===0)Fg(F,t,O,O,R,a,h,c,I);else switch(g===99&&Ur(F,3)===110?100:g){case 100:case 108:case 109:case 115:Fg(e,O,O,r&&og(Aw(e,O,O,0,0,o,c,w,o,R=[],h),I),o,I,h,c,r?R:I);break;default:Fg(F,O,O,O,[""],I,0,c,I)}}d=p=y=0,x=T=1,w=F="",h=s;break;case 58:h=1+ii(F),y=b;default:if(x<1){if(D==123)--x;else if(D==125&&x++==0&&sj()==125)continue}switch(F+=l0(D),D*x){case 38:T=p>0?1:(F+="\f",-1);break;case 44:c[d++]=(ii(F)-1)*T,T=1;break;case 64:fi()===45&&(F+=Mg(Vo())),g=fi(),p=h=ii(w=F+=dj(Lg())),D++;break;case 45:b===45&&ii(F)==2&&(x=0)}}return a}function Aw(e,t,n,r,o,a,s,c,u,d,p){for(var h=o-1,g=o===0?a:[""],y=YT(g),b=0,x=0,S=0;b<r;++b)for(var T=0,D=Lp(e,h+1,h=tj(x=s[b])),w=e;T<y;++T)(w=u3(x>0?g[T]+" "+D:cn(D,/&\f/g,g[T])))&&(u[S++]=w);return u0(e,t,n,o===0?qT:c,u,d,p)}function pj(e,t,n){return u0(e,t,n,l3,l0(ij()),Lp(e,2,-2),0)}function kw(e,t,n,r){return u0(e,t,n,WT,Lp(e,0,r),Lp(e,r+1,-1),r)}function wu(e,t){for(var n="",r=YT(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function hj(e,t,n,r){switch(e.type){case ej:if(e.children.length)break;case J9:case WT:return e.return=e.return||e.value;case l3:return"";case c3:return e.return=e.value+"{"+wu(e.children,r)+"}";case qT:e.value=e.props.join(",")}return ii(n=wu(e.children,r))?e.return=e.value+"{"+n+"}":""}function mj(e){var t=YT(e);return function(n,r,o,a){for(var s="",c=0;c<t;c++)s+=e[c](n,r,o,a)||"";return s}}function gj(e){return function(t){t.root||(t=t.return)&&e(t)}}function h3(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var yj=function(t,n,r){for(var o=0,a=0;o=a,a=fi(),o===38&&a===12&&(n[r]=1),!Mp(a);)Vo();return bh(t,Ao)},bj=function(t,n){var r=-1,o=44;do switch(Mp(o)){case 0:o===38&&fi()===12&&(n[r]=1),t[r]+=yj(Ao-1,n,r);break;case 2:t[r]+=Mg(o);break;case 4:if(o===44){t[++r]=fi()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=l0(o)}while(o=Vo());return t},vj=function(t,n){return p3(bj(f3(t),n))},ww=new WeakMap,Ej=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&&!ww.get(r))&&!o){ww.set(t,!0);for(var a=[],s=vj(n,a),c=r.props,u=0,d=0;u<s.length;u++)for(var p=0;p<c.length;p++,d++)t.props[d]=a[u]?s[u].replace(/&\f/g,c[p]):c[p]+" "+s[u]}}},xj=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function m3(e,t){switch(rj(e,t)){case 5103:return ln+"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 ln+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ln+e+dy+e+Yr+e+e;case 6828:case 4268:return ln+e+Yr+e+e;case 6165:return ln+e+Yr+"flex-"+e+e;case 5187:return ln+e+cn(e,/(\w+).+(:[^]+)/,ln+"box-$1$2"+Yr+"flex-$1$2")+e;case 5443:return ln+e+Yr+"flex-item-"+cn(e,/flex-|-self/,"")+e;case 4675:return ln+e+Yr+"flex-line-pack"+cn(e,/align-content|flex-|-self/,"")+e;case 5548:return ln+e+Yr+cn(e,"shrink","negative")+e;case 5292:return ln+e+Yr+cn(e,"basis","preferred-size")+e;case 6060:return ln+"box-"+cn(e,"-grow","")+ln+e+Yr+cn(e,"grow","positive")+e;case 4554:return ln+cn(e,/([^-])(transform)/g,"$1"+ln+"$2")+e;case 6187:return cn(cn(cn(e,/(zoom-|grab)/,ln+"$1"),/(image-set)/,ln+"$1"),e,"")+e;case 5495:case 3959:return cn(e,/(image-set\([^]*)/,ln+"$1$`$1");case 4968:return cn(cn(e,/(.+:)(flex-)?(.*)/,ln+"box-pack:$3"+Yr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ln+e+e;case 4095:case 3583:case 4068:case 2532:return cn(e,/(.+)-inline(.+)/,ln+"$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(ii(e)-1-t>6)switch(Ur(e,t+1)){case 109:if(Ur(e,t+4)!==45)break;case 102:return cn(e,/(.+:)(.+)-([^]+)/,"$1"+ln+"$2-$3$1"+dy+(Ur(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~sx(e,"stretch")?m3(cn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ur(e,t+1)!==115)break;case 6444:switch(Ur(e,ii(e)-3-(~sx(e,"!important")&&10))){case 107:return cn(e,":",":"+ln)+e;case 101:return cn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ln+(Ur(e,14)===45?"inline-":"")+"box$3$1"+ln+"$2$3$1"+Yr+"$2box$3")+e}break;case 5936:switch(Ur(e,t+11)){case 114:return ln+e+Yr+cn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ln+e+Yr+cn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ln+e+Yr+cn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ln+e+Yr+e+e}return e}var Tj=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case WT:t.return=m3(t.value,t.length);break;case c3:return wu([kf(t,{value:cn(t.value,"@","@"+ln)})],o);case qT:if(t.length)return aj(t.props,function(a){switch(oj(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return wu([kf(t,{props:[cn(a,/:(read-\w+)/,":"+dy+"$1")]})],o);case"::placeholder":return wu([kf(t,{props:[cn(a,/:(plac\w+)/,":"+ln+"input-$1")]}),kf(t,{props:[cn(a,/:(plac\w+)/,":"+dy+"$1")]}),kf(t,{props:[cn(a,/:(plac\w+)/,Yr+"input-$1")]})],o)}return""})}},Sj=[Tj],Cj=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(x){var S=x.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var o=t.stylisPlugins||Sj,a={},s,c=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(x){for(var S=x.getAttribute("data-emotion").split(" "),T=1;T<S.length;T++)a[S[T]]=!0;c.push(x)});var u,d=[Ej,xj];{var p,h=[hj,gj(function(x){p.insert(x)})],g=mj(d.concat(o,h)),y=function(S){return wu(fj(S),g)};u=function(S,T,D,w){p=D,y(S?S+"{"+T.styles+"}":T.styles),w&&(b.inserted[T.name]=!0)}}var b={key:n,sheet:new Z9({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:u};return b.sheet.hydrate(c),b},U1={exports:{}},un={};/** @license React v16.13.1
|
|
72
|
+
* react-is.production.min.js
|
|
73
|
+
*
|
|
74
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
75
|
+
*
|
|
76
|
+
* This source code is licensed under the MIT license found in the
|
|
77
|
+
* LICENSE file in the root directory of this source tree.
|
|
78
|
+
*/var Dw;function _j(){if(Dw)return un;Dw=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,s=e?Symbol.for("react.provider"):60109,c=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,g=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,T=e?Symbol.for("react.responder"):60118,D=e?Symbol.for("react.scope"):60119;function w(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 c:case p:case b:case y:case s:return I;default:return O}}case n:return O}}}function R(I){return w(I)===d}return un.AsyncMode=u,un.ConcurrentMode=d,un.ContextConsumer=c,un.ContextProvider=s,un.Element=t,un.ForwardRef=p,un.Fragment=r,un.Lazy=b,un.Memo=y,un.Portal=n,un.Profiler=a,un.StrictMode=o,un.Suspense=h,un.isAsyncMode=function(I){return R(I)||w(I)===u},un.isConcurrentMode=R,un.isContextConsumer=function(I){return w(I)===c},un.isContextProvider=function(I){return w(I)===s},un.isElement=function(I){return typeof I=="object"&&I!==null&&I.$$typeof===t},un.isForwardRef=function(I){return w(I)===p},un.isFragment=function(I){return w(I)===r},un.isLazy=function(I){return w(I)===b},un.isMemo=function(I){return w(I)===y},un.isPortal=function(I){return w(I)===n},un.isProfiler=function(I){return w(I)===a},un.isStrictMode=function(I){return w(I)===o},un.isSuspense=function(I){return w(I)===h},un.isValidElementType=function(I){return typeof I=="string"||typeof I=="function"||I===r||I===d||I===a||I===o||I===h||I===g||typeof I=="object"&&I!==null&&(I.$$typeof===b||I.$$typeof===y||I.$$typeof===s||I.$$typeof===c||I.$$typeof===p||I.$$typeof===S||I.$$typeof===T||I.$$typeof===D||I.$$typeof===x)},un.typeOf=w,un}var Rw;function Aj(){return Rw||(Rw=1,U1.exports=_j()),U1.exports}var H1,Iw;function kj(){if(Iw)return H1;Iw=1;var e=Aj(),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 s(b){return e.isMemo(b)?o:a[b.$$typeof]||t}var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,g=Object.prototype;function y(b,x,S){if(typeof x!="string"){if(g){var T=h(x);T&&T!==g&&y(b,T,S)}var D=u(x);d&&(D=D.concat(d(x)));for(var w=s(b),R=s(x),I=0;I<D.length;++I){var O=D[I];if(!n[O]&&!(S&&S[O])&&!(R&&R[O])&&!(w&&w[O])){var F=p(x,O);try{c(b,O,F)}catch{}}}}return b}return H1=y,H1}kj();var wj=!0;function g3(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var KT=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||wj===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},QT=function(t,n,r){KT(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 Dj(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 Rj={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},Ij=/[A-Z]|^ms/g,Oj=/_EMO_([^_]+?)_([^]*?)_EMO_/g,y3=function(t){return t.charCodeAt(1)===45},Ow=function(t){return t!=null&&typeof t!="boolean"},z1=h3(function(e){return y3(e)?e:e.replace(Ij,"-$&").toLowerCase()}),Nw=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Oj,function(r,o,a){return si={name:o,styles:a,next:si},o})}return Rj[t]!==1&&!y3(t)&&typeof n=="number"&&n!==0?n+"px":n};function Fp(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 si={name:o.name,styles:o.styles,next:si},o.name;var a=n;if(a.styles!==void 0){var s=a.next;if(s!==void 0)for(;s!==void 0;)si={name:s.name,styles:s.styles,next:si},s=s.next;var c=a.styles+";";return c}return Nj(e,t,n)}case"function":{if(e!==void 0){var u=si,d=n(e);return si=u,Fp(e,t,d)}break}}var p=n;if(t==null)return p;var h=t[p];return h!==void 0?h:p}function Nj(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Fp(e,t,n[o])+";";else for(var a in n){var s=n[a];if(typeof s!="object"){var c=s;t!=null&&t[c]!==void 0?r+=a+"{"+t[c]+"}":Ow(c)&&(r+=z1(a)+":"+Nw(a,c)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var u=0;u<s.length;u++)Ow(s[u])&&(r+=z1(a)+":"+Nw(a,s[u])+";");else{var d=Fp(e,t,s);switch(a){case"animation":case"animationName":{r+=z1(a)+":"+d+";";break}default:r+=a+"{"+d+"}"}}}return r}var Pw=/label:\s*([^\s;{]+)\s*(;|$)/g,si;function vh(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="";si=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,o+=Fp(n,t,a);else{var s=a;o+=s[0]}for(var c=1;c<e.length;c++)if(o+=Fp(n,t,e[c]),r){var u=a;o+=u[c]}Pw.lastIndex=0;for(var d="",p;(p=Pw.exec(o))!==null;)d+="-"+p[1];var h=Dj(o)+d;return{name:h,styles:o,next:si}}var Pj=function(t){return t()},b3=tx.useInsertionEffect?tx.useInsertionEffect:!1,v3=b3||Pj,Lw=b3||k.useLayoutEffect,E3=k.createContext(typeof HTMLElement<"u"?Cj({key:"css"}):null);E3.Provider;var XT=function(t){return k.forwardRef(function(n,r){var o=k.useContext(E3);return t(n,o,r)})},nd=k.createContext({}),ZT={}.hasOwnProperty,cx="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Lj=function(t,n){var r={};for(var o in n)ZT.call(n,o)&&(r[o]=n[o]);return r[cx]=t,r},Mj=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return KT(n,r,o),v3(function(){return QT(n,r,o)}),null},Fj=XT(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[cx],a=[r],s="";typeof e.className=="string"?s=g3(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var c=vh(a,void 0,k.useContext(nd));s+=t.key+"-"+c.name;var u={};for(var d in e)ZT.call(e,d)&&d!=="css"&&d!==cx&&(u[d]=e[d]);return u.className=s,n&&(u.ref=n),k.createElement(k.Fragment,null,k.createElement(Mj,{cache:t,serialized:c,isStringTag:typeof o=="string"}),k.createElement(o,u))}),Bj=Fj,Mw=function(t,n){var r=arguments;if(n==null||!ZT.call(n,"css"))return k.createElement.apply(void 0,r);var o=r.length,a=new Array(o);a[0]=Bj,a[1]=Lj(t,n);for(var s=2;s<o;s++)a[s]=r[s];return k.createElement.apply(null,a)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Mw||(Mw={}));var jj=XT(function(e,t){var n=e.styles,r=vh([n],void 0,k.useContext(nd)),o=k.useRef();return Lw(function(){var a=t.key+"-global",s=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),c=!1,u=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),u!==null&&(c=!0,u.setAttribute("data-emotion",a),s.hydrate([u])),o.current=[s,c],function(){s.flush()}},[t]),Lw(function(){var a=o.current,s=a[0],c=a[1];if(c){a[1]=!1;return}if(r.next!==void 0&&QT(t,r.next,!0),s.tags.length){var u=s.tags[s.tags.length-1].nextElementSibling;s.before=u,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null});function JT(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return vh(t)}function tl(){var e=JT.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 Uj=/^((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|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)-.*))$/,Hj=h3(function(e){return Uj.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),zj=Hj,$j=function(t){return t!=="theme"},Fw=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?zj:$j},Bw=function(t,n,r){var o;if(n){var a=n.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(s){return t.__emotion_forwardProp(s)&&a(s)}:a}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},Vj=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return KT(n,r,o),v3(function(){return QT(n,r,o)}),null},Gj=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,a,s;n!==void 0&&(a=n.label,s=n.target);var c=Bw(t,n,r),u=c||Fw(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 g=p[0];h.push(g[0]);for(var y=p.length,b=1;b<y;b++)h.push(p[b],g[b])}var x=XT(function(S,T,D){var w=d&&S.as||o,R="",I=[],O=S;if(S.theme==null){O={};for(var F in S)O[F]=S[F];O.theme=k.useContext(nd)}typeof S.className=="string"?R=g3(T.registered,I,S.className):S.className!=null&&(R=S.className+" ");var j=vh(h.concat(I),T.registered,O);R+=T.key+"-"+j.name,s!==void 0&&(R+=" "+s);var H=d&&c===void 0?Fw(w):u,C={};for(var M in S)d&&M==="as"||H(M)&&(C[M]=S[M]);return C.className=R,D&&(C.ref=D),k.createElement(k.Fragment,null,k.createElement(Vj,{cache:T,serialized:j,isStringTag:typeof w=="string"}),k.createElement(w,C))});return x.displayName=a!==void 0?a:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",x.defaultProps=t.defaultProps,x.__emotion_real=x,x.__emotion_base=o,x.__emotion_styles=h,x.__emotion_forwardProp=c,Object.defineProperty(x,"toString",{value:function(){return"."+s}}),x.withComponent=function(S,T){var D=e(S,ix({},n,T,{shouldForwardProp:Bw(x,T,!0)}));return D.apply(void 0,h)},x}},qj=["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"],fy=Gj.bind(null);qj.forEach(function(e){fy[e]=fy(e)});function Wj(e){return e==null||Object.keys(e).length===0}function x3(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(Wj(o)?n:o):t;return v.jsx(jj,{styles:r})}function T3(e,t){return fy(e,t)}function Yj(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const jw=[];function Uw(e){return jw[0]=e,vh(jw)}var $1={exports:{}},vn={};/**
|
|
79
|
+
* @license React
|
|
80
|
+
* react-is.production.js
|
|
81
|
+
*
|
|
82
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
83
|
+
*
|
|
84
|
+
* This source code is licensed under the MIT license found in the
|
|
85
|
+
* LICENSE file in the root directory of this source tree.
|
|
86
|
+
*/var Hw;function Kj(){if(Hw)return vn;Hw=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"),s=Symbol.for("react.context"),c=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"),g=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function b(x){if(typeof x=="object"&&x!==null){var S=x.$$typeof;switch(S){case e:switch(x=x.type,x){case n:case o:case r:case u:case d:case g:return x;default:switch(x=x&&x.$$typeof,x){case s:case c:case h:case p:return x;case a:return x;default:return S}}case t:return S}}}return vn.ContextConsumer=a,vn.ContextProvider=s,vn.Element=e,vn.ForwardRef=c,vn.Fragment=n,vn.Lazy=h,vn.Memo=p,vn.Portal=t,vn.Profiler=o,vn.StrictMode=r,vn.Suspense=u,vn.SuspenseList=d,vn.isContextConsumer=function(x){return b(x)===a},vn.isContextProvider=function(x){return b(x)===s},vn.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},vn.isForwardRef=function(x){return b(x)===c},vn.isFragment=function(x){return b(x)===n},vn.isLazy=function(x){return b(x)===h},vn.isMemo=function(x){return b(x)===p},vn.isPortal=function(x){return b(x)===t},vn.isProfiler=function(x){return b(x)===o},vn.isStrictMode=function(x){return b(x)===r},vn.isSuspense=function(x){return b(x)===u},vn.isSuspenseList=function(x){return b(x)===d},vn.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===n||x===o||x===r||x===u||x===d||typeof x=="object"&&x!==null&&(x.$$typeof===h||x.$$typeof===p||x.$$typeof===s||x.$$typeof===a||x.$$typeof===c||x.$$typeof===y||x.getModuleId!==void 0)},vn.typeOf=b,vn}var zw;function Qj(){return zw||(zw=1,$1.exports=Kj()),$1.exports}var S3=Qj();function ci(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 C3(e){if(k.isValidElement(e)||S3.isValidElementType(e)||!ci(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=C3(e[n])}),t}function Pr(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return ci(e)&&ci(t)&&Object.keys(t).forEach(o=>{k.isValidElement(t[o])||S3.isValidElementType(t[o])?r[o]=t[o]:ci(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&ci(e[o])?r[o]=Pr(e[o],t[o],n):n.clone?r[o]=ci(t[o])?C3(t[o]):t[o]:r[o]=t[o]}),r}const Xj=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 Zj(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,a=Xj(t),s=Object.keys(a);function c(g){return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n})`}function u(g){return`@media (max-width:${(typeof t[g]=="number"?t[g]:g)-r/100}${n})`}function d(g,y){const b=s.indexOf(y);return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n}) and (max-width:${(b!==-1&&typeof t[s[b]]=="number"?t[s[b]]:y)-r/100}${n})`}function p(g){return s.indexOf(g)+1<s.length?d(g,s[s.indexOf(g)+1]):c(g)}function h(g){const y=s.indexOf(g);return y===0?c(s[1]):y===s.length-1?u(s[y]):d(g,s[s.indexOf(g)+1]).replace("@media","@media not all and")}return{keys:s,values:a,up:c,down:u,between:d,only:p,not:h,unit:n,...o}}function Jj(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 eU(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function tU(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 nU(e){const t=(a,s)=>a.replace("@media",s?`@container ${s}`:"@container");function n(a,s){a.up=(...c)=>t(e.breakpoints.up(...c),s),a.down=(...c)=>t(e.breakpoints.down(...c),s),a.between=(...c)=>t(e.breakpoints.between(...c),s),a.only=(...c)=>t(e.breakpoints.only(...c),s),a.not=(...c)=>{const u=t(e.breakpoints.not(...c),s);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 rU={borderRadius:4};function cp(e,t){return t?Pr(e,t,{clone:!1}):e}const d0={xs:0,sm:600,md:900,lg:1200,xl:1536},$w={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${d0[e]}px)`},oU={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:d0[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function ja(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||$w;return t.reduce((s,c,u)=>(s[a.up(a.keys[u])]=n(t[u]),s),{})}if(typeof t=="object"){const a=r.breakpoints||$w;return Object.keys(t).reduce((s,c)=>{if(eU(a.keys,c)){const u=tU(r.containerQueries?r:oU,c);u&&(s[u]=n(t[c],c))}else if(Object.keys(a.values||d0).includes(c)){const u=a.up(c);s[u]=n(t[c],c)}else{const u=c;s[u]=t[u]}return s},{})}return n(t)}function _3(e={}){return e.keys?.reduce((n,r)=>{const o=e.up(r);return n[o]={},n},{})||{}}function A3(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function aU(e,...t){const n=_3(e),r=[n,...t].reduce((o,a)=>Pr(o,a),{});return A3(Object.keys(n),r)}function iU(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 V1({values:e,breakpoints:t,base:n}){const r=n||iU(e,t),o=Object.keys(r);if(o.length===0)return e;let a;return o.reduce((s,c,u)=>(Array.isArray(e)?(s[c]=e[u]!=null?e[u]:e[a],a=u):typeof e=="object"?(s[c]=e[c]!=null?e[c]:e[a],a=c):s[c]=e,s),{})}function Ne(e){if(typeof e!="string")throw new Error(ts(7));return e.charAt(0).toUpperCase()+e.slice(1)}function f0(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 py(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=f0(e,n)||r,t&&(o=t(o,r,e)),o}function ir(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=s=>{if(s[t]==null)return null;const c=s[t],u=s.theme,d=f0(u,r)||{};return ja(s,c,h=>{let g=py(d,o,h);return h===g&&typeof h=="string"&&(g=py(d,o,`${t}${h==="default"?"":Ne(h)}`,h)),n===!1?g:{[n]:g}})};return a.propTypes={},a.filterProps=[t],a}function sU(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const lU={m:"margin",p:"padding"},cU={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Vw={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},uU=sU(e=>{if(e.length>2)if(Vw[e])e=Vw[e];else return[e];const[t,n]=e.split(""),r=lU[t],o=cU[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),eS=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],tS=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...eS,...tS];function Eh(e,t,n,r){const o=f0(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 s=Math.abs(a),c=o[s];return a>=0?c:typeof c=="number"?-c:typeof c=="string"&&c.startsWith("var(")?`calc(-1 * ${c})`:`-${c}`}:typeof o=="function"?o:()=>{}}function p0(e){return Eh(e,"spacing",8)}function Xl(e,t){return typeof t=="string"||t==null?t:e(t)}function dU(e,t){return n=>e.reduce((r,o)=>(r[o]=Xl(t,n),r),{})}function fU(e,t,n,r){if(!t.includes(n))return null;const o=uU(n),a=dU(o,r),s=e[n];return ja(e,s,a)}function k3(e,t){const n=p0(e.theme);return Object.keys(e).map(r=>fU(e,t,r,n)).reduce(cp,{})}function Wn(e){return k3(e,eS)}Wn.propTypes={};Wn.filterProps=eS;function Yn(e){return k3(e,tS)}Yn.propTypes={};Yn.filterProps=tS;function nS(e=8,t=p0({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(a=>{const s=t(a);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function h0(...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]?cp(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function pa(e){return typeof e!="number"?e:`${e}px solid`}function _a(e,t){return ir({prop:e,themeKey:"borders",transform:t})}const pU=_a("border",pa),hU=_a("borderTop",pa),mU=_a("borderRight",pa),gU=_a("borderBottom",pa),yU=_a("borderLeft",pa),bU=_a("borderColor"),vU=_a("borderTopColor"),EU=_a("borderRightColor"),xU=_a("borderBottomColor"),TU=_a("borderLeftColor"),SU=_a("outline",pa),CU=_a("outlineColor"),m0=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Eh(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Xl(t,r)});return ja(e,e.borderRadius,n)}return null};m0.propTypes={};m0.filterProps=["borderRadius"];h0(pU,hU,mU,gU,yU,bU,vU,EU,xU,TU,m0,SU,CU);const g0=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Eh(e.theme,"spacing",8),n=r=>({gap:Xl(t,r)});return ja(e,e.gap,n)}return null};g0.propTypes={};g0.filterProps=["gap"];const y0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Eh(e.theme,"spacing",8),n=r=>({columnGap:Xl(t,r)});return ja(e,e.columnGap,n)}return null};y0.propTypes={};y0.filterProps=["columnGap"];const b0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Eh(e.theme,"spacing",8),n=r=>({rowGap:Xl(t,r)});return ja(e,e.rowGap,n)}return null};b0.propTypes={};b0.filterProps=["rowGap"];const _U=ir({prop:"gridColumn"}),AU=ir({prop:"gridRow"}),kU=ir({prop:"gridAutoFlow"}),wU=ir({prop:"gridAutoColumns"}),DU=ir({prop:"gridAutoRows"}),RU=ir({prop:"gridTemplateColumns"}),IU=ir({prop:"gridTemplateRows"}),OU=ir({prop:"gridTemplateAreas"}),NU=ir({prop:"gridArea"});h0(g0,y0,b0,_U,AU,kU,wU,DU,RU,IU,OU,NU);function Du(e,t){return t==="grey"?t:e}const PU=ir({prop:"color",themeKey:"palette",transform:Du}),LU=ir({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Du}),MU=ir({prop:"backgroundColor",themeKey:"palette",transform:Du});h0(PU,LU,MU);function Ho(e){return e<=1&&e!==0?`${e*100}%`:e}const FU=ir({prop:"width",transform:Ho}),rS=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||d0[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Ho(n)}};return ja(e,e.maxWidth,t)}return null};rS.filterProps=["maxWidth"];const BU=ir({prop:"minWidth",transform:Ho}),jU=ir({prop:"height",transform:Ho}),UU=ir({prop:"maxHeight",transform:Ho}),HU=ir({prop:"minHeight",transform:Ho});ir({prop:"size",cssProperty:"width",transform:Ho});ir({prop:"size",cssProperty:"height",transform:Ho});const zU=ir({prop:"boxSizing"});h0(FU,rS,BU,jU,UU,HU,zU);const xh={border:{themeKey:"borders",transform:pa},borderTop:{themeKey:"borders",transform:pa},borderRight:{themeKey:"borders",transform:pa},borderBottom:{themeKey:"borders",transform:pa},borderLeft:{themeKey:"borders",transform:pa},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:pa},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:m0},color:{themeKey:"palette",transform:Du},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Du},backgroundColor:{themeKey:"palette",transform:Du},p:{style:Yn},pt:{style:Yn},pr:{style:Yn},pb:{style:Yn},pl:{style:Yn},px:{style:Yn},py:{style:Yn},padding:{style:Yn},paddingTop:{style:Yn},paddingRight:{style:Yn},paddingBottom:{style:Yn},paddingLeft:{style:Yn},paddingX:{style:Yn},paddingY:{style:Yn},paddingInline:{style:Yn},paddingInlineStart:{style:Yn},paddingInlineEnd:{style:Yn},paddingBlock:{style:Yn},paddingBlockStart:{style:Yn},paddingBlockEnd:{style:Yn},m:{style:Wn},mt:{style:Wn},mr:{style:Wn},mb:{style:Wn},ml:{style:Wn},mx:{style:Wn},my:{style:Wn},margin:{style:Wn},marginTop:{style:Wn},marginRight:{style:Wn},marginBottom:{style:Wn},marginLeft:{style:Wn},marginX:{style:Wn},marginY:{style:Wn},marginInline:{style:Wn},marginInlineStart:{style:Wn},marginInlineEnd:{style:Wn},marginBlock:{style:Wn},marginBlockStart:{style:Wn},marginBlockEnd:{style:Wn},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:g0},rowGap:{style:b0},columnGap:{style:y0},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ho},maxWidth:{style:rS},minWidth:{transform:Ho},height:{transform:Ho},maxHeight:{transform:Ho},minHeight:{transform:Ho},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 $U(...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 VU(e,t){return typeof e=="function"?e(t):e}function GU(){function e(n,r,o,a){const s={[n]:r,theme:o},c=a[n];if(!c)return{[n]:r};const{cssProperty:u=n,themeKey:d,transform:p,style:h}=c;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const g=f0(o,d)||{};return h?h(s):ja(s,r,b=>{let x=py(g,p,b);return b===x&&typeof b=="string"&&(x=py(g,p,`${n}${b==="default"?"":Ne(b)}`,b)),u===!1?x:{[u]:x}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const a=o.unstable_sxConfig??xh;function s(c){let u=c;if(typeof c=="function")u=c(o);else if(typeof c!="object")return c;if(!u)return null;const d=_3(o.breakpoints),p=Object.keys(d);let h=d;return Object.keys(u).forEach(g=>{const y=VU(u[g],o);if(y!=null)if(typeof y=="object")if(a[g])h=cp(h,e(g,y,o,a));else{const b=ja({theme:o},y,x=>({[g]:x}));$U(b,y)?h[g]=t({sx:y,theme:o}):h=cp(h,b)}else h=cp(h,e(g,y,o,a))}),Jj(o,A3(p,h))}return Array.isArray(r)?r.map(s):s(r)}return t}const Qs=GU();Qs.filterProps=["sx"];function qU(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 rd(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={},...s}=e,c=Zj(n),u=nS(o);let d=Pr({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:u,shape:{...rU,...a}},s);return d=nU(d),d.applyStyles=qU,d=t.reduce((p,h)=>Pr(p,h),d),d.unstable_sxConfig={...xh,...s?.unstable_sxConfig},d.unstable_sx=function(h){return Qs({sx:h,theme:this})},d}function WU(e){return Object.keys(e).length===0}function w3(e=null){const t=k.useContext(nd);return!t||WU(t)?e:t}const YU=rd();function od(e=YU){return w3(e)}function KU({styles:e,themeId:t,defaultTheme:n={}}){const r=od(n),o=typeof e=="function"?e(t&&r[t]||r):e;return v.jsx(x3,{styles:o})}const QU=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??xh;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function v0(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=QU(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...s)=>{const c=t(...s);return ci(c)?{...r,...c}:r}:a={...r,...t},{...o,sx:a}}const Gw=e=>e,XU=()=>{let e=Gw;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Gw}}},oS=XU();function D3(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=D3(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function qe(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=D3(e))&&(r&&(r+=" "),r+=t);return r}function R3(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,a=T3("div",{shouldForwardProp:c=>c!=="theme"&&c!=="sx"&&c!=="as"})(Qs);return k.forwardRef(function(u,d){const p=od(n),{className:h,component:g="div",...y}=v0(u);return v.jsx(a,{as:g,ref:d,className:qe(h,o?o(r):r),theme:t&&p[t]||p,...y})})}const ZU={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 it(e,t,n="Mui"){const r=ZU[t];return r?`${n}-${r}`:`${oS.generate(e)}-${t}`}function ut(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=it(e,o,n)}),r}const JU=ut("MuiBox",["root"]),I3=R3({defaultClassName:JU.root,generateClassName:oS.generate});function O3(e){const{variants:t,...n}=e,r={variants:t,style:Uw(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Uw(o.style))}),r}const eH=rd();function Bg(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function tH(e){return e?(t,n)=>n[e]:null}function nH(e,t,n){e.theme=oH(e.theme)?n:e.theme[t]||e.theme}function jg(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>jg(e,r));if(Array.isArray(n?.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:o,...a}=n;r=a}return N3(e,n.variants,[r])}return n?.isProcessed?n.style:n}function N3(e,t,n=[]){let r;e:for(let o=0;o<t.length;o+=1){const a=t[o];if(typeof a.props=="function"){if(r??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(r))continue}else for(const s in a.props)if(e[s]!==a.props[s]&&e.ownerState?.[s]!==a.props[s])continue e;typeof a.style=="function"?(r??={...e,...e.ownerState,ownerState:e.ownerState},n.push(a.style(r))):n.push(a.style)}return n}function P3(e={}){const{themeId:t,defaultTheme:n=eH,rootShouldForwardProp:r=Bg,slotShouldForwardProp:o=Bg}=e;function a(c){nH(c,t,n)}return(c,u={})=>{Yj(c,I=>I.filter(O=>O!==Qs));const{name:d,slot:p,skipVariantsResolver:h,skipSx:g,overridesResolver:y=tH(iH(p)),...b}=u,x=h!==void 0?h:p&&p!=="Root"&&p!=="root"||!1,S=g||!1;let T=Bg;p==="Root"||p==="root"?T=r:p?T=o:aH(c)&&(T=void 0);const D=T3(c,{shouldForwardProp:T,label:rH(),...b}),w=I=>{if(I.__emotion_real===I)return I;if(typeof I=="function")return function(F){return jg(F,I)};if(ci(I)){const O=O3(I);return O.variants?function(j){return jg(j,O)}:O.style}return I},R=(...I)=>{const O=[],F=I.map(w),j=[];if(O.push(a),d&&y&&j.push(function($){const q=$.theme.components?.[d]?.styleOverrides;if(!q)return null;const Y={};for(const B in q)Y[B]=jg($,q[B]);return y($,Y)}),d&&!x&&j.push(function($){const q=$.theme?.components?.[d]?.variants;return q?N3($,q):null}),S||j.push(Qs),Array.isArray(F[0])){const M=F.shift(),$=new Array(O.length).fill(""),z=new Array(j.length).fill("");let q;q=[...$,...M,...z],q.raw=[...$,...M.raw,...z],O.unshift(q)}const H=[...O,...F,...j],C=D(...H);return c.muiName&&(C.muiName=c.muiName),C};return D.withConfig&&(R.withConfig=D.withConfig),R}}function rH(e,t){return void 0}function oH(e){for(const t in e)return!1;return!0}function aH(e){return typeof e=="string"&&e.charCodeAt(0)>96}function iH(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const aS=P3();function Bp(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=r;if(o==="components"||o==="slots")n[o]={...e[o],...n[o]};else if(o==="componentsProps"||o==="slotProps"){const a=e[o],s=t[o];if(!s)n[o]=a||{};else if(!a)n[o]=s;else{n[o]={...s};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const u=c;n[o][u]=Bp(a[u],s[u])}}}else n[o]===void 0&&(n[o]=e[o])}return n}function sH(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Bp(t.components[n].defaultProps,r)}function iS({props:e,name:t,defaultTheme:n,themeId:r}){let o=od(n);return r&&(o=o[r]||o),sH({theme:o,name:t,props:e})}const Wo=typeof window<"u"?k.useLayoutEffect:k.useEffect;function lH(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function sS(e,t=0,n=1){return lH(e,t,n)}function cH(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 Xs(e){if(e.type)return e;if(e.charAt(0)==="#")return Xs(cH(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(ts(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(ts(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}const uH=e=>{const t=Xs(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Jf=(e,t)=>{try{return uH(e)}catch{return e}};function E0(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 L3(e){e=Xs(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),s=(d,p=(d+n/30)%12)=>o-a*Math.max(Math.min(p-3,9-p,1),-1);let c="rgb";const u=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(c+="a",u.push(t[3])),E0({type:c,values:u})}function ux(e){e=Xs(e);let t=e.type==="hsl"||e.type==="hsla"?Xs(L3(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 dH(e,t){const n=ux(e),r=ux(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Dt(e,t){return e=Xs(e),t=sS(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,E0(e)}function ag(e,t,n){try{return Dt(e,t)}catch{return e}}function Th(e,t){if(e=Xs(e),t=sS(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 E0(e)}function Cn(e,t,n){try{return Th(e,t)}catch{return e}}function Sh(e,t){if(e=Xs(e),t=sS(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 E0(e)}function _n(e,t,n){try{return Sh(e,t)}catch{return e}}function dx(e,t=.15){return ux(e)>.5?Th(e,t):Sh(e,t)}function ig(e,t,n){try{return dx(e,t)}catch{return e}}const M3=k.createContext(null);function lS(){return k.useContext(M3)}const fH=typeof Symbol=="function"&&Symbol.for,pH=fH?Symbol.for("mui.nested"):"__THEME_NESTED__";function hH(e,t){return typeof t=="function"?t(e):{...e,...t}}function mH(e){const{children:t,theme:n}=e,r=lS(),o=k.useMemo(()=>{const a=r===null?{...n}:hH(r,n);return a!=null&&(a[pH]=r!==null),a},[n,r]);return v.jsx(M3.Provider,{value:o,children:t})}const F3=k.createContext();function gH({value:e,...t}){return v.jsx(F3.Provider,{value:e??!0,...t})}const Ch=()=>k.useContext(F3)??!1,B3=k.createContext(void 0);function yH({value:e,children:t}){return v.jsx(B3.Provider,{value:e,children:t})}function bH(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?Bp(o.defaultProps,r):!o.styleOverrides&&!o.variants?Bp(o,r):r}function vH({props:e,name:t}){const n=k.useContext(B3);return bH({props:e,name:t,theme:{components:n}})}const qw={};function Ww(e,t,n,r=!1){return k.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const a=n(o),s=e?{...t,[e]:a}:a;return r?()=>s:s}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function j3(e){const{children:t,theme:n,themeId:r}=e,o=w3(qw),a=lS()||qw,s=Ww(r,o,n),c=Ww(r,a,n,!0),u=(r?s[r]:s).direction==="rtl";return v.jsx(mH,{theme:c,children:v.jsx(nd.Provider,{value:s,children:v.jsx(gH,{value:u,children:v.jsx(yH,{value:r?s[r].components:s.components,children:t})})})})}const Yw={theme:void 0};function U3(e){let t,n;return function(o){let a=t;return(a===void 0||o.theme!==n)&&(Yw.theme=o.theme,a=O3(e(Yw)),t=a,n=o.theme),a}}const cS="mode",uS="color-scheme",EH="data-color-scheme";function xH(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=cS,colorSchemeStorageKey:a=uS,attribute:s=EH,colorSchemeNode:c="document.documentElement",nonce:u}=e||{};let d="",p=s;if(s==="class"&&(p=".%s"),s==="data"&&(p="[data-%s]"),p.startsWith(".")){const g=p.substring(1);d+=`${c}.classList.remove('${g}'.replace('%s', light), '${g}'.replace('%s', dark));
|
|
87
|
+
${c}.classList.add('${g}'.replace('%s', colorScheme));`}const h=p.match(/\[([^\]]+)\]/);if(h){const[g,y]=h[1].split("=");y||(d+=`${c}.removeAttribute('${g}'.replace('%s', light));
|
|
88
|
+
${c}.removeAttribute('${g}'.replace('%s', dark));`),d+=`
|
|
89
|
+
${c}.setAttribute('${g}'.replace('%s', colorScheme), ${y?`${y}.replace('%s', colorScheme)`:'""'});`}else d+=`${c}.setAttribute('${p}', colorScheme);`;return v.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?u:"",dangerouslySetInnerHTML:{__html:`(function() {
|
|
90
|
+
try {
|
|
91
|
+
let colorScheme = '';
|
|
92
|
+
const mode = localStorage.getItem('${o}') || '${t}';
|
|
93
|
+
const dark = localStorage.getItem('${a}-dark') || '${r}';
|
|
94
|
+
const light = localStorage.getItem('${a}-light') || '${n}';
|
|
95
|
+
if (mode === 'system') {
|
|
96
|
+
// handle system mode
|
|
97
|
+
const mql = window.matchMedia('(prefers-color-scheme: dark)');
|
|
98
|
+
if (mql.matches) {
|
|
99
|
+
colorScheme = dark
|
|
100
|
+
} else {
|
|
101
|
+
colorScheme = light
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
if (mode === 'light') {
|
|
105
|
+
colorScheme = light;
|
|
106
|
+
}
|
|
107
|
+
if (mode === 'dark') {
|
|
108
|
+
colorScheme = dark;
|
|
109
|
+
}
|
|
110
|
+
if (colorScheme) {
|
|
111
|
+
${d}
|
|
112
|
+
}
|
|
113
|
+
} catch(e){}})();`}},"mui-color-scheme-init")}function TH(){}const SH=({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 TH;const r=o=>{const a=o.newValue;o.key===e&&n(a)};return t.addEventListener("storage",r),()=>{t.removeEventListener("storage",r)}}});function G1(){}function Kw(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function H3(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 CH(e){return H3(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function _H(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:a=cS,colorSchemeStorageKey:s=uS,storageWindow:c=typeof window>"u"?void 0:window,storageManager:u=SH,noSsr:d=!1}=e,p=o.join(","),h=o.length>1,g=k.useMemo(()=>u?.({key:a,storageWindow:c}),[u,a,c]),y=k.useMemo(()=>u?.({key:`${s}-light`,storageWindow:c}),[u,s,c]),b=k.useMemo(()=>u?.({key:`${s}-dark`,storageWindow:c}),[u,s,c]),[x,S]=k.useState(()=>{const j=g?.get(t)||t,H=y?.get(n)||n,C=b?.get(r)||r;return{mode:j,systemMode:Kw(j),lightColorScheme:H,darkColorScheme:C}}),[T,D]=k.useState(d||!h);k.useEffect(()=>{D(!0)},[]);const w=CH(x),R=k.useCallback(j=>{S(H=>{if(j===H.mode)return H;const C=j??t;return g?.set(C),{...H,mode:C,systemMode:Kw(C)}})},[g,t]),I=k.useCallback(j=>{j?typeof j=="string"?j&&!p.includes(j)?console.error(`\`${j}\` does not exist in \`theme.colorSchemes\`.`):S(H=>{const C={...H};return H3(H,M=>{M==="light"&&(y?.set(j),C.lightColorScheme=j),M==="dark"&&(b?.set(j),C.darkColorScheme=j)}),C}):S(H=>{const C={...H},M=j.light===null?n:j.light,$=j.dark===null?r:j.dark;return M&&(p.includes(M)?(C.lightColorScheme=M,y?.set(M)):console.error(`\`${M}\` does not exist in \`theme.colorSchemes\`.`)),$&&(p.includes($)?(C.darkColorScheme=$,b?.set($)):console.error(`\`${$}\` does not exist in \`theme.colorSchemes\`.`)),C}):S(H=>(y?.set(n),b?.set(r),{...H,lightColorScheme:n,darkColorScheme:r}))},[p,y,b,n,r]),O=k.useCallback(j=>{x.mode==="system"&&S(H=>{const C=j?.matches?"dark":"light";return H.systemMode===C?H:{...H,systemMode:C}})},[x.mode]),F=k.useRef(O);return F.current=O,k.useEffect(()=>{if(typeof window.matchMedia!="function"||!h)return;const j=(...C)=>F.current(...C),H=window.matchMedia("(prefers-color-scheme: dark)");return H.addListener(j),j(H),()=>{H.removeListener(j)}},[h]),k.useEffect(()=>{if(h){const j=g?.subscribe(M=>{(!M||["light","dark","system"].includes(M))&&R(M||t)})||G1,H=y?.subscribe(M=>{(!M||p.match(M))&&I({light:M})})||G1,C=b?.subscribe(M=>{(!M||p.match(M))&&I({dark:M})})||G1;return()=>{j(),H(),C()}}},[I,R,p,t,c,h,g,y,b]),{...x,mode:T?x.mode:void 0,systemMode:T?x.systemMode:void 0,colorScheme:T?w:void 0,setMode:R,setColorScheme:I}}const AH="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function kH(e){const{themeId:t,theme:n={},modeStorageKey:r=cS,colorSchemeStorageKey:o=uS,disableTransitionOnChange:a=!1,defaultColorScheme:s,resolveTheme:c}=e,u={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},d=k.createContext(void 0),p=()=>k.useContext(d)||u,h={},g={};function y(T){const{children:D,theme:w,modeStorageKey:R=r,colorSchemeStorageKey:I=o,disableTransitionOnChange:O=a,storageManager:F,storageWindow:j=typeof window>"u"?void 0:window,documentNode:H=typeof document>"u"?void 0:document,colorSchemeNode:C=typeof document>"u"?void 0:document.documentElement,disableNestedContext:M=!1,disableStyleSheetGeneration:$=!1,defaultMode:z="system",forceThemeRerender:q=!1,noSsr:Y}=T,B=k.useRef(!1),X=lS(),ae=k.useContext(d),te=!!ae&&!M,N=k.useMemo(()=>w||(typeof n=="function"?n():n),[w]),oe=N[t],K=oe||N,{colorSchemes:P=h,components:ee=g,cssVarPrefix:ce}=K,re=Object.keys(P).filter(de=>!!P[de]).join(","),be=k.useMemo(()=>re.split(","),[re]),ye=typeof s=="string"?s:s.light,Ge=typeof s=="string"?s:s.dark,Me=P[ye]&&P[Ge]?z:P[K.defaultColorScheme]?.palette?.mode||K.palette?.mode,{mode:Oe,setMode:Qe,systemMode:nt,lightColorScheme:Re,darkColorScheme:gt,colorScheme:_t,setColorScheme:je}=_H({supportedColorSchemes:be,defaultLightColorScheme:ye,defaultDarkColorScheme:Ge,modeStorageKey:R,colorSchemeStorageKey:I,defaultMode:Me,storageManager:F,storageWindow:j,noSsr:Y});let mt=Oe,lt=_t;te&&(mt=ae.mode,lt=ae.colorScheme);let ft=lt||K.defaultColorScheme;K.vars&&!q&&(ft=K.defaultColorScheme);const Ue=k.useMemo(()=>{const de=K.generateThemeVars?.()||K.vars,ge={...K,components:ee,colorSchemes:P,cssVarPrefix:ce,vars:de};if(typeof ge.generateSpacing=="function"&&(ge.spacing=ge.generateSpacing()),ft){const ze=P[ft];ze&&typeof ze=="object"&&Object.keys(ze).forEach(Xe=>{ze[Xe]&&typeof ze[Xe]=="object"?ge[Xe]={...ge[Xe],...ze[Xe]}:ge[Xe]=ze[Xe]})}return c?c(ge):ge},[K,ft,ee,P,ce]),Le=K.colorSchemeSelector;Wo(()=>{if(lt&&C&&Le&&Le!=="media"){const de=Le;let ge=Le;if(de==="class"&&(ge=".%s"),de==="data"&&(ge="[data-%s]"),de?.startsWith("data-")&&!de.includes("%s")&&(ge=`[${de}="%s"]`),ge.startsWith("."))C.classList.remove(...be.map(ze=>ge.substring(1).replace("%s",ze))),C.classList.add(ge.substring(1).replace("%s",lt));else{const ze=ge.replace("%s",lt).match(/\[([^\]]+)\]/);if(ze){const[Xe,Et]=ze[1].split("=");Et||be.forEach(Je=>{C.removeAttribute(Xe.replace(lt,Je))}),C.setAttribute(Xe,Et?Et.replace(/"|'/g,""):"")}else C.setAttribute(ge,lt)}}},[lt,Le,C,be]),k.useEffect(()=>{let de;if(O&&B.current&&H){const ge=H.createElement("style");ge.appendChild(H.createTextNode(AH)),H.head.appendChild(ge),window.getComputedStyle(H.body),de=setTimeout(()=>{H.head.removeChild(ge)},1)}return()=>{clearTimeout(de)}},[lt,O,H]),k.useEffect(()=>(B.current=!0,()=>{B.current=!1}),[]);const Jt=k.useMemo(()=>({allColorSchemes:be,colorScheme:lt,darkColorScheme:gt,lightColorScheme:Re,mode:mt,setColorScheme:je,setMode:Qe,systemMode:nt}),[be,lt,gt,Re,mt,je,Qe,nt,Ue.colorSchemeSelector]);let jt=!0;($||K.cssVariables===!1||te&&X?.cssVarPrefix===ce)&&(jt=!1);const At=v.jsxs(k.Fragment,{children:[v.jsx(j3,{themeId:oe?t:void 0,theme:Ue,children:D}),jt&&v.jsx(x3,{styles:Ue.generateStyleSheets?.()||[]})]});return te?At:v.jsx(d.Provider,{value:Jt,children:At})}const b=typeof s=="string"?s:s.light,x=typeof s=="string"?s:s.dark;return{CssVarsProvider:y,useColorScheme:p,getInitColorSchemeScript:T=>xH({colorSchemeStorageKey:o,defaultLightColorScheme:b,defaultDarkColorScheme:x,modeStorageKey:r,...T})}}function z3(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 Qw=(e,t,n,r=[])=>{let o=e;t.forEach((a,s)=>{s===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])})},wH=(e,t,n)=>{function r(o,a=[],s=[]){Object.entries(o).forEach(([c,u])=>{(!n||n&&!n([...a,c]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?r(u,[...a,c],Array.isArray(u)?[...s,c]:s):t([...a,c],u,s))})}r(e)},DH=(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 q1(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},s={};return wH(e,(c,u,d)=>{if((typeof u=="string"||typeof u=="number")&&(!r||!r(c,u))){const p=`--${n?`${n}-`:""}${c.join("-")}`,h=DH(c,u);Object.assign(o,{[p]:h}),Qw(a,c,`var(${p})`,d),Qw(s,c,`var(${p}, ${h})`,d)}},c=>c[0]==="vars"),{css:o,vars:a,varsWithDefaults:s}}function RH(e,t={}){const{getSelector:n=S,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:a={},components:s,defaultColorScheme:c="light",...u}=e,{vars:d,css:p,varsWithDefaults:h}=q1(u,t);let g=h;const y={},{[c]:b,...x}=a;if(Object.entries(x||{}).forEach(([w,R])=>{const{vars:I,css:O,varsWithDefaults:F}=q1(R,t);g=Pr(g,F),y[w]={css:O,vars:I}}),b){const{css:w,vars:R,varsWithDefaults:I}=q1(b,t);g=Pr(g,I),y[c]={css:w,vars:R}}function S(w,R){let I=o;if(o==="class"&&(I=".%s"),o==="data"&&(I="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(I=`[${o}="%s"]`),w){if(I==="media")return e.defaultColorScheme===w?":root":{[`@media (prefers-color-scheme: ${a[w]?.palette?.mode||w})`]:{":root":R}};if(I)return e.defaultColorScheme===w?`:root, ${I.replace("%s",String(w))}`:I.replace("%s",String(w))}return":root"}return{vars:g,generateThemeVars:()=>{let w={...d};return Object.entries(y).forEach(([,{vars:R}])=>{w=Pr(w,R)}),w},generateStyleSheets:()=>{const w=[],R=e.defaultColorScheme||"light";function I(j,H){Object.keys(H).length&&w.push(typeof j=="string"?{[j]:{...H}}:j)}I(n(void 0,{...p}),p);const{[R]:O,...F}=y;if(O){const{css:j}=O,H=a[R]?.palette?.mode,C=!r&&H?{colorScheme:H,...j}:{...j};I(n(R,{...C}),C)}return Object.entries(F).forEach(([j,{css:H}])=>{const C=a[j]?.palette?.mode,M=!r&&C?{colorScheme:C,...H}:{...H};I(n(j,{...M}),M)}),w}}}function IH(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 st(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let s="",c=!0;for(let u=0;u<a.length;u+=1){const d=a[u];d&&(s+=(c===!0?"":" ")+t(d),c=!1,n&&n[d]&&(s+=" "+n[d]))}r[o]=s}return r}const OH=rd(),NH=aS("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Ne(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),PH=e=>iS({props:e,name:"MuiContainer",defaultTheme:OH}),LH=(e,t)=>{const n=u=>it(t,u),{classes:r,fixed:o,disableGutters:a,maxWidth:s}=e,c={root:["root",s&&`maxWidth${Ne(String(s))}`,o&&"fixed",a&&"disableGutters"]};return st(c,n,r)};function MH(e={}){const{createStyledComponent:t=NH,useThemeProps:n=PH,componentName:r="MuiContainer"}=e,o=t(({theme:s,ownerState:c})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!c.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}}),({theme:s,ownerState:c})=>c.fixed&&Object.keys(s.breakpoints.values).reduce((u,d)=>{const p=d,h=s.breakpoints.values[p];return h!==0&&(u[s.breakpoints.up(p)]={maxWidth:`${h}${s.breakpoints.unit}`}),u},{}),({theme:s,ownerState:c})=>({...c.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},...c.maxWidth&&c.maxWidth!=="xs"&&{[s.breakpoints.up(c.maxWidth)]:{maxWidth:`${s.breakpoints.values[c.maxWidth]}${s.breakpoints.unit}`}}}));return k.forwardRef(function(c,u){const d=n(c),{className:p,component:h="div",disableGutters:g=!1,fixed:y=!1,maxWidth:b="lg",classes:x,...S}=d,T={...d,component:h,disableGutters:g,fixed:y,maxWidth:b},D=LH(T,r);return v.jsx(o,{as:h,ownerState:T,className:qe(D.root,p),ref:u,...S})})}function up(e,t){return k.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const FH=(e,t)=>e.filter(n=>t.includes(n)),ad=(e,t,n)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((o,a)=>{n((s,c)=>{a<=e.keys.length-1&&(a===0?Object.assign(s,c):s[e.up(e.keys[a])]=c)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:FH(e.keys,Object.keys(t))).forEach(a=>{if(e.keys.includes(a)){const s=t[a];s!==void 0&&n((c,u)=>{r===a?Object.assign(c,u):c[e.up(a)]=u},s)}}):(typeof t=="number"||typeof t=="string")&&n((o,a)=>{Object.assign(o,a)},t)};function hy(e){return`--Grid-${e}Spacing`}function x0(e){return`--Grid-parent-${e}Spacing`}const Xw="--Grid-columns",Ru="--Grid-parent-columns",BH=({theme:e,ownerState:t})=>{const n={};return ad(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(${Ru}) - (var(${Ru}) - ${o}) * (var(${x0("column")}) / var(${Ru})))`}),r(n,a)}),n},jH=({theme:e,ownerState:t})=>{const n={};return ad(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(${Ru}) + var(${x0("column")}) * ${o} / var(${Ru}))`}),r(n,a)}),n},UH=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[Xw]:12};return ad(e.breakpoints,t.columns,(r,o)=>{const a=o??12;r(n,{[Xw]:a,"> *":{[Ru]:a}})}),n},HH=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return ad(e.breakpoints,t.rowSpacing,(r,o)=>{const a=typeof o=="string"?o:e.spacing?.(o);r(n,{[hy("row")]:a,"> *":{[x0("row")]:a}})}),n},zH=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return ad(e.breakpoints,t.columnSpacing,(r,o)=>{const a=typeof o=="string"?o:e.spacing?.(o);r(n,{[hy("column")]:a,"> *":{[x0("column")]:a}})}),n},$H=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return ad(e.breakpoints,t.direction,(r,o)=>{r(n,{flexDirection:o})}),n},VH=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${hy("row")}) var(${hy("column")})`}}),GH=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},qH=(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[]},WH=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`];function YH(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 KH=rd(),QH=aS("div",{name:"MuiGrid",slot:"Root"});function XH(e){return iS({props:e,name:"MuiGrid",defaultTheme:KH})}function ZH(e={}){const{createStyledComponent:t=QH,useThemeProps:n=XH,useTheme:r=od,componentName:o="MuiGrid"}=e,a=(d,p)=>{const{container:h,direction:g,spacing:y,wrap:b,size:x}=d,S={root:["root",h&&"container",b!=="wrap"&&`wrap-xs-${String(b)}`,...WH(g),...GH(x),...h?qH(y,p.breakpoints.keys[0]):[]]};return st(S,T=>it(o,T),{})};function s(d,p,h=()=>!0){const g={};return d===null||(Array.isArray(d)?d.forEach((y,b)=>{y!==null&&h(y)&&p.keys[b]&&(g[p.keys[b]]=y)}):typeof d=="object"?Object.keys(d).forEach(y=>{const b=d[y];b!=null&&h(b)&&(g[y]=b)}):g[p.keys[0]]=d),g}const c=t(UH,zH,HH,BH,$H,VH,jH),u=k.forwardRef(function(p,h){const g=r(),y=n(p),b=v0(y);YH(b,g.breakpoints);const{className:x,children:S,columns:T=12,container:D=!1,component:w="div",direction:R="row",wrap:I="wrap",size:O={},offset:F={},spacing:j=0,rowSpacing:H=j,columnSpacing:C=j,unstable_level:M=0,...$}=b,z=s(O,g.breakpoints,oe=>oe!==!1),q=s(F,g.breakpoints),Y=p.columns??(M?void 0:T),B=p.spacing??(M?void 0:j),X=p.rowSpacing??p.spacing??(M?void 0:H),ae=p.columnSpacing??p.spacing??(M?void 0:C),te={...b,level:M,columns:Y,container:D,direction:R,wrap:I,spacing:B,rowSpacing:X,columnSpacing:ae,size:z,offset:q},N=a(te,g);return v.jsx(c,{ref:h,as:w,ownerState:te,className:qe(N.root,x),...$,children:k.Children.map(S,oe=>k.isValidElement(oe)&&up(oe,["Grid"])&&D&&oe.props.container?k.cloneElement(oe,{unstable_level:oe.props?.unstable_level??M+1}):oe)})});return u.muiName="Grid",u}const JH=rd(),ez=aS("div",{name:"MuiStack",slot:"Root"});function tz(e){return iS({props:e,name:"MuiStack",defaultTheme:JH})}function nz(e,t){const n=k.Children.toArray(e).filter(Boolean);return n.reduce((r,o,a)=>(r.push(o),a<n.length-1&&r.push(k.cloneElement(t,{key:`separator-${a}`})),r),[])}const rz=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],oz=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...ja({theme:t},V1({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=p0(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=V1({values:e.direction,base:o}),s=V1({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((u,d,p)=>{if(!a[u]){const g=d>0?a[p[d-1]]:"column";a[u]=g}}),n=Pr(n,ja({theme:t},s,(u,d)=>e.useFlexGap?{gap:Xl(r,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${rz(d?a[d]:e.direction)}`]:Xl(r,u)}}))}return n=aU(t.breakpoints,n),n};function dS(e={}){const{createStyledComponent:t=ez,useThemeProps:n=tz,componentName:r="MuiStack"}=e,o=()=>st({root:["root"]},u=>it(r,u),{}),a=t(oz);return k.forwardRef(function(u,d){const p=n(u),h=v0(p),{component:g="div",direction:y="column",spacing:b=0,divider:x,children:S,className:T,useFlexGap:D=!1,...w}=h,R={direction:y,spacing:b,useFlexGap:D},I=o();return v.jsx(a,{as:g,ownerState:R,ref:d,className:qe(I.root,T),...w,children:x?nz(S,x):S})})}const Zw=dS(),jp={black:"#000",white:"#fff"},Jc={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},eu={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},tu={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},nu={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},ru={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},wf={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},az={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"},pi="$$material";function $3(){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:jp.white,default:jp.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 iz=$3();function V3(){return{text:{primary:jp.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:jp.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 Jw=V3();function eD(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=Sh(e.main,o):t==="dark"&&(e.dark=Th(e.main,a)))}function sz(e="light"){return e==="dark"?{main:tu[200],light:tu[50],dark:tu[400]}:{main:tu[700],light:tu[400],dark:tu[800]}}function lz(e="light"){return e==="dark"?{main:eu[200],light:eu[50],dark:eu[400]}:{main:eu[500],light:eu[300],dark:eu[700]}}function cz(e="light"){return e==="dark"?{main:Jc[500],light:Jc[300],dark:Jc[700]}:{main:Jc[700],light:Jc[400],dark:Jc[800]}}function uz(e="light"){return e==="dark"?{main:nu[400],light:nu[300],dark:nu[700]}:{main:nu[700],light:nu[500],dark:nu[900]}}function dz(e="light"){return e==="dark"?{main:ru[400],light:ru[300],dark:ru[700]}:{main:ru[800],light:ru[500],dark:ru[900]}}function fz(e="light"){return e==="dark"?{main:wf[400],light:wf[300],dark:wf[700]}:{main:"#ed6c02",light:wf[500],dark:wf[900]}}function fS(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,a=e.primary||sz(t),s=e.secondary||lz(t),c=e.error||cz(t),u=e.info||uz(t),d=e.success||dz(t),p=e.warning||fz(t);function h(x){return dH(x,Jw.text.primary)>=n?Jw.text.primary:iz.text.primary}const g=({color:x,name:S,mainShade:T=500,lightShade:D=300,darkShade:w=700})=>{if(x={...x},!x.main&&x[T]&&(x.main=x[T]),!x.hasOwnProperty("main"))throw new Error(ts(11,S?` (${S})`:"",T));if(typeof x.main!="string")throw new Error(ts(12,S?` (${S})`:"",JSON.stringify(x.main)));return eD(x,"light",D,r),eD(x,"dark",w,r),x.contrastText||(x.contrastText=h(x.main)),x};let y;return t==="light"?y=$3():t==="dark"&&(y=V3()),Pr({common:{...jp},mode:t,primary:g({color:a,name:"primary"}),secondary:g({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:c,name:"error"}),warning:g({color:p,name:"warning"}),info:g({color:u,name:"info"}),success:g({color:d,name:"success"}),grey:az,contrastThreshold:n,getContrastText:h,augmentColor:g,tonalOffset:r,...y},o)}function pz(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 hz(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function mz(e){return Math.round(e*1e5)/1e5}const tD={textTransform:"uppercase"},nD='"Roboto", "Helvetica", "Arial", sans-serif';function G3(e,t){const{fontFamily:n=nD,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:d,pxToRem:p,...h}=typeof t=="function"?t(e):t,g=r/14,y=p||(S=>`${S/u*g}rem`),b=(S,T,D,w,R)=>({fontFamily:n,fontWeight:S,fontSize:y(T),lineHeight:D,...n===nD?{letterSpacing:`${mz(w/T)}em`}:{},...R,...d}),x={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(s,20,1.6,.15),subtitle1:b(a,16,1.75,.15),subtitle2:b(s,14,1.57,.1),body1:b(a,16,1.5,.15),body2:b(a,14,1.43,.15),button:b(s,14,1.75,.4,tD),caption:b(a,12,1.66,.4),overline:b(a,12,2.66,1,tD),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Pr({htmlFontSize:u,pxToRem:y,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:c,...x},h,{clone:!1})}const gz=.2,yz=.14,bz=.12;function Fn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${gz})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${yz})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${bz})`].join(",")}const vz=["none",Fn(0,2,1,-1,0,1,1,0,0,1,3,0),Fn(0,3,1,-2,0,2,2,0,0,1,5,0),Fn(0,3,3,-2,0,3,4,0,0,1,8,0),Fn(0,2,4,-1,0,4,5,0,0,1,10,0),Fn(0,3,5,-1,0,5,8,0,0,1,14,0),Fn(0,3,5,-1,0,6,10,0,0,1,18,0),Fn(0,4,5,-2,0,7,10,1,0,2,16,1),Fn(0,5,5,-3,0,8,10,1,0,3,14,2),Fn(0,5,6,-3,0,9,12,1,0,3,16,2),Fn(0,6,6,-3,0,10,14,1,0,4,18,3),Fn(0,6,7,-4,0,11,15,1,0,4,20,3),Fn(0,7,8,-4,0,12,17,2,0,5,22,4),Fn(0,7,8,-4,0,13,19,2,0,5,24,4),Fn(0,7,9,-4,0,14,21,2,0,5,26,4),Fn(0,8,9,-5,0,15,22,2,0,6,28,5),Fn(0,8,10,-5,0,16,24,2,0,6,30,5),Fn(0,8,11,-5,0,17,26,2,0,6,32,5),Fn(0,9,11,-5,0,18,28,2,0,7,34,6),Fn(0,9,12,-6,0,19,29,2,0,7,36,6),Fn(0,10,13,-6,0,20,31,3,0,8,38,7),Fn(0,10,13,-6,0,21,33,3,0,8,40,7),Fn(0,10,14,-6,0,22,35,3,0,8,42,7),Fn(0,11,14,-7,0,23,36,3,0,9,44,8),Fn(0,11,15,-7,0,24,38,3,0,9,46,8)],Ez={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)"},q3={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function rD(e){return`${Math.round(e)}ms`}function xz(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Tz(e){const t={...Ez,...e.easing},n={...q3,...e.duration};return{getAutoHeightDuration:xz,create:(o=["all"],a={})=>{const{duration:s=n.standard,easing:c=t.easeInOut,delay:u=0,...d}=a;return(Array.isArray(o)?o:[o]).map(p=>`${p} ${typeof s=="string"?s:rD(s)} ${c} ${typeof u=="string"?u:rD(u)}`).join(",")},...e,easing:t,duration:n}}const Sz={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Cz(e){return ci(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function W3(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let a=0;a<o.length;a++){const[s,c]=o[a];!Cz(c)||s.startsWith("unstable_")?delete r[s]:ci(c)&&(r[s]={...c},n(r[s]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
114
|
+
|
|
115
|
+
const theme = ${JSON.stringify(t,null,2)};
|
|
116
|
+
|
|
117
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
118
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
119
|
+
|
|
120
|
+
export default theme;`}function fx(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:a={},transitions:s={},typography:c={},shape:u,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(ts(20));const p=fS(a),h=rd(e);let g=Pr(h,{mixins:hz(h.breakpoints,r),palette:p,shadows:vz.slice(),typography:G3(p,c),transitions:Tz(s),zIndex:{...Sz}});return g=Pr(g,d),g=t.reduce((y,b)=>Pr(y,b),g),g.unstable_sxConfig={...xh,...d?.unstable_sxConfig},g.unstable_sx=function(b){return Qs({sx:b,theme:this})},g.toRuntimeSource=W3,g}function px(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 _z=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=px(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Y3(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function K3(e){return e==="dark"?_z:[]}function Az(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,a=fS(t);return{palette:a,opacity:{...Y3(a.mode),...n},overlays:r||K3(a.mode),...o}}function kz(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const wz=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Dz=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 s={};return wz(e.cssVarPrefix).forEach(c=>{s[c]=n[c],delete n[c]}),a==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:s}}:a?{[a.replace("%s",t)]:s,[`${r}, ${a.replace("%s",t)}`]:n}:{[r]:{...n,...s}}}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 Rz(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Ce(e,t,n){!e[t]&&n&&(e[t]=n)}function ep(e){return typeof e!="string"||!e.startsWith("hsl")?e:L3(e)}function Bi(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Jf(ep(e[t])))}function Iz(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Za=e=>{try{return e()}catch{}},Oz=(e="mui")=>z3(e);function W1(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=Az({...t,palette:{mode:o,...t?.palette}});return}const{palette:a,...s}=fx({...n,palette:{mode:o,...t?.palette}});return e[r]={...t,palette:a,opacity:{...Y3(o),...t?.opacity},overlays:t?.overlays||K3(o)},s}function Nz(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:s=kz,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...d}=e,p=Object.keys(n)[0],h=r||(n.light&&p!=="light"?"light":p),g=Oz(a),{[h]:y,light:b,dark:x,...S}=n,T={...S};let D=y;if((h==="dark"&&!("dark"in n)||h==="light"&&!("light"in n))&&(D=!0),!D)throw new Error(ts(21,h));const w=W1(T,D,d,h);b&&!T.light&&W1(T,b,void 0,"light"),x&&!T.dark&&W1(T,x,void 0,"dark");let R={defaultColorScheme:h,...w,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:u,getCssVar:g,colorSchemes:T,font:{...pz(w.typography),...w.font},spacing:Iz(d.spacing)};Object.keys(R.colorSchemes).forEach(H=>{const C=R.colorSchemes[H].palette,M=$=>{const z=$.split("-"),q=z[1],Y=z[2];return g($,C[q][Y])};if(C.mode==="light"&&(Ce(C.common,"background","#fff"),Ce(C.common,"onBackground","#000")),C.mode==="dark"&&(Ce(C.common,"background","#000"),Ce(C.common,"onBackground","#fff")),Rz(C,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),C.mode==="light"){Ce(C.Alert,"errorColor",Cn(C.error.light,.6)),Ce(C.Alert,"infoColor",Cn(C.info.light,.6)),Ce(C.Alert,"successColor",Cn(C.success.light,.6)),Ce(C.Alert,"warningColor",Cn(C.warning.light,.6)),Ce(C.Alert,"errorFilledBg",M("palette-error-main")),Ce(C.Alert,"infoFilledBg",M("palette-info-main")),Ce(C.Alert,"successFilledBg",M("palette-success-main")),Ce(C.Alert,"warningFilledBg",M("palette-warning-main")),Ce(C.Alert,"errorFilledColor",Za(()=>C.getContrastText(C.error.main))),Ce(C.Alert,"infoFilledColor",Za(()=>C.getContrastText(C.info.main))),Ce(C.Alert,"successFilledColor",Za(()=>C.getContrastText(C.success.main))),Ce(C.Alert,"warningFilledColor",Za(()=>C.getContrastText(C.warning.main))),Ce(C.Alert,"errorStandardBg",_n(C.error.light,.9)),Ce(C.Alert,"infoStandardBg",_n(C.info.light,.9)),Ce(C.Alert,"successStandardBg",_n(C.success.light,.9)),Ce(C.Alert,"warningStandardBg",_n(C.warning.light,.9)),Ce(C.Alert,"errorIconColor",M("palette-error-main")),Ce(C.Alert,"infoIconColor",M("palette-info-main")),Ce(C.Alert,"successIconColor",M("palette-success-main")),Ce(C.Alert,"warningIconColor",M("palette-warning-main")),Ce(C.AppBar,"defaultBg",M("palette-grey-100")),Ce(C.Avatar,"defaultBg",M("palette-grey-400")),Ce(C.Button,"inheritContainedBg",M("palette-grey-300")),Ce(C.Button,"inheritContainedHoverBg",M("palette-grey-A100")),Ce(C.Chip,"defaultBorder",M("palette-grey-400")),Ce(C.Chip,"defaultAvatarColor",M("palette-grey-700")),Ce(C.Chip,"defaultIconColor",M("palette-grey-700")),Ce(C.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Ce(C.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Ce(C.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Ce(C.LinearProgress,"primaryBg",_n(C.primary.main,.62)),Ce(C.LinearProgress,"secondaryBg",_n(C.secondary.main,.62)),Ce(C.LinearProgress,"errorBg",_n(C.error.main,.62)),Ce(C.LinearProgress,"infoBg",_n(C.info.main,.62)),Ce(C.LinearProgress,"successBg",_n(C.success.main,.62)),Ce(C.LinearProgress,"warningBg",_n(C.warning.main,.62)),Ce(C.Skeleton,"bg",`rgba(${M("palette-text-primaryChannel")} / 0.11)`),Ce(C.Slider,"primaryTrack",_n(C.primary.main,.62)),Ce(C.Slider,"secondaryTrack",_n(C.secondary.main,.62)),Ce(C.Slider,"errorTrack",_n(C.error.main,.62)),Ce(C.Slider,"infoTrack",_n(C.info.main,.62)),Ce(C.Slider,"successTrack",_n(C.success.main,.62)),Ce(C.Slider,"warningTrack",_n(C.warning.main,.62));const $=ig(C.background.default,.8);Ce(C.SnackbarContent,"bg",$),Ce(C.SnackbarContent,"color",Za(()=>C.getContrastText($))),Ce(C.SpeedDialAction,"fabHoverBg",ig(C.background.paper,.15)),Ce(C.StepConnector,"border",M("palette-grey-400")),Ce(C.StepContent,"border",M("palette-grey-400")),Ce(C.Switch,"defaultColor",M("palette-common-white")),Ce(C.Switch,"defaultDisabledColor",M("palette-grey-100")),Ce(C.Switch,"primaryDisabledColor",_n(C.primary.main,.62)),Ce(C.Switch,"secondaryDisabledColor",_n(C.secondary.main,.62)),Ce(C.Switch,"errorDisabledColor",_n(C.error.main,.62)),Ce(C.Switch,"infoDisabledColor",_n(C.info.main,.62)),Ce(C.Switch,"successDisabledColor",_n(C.success.main,.62)),Ce(C.Switch,"warningDisabledColor",_n(C.warning.main,.62)),Ce(C.TableCell,"border",_n(ag(C.divider,1),.88)),Ce(C.Tooltip,"bg",ag(C.grey[700],.92))}if(C.mode==="dark"){Ce(C.Alert,"errorColor",_n(C.error.light,.6)),Ce(C.Alert,"infoColor",_n(C.info.light,.6)),Ce(C.Alert,"successColor",_n(C.success.light,.6)),Ce(C.Alert,"warningColor",_n(C.warning.light,.6)),Ce(C.Alert,"errorFilledBg",M("palette-error-dark")),Ce(C.Alert,"infoFilledBg",M("palette-info-dark")),Ce(C.Alert,"successFilledBg",M("palette-success-dark")),Ce(C.Alert,"warningFilledBg",M("palette-warning-dark")),Ce(C.Alert,"errorFilledColor",Za(()=>C.getContrastText(C.error.dark))),Ce(C.Alert,"infoFilledColor",Za(()=>C.getContrastText(C.info.dark))),Ce(C.Alert,"successFilledColor",Za(()=>C.getContrastText(C.success.dark))),Ce(C.Alert,"warningFilledColor",Za(()=>C.getContrastText(C.warning.dark))),Ce(C.Alert,"errorStandardBg",Cn(C.error.light,.9)),Ce(C.Alert,"infoStandardBg",Cn(C.info.light,.9)),Ce(C.Alert,"successStandardBg",Cn(C.success.light,.9)),Ce(C.Alert,"warningStandardBg",Cn(C.warning.light,.9)),Ce(C.Alert,"errorIconColor",M("palette-error-main")),Ce(C.Alert,"infoIconColor",M("palette-info-main")),Ce(C.Alert,"successIconColor",M("palette-success-main")),Ce(C.Alert,"warningIconColor",M("palette-warning-main")),Ce(C.AppBar,"defaultBg",M("palette-grey-900")),Ce(C.AppBar,"darkBg",M("palette-background-paper")),Ce(C.AppBar,"darkColor",M("palette-text-primary")),Ce(C.Avatar,"defaultBg",M("palette-grey-600")),Ce(C.Button,"inheritContainedBg",M("palette-grey-800")),Ce(C.Button,"inheritContainedHoverBg",M("palette-grey-700")),Ce(C.Chip,"defaultBorder",M("palette-grey-700")),Ce(C.Chip,"defaultAvatarColor",M("palette-grey-300")),Ce(C.Chip,"defaultIconColor",M("palette-grey-300")),Ce(C.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Ce(C.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Ce(C.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Ce(C.LinearProgress,"primaryBg",Cn(C.primary.main,.5)),Ce(C.LinearProgress,"secondaryBg",Cn(C.secondary.main,.5)),Ce(C.LinearProgress,"errorBg",Cn(C.error.main,.5)),Ce(C.LinearProgress,"infoBg",Cn(C.info.main,.5)),Ce(C.LinearProgress,"successBg",Cn(C.success.main,.5)),Ce(C.LinearProgress,"warningBg",Cn(C.warning.main,.5)),Ce(C.Skeleton,"bg",`rgba(${M("palette-text-primaryChannel")} / 0.13)`),Ce(C.Slider,"primaryTrack",Cn(C.primary.main,.5)),Ce(C.Slider,"secondaryTrack",Cn(C.secondary.main,.5)),Ce(C.Slider,"errorTrack",Cn(C.error.main,.5)),Ce(C.Slider,"infoTrack",Cn(C.info.main,.5)),Ce(C.Slider,"successTrack",Cn(C.success.main,.5)),Ce(C.Slider,"warningTrack",Cn(C.warning.main,.5));const $=ig(C.background.default,.98);Ce(C.SnackbarContent,"bg",$),Ce(C.SnackbarContent,"color",Za(()=>C.getContrastText($))),Ce(C.SpeedDialAction,"fabHoverBg",ig(C.background.paper,.15)),Ce(C.StepConnector,"border",M("palette-grey-600")),Ce(C.StepContent,"border",M("palette-grey-600")),Ce(C.Switch,"defaultColor",M("palette-grey-300")),Ce(C.Switch,"defaultDisabledColor",M("palette-grey-600")),Ce(C.Switch,"primaryDisabledColor",Cn(C.primary.main,.55)),Ce(C.Switch,"secondaryDisabledColor",Cn(C.secondary.main,.55)),Ce(C.Switch,"errorDisabledColor",Cn(C.error.main,.55)),Ce(C.Switch,"infoDisabledColor",Cn(C.info.main,.55)),Ce(C.Switch,"successDisabledColor",Cn(C.success.main,.55)),Ce(C.Switch,"warningDisabledColor",Cn(C.warning.main,.55)),Ce(C.TableCell,"border",Cn(ag(C.divider,1),.68)),Ce(C.Tooltip,"bg",ag(C.grey[700],.92))}Bi(C.background,"default"),Bi(C.background,"paper"),Bi(C.common,"background"),Bi(C.common,"onBackground"),Bi(C,"divider"),Object.keys(C).forEach($=>{const z=C[$];$!=="tonalOffset"&&z&&typeof z=="object"&&(z.main&&Ce(C[$],"mainChannel",Jf(ep(z.main))),z.light&&Ce(C[$],"lightChannel",Jf(ep(z.light))),z.dark&&Ce(C[$],"darkChannel",Jf(ep(z.dark))),z.contrastText&&Ce(C[$],"contrastTextChannel",Jf(ep(z.contrastText))),$==="text"&&(Bi(C[$],"primary"),Bi(C[$],"secondary")),$==="action"&&(z.active&&Bi(C[$],"active"),z.selected&&Bi(C[$],"selected")))})}),R=t.reduce((H,C)=>Pr(H,C),R);const I={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:Dz(R)},{vars:O,generateThemeVars:F,generateStyleSheets:j}=RH(R,I);return R.vars=O,Object.entries(R.colorSchemes[R.defaultColorScheme]).forEach(([H,C])=>{R[H]=C}),R.generateThemeVars=F,R.generateStyleSheets=j,R.generateSpacing=function(){return nS(d.spacing,p0(this))},R.getColorSchemeSelector=IH(c),R.spacing=R.generateSpacing(),R.shouldSkipGeneratingVar=s,R.unstable_sxConfig={...xh,...d?.unstable_sxConfig},R.unstable_sx=function(C){return Qs({sx:C,theme:this})},R.toRuntimeSource=W3,R}function oD(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:fS({...n===!0?{}:n.palette,mode:t})})}function T0(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...s}=e,c=a||"light",u=o?.[c],d={...o,...n?{[c]:{...typeof u!="boolean"&&u,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return fx(e,...t);let p=n;"palette"in e||d[c]&&(d[c]!==!0?p=d[c].palette:c==="dark"&&(p={mode:"dark"}));const h=fx({...e,palette:p},...t);return h.defaultColorScheme=c,h.colorSchemes=d,h.palette.mode==="light"&&(h.colorSchemes.light={...d.light!==!0&&d.light,palette:h.palette},oD(h,"dark",d.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:h.palette},oD(h,"light",d.light)),h}return!n&&!("light"in d)&&c==="light"&&(d.light=!0),Nz({...s,colorSchemes:d,defaultColorScheme:c,...typeof r!="boolean"&&r},...t)}const pS=T0();function nl(){const e=od(pS);return e[pi]||e}function Q3(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const co=e=>Q3(e)&&e!=="classes",ke=P3({themeId:pi,defaultTheme:pS,rootShouldForwardProp:co});function Pz({theme:e,...t}){const n=pi in e?e[pi]:void 0;return v.jsx(j3,{...t,themeId:n?pi:void 0,theme:n||e})}const sg={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:Lz}=kH({themeId:pi,theme:()=>T0({cssVariables:!0}),colorSchemeStorageKey:sg.colorSchemeStorageKey,modeStorageKey:sg.modeStorageKey,defaultColorScheme:{light:sg.defaultLightColorScheme,dark:sg.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:G3(e.palette,e.typography)};return t.unstable_sx=function(r){return Qs({sx:r,theme:this})},t}}),Mz=Lz;function Fz({theme:e,...t}){const n=k.useMemo(()=>{if(typeof e=="function")return e;const r=pi in e?e[pi]:e;return"colorSchemes"in r?null:"vars"in r?e:{...e,vars:null}},[e]);return n?v.jsx(Pz,{theme:n,...t}):v.jsx(Mz,{theme:e,...t})}function aD(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Bz(e){return v.jsx(KU,{...e,defaultTheme:pS,themeId:pi})}function hS(e){return function(n){return v.jsx(Bz,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function jz(){return v0}const St=U3;function dt(e){return vH(e)}function Uz(e){return it("MuiSvgIcon",e)}ut("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Hz=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Ne(t)}`,`fontSize${Ne(n)}`]};return st(o,Uz,r)},zz=ke("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Ne(n.color)}`],t[`fontSize${Ne(n.fontSize)}`]]}})(St(({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}}]}))),hx=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:s="inherit",component:c="svg",fontSize:u="medium",htmlColor:d,inheritViewBox:p=!1,titleAccess:h,viewBox:g="0 0 24 24",...y}=r,b=k.isValidElement(o)&&o.type==="svg",x={...r,color:s,component:c,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:g,hasSvgAsChild:b},S={};p||(S.viewBox=g);const T=Hz(x);return v.jsxs(zz,{as:c,className:qe(T.root,a),focusable:"false",color:d,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n,...S,...y,...b&&o.props,ownerState:x,children:[b?o.props.children:o,h?v.jsx("title",{children:h}):null]})});hx.muiName="SvgIcon";function vi(e,t){function n(r,o){return v.jsx(hx,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=hx.muiName,k.memo(k.forwardRef(n))}function S0(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 ko(e){return e&&e.ownerDocument||document}function Ua(e){return ko(e).defaultView||window}function iD(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let sD=0;function $z(e){const[t,n]=k.useState(e),r=e||t;return k.useEffect(()=>{t==null&&(sD+=1,n(`mui-${sD}`))},[t]),r}const Vz={...tx},lD=Vz.useId;function id(e){if(lD!==void 0){const t=lD();return e??t}return $z(e)}function my(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:a}=k.useRef(t!==void 0),[s,c]=k.useState(n),u=a?t:s,d=k.useCallback(p=>{a||c(p)},[]);return[u,d]}function va(e){const t=k.useRef(e);return Wo(()=>{t.current=e}),k.useRef((...n)=>(0,t.current)(...n)).current}function Jn(...e){const t=k.useRef(void 0),n=k.useCallback(r=>{const o=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const s=a,c=s(r);return typeof c=="function"?c:()=>{s(null)}}return a.current=r,()=>{a.current=null}});return()=>{o.forEach(a=>a?.())}},e);return k.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function Gz(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function qz(e,t){if(!e)return t;function n(s,c){const u={};return Object.keys(c).forEach(d=>{Gz(d,c[d])&&typeof s[d]=="function"&&(u[d]=(...p)=>{s[d](...p),c[d](...p)})}),u}if(typeof e=="function"||typeof t=="function")return s=>{const c=typeof t=="function"?t(s):t,u=typeof e=="function"?e({...s,...c}):e,d=qe(s?.className,c?.className,u?.className),p=n(u,c);return{...c,...u,...p,...!!d&&{className:d},...c?.style&&u?.style&&{style:{...c.style,...u.style}},...c?.sx&&u?.sx&&{sx:[...Array.isArray(c.sx)?c.sx:[c.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const r=t,o=n(e,r),a=qe(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 mx(){return mx=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},mx.apply(null,arguments)}function X3(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 gx(e,t){return gx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},gx(e,t)}function Z3(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,gx(e,t)}const cD={disabled:!1},gy=Fe.createContext(null);var Wz=function(t){return t.scrollTop},tp="unmounted",kl="exited",wl="entering",yu="entered",yx="exiting",Va=function(e){Z3(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var s=o,c=s&&!s.isMounting?r.enter:r.appear,u;return a.appearStatus=null,r.in?c?(u=kl,a.appearStatus=wl):u=yu:r.unmountOnExit||r.mountOnEnter?u=tp:u=kl,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var s=o.in;return s&&a.status===tp?{status:kl}: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 s=this.state.status;this.props.in?s!==wl&&s!==yu&&(a=wl):(s===wl||s===yu)&&(a=yx)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,a,s,c;return a=s=c=o,o!=null&&typeof o!="number"&&(a=o.exit,s=o.enter,c=o.appear!==void 0?o.appear:s),{exit:a,enter:s,appear:c}},n.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===wl){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:zs.findDOMNode(this);s&&Wz(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===kl&&this.setState({status:tp})},n.performEnter=function(o){var a=this,s=this.props.enter,c=this.context?this.context.isMounting:o,u=this.props.nodeRef?[c]:[zs.findDOMNode(this),c],d=u[0],p=u[1],h=this.getTimeouts(),g=c?h.appear:h.enter;if(!o&&!s||cD.disabled){this.safeSetState({status:yu},function(){a.props.onEntered(d)});return}this.props.onEnter(d,p),this.safeSetState({status:wl},function(){a.props.onEntering(d,p),a.onTransitionEnd(g,function(){a.safeSetState({status:yu},function(){a.props.onEntered(d,p)})})})},n.performExit=function(){var o=this,a=this.props.exit,s=this.getTimeouts(),c=this.props.nodeRef?void 0:zs.findDOMNode(this);if(!a||cD.disabled){this.safeSetState({status:kl},function(){o.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:yx},function(){o.props.onExiting(c),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:kl},function(){o.props.onExited(c)})})})},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,s=!0;return this.nextCallback=function(c){s&&(s=!1,a.nextCallback=null,o(c))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:zs.findDOMNode(this),c=o==null&&!this.props.addEndListener;if(!s||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[s,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===tp)return null;var a=this.props,s=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 c=X3(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Fe.createElement(gy.Provider,{value:null},typeof s=="function"?s(o,c):Fe.cloneElement(Fe.Children.only(s),c))},t}(Fe.Component);Va.contextType=gy;Va.propTypes={};function ou(){}Va.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ou,onEntering:ou,onEntered:ou,onExit:ou,onExiting:ou,onExited:ou};Va.UNMOUNTED=tp;Va.EXITED=kl;Va.ENTERING=wl;Va.ENTERED=yu;Va.EXITING=yx;function Yz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mS(e,t){var n=function(a){return t&&k.isValidElement(a)?t(a):a},r=Object.create(null);return e&&k.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function Kz(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 s,c={};for(var u in t){if(r[u])for(s=0;s<r[u].length;s++){var d=r[u][s];c[r[u][s]]=n(d)}c[u]=n(u)}for(s=0;s<o.length;s++)c[o[s]]=n(o[s]);return c}function Ml(e,t,n){return n[t]!=null?n[t]:e.props[t]}function Qz(e,t){return mS(e.children,function(n){return k.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Ml(n,"appear",e),enter:Ml(n,"enter",e),exit:Ml(n,"exit",e)})})}function Xz(e,t,n){var r=mS(e.children),o=Kz(t,r);return Object.keys(o).forEach(function(a){var s=o[a];if(k.isValidElement(s)){var c=a in t,u=a in r,d=t[a],p=k.isValidElement(d)&&!d.props.in;u&&(!c||p)?o[a]=k.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:Ml(s,"exit",e),enter:Ml(s,"enter",e)}):!u&&c&&!p?o[a]=k.cloneElement(s,{in:!1}):u&&c&&k.isValidElement(d)&&(o[a]=k.cloneElement(s,{onExited:n.bind(null,s),in:d.props.in,exit:Ml(s,"exit",e),enter:Ml(s,"enter",e)}))}}),o}var Zz=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Jz={component:"div",childFactory:function(t){return t}},gS=function(e){Z3(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var s=a.handleExited.bind(Yz(a));return a.state={contextValue:{isMounting:!0},handleExited:s,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 s=a.children,c=a.handleExited,u=a.firstRender;return{children:u?Qz(o,c):Xz(o,s,c),firstRender:!1}},n.handleExited=function(o,a){var s=mS(this.props.children);o.key in s||(o.props.onExited&&o.props.onExited(a),this.mounted&&this.setState(function(c){var u=mx({},c.children);return delete u[o.key],{children:u}}))},n.render=function(){var o=this.props,a=o.component,s=o.childFactory,c=X3(o,["component","childFactory"]),u=this.state.contextValue,d=Zz(this.state.children).map(s);return delete c.appear,delete c.enter,delete c.exit,a===null?Fe.createElement(gy.Provider,{value:u},d):Fe.createElement(gy.Provider,{value:u},Fe.createElement(a,c,d))},t}(Fe.Component);gS.propTypes={};gS.defaultProps=Jz;const uD={};function J3(e,t){const n=k.useRef(uD);return n.current===uD&&(n.current=e(t)),n}const e$=[];function t$(e){k.useEffect(e,e$)}class C0{static create(){return new C0}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 Fl(){const e=J3(C0.create).current;return t$(e.disposeEffect),e}const e5=e=>e.scrollTop;function Hu(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 n$(e){return it("MuiCollapse",e)}ut("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const r$=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return st(r,n$,n)},o$=ke("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]}})(St(({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"}}]}))),a$=ke("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),i$=ke("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Ma=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiCollapse"}),{addEndListener:o,children:a,className:s,collapsedSize:c="0px",component:u,easing:d,in:p,onEnter:h,onEntered:g,onEntering:y,onExit:b,onExited:x,onExiting:S,orientation:T="vertical",style:D,timeout:w=q3.standard,TransitionComponent:R=Va,...I}=r,O={...r,orientation:T,collapsedSize:c},F=r$(O),j=nl(),H=Fl(),C=k.useRef(null),M=k.useRef(),$=typeof c=="number"?`${c}px`:c,z=T==="horizontal",q=z?"width":"height",Y=k.useRef(null),B=Jn(n,Y),X=re=>be=>{if(re){const ye=Y.current;be===void 0?re(ye):re(ye,be)}},ae=()=>C.current?C.current[z?"clientWidth":"clientHeight"]:0,te=X((re,be)=>{C.current&&z&&(C.current.style.position="absolute"),re.style[q]=$,h&&h(re,be)}),N=X((re,be)=>{const ye=ae();C.current&&z&&(C.current.style.position="");const{duration:Ge,easing:Me}=Hu({style:D,timeout:w,easing:d},{mode:"enter"});if(w==="auto"){const Oe=j.transitions.getAutoHeightDuration(ye);re.style.transitionDuration=`${Oe}ms`,M.current=Oe}else re.style.transitionDuration=typeof Ge=="string"?Ge:`${Ge}ms`;re.style[q]=`${ye}px`,re.style.transitionTimingFunction=Me,y&&y(re,be)}),oe=X((re,be)=>{re.style[q]="auto",g&&g(re,be)}),K=X(re=>{re.style[q]=`${ae()}px`,b&&b(re)}),P=X(x),ee=X(re=>{const be=ae(),{duration:ye,easing:Ge}=Hu({style:D,timeout:w,easing:d},{mode:"exit"});if(w==="auto"){const Me=j.transitions.getAutoHeightDuration(be);re.style.transitionDuration=`${Me}ms`,M.current=Me}else re.style.transitionDuration=typeof ye=="string"?ye:`${ye}ms`;re.style[q]=$,re.style.transitionTimingFunction=Ge,S&&S(re)}),ce=re=>{w==="auto"&&H.start(M.current||0,re),o&&o(Y.current,re)};return v.jsx(R,{in:p,onEnter:te,onEntered:oe,onEntering:N,onExit:K,onExited:P,onExiting:ee,addEndListener:ce,nodeRef:Y,timeout:w==="auto"?null:w,...I,children:(re,{ownerState:be,...ye})=>v.jsx(o$,{as:u,className:qe(F.root,s,{entered:F.entered,exited:!p&&$==="0px"&&F.hidden}[re]),style:{[z?"minWidth":"minHeight"]:$,...D},ref:B,ownerState:{...O,state:re},...ye,children:v.jsx(a$,{ownerState:{...O,state:re},className:F.wrapper,ref:C,children:v.jsx(i$,{ownerState:{...O,state:re},className:F.wrapperInner,children:a})})})})});Ma&&(Ma.muiSupportAuto=!0);function s$(e){return it("MuiPaper",e)}ut("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 l$=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return st(a,s$,o)},c$=ke("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}`]]}})(St(({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)"}}]}))),Zs=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiPaper"}),o=nl(),{className:a,component:s="div",elevation:c=1,square:u=!1,variant:d="elevation",...p}=r,h={...r,component:s,elevation:c,square:u,variant:d},g=l$(h);return v.jsx(c$,{as:s,ownerState:h,className:qe(g.root,a),ref:n,...p,style:{...d==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[c],...o.vars&&{"--Paper-overlay":o.vars.overlays?.[c]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Dt("#fff",px(c))}, ${Dt("#fff",px(c))})`}},...p.style}})});function u$(e){return typeof e=="string"}function t5(e,t,n){return e===void 0||u$(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function n5(e,t,n){return typeof e=="function"?e(t,n):e}function r5(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 dD(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 o5(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const y=qe(n?.className,a,o?.className,r?.className),b={...n?.style,...o?.style,...r?.style},x={...n,...o,...r};return y.length>0&&(x.className=y),Object.keys(b).length>0&&(x.style=b),{props:x,internalRef:void 0}}const s=r5({...o,...r}),c=dD(r),u=dD(o),d=t(s),p=qe(d?.className,n?.className,a,o?.className,r?.className),h={...d?.style,...n?.style,...o?.style,...r?.style},g={...d,...n,...u,...c};return p.length>0&&(g.className=p),Object.keys(h).length>0&&(g.style=h),{props:g,internalRef:d.ref}}function Ft(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,internalForwardedProps:s,shouldForwardComponentProp:c=!1,...u}=t,{component:d,slots:p={[e]:void 0},slotProps:h={[e]:void 0},...g}=a,y=p[e]||r,b=n5(h[e],o),{props:{component:x,...S},internalRef:T}=o5({className:n,...u,externalForwardedProps:e==="root"?g:void 0,externalSlotProps:b}),D=Jn(T,b?.ref,t.ref),w=e==="root"?x||d:x,R=t5(y,{...e==="root"&&!d&&!p[e]&&s,...e!=="root"&&!p[e]&&s,...S,...w&&!c&&{as:w},...w&&c&&{component:w},ref:D},o);return[y,R]}function yy(e){try{return e.matches(":focus-visible")}catch{}return!1}class by{static create(){return new by}static use(){const t=J3(by.create).current,[n,r]=k.useState(!1);return t.shouldMount=n,t.setShouldMount=r,k.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=f$(),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 d$(){return by.use()}function f$(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function p$(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:s,in:c,onExited:u,timeout:d}=e,[p,h]=k.useState(!1),g=qe(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:s,height:s,top:-(s/2)+a,left:-(s/2)+o},b=qe(n.child,p&&n.childLeaving,r&&n.childPulsate);return!c&&!p&&h(!0),k.useEffect(()=>{if(!c&&u!=null){const x=setTimeout(u,d);return()=>{clearTimeout(x)}}},[u,c,d]),v.jsx("span",{className:g,style:y,children:v.jsx("span",{className:b})})}const da=ut("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),bx=550,h$=80,m$=tl`
|
|
121
|
+
0% {
|
|
122
|
+
transform: scale(0);
|
|
123
|
+
opacity: 0.1;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
100% {
|
|
127
|
+
transform: scale(1);
|
|
128
|
+
opacity: 0.3;
|
|
129
|
+
}
|
|
130
|
+
`,g$=tl`
|
|
131
|
+
0% {
|
|
132
|
+
opacity: 1;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
100% {
|
|
136
|
+
opacity: 0;
|
|
137
|
+
}
|
|
138
|
+
`,y$=tl`
|
|
139
|
+
0% {
|
|
140
|
+
transform: scale(1);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
50% {
|
|
144
|
+
transform: scale(0.92);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
100% {
|
|
148
|
+
transform: scale(1);
|
|
149
|
+
}
|
|
150
|
+
`,b$=ke("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),v$=ke(p$,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
151
|
+
opacity: 0;
|
|
152
|
+
position: absolute;
|
|
153
|
+
|
|
154
|
+
&.${da.rippleVisible} {
|
|
155
|
+
opacity: 0.3;
|
|
156
|
+
transform: scale(1);
|
|
157
|
+
animation-name: ${m$};
|
|
158
|
+
animation-duration: ${bx}ms;
|
|
159
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
&.${da.ripplePulsate} {
|
|
163
|
+
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
& .${da.child} {
|
|
167
|
+
opacity: 1;
|
|
168
|
+
display: block;
|
|
169
|
+
width: 100%;
|
|
170
|
+
height: 100%;
|
|
171
|
+
border-radius: 50%;
|
|
172
|
+
background-color: currentColor;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
& .${da.childLeaving} {
|
|
176
|
+
opacity: 0;
|
|
177
|
+
animation-name: ${g$};
|
|
178
|
+
animation-duration: ${bx}ms;
|
|
179
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
& .${da.childPulsate} {
|
|
183
|
+
position: absolute;
|
|
184
|
+
/* @noflip */
|
|
185
|
+
left: 0px;
|
|
186
|
+
top: 0;
|
|
187
|
+
animation-name: ${y$};
|
|
188
|
+
animation-duration: 2500ms;
|
|
189
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
190
|
+
animation-iteration-count: infinite;
|
|
191
|
+
animation-delay: 200ms;
|
|
192
|
+
}
|
|
193
|
+
`,E$=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:s,...c}=r,[u,d]=k.useState([]),p=k.useRef(0),h=k.useRef(null);k.useEffect(()=>{h.current&&(h.current(),h.current=null)},[u]);const g=k.useRef(!1),y=Fl(),b=k.useRef(null),x=k.useRef(null),S=k.useCallback(R=>{const{pulsate:I,rippleX:O,rippleY:F,rippleSize:j,cb:H}=R;d(C=>[...C,v.jsx(v$,{classes:{ripple:qe(a.ripple,da.ripple),rippleVisible:qe(a.rippleVisible,da.rippleVisible),ripplePulsate:qe(a.ripplePulsate,da.ripplePulsate),child:qe(a.child,da.child),childLeaving:qe(a.childLeaving,da.childLeaving),childPulsate:qe(a.childPulsate,da.childPulsate)},timeout:bx,pulsate:I,rippleX:O,rippleY:F,rippleSize:j},p.current)]),p.current+=1,h.current=H},[a]),T=k.useCallback((R={},I={},O=()=>{})=>{const{pulsate:F=!1,center:j=o||I.pulsate,fakeElement:H=!1}=I;if(R?.type==="mousedown"&&g.current){g.current=!1;return}R?.type==="touchstart"&&(g.current=!0);const C=H?null:x.current,M=C?C.getBoundingClientRect():{width:0,height:0,left:0,top:0};let $,z,q;if(j||R===void 0||R.clientX===0&&R.clientY===0||!R.clientX&&!R.touches)$=Math.round(M.width/2),z=Math.round(M.height/2);else{const{clientX:Y,clientY:B}=R.touches&&R.touches.length>0?R.touches[0]:R;$=Math.round(Y-M.left),z=Math.round(B-M.top)}if(j)q=Math.sqrt((2*M.width**2+M.height**2)/3),q%2===0&&(q+=1);else{const Y=Math.max(Math.abs((C?C.clientWidth:0)-$),$)*2+2,B=Math.max(Math.abs((C?C.clientHeight:0)-z),z)*2+2;q=Math.sqrt(Y**2+B**2)}R?.touches?b.current===null&&(b.current=()=>{S({pulsate:F,rippleX:$,rippleY:z,rippleSize:q,cb:O})},y.start(h$,()=>{b.current&&(b.current(),b.current=null)})):S({pulsate:F,rippleX:$,rippleY:z,rippleSize:q,cb:O})},[o,S,y]),D=k.useCallback(()=>{T({},{pulsate:!0})},[T]),w=k.useCallback((R,I)=>{if(y.clear(),R?.type==="touchend"&&b.current){b.current(),b.current=null,y.start(0,()=>{w(R,I)});return}b.current=null,d(O=>O.length>0?O.slice(1):O),h.current=I},[y]);return k.useImperativeHandle(n,()=>({pulsate:D,start:T,stop:w}),[D,T,w]),v.jsx(b$,{className:qe(da.root,a.root,s),ref:x,...c,children:v.jsx(gS,{component:null,exit:!0,children:u})})});function x$(e){return it("MuiButtonBase",e)}const T$=ut("MuiButtonBase",["root","disabled","focusVisible"]),S$=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=st({root:["root",t&&"disabled",n&&"focusVisible"]},x$,o);return n&&r&&(s.root+=` ${r}`),s},C$=ke("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"},[`&.${T$.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),mi=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:s,className:c,component:u="button",disabled:d=!1,disableRipple:p=!1,disableTouchRipple:h=!1,focusRipple:g=!1,focusVisibleClassName:y,LinkComponent:b="a",onBlur:x,onClick:S,onContextMenu:T,onDragLeave:D,onFocus:w,onFocusVisible:R,onKeyDown:I,onKeyUp:O,onMouseDown:F,onMouseLeave:j,onMouseUp:H,onTouchEnd:C,onTouchMove:M,onTouchStart:$,tabIndex:z=0,TouchRippleProps:q,touchRippleRef:Y,type:B,...X}=r,ae=k.useRef(null),te=d$(),N=Jn(te.ref,Y),[oe,K]=k.useState(!1);d&&oe&&K(!1),k.useImperativeHandle(o,()=>({focusVisible:()=>{K(!0),ae.current.focus()}}),[]);const P=te.shouldMount&&!p&&!d;k.useEffect(()=>{oe&&g&&!p&&te.pulsate()},[p,g,oe,te]);const ee=ji(te,"start",F,h),ce=ji(te,"stop",T,h),re=ji(te,"stop",D,h),be=ji(te,"stop",H,h),ye=ji(te,"stop",Le=>{oe&&Le.preventDefault(),j&&j(Le)},h),Ge=ji(te,"start",$,h),Me=ji(te,"stop",C,h),Oe=ji(te,"stop",M,h),Qe=ji(te,"stop",Le=>{yy(Le.target)||K(!1),x&&x(Le)},!1),nt=va(Le=>{ae.current||(ae.current=Le.currentTarget),yy(Le.target)&&(K(!0),R&&R(Le)),w&&w(Le)}),Re=()=>{const Le=ae.current;return u&&u!=="button"&&!(Le.tagName==="A"&&Le.href)},gt=va(Le=>{g&&!Le.repeat&&oe&&Le.key===" "&&te.stop(Le,()=>{te.start(Le)}),Le.target===Le.currentTarget&&Re()&&Le.key===" "&&Le.preventDefault(),I&&I(Le),Le.target===Le.currentTarget&&Re()&&Le.key==="Enter"&&!d&&(Le.preventDefault(),S&&S(Le))}),_t=va(Le=>{g&&Le.key===" "&&oe&&!Le.defaultPrevented&&te.stop(Le,()=>{te.pulsate(Le)}),O&&O(Le),S&&Le.target===Le.currentTarget&&Re()&&Le.key===" "&&!Le.defaultPrevented&&S(Le)});let je=u;je==="button"&&(X.href||X.to)&&(je=b);const mt={};je==="button"?(mt.type=B===void 0?"button":B,mt.disabled=d):(!X.href&&!X.to&&(mt.role="button"),d&&(mt["aria-disabled"]=d));const lt=Jn(n,ae),ft={...r,centerRipple:a,component:u,disabled:d,disableRipple:p,disableTouchRipple:h,focusRipple:g,tabIndex:z,focusVisible:oe},Ue=S$(ft);return v.jsxs(C$,{as:je,className:qe(Ue.root,c),ownerState:ft,onBlur:Qe,onClick:S,onContextMenu:ce,onFocus:nt,onKeyDown:gt,onKeyUp:_t,onMouseDown:ee,onMouseLeave:ye,onMouseUp:be,onDragLeave:re,onTouchEnd:Me,onTouchMove:Oe,onTouchStart:Ge,ref:lt,tabIndex:d?-1:z,type:B,...mt,...X,children:[s,P?v.jsx(E$,{ref:N,center:a,...q}):null]})});function ji(e,t,n,r=!1){return va(o=>(n&&n(o),r||e[t](o),!0))}function _$(e){return typeof e.main=="string"}function A$(e,t=[]){if(!_$(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function so(e=[]){return([,t])=>t&&A$(t,e)}function k$(e){return it("MuiCircularProgress",e)}ut("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ns=44,vx=tl`
|
|
194
|
+
0% {
|
|
195
|
+
transform: rotate(0deg);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
100% {
|
|
199
|
+
transform: rotate(360deg);
|
|
200
|
+
}
|
|
201
|
+
`,Ex=tl`
|
|
202
|
+
0% {
|
|
203
|
+
stroke-dasharray: 1px, 200px;
|
|
204
|
+
stroke-dashoffset: 0;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
50% {
|
|
208
|
+
stroke-dasharray: 100px, 200px;
|
|
209
|
+
stroke-dashoffset: -15px;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
100% {
|
|
213
|
+
stroke-dasharray: 1px, 200px;
|
|
214
|
+
stroke-dashoffset: -126px;
|
|
215
|
+
}
|
|
216
|
+
`,w$=typeof vx!="string"?JT`
|
|
217
|
+
animation: ${vx} 1.4s linear infinite;
|
|
218
|
+
`:null,D$=typeof Ex!="string"?JT`
|
|
219
|
+
animation: ${Ex} 1.4s ease-in-out infinite;
|
|
220
|
+
`:null,R$=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,a={root:["root",n,`color${Ne(r)}`],svg:["svg"],circle:["circle",`circle${Ne(n)}`,o&&"circleDisableShrink"]};return st(a,k$,t)},I$=ke("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Ne(n.color)}`]]}})(St(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:w$||{animation:`${vx} 1.4s linear infinite`}},...Object.entries(e.palette).filter(so()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),O$=ke("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),N$=ke("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Ne(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(St(({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:D$||{animation:`${Ex} 1.4s ease-in-out infinite`}}]}))),yS=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:s=!1,size:c=40,style:u,thickness:d=3.6,value:p=0,variant:h="indeterminate",...g}=r,y={...r,color:a,disableShrink:s,size:c,thickness:d,value:p,variant:h},b=R$(y),x={},S={},T={};if(h==="determinate"){const D=2*Math.PI*((Ns-d)/2);x.strokeDasharray=D.toFixed(3),T["aria-valuenow"]=Math.round(p),x.strokeDashoffset=`${((100-p)/100*D).toFixed(3)}px`,S.transform="rotate(-90deg)"}return v.jsx(I$,{className:qe(b.root,o),style:{width:c,height:c,...S,...u},ownerState:y,ref:n,role:"progressbar",...T,...g,children:v.jsx(O$,{className:b.svg,ownerState:y,viewBox:`${Ns/2} ${Ns/2} ${Ns} ${Ns}`,children:v.jsx(N$,{className:b.circle,style:x,ownerState:y,cx:Ns,cy:Ns,r:(Ns-d)/2,fill:"none",strokeWidth:d})})})});function P$(e){return it("MuiIconButton",e)}const fD=ut("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),L$=e=>{const{classes:t,disabled:n,color:r,edge:o,size:a,loading:s}=e,c={root:["root",s&&"loading",n&&"disabled",r!=="default"&&`color${Ne(r)}`,o&&`edge${Ne(o)}`,`size${Ne(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return st(c,P$,t)},M$=ke(mi,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${Ne(n.color)}`],n.edge&&t[`edge${Ne(n.edge)}`],t[`size${Ne(n.size)}`]]}})(St(({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.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Dt(e.palette.action.active,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}}]})),St(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(so()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(so()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Dt((e.vars||e).palette[t].main,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)}}],[`&.${fD.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${fD.loading}`]:{color:"transparent"}}))),F$=ke("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"}}]})),$n=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:s,color:c="default",disabled:u=!1,disableFocusRipple:d=!1,size:p="medium",id:h,loading:g=null,loadingIndicator:y,...b}=r,x=id(h),S=y??v.jsx(yS,{"aria-labelledby":x,color:"inherit",size:16}),T={...r,edge:o,color:c,disabled:u,disableFocusRipple:d,loading:g,loadingIndicator:S,size:p},D=L$(T);return v.jsxs(M$,{id:g?x:h,className:qe(D.root,s),centerRipple:!0,focusRipple:!d,disabled:u||g,ref:n,...b,ownerState:T,children:[typeof g=="boolean"&&v.jsx("span",{className:D.loadingWrapper,style:{display:"contents"},children:v.jsx(F$,{className:D.loadingIndicator,ownerState:T,children:g&&S})}),a]})});function B$(e){return it("MuiTypography",e)}const pD=ut("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),j$={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},U$=jz(),H$=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:s}=e,c={root:["root",a,e.align!=="inherit"&&`align${Ne(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return st(c,B$,s)},z$=ke("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${Ne(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(St(({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(so()).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${Ne(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}}]}))),hD={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},He=k.forwardRef(function(t,n){const{color:r,...o}=dt({props:t,name:"MuiTypography"}),a=!j$[r],s=U$({...o,...a&&{color:r}}),{align:c="inherit",className:u,component:d,gutterBottom:p=!1,noWrap:h=!1,paragraph:g=!1,variant:y="body1",variantMapping:b=hD,...x}=s,S={...s,align:c,color:r,className:u,component:d,gutterBottom:p,noWrap:h,paragraph:g,variant:y,variantMapping:b},T=d||(g?"p":b[y]||hD[y])||"span",D=H$(S);return v.jsx(z$,{as:T,ref:n,className:qe(D.root,u),...x,ownerState:S,style:{...c!=="inherit"&&{"--Typography-textAlign":c},...x.style}})});function $$(e){return it("MuiAppBar",e)}ut("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const V$=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${Ne(t)}`,`position${Ne(n)}`]};return st(o,$$,r)},mD=(e,t)=>e?`${e?.replace(")","")}, ${t})`:t,G$=ke(Zs,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Ne(n.position)}`],t[`color${Ne(n.color)}`]]}})(St(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(so(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?mD(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?mD(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),q$=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:s=!1,position:c="fixed",...u}=r,d={...r,color:a,position:c,enableColorOnDark:s},p=V$(d);return v.jsx(G$,{square:!0,component:"header",ownerState:d,elevation:4,className:qe(p.root,o,c==="fixed"&&"mui-fixed"),ref:n,...u})});var To="top",Sa="bottom",Ca="right",So="left",bS="auto",_h=[To,Sa,Ca,So],zu="start",Up="end",W$="clippingParents",a5="viewport",Df="popper",Y$="reference",gD=_h.reduce(function(e,t){return e.concat([t+"-"+zu,t+"-"+Up])},[]),i5=[].concat(_h,[bS]).reduce(function(e,t){return e.concat([t,t+"-"+zu,t+"-"+Up])},[]),K$="beforeRead",Q$="read",X$="afterRead",Z$="beforeMain",J$="main",eV="afterMain",tV="beforeWrite",nV="write",rV="afterWrite",oV=[K$,Q$,X$,Z$,J$,eV,tV,nV,rV];function gi(e){return e?(e.nodeName||"").toLowerCase():null}function Yo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Zl(e){var t=Yo(e).Element;return e instanceof t||e instanceof Element}function Ea(e){var t=Yo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function vS(e){if(typeof ShadowRoot>"u")return!1;var t=Yo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function aV(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];!Ea(a)||!gi(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(s){var c=o[s];c===!1?a.removeAttribute(s):a.setAttribute(s,c===!0?"":c)}))})}function iV(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]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),c=s.reduce(function(u,d){return u[d]="",u},{});!Ea(o)||!gi(o)||(Object.assign(o.style,c),Object.keys(a).forEach(function(u){o.removeAttribute(u)}))})}}const sV={name:"applyStyles",enabled:!0,phase:"write",fn:aV,effect:iV,requires:["computeStyles"]};function hi(e){return e.split("-")[0]}var Vl=Math.max,vy=Math.min,$u=Math.round;function xx(){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 s5(){return!/^((?!chrome|android).)*safari/i.test(xx())}function Vu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&Ea(e)&&(o=e.offsetWidth>0&&$u(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&$u(r.height)/e.offsetHeight||1);var s=Zl(e)?Yo(e):window,c=s.visualViewport,u=!s5()&&n,d=(r.left+(u&&c?c.offsetLeft:0))/o,p=(r.top+(u&&c?c.offsetTop:0))/a,h=r.width/o,g=r.height/a;return{width:h,height:g,top:p,right:d+h,bottom:p+g,left:d,x:d,y:p}}function ES(e){var t=Vu(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 l5(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&vS(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ns(e){return Yo(e).getComputedStyle(e)}function lV(e){return["table","td","th"].indexOf(gi(e))>=0}function rl(e){return((Zl(e)?e.ownerDocument:e.document)||window.document).documentElement}function _0(e){return gi(e)==="html"?e:e.assignedSlot||e.parentNode||(vS(e)?e.host:null)||rl(e)}function yD(e){return!Ea(e)||ns(e).position==="fixed"?null:e.offsetParent}function cV(e){var t=/firefox/i.test(xx()),n=/Trident/i.test(xx());if(n&&Ea(e)){var r=ns(e);if(r.position==="fixed")return null}var o=_0(e);for(vS(o)&&(o=o.host);Ea(o)&&["html","body"].indexOf(gi(o))<0;){var a=ns(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 Ah(e){for(var t=Yo(e),n=yD(e);n&&lV(n)&&ns(n).position==="static";)n=yD(n);return n&&(gi(n)==="html"||gi(n)==="body"&&ns(n).position==="static")?t:n||cV(e)||t}function xS(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function dp(e,t,n){return Vl(e,vy(t,n))}function uV(e,t,n){var r=dp(e,t,n);return r>n?n:r}function c5(){return{top:0,right:0,bottom:0,left:0}}function u5(e){return Object.assign({},c5(),e)}function d5(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var dV=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,u5(typeof t!="number"?t:d5(t,_h))};function fV(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,c=hi(n.placement),u=xS(c),d=[So,Ca].indexOf(c)>=0,p=d?"height":"width";if(!(!a||!s)){var h=dV(o.padding,n),g=ES(a),y=u==="y"?To:So,b=u==="y"?Sa:Ca,x=n.rects.reference[p]+n.rects.reference[u]-s[u]-n.rects.popper[p],S=s[u]-n.rects.reference[u],T=Ah(a),D=T?u==="y"?T.clientHeight||0:T.clientWidth||0:0,w=x/2-S/2,R=h[y],I=D-g[p]-h[b],O=D/2-g[p]/2+w,F=dp(R,O,I),j=u;n.modifiersData[r]=(t={},t[j]=F,t.centerOffset=F-O,t)}}function pV(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)||l5(t.elements.popper,o)&&(t.elements.arrow=o))}const hV={name:"arrow",enabled:!0,phase:"main",fn:fV,effect:pV,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Gu(e){return e.split("-")[1]}var mV={top:"auto",right:"auto",bottom:"auto",left:"auto"};function gV(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:$u(n*o)/o||0,y:$u(r*o)/o||0}}function bD(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,c=e.position,u=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,h=e.isFixed,g=s.x,y=g===void 0?0:g,b=s.y,x=b===void 0?0:b,S=typeof p=="function"?p({x:y,y:x}):{x:y,y:x};y=S.x,x=S.y;var T=s.hasOwnProperty("x"),D=s.hasOwnProperty("y"),w=So,R=To,I=window;if(d){var O=Ah(n),F="clientHeight",j="clientWidth";if(O===Yo(n)&&(O=rl(n),ns(O).position!=="static"&&c==="absolute"&&(F="scrollHeight",j="scrollWidth")),O=O,o===To||(o===So||o===Ca)&&a===Up){R=Sa;var H=h&&O===I&&I.visualViewport?I.visualViewport.height:O[F];x-=H-r.height,x*=u?1:-1}if(o===So||(o===To||o===Sa)&&a===Up){w=Ca;var C=h&&O===I&&I.visualViewport?I.visualViewport.width:O[j];y-=C-r.width,y*=u?1:-1}}var M=Object.assign({position:c},d&&mV),$=p===!0?gV({x:y,y:x},Yo(n)):{x:y,y:x};if(y=$.x,x=$.y,u){var z;return Object.assign({},M,(z={},z[R]=D?"0":"",z[w]=T?"0":"",z.transform=(I.devicePixelRatio||1)<=1?"translate("+y+"px, "+x+"px)":"translate3d("+y+"px, "+x+"px, 0)",z))}return Object.assign({},M,(t={},t[R]=D?x+"px":"",t[w]=T?y+"px":"",t.transform="",t))}function yV(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,a=n.adaptive,s=a===void 0?!0:a,c=n.roundOffsets,u=c===void 0?!0:c,d={placement:hi(t.placement),variation:Gu(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,bD(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,bD(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 bV={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:yV,data:{}};var lg={passive:!0};function vV(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,s=r.resize,c=s===void 0?!0:s,u=Yo(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach(function(p){p.addEventListener("scroll",n.update,lg)}),c&&u.addEventListener("resize",n.update,lg),function(){a&&d.forEach(function(p){p.removeEventListener("scroll",n.update,lg)}),c&&u.removeEventListener("resize",n.update,lg)}}const EV={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:vV,data:{}};var xV={left:"right",right:"left",bottom:"top",top:"bottom"};function Ug(e){return e.replace(/left|right|bottom|top/g,function(t){return xV[t]})}var TV={start:"end",end:"start"};function vD(e){return e.replace(/start|end/g,function(t){return TV[t]})}function TS(e){var t=Yo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function SS(e){return Vu(rl(e)).left+TS(e).scrollLeft}function SV(e,t){var n=Yo(e),r=rl(e),o=n.visualViewport,a=r.clientWidth,s=r.clientHeight,c=0,u=0;if(o){a=o.width,s=o.height;var d=s5();(d||!d&&t==="fixed")&&(c=o.offsetLeft,u=o.offsetTop)}return{width:a,height:s,x:c+SS(e),y:u}}function CV(e){var t,n=rl(e),r=TS(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Vl(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Vl(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+SS(e),u=-r.scrollTop;return ns(o||n).direction==="rtl"&&(c+=Vl(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:c,y:u}}function CS(e){var t=ns(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function f5(e){return["html","body","#document"].indexOf(gi(e))>=0?e.ownerDocument.body:Ea(e)&&CS(e)?e:f5(_0(e))}function fp(e,t){var n;t===void 0&&(t=[]);var r=f5(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=Yo(r),s=o?[a].concat(a.visualViewport||[],CS(r)?r:[]):r,c=t.concat(s);return o?c:c.concat(fp(_0(s)))}function Tx(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function _V(e,t){var n=Vu(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 ED(e,t,n){return t===a5?Tx(SV(e,n)):Zl(t)?_V(t,n):Tx(CV(rl(e)))}function AV(e){var t=fp(_0(e)),n=["absolute","fixed"].indexOf(ns(e).position)>=0,r=n&&Ea(e)?Ah(e):e;return Zl(r)?t.filter(function(o){return Zl(o)&&l5(o,r)&&gi(o)!=="body"}):[]}function kV(e,t,n,r){var o=t==="clippingParents"?AV(e):[].concat(t),a=[].concat(o,[n]),s=a[0],c=a.reduce(function(u,d){var p=ED(e,d,r);return u.top=Vl(p.top,u.top),u.right=vy(p.right,u.right),u.bottom=vy(p.bottom,u.bottom),u.left=Vl(p.left,u.left),u},ED(e,s,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function p5(e){var t=e.reference,n=e.element,r=e.placement,o=r?hi(r):null,a=r?Gu(r):null,s=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,u;switch(o){case To:u={x:s,y:t.y-n.height};break;case Sa:u={x:s,y:t.y+t.height};break;case Ca:u={x:t.x+t.width,y:c};break;case So:u={x:t.x-n.width,y:c};break;default:u={x:t.x,y:t.y}}var d=o?xS(o):null;if(d!=null){var p=d==="y"?"height":"width";switch(a){case zu:u[d]=u[d]-(t[p]/2-n[p]/2);break;case Up:u[d]=u[d]+(t[p]/2-n[p]/2);break}}return u}function Hp(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,a=n.strategy,s=a===void 0?e.strategy:a,c=n.boundary,u=c===void 0?W$:c,d=n.rootBoundary,p=d===void 0?a5:d,h=n.elementContext,g=h===void 0?Df:h,y=n.altBoundary,b=y===void 0?!1:y,x=n.padding,S=x===void 0?0:x,T=u5(typeof S!="number"?S:d5(S,_h)),D=g===Df?Y$:Df,w=e.rects.popper,R=e.elements[b?D:g],I=kV(Zl(R)?R:R.contextElement||rl(e.elements.popper),u,p,s),O=Vu(e.elements.reference),F=p5({reference:O,element:w,placement:o}),j=Tx(Object.assign({},w,F)),H=g===Df?j:O,C={top:I.top-H.top+T.top,bottom:H.bottom-I.bottom+T.bottom,left:I.left-H.left+T.left,right:H.right-I.right+T.right},M=e.modifiersData.offset;if(g===Df&&M){var $=M[o];Object.keys(C).forEach(function(z){var q=[Ca,Sa].indexOf(z)>=0?1:-1,Y=[To,Sa].indexOf(z)>=0?"y":"x";C[z]+=$[Y]*q})}return C}function wV(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,s=n.padding,c=n.flipVariations,u=n.allowedAutoPlacements,d=u===void 0?i5:u,p=Gu(r),h=p?c?gD:gD.filter(function(b){return Gu(b)===p}):_h,g=h.filter(function(b){return d.indexOf(b)>=0});g.length===0&&(g=h);var y=g.reduce(function(b,x){return b[x]=Hp(e,{placement:x,boundary:o,rootBoundary:a,padding:s})[hi(x)],b},{});return Object.keys(y).sort(function(b,x){return y[b]-y[x]})}function DV(e){if(hi(e)===bS)return[];var t=Ug(e);return[vD(e),t,vD(t)]}function RV(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,s=n.altAxis,c=s===void 0?!0:s,u=n.fallbackPlacements,d=n.padding,p=n.boundary,h=n.rootBoundary,g=n.altBoundary,y=n.flipVariations,b=y===void 0?!0:y,x=n.allowedAutoPlacements,S=t.options.placement,T=hi(S),D=T===S,w=u||(D||!b?[Ug(S)]:DV(S)),R=[S].concat(w).reduce(function(ee,ce){return ee.concat(hi(ce)===bS?wV(t,{placement:ce,boundary:p,rootBoundary:h,padding:d,flipVariations:b,allowedAutoPlacements:x}):ce)},[]),I=t.rects.reference,O=t.rects.popper,F=new Map,j=!0,H=R[0],C=0;C<R.length;C++){var M=R[C],$=hi(M),z=Gu(M)===zu,q=[To,Sa].indexOf($)>=0,Y=q?"width":"height",B=Hp(t,{placement:M,boundary:p,rootBoundary:h,altBoundary:g,padding:d}),X=q?z?Ca:So:z?Sa:To;I[Y]>O[Y]&&(X=Ug(X));var ae=Ug(X),te=[];if(a&&te.push(B[$]<=0),c&&te.push(B[X]<=0,B[ae]<=0),te.every(function(ee){return ee})){H=M,j=!1;break}F.set(M,te)}if(j)for(var N=b?3:1,oe=function(ce){var re=R.find(function(be){var ye=F.get(be);if(ye)return ye.slice(0,ce).every(function(Ge){return Ge})});if(re)return H=re,"break"},K=N;K>0;K--){var P=oe(K);if(P==="break")break}t.placement!==H&&(t.modifiersData[r]._skip=!0,t.placement=H,t.reset=!0)}}const IV={name:"flip",enabled:!0,phase:"main",fn:RV,requiresIfExists:["offset"],data:{_skip:!1}};function xD(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 TD(e){return[To,Ca,Sa,So].some(function(t){return e[t]>=0})}function OV(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=Hp(t,{elementContext:"reference"}),c=Hp(t,{altBoundary:!0}),u=xD(s,r),d=xD(c,o,a),p=TD(u),h=TD(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 NV={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:OV};function PV(e,t,n){var r=hi(e),o=[So,To].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],c=a[1];return s=s||0,c=(c||0)*o,[So,Ca].indexOf(r)>=0?{x:c,y:s}:{x:s,y:c}}function LV(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,s=i5.reduce(function(p,h){return p[h]=PV(h,t.rects,a),p},{}),c=s[t.placement],u=c.x,d=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=s}const MV={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:LV};function FV(e){var t=e.state,n=e.name;t.modifiersData[n]=p5({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const BV={name:"popperOffsets",enabled:!0,phase:"read",fn:FV,data:{}};function jV(e){return e==="x"?"y":"x"}function UV(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,c=s===void 0?!1:s,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.padding,g=n.tether,y=g===void 0?!0:g,b=n.tetherOffset,x=b===void 0?0:b,S=Hp(t,{boundary:u,rootBoundary:d,padding:h,altBoundary:p}),T=hi(t.placement),D=Gu(t.placement),w=!D,R=xS(T),I=jV(R),O=t.modifiersData.popperOffsets,F=t.rects.reference,j=t.rects.popper,H=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,C=typeof H=="number"?{mainAxis:H,altAxis:H}:Object.assign({mainAxis:0,altAxis:0},H),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,$={x:0,y:0};if(O){if(a){var z,q=R==="y"?To:So,Y=R==="y"?Sa:Ca,B=R==="y"?"height":"width",X=O[R],ae=X+S[q],te=X-S[Y],N=y?-j[B]/2:0,oe=D===zu?F[B]:j[B],K=D===zu?-j[B]:-F[B],P=t.elements.arrow,ee=y&&P?ES(P):{width:0,height:0},ce=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:c5(),re=ce[q],be=ce[Y],ye=dp(0,F[B],ee[B]),Ge=w?F[B]/2-N-ye-re-C.mainAxis:oe-ye-re-C.mainAxis,Me=w?-F[B]/2+N+ye+be+C.mainAxis:K+ye+be+C.mainAxis,Oe=t.elements.arrow&&Ah(t.elements.arrow),Qe=Oe?R==="y"?Oe.clientTop||0:Oe.clientLeft||0:0,nt=(z=M?.[R])!=null?z:0,Re=X+Ge-nt-Qe,gt=X+Me-nt,_t=dp(y?vy(ae,Re):ae,X,y?Vl(te,gt):te);O[R]=_t,$[R]=_t-X}if(c){var je,mt=R==="x"?To:So,lt=R==="x"?Sa:Ca,ft=O[I],Ue=I==="y"?"height":"width",Le=ft+S[mt],Jt=ft-S[lt],jt=[To,So].indexOf(T)!==-1,At=(je=M?.[I])!=null?je:0,de=jt?Le:ft-F[Ue]-j[Ue]-At+C.altAxis,ge=jt?ft+F[Ue]+j[Ue]-At-C.altAxis:Jt,ze=y&&jt?uV(de,ft,ge):dp(y?de:Le,ft,y?ge:Jt);O[I]=ze,$[I]=ze-ft}t.modifiersData[r]=$}}const HV={name:"preventOverflow",enabled:!0,phase:"main",fn:UV,requiresIfExists:["offset"]};function zV(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function $V(e){return e===Yo(e)||!Ea(e)?TS(e):zV(e)}function VV(e){var t=e.getBoundingClientRect(),n=$u(t.width)/e.offsetWidth||1,r=$u(t.height)/e.offsetHeight||1;return n!==1||r!==1}function GV(e,t,n){n===void 0&&(n=!1);var r=Ea(t),o=Ea(t)&&VV(t),a=rl(t),s=Vu(e,o,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((gi(t)!=="body"||CS(a))&&(c=$V(t)),Ea(t)?(u=Vu(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=SS(a))),{x:s.left+c.scrollLeft-u.x,y:s.top+c.scrollTop-u.y,width:s.width,height:s.height}}function qV(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 s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(c){if(!n.has(c)){var u=t.get(c);u&&o(u)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function WV(e){var t=qV(e);return oV.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function YV(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function KV(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 SD={placement:"bottom",modifiers:[],strategy:"absolute"};function CD(){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 QV(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,a=o===void 0?SD:o;return function(c,u,d){d===void 0&&(d=a);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},SD,a),modifiersData:{},elements:{reference:c,popper:u},attributes:{},styles:{}},h=[],g=!1,y={state:p,setOptions:function(T){var D=typeof T=="function"?T(p.options):T;x(),p.options=Object.assign({},a,p.options,D),p.scrollParents={reference:Zl(c)?fp(c):c.contextElement?fp(c.contextElement):[],popper:fp(u)};var w=WV(KV([].concat(r,p.options.modifiers)));return p.orderedModifiers=w.filter(function(R){return R.enabled}),b(),y.update()},forceUpdate:function(){if(!g){var T=p.elements,D=T.reference,w=T.popper;if(CD(D,w)){p.rects={reference:GV(D,Ah(w),p.options.strategy==="fixed"),popper:ES(w)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(C){return p.modifiersData[C.name]=Object.assign({},C.data)});for(var R=0;R<p.orderedModifiers.length;R++){if(p.reset===!0){p.reset=!1,R=-1;continue}var I=p.orderedModifiers[R],O=I.fn,F=I.options,j=F===void 0?{}:F,H=I.name;typeof O=="function"&&(p=O({state:p,options:j,name:H,instance:y})||p)}}}},update:YV(function(){return new Promise(function(S){y.forceUpdate(),S(p)})}),destroy:function(){x(),g=!0}};if(!CD(c,u))return y;y.setOptions(d).then(function(S){!g&&d.onFirstUpdate&&d.onFirstUpdate(S)});function b(){p.orderedModifiers.forEach(function(S){var T=S.name,D=S.options,w=D===void 0?{}:D,R=S.effect;if(typeof R=="function"){var I=R({state:p,name:T,instance:y,options:w}),O=function(){};h.push(I||O)}})}function x(){h.forEach(function(S){return S()}),h=[]}return y}}var XV=[EV,BV,bV,sV,MV,IV,HV,hV,NV],ZV=QV({defaultModifiers:XV});function Jl(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...a}=e,s=o?{}:n5(n,r),{props:c,internalRef:u}=o5({...a,externalSlotProps:s}),d=Jn(u,s?.ref,e.additionalProps?.ref);return t5(t,{...c,ref:d},r)}function sd(e){return parseInt(k.version,10)>=19?e?.props?.ref||null:e?.ref||null}function JV(e){return typeof e=="function"?e():e}const h5=k.forwardRef(function(t,n){const{children:r,container:o,disablePortal:a=!1}=t,[s,c]=k.useState(null),u=Jn(k.isValidElement(r)?sd(r):null,n);if(Wo(()=>{a||c(JV(o)||document.body)},[o,a]),Wo(()=>{if(s&&!a)return iD(n,s),()=>{iD(n,null)}},[n,s,a]),a){if(k.isValidElement(r)){const d={ref:u};return k.cloneElement(r,d)}return r}return s&&s0.createPortal(r,s)});function eG(e){return it("MuiPopper",e)}ut("MuiPopper",["root"]);function tG(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 Sx(e){return typeof e=="function"?e():e}function nG(e){return e.nodeType!==void 0}const rG=e=>{const{classes:t}=e;return st({root:["root"]},eG,t)},oG={},aG=k.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:a,disablePortal:s,modifiers:c,open:u,placement:d,popperOptions:p,popperRef:h,slotProps:g={},slots:y={},TransitionProps:b,ownerState:x,...S}=t,T=k.useRef(null),D=Jn(T,n),w=k.useRef(null),R=Jn(w,h),I=k.useRef(R);Wo(()=>{I.current=R},[R]),k.useImperativeHandle(h,()=>w.current,[]);const O=tG(d,a),[F,j]=k.useState(O),[H,C]=k.useState(Sx(r));k.useEffect(()=>{w.current&&w.current.forceUpdate()}),k.useEffect(()=>{r&&C(Sx(r))},[r]),Wo(()=>{if(!H||!u)return;const Y=ae=>{j(ae.placement)};let B=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:ae})=>{Y(ae)}}];c!=null&&(B=B.concat(c)),p&&p.modifiers!=null&&(B=B.concat(p.modifiers));const X=ZV(H,T.current,{placement:O,...p,modifiers:B});return I.current(X),()=>{X.destroy(),I.current(null)}},[H,s,c,u,p,O]);const M={placement:F};b!==null&&(M.TransitionProps=b);const $=rG(t),z=y.root??"div",q=Jl({elementType:z,externalSlotProps:g.root,externalForwardedProps:S,additionalProps:{role:"tooltip",ref:D},ownerState:t,className:$.root});return v.jsx(z,{...q,children:typeof o=="function"?o(M):o})}),iG=k.forwardRef(function(t,n){const{anchorEl:r,children:o,container:a,direction:s="ltr",disablePortal:c=!1,keepMounted:u=!1,modifiers:d,open:p,placement:h="bottom",popperOptions:g=oG,popperRef:y,style:b,transition:x=!1,slotProps:S={},slots:T={},...D}=t,[w,R]=k.useState(!0),I=()=>{R(!1)},O=()=>{R(!0)};if(!u&&!p&&(!x||w))return null;let F;if(a)F=a;else if(r){const C=Sx(r);F=C&&nG(C)?ko(C).body:ko(null).body}const j=!p&&u&&(!x||w)?"none":void 0,H=x?{in:p,onEnter:I,onExited:O}:void 0;return v.jsx(h5,{disablePortal:c,container:F,children:v.jsx(aG,{anchorEl:r,direction:s,disablePortal:c,modifiers:d,ref:n,open:x?!w:p,placement:h,popperOptions:g,popperRef:y,slotProps:S,slots:T,...D,style:{position:"fixed",top:0,left:0,display:j,...b},TransitionProps:H,children:o})})}),sG=ke(iG,{name:"MuiPopper",slot:"Root"})({}),m5=k.forwardRef(function(t,n){const r=Ch(),o=dt({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:c,componentsProps:u,container:d,disablePortal:p,keepMounted:h,modifiers:g,open:y,placement:b,popperOptions:x,popperRef:S,transition:T,slots:D,slotProps:w,...R}=o,I=D?.root??c?.Root,O={anchorEl:a,container:d,disablePortal:p,keepMounted:h,modifiers:g,open:y,placement:b,popperOptions:x,popperRef:S,transition:T,...R};return v.jsx(sG,{as:s,direction:r?"rtl":"ltr",slots:{root:I},slotProps:w??u,...O,ref:n})}),lG=vi(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 cG(e){return it("MuiChip",e)}const Yt=ut("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"]),uG=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:a,onDelete:s,clickable:c,variant:u}=e,d={root:["root",u,n&&"disabled",`size${Ne(r)}`,`color${Ne(o)}`,c&&"clickable",c&&`clickableColor${Ne(o)}`,s&&"deletable",s&&`deletableColor${Ne(o)}`,`${u}${Ne(o)}`],label:["label",`label${Ne(r)}`],avatar:["avatar",`avatar${Ne(r)}`,`avatarColor${Ne(o)}`],icon:["icon",`icon${Ne(r)}`,`iconColor${Ne(a)}`],deleteIcon:["deleteIcon",`deleteIcon${Ne(r)}`,`deleteIconColor${Ne(o)}`,`deleteIcon${Ne(u)}Color${Ne(o)}`]};return st(d,cG,t)},dG=ke("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:a,onDelete:s,size:c,variant:u}=n;return[{[`& .${Yt.avatar}`]:t.avatar},{[`& .${Yt.avatar}`]:t[`avatar${Ne(c)}`]},{[`& .${Yt.avatar}`]:t[`avatarColor${Ne(r)}`]},{[`& .${Yt.icon}`]:t.icon},{[`& .${Yt.icon}`]:t[`icon${Ne(c)}`]},{[`& .${Yt.icon}`]:t[`iconColor${Ne(o)}`]},{[`& .${Yt.deleteIcon}`]:t.deleteIcon},{[`& .${Yt.deleteIcon}`]:t[`deleteIcon${Ne(c)}`]},{[`& .${Yt.deleteIcon}`]:t[`deleteIconColor${Ne(r)}`]},{[`& .${Yt.deleteIcon}`]:t[`deleteIcon${Ne(u)}Color${Ne(r)}`]},t.root,t[`size${Ne(c)}`],t[`color${Ne(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${Ne(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${Ne(r)}`],t[u],t[`${u}${Ne(r)}`]]}})(St(({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,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.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Dt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Dt(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(so(["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.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:Dt(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.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Dt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(so(["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.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Dt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Yt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Dt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(so(["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(so()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:Dt(e.palette[n].main,.7)}`,[`&.${Yt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Dt(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${Yt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Dt(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${Yt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:Dt(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),fG=ke("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Ne(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 _D(e){return e.key==="Backspace"||e.key==="Delete"}const Gl=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiChip"}),{avatar:o,className:a,clickable:s,color:c="default",component:u,deleteIcon:d,disabled:p=!1,icon:h,label:g,onClick:y,onDelete:b,onKeyDown:x,onKeyUp:S,size:T="medium",variant:D="filled",tabIndex:w,skipFocusWhenDisabled:R=!1,slots:I={},slotProps:O={},...F}=r,j=k.useRef(null),H=Jn(j,n),C=re=>{re.stopPropagation(),b&&b(re)},M=re=>{re.currentTarget===re.target&&_D(re)&&re.preventDefault(),x&&x(re)},$=re=>{re.currentTarget===re.target&&b&&_D(re)&&b(re),S&&S(re)},z=s!==!1&&y?!0:s,q=z||b?mi:u||"div",Y={...r,component:q,disabled:p,size:T,color:c,iconColor:k.isValidElement(h)&&h.props.color||c,onDelete:!!b,clickable:z,variant:D},B=uG(Y),X=q===mi?{component:u||"div",focusVisibleClassName:B.focusVisible,...b&&{disableRipple:!0}}:{};let ae=null;b&&(ae=d&&k.isValidElement(d)?k.cloneElement(d,{className:qe(d.props.className,B.deleteIcon),onClick:C}):v.jsx(lG,{className:B.deleteIcon,onClick:C}));let te=null;o&&k.isValidElement(o)&&(te=k.cloneElement(o,{className:qe(B.avatar,o.props.className)}));let N=null;h&&k.isValidElement(h)&&(N=k.cloneElement(h,{className:qe(B.icon,h.props.className)}));const oe={slots:I,slotProps:O},[K,P]=Ft("root",{elementType:dG,externalForwardedProps:{...oe,...F},ownerState:Y,shouldForwardComponentProp:!0,ref:H,className:qe(B.root,a),additionalProps:{disabled:z&&p?!0:void 0,tabIndex:R&&p?-1:w,...X},getSlotProps:re=>({...re,onClick:be=>{re.onClick?.(be),y(be)},onKeyDown:be=>{re.onKeyDown?.(be),M(be)},onKeyUp:be=>{re.onKeyUp?.(be),$(be)}})}),[ee,ce]=Ft("label",{elementType:fG,externalForwardedProps:oe,ownerState:Y,className:B.label});return v.jsxs(K,{as:q,...P,children:[te||N,v.jsx(ee,{...ce,children:g}),ae]})});function cg(e){return parseInt(e,10)||0}const pG={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function hG(e){for(const t in e)return!1;return!0}function AD(e){return hG(e)||e.outerHeightStyle===0&&!e.overflowing}const mG=k.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:a=1,style:s,value:c,...u}=t,{current:d}=k.useRef(c!=null),p=k.useRef(null),h=Jn(n,p),g=k.useRef(null),y=k.useRef(null),b=k.useCallback(()=>{const w=p.current,R=y.current;if(!w||!R)return;const O=Ua(w).getComputedStyle(w);if(O.width==="0px")return{outerHeightStyle:0,overflowing:!1};R.style.width=O.width,R.value=w.value||t.placeholder||"x",R.value.slice(-1)===`
|
|
221
|
+
`&&(R.value+=" ");const F=O.boxSizing,j=cg(O.paddingBottom)+cg(O.paddingTop),H=cg(O.borderBottomWidth)+cg(O.borderTopWidth),C=R.scrollHeight;R.value="x";const M=R.scrollHeight;let $=C;a&&($=Math.max(Number(a)*M,$)),o&&($=Math.min(Number(o)*M,$)),$=Math.max($,M);const z=$+(F==="border-box"?j+H:0),q=Math.abs($-C)<=1;return{outerHeightStyle:z,overflowing:q}},[o,a,t.placeholder]),x=va(()=>{const w=p.current,R=b();if(!w||!R||AD(R))return!1;const I=R.outerHeightStyle;return g.current!=null&&g.current!==I}),S=k.useCallback(()=>{const w=p.current,R=b();if(!w||!R||AD(R))return;const I=R.outerHeightStyle;g.current!==I&&(g.current=I,w.style.height=`${I}px`),w.style.overflow=R.overflowing?"hidden":""},[b]),T=k.useRef(-1);Wo(()=>{const w=S0(S),R=p?.current;if(!R)return;const I=Ua(R);I.addEventListener("resize",w);let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(()=>{x()&&(O.unobserve(R),cancelAnimationFrame(T.current),S(),T.current=requestAnimationFrame(()=>{O.observe(R)}))}),O.observe(R)),()=>{w.clear(),cancelAnimationFrame(T.current),I.removeEventListener("resize",w),O&&O.disconnect()}},[b,S,x]),Wo(()=>{S()});const D=w=>{d||S();const R=w.target,I=R.value.length,O=R.value.endsWith(`
|
|
222
|
+
`),F=R.selectionStart===I;O&&F&&R.setSelectionRange(I,I),r&&r(w)};return v.jsxs(k.Fragment,{children:[v.jsx("textarea",{value:c,onChange:D,ref:h,rows:a,style:s,...u}),v.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:y,tabIndex:-1,style:{...pG.shadow,...s,paddingTop:0,paddingBottom:0}})]})});function zp(e){return typeof e=="string"}function mc({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 _S=k.createContext(void 0);function ol(){return k.useContext(_S)}function kD(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Ey(e,t=!1){return e&&(kD(e.value)&&e.value!==""||t&&kD(e.defaultValue)&&e.defaultValue!=="")}function gG(e){return e.startAdornment}function yG(e){return it("MuiInputBase",e)}const qu=ut("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var wD;const A0=(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${Ne(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},k0=(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]},bG=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:s,formControl:c,fullWidth:u,hiddenLabel:d,multiline:p,readOnly:h,size:g,startAdornment:y,type:b}=e,x={root:["root",`color${Ne(n)}`,r&&"disabled",o&&"error",u&&"fullWidth",s&&"focused",c&&"formControl",g&&g!=="medium"&&`size${Ne(g)}`,p&&"multiline",y&&"adornedStart",a&&"adornedEnd",d&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",p&&"inputMultiline",g==="small"&&"inputSizeSmall",d&&"inputHiddenLabel",y&&"inputAdornedStart",a&&"inputAdornedEnd",h&&"readOnly"]};return st(x,yG,t)},w0=ke("div",{name:"MuiInputBase",slot:"Root",overridesResolver:A0})(St(({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",[`&.${qu.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%"}}]}))),D0=ke("input",{name:"MuiInputBase",slot:"Input",overridesResolver:k0})(St(({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] + .${qu.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},[`&.${qu.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"}}]}})),DD=hS({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),AS=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:s,className:c,color:u,components:d={},componentsProps:p={},defaultValue:h,disabled:g,disableInjectingGlobalStyles:y,endAdornment:b,error:x,fullWidth:S=!1,id:T,inputComponent:D="input",inputProps:w={},inputRef:R,margin:I,maxRows:O,minRows:F,multiline:j=!1,name:H,onBlur:C,onChange:M,onClick:$,onFocus:z,onKeyDown:q,onKeyUp:Y,placeholder:B,readOnly:X,renderSuffix:ae,rows:te,size:N,slotProps:oe={},slots:K={},startAdornment:P,type:ee="text",value:ce,...re}=r,be=w.value!=null?w.value:ce,{current:ye}=k.useRef(be!=null),Ge=k.useRef(),Me=k.useCallback(Je=>{},[]),Oe=Jn(Ge,R,w.ref,Me),[Qe,nt]=k.useState(!1),Re=ol(),gt=mc({props:r,muiFormControl:Re,states:["color","disabled","error","hiddenLabel","size","required","filled"]});gt.focused=Re?Re.focused:Qe,k.useEffect(()=>{!Re&&g&&Qe&&(nt(!1),C&&C())},[Re,g,Qe,C]);const _t=Re&&Re.onFilled,je=Re&&Re.onEmpty,mt=k.useCallback(Je=>{Ey(Je)?_t&&_t():je&&je()},[_t,je]);Wo(()=>{ye&&mt({value:be})},[be,mt,ye]);const lt=Je=>{z&&z(Je),w.onFocus&&w.onFocus(Je),Re&&Re.onFocus?Re.onFocus(Je):nt(!0)},ft=Je=>{C&&C(Je),w.onBlur&&w.onBlur(Je),Re&&Re.onBlur?Re.onBlur(Je):nt(!1)},Ue=(Je,...en)=>{if(!ye){const zt=Je.target||Ge.current;if(zt==null)throw new Error(ts(1));mt({value:zt.value})}w.onChange&&w.onChange(Je,...en),M&&M(Je,...en)};k.useEffect(()=>{mt(Ge.current)},[]);const Le=Je=>{Ge.current&&Je.currentTarget===Je.target&&Ge.current.focus(),$&&$(Je)};let Jt=D,jt=w;j&&Jt==="input"&&(te?jt={type:void 0,minRows:te,maxRows:te,...jt}:jt={type:void 0,maxRows:O,minRows:F,...jt},Jt=mG);const At=Je=>{mt(Je.animationName==="mui-auto-fill-cancel"?Ge.current:{value:"x"})};k.useEffect(()=>{Re&&Re.setAdornedStart(!!P)},[Re,P]);const de={...r,color:gt.color||"primary",disabled:gt.disabled,endAdornment:b,error:gt.error,focused:gt.focused,formControl:Re,fullWidth:S,hiddenLabel:gt.hiddenLabel,multiline:j,size:gt.size,startAdornment:P,type:ee},ge=bG(de),ze=K.root||d.Root||w0,Xe=oe.root||p.root||{},Et=K.input||d.Input||D0;return jt={...jt,...oe.input??p.input},v.jsxs(k.Fragment,{children:[!y&&typeof DD=="function"&&(wD||(wD=v.jsx(DD,{}))),v.jsxs(ze,{...Xe,ref:n,onClick:Le,...re,...!zp(ze)&&{ownerState:{...de,...Xe.ownerState}},className:qe(ge.root,Xe.className,c,X&&"MuiInputBase-readOnly"),children:[P,v.jsx(_S.Provider,{value:null,children:v.jsx(Et,{"aria-invalid":gt.error,"aria-describedby":o,autoComplete:a,autoFocus:s,defaultValue:h,disabled:gt.disabled,id:T,onAnimationStart:At,name:H,placeholder:B,readOnly:X,required:gt.required,rows:te,value:be,onKeyDown:q,onKeyUp:Y,type:ee,...jt,...!zp(Et)&&{as:Jt,ownerState:{...de,...jt.ownerState}},ref:Oe,className:qe(ge.input,jt.className,X&&"MuiInputBase-readOnly"),onBlur:ft,onChange:Ue,onFocus:lt})}),b,ae?ae({...gt,startAdornment:P}):null]})]})});function vG(e){return it("MuiInput",e)}const Rf={...qu,...ut("MuiInput",["root","underline","input"])};function EG(e){return it("MuiOutlinedInput",e)}const Ja={...qu,...ut("MuiOutlinedInput",["root","notchedOutline","input"])};function xG(e){return it("MuiFilledInput",e)}const Cl={...qu,...ut("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},TG=vi(v.jsx("path",{d:"M7 10l5 5 5-5z"})),SG={entering:{opacity:1},entered:{opacity:1}},Cx=k.forwardRef(function(t,n){const r=nl(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:c,easing:u,in:d,onEnter:p,onEntered:h,onEntering:g,onExit:y,onExited:b,onExiting:x,style:S,timeout:T=o,TransitionComponent:D=Va,...w}=t,R=k.useRef(null),I=Jn(R,sd(c),n),O=q=>Y=>{if(q){const B=R.current;Y===void 0?q(B):q(B,Y)}},F=O(g),j=O((q,Y)=>{e5(q);const B=Hu({style:S,timeout:T,easing:u},{mode:"enter"});q.style.webkitTransition=r.transitions.create("opacity",B),q.style.transition=r.transitions.create("opacity",B),p&&p(q,Y)}),H=O(h),C=O(x),M=O(q=>{const Y=Hu({style:S,timeout:T,easing:u},{mode:"exit"});q.style.webkitTransition=r.transitions.create("opacity",Y),q.style.transition=r.transitions.create("opacity",Y),y&&y(q)}),$=O(b),z=q=>{a&&a(R.current,q)};return v.jsx(D,{appear:s,in:d,nodeRef:R,onEnter:j,onEntered:H,onEntering:F,onExit:M,onExited:$,onExiting:C,addEndListener:z,timeout:T,...w,children:(q,{ownerState:Y,...B})=>k.cloneElement(c,{style:{opacity:0,visibility:q==="exited"&&!d?"hidden":void 0,...SG[q],...S,...c.props.style},ref:I,...B})})});function CG(e){return it("MuiBackdrop",e)}ut("MuiBackdrop",["root","invisible"]);const _G=e=>{const{classes:t,invisible:n}=e;return st({root:["root",n&&"invisible"]},CG,t)},AG=ke("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"}}]}),g5=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiBackdrop"}),{children:o,className:a,component:s="div",invisible:c=!1,open:u,components:d={},componentsProps:p={},slotProps:h={},slots:g={},TransitionComponent:y,transitionDuration:b,...x}=r,S={...r,component:s,invisible:c},T=_G(S),D={transition:y,root:d.Root,...g},w={...p,...h},R={slots:D,slotProps:w},[I,O]=Ft("root",{elementType:AG,externalForwardedProps:R,className:qe(T.root,a),ownerState:S}),[F,j]=Ft("transition",{elementType:Cx,externalForwardedProps:R,ownerState:S});return v.jsx(F,{in:u,timeout:b,...x,...j,children:v.jsx(I,{"aria-hidden":!0,...O,classes:T,ref:n,children:o})})}),kG=ut("MuiBox",["root"]),wG=T0(),It=R3({themeId:pi,defaultTheme:wG,defaultClassName:kG.root,generateClassName:oS.generate}),DG=vi(v.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),RG=ke(mi)(St(({theme:e})=>({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`,...e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}},"&:active":{boxShadow:e.shadows[0],...e.palette.mode==="light"?{backgroundColor:dx(e.palette.grey[200],.12)}:{backgroundColor:dx(e.palette.grey[600],.12)}}}))),IG=ke(DG)({width:24,height:16});function OG(e){const{slots:t={},slotProps:n={},...r}=e,o=e;return v.jsx("li",{children:v.jsx(RG,{focusRipple:!0,...r,ownerState:o,children:v.jsx(IG,{as:t.CollapsedIcon,ownerState:o,...n.collapsedIcon})})})}function NG(e){return it("MuiBreadcrumbs",e)}const PG=ut("MuiBreadcrumbs",["root","ol","li","separator"]),LG=e=>{const{classes:t}=e;return st({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},NG,t)},MG=ke(He,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${PG.li}`]:t.li},t.root]})({}),FG=ke("ol",{name:"MuiBreadcrumbs",slot:"Ol"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),BG=ke("li",{name:"MuiBreadcrumbs",slot:"Separator"})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function jG(e,t,n,r){return e.reduce((o,a,s)=>(s<e.length-1?o=o.concat(a,v.jsx(BG,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${s}`)):o.push(a),o),[])}const UG=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiBreadcrumbs"}),{children:o,className:a,component:s="nav",slots:c={},slotProps:u={},expandText:d="Show path",itemsAfterCollapse:p=1,itemsBeforeCollapse:h=1,maxItems:g=8,separator:y="/",...b}=r,[x,S]=k.useState(!1),T={...r,component:s,expanded:x,expandText:d,itemsAfterCollapse:p,itemsBeforeCollapse:h,maxItems:g,separator:y},D=LG(T),w=Jl({elementType:c.CollapsedIcon,externalSlotProps:u.collapsedIcon,ownerState:T}),R=k.useRef(null),I=F=>{const j=()=>{S(!0);const H=R.current.querySelector("a[href],button,[tabindex]");H&&H.focus()};return h+p>=F.length?F:[...F.slice(0,h),v.jsx(OG,{"aria-label":d,slots:{CollapsedIcon:c.CollapsedIcon},slotProps:{collapsedIcon:w},onClick:j},"ellipsis"),...F.slice(F.length-p,F.length)]},O=k.Children.toArray(o).filter(F=>k.isValidElement(F)).map((F,j)=>v.jsx("li",{className:D.li,children:F},`child-${j}`));return v.jsx(MG,{ref:n,component:s,color:"textSecondary",className:qe(D.root,a),ownerState:T,...b,children:v.jsx(FG,{className:D.ol,ref:R,ownerState:T,children:jG(x||g&&O.length<=g?O:I(O),D.separator,y,T)})})});function HG(e){return it("MuiButton",e)}const _l=ut("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"]),zG=k.createContext({}),$G=k.createContext(void 0),VG=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,loading:s,loadingPosition:c,classes:u}=e,d={root:["root",s&&"loading",a,`${a}${Ne(t)}`,`size${Ne(o)}`,`${a}Size${Ne(o)}`,`color${Ne(t)}`,n&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${Ne(c)}`],startIcon:["icon","startIcon",`iconSize${Ne(o)}`],endIcon:["icon","endIcon",`iconSize${Ne(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},p=st(d,HG,u);return{...u,...p}},y5=[{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}}}],GG=ke(mi,{shouldForwardProp:e=>co(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Ne(n.color)}`],t[`size${Ne(n.size)}`],t[`${n.variant}Size${Ne(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(St(({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"},[`&.${_l.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]},[`&.${_l.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${_l.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)",[`&.${_l.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(so()).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.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.5)`:Dt(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.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Dt(e.palette[r].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Dt(e.palette[r].main,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.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Dt(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Dt(e.palette.text.primary,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"},[`&.${_l.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${_l.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}),[`&.${_l.loading}`]:{color:"transparent"}}}]}})),qG=ke("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${Ne(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}},...y5]})),WG=ke("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${Ne(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}},...y5]})),YG=ke("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}}]})),RD=ke("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Hr=k.forwardRef(function(t,n){const r=k.useContext(zG),o=k.useContext($G),a=Bp(r,t),s=dt({props:a,name:"MuiButton"}),{children:c,color:u="primary",component:d="button",className:p,disabled:h=!1,disableElevation:g=!1,disableFocusRipple:y=!1,endIcon:b,focusVisibleClassName:x,fullWidth:S=!1,id:T,loading:D=null,loadingIndicator:w,loadingPosition:R="center",size:I="medium",startIcon:O,type:F,variant:j="text",...H}=s,C=id(T),M=w??v.jsx(yS,{"aria-labelledby":C,color:"inherit",size:16}),$={...s,color:u,component:d,disabled:h,disableElevation:g,disableFocusRipple:y,fullWidth:S,loading:D,loadingIndicator:M,loadingPosition:R,size:I,type:F,variant:j},z=VG($),q=(O||D&&R==="start")&&v.jsx(qG,{className:z.startIcon,ownerState:$,children:O||v.jsx(RD,{className:z.loadingIconPlaceholder,ownerState:$})}),Y=(b||D&&R==="end")&&v.jsx(WG,{className:z.endIcon,ownerState:$,children:b||v.jsx(RD,{className:z.loadingIconPlaceholder,ownerState:$})}),B=o||"",X=typeof D=="boolean"?v.jsx("span",{className:z.loadingWrapper,style:{display:"contents"},children:D&&v.jsx(YG,{className:z.loadingIndicator,ownerState:$,children:M})}):null;return v.jsxs(GG,{ownerState:$,className:qe(r.className,z.root,p,B),component:d,disabled:h||D,focusRipple:!y,focusVisibleClassName:qe(z.focusVisible,x),ref:n,type:F,id:D?C:T,...H,classes:z,children:[q,R!=="end"&&X,c,R==="end"&&X,Y]})});function KG(e){return it("MuiCard",e)}ut("MuiCard",["root"]);const QG=e=>{const{classes:t}=e;return st({root:["root"]},KG,t)},XG=ke(Zs,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),xu=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiCard"}),{className:o,raised:a=!1,...s}=r,c={...r,raised:a},u=QG(c);return v.jsx(XG,{className:qe(u.root,o),elevation:a?8:void 0,ref:n,ownerState:c,...s})});function ZG(e){return it("MuiCardActions",e)}ut("MuiCardActions",["root","spacing"]);const JG=e=>{const{classes:t,disableSpacing:n}=e;return st({root:["root",!n&&"spacing"]},ZG,t)},eq=ke("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,variants:[{props:{disableSpacing:!1},style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),R0=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiCardActions"}),{disableSpacing:o=!1,className:a,...s}=r,c={...r,disableSpacing:o},u=JG(c);return v.jsx(eq,{className:qe(u.root,a),ownerState:c,ref:n,...s})});function tq(e){return it("MuiCardContent",e)}ut("MuiCardContent",["root"]);const nq=e=>{const{classes:t}=e;return st({root:["root"]},tq,t)},rq=ke("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),Tu=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiCardContent"}),{className:o,component:a="div",...s}=r,c={...r,component:a},u=nq(c);return v.jsx(rq,{as:a,className:qe(u.root,o),ownerState:c,ref:n,...s})});function oq(e){return it("MuiCardMedia",e)}ut("MuiCardMedia",["root","media","img"]);const aq=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return st({root:["root",n&&"media",r&&"img"]},oq,t)},iq=ke("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"}}]}),sq=["video","audio","picture","iframe","img"],lq=["picture","img"],cq=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiCardMedia"}),{children:o,className:a,component:s="div",image:c,src:u,style:d,...p}=r,h=sq.includes(s),g=!h&&c?{backgroundImage:`url("${c}")`,...d}:d,y={...r,component:s,isMediaComponent:h,isImageComponent:lq.includes(s)},b=aq(y);return v.jsx(iq,{className:qe(b.root,a),as:s,role:!h&&c?"img":void 0,ref:n,style:g,ownerState:y,src:h?c||u:void 0,...p,children:o})});function uq(e){return it("PrivateSwitchBase",e)}ut("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const dq=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,a={root:["root",n&&"checked",r&&"disabled",o&&`edge${Ne(o)}`],input:["input"]};return st(a,uq,t)},fq=ke(mi)({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}}]}),pq=ke("input",{shouldForwardProp:co})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),hq=k.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:a,defaultChecked:s,disabled:c,disableFocusRipple:u=!1,edge:d=!1,icon:p,id:h,inputProps:g,inputRef:y,name:b,onBlur:x,onChange:S,onFocus:T,readOnly:D,required:w=!1,tabIndex:R,type:I,value:O,slots:F={},slotProps:j={},...H}=t,[C,M]=my({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),$=ol(),z=ce=>{T&&T(ce),$&&$.onFocus&&$.onFocus(ce)},q=ce=>{x&&x(ce),$&&$.onBlur&&$.onBlur(ce)},Y=ce=>{if(ce.nativeEvent.defaultPrevented)return;const re=ce.target.checked;M(re),S&&S(ce,re)};let B=c;$&&typeof B>"u"&&(B=$.disabled);const X=I==="checkbox"||I==="radio",ae={...t,checked:C,disabled:B,disableFocusRipple:u,edge:d},te=dq(ae),N={slots:F,slotProps:{input:g,...j}},[oe,K]=Ft("root",{ref:n,elementType:fq,className:te.root,shouldForwardComponentProp:!0,externalForwardedProps:{...N,component:"span",...H},getSlotProps:ce=>({...ce,onFocus:re=>{ce.onFocus?.(re),z(re)},onBlur:re=>{ce.onBlur?.(re),q(re)}}),ownerState:ae,additionalProps:{centerRipple:!0,focusRipple:!u,disabled:B,role:void 0,tabIndex:null}}),[P,ee]=Ft("input",{ref:y,elementType:pq,className:te.input,externalForwardedProps:N,getSlotProps:ce=>({...ce,onChange:re=>{ce.onChange?.(re),Y(re)}}),ownerState:ae,additionalProps:{autoFocus:r,checked:o,defaultChecked:s,disabled:B,id:X?h:void 0,name:b,readOnly:D,required:w,tabIndex:R,type:I,...I==="checkbox"&&O===void 0?{}:{value:O}}});return v.jsxs(oe,{...K,children:[v.jsx(P,{...ee}),C?a:p]})}),kS=MH({createStyledComponent:ke("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Ne(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>dt({props:e,name:"MuiContainer"})}),_x=typeof hS({})=="function",mq=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),gq=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}}),b5=(e,t=!1)=>{const n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([a,s])=>{const c=e.getColorSchemeSelector(a);c.startsWith("@")?n[c]={":root":{colorScheme:s.palette?.mode}}:n[c.replace(/\s*&/,"")]={colorScheme:s.palette?.mode}});let r={html:mq(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...gq(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const o=e.components?.MuiCssBaseline?.styleOverrides;return o&&(r=[r,o]),r},Hg="mui-ecs",yq=e=>{const t=b5(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${Hg})`]={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(.${Hg}))`]:{colorScheme:o.palette?.mode}}:n[a.replace(/\s*&/,"")]={[`&:not(:has(.${Hg}))`]:{colorScheme:o.palette?.mode}}}),t},bq=hS(_x?({theme:e,enableColorScheme:t})=>b5(e,t):({theme:e})=>yq(e));function vq(e){const t=dt({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return v.jsxs(k.Fragment,{children:[_x&&v.jsx(bq,{enableColorScheme:r}),!_x&&!r&&v.jsx("span",{className:Hg,style:{display:"none"}}),n]})}function v5(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Eq(e){const t=ko(e);return t.body===e?Ua(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function pp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ID(e){return parseInt(Ua(e).getComputedStyle(e).paddingRight,10)||0}function xq(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 OD(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,s=>{const c=!a.includes(s),u=!xq(s);c&&u&&pp(s,o)})}function Y1(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function Tq(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Eq(r)){const s=v5(Ua(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${ID(r)+s}px`;const c=ko(r).querySelectorAll(".mui-fixed");[].forEach.call(c,u=>{n.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${ID(u)+s}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=ko(r).body;else{const s=r.parentElement,c=Ua(r);a=s?.nodeName==="HTML"&&c.getComputedStyle(s).overflowY==="scroll"?s: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:s,property:c})=>{a?s.style.setProperty(c,a):s.style.removeProperty(c)})}}function Sq(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Cq{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&&pp(t.modalRef,!1);const o=Sq(n);OD(n,t.mount,t.modalRef,o,!0);const a=Y1(this.containers,s=>s.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=Y1(this.containers,a=>a.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=Tq(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Y1(this.containers,s=>s.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&&pp(t.modalRef,n),OD(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&pp(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const _q=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Aq(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 kq(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 wq(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||kq(e))}function Dq(e){const t=[],n=[];return Array.from(e.querySelectorAll(_q)).forEach((r,o)=>{const a=Aq(r);a===-1||!wq(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 Rq(){return!0}function Iq(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=Dq,isEnabled:s=Rq,open:c}=e,u=k.useRef(!1),d=k.useRef(null),p=k.useRef(null),h=k.useRef(null),g=k.useRef(null),y=k.useRef(!1),b=k.useRef(null),x=Jn(sd(t),b),S=k.useRef(null);k.useEffect(()=>{!c||!b.current||(y.current=!n)},[n,c]),k.useEffect(()=>{if(!c||!b.current)return;const w=ko(b.current);return b.current.contains(w.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),y.current&&b.current.focus()),()=>{o||(h.current&&h.current.focus&&(u.current=!0,h.current.focus()),h.current=null)}},[c]),k.useEffect(()=>{if(!c||!b.current)return;const w=ko(b.current),R=F=>{S.current=F,!(r||!s()||F.key!=="Tab")&&w.activeElement===b.current&&F.shiftKey&&(u.current=!0,p.current&&p.current.focus())},I=()=>{const F=b.current;if(F===null)return;if(!w.hasFocus()||!s()||u.current){u.current=!1;return}if(F.contains(w.activeElement)||r&&w.activeElement!==d.current&&w.activeElement!==p.current)return;if(w.activeElement!==g.current)g.current=null;else if(g.current!==null)return;if(!y.current)return;let j=[];if((w.activeElement===d.current||w.activeElement===p.current)&&(j=a(b.current)),j.length>0){const H=!!(S.current?.shiftKey&&S.current?.key==="Tab"),C=j[0],M=j[j.length-1];typeof C!="string"&&typeof M!="string"&&(H?M.focus():C.focus())}else F.focus()};w.addEventListener("focusin",I),w.addEventListener("keydown",R,!0);const O=setInterval(()=>{w.activeElement&&w.activeElement.tagName==="BODY"&&I()},50);return()=>{clearInterval(O),w.removeEventListener("focusin",I),w.removeEventListener("keydown",R,!0)}},[n,r,o,s,c,a]);const T=w=>{h.current===null&&(h.current=w.relatedTarget),y.current=!0,g.current=w.target;const R=t.props.onFocus;R&&R(w)},D=w=>{h.current===null&&(h.current=w.relatedTarget),y.current=!0};return v.jsxs(k.Fragment,{children:[v.jsx("div",{tabIndex:c?0:-1,onFocus:D,ref:d,"data-testid":"sentinelStart"}),k.cloneElement(t,{ref:x,onFocus:T}),v.jsx("div",{tabIndex:c?0:-1,onFocus:D,ref:p,"data-testid":"sentinelEnd"})]})}function Oq(e){return typeof e=="function"?e():e}function Nq(e){return e?e.props.hasOwnProperty("in"):!1}const ND=()=>{},ug=new Cq;function Pq(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:c,onClose:u,open:d,rootRef:p}=e,h=k.useRef({}),g=k.useRef(null),y=k.useRef(null),b=Jn(y,p),[x,S]=k.useState(!d),T=Nq(c);let D=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(D=!1);const w=()=>ko(g.current),R=()=>(h.current.modalRef=y.current,h.current.mount=g.current,h.current),I=()=>{ug.mount(R(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},O=va(()=>{const Y=Oq(t)||w().body;ug.add(R(),Y),y.current&&I()}),F=()=>ug.isTopModal(R()),j=va(Y=>{g.current=Y,Y&&(d&&F()?I():y.current&&pp(y.current,D))}),H=k.useCallback(()=>{ug.remove(R(),D)},[D]);k.useEffect(()=>()=>{H()},[H]),k.useEffect(()=>{d?O():(!T||!o)&&H()},[d,H,T,o,O]);const C=Y=>B=>{Y.onKeyDown?.(B),!(B.key!=="Escape"||B.which===229||!F())&&(n||(B.stopPropagation(),u&&u(B,"escapeKeyDown")))},M=Y=>B=>{Y.onClick?.(B),B.target===B.currentTarget&&u&&u(B,"backdropClick")};return{getRootProps:(Y={})=>{const B=r5(e);delete B.onTransitionEnter,delete B.onTransitionExited;const X={...B,...Y};return{role:"presentation",...X,onKeyDown:C(X),ref:b}},getBackdropProps:(Y={})=>{const B=Y;return{"aria-hidden":!0,...B,onClick:M(B),open:d}},getTransitionProps:()=>{const Y=()=>{S(!1),a&&a()},B=()=>{S(!0),s&&s(),o&&H()};return{onEnter:aD(Y,c?.props.onEnter??ND),onExited:aD(B,c?.props.onExited??ND)}},rootRef:b,portalRef:j,isTopModal:F,exited:x,hasTransition:T}}function Lq(e){return it("MuiModal",e)}ut("MuiModal",["root","hidden","backdrop"]);const Mq=e=>{const{open:t,exited:n,classes:r}=e;return st({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Lq,r)},Fq=ke("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(St(({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"}}]}))),Bq=ke(g5,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),E5=k.forwardRef(function(t,n){const r=dt({name:"MuiModal",props:t}),{BackdropComponent:o=Bq,BackdropProps:a,classes:s,className:c,closeAfterTransition:u=!1,children:d,container:p,component:h,components:g={},componentsProps:y={},disableAutoFocus:b=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:T=!1,disableRestoreFocus:D=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:I=!1,onClose:O,onTransitionEnter:F,onTransitionExited:j,open:H,slotProps:C={},slots:M={},theme:$,...z}=r,q={...r,closeAfterTransition:u,disableAutoFocus:b,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:T,disableRestoreFocus:D,disableScrollLock:w,hideBackdrop:R,keepMounted:I},{getRootProps:Y,getBackdropProps:B,getTransitionProps:X,portalRef:ae,isTopModal:te,exited:N,hasTransition:oe}=Pq({...q,rootRef:n}),K={...q,exited:N},P=Mq(K),ee={};if(d.props.tabIndex===void 0&&(ee.tabIndex="-1"),oe){const{onEnter:Me,onExited:Oe}=X();ee.onEnter=Me,ee.onExited=Oe}const ce={slots:{root:g.Root,backdrop:g.Backdrop,...M},slotProps:{...y,...C}},[re,be]=Ft("root",{ref:n,elementType:Fq,externalForwardedProps:{...ce,...z,component:h},getSlotProps:Y,ownerState:K,className:qe(c,P?.root,!K.open&&K.exited&&P?.hidden)}),[ye,Ge]=Ft("backdrop",{ref:a?.ref,elementType:o,externalForwardedProps:ce,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:Me=>B({...Me,onClick:Oe=>{Me?.onClick&&Me.onClick(Oe)}}),className:qe(a?.className,P?.backdrop),ownerState:K});return!I&&!H&&(!oe||N)?null:v.jsx(h5,{ref:ae,container:p,disablePortal:T,children:v.jsxs(re,{...be,children:[!R&&o?v.jsx(ye,{...Ge}):null,v.jsx(Iq,{disableEnforceFocus:x,disableAutoFocus:b,disableRestoreFocus:D,isEnabled:te,open:H,children:k.cloneElement(d,ee)})]})})});function jq(e){return it("MuiDialog",e)}const K1=ut("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),x5=k.createContext({}),Uq=ke(g5,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Hq=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:a}=e,s={root:["root"],container:["container",`scroll${Ne(n)}`],paper:["paper",`paperScroll${Ne(n)}`,`paperWidth${Ne(String(r))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return st(s,jq,t)},zq=ke(E5,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),$q=ke("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Ne(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"}}}]}),Vq=ke(Zs,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Ne(n.scroll)}`],t[`paperWidth${Ne(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(St(({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)`,[`&.${K1.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{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}`,[`&.${K1.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+32*2)]:{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,[`&.${K1.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),ec=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiDialog"}),o=nl(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":c,"aria-modal":u=!0,BackdropComponent:d,BackdropProps:p,children:h,className:g,disableEscapeKeyDown:y=!1,fullScreen:b=!1,fullWidth:x=!1,maxWidth:S="sm",onClick:T,onClose:D,open:w,PaperComponent:R=Zs,PaperProps:I={},scroll:O="paper",slots:F={},slotProps:j={},TransitionComponent:H=Cx,transitionDuration:C=a,TransitionProps:M,...$}=r,z={...r,disableEscapeKeyDown:y,fullScreen:b,fullWidth:x,maxWidth:S,scroll:O},q=Hq(z),Y=k.useRef(),B=nt=>{Y.current=nt.target===nt.currentTarget},X=nt=>{T&&T(nt),Y.current&&(Y.current=null,D&&D(nt,"backdropClick"))},ae=id(c),te=k.useMemo(()=>({titleId:ae}),[ae]),N={transition:H,...F},oe={transition:M,paper:I,backdrop:p,...j},K={slots:N,slotProps:oe},[P,ee]=Ft("root",{elementType:zq,shouldForwardComponentProp:!0,externalForwardedProps:K,ownerState:z,className:qe(q.root,g),ref:n}),[ce,re]=Ft("backdrop",{elementType:Uq,shouldForwardComponentProp:!0,externalForwardedProps:K,ownerState:z}),[be,ye]=Ft("paper",{elementType:Vq,shouldForwardComponentProp:!0,externalForwardedProps:K,ownerState:z,className:qe(q.paper,I.className)}),[Ge,Me]=Ft("container",{elementType:$q,externalForwardedProps:K,ownerState:z,className:q.container}),[Oe,Qe]=Ft("transition",{elementType:Cx,externalForwardedProps:K,ownerState:z,additionalProps:{appear:!0,in:w,timeout:C,role:"presentation"}});return v.jsx(P,{closeAfterTransition:!0,slots:{backdrop:ce},slotProps:{backdrop:{transitionDuration:C,as:d,...re}},disableEscapeKeyDown:y,onClose:D,open:w,onClick:X,...ee,...$,children:v.jsx(Oe,{...Qe,children:v.jsx(Ge,{onMouseDown:B,...Me,children:v.jsx(be,{as:R,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":ae,"aria-modal":u,...ye,children:v.jsx(x5.Provider,{value:te,children:h})})})})})});function Gq(e){return it("MuiDialogActions",e)}ut("MuiDialogActions",["root","spacing"]);const qq=e=>{const{classes:t,disableSpacing:n}=e;return st({root:["root",!n&&"spacing"]},Gq,t)},Wq=ke("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}}}]}),T5=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1,...s}=r,c={...r,disableSpacing:a},u=qq(c);return v.jsx(Wq,{className:qe(u.root,o),ownerState:c,ref:n,...s})});function Yq(e){return it("MuiDialogContent",e)}ut("MuiDialogContent",["root","dividers"]);function Kq(e){return it("MuiDialogTitle",e)}const Qq=ut("MuiDialogTitle",["root"]),Xq=e=>{const{classes:t,dividers:n}=e;return st({root:["root",n&&"dividers"]},Yq,t)},Zq=ke("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(St(({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:{[`.${Qq.root} + &`]:{paddingTop:0}}}]}))),tc=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1,...s}=r,c={...r,dividers:a},u=Xq(c);return v.jsx(Zq,{className:qe(u.root,o),ownerState:c,ref:n,...s})});function Jq(e){return it("MuiDialogContentText",e)}ut("MuiDialogContentText",["root"]);const eW=e=>{const{classes:t}=e,r=st({root:["root"]},Jq,t);return{...t,...r}},tW=ke(He,{shouldForwardProp:e=>co(e)||e==="classes",name:"MuiDialogContentText",slot:"Root"})({}),nW=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiDialogContentText"}),{children:o,className:a,...s}=r,c=eW(s);return v.jsx(tW,{component:"p",variant:"body1",color:"textSecondary",ref:n,ownerState:s,className:qe(c.root,a),...r,classes:c})}),rW=e=>{const{classes:t}=e;return st({root:["root"]},Kq,t)},oW=ke(He,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),nc=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiDialogTitle"}),{className:o,id:a,...s}=r,c=r,u=rW(c),{titleId:d=a}=k.useContext(x5);return v.jsx(oW,{component:"h2",className:qe(u.root,o),ownerState:c,ref:n,variant:"h6",id:a??d,...s})});function aW(e){return it("MuiDivider",e)}const PD=ut("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),iW=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:s,textAlign:c,variant:u}=e;return st({root:["root",t&&"absolute",u,a&&"light",s==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",c==="right"&&s!=="vertical"&&"textAlignRight",c==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},aW,r)},sW=ke("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]}})(St(({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.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Dt(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%"}}}]}))),lW=ke("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(St(({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)`}}]}))),_r=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiDivider"}),{absolute:o=!1,children:a,className:s,orientation:c="horizontal",component:u=a||c==="vertical"?"div":"hr",flexItem:d=!1,light:p=!1,role:h=u!=="hr"?"separator":void 0,textAlign:g="center",variant:y="fullWidth",...b}=r,x={...r,absolute:o,component:u,flexItem:d,light:p,orientation:c,role:h,textAlign:g,variant:y},S=iW(x);return v.jsx(sW,{as:u,className:qe(S.root,s),role:h,ref:n,ownerState:x,"aria-orientation":h==="separator"&&(u!=="hr"||c==="vertical")?c:void 0,...b,children:a?v.jsx(lW,{className:S.wrapper,ownerState:x,children:a}):null})});_r&&(_r.muiSkipListHighlight=!0);const cW=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:a,hiddenLabel:s,multiline:c}=e,u={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",a==="small"&&`size${Ne(a)}`,s&&"hiddenLabel",c&&"multiline"],input:["input"]},d=st(u,xG,t);return{...t,...d}},uW=ke(w0,{shouldForwardProp:e=>co(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...A0(e,t),!n.disableUnderline&&t.underline]}})(St(({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}},[`&.${Cl.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Cl.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:s})=>!s.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"},[`&.${Cl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Cl.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${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(.${Cl.disabled}, .${Cl.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Cl.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(so()).map(([s])=>({props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:c})=>s.multiline&&c==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),dW=ke(D0,{name:"MuiFilledInput",slot:"Input",overridesResolver:k0})(St(({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}}]}))),wS=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:a={},componentsProps:s,fullWidth:c=!1,hiddenLabel:u,inputComponent:d="input",multiline:p=!1,slotProps:h,slots:g={},type:y="text",...b}=r,x={...r,disableUnderline:o,fullWidth:c,inputComponent:d,multiline:p,type:y},S=cW(r),T={root:{ownerState:x},input:{ownerState:x}},D=h??s?Pr(T,h??s):T,w=g.root??a.Root??uW,R=g.input??a.Input??dW;return v.jsx(AS,{slots:{root:w,input:R},slotProps:D,fullWidth:c,inputComponent:d,multiline:p,ref:n,type:y,...b,classes:S})});wS.muiName="Input";function fW(e){return it("MuiFormControl",e)}ut("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const pW=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Ne(n)}`,r&&"fullWidth"]};return st(o,fW,t)},hW=ke("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${Ne(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%"}}]}),xy=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiFormControl"}),{children:o,className:a,color:s="primary",component:c="div",disabled:u=!1,error:d=!1,focused:p,fullWidth:h=!1,hiddenLabel:g=!1,margin:y="none",required:b=!1,size:x="medium",variant:S="outlined",...T}=r,D={...r,color:s,component:c,disabled:u,error:d,fullWidth:h,hiddenLabel:g,margin:y,required:b,size:x,variant:S},w=pW(D),[R,I]=k.useState(()=>{let Y=!1;return o&&k.Children.forEach(o,B=>{if(!up(B,["Input","Select"]))return;const X=up(B,["Select"])?B.props.input:B;X&&gG(X.props)&&(Y=!0)}),Y}),[O,F]=k.useState(()=>{let Y=!1;return o&&k.Children.forEach(o,B=>{up(B,["Input","Select"])&&(Ey(B.props,!0)||Ey(B.props.inputProps,!0))&&(Y=!0)}),Y}),[j,H]=k.useState(!1);u&&j&&H(!1);const C=p!==void 0&&!u?p:j;let M;k.useRef(!1);const $=k.useCallback(()=>{F(!0)},[]),z=k.useCallback(()=>{F(!1)},[]),q=k.useMemo(()=>({adornedStart:R,setAdornedStart:I,color:s,disabled:u,error:d,filled:O,focused:C,fullWidth:h,hiddenLabel:g,size:x,onBlur:()=>{H(!1)},onFocus:()=>{H(!0)},onEmpty:z,onFilled:$,registerEffect:M,required:b,variant:S}),[R,s,u,d,O,C,h,g,M,z,$,b,x,S]);return v.jsx(_S.Provider,{value:q,children:v.jsx(hW,{as:c,ownerState:D,className:qe(w.root,a),ref:n,...T,children:o})})});function mW(e){return it("MuiFormControlLabel",e)}const np=ut("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),gW=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:a}=e,s={root:["root",n&&"disabled",`labelPlacement${Ne(r)}`,o&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return st(s,mW,t)},yW=ke("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${np.label}`]:t.label},t.root,t[`labelPlacement${Ne(n.labelPlacement)}`]]}})(St(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${np.disabled}`]:{cursor:"default"},[`& .${np.label}`]:{[`&.${np.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}}]}))),bW=ke("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(St(({theme:e})=>({[`&.${np.error}`]:{color:(e.vars||e).palette.error.main}}))),vW=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiFormControlLabel"}),{checked:o,className:a,componentsProps:s={},control:c,disabled:u,disableTypography:d,inputRef:p,label:h,labelPlacement:g="end",name:y,onChange:b,required:x,slots:S={},slotProps:T={},value:D,...w}=r,R=ol(),I=u??c.props.disabled??R?.disabled,O=x??c.props.required,F={disabled:I,required:O};["checked","name","onChange","value","inputRef"].forEach(Y=>{typeof c.props[Y]>"u"&&typeof r[Y]<"u"&&(F[Y]=r[Y])});const j=mc({props:r,muiFormControl:R,states:["error"]}),H={...r,disabled:I,labelPlacement:g,required:O,error:j.error},C=gW(H),M={slots:S,slotProps:{...s,...T}},[$,z]=Ft("typography",{elementType:He,externalForwardedProps:M,ownerState:H});let q=h;return q!=null&&q.type!==He&&!d&&(q=v.jsx($,{component:"span",...z,className:qe(C.label,z?.className),children:q})),v.jsxs(yW,{className:qe(C.root,a),ownerState:H,ref:n,...w,children:[k.cloneElement(c,F),O?v.jsxs("div",{children:[q,v.jsxs(bW,{ownerState:H,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]}):q]})});function EW(e){return it("MuiFormHelperText",e)}const LD=ut("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var MD;const xW=e=>{const{classes:t,contained:n,size:r,disabled:o,error:a,filled:s,focused:c,required:u}=e,d={root:["root",o&&"disabled",a&&"error",r&&`size${Ne(r)}`,n&&"contained",c&&"focused",s&&"filled",u&&"required"]};return st(d,EW,t)},TW=ke("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Ne(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(St(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${LD.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${LD.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}}]}))),SW=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:s="p",disabled:c,error:u,filled:d,focused:p,margin:h,required:g,variant:y,...b}=r,x=ol(),S=mc({props:r,muiFormControl:x,states:["variant","size","disabled","error","filled","focused","required"]}),T={...r,component:s,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 D=xW(T);return v.jsx(TW,{as:s,className:qe(D.root,a),ref:n,...b,ownerState:T,children:o===" "?MD||(MD=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):o})});function CW(e){return it("MuiFormLabel",e)}const hp=ut("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),_W=e=>{const{classes:t,color:n,focused:r,disabled:o,error:a,filled:s,required:c}=e,u={root:["root",`color${Ne(n)}`,o&&"disabled",a&&"error",s&&"filled",r&&"focused",c&&"required"],asterisk:["asterisk",a&&"error"]};return st(u,CW,t)},AW=ke("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(St(({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(so()).map(([t])=>({props:{color:t},style:{[`&.${hp.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${hp.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${hp.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),kW=ke("span",{name:"MuiFormLabel",slot:"Asterisk"})(St(({theme:e})=>({[`&.${hp.error}`]:{color:(e.vars||e).palette.error.main}}))),wW=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiFormLabel"}),{children:o,className:a,color:s,component:c="label",disabled:u,error:d,filled:p,focused:h,required:g,...y}=r,b=ol(),x=mc({props:r,muiFormControl:b,states:["color","required","focused","disabled","error","filled"]}),S={...r,color:x.color||"primary",component:c,disabled:x.disabled,error:x.error,filled:x.filled,focused:x.focused,required:x.required},T=_W(S);return v.jsxs(AW,{as:c,ownerState:S,className:qe(T.root,a),ref:n,...y,children:[o,x.required&&v.jsxs(kW,{ownerState:S,"aria-hidden":!0,className:T.asterisk,children:[" ","*"]})]})}),Zn=ZH({createStyledComponent:ke("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>dt({props:e,name:"MuiGrid"}),useTheme:nl});function Ax(e){return`scale(${e}, ${e**2})`}const DW={entering:{opacity:1,transform:Ax(1)},entered:{opacity:1,transform:"none"}},Q1=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ty=k.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:a,easing:s,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:h,onExited:g,onExiting:y,style:b,timeout:x="auto",TransitionComponent:S=Va,...T}=t,D=Fl(),w=k.useRef(),R=nl(),I=k.useRef(null),O=Jn(I,sd(a),n),F=Y=>B=>{if(Y){const X=I.current;B===void 0?Y(X):Y(X,B)}},j=F(p),H=F((Y,B)=>{e5(Y);const{duration:X,delay:ae,easing:te}=Hu({style:b,timeout:x,easing:s},{mode:"enter"});let N;x==="auto"?(N=R.transitions.getAutoHeightDuration(Y.clientHeight),w.current=N):N=X,Y.style.transition=[R.transitions.create("opacity",{duration:N,delay:ae}),R.transitions.create("transform",{duration:Q1?N:N*.666,delay:ae,easing:te})].join(","),u&&u(Y,B)}),C=F(d),M=F(y),$=F(Y=>{const{duration:B,delay:X,easing:ae}=Hu({style:b,timeout:x,easing:s},{mode:"exit"});let te;x==="auto"?(te=R.transitions.getAutoHeightDuration(Y.clientHeight),w.current=te):te=B,Y.style.transition=[R.transitions.create("opacity",{duration:te,delay:X}),R.transitions.create("transform",{duration:Q1?te:te*.666,delay:Q1?X:X||te*.333,easing:ae})].join(","),Y.style.opacity=0,Y.style.transform=Ax(.75),h&&h(Y)}),z=F(g),q=Y=>{x==="auto"&&D.start(w.current||0,Y),r&&r(I.current,Y)};return v.jsx(S,{appear:o,in:c,nodeRef:I,onEnter:H,onEntered:C,onEntering:j,onExit:$,onExited:z,onExiting:M,addEndListener:q,timeout:x==="auto"?null:x,...T,children:(Y,{ownerState:B,...X})=>k.cloneElement(a,{style:{opacity:0,transform:Ax(.75),visibility:Y==="exited"&&!c?"hidden":void 0,...DW[Y],...b,...a.props.style},ref:O,...X})})});Ty&&(Ty.muiSupportAuto=!0);const RW=e=>{const{classes:t,disableUnderline:n}=e,o=st({root:["root",!n&&"underline"],input:["input"]},vG,t);return{...t,...o}},IW=ke(w0,{shouldForwardProp:e=>co(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...A0(e,t),!n.disableUnderline&&t.underline]}})(St(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.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"},[`&.${Rf.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Rf.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${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(.${Rf.disabled}, .${Rf.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Rf.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(so()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),OW=ke(D0,{name:"MuiInput",slot:"Input",overridesResolver:k0})({}),DS=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:a={},componentsProps:s,fullWidth:c=!1,inputComponent:u="input",multiline:d=!1,slotProps:p,slots:h={},type:g="text",...y}=r,b=RW(r),S={root:{ownerState:{disableUnderline:o}}},T=p??s?Pr(p??s,S):S,D=h.root??a.Root??IW,w=h.input??a.Input??OW;return v.jsx(AS,{slots:{root:D,input:w},slotProps:T,fullWidth:c,inputComponent:u,multiline:d,ref:n,type:g,...y,classes:b})});DS.muiName="Input";function NW(e){return it("MuiInputLabel",e)}ut("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const PW=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:a,variant:s,required:c}=e,u={root:["root",n&&"formControl",!a&&"animated",o&&"shrink",r&&r!=="medium"&&`size${Ne(r)}`,s],asterisk:[c&&"asterisk"]},d=st(u,NW,t);return{...t,...d}},LW=ke(wW,{shouldForwardProp:e=>co(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${hp.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]]}})(St(({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)"}}]}))),S5=k.forwardRef(function(t,n){const r=dt({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:a,shrink:s,variant:c,className:u,...d}=r,p=ol();let h=s;typeof h>"u"&&p&&(h=p.filled||p.focused||p.adornedStart);const g=mc({props:r,muiFormControl:p,states:["size","variant","required","focused"]}),y={...r,disableAnimation:o,formControl:p,shrink:h,size:g.size,variant:g.variant,required:g.required,focused:g.focused},b=PW(y);return v.jsx(LW,{"data-shrink":h,ref:n,className:qe(b.root,u),...d,ownerState:y,classes:b})}),Fa=k.createContext({});function MW(e){return it("MuiList",e)}ut("MuiList",["root","padding","dense","subheader"]);const FW=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return st({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},MW,t)},BW=ke("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}}]}),kh=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiList"}),{children:o,className:a,component:s="ul",dense:c=!1,disablePadding:u=!1,subheader:d,...p}=r,h=k.useMemo(()=>({dense:c}),[c]),g={...r,component:s,dense:c,disablePadding:u},y=FW(g);return v.jsx(Fa.Provider,{value:h,children:v.jsxs(BW,{as:s,className:qe(y.root,a),ref:n,ownerState:g,...p,children:[d,o]})})});function jW(e){return it("MuiListItem",e)}ut("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function UW(e){return it("MuiListItemButton",e)}const bu=ut("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),HW=(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]},zW=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:a,divider:s,selected:c}=e,d=st({root:["root",r&&"dense",!a&&"gutters",s&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",c&&"selected"]},UW,n);return{...n,...d}},$W=ke(mi,{shouldForwardProp:e=>co(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:HW})(St(({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"}},[`&.${bu.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Dt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${bu.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Dt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${bu.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Dt(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})`:Dt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${bu.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${bu.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}}]}))),C5=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:a=!1,component:s="div",children:c,dense:u=!1,disableGutters:d=!1,divider:p=!1,focusVisibleClassName:h,selected:g=!1,className:y,...b}=r,x=k.useContext(Fa),S=k.useMemo(()=>({dense:u||x.dense||!1,alignItems:o,disableGutters:d}),[o,x.dense,u,d]),T=k.useRef(null);Wo(()=>{a&&T.current&&T.current.focus()},[a]);const D={...r,alignItems:o,dense:S.dense,disableGutters:d,divider:p,selected:g},w=zW(D),R=Jn(T,n);return v.jsx(Fa.Provider,{value:S,children:v.jsx($W,{ref:R,href:b.href||b.to,component:(b.href||b.to)&&s==="div"?"button":s,focusVisibleClassName:qe(w.focusVisible,h),ownerState:D,className:qe(w.root,y),...b,classes:w,children:c})})});function VW(e){return it("MuiListItemSecondaryAction",e)}ut("MuiListItemSecondaryAction",["root","disableGutters"]);const GW=e=>{const{disableGutters:t,classes:n}=e;return st({root:["root",t&&"disableGutters"]},VW,n)},qW=ke("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}}]}),_5=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...a}=r,s=k.useContext(Fa),c={...r,disableGutters:s.disableGutters},u=GW(c);return v.jsx(qW,{className:qe(u.root,o),ownerState:c,ref:n,...a})});_5.muiName="ListItemSecondaryAction";const WW=(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]},YW=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:a,divider:s,hasSecondaryAction:c}=e;return st({root:["root",r&&"dense",!o&&"gutters",!a&&"padding",s&&"divider",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction"],container:["container"]},jW,n)},KW=ke("div",{name:"MuiListItem",slot:"Root",overridesResolver:WW})(St(({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:{[`& > .${bu.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}}]}))),QW=ke("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Su=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiListItem"}),{alignItems:o="center",children:a,className:s,component:c,components:u={},componentsProps:d={},ContainerComponent:p="li",ContainerProps:{className:h,...g}={},dense:y=!1,disableGutters:b=!1,disablePadding:x=!1,divider:S=!1,secondaryAction:T,slotProps:D={},slots:w={},...R}=r,I=k.useContext(Fa),O=k.useMemo(()=>({dense:y||I.dense||!1,alignItems:o,disableGutters:b}),[o,I.dense,y,b]),F=k.useRef(null),j=k.Children.toArray(a),H=j.length&&up(j[j.length-1],["ListItemSecondaryAction"]),C={...r,alignItems:o,dense:O.dense,disableGutters:b,disablePadding:x,divider:S,hasSecondaryAction:H},M=YW(C),$=Jn(F,n),z=w.root||u.Root||KW,q=D.root||d.root||{},Y={className:qe(M.root,q.className,s),...R};let B=c||"li";return H?(B=!Y.component&&!c?"div":B,p==="li"&&(B==="li"?B="div":Y.component==="li"&&(Y.component="div")),v.jsx(Fa.Provider,{value:O,children:v.jsxs(QW,{as:p,className:qe(M.container,h),ref:$,ownerState:C,...g,children:[v.jsx(z,{...q,...!zp(z)&&{as:B,ownerState:{...C,...q.ownerState}},...Y,children:j}),j.pop()]})})):v.jsx(Fa.Provider,{value:O,children:v.jsxs(z,{...q,as:B,ref:$,...!zp(z)&&{ownerState:{...C,...q.ownerState}},...Y,children:[j,T&&v.jsx(_5,{children:T})]})})});function XW(e){return it("MuiListItemIcon",e)}const FD=ut("MuiListItemIcon",["root","alignItemsFlexStart"]),ZW=e=>{const{alignItems:t,classes:n}=e;return st({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},XW,n)},JW=ke("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(St(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),BD=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiListItemIcon"}),{className:o,...a}=r,s=k.useContext(Fa),c={...r,alignItems:s.alignItems},u=ZW(c);return v.jsx(JW,{className:qe(u.root,o),ownerState:c,ref:n,...a})});function eY(e){return it("MuiListItemText",e)}const Cu=ut("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),tY=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:a}=e;return st({root:["root",n&&"inset",a&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},eY,t)},nY=ke("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Cu.primary}`]:t.primary},{[`& .${Cu.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,[`.${pD.root}:where(& .${Cu.primary})`]:{display:"block"},[`.${pD.root}:where(& .${Cu.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Ji=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:s=!1,inset:c=!1,primary:u,primaryTypographyProps:d,secondary:p,secondaryTypographyProps:h,slots:g={},slotProps:y={},...b}=r,{dense:x}=k.useContext(Fa);let S=u??o,T=p;const D={...r,disableTypography:s,inset:c,primary:!!S,secondary:!!T,dense:x},w=tY(D),R={slots:g,slotProps:{primary:d,secondary:h,...y}},[I,O]=Ft("root",{className:qe(w.root,a),elementType:nY,externalForwardedProps:{...R,...b},ownerState:D,ref:n}),[F,j]=Ft("primary",{className:w.primary,elementType:He,externalForwardedProps:R,ownerState:D}),[H,C]=Ft("secondary",{className:w.secondary,elementType:He,externalForwardedProps:R,ownerState:D});return S!=null&&S.type!==He&&!s&&(S=v.jsx(F,{variant:x?"body2":"body1",component:j?.variant?void 0:"span",...j,children:S})),T!=null&&T.type!==He&&!s&&(T=v.jsx(H,{variant:"body2",color:"textSecondary",...C,children:T})),v.jsxs(I,{...O,children:[S,T]})});function X1(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function jD(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function A5(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 If(e,t,n,r,o,a){let s=!1,c=o(e,t,t?n:!1);for(;c;){if(c===e.firstChild){if(s)return!1;s=!0}const u=r?!1:c.disabled||c.getAttribute("aria-disabled")==="true";if(!c.hasAttribute("tabindex")||!A5(c,a)||u)c=o(e,c,n);else return c.focus(),!0}return!1}const rY=k.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:a=!1,children:s,className:c,disabledItemsFocusable:u=!1,disableListWrap:d=!1,onKeyDown:p,variant:h="selectedMenu",...g}=t,y=k.useRef(null),b=k.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Wo(()=>{o&&y.current.focus()},[o]),k.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(w,{direction:R})=>{const I=!y.current.style.width;if(w.clientHeight<y.current.clientHeight&&I){const O=`${v5(Ua(w))}px`;y.current.style[R==="rtl"?"paddingLeft":"paddingRight"]=O,y.current.style.width=`calc(100% + ${O})`}return y.current}}),[]);const x=w=>{const R=y.current,I=w.key;if(w.ctrlKey||w.metaKey||w.altKey){p&&p(w);return}const F=ko(R).activeElement;if(I==="ArrowDown")w.preventDefault(),If(R,F,d,u,X1);else if(I==="ArrowUp")w.preventDefault(),If(R,F,d,u,jD);else if(I==="Home")w.preventDefault(),If(R,null,d,u,X1);else if(I==="End")w.preventDefault(),If(R,null,d,u,jD);else if(I.length===1){const j=b.current,H=I.toLowerCase(),C=performance.now();j.keys.length>0&&(C-j.lastTime>500?(j.keys=[],j.repeating=!0,j.previousKeyMatched=!0):j.repeating&&H!==j.keys[0]&&(j.repeating=!1)),j.lastTime=C,j.keys.push(H);const M=F&&!j.repeating&&A5(F,j);j.previousKeyMatched&&(M||If(R,F,!1,u,X1,j))?w.preventDefault():j.previousKeyMatched=!1}p&&p(w)},S=Jn(y,n);let T=-1;k.Children.forEach(s,(w,R)=>{if(!k.isValidElement(w)){T===R&&(T+=1,T>=s.length&&(T=-1));return}w.props.disabled||(h==="selectedMenu"&&w.props.selected||T===-1)&&(T=R),T===R&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(T+=1,T>=s.length&&(T=-1))});const D=k.Children.map(s,(w,R)=>{if(R===T){const I={};return a&&(I.autoFocus=!0),w.props.tabIndex===void 0&&h==="selectedMenu"&&(I.tabIndex=0),k.cloneElement(w,I)}return w});return v.jsx(kh,{role:"menu",ref:S,className:c,onKeyDown:x,tabIndex:o?0:-1,...g,children:D})});function oY(e){return it("MuiPopover",e)}ut("MuiPopover",["root","paper"]);function UD(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function HD(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function zD(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function dg(e){return typeof e=="function"?e():e}const aY=e=>{const{classes:t}=e;return st({root:["root"],paper:["paper"]},oY,t)},iY=ke(E5,{name:"MuiPopover",slot:"Root"})({}),k5=ke(Zs,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),sY=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiPopover"}),{action:o,anchorEl:a,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:p,container:h,elevation:g=8,marginThreshold:y=16,open:b,PaperProps:x={},slots:S={},slotProps:T={},transformOrigin:D={vertical:"top",horizontal:"left"},TransitionComponent:w,transitionDuration:R="auto",TransitionProps:I={},disableScrollLock:O=!1,...F}=r,j=k.useRef(),H={...r,anchorOrigin:s,anchorReference:u,elevation:g,marginThreshold:y,transformOrigin:D,TransitionComponent:w,transitionDuration:R,TransitionProps:I},C=aY(H),M=k.useCallback(()=>{if(u==="anchorPosition")return c;const Me=dg(a),Qe=(Me&&Me.nodeType===1?Me:ko(j.current).body).getBoundingClientRect();return{top:Qe.top+UD(Qe,s.vertical),left:Qe.left+HD(Qe,s.horizontal)}},[a,s.horizontal,s.vertical,c,u]),$=k.useCallback(Me=>({vertical:UD(Me,D.vertical),horizontal:HD(Me,D.horizontal)}),[D.horizontal,D.vertical]),z=k.useCallback(Me=>{const Oe={width:Me.offsetWidth,height:Me.offsetHeight},Qe=$(Oe);if(u==="none")return{top:null,left:null,transformOrigin:zD(Qe)};const nt=M();let Re=nt.top-Qe.vertical,gt=nt.left-Qe.horizontal;const _t=Re+Oe.height,je=gt+Oe.width,mt=Ua(dg(a)),lt=mt.innerHeight-y,ft=mt.innerWidth-y;if(y!==null&&Re<y){const Ue=Re-y;Re-=Ue,Qe.vertical+=Ue}else if(y!==null&&_t>lt){const Ue=_t-lt;Re-=Ue,Qe.vertical+=Ue}if(y!==null&><y){const Ue=gt-y;gt-=Ue,Qe.horizontal+=Ue}else if(je>ft){const Ue=je-ft;gt-=Ue,Qe.horizontal+=Ue}return{top:`${Math.round(Re)}px`,left:`${Math.round(gt)}px`,transformOrigin:zD(Qe)}},[a,u,M,$,y]),[q,Y]=k.useState(b),B=k.useCallback(()=>{const Me=j.current;if(!Me)return;const Oe=z(Me);Oe.top!==null&&Me.style.setProperty("top",Oe.top),Oe.left!==null&&(Me.style.left=Oe.left),Me.style.transformOrigin=Oe.transformOrigin,Y(!0)},[z]);k.useEffect(()=>(O&&window.addEventListener("scroll",B),()=>window.removeEventListener("scroll",B)),[a,O,B]);const X=()=>{B()},ae=()=>{Y(!1)};k.useEffect(()=>{b&&B()}),k.useImperativeHandle(o,()=>b?{updatePosition:()=>{B()}}:null,[b,B]),k.useEffect(()=>{if(!b)return;const Me=S0(()=>{B()}),Oe=Ua(dg(a));return Oe.addEventListener("resize",Me),()=>{Me.clear(),Oe.removeEventListener("resize",Me)}},[a,b,B]);let te=R;const N={slots:{transition:w,...S},slotProps:{transition:I,paper:x,...T}},[oe,K]=Ft("transition",{elementType:Ty,externalForwardedProps:N,ownerState:H,getSlotProps:Me=>({...Me,onEntering:(Oe,Qe)=>{Me.onEntering?.(Oe,Qe),X()},onExited:Oe=>{Me.onExited?.(Oe),ae()}}),additionalProps:{appear:!0,in:b}});R==="auto"&&!oe.muiSupportAuto&&(te=void 0);const P=h||(a?ko(dg(a)).body:void 0),[ee,{slots:ce,slotProps:re,...be}]=Ft("root",{ref:n,elementType:iY,externalForwardedProps:{...N,...F},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:S.backdrop},slotProps:{backdrop:qz(typeof T.backdrop=="function"?T.backdrop(H):T.backdrop,{invisible:!0})},container:P,open:b},ownerState:H,className:qe(C.root,p)}),[ye,Ge]=Ft("paper",{ref:j,className:C.paper,elementType:k5,externalForwardedProps:N,shouldForwardComponentProp:!0,additionalProps:{elevation:g,style:q?void 0:{opacity:0}},ownerState:H});return v.jsx(ee,{...be,...!zp(ee)&&{slots:ce,slotProps:re,disableScrollLock:O},children:v.jsx(oe,{...K,timeout:te,children:v.jsx(ye,{...Ge,children:d})})})});function lY(e){return it("MuiMenu",e)}ut("MuiMenu",["root","paper","list"]);const cY={vertical:"top",horizontal:"right"},uY={vertical:"top",horizontal:"left"},dY=e=>{const{classes:t}=e;return st({root:["root"],paper:["paper"],list:["list"]},lY,t)},fY=ke(sY,{shouldForwardProp:e=>co(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),pY=ke(k5,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),hY=ke(rY,{name:"MuiMenu",slot:"List"})({outline:0}),I0=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:a,className:s,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:d,open:p,PaperProps:h={},PopoverClasses:g,transitionDuration:y="auto",TransitionProps:{onEntering:b,...x}={},variant:S="selectedMenu",slots:T={},slotProps:D={},...w}=r,R=Ch(),I={...r,autoFocus:o,disableAutoFocusItem:c,MenuListProps:u,onEntering:b,PaperProps:h,transitionDuration:y,TransitionProps:x,variant:S},O=dY(I),F=o&&!c&&p,j=k.useRef(null),H=(te,N)=>{j.current&&j.current.adjustStyleForScrollbar(te,{direction:R?"rtl":"ltr"}),b&&b(te,N)},C=te=>{te.key==="Tab"&&(te.preventDefault(),d&&d(te,"tabKeyDown"))};let M=-1;k.Children.map(a,(te,N)=>{k.isValidElement(te)&&(te.props.disabled||(S==="selectedMenu"&&te.props.selected||M===-1)&&(M=N))});const $={slots:T,slotProps:{list:u,transition:x,paper:h,...D}},z=Jl({elementType:T.root,externalSlotProps:D.root,ownerState:I,className:[O.root,s]}),[q,Y]=Ft("paper",{className:O.paper,elementType:pY,externalForwardedProps:$,shouldForwardComponentProp:!0,ownerState:I}),[B,X]=Ft("list",{className:qe(O.list,u.className),elementType:hY,shouldForwardComponentProp:!0,externalForwardedProps:$,getSlotProps:te=>({...te,onKeyDown:N=>{C(N),te.onKeyDown?.(N)}}),ownerState:I}),ae=typeof $.slotProps.transition=="function"?$.slotProps.transition(I):$.slotProps.transition;return v.jsx(fY,{onClose:d,anchorOrigin:{vertical:"bottom",horizontal:R?"right":"left"},transformOrigin:R?cY:uY,slots:{root:T.root,paper:q,backdrop:T.backdrop,...T.transition&&{transition:T.transition}},slotProps:{root:z,paper:Y,backdrop:typeof D.backdrop=="function"?D.backdrop(I):D.backdrop,transition:{...ae,onEntering:(...te)=>{H(...te),ae?.onEntering?.(...te)}}},open:p,ref:n,transitionDuration:y,ownerState:I,...w,classes:g,children:v.jsx(B,{actions:j,autoFocus:o&&(M===-1||c),autoFocusItem:F,variant:S,...X,children:a})})});function mY(e){return it("MuiMenuItem",e)}const Of=ut("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),gY=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},yY=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:s}=e,u=st({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},mY,s);return{...s,...u}},bY=ke(mi,{shouldForwardProp:e=>co(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:gY})(St(({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"}},[`&.${Of.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Dt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Of.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Dt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Of.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Dt(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})`:Dt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Of.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Of.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${PD.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${PD.inset}`]:{marginLeft:52},[`& .${Cu.root}`]:{marginTop:0,marginBottom:0},[`& .${Cu.inset}`]:{paddingLeft:36},[`& .${FD.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,[`& .${FD.root} svg`]:{fontSize:"1.25rem"}}}]}))),ql=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:s=!1,divider:c=!1,disableGutters:u=!1,focusVisibleClassName:d,role:p="menuitem",tabIndex:h,className:g,...y}=r,b=k.useContext(Fa),x=k.useMemo(()=>({dense:s||b.dense||!1,disableGutters:u}),[b.dense,s,u]),S=k.useRef(null);Wo(()=>{o&&S.current&&S.current.focus()},[o]);const T={...r,dense:x.dense,divider:c,disableGutters:u},D=yY(r),w=Jn(S,n);let R;return r.disabled||(R=h!==void 0?h:-1),v.jsx(Fa.Provider,{value:x,children:v.jsx(bY,{ref:w,role:p,tabIndex:R,component:a,focusVisibleClassName:qe(D.focusVisible,d),className:qe(D.root,g),...y,ownerState:T,classes:D})})});function vY(e){return it("MuiNativeSelect",e)}const RS=ut("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),EY=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:s}=e,c={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${Ne(n)}`,a&&"iconOpen",r&&"disabled"]};return st(c,vY,t)},w5=ke("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${RS.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}}}]})),xY=ke(w5,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:co,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${RS.multiple}`]:t.multiple}]}})({}),D5=ke("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${RS.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}}]})),TY=ke(D5,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Ne(n.variant)}`],n.open&&t.iconOpen]}})({}),SY=k.forwardRef(function(t,n){const{className:r,disabled:o,error:a,IconComponent:s,inputRef:c,variant:u="standard",...d}=t,p={...t,disabled:o,variant:u,error:a},h=EY(p);return v.jsxs(k.Fragment,{children:[v.jsx(xY,{ownerState:p,className:qe(h.select,r),disabled:o,ref:c||n,...d}),t.multiple?null:v.jsx(TY,{as:s,ownerState:p,className:h.icon})]})});var $D;const CY=ke("fieldset",{shouldForwardProp:co})({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%"}),_Y=ke("legend",{shouldForwardProp:co})(St(({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 AY(e){const{children:t,classes:n,className:r,label:o,notched:a,...s}=e,c=o!=null&&o!=="",u={...e,notched:a,withLabel:c};return v.jsx(CY,{"aria-hidden":!0,className:r,ownerState:u,...s,children:v.jsx(_Y,{ownerState:u,children:c?v.jsx("span",{children:o}):$D||($D=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}const kY=e=>{const{classes:t}=e,r=st({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},EG,t);return{...t,...r}},wY=ke(w0,{shouldForwardProp:e=>co(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:A0})(St(({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 .${Ja.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ja.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Ja.focused} .${Ja.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(so()).map(([n])=>({props:{color:n},style:{[`&.${Ja.focused} .${Ja.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Ja.error} .${Ja.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ja.disabled} .${Ja.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"}}]}})),DY=ke(AY,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(St(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),RY=ke(D0,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:k0})(St(({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}}]}))),IS=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiOutlinedInput"}),{components:o={},fullWidth:a=!1,inputComponent:s="input",label:c,multiline:u=!1,notched:d,slots:p={},slotProps:h={},type:g="text",...y}=r,b=kY(r),x=ol(),S=mc({props:r,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),T={...r,color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:x,fullWidth:a,hiddenLabel:S.hiddenLabel,multiline:u,size:S.size,type:g},D=p.root??o.Root??wY,w=p.input??o.Input??RY,[R,I]=Ft("notchedOutline",{elementType:DY,className:b.notchedOutline,shouldForwardComponentProp:!0,ownerState:T,externalForwardedProps:{slots:p,slotProps:h},additionalProps:{label:c!=null&&c!==""&&S.required?v.jsxs(k.Fragment,{children:[c," ","*"]}):c}});return v.jsx(AS,{slots:{root:D,input:w},slotProps:h,renderSuffix:O=>v.jsx(R,{...I,notched:typeof d<"u"?d:!!(O.startAdornment||O.filled||O.focused)}),fullWidth:a,inputComponent:s,multiline:u,ref:n,type:g,...y,classes:{...b,notchedOutline:null}})});IS.muiName="Input";function R5(e){return it("MuiSelect",e)}const Nf=ut("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var VD;const IY=ke(w5,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Nf.select}`]:t.select},{[`&.${Nf.select}`]:t[n.variant]},{[`&.${Nf.error}`]:t.error},{[`&.${Nf.multiple}`]:t.multiple}]}})({[`&.${Nf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),OY=ke(D5,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Ne(n.variant)}`],n.open&&t.iconOpen]}})({}),NY=ke("input",{shouldForwardProp:e=>Q3(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function GD(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function PY(e){return e==null||typeof e=="string"&&!e.trim()}const LY=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:s}=e,c={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${Ne(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return st(c,R5,t)},MY=k.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":o,autoFocus:a,autoWidth:s,children:c,className:u,defaultOpen:d,defaultValue:p,disabled:h,displayEmpty:g,error:y=!1,IconComponent:b,inputRef:x,labelId:S,MenuProps:T={},multiple:D,name:w,onBlur:R,onChange:I,onClose:O,onFocus:F,onOpen:j,open:H,readOnly:C,renderValue:M,required:$,SelectDisplayProps:z={},tabIndex:q,type:Y,value:B,variant:X="standard",...ae}=t,[te,N]=my({controlled:B,default:p,name:"Select"}),[oe,K]=my({controlled:H,default:d,name:"Select"}),P=k.useRef(null),ee=k.useRef(null),[ce,re]=k.useState(null),{current:be}=k.useRef(H!=null),[ye,Ge]=k.useState(),Me=Jn(n,x),Oe=k.useCallback(Ke=>{ee.current=Ke,Ke&&re(Ke)},[]),Qe=ce?.parentNode;k.useImperativeHandle(Me,()=>({focus:()=>{ee.current.focus()},node:P.current,value:te}),[te]),k.useEffect(()=>{d&&oe&&ce&&!be&&(Ge(s?null:Qe.clientWidth),ee.current.focus())},[ce,s]),k.useEffect(()=>{a&&ee.current.focus()},[a]),k.useEffect(()=>{if(!S)return;const Ke=ko(ee.current).getElementById(S);if(Ke){const Ee=()=>{getSelection().isCollapsed&&ee.current.focus()};return Ke.addEventListener("click",Ee),()=>{Ke.removeEventListener("click",Ee)}}},[S]);const nt=(Ke,Ee)=>{Ke?j&&j(Ee):O&&O(Ee),be||(Ge(s?null:Qe.clientWidth),K(Ke))},Re=Ke=>{Ke.button===0&&(Ke.preventDefault(),ee.current.focus(),nt(!0,Ke))},gt=Ke=>{nt(!1,Ke)},_t=k.Children.toArray(c),je=Ke=>{const Ee=_t.find(Se=>Se.props.value===Ke.target.value);Ee!==void 0&&(N(Ee.props.value),I&&I(Ke,Ee))},mt=Ke=>Ee=>{let Se;if(Ee.currentTarget.hasAttribute("tabindex")){if(D){Se=Array.isArray(te)?te.slice():[];const ht=te.indexOf(Ke.props.value);ht===-1?Se.push(Ke.props.value):Se.splice(ht,1)}else Se=Ke.props.value;if(Ke.props.onClick&&Ke.props.onClick(Ee),te!==Se&&(N(Se),I)){const ht=Ee.nativeEvent||Ee,rt=new ht.constructor(ht.type,ht);Object.defineProperty(rt,"target",{writable:!0,value:{value:Se,name:w}}),I(rt,Ke)}D||nt(!1,Ee)}},lt=Ke=>{C||[" ","ArrowUp","ArrowDown","Enter"].includes(Ke.key)&&(Ke.preventDefault(),nt(!0,Ke))},ft=ce!==null&&oe,Ue=Ke=>{!ft&&R&&(Object.defineProperty(Ke,"target",{writable:!0,value:{value:te,name:w}}),R(Ke))};delete ae["aria-invalid"];let Le,Jt;const jt=[];let At=!1;(Ey({value:te})||g)&&(M?Le=M(te):At=!0);const de=_t.map(Ke=>{if(!k.isValidElement(Ke))return null;let Ee;if(D){if(!Array.isArray(te))throw new Error(ts(2));Ee=te.some(Se=>GD(Se,Ke.props.value)),Ee&&At&&jt.push(Ke.props.children)}else Ee=GD(te,Ke.props.value),Ee&&At&&(Jt=Ke.props.children);return k.cloneElement(Ke,{"aria-selected":Ee?"true":"false",onClick:mt(Ke),onKeyUp:Se=>{Se.key===" "&&Se.preventDefault(),Ke.props.onKeyUp&&Ke.props.onKeyUp(Se)},role:"option",selected:Ee,value:void 0,"data-value":Ke.props.value})});At&&(D?jt.length===0?Le=null:Le=jt.reduce((Ke,Ee,Se)=>(Ke.push(Ee),Se<jt.length-1&&Ke.push(", "),Ke),[]):Le=Jt);let ge=ye;!s&&be&&ce&&(ge=Qe.clientWidth);let ze;typeof q<"u"?ze=q:ze=h?null:0;const Xe=z.id||(w?`mui-component-select-${w}`:void 0),Et={...t,variant:X,value:te,open:ft,error:y},Je=LY(Et),en={...T.PaperProps,...T.slotProps?.paper},zt=id();return v.jsxs(k.Fragment,{children:[v.jsx(IY,{as:"div",ref:Oe,tabIndex:ze,role:"combobox","aria-controls":ft?zt:void 0,"aria-disabled":h?"true":void 0,"aria-expanded":ft?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[S,Xe].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":$?"true":void 0,"aria-invalid":y?"true":void 0,onKeyDown:lt,onMouseDown:h||C?null:Re,onBlur:Ue,onFocus:F,...z,ownerState:Et,className:qe(z.className,Je.select,u),id:Xe,children:PY(Le)?VD||(VD=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):Le}),v.jsx(NY,{"aria-invalid":y,value:Array.isArray(te)?te.join(","):te,name:w,ref:P,"aria-hidden":!0,onChange:je,tabIndex:-1,disabled:h,className:Je.nativeInput,autoFocus:a,required:$,...ae,ownerState:Et}),v.jsx(OY,{as:b,className:Je.icon,ownerState:Et}),v.jsx(I0,{id:`menu-${w||""}`,anchorEl:Qe,open:ft,onClose:gt,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...T,slotProps:{...T.slotProps,list:{"aria-labelledby":S,role:"listbox","aria-multiselectable":D?"true":void 0,disableListWrap:!0,id:zt,...T.MenuListProps},paper:{...en,style:{minWidth:ge,...en!=null?en.style:null}}},children:de})]})}),FY=e=>{const{classes:t}=e,r=st({root:["root"]},R5,t);return{...t,...r}},OS={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>co(e)&&e!=="variant"},BY=ke(DS,OS)(""),jY=ke(IS,OS)(""),UY=ke(wS,OS)(""),NS=k.forwardRef(function(t,n){const r=dt({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:s={},className:c,defaultOpen:u=!1,displayEmpty:d=!1,IconComponent:p=TG,id:h,input:g,inputProps:y,label:b,labelId:x,MenuProps:S,multiple:T=!1,native:D=!1,onClose:w,onOpen:R,open:I,renderValue:O,SelectDisplayProps:F,variant:j="outlined",...H}=r,C=D?SY:MY,M=ol(),$=mc({props:r,muiFormControl:M,states:["variant","error"]}),z=$.variant||j,q={...r,variant:z,classes:s},Y=FY(q),{root:B,...X}=Y,ae=g||{standard:v.jsx(BY,{ownerState:q}),outlined:v.jsx(jY,{label:b,ownerState:q}),filled:v.jsx(UY,{ownerState:q})}[z],te=Jn(n,sd(ae));return v.jsx(k.Fragment,{children:k.cloneElement(ae,{inputComponent:C,inputProps:{children:a,error:$.error,IconComponent:p,variant:z,type:void 0,multiple:T,...D?{id:h}:{autoWidth:o,defaultOpen:u,displayEmpty:d,labelId:x,MenuProps:S,onClose:w,onOpen:R,open:I,renderValue:O,SelectDisplayProps:{id:h,...F}},...y,classes:y?Pr(X,y.classes):X,...g?g.props.inputProps:{}},...(T&&D||d)&&z==="outlined"?{notched:!0}:{},ref:te,className:qe(ae.props.className,c,Y.root),...!g&&{variant:z},...H})})});NS.muiName="Select";function HY(e){return it("MuiTooltip",e)}const Xn=ut("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function zY(e){return Math.round(e*1e5)/1e5}const $Y=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Ne(a.split("-")[0])}`],arrow:["arrow"]};return st(s,HY,t)},VY=ke(m5,{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]}})(St(({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"] .${Xn.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Xn.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Xn.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Xn.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Xn.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Xn.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Xn.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Xn.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),GY=ke("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${Ne(n.placement.split("-")[0])}`]]}})(St(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Dt(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,[`.${Xn.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Xn.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Xn.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Xn.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:`${zY(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Xn.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Xn.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Xn.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Xn.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Xn.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Xn.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Xn.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Xn.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Xn.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Xn.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),qY=ke("span",{name:"MuiTooltip",slot:"Arrow"})(St(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Dt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let fg=!1;const qD=new C0;let Pf={x:0,y:0};function pg(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const nr=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:a,classes:s,components:c={},componentsProps:u={},describeChild:d=!1,disableFocusListener:p=!1,disableHoverListener:h=!1,disableInteractive:g=!1,disableTouchListener:y=!1,enterDelay:b=100,enterNextDelay:x=0,enterTouchDelay:S=700,followCursor:T=!1,id:D,leaveDelay:w=0,leaveTouchDelay:R=1500,onClose:I,onOpen:O,open:F,placement:j="bottom",PopperComponent:H,PopperProps:C={},slotProps:M={},slots:$={},title:z,TransitionComponent:q,TransitionProps:Y,...B}=r,X=k.isValidElement(a)?a:v.jsx("span",{children:a}),ae=nl(),te=Ch(),[N,oe]=k.useState(),[K,P]=k.useState(null),ee=k.useRef(!1),ce=g||T,re=Fl(),be=Fl(),ye=Fl(),Ge=Fl(),[Me,Oe]=my({controlled:F,default:!1,name:"Tooltip",state:"open"});let Qe=Me;const nt=id(D),Re=k.useRef(),gt=va(()=>{Re.current!==void 0&&(document.body.style.WebkitUserSelect=Re.current,Re.current=void 0),Ge.clear()});k.useEffect(()=>gt,[gt]);const _t=yt=>{qD.clear(),fg=!0,Oe(!0),O&&!Qe&&O(yt)},je=va(yt=>{qD.start(800+w,()=>{fg=!1}),Oe(!1),I&&Qe&&I(yt),re.start(ae.transitions.duration.shortest,()=>{ee.current=!1})}),mt=yt=>{ee.current&&yt.type!=="touchstart"||(N&&N.removeAttribute("title"),be.clear(),ye.clear(),b||fg&&x?be.start(fg?x:b,()=>{_t(yt)}):_t(yt))},lt=yt=>{be.clear(),ye.start(w,()=>{je(yt)})},[,ft]=k.useState(!1),Ue=yt=>{yy(yt.target)||(ft(!1),lt(yt))},Le=yt=>{N||oe(yt.currentTarget),yy(yt.target)&&(ft(!0),mt(yt))},Jt=yt=>{ee.current=!0;const ne=X.props;ne.onTouchStart&&ne.onTouchStart(yt)},jt=yt=>{Jt(yt),ye.clear(),re.clear(),gt(),Re.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Ge.start(S,()=>{document.body.style.WebkitUserSelect=Re.current,mt(yt)})},At=yt=>{X.props.onTouchEnd&&X.props.onTouchEnd(yt),gt(),ye.start(R,()=>{je(yt)})};k.useEffect(()=>{if(!Qe)return;function yt(ne){ne.key==="Escape"&&je(ne)}return document.addEventListener("keydown",yt),()=>{document.removeEventListener("keydown",yt)}},[je,Qe]);const de=Jn(sd(X),oe,n);!z&&z!==0&&(Qe=!1);const ge=k.useRef(),ze=yt=>{const ne=X.props;ne.onMouseMove&&ne.onMouseMove(yt),Pf={x:yt.clientX,y:yt.clientY},ge.current&&ge.current.update()},Xe={},Et=typeof z=="string";d?(Xe.title=!Qe&&Et&&!h?z:null,Xe["aria-describedby"]=Qe?nt:null):(Xe["aria-label"]=Et?z:null,Xe["aria-labelledby"]=Qe&&!Et?nt:null);const Je={...Xe,...B,...X.props,className:qe(B.className,X.props.className),onTouchStart:Jt,ref:de,...T?{onMouseMove:ze}:{}},en={};y||(Je.onTouchStart=jt,Je.onTouchEnd=At),h||(Je.onMouseOver=pg(mt,Je.onMouseOver),Je.onMouseLeave=pg(lt,Je.onMouseLeave),ce||(en.onMouseOver=mt,en.onMouseLeave=lt)),p||(Je.onFocus=pg(Le,Je.onFocus),Je.onBlur=pg(Ue,Je.onBlur),ce||(en.onFocus=Le,en.onBlur=Ue));const zt={...r,isRtl:te,arrow:o,disableInteractive:ce,placement:j,PopperComponentProp:H,touch:ee.current},Ke=typeof M.popper=="function"?M.popper(zt):M.popper,Ee=k.useMemo(()=>{let yt=[{name:"arrow",enabled:!!K,options:{element:K,padding:4}}];return C.popperOptions?.modifiers&&(yt=yt.concat(C.popperOptions.modifiers)),Ke?.popperOptions?.modifiers&&(yt=yt.concat(Ke.popperOptions.modifiers)),{...C.popperOptions,...Ke?.popperOptions,modifiers:yt}},[K,C.popperOptions,Ke?.popperOptions]),Se=$Y(zt),ht=typeof M.transition=="function"?M.transition(zt):M.transition,rt={slots:{popper:c.Popper,transition:c.Transition??q,tooltip:c.Tooltip,arrow:c.Arrow,...$},slotProps:{arrow:M.arrow??u.arrow,popper:{...C,...Ke??u.popper},tooltip:M.tooltip??u.tooltip,transition:{...Y,...ht??u.transition}}},[mn,Lr]=Ft("popper",{elementType:VY,externalForwardedProps:rt,ownerState:zt,className:qe(Se.popper,C?.className)}),[Er,Vn]=Ft("transition",{elementType:Ty,externalForwardedProps:rt,ownerState:zt}),[lr,fo]=Ft("tooltip",{elementType:GY,className:Se.tooltip,externalForwardedProps:rt,ownerState:zt}),[Tn,Mr]=Ft("arrow",{elementType:qY,className:Se.arrow,externalForwardedProps:rt,ownerState:zt,ref:P});return v.jsxs(k.Fragment,{children:[k.cloneElement(X,Je),v.jsx(mn,{as:H??m5,placement:j,anchorEl:T?{getBoundingClientRect:()=>({top:Pf.y,left:Pf.x,right:Pf.x,bottom:Pf.y,width:0,height:0})}:N,popperRef:ge,open:N?Qe:!1,id:nt,transition:!0,...en,...Lr,popperOptions:Ee,children:({TransitionProps:yt})=>v.jsx(Er,{timeout:ae.transitions.duration.shorter,...yt,...Vn,children:v.jsxs(lr,{...fo,children:[z,o?v.jsx(Tn,{...Mr}):null]})})})]})}),fn=dS({createStyledComponent:ke("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>dt({props:e,name:"MuiStack"})});function WY(e){return it("MuiSwitch",e)}const oo=ut("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),YY=e=>{const{classes:t,edge:n,size:r,color:o,checked:a,disabled:s}=e,c={root:["root",n&&`edge${Ne(n)}`,`size${Ne(r)}`],switchBase:["switchBase",`color${Ne(o)}`,a&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=st(c,WY,t);return{...t,...u}},KY=ke("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Ne(n.edge)}`],t[`size${Ne(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,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,[`& .${oo.thumb}`]:{width:16,height:16},[`& .${oo.switchBase}`]:{padding:4,[`&.${oo.checked}`]:{transform:"translateX(16px)"}}}}]}),QY=ke(hq,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${oo.input}`]:t.input},n.color!=="default"&&t[`color${Ne(n.color)}`]]}})(St(({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}),[`&.${oo.checked}`]:{transform:"translateX(20px)"},[`&.${oo.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${oo.checked} + .${oo.track}`]:{opacity:.5},[`&.${oo.disabled} + .${oo.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${oo.input}`]:{left:"-100%",width:"300%"}})),St(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Dt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(so(["light"])).map(([t])=>({props:{color:t},style:{[`&.${oo.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Dt(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${oo.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?Sh(e.palette[t].main,.62):Th(e.palette[t].main,.55)}`}},[`&.${oo.checked} + .${oo.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),XY=ke("span",{name:"MuiSwitch",slot:"Track"})(St(({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}`}))),ZY=ke("span",{name:"MuiSwitch",slot:"Thumb"})(St(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),JY=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiSwitch"}),{className:o,color:a="primary",edge:s=!1,size:c="medium",sx:u,slots:d={},slotProps:p={},...h}=r,g={...r,color:a,edge:s,size:c},y=YY(g),b={slots:d,slotProps:p},[x,S]=Ft("root",{className:qe(y.root,o),elementType:KY,externalForwardedProps:b,ownerState:g,additionalProps:{sx:u}}),[T,D]=Ft("thumb",{className:y.thumb,elementType:ZY,externalForwardedProps:b,ownerState:g}),w=v.jsx(T,{...D}),[R,I]=Ft("track",{className:y.track,elementType:XY,externalForwardedProps:b,ownerState:g});return v.jsxs(x,{...S,children:[v.jsx(QY,{type:"checkbox",icon:w,checkedIcon:w,ref:n,ownerState:g,...h,classes:{...y,root:y.switchBase},slots:{...d.switchBase&&{root:d.switchBase},...d.input&&{input:d.input}},slotProps:{...p.switchBase&&{root:typeof p.switchBase=="function"?p.switchBase(g):p.switchBase},...p.input&&{input:typeof p.input=="function"?p.input(g):p.input}}}),v.jsx(R,{...I})]})});function eK(e){return it("MuiTab",e)}const ia=ut("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),tK=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:a,label:s,selected:c,disabled:u}=e,d={root:["root",a&&s&&"labelIcon",`textColor${Ne(n)}`,r&&"fullWidth",o&&"wrapped",c&&"selected",u&&"disabled"],icon:["iconWrapper","icon"]};return st(d,eK,t)},nK=ke(mi,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Ne(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${ia.iconWrapper}`]:t.iconWrapper},{[`& .${ia.icon}`]:t.icon}]}})(St(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="top",style:{[`& > .${ia.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${ia.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${ia.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${ia.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${ia.selected}`]:{opacity:1},[`&.${ia.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${ia.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${ia.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${ia.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${ia.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),rK=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:s=!1,fullWidth:c,icon:u,iconPosition:d="top",indicator:p,label:h,onChange:g,onClick:y,onFocus:b,selected:x,selectionFollowsFocus:S,textColor:T="inherit",value:D,wrapped:w=!1,...R}=r,I={...r,disabled:a,disableFocusRipple:s,selected:x,icon:!!u,iconPosition:d,label:!!h,fullWidth:c,textColor:T,wrapped:w},O=tK(I),F=u&&h&&k.isValidElement(u)?k.cloneElement(u,{className:qe(O.icon,u.props.className)}):u,j=C=>{!x&&g&&g(C,D),y&&y(C)},H=C=>{S&&!x&&g&&g(C,D),b&&b(C)};return v.jsxs(nK,{focusRipple:!s,className:qe(O.root,o),ref:n,role:"tab","aria-selected":x,disabled:a,onClick:j,onFocus:H,ownerState:I,tabIndex:x?0:-1,...R,children:[d==="top"||d==="start"?v.jsxs(k.Fragment,{children:[F,h]}):v.jsxs(k.Fragment,{children:[h,F]}),p]})}),I5=k.createContext();function oK(e){return it("MuiTable",e)}ut("MuiTable",["root","stickyHeader"]);const aK=e=>{const{classes:t,stickyHeader:n}=e;return st({root:["root",n&&"stickyHeader"]},oK,t)},iK=ke("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(St(({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",$p=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiTable"}),{className:o,component:a=WD,padding:s="normal",size:c="medium",stickyHeader:u=!1,...d}=r,p={...r,component:a,padding:s,size:c,stickyHeader:u},h=aK(p),g=k.useMemo(()=>({padding:s,size:c,stickyHeader:u}),[s,c,u]);return v.jsx(I5.Provider,{value:g,children:v.jsx(iK,{as:a,role:a===WD?null:"table",ref:n,className:qe(h.root,o),ownerState:p,...d})})}),O0=k.createContext();function sK(e){return it("MuiTableBody",e)}ut("MuiTableBody",["root"]);const lK=e=>{const{classes:t}=e;return st({root:["root"]},sK,t)},cK=ke("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),uK={variant:"body"},YD="tbody",Vp=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiTableBody"}),{className:o,component:a=YD,...s}=r,c={...r,component:a},u=lK(c);return v.jsx(O0.Provider,{value:uK,children:v.jsx(cK,{className:qe(u.root,o),as:a,ref:n,role:a===YD?null:"rowgroup",ownerState:c,...s})})});function dK(e){return it("MuiTableCell",e)}const fK=ut("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),pK=e=>{const{classes:t,variant:n,align:r,padding:o,size:a,stickyHeader:s}=e,c={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${Ne(r)}`,o!=="normal"&&`padding${Ne(o)}`,`size${Ne(a)}`]};return st(c,dK,t)},hK=ke("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Ne(n.size)}`],n.padding!=="normal"&&t[`padding${Ne(n.padding)}`],n.align!=="inherit"&&t[`align${Ne(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(St(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
223
|
+
${e.palette.mode==="light"?Sh(Dt(e.palette.divider,1),.88):Th(Dt(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",[`&.${fK.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}}]}))),xn=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:s,padding:c,scope:u,size:d,sortDirection:p,variant:h,...g}=r,y=k.useContext(I5),b=k.useContext(O0),x=b&&b.variant==="head";let S;s?S=s:S=x?"th":"td";let T=u;S==="td"?T=void 0:!T&&x&&(T="col");const D=h||b&&b.variant,w={...r,align:o,component:S,padding:c||(y&&y.padding?y.padding:"normal"),size:d||(y&&y.size?y.size:"medium"),sortDirection:p,stickyHeader:D==="head"&&y&&y.stickyHeader,variant:D},R=pK(w);let I=null;return p&&(I=p==="asc"?"ascending":"descending"),v.jsx(hK,{as:S,ref:n,className:qe(R.root,a),"aria-sort":I,scope:T,ownerState:w,...g})});function mK(e){return it("MuiTableContainer",e)}ut("MuiTableContainer",["root"]);const gK=e=>{const{classes:t}=e;return st({root:["root"]},mK,t)},yK=ke("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),PS=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiTableContainer"}),{className:o,component:a="div",...s}=r,c={...r,component:a},u=gK(c);return v.jsx(yK,{ref:n,as:a,className:qe(u.root,o),ownerState:c,...s})});function bK(e){return it("MuiTableHead",e)}ut("MuiTableHead",["root"]);const vK=e=>{const{classes:t}=e;return st({root:["root"]},bK,t)},EK=ke("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),xK={variant:"head"},KD="thead",Sy=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiTableHead"}),{className:o,component:a=KD,...s}=r,c={...r,component:a},u=vK(c);return v.jsx(O0.Provider,{value:xK,children:v.jsx(EK,{as:a,className:qe(u.root,o),ref:n,role:a===KD?null:"rowgroup",ownerState:c,...s})})});function TK(e){return it("MuiToolbar",e)}ut("MuiToolbar",["root","gutters","regular","dense"]);const SK=e=>{const{classes:t,disableGutters:n,variant:r}=e;return st({root:["root",!n&&"gutters",r]},TK,t)},CK=ke("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(St(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),_K=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:s=!1,variant:c="regular",...u}=r,d={...r,component:a,disableGutters:s,variant:c},p=SK(d);return v.jsx(CK,{as:a,className:qe(p.root,o),ref:n,ownerState:d,...u})}),AK=vi(v.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),kK=vi(v.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}));function wK(e){return it("MuiTableRow",e)}const QD=ut("MuiTableRow",["root","selected","hover","head","footer"]),DK=e=>{const{classes:t,selected:n,hover:r,head:o,footer:a}=e;return st({root:["root",n&&"selected",r&&"hover",o&&"head",a&&"footer"]},wK,t)},RK=ke("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(St(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${QD.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${QD.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Dt(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}))`:Dt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),XD="tr",ui=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiTableRow"}),{className:o,component:a=XD,hover:s=!1,selected:c=!1,...u}=r,d=k.useContext(O0),p={...r,component:a,hover:s,selected:c,head:d&&d.variant==="head",footer:d&&d.variant==="footer"},h=DK(p);return v.jsx(RK,{as:a,ref:n,className:qe(h.root,o),role:a===XD?null:"row",ownerState:p,...u})});function IK(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function OK(e,t,n,r={},o=()=>{}){const{ease:a=IK,duration:s=300}=r;let c=null;const u=t[e];let d=!1;const p=()=>{d=!0},h=g=>{if(d){o(new Error("Animation cancelled"));return}c===null&&(c=g);const y=Math.min(1,(g-c)/s);if(t[e]=a(y)*(n-u)+u,y>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(h)};return u===n?(o(new Error("Element already at target position")),p):(requestAnimationFrame(h),p)}const NK={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function PK(e){const{onChange:t,...n}=e,r=k.useRef(),o=k.useRef(null),a=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Wo(()=>{const s=S0(()=>{const u=r.current;a(),u!==r.current&&t(r.current)}),c=Ua(o.current);return c.addEventListener("resize",s),()=>{s.clear(),c.removeEventListener("resize",s)}},[t]),k.useEffect(()=>{a(),t(r.current)},[t]),v.jsx("div",{style:NK,...n,ref:o})}function LK(e){return it("MuiTabScrollButton",e)}const MK=ut("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),FK=e=>{const{classes:t,orientation:n,disabled:r}=e;return st({root:["root",n,r&&"disabled"]},LK,t)},BK=ke(mi,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${MK.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),jK=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiTabScrollButton"}),{className:o,slots:a={},slotProps:s={},direction:c,orientation:u,disabled:d,...p}=r,h=Ch(),g={isRtl:h,...r},y=FK(g),b=a.StartScrollButtonIcon??AK,x=a.EndScrollButtonIcon??kK,S=Jl({elementType:b,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g}),T=Jl({elementType:x,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g});return v.jsx(BK,{component:"div",className:qe(y.root,o),ref:n,role:null,ownerState:g,tabIndex:null,...p,style:{...p.style,...u==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${h?-90:90}deg)`}},children:c==="left"?v.jsx(b,{...S}):v.jsx(x,{...T})})});function UK(e){return it("MuiTabs",e)}const Z1=ut("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),ZD=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,JD=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,hg=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const a=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||a)o=n(e,o);else{o.focus();return}}},HK=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:a,centered:s,scrollButtonsHideMobile:c,classes:u}=e;return st({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",c&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},UK,u)},zK=ke("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Z1.scrollButtons}`]:t.scrollButtons},{[`& .${Z1.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(St(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${Z1.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),$K=ke("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),VK=ke("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.list,t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),GK=ke("span",{name:"MuiTabs",slot:"Indicator"})(St(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),qK=ke(PK)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),eR={},WK=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiTabs"}),o=nl(),a=Ch(),{"aria-label":s,"aria-labelledby":c,action:u,centered:d=!1,children:p,className:h,component:g="div",allowScrollButtonsMobile:y=!1,indicatorColor:b="primary",onChange:x,orientation:S="horizontal",ScrollButtonComponent:T,scrollButtons:D="auto",selectionFollowsFocus:w,slots:R={},slotProps:I={},TabIndicatorProps:O={},TabScrollButtonProps:F={},textColor:j="primary",value:H,variant:C="standard",visibleScrollbar:M=!1,...$}=r,z=C==="scrollable",q=S==="vertical",Y=q?"scrollTop":"scrollLeft",B=q?"top":"left",X=q?"bottom":"right",ae=q?"clientHeight":"clientWidth",te=q?"height":"width",N={...r,component:g,allowScrollButtonsMobile:y,indicatorColor:b,orientation:S,vertical:q,scrollButtons:D,textColor:j,variant:C,visibleScrollbar:M,fixed:!z,hideScrollbar:z&&!M,scrollableX:z&&!q,scrollableY:z&&q,centered:d&&!z,scrollButtonsHideMobile:!y},oe=HK(N),K=Jl({elementType:R.StartScrollButtonIcon,externalSlotProps:I.startScrollButtonIcon,ownerState:N}),P=Jl({elementType:R.EndScrollButtonIcon,externalSlotProps:I.endScrollButtonIcon,ownerState:N}),[ee,ce]=k.useState(!1),[re,be]=k.useState(eR),[ye,Ge]=k.useState(!1),[Me,Oe]=k.useState(!1),[Qe,nt]=k.useState(!1),[Re,gt]=k.useState({overflow:"hidden",scrollbarWidth:0}),_t=new Map,je=k.useRef(null),mt=k.useRef(null),lt={slots:R,slotProps:{indicator:O,scrollButton:F,...I}},ft=()=>{const J=je.current;let ie;if(J){const we=J.getBoundingClientRect();ie={clientWidth:J.clientWidth,scrollLeft:J.scrollLeft,scrollTop:J.scrollTop,scrollWidth:J.scrollWidth,top:we.top,bottom:we.bottom,left:we.left,right:we.right}}let ve;if(J&&H!==!1){const we=mt.current.children;if(we.length>0){const Ye=we[_t.get(H)];ve=Ye?Ye.getBoundingClientRect():null}}return{tabsMeta:ie,tabMeta:ve}},Ue=va(()=>{const{tabsMeta:J,tabMeta:ie}=ft();let ve=0,we;q?(we="top",ie&&J&&(ve=ie.top-J.top+J.scrollTop)):(we=a?"right":"left",ie&&J&&(ve=(a?-1:1)*(ie[we]-J[we]+J.scrollLeft)));const Ye={[we]:ve,[te]:ie?ie[te]:0};if(typeof re[we]!="number"||typeof re[te]!="number")be(Ye);else{const ot=Math.abs(re[we]-Ye[we]),Ze=Math.abs(re[te]-Ye[te]);(ot>=1||Ze>=1)&&be(Ye)}}),Le=(J,{animation:ie=!0}={})=>{ie?OK(Y,je.current,J,{duration:o.transitions.duration.standard}):je.current[Y]=J},Jt=J=>{let ie=je.current[Y];q?ie+=J:ie+=J*(a?-1:1),Le(ie)},jt=()=>{const J=je.current[ae];let ie=0;const ve=Array.from(mt.current.children);for(let we=0;we<ve.length;we+=1){const Ye=ve[we];if(ie+Ye[ae]>J){we===0&&(ie=J);break}ie+=Ye[ae]}return ie},At=()=>{Jt(-1*jt())},de=()=>{Jt(jt())},[ge,{onChange:ze,...Xe}]=Ft("scrollbar",{className:qe(oe.scrollableX,oe.hideScrollbar),elementType:qK,shouldForwardComponentProp:!0,externalForwardedProps:lt,ownerState:N}),Et=k.useCallback(J=>{ze?.(J),gt({overflow:null,scrollbarWidth:J})},[ze]),[Je,en]=Ft("scrollButtons",{className:qe(oe.scrollButtons,F.className),elementType:jK,externalForwardedProps:lt,ownerState:N,additionalProps:{orientation:S,slots:{StartScrollButtonIcon:R.startScrollButtonIcon||R.StartScrollButtonIcon,EndScrollButtonIcon:R.endScrollButtonIcon||R.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:K,endScrollButtonIcon:P}}}),zt=()=>{const J={};J.scrollbarSizeListener=z?v.jsx(ge,{...Xe,onChange:Et}):null;const ve=z&&(D==="auto"&&(ye||Me)||D===!0);return J.scrollButtonStart=ve?v.jsx(Je,{direction:a?"right":"left",onClick:At,disabled:!ye,...en}):null,J.scrollButtonEnd=ve?v.jsx(Je,{direction:a?"left":"right",onClick:de,disabled:!Me,...en}):null,J},Ke=va(J=>{const{tabsMeta:ie,tabMeta:ve}=ft();if(!(!ve||!ie)){if(ve[B]<ie[B]){const we=ie[Y]+(ve[B]-ie[B]);Le(we,{animation:J})}else if(ve[X]>ie[X]){const we=ie[Y]+(ve[X]-ie[X]);Le(we,{animation:J})}}}),Ee=va(()=>{z&&D!==!1&&nt(!Qe)});k.useEffect(()=>{const J=S0(()=>{je.current&&Ue()});let ie;const ve=ot=>{ot.forEach(Ze=>{Ze.removedNodes.forEach(ct=>{ie?.unobserve(ct)}),Ze.addedNodes.forEach(ct=>{ie?.observe(ct)})}),J(),Ee()},we=Ua(je.current);we.addEventListener("resize",J);let Ye;return typeof ResizeObserver<"u"&&(ie=new ResizeObserver(J),Array.from(mt.current.children).forEach(ot=>{ie.observe(ot)})),typeof MutationObserver<"u"&&(Ye=new MutationObserver(ve),Ye.observe(mt.current,{childList:!0})),()=>{J.clear(),we.removeEventListener("resize",J),Ye?.disconnect(),ie?.disconnect()}},[Ue,Ee]),k.useEffect(()=>{const J=Array.from(mt.current.children),ie=J.length;if(typeof IntersectionObserver<"u"&&ie>0&&z&&D!==!1){const ve=J[0],we=J[ie-1],Ye={root:je.current,threshold:.99},ot=bt=>{Ge(!bt[0].isIntersecting)},Ze=new IntersectionObserver(ot,Ye);Ze.observe(ve);const ct=bt=>{Oe(!bt[0].isIntersecting)},et=new IntersectionObserver(ct,Ye);return et.observe(we),()=>{Ze.disconnect(),et.disconnect()}}},[z,D,Qe,p?.length]),k.useEffect(()=>{ce(!0)},[]),k.useEffect(()=>{Ue()}),k.useEffect(()=>{Ke(eR!==re)},[Ke,re]),k.useImperativeHandle(u,()=>({updateIndicator:Ue,updateScrollButtons:Ee}),[Ue,Ee]);const[Se,ht]=Ft("indicator",{className:qe(oe.indicator,O.className),elementType:GK,externalForwardedProps:lt,ownerState:N,additionalProps:{style:re}}),rt=v.jsx(Se,{...ht});let mn=0;const Lr=k.Children.map(p,J=>{if(!k.isValidElement(J))return null;const ie=J.props.value===void 0?mn:J.props.value;_t.set(ie,mn);const ve=ie===H;return mn+=1,k.cloneElement(J,{fullWidth:C==="fullWidth",indicator:ve&&!ee&&rt,selected:ve,selectionFollowsFocus:w,onChange:x,textColor:j,value:ie,...mn===1&&H===!1&&!J.props.tabIndex?{tabIndex:0}:{}})}),Er=J=>{if(J.altKey||J.shiftKey||J.ctrlKey||J.metaKey)return;const ie=mt.current,ve=ko(ie).activeElement;if(ve.getAttribute("role")!=="tab")return;let Ye=S==="horizontal"?"ArrowLeft":"ArrowUp",ot=S==="horizontal"?"ArrowRight":"ArrowDown";switch(S==="horizontal"&&a&&(Ye="ArrowRight",ot="ArrowLeft"),J.key){case Ye:J.preventDefault(),hg(ie,ve,JD);break;case ot:J.preventDefault(),hg(ie,ve,ZD);break;case"Home":J.preventDefault(),hg(ie,null,ZD);break;case"End":J.preventDefault(),hg(ie,null,JD);break}},Vn=zt(),[lr,fo]=Ft("root",{ref:n,className:qe(oe.root,h),elementType:zK,externalForwardedProps:{...lt,...$,component:g},ownerState:N}),[Tn,Mr]=Ft("scroller",{ref:je,className:oe.scroller,elementType:$K,externalForwardedProps:lt,ownerState:N,additionalProps:{style:{overflow:Re.overflow,[q?`margin${a?"Left":"Right"}`:"marginBottom"]:M?void 0:-Re.scrollbarWidth}}}),[yt,ne]=Ft("list",{ref:mt,className:qe(oe.list,oe.flexContainer),elementType:VK,externalForwardedProps:lt,ownerState:N,getSlotProps:J=>({...J,onKeyDown:ie=>{Er(ie),J.onKeyDown?.(ie)}})});return v.jsxs(lr,{...fo,children:[Vn.scrollButtonStart,Vn.scrollbarSizeListener,v.jsxs(Tn,{...Mr,children:[v.jsx(yt,{"aria-label":s,"aria-labelledby":c,"aria-orientation":S==="vertical"?"vertical":null,role:"tablist",...ne,children:Lr}),ee&&rt]}),Vn.scrollButtonEnd]})});function YK(e){return it("MuiTextField",e)}ut("MuiTextField",["root"]);const KK={standard:DS,filled:wS,outlined:IS},QK=e=>{const{classes:t}=e;return st({root:["root"]},YK,t)},XK=ke(xy,{name:"MuiTextField",slot:"Root"})({}),ZK=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:s,className:c,color:u="primary",defaultValue:d,disabled:p=!1,error:h=!1,FormHelperTextProps:g,fullWidth:y=!1,helperText:b,id:x,InputLabelProps:S,inputProps:T,InputProps:D,inputRef:w,label:R,maxRows:I,minRows:O,multiline:F=!1,name:j,onBlur:H,onChange:C,onFocus:M,placeholder:$,required:z=!1,rows:q,select:Y=!1,SelectProps:B,slots:X={},slotProps:ae={},type:te,value:N,variant:oe="outlined",...K}=r,P={...r,autoFocus:a,color:u,disabled:p,error:h,fullWidth:y,multiline:F,required:z,select:Y,variant:oe},ee=QK(P),ce=id(x),re=b&&ce?`${ce}-helper-text`:void 0,be=R&&ce?`${ce}-label`:void 0,ye=KK[oe],Ge={slots:X,slotProps:{input:D,inputLabel:S,htmlInput:T,formHelperText:g,select:B,...ae}},Me={},Oe=Ge.slotProps.inputLabel;oe==="outlined"&&(Oe&&typeof Oe.shrink<"u"&&(Me.notched=Oe.shrink),Me.label=R),Y&&((!B||!B.native)&&(Me.id=void 0),Me["aria-describedby"]=void 0);const[Qe,nt]=Ft("root",{elementType:XK,shouldForwardComponentProp:!0,externalForwardedProps:{...Ge,...K},ownerState:P,className:qe(ee.root,c),ref:n,additionalProps:{disabled:p,error:h,fullWidth:y,required:z,color:u,variant:oe}}),[Re,gt]=Ft("input",{elementType:ye,externalForwardedProps:Ge,additionalProps:Me,ownerState:P}),[_t,je]=Ft("inputLabel",{elementType:S5,externalForwardedProps:Ge,ownerState:P}),[mt,lt]=Ft("htmlInput",{elementType:"input",externalForwardedProps:Ge,ownerState:P}),[ft,Ue]=Ft("formHelperText",{elementType:SW,externalForwardedProps:Ge,ownerState:P}),[Le,Jt]=Ft("select",{elementType:NS,externalForwardedProps:Ge,ownerState:P}),jt=v.jsx(Re,{"aria-describedby":re,autoComplete:o,autoFocus:a,defaultValue:d,fullWidth:y,multiline:F,name:j,rows:q,maxRows:I,minRows:O,type:te,value:N,id:ce,inputRef:w,onBlur:H,onChange:C,onFocus:M,placeholder:$,inputProps:lt,slots:{input:X.htmlInput?mt:void 0},...gt});return v.jsxs(Qe,{...nt,children:[R!=null&&R!==""&&v.jsx(_t,{htmlFor:ce,id:be,...je,children:R}),Y?v.jsx(Le,{"aria-describedby":re,id:ce,labelId:be,value:N,input:jt,...Jt,children:s}):jt,b&&v.jsx(ft,{id:re,...Ue,children:b})]})});function O5(e,t){return function(){return e.apply(t,arguments)}}const{toString:JK}=Object.prototype,{getPrototypeOf:LS}=Object,{iterator:N0,toStringTag:N5}=Symbol,P0=(e=>t=>{const n=JK.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ga=e=>(e=e.toLowerCase(),t=>P0(t)===e),L0=e=>t=>typeof t===e,{isArray:ld}=Array,Gp=L0("undefined");function eQ(e){return e!==null&&!Gp(e)&&e.constructor!==null&&!Gp(e.constructor)&&Co(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const P5=Ga("ArrayBuffer");function tQ(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&P5(e.buffer),t}const nQ=L0("string"),Co=L0("function"),L5=L0("number"),M0=e=>e!==null&&typeof e=="object",rQ=e=>e===!0||e===!1,zg=e=>{if(P0(e)!=="object")return!1;const t=LS(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(N5 in e)&&!(N0 in e)},oQ=Ga("Date"),aQ=Ga("File"),iQ=Ga("Blob"),sQ=Ga("FileList"),lQ=e=>M0(e)&&Co(e.pipe),cQ=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Co(e.append)&&((t=P0(e))==="formdata"||t==="object"&&Co(e.toString)&&e.toString()==="[object FormData]"))},uQ=Ga("URLSearchParams"),[dQ,fQ,pQ,hQ]=["ReadableStream","Request","Response","Headers"].map(Ga),mQ=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function wh(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),ld(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),s=a.length;let c;for(r=0;r<s;r++)c=a[r],t.call(null,e[c],c,e)}}function M5(e,t){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 Bl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,F5=e=>!Gp(e)&&e!==Bl;function kx(){const{caseless:e}=F5(this)&&this||{},t={},n=(r,o)=>{const a=e&&M5(t,o)||o;zg(t[a])&&zg(r)?t[a]=kx(t[a],r):zg(r)?t[a]=kx({},r):ld(r)?t[a]=r.slice():t[a]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&wh(arguments[r],n);return t}const gQ=(e,t,n,{allOwnKeys:r}={})=>(wh(t,(o,a)=>{n&&Co(o)?e[a]=O5(o,n):e[a]=o},{allOwnKeys:r}),e),yQ=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),bQ=(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)},vQ=(e,t,n,r)=>{let o,a,s;const c={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)s=o[a],(!r||r(s,e,t))&&!c[s]&&(t[s]=e[s],c[s]=!0);e=n!==!1&&LS(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},EQ=(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},xQ=e=>{if(!e)return null;if(ld(e))return e;let t=e.length;if(!L5(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},TQ=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&LS(Uint8Array)),SQ=(e,t)=>{const r=(e&&e[N0]).call(e);let o;for(;(o=r.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},CQ=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},_Q=Ga("HTMLFormElement"),AQ=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),tR=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),kQ=Ga("RegExp"),B5=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};wh(n,(o,a)=>{let s;(s=t(o,a,e))!==!1&&(r[a]=s||o)}),Object.defineProperties(e,r)},wQ=e=>{B5(e,(t,n)=>{if(Co(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Co(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+"'")})}})},DQ=(e,t)=>{const n={},r=o=>{o.forEach(a=>{n[a]=!0})};return ld(e)?r(e):r(String(e).split(t)),n},RQ=()=>{},IQ=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function OQ(e){return!!(e&&Co(e.append)&&e[N5]==="FormData"&&e[N0])}const NQ=e=>{const t=new Array(10),n=(r,o)=>{if(M0(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const a=ld(r)?[]:{};return wh(r,(s,c)=>{const u=n(s,o+1);!Gp(u)&&(a[c]=u)}),t[o]=void 0,a}}return r};return n(e,0)},PQ=Ga("AsyncFunction"),LQ=e=>e&&(M0(e)||Co(e))&&Co(e.then)&&Co(e.catch),j5=((e,t)=>e?setImmediate:t?((n,r)=>(Bl.addEventListener("message",({source:o,data:a})=>{o===Bl&&a===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Bl.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Co(Bl.postMessage)),MQ=typeof queueMicrotask<"u"?queueMicrotask.bind(Bl):typeof process<"u"&&process.nextTick||j5,FQ=e=>e!=null&&Co(e[N0]),xe={isArray:ld,isArrayBuffer:P5,isBuffer:eQ,isFormData:cQ,isArrayBufferView:tQ,isString:nQ,isNumber:L5,isBoolean:rQ,isObject:M0,isPlainObject:zg,isReadableStream:dQ,isRequest:fQ,isResponse:pQ,isHeaders:hQ,isUndefined:Gp,isDate:oQ,isFile:aQ,isBlob:iQ,isRegExp:kQ,isFunction:Co,isStream:lQ,isURLSearchParams:uQ,isTypedArray:TQ,isFileList:sQ,forEach:wh,merge:kx,extend:gQ,trim:mQ,stripBOM:yQ,inherits:bQ,toFlatObject:vQ,kindOf:P0,kindOfTest:Ga,endsWith:EQ,toArray:xQ,forEachEntry:SQ,matchAll:CQ,isHTMLForm:_Q,hasOwnProperty:tR,hasOwnProp:tR,reduceDescriptors:B5,freezeMethods:wQ,toObjectSet:DQ,toCamelCase:AQ,noop:RQ,toFiniteNumber:IQ,findKey:M5,global:Bl,isContextDefined:F5,isSpecCompliantForm:OQ,toJSONObject:NQ,isAsyncFn:PQ,isThenable:LQ,setImmediate:j5,asap:MQ,isIterable:FQ};function Lt(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)}xe.inherits(Lt,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:xe.toJSONObject(this.config),code:this.code,status:this.status}}});const U5=Lt.prototype,H5={};["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=>{H5[e]={value:e}});Object.defineProperties(Lt,H5);Object.defineProperty(U5,"isAxiosError",{value:!0});Lt.from=(e,t,n,r,o,a)=>{const s=Object.create(U5);return xe.toFlatObject(e,s,function(u){return u!==Error.prototype},c=>c!=="isAxiosError"),Lt.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,a&&Object.assign(s,a),s};const BQ=null;function wx(e){return xe.isPlainObject(e)||xe.isArray(e)}function z5(e){return xe.endsWith(e,"[]")?e.slice(0,-2):e}function nR(e,t,n){return e?e.concat(t).map(function(o,a){return o=z5(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function jQ(e){return xe.isArray(e)&&!e.some(wx)}const UQ=xe.toFlatObject(xe,{},null,function(t){return/^is[A-Z]/.test(t)});function F0(e,t,n){if(!xe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=xe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,S){return!xe.isUndefined(S[x])});const r=n.metaTokens,o=n.visitor||p,a=n.dots,s=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&xe.isSpecCompliantForm(t);if(!xe.isFunction(o))throw new TypeError("visitor must be a function");function d(b){if(b===null)return"";if(xe.isDate(b))return b.toISOString();if(!u&&xe.isBlob(b))throw new Lt("Blob is not supported. Use a Buffer instead.");return xe.isArrayBuffer(b)||xe.isTypedArray(b)?u&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function p(b,x,S){let T=b;if(b&&!S&&typeof b=="object"){if(xe.endsWith(x,"{}"))x=r?x:x.slice(0,-2),b=JSON.stringify(b);else if(xe.isArray(b)&&jQ(b)||(xe.isFileList(b)||xe.endsWith(x,"[]"))&&(T=xe.toArray(b)))return x=z5(x),T.forEach(function(w,R){!(xe.isUndefined(w)||w===null)&&t.append(s===!0?nR([x],R,a):s===null?x:x+"[]",d(w))}),!1}return wx(b)?!0:(t.append(nR(S,x,a),d(b)),!1)}const h=[],g=Object.assign(UQ,{defaultVisitor:p,convertValue:d,isVisitable:wx});function y(b,x){if(!xe.isUndefined(b)){if(h.indexOf(b)!==-1)throw Error("Circular reference detected in "+x.join("."));h.push(b),xe.forEach(b,function(T,D){(!(xe.isUndefined(T)||T===null)&&o.call(t,T,xe.isString(D)?D.trim():D,x,g))===!0&&y(T,x?x.concat(D):[D])}),h.pop()}}if(!xe.isObject(e))throw new TypeError("data must be an object");return y(e),t}function rR(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function MS(e,t){this._pairs=[],e&&F0(e,this,t)}const $5=MS.prototype;$5.append=function(t,n){this._pairs.push([t,n])};$5.toString=function(t){const n=t?function(r){return t.call(this,r,rR)}:rR;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function HQ(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function V5(e,t,n){if(!t)return e;const r=n&&n.encode||HQ;xe.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let a;if(o?a=o(t,n):a=xe.isURLSearchParams(t)?t.toString():new MS(t,n).toString(r),a){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class oR{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){xe.forEach(this.handlers,function(r){r!==null&&t(r)})}}const G5={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},zQ=typeof URLSearchParams<"u"?URLSearchParams:MS,$Q=typeof FormData<"u"?FormData:null,VQ=typeof Blob<"u"?Blob:null,GQ={isBrowser:!0,classes:{URLSearchParams:zQ,FormData:$Q,Blob:VQ},protocols:["http","https","file","blob","url","data"]},FS=typeof window<"u"&&typeof document<"u",Dx=typeof navigator=="object"&&navigator||void 0,qQ=FS&&(!Dx||["ReactNative","NativeScript","NS"].indexOf(Dx.product)<0),WQ=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",YQ=FS&&window.location.href||"http://localhost",KQ=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:FS,hasStandardBrowserEnv:qQ,hasStandardBrowserWebWorkerEnv:WQ,navigator:Dx,origin:YQ},Symbol.toStringTag,{value:"Module"})),Qr={...KQ,...GQ};function QQ(e,t){return F0(e,new Qr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,a){return Qr.isNode&&xe.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function XQ(e){return xe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ZQ(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 q5(e){function t(n,r,o,a){let s=n[a++];if(s==="__proto__")return!0;const c=Number.isFinite(+s),u=a>=n.length;return s=!s&&xe.isArray(o)?o.length:s,u?(xe.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!c):((!o[s]||!xe.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],a)&&xe.isArray(o[s])&&(o[s]=ZQ(o[s])),!c)}if(xe.isFormData(e)&&xe.isFunction(e.entries)){const n={};return xe.forEachEntry(e,(r,o)=>{t(XQ(r),o,n,0)}),n}return null}function JQ(e,t,n){if(xe.isString(e))try{return(t||JSON.parse)(e),xe.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Dh={transitional:G5,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=xe.isObject(t);if(a&&xe.isHTMLForm(t)&&(t=new FormData(t)),xe.isFormData(t))return o?JSON.stringify(q5(t)):t;if(xe.isArrayBuffer(t)||xe.isBuffer(t)||xe.isStream(t)||xe.isFile(t)||xe.isBlob(t)||xe.isReadableStream(t))return t;if(xe.isArrayBufferView(t))return t.buffer;if(xe.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return QQ(t,this.formSerializer).toString();if((c=xe.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return F0(c?{"files[]":t}:t,u&&new u,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),JQ(t)):t}],transformResponse:[function(t){const n=this.transitional||Dh.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(xe.isResponse(t)||xe.isReadableStream(t))return t;if(t&&xe.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(c){if(s)throw c.name==="SyntaxError"?Lt.from(c,Lt.ERR_BAD_RESPONSE,this,null,this.response):c}}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}}};xe.forEach(["delete","get","head","post","put","patch"],e=>{Dh.headers[e]={}});const eX=xe.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"]),tX=e=>{const t={};let n,r,o;return e&&e.split(`
|
|
224
|
+
`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&eX[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},aR=Symbol("internals");function Lf(e){return e&&String(e).trim().toLowerCase()}function $g(e){return e===!1||e==null?e:xe.isArray(e)?e.map($g):String(e)}function nX(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 rX=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function J1(e,t,n,r,o){if(xe.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!xe.isString(t)){if(xe.isString(r))return t.indexOf(r)!==-1;if(xe.isRegExp(r))return r.test(t)}}function oX(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function aX(e,t){const n=xe.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,a,s){return this[r].call(this,t,o,a,s)},configurable:!0})})}let _o=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function a(c,u,d){const p=Lf(u);if(!p)throw new Error("header name must be a non-empty string");const h=xe.findKey(o,p);(!h||o[h]===void 0||d===!0||d===void 0&&o[h]!==!1)&&(o[h||u]=$g(c))}const s=(c,u)=>xe.forEach(c,(d,p)=>a(d,p,u));if(xe.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(xe.isString(t)&&(t=t.trim())&&!rX(t))s(tX(t),n);else if(xe.isObject(t)&&xe.isIterable(t)){let c={},u,d;for(const p of t){if(!xe.isArray(p))throw TypeError("Object iterator must return a key-value pair");c[d=p[0]]=(u=c[d])?xe.isArray(u)?[...u,p[1]]:[u,p[1]]:p[1]}s(c,n)}else t!=null&&a(n,t,r);return this}get(t,n){if(t=Lf(t),t){const r=xe.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return nX(o);if(xe.isFunction(n))return n.call(this,o,r);if(xe.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Lf(t),t){const r=xe.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||J1(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function a(s){if(s=Lf(s),s){const c=xe.findKey(r,s);c&&(!n||J1(r,r[c],c,n))&&(delete r[c],o=!0)}}return xe.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||J1(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,r={};return xe.forEach(this,(o,a)=>{const s=xe.findKey(r,a);if(s){n[s]=$g(o),delete n[a];return}const c=t?oX(a):String(a).trim();c!==a&&delete n[a],n[c]=$g(o),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return xe.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&xe.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(`
|
|
225
|
+
`)}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[aR]=this[aR]={accessors:{}}).accessors,o=this.prototype;function a(s){const c=Lf(s);r[c]||(aX(o,s),r[c]=!0)}return xe.isArray(t)?t.forEach(a):a(t),this}};_o.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);xe.reduceDescriptors(_o.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});xe.freezeMethods(_o);function eE(e,t){const n=this||Dh,r=t||n,o=_o.from(r.headers);let a=r.data;return xe.forEach(e,function(c){a=c.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function W5(e){return!!(e&&e.__CANCEL__)}function cd(e,t,n){Lt.call(this,e??"canceled",Lt.ERR_CANCELED,t,n),this.name="CanceledError"}xe.inherits(cd,Lt,{__CANCEL__:!0});function Y5(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Lt("Request failed with status code "+n.status,[Lt.ERR_BAD_REQUEST,Lt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function iX(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function sX(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,a=0,s;return t=t!==void 0?t:1e3,function(u){const d=Date.now(),p=r[a];s||(s=d),n[o]=u,r[o]=d;let h=a,g=0;for(;h!==o;)g+=n[h++],h=h%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),d-s<t)return;const y=p&&d-p;return y?Math.round(g*1e3/y):void 0}}function lX(e,t){let n=0,r=1e3/t,o,a;const s=(d,p=Date.now())=>{n=p,o=null,a&&(clearTimeout(a),a=null),e.apply(null,d)};return[(...d)=>{const p=Date.now(),h=p-n;h>=r?s(d,p):(o=d,a||(a=setTimeout(()=>{a=null,s(o)},r-h)))},()=>o&&s(o)]}const Cy=(e,t,n=3)=>{let r=0;const o=sX(50,250);return lX(a=>{const s=a.loaded,c=a.lengthComputable?a.total:void 0,u=s-r,d=o(u),p=s<=c;r=s;const h={loaded:s,total:c,progress:c?s/c:void 0,bytes:u,rate:d||void 0,estimated:d&&c&&p?(c-s)/d:void 0,event:a,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(h)},n)},iR=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},sR=e=>(...t)=>xe.asap(()=>e(...t)),cX=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,uX=Qr.hasStandardBrowserEnv?{write(e,t,n,r,o,a){const s=[e+"="+encodeURIComponent(t)];xe.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),xe.isString(r)&&s.push("path="+r),xe.isString(o)&&s.push("domain="+o),a===!0&&s.push("secure"),document.cookie=s.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 dX(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function fX(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function K5(e,t,n){let r=!dX(t);return e&&(r||n==!1)?fX(e,t):t}const lR=e=>e instanceof _o?{...e}:e;function rc(e,t){t=t||{};const n={};function r(d,p,h,g){return xe.isPlainObject(d)&&xe.isPlainObject(p)?xe.merge.call({caseless:g},d,p):xe.isPlainObject(p)?xe.merge({},p):xe.isArray(p)?p.slice():p}function o(d,p,h,g){if(xe.isUndefined(p)){if(!xe.isUndefined(d))return r(void 0,d,h,g)}else return r(d,p,h,g)}function a(d,p){if(!xe.isUndefined(p))return r(void 0,p)}function s(d,p){if(xe.isUndefined(p)){if(!xe.isUndefined(d))return r(void 0,d)}else return r(void 0,p)}function c(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:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c,headers:(d,p,h)=>o(lR(d),lR(p),h,!0)};return xe.forEach(Object.keys(Object.assign({},e,t)),function(p){const h=u[p]||o,g=h(e[p],t[p],p);xe.isUndefined(g)&&h!==c||(n[p]=g)}),n}const Q5=e=>{const t=rc({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:c}=t;t.headers=s=_o.from(s),t.url=V5(K5(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let u;if(xe.isFormData(n)){if(Qr.hasStandardBrowserEnv||Qr.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((u=s.getContentType())!==!1){const[d,...p]=u?u.split(";").map(h=>h.trim()).filter(Boolean):[];s.setContentType([d||"multipart/form-data",...p].join("; "))}}if(Qr.hasStandardBrowserEnv&&(r&&xe.isFunction(r)&&(r=r(t)),r||r!==!1&&cX(t.url))){const d=o&&a&&uX.read(a);d&&s.set(o,d)}return t},pX=typeof XMLHttpRequest<"u",hX=pX&&function(e){return new Promise(function(n,r){const o=Q5(e);let a=o.data;const s=_o.from(o.headers).normalize();let{responseType:c,onUploadProgress:u,onDownloadProgress:d}=o,p,h,g,y,b;function x(){y&&y(),b&&b(),o.cancelToken&&o.cancelToken.unsubscribe(p),o.signal&&o.signal.removeEventListener("abort",p)}let S=new XMLHttpRequest;S.open(o.method.toUpperCase(),o.url,!0),S.timeout=o.timeout;function T(){if(!S)return;const w=_o.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),I={data:!c||c==="text"||c==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:w,config:e,request:S};Y5(function(F){n(F),x()},function(F){r(F),x()},I),S=null}"onloadend"in S?S.onloadend=T:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.indexOf("file:")===0)||setTimeout(T)},S.onabort=function(){S&&(r(new Lt("Request aborted",Lt.ECONNABORTED,e,S)),S=null)},S.onerror=function(){r(new Lt("Network Error",Lt.ERR_NETWORK,e,S)),S=null},S.ontimeout=function(){let R=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const I=o.transitional||G5;o.timeoutErrorMessage&&(R=o.timeoutErrorMessage),r(new Lt(R,I.clarifyTimeoutError?Lt.ETIMEDOUT:Lt.ECONNABORTED,e,S)),S=null},a===void 0&&s.setContentType(null),"setRequestHeader"in S&&xe.forEach(s.toJSON(),function(R,I){S.setRequestHeader(I,R)}),xe.isUndefined(o.withCredentials)||(S.withCredentials=!!o.withCredentials),c&&c!=="json"&&(S.responseType=o.responseType),d&&([g,b]=Cy(d,!0),S.addEventListener("progress",g)),u&&S.upload&&([h,y]=Cy(u),S.upload.addEventListener("progress",h),S.upload.addEventListener("loadend",y)),(o.cancelToken||o.signal)&&(p=w=>{S&&(r(!w||w.type?new cd(null,e,S):w),S.abort(),S=null)},o.cancelToken&&o.cancelToken.subscribe(p),o.signal&&(o.signal.aborted?p():o.signal.addEventListener("abort",p)));const D=iX(o.url);if(D&&Qr.protocols.indexOf(D)===-1){r(new Lt("Unsupported protocol "+D+":",Lt.ERR_BAD_REQUEST,e));return}S.send(a||null)})},mX=(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,c();const p=d instanceof Error?d:this.reason;r.abort(p instanceof Lt?p:new cd(p instanceof Error?p.message:p))}};let s=t&&setTimeout(()=>{s=null,a(new Lt(`timeout ${t} of ms exceeded`,Lt.ETIMEDOUT))},t);const c=()=>{e&&(s&&clearTimeout(s),s=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=()=>xe.asap(c),u}},gX=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},yX=async function*(e,t){for await(const n of bX(e))yield*gX(n,t)},bX=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()}},cR=(e,t,n,r)=>{const o=yX(e,t);let a=0,s,c=u=>{s||(s=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:d,value:p}=await o.next();if(d){c(),u.close();return}let h=p.byteLength;if(n){let g=a+=h;n(g)}u.enqueue(new Uint8Array(p))}catch(d){throw c(d),d}},cancel(u){return c(u),o.return()}},{highWaterMark:2})},B0=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",X5=B0&&typeof ReadableStream=="function",vX=B0&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Z5=(e,...t)=>{try{return!!e(...t)}catch{return!1}},EX=X5&&Z5(()=>{let e=!1;const t=new Request(Qr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),uR=64*1024,Rx=X5&&Z5(()=>xe.isReadableStream(new Response("").body)),_y={stream:Rx&&(e=>e.body)};B0&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!_y[t]&&(_y[t]=xe.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Lt(`Response type '${t}' is not supported`,Lt.ERR_NOT_SUPPORT,r)})})})(new Response);const xX=async e=>{if(e==null)return 0;if(xe.isBlob(e))return e.size;if(xe.isSpecCompliantForm(e))return(await new Request(Qr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(xe.isArrayBufferView(e)||xe.isArrayBuffer(e))return e.byteLength;if(xe.isURLSearchParams(e)&&(e=e+""),xe.isString(e))return(await vX(e)).byteLength},TX=async(e,t)=>{const n=xe.toFiniteNumber(e.getContentLength());return n??xX(t)},SX=B0&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:a,timeout:s,onDownloadProgress:c,onUploadProgress:u,responseType:d,headers:p,withCredentials:h="same-origin",fetchOptions:g}=Q5(e);d=d?(d+"").toLowerCase():"text";let y=mX([o,a&&a.toAbortSignal()],s),b;const x=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let S;try{if(u&&EX&&n!=="get"&&n!=="head"&&(S=await TX(p,r))!==0){let I=new Request(t,{method:"POST",body:r,duplex:"half"}),O;if(xe.isFormData(r)&&(O=I.headers.get("content-type"))&&p.setContentType(O),I.body){const[F,j]=iR(S,Cy(sR(u)));r=cR(I.body,uR,F,j)}}xe.isString(h)||(h=h?"include":"omit");const T="credentials"in Request.prototype;b=new Request(t,{...g,signal:y,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:T?h:void 0});let D=await fetch(b);const w=Rx&&(d==="stream"||d==="response");if(Rx&&(c||w&&x)){const I={};["status","statusText","headers"].forEach(H=>{I[H]=D[H]});const O=xe.toFiniteNumber(D.headers.get("content-length")),[F,j]=c&&iR(O,Cy(sR(c),!0))||[];D=new Response(cR(D.body,uR,F,()=>{j&&j(),x&&x()}),I)}d=d||"text";let R=await _y[xe.findKey(_y,d)||"text"](D,e);return!w&&x&&x(),await new Promise((I,O)=>{Y5(I,O,{data:R,headers:_o.from(D.headers),status:D.status,statusText:D.statusText,config:e,request:b})})}catch(T){throw x&&x(),T&&T.name==="TypeError"&&/Load failed|fetch/i.test(T.message)?Object.assign(new Lt("Network Error",Lt.ERR_NETWORK,e,b),{cause:T.cause||T}):Lt.from(T,T&&T.code,e,b)}}),Ix={http:BQ,xhr:hX,fetch:SX};xe.forEach(Ix,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const dR=e=>`- ${e}`,CX=e=>xe.isFunction(e)||e===null||e===!1,J5={getAdapter:e=>{e=xe.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let a=0;a<t;a++){n=e[a];let s;if(r=n,!CX(n)&&(r=Ix[(s=String(n)).toLowerCase()],r===void 0))throw new Lt(`Unknown adapter '${s}'`);if(r)break;o[s||"#"+a]=r}if(!r){const a=Object.entries(o).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=t?a.length>1?`since :
|
|
226
|
+
`+a.map(dR).join(`
|
|
227
|
+
`):" "+dR(a[0]):"as no adapter specified";throw new Lt("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:Ix};function tE(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new cd(null,e)}function fR(e){return tE(e),e.headers=_o.from(e.headers),e.data=eE.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),J5.getAdapter(e.adapter||Dh.adapter)(e).then(function(r){return tE(e),r.data=eE.call(e,e.transformResponse,r),r.headers=_o.from(r.headers),r},function(r){return W5(r)||(tE(e),r&&r.response&&(r.response.data=eE.call(e,e.transformResponse,r.response),r.response.headers=_o.from(r.response.headers))),Promise.reject(r)})}const e4="1.9.0",j0={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{j0[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const pR={};j0.transitional=function(t,n,r){function o(a,s){return"[Axios v"+e4+"] Transitional option '"+a+"'"+s+(r?". "+r:"")}return(a,s,c)=>{if(t===!1)throw new Lt(o(s," has been removed"+(n?" in "+n:"")),Lt.ERR_DEPRECATED);return n&&!pR[s]&&(pR[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,s,c):!0}};j0.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function _X(e,t,n){if(typeof e!="object")throw new Lt("options must be an object",Lt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],s=t[a];if(s){const c=e[a],u=c===void 0||s(c,a,e);if(u!==!0)throw new Lt("option "+a+" must be "+u,Lt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Lt("Unknown option "+a,Lt.ERR_BAD_OPTION)}}const Vg={assertOptions:_X,validators:j0},ei=Vg.validators;let Wl=class{constructor(t){this.defaults=t||{},this.interceptors={request:new oR,response:new oR}}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+=`
|
|
228
|
+
`+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=rc(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:a}=n;r!==void 0&&Vg.assertOptions(r,{silentJSONParsing:ei.transitional(ei.boolean),forcedJSONParsing:ei.transitional(ei.boolean),clarifyTimeoutError:ei.transitional(ei.boolean)},!1),o!=null&&(xe.isFunction(o)?n.paramsSerializer={serialize:o}:Vg.assertOptions(o,{encode:ei.function,serialize:ei.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Vg.assertOptions(n,{baseUrl:ei.spelling("baseURL"),withXsrfToken:ei.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=a&&xe.merge(a.common,a[n.method]);a&&xe.forEach(["delete","get","head","post","put","patch","common"],b=>{delete a[b]}),n.headers=_o.concat(s,a);const c=[];let u=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(u=u&&x.synchronous,c.unshift(x.fulfilled,x.rejected))});const d=[];this.interceptors.response.forEach(function(x){d.push(x.fulfilled,x.rejected)});let p,h=0,g;if(!u){const b=[fR.bind(this),void 0];for(b.unshift.apply(b,c),b.push.apply(b,d),g=b.length,p=Promise.resolve(n);h<g;)p=p.then(b[h++],b[h++]);return p}g=c.length;let y=n;for(h=0;h<g;){const b=c[h++],x=c[h++];try{y=b(y)}catch(S){x.call(this,S);break}}try{p=fR.call(this,y)}catch(b){return Promise.reject(b)}for(h=0,g=d.length;h<g;)p=p.then(d[h++],d[h++]);return p}getUri(t){t=rc(this.defaults,t);const n=K5(t.baseURL,t.url,t.allowAbsoluteUrls);return V5(n,t.params,t.paramsSerializer)}};xe.forEach(["delete","get","head","options"],function(t){Wl.prototype[t]=function(n,r){return this.request(rc(r||{},{method:t,url:n,data:(r||{}).data}))}});xe.forEach(["post","put","patch"],function(t){function n(r){return function(a,s,c){return this.request(rc(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:s}))}}Wl.prototype[t]=n(),Wl.prototype[t+"Form"]=n(!0)});let AX=class t4{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 s=new Promise(c=>{r.subscribe(c),a=c}).then(o);return s.cancel=function(){r.unsubscribe(a)},s},t(function(a,s,c){r.reason||(r.reason=new cd(a,s,c),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 t4(function(o){t=o}),cancel:t}}};function kX(e){return function(n){return e.apply(null,n)}}function wX(e){return xe.isObject(e)&&e.isAxiosError===!0}const Ox={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(Ox).forEach(([e,t])=>{Ox[t]=e});function n4(e){const t=new Wl(e),n=O5(Wl.prototype.request,t);return xe.extend(n,Wl.prototype,t,{allOwnKeys:!0}),xe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return n4(rc(e,o))},n}const Mt=n4(Dh);Mt.Axios=Wl;Mt.CanceledError=cd;Mt.CancelToken=AX;Mt.isCancel=W5;Mt.VERSION=e4;Mt.toFormData=F0;Mt.AxiosError=Lt;Mt.Cancel=Mt.CanceledError;Mt.all=function(t){return Promise.all(t)};Mt.spread=kX;Mt.isAxiosError=wX;Mt.mergeConfig=rc;Mt.AxiosHeaders=_o;Mt.formToJSON=e=>q5(xe.isHTMLForm(e)?new FormData(e):e);Mt.getAdapter=J5.getAdapter;Mt.HttpStatusCode=Ox;Mt.default=Mt;const{Axios:zEe,AxiosError:$Ee,CanceledError:VEe,isCancel:GEe,CancelToken:qEe,VERSION:WEe,all:YEe,Cancel:KEe,isAxiosError:QEe,spread:XEe,toFormData:ZEe,AxiosHeaders:JEe,HttpStatusCode:exe,formToJSON:txe,getAdapter:nxe,mergeConfig:rxe}=Mt;var ud=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(){}},oc=typeof window>"u"||"Deno"in globalThis;function ua(){}function DX(e,t){return typeof e=="function"?e(t):e}function Nx(e){return typeof e=="number"&&e>=0&&e!==1/0}function r4(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Iu(e,t){return typeof e=="function"?e(t):e}function Na(e,t){return typeof e=="function"?e(t):e}function hR(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:a,queryKey:s,stale:c}=e;if(s){if(r){if(t.queryHash!==BS(s,t.options))return!1}else if(!qp(t.queryKey,s))return!1}if(n!=="all"){const u=t.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||o&&o!==t.state.fetchStatus||a&&!a(t))}function mR(e,t){const{exact:n,status:r,predicate:o,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(ac(t.options.mutationKey)!==ac(a))return!1}else if(!qp(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function BS(e,t){return(t?.queryKeyHashFn||ac)(e)}function ac(e){return JSON.stringify(e,(t,n)=>Px(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function qp(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>qp(e[n],t[n])):!1}function o4(e,t){if(e===t)return e;const n=gR(e)&&gR(t);if(n||Px(e)&&Px(t)){const r=n?e:Object.keys(e),o=r.length,a=n?t:Object.keys(t),s=a.length,c=n?[]:{};let u=0;for(let d=0;d<s;d++){const p=n?d:a[d];(!n&&r.includes(p)||n)&&e[p]===void 0&&t[p]===void 0?(c[p]=void 0,u++):(c[p]=o4(e[p],t[p]),c[p]===e[p]&&e[p]!==void 0&&u++)}return o===s&&u===o?e:c}return t}function Ay(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 gR(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Px(e){if(!yR(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!yR(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function yR(e){return Object.prototype.toString.call(e)==="[object Object]"}function RX(e){return new Promise(t=>{setTimeout(t,e)})}function Lx(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?o4(e,t):t}function IX(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function OX(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var jS=Symbol();function a4(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===jS?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var NX=class extends ud{#t;#e;#n;constructor(){super(),this.#n=e=>{if(!oc&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},US=new NX,PX=class extends ud{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!oc&&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.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#t}},ky=new PX;function Mx(){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}function LX(e){return Math.min(1e3*2**e,3e4)}function i4(e){return(e??"online")==="online"?ky.isOnline():!0}var s4=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function nE(e){return e instanceof s4}function l4(e){let t=!1,n=0,r=!1,o;const a=Mx(),s=x=>{r||(g(new s4(x)),e.abort?.())},c=()=>{t=!0},u=()=>{t=!1},d=()=>US.isFocused()&&(e.networkMode==="always"||ky.isOnline())&&e.canRun(),p=()=>i4(e.networkMode)&&e.canRun(),h=x=>{r||(r=!0,e.onSuccess?.(x),o?.(),a.resolve(x))},g=x=>{r||(r=!0,e.onError?.(x),o?.(),a.reject(x))},y=()=>new Promise(x=>{o=S=>{(r||d())&&x(S)},e.onPause?.()}).then(()=>{o=void 0,r||e.onContinue?.()}),b=()=>{if(r)return;let x;const S=n===0?e.initialPromise:void 0;try{x=S??e.fn()}catch(T){x=Promise.reject(T)}Promise.resolve(x).then(h).catch(T=>{if(r)return;const D=e.retry??(oc?0:3),w=e.retryDelay??LX,R=typeof w=="function"?w(n,T):w,I=D===!0||typeof D=="number"&&n<D||typeof D=="function"&&D(n,T);if(t||!I){g(T);return}n++,e.onFail?.(n,T),RX(R).then(()=>d()?void 0:y()).then(()=>{t?g(T):b()})})};return{promise:a,cancel:s,continue:()=>(o?.(),a),cancelRetry:c,continueRetry:u,canStart:p,start:()=>(p()?b():y().then(b),a)}}var MX=e=>setTimeout(e,0);function FX(){let e=[],t=0,n=c=>{c()},r=c=>{c()},o=MX;const a=c=>{t?e.push(c):o(()=>{n(c)})},s=()=>{const c=e;e=[],c.length&&o(()=>{r(()=>{c.forEach(u=>{n(u)})})})};return{batch:c=>{let u;t++;try{u=c()}finally{t--,t||s()}return u},batchCalls:c=>(...u)=>{a(()=>{c(...u)})},schedule:a,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c},setScheduler:c=>{o=c}}}var Cr=FX(),c4=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Nx(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(oc?1/0:5*60*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},BX=class extends c4{#t;#e;#n;#r;#o;#i;#s;constructor(e){super(),this.#s=!1,this.#i=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=jX(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#o?.promise}setOptions(e){this.options={...this.#i,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=Lx(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.#o?.promise;return this.#o?.cancel(e),t?t.then(ua).catch(ua):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>Na(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===jS||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(e=0){return this.state.isInvalidated||this.state.data===void 0||!r4(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#o?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#o?.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.#o&&(this.#s?this.#o.cancel({revert:!0}):this.#o.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"})}fetch(e,t){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#o)return this.#o.continueRetry(),this.#o.promise}if(e&&this.setOptions(e),!this.options.queryFn){const c=this.observers.find(u=>u.options.queryFn);c&&this.setOptions(c.options)}const n=new AbortController,r=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},o=()=>{const c=a4(this.options,t),u={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(u),this.#s=!1,this.options.persister?this.options.persister(c,u,this):c(u)},a={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:o};r(a),this.options.behavior?.onFetch(a,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#a({type:"fetch",meta:a.fetchOptions?.meta});const s=c=>{nE(c)&&c.silent||this.#a({type:"error",error:c}),nE(c)||(this.#n.config.onError?.(c,this),this.#n.config.onSettled?.(this.state.data,c,this)),this.scheduleGc()};return this.#o=l4({initialPromise:t?.initialPromise,fn:a.fetchFn,abort:n.abort.bind(n),onSuccess:c=>{if(c===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(c)}catch(u){s(u);return}this.#n.config.onSuccess?.(c,this),this.#n.config.onSettled?.(c,this.state.error,this),this.scheduleGc()},onError:s,onFail:(c,u)=>{this.#a({type:"failed",failureCount:c,error:u})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}),this.#o.start()}#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,...u4(n.data,this.options),fetchMeta:e.meta??null};case"success":return{...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}};case"error":const r=e.error;return nE(r)&&r.revert&&this.#e?{...this.#e,fetchStatus:"idle"}:{...n,error:r,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Cr.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function u4(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:i4(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function jX(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 UX=class extends ud{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,n){const r=t.queryKey,o=t.queryHash??BS(r,t);let a=this.get(o);return a||(a=new BX({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Cr.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>hR(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>hR(e,n)):t}notify(e){Cr.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Cr.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Cr.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},HX=class extends c4{#t;#e;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#e=e.mutationCache,this.#t=[],this.state=e.state||d4(),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.#e.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})};this.#n=l4({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(o,a)=>{this.#r({type:"failed",failureCount:o,error:a})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const n=this.state.status==="pending",r=!this.#n.canStart();try{if(n)t();else{this.#r({type:"pending",variables:e,isPaused:r}),await this.#e.config.onMutate?.(e,this);const a=await this.options.onMutate?.(e);a!==this.state.context&&this.#r({type:"pending",context:a,variables:e,isPaused:r})}const o=await this.#n.start();return await this.#e.config.onSuccess?.(o,e,this.state.context,this),await this.options.onSuccess?.(o,e,this.state.context),await this.#e.config.onSettled?.(o,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(o,null,e,this.state.context),this.#r({type:"success",data:o}),o}catch(o){try{throw await this.#e.config.onError?.(o,e,this.state.context,this),await this.options.onError?.(o,e,this.state.context),await this.#e.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,o,e,this.state.context),o}finally{this.#r({type:"error",error:o})}}finally{this.#e.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),Cr.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#e.notify({mutation:this,type:"updated",action:e})})}};function d4(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var zX=class extends ud{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(e,t,n){const r=new HX({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#t.add(e);const t=mg(e);if(typeof t=="string"){const n=this.#e.get(t);n?n.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=mg(e);if(typeof t=="string"){const n=this.#e.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=mg(e);if(typeof t=="string"){const r=this.#e.get(t)?.find(o=>o.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=mg(e);return typeof t=="string"?this.#e.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Cr.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>mR(t,n))}findAll(e={}){return this.getAll().filter(t=>mR(e,t))}notify(e){Cr.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Cr.batch(()=>Promise.all(e.map(t=>t.continue().catch(ua))))}};function mg(e){return e.options.scope?.id}function bR(e){return{onFetch:(t,n)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],s=t.state.data?.pageParams||[];let c={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)})},g=a4(t.options,t.fetchOptions),y=async(b,x,S)=>{if(p)return Promise.reject();if(x==null&&b.pages.length)return Promise.resolve(b);const T={client:t.client,queryKey:t.queryKey,pageParam:x,direction:S?"backward":"forward",meta:t.options.meta};h(T);const D=await g(T),{maxPages:w}=t.options,R=S?OX:IX;return{pages:R(b.pages,D,w),pageParams:R(b.pageParams,x,w)}};if(o&&a.length){const b=o==="backward",x=b?$X:vR,S={pages:a,pageParams:s},T=x(r,S);c=await y(S,T,b)}else{const b=e??a.length;do{const x=u===0?s[0]??r.initialPageParam:vR(r,c);if(u>0&&x==null)break;c=await y(c,x),u++}while(u<b)}return c};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 vR(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 $X(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var VX=class{#t;#e;#n;#r;#o;#i;#s;#a;constructor(e={}){this.#t=e.queryCache||new UX,this.#e=e.mutationCache||new zX,this.#n=e.defaultOptions||{},this.#r=new Map,this.#o=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#s=US.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#a=ky.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#s?.(),this.#s=void 0,this.#a?.(),this.#a=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#t.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Iu(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#t.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.#t.get(r.queryHash)?.state.data,s=DX(t,a);if(s!==void 0)return this.#t.build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Cr.batch(()=>this.#t.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;Cr.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#t;return Cr.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Cr.batch(()=>this.#t.findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(ua).catch(ua)}invalidateQueries(e,t={}){return Cr.batch(()=>(this.#t.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=Cr.batch(()=>this.#t.findAll(e).filter(o=>!o.isDisabled()).map(o=>{let a=o.fetch(void 0,n);return n.throwOnError||(a=a.catch(ua)),o.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(ua)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#t.build(this,t);return n.isStaleByTime(Iu(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ua).catch(ua)}fetchInfiniteQuery(e){return e.behavior=bR(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ua).catch(ua)}ensureInfiniteQueryData(e){return e.behavior=bR(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ky.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(ac(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{qp(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#o.set(ac(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#o.values()],n={};return t.forEach(r=>{qp(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=BS(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===jS&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},GX=class extends ud{constructor(e,t){super(),this.options=t,this.#t=e,this.#a=null,this.#s=Mx(),this.options.experimental_prefetchInRender||this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#n=void 0;#r=void 0;#o;#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.#e.addObserver(this),ER(this.#e,this.options)?this.#d():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Fx(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Fx(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#E(),this.#x(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,n=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Na(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#T(),this.#e.setOptions(this.options),t._defaulted&&!Ay(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const r=this.hasListeners();r&&xR(this.#e,n,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#e!==n||Na(this.options.enabled,this.#e)!==Na(t.enabled,this.#e)||Iu(this.options.staleTime,this.#e)!==Iu(t.staleTime,this.#e))&&this.#g();const o=this.#y();r&&(this.#e!==n||Na(this.options.enabled,this.#e)!==Na(t.enabled,this.#e)||o!==this.#l)&&this.#b(o)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),n=this.createResult(t,e);return WX(this,n)&&(this.#r=n,this.#i=this.options,this.#o=this.#e.state),n}getCurrentResult(){return this.#r}trackResult(e,t){const n={};return Object.keys(e).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),t?.(r),e[r])})}),n}trackProp(e){this.#h.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),n=this.#t.getQueryCache().build(this.#t,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#d(e){this.#T();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(ua)),t}#g(){this.#E();const e=Iu(this.options.staleTime,this.#e);if(oc||this.#r.isStale||!Nx(e))return;const n=r4(this.#r.dataUpdatedAt,e)+1;this.#c=setTimeout(()=>{this.#r.isStale||this.updateResult()},n)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#b(e){this.#x(),this.#l=e,!(oc||Na(this.options.enabled,this.#e)===!1||!Nx(this.#l)||this.#l===0)&&(this.#u=setInterval(()=>{(this.options.refetchIntervalInBackground||US.isFocused())&&this.#d()},this.#l))}#v(){this.#g(),this.#b(this.#y())}#E(){this.#c&&(clearTimeout(this.#c),this.#c=void 0)}#x(){this.#u&&(clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const n=this.#e,r=this.options,o=this.#r,a=this.#o,s=this.#i,u=e!==n?e.state:this.#n,{state:d}=e;let p={...d},h=!1,g;if(t._optimisticResults){const j=this.hasListeners(),H=!j&&ER(e,t),C=j&&xR(e,n,t,r);(H||C)&&(p={...p,...u4(d.data,e.options)}),t._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:y,errorUpdatedAt:b,status:x}=p;g=p.data;let S=!1;if(t.placeholderData!==void 0&&g===void 0&&x==="pending"){let j;o?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(j=o.data,S=!0):j=typeof t.placeholderData=="function"?t.placeholderData(this.#p?.state.data,this.#p):t.placeholderData,j!==void 0&&(x="success",g=Lx(o?.data,j,t),h=!0)}if(t.select&&g!==void 0&&!S)if(o&&g===a?.data&&t.select===this.#m)g=this.#f;else try{this.#m=t.select,g=t.select(g),g=Lx(o?.data,g,t),this.#f=g,this.#a=null}catch(j){this.#a=j}this.#a&&(y=this.#a,g=this.#f,b=Date.now(),x="error");const T=p.fetchStatus==="fetching",D=x==="pending",w=x==="error",R=D&&T,I=g!==void 0,F={status:x,fetchStatus:p.fetchStatus,isPending:D,isSuccess:x==="success",isError:w,isInitialLoading:R,isLoading:R,data:g,dataUpdatedAt:p.dataUpdatedAt,error:y,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:T,isRefetching:T&&!D,isLoadingError:w&&!I,isPaused:p.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:w&&I,isStale:HS(e,t),refetch:this.refetch,promise:this.#s};if(this.options.experimental_prefetchInRender){const j=M=>{F.status==="error"?M.reject(F.error):F.data!==void 0&&M.resolve(F.data)},H=()=>{const M=this.#s=F.promise=Mx();j(M)},C=this.#s;switch(C.status){case"pending":e.queryHash===n.queryHash&&j(C);break;case"fulfilled":(F.status==="error"||F.data!==C.value)&&H();break;case"rejected":(F.status!=="error"||F.error!==C.reason)&&H();break}}return F}updateResult(){const e=this.#r,t=this.createResult(this.#e,this.options);if(this.#o=this.#e.state,this.#i=this.options,this.#o.data!==void 0&&(this.#p=this.#e),Ay(t,e))return;this.#r=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.#r).some(s=>{const c=s;return this.#r[c]!==e[c]&&a.has(c)})};this.#S({listeners:n()})}#T(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#S(e){Cr.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function qX(e,t){return Na(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function ER(e,t){return qX(e,t)||e.state.data!==void 0&&Fx(e,t,t.refetchOnMount)}function Fx(e,t,n){if(Na(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&HS(e,t)}return!1}function xR(e,t,n,r){return(e!==t||Na(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&HS(e,n)}function HS(e,t){return Na(t.enabled,e)!==!1&&e.isStaleByTime(Iu(t.staleTime,e))}function WX(e,t){return!Ay(e.getCurrentResult(),t)}var YX=class extends ud{#t;#e=void 0;#n;#r;constructor(t,n){super(),this.#t=t,this.setOptions(n),this.bindMethods(),this.#o()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#t.defaultMutationOptions(t),Ay(this.options,n)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&ac(n.mutationKey)!==ac(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.#o(),this.#i(t)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#o(),this.#i()}mutate(t,n){return this.#r=n,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(t)}#o(){const t=this.#n?.state??d4();this.#e={...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){Cr.batch(()=>{if(this.#r&&this.hasListeners()){const n=this.#e.variables,r=this.#e.context;t?.type==="success"?(this.#r.onSuccess?.(t.data,n,r),this.#r.onSettled?.(t.data,null,n,r)):t?.type==="error"&&(this.#r.onError?.(t.error,n,r),this.#r.onSettled?.(void 0,t.error,n,r))}this.listeners.forEach(n=>{n(this.#e)})})}},KX=k.createContext(void 0),f4=e=>{const t=k.useContext(KX);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},p4=k.createContext(!1),QX=()=>k.useContext(p4);p4.Provider;function XX(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var ZX=k.createContext(XX()),JX=()=>k.useContext(ZX);function h4(e,t){return typeof e=="function"?e(...t):!!e}function Bx(){}var eZ=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},tZ=e=>{k.useEffect(()=>{e.clearReset()},[e])},nZ=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||h4(n,[e.error,r])),rZ=e=>{const t=e.staleTime;e.suspense&&(e.staleTime=typeof t=="function"?(...n)=>Math.max(t(...n),1e3):Math.max(t??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},oZ=(e,t)=>e.isLoading&&e.isFetching&&!t,aZ=(e,t)=>e?.suspense&&t.isPending,TR=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function iZ(e,t,n){const r=f4(n),o=QX(),a=JX(),s=r.defaultQueryOptions(e);r.getDefaultOptions().queries?._experimental_beforeQuery?.(s),s._optimisticResults=o?"isRestoring":"optimistic",rZ(s),eZ(s,a),tZ(a);const c=!r.getQueryCache().get(s.queryHash),[u]=k.useState(()=>new t(r,s)),d=u.getOptimisticResult(s),p=!o&&e.subscribed!==!1;if(k.useSyncExternalStore(k.useCallback(h=>{const g=p?u.subscribe(Cr.batchCalls(h)):Bx;return u.updateResult(),g},[u,p]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),k.useEffect(()=>{u.setOptions(s)},[s,u]),aZ(s,d))throw TR(s,u,a);if(nZ({result:d,errorResetBoundary:a,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw d.error;return r.getDefaultOptions().queries?._experimental_afterQuery?.(s,d),s.experimental_prefetchInRender&&!oc&&oZ(d,o)&&(c?TR(s,u,a):r.getQueryCache().get(s.queryHash)?.promise)?.catch(Bx).finally(()=>{u.updateResult()}),s.notifyOnChangeProps?d:u.trackResult(d)}function sZ(e,t){return iZ(e,GX,t)}function lZ(e,t){const n=f4(t),[r]=k.useState(()=>new YX(n,e));k.useEffect(()=>{r.setOptions(e)},[r,e]);const o=k.useSyncExternalStore(k.useCallback(s=>r.subscribe(Cr.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=k.useCallback((s,c)=>{r.mutate(s,c).catch(Bx)},[r]);if(o.error&&h4(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:a,mutateAsync:o.mutate}}function Nl(){return Nl=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},Nl.apply(this,arguments)}const cZ=["children","options"],Ct={blockQuote:"0",breakLine:"1",breakThematic:"2",codeBlock:"3",codeFenced:"4",codeInline:"5",footnote:"6",footnoteReference:"7",gfmTask:"8",heading:"9",headingSetext:"10",htmlBlock:"11",htmlComment:"12",htmlSelfClosing:"13",image:"14",link:"15",linkAngleBraceStyleDetector:"16",linkBareUrlDetector:"17",linkMailtoDetector:"18",newlineCoalescer:"19",orderedList:"20",paragraph:"21",ref:"22",refImage:"23",refLink:"24",table:"25",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"};var SR;(function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"})(SR||(SR={}));const CR=["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"}),_R={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},uZ=["style","script"],dZ=["src","href","data","formAction","srcDoc","action"],fZ=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,pZ=/mailto:/i,hZ=/\n{2,}$/,m4=/^(\s*>[\s\S]*?)(?=\n\n|$)/,mZ=/^ *> ?/gm,gZ=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,yZ=/^ {2,}\n/,bZ=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,g4=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,y4=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,vZ=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,EZ=/^(?:\n *)*\n/,xZ=/\r\n?/g,TZ=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,SZ=/^\[\^([^\]]+)]/,CZ=/\f/g,_Z=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,AZ=/^\s*?\[(x|\s)\]/,b4=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,v4=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,E4=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,jx=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,kZ=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,x4=/^<!--[\s\S]*?(?:-->)/,wZ=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Ux=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,DZ=/^\{.*\}$/,RZ=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,IZ=/^<([^ >]+@[^ >]+)>/,OZ=/^<([^ >]+:\/[^ >]+)>/,NZ=/-([a-z])?/gi,T4=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,PZ=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,LZ=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,MZ=/^\[([^\]]*)\] ?\[([^\]]*)\]/,FZ=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,BZ=/\t/g,jZ=/(^ *\||\| *$)/g,UZ=/^ *:-+: *$/,HZ=/^ *:-+ *$/,zZ=/^ *-+: *$/,U0="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",$Z=new RegExp(`^([*_])\\1${U0}\\1\\1(?!\\1)`),VZ=new RegExp(`^([*_])${U0}\\1(?!\\1)`),GZ=new RegExp(`^(==)${U0}\\1`),qZ=new RegExp(`^(~~)${U0}\\1`),WZ=/^\\([^0-9A-Za-z\s])/,AR=/\\([^0-9A-Za-z\s])/g,YZ=/^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/,KZ=/^\n+/,QZ=/^([ \t]*)/,XZ=/\\([^\\])/g,ZZ=/(?:^|\n)( *)$/,zS="(?:\\d+\\.)",$S="(?:[*+-])";function S4(e){return"( *)("+(e===1?zS:$S)+") +"}const C4=S4(1),_4=S4(2);function A4(e){return new RegExp("^"+(e===1?C4:_4))}const JZ=A4(1),eJ=A4(2);function k4(e){return new RegExp("^"+(e===1?C4:_4)+"[^\\n]*(?:\\n(?!\\1"+(e===1?zS:$S)+" )[^\\n]*)*(\\n|$)","gm")}const tJ=k4(1),nJ=k4(2);function w4(e){const t=e===1?zS:$S;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const D4=w4(1),R4=w4(2);function kR(e,t){const n=t===1,r=n?D4:R4,o=n?tJ:nJ,a=n?JZ:eJ;return{match:Wu(function(s,c){const u=ZZ.exec(c.prevCapture);return u&&(c.list||!c.inline&&!c.simple)?r.exec(s=u[1]+s):null}),order:1,parse(s,c,u){const d=n?+s[2]:void 0,p=s[0].replace(hZ,`
|
|
229
|
+
`).match(o);let h=!1;return{items:p.map(function(g,y){const b=a.exec(g)[0].length,x=new RegExp("^ {1,"+b+"}","gm"),S=g.replace(x,"").replace(a,""),T=y===p.length-1,D=S.indexOf(`
|
|
230
|
+
|
|
231
|
+
`)!==-1||T&&h;h=D;const w=u.inline,R=u.list;let I;u.list=!0,D?(u.inline=!1,I=Wp(S)+`
|
|
232
|
+
|
|
233
|
+
`):(u.inline=!0,I=Wp(S));const O=c(I,u);return u.inline=w,u.list=R,O}),ordered:n,start:d}},render:(s,c,u)=>e(s.ordered?"ol":"ul",{key:u.key,start:s.type===Ct.orderedList?s.start:void 0},s.items.map(function(d,p){return e("li",{key:p},c(d,u))}))}}const rJ=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),oJ=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,I4=[m4,g4,y4,b4,E4,v4,T4,D4,R4],aJ=[...I4,/^[^\n]+(?: \n|\n{2,})/,jx,x4,Ux];function Wp(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function Mf(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 iJ(e){return zZ.test(e)?"right":UZ.test(e)?"center":HZ.test(e)?"left":null}function wR(e,t,n,r){const o=n.inTable;n.inTable=!0;let a=[[]],s="";function c(){if(!s)return;const u=a[a.length-1];u.push.apply(u,t(s,n)),s=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((u,d,p)=>{u.trim()==="|"&&(c(),r)?d!==0&&d!==p.length-1&&a.push([]):s+=u}),c(),n.inTable=o,a}function sJ(e,t,n){n.inline=!0;const r=e[2]?e[2].replace(jZ,"").split("|").map(iJ):[],o=e[3]?function(s,c,u){return s.trim().split(`
|
|
234
|
+
`).map(function(d){return wR(d,c,u,!0)})}(e[3],t,n):[],a=wR(e[1],t,n,!!o.length);return n.inline=!1,o.length?{align:r,cells:o,header:a,type:Ct.table}:{children:a,type:Ct.paragraph}}function DR(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function Wu(e){return e.inline=1,e}function Ps(e){return Wu(function(t,n){return n.inline?e.exec(t):null})}function Ls(e){return Wu(function(t,n){return n.inline||n.simple?e.exec(t):null})}function Ui(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function Ff(e){return Wu(function(t){return e.exec(t)})}function lJ(e,t){if(t.inline||t.simple)return null;let n="";e.split(`
|
|
235
|
+
`).every(o=>(o+=`
|
|
236
|
+
`,!I4.some(a=>a.test(o))&&(n+=o,!!o.trim())));const r=Wp(n);return r==""?null:[n,,r]}const cJ=/(javascript|vbscript|data(?!:image)):/i;function uJ(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(cJ.test(t))return null}catch{return null}return e}function RR(e){return e.replace(XZ,"$1")}function Gg(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 dJ(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 fJ(e,t,n){const r=n.inline||!1;n.inline=!1;const o=e(t,n);return n.inline=r,o}const rE=(e,t,n)=>({children:Gg(t,e[2],n)});function oE(){return{}}function aE(){return null}function pJ(...e){return e.filter(Boolean).join(" ")}function iE(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 hJ(e="",t={}){function n(g,y,...b){const x=iE(t.overrides,`${g}.props`,{});return t.createElement(function(S,T){const D=iE(T,S);return D?typeof D=="function"||typeof D=="object"&&"render"in D?D:iE(T,`${S}.component`,S):S}(g,t.overrides),Nl({},y,x,{className:pJ(y?.className,x.className)||void 0}),...b)}function r(g){g=g.replace(_Z,"");let y=!1;t.forceInline?y=!0:t.forceBlock||(y=FZ.test(g)===!1);const b=d(u(y?g:`${Wp(g).replace(KZ,"")}
|
|
237
|
+
|
|
238
|
+
`,{inline:y}));for(;typeof b[b.length-1]=="string"&&!b[b.length-1].trim();)b.pop();if(t.wrapper===null)return b;const x=t.wrapper||(y?"span":"div");let S;if(b.length>1||t.forceWrapper)S=b;else{if(b.length===1)return S=b[0],typeof S=="string"?n("span",{key:"outer"},S):S;S=null}return t.createElement(x,{key:"outer"},S)}function o(g,y){const b=y.match(fZ);return b?b.reduce(function(x,S){const T=S.indexOf("=");if(T!==-1){const D=function(O){return O.indexOf("-")!==-1&&O.match(wZ)===null&&(O=O.replace(NZ,function(F,j){return j.toUpperCase()})),O}(S.slice(0,T)).trim(),w=function(O){const F=O[0];return(F==='"'||F==="'")&&O.length>=2&&O[O.length-1]===F?O.slice(1,-1):O}(S.slice(T+1).trim()),R=CR[D]||D;if(R==="ref")return x;const I=x[R]=function(O,F,j,H){return F==="style"?function(C){const M=[];let $="",z=!1,q=!1,Y="";if(!C)return M;for(let X=0;X<C.length;X++){const ae=C[X];if(ae!=='"'&&ae!=="'"||z||(q?ae===Y&&(q=!1,Y=""):(q=!0,Y=ae)),ae==="("&&$.endsWith("url")?z=!0:ae===")"&&z&&(z=!1),ae!==";"||q||z)$+=ae;else{const te=$.trim();if(te){const N=te.indexOf(":");if(N>0){const oe=te.slice(0,N).trim(),K=te.slice(N+1).trim();M.push([oe,K])}}$=""}}const B=$.trim();if(B){const X=B.indexOf(":");if(X>0){const ae=B.slice(0,X).trim(),te=B.slice(X+1).trim();M.push([ae,te])}}return M}(j).reduce(function(C,[M,$]){return C[M.replace(/(-[a-z])/g,z=>z[1].toUpperCase())]=H($,O,M),C},{}):dZ.indexOf(F)!==-1?H(j,O,F):(j.match(DZ)&&(j=j.slice(1,j.length-1)),j==="true"||j!=="false"&&j)}(g,D,w,t.sanitizer);typeof I=="string"&&(jx.test(I)||Ux.test(I))&&(x[R]=r(I.trim()))}else S!=="style"&&(x[CR[S]||S]=!0);return x},{}):null}t.overrides=t.overrides||{},t.sanitizer=t.sanitizer||uJ,t.slugify=t.slugify||Mf,t.namedCodesToUnicode=t.namedCodesToUnicode?Nl({},_R,t.namedCodesToUnicode):_R,t.createElement=t.createElement||k.createElement;const a=[],s={},c={[Ct.blockQuote]:{match:Ui(m4),order:1,parse(g,y,b){const[,x,S]=g[0].replace(mZ,"").match(gZ);return{alert:x,children:y(S,b)}},render(g,y,b){const x={key:b.key};return g.alert&&(x.className="markdown-alert-"+t.slugify(g.alert.toLowerCase(),Mf),g.children.unshift({attrs:{},children:[{type:Ct.text,text:g.alert}],noInnerParse:!0,type:Ct.htmlBlock,tag:"header"})),n("blockquote",x,y(g.children,b))}},[Ct.breakLine]:{match:Ff(yZ),order:1,parse:oE,render:(g,y,b)=>n("br",{key:b.key})},[Ct.breakThematic]:{match:Ui(bZ),order:1,parse:oE,render:(g,y,b)=>n("hr",{key:b.key})},[Ct.codeBlock]:{match:Ui(y4),order:0,parse:g=>({lang:void 0,text:Wp(g[0].replace(/^ {4}/gm,"")).replace(AR,"$1")}),render:(g,y,b)=>n("pre",{key:b.key},n("code",Nl({},g.attrs,{className:g.lang?`lang-${g.lang}`:""}),g.text))},[Ct.codeFenced]:{match:Ui(g4),order:0,parse:g=>({attrs:o("code",g[3]||""),lang:g[2]||void 0,text:g[4],type:Ct.codeBlock})},[Ct.codeInline]:{match:Ls(vZ),order:3,parse:g=>({text:g[2].replace(AR,"$1")}),render:(g,y,b)=>n("code",{key:b.key},g.text)},[Ct.footnote]:{match:Ui(TZ),order:0,parse:g=>(a.push({footnote:g[2],identifier:g[1]}),{}),render:aE},[Ct.footnoteReference]:{match:Ps(SZ),order:1,parse:g=>({target:`#${t.slugify(g[1],Mf)}`,text:g[1]}),render:(g,y,b)=>n("a",{key:b.key,href:t.sanitizer(g.target,"a","href")},n("sup",{key:b.key},g.text))},[Ct.gfmTask]:{match:Ps(AZ),order:1,parse:g=>({completed:g[1].toLowerCase()==="x"}),render:(g,y,b)=>n("input",{checked:g.completed,key:b.key,readOnly:!0,type:"checkbox"})},[Ct.heading]:{match:Ui(t.enforceAtxHeadings?v4:b4),order:1,parse:(g,y,b)=>({children:Gg(y,g[2],b),id:t.slugify(g[2],Mf),level:g[1].length}),render:(g,y,b)=>n(`h${g.level}`,{id:g.id,key:b.key},y(g.children,b))},[Ct.headingSetext]:{match:Ui(E4),order:0,parse:(g,y,b)=>({children:Gg(y,g[1],b),level:g[2]==="="?1:2,type:Ct.heading})},[Ct.htmlBlock]:{match:Ff(jx),order:1,parse(g,y,b){const[,x]=g[3].match(QZ),S=new RegExp(`^${x}`,"gm"),T=g[3].replace(S,""),D=(w=T,aJ.some(j=>j.test(w))?fJ:Gg);var w;const R=g[1].toLowerCase(),I=uZ.indexOf(R)!==-1,O=(I?R:g[1]).trim(),F={attrs:o(O,g[2]),noInnerParse:I,tag:O};return b.inAnchor=b.inAnchor||R==="a",I?F.text=g[3]:F.children=D(y,T,b),b.inAnchor=!1,F},render:(g,y,b)=>n(g.tag,Nl({key:b.key},g.attrs),g.text||(g.children?y(g.children,b):""))},[Ct.htmlSelfClosing]:{match:Ff(Ux),order:1,parse(g){const y=g[1].trim();return{attrs:o(y,g[2]||""),tag:y}},render:(g,y,b)=>n(g.tag,Nl({},g.attrs,{key:b.key}))},[Ct.htmlComment]:{match:Ff(x4),order:1,parse:()=>({}),render:aE},[Ct.image]:{match:Ls(oJ),order:1,parse:g=>({alt:g[1],target:RR(g[2]),title:g[3]}),render:(g,y,b)=>n("img",{key:b.key,alt:g.alt||void 0,title:g.title||void 0,src:t.sanitizer(g.target,"img","src")})},[Ct.link]:{match:Ps(rJ),order:3,parse:(g,y,b)=>({children:dJ(y,g[1],b),target:RR(g[2]),title:g[3]}),render:(g,y,b)=>n("a",{key:b.key,href:t.sanitizer(g.target,"a","href"),title:g.title},y(g.children,b))},[Ct.linkAngleBraceStyleDetector]:{match:Ps(OZ),order:0,parse:g=>({children:[{text:g[1],type:Ct.text}],target:g[1],type:Ct.link})},[Ct.linkBareUrlDetector]:{match:Wu((g,y)=>y.inAnchor||t.disableAutoLink?null:Ps(RZ)(g,y)),order:0,parse:g=>({children:[{text:g[1],type:Ct.text}],target:g[1],title:void 0,type:Ct.link})},[Ct.linkMailtoDetector]:{match:Ps(IZ),order:0,parse(g){let y=g[1],b=g[1];return pZ.test(b)||(b="mailto:"+b),{children:[{text:y.replace("mailto:",""),type:Ct.text}],target:b,type:Ct.link}}},[Ct.orderedList]:kR(n,1),[Ct.unorderedList]:kR(n,2),[Ct.newlineCoalescer]:{match:Ui(EZ),order:3,parse:oE,render:()=>`
|
|
239
|
+
`},[Ct.paragraph]:{match:Wu(lJ),order:3,parse:rE,render:(g,y,b)=>n("p",{key:b.key},y(g.children,b))},[Ct.ref]:{match:Ps(PZ),order:0,parse:g=>(s[g[1]]={target:g[2],title:g[4]},{}),render:aE},[Ct.refImage]:{match:Ls(LZ),order:0,parse:g=>({alt:g[1]||void 0,ref:g[2]}),render:(g,y,b)=>s[g.ref]?n("img",{key:b.key,alt:g.alt,src:t.sanitizer(s[g.ref].target,"img","src"),title:s[g.ref].title}):null},[Ct.refLink]:{match:Ps(MZ),order:0,parse:(g,y,b)=>({children:y(g[1],b),fallbackChildren:g[0],ref:g[2]}),render:(g,y,b)=>s[g.ref]?n("a",{key:b.key,href:t.sanitizer(s[g.ref].target,"a","href"),title:s[g.ref].title},y(g.children,b)):n("span",{key:b.key},g.fallbackChildren)},[Ct.table]:{match:Ui(T4),order:1,parse:sJ,render(g,y,b){const x=g;return n("table",{key:b.key},n("thead",null,n("tr",null,x.header.map(function(S,T){return n("th",{key:T,style:DR(x,T)},y(S,b))}))),n("tbody",null,x.cells.map(function(S,T){return n("tr",{key:T},S.map(function(D,w){return n("td",{key:w,style:DR(x,w)},y(D,b))}))})))}},[Ct.text]:{match:Ff(YZ),order:4,parse:g=>({text:g[0].replace(kZ,(y,b)=>t.namedCodesToUnicode[b]?t.namedCodesToUnicode[b]:y)}),render:g=>g.text},[Ct.textBolded]:{match:Ls($Z),order:2,parse:(g,y,b)=>({children:y(g[2],b)}),render:(g,y,b)=>n("strong",{key:b.key},y(g.children,b))},[Ct.textEmphasized]:{match:Ls(VZ),order:3,parse:(g,y,b)=>({children:y(g[2],b)}),render:(g,y,b)=>n("em",{key:b.key},y(g.children,b))},[Ct.textEscaped]:{match:Ls(WZ),order:1,parse:g=>({text:g[1],type:Ct.text})},[Ct.textMarked]:{match:Ls(GZ),order:3,parse:rE,render:(g,y,b)=>n("mark",{key:b.key},y(g.children,b))},[Ct.textStrikethroughed]:{match:Ls(qZ),order:3,parse:rE,render:(g,y,b)=>n("del",{key:b.key},y(g.children,b))}};t.disableParsingRawHTML===!0&&(delete c[Ct.htmlBlock],delete c[Ct.htmlSelfClosing]);const u=function(g){let y=Object.keys(g);function b(x,S){let T,D,w=[],R="",I="";for(S.prevCapture=S.prevCapture||"";x;){let O=0;for(;O<y.length;){if(R=y[O],T=g[R],S.inline&&!T.match.inline){O++;continue}const F=T.match(x,S);if(F){I=F[0],S.prevCapture+=I,x=x.substring(I.length),D=T.parse(F,b,S),D.type==null&&(D.type=R),w.push(D);break}O++}}return S.prevCapture="",w}return y.sort(function(x,S){let T=g[x].order,D=g[S].order;return T!==D?T-D:x<S?-1:1}),function(x,S){return b(function(T){return T.replace(xZ,`
|
|
240
|
+
`).replace(CZ,"").replace(BZ," ")}(x),S)}}(c),d=(p=function(g,y){return function(b,x,S){const T=g[b.type].render;return y?y(()=>T(b,x,S),b,x,S):T(b,x,S)}}(c,t.renderRule),function g(y,b={}){if(Array.isArray(y)){const x=b.key,S=[];let T=!1;for(let D=0;D<y.length;D++){b.key=D;const w=g(y[D],b),R=typeof w=="string";R&&T?S[S.length-1]+=w:w!==null&&S.push(w),T=R}return b.key=x,S}return p(y,g,b)});var p;const h=r(e);return a.length?n("div",null,h,n("footer",{key:"footer"},a.map(function(g){return n("div",{id:t.slugify(g.identifier,Mf),key:g.identifier},g.identifier,d(u(g.footnote,{inline:!0})))}))):h}const VS=e=>{let{children:t="",options:n}=e,r=function(o,a){if(o==null)return{};var s,c,u={},d=Object.keys(o);for(c=0;c<d.length;c++)a.indexOf(s=d[c])>=0||(u[s]=o[s]);return u}(e,cZ);return k.cloneElement(hJ(t,n),r)},mJ=vi(v.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),gJ=vi(v.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),yJ=vi(v.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"})),bJ=vi(v.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),vJ=vi(v.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}));var GS=Ih(),Ot=e=>Rh(e,GS),qS=Ih();Ot.write=e=>Rh(e,qS);var H0=Ih();Ot.onStart=e=>Rh(e,H0);var WS=Ih();Ot.onFrame=e=>Rh(e,WS);var YS=Ih();Ot.onFinish=e=>Rh(e,YS);var Ou=[];Ot.setTimeout=(e,t)=>{const n=Ot.now()+t,r=()=>{const a=Ou.findIndex(s=>s.cancel==r);~a&&Ou.splice(a,1),Vs-=~a?1:0},o={time:n,handler:e,cancel:r};return Ou.splice(O4(n),0,o),Vs+=1,N4(),o};var O4=e=>~(~Ou.findIndex(t=>t.time>e)||~Ou.length);Ot.cancel=e=>{H0.delete(e),WS.delete(e),YS.delete(e),GS.delete(e),qS.delete(e)};Ot.sync=e=>{Hx=!0,Ot.batchedUpdates(e),Hx=!1};Ot.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...o){t=o,Ot.onStart(n)}return r.handler=e,r.cancel=()=>{H0.delete(n),t=null},r};var KS=typeof window<"u"?window.requestAnimationFrame:()=>{};Ot.use=e=>KS=e;Ot.now=typeof performance<"u"?()=>performance.now():Date.now;Ot.batchedUpdates=e=>e();Ot.catch=console.error;Ot.frameLoop="always";Ot.advance=()=>{Ot.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):L4()};var $s=-1,Vs=0,Hx=!1;function Rh(e,t){Hx?(t.delete(e),e(0)):(t.add(e),N4())}function N4(){$s<0&&($s=0,Ot.frameLoop!=="demand"&&KS(P4))}function EJ(){$s=-1}function P4(){~$s&&(KS(P4),Ot.batchedUpdates(L4))}function L4(){const e=$s;$s=Ot.now();const t=O4($s);if(t&&(M4(Ou.splice(0,t),n=>n.handler()),Vs-=t),!Vs){EJ();return}H0.flush(),GS.flush(e?Math.min(64,$s-e):16.667),WS.flush(),qS.flush(),YS.flush()}function Ih(){let e=new Set,t=e;return{add(n){Vs+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Vs-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Vs-=t.size,M4(t,r=>r(n)&&e.add(r)),Vs+=e.size,t=e)}}}function M4(e,t){e.forEach(n=>{try{t(n)}catch(r){Ot.catch(r)}})}var xJ=Object.defineProperty,TJ=(e,t)=>{for(var n in t)xJ(e,n,{get:t[n],enumerable:!0})},Ha={};TJ(Ha,{assign:()=>CJ,colors:()=>Ws,createStringInterpolator:()=>XS,skipAnimation:()=>B4,to:()=>F4,willAdvance:()=>ZS});function zx(){}var SJ=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),We={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 qi(e,t){if(We.arr(e)){if(!We.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 Zt=(e,t)=>e.forEach(t);function yi(e,t,n){if(We.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 $o=e=>We.und(e)?[]:We.arr(e)?e:[e];function mp(e,t){if(e.size){const n=Array.from(e);e.clear(),Zt(n,t)}}var rp=(e,...t)=>mp(e,n=>n(...t)),QS=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),XS,F4,Ws=null,B4=!1,ZS=zx,CJ=e=>{e.to&&(F4=e.to),e.now&&(Ot.now=e.now),e.colors!==void 0&&(Ws=e.colors),e.skipAnimation!=null&&(B4=e.skipAnimation),e.createStringInterpolator&&(XS=e.createStringInterpolator),e.requestAnimationFrame&&Ot.use(e.requestAnimationFrame),e.batchedUpdates&&(Ot.batchedUpdates=e.batchedUpdates),e.willAdvance&&(ZS=e.willAdvance),e.frameLoop&&(Ot.frameLoop=e.frameLoop)},gp=new Set,ba=[],sE=[],wy=0,z0={get idle(){return!gp.size&&!ba.length},start(e){wy>e.priority?(gp.add(e),Ot.onStart(_J)):(j4(e),Ot($x))},advance:$x,sort(e){if(wy)Ot.onFrame(()=>z0.sort(e));else{const t=ba.indexOf(e);~t&&(ba.splice(t,1),U4(e))}},clear(){ba=[],gp.clear()}};function _J(){gp.forEach(j4),gp.clear(),Ot($x)}function j4(e){ba.includes(e)||U4(e)}function U4(e){ba.splice(AJ(ba,t=>t.priority>e.priority),0,e)}function $x(e){const t=sE;for(let n=0;n<ba.length;n++){const r=ba[n];wy=r.priority,r.idle||(ZS(r),r.advance(e),r.idle||t.push(r))}return wy=0,sE=ba,sE.length=0,ba=t,ba.length>0}function AJ(e,t){const n=e.findIndex(t);return n<0?e.length:n}var kJ={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},La="[-+]?\\d*\\.?\\d+",Dy=La+"%";function $0(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var wJ=new RegExp("rgb"+$0(La,La,La)),DJ=new RegExp("rgba"+$0(La,La,La,La)),RJ=new RegExp("hsl"+$0(La,Dy,Dy)),IJ=new RegExp("hsla"+$0(La,Dy,Dy,La)),OJ=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,NJ=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,PJ=/^#([0-9a-fA-F]{6})$/,LJ=/^#([0-9a-fA-F]{8})$/;function MJ(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=PJ.exec(e))?parseInt(t[1]+"ff",16)>>>0:Ws&&Ws[e]!==void 0?Ws[e]:(t=wJ.exec(e))?(au(t[1])<<24|au(t[2])<<16|au(t[3])<<8|255)>>>0:(t=DJ.exec(e))?(au(t[1])<<24|au(t[2])<<16|au(t[3])<<8|NR(t[4]))>>>0:(t=OJ.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=LJ.exec(e))?parseInt(t[1],16)>>>0:(t=NJ.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=RJ.exec(e))?(IR(OR(t[1]),gg(t[2]),gg(t[3]))|255)>>>0:(t=IJ.exec(e))?(IR(OR(t[1]),gg(t[2]),gg(t[3]))|NR(t[4]))>>>0:null}function lE(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 IR(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,a=lE(o,r,e+1/3),s=lE(o,r,e),c=lE(o,r,e-1/3);return Math.round(a*255)<<24|Math.round(s*255)<<16|Math.round(c*255)<<8}function au(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function OR(e){return(parseFloat(e)%360+360)%360/360}function NR(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function gg(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function PR(e){let t=MJ(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 Yp=(e,t,n)=>{if(We.fun(e))return e;if(We.arr(e))return Yp({range:e,output:t,extrapolate:n});if(We.str(e.output[0]))return XS(e);const r=e,o=r.output,a=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||"extend",c=r.extrapolateRight||r.extrapolate||"extend",u=r.easing||(d=>d);return d=>{const p=BJ(d,a);return FJ(d,a[p],a[p+1],o[p],o[p+1],u,s,c,r.map)}};function FJ(e,t,n,r,o,a,s,c,u){let d=u?u(e):e;if(d<t){if(s==="identity")return d;s==="clamp"&&(d=t)}if(d>n){if(c==="identity")return d;c==="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 BJ(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var jJ={linear:e=>e},Kp=Symbol.for("FluidValue.get"),Yu=Symbol.for("FluidValue.observers"),ha=e=>!!(e&&e[Kp]),xo=e=>e&&e[Kp]?e[Kp]():e,LR=e=>e[Yu]||null;function UJ(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Qp(e,t){const n=e[Yu];n&&n.forEach(r=>{UJ(r,t)})}var H4=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");HJ(this,e)}},HJ=(e,t)=>z4(e,Kp,t);function dd(e,t){if(e[Kp]){let n=e[Yu];n||z4(e,Yu,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Xp(e,t){const n=e[Yu];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Yu]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var z4=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),qg=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,zJ=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,MR=new RegExp(`(${qg.source})(%|[a-z]+)`,"i"),$J=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,V0=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,$4=e=>{const[t,n]=VJ(e);if(!t||QS())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&&V0.test(n))return $4(n);if(n)return n}return e},VJ=e=>{const t=V0.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},cE,GJ=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,V4=e=>{cE||(cE=Ws?new RegExp(`(${Object.keys(Ws).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(a=>xo(a).replace(V0,$4).replace(zJ,PR).replace(cE,PR)),n=t.map(a=>a.match(qg).map(Number)),o=n[0].map((a,s)=>n.map(c=>{if(!(s in c))throw Error('The arity of each "output" value must be equal');return c[s]})).map(a=>Yp({...e,output:a}));return a=>{const s=!MR.test(t[0])&&t.find(u=>MR.test(u))?.replace(qg,"");let c=0;return t[0].replace(qg,()=>`${o[c++](a)}${s||""}`).replace($J,GJ)}},JS="react-spring: ",G4=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${JS}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},qJ=G4(console.warn);function WJ(){qJ(`${JS}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var YJ=G4(console.warn);function KJ(){YJ(`${JS}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 G0(e){return We.str(e)&&(e[0]=="#"||/\d/.test(e)||!QS()&&V0.test(e)||e in(Ws||{}))}var eC=QS()?k.useEffect:k.useLayoutEffect,QJ=()=>{const e=k.useRef(!1);return eC(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function q4(){const e=k.useState()[1],t=QJ();return()=>{t.current&&e(Math.random())}}var W4=e=>k.useEffect(e,XJ),XJ=[];function FR(e){const t=k.useRef(void 0);return k.useEffect(()=>{t.current=e}),t.current}var Zp=Symbol.for("Animated:node"),ZJ=e=>!!e&&e[Zp]===e,ai=e=>e&&e[Zp],tC=(e,t)=>SJ(e,Zp,t),q0=e=>e&&e[Zp]&&e[Zp].getPayload(),Y4=class{constructor(){tC(this,this)}getPayload(){return this.payload||[]}},W0=class K4 extends Y4{constructor(t){super(),this._value=t,this.done=!0,this.durationProgress=0,We.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new K4(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,n){return We.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,We.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},Ry=class Q4 extends W0{constructor(t){super(0),this._string=null,this._toString=Yp({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(We.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=Yp({output:[this.getValue(),t]})),this._value=0,super.reset()}},Iy={dependencies:null},Y0=class extends Y4{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return yi(this.source,(n,r)=>{ZJ(n)?t[r]=n.getValue(e):ha(n)?t[r]=xo(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Zt(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return yi(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Iy.dependencies&&ha(e)&&Iy.dependencies.add(e);const t=q0(e);t&&Zt(t,n=>this.add(n))}},JJ=class X4 extends Y0{constructor(t){super(t)}static create(t){return new X4(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(eee)),!0)}};function eee(e){return(G0(e)?Ry:W0).create(e)}function Vx(e){const t=ai(e);return t?t.constructor:We.arr(e)?JJ:G0(e)?Ry:W0}var BR=(e,t)=>{const n=!We.fun(e)||e.prototype&&e.prototype.isReactComponent;return k.forwardRef((r,o)=>{const a=k.useRef(null),s=n&&k.useCallback(b=>{a.current=ree(o,b)},[o]),[c,u]=nee(r,t),d=q4(),p=()=>{const b=a.current;if(n&&!b)return;(b?t.applyAnimatedValues(b,c.getValue(!0)):!1)===!1&&d()},h=new tee(p,u),g=k.useRef(void 0);eC(()=>(g.current=h,Zt(u,b=>dd(b,h)),()=>{g.current&&(Zt(g.current.deps,b=>Xp(b,g.current)),Ot.cancel(g.current.update))})),k.useEffect(p,[]),W4(()=>()=>{const b=g.current;Zt(b.deps,x=>Xp(x,b))});const y=t.getComponentProps(c.getValue());return k.createElement(e,{...y,ref:s})})},tee=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&Ot.write(this.update)}};function nee(e,t){const n=new Set;return Iy.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Y0(e),Iy.dependencies=null,[e,n]}function ree(e,t){return e&&(We.fun(e)?e(t):e.current=t),t}var jR=Symbol.for("AnimatedComponent"),oee=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=o=>new Y0(o),getComponentProps:r=o=>o}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=s=>{const c=UR(s)||"Anonymous";return We.str(s)?s=a[s]||(a[s]=BR(s,o)):s=s[jR]||(s[jR]=BR(s,o)),s.displayName=`Animated(${c})`,s};return yi(e,(s,c)=>{We.arr(e)&&(c=UR(s)),a[c]=a(s)}),{animated:a}},UR=e=>We.str(e)?e:e&&We.str(e.displayName)?e.displayName:We.fun(e)&&e.name||null;function Pl(e,...t){return We.fun(e)?e(...t):e}var yp=(e,t)=>e===!0||!!(t&&e&&(We.fun(e)?e(t):$o(e).includes(t))),Z4=(e,t)=>We.obj(e)?t&&e[t]:e,J4=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,aee=e=>e,nC=(e,t=aee)=>{let n=iee;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);We.und(a)||(r[o]=a)}return r},iee=["config","onProps","onStart","onChange","onPause","onResume","onRest"],see={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 lee(e){const t={};let n=0;if(yi(e,(r,o)=>{see[o]||(t[o]=r,n++)}),n)return t}function eP(e){const t=lee(e);if(t){const n={to:t};return yi(e,(r,o)=>o in t||(n[o]=r)),n}return{...e}}function Jp(e){return e=xo(e),We.arr(e)?e.map(Jp):G0(e)?Ha.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function cee(e){for(const t in e)return!0;return!1}function Gx(e){return We.fun(e)||We.arr(e)&&We.obj(e[0])}function uee(e,t){e.ref?.delete(e),t?.delete(e)}function dee(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var fee={default:{tension:170,friction:26}},qx={...fee.default,mass:1,damping:1,easing:jJ.linear,clamp:!1},pee=class{constructor(){this.velocity=0,Object.assign(this,qx)}};function hee(e,t,n){n&&(n={...n},HR(n,t),t={...n,...t}),HR(e,t),Object.assign(e,t);for(const s in qx)e[s]==null&&(e[s]=qx[s]);let{frequency:r,damping:o}=e;const{mass:a}=e;return We.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 HR(e,t){if(!We.und(t.decay))e.duration=void 0;else{const n=!We.und(t.tension)||!We.und(t.friction);(n||!We.und(t.frequency)||!We.und(t.damping)||!We.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var zR=[],mee=class{constructor(){this.changed=!1,this.values=zR,this.toValues=null,this.fromValues=zR,this.config=new pee,this.immediate=!1}};function tP(e,{key:t,props:n,defaultProps:r,state:o,actions:a}){return new Promise((s,c)=>{let u,d,p=yp(n.cancel??r?.cancel,t);if(p)y();else{We.und(n.pause)||(o.paused=yp(n.pause,t));let b=r?.pause;b!==!0&&(b=o.paused||yp(b,t)),u=Pl(n.delay||0,t),b?(o.resumeQueue.add(g),a.pause()):(a.resume(),g())}function h(){o.resumeQueue.add(g),o.timeouts.delete(d),d.cancel(),u=d.time-Ot.now()}function g(){u>0&&!Ha.skipAnimation?(o.delayed=!0,d=Ot.setTimeout(y,u),o.pauseQueue.add(h),o.timeouts.add(d)):y()}function y(){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},s)}catch(b){c(b)}}})}var rC=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Nu(e.get()):t.every(n=>n.noop)?nP(e.get()):Pa(e.get(),t.every(n=>n.finished)),nP=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Pa=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Nu=e=>({value:e,cancelled:!0,finished:!1});function rP(e,t,n,r){const{callId:o,parentId:a,onRest:s}=t,{asyncTo:c,promise:u}=n;return!a&&e===c&&!t.reset?u:n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const d=nC(t,(S,T)=>T==="onRest"?void 0:S);let p,h;const g=new Promise((S,T)=>(p=S,h=T)),y=S=>{const T=o<=(n.cancelId||0)&&Nu(r)||o!==n.asyncId&&Pa(r,!1);if(T)throw S.result=T,h(S),S},b=(S,T)=>{const D=new $R,w=new VR;return(async()=>{if(Ha.skipAnimation)throw eh(n),w.result=Pa(r,!1),h(w),w;y(D);const R=We.obj(S)?{...S}:{...T,to:S};R.parentId=o,yi(d,(O,F)=>{We.und(R[F])&&(R[F]=O)});const I=await r.start(R);return y(D),n.paused&&await new Promise(O=>{n.resumeQueue.add(O)}),I})()};let x;if(Ha.skipAnimation)return eh(n),Pa(r,!1);try{let S;We.arr(e)?S=(async T=>{for(const D of T)await b(D)})(e):S=Promise.resolve(e(b,r.stop.bind(r))),await Promise.all([S.then(p),g]),x=Pa(r.get(),!0,!1)}catch(S){if(S instanceof $R)x=S.result;else if(S instanceof VR)x=S.result;else throw S}finally{o==n.asyncId&&(n.asyncId=a,n.asyncTo=a?c:void 0,n.promise=a?u:void 0)}return We.fun(s)&&Ot.batchedUpdates(()=>{s(x,r,r.item)}),x})()}function eh(e,t){mp(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var $R=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.")}},VR=class extends Error{constructor(){super("SkipAnimationSignal")}},Wx=e=>e instanceof oC,gee=1,oC=class extends H4{constructor(){super(...arguments),this.id=gee++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=ai(this);return e&&e.getValue()}to(...e){return Ha.to(this,e)}interpolate(...e){return WJ(),Ha.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){Qp(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||z0.sort(this),Qp(this,{type:"priority",parent:this,priority:e})}},ic=Symbol.for("SpringPhase"),oP=1,aP=2,iP=4,uE=e=>(e[ic]&oP)>0,Ms=e=>(e[ic]&aP)>0,Bf=e=>(e[ic]&iP)>0,GR=(e,t)=>t?e[ic]|=aP|oP:e[ic]&=-3,qR=(e,t)=>t?e[ic]|=iP:e[ic]&=-5,yee=class extends oC{constructor(e,t){if(super(),this.animation=new mee,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,!We.und(e)||!We.und(t)){const n=We.obj(e)?{...e}:{...t,from:e};We.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Ms(this)||this._state.asyncTo)||Bf(this)}get goal(){return xo(this.animation.to)}get velocity(){const e=ai(this);return e instanceof W0?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return uE(this)}get isAnimating(){return Ms(this)}get isPaused(){return Bf(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,s=q0(r.to);!s&&ha(r.to)&&(o=$o(xo(r.to))),r.values.forEach((d,p)=>{if(d.done)return;const h=d.constructor==Ry?1:s?s[p].lastPosition:o[p];let g=r.immediate,y=h;if(!g){if(y=d.lastPosition,a.tension<=0){d.done=!0;return}let b=d.elapsedTime+=e;const x=r.fromValues[p],S=d.v0!=null?d.v0:d.v0=We.arr(a.velocity)?a.velocity[p]:a.velocity;let T;const D=a.precision||(x==h?.005:Math.min(1,Math.abs(h-x)*.001));if(We.und(a.duration))if(a.decay){const w=a.decay===!0?.998:a.decay,R=Math.exp(-(1-w)*b);y=x+S/(1-w)*(1-R),g=Math.abs(d.lastPosition-y)<=D,T=S*R}else{T=d.lastVelocity==null?S:d.lastVelocity;const w=a.restVelocity||D/10,R=a.clamp?0:a.bounce,I=!We.und(R),O=x==h?d.v0>0:x<h;let F,j=!1;const H=1,C=Math.ceil(e/H);for(let M=0;M<C&&(F=Math.abs(T)>w,!(!F&&(g=Math.abs(h-y)<=D,g)));++M){I&&(j=y==h||y>h==O,j&&(T=-T*R,y=h));const $=-a.tension*1e-6*(y-h),z=-a.friction*.001*T,q=($+z)/a.mass;T=T+q*H,y=y+T*H}}else{let w=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)),w=(a.progress||0)+b/this._memoizedDuration,w=w>1?1:w<0?0:w,d.durationProgress=w),y=x+a.easing(w)*(h-x),T=(y-d.lastPosition)/e,g=w==1}d.lastVelocity=T,Number.isNaN(y)&&(console.warn("Got NaN while animating:",this),g=!0)}s&&!s[p].done&&(g=!1),g?d.done=!0:t=!1,d.setValue(y,a.round)&&(n=!0)});const c=ai(this),u=c.getValue();if(t){const d=xo(r.to);(u!==d||n)&&!a.decay?(c.setValue(d),this._onChange(d)):n&&a.decay&&this._onChange(u),this._stop()}else n&&this._onChange(u)}set(e){return Ot.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Ms(this)){const{to:e,config:t}=this.animation;Ot.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 We.und(e)?(n=this.queue||[],this.queue=[]):n=[We.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>rC(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),eh(this._state,e&&this._lastCallId),Ot.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=We.obj(n)?n[t]:n,(n==null||Gx(n))&&(n=void 0),r=We.obj(r)?r[t]:r,r==null&&(r=void 0);const o={to:n,from:r};return uE(this)||(e.reverse&&([n,r]=[r,n]),r=xo(r),We.und(r)?ai(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,nC(e,(s,c)=>/^on/.test(c)?Z4(s,n):s)),YR(this,e,"onProps"),Uf(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 tP(++this._lastCallId,{key:n,props:e,defaultProps:r,state:a,actions:{pause:()=>{Bf(this)||(qR(this,!0),rp(a.pauseQueue),Uf(this,"onPause",Pa(this,jf(this,this.animation.to)),this))},resume:()=>{Bf(this)&&(qR(this,!1),Ms(this)&&this._resume(),rp(a.resumeQueue),Uf(this,"onResume",Pa(this,jf(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then(s=>{if(e.loop&&s.finished&&!(t&&s.noop)){const c=sP(e);if(c)return this._update(c,!0)}return s})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Nu(this));const r=!We.und(e.to),o=!We.und(e.from);if(r||o)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Nu(this));const{key:a,defaultProps:s,animation:c}=this,{to:u,from:d}=c;let{to:p=u,from:h=d}=e;o&&!r&&(!t.default||We.und(p))&&(p=h),t.reverse&&([p,h]=[h,p]);const g=!qi(h,d);g&&(c.from=h),h=xo(h);const y=!qi(p,u);y&&this._focus(p);const b=Gx(t.to),{config:x}=c,{decay:S,velocity:T}=x;(r||o)&&(x.velocity=0),t.config&&!b&&hee(x,Pl(t.config,a),t.config!==s.config?Pl(s.config,a):void 0);let D=ai(this);if(!D||We.und(p))return n(Pa(this,!0));const w=We.und(t.reset)?o&&!t.default:!We.und(h)&&yp(t.reset,a),R=w?h:this.get(),I=Jp(p),O=We.num(I)||We.arr(I)||G0(I),F=!b&&(!O||yp(s.immediate||t.immediate,a));if(y){const M=Vx(p);if(M!==D.constructor)if(F)D=this._set(I);else throw Error(`Cannot animate between ${D.constructor.name} and ${M.name}, as the "to" prop suggests`)}const j=D.constructor;let H=ha(p),C=!1;if(!H){const M=w||!uE(this)&&g;(y||M)&&(C=qi(Jp(R),I),H=!C),(!qi(c.immediate,F)&&!F||!qi(x.decay,S)||!qi(x.velocity,T))&&(H=!0)}if(C&&Ms(this)&&(c.changed&&!w?H=!0:H||this._stop(u)),!b&&((H||ha(u))&&(c.values=D.getPayload(),c.toValues=ha(p)?null:j==Ry?[1]:$o(I)),c.immediate!=F&&(c.immediate=F,!F&&!w&&this._set(u)),H)){const{onRest:M}=c;Zt(vee,z=>YR(this,t,z));const $=Pa(this,jf(this,u));rp(this._pendingCalls,$),this._pendingCalls.add(n),c.changed&&Ot.batchedUpdates(()=>{c.changed=!w,M?.($,this),w?Pl(s.onRest,$):c.onStart?.($,this)})}w&&this._set(R),b?n(rP(t.to,t,this._state,this)):H?this._start():Ms(this)&&!y?this._pendingCalls.add(n):n(nP(R))}_focus(e){const t=this.animation;e!==t.to&&(LR(this)&&this._detach(),t.to=e,LR(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;ha(t)&&(dd(t,this),Wx(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;ha(e)&&Xp(e,this)}_set(e,t=!0){const n=xo(e);if(!We.und(n)){const r=ai(this);if(!r||!qi(n,r.getValue())){const o=Vx(n);!r||r.constructor!=o?tC(this,o.create(n)):r.setValue(n),r&&Ot.batchedUpdates(()=>{this._onChange(n,t)})}}return ai(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Uf(this,"onStart",Pa(this,jf(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Pl(this.animation.onChange,e,this)),Pl(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;ai(this).reset(xo(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Ms(this)||(GR(this,!0),Bf(this)||this._resume())}_resume(){Ha.skipAnimation?this.finish():z0.start(this)}_stop(e,t){if(Ms(this)){GR(this,!1);const n=this.animation;Zt(n.values,o=>{o.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Qp(this,{type:"idle",parent:this});const r=t?Nu(this.get()):Pa(this.get(),jf(this,e??n.to));rp(this._pendingCalls,r),n.changed&&(n.changed=!1,Uf(this,"onRest",r,this))}}};function jf(e,t){const n=Jp(t),r=Jp(e.get());return qi(r,n)}function sP(e,t=e.loop,n=e.to){const r=Pl(t);if(r){const o=r!==!0&&eP(r),a=(o||e).reverse,s=!o||o.reset;return th({...e,loop:t,default:!1,pause:void 0,to:!a||Gx(n)?n:void 0,from:s?e.from:void 0,reset:s,...o})}}function th(e){const{to:t,from:n}=e=eP(e),r=new Set;return We.obj(t)&&WR(t,r),We.obj(n)&&WR(n,r),e.keys=r.size?Array.from(r):null,e}function bee(e){const t=th(e);return We.und(t.default)&&(t.default=nC(t)),t}function WR(e,t){yi(e,(n,r)=>n!=null&&t.add(r))}var vee=["onStart","onRest","onChange","onPause","onResume"];function YR(e,t,n){e.animation[n]=t[n]!==J4(t,n)?Z4(t[n],e.key):void 0}function Uf(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var Eee=["onStart","onChange","onRest"],xee=1,Tee=class{constructor(e,t){this.id=xee++,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];We.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(th(e)),this}start(e){let{queue:t}=this;return e?t=$o(e).map(th):this.queue=[],this._flush?this._flush(this,t):(fP(this,t),Yx(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Zt($o(t),r=>n[r].stop(!!e))}else eh(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(We.und(e))this.start({pause:!0});else{const t=this.springs;Zt($o(e),n=>t[n].pause())}return this}resume(e){if(We.und(e))this.start({pause:!1});else{const t=this.springs;Zt($o(e),n=>t[n].resume())}return this}each(e){yi(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,mp(e,([c,u])=>{u.value=this.get(),c(u,this,this._item)}));const a=!r&&this._started,s=o||a&&n.size?this.get():null;o&&t.size&&mp(t,([c,u])=>{u.value=s,c(u,this,this._item)}),a&&(this._started=!1,mp(n,([c,u])=>{u.value=s,c(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;Ot.onFrame(this._onFrame)}};function Yx(e,t){return Promise.all(t.map(n=>lP(e,n))).then(n=>rC(e,n))}async function lP(e,t,n){const{keys:r,to:o,from:a,loop:s,onRest:c,onResolve:u}=t,d=We.obj(t.default)&&t.default;s&&(t.loop=!1),o===!1&&(t.to=null),a===!1&&(t.from=null);const p=We.arr(o)||We.fun(o)?o:void 0;p?(t.to=void 0,t.onRest=void 0,d&&(d.onRest=void 0)):Zt(Eee,x=>{const S=t[x];if(We.fun(S)){const T=e._events[x];t[x]=({finished:D,cancelled:w})=>{const R=T.get(S);R?(D||(R.finished=!1),w&&(R.cancelled=!0)):T.set(S,{value:null,finished:D||!1,cancelled:w||!1})},d&&(d[x]=t[x])}});const h=e._state;t.pause===!h.paused?(h.paused=t.pause,rp(t.pause?h.pauseQueue:h.resumeQueue)):h.paused&&(t.pause=!0);const g=(r||Object.keys(e.springs)).map(x=>e.springs[x].start(t)),y=t.cancel===!0||J4(t,"cancel")===!0;(p||y&&h.asyncId)&&g.push(tP(++e._lastAsyncId,{props:t,state:h,actions:{pause:zx,resume:zx,start(x,S){y?(eh(h,e._lastAsyncId),S(Nu(e))):(x.onRest=c,S(rP(p,x,h,e)))}}})),h.paused&&await new Promise(x=>{h.resumeQueue.add(x)});const b=rC(e,await Promise.all(g));if(s&&b.finished&&!(n&&b.noop)){const x=sP(t,s,o);if(x)return fP(e,[x]),lP(e,x,!0)}return u&&Ot.batchedUpdates(()=>u(b,e,e.item)),b}function KR(e,t){const n={...e.springs};return t&&Zt($o(t),r=>{We.und(r.keys)&&(r=th(r)),We.obj(r.to)||(r={...r,to:void 0}),dP(n,r,o=>uP(o))}),cP(e,n),n}function cP(e,t){yi(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,dd(n,e))})}function uP(e,t){const n=new yee;return n.key=e,t&&dd(n,t),n}function dP(e,t,n){t.keys&&Zt(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function fP(e,t){Zt(t,n=>{dP(e.springs,n,r=>uP(r,e))})}var See=k.createContext({pause:!1,immediate:!1}),Cee=()=>{const e=[],t=function(r){KJ();const o=[];return Zt(e,(a,s)=>{if(We.und(r))o.push(a.start());else{const c=n(r,a,s);c&&o.push(a.start(c))}}),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 Zt(e,r=>r.pause(...arguments)),this},t.resume=function(){return Zt(e,r=>r.resume(...arguments)),this},t.set=function(r){Zt(e,(o,a)=>{const s=We.fun(r)?r(a,o):r;s&&o.set(s)})},t.start=function(r){const o=[];return Zt(e,(a,s)=>{if(We.und(r))o.push(a.start());else{const c=this._getProps(r,a,s);c&&o.push(a.start(c))}}),o},t.stop=function(){return Zt(e,r=>r.stop(...arguments)),this},t.update=function(r){return Zt(e,(o,a)=>o.update(this._getProps(r,o,a))),this};const n=function(r,o,a){return We.fun(r)?r(a,o):r};return t._getProps=n,t};function _ee(e,t,n){const r=We.fun(t)&&t;r&&!n&&(n=[]);const o=k.useMemo(()=>r||arguments.length==3?Cee():void 0,[]),a=k.useRef(0),s=q4(),c=k.useMemo(()=>({ctrls:[],queue:[],flush(T,D){const w=KR(T,D);return a.current>0&&!c.queue.length&&!Object.keys(w).some(I=>!T.springs[I])?Yx(T,D):new Promise(I=>{cP(T,w),c.queue.push(()=>{I(Yx(T,D))}),s()})}}),[]),u=k.useRef([...c.ctrls]),d=k.useRef([]),p=FR(e)||0;k.useMemo(()=>{Zt(u.current.slice(e,p),T=>{uee(T,o),T.stop(!0)}),u.current.length=e,h(p,e)},[e]),k.useMemo(()=>{h(0,Math.min(p,e))},n);function h(T,D){for(let w=T;w<D;w++){const R=u.current[w]||(u.current[w]=new Tee(null,c.flush)),I=r?r(w,R):t[w];I&&(d.current[w]=bee(I))}}const g=u.current.map((T,D)=>KR(T,d.current[D])),y=k.useContext(See),b=FR(y),x=y!==b&&cee(y);eC(()=>{a.current++,c.ctrls=u.current;const{queue:T}=c;T.length&&(c.queue=[],Zt(T,D=>D())),Zt(u.current,(D,w)=>{o?.add(D),x&&D.start({default:y});const R=d.current[w];R&&(dee(D,R.ref),D.ref?D.queue.push(R):D.start(R))})}),W4(()=>()=>{Zt(c.ctrls,T=>T.stop(!0))});const S=g.map(T=>({...T}));return o?[S,o]:S}function Aee(e,t){const n=We.fun(e),[[r],o]=_ee(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,o]:r}var kee=class extends oC{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Yp(...t);const n=this._get(),r=Vx(n);tC(this,r.create(n))}advance(e){const t=this._get(),n=this.get();qi(t,n)||(ai(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&QR(this._active)&&dE(this)}_get(){const e=We.arr(this.source)?this.source.map(xo):$o(xo(this.source));return this.calc(...e)}_start(){this.idle&&!QR(this._active)&&(this.idle=!1,Zt(q0(this),e=>{e.done=!1}),Ha.skipAnimation?(Ot.batchedUpdates(()=>this.advance()),dE(this)):z0.start(this))}_attach(){let e=1;Zt($o(this.source),t=>{ha(t)&&dd(t,this),Wx(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Zt($o(this.source),e=>{ha(e)&&Xp(e,this)}),this._active.clear(),dE(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=$o(this.source).reduce((t,n)=>Math.max(t,(Wx(n)?n.priority:0)+1),0))}};function wee(e){return e.idle!==!1}function QR(e){return!e.size||Array.from(e).every(wee)}function dE(e){e.idle||(e.idle=!0,Zt(q0(e),t=>{t.done=!0}),Qp(e,{type:"idle",parent:e}))}Ha.assign({createStringInterpolator:V4,to:(e,t)=>new kee(e,t)});var pP=/^--/;function Dee(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!pP.test(e)&&!(bp.hasOwnProperty(e)&&bp[e])?t+"px":(""+t).trim()}var XR={};function Ree(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:s,scrollLeft:c,viewBox:u,...d}=t,p=Object.values(d),h=Object.keys(d).map(g=>n||e.hasAttribute(g)?g:XR[g]||(XR[g]=g.replace(/([A-Z])/g,y=>"-"+y.toLowerCase())));a!==void 0&&(e.textContent=a);for(const g in o)if(o.hasOwnProperty(g)){const y=Dee(g,o[g]);pP.test(g)?e.style.setProperty(g,y):e.style[g]=y}h.forEach((g,y)=>{e.setAttribute(g,p[y])}),r!==void 0&&(e.className=r),s!==void 0&&(e.scrollTop=s),c!==void 0&&(e.scrollLeft=c),u!==void 0&&e.setAttribute("viewBox",u)}var bp={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},Iee=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),Oee=["Webkit","Ms","Moz","O"];bp=Object.keys(bp).reduce((e,t)=>(Oee.forEach(n=>e[Iee(n,t)]=e[t]),e),bp);var Nee=/^(matrix|translate|scale|rotate|skew)/,Pee=/^(translate)/,Lee=/^(rotate|skew)/,fE=(e,t)=>We.num(e)&&e!==0?e+t:e,Wg=(e,t)=>We.arr(e)?e.every(n=>Wg(n,t)):We.num(e)?e===t:parseFloat(e)===t,Mee=class extends Y0{constructor({x:e,y:t,z:n,...r}){const o=[],a=[];(e||t||n)&&(o.push([e||0,t||0,n||0]),a.push(s=>[`translate3d(${s.map(c=>fE(c,"px")).join(",")})`,Wg(s,0)])),yi(r,(s,c)=>{if(c==="transform")o.push([s||""]),a.push(u=>[u,u===""]);else if(Nee.test(c)){if(delete r[c],We.und(s))return;const u=Pee.test(c)?"px":Lee.test(c)?"deg":"";o.push($o(s)),a.push(c==="rotate3d"?([d,p,h,g])=>[`rotate3d(${d},${p},${h},${fE(g,u)})`,Wg(g,0)]:d=>[`${c}(${d.map(p=>fE(p,u)).join(",")})`,Wg(d,c.startsWith("scale")?1:0)])}}),o.length&&(r.transform=new Fee(o,a)),super(r)}},Fee=class extends H4{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 Zt(this.inputs,(n,r)=>{const o=xo(n[0]),[a,s]=this.transforms[r](We.arr(o)?o:n.map(xo));e+=" "+a,t=t&&s}),t?"none":e}observerAdded(e){e==1&&Zt(this.inputs,t=>Zt(t,n=>ha(n)&&dd(n,this)))}observerRemoved(e){e==0&&Zt(this.inputs,t=>Zt(t,n=>ha(n)&&Xp(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Qp(this,e)}},Bee=["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"];Ha.assign({batchedUpdates:s0.unstable_batchedUpdates,createStringInterpolator:V4,colors:kJ});var jee=oee(Bee,{applyAnimatedValues:Ree,createAnimatedStyle:e=>new Mee(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Uee=jee.animated;const ZR=e=>e,Hee=()=>{let e=ZR;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ZR}}},zee=Hee();function sc(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 za(e){if(typeof e!="string")throw new Error(sc(7));return e.charAt(0).toUpperCase()+e.slice(1)}function K0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var JR={exports:{}},pE,eI;function $ee(){if(eI)return pE;eI=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return pE=e,pE}var hE,tI;function Vee(){if(tI)return hE;tI=1;var e=$ee();function t(){}function n(){}return n.resetWarningCache=t,hE=function(){function r(s,c,u,d,p,h){if(h!==e){var g=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 g.name="Invariant Violation",g}}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},hE}var nI;function Gee(){return nI||(nI=1,JR.exports=Vee()()),JR.exports}var qee=Gee();const rI=K0(qee);function hP(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=hP(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function or(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=hP(e))&&(r&&(r+=" "),r+=t);return r}function Oh(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let s="",c=!0;for(let u=0;u<a.length;u+=1){const d=a[u];d&&(s+=(c===!0?"":" ")+t(d),c=!1,n&&n[d]&&(s+=" "+n[d]))}r[o]=s}return r}var oI={exports:{}},En={};/**
|
|
241
|
+
* @license React
|
|
242
|
+
* react-is.production.js
|
|
243
|
+
*
|
|
244
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
245
|
+
*
|
|
246
|
+
* This source code is licensed under the MIT license found in the
|
|
247
|
+
* LICENSE file in the root directory of this source tree.
|
|
248
|
+
*/var aI;function Wee(){if(aI)return En;aI=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"),s=Symbol.for("react.context"),c=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"),g=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function b(x){if(typeof x=="object"&&x!==null){var S=x.$$typeof;switch(S){case e:switch(x=x.type,x){case n:case o:case r:case u:case d:case g:return x;default:switch(x=x&&x.$$typeof,x){case s:case c:case h:case p:return x;case a:return x;default:return S}}case t:return S}}}return En.ContextConsumer=a,En.ContextProvider=s,En.Element=e,En.ForwardRef=c,En.Fragment=n,En.Lazy=h,En.Memo=p,En.Portal=t,En.Profiler=o,En.StrictMode=r,En.Suspense=u,En.SuspenseList=d,En.isContextConsumer=function(x){return b(x)===a},En.isContextProvider=function(x){return b(x)===s},En.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},En.isForwardRef=function(x){return b(x)===c},En.isFragment=function(x){return b(x)===n},En.isLazy=function(x){return b(x)===h},En.isMemo=function(x){return b(x)===p},En.isPortal=function(x){return b(x)===t},En.isProfiler=function(x){return b(x)===o},En.isStrictMode=function(x){return b(x)===r},En.isSuspense=function(x){return b(x)===u},En.isSuspenseList=function(x){return b(x)===d},En.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===n||x===o||x===r||x===u||x===d||typeof x=="object"&&x!==null&&(x.$$typeof===h||x.$$typeof===p||x.$$typeof===s||x.$$typeof===a||x.$$typeof===c||x.$$typeof===y||x.getModuleId!==void 0)},En.typeOf=b,En}var iI;function Yee(){return iI||(iI=1,oI.exports=Wee()),oI.exports}var mP=Yee();function Yi(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 gP(e){if(k.isValidElement(e)||mP.isValidElementType(e)||!Yi(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=gP(e[n])}),t}function Go(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Yi(e)&&Yi(t)&&Object.keys(t).forEach(o=>{k.isValidElement(t[o])||mP.isValidElementType(t[o])?r[o]=t[o]:Yi(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Yi(e[o])?r[o]=Go(e[o],t[o],n):n.clone?r[o]=Yi(t[o])?gP(t[o]):t[o]:r[o]=t[o]}),r}function vp(e,t){return t?Go(e,t,{clone:!1}):e}function Kee(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 Qee(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Xee(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 Zee(e){const t=(a,s)=>a.replace("@media",s?`@container ${s}`:"@container");function n(a,s){a.up=(...c)=>t(e.breakpoints.up(...c),s),a.down=(...c)=>t(e.breakpoints.down(...c),s),a.between=(...c)=>t(e.breakpoints.between(...c),s),a.only=(...c)=>t(e.breakpoints.only(...c),s),a.not=(...c)=>{const u=t(e.breakpoints.not(...c),s);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 Q0={xs:0,sm:600,md:900,lg:1200,xl:1536},sI={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Q0[e]}px)`},Jee={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 rs(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||sI;return t.reduce((a,s,c)=>(a[o.up(o.keys[c])]=n(t[c]),a),{})}if(typeof t=="object"){const o=r.breakpoints||sI;return Object.keys(t).reduce((a,s)=>{if(Qee(o.keys,s)){const c=Xee(r.containerQueries?r:Jee,s);c&&(a[c]=n(t[s],s))}else if(Object.keys(o.values||Q0).includes(s)){const c=o.up(s);a[c]=n(t[s],s)}else{const c=s;a[c]=t[c]}return a},{})}return n(t)}function ete(e={}){return e.keys?.reduce((t,n)=>{const r=e.up(n);return t[r]={},t},{})||{}}function tte(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function X0(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 Oy(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=X0(e,n)||r,t&&(o=t(o,r,e)),o}function sr(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=s=>{if(s[t]==null)return null;const c=s[t],u=s.theme,d=X0(u,r)||{};return rs(s,c,p=>{let h=Oy(d,o,p);return p===h&&typeof p=="string"&&(h=Oy(d,o,`${t}${p==="default"?"":za(p)}`,p)),n===!1?h:{[n]:h}})};return a.propTypes={},a.filterProps=[t],a}function nte(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const rte={m:"margin",p:"padding"},ote={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},lI={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ate=nte(e=>{if(e.length>2)if(lI[e])e=lI[e];else return[e];const[t,n]=e.split(""),r=rte[t],o=ote[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),aC=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],iC=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...aC,...iC];function Nh(e,t,n,r){const o=X0(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 s=Math.abs(a),c=o[s];return a>=0?c:typeof c=="number"?-c:typeof c=="string"&&c.startsWith("var(")?`calc(-1 * ${c})`:`-${c}`}:typeof o=="function"?o:()=>{}}function sC(e){return Nh(e,"spacing",8)}function Ph(e,t){return typeof t=="string"||t==null?t:e(t)}function ite(e,t){return n=>e.reduce((r,o)=>(r[o]=Ph(t,n),r),{})}function ste(e,t,n,r){if(!t.includes(n))return null;const o=ate(n),a=ite(o,r),s=e[n];return rs(e,s,a)}function yP(e,t){const n=sC(e.theme);return Object.keys(e).map(r=>ste(e,t,r,n)).reduce(vp,{})}function Kn(e){return yP(e,aC)}Kn.propTypes={};Kn.filterProps=aC;function Qn(e){return yP(e,iC)}Qn.propTypes={};Qn.filterProps=iC;function Z0(...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]?vp(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function ma(e){return typeof e!="number"?e:`${e}px solid`}function Aa(e,t){return sr({prop:e,themeKey:"borders",transform:t})}const lte=Aa("border",ma),cte=Aa("borderTop",ma),ute=Aa("borderRight",ma),dte=Aa("borderBottom",ma),fte=Aa("borderLeft",ma),pte=Aa("borderColor"),hte=Aa("borderTopColor"),mte=Aa("borderRightColor"),gte=Aa("borderBottomColor"),yte=Aa("borderLeftColor"),bte=Aa("outline",ma),vte=Aa("outlineColor"),J0=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Nh(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Ph(t,r)});return rs(e,e.borderRadius,n)}return null};J0.propTypes={};J0.filterProps=["borderRadius"];Z0(lte,cte,ute,dte,fte,pte,hte,mte,gte,yte,J0,bte,vte);const eb=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Nh(e.theme,"spacing",8),n=r=>({gap:Ph(t,r)});return rs(e,e.gap,n)}return null};eb.propTypes={};eb.filterProps=["gap"];const tb=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Nh(e.theme,"spacing",8),n=r=>({columnGap:Ph(t,r)});return rs(e,e.columnGap,n)}return null};tb.propTypes={};tb.filterProps=["columnGap"];const nb=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Nh(e.theme,"spacing",8),n=r=>({rowGap:Ph(t,r)});return rs(e,e.rowGap,n)}return null};nb.propTypes={};nb.filterProps=["rowGap"];const Ete=sr({prop:"gridColumn"}),xte=sr({prop:"gridRow"}),Tte=sr({prop:"gridAutoFlow"}),Ste=sr({prop:"gridAutoColumns"}),Cte=sr({prop:"gridAutoRows"}),_te=sr({prop:"gridTemplateColumns"}),Ate=sr({prop:"gridTemplateRows"}),kte=sr({prop:"gridTemplateAreas"}),wte=sr({prop:"gridArea"});Z0(eb,tb,nb,Ete,xte,Tte,Ste,Cte,_te,Ate,kte,wte);function Pu(e,t){return t==="grey"?t:e}const Dte=sr({prop:"color",themeKey:"palette",transform:Pu}),Rte=sr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Pu}),Ite=sr({prop:"backgroundColor",themeKey:"palette",transform:Pu});Z0(Dte,Rte,Ite);function zo(e){return e<=1&&e!==0?`${e*100}%`:e}const Ote=sr({prop:"width",transform:zo}),lC=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:zo(n)}};return rs(e,e.maxWidth,t)}return null};lC.filterProps=["maxWidth"];const Nte=sr({prop:"minWidth",transform:zo}),Pte=sr({prop:"height",transform:zo}),Lte=sr({prop:"maxHeight",transform:zo}),Mte=sr({prop:"minHeight",transform:zo});sr({prop:"size",cssProperty:"width",transform:zo});sr({prop:"size",cssProperty:"height",transform:zo});const Fte=sr({prop:"boxSizing"});Z0(Ote,lC,Nte,Pte,Lte,Mte,Fte);const rb={border:{themeKey:"borders",transform:ma},borderTop:{themeKey:"borders",transform:ma},borderRight:{themeKey:"borders",transform:ma},borderBottom:{themeKey:"borders",transform:ma},borderLeft:{themeKey:"borders",transform:ma},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ma},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:J0},color:{themeKey:"palette",transform:Pu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Pu},backgroundColor:{themeKey:"palette",transform:Pu},p:{style:Qn},pt:{style:Qn},pr:{style:Qn},pb:{style:Qn},pl:{style:Qn},px:{style:Qn},py:{style:Qn},padding:{style:Qn},paddingTop:{style:Qn},paddingRight:{style:Qn},paddingBottom:{style:Qn},paddingLeft:{style:Qn},paddingX:{style:Qn},paddingY:{style:Qn},paddingInline:{style:Qn},paddingInlineStart:{style:Qn},paddingInlineEnd:{style:Qn},paddingBlock:{style:Qn},paddingBlockStart:{style:Qn},paddingBlockEnd:{style:Qn},m:{style:Kn},mt:{style:Kn},mr:{style:Kn},mb:{style:Kn},ml:{style:Kn},mx:{style:Kn},my:{style:Kn},margin:{style:Kn},marginTop:{style:Kn},marginRight:{style:Kn},marginBottom:{style:Kn},marginLeft:{style:Kn},marginX:{style:Kn},marginY:{style:Kn},marginInline:{style:Kn},marginInlineStart:{style:Kn},marginInlineEnd:{style:Kn},marginBlock:{style:Kn},marginBlockStart:{style:Kn},marginBlockEnd:{style:Kn},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:eb},rowGap:{style:nb},columnGap:{style:tb},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:zo},maxWidth:{style:lC},minWidth:{transform:zo},height:{transform:zo},maxHeight:{transform:zo},minHeight:{transform:zo},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 Bte(...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 jte(e,t){return typeof e=="function"?e(t):e}function Ute(){function e(n,r,o,a){const s={[n]:r,theme:o},c=a[n];if(!c)return{[n]:r};const{cssProperty:u=n,themeKey:d,transform:p,style:h}=c;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const g=X0(o,d)||{};return h?h(s):rs(s,r,y=>{let b=Oy(g,p,y);return y===b&&typeof y=="string"&&(b=Oy(g,p,`${n}${y==="default"?"":za(y)}`,y)),u===!1?b:{[u]:b}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const a=o.unstable_sxConfig??rb;function s(c){let u=c;if(typeof c=="function")u=c(o);else if(typeof c!="object")return c;if(!u)return null;const d=ete(o.breakpoints),p=Object.keys(d);let h=d;return Object.keys(u).forEach(g=>{const y=jte(u[g],o);if(y!=null)if(typeof y=="object")if(a[g])h=vp(h,e(g,y,o,a));else{const b=rs({theme:o},y,x=>({[g]:x}));Bte(b,y)?h[g]=t({sx:y,theme:o}):h=vp(h,b)}else h=vp(h,e(g,y,o,a))}),Kee(o,tte(p,h))}return Array.isArray(r)?r.map(s):s(r)}return t}const Ku=Ute();Ku.filterProps=["sx"];function Hte(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function cC(e,t=0,n=1){return Hte(e,t,n)}function zte(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 Js(e){if(e.type)return e;if(e.charAt(0)==="#")return Js(zte(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(sc(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(sc(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}const $te=e=>{const t=Js(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},op=(e,t)=>{try{return $te(e)}catch{return e}};function ob(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 bP(e){e=Js(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),s=(d,p=(d+n/30)%12)=>o-a*Math.max(Math.min(p-3,9-p,1),-1);let c="rgb";const u=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(c+="a",u.push(t[3])),ob({type:c,values:u})}function Kx(e){e=Js(e);let t=e.type==="hsl"||e.type==="hsla"?Js(bP(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 Vte(e,t){const n=Kx(e),r=Kx(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Qx(e,t){return e=Js(e),t=cC(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ob(e)}function yg(e,t,n){try{return Qx(e,t)}catch{return e}}function uC(e,t){if(e=Js(e),t=cC(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 ob(e)}function An(e,t,n){try{return uC(e,t)}catch{return e}}function dC(e,t){if(e=Js(e),t=cC(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 ob(e)}function kn(e,t,n){try{return dC(e,t)}catch{return e}}function Gte(e,t=.15){return Kx(e)>.5?uC(e,t):dC(e,t)}function bg(e,t,n){try{return Gte(e,t)}catch{return e}}const nh={black:"#000",white:"#fff"},qte={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"},iu={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},su={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Hf={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},lu={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},cu={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},uu={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function vP(){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:nh.white,default:nh.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 Wte=vP();function EP(){return{text:{primary:nh.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:nh.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 cI=EP();function uI(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=dC(e.main,o):t==="dark"&&(e.dark=uC(e.main,a)))}function Yte(e="light"){return e==="dark"?{main:lu[200],light:lu[50],dark:lu[400]}:{main:lu[700],light:lu[400],dark:lu[800]}}function Kte(e="light"){return e==="dark"?{main:iu[200],light:iu[50],dark:iu[400]}:{main:iu[500],light:iu[300],dark:iu[700]}}function Qte(e="light"){return e==="dark"?{main:su[500],light:su[300],dark:su[700]}:{main:su[700],light:su[400],dark:su[800]}}function Xte(e="light"){return e==="dark"?{main:cu[400],light:cu[300],dark:cu[700]}:{main:cu[700],light:cu[500],dark:cu[900]}}function Zte(e="light"){return e==="dark"?{main:uu[400],light:uu[300],dark:uu[700]}:{main:uu[800],light:uu[500],dark:uu[900]}}function Jte(e="light"){return e==="dark"?{main:Hf[400],light:Hf[300],dark:Hf[700]}:{main:"#ed6c02",light:Hf[500],dark:Hf[900]}}function fC(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,a=e.primary||Yte(t),s=e.secondary||Kte(t),c=e.error||Qte(t),u=e.info||Xte(t),d=e.success||Zte(t),p=e.warning||Jte(t);function h(b){return Vte(b,cI.text.primary)>=n?cI.text.primary:Wte.text.primary}const g=({color:b,name:x,mainShade:S=500,lightShade:T=300,darkShade:D=700})=>{if(b={...b},!b.main&&b[S]&&(b.main=b[S]),!b.hasOwnProperty("main"))throw new Error(sc(11,x?` (${x})`:"",S));if(typeof b.main!="string")throw new Error(sc(12,x?` (${x})`:"",JSON.stringify(b.main)));return uI(b,"light",T,r),uI(b,"dark",D,r),b.contrastText||(b.contrastText=h(b.main)),b};let y;return t==="light"?y=vP():t==="dark"&&(y=EP()),Go({common:{...nh},mode:t,primary:g({color:a,name:"primary"}),secondary:g({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:c,name:"error"}),warning:g({color:p,name:"warning"}),info:g({color:u,name:"info"}),success:g({color:d,name:"success"}),grey:qte,contrastThreshold:n,getContrastText:h,augmentColor:g,tonalOffset:r,...y},o)}function ene(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 tne={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 nne(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var rne=/[A-Z]|^ms/g,one=/_EMO_([^_]+?)_([^]*?)_EMO_/g,xP=function(e){return e.charCodeAt(1)===45},dI=function(e){return e!=null&&typeof e!="boolean"},mE=nne(function(e){return xP(e)?e:e.replace(rne,"-$&").toLowerCase()}),fI=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(one,function(n,r,o){return Gs={name:r,styles:o,next:Gs},r})}return tne[e]!==1&&!xP(e)&&typeof t=="number"&&t!==0?t+"px":t};function Ny(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 Gs={name:o.name,styles:o.styles,next:Gs},o.name;var a=n;if(a.styles!==void 0){var s=a.next;if(s!==void 0)for(;s!==void 0;)Gs={name:s.name,styles:s.styles,next:Gs},s=s.next;var c=a.styles+";";return c}return ane(e,t,n)}}var u=n;return u}function ane(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Ny(e,t,n[o])+";";else for(var a in n){var s=n[a];if(typeof s!="object"){var c=s;dI(c)&&(r+=mE(a)+":"+fI(a,c)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var u=0;u<s.length;u++)dI(s[u])&&(r+=mE(a)+":"+fI(a,s[u])+";");else{var d=Ny(e,t,s);switch(a){case"animation":case"animationName":{r+=mE(a)+":"+d+";";break}default:r+=a+"{"+d+"}"}}}return r}var pI=/label:\s*([^\s;{]+)\s*(;|$)/g,Gs;function ine(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="";Gs=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,o+=Ny(n,t,a);else{var s=a;o+=s[0]}for(var c=1;c<e.length;c++)if(o+=Ny(n,t,e[c]),r){var u=a;o+=u[c]}pI.lastIndex=0;for(var d="",p;(p=pI.exec(o))!==null;)d+="-"+p[1];var h=ene(o)+d;return{name:h,styles:o,next:Gs}}function sne(e,t){return fy(e,t)}function lne(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const hI=[];function mI(e){return hI[0]=e,ine(hI)}const cne=typeof window<"u"?k.useLayoutEffect:k.useEffect;function une(e){return Object.keys(e).length===0}function dne(e=null){const t=k.useContext(nd);return!t||une(t)?e:t}const fne=k.createContext(),pne=()=>k.useContext(fne)??!1;function Py(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=r;if(o==="components"||o==="slots")n[o]={...e[o],...n[o]};else if(o==="componentsProps"||o==="slotProps"){const a=e[o],s=t[o];if(!s)n[o]=a||{};else if(!a)n[o]=s;else{n[o]={...s};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const u=c;n[o][u]=Py(a[u],s[u])}}}else n[o]===void 0&&(n[o]=e[o])}return n}const hne=k.createContext(void 0);function mne(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?Py(o.defaultProps,r):!o.styleOverrides&&!o.variants?Py(o,r):r}function gne({props:e,name:t}){const n=k.useContext(hne);return mne({props:e,name:t,theme:{components:n}})}const gI=(e,t,n,r=[])=>{let o=e;t.forEach((a,s)=>{s===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])})},yne=(e,t,n)=>{function r(o,a=[],s=[]){Object.entries(o).forEach(([c,u])=>{(!n||n&&!n([...a,c]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?r(u,[...a,c],Array.isArray(u)?[...s,c]:s):t([...a,c],u,s))})}r(e)},bne=(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 gE(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},s={};return yne(e,(c,u,d)=>{if((typeof u=="string"||typeof u=="number")&&(!r||!r(c,u))){const p=`--${n?`${n}-`:""}${c.join("-")}`,h=bne(c,u);Object.assign(o,{[p]:h}),gI(a,c,`var(${p})`,d),gI(s,c,`var(${p}, ${h})`,d)}},c=>c[0]==="vars"),{css:o,vars:a,varsWithDefaults:s}}function vne(e,t={}){const{getSelector:n=S,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:a={},components:s,defaultColorScheme:c="light",...u}=e,{vars:d,css:p,varsWithDefaults:h}=gE(u,t);let g=h;const y={},{[c]:b,...x}=a;if(Object.entries(x||{}).forEach(([T,D])=>{const{vars:w,css:R,varsWithDefaults:I}=gE(D,t);g=Go(g,I),y[T]={css:R,vars:w}}),b){const{css:T,vars:D,varsWithDefaults:w}=gE(b,t);g=Go(g,w),y[c]={css:T,vars:D}}function S(T,D){let w=o;if(o==="class"&&(w=".%s"),o==="data"&&(w="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(w=`[${o}="%s"]`),T){if(w==="media")return e.defaultColorScheme===T?":root":{[`@media (prefers-color-scheme: ${a[T]?.palette?.mode||T})`]:{":root":D}};if(w)return e.defaultColorScheme===T?`:root, ${w.replace("%s",String(T))}`:w.replace("%s",String(T))}return":root"}return{vars:g,generateThemeVars:()=>{let T={...d};return Object.entries(y).forEach(([,{vars:D}])=>{T=Go(T,D)}),T},generateStyleSheets:()=>{const T=[],D=e.defaultColorScheme||"light";function w(O,F){Object.keys(F).length&&T.push(typeof O=="string"?{[O]:{...F}}:O)}w(n(void 0,{...p}),p);const{[D]:R,...I}=y;if(R){const{css:O}=R,F=a[D]?.palette?.mode,j=!r&&F?{colorScheme:F,...O}:{...O};w(n(D,{...j}),j)}return Object.entries(I).forEach(([O,{css:F}])=>{const j=a[O]?.palette?.mode,H=!r&&j?{colorScheme:j,...F}:{...F};w(n(O,{...H}),H)}),T}}}function Ene(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 xne(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 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 Sne(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),s=Object.keys(a);function c(g){return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n})`}function u(g){return`@media (max-width:${(typeof t[g]=="number"?t[g]:g)-r/100}${n})`}function d(g,y){const b=s.indexOf(y);return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n}) and (max-width:${(b!==-1&&typeof t[s[b]]=="number"?t[s[b]]:y)-r/100}${n})`}function p(g){return s.indexOf(g)+1<s.length?d(g,s[s.indexOf(g)+1]):c(g)}function h(g){const y=s.indexOf(g);return y===0?c(s[1]):y===s.length-1?u(s[y]):d(g,s[s.indexOf(g)+1]).replace("@media","@media not all and")}return{keys:s,values:a,up:c,down:u,between:d,only:p,not:h,unit:n,...o}}const Cne={borderRadius:4};function _ne(e=8,t=sC({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 Ane(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 pC(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={},...s}=e,c=Sne(n),u=_ne(o);let d=Go({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:u,shape:{...Cne,...a}},s);return d=Zee(d),d.applyStyles=Ane,d=t.reduce((p,h)=>Go(p,h),d),d.unstable_sxConfig={...rb,...s?.unstable_sxConfig},d.unstable_sx=function(p){return Ku({sx:p,theme:this})},d}const kne={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 fd(e,t,n="Mui"){const r=kne[t];return r?`${n}-${r}`:`${zee.generate(e)}-${t}`}function wne(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Dne(e){return Math.round(e*1e5)/1e5}const yI={textTransform:"uppercase"},bI='"Roboto", "Helvetica", "Arial", sans-serif';function Rne(e,t){const{fontFamily:n=bI,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:d,pxToRem:p,...h}=typeof t=="function"?t(e):t,g=r/14,y=p||(S=>`${S/u*g}rem`),b=(S,T,D,w,R)=>({fontFamily:n,fontWeight:S,fontSize:y(T),lineHeight:D,...n===bI?{letterSpacing:`${Dne(w/T)}em`}:{},...R,...d}),x={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(s,20,1.6,.15),subtitle1:b(a,16,1.75,.15),subtitle2:b(s,14,1.57,.1),body1:b(a,16,1.5,.15),body2:b(a,14,1.43,.15),button:b(s,14,1.75,.4,yI),caption:b(a,12,1.66,.4),overline:b(a,12,2.66,1,yI),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Go({htmlFontSize:u,pxToRem:y,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:c,...x},h,{clone:!1})}const Ine=.2,One=.14,Nne=.12;function Bn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Ine})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${One})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Nne})`].join(",")}const Pne=["none",Bn(0,2,1,-1,0,1,1,0,0,1,3,0),Bn(0,3,1,-2,0,2,2,0,0,1,5,0),Bn(0,3,3,-2,0,3,4,0,0,1,8,0),Bn(0,2,4,-1,0,4,5,0,0,1,10,0),Bn(0,3,5,-1,0,5,8,0,0,1,14,0),Bn(0,3,5,-1,0,6,10,0,0,1,18,0),Bn(0,4,5,-2,0,7,10,1,0,2,16,1),Bn(0,5,5,-3,0,8,10,1,0,3,14,2),Bn(0,5,6,-3,0,9,12,1,0,3,16,2),Bn(0,6,6,-3,0,10,14,1,0,4,18,3),Bn(0,6,7,-4,0,11,15,1,0,4,20,3),Bn(0,7,8,-4,0,12,17,2,0,5,22,4),Bn(0,7,8,-4,0,13,19,2,0,5,24,4),Bn(0,7,9,-4,0,14,21,2,0,5,26,4),Bn(0,8,9,-5,0,15,22,2,0,6,28,5),Bn(0,8,10,-5,0,16,24,2,0,6,30,5),Bn(0,8,11,-5,0,17,26,2,0,6,32,5),Bn(0,9,11,-5,0,18,28,2,0,7,34,6),Bn(0,9,12,-6,0,19,29,2,0,7,36,6),Bn(0,10,13,-6,0,20,31,3,0,8,38,7),Bn(0,10,13,-6,0,21,33,3,0,8,40,7),Bn(0,10,14,-6,0,22,35,3,0,8,42,7),Bn(0,11,14,-7,0,23,36,3,0,9,44,8),Bn(0,11,15,-7,0,24,38,3,0,9,46,8)],Lne={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)"},TP={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function vI(e){return`${Math.round(e)}ms`}function Mne(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Fne(e){const t={...Lne,...e.easing},n={...TP,...e.duration};return{getAutoHeightDuration:Mne,create:(r=["all"],o={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:c=0,...u}=o;return(Array.isArray(r)?r:[r]).map(d=>`${d} ${typeof a=="string"?a:vI(a)} ${s} ${typeof c=="string"?c:vI(c)}`).join(",")},...e,easing:t,duration:n}}const Bne={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function jne(e){return Yi(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function SP(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let a=0;a<o.length;a++){const[s,c]=o[a];!jne(c)||s.startsWith("unstable_")?delete r[s]:Yi(c)&&(r[s]={...c},n(r[s]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
249
|
+
|
|
250
|
+
const theme = ${JSON.stringify(t,null,2)};
|
|
251
|
+
|
|
252
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
253
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
254
|
+
|
|
255
|
+
export default theme;`}function Xx(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:a={},transitions:s={},typography:c={},shape:u,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(sc(20));const p=fC(a),h=pC(e);let g=Go(h,{mixins:wne(h.breakpoints,r),palette:p,shadows:Pne.slice(),typography:Rne(p,c),transitions:Fne(s),zIndex:{...Bne}});return g=Go(g,d),g=t.reduce((y,b)=>Go(y,b),g),g.unstable_sxConfig={...rb,...d?.unstable_sxConfig},g.unstable_sx=function(y){return Ku({sx:y,theme:this})},g.toRuntimeSource=SP,g}function Une(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 Hne=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Une(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function CP(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function _P(e){return e==="dark"?Hne:[]}function zne(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,a=fC(t);return{palette:a,opacity:{...CP(a.mode),...n},overlays:r||_P(a.mode),...o}}function $ne(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const Vne=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Gne=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 s={};return Vne(e.cssVarPrefix).forEach(c=>{s[c]=n[c],delete n[c]}),a==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:s}}:a?{[a.replace("%s",t)]:s,[`${r}, ${a.replace("%s",t)}`]:n}:{[r]:{...n,...s}}}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 qne(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function _e(e,t,n){!e[t]&&n&&(e[t]=n)}function ap(e){return typeof e!="string"||!e.startsWith("hsl")?e:bP(e)}function Hi(e,t){`${t}Channel`in e||(e[`${t}Channel`]=op(ap(e[t])))}function Wne(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const ti=e=>{try{return e()}catch{}},Yne=(e="mui")=>z3(e);function yE(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=zne({...t,palette:{mode:o,...t?.palette}});return}const{palette:a,...s}=Xx({...n,palette:{mode:o,...t?.palette}});return e[r]={...t,palette:a,opacity:{...CP(o),...t?.opacity},overlays:t?.overlays||_P(o)},s}function Kne(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:s=$ne,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...d}=e,p=Object.keys(n)[0],h=r||(n.light&&p!=="light"?"light":p),g=Yne(a),{[h]:y,light:b,dark:x,...S}=n,T={...S};let D=y;if((h==="dark"&&!("dark"in n)||h==="light"&&!("light"in n))&&(D=!0),!D)throw new Error(sc(21,h));const w=yE(T,D,d,h);b&&!T.light&&yE(T,b,void 0,"light"),x&&!T.dark&&yE(T,x,void 0,"dark");let R={defaultColorScheme:h,...w,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:u,getCssVar:g,colorSchemes:T,font:{...Ene(w.typography),...w.font},spacing:Wne(d.spacing)};Object.keys(R.colorSchemes).forEach(H=>{const C=R.colorSchemes[H].palette,M=$=>{const z=$.split("-"),q=z[1],Y=z[2];return g($,C[q][Y])};if(C.mode==="light"&&(_e(C.common,"background","#fff"),_e(C.common,"onBackground","#000")),C.mode==="dark"&&(_e(C.common,"background","#000"),_e(C.common,"onBackground","#fff")),qne(C,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),C.mode==="light"){_e(C.Alert,"errorColor",An(C.error.light,.6)),_e(C.Alert,"infoColor",An(C.info.light,.6)),_e(C.Alert,"successColor",An(C.success.light,.6)),_e(C.Alert,"warningColor",An(C.warning.light,.6)),_e(C.Alert,"errorFilledBg",M("palette-error-main")),_e(C.Alert,"infoFilledBg",M("palette-info-main")),_e(C.Alert,"successFilledBg",M("palette-success-main")),_e(C.Alert,"warningFilledBg",M("palette-warning-main")),_e(C.Alert,"errorFilledColor",ti(()=>C.getContrastText(C.error.main))),_e(C.Alert,"infoFilledColor",ti(()=>C.getContrastText(C.info.main))),_e(C.Alert,"successFilledColor",ti(()=>C.getContrastText(C.success.main))),_e(C.Alert,"warningFilledColor",ti(()=>C.getContrastText(C.warning.main))),_e(C.Alert,"errorStandardBg",kn(C.error.light,.9)),_e(C.Alert,"infoStandardBg",kn(C.info.light,.9)),_e(C.Alert,"successStandardBg",kn(C.success.light,.9)),_e(C.Alert,"warningStandardBg",kn(C.warning.light,.9)),_e(C.Alert,"errorIconColor",M("palette-error-main")),_e(C.Alert,"infoIconColor",M("palette-info-main")),_e(C.Alert,"successIconColor",M("palette-success-main")),_e(C.Alert,"warningIconColor",M("palette-warning-main")),_e(C.AppBar,"defaultBg",M("palette-grey-100")),_e(C.Avatar,"defaultBg",M("palette-grey-400")),_e(C.Button,"inheritContainedBg",M("palette-grey-300")),_e(C.Button,"inheritContainedHoverBg",M("palette-grey-A100")),_e(C.Chip,"defaultBorder",M("palette-grey-400")),_e(C.Chip,"defaultAvatarColor",M("palette-grey-700")),_e(C.Chip,"defaultIconColor",M("palette-grey-700")),_e(C.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),_e(C.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),_e(C.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),_e(C.LinearProgress,"primaryBg",kn(C.primary.main,.62)),_e(C.LinearProgress,"secondaryBg",kn(C.secondary.main,.62)),_e(C.LinearProgress,"errorBg",kn(C.error.main,.62)),_e(C.LinearProgress,"infoBg",kn(C.info.main,.62)),_e(C.LinearProgress,"successBg",kn(C.success.main,.62)),_e(C.LinearProgress,"warningBg",kn(C.warning.main,.62)),_e(C.Skeleton,"bg",`rgba(${M("palette-text-primaryChannel")} / 0.11)`),_e(C.Slider,"primaryTrack",kn(C.primary.main,.62)),_e(C.Slider,"secondaryTrack",kn(C.secondary.main,.62)),_e(C.Slider,"errorTrack",kn(C.error.main,.62)),_e(C.Slider,"infoTrack",kn(C.info.main,.62)),_e(C.Slider,"successTrack",kn(C.success.main,.62)),_e(C.Slider,"warningTrack",kn(C.warning.main,.62));const $=bg(C.background.default,.8);_e(C.SnackbarContent,"bg",$),_e(C.SnackbarContent,"color",ti(()=>C.getContrastText($))),_e(C.SpeedDialAction,"fabHoverBg",bg(C.background.paper,.15)),_e(C.StepConnector,"border",M("palette-grey-400")),_e(C.StepContent,"border",M("palette-grey-400")),_e(C.Switch,"defaultColor",M("palette-common-white")),_e(C.Switch,"defaultDisabledColor",M("palette-grey-100")),_e(C.Switch,"primaryDisabledColor",kn(C.primary.main,.62)),_e(C.Switch,"secondaryDisabledColor",kn(C.secondary.main,.62)),_e(C.Switch,"errorDisabledColor",kn(C.error.main,.62)),_e(C.Switch,"infoDisabledColor",kn(C.info.main,.62)),_e(C.Switch,"successDisabledColor",kn(C.success.main,.62)),_e(C.Switch,"warningDisabledColor",kn(C.warning.main,.62)),_e(C.TableCell,"border",kn(yg(C.divider,1),.88)),_e(C.Tooltip,"bg",yg(C.grey[700],.92))}if(C.mode==="dark"){_e(C.Alert,"errorColor",kn(C.error.light,.6)),_e(C.Alert,"infoColor",kn(C.info.light,.6)),_e(C.Alert,"successColor",kn(C.success.light,.6)),_e(C.Alert,"warningColor",kn(C.warning.light,.6)),_e(C.Alert,"errorFilledBg",M("palette-error-dark")),_e(C.Alert,"infoFilledBg",M("palette-info-dark")),_e(C.Alert,"successFilledBg",M("palette-success-dark")),_e(C.Alert,"warningFilledBg",M("palette-warning-dark")),_e(C.Alert,"errorFilledColor",ti(()=>C.getContrastText(C.error.dark))),_e(C.Alert,"infoFilledColor",ti(()=>C.getContrastText(C.info.dark))),_e(C.Alert,"successFilledColor",ti(()=>C.getContrastText(C.success.dark))),_e(C.Alert,"warningFilledColor",ti(()=>C.getContrastText(C.warning.dark))),_e(C.Alert,"errorStandardBg",An(C.error.light,.9)),_e(C.Alert,"infoStandardBg",An(C.info.light,.9)),_e(C.Alert,"successStandardBg",An(C.success.light,.9)),_e(C.Alert,"warningStandardBg",An(C.warning.light,.9)),_e(C.Alert,"errorIconColor",M("palette-error-main")),_e(C.Alert,"infoIconColor",M("palette-info-main")),_e(C.Alert,"successIconColor",M("palette-success-main")),_e(C.Alert,"warningIconColor",M("palette-warning-main")),_e(C.AppBar,"defaultBg",M("palette-grey-900")),_e(C.AppBar,"darkBg",M("palette-background-paper")),_e(C.AppBar,"darkColor",M("palette-text-primary")),_e(C.Avatar,"defaultBg",M("palette-grey-600")),_e(C.Button,"inheritContainedBg",M("palette-grey-800")),_e(C.Button,"inheritContainedHoverBg",M("palette-grey-700")),_e(C.Chip,"defaultBorder",M("palette-grey-700")),_e(C.Chip,"defaultAvatarColor",M("palette-grey-300")),_e(C.Chip,"defaultIconColor",M("palette-grey-300")),_e(C.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),_e(C.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),_e(C.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),_e(C.LinearProgress,"primaryBg",An(C.primary.main,.5)),_e(C.LinearProgress,"secondaryBg",An(C.secondary.main,.5)),_e(C.LinearProgress,"errorBg",An(C.error.main,.5)),_e(C.LinearProgress,"infoBg",An(C.info.main,.5)),_e(C.LinearProgress,"successBg",An(C.success.main,.5)),_e(C.LinearProgress,"warningBg",An(C.warning.main,.5)),_e(C.Skeleton,"bg",`rgba(${M("palette-text-primaryChannel")} / 0.13)`),_e(C.Slider,"primaryTrack",An(C.primary.main,.5)),_e(C.Slider,"secondaryTrack",An(C.secondary.main,.5)),_e(C.Slider,"errorTrack",An(C.error.main,.5)),_e(C.Slider,"infoTrack",An(C.info.main,.5)),_e(C.Slider,"successTrack",An(C.success.main,.5)),_e(C.Slider,"warningTrack",An(C.warning.main,.5));const $=bg(C.background.default,.98);_e(C.SnackbarContent,"bg",$),_e(C.SnackbarContent,"color",ti(()=>C.getContrastText($))),_e(C.SpeedDialAction,"fabHoverBg",bg(C.background.paper,.15)),_e(C.StepConnector,"border",M("palette-grey-600")),_e(C.StepContent,"border",M("palette-grey-600")),_e(C.Switch,"defaultColor",M("palette-grey-300")),_e(C.Switch,"defaultDisabledColor",M("palette-grey-600")),_e(C.Switch,"primaryDisabledColor",An(C.primary.main,.55)),_e(C.Switch,"secondaryDisabledColor",An(C.secondary.main,.55)),_e(C.Switch,"errorDisabledColor",An(C.error.main,.55)),_e(C.Switch,"infoDisabledColor",An(C.info.main,.55)),_e(C.Switch,"successDisabledColor",An(C.success.main,.55)),_e(C.Switch,"warningDisabledColor",An(C.warning.main,.55)),_e(C.TableCell,"border",An(yg(C.divider,1),.68)),_e(C.Tooltip,"bg",yg(C.grey[700],.92))}Hi(C.background,"default"),Hi(C.background,"paper"),Hi(C.common,"background"),Hi(C.common,"onBackground"),Hi(C,"divider"),Object.keys(C).forEach($=>{const z=C[$];$!=="tonalOffset"&&z&&typeof z=="object"&&(z.main&&_e(C[$],"mainChannel",op(ap(z.main))),z.light&&_e(C[$],"lightChannel",op(ap(z.light))),z.dark&&_e(C[$],"darkChannel",op(ap(z.dark))),z.contrastText&&_e(C[$],"contrastTextChannel",op(ap(z.contrastText))),$==="text"&&(Hi(C[$],"primary"),Hi(C[$],"secondary")),$==="action"&&(z.active&&Hi(C[$],"active"),z.selected&&Hi(C[$],"selected")))})}),R=t.reduce((H,C)=>Go(H,C),R);const I={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:Gne(R)},{vars:O,generateThemeVars:F,generateStyleSheets:j}=vne(R,I);return R.vars=O,Object.entries(R.colorSchemes[R.defaultColorScheme]).forEach(([H,C])=>{R[H]=C}),R.generateThemeVars=F,R.generateStyleSheets=j,R.generateSpacing=function(){return nS(d.spacing,sC(this))},R.getColorSchemeSelector=xne(c),R.spacing=R.generateSpacing(),R.shouldSkipGeneratingVar=s,R.unstable_sxConfig={...rb,...d?.unstable_sxConfig},R.unstable_sx=function(H){return Ku({sx:H,theme:this})},R.toRuntimeSource=SP,R}function EI(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:fC({...n===!0?{}:n.palette,mode:t})})}function Qne(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...s}=e,c=a||"light",u=o?.[c],d={...o,...n?{[c]:{...typeof u!="boolean"&&u,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Xx(e,...t);let p=n;"palette"in e||d[c]&&(d[c]!==!0?p=d[c].palette:c==="dark"&&(p={mode:"dark"}));const h=Xx({...e,palette:p},...t);return h.defaultColorScheme=c,h.colorSchemes=d,h.palette.mode==="light"&&(h.colorSchemes.light={...d.light!==!0&&d.light,palette:h.palette},EI(h,"dark",d.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:h.palette},EI(h,"light",d.light)),h}return!n&&!("light"in d)&&c==="light"&&(d.light=!0),Kne({...s,colorSchemes:d,defaultColorScheme:c,...typeof r!="boolean"&&r},...t)}const hC=Qne(),mC="$$material";function Xne(){const e=od(hC);return e[mC]||e}function Zne(e){const{variants:t,...n}=e,r={variants:t,style:mI(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=mI(o.style))}),r}const Jne=pC();function Ys(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function ere(e){return e?(t,n)=>n[e]:null}function tre(e,t,n){e.theme=rre(e.theme)?n:e.theme[t]||e.theme}function Yg(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>Yg(e,r));if(Array.isArray(n?.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:o,...a}=n;r=a}return AP(e,n.variants,[r])}return n?.isProcessed?n.style:n}function AP(e,t,n=[]){let r;e:for(let o=0;o<t.length;o+=1){const a=t[o];if(typeof a.props=="function"){if(r??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(r))continue}else for(const s in a.props)if(e[s]!==a.props[s]&&e.ownerState?.[s]!==a.props[s])continue e;typeof a.style=="function"?(r??={...e,...e.ownerState,ownerState:e.ownerState},n.push(a.style(r))):n.push(a.style)}return n}function nre(e={}){const{themeId:t,defaultTheme:n=Jne,rootShouldForwardProp:r=Ys,slotShouldForwardProp:o=Ys}=e;function a(s){tre(s,t,n)}return(s,c={})=>{lne(s,R=>R.filter(I=>I!==Ku));const{name:u,slot:d,skipVariantsResolver:p,skipSx:h,overridesResolver:g=ere(are(d)),...y}=c,b=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,x=h||!1;let S=Ys;d==="Root"||d==="root"?S=r:d?S=o:ore(s)&&(S=void 0);const T=sne(s,{shouldForwardProp:S,label:void 0,...y}),D=R=>{if(R.__emotion_real===R)return R;if(typeof R=="function")return function(I){return Yg(I,R)};if(Yi(R)){const I=Zne(R);return I.variants?function(O){return Yg(O,I)}:I.style}return R},w=(...R)=>{const I=[],O=R.map(D),F=[];if(I.push(a),u&&g&&F.push(function(C){const M=C.theme.components?.[u]?.styleOverrides;if(!M)return null;const $={};for(const z in M)$[z]=Yg(C,M[z]);return g(C,$)}),u&&!b&&F.push(function(C){const M=C.theme?.components?.[u]?.variants;return M?AP(C,M):null}),x||F.push(Ku),Array.isArray(O[0])){const C=O.shift(),M=new Array(I.length).fill(""),$=new Array(F.length).fill("");let z;z=[...M,...C,...$],z.raw=[...M,...C.raw,...$],I.unshift(z)}const j=[...I,...O,...F],H=T(...j);return s.muiName&&(H.muiName=s.muiName),H};return T.withConfig&&(w.withConfig=T.withConfig),w}}function rre(e){for(const t in e)return!1;return!0}function ore(e){return typeof e=="string"&&e.charCodeAt(0)>96}function are(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function ire(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const gC=e=>ire(e)&&e!=="classes",Pn=nre({themeId:mC,defaultTheme:hC,rootShouldForwardProp:gC}),yC=U3;function pd(e){return gne(e)}function hd(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=fd(e,o,n)}),r}function sre(e){return fd("MuiSvgIcon",e)}hd("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const lre=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${za(t)}`,`fontSize${za(n)}`]};return Oh(o,sre,r)},cre=Pn("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${za(n.color)}`],t[`fontSize${za(n.fontSize)}`]]}})(yC(({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}}]}))),Zx=k.forwardRef(function(e,t){const n=pd({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:a="inherit",component:s="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:p,viewBox:h="0 0 24 24",...g}=n,y=k.isValidElement(r)&&r.type==="svg",b={...n,color:a,component:s,fontSize:c,instanceFontSize:e.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:y},x={};d||(x.viewBox=h);const S=lre(b);return v.jsxs(cre,{as:s,className:or(S.root,o),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:t,...x,...g,...y&&r.props,ownerState:b,children:[y?r.props.children:r,p?v.jsx("title",{children:p}):null]})});Zx.muiName="SvgIcon";function Dn(e,t){function n(r,o){return v.jsx(Zx,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=Zx.muiName,k.memo(k.forwardRef(n))}function ure(e){const{controlled:t,default:n}=e,{current:r}=k.useRef(t!==void 0),[o,a]=k.useState(n),s=r?t:o,c=k.useCallback(u=>{r||a(u)},[]);return[s,c]}function Kg(e){const t=k.useRef(e);return cne(()=>{t.current=e}),k.useRef((...n)=>(0,t.current)(...n)).current}function Ly(...e){const t=k.useRef(void 0),n=k.useCallback(r=>{const o=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const s=a,c=s(r);return typeof c=="function"?c:()=>{s(null)}}return a.current=r,()=>{a.current=null}});return()=>{o.forEach(a=>a?.())}},e);return k.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function dre(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function fre(e,t){if(!e)return t;function n(s,c){const u={};return Object.keys(c).forEach(d=>{dre(d,c[d])&&typeof s[d]=="function"&&(u[d]=(...p)=>{s[d](...p),c[d](...p)})}),u}if(typeof e=="function"||typeof t=="function")return s=>{const c=typeof t=="function"?t(s):t,u=typeof e=="function"?e({...s,...c}):e,d=or(s?.className,c?.className,u?.className),p=n(u,c);return{...c,...u,...p,...!!d&&{className:d},...c?.style&&u?.style&&{style:{...c.style,...u.style}},...c?.sx&&u?.sx&&{sx:[...Array.isArray(c.sx)?c.sx:[c.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const r=t,o=n(e,r),a=or(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 ab=Dn(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"})),Lh=Dn(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"})),kP=[{id:"abap",name:"ABAP",import:()=>G(()=>import("./abap-BmBUA35e-DsBKuouk.js"),[])},{id:"actionscript-3",name:"ActionScript",import:()=>G(()=>import("./actionscript-3-zFUbzQa9-D_z4Izcz.js"),[])},{id:"ada",name:"Ada",import:()=>G(()=>import("./ada-CBvPkFpZ-727ZlQH0.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>G(()=>import("./angular-html-0fTdLuKf-C_Z-qPys.js"),__vite__mapDeps([0,1,2,3])).then(e=>e.f)},{id:"angular-ts",name:"Angular TypeScript",import:()=>G(()=>import("./angular-ts-wkniW60G-CLxf_aqD.js"),__vite__mapDeps([4,0,1,2,3,5]))},{id:"apache",name:"Apache Conf",import:()=>G(()=>import("./apache-CVNlsSDc-Dn00JSTd.js"),[])},{id:"apex",name:"Apex",import:()=>G(()=>import("./apex-DFk3KRB1-COJ4H7py.js"),[])},{id:"apl",name:"APL",import:()=>G(()=>import("./apl-TLDHFJX6-4Ja2pao0.js"),__vite__mapDeps([6,1,2,3,7,8,9]))},{id:"applescript",name:"AppleScript",import:()=>G(()=>import("./applescript-CYMR_y0g-Bu5BbsvL.js"),[])},{id:"ara",name:"Ara",import:()=>G(()=>import("./ara-4QmU5e04-7O62HKoU.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>G(()=>import("./asciidoc-v_1bjgUg-BPT9niGB.js"),[])},{id:"asm",name:"Assembly",import:()=>G(()=>import("./asm-RC0Yh-NZ-Dhn9LcZ4.js"),[])},{id:"astro",name:"Astro",import:()=>G(()=>import("./astro-Uf8_VxKJ-CLNq6E27.js"),__vite__mapDeps([10,9,2,11,3,12]))},{id:"awk",name:"AWK",import:()=>G(()=>import("./awk-gPH8MVMW-eg146-Ew.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>G(()=>import("./ballerina-kvLnRU_e-Du268qiB.js"),[])},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>G(()=>import("./bat-BHYy44sT-fje9CFhw.js"),[])},{id:"beancount",name:"Beancount",import:()=>G(()=>import("./beancount-D-MADTs_-BwXTMy5W.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>G(()=>import("./berry-Ci9U0o4h-3xVqZejG.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>G(()=>import("./bibtex-CX618D15-xW4inM5L.js"),[])},{id:"bicep",name:"Bicep",import:()=>G(()=>import("./bicep-iuYiPopT-DHo0CJ0O.js"),[])},{id:"blade",name:"Blade",import:()=>G(()=>import("./blade-BtR00Gx0-BH_u9bLw.js"),__vite__mapDeps([13,1,2,3,7,8,14,9]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>G(()=>import("./bsl-BIXPNqL4-B7NuXuWJ.js"),__vite__mapDeps([15,16]))},{id:"c",name:"C",import:()=>G(()=>import("./c-DASdrs7p-C3t2pwGQ.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>G(()=>import("./cadence-BDALQi26-DNquZEk8.js"),[])},{id:"cairo",name:"Cairo",import:()=>G(()=>import("./cairo-tXZKA2PT-BLBT-6ii.js"),__vite__mapDeps([17,18]))},{id:"clarity",name:"Clarity",import:()=>G(()=>import("./clarity-CNgV2Ths-BHOwM8T6.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>G(()=>import("./clojure-CsKKFGwv-DxSadP1t.js"),[])},{id:"cmake",name:"CMake",import:()=>G(()=>import("./cmake-Dr-A3iJx-DbXoA79R.js"),[])},{id:"cobol",name:"COBOL",import:()=>G(()=>import("./cobol-DMssKNmC-B2fukI-w.js"),__vite__mapDeps([19,1,2,3,8]))},{id:"codeowners",name:"CODEOWNERS",import:()=>G(()=>import("./codeowners-Bt9yU6NX-Bp6g37R7.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>G(()=>import("./codeql-DBNTqJi1-sacFqUAJ.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>G(()=>import("./coffee-D_GzM8k1-4lliG68M.js"),__vite__mapDeps([20,2]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>G(()=>import("./common-lisp-r7ZEOG7T-C7gG9l05.js"),[])},{id:"coq",name:"Coq",import:()=>G(()=>import("./coq-CB6Pv_W9-Dsg_Bt_b.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>G(()=>import("./cpp-CJF2i3ah-pZOsOWe_.js"),__vite__mapDeps([21,22,23,24,14]))},{id:"crystal",name:"Crystal",import:()=>G(()=>import("./crystal-BKWnaU3g-DLUiimt9.js"),__vite__mapDeps([25,1,2,3,14,24,26]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>G(()=>import("./csharp-CYWRhZ2R-D9R-vmeu.js"),[])},{id:"css",name:"CSS",import:()=>G(()=>import("./css-D1aVdRIU-BPhBrDlE.js"),[])},{id:"csv",name:"CSV",import:()=>G(()=>import("./csv-DvCncUGQ-C-TU5hQ_.js"),[])},{id:"cue",name:"CUE",import:()=>G(()=>import("./cue-BXMrmvay-DtFQj3wx.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>G(()=>import("./cypher-DTm5zNR1-m2LEI-9-.js"),[])},{id:"d",name:"D",import:()=>G(()=>import("./d-D6ZXmn3l-BoXegm-a.js"),[])},{id:"dart",name:"Dart",import:()=>G(()=>import("./dart-Dz59Is3F-B9wLZaAG.js"),[])},{id:"dax",name:"DAX",import:()=>G(()=>import("./dax-DTVGzydb-ClGRhx96.js"),[])},{id:"desktop",name:"Desktop",import:()=>G(()=>import("./desktop-Db9vb-dl-DEIpsLCJ.js"),[])},{id:"diff",name:"Diff",import:()=>G(()=>import("./diff-XmNrvgM1-BgYniUM_.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>G(()=>import("./docker-DWH2onkn-COcR7UxN.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>G(()=>import("./dotenv-4337wvzu-BjQB5zDj.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>G(()=>import("./dream-maker-CvvfrJSx-C-nORZOA.js"),[])},{id:"edge",name:"Edge",import:()=>G(()=>import("./edge-CgxR-qhM-C4-j-4jN.js"),__vite__mapDeps([27,11,1,2,3,28]))},{id:"elixir",name:"Elixir",import:()=>G(()=>import("./elixir-DZkeSPwW-CcKXTVRL.js"),__vite__mapDeps([29,1,2,3]))},{id:"elm",name:"Elm",import:()=>G(()=>import("./elm-BKuV1HE1-DhehEoOI.js"),__vite__mapDeps([30,23,24]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>G(()=>import("./emacs-lisp-BAefI874-BX77sIaO.js"),[])},{id:"erb",name:"ERB",import:()=>G(()=>import("./erb-BLwkpXUJ-ChmaBI6f.js"),__vite__mapDeps([31,1,2,3,32,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>G(()=>import("./erlang-CmIiwF3I-B-DoSBHF.js"),[])},{id:"fennel",name:"Fennel",import:()=>G(()=>import("./fennel-DNqkz9pE-bCA53EVm.js"),[])},{id:"fish",name:"Fish",import:()=>G(()=>import("./fish-DIm72t2T-w-ucz2PV.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>G(()=>import("./fluent-BapTxJsC-Dayu4EKP.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>G(()=>import("./fortran-fixed-form-s9Hnb3av-DpX1AVnn.js"),__vite__mapDeps([39,40]))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>G(()=>import("./fortran-free-form-CNDsBFUj-DKXYxT9g.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>G(()=>import("./fsharp-Cv0x43wb-Dg8cqrY9.js"),__vite__mapDeps([41,42]))},{id:"gdresource",name:"GDResource",import:()=>G(()=>import("./gdresource-CMcKXvgJ-CWt23EK3.js"),__vite__mapDeps([43,44,45]))},{id:"gdscript",name:"GDScript",import:()=>G(()=>import("./gdscript-D7aheHm--DfxzS6Rs.js"),[])},{id:"gdshader",name:"GDShader",import:()=>G(()=>import("./gdshader-BGJEsM2Z-SKMF96pI.js"),[])},{id:"genie",name:"Genie",import:()=>G(()=>import("./genie-C9gPjc6J-ajMbGru0.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>G(()=>import("./gherkin-bka1Exbx--30QC5Em.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>G(()=>import("./git-commit-BspYIY3P-n1pa9hpQ.js"),__vite__mapDeps([46,47]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>G(()=>import("./git-rebase--zLBTjUa-D_BU2XLr.js"),__vite__mapDeps([48,26]))},{id:"gleam",name:"Gleam",import:()=>G(()=>import("./gleam-B4k9YFGD-B430Bg39.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>G(()=>import("./glimmer-js-DhY9umHJ-VrvmblrN.js"),__vite__mapDeps([49,2,11,3,1]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>G(()=>import("./glimmer-ts-CCrHcYH5-JtH9P_df.js"),__vite__mapDeps([50,11,3,2,1]))},{id:"glsl",name:"GLSL",import:()=>G(()=>import("./glsl-XLGYNq5B-BsoackK0.js"),__vite__mapDeps([23,24]))},{id:"gnuplot",name:"Gnuplot",import:()=>G(()=>import("./gnuplot-DnWoRZt--CM8KxXT1.js"),[])},{id:"go",name:"Go",import:()=>G(()=>import("./go-BErP6iv1-B1SYOhNW.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>G(()=>import("./graphql-DWpQF4JI-Bg_kbUNo.js"),__vite__mapDeps([34,2,11,35,36]))},{id:"groovy",name:"Groovy",import:()=>G(()=>import("./groovy-IWs5-NIO-DkBy-JyN.js"),[])},{id:"hack",name:"Hack",import:()=>G(()=>import("./hack-CQrV-ytR-DsU69WFl.js"),__vite__mapDeps([51,1,2,3,14]))},{id:"haml",name:"Ruby Haml",import:()=>G(()=>import("./haml-CMN0hQaL-P2mc1-Uz.js"),__vite__mapDeps([33,2,3]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>G(()=>import("./handlebars-Cc-7fXX5-1wmMMko9.js"),__vite__mapDeps([52,1,2,3,38]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>G(()=>import("./haskell-CtlGos0K-BILxekzW.js"),[])},{id:"haxe",name:"Haxe",import:()=>G(()=>import("./haxe-CZZ33vZw-C5wWYbrZ.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>G(()=>import("./hcl-6hOg9WP4-HzYwdGDm.js"),[])},{id:"hjson",name:"Hjson",import:()=>G(()=>import("./hjson-CgwED-oz-T-Tgc4AT.js"),[])},{id:"hlsl",name:"HLSL",import:()=>G(()=>import("./hlsl-3-lv4gi7-ifBTmRxC.js"),[])},{id:"html",name:"HTML",import:()=>G(()=>import("./html-B0P_v3yU-5FUQOWqS.js"),__vite__mapDeps([1,2,3]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>G(()=>import("./html-derivative-D59SHfh8-CSkG6UyS.js"),__vite__mapDeps([28,1,2,3]))},{id:"http",name:"HTTP",import:()=>G(()=>import("./http-Dcjm_K1m-BIoBBtFi.js"),__vite__mapDeps([53,26,9,7,8,34,2,11,35,36]))},{id:"hxml",name:"HXML",import:()=>G(()=>import("./hxml-BNKImryz-C86vEiUs.js"),__vite__mapDeps([54,55]))},{id:"hy",name:"Hy",import:()=>G(()=>import("./hy-C2xHhR6I-BMj5Y0dO.js"),[])},{id:"imba",name:"Imba",import:()=>G(()=>import("./imba-Drd0AMDo-ClNo5Aft.js"),__vite__mapDeps([56,11]))},{id:"ini",name:"INI",aliases:["properties"],import:()=>G(()=>import("./ini-BUcvsX-U-BjABl1g7.js"),[])},{id:"java",name:"Java",import:()=>G(()=>import("./java-B7odJ7Ap-xI-RfyKK.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>G(()=>import("./javascript-fa8UlHZE-ySlJ1b_l.js"),[])},{id:"jinja",name:"Jinja",import:()=>G(()=>import("./jinja-CCSYduCH-DYrHgqe4.js"),__vite__mapDeps([57,1,2,3]))},{id:"jison",name:"Jison",import:()=>G(()=>import("./jison-BygvlveW-CnxAXEK_.js"),__vite__mapDeps([58,2]))},{id:"json",name:"JSON",import:()=>G(()=>import("./json-71t8ZF9g-BQoSv7ci.js"),[])},{id:"json5",name:"JSON5",import:()=>G(()=>import("./json5-Z7F6rA6a-w8dY5SsB.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>G(()=>import("./jsonc-Dphhs4m2-TU54ms6u.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>G(()=>import("./jsonl-D9jj92Gg-DREVFZK8.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>G(()=>import("./jsonnet-DEQ7IUoJ-BfivnA6A.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>G(()=>import("./jssm-j74e88UX-P4WzXJd0.js"),[])},{id:"jsx",name:"JSX",import:()=>G(()=>import("./jsx-Bkesy5tT-BAng5TT0.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>G(()=>import("./julia-CiahampL-V7UYV-sq.js"),__vite__mapDeps([59,21,22,23,24,14,18,2,60]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>G(()=>import("./kotlin-DCgZY7Ii-B5lbUyaz.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>G(()=>import("./kusto-Cw029H-v-mebxcVVE.js"),[])},{id:"latex",name:"LaTeX",import:()=>G(()=>import("./latex-LfGCYGw5-BH0TQ0ei.js"),__vite__mapDeps([61,62,60]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>G(()=>import("./lean-CYSet4vs-XBlWyCtg.js"),[])},{id:"less",name:"Less",import:()=>G(()=>import("./less-DQA4v-Nm-BfCpw3nA.js"),[])},{id:"liquid",name:"Liquid",import:()=>G(()=>import("./liquid-CvufO3kO-CDc-Ahzk.js"),__vite__mapDeps([63,1,2,3,9]))},{id:"log",name:"Log file",import:()=>G(()=>import("./log-D2eRfqDn-Cc5clBb7.js"),[])},{id:"logo",name:"Logo",import:()=>G(()=>import("./logo-QEAtGWZ9-IuBKFhSY.js"),[])},{id:"lua",name:"Lua",import:()=>G(()=>import("./lua-BVfhNLDr-CWJMHgTQ.js"),__vite__mapDeps([37,24]))},{id:"luau",name:"Luau",import:()=>G(()=>import("./luau-BjYGiqID-Du5NY7AG.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>G(()=>import("./make-BjuHP00g-Bvotw-X0.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>G(()=>import("./markdown-B6guhLWd-UIAJJxZW.js"),[])},{id:"marko",name:"Marko",import:()=>G(()=>import("./marko-CHlMS8w5-BMD3FaEa.js"),__vite__mapDeps([64,3,65,5,2]))},{id:"matlab",name:"MATLAB",import:()=>G(()=>import("./matlab-BpQlIJiw-D9-PGadD.js"),[])},{id:"mdc",name:"MDC",import:()=>G(()=>import("./mdc-4K6B6lHG-BAGHtNo-.js"),__vite__mapDeps([66,42,38,28,1,2,3]))},{id:"mdx",name:"MDX",import:()=>G(()=>import("./mdx-DIoECIFU-sdHcTMYB.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>G(()=>import("./mermaid-BZ7WHNIe-Ci6OQyBP.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>G(()=>import("./mipsasm-DusDYkFc-BC5c_5Pe.js"),[])},{id:"mojo",name:"Mojo",import:()=>G(()=>import("./mojo-CY9jaezJ-Tz6hzZYG.js"),[])},{id:"move",name:"Move",import:()=>G(()=>import("./move-ChphFumd-DB_GagMm.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>G(()=>import("./narrat-Dz4d7OmN-DLbgOhZU.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>G(()=>import("./nextflow-DW0Yq9a2-B0XVJmRM.js"),[])},{id:"nginx",name:"Nginx",import:()=>G(()=>import("./nginx-Can2eAjw-CdY2tLiv.js"),__vite__mapDeps([67,37,24]))},{id:"nim",name:"Nim",import:()=>G(()=>import("./nim-B3r2RtQZ-VfCbv_TB.js"),__vite__mapDeps([68,24,1,2,3,7,8,23,42]))},{id:"nix",name:"Nix",import:()=>G(()=>import("./nix-Cg5uV_xg-shcSOmrb.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>G(()=>import("./nushell-BfRnzRWn-D4Tzg5kh.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>G(()=>import("./objective-c-BGg9R27G-Deuh7S70.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>G(()=>import("./objective-cpp-CJ3y3V_5-BUEGK8hf.js"),[])},{id:"ocaml",name:"OCaml",import:()=>G(()=>import("./ocaml-BZLsfx_o-BNioltXt.js"),[])},{id:"pascal",name:"Pascal",import:()=>G(()=>import("./pascal-l2bqd7Dz-JqZropPD.js"),[])},{id:"perl",name:"Perl",import:()=>G(()=>import("./perl-DaMQyPwp-C4BFOiY3.js"),__vite__mapDeps([69,1,2,3,7,8,14]))},{id:"php",name:"PHP",import:()=>G(()=>import("./php-BL3EfPBi-BMN5eA9q.js"),__vite__mapDeps([70,1,2,3,7,8,14,9]))},{id:"plsql",name:"PL/SQL",import:()=>G(()=>import("./plsql-oVq_K_wH-LKU2TuZ1.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>G(()=>import("./po-5jaeIyVd-BFLt1xDp.js"),[])},{id:"polar",name:"Polar",import:()=>G(()=>import("./polar-wcLp8ci7-DKykz6zU.js"),[])},{id:"postcss",name:"PostCSS",import:()=>G(()=>import("./postcss-BZ3MNRIJ-B3ZDOciz.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>G(()=>import("./powerquery-CgRa2XRw-CSHBycmS.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>G(()=>import("./powershell-Diwyv8Eh-BIEUsx6d.js"),[])},{id:"prisma",name:"Prisma",import:()=>G(()=>import("./prisma-COL_v1x4-B48N-Iqd.js"),[])},{id:"prolog",name:"Prolog",import:()=>G(()=>import("./prolog-CuvJOxqT-BY-TUvya.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>G(()=>import("./proto-o9HLmF90-zocC4JxJ.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>G(()=>import("./pug-HKe4Luo3-BjTLA0bL.js"),__vite__mapDeps([71,2,3,1]))},{id:"puppet",name:"Puppet",import:()=>G(()=>import("./puppet-wpGOnQp5-Cza_XSSt.js"),[])},{id:"purescript",name:"PureScript",import:()=>G(()=>import("./purescript-B_1NgE2N-Bg-kzb6g.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>G(()=>import("./python-xYxLFJY--DhUJRlN_.js"),[])},{id:"qml",name:"QML",import:()=>G(()=>import("./qml-FlMIyjU9-DSnJ_WBo.js"),__vite__mapDeps([72,2]))},{id:"qmldir",name:"QML Directory",import:()=>G(()=>import("./qmldir-BInDYbpo-C8lEn-DE.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>G(()=>import("./qss-D-h4NdUG-DhMKtDLN.js"),[])},{id:"r",name:"R",import:()=>G(()=>import("./r-F-9I-ITZ-CwjWoCRV.js"),[])},{id:"racket",name:"Racket",import:()=>G(()=>import("./racket-BoD1TBFT-CzouJOBO.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>G(()=>import("./raku-IaYcw19m-B1bQXN8T.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>G(()=>import("./razor-CeqqNtyB-CTLKKD1r.js"),__vite__mapDeps([73,1,2,3,74]))},{id:"reg",name:"Windows Registry Script",import:()=>G(()=>import("./reg-CMUdAgIP-5LuOXUq_.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>G(()=>import("./regexp-GiFkbxS--DWJ3fJO_.js"),[])},{id:"rel",name:"Rel",import:()=>G(()=>import("./rel-BaRn3QX7-DJlmqQ1C.js"),[])},{id:"riscv",name:"RISC-V",import:()=>G(()=>import("./riscv-B9V3SsvW-QhoSD0DR.js"),[])},{id:"rst",name:"reStructuredText",import:()=>G(()=>import("./rst-C3D6-dqL-DnZbUBhI.js"),__vite__mapDeps([75,28,1,2,3,21,22,23,24,14,18,26,38,76,32,33,7,8,34,11,35,36,37]))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>G(()=>import("./ruby-DcPLUUK3-ComHSJZD.js"),__vite__mapDeps([32,1,2,3,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>G(()=>import("./rust-Pc7DCsZD-Be6lgOlo.js"),[])},{id:"sas",name:"SAS",import:()=>G(()=>import("./sas-tDSYjXcL-BoaRjvJ1.js"),__vite__mapDeps([77,14]))},{id:"sass",name:"Sass",import:()=>G(()=>import("./sass-iCyS6eP9-BJ4Li9vH.js"),[])},{id:"scala",name:"Scala",import:()=>G(()=>import("./scala-Cly-fENF-DQVVAn-B.js"),[])},{id:"scheme",name:"Scheme",import:()=>G(()=>import("./scheme-Zi24oEYu-BJGe-b2p.js"),[])},{id:"scss",name:"SCSS",import:()=>G(()=>import("./scss-DhHc4lxB-DOVe6m7U.js"),__vite__mapDeps([5,3]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>G(()=>import("./sdbl-BBamrXFL-BLhTXw86.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>G(()=>import("./shaderlab-CvqEIoL0-D4Zbm5h2.js"),__vite__mapDeps([78,79]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>G(()=>import("./shellscript-Dn0-btNd-atvbtKCR.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>G(()=>import("./shellsession-8OLo3sB6-BcsC7Rtk.js"),__vite__mapDeps([80,26]))},{id:"smalltalk",name:"Smalltalk",import:()=>G(()=>import("./smalltalk-Cns31tKw-DkLiglaE.js"),[])},{id:"solidity",name:"Solidity",import:()=>G(()=>import("./solidity-BG_k8fA_-C1w2a3ep.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>G(()=>import("./soy-EwHMOVPj-g2bfMTqc.js"),__vite__mapDeps([81,1,2,3]))},{id:"sparql",name:"SPARQL",import:()=>G(()=>import("./sparql-DhuelBut-DSDXMn9h.js"),__vite__mapDeps([82,83]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>G(()=>import("./splunk-CTqDjQdo-Cf8iN4DR.js"),[])},{id:"sql",name:"SQL",import:()=>G(()=>import("./sql-DCkt643--COK4E0Yg.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>G(()=>import("./ssh-config-DHHGll-v-BknIz3MU.js"),[])},{id:"stata",name:"Stata",import:()=>G(()=>import("./stata-Dok6hMw0-Dx5Z5W33.js"),__vite__mapDeps([84,14]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>G(()=>import("./stylus-n_9f0QQ5-BeQkCIfX.js"),[])},{id:"svelte",name:"Svelte",import:()=>G(()=>import("./svelte-01qw6Rxm-BPq1Epw_.js"),__vite__mapDeps([85,2,11,3,12]))},{id:"swift",name:"Swift",import:()=>G(()=>import("./swift-BAWqNR8A-BSxZ-RaX.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>G(()=>import("./system-verilog-Cui-g-ut-C7L56vO4.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>G(()=>import("./systemd-CsKYQIQK-CUnW07Te.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>G(()=>import("./talonscript-D2dGh8FO-C1XDQQGZ.js"),[])},{id:"tasl",name:"Tasl",import:()=>G(()=>import("./tasl-D3W8HMV6-CQjiPCtT.js"),[])},{id:"tcl",name:"Tcl",import:()=>G(()=>import("./tcl-2y0Fuc4S-DQ1-QYvQ.js"),[])},{id:"templ",name:"Templ",import:()=>G(()=>import("./templ-Hmy8U0DD-bZJvPZVc.js"),__vite__mapDeps([86,87,2,3]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>G(()=>import("./terraform-BGW6Oerf-BbSNqyBO.js"),[])},{id:"tex",name:"TeX",import:()=>G(()=>import("./tex-mHs7a43s-GNY7iZwJ.js"),__vite__mapDeps([62,60]))},{id:"toml",name:"TOML",import:()=>G(()=>import("./toml-CQSfOn0e-CB2ApiWb.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>G(()=>import("./ts-tags-DYZ4SGcN-DHCrqCAy.js"),__vite__mapDeps([88,11,3,2,23,24,1,14,7,8]))},{id:"tsv",name:"TSV",import:()=>G(()=>import("./tsv-BtvSkaG0-B_m7g4N7.js"),[])},{id:"tsx",name:"TSX",import:()=>G(()=>import("./tsx-DiGsgWT8-B6W0miNI.js"),[])},{id:"turtle",name:"Turtle",import:()=>G(()=>import("./turtle-BJ2wmjPc-BMR_PYu6.js"),[])},{id:"twig",name:"Twig",import:()=>G(()=>import("./twig-BmytkGQV-gxvDbPvi.js"),__vite__mapDeps([89,3,2,5,70,1,7,8,14,9,18,32,33,34,11,35,36,21,22,23,24,26,37,38]))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>G(()=>import("./typescript-buWNZFwO-Dj6nwHGl.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>G(()=>import("./typespec-bLbdsxJL-BpWG_bgh.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>G(()=>import("./typst-Y9_SmXTs-BVUVsWT6.js"),[])},{id:"v",name:"V",import:()=>G(()=>import("./v-wa8Orrdd-CAQ2eGtk.js"),[])},{id:"vala",name:"Vala",import:()=>G(()=>import("./vala-DRdriFr_-BFOHcciG.js"),[])},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>G(()=>import("./vb-E2_-jk4M-CdO5JTpU.js"),[])},{id:"verilog",name:"Verilog",import:()=>G(()=>import("./verilog-B1iBoR5_-CJaU5se_.js"),[])},{id:"vhdl",name:"VHDL",import:()=>G(()=>import("./vhdl-CRVaAhXk-DYoNaHQp.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>G(()=>import("./viml-B-zWOd7Z-m4uW47V2.js"),[])},{id:"vue",name:"Vue",import:()=>G(()=>import("./vue-Bl1uVNsA-B0HO5ROf.js"),__vite__mapDeps([90,1,2,3,11,9,28]))},{id:"vue-html",name:"Vue HTML",import:()=>G(()=>import("./vue-html-DHr5wjBG-BZddcMPi.js"),__vite__mapDeps([91,90,1,2,3,11,9,28]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>G(()=>import("./vyper-DWutKXpa-nyqBNV6O.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>G(()=>import("./wasm-Bv5f0gKv-C6j12Q_x.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>G(()=>import("./wenyan-BMYnfus1-7A4Fjokl.js"),[])},{id:"wgsl",name:"WGSL",import:()=>G(()=>import("./wgsl-DnPoPGDU-CB0Krxn9.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>G(()=>import("./wikitext-CntM04PE-DCE3LsBG.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>G(()=>import("./wolfram-Ws5qPlX9-C3FkfJm5.js"),[])},{id:"xml",name:"XML",import:()=>G(()=>import("./xml-ChBsf5uy-CRY5u_dA.js"),__vite__mapDeps([7,8]))},{id:"xsl",name:"XSL",import:()=>G(()=>import("./xsl-BefjlXrd-kO2fudRX.js"),__vite__mapDeps([92,7,8]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>G(()=>import("./yaml-Bbg74JKr-CVw76BM1.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>G(()=>import("./zenscript-C0RKE4nU-HnGAYVZD.js"),[])},{id:"zig",name:"Zig",import:()=>G(()=>import("./zig-D6SXBGNm-BVz_zdnA.js"),[])}],pre=Object.fromEntries(kP.map(e=>[e.id,e.import])),hre=Object.fromEntries(kP.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),mre={...pre,...hre},gre=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>G(()=>import("./andromeeda-uXNdzNpk-C3khCPGq.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>G(()=>import("./aurora-x-BwoVEUWZ-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>G(()=>import("./ayu-dark-CxPZkpb2-Cv9koXgw.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>G(()=>import("./catppuccin-frappe-BrTOiad2-CD_QflpE.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>G(()=>import("./catppuccin-latte-D-dc_R4m-DRW-0cLl.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>G(()=>import("./catppuccin-macchiato-DN4jOp0G-C-_shW-Y.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>G(()=>import("./catppuccin-mocha-B8yCE3-3-LGGdnPYs.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>G(()=>import("./dark-plus-pUHDTVV0-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>G(()=>import("./dracula-BtZx2Kac-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>G(()=>import("./dracula-soft-BKa-aqBv-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>G(()=>import("./everforest-dark-DMCBqXCK-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>G(()=>import("./everforest-light-BbXl82Em-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>G(()=>import("./github-dark-DenFmJkN-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>G(()=>import("./github-dark-default-BJPUVz4H-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>G(()=>import("./github-dark-dimmed-DUshB20C-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>G(()=>import("./github-dark-high-contrast-D3aGCnF8-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>G(()=>import("./github-light-JYsPkUQd-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>G(()=>import("./github-light-default-D99KPAby-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>G(()=>import("./github-light-high-contrast-BbmZE-Mp-BfjtVDDH.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>G(()=>import("./houston-BDYrDoDW-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>G(()=>import("./kanagawa-dragon-CiKur4Hl-CkXjmgJE.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>G(()=>import("./kanagawa-lotus-BKu-smKu-CfQXZHmo.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>G(()=>import("./kanagawa-wave-CQwozSzG-DWedfzmr.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>G(()=>import("./laserwave-6a00oqik-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>G(()=>import("./light-plus-CZuVqSLX-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>G(()=>import("./material-theme-D6KBX41T-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>G(()=>import("./material-theme-darker-CkRroheE-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>G(()=>import("./material-theme-lighter-BUBw43Yz-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>G(()=>import("./material-theme-ocean-ClGX14Ja-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>G(()=>import("./material-theme-palenight-C1RVm8K1-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>G(()=>import("./min-dark-C7ak0t6c-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>G(()=>import("./min-light-CKFxVcPp-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>G(()=>import("./monokai-C1KBYcO0-D4h5O-jR.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>G(()=>import("./night-owl-Bm2rzalh-C39BiMTA.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>G(()=>import("./nord-CC5OiUXg-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>G(()=>import("./one-dark-pro-D7-kP8fv-GBQ2dnAY.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>G(()=>import("./one-light-D9sNaUtq-PoHY5YXO.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>G(()=>import("./plastic-CSTz3KZp-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>G(()=>import("./poimandres-C-VADXHD-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>G(()=>import("./red-7y8PH7HH-bN70gL4F.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>G(()=>import("./rose-pine-DhT-HZE9-CmCqftbK.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>G(()=>import("./rose-pine-dawn-DiCjL2i4-Ds-gbosJ.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>G(()=>import("./rose-pine-moon-BNmGHlcn-CjDtw9vr.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>G(()=>import("./slack-dark-i7wN4OET-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>G(()=>import("./slack-ochin-ndHf0LoP-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>G(()=>import("./snazzy-light-BlSJXAu4-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>G(()=>import("./solarized-dark-UTmkh7lw-DXbdFlpD.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>G(()=>import("./solarized-light-BheCkDPT-L9t79GZl.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>G(()=>import("./synthwave-84-NU3C_KFZ-CbfX1IO0.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>G(()=>import("./tokyo-night-LhP3hHhi-DBQeEorK.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>G(()=>import("./vesper-CJsaOsSM-BEBZ7ncR.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>G(()=>import("./vitesse-black-BoGvW84i-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>G(()=>import("./vitesse-dark-Cym-eLtO-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>G(()=>import("./vitesse-light-CcmG315c-CVO1_9PV.js"),[])}],yre=Object.fromEntries(gre.map(e=>[e.id,e.import]));let es=class extends Error{constructor(e){super(e),this.name="ShikiError"}},bC=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function bre(){return 2147483648}function vre(){return typeof performance<"u"?performance.now():Date.now()}const Ere=(e,t)=>e+(t-e%t)%t;async function xre(e){let t,n;const r={};function o(y){n=y,r.HEAPU8=new Uint8Array(y),r.HEAPU32=new Uint32Array(y)}function a(y,b,x){r.HEAPU8.copyWithin(y,b,b+x)}function s(y){try{return t.grow(y-n.byteLength+65535>>>16),o(t.buffer),1}catch{}}function c(y){const b=r.HEAPU8.length;y=y>>>0;const x=bre();if(y>x)return!1;for(let S=1;S<=4;S*=2){let T=b*(1+.2/S);T=Math.min(T,y+100663296);const D=Math.min(x,Ere(Math.max(y,T),65536));if(s(D))return!0}return!1}const u=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function d(y,b,x=1024){const S=b+x;let T=b;for(;y[T]&&!(T>=S);)++T;if(T-b>16&&y.buffer&&u)return u.decode(y.subarray(b,T));let D="";for(;b<T;){let w=y[b++];if(!(w&128)){D+=String.fromCharCode(w);continue}const R=y[b++]&63;if((w&224)===192){D+=String.fromCharCode((w&31)<<6|R);continue}const I=y[b++]&63;if((w&240)===224?w=(w&15)<<12|R<<6|I:w=(w&7)<<18|R<<12|I<<6|y[b++]&63,w<65536)D+=String.fromCharCode(w);else{const O=w-65536;D+=String.fromCharCode(55296|O>>10,56320|O&1023)}}return D}function p(y,b){return y?d(r.HEAPU8,y,b):""}const h={emscripten_get_now:vre,emscripten_memcpy_big:a,emscripten_resize_heap:c,fd_write:()=>0};async function g(){const y=await e({env:h,wasi_snapshot_preview1:h});t=y.memory,o(t.buffer),Object.assign(r,y),r.UTF8ToString=p}return await g(),r}var Tre=Object.defineProperty,Sre=(e,t,n)=>t in e?Tre(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Sr=(e,t,n)=>(Sre(e,typeof t!="symbol"?t+"":t,n),n);let Or=null;function Cre(e){throw new bC(e.UTF8ToString(e.getLastOnigError()))}class ib{constructor(t){Sr(this,"utf16Length"),Sr(this,"utf8Length"),Sr(this,"utf16Value"),Sr(this,"utf8Value"),Sr(this,"utf16OffsetToUtf8"),Sr(this,"utf8OffsetToUtf16");const n=t.length,r=ib._utf8ByteLength(t),o=r!==n,a=o?new Uint32Array(n+1):null;o&&(a[n]=r);const s=o?new Uint32Array(r+1):null;o&&(s[r]=n);const c=new Uint8Array(r);let u=0;for(let d=0;d<n;d++){const p=t.charCodeAt(d);let h=p,g=!1;if(p>=55296&&p<=56319&&d+1<n){const y=t.charCodeAt(d+1);y>=56320&&y<=57343&&(h=(p-55296<<10)+65536|y-56320,g=!0)}o&&(a[d]=u,g&&(a[d+1]=u),h<=127?s[u+0]=d:h<=2047?(s[u+0]=d,s[u+1]=d):h<=65535?(s[u+0]=d,s[u+1]=d,s[u+2]=d):(s[u+0]=d,s[u+1]=d,s[u+2]=d,s[u+3]=d)),h<=127?c[u++]=h:h<=2047?(c[u++]=192|(h&1984)>>>6,c[u++]=128|(h&63)>>>0):h<=65535?(c[u++]=224|(h&61440)>>>12,c[u++]=128|(h&4032)>>>6,c[u++]=128|(h&63)>>>0):(c[u++]=240|(h&1835008)>>>18,c[u++]=128|(h&258048)>>>12,c[u++]=128|(h&4032)>>>6,c[u++]=128|(h&63)>>>0),g&&d++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=c,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=s}static _utf8ByteLength(t){let n=0;for(let r=0,o=t.length;r<o;r++){const a=t.charCodeAt(r);let s=a,c=!1;if(a>=55296&&a<=56319&&r+1<o){const u=t.charCodeAt(r+1);u>=56320&&u<=57343&&(s=(a-55296<<10)+65536|u-56320,c=!0)}s<=127?n+=1:s<=2047?n+=2:s<=65535?n+=3:n+=4,c&&r++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const ni=class{constructor(e){if(Sr(this,"id",++ni.LAST_ID),Sr(this,"_onigBinding"),Sr(this,"content"),Sr(this,"utf16Length"),Sr(this,"utf8Length"),Sr(this,"utf16OffsetToUtf8"),Sr(this,"utf8OffsetToUtf16"),Sr(this,"ptr"),!Or)throw new bC("Must invoke loadWasm first.");this._onigBinding=Or,this.content=e;const t=new ib(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!ni._sharedPtrInUse?(ni._sharedPtr||(ni._sharedPtr=Or.omalloc(1e4)),ni._sharedPtrInUse=!0,Or.HEAPU8.set(t.utf8Value,ni._sharedPtr),this.ptr=ni._sharedPtr):this.ptr=t.createString(Or)}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===ni._sharedPtr?ni._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let Mh=ni;Sr(Mh,"LAST_ID",0);Sr(Mh,"_sharedPtr",0);Sr(Mh,"_sharedPtrInUse",!1);class _re{constructor(t){if(Sr(this,"_onigBinding"),Sr(this,"_ptr"),!Or)throw new bC("Must invoke loadWasm first.");const n=[],r=[];for(let c=0,u=t.length;c<u;c++){const d=new ib(t[c]);n[c]=d.createString(Or),r[c]=d.utf8Length}const o=Or.omalloc(4*t.length);Or.HEAPU32.set(n,o/4);const a=Or.omalloc(4*t.length);Or.HEAPU32.set(r,a/4);const s=Or.createOnigScanner(o,a,t.length);for(let c=0,u=t.length;c<u;c++)Or.ofree(n[c]);Or.ofree(a),Or.ofree(o),s===0&&Cre(Or),this._onigBinding=Or,this._ptr=s}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,r){let o=0;if(typeof r=="number"&&(o=r),typeof t=="string"){t=new Mh(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,s=a.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),o);if(s===0)return null;const c=a.HEAPU32;let u=s/4;const d=c[u++],p=c[u++],h=[];for(let g=0;g<p;g++){const y=t.convertUtf8OffsetToUtf16(c[u++]),b=t.convertUtf8OffsetToUtf16(c[u++]);h[g]={start:y,end:b,length:b-y}}return{index:d,captureIndices:h}}}function Are(e){return typeof e.instantiator=="function"}function kre(e){return typeof e.default=="function"}function wre(e){return typeof e.data<"u"}function Dre(e){return typeof Response<"u"&&e instanceof Response}function Rre(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 Ire(e){if(vg)return vg;async function t(){Or=await xre(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),Are(r)?r=await r.instantiator(n):kre(r)?r=await r.default(n):(wre(r)&&(r=r.data),Dre(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await Ore(r)(n):r=await Nre(r)(n):Rre(r)?r=await bE(r)(n):r instanceof WebAssembly.Module?r=await bE(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await bE(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return vg=t(),vg}function bE(e){return t=>WebAssembly.instantiate(e,t)}function Ore(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Nre(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}let Pre;function Lre(){return Pre}async function wP(e){return e&&await Ire(e),{createScanner(t){return new _re(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new Mh(t)}}}function Mre(e){return vC(e)}function vC(e){return Array.isArray(e)?Fre(e):e instanceof RegExp?e:typeof e=="object"?Bre(e):e}function Fre(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=vC(e[n]);return t}function Bre(e){let t={};for(let n in e)t[n]=vC(e[n]);return t}function DP(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function RP(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?RP(e.substring(0,e.length-1)):e.substr(~t+1)}var vE=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Eg=class{static hasCaptures(e){return e===null?!1:(vE.lastIndex=0,vE.test(e))}static replaceCaptures(e,t,n){return e.replace(vE,(r,o,a,s)=>{let c=n[parseInt(o||a,10)];if(c){let u=t.substring(c.start,c.end);for(;u[0]===".";)u=u.substring(1);switch(s){case"downcase":return u.toLowerCase();case"upcase":return u.toUpperCase();default:return u}}else return r})}};function IP(e,t){return e<t?-1:e>t?1:0}function OP(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=IP(e[o],t[o]);if(a!==0)return a}return 0}return n-r}function xI(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 NP(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var PP=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}},My=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(Hre(e),t)}static createFromParsedTheme(e,t){return $re(e,t)}_cachedMatchRoot=new PP(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=>jre(e.parent,r.parentScopes));return n?new LP(n.fontStyle,n.foreground,n.background):null}},EE=class Qg{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new Qg(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new Qg(n,t[r]);return n}push(t){return new Qg(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 jre(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&&!Ure(e.scopeName,r);){if(o)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function Ure(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var LP=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function Hre(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 s=t[o];if(!s.settings)continue;let c;if(typeof s.scope=="string"){let h=s.scope;h=h.replace(/^[,]+/,""),h=h.replace(/[,]+$/,""),c=h.split(",")}else Array.isArray(s.scope)?c=s.scope:c=[""];let u=-1;if(typeof s.settings.fontStyle=="string"){u=0;let h=s.settings.fontStyle.split(" ");for(let g=0,y=h.length;g<y;g++)switch(h[g]){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 s.settings.foreground=="string"&&xI(s.settings.foreground)&&(d=s.settings.foreground);let p=null;typeof s.settings.background=="string"&&xI(s.settings.background)&&(p=s.settings.background);for(let h=0,g=c.length;h<g;h++){let y=c[h].trim().split(" "),b=y[y.length-1],x=null;y.length>1&&(x=y.slice(0,y.length-1),x.reverse()),n[r++]=new zre(b,x,o,u,d,p)}}return n}var zre=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}},Qi=(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))(Qi||{});function $re(e,t){e.sort((u,d)=>{let p=IP(u.scope,d.scope);return p!==0||(p=OP(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 Vre(t),s=new LP(n,a.getId(r),a.getId(o)),c=new qre(new Jx(0,null,-1,0,0),[]);for(let u=0,d=e.length;u<d;u++){let p=e[u];c.insert(0,p.scope,p.parentScopes,p.fontStyle,a.getId(p.foreground),a.getId(p.background))}return new My(a,s,c)}var Vre=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)}},Gre=Object.freeze([]),Jx=class MP{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,o,a){this.scopeDepth=t,this.parentScopes=n||Gre,this.fontStyle=r,this.foreground=o,this.background=a}clone(){return new MP(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)}},qre=class eT{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(eT._cmpBySpecificity),n}insert(t,n,r,o,a,s){if(n===""){this._doInsertHere(t,r,o,a,s);return}let c=n.indexOf("."),u,d;c===-1?(u=n,d=""):(u=n.substring(0,c),d=n.substring(c+1));let p;this._children.hasOwnProperty(u)?p=this._children[u]:(p=new eT(this._mainRule.clone(),Jx.cloneArr(this._rulesWithParentScopes)),this._children[u]=p),p.insert(t+1,d,r,o,a,s)}_doInsertHere(t,n,r,o,a){if(n===null){this._mainRule.acceptOverwrite(t,r,o,a);return}for(let s=0,c=this._rulesWithParentScopes.length;s<c;s++){let u=this._rulesWithParentScopes[s];if(OP(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 Jx(t,n,r,o,a))}},Qu=class sa{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=sa.getLanguageId(t),r=sa.getTokenType(t),o=sa.getFontStyle(t),a=sa.getForeground(t),s=sa.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:o,foreground:a,background:s})}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,s,c){let u=sa.getLanguageId(t),d=sa.getTokenType(t),p=sa.containsBalancedBrackets(t)?1:0,h=sa.getFontStyle(t),g=sa.getForeground(t),y=sa.getBackground(t);return n!==0&&(u=n),r!==8&&(d=r),o!==null&&(p=o?1:0),a!==-1&&(h=a),s!==0&&(g=s),c!==0&&(y=c),(u<<0|d<<8|p<<10|h<<11|g<<15|y<<24)>>>0}};function Fy(e,t){const n=[],r=Wre(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=s();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=c();return o===")"&&(o=r.next()),u}if(TI(o)){const u=[];do u.push(o),o=r.next();while(TI(o));return d=>t(u,d)}return null}function s(){const u=[];let d=a();for(;d;)u.push(d),d=a();return p=>u.every(h=>h(p))}function c(){const u=[];let d=s();for(;d&&(u.push(d),o==="|"||o===",");){do o=r.next();while(o==="|"||o===",");d=s()}return p=>u.some(h=>h(p))}}function TI(e){return!!e&&!!e.match(/[\w\.:]+/)}function Wre(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 FP(e){typeof e.dispose=="function"&&e.dispose()}var rh=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},Yre=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},Kre=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))}},Qre=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new rh(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const t=new Kre;for(const n of e)Xre(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof rh){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 Xre(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 rh?Xg({baseGrammar:a,selfGrammar:o},r):tT(e.ruleName,{baseGrammar:a,selfGrammar:o,repository:o.repository},r);const s=n.injections(e.scopeName);if(s)for(const c of s)r.add(new rh(c))}function tT(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];By([r],t,n)}}function Xg(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&By(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&By(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function By(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const o=r.repository?DP({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&By(r.patterns,{...t,repository:o},n);const a=r.include;if(!a)continue;const s=BP(a);switch(s.kind){case 0:Xg({...t,selfGrammar:t.baseGrammar},n);break;case 1:Xg(t,n);break;case 2:tT(s.ruleName,{...t,repository:o},n);break;case 3:case 4:const c=s.scopeName===t.selfGrammar.scopeName?t.selfGrammar:s.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(c){const u={baseGrammar:t.baseGrammar,selfGrammar:c,repository:o};s.kind===4?tT(s.ruleName,u,n):Xg(u,n)}else s.kind===4?n.add(new Yre(s.scopeName,s.ruleName)):n.add(new rh(s.scopeName));break}}}var Zre=class{kind=0},Jre=class{kind=1},eoe=class{constructor(e){this.ruleName=e}kind=2},toe=class{constructor(e){this.scopeName=e}kind=3},noe=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function BP(e){if(e==="$base")return new Zre;if(e==="$self")return new Jre;const t=e.indexOf("#");if(t===-1)return new toe(e);if(t===0)return new eoe(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new noe(n,r)}}var roe=/\\(\d+)/,SI=/\\(\d+)/g,ooe=-1,jP=-2,Fh=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Eg.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=Eg.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${RP(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:Eg.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Eg.replaceCaptures(this._contentName,e,t)}},aoe=class extends Fh{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!")}},ioe=class extends Fh{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,o){super(e,t,n,null),this._match=new oh(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 ah,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},CI=class extends Fh{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 ah,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},nT=class extends Fh{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,o,a,s,c,u,d){super(e,t,n,r),this._begin=new oh(o,this.id),this.beginCaptures=a,this._end=new oh(s||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=c,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 ah;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}},jy=class extends Fh{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,o,a,s,c,u){super(e,t,n,r),this._begin=new oh(o,this.id),this.beginCaptures=a,this.whileCaptures=c,this._while=new oh(s,jP),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 ah;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 ah,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}},UP=class Kr{static createCaptureRule(t,n,r,o,a){return t.registerRule(s=>new aoe(n,s,r,o,a))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(o=>{if(t.id=o,t.match)return new ioe(t.$vscodeTextmateLocation,t.id,t.name,t.match,Kr._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=DP({},r,t.repository));let a=t.patterns;return typeof a>"u"&&t.include&&(a=[{include:t.include}]),new CI(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Kr._compilePatterns(a,n,r))}return t.while?new jy(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Kr._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,Kr._compileCaptures(t.whileCaptures||t.captures,n,r),Kr._compilePatterns(t.patterns,n,r)):new nT(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Kr._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,Kr._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,Kr._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let o=[];if(t){let a=0;for(const s in t){if(s==="$vscodeTextmateLocation")continue;const c=parseInt(s,10);c>a&&(a=c)}for(let s=0;s<=a;s++)o[s]=null;for(const s in t){if(s==="$vscodeTextmateLocation")continue;const c=parseInt(s,10);let u=0;t[s].patterns&&(u=Kr.getCompiledRuleId(t[s],n,r)),o[c]=Kr.createCaptureRule(n,t[s].$vscodeTextmateLocation,t[s].name,t[s].contentName,u)}}return o}static _compilePatterns(t,n,r){let o=[];if(t)for(let a=0,s=t.length;a<s;a++){const c=t[a];let u=-1;if(c.include){const d=BP(c.include);switch(d.kind){case 0:case 1:u=Kr.getCompiledRuleId(r[c.include],n,r);break;case 2:let p=r[d.ruleName];p&&(u=Kr.getCompiledRuleId(p,n,r));break;case 3:case 4:const h=d.scopeName,g=d.kind===4?d.ruleName:null,y=n.getExternalGrammar(h,r);if(y)if(g){let b=y.repository[g];b&&(u=Kr.getCompiledRuleId(b,n,y.repository))}else u=Kr.getCompiledRuleId(y.repository.$self,n,y.repository);break}}else u=Kr.getCompiledRuleId(c,n,r);if(u!==-1){const d=n.getRule(u);let p=!1;if((d instanceof CI||d instanceof nT||d instanceof jy)&&d.hasMissingPatterns&&d.patterns.length===0&&(p=!0),p)continue;o.push(u)}}return{patterns:o,hasMissingPatterns:(t?t.length:0)!==o.length}}},oh=class HP{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){const r=t.length;let o=0,a=[],s=!1;for(let c=0;c<r;c++)if(t.charAt(c)==="\\"&&c+1<r){const u=t.charAt(c+1);u==="z"?(a.push(t.substring(o,c)),a.push("$(?!\\n)(?<!\\n)"),o=c+2):(u==="A"||u==="G")&&(s=!0),c++}this.hasAnchor=s,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=roe.test(this.source):this.hasBackReferences=!1}clone(){return new HP(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 SI.lastIndex=0,this.source.replace(SI,(o,a)=>NP(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,s,c,u;for(a=0,s=this.source.length;a<s;a++)c=this.source.charAt(a),t[a]=c,n[a]=c,r[a]=c,o[a]=c,c==="\\"&&a+1<s&&(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}},ah=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 _I(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 _I(e,r,this._items.map(o=>o.ruleId))}},_I=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(`
|
|
256
|
+
`)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},xE=class{constructor(e,t){this.languageId=e,this.tokenType=t}},soe=class rT{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new xE(t,8),this._embeddedLanguagesMatcher=new loe(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?rT._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new xE(0,0);_getBasicScopeAttributes=new PP(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new xE(n,r)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(rT.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/},loe=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])=>NP(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])}},AI=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function zP(e,t,n,r,o,a,s,c){const u=t.content.length;let d=!1,p=-1;if(s){const y=coe(e,t,n,r,o,a);o=y.stack,r=y.linePos,n=y.isFirstLine,p=y.anchorPosition}const h=Date.now();for(;!d;){if(c!==0&&Date.now()-h>c)return new AI(o,!0);g()}return new AI(o,!1);function g(){const y=uoe(e,t,n,r,o,p);if(!y){a.produce(o,u),d=!0;return}const b=y.captureIndices,x=y.matchedRuleId,S=b&&b.length>0?b[0].end>r:!1;if(x===ooe){const T=o.getRule(e);a.produce(o,b[0].start),o=o.withContentNameScopesList(o.nameScopesList),ip(e,t,n,o,a,T.endCaptures,b),a.produce(o,b[0].end);const D=o;if(o=o.parent,p=D.getAnchorPos(),!S&&D.getEnterPos()===r){o=D,a.produce(o,u),d=!0;return}}else{const T=e.getRule(x);a.produce(o,b[0].start);const D=o,w=T.getName(t.content,b),R=o.contentNameScopesList.pushAttributed(w,e);if(o=o.push(x,r,p,b[0].end===u,null,R,R),T instanceof nT){const I=T;ip(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),F=R.pushAttributed(O,e);if(o=o.withContentNameScopesList(F),I.endHasBackReferences&&(o=o.withEndRule(I.getEndWithResolvedBackReferences(t.content,b))),!S&&D.hasSameRuleAs(o)){o=o.pop(),a.produce(o,u),d=!0;return}}else if(T instanceof jy){const I=T;ip(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),F=R.pushAttributed(O,e);if(o=o.withContentNameScopesList(F),I.whileHasBackReferences&&(o=o.withEndRule(I.getWhileWithResolvedBackReferences(t.content,b))),!S&&D.hasSameRuleAs(o)){o=o.pop(),a.produce(o,u),d=!0;return}}else if(ip(e,t,n,o,a,T.captures,b),a.produce(o,b[0].end),o=o.pop(),!S){o=o.safePop(),a.produce(o,u),d=!0;return}}b[0].end>r&&(r=b[0].end,n=!1)}}function coe(e,t,n,r,o,a){let s=o.beginRuleCapturedEOL?0:-1;const c=[];for(let u=o;u;u=u.pop()){const d=u.getRule(e);d instanceof jy&&c.push({rule:d,stack:u})}for(let u=c.pop();u;u=c.pop()){const{ruleScanner:d,findOptions:p}=poe(u.rule,e,u.stack.endRule,n,r===s),h=d.findNextMatchSync(t,r,p);if(h){if(h.ruleId!==jP){o=u.stack.pop();break}h.captureIndices&&h.captureIndices.length&&(a.produce(u.stack,h.captureIndices[0].start),ip(e,t,n,u.stack,a,u.rule.whileCaptures,h.captureIndices),a.produce(u.stack,h.captureIndices[0].end),s=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:s,isFirstLine:n}}function uoe(e,t,n,r,o,a){const s=doe(e,t,n,r,o,a),c=e.getInjections();if(c.length===0)return s;const u=foe(c,e,t,n,r,o,a);if(!u)return s;if(!s)return u;const d=s.captureIndices[0].start,p=u.captureIndices[0].start;return p<d||u.priorityMatch&&p===d?u:s}function doe(e,t,n,r,o,a){const s=o.getRule(e),{ruleScanner:c,findOptions:u}=$P(s,e,o.endRule,n,r===a),d=c.findNextMatchSync(t,r,u);return d?{captureIndices:d.captureIndices,matchedRuleId:d.ruleId}:null}function foe(e,t,n,r,o,a,s){let c=Number.MAX_VALUE,u=null,d,p=0;const h=a.contentNameScopesList.getScopeNames();for(let g=0,y=e.length;g<y;g++){const b=e[g];if(!b.matcher(h))continue;const x=t.getRule(b.ruleId),{ruleScanner:S,findOptions:T}=$P(x,t,null,r,o===s),D=S.findNextMatchSync(n,o,T);if(!D)continue;const w=D.captureIndices[0].start;if(!(w>=c)&&(c=w,u=D.captureIndices,d=D.ruleId,p=b.priority,c===o))break}return u?{priorityMatch:p===-1,captureIndices:u,matchedRuleId:d}:null}function $P(e,t,n,r,o){return{ruleScanner:e.compileAG(t,n,r,o),findOptions:0}}function poe(e,t,n,r,o){return{ruleScanner:e.compileWhileAG(t,n,r,o),findOptions:0}}function ip(e,t,n,r,o,a,s){if(a.length===0)return;const c=t.content,u=Math.min(a.length,s.length),d=[],p=s[0].end;for(let h=0;h<u;h++){const g=a[h];if(g===null)continue;const y=s[h];if(y.length===0)continue;if(y.start>p)break;for(;d.length>0&&d[d.length-1].endPos<=y.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,y.start):o.produce(r,y.start),g.retokenizeCapturedWithRuleId){const x=g.getName(c,s),S=r.contentNameScopesList.pushAttributed(x,e),T=g.getContentName(c,s),D=S.pushAttributed(T,e),w=r.push(g.retokenizeCapturedWithRuleId,y.start,-1,!1,null,S,D),R=e.createOnigString(c.substring(0,y.end));zP(e,R,n&&y.start===0,y.start,w,o,!1,0),FP(R);continue}const b=g.getName(c,s);if(b!==null){const x=(d.length>0?d[d.length-1].scopes:r.contentNameScopesList).pushAttributed(b,e);d.push(new hoe(x,y.end))}}for(;d.length>0;)o.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop()}var hoe=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function moe(e,t,n,r,o,a,s,c){return new yoe(e,t,n,r,o,a,s,c)}function kI(e,t,n,r,o){const a=Fy(t,Uy),s=UP.getCompiledRuleId(n,r,o.repository);for(const c of a)e.push({debugSelector:t,matcher:c.matcher,ruleId:s,grammar:o,priority:c.priority})}function Uy(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(goe(t[o],r))return n=o+1,!0;return!1})}function goe(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 yoe=class{constructor(e,t,n,r,o,a,s,c){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=c,this._basicScopeAttributesProvider=new soe(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=wI(t,null),this._injections=null,this._tokenTypeMatchers=[],o)for(const u of Object.keys(o)){const d=Fy(u,Uy);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 s in o)kI(t,s,o[s],this,r);const a=this._grammarRepository.injections(n);a&&a.forEach(s=>{const c=this.getExternalGrammar(s);if(c){const u=c.injectionSelector;u&&kI(t,u,c,this,c)}})}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]=wI(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=UP.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let o;if(!t||t===oT.NULL){o=!0;const d=this._basicScopeAttributesProvider.getDefaultAttributes(),p=this.themeProvider.getDefaults(),h=Qu.set(0,d.languageId,d.tokenType,null,p.fontStyle,p.foregroundId,p.backgroundId),g=this.getRule(this._rootId).getName(null,null);let y;g?y=Ep.createRootAndLookUpScopeName(g,h,this):y=Ep.createRoot("unknown",h),t=new oT(null,this._rootId,-1,-1,!1,null,y,y)}else o=!1,t.reset();e=e+`
|
|
257
|
+
`;const a=this.createOnigString(e),s=a.content.length,c=new voe(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),u=zP(this,a,o,0,t,c,!0,r);return FP(a),{lineLength:s,lineTokens:c,ruleStack:u.stack,stoppedEarly:u.stoppedEarly}}};function wI(e,t){return e=Mre(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 Ep=class ri{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=EE.push(o,a.scopeNames),r=new ri(r,o,a.encodedTokenAttributes);return r}static createRoot(t,n){return new ri(null,new EE(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const o=r.getMetadataForScope(t),a=new EE(null,t),s=r.themeProvider.themeMatch(a),c=ri.mergeAttributes(n,o,s);return new ri(null,a,c)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return ri.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,s=0;return r!==null&&(o=r.fontStyle,a=r.foregroundId,s=r.backgroundId),Qu.set(t,n.languageId,n.tokenType,null,o,a,s)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return ri._pushAttributed(this,t,n);const r=t.split(/ /g);let o=this;for(const a of r)o=ri._pushAttributed(o,a,n);return o}static _pushAttributed(t,n,r){const o=r.getMetadataForScope(n),a=t.scopePath.push(n),s=r.themeProvider.themeMatch(a),c=ri.mergeAttributes(t.tokenAttributes,o,s);return new ri(t,a,c)}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}},oT=class Dl{constructor(t,n,r,o,a,s,c,u){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=a,this.endRule=s,this.nameScopesList=c,this.contentNameScopesList=u,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=o}_stackElementBrand=void 0;static NULL=new Dl(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:Dl._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?Ep.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(){Dl._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,o,a,s,c){return new Dl(this,t,n,r,o,a,s,c)}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 Dl(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=Ep.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new Dl(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Ep.fromExtension(r,n.contentNameScopesList))}},boe=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):Fy(n,Uy).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>Fy(n,Uy).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}},voe=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 s of this._tokenTypeOverrides)s.matcher(a)&&(r=Qu.set(r,0,s.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(a))}if(o&&(r=Qu.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}},Eoe=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,moe(e,a,t,n,r,o,this,this._onigLib))}return this._grammars.get(e)}},xoe=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new Eoe(My.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(My.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 boe(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,o){const a=new Qre(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(s=>this._loadSingleGrammar(s.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)}},aT=oT.NULL;const VP=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];let Bh=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Bh.prototype.normal={};Bh.prototype.property={};Bh.prototype.space=void 0;function GP(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new Bh(n,r,t)}function ih(e){return e.toLowerCase()}let Do=class{constructor(e,t){this.attribute=t,this.property=e}};Do.prototype.attribute="";Do.prototype.booleanish=!1;Do.prototype.boolean=!1;Do.prototype.commaOrSpaceSeparated=!1;Do.prototype.commaSeparated=!1;Do.prototype.defined=!1;Do.prototype.mustUseProperty=!1;Do.prototype.number=!1;Do.prototype.overloadedBoolean=!1;Do.prototype.property="";Do.prototype.spaceSeparated=!1;Do.prototype.space=void 0;let Toe=0;const Nt=gc(),dr=gc(),qP=gc(),$e=gc(),In=gc(),Lu=gc(),Fo=gc();function gc(){return 2**++Toe}const iT=Object.freeze(Object.defineProperty({__proto__:null,boolean:Nt,booleanish:dr,commaOrSpaceSeparated:Fo,commaSeparated:Lu,number:$e,overloadedBoolean:qP,spaceSeparated:In},Symbol.toStringTag,{value:"Module"})),TE=Object.keys(iT);let EC=class extends Do{constructor(e,t,n,r){let o=-1;if(super(e,t),DI(this,"space",r),typeof n=="number")for(;++o<TE.length;){const a=TE[o];DI(this,TE[o],(n&iT[a])===iT[a])}}};EC.prototype.defined=!0;function DI(e,t,n){n&&(e[t]=n)}function md(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const a=new EC(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[ih(r)]=r,n[ih(a.attribute)]=r}return new Bh(t,n,e.space)}const WP=md({properties:{ariaActiveDescendant:null,ariaAtomic:dr,ariaAutoComplete:null,ariaBusy:dr,ariaChecked:dr,ariaColCount:$e,ariaColIndex:$e,ariaColSpan:$e,ariaControls:In,ariaCurrent:null,ariaDescribedBy:In,ariaDetails:null,ariaDisabled:dr,ariaDropEffect:In,ariaErrorMessage:null,ariaExpanded:dr,ariaFlowTo:In,ariaGrabbed:dr,ariaHasPopup:null,ariaHidden:dr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:In,ariaLevel:$e,ariaLive:null,ariaModal:dr,ariaMultiLine:dr,ariaMultiSelectable:dr,ariaOrientation:null,ariaOwns:In,ariaPlaceholder:null,ariaPosInSet:$e,ariaPressed:dr,ariaReadOnly:dr,ariaRelevant:null,ariaRequired:dr,ariaRoleDescription:In,ariaRowCount:$e,ariaRowIndex:$e,ariaRowSpan:$e,ariaSelected:dr,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 YP(e,t){return t in e?e[t]:t}function KP(e,t){return YP(e,t.toLowerCase())}const Soe=md({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Lu,acceptCharset:In,accessKey:In,action:null,allow:null,allowFullScreen:Nt,allowPaymentRequest:Nt,allowUserMedia:Nt,alt:null,as:null,async:Nt,autoCapitalize:null,autoComplete:In,autoFocus:Nt,autoPlay:Nt,blocking:In,capture:null,charSet:null,checked:Nt,cite:null,className:In,cols:$e,colSpan:null,content:null,contentEditable:dr,controls:Nt,controlsList:In,coords:$e|Lu,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Nt,defer:Nt,dir:null,dirName:null,disabled:Nt,download:qP,draggable:dr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Nt,formTarget:null,headers:In,height:$e,hidden:Nt,high:$e,href:null,hrefLang:null,htmlFor:In,httpEquiv:In,id:null,imageSizes:null,imageSrcSet:null,inert:Nt,inputMode:null,integrity:null,is:null,isMap:Nt,itemId:null,itemProp:In,itemRef:In,itemScope:Nt,itemType:In,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Nt,low:$e,manifest:null,max:null,maxLength:$e,media:null,method:null,min:null,minLength:$e,multiple:Nt,muted:Nt,name:null,nonce:null,noModule:Nt,noValidate:Nt,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:Nt,optimum:$e,pattern:null,ping:In,placeholder:null,playsInline:Nt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Nt,referrerPolicy:null,rel:In,required:Nt,reversed:Nt,rows:$e,rowSpan:$e,sandbox:In,scope:null,scoped:Nt,seamless:Nt,selected:Nt,shadowRootClonable:Nt,shadowRootDelegatesFocus:Nt,shadowRootMode:null,shape:null,size:$e,sizes:null,slot:null,span:$e,spellCheck:dr,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:Nt,useMap:null,value:dr,width:$e,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:In,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:Nt,declare:Nt,event:null,face:null,frame:null,frameBorder:null,hSpace:$e,leftMargin:$e,link:null,longDesc:null,lowSrc:null,marginHeight:$e,marginWidth:$e,noResize:Nt,noHref:Nt,noShade:Nt,noWrap:Nt,object:null,profile:null,prompt:null,rev:null,rightMargin:$e,rules:null,scheme:null,scrolling:dr,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:Nt,disableRemotePlayback:Nt,prefix:null,property:null,results:$e,security:null,unselectable:null},space:"html",transform:KP}),Coe=md({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:Fo,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:In,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:Nt,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:Lu,g2:Lu,glyphName:Lu,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:Fo,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:In,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:$e,pointsAtY:$e,pointsAtZ:$e,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Fo,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Fo,rev:Fo,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Fo,requiredFeatures:Fo,requiredFonts:Fo,requiredFormats:Fo,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:Fo,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:Fo,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:Fo,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:YP}),QP=md({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()}}),XP=md({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:KP}),ZP=md({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),_oe={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"},Aoe=/[A-Z]/g,RI=/-[a-z]/g,koe=/^data[-\w.:]+$/i;function jh(e,t){const n=ih(t);let r=t,o=Do;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&koe.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(RI,Doe);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!RI.test(a)){let s=a.replace(Aoe,woe);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}o=EC}return new o(r,t)}function woe(e){return"-"+e.toLowerCase()}function Doe(e){return e.charAt(1).toUpperCase()}const gd=GP([WP,Soe,QP,XP,ZP],"html"),os=GP([WP,Coe,QP,XP,ZP],"svg"),II={}.hasOwnProperty;function sb(e,t){const n=t||{};function r(o,...a){let s=r.invalid;const c=r.handlers;if(o&&II.call(o,e)){const u=String(o[e]);s=II.call(c,u)?c[u]:r.unknown}if(s)return s.call(this,o,...a)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const Roe=/["&'<>`]/g,Ioe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ooe=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Noe=/[|\\{}()[\]^$+*?.]/g,OI=new WeakMap;function Poe(e,t){if(e=e.replace(t.subset?Loe(t.subset):Roe,r),t.subset||t.escapeOnly)return e;return e.replace(Ioe,n).replace(Ooe,r);function n(o,a,s){return t.format((o.charCodeAt(0)-55296)*1024+o.charCodeAt(1)-56320+65536,s.charCodeAt(a+2),t)}function r(o,a,s){return t.format(o.charCodeAt(0),s.charCodeAt(a+1),t)}}function Loe(e){let t=OI.get(e);return t||(t=Moe(e),OI.set(e,t)),t}function Moe(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(Noe,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const Foe=/[\dA-Fa-f]/;function Boe(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!Foe.test(String.fromCharCode(t))?r:r+";"}const joe=/\d/;function Uoe(e,t,n){const r="&#"+String(e);return n&&t&&!joe.test(String.fromCharCode(t))?r:r+";"}const Hoe=["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"],SE={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:"€"},zoe=["cent","copy","divide","gt","lt","not","para","times"],JP={}.hasOwnProperty,sT={};let xg;for(xg in SE)JP.call(SE,xg)&&(sT[SE[xg]]=xg);const $oe=/[^\dA-Za-z]/;function Voe(e,t,n,r){const o=String.fromCharCode(e);if(JP.call(sT,o)){const a=sT[o],s="&"+a;return n&&Hoe.includes(a)&&!zoe.includes(a)&&(!r||t&&t!==61&&$oe.test(String.fromCharCode(t)))?s:s+";"}return""}function Goe(e,t,n){let r=Boe(e,t,n.omitOptionalSemicolons),o;if((n.useNamedReferences||n.useShortestReferences)&&(o=Voe(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!o)&&n.useShortestReferences){const a=Uoe(e,t,n.omitOptionalSemicolons);a.length<r.length&&(r=a)}return o&&(!n.useShortestReferences||o.length<r.length)?o:r}function Mu(e,t){return Poe(e,Object.assign({format:Goe},t))}const qoe=/^>|^->|<!--|-->|--!>|<!-$/g,Woe=[">"],Yoe=["<",">"];function Koe(e,t,n,r){return r.settings.bogusComments?"<?"+Mu(e.value,Object.assign({},r.settings.characterReferences,{subset:Woe}))+">":"<!--"+e.value.replace(qoe,o)+"-->";function o(a){return Mu(a,Object.assign({},r.settings.characterReferences,{subset:Yoe}))}}function Qoe(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function Hy(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 lT(e){const t=[],n=String(e||"");let r=n.indexOf(","),o=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const s=n.slice(o,r).trim();(s||!a)&&t.push(s),o=r+1,r=n.indexOf(",",o)}return t}function lb(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function cT(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function cb(e){return e.join(" ").trim()}const Xoe=/[ \t\n\f\r]/g;function Uh(e){return typeof e=="object"?e.type==="text"?NI(e.value):!1:NI(e)}function NI(e){return e.replace(Xoe,"")===""}const kr=tL(1),eL=tL(-1),Zoe=[];function tL(e){return t;function t(n,r,o){const a=n?n.children:Zoe;let s=(r||0)+e,c=a[s];if(!o)for(;c&&Uh(c);)s+=e,c=a[s];return c}}const Joe={}.hasOwnProperty;function nL(e){return t;function t(n,r,o){return Joe.call(e,n.tagName)&&e[n.tagName](n,r,o)}}const xC=nL({body:tae,caption:CE,colgroup:CE,dd:aae,dt:oae,head:CE,html:eae,li:rae,optgroup:iae,option:sae,p:nae,rp:PI,rt:PI,tbody:cae,td:LI,tfoot:uae,th:LI,thead:lae,tr:dae});function CE(e,t,n){const r=kr(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Uh(r.value.charAt(0)))}function eae(e,t,n){const r=kr(n,t);return!r||r.type!=="comment"}function tae(e,t,n){const r=kr(n,t);return!r||r.type!=="comment"}function nae(e,t,n){const r=kr(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 rae(e,t,n){const r=kr(n,t);return!r||r.type==="element"&&r.tagName==="li"}function oae(e,t,n){const r=kr(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function aae(e,t,n){const r=kr(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function PI(e,t,n){const r=kr(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function iae(e,t,n){const r=kr(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function sae(e,t,n){const r=kr(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function lae(e,t,n){const r=kr(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function cae(e,t,n){const r=kr(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function uae(e,t,n){return!kr(n,t)}function dae(e,t,n){const r=kr(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function LI(e,t,n){const r=kr(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const fae=nL({body:mae,colgroup:gae,head:hae,html:pae,tbody:yae});function pae(e){const t=kr(e,-1);return!t||t.type!=="comment"}function hae(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 mae(e){const t=kr(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Uh(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function gae(e,t,n){const r=eL(n,t),o=kr(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&xC(r,n.children.indexOf(r),n)?!1:!!(o&&o.type==="element"&&o.tagName==="col")}function yae(e,t,n){const r=eL(n,t),o=kr(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&xC(r,n.children.indexOf(r),n)?!1:!!(o&&o.type==="element"&&o.tagName==="tr")}const Tg={name:[[`
|
|
258
|
+
\f\r &/=>`.split(""),`
|
|
259
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
260
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
261
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
262
|
+
\f\r &>`.split(""),`\0
|
|
263
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
264
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
265
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function bae(e,t,n,r){const o=r.schema,a=o.space==="svg"?!1:r.settings.omitOptionalTags;let s=o.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const c=[];let u;o.space==="html"&&e.tagName==="svg"&&(r.schema=os);const d=vae(r,e.properties),p=r.all(o.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=o,p&&(s=!1),(d||!a||!fae(e,t,n))&&(c.push("<",e.tagName,d?" "+d:""),s&&(o.space==="svg"||r.settings.closeSelfClosing)&&(u=d.charAt(d.length-1),(!r.settings.tightSelfClosing||u==="/"||u&&u!=='"'&&u!=="'")&&c.push(" "),c.push("/")),c.push(">")),c.push(p),!s&&(!a||!xC(e,t,n))&&c.push("</"+e.tagName+">"),c.join("")}function vae(e,t){const n=[];let r=-1,o;if(t){for(o in t)if(t[o]!==null&&t[o]!==void 0){const a=Eae(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 Eae(e,t,n){const r=jh(e.schema,t),o=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,a=e.settings.allowDangerousCharacters?0:1;let s=e.quote,c;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=Mu(r.attribute,Object.assign({},e.settings.characterReferences,{subset:Tg.name[o][a]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?lb:cb)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?u:(e.settings.preferUnquoted&&(c=Mu(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Tg.unquoted[o][a]}))),c!==n&&(e.settings.quoteSmart&&Hy(n,s)>Hy(n,e.alternative)&&(s=e.alternative),c=s+Mu(n,Object.assign({},e.settings.characterReferences,{subset:(s==="'"?Tg.single:Tg.double)[o][a],attribute:!0}))+s),u+(c&&"="+c))}const xae=["<","&"];function rL(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Mu(e.value,Object.assign({},r.settings.characterReferences,{subset:xae}))}function Tae(e,t,n,r){return r.settings.allowDangerousHtml?e.value:rL(e,t,n,r)}function Sae(e,t,n,r){return r.all(e)}const Cae=sb("type",{invalid:_ae,unknown:Aae,handlers:{comment:Koe,doctype:Qoe,element:bae,raw:Tae,root:Sae,text:rL}});function _ae(e){throw new Error("Expected node, not `"+e+"`")}function Aae(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const kae={},wae={},Dae=[];function Rae(e,t){const n=kae,r=n.quote||'"',o=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Iae,all:Oae,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||VP,characterReferences:n.characterReferences||wae,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?os:gd,quote:r,alternative:o}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function Iae(e,t,n){return Cae(e,t,n,this)}function Oae(e){const t=[],n=e&&e.children||Dae;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function Nae(e){return Array.isArray(e)?e:[e]}function ub(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 s=t?n[a]+(n[a+1]||""):n[a];o.push([s,r]),r+=n[a].length,r+=n[a+1]?.length||0}return o}function TC(e){return!e||["plaintext","txt","text","plain"].includes(e)}function oL(e){return e==="ansi"||TC(e)}function SC(e){return e==="none"}function aL(e){return SC(e)}function iL(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 Pae(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 Lae(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(s=>o.offset<s&&s<o.offset+o.content.length).map(s=>s-o.offset).sort((s,c)=>s-c);return a.length?Pae(o,a):o})):e}async function sL(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function zy(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 jl(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function lL(e){const t={};return e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle&&(e.fontStyle&Qi.Italic&&(t["font-style"]="italic"),e.fontStyle&Qi.Bold&&(t["font-weight"]="bold"),e.fontStyle&Qi.Underline&&(t["text-decoration"]="underline")),t}function Mae(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}function Fae(e){const t=ub(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,s=0;for(const c of t){if(a<c.length)break;a-=c.length,s++}return{line:s,character:a}}function r(o,a){let s=0;for(let c=0;c<o;c++)s+=t[c].length;return s+=a,s}return{lines:t,indexToPos:n,posToIndex:r}}class ao extends Error{constructor(t){super(t),this.name="ShikiError"}}const cL=new WeakMap;function db(e,t){cL.set(e,t)}function sh(e){return cL.get(e)}class yd{_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 yd(Object.fromEntries(Nae(n).map(r=>[r,aT])),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 MI(this._stacks[this.theme])}getScopes(t=this.theme){return MI(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}}function MI(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 Bae(e,t){if(!(e instanceof yd))throw new ao("Invalid grammar state");return e.getInternalStack(t)}function jae(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(s){if(typeof s=="number"){if(s<0||s>n.source.length)throw new ao(`Invalid decoration offset: ${s}. Code length: ${n.source.length}`);return{...o.indexToPos(s),offset:s}}else{const c=o.lines[s.line];if(c===void 0)throw new ao(`Invalid decoration position ${JSON.stringify(s)}. Lines length: ${o.lines.length}`);if(s.character<0||s.character>c.length)throw new ao(`Invalid decoration position ${JSON.stringify(s)}. Line ${s.line} length: ${c.length}`);return{...s,offset:o.posToIndex(s.line,s.character)}}};const o=Fae(n.source),a=(n.options.decorations||[]).map(s=>({...s,start:r(s.start),end:r(s.end)}));Uae(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 Lae(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 ao(`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,g,y){const b=o[p];let x="",S=-1,T=-1;if(h===0&&(S=0),g===0&&(T=0),g===Number.POSITIVE_INFINITY&&(T=b.children.length),S===-1||T===-1)for(let w=0;w<b.children.length;w++)x+=uL(b.children[w]),S===-1&&x.length===h&&(S=w+1),T===-1&&x.length===g&&(T=w+1);if(S===-1)throw new ao(`Failed to find start index for decoration ${JSON.stringify(y.start)}`);if(T===-1)throw new ao(`Failed to find end index for decoration ${JSON.stringify(y.end)}`);const D=b.children.slice(S,T);if(!y.alwaysWrap&&D.length===b.children.length)c(b,y,"line");else if(!y.alwaysWrap&&D.length===1&&D[0].type==="element")c(D[0],y,"token");else{const w={type:"element",tagName:"span",properties:{},children:D};c(w,y,"wrapper"),b.children.splice(S,D.length,w)}}function s(p,h){o[p]=c(o[p],h,"line")}function c(p,h,g){const y=h.properties||{},b=h.transform||(x=>x);return p.tagName=h.tagName||"span",p.properties={...p.properties,...y,class:p.properties.class},h.properties?.class&&iL(p,h.properties.class),p=b(p,g)||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:g}=p;if(h.line===g.line)a(h.line,h.character,g.character,p);else if(h.line<g.line){a(h.line,h.character,Number.POSITIVE_INFINITY,p);for(let y=h.line+1;y<g.line;y++)u.unshift(()=>s(y,p));a(g.line,0,g.character,p)}}u.forEach(p=>p())}}}function Uae(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new ao(`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,s=n.start.offset<o.end.offset&&o.end.offset<n.end.offset,c=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||s||c||u){if(s&&s||c&&u)continue;throw new ao(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(o.start)} intersect.`)}}}}function uL(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(uL).join(""):""}const Hae=[jae()];function $y(e){return[...e.transformers||[],...Hae]}var Ul=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],_E={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function zae(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 FI(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(s=>Number.parseInt(s));a.length===3&&!a.some(s=>Number.isNaN(s))&&(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 $ae(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)_E[o]&&t.push({type:"setDecoration",value:_E[o]});else if(o<=29){const a=_E[o-20];a&&t.push({type:"resetDecoration",value:a})}else if(o<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Ul[o-30]}});else if(o===38){const[a,s]=FI(e,n);s&&t.push({type:"setForegroundColor",value:s}),n+=a}else if(o===39)t.push({type:"resetForegroundColor"});else if(o<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Ul[o-40]}});else if(o===48){const[a,s]=FI(e,n);s&&t.push({type:"setBackgroundColor",value:s}),n+=a}else o===49?t.push({type:"resetBackgroundColor"}):o>=90&&o<=97?t.push({type:"setForegroundColor",value:{type:"named",name:Ul[o-90+8]}}):o>=100&&o<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Ul[o-100+8]}})}return t}function Vae(){let e=null,t=null,n=new Set;return{parse(r){const o=[];let a=0;do{const s=zae(r,a),c=s.sequence?r.substring(a,s.startPosition):r.substring(a);if(c.length>0&&o.push({value:c,foreground:e,background:t,decorations:new Set(n)}),s.sequence){const u=$ae(s.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=s.position}while(a<r.length);return o}}}var Gae={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 qae(e=Gae){function t(c){return e[c]}function n(c){return`#${c.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<Ul.length;d++)r.push(t(Ul[d]));let c=[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([c[d],c[p],c[h]]));let u=8;for(let d=0;d<24;d++,u+=10)r.push(n([u,u,u]));return r}function a(c){return o()[c]}function s(c){switch(c.type){case"named":return t(c.name);case"rgb":return n(c.rgb);case"table":return a(c.index)}}return{value:s}}function Wae(e,t,n){const r=zy(e,n),o=ub(t),a=qae(Object.fromEntries(Ul.map(c=>[c,e.colors?.[`terminal.ansi${c[0].toUpperCase()}${c.substring(1)}`]]))),s=Vae();return o.map(c=>s.parse(c[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=jl(d,r),p=jl(p,r),u.decorations.has("dim")&&(d=Yae(d));let h=Qi.None;return u.decorations.has("bold")&&(h|=Qi.Bold),u.decorations.has("italic")&&(h|=Qi.Italic),u.decorations.has("underline")&&(h|=Qi.Underline),{content:u.value,offset:c[1],color:d,bgColor:p,fontStyle:h}}))}function Yae(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 CC(e,t,n={}){const{lang:r="text",theme:o=e.getLoadedThemes()[0]}=n;if(TC(r)||SC(o))return ub(t).map(u=>[{content:u[0],offset:u[1]}]);const{theme:a,colorMap:s}=e.setTheme(o);if(r==="ansi")return Wae(a,t,n);const c=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==c.name)throw new es(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${c.name}"`);if(!n.grammarState.themes.includes(a.name))throw new es(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${a.name}"`)}return Qae(t,c,a,s,n)}function Kae(...e){if(e.length===2)return sh(e[1]);const[t,n,r={}]=e,{lang:o="text",theme:a=t.getLoadedThemes()[0]}=r;if(TC(o)||SC(a))throw new es("Plain language does not have grammar state");if(o==="ansi")throw new es("ANSI language does not have grammar state");const{theme:s,colorMap:c}=t.setTheme(a),u=t.getLanguage(o);return new yd(Vy(n,u,s,c,r).stateStack,u.name,s.name)}function Qae(e,t,n,r,o){const a=Vy(e,t,n,r,o),s=new yd(Vy(e,t,n,r,o).stateStack,t.name,n.name);return db(a.tokens,s),a.tokens}function Vy(e,t,n,r,o){const a=zy(n,o),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:c=500}=o,u=ub(e);let d=o.grammarState?Bae(o.grammarState,n.name)??aT:o.grammarContextCode!=null?Vy(o.grammarContextCode,t,n,r,{...o,grammarState:void 0,grammarContextCode:void 0}).stateStack:aT,p=[];const h=[];for(let g=0,y=u.length;g<y;g++){const[b,x]=u[g];if(b===""){p=[],h.push([]);continue}if(s>0&&b.length>=s){p=[],h.push([{content:b,offset:x,color:"",fontStyle:0}]);continue}let S,T,D;o.includeExplanation&&(S=t.tokenizeLine(b,d),T=S.tokens,D=0);const w=t.tokenizeLine2(b,d,c),R=w.tokens.length/2;for(let I=0;I<R;I++){const O=w.tokens[2*I],F=I+1<R?w.tokens[2*I+2]:b.length;if(O===F)continue;const j=w.tokens[2*I+1],H=jl(r[Qu.getForeground(j)],a),C=Qu.getFontStyle(j),M={content:b.substring(O,F),offset:x+O,color:H,fontStyle:C};if(o.includeExplanation){const $=[];if(o.includeExplanation!=="scopeName")for(const q of n.settings){let Y;switch(typeof q.scope){case"string":Y=q.scope.split(/,/).map(B=>B.trim());break;case"object":Y=q.scope;break;default:continue}$.push({settings:q,selectors:Y.map(B=>B.split(/ /))})}M.explanation=[];let z=0;for(;O+z<F;){const q=T[D],Y=b.substring(q.startIndex,q.endIndex);z+=Y.length,M.explanation.push({content:Y,scopes:o.includeExplanation==="scopeName"?Xae(q.scopes):Zae($,q.scopes)}),D+=1}}p.push(M)}h.push(p),p=[],d=w.ruleStack}return{tokens:h,stateStack:d}}function Xae(e){return e.map(t=>({scopeName:t}))}function Zae(e,t){const n=[];for(let r=0,o=t.length;r<o;r++){const a=t[r];n[r]={scopeName:a,themeMatches:eie(e,a,t.slice(0,r))}}return n}function BI(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function Jae(e,t,n){if(!BI(e[e.length-1],t))return!1;let r=e.length-2,o=n.length-1;for(;r>=0&&o>=0;)BI(e[r],n[o])&&(r-=1),o-=1;return r===-1}function eie(e,t,n){const r=[];for(const{selectors:o,settings:a}of e)for(const s of o)if(Jae(s,t,n)){r.push(a);break}return r}function dL(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=CC(e,t,{...n,theme:u.theme}),p=sh(d),h=typeof u.theme=="string"?u.theme:u.theme.name;return{tokens:d,state:p,theme:h}}),a=tie(...o.map(u=>u.tokens)),s=a[0].map((u,d)=>u.map((p,h)=>{const g={content:p.content,variants:{},offset:p.offset};return"includeExplanation"in n&&n.includeExplanation&&(g.explanation=p.explanation),a.forEach((y,b)=>{const{content:x,explanation:S,offset:T,...D}=y[d][h];g.variants[r[b].color]=D}),g})),c=o[0].state?new yd(Object.fromEntries(o.map(u=>[u.theme,u.state?.getInternalStack(u.theme)])),o[0].state.lang):void 0;return c&&db(s,c),s}function tie(...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 s=o.map(()=>0),c=o.map(u=>u[0]);for(;c.every(u=>u);){const u=Math.min(...c.map(d=>d.content.length));for(let d=0;d<n;d++){const p=c[d];p.content.length===u?(a[d].push(p),s[d]+=1,c[d]=o[d][s[d]]):(a[d].push({...p,content:p.content.slice(0,u)}),c[d]={...p,content:p.content.slice(u),offset:p.offset+u})}}}return t}function Gy(e,t,n){let r,o,a,s,c,u;if("themes"in n){const{defaultColor:d="light",cssVariablePrefix:p="--shiki-"}=n,h=Object.entries(n.themes).filter(S=>S[1]).map(S=>({color:S[0],theme:S[1]})).sort((S,T)=>S.color===d?-1:T.color===d?1:0);if(h.length===0)throw new es("`themes` option must not be empty");const g=dL(e,t,n);if(u=sh(g),d&&!h.find(S=>S.color===d))throw new es(`\`themes\` option must contain the defaultColor key \`${d}\``);const y=h.map(S=>e.getTheme(S.theme)),b=h.map(S=>S.color);a=g.map(S=>S.map(T=>nie(T,b,p,d))),u&&db(a,u);const x=h.map(S=>zy(S.theme,n));o=h.map((S,T)=>(T===0&&d?"":`${p+S.color}:`)+(jl(y[T].fg,x[T])||"inherit")).join(";"),r=h.map((S,T)=>(T===0&&d?"":`${p+S.color}-bg:`)+(jl(y[T].bg,x[T])||"inherit")).join(";"),s=`shiki-themes ${y.map(S=>S.name).join(" ")}`,c=d?void 0:[o,r].join(";")}else if("theme"in n){const d=zy(n.theme,n);a=CC(e,t,n);const p=e.getTheme(n.theme);r=jl(p.bg,d),o=jl(p.fg,d),s=p.name,u=sh(a)}else throw new es("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:o,bg:r,themeName:s,rootStyle:c,grammarState:u}}function nie(e,t,n,r){const o={content:e.content,explanation:e.explanation,offset:e.offset},a=t.map(u=>lL(e.variants[u])),s=new Set(a.flatMap(u=>Object.keys(u))),c={};return a.forEach((u,d)=>{for(const p of s){const h=u[p]||"inherit";if(d===0&&r)c[p]=h;else{const g=p==="color"?"":p==="background-color"?"-bg":`-${p}`,y=n+t[d]+(p==="color"?"":g);c[y]=h}}}),o.htmlStyle=c,o}function qy(e,t,n,r={meta:{},options:n,codeToHast:(o,a)=>qy(e,o,a),codeToTokens:(o,a)=>Gy(e,o,a)}){let o=t;for(const y of $y(n))o=y.preprocess?.call(r,o,n)||o;let{tokens:a,fg:s,bg:c,themeName:u,rootStyle:d,grammarState:p}=Gy(e,o,n);const{mergeWhitespaces:h=!0}=n;h===!0?a=oie(a):h==="never"&&(a=aie(a));const g={...r,get source(){return o}};for(const y of $y(n))a=y.tokens?.call(g,a)||a;return rie(a,{...n,fg:s,bg:c,themeName:u,rootStyle:d},g,p)}function rie(e,t,n,r=sh(e)){const o=$y(t),a=[],s={type:"root",children:[]},{structure:c="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=[],g={...n,structure:c,addClassToHast:iL,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return s},get pre(){return d},get code(){return p},get lines(){return h}};if(e.forEach((b,x)=>{x&&(c==="inline"?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):c==="classic"&&a.push({type:"text",value:`
|
|
266
|
+
`}));let S={type:"element",tagName:"span",properties:{class:"line"},children:[]},T=0;for(const D of b){let w={type:"element",tagName:"span",properties:{...D.htmlAttrs},children:[{type:"text",value:D.content}]};D.htmlStyle;const R=Mae(D.htmlStyle||lL(D));R&&(w.properties.style=R);for(const I of o)w=I?.span?.call(g,w,x+1,T,S,D)||w;c==="inline"?s.children.push(w):c==="classic"&&S.children.push(w),T+=D.content.length}if(c==="classic"){for(const D of o)S=D?.line?.call(g,S,x+1)||S;h.push(S),a.push(S)}}),c==="classic"){for(const b of o)p=b?.code?.call(g,p)||p;d.children.push(p);for(const b of o)d=b?.pre?.call(g,d)||d;s.children.push(d)}let y=s;for(const b of o)y=b?.root?.call(g,y)||y;return r&&db(y,r),y}function oie(e){return e.map(t=>{const n=[];let r="",o=0;return t.forEach((a,s)=>{const c=!(a.fontStyle&&a.fontStyle&Qi.Underline);c&&a.content.match(/^\s+$/)&&t[s+1]?(o||(o=a.offset),r+=a.content):r?(c?n.push({...a,offset:o,content:r+a.content}):n.push({content:r,offset:o},a),o=0,r=""):n.push(a)}),n})}function aie(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,s]=r;if(!o&&!s)return n;const c=[{...n,offset:n.offset+o.length,content:a}];return o&&c.unshift({content:o,offset:n.offset}),s&&c.push({content:s,offset:n.offset+o.length+a.length}),c}))}function iie(e,t,n){const r={meta:{},options:n,codeToHast:(a,s)=>qy(e,a,s),codeToTokens:(a,s)=>Gy(e,a,s)};let o=Rae(qy(e,t,n,r));for(const a of $y(n))o=a.postprocess?.call(r,o,n)||o;return o}const jI={light:"#333333",dark:"#bbbbbb"},UI={light:"#fffffe",dark:"#1e1e1e"},HI="__shiki_resolved";function _C(e){if(e?.[HI])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 c=t.settings?t.settings.find(u=>!u.name&&!u.scope):void 0;c?.settings?.foreground&&(r=c.settings.foreground),c?.settings?.background&&(n=c.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"?jI.light:jI.dark),n||(n=t.type==="light"?UI.light:UI.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 s(c){if(a.has(c))return a.get(c);o+=1;const u=`#${o.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${u}`]?s(c):(a.set(c,u),u)}t.settings=t.settings.map(c=>{const u=c.settings?.foreground&&!c.settings.foreground.startsWith("#"),d=c.settings?.background&&!c.settings.background.startsWith("#");if(!u&&!d)return c;const p={...c,settings:{...c.settings}};if(u){const h=s(c.settings.foreground);t.colorReplacements[h]=c.settings.foreground,p.settings.foreground=h}if(d){const h=s(c.settings.background);t.colorReplacements[h]=c.settings.background,p.settings.background=h}return p});for(const c of Object.keys(t.colors||{}))if((c==="editor.foreground"||c==="editor.background"||c.startsWith("terminal.ansi"))&&!t.colors[c]?.startsWith("#")){const u=s(t.colors[c]);t.colorReplacements[u]=t.colors[c],t.colors[c]=u}return Object.defineProperty(t,HI,{enumerable:!1,writable:!1,value:!0}),t}async function fL(e){return Array.from(new Set((await Promise.all(e.filter(t=>!oL(t)).map(async t=>await sL(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function pL(e){return(await Promise.all(e.map(async t=>aL(t)?null:_C(await sL(t))))).filter(t=>!!t)}class sie extends xoe{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=_C(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=My.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 ao(`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,s])=>s&&s.embeddedLangs?.some(c=>r.map(([u])=>u).includes(c))).filter(a=>!r.includes(a));throw new ao(`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 lie{_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 zf=0;function cie(e){zf+=1,e.warnings!==!1&&zf>=10&&zf%10===0&&console.warn(`[Shiki] ${zf} 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 ao("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(_C),o=new lie(e.engine,n),a=new sie(o,r,n,e.langAlias);let s;function c(D){S();const w=a.getGrammar(typeof D=="string"?D:D.name);if(!w)throw new ao(`Language \`${D}\` not found, you may need to load it first`);return w}function u(D){if(D==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};S();const w=a.getTheme(D);if(!w)throw new ao(`Theme \`${D}\` not found, you may need to load it first`);return w}function d(D){S();const w=u(D);s!==D&&(a.setTheme(w),s=D);const R=a.getColorMap();return{theme:w,colorMap:R}}function p(){return S(),a.getLoadedThemes()}function h(){return S(),a.getLoadedLanguages()}function g(...D){S(),a.loadLanguages(D.flat(1))}async function y(...D){return g(await fL(D))}function b(...D){S();for(const w of D.flat(1))a.loadTheme(w)}async function x(...D){return S(),b(await pL(D))}function S(){if(t)throw new ao("Shiki instance has been disposed")}function T(){t||(t=!0,a.dispose(),zf-=1)}return{setTheme:d,getTheme:u,getLanguage:c,getLoadedThemes:p,getLoadedLanguages:h,loadLanguage:y,loadLanguageSync:g,loadTheme:x,loadThemeSync:b,dispose:T,[Symbol.dispose]:T}}async function uie(e={}){e.loadWasm;const[t,n,r]=await Promise.all([pL(e.themes||[]),fL(e.langs||[]),e.engine||wP(e.loadWasm||Lre())]);return cie({...e,themes:t,langs:n,engine:r})}async function die(e={}){const t=await uie(e);return{getLastGrammarState:(...n)=>Kae(t,...n),codeToTokensBase:(n,r)=>CC(t,n,r),codeToTokensWithThemes:(n,r)=>dL(t,n,r),codeToTokens:(n,r)=>Gy(t,n,r),codeToHast:(n,r)=>qy(t,n,r),codeToHtml:(n,r)=>iie(t,n,r),...t,getInternalContext:()=>t}}function fie(e,t,n){let r,o,a;{const c=e;r=c.langs,o=c.themes,a=c.engine}async function s(c){function u(y){if(typeof y=="string"){if(oL(y))return[];const b=r[y];if(!b)throw new es(`Language \`${y}\` is not included in this bundle. You may want to load it from external source.`);return b}return y}function d(y){if(aL(y))return"none";if(typeof y=="string"){const b=o[y];if(!b)throw new es(`Theme \`${y}\` is not included in this bundle. You may want to load it from external source.`);return b}return y}const p=(c.themes??[]).map(y=>d(y)),h=(c.langs??[]).map(y=>u(y)),g=await die({engine:c.engine??a(),...c,themes:p,langs:h});return{...g,loadLanguage(...y){return g.loadLanguage(...y.map(u))},loadTheme(...y){return g.loadTheme(...y.map(d))}}}return s}const pie=fie({langs:mre,themes:yre,engine:()=>wP(G(()=>import("./wasm-DQxwEHae-CG6Dc4jp.js"),[]))}),AE={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"}]}}},hie={...AE,patterns:[...AE.patterns,{include:"#docvar"}],repository:{...AE.repository,docvar:{patterns:[{match:"\\<\\<[^(\\>\\>)]*\\>\\>",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"markup.italic.markdown"}]}}},mie={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"}]}}},hL="catppuccin-latte",gie=pie({themes:[hL],langs:["sql","json","typescript",{name:"malloy",scopeName:"source.malloy",embeddedLangs:["sql"],...hie},{name:"malloysql",scopeName:"source.malloy-sql",embeddedLangs:["sql"],...mie}]});async function lc(e,t){return(await gie).codeToHtml(e,{lang:t,theme:hL})}const Ar=ke(xu)({display:"flex",flexDirection:"column",height:"100%"}),Ko=ke(Tu)({display:"flex",flexDirection:"column",padding:"10px",flexGrow:1}),AC=ke(cq)({padding:"10px"}),yie=ke("div")({height:"100%"});ke("div")({height:"30px",backgroundColor:"rgba(225, 240, 255, 1)",display:"flex",padding:"4px",alignItems:"center"});const mL=ke("div")({height:"75vh",width:"100%",overflowY:"auto"});ke("div")({position:"relative",height:"100%",flex:"0 0 auto"});function $r({error:e,context:t}){const n=e.data?.message||"Unknown Error";return v.jsxs(v.Fragment,{children:[t&&v.jsx(He,{variant:"body2",sx:{p:"10px",m:"auto"},children:t}),v.jsx("pre",{style:{whiteSpace:"pre-wrap",color:"red",padding:"10px",margin:"auto"},children:n})]})}function Zr({text:e,size:t=20,color:n="primary",thickness:r=3.6,centered:o=!0,spacing:a=2,textVariant:s="body2"}){const c=v.jsxs(It,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:a},children:[v.jsx(yS,{size:t,color:n,thickness:r}),e&&v.jsx(He,{variant:s,color:"text.secondary",children:e})]});return o?v.jsx(It,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px",width:"100%"},children:c}):c}const bie=Dn([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-2m0 16H5V5h14z"},"0"),v.jsx("path",{d:"M7 12h2v5H7zm8-5h2v10h-2zm-4 7h2v3h-2zm0-4h2v2h-2z"},"1")]),rr="http://localhost/api/v0".replace(/\/+$/,"");class al{constructor(t,n=rr,r=Mt){this.basePath=n,this.axios=r,t&&(this.configuration=t,this.basePath=t.basePath??n)}configuration}class vie extends Error{constructor(t,n){super(n),this.field=t,this.name="RequiredError"}}const pr={},hr="https://example.com",Ht=function(e,t,n){if(n==null)throw new vie(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function uT(e,t,n=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(r=>uT(e,r,n)):Object.keys(t).forEach(r=>uT(e,t[r],`${n}${n!==""?".":""}${r}`)):e.has(n)?e.append(n,t):e.set(n,t))}const mr=function(e,...t){const n=new URLSearchParams(e.search);uT(n,t),e.search=n.toString()},gr=function(e){return e.pathname+e.search+e.hash},yr=function(e,t,n,r){return(o=t,a=n)=>{const s={...e.options,url:(o.defaults.baseURL?"":r?.basePath??a)+e.url};return o.request(s)}},Eie=function(e){return{getConnection:async(t,n,r={})=>{Ht("getConnection","projectName",t),Ht("getConnection","connectionName",n);const o="/projects/{projectName}/connections/{connectionName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),a=new URL(o,hr);let s;e&&(s=e.baseOptions);const c={method:"GET",...s,...r},u={};mr(a,{});let d=s&&s.headers?s.headers:{};return c.headers={...u,...d,...r.headers},{url:gr(a),options:c}},getQuerydata:async(t,n,r,o,a={})=>{Ht("getQuerydata","projectName",t),Ht("getQuerydata","connectionName",n);const s="/projects/{projectName}/connections/{connectionName}/queryData".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),c=new URL(s,hr);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),mr(c,h);let g=u&&u.headers?u.headers:{};return d.headers={...p,...g,...a.headers},{url:gr(c),options:d}},getSqlsource:async(t,n,r,o={})=>{Ht("getSqlsource","projectName",t),Ht("getSqlsource","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),s=new URL(a,hr);let c;e&&(c=e.baseOptions);const u={method:"GET",...c,...o},d={},p={};r!==void 0&&(p.sqlStatement=r),mr(s,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...o.headers},{url:gr(s),options:u}},getTablesource:async(t,n,r,o,a={})=>{Ht("getTablesource","projectName",t),Ht("getTablesource","connectionName",n);const s="/projects/{projectName}/connections/{connectionName}/tableSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),c=new URL(s,hr);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),mr(c,h);let g=u&&u.headers?u.headers:{};return d.headers={...p,...g,...a.headers},{url:gr(c),options:d}},getTemporarytable:async(t,n,r,o={})=>{Ht("getTemporarytable","projectName",t),Ht("getTemporarytable","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}/temporaryTable".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),s=new URL(a,hr);let c;e&&(c=e.baseOptions);const u={method:"GET",...c,...o},d={},p={};r!==void 0&&(p.sqlStatement=r),mr(s,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...o.headers},{url:gr(s),options:u}},getTest:async(t,n,r={})=>{Ht("getTest","projectName",t),Ht("getTest","connectionName",n);const o="/projects/{projectName}/connections/{connectionName}/test".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),a=new URL(o,hr);let s;e&&(s=e.baseOptions);const c={method:"GET",...s,...r},u={};mr(a,{});let d=s&&s.headers?s.headers:{};return c.headers={...u,...d,...r.headers},{url:gr(a),options:c}},listConnections:async(t,n={})=>{Ht("listConnections","projectName",t);const r="/projects/{projectName}/connections".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(r,hr);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...n},c={};mr(o,{});let u=a&&a.headers?a.headers:{};return s.headers={...c,...u,...n.headers},{url:gr(o),options:s}},listSchemas:async(t,n,r={})=>{Ht("listSchemas","projectName",t),Ht("listSchemas","connectionName",n);const o="/projects/{projectName}/connections/{connectionName}/schemas".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),a=new URL(o,hr);let s;e&&(s=e.baseOptions);const c={method:"GET",...s,...r},u={};mr(a,{});let d=s&&s.headers?s.headers:{};return c.headers={...u,...d,...r.headers},{url:gr(a),options:c}},listTables:async(t,n,r,o={})=>{Ht("listTables","projectName",t),Ht("listTables","connectionName",n),Ht("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))),s=new URL(a,hr);let c;e&&(c=e.baseOptions);const u={method:"GET",...c,...o},d={};mr(s,{});let p=c&&c.headers?c.headers:{};return u.headers={...d,...p,...o.headers},{url:gr(s),options:u}}}},zi=function(e){const t=Eie(e);return{async getConnection(n,r,o){const a=await t.getConnection(n,r,o),s=e?.serverIndex??0,c=pr["ConnectionsApi.getConnection"]?.[s]?.url;return(u,d)=>yr(a,Mt,rr,e)(u,c||d)},async getQuerydata(n,r,o,a,s){const c=await t.getQuerydata(n,r,o,a,s),u=e?.serverIndex??0,d=pr["ConnectionsApi.getQuerydata"]?.[u]?.url;return(p,h)=>yr(c,Mt,rr,e)(p,d||h)},async getSqlsource(n,r,o,a){const s=await t.getSqlsource(n,r,o,a),c=e?.serverIndex??0,u=pr["ConnectionsApi.getSqlsource"]?.[c]?.url;return(d,p)=>yr(s,Mt,rr,e)(d,u||p)},async getTablesource(n,r,o,a,s){const c=await t.getTablesource(n,r,o,a,s),u=e?.serverIndex??0,d=pr["ConnectionsApi.getTablesource"]?.[u]?.url;return(p,h)=>yr(c,Mt,rr,e)(p,d||h)},async getTemporarytable(n,r,o,a){const s=await t.getTemporarytable(n,r,o,a),c=e?.serverIndex??0,u=pr["ConnectionsApi.getTemporarytable"]?.[c]?.url;return(d,p)=>yr(s,Mt,rr,e)(d,u||p)},async getTest(n,r,o){const a=await t.getTest(n,r,o),s=e?.serverIndex??0,c=pr["ConnectionsApi.getTest"]?.[s]?.url;return(u,d)=>yr(a,Mt,rr,e)(u,c||d)},async listConnections(n,r){const o=await t.listConnections(n,r),a=e?.serverIndex??0,s=pr["ConnectionsApi.listConnections"]?.[a]?.url;return(c,u)=>yr(o,Mt,rr,e)(c,s||u)},async listSchemas(n,r,o){const a=await t.listSchemas(n,r,o),s=e?.serverIndex??0,c=pr["ConnectionsApi.listSchemas"]?.[s]?.url;return(u,d)=>yr(a,Mt,rr,e)(u,c||d)},async listTables(n,r,o,a){const s=await t.listTables(n,r,o,a),c=e?.serverIndex??0,u=pr["ConnectionsApi.listTables"]?.[c]?.url;return(d,p)=>yr(s,Mt,rr,e)(d,u||p)}}};class gL extends al{getConnection(t,n,r){return zi(this.configuration).getConnection(t,n,r).then(o=>o(this.axios,this.basePath))}getQuerydata(t,n,r,o,a){return zi(this.configuration).getQuerydata(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}getSqlsource(t,n,r,o){return zi(this.configuration).getSqlsource(t,n,r,o).then(a=>a(this.axios,this.basePath))}getTablesource(t,n,r,o,a){return zi(this.configuration).getTablesource(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}getTemporarytable(t,n,r,o){return zi(this.configuration).getTemporarytable(t,n,r,o).then(a=>a(this.axios,this.basePath))}getTest(t,n,r){return zi(this.configuration).getTest(t,n,r).then(o=>o(this.axios,this.basePath))}listConnections(t,n){return zi(this.configuration).listConnections(t,n).then(r=>r(this.axios,this.basePath))}listSchemas(t,n,r){return zi(this.configuration).listSchemas(t,n,r).then(o=>o(this.axios,this.basePath))}listTables(t,n,r,o){return zi(this.configuration).listTables(t,n,r,o).then(a=>a(this.axios,this.basePath))}}const xie=function(e){return{listDatabases:async(t,n,r,o={})=>{Ht("listDatabases","projectName",t),Ht("listDatabases","packageName",n);const a="/projects/{projectName}/packages/{packageName}/databases".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(a,hr);let c;e&&(c=e.baseOptions);const u={method:"GET",...c,...o},d={},p={};r!==void 0&&(p.versionId=r),mr(s,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...o.headers},{url:gr(s),options:u}}}},Tie=function(e){const t=xie(e);return{async listDatabases(n,r,o,a){const s=await t.listDatabases(n,r,o,a),c=e?.serverIndex??0,u=pr["DatabasesApi.listDatabases"]?.[c]?.url;return(d,p)=>yr(s,Mt,rr,e)(d,u||p)}}};class Sie extends al{listDatabases(t,n,r,o){return Tie(this.configuration).listDatabases(t,n,r,o).then(a=>a(this.axios,this.basePath))}}const Cie=function(e){return{getModel:async(t,n,r,o,a={})=>{Ht("getModel","projectName",t),Ht("getModel","packageName",n),Ht("getModel","path",r);const s="/projects/{projectName}/packages/{packageName}/models/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),c=new URL(s,hr);let u;e&&(u=e.baseOptions);const d={method:"GET",...u,...a},p={},h={};o!==void 0&&(h.versionId=o),mr(c,h);let g=u&&u.headers?u.headers:{};return d.headers={...p,...g,...a.headers},{url:gr(c),options:d}},listModels:async(t,n,r,o={})=>{Ht("listModels","projectName",t),Ht("listModels","packageName",n);const a="/projects/{projectName}/packages/{packageName}/models".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(a,hr);let c;e&&(c=e.baseOptions);const u={method:"GET",...c,...o},d={},p={};r!==void 0&&(p.versionId=r),mr(s,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...o.headers},{url:gr(s),options:u}}}},zI=function(e){const t=Cie(e);return{async getModel(n,r,o,a,s){const c=await t.getModel(n,r,o,a,s),u=e?.serverIndex??0,d=pr["ModelsApi.getModel"]?.[u]?.url;return(p,h)=>yr(c,Mt,rr,e)(p,d||h)},async listModels(n,r,o,a){const s=await t.listModels(n,r,o,a),c=e?.serverIndex??0,u=pr["ModelsApi.listModels"]?.[c]?.url;return(d,p)=>yr(s,Mt,rr,e)(d,u||p)}}};class fb extends al{getModel(t,n,r,o,a){return zI(this.configuration).getModel(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}listModels(t,n,r,o){return zI(this.configuration).listModels(t,n,r,o).then(a=>a(this.axios,this.basePath))}}const _ie=function(e){return{getNotebook:async(t,n,r,o,a={})=>{Ht("getNotebook","projectName",t),Ht("getNotebook","packageName",n),Ht("getNotebook","path",r);const s="/projects/{projectName}/packages/{packageName}/notebooks/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),c=new URL(s,hr);let u;e&&(u=e.baseOptions);const d={method:"GET",...u,...a},p={},h={};o!==void 0&&(h.versionId=o),mr(c,h);let g=u&&u.headers?u.headers:{};return d.headers={...p,...g,...a.headers},{url:gr(c),options:d}},listNotebooks:async(t,n,r,o={})=>{Ht("listNotebooks","projectName",t),Ht("listNotebooks","packageName",n);const a="/projects/{projectName}/packages/{packageName}/notebooks".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(a,hr);let c;e&&(c=e.baseOptions);const u={method:"GET",...c,...o},d={},p={};r!==void 0&&(p.versionId=r),mr(s,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...o.headers},{url:gr(s),options:u}}}},$I=function(e){const t=_ie(e);return{async getNotebook(n,r,o,a,s){const c=await t.getNotebook(n,r,o,a,s),u=e?.serverIndex??0,d=pr["NotebooksApi.getNotebook"]?.[u]?.url;return(p,h)=>yr(c,Mt,rr,e)(p,d||h)},async listNotebooks(n,r,o,a){const s=await t.listNotebooks(n,r,o,a),c=e?.serverIndex??0,u=pr["NotebooksApi.listNotebooks"]?.[c]?.url;return(d,p)=>yr(s,Mt,rr,e)(d,u||p)}}};class yL extends al{getNotebook(t,n,r,o,a){return $I(this.configuration).getNotebook(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}listNotebooks(t,n,r,o){return $I(this.configuration).listNotebooks(t,n,r,o).then(a=>a(this.axios,this.basePath))}}const Aie=function(e){return{getPackage:async(t,n,r,o,a={})=>{Ht("getPackage","projectName",t),Ht("getPackage","packageName",n);const s="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),c=new URL(s,hr);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),mr(c,h);let g=u&&u.headers?u.headers:{};return d.headers={...p,...g,...a.headers},{url:gr(c),options:d}},listPackages:async(t,n={})=>{Ht("listPackages","projectName",t);const r="/projects/{projectName}/packages".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(r,hr);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...n},c={};mr(o,{});let u=a&&a.headers?a.headers:{};return s.headers={...c,...u,...n.headers},{url:gr(o),options:s}}}},VI=function(e){const t=Aie(e);return{async getPackage(n,r,o,a,s){const c=await t.getPackage(n,r,o,a,s),u=e?.serverIndex??0,d=pr["PackagesApi.getPackage"]?.[u]?.url;return(p,h)=>yr(c,Mt,rr,e)(p,d||h)},async listPackages(n,r){const o=await t.listPackages(n,r),a=e?.serverIndex??0,s=pr["PackagesApi.listPackages"]?.[a]?.url;return(c,u)=>yr(o,Mt,rr,e)(c,s||u)}}};class bL extends al{getPackage(t,n,r,o,a){return VI(this.configuration).getPackage(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}listPackages(t,n){return VI(this.configuration).listPackages(t,n).then(r=>r(this.axios,this.basePath))}}const kie=function(e){return{getProject:async(t,n,r={})=>{Ht("getProject","projectName",t);const o="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(o,hr);let s;e&&(s=e.baseOptions);const c={method:"GET",...s,...r},u={},d={};n!==void 0&&(d.reload=n),mr(a,d);let p=s&&s.headers?s.headers:{};return c.headers={...u,...p,...r.headers},{url:gr(a),options:c}},listProjects:async(t={})=>{const n="/projects",r=new URL(n,hr);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},s={};mr(r,{});let c=o&&o.headers?o.headers:{};return a.headers={...s,...c,...t.headers},{url:gr(r),options:a}}}},GI=function(e){const t=kie(e);return{async getProject(n,r,o){const a=await t.getProject(n,r,o),s=e?.serverIndex??0,c=pr["ProjectsApi.getProject"]?.[s]?.url;return(u,d)=>yr(a,Mt,rr,e)(u,c||d)},async listProjects(n){const r=await t.listProjects(n),o=e?.serverIndex??0,a=pr["ProjectsApi.listProjects"]?.[o]?.url;return(s,c)=>yr(r,Mt,rr,e)(s,a||c)}}};class vL extends al{getProject(t,n,r){return GI(this.configuration).getProject(t,n,r).then(o=>o(this.axios,this.basePath))}listProjects(t){return GI(this.configuration).listProjects(t).then(n=>n(this.axios,this.basePath))}}const wie=function(e){return{executeQuery:async(t,n,r,o,a,s,c,u={})=>{Ht("executeQuery","projectName",t),Ht("executeQuery","packageName",n),Ht("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,hr);let h;e&&(h=e.baseOptions);const g={method:"GET",...h,...u},y={},b={};o!==void 0&&(b.query=o),a!==void 0&&(b.sourceName=a),s!==void 0&&(b.queryName=s),c!==void 0&&(b.versionId=c),mr(p,b);let x=h&&h.headers?h.headers:{};return g.headers={...y,...x,...u.headers},{url:gr(p),options:g}}}},Die=function(e){const t=wie(e);return{async executeQuery(n,r,o,a,s,c,u,d){const p=await t.executeQuery(n,r,o,a,s,c,u,d),h=e?.serverIndex??0,g=pr["QueryresultsApi.executeQuery"]?.[h]?.url;return(y,b)=>yr(p,Mt,rr,e)(y,g||b)}}};class kC extends al{executeQuery(t,n,r,o,a,s,c,u){return Die(this.configuration).executeQuery(t,n,r,o,a,s,c,u).then(d=>d(this.axios,this.basePath))}}const Rie=function(e){return{listSchedules:async(t,n,r,o={})=>{Ht("listSchedules","projectName",t),Ht("listSchedules","packageName",n);const a="/projects/{projectName}/packages/{packageName}/schedules".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(a,hr);let c;e&&(c=e.baseOptions);const u={method:"GET",...c,...o},d={},p={};r!==void 0&&(p.versionId=r),mr(s,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...o.headers},{url:gr(s),options:u}}}},Iie=function(e){const t=Rie(e);return{async listSchedules(n,r,o,a){const s=await t.listSchedules(n,r,o,a),c=e?.serverIndex??0,u=pr["SchedulesApi.listSchedules"]?.[c]?.url;return(d,p)=>yr(s,Mt,rr,e)(d,u||p)}}};class Oie extends al{listSchedules(t,n,r,o){return Iie(this.configuration).listSchedules(t,n,r,o).then(a=>a(this.axios,this.basePath))}}class Vr{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 EL=k.createContext(void 0),lh=({projectName:e,packageName:t,versionId:n,children:r})=>v.jsx(EL.Provider,{value:{projectName:e,packageName:t,versionId:n},children:r});function uo(e=!0){const t=k.useContext(EL);if(!t&&e)throw new Error("usePackage must be used within a PackageProvider");return t}const xL=new VX({defaultOptions:{queries:{retry:!1,throwOnError:!1},mutations:{retry:!1,throwOnError:!1}}}),wC=async(e,t)=>{const n=t?await t():void 0,r=n?{Authorization:`Bearer ${n}`}:{};return{baseURL:e,withCredentials:!!n,headers:r}};function Jr(e){const{server:t,getAccessToken:n}=jC(),r={...e,queryKey:[...e.queryKey,t],queryFn:async()=>{try{const o=await wC(t,n);return await e.queryFn(o)}catch(o){if(o&&typeof o=="object"&&"response"in o){const a=o;if(a.response?.data){const s=new Error(a.response.data.message||a.message);throw s.status=a.response.status,s.data=a.response.data,s}}throw o}},retry:!1,throwOnError:!1};return sZ(r,xL)}function Nie(e){const{server:t,getAccessToken:n}=jC(),r={...e,mutationFn:async o=>{try{const a=await wC(t,n);return await e.mutationFn(o,a)}catch(a){if(a&&typeof a=="object"&&"response"in a){const s=a;if(s.response?.data){const c=new Error(s.response.data.message||s.message);throw c.status=s.response.status,c.data=s.response.data,c}}throw a}},retry:!1,throwOnError:!1};return lZ(r,xL)}const Pie=k.lazy(()=>G(()=>import("./RenderedResult-BAZuT25g-l7gGLqsb.js"),[])),Lie=new kC(new Vr);function TL(e){const{optionalProjectName:t,optionalPackageName:n}=e;if(!t||!n)throw new Error("Project and Package name must be provided for query embedding.");return JSON.stringify({...e})}function Mie({modelPath:e,query:t,sourceName:n,queryName:r,optionalProjectName:o,optionalPackageName:a,optionalVersionId:s}){const c=uo(!1),u=o||c?.projectName,d=a||c?.packageName,p=s||c?.versionId;if(!u||!d)throw new Error("No project or package name provided. Must be set in props or via PackageProvider");const{data:h,isSuccess:g,isError:y,error:b}=Jr({queryKey:["queryResult",u,d,e,p,t,n,r],queryFn:x=>Lie.executeQuery(u,d,e,t,n,r,p,x)});return v.jsxs(v.Fragment,{children:[!g&&!y&&v.jsx(Zr,{text:"Fetching Query Results..."}),g&&v.jsx(k.Suspense,{fallback:v.jsx("div",{children:"Loading..."}),children:v.jsx(Pie,{result:h.data.result})}),y&&v.jsx($r,{context:`${u} > ${d} > ${e}`,error:b})]})}const SL=Dn(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"})),Fie=k.lazy(()=>G(()=>import("./RenderedResult-BAZuT25g-l7gGLqsb.js"),[]));function CL({result:e,minHeight:t,maxHeight:n}){const[r,o]=k.useState(!1),[a,s]=k.useState(0),[c,u]=k.useState(!1),d=k.useRef(null),p=k.useRef(null),[h,g]=k.useState(void 0),[y,b]=k.useState(!1),x=k.useCallback(()=>{const R=r;o(!r),R&&p.current&&setTimeout(()=>{p.current?.scrollIntoView({behavior:"smooth",block:"start"})},100)},[r]),S=k.useCallback(R=>{s(R)},[]);if(k.useEffect(()=>{if(y){u(!0);return}if(a===0){u(!1);return}const R=t-20,I=a>R;a<R&&g(a+20),u(I)},[a,y,t]),!e)return null;const T=v.jsx(Zr,{text:"Loading...",centered:!0,size:32}),D=y?r?n-40:t-40:void 0,w=h?{minHeight:`${h}px`,height:"100%"}:{height:"100%"};return v.jsx(v.Fragment,{children:v.jsxs(It,{ref:p,sx:{position:"relative",minHeight:`${t}px`,maxHeight:`${r?n:t}px`,border:"0px",borderRadius:0,overflow:"hidden",display:"flex",flexDirection:"column",...w},children:[v.jsx(It,{ref:d,sx:{flex:1,overflow:r?"auto":"hidden",p:0,pb:c?"40px":1},children:e&&v.jsx(k.Suspense,{fallback:T,children:v.jsx(Fie,{result:e,height:D,isFillElement:R=>{b(R)},onSizeChange:S})})||T}),c&&v.jsx(It,{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($n,{size:"small",onClick:x,sx:{color:"text.secondary","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},title:r?"Collapse to original size":"Expand to full size",children:r?v.jsx(yJ,{sx:{fontSize:30}}):v.jsx(bJ,{sx:{fontSize:30}})})})]})})}const Bie=`
|
|
267
|
+
.code-display pre {
|
|
268
|
+
margin: 0;
|
|
269
|
+
padding: 0;
|
|
270
|
+
}
|
|
271
|
+
`;function jie({cell:e,notebookPath:t,expandCodeCell:n,hideCodeCellIcon:r,expandEmbedding:o,hideEmbeddingIcon:a}){const[s,c]=Fe.useState(n),[u,d]=Fe.useState(o),[p,h]=Fe.useState(),[g,y]=Fe.useState(),[b,x]=Fe.useState(!1),{packageName:S,projectName:T}=uo(),D=TL({modelPath:t,query:e.text,optionalPackageName:S,optionalProjectName:T});return k.useEffect(()=>{e.type==="code"&&lc(e.text,"malloy").then(w=>{h(w)})},[e]),k.useEffect(()=>{lc(D,"typescript").then(w=>{y(w)})},[D]),e.type==="markdown"&&v.jsx(Ar,{variant:"outlined",children:v.jsx(Ko,{children:v.jsx(VS,{children:e.text})})})||e.type==="code"&&v.jsxs(Ar,{variant:"outlined",sx:{height:"auto"},children:[(!r||!a&&e.result)&&v.jsxs(fn,{sx:{flexDirection:"row",justifyContent:"space-between",ml:"8px"},children:[v.jsxs(fn,{sx:{flexDirection:"row"},children:[e.newSources&&e.newSources.length>0&&v.jsx(He,{variant:"overline",children:v.jsx("b",{children:"Data source"})}),e.result&&v.jsx(He,{variant:"overline",fontWeight:"bold",children:"Results"})]}),v.jsx(fn,{sx:{flexDirection:"row"},children:v.jsxs(R0,{sx:{padding:"0px 8px 0px 8px",mb:"auto",mt:"auto"},children:[e.newSources&&e.newSources.length>0&&v.jsx(nr,{title:"Explore Data Sources",children:v.jsx($n,{size:"small",onClick:()=>{x(!b),d(!1),c(!1)},children:v.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:v.jsx("path",{d:"M3 3h18v18H3V3zm2 2v14h14V5H5zm2 2h10v2H7V7zm0 4h10v2H7v-2zm0 4h10v2H7v-2z",fill:"currentColor"})})})}),!r&&v.jsx(nr,{title:s?"Hide Code":"View Code",children:v.jsx($n,{size:"small",onClick:()=>{c(!s)},children:v.jsx(SL,{})})}),!a&&e.result&&v.jsx(nr,{title:u?"Hide Embedding":"View Embedding",children:v.jsx($n,{size:"small",onClick:()=>{d(!u)},children:v.jsx(Lh,{})})})]})})]}),v.jsx(Ma,{in:u,timeout:"auto",unmountOnExit:!0,children:v.jsxs(fn,{sx:{p:"8px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:[v.jsx(He,{component:"div",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},dangerouslySetInnerHTML:{__html:g}}),v.jsx(nr,{title:"Copy Embeddable Code",children:v.jsx($n,{sx:{width:"24px",height:"24px"},onClick:()=>{navigator.clipboard.writeText(D)},children:v.jsx(ab,{})})})]})}),v.jsxs(Ma,{in:s,timeout:"auto",unmountOnExit:!0,children:[v.jsx("style",{children:Bie}),v.jsx(fn,{sx:{mx:"8px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:v.jsx("div",{className:"code-display",style:{fontSize:"12px",width:"800px",border:"1px solid rgb(220,220,220)"},dangerouslySetInnerHTML:{__html:p}})})]}),v.jsx(Ma,{in:b,timeout:"auto",unmountOnExit:!0,sx:{p:"5px"},children:v.jsx(nM,{sourceAndPaths:e.newSources.map(w=>({sourceInfo:JSON.parse(w),modelPath:t}))})}),e.result&&!b&&v.jsx(v.Fragment,{children:v.jsx(CL,{result:e.result,minHeight:300,maxHeight:700})})]})}const Uie=new yL(new Vr);function _L({notebookPath:e,expandResults:t,hideResultIcons:n,expandEmbeddings:r,hideEmbeddingIcons:o}){const[a,s]=Fe.useState(!1),[c,u]=Fe.useState(),{projectName:d,packageName:p,versionId:h}=uo(),g=Hie(e,!0);k.useEffect(()=>{lc(g,"typescript").then(T=>{u(T)})},[a,g]);const{data:y,isSuccess:b,isError:x,error:S}=Jr({queryKey:["notebook",d,p,e,h],queryFn:async T=>(await Uie.getNotebook(d,p,e,h,T)).data});return v.jsxs(Ar,{variant:"outlined",children:[v.jsxs(Ko,{children:[v.jsxs(fn,{sx:{flexDirection:"row",justifyContent:"space-between"},children:[v.jsx(He,{variant:"overline",fontWeight:"bold",children:"Notebook"}),!o&&v.jsx(R0,{sx:{padding:"0px 10px 0px 10px",mb:"auto",mt:"auto"},children:v.jsx(nr,{title:a?"Hide Embedding":"View Embedding",children:v.jsx($n,{size:"small",onClick:()=>{s(!a)},children:v.jsx(Lh,{})})})})]}),v.jsx(Ma,{in:a,timeout:"auto",unmountOnExit:!0,children:v.jsxs(fn,{sx:{borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:[v.jsx(He,{sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:v.jsx("div",{dangerouslySetInnerHTML:{__html:c}})}),v.jsx(nr,{title:"Copy Embeddable Code",children:v.jsx($n,{sx:{width:"24px",height:"24px"},onClick:()=>{navigator.clipboard.writeText(g)},children:v.jsx(ab,{})})})]})})]}),v.jsx(AC,{children:v.jsxs(fn,{spacing:2,component:"section",children:[!b&&!x&&v.jsx(Zr,{text:"Fetching Notebook..."}),b&&y.notebookCells?.map((T,D)=>v.jsx(jie,{cell:T,notebookPath:e,expandCodeCell:t,hideCodeCellIcon:n,expandEmbedding:r,hideEmbeddingIcon:o},D)),x&&S.status===404&&v.jsxs(He,{variant:"body2",children:[v.jsx("code",{children:`${d} > ${p} > ${e}`})," ","not found."]}),x&&S.status!==404&&v.jsx($r,{error:S,context:`${d} > ${p} > ${e}`})]})})]})}function Hie(e,t){return`<Notebook
|
|
272
|
+
notebookPath="${e}"
|
|
273
|
+
expandCodeCells={${t}}
|
|
274
|
+
/>`}const AL=Dn(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"})),zie=new bL(new Vr);function $ie(){const{projectName:e,packageName:t,versionId:n}=uo(),{data:r,isSuccess:o,isError:a,error:s}=Jr({queryKey:["package",e,t,n],queryFn:c=>zie.getPackage(e,t,n,!1,c)});return v.jsx(Ar,{variant:"outlined",sx:{width:"100%"},children:v.jsxs(Ko,{children:[v.jsx(He,{variant:"overline",fontWeight:"bold",children:"Package Config"}),v.jsx(_r,{}),v.jsx(It,{sx:{maxHeight:"200px",overflowY:"auto"},children:v.jsxs(kh,{dense:!0,disablePadding:!0,children:[v.jsx(Su,{dense:!0,disablePadding:!0,children:v.jsx(Ji,{primary:"Name",primaryTypographyProps:{fontWeight:"500"},secondary:t})}),!o&&!a&&v.jsx(Su,{children:v.jsx(Zr,{text:"Fetching Package Metadata..."})}),o&&(r.data&&v.jsx(Su,{dense:!0,disablePadding:!0,children:v.jsx(Ji,{primary:"Description",primaryTypographyProps:{fontWeight:"500"},secondary:r.data.description})})||v.jsxs(Su,{disablePadding:!0,dense:!0,sx:{mt:"20px"},children:[v.jsx(AL,{sx:{color:"grey.600",mr:"10px"}}),v.jsx(Ji,{primary:"No package manifest"})]})),a&&v.jsx($r,{error:s,context:`${e} > ${t} > ${n}`})]})})]})})}const Vie=Dn(v.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"})),Gie=new vL(new Vr);function qie(){const{projectName:e}=Hh(),{data:t,isSuccess:n,isError:r,error:o}=Jr({queryKey:["about",e],queryFn:a=>Gie.getProject(e,!1,a)});return v.jsxs(v.Fragment,{children:[!n&&!r&&v.jsx(Zr,{text:"Fetching About..."}),n&&v.jsxs(Ar,{variant:"outlined",sx:{p:2},children:[v.jsx(He,{variant:"overline",fontWeight:"bold",sx:{mb:1},children:"Readme"}),v.jsx(Ar,{sx:{p:1},children:v.jsx(VS,{children:t.data.readme})})]}),r&&v.jsx($r,{error:o,context:`${e} > About`})]})}const Wie=new bL(new Vr);function Yie({navigate:e}){const{projectName:t}=Hh(),{data:n,isSuccess:r,isError:o,error:a}=Jr({queryKey:["packages",t],queryFn:s=>Wie.listPackages(t,s)});return v.jsxs(v.Fragment,{children:[!r&&!o&&v.jsx(Zr,{text:"Fetching Packages..."}),r&&v.jsxs(Ar,{variant:"outlined",sx:{p:2},children:[v.jsx(He,{variant:"overline",fontWeight:"bold",sx:{mb:1},children:"Packages"}),v.jsx(Zn,{container:!0,spacing:2,columns:12,children:n.data.sort((s,c)=>s.name.localeCompare(c.name)).map(s=>v.jsx(Zn,{size:{xs:12,sm:12,md:12,lg:4},children:v.jsx(Ar,{variant:"outlined",sx:{cursor:"pointer",transition:"all 0.2s ease-in-out","&:hover":{boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)",transform:"translateY(-2px)"}},onClick:c=>e(s.name+"/",c),children:v.jsxs(Ko,{children:[v.jsx(He,{variant:"overline",color:"primary.main",children:s.name}),v.jsx(It,{sx:{maxHeight:"120px",overflowY:"auto"},children:v.jsx(He,{variant:"body2",children:s.description})})]})})},s.name))})]}),o&&v.jsx($r,{error:a,context:`${t} > Packages`})]})}const kL=k.createContext(void 0);function Hh(){const e=k.useContext(kL);if(!e)throw new Error("useProject must be used within a ProjectProvider");return e}function wL({children:e,projectName:t}){return v.jsx(kL.Provider,{value:{projectName:t},children:e})}function Kie({navigate:e}){return v.jsxs(Zn,{container:!0,spacing:2,columns:12,children:[v.jsx(Zn,{size:{xs:12,md:12},children:v.jsx(Yie,{navigate:e})}),v.jsx(Zn,{size:{xs:12,md:12},children:v.jsx(qie,{})})]})}const DC=new gL(new Vr);function Qie({connectionName:e}){const{projectName:t}=Hh(),[n,r]=Fe.useState(void 0),[o,a]=Fe.useState(null),[s,c]=Fe.useState(!1),{data:u,isSuccess:d,isError:p,error:h,isLoading:g}=Jr({queryKey:["tablePath",t,e],queryFn:y=>DC.listSchemas(t,e,y)});return v.jsxs(Zn,{container:!0,spacing:2,children:[v.jsx(Zn,{size:{xs:12,md:6},children:v.jsxs(Zs,{sx:{p:2},children:[v.jsxs(It,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:1},children:[v.jsx(He,{variant:"overline",fontWeight:"bold",children:"Table Paths"}),v.jsx(vW,{control:v.jsx(JY,{checked:s,onChange:y=>c(y.target.checked)}),label:"Hidden Schemas"})]}),v.jsx(_r,{}),v.jsxs(It,{sx:{mt:"10px",maxHeight:"600px",overflowY:"auto"},children:[g&&v.jsx(Zr,{text:"Fetching Table Paths..."}),p&&v.jsx($r,{error:h,context:`${t} > ${e}`}),d&&u.data.length===0&&v.jsx(He,{variant:"body2",children:"No Schemas"}),d&&u.data.length>0&&v.jsx(kh,{dense:!0,disablePadding:!0,children:u.data.filter(({isHidden:y})=>s||!y).sort((y,b)=>y.isDefault===b.isDefault?0:y.isDefault?-1:1).map(y=>v.jsx(C5,{selected:o===y.name,onClick:()=>a(y.name),children:v.jsx(Ji,{primary:y.name})},y.name))})]})]})}),v.jsx(Zn,{size:{xs:12,md:6},children:o&&v.jsx(Zs,{sx:{p:2},children:v.jsx(Zie,{connectionName:e,schemaName:o,onTableClick:y=>{r(y)}})})}),n&&v.jsx(Xie,{connectionName:e,schemaName:o,tableName:n,onClose:()=>r(void 0)})]})}function Xie({connectionName:e,schemaName:t,tableName:n,onClose:r}){const{projectName:o}=Hh(),{data:a,isSuccess:s,isError:c,error:u,isLoading:d}=Jr({queryKey:["tablePathSchema",o,e,t,n],queryFn:p=>DC.getTablesource(o,e,n,`${t}.${n}`,p)});return s&&a&&console.log(a),v.jsxs(ec,{open:!0,onClose:r,maxWidth:"sm",fullWidth:!0,children:[v.jsxs(nc,{children:[v.jsxs(He,{fontSize:"large",variant:"body2",fontFamily:"monospace",component:"span",style:{textTransform:"uppercase"},children:[t,".",n]}),v.jsx($n,{"aria-label":"close",onClick:r,sx:{position:"absolute",right:8,top:8},children:v.jsx(It,{sx:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"},children:"X"})})]}),v.jsxs(tc,{children:[d&&v.jsx(Zr,{text:"Fetching Table Details..."}),c&&v.jsx($r,{error:u,context:`${o} > ${e} > ${t}.${n}`}),s&&a&&v.jsx(PS,{children:v.jsxs($p,{size:"small",sx:{"& .MuiTableCell-root":{padding:"10px"}},children:[v.jsx(Sy,{children:v.jsxs(ui,{children:[v.jsx(xn,{children:"NAME"}),v.jsx(xn,{children:"TYPE"})]})}),v.jsx(Vp,{children:a.data.columns?.map(p=>v.jsxs(ui,{children:[v.jsx(xn,{children:p.name}),v.jsx(xn,{children:p.type})]},p.name))})]})})]})]})}function Zie({connectionName:e,schemaName:t,onTableClick:n}){const{projectName:r}=Hh(),{data:o,isSuccess:a,isError:s,error:c,isLoading:u}=Jr({queryKey:["tablesInSchema",r,e,t],queryFn:d=>DC.listTables(r,e,t,d)});return v.jsxs(v.Fragment,{children:[v.jsxs(He,{variant:"overline",fontWeight:"bold",children:["Tables in ",t]}),v.jsx(_r,{}),v.jsxs(It,{sx:{mt:"10px",maxHeight:"600px",overflowY:"auto"},children:[u&&v.jsx(Zr,{text:"Fetching Tables..."}),s&&v.jsx($r,{error:c,context:`${r} > ${e} > ${t}`}),a&&o.data.length===0&&v.jsx(He,{variant:"body2",children:"No Tables"}),a&&o.data.length>0&&v.jsx(kh,{dense:!0,disablePadding:!0,children:o.data.map(d=>v.jsx(C5,{onClick:()=>n(d),children:v.jsx(Ji,{primary:d})},d))})]})]})}const Jie=new gL(new Vr);function ese({connection:e,onClick:t}){return v.jsxs(ui,{onClick:t,sx:{cursor:"pointer","&:hover":{backgroundColor:"action.hover"}},children:[v.jsx(xn,{children:v.jsxs(It,{sx:{display:"flex",alignItems:"center",gap:1},children:[v.jsx(He,{variant:"body2",children:e.name}),v.jsx(Vie,{sx:{fontSize:"1rem",color:"action.active",opacity:.7}})]})}),v.jsx(xn,{children:v.jsx(He,{variant:"body2",children:e.type})})]},e.name)}function tse(){const{projectName:e}=uo(),[t,n]=k.useState(null),{data:r,isSuccess:o,isError:a,error:s}=Jr({queryKey:["connections",e],queryFn:d=>Jie.listConnections(e,d)}),c=d=>{n(d)},u=()=>{n(null)};return v.jsxs(wL,{projectName:e,children:[v.jsx(Ar,{variant:"outlined",sx:{width:"100%"},children:v.jsxs(Ko,{children:[v.jsx(He,{variant:"overline",fontWeight:"bold",children:"Database Connections"}),v.jsx(_r,{}),v.jsxs(It,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!o&&!a&&v.jsx(He,{variant:"body2",sx:{m:"auto"},children:"Fetching Connections..."}),o&&r.data.length>0&&v.jsx($p,{size:"small",children:v.jsxs(Vp,{children:[v.jsxs(ui,{children:[v.jsx(xn,{children:v.jsx(He,{variant:"subtitle2",fontWeight:"bold",children:"Connection Name"})}),v.jsx(xn,{children:v.jsx(He,{variant:"subtitle2",fontWeight:"bold",children:"Type"})})]}),r.data.map(d=>v.jsx(ese,{connection:d,onClick:()=>c(d.name)},d.name))]})}),o&&r.data.length===0&&v.jsx(He,{variant:"body2",children:"No Connections"}),a&&v.jsx($r,{error:s,context:`${e} > Connections`})]})]})}),v.jsxs(ec,{open:t!==null,onClose:u,maxWidth:"lg",fullWidth:!0,children:[v.jsxs(nc,{children:["Connection Explorer: ",t,v.jsx($n,{"aria-label":"close",onClick:u,sx:{position:"absolute",right:8,top:8},children:v.jsx(It,{sx:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"},children:"X"})})]}),v.jsx(tc,{children:t&&v.jsx(Qie,{connectionName:t})})]})]})}const nse=new Sie(new Vr);function rse(){const{projectName:e,packageName:t,versionId:n}=uo(),[r,o]=Fe.useState(!1),[a,s]=Fe.useState(null),c=b=>{s(b),o(!0)},u=()=>{o(!1),s(null)},{data:d,isError:p,error:h,isSuccess:g}=Jr({queryKey:["databases",e,t,n],queryFn:b=>nse.listDatabases(e,t,n,b)}),y=b=>b>=1024*1024*1024*1024?`${(b/(1024*1024*1024)).toFixed(2)} T`:b>=1024*1024*1024?`${(b/(1024*1024*1024)).toFixed(2)} G`:b>=1024*1024?`${(b/(1024*1024)).toFixed(2)} M`:`${(b/1024).toFixed(2)} K`;return v.jsxs(v.Fragment,{children:[v.jsx(Ar,{variant:"outlined",sx:{width:"100%"},children:v.jsxs(Ko,{children:[v.jsx(He,{variant:"overline",fontWeight:"bold",children:"Embedded Databases"}),v.jsx(_r,{}),v.jsxs(It,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!g&&!p&&v.jsx(Zr,{text:"Fetching Databases..."}),p&&v.jsx($r,{error:h,context:`${e} > ${t} > Databases`}),g&&d.data.length>0&&v.jsxs($p,{size:"small",children:[v.jsx(Sy,{children:v.jsxs(ui,{children:[v.jsx(xn,{children:"Name"}),v.jsx(xn,{align:"right",children:"Rows"})]})}),v.jsx(Vp,{children:d.data.map(b=>v.jsxs(ui,{onClick:()=>c(b),sx:{cursor:"pointer"},children:[v.jsx(xn,{component:"th",scope:"row",children:b.path}),v.jsx(xn,{align:"right",children:y(b.info.rowCount)})]},b.path))})]}),g&&d.data.length===0&&v.jsx(He,{variant:"body2",sx:{m:"auto"},children:"No databases found"})]})]})}),v.jsxs(ec,{open:r,onClose:u,maxWidth:"sm",fullWidth:!0,children:[v.jsx(nc,{children:a?.path}),v.jsx(tc,{children:a?.info?.columns&&v.jsx(PS,{children:v.jsxs($p,{size:"small",children:[v.jsx(Sy,{children:v.jsxs(ui,{children:[v.jsx(xn,{children:"Column"}),v.jsx(xn,{children:"Type"})]})}),v.jsx(Vp,{children:a.info.columns.map(b=>v.jsxs(ui,{children:[v.jsx(xn,{component:"th",scope:"row",children:b.name}),v.jsx(xn,{children:b.type})]},b.name))})]})})})]})]})}function Xi(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 at(){return at=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},at.apply(null,arguments)}function ose(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Py(t.components[n].defaultProps,r)}const ase=pC();function ise(e=ase){return dne(e)}function sse({props:e,name:t,defaultTheme:n,themeId:r}){let o=ise(n);return o=o[r]||o,ose({theme:o,name:t,props:e})}function lse({props:e,name:t}){return sse({props:e,name:t,defaultTheme:hC,themeId:mC})}function dT(){return dT=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},dT.apply(null,arguments)}function DL(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 fT(e,t){return fT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},fT(e,t)}function RL(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,fT(e,t)}const qI={disabled:!1},Wy=Fe.createContext(null);var cse=function(e){return e.scrollTop},sp="unmounted",Rl="exited",Il="entering",vu="entered",pT="exiting",as=function(e){RL(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var s=o,c=s&&!s.isMounting?r.enter:r.appear,u;return a.appearStatus=null,r.in?c?(u=Rl,a.appearStatus=Il):u=vu:r.unmountOnExit||r.mountOnEnter?u=sp:u=Rl,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(r,o){var a=r.in;return a&&o.status===sp?{status:Rl}: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!==Il&&a!==vu&&(o=Il):(a===Il||a===vu)&&(o=pT)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,o,a,s;return o=a=s=r,r!=null&&typeof r!="number"&&(o=r.exit,a=r.enter,s=r.appear!==void 0?r.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(r,o){if(r===void 0&&(r=!1),o!==null)if(this.cancelNextCallback(),o===Il){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:zs.findDOMNode(this);a&&cse(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Rl&&this.setState({status:sp})},n.performEnter=function(r){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:r,c=this.props.nodeRef?[s]:[zs.findDOMNode(this),s],u=c[0],d=c[1],p=this.getTimeouts(),h=s?p.appear:p.enter;if(!r&&!a||qI.disabled){this.safeSetState({status:vu},function(){o.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:Il},function(){o.props.onEntering(u,d),o.onTransitionEnd(h,function(){o.safeSetState({status:vu},function(){o.props.onEntered(u,d)})})})},n.performExit=function(){var r=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:zs.findDOMNode(this);if(!o||qI.disabled){this.safeSetState({status:Rl},function(){r.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:pT},function(){r.props.onExiting(s),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:Rl},function(){r.props.onExited(s)})})})},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(s){a&&(a=!1,o.nextCallback=null,r(s))},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:zs.findDOMNode(this),s=r==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=c[0],d=c[1];this.props.addEndListener(u,d)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===sp)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 s=DL(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Fe.createElement(Wy.Provider,{value:null},typeof a=="function"?a(r,s):Fe.cloneElement(Fe.Children.only(a),s))},t}(Fe.Component);as.contextType=Wy;as.propTypes={};function du(){}as.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};as.UNMOUNTED=sp;as.EXITED=Rl;as.ENTERING=Il;as.ENTERED=vu;as.EXITING=pT;function use(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RC(e,t){var n=function(o){return t&&k.isValidElement(o)?t(o):o},r=Object.create(null);return e&&k.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function dse(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 s,c={};for(var u in t){if(r[u])for(s=0;s<r[u].length;s++){var d=r[u][s];c[r[u][s]]=n(d)}c[u]=n(u)}for(s=0;s<o.length;s++)c[o[s]]=n(o[s]);return c}function Hl(e,t,n){return n[t]!=null?n[t]:e.props[t]}function fse(e,t){return RC(e.children,function(n){return k.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Hl(n,"appear",e),enter:Hl(n,"enter",e),exit:Hl(n,"exit",e)})})}function pse(e,t,n){var r=RC(e.children),o=dse(t,r);return Object.keys(o).forEach(function(a){var s=o[a];if(k.isValidElement(s)){var c=a in t,u=a in r,d=t[a],p=k.isValidElement(d)&&!d.props.in;u&&(!c||p)?o[a]=k.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:Hl(s,"exit",e),enter:Hl(s,"enter",e)}):!u&&c&&!p?o[a]=k.cloneElement(s,{in:!1}):u&&c&&k.isValidElement(d)&&(o[a]=k.cloneElement(s,{onExited:n.bind(null,s),in:d.props.in,exit:Hl(s,"exit",e),enter:Hl(s,"enter",e)}))}}),o}var hse=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},mse={component:"div",childFactory:function(e){return e}},IC=function(e){RL(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var s=a.handleExited.bind(use(a));return a.state={contextValue:{isMounting:!0},handleExited:s,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,s=o.handleExited,c=o.firstRender;return{children:c?fse(r,s):pse(r,a,s),firstRender:!1}},n.handleExited=function(r,o){var a=RC(this.props.children);r.key in a||(r.props.onExited&&r.props.onExited(o),this.mounted&&this.setState(function(s){var c=dT({},s.children);return delete c[r.key],{children:c}}))},n.render=function(){var r=this.props,o=r.component,a=r.childFactory,s=DL(r,["component","childFactory"]),c=this.state.contextValue,u=hse(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,o===null?Fe.createElement(Wy.Provider,{value:c},u):Fe.createElement(Wy.Provider,{value:c},Fe.createElement(o,s,u))},t}(Fe.Component);IC.propTypes={};IC.defaultProps=mse;const WI={};function IL(e,t){const n=k.useRef(WI);return n.current===WI&&(n.current=e(t)),n}const gse=[];function yse(e){k.useEffect(e,gse)}class OC{static create(){return new OC}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 OL(){const e=IL(OC.create).current;return yse(e.disposeEffect),e}function YI(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 bse(e){return fd("MuiCollapse",e)}hd("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const vse=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Oh(r,bse,n)},Ese=Pn("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]}})(yC(({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"}}]}))),xse=Pn("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Tse=Pn("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),ch=k.forwardRef(function(e,t){const n=pd({props:e,name:"MuiCollapse"}),{addEndListener:r,children:o,className:a,collapsedSize:s="0px",component:c,easing:u,in:d,onEnter:p,onEntered:h,onEntering:g,onExit:y,onExited:b,onExiting:x,orientation:S="vertical",style:T,timeout:D=TP.standard,TransitionComponent:w=as,...R}=n,I={...n,orientation:S,collapsedSize:s},O=vse(I),F=Xne(),j=OL(),H=k.useRef(null),C=k.useRef(),M=typeof s=="number"?`${s}px`:s,$=S==="horizontal",z=$?"width":"height",q=k.useRef(null),Y=Ly(t,q),B=ee=>ce=>{if(ee){const re=q.current;ce===void 0?ee(re):ee(re,ce)}},X=()=>H.current?H.current[$?"clientWidth":"clientHeight"]:0,ae=B((ee,ce)=>{H.current&&$&&(H.current.style.position="absolute"),ee.style[z]=M,p&&p(ee,ce)}),te=B((ee,ce)=>{const re=X();H.current&&$&&(H.current.style.position="");const{duration:be,easing:ye}=YI({style:T,timeout:D,easing:u},{mode:"enter"});if(D==="auto"){const Ge=F.transitions.getAutoHeightDuration(re);ee.style.transitionDuration=`${Ge}ms`,C.current=Ge}else ee.style.transitionDuration=typeof be=="string"?be:`${be}ms`;ee.style[z]=`${re}px`,ee.style.transitionTimingFunction=ye,g&&g(ee,ce)}),N=B((ee,ce)=>{ee.style[z]="auto",h&&h(ee,ce)}),oe=B(ee=>{ee.style[z]=`${X()}px`,y&&y(ee)}),K=B(b),P=B(ee=>{const ce=X(),{duration:re,easing:be}=YI({style:T,timeout:D,easing:u},{mode:"exit"});if(D==="auto"){const ye=F.transitions.getAutoHeightDuration(ce);ee.style.transitionDuration=`${ye}ms`,C.current=ye}else ee.style.transitionDuration=typeof re=="string"?re:`${re}ms`;ee.style[z]=M,ee.style.transitionTimingFunction=be,x&&x(ee)});return v.jsx(w,{in:d,onEnter:ae,onEntered:N,onEntering:te,onExit:oe,onExited:K,onExiting:P,addEndListener:ee=>{D==="auto"&&j.start(C.current||0,ee),r&&r(q.current,ee)},nodeRef:q,timeout:D==="auto"?null:D,...R,children:(ee,{ownerState:ce,...re})=>v.jsx(Ese,{as:c,className:or(O.root,a,{entered:O.entered,exited:!d&&M==="0px"&&O.hidden}[ee]),style:{[$?"minWidth":"minHeight"]:M,...T},ref:Y,ownerState:{...I,state:ee},...re,children:v.jsx(xse,{ownerState:{...I,state:ee},className:O.wrapper,ref:H,children:v.jsx(Tse,{ownerState:{...I,state:ee},className:O.wrapperInner,children:o})})})})});ch&&(ch.muiSupportAuto=!0);const Sse=k.createContext(void 0);function Cse(){return k.useContext(Sse)}function KI(e){try{return e.matches(":focus-visible")}catch{}return!1}class Yy{static create(){return new Yy}static use(){const t=IL(Yy.create).current,[n,r]=k.useState(!1);return t.shouldMount=n,t.setShouldMount=r,k.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=Ase(),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 _se(){return Yy.use()}function Ase(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function kse(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:s,in:c,onExited:u,timeout:d}=e,[p,h]=k.useState(!1),g=or(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:s,height:s,top:-(s/2)+a,left:-(s/2)+o},b=or(n.child,p&&n.childLeaving,r&&n.childPulsate);return!c&&!p&&h(!0),k.useEffect(()=>{if(!c&&u!=null){const x=setTimeout(u,d);return()=>{clearTimeout(x)}}},[u,c,d]),v.jsx("span",{className:g,style:y,children:v.jsx("span",{className:b})})}const fa=hd("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),hT=550,wse=80,Dse=tl`
|
|
275
|
+
0% {
|
|
276
|
+
transform: scale(0);
|
|
277
|
+
opacity: 0.1;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
100% {
|
|
281
|
+
transform: scale(1);
|
|
282
|
+
opacity: 0.3;
|
|
283
|
+
}
|
|
284
|
+
`,Rse=tl`
|
|
285
|
+
0% {
|
|
286
|
+
opacity: 1;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
100% {
|
|
290
|
+
opacity: 0;
|
|
291
|
+
}
|
|
292
|
+
`,Ise=tl`
|
|
293
|
+
0% {
|
|
294
|
+
transform: scale(1);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
50% {
|
|
298
|
+
transform: scale(0.92);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
100% {
|
|
302
|
+
transform: scale(1);
|
|
303
|
+
}
|
|
304
|
+
`,Ose=Pn("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Nse=Pn(kse,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
305
|
+
opacity: 0;
|
|
306
|
+
position: absolute;
|
|
307
|
+
|
|
308
|
+
&.${fa.rippleVisible} {
|
|
309
|
+
opacity: 0.3;
|
|
310
|
+
transform: scale(1);
|
|
311
|
+
animation-name: ${Dse};
|
|
312
|
+
animation-duration: ${hT}ms;
|
|
313
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
&.${fa.ripplePulsate} {
|
|
317
|
+
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
& .${fa.child} {
|
|
321
|
+
opacity: 1;
|
|
322
|
+
display: block;
|
|
323
|
+
width: 100%;
|
|
324
|
+
height: 100%;
|
|
325
|
+
border-radius: 50%;
|
|
326
|
+
background-color: currentColor;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
& .${fa.childLeaving} {
|
|
330
|
+
opacity: 0;
|
|
331
|
+
animation-name: ${Rse};
|
|
332
|
+
animation-duration: ${hT}ms;
|
|
333
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
& .${fa.childPulsate} {
|
|
337
|
+
position: absolute;
|
|
338
|
+
/* @noflip */
|
|
339
|
+
left: 0px;
|
|
340
|
+
top: 0;
|
|
341
|
+
animation-name: ${Ise};
|
|
342
|
+
animation-duration: 2500ms;
|
|
343
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
344
|
+
animation-iteration-count: infinite;
|
|
345
|
+
animation-delay: 200ms;
|
|
346
|
+
}
|
|
347
|
+
`,Pse=k.forwardRef(function(e,t){const n=pd({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a,...s}=n,[c,u]=k.useState([]),d=k.useRef(0),p=k.useRef(null);k.useEffect(()=>{p.current&&(p.current(),p.current=null)},[c]);const h=k.useRef(!1),g=OL(),y=k.useRef(null),b=k.useRef(null),x=k.useCallback(w=>{const{pulsate:R,rippleX:I,rippleY:O,rippleSize:F,cb:j}=w;u(H=>[...H,v.jsx(Nse,{classes:{ripple:or(o.ripple,fa.ripple),rippleVisible:or(o.rippleVisible,fa.rippleVisible),ripplePulsate:or(o.ripplePulsate,fa.ripplePulsate),child:or(o.child,fa.child),childLeaving:or(o.childLeaving,fa.childLeaving),childPulsate:or(o.childPulsate,fa.childPulsate)},timeout:hT,pulsate:R,rippleX:I,rippleY:O,rippleSize:F},d.current)]),d.current+=1,p.current=j},[o]),S=k.useCallback((w={},R={},I=()=>{})=>{const{pulsate:O=!1,center:F=r||R.pulsate,fakeElement:j=!1}=R;if(w?.type==="mousedown"&&h.current){h.current=!1;return}w?.type==="touchstart"&&(h.current=!0);const H=j?null:b.current,C=H?H.getBoundingClientRect():{width:0,height:0,left:0,top:0};let M,$,z;if(F||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)M=Math.round(C.width/2),$=Math.round(C.height/2);else{const{clientX:q,clientY:Y}=w.touches&&w.touches.length>0?w.touches[0]:w;M=Math.round(q-C.left),$=Math.round(Y-C.top)}if(F)z=Math.sqrt((2*C.width**2+C.height**2)/3),z%2===0&&(z+=1);else{const q=Math.max(Math.abs((H?H.clientWidth:0)-M),M)*2+2,Y=Math.max(Math.abs((H?H.clientHeight:0)-$),$)*2+2;z=Math.sqrt(q**2+Y**2)}w?.touches?y.current===null&&(y.current=()=>{x({pulsate:O,rippleX:M,rippleY:$,rippleSize:z,cb:I})},g.start(wse,()=>{y.current&&(y.current(),y.current=null)})):x({pulsate:O,rippleX:M,rippleY:$,rippleSize:z,cb:I})},[r,x,g]),T=k.useCallback(()=>{S({},{pulsate:!0})},[S]),D=k.useCallback((w,R)=>{if(g.clear(),w?.type==="touchend"&&y.current){y.current(),y.current=null,g.start(0,()=>{D(w,R)});return}y.current=null,u(I=>I.length>0?I.slice(1):I),p.current=R},[g]);return k.useImperativeHandle(t,()=>({pulsate:T,start:S,stop:D}),[T,S,D]),v.jsx(Ose,{className:or(fa.root,o.root,a),ref:b,...s,children:v.jsx(IC,{component:null,exit:!0,children:c})})});function Lse(e){return fd("MuiButtonBase",e)}const Mse=hd("MuiButtonBase",["root","disabled","focusVisible"]),Fse=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Oh({root:["root",t&&"disabled",n&&"focusVisible"]},Lse,o);return n&&r&&(a.root+=` ${r}`),a},Bse=Pn("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"},[`&.${Mse.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),jse=k.forwardRef(function(e,t){const n=pd({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:a,className:s,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:p=!1,focusRipple:h=!1,focusVisibleClassName:g,LinkComponent:y="a",onBlur:b,onClick:x,onContextMenu:S,onDragLeave:T,onFocus:D,onFocusVisible:w,onKeyDown:R,onKeyUp:I,onMouseDown:O,onMouseLeave:F,onMouseUp:j,onTouchEnd:H,onTouchMove:C,onTouchStart:M,tabIndex:$=0,TouchRippleProps:z,touchRippleRef:q,type:Y,...B}=n,X=k.useRef(null),ae=_se(),te=Ly(ae.ref,q),[N,oe]=k.useState(!1);u&&N&&oe(!1),k.useImperativeHandle(r,()=>({focusVisible:()=>{oe(!0),X.current.focus()}}),[]);const K=ae.shouldMount&&!d&&!u;k.useEffect(()=>{N&&h&&!d&&ae.pulsate()},[d,h,N,ae]);const P=$i(ae,"start",O,p),ee=$i(ae,"stop",S,p),ce=$i(ae,"stop",T,p),re=$i(ae,"stop",j,p),be=$i(ae,"stop",Ue=>{N&&Ue.preventDefault(),F&&F(Ue)},p),ye=$i(ae,"start",M,p),Ge=$i(ae,"stop",H,p),Me=$i(ae,"stop",C,p),Oe=$i(ae,"stop",Ue=>{KI(Ue.target)||oe(!1),b&&b(Ue)},!1),Qe=Kg(Ue=>{X.current||(X.current=Ue.currentTarget),KI(Ue.target)&&(oe(!0),w&&w(Ue)),D&&D(Ue)}),nt=()=>{const Ue=X.current;return c&&c!=="button"&&!(Ue.tagName==="A"&&Ue.href)},Re=Kg(Ue=>{h&&!Ue.repeat&&N&&Ue.key===" "&&ae.stop(Ue,()=>{ae.start(Ue)}),Ue.target===Ue.currentTarget&&nt()&&Ue.key===" "&&Ue.preventDefault(),R&&R(Ue),Ue.target===Ue.currentTarget&&nt()&&Ue.key==="Enter"&&!u&&(Ue.preventDefault(),x&&x(Ue))}),gt=Kg(Ue=>{h&&Ue.key===" "&&N&&!Ue.defaultPrevented&&ae.stop(Ue,()=>{ae.pulsate(Ue)}),I&&I(Ue),x&&Ue.target===Ue.currentTarget&&nt()&&Ue.key===" "&&!Ue.defaultPrevented&&x(Ue)});let _t=c;_t==="button"&&(B.href||B.to)&&(_t=y);const je={};_t==="button"?(je.type=Y===void 0?"button":Y,je.disabled=u):(!B.href&&!B.to&&(je.role="button"),u&&(je["aria-disabled"]=u));const mt=Ly(t,X),lt={...n,centerRipple:o,component:c,disabled:u,disableRipple:d,disableTouchRipple:p,focusRipple:h,tabIndex:$,focusVisible:N},ft=Fse(lt);return v.jsxs(Bse,{as:_t,className:or(ft.root,s),ownerState:lt,onBlur:Oe,onClick:x,onContextMenu:ee,onFocus:Qe,onKeyDown:Re,onKeyUp:gt,onMouseDown:P,onMouseLeave:be,onMouseUp:re,onDragLeave:ce,onTouchEnd:Ge,onTouchMove:Me,onTouchStart:ye,ref:mt,tabIndex:u?-1:$,type:Y,...je,...B,children:[a,K?v.jsx(Pse,{ref:te,center:o,...z}):null]})});function $i(e,t,n,r=!1){return Kg(o=>(n&&n(o),r||e[t](o),!0))}function Use(e){return fd("PrivateSwitchBase",e)}hd("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);function Hse(e){return typeof e=="string"}function zse(e,t,n){return e===void 0||Hse(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function $se(e,t,n){return typeof e=="function"?e(t,n):e}function Vse(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 QI(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 Gse(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const y=or(n?.className,a,o?.className,r?.className),b={...n?.style,...o?.style,...r?.style},x={...n,...o,...r};return y.length>0&&(x.className=y),Object.keys(b).length>0&&(x.style=b),{props:x,internalRef:void 0}}const s=Vse({...o,...r}),c=QI(r),u=QI(o),d=t(s),p=or(d?.className,n?.className,a,o?.className,r?.className),h={...d?.style,...n?.style,...o?.style,...r?.style},g={...d,...n,...u,...c};return p.length>0&&(g.className=p),Object.keys(h).length>0&&(g.style=h),{props:g,internalRef:d.ref}}function mT(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,internalForwardedProps:s,shouldForwardComponentProp:c=!1,...u}=t,{component:d,slots:p={[e]:void 0},slotProps:h={[e]:void 0},...g}=a,y=p[e]||r,b=$se(h[e],o),{props:{component:x,...S},internalRef:T}=Gse({className:n,...u,externalForwardedProps:e==="root"?g:void 0,externalSlotProps:b}),D=Ly(T,b?.ref,t.ref),w=e==="root"?x||d:x,R=zse(y,{...e==="root"&&!d&&!p[e]&&s,...e!=="root"&&!p[e]&&s,...S,...w&&!c&&{as:w},...w&&c&&{component:w},ref:D},o);return[y,R]}const qse=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,a={root:["root",n&&"checked",r&&"disabled",o&&`edge${za(o)}`],input:["input"]};return Oh(a,Use,t)},Wse=Pn(jse)({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}}]}),Yse=Pn("input",{shouldForwardProp:gC})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Kse=k.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,defaultChecked:a,disabled:s,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:p,inputProps:h,inputRef:g,name:y,onBlur:b,onChange:x,onFocus:S,readOnly:T,required:D=!1,tabIndex:w,type:R,value:I,slots:O={},slotProps:F={},...j}=e,[H,C]=ure({controlled:r,default:!!a}),M=Cse(),$=ee=>{S&&S(ee),M&&M.onFocus&&M.onFocus(ee)},z=ee=>{b&&b(ee),M&&M.onBlur&&M.onBlur(ee)},q=ee=>{if(ee.nativeEvent.defaultPrevented)return;const ce=ee.target.checked;C(ce),x&&x(ee,ce)};let Y=s;M&&typeof Y>"u"&&(Y=M.disabled);const B=R==="checkbox"||R==="radio",X={...e,checked:H,disabled:Y,disableFocusRipple:c,edge:u},ae=qse(X),te={slots:O,slotProps:{input:h,...F}},[N,oe]=mT("root",{ref:t,elementType:Wse,className:ae.root,shouldForwardComponentProp:!0,externalForwardedProps:{...te,component:"span",...j},getSlotProps:ee=>({...ee,onFocus:ce=>{ee.onFocus?.(ce),$(ce)},onBlur:ce=>{ee.onBlur?.(ce),z(ce)}}),ownerState:X,additionalProps:{centerRipple:!0,focusRipple:!c,disabled:Y,role:void 0,tabIndex:null}}),[K,P]=mT("input",{ref:g,elementType:Yse,className:ae.input,externalForwardedProps:te,getSlotProps:ee=>({...ee,onChange:ce=>{ee.onChange?.(ce),q(ce)}}),ownerState:X,additionalProps:{autoFocus:n,checked:r,defaultChecked:a,disabled:Y,id:B?p:void 0,name:y,readOnly:T,required:D,tabIndex:w,type:R,...R==="checkbox"&&I===void 0?{}:{value:I}}});return v.jsxs(N,{...oe,children:[v.jsx(K,{...P}),H?o:d]})}),Qse=Dn(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"})),Xse=Dn(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"})),Zse=Dn(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 Jse(e){return fd("MuiCheckbox",e)}const kE=hd("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);function ele(e){return typeof e.main=="string"}function tle(e,t=[]){if(!ele(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function XI(e=[]){return([,t])=>t&&tle(t,e)}const nle=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,a={root:["root",n&&"indeterminate",`color${za(r)}`,`size${za(o)}`]},s=Oh(a,Jse,t);return{...t,...s}},rle=Pn(Kse,{shouldForwardProp:e=>gC(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${za(n.size)}`],n.color!=="default"&&t[`color${za(n.color)}`]]}})(yC(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Qx(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(XI()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qx(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(XI()).map(([t])=>({props:{color:t},style:{[`&.${kE.checked}, &.${kE.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${kE.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),ole=v.jsx(Xse,{}),ale=v.jsx(Qse,{}),ile=v.jsx(Zse,{}),NL=k.forwardRef(function(e,t){const n=pd({props:e,name:"MuiCheckbox"}),{checkedIcon:r=ole,color:o="primary",icon:a=ale,indeterminate:s=!1,indeterminateIcon:c=ile,inputProps:u,size:d="medium",disableRipple:p=!1,className:h,slots:g={},slotProps:y={},...b}=n,x=s?c:a,S=s?c:r,T={...n,disableRipple:p,color:o,indeterminate:s,size:d},D=nle(T),w=y.input??u,[R,I]=mT("root",{ref:t,elementType:rle,className:or(D.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:y,...b},ownerState:T,additionalProps:{type:"checkbox",icon:k.cloneElement(x,{fontSize:x.props.fontSize??d}),checkedIcon:k.cloneElement(S,{fontSize:S.props.fontSize??d}),disableRipple:p,slots:g,slotProps:{input:fre(typeof w=="function"?w(T):w,{"data-indeterminate":s})}}});return v.jsx(R,{...I,classes:D})});function Xu(...e){const t=k.useRef(void 0),n=k.useCallback(r=>{const o=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const s=a,c=s(r);return typeof c=="function"?c:()=>{s(null)}}return a.current=r,()=>{a.current=null}});return()=>{o.forEach(a=>a?.())}},e);return k.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function sle(e){return typeof e=="string"}function lle(e,t,n){return e===void 0||sle(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function la(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 ZI(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 cle(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const y=or(n?.className,a,o?.className,r?.className),b={...n?.style,...o?.style,...r?.style},x={...n,...o,...r};return y.length>0&&(x.className=y),Object.keys(b).length>0&&(x.style=b),{props:x,internalRef:void 0}}const s=la({...o,...r}),c=ZI(r),u=ZI(o),d=t(s),p=or(d?.className,n?.className,a,o?.className,r?.className),h={...d?.style,...n?.style,...o?.style,...r?.style},g={...d,...n,...u,...c};return p.length>0&&(g.className=p),Object.keys(h).length>0&&(g.style=h),{props:g,internalRef:d.ref}}function Wi(e,t,n){return typeof e=="function"?e(t,n):e}function zl(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...a}=e,s=o?{}:Wi(n,r),{props:c,internalRef:u}=cle({...a,externalSlotProps:s}),d=Xu(u,s?.ref,e.additionalProps?.ref);return lle(t,{...c,ref:d},r)}function PL(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let s="",c=!0;for(let u=0;u<a.length;u+=1){const d=a[u];d&&(s+=(c===!0?"":" ")+t(d),c=!1,n&&n[d]&&(s+=" "+n[d]))}r[o]=s}return r}function LL(e){return lse}const ML=k.createContext(null);function ule(e){const{value:t,children:n}=e;return v.jsx(ML.Provider,{value:t,children:t.wrapRoot({children:n,instance:t.instance})})}const yc=()=>{const e=k.useContext(ML);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(`
|
|
348
|
+
`));return e},dle=({props:e})=>{const{instance:t}=yc(),{label:n,itemId:r}=e,[o,a]=k.useState(n),s=t.isItemBeingEdited(r);return k.useEffect(()=>{s||a(n)},[s,n]),{propsEnhancers:{labelInput:({externalEventHandlers:c,interactions:u})=>t.isItemEditable(r)?{value:o??"","data-element":"labelInput",onChange:d=>{c.onChange?.(d),a(d.target.value)},onKeyDown:d=>{if(c.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=>{c.onBlur?.(d),!d.defaultMuiPrevented&&d.target.value&&u.handleSaveItemLabel(d,d.target.value)},autoFocus:!0,type:"text"}:{}}}},xa=({instance:e,state:t,setState:n,params:r})=>{const o=k.useRef(t.editedItemId),a=h=>o.current===h,s=h=>{n(g=>at({},g,{editedItemId:h})),o.current=h},c=h=>h===t.editedItemId,u=!!r.isItemEditable,d=h=>{if(h==null||!u)return!1;const g=e.getItem(h);return g?typeof r.isItemEditable=="function"?r.isItemEditable(g):!!r.isItemEditable:!1},p=(h,g)=>{if(!g)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(`
|
|
349
|
+
`));n(y=>{const b=y.items.itemMetaMap[h];return b.label!==g?at({},y,{items:at({},y.items,{itemMetaMap:at({},y.items.itemMetaMap,{[h]:at({},b,{label:g})})})}):y}),r.onItemLabelChange&&r.onItemLabelChange(h,g)};return{instance:{setEditedItemId:s,isItemBeingEdited:c,updateItemLabel:p,isItemEditable:d,isTreeViewEditable:u,isItemBeingEditedRef:a},publicAPI:{updateItemLabel:p}}};xa.itemPlugin=dle;xa.getDefaultizedParams=({params:e,experimentalFeatures:t})=>{const n=t?.labelEditing;return at({},e,{isItemEditable:n?e.isItemEditable??!1:!1})};xa.getInitialState=()=>({editedItemId:null});xa.params={onItemLabelChange:!0,isItemEditable:!0};const Yl=(e,t)=>e.getAvailablePlugins().has(t),FL=e=>Array.isArray(e)?e.length>0&&e.some(FL):!!e,fle=({itemId:e,children:t})=>{const{instance:n,selection:{multiSelect:r},publicAPI:o}=yc(),a={expandable:FL(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},s=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)},c=p=>{a.disabled||(a.focused||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=()=>{Yl(n,xa)&&n.isItemEditable(e)&&(n.isItemBeingEdited(e)?n.setEditedItemId(null):n.setEditedItemId(e))};return{interactions:{handleExpansion:s,handleSelection:c,handleCheckboxSelection:u,toggleItemEditing:d,handleSaveItemLabel:(p,h)=>{Yl(n,xa)&&n.isItemBeingEditedRef(e)&&(n.updateItemLabel(e,h),d(),n.focusItem(p,e))},handleCancelItemLabelEditing:p=>{Yl(n,xa)&&n.isItemBeingEditedRef(e)&&(d(),n.focusItem(p,e))}},status:a,publicAPI:o}},NC=k.createContext(()=>-1),BL=(e,t)=>{let n=t.length-1;for(;n>=0&&!e.isItemNavigable(t[n]);)n-=1;if(n!==-1)return t[n]},jL=(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:jL(e,n.parentId);let s=r[a],c=BL(e,e.getItemOrderedChildrenIds(s));for(;e.isItemExpanded(s)&&c!=null;)s=c,c=e.getItemOrderedChildrenIds(s).find(e.isItemNavigable);return s},Zg=(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},UL=e=>{let t=null;for(;t==null||e.isItemExpanded(t);){const n=e.getItemOrderedChildrenIds(t),r=BL(e,n);if(r==null)return t;t=r}return t},uh=e=>e.getItemOrderedChildrenIds(null).find(e.isItemNavigable),HL=(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],s=[o.id];let c=r.parentId,u=o.parentId,d=s.indexOf(c)!==-1,p=a.indexOf(u)!==-1,h=!0,g=!0;for(;!p&&!d;)h&&(a.push(c),d=s.indexOf(c)!==-1,h=c!==null,!d&&h&&(c=e.getItemMeta(c).parentId)),g&&!d&&(s.push(u),p=a.indexOf(u)!==-1,g=u!==null,!p&&g&&(u=e.getItemMeta(u).parentId));const y=d?c:u,b=e.getItemOrderedChildrenIds(y),x=a[a.indexOf(y)-1],S=s[s.indexOf(y)-1];return b.indexOf(x)<b.indexOf(S)?[t,n]:[n,t]},ple=(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]=HL(e,t,n),s=[o];let c=o;for(;c!==a;)c=r(c),e.isItemDisabled(c)||s.push(c);return s},hle=e=>{let t=uh(e);const n=[];for(;t!=null;)n.push(t),t=Zg(e,t);return n},dh=(e,t)=>t!==e.closest('*[role="treeitem"]');let JI=0;const mle=()=>(JI+=1,`mui-tree-view-${JI}`),PC=({id:e,treeId:t="",itemId:n})=>e??`${t}-${n}`,gle=e=>{const{runItemPlugins:t,items:{onItemClick:n,disabledItemsFocusable:r,indentationAtItemLevel:o},selection:{disableSelection:a,checkboxSelection:s},expansion:{expansionTrigger:c},treeId:u,instance:d,publicAPI:p}=yc(),h=k.useContext(NC),{id:g,itemId:y,label:b,children:x,rootRef:S}=e,{rootRef:T,contentRef:D,propsEnhancers:w}=t(e),{interactions:R,status:I}=fle({itemId:y,children:x}),O=k.useRef(null),F=k.useRef(null),j=Xu(S,T,O),H=Xu(D,F),C=k.useRef(null),M=PC({itemId:y,treeId:u,id:g}),$=d.canItemBeTabbed(y)?0:-1,z={rootRefObject:O,contentRefObject:F,interactions:R},q=K=>P=>{if(K.onFocus?.(P),P.defaultMuiPrevented)return;const ee=!I.disabled||r;!I.focused&&ee&&P.currentTarget===P.target&&d.focusItem(P,y)},Y=K=>P=>{if(K.onBlur?.(P),P.defaultMuiPrevented)return;const ee=d.getItemDOMElement(y);I.editing||P.relatedTarget&&dh(P.relatedTarget,ee)&&(P.target&&P.target?.dataset?.element==="labelInput"&&dh(P.target,ee)||P.relatedTarget?.dataset?.element==="labelInput")||d.removeFocusedItem()},B=K=>P=>{K.onKeyDown?.(P),!(P.defaultMuiPrevented||P.target?.dataset?.element==="labelInput")&&d.handleItemKeyDown(P,y)},X=K=>P=>{K.onDoubleClick?.(P),!P.defaultMuiPrevented&&R.toggleItemEditing()},ae=K=>P=>{K.onClick?.(P),n?.(P,y),!(P.defaultMuiPrevented||C.current?.contains(P.target))&&(c==="content"&&R.handleExpansion(P),s||R.handleSelection(P))},te=K=>P=>{K.onMouseDown?.(P),!P.defaultMuiPrevented&&(P.shiftKey||P.ctrlKey||P.metaKey||I.disabled)&&P.preventDefault()},N=K=>P=>{K.onChange?.(P),!P.defaultMuiPrevented&&(a||I.disabled||R.handleCheckboxSelection(P))},oe=K=>P=>{K.onClick?.(P),!P.defaultMuiPrevented&&c==="iconContainer"&&R.handleExpansion(P)};return{getRootProps:(K={})=>{const P=at({},la(e),la(K));let ee;I.selected?ee=!0:a||I.disabled?ee=void 0:ee=!1;const ce=at({},P,{ref:j,role:"treeitem",tabIndex:$,id:M,"aria-expanded":I.expandable?I.expanded:void 0,"aria-selected":ee,"aria-disabled":I.disabled||void 0},K,{onFocus:q(P),onBlur:Y(P),onKeyDown:B(P)});o&&(ce.style={"--TreeView-itemDepth":typeof h=="function"?h(y):h});const re=w.root?.(at({},z,{externalEventHandlers:P}))??{};return at({},ce,re)},getContentProps:(K={})=>{const P=la(K),ee=at({},P,K,{ref:H,onClick:ae(P),onMouseDown:te(P),status:I});o&&(ee.indentationAtItemLevel=!0);const ce=w.content?.(at({},z,{externalEventHandlers:P}))??{};return at({},ee,ce)},getGroupTransitionProps:(K={})=>{const P=la(K),ee=at({},P,{unmountOnExit:!0,component:"ul",role:"group",in:I.expanded,children:x},K);return o&&(ee.indentationAtItemLevel=!0),ee},getIconContainerProps:(K={})=>{const P=la(K);return at({},P,K,{onClick:oe(P)})},getCheckboxProps:(K={})=>{const P=la(K);return at({},P,{visible:s,ref:C,checked:I.selected,disabled:a||I.disabled,tabIndex:-1},K,{onChange:N(P)})},getLabelProps:(K={})=>{const P=at({},la(K)),ee=at({},P,{children:b},K,{onDoubleClick:X(P)});return d.isTreeViewEditable&&(ee.editable=I.editable),ee},getLabelInputProps:(K={})=>{const P=la(K),ee=w.labelInput?.({rootRefObject:O,contentRefObject:F,externalEventHandlers:P,interactions:R})??{};return at({},K,ee)},getDragAndDropOverlayProps:(K={})=>{const P=la(K),ee=w.dragAndDropOverlay?.(at({},z,{externalEventHandlers:P}))??{};return at({},K,ee)},rootRef:j,status:I,publicAPI:p}},yle=gle;function zL(e){const{instance:t,items:{onItemClick:n},selection:{multiSelect:r,checkboxSelection:o,disableSelection:a},expansion:{expansionTrigger:s}}=yc(),c=t.isItemExpandable(e),u=t.isItemExpanded(e),d=t.isItemFocused(e),p=t.isItemSelected(e),h=t.isItemDisabled(e),g=t?.isItemBeingEdited?t?.isItemBeingEdited(e):!1,y=t.isItemEditable?t.isItemEditable(e):!1,b=w=>{if(!h){d||t.focusItem(w,e);const R=r&&(w.shiftKey||w.ctrlKey||w.metaKey);c&&!(R&&t.isItemExpanded(e))&&t.toggleItemExpansion(w,e)}},x=w=>{h||(d||t.focusItem(w,e),r&&(w.shiftKey||w.ctrlKey||w.metaKey)?w.shiftKey?t.expandSelectionRange(w,e):t.selectItem({event:w,itemId:e,keepExistingSelection:!0}):t.selectItem({event:w,itemId:e,shouldBeSelected:!0}))},S=w=>{if(a||h)return;const R=w.nativeEvent.shiftKey;r&&R?t.expandSelectionRange(w,e):t.selectItem({event:w,itemId:e,keepExistingSelection:r,shouldBeSelected:w.target.checked})},T=w=>{(w.shiftKey||w.ctrlKey||w.metaKey||h)&&w.preventDefault()},D=()=>{Yl(t,xa)&&t.isItemEditable(e)&&(t.isItemBeingEdited(e)?t.setEditedItemId(null):t.setEditedItemId(e))};return{disabled:h,expanded:u,selected:p,focused:d,editable:y,editing:g,disableSelection:a,checkboxSelection:o,handleExpansion:b,handleSelection:x,handleCheckboxSelection:S,handleContentClick:n,preventSelection:T,expansionTrigger:s,toggleItemEditing:D,handleSaveItemLabel:(w,R)=>{Yl(t,xa)&&t.isItemBeingEditedRef(e)&&(t.updateItemLabel(e,R),D(),t.focusItem(w,e))},handleCancelItemLabelEditing:w=>{Yl(t,xa)&&t.isItemBeingEditedRef(e)&&(D(),t.focusItem(w,e))}}}const ble=Pn("div",{name:"MuiTreeItem2DragAndDropOverlay",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Bg(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})`:Dt(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 vle(e){return e.action==null?null:v.jsx(ble,at({},e))}const Ele=Pn("input",{name:"MuiTreeItem2",slot:"LabelInput",overridesResolver:(e,t)=>t.labelInput})(({theme:e})=>at({},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}`}})),xle=["classes","className","displayIcon","expansionIcon","icon","label","itemId","onClick","onMouseDown","dragAndDropOverlayProps","labelInputProps"],$L=k.forwardRef(function(e,t){const{classes:n,className:r,displayIcon:o,expansionIcon:a,icon:s,label:c,itemId:u,onClick:d,onMouseDown:p,dragAndDropOverlayProps:h,labelInputProps:g}=e,y=Xi(e,xle),{disabled:b,expanded:x,selected:S,focused:T,editing:D,editable:w,disableSelection:R,checkboxSelection:I,handleExpansion:O,handleSelection:F,handleCheckboxSelection:j,handleContentClick:H,preventSelection:C,expansionTrigger:M,toggleItemEditing:$}=zL(u),z=s||a||o,q=k.useRef(null),Y=ae=>{C(ae),p&&p(ae)},B=ae=>{H?.(ae,u),!q.current?.contains(ae.target)&&(M==="content"&&O(ae),I||F(ae),d&&d(ae))},X=ae=>{ae.defaultMuiPrevented||$()};return v.jsxs("div",at({},y,{className:or(n.root,r,x&&n.expanded,S&&n.selected,T&&n.focused,b&&n.disabled,D&&n.editing,w&&n.editable),onClick:B,onMouseDown:Y,ref:t,children:[v.jsx("div",{className:n.iconContainer,children:z}),I&&v.jsx(NL,{className:n.checkbox,checked:S,onChange:j,disabled:b||R,ref:q,tabIndex:-1}),D?v.jsx(Ele,at({},g,{className:n.labelInput})):v.jsx("div",at({className:n.label},w&&{onDoubleClick:X},{children:c})),h&&v.jsx(vle,at({},h))]}))}),eO=e=>e,Tle=()=>{let e=eO;return{configure(t){e=t},generate(t){return e(t)},reset(){e=eO}}},Sle=Tle(),Cle={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 LC(e,t,n="Mui"){const r=Cle[t];return r?`${n}-${r}`:`${Sle.generate(e)}-${t}`}function VL(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=LC(e,o,n)}),r}function _le(e){return LC("MuiTreeItem",e)}const Vi=VL("MuiTreeItem",["root","groupTransition","content","expanded","selected","focused","disabled","iconContainer","label","checkbox","labelInput","editable","editing","dragAndDropOverlay"]),GL=Dn(v.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),qL=Dn(v.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}));function MC(e){const{children:t,itemId:n}=e,{wrapItem:r,instance:o}=yc();return r({children:t,itemId:n,instance:o})}MC.propTypes={children:rI.node,itemId:rI.string.isRequired};const Ale=["children","className","slots","slotProps","ContentComponent","ContentProps","itemId","id","label","onClick","onMouseDown","onFocus","onBlur","onKeyDown"],kle=["ownerState"],wle=["ownerState"],Dle=["ownerState"],Rle=LL(),Ile=e=>{const{classes:t}=e;return PL({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"]},_le,t)},Ole=Pn("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),Nle=Pn($L,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${Vi.iconContainer}`]:t.iconContainer},t.label&&{[`& .${Vi.label}`]:t.label}],shouldForwardProp:e=>Ys(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"}},[`&.${Vi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${Vi.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Vi.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Dt(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}))`:Dt(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})`:Dt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Vi.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Dt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${Vi.iconContainer}`]:{width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${Vi.label}`]:at({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1),[`& .${Vi.checkbox}`]:{padding:0},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}}]})),Ple=Pn(ch,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>Ys(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]}),Lle=k.forwardRef(function(e,t){const{icons:n,runItemPlugins:r,items:{disabledItemsFocusable:o,indentationAtItemLevel:a},selection:{disableSelection:s},expansion:{expansionTrigger:c},treeId:u,instance:d}=yc(),p=k.useContext(NC),h=Rle({props:e,name:"MuiTreeItem"}),{children:g,className:y,slots:b,slotProps:x,ContentComponent:S=$L,ContentProps:T,itemId:D,id:w,label:R,onClick:I,onMouseDown:O,onBlur:F,onKeyDown:j}=h,H=Xi(h,Ale),{expanded:C,focused:M,selected:$,disabled:z,editing:q,handleExpansion:Y,handleCancelItemLabelEditing:B,handleSaveItemLabel:X}=zL(D),{contentRef:ae,rootRef:te,propsEnhancers:N}=r(h),oe=k.useRef(null),K=k.useRef(null),P=Xu(t,te,oe),ee=Xu(T?.ref,ae,K),ce={expandIcon:b?.expandIcon??n.slots.expandIcon??GL,collapseIcon:b?.collapseIcon??n.slots.collapseIcon??qL,endIcon:b?.endIcon??n.slots.endIcon,icon:b?.icon,groupTransition:b?.groupTransition},re=Se=>Array.isArray(Se)?Se.length>0&&Se.some(re):!!Se,be=re(g),ye=at({},h,{expanded:C,focused:M,selected:$,disabled:z,indentationAtItemLevel:a}),Ge=Ile(ye),Me=ce.groupTransition??void 0,Oe=zl({elementType:Me,ownerState:{},externalSlotProps:x?.groupTransition,additionalProps:at({unmountOnExit:!0,in:C,component:"ul",role:"group"},a?{indentationAtItemLevel:!0}:{}),className:Ge.groupTransition}),Qe=Se=>{c==="iconContainer"&&Y(Se)},nt=C?ce.collapseIcon:ce.expandIcon,Re=zl({elementType:nt,ownerState:{},externalSlotProps:Se=>C?at({},Wi(n.slotProps.collapseIcon,Se),Wi(x?.collapseIcon,Se)):at({},Wi(n.slotProps.expandIcon,Se),Wi(x?.expandIcon,Se)),additionalProps:{onClick:Qe}}),gt=Xi(Re,kle),_t=be&&nt?v.jsx(nt,at({},gt)):null,je=be?void 0:ce.endIcon,mt=zl({elementType:je,ownerState:{},externalSlotProps:Se=>be?{}:at({},Wi(n.slotProps.endIcon,Se),Wi(x?.endIcon,Se))}),lt=Xi(mt,wle),ft=je?v.jsx(je,at({},lt)):null,Ue=ce.icon,Le=zl({elementType:Ue,ownerState:{},externalSlotProps:x?.icon}),Jt=Xi(Le,Dle),jt=Ue?v.jsx(Ue,at({},Jt)):null;let At;$?At=!0:s||z?At=void 0:At=!1;function de(Se){!M&&(!z||o)&&Se.currentTarget===Se.target&&d.focusItem(Se,D)}function ge(Se){F?.(Se),!(q||Se.relatedTarget&&dh(Se.relatedTarget,oe.current)&&(Se.target&&Se.target?.dataset?.element==="labelInput"&&dh(Se.target,oe.current)||Se.relatedTarget?.dataset?.element==="labelInput"))&&d.removeFocusedItem()}const ze=Se=>{j?.(Se),Se.target?.dataset?.element!=="labelInput"&&d.handleItemKeyDown(Se,D)},Xe=PC({itemId:D,treeId:u,id:w}),Et=d.canItemBeTabbed(D)?0:-1,Je={rootRefObject:oe,contentRefObject:K,interactions:{handleSaveItemLabel:X,handleCancelItemLabelEditing:B}},en=N.root?.(at({},Je,{externalEventHandlers:la(H)}))??{},zt=N.content?.(at({},Je,{externalEventHandlers:la(T)}))??{},Ke=N.dragAndDropOverlay?.(at({},Je,{externalEventHandlers:{}}))??{},Ee=N.labelInput?.(at({},Je,{externalEventHandlers:{}}))??{};return v.jsx(MC,{itemId:D,children:v.jsxs(Ole,at({className:or(Ge.root,y),role:"treeitem","aria-expanded":be?C:void 0,"aria-selected":At,"aria-disabled":z||void 0,id:Xe,tabIndex:Et},H,{ownerState:ye,onFocus:de,onBlur:ge,onKeyDown:ze,ref:P,style:a?at({},H.style,{"--TreeView-itemDepth":typeof p=="function"?p(D):p}):H.style},en,{children:[v.jsx(Nle,at({as:S,classes:{root:Ge.content,expanded:Ge.expanded,selected:Ge.selected,focused:Ge.focused,disabled:Ge.disabled,editable:Ge.editable,editing:Ge.editing,iconContainer:Ge.iconContainer,label:Ge.label,labelInput:Ge.labelInput,checkbox:Ge.checkbox},label:R,itemId:D,onClick:I,onMouseDown:O,icon:jt,expansionIcon:_t,displayIcon:ft,ownerState:ye},T,zt,Ke.action==null?{}:{dragAndDropOverlayProps:Ke},Ee.value==null?{}:{labelInputProps:Ee},{ref:ee})),g&&v.jsx(Ple,at({as:Me},Oe,{children:g}))]}))})});function Mle(e){const{slots:t,slotProps:n,status:r}=e,o=yc(),a=at({},o.icons.slots,{expandIcon:o.icons.slots.expandIcon??GL,collapseIcon:o.icons.slots.collapseIcon??qL}),s=o.icons.slotProps;let c;t?.icon?c="icon":r.expandable?r.expanded?c="collapseIcon":c="expandIcon":c="endIcon";const u=t?.[c]??a[c],d=zl({elementType:u,externalSlotProps:p=>at({},Wi(s[c],p),Wi(n?.[c],p)),ownerState:{}});return u?v.jsx(u,at({},d)):null}const Fle=["visible"],Ble=Pn("li",{name:"MuiTreeItem2",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),jle=Pn("div",{name:"MuiTreeItem2",slot:"Content",overridesResolver:(e,t)=>t.content,shouldForwardProp:e=>Ys(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})`:Dt(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}))`:Dt(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})`:Dt(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}))`:Dt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}]})),Ule=Pn("div",{name:"MuiTreeItem2",slot:"Label",overridesResolver:(e,t)=>t.label,shouldForwardProp:e=>Ys(e)&&e!=="editable"})(({theme:e})=>at({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative",overflow:"hidden"},e.typography.body1,{variants:[{props:({editable:t})=>t,style:{paddingLeft:"2px"}}]})),Hle=Pn("div",{name:"MuiTreeItem2",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})({width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}});Pn(ch,{name:"MuiTreeItem2",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>Ys(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]});Pn(k.forwardRef((e,t)=>{const{visible:n}=e,r=Xi(e,Fle);return n?v.jsx(NL,at({},r,{ref:t})):null}),{name:"MuiTreeItem2",slot:"Checkbox",overridesResolver:(e,t)=>t.checkbox})({padding:0});function zle(e){return LC("MuiRichTreeView",e)}VL("MuiRichTreeView",["root"]);const $le=(e,t)=>{const n=k.useRef({}),[r,o]=k.useState(()=>{const a={};return e.forEach(s=>{s.models&&Object.entries(s.models).forEach(([c,u])=>{n.current[c]={isControlled:t[c]!==void 0,getDefaultValue:u.getDefaultValue},a[c]=u.getDefaultValue(t)})}),a});return Object.fromEntries(Object.entries(n.current).map(([a,s])=>{const c=t[a]??r[a];return[a,{value:c,setControlledValue:u=>{s.isControlled||o(d=>at({},d,{[a]:u}))}}]}))};class Vle{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 s=o.length-1;s>=0;s-=1){const c=o[s];r.highPriority.has(c)&&c.apply(this,n)}for(let s=0;s<a.length;s+=1){const c=a[s];r.regular.has(c)&&c.apply(this,n)}}once(t,n){const r=this;this.on(t,function o(...a){r.removeListener(t,o),n.apply(r,a)})}}const Gle=e=>e.isPropagationStopped!==void 0,WL=()=>{const[e]=k.useState(()=>new Vle),t=k.useCallback((...r)=>{const[o,a,s={}]=r;s.defaultMuiPrevented=!1,!(Gle(s)&&s.isPropagationStopped())&&e.emit(o,a,s)},[e]),n=k.useCallback((r,o)=>(e.on(r,o),()=>{e.removeListener(r,o)}),[e]);return{instance:{$$publishEvent:t,$$subscribeEvent:n}}};WL.params={};const YL=({plugins:e})=>{const t=new Set(e);return{instance:{getAvailablePlugins:()=>t}}};YL.params={};const FC=({params:e,state:t,setState:n})=>{k.useEffect(()=>{n(o=>o.id.treeId===e.id&&o.id.treeId!==void 0?o:at({},o,{id:at({},o.id,{treeId:e.id??mle()})}))},[n,e.id]);const r=e.id??t.id.treeId;return{getRootProps:()=>({id:r}),contextValue:{treeId:r}}};FC.params={id:!0};FC.getInitialState=({id:e})=>({id:{treeId:e??void 0}});const qle=[WL,YL,FC],Wle=["slots","slotProps","apiRef","experimentalFeatures"],Yle=e=>{let{props:{slots:t,slotProps:n,apiRef:r,experimentalFeatures:o},plugins:a}=e,s=Xi(e.props,Wle);const c={};a.forEach(g=>{Object.assign(c,g.params)});const u={},d={};Object.keys(s).forEach(g=>{const y=s[g];c[g]?u[g]=y:d[g]=y});const p=o??{},h=a.reduce((g,y)=>y.getDefaultizedParams?y.getDefaultizedParams({params:g,experimentalFeatures:p}):g,u);return{apiRef:r,forwardedProps:d,pluginParams:h,slots:t??{},slotProps:n??{},experimentalFeatures:p}},Kle=({plugins:e,instance:t,publicAPI:n,rootRef:r})=>({runItemPlugins:o=>{let a=null,s=null;const c=[],u={};e.forEach(h=>{if(!h.itemPlugin)return;const g=h.itemPlugin({props:o,rootRef:a,contentRef:s});g?.rootRef&&(a=g.rootRef),g?.contentRef&&(s=g.contentRef),g?.propsEnhancers&&(c.push(g.propsEnhancers),Object.keys(g.propsEnhancers).forEach(y=>{u[y]=!0}))});const d=h=>g=>{const y={};return c.forEach(b=>{const x=b[h];x!=null&&Object.assign(y,x(g))}),y},p=Object.fromEntries(Object.keys(u).map(h=>[h,d(h)]));return{contentRef:s,rootRef:a,propsEnhancers:p}},wrapItem:({itemId:o,children:a})=>{let s=a;for(let c=e.length-1;c>=0;c-=1){const u=e[c];u.wrapItem&&(s=u.wrapItem({itemId:o,children:s,instance:t}))}return s},wrapRoot:({children:o})=>{let a=o;for(let s=e.length-1;s>=0;s-=1){const c=e[s];c.wrapRoot&&(a=c.wrapRoot({children:a,instance:t}))}return a},instance:t,rootRef:r,publicAPI:n});function Qle(e){const t=k.useRef({});return e?(e.current==null&&(e.current={}),e.current):t.current}const Xle=({plugins:e,rootRef:t,props:n})=>{const r=[...qle,...e],{pluginParams:o,forwardedProps:a,apiRef:s,experimentalFeatures:c,slots:u,slotProps:d}=Yle({plugins:r,props:n}),p=$le(r,o),h=k.useRef({}).current,g=Qle(s),y=k.useRef(null),b=Xu(y,t),x=Kle({plugins:r,instance:h,publicAPI:g,rootRef:y}),[S,T]=k.useState(()=>{const R={};return r.forEach(I=>{I.getInitialState&&Object.assign(R,I.getInitialState(o))}),R}),D=[],w=R=>{const I=R({instance:h,params:o,slots:u,slotProps:d,experimentalFeatures:c,state:S,setState:T,rootRef:y,models:p,plugins:r});I.getRootProps&&D.push(I.getRootProps),I.publicAPI&&Object.assign(g,I.publicAPI),I.instance&&Object.assign(h,I.instance),I.contextValue&&Object.assign(x,I.contextValue)};return r.forEach(w),{getRootProps:(R={})=>{const I=at({role:"tree"},a,R,{ref:b});return D.forEach(O=>{Object.assign(I,O(R))}),I},rootRef:b,contextValue:x,instance:h}},Zle=(e,t,n)=>{e.$$publishEvent(t,n)},_u="__TREE_VIEW_ROOT_PARENT_ID__",Jle=e=>{const t={};return e.forEach((n,r)=>{t[n]=r}),t},ece=["children"],KL=({items:e,isItemDisabled:t,getItemLabel:n,getItemId:r})=>{const o={},a={},s={[_u]:[]},c=(d,p,h)=>{const g=r?r(d):d.id;if(g==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(`
|
|
350
|
+
`));if(o[g]!=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: "${g}"`].join(`
|
|
351
|
+
`));const y=n?n(d):d.label;if(y==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(`
|
|
352
|
+
`));o[g]={id:g,label:y,parentId:h,idAttribute:void 0,expandable:!!d.children?.length,disabled:t?t(d):!1,depth:p},a[g]=d;const b=h??_u;s[b]||(s[b]=[]),s[b].push(g),d.children?.forEach(x=>c(x,p+1,g))};e.forEach(d=>c(d,0,null));const u={};return Object.keys(s).forEach(d=>{u[d]=Jle(s[d])}),{itemMetaMap:o,itemMap:a,itemOrderedChildrenIds:s,itemChildrenIndexes:u}},zh=({instance:e,params:t,state:n,setState:r,experimentalFeatures:o})=>{const a=k.useCallback(S=>n.items.itemMetaMap[S],[n.items.itemMetaMap]),s=k.useCallback(S=>n.items.itemMap[S],[n.items.itemMap]),c=k.useCallback(()=>{const S=T=>{const D=n.items.itemMap[T],w=Xi(D,ece),R=n.items.itemOrderedChildrenIds[T];return R&&(w.children=R.map(S)),w};return n.items.itemOrderedChildrenIds[_u].map(S)},[n.items.itemMap,n.items.itemOrderedChildrenIds]),u=k.useCallback(S=>{if(S==null)return!1;let T=e.getItemMeta(S);if(!T)return!1;if(T.disabled)return!0;for(;T.parentId!=null;)if(T=e.getItemMeta(T.parentId),T.disabled)return!0;return!1},[e]),d=k.useCallback(S=>{const T=e.getItemMeta(S).parentId??_u;return n.items.itemChildrenIndexes[T][S]},[e,n.items.itemChildrenIndexes]),p=k.useCallback(S=>n.items.itemOrderedChildrenIds[S??_u]??[],[n.items.itemOrderedChildrenIds]),h=S=>{const T=e.getItemMeta(S);return T==null?null:document.getElementById(PC({treeId:n.id.treeId,itemId:S,id:T.idAttribute}))},g=S=>t.disabledItemsFocusable?!0:!e.isItemDisabled(S),y=k.useRef(!1),b=k.useCallback(()=>{y.current=!0},[]),x=k.useCallback(()=>y.current,[]);return k.useEffect(()=>{e.areItemUpdatesPrevented()||r(S=>{const T=KL({items:t.items,isItemDisabled:t.isItemDisabled,getItemId:t.getItemId,getItemLabel:t.getItemLabel});return Object.values(S.items.itemMetaMap).forEach(D=>{T.itemMetaMap[D.id]||Zle(e,"removeItem",{id:D.id})}),at({},S,{items:T})})},[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:s,getItemDOMElement:h,getItemTree:c,getItemOrderedChildrenIds:p},instance:{getItemMeta:a,getItem:s,getItemTree:c,getItemsToRender:()=>{const S=T=>{const D=n.items.itemMetaMap[T];return{label:D.label,itemId:D.id,id:D.idAttribute,children:n.items.itemOrderedChildrenIds[T]?.map(S)}};return n.items.itemOrderedChildrenIds[_u].map(S)},getItemIndex:d,getItemDOMElement:h,getItemOrderedChildrenIds:p,isItemDisabled:u,isItemNavigable:g,preventItemUpdates:b,areItemUpdatesPrevented:x},contextValue:{items:{onItemClick:t.onItemClick,disabledItemsFocusable:t.disabledItemsFocusable,indentationAtItemLevel:o.indentationAtItemLevel??!1}}}};zh.getInitialState=e=>({items:KL({items:e.items,isItemDisabled:e.isItemDisabled,getItemId:e.getItemId,getItemLabel:e.getItemLabel})});zh.getDefaultizedParams=({params:e})=>at({},e,{disabledItemsFocusable:e.disabledItemsFocusable??!1,itemChildrenIndentation:e.itemChildrenIndentation??"12px"});zh.wrapRoot=({children:e,instance:t})=>v.jsx(NC.Provider,{value:n=>t.getItemMeta(n)?.depth??0,children:e});zh.params={disabledItemsFocusable:!0,items:!0,isItemDisabled:!0,getItemLabel:!0,getItemId:!0,onItemClick:!0,itemChildrenIndentation:!0};const tce=typeof window<"u"?k.useLayoutEffect:k.useEffect;function Fu(e){const t=k.useRef(e);return tce(()=>{t.current=e}),k.useRef((...n)=>(0,t.current)(...n)).current}const pb=({instance:e,params:t,models:n})=>{const r=k.useMemo(()=>{const h=new Map;return n.expandedItems.value.forEach(g=>{h.set(g,!0)}),h},[n.expandedItems.value]),o=(h,g)=>{t.onExpandedItemsChange?.(h,g),n.expandedItems.setControlledValue(g)},a=k.useCallback(h=>r.has(h),[r]),s=k.useCallback(h=>!!e.getItemMeta(h)?.expandable,[e]),c=Fu((h,g)=>{const y=e.isItemExpanded(g);e.setItemExpansion(h,g,!y)}),u=Fu((h,g,y)=>{if(e.isItemExpanded(g)===y)return;let b;y?b=[g].concat(n.expandedItems.value):b=n.expandedItems.value.filter(x=>x!==g),t.onItemExpansionToggle&&t.onItemExpansionToggle(h,g,y),o(h,b)}),d=(h,g)=>{const y=e.getItemMeta(g),b=e.getItemOrderedChildrenIds(y.parentId).filter(S=>e.isItemExpandable(S)&&!e.isItemExpanded(S)),x=n.expandedItems.value.concat(b);b.length>0&&(t.onItemExpansionToggle&&b.forEach(S=>{t.onItemExpansionToggle(h,S,!0)}),o(h,x))},p=k.useMemo(()=>t.expansionTrigger?t.expansionTrigger:e.isTreeViewEditable?"iconContainer":"content",[t.expansionTrigger,e.isTreeViewEditable]);return{publicAPI:{setItemExpansion:u},instance:{isItemExpanded:a,isItemExpandable:s,setItemExpansion:u,toggleItemExpansion:c,expandAllSiblings:d},contextValue:{expansion:{expansionTrigger:p}}}};pb.models={expandedItems:{getDefaultValue:e=>e.defaultExpandedItems}};const nce=[];pb.getDefaultizedParams=({params:e})=>at({},e,{defaultExpandedItems:e.defaultExpandedItems??nce});pb.params={expandedItems:!0,defaultExpandedItems:!0,onExpandedItemsChange:!0,onItemExpansionToggle:!0,expansionTrigger:!0};const Jg=e=>Array.isArray(e)?e:e!=null?[e]:[],wE=e=>{const t={};return e.forEach(n=>{t[n]=!0}),t},hb=({instance:e,params:t,models:n})=>{const r=k.useRef(null),o=k.useRef({}),a=k.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]),s=(p,h)=>{if(t.onItemSelectionToggle)if(t.multiSelect){const g=h.filter(b=>!e.isItemSelected(b)),y=n.selectedItems.value.filter(b=>!h.includes(b));g.forEach(b=>{t.onItemSelectionToggle(p,b,!0)}),y.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)},c=p=>a.has(p),u=({event:p,itemId:h,keepExistingSelection:g=!1,shouldBeSelected:y})=>{if(t.disableSelection)return;let b;if(g){const x=Jg(n.selectedItems.value),S=e.isItemSelected(h);S&&(y===!1||y==null)?b=x.filter(T=>T!==h):!S&&(y===!0||y==null)?b=[h].concat(x):b=x}else y===!1||y==null&&e.isItemSelected(h)?b=t.multiSelect?[]:null:b=t.multiSelect?[h]:h;s(p,b),r.current=h,o.current={}},d=(p,[h,g])=>{if(t.disableSelection||!t.multiSelect)return;let y=Jg(n.selectedItems.value).slice();Object.keys(o.current).length>0&&(y=y.filter(T=>!o.current[T]));const b=wE(y),x=ple(e,h,g),S=x.filter(T=>!b[T]);y=y.concat(S),s(p,y),o.current=wE(x)};return{getRootProps:()=>({"aria-multiselectable":t.multiSelect}),publicAPI:{selectItem:u},instance:{isItemSelected:c,selectItem:u,selectAllNavigableItems:p=>{if(t.disableSelection||!t.multiSelect)return;const h=hle(e);s(p,h),o.current=wE(h)},expandSelectionRange:(p,h)=>{if(r.current!=null){const[g,y]=HL(e,h,r.current);d(p,[g,y])}},selectRangeFromStartToItem:(p,h)=>{d(p,[uh(e),h])},selectRangeFromItemToEnd:(p,h)=>{d(p,[h,UL(e)])},selectItemFromArrowNavigation:(p,h,g)=>{if(t.disableSelection||!t.multiSelect)return;let y=Jg(n.selectedItems.value).slice();Object.keys(o.current).length===0?(y.push(g),o.current={[h]:!0,[g]:!0}):(o.current[h]||(o.current={}),o.current[g]?(y=y.filter(b=>b!==h),delete o.current[h]):(y.push(g),o.current[g]=!0)),s(p,y)}},contextValue:{selection:{multiSelect:t.multiSelect,checkboxSelection:t.checkboxSelection,disableSelection:t.disableSelection}}}};hb.models={selectedItems:{getDefaultValue:e=>e.defaultSelectedItems}};const rce=[];hb.getDefaultizedParams=({params:e})=>at({},e,{disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,checkboxSelection:e.checkboxSelection??!1,defaultSelectedItems:e.defaultSelectedItems??(e.multiSelect?rce:null)});hb.params={disableSelection:!0,multiSelect:!0,checkboxSelection:!0,defaultSelectedItems:!0,selectedItems:!0,onSelectedItemsChange:!0,onItemSelectionToggle:!0};function oce(e){return e&&e.ownerDocument||document}const tO=1e3;class ace{constructor(t=tO){this.timeouts=new Map,this.cleanupTimeout=tO,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 ice{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 sce{}function lce(e){let t=0;return function(n,r,o){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new ice:new ace);const[a]=k.useState(new sce),s=k.useRef(null),c=k.useRef(void 0);c.current=o;const u=k.useRef(null);if(!s.current&&c.current){const d=(p,h)=>{h.defaultMuiPrevented||c.current?.(p,h)};s.current=n.$$subscribeEvent(r,d),t+=1,u.current={cleanupToken:t},e.registry.register(a,()=>{s.current?.(),s.current=null,u.current=null},u.current)}else!c.current&&s.current&&(s.current(),s.current=null,u.current&&(e.registry.unregister(u.current),u.current=null));k.useEffect(()=>{if(!s.current&&c.current){const d=(p,h)=>{h.defaultMuiPrevented||c.current?.(p,h)};s.current=n.$$subscribeEvent(r,d)}return u.current&&e.registry&&(e.registry.unregister(u.current),u.current=null),()=>{s.current?.(),s.current=null}},[n,r])}}const cce={registry:null},uce=lce(cce),QL=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?QL(t.shadowRoot):t:null},dce=(e,t)=>{let n=Jg(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=uh(e)),n},BC=({instance:e,params:t,state:n,setState:r,models:o,rootRef:a})=>{const s=dce(e,o.selectedItems.value),c=Fu(S=>{const T=typeof S=="function"?S(n.focusedItemId):S;n.focusedItemId!==T&&r(D=>at({},D,{focusedItemId:T}))}),u=k.useCallback(()=>!!a.current&&a.current.contains(QL(oce(a.current))),[a]),d=k.useCallback(S=>n.focusedItemId===S&&u(),[n.focusedItemId,u]),p=S=>{const T=e.getItemMeta(S);return T&&(T.parentId==null||e.isItemExpanded(T.parentId))},h=(S,T)=>{const D=e.getItemDOMElement(T);D&&D.focus(),c(T),t.onItemFocus&&t.onItemFocus(S,T)},g=Fu((S,T)=>{p(T)&&h(S,T)}),y=Fu(()=>{if(n.focusedItemId!=null){if(e.getItemMeta(n.focusedItemId)){const S=e.getItemDOMElement(n.focusedItemId);S&&S.blur()}c(null)}}),b=S=>S===s;uce(e,"removeItem",({id:S})=>{n.focusedItemId===S&&h(null,s)});const x=S=>T=>{S.onFocus?.(T),!T.defaultMuiPrevented&&T.target===T.currentTarget&&h(T,s)};return{getRootProps:S=>({onFocus:x(S)}),publicAPI:{focusItem:g},instance:{isItemFocused:d,canItemBeTabbed:b,focusItem:g,removeFocusedItem:y}}};BC.getInitialState=()=>({focusedItemId:null});BC.params={onItemFocus:!0};function fce(e){return!!e&&e.length===1&&!!e.match(/\S/)}const XL=({instance:e,params:t,state:n})=>{const r=pne(),o=k.useRef({}),a=Fu(d=>{o.current=d(o.current)});k.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 s=(d,p)=>{const h=p.toLowerCase(),g=S=>{const T=Zg(e,S);return T===null?uh(e):T};let y=null,b=g(d);const x={};for(;y==null&&!x[b];)o.current[b]===h?y=b:(x[b]=!0,b=g(b));return y},c=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||dh(d.target,d.currentTarget))return;const h=d.ctrlKey||d.metaKey,g=d.key;switch(!0){case(g===" "&&c(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 g==="Enter":{Yl(e,xa)&&e.isItemEditable(p)&&!e.isItemBeingEdited(p)?e.setEditedItemId(p):u(p)?(e.toggleItemExpansion(d,p),d.preventDefault()):c(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 g==="ArrowDown":{const y=Zg(e,p);y&&(d.preventDefault(),e.focusItem(d,y),t.multiSelect&&d.shiftKey&&c(y)&&e.selectItemFromArrowNavigation(d,p,y));break}case g==="ArrowUp":{const y=jL(e,p);y&&(d.preventDefault(),e.focusItem(d,y),t.multiSelect&&d.shiftKey&&c(y)&&e.selectItemFromArrowNavigation(d,p,y));break}case(g==="ArrowRight"&&!r||g==="ArrowLeft"&&r):{if(h)return;if(e.isItemExpanded(p)){const y=Zg(e,p);y&&(e.focusItem(d,y),d.preventDefault())}else u(p)&&(e.toggleItemExpansion(d,p),d.preventDefault());break}case(g==="ArrowLeft"&&!r||g==="ArrowRight"&&r):{if(h)return;if(u(p)&&e.isItemExpanded(p))e.toggleItemExpansion(d,p),d.preventDefault();else{const y=e.getItemMeta(p).parentId;y&&(e.focusItem(d,y),d.preventDefault())}break}case g==="Home":{c(p)&&t.multiSelect&&h&&d.shiftKey?e.selectRangeFromStartToItem(d,p):e.focusItem(d,uh(e)),d.preventDefault();break}case g==="End":{c(p)&&t.multiSelect&&h&&d.shiftKey?e.selectRangeFromItemToEnd(d,p):e.focusItem(d,UL(e)),d.preventDefault();break}case g==="*":{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&&fce(g)):{const y=s(p,g);y!=null&&(e.focusItem(d,y),d.preventDefault());break}}}}}};XL.params={};const ZL=({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}}}});ZL.params={};const pce=[zh,pb,hb,BC,XL,ZL,xa],hce=["ownerState"];function mce({slots:e,slotProps:t,label:n,id:r,itemId:o,itemsToRender:a}){const s=e?.item??Lle,c=zl({elementType:s,externalSlotProps:t?.item,additionalProps:{itemId:o,id:r,label:n},ownerState:{itemId:o,label:n}}),u=Xi(c,hce),d=k.useMemo(()=>a?v.jsx(JL,{itemsToRender:a,slots:e,slotProps:t}):null,[a,e,t]);return v.jsx(s,at({},u,{children:d}))}function JL(e){const{itemsToRender:t,slots:n,slotProps:r}=e;return v.jsx(k.Fragment,{children:t.map(o=>v.jsx(mce,{slots:n,slotProps:r,label:o.label,id:o.id,itemId:o.itemId,itemsToRender:o.children},o.itemId))})}const gce=LL(),yce=e=>{const{classes:t}=e;return PL({root:["root"]},zle,t)},bce=Pn("ul",{name:"MuiRichTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"}),vce=k.forwardRef(function(e,t){const n=gce({props:e,name:"MuiRichTreeView"}),{getRootProps:r,contextValue:o,instance:a}=Xle({plugins:pce,rootRef:t,props:n}),{slots:s,slotProps:c}=n,u=yce(n),d=s?.root??bce,p=zl({elementType:d,externalSlotProps:c?.root,className:u.root,getSlotProps:r,ownerState:n});return v.jsx(ule,{value:o,children:v.jsx(d,at({},p,{children:v.jsx(JL,{slots:s,slotProps:c,itemsToRender:a.getItemsToRender()})}))})}),Ece=Dn(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"})),xce=Dn([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")]),Tce=Dn(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"})),Sce=Dn(v.jsx("path",{d:"M15 4v2h3v12h-3v2h5V4zM4 20h5v-2H6V6h3V4H4z"}));function eM({items:e,defaultExpandedItems:t,navigate:n}){return v.jsx(vce,{items:wce(e,n),defaultExpandedItems:t,slots:{item:kce}})}const Cce=Uee(ch);function _ce(e){const t=Aee({to:{opacity:e.in?1:0,transform:`translate3d(0,${e.in?0:20}px,0)`}});return v.jsx(Cce,{style:t,...e})}function Ace({item:e,...t}){const n=v.jsxs(Ule,{...t,sx:{display:"flex",alignItems:"center",color:e.error?"error.main":"grey.600"},children:[e.fileType==="directory"&&v.jsx(Ece,{})||e.fileType==="notebook"&&v.jsx(xce,{})||e.fileType==="model"&&v.jsx(Sce,{})||e.fileType=="database"&&v.jsx(Tce,{})||v.jsx(AL,{}),v.jsx(He,{variant:"body2",sx:{marginLeft:"5px"},color:e.error?"error.main":e.link?"primary.main":"grey.600",children:e.label})]});return e.error?v.jsx(nr,{title:e.error,placement:"right",children:n}):n}const kce=k.forwardRef(function(e,t){const{id:n,itemId:r,label:o,children:a,disabled:s,...c}=e,{getRootProps:u,getContentProps:d,getLabelProps:p,getIconContainerProps:h,getGroupTransitionProps:g,status:y,publicAPI:b}=yle({id:n,itemId:r,children:a,label:o,disabled:s,rootRef:t}),x=b.getItem(r);return y.selected=!1,y.focused=!1,v.jsx(MC,{itemId:r,children:v.jsxs(Ble,{...u(c),children:[v.jsxs(jle,{...d(),...x.link&&{onClick:S=>x.link(S)},sx:{pointerEvents:!x.selectable&&"none"},children:[v.jsx(Hle,{...h(),children:v.jsx(Mle,{status:y})}),v.jsx(Ace,{...p({item:x})})]}),a&&v.jsx(_ce,{...g()})]})})});function wce(e,t){const n=new Map;return e.map(r=>{let o=n;const a=r.path.split("/");a.forEach((s,c)=>{c===a.length-1?o.set(s,r):(o.has(s)||o.set(s,new Map),o=o.get(s))})}),tM(n,"",t)}function tM(e,t,n){const r=[];return e.forEach((o,a)=>{const s=a.endsWith(".malloy")&&"model"||a.endsWith(".malloynb")&&"notebook"||a.endsWith(".parquet")&&"database"||"unknown";if(s!=="unknown"){const c=o;r.push({id:t+a,label:a,fileType:s,link:s==="model"||s==="notebook"?u=>n(t+a,u):void 0,selectable:s==="model"||s==="notebook",error:"error"in c?c.error:void 0})}else t+=`${a}/`,r.push({id:t,label:a,fileType:"directory",selectable:!0,link:void 0,children:tM(o,t,n)})}),r}const Dce=new fb(new Vr),Rce=["notebooks/","models/"];function Ice({navigate:e}){const{projectName:t,packageName:n,versionId:r}=uo(),{data:o,isError:a,error:s,isSuccess:c}=Jr({queryKey:["models",t,n,r],queryFn:u=>Dce.listModels(t,n,r,u)});return v.jsx(Ar,{variant:"outlined",sx:{width:"100%"},children:v.jsxs(Ko,{children:[v.jsx(He,{variant:"overline",fontWeight:"bold",children:"Semantic Models"}),v.jsx(_r,{}),v.jsxs(It,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!c&&!a&&v.jsx(Zr,{text:"Fetching Models..."}),a&&v.jsx($r,{error:s,context:`${t} > ${n} > Models`}),c&&o.data.length>0&&v.jsx(eM,{items:o.data.sort((u,d)=>u.path.localeCompare(d.path)),navigate:e,defaultExpandedItems:Rce}),c&&o.data.length===0&&v.jsx(He,{variant:"body2",children:"No models found"})]})]})})}const Oce=new yL(new Vr),Nce=["notebooks/"];function Pce({navigate:e}){const{projectName:t,packageName:n,versionId:r}=uo(),{data:o,isError:a,error:s,isSuccess:c}=Jr({queryKey:["notebooks",t,n,r],queryFn:u=>Oce.listNotebooks(t,n,r,u)});return v.jsx(Ar,{variant:"outlined",sx:{width:"100%"},children:v.jsxs(Ko,{children:[v.jsx(He,{variant:"overline",fontWeight:"bold",children:"Notebooks"}),v.jsx(_r,{}),v.jsxs(It,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!c&&!a&&v.jsx(Zr,{text:"Fetching Notebooks..."}),a&&v.jsx($r,{error:s,context:`${t} > ${n} > Notebooks`}),c&&o.data.length>0&&v.jsx(eM,{items:o.data.sort((u,d)=>u.path.localeCompare(d.path)),defaultExpandedItems:Nce,navigate:e}),c&&o.data.length===0&&v.jsx(He,{variant:"body2",children:"No notebooks found"})]})]})})}const Lce=new Oie(new Vr);function Mce(){const{projectName:e,packageName:t,versionId:n}=uo(),{data:r,isError:o,isLoading:a,error:s}=Jr({queryKey:["schedules",e,t,n],queryFn:c=>Lce.listSchedules(e,t,n,c)});return a?v.jsx(Zr,{text:"Fetching Schedules..."}):o?v.jsx($r,{error:s,context:`${e} > ${t} > Schedules`}):r.data.length?v.jsx(Ar,{variant:"outlined",sx:{padding:"10px",width:"100%"},children:v.jsxs(Ko,{children:[v.jsx(He,{variant:"overline",fontWeight:"bold",children:"Scheduler"}),v.jsx(_r,{}),v.jsx(It,{sx:{mt:"10px",maxHeight:"200px",overflowY:"auto"},children:v.jsx(PS,{component:Zs,children:v.jsxs($p,{sx:{minWidth:300},size:"small",children:[v.jsx(Sy,{children:v.jsxs(ui,{children:[v.jsx(xn,{align:"left",children:"Resource"}),v.jsx(xn,{align:"left",children:"Schedule"}),v.jsx(xn,{align:"left",children:"Action"}),v.jsx(xn,{align:"left",children:"Connection"}),v.jsx(xn,{align:"left",children:"Last Run"}),v.jsx(xn,{align:"left",children:"Status"})]})}),v.jsx(Vp,{children:r.data.map(c=>v.jsxs(ui,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[v.jsx(xn,{align:"left",children:c.resource}),v.jsx(xn,{align:"left",children:c.schedule}),v.jsx(xn,{align:"left",children:c.action}),v.jsx(xn,{align:"left",children:c.connection}),v.jsx(xn,{align:"left",children:c.lastRunTime?new Date(c.lastRunTime).toLocaleString():"n/a"}),v.jsx(xn,{align:"left",children:c.lastRunStatus})]},c.resource))})]})})})]})}):null}const Fce="README.malloynb";function Bce({navigate:e}){return e||(e=t=>{window.location.href=t}),v.jsxs(Zn,{container:!0,spacing:2,columns:12,children:[v.jsx(Zn,{size:{xs:12,md:4},children:v.jsx($ie,{})}),v.jsx(Zn,{size:{xs:12,md:4},children:v.jsx(Pce,{navigate:e})}),v.jsx(Zn,{size:{xs:12,md:4},children:v.jsx(Ice,{navigate:e})}),v.jsx(Zn,{size:{xs:12,md:6},children:v.jsx(rse,{})}),v.jsx(Zn,{size:{xs:12,md:6},children:v.jsx(tse,{})}),v.jsx(Zn,{size:{xs:12,md:12},children:v.jsx(Mce,{})}),v.jsx(Zn,{size:{xs:12,md:12},children:v.jsx(_L,{notebookPath:Fce,hideEmbeddingIcons:!0})})]})}const jce=ke(xu)({display:"flex",flexDirection:"column",height:"100%"});function Uce({modelPath:e,sourceName:t,queryName:n,expandResult:r,hideResultIcon:o,expandEmbedding:a,hideEmbeddingIcon:s,noView:c,annotations:u}){const[d,p]=Fe.useState(r),[h,g]=Fe.useState(a),[y,b]=Fe.useState(),[x,S]=Fe.useState(),{packageName:T,projectName:D}=uo(),w=TL({modelPath:e,sourceName:t,queryName:n,optionalPackageName:T,optionalProjectName:D});return k.useEffect(()=>{lc(w,"typescript").then(R=>{b(R)})},[h,w]),k.useEffect(()=>{if(u&&u.length>0){const R=u.map(I=>`// ${I}`).join(`
|
|
353
|
+
`);lc(R,"typescript").then(I=>{S(I)})}},[u]),v.jsx(v.Fragment,{children:v.jsxs(jce,{variant:"outlined",sx:{padding:"0px 10px 0px 10px",borderRadius:"0px"},children:[v.jsxs(fn,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",width:"100%"},children:[v.jsx(He,{variant:"subtitle2",sx:{mt:"auto",mb:"auto"},children:`${c?"":"View >"} ${n}`}),v.jsxs(R0,{sx:{padding:"0px"},children:[!o&&v.jsx(nr,{title:d?"Hide Results":"Show Results",children:v.jsx($n,{size:"small",onClick:()=>{p(!d)},children:v.jsx(bie,{})})}),!s&&v.jsx(nr,{title:h?"Hide Sharing":"Show Sharing",children:v.jsx($n,{size:"small",onClick:()=>{g(!h)},children:v.jsx(Lh,{})})})]})]}),v.jsxs(Ma,{in:h,timeout:"auto",unmountOnExit:!0,children:[v.jsx(_r,{}),v.jsxs(fn,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:[v.jsx(He,{sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:v.jsx("div",{dangerouslySetInnerHTML:{__html:y}})}),v.jsx(nr,{title:"Copy Embeddable Code",children:v.jsx($n,{sx:{width:"24px",height:"24px"},onClick:()=>{navigator.clipboard.writeText(w)},children:v.jsx(ab,{})})})]})]}),v.jsxs(Ma,{in:d,timeout:"auto",unmountOnExit:!0,children:[v.jsx(_r,{sx:{mb:"4px"}}),x&&v.jsxs(v.Fragment,{children:[v.jsx(fn,{sx:{borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:v.jsx(He,{fontSize:"12px",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:v.jsx("div",{className:"content",dangerouslySetInnerHTML:{__html:x}})})}),v.jsx(_r,{sx:{mb:"4px"}})]}),v.jsx(Tu,{children:v.jsx(Mie,{modelPath:e,sourceName:t,queryName:n})})]})]})})}const Hce=new kC(new Vr),zce=Pn(I3)(({theme:e})=>({display:"flex",flexWrap:"wrap",gap:e.spacing(.5),borderBottom:`1px solid ${e.palette.divider}`,minHeight:36})),$ce=Pn(Hr)(({theme:e,selected:t})=>({minHeight:36,padding:e.spacing(.5,2),borderRadius:e.shape.borderRadius,background:t?e.palette.action.selected:"none",color:t?e.palette.primary.main:e.palette.text.primary,fontWeight:t?600:400,border:t?`1px solid ${e.palette.primary.main}`:"1px solid transparent",boxShadow:t?e.shadows[1]:"none",textTransform:"uppercase","&:hover":{background:e.palette.action.hover,border:`1px solid ${e.palette.primary.light}`}}));function nM({sourceAndPaths:e,existingQuery:t,existingSourceName:n,onQueryChange:r,onSourceChange:o}){const[a,s]=Fe.useState(n?e.findIndex(d=>d.sourceInfo.name===n):0),[c,u]=Fe.useState(t||xp());return Fe.useEffect(()=>{o&&o(a)},[a,o]),v.jsxs(Ar,{variant:"outlined",children:[v.jsx(Ko,{children:v.jsx(Zw,{sx:{flexDirection:"row",justifyContent:"space-between"},children:e.length>0&&v.jsx(zce,{children:e.map((d,p)=>v.jsx($ce,{selected:a===p,onClick:()=>s(p),children:d.sourceInfo.name||`Source ${p+1}`},d.sourceInfo.name||p))})})}),v.jsx(AC,{children:v.jsxs(Zw,{spacing:2,component:"section",children:[v.jsx(rM,{sourceAndPath:e[a],existingQuery:c,onChange:d=>{u(d),r&&r(d)}}),v.jsx(I3,{height:"5px"})]})})]})}function xp(){return{query:void 0,malloyQuery:void 0,malloyResult:void 0}}function Vce({sourceAndPath:e,onChange:t,existingQuery:n,explorerComponents:r,QueryBuilder:o}){const[a,s]=Fe.useState(n||xp()),[c,u]=Fe.useState([]),{MalloyExplorerProvider:d,QueryPanel:p,ResizableCollapsiblePanel:h,ResultPanel:g,SourcePanel:y}=r;Fe.useEffect(()=>{t&&t(a)},[t,a]);const{projectName:b,packageName:x,versionId:S}=uo(),T=Nie({mutationFn:(I,O)=>{const F=new o.ASTQuery({source:e.sourceInfo,query:a?.malloyQuery}).toMalloy();return s({...a,query:F}),Hce.executeQuery(b,x,e.modelPath,F,void 0,void 0,S,O)},onSuccess:I=>{if(I){const O=JSON.parse(I.data.result);s({...a,malloyResult:O})}}}),[D,w]=Fe.useState(e.sourceInfo.name);Fe.useEffect(()=>{D!==e.sourceInfo.name&&(w(e.sourceInfo.name),s(xp()))},[e,D]);const R=Fe.useCallback(I=>{s({...a,malloyQuery:I,malloyResult:void 0})},[a]);return D!==e.sourceInfo.name?v.jsx("div",{children:"Loading..."}):v.jsx(mL,{children:v.jsx(d,{source:e.sourceInfo,query:a?.malloyQuery,onQueryChange:R,focusedNestViewPath:c,onFocusedNestViewPathChange:u,onDrill:I=>{console.info(I)},children:v.jsxs("div",{style:{display:"flex",height:"100%",overflowY:"auto"},children:[v.jsx(h,{isInitiallyExpanded:!0,initialWidth:180,minWidth:180,icon:"database",title:e.sourceInfo.name,children:v.jsx(y,{onRefresh:()=>s(xp())})}),v.jsx(h,{isInitiallyExpanded:!0,initialWidth:280,minWidth:280,icon:"filterSliders",title:"Query",children:v.jsx(p,{runQuery:()=>{T.mutate()}})}),v.jsx(g,{source:e.sourceInfo,draftQuery:a?.malloyQuery,setDraftQuery:I=>s({...a,malloyQuery:I}),submittedQuery:a?.malloyQuery?{executionState:T.isPending?"running":"finished",response:{result:a.malloyResult},query:a.malloyQuery,queryResolutionStartMillis:Date.now(),onCancel:T.reset}:void 0,options:{showRawQuery:!0}})]})})},e.sourceInfo.name)}function rM(e){const[t,n]=k.useState(null),[r,o]=k.useState(null),[a,s]=k.useState(!0);return k.useEffect(()=>{let c=!0;return Promise.all([G(()=>import("./index-9VijFY1i.js"),__vite__mapDeps([93,94,95])),G(()=>import("./index-DJXyqbuQ.js").then(u=>u.i),[])]).then(([u,d])=>{c&&(n(u),o(d),s(!1))}).catch(u=>{console.error("Failed to load Malloy components:",u),c&&s(!1)}),()=>{c=!1}},[]),a||!t||!r?v.jsx(yie,{children:v.jsx(mL,{children:v.jsx("div",{style:{alignItems:"center",justifyContent:"center",height:"200px",color:"#666"},children:"Loading explorer..."})})}):v.jsx(Vce,{...e,explorerComponents:t,QueryBuilder:r})}const Gce=new fb(new Vr);function oM(e,t){const{projectName:n,packageName:r,versionId:o}=uo(),a=t||o;return Jr({queryKey:["package",n,r,e,a],queryFn:async s=>(await Gce.getModel(n,r,e,a,s)).data})}function qce({modelPath:e,versionId:t,expandResults:n,hideResultIcons:r,expandEmbeddings:o,hideEmbeddingIcons:a,onChange:s}){const[c,u]=Fe.useState(0),{data:d,isError:p,isLoading:h,error:g}=oM(e,t);return h?v.jsx(Zr,{text:"Fetching Model..."}):p?(console.log("error",g),v.jsx($r,{error:g,context:`ModelExplorer > ${e}`})):v.jsxs(fn,{spacing:2,component:"section",children:[Array.isArray(d.sourceInfos)&&d.sourceInfos.length>0&&v.jsx(fn,{sx:{flexDirection:"row",justifyContent:"flex-start"},children:v.jsx(WK,{value:c,onChange:(y,b)=>u(b),variant:"scrollable",scrollButtons:"auto",sx:{borderBottom:1,borderColor:"divider",minHeight:36},children:d.sourceInfos.map((y,b)=>{let x;try{x=JSON.parse(y)}catch{x={name:String(b)}}return v.jsx(rK,{label:x.name||`Source ${b+1}`,sx:{minHeight:36}},x.name||b)})})}),Array.isArray(d.sourceInfos)&&d.sourceInfos.length>0&&v.jsx(rM,{sourceAndPath:{modelPath:e,sourceInfo:JSON.parse(d.sourceInfos[c])},onChange:s}),d.queries?.length>0&&v.jsxs(Ar,{variant:"outlined",sx:{padding:"0px 10px 0px 10px"},children:[v.jsx(Ko,{sx:{p:"10px"},children:v.jsx(He,{variant:"subtitle1",children:"Named Queries"})}),v.jsx(fn,{spacing:1,component:"section",children:d.queries.map(y=>v.jsx(Uce,{modelPath:e,queryName:y.name,expandResult:n,hideResultIcon:r,expandEmbedding:o,hideEmbeddingIcon:a,noView:!0,annotations:y.annotations},y.name))}),v.jsx(It,{height:"10px"})]}),v.jsx(It,{height:"5px"})]})}function Wce({modelPath:e,versionId:t,expandResults:n,hideResultIcons:r,expandEmbeddings:o,hideEmbeddingIcons:a,onChange:s}){const[c,u]=Fe.useState(!1),[d,p]=Fe.useState(),{isError:h,isLoading:g,error:y}=oM(e,t),b=Yce(e);return k.useEffect(()=>{lc(b,"typescript").then(x=>{p(x)})},[c,b]),g?v.jsx(Zr,{text:"Fetching Model..."}):h?(console.log("error",y),v.jsx($r,{error:y,context:`Model > ${e}`})):v.jsxs(Ar,{variant:"outlined",children:[v.jsxs(Ko,{children:[v.jsx(fn,{sx:{flexDirection:"row",justifyContent:"flex-end"},children:!a&&v.jsx(R0,{sx:{padding:"0px 10px 0px 10px",mb:"auto",mt:"auto"},children:v.jsx(nr,{title:c?"Hide Embedding":"View Embedding",children:v.jsx($n,{size:"small",onClick:()=>{u(!c)},children:v.jsx(Lh,{})})})})}),v.jsxs(Ma,{in:c,timeout:"auto",unmountOnExit:!0,children:[v.jsx(_r,{}),v.jsxs(fn,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:[v.jsx(He,{sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:v.jsx("div",{dangerouslySetInnerHTML:{__html:d}})}),v.jsx(nr,{title:"Copy Embeddable Code",children:v.jsx($n,{sx:{width:"24px",height:"24px"},onClick:()=>{navigator.clipboard.writeText(b)},children:v.jsx(ab,{})})})]})]}),v.jsx(_r,{})]}),v.jsx(qce,{modelPath:e,versionId:t,expandResults:n,hideResultIcons:r,expandEmbeddings:o,hideEmbeddingIcons:a,onChange:s})]})}function Yce(e){return`<Model
|
|
354
|
+
modelPath="${e}"
|
|
355
|
+
accessToken={accessToken}
|
|
356
|
+
/>`}const Kce=Dn(v.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),fu=dS({createStyledComponent:Pn("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>pd({props:e,name:"MuiStack"})});function bd(){const e=HT();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")}}class Tp{constructor(t,n,r){this.workbookData=r,this.workbookStorage=t,this.packageContext=n,this.workbookData?this.isSaved=!0:(this.workbookData={models:[],cells:[],workbookPath:void 0},this.isSaved=!1)}isSaved;workbookStorage;packageContext;getWorkbookData(){return this.workbookData}getWorkbookPath(){return this.workbookData.workbookPath}async renameWorkbook(t){if(this.workbookData.workbookPath.path!==t)try{await this.workbookStorage.moveWorkbook(this.packageContext,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.packageContext,this.workbookData.workbookPath,JSON.stringify(this.workbookData)),this.isSaved=!0}return new Tp(this.workbookStorage,this.packageContext,this.workbookData)}toMalloyWorkbook(){return this.workbookData.cells.map(t=>t.isMarkdown?`>>>markdown
|
|
357
|
+
`+t.value:`>>>malloy
|
|
358
|
+
import {${t.sourceName}}" from '${t.modelPath}'"
|
|
359
|
+
`+t.value+`
|
|
360
|
+
`).join(`
|
|
361
|
+
`)}static newWorkbook(t,n){return new Tp(t,n,void 0)}static async loadWorkbook(t,n,r){let o;console.log("loadWorkbook",r);try{const a=await t.getWorkbook(n,r);a&&(o=JSON.parse(a))}catch{o={models:[],cells:[],workbookPath:r}}return new Tp(t,n,o)}}const aM=k.createContext(void 0),Qce=({server:e=`${window.location.protocol}//${window.location.host}/api/v0`,getAccessToken:t,children:n})=>{const r={server:e,getAccessToken:t};return v.jsx(aM.Provider,{value:r,children:n})},jC=()=>{const e=k.useContext(aM);if(e===void 0)throw new Error("useServer must be used within a ServerProvider");return e},Sg=Dn(v.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),nO=Dn(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"}));function dn(){return dn=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},dn.apply(null,arguments)}function Ky(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 Zi(){return Zi=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},Zi.apply(null,arguments)}function Xce(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 Zce=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Jce=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,eue={};function rO(e,t){return(eue.jsx?Jce:Zce).test(e)}var pu={},DE,oO;function tue(){if(oO)return DE;oO=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,c=/^\s+|\s+$/g,u=`
|
|
362
|
+
`,d="/",p="*",h="",g="comment",y="declaration";DE=function(x,S){if(typeof x!="string")throw new TypeError("First argument must be a string");if(!x)return[];S=S||{};var T=1,D=1;function w(z){var q=z.match(t);q&&(T+=q.length);var Y=z.lastIndexOf(u);D=~Y?z.length-Y:D+z.length}function R(){var z={line:T,column:D};return function(q){return q.position=new I(z),j(),q}}function I(z){this.start=z,this.end={line:T,column:D},this.source=S.source}I.prototype.content=x;function O(z){var q=new Error(S.source+":"+T+":"+D+": "+z);if(q.reason=z,q.filename=S.source,q.line=T,q.column=D,q.source=x,!S.silent)throw q}function F(z){var q=z.exec(x);if(q){var Y=q[0];return w(Y),x=x.slice(Y.length),q}}function j(){F(n)}function H(z){var q;for(z=z||[];q=C();)q!==!1&&z.push(q);return z}function C(){var z=R();if(!(d!=x.charAt(0)||p!=x.charAt(1))){for(var q=2;h!=x.charAt(q)&&(p!=x.charAt(q)||d!=x.charAt(q+1));)++q;if(q+=2,h===x.charAt(q-1))return O("End of comment missing");var Y=x.slice(2,q-2);return D+=2,w(Y),x=x.slice(q),D+=2,z({type:g,comment:Y})}}function M(){var z=R(),q=F(r);if(q){if(C(),!F(o))return O("property missing ':'");var Y=F(a),B=z({type:y,property:b(q[0].replace(e,h)),value:Y?b(Y[0].replace(e,h)):h});return F(s),B}}function $(){var z=[];H(z);for(var q;q=M();)q!==!1&&(z.push(q),H(z));return z}return j(),$()};function b(x){return x?x.replace(c,h):h}return DE}var aO;function nue(){if(aO)return pu;aO=1;var e=pu&&pu.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(pu,"__esModule",{value:!0}),pu.default=n;var t=e(tue());function n(r,o){var a=null;if(!r||typeof r!="string")return a;var s=(0,t.default)(r),c=typeof o=="function";return s.forEach(function(u){if(u.type==="declaration"){var d=u.property,p=u.value;c?o(d,p,u):p&&(a=a||{},a[d]=p)}}),a}return pu}var $f={},iO;function rue(){if(iO)return $f;iO=1,Object.defineProperty($f,"__esModule",{value:!0}),$f.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)},s=function(d,p){return p.toUpperCase()},c=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,c):d=d.replace(r,c),d.replace(t,s))};return $f.camelCase=u,$f}var Vf,sO;function oue(){if(sO)return Vf;sO=1;var e=Vf&&Vf.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(nue()),n=rue();function r(o,a){var s={};return!o||typeof o!="string"||(0,t.default)(o,function(c,u){c&&u&&(s[(0,n.camelCase)(c,a)]=u)}),s}return r.default=r,Vf=r,Vf}var aue=oue();const iue=K0(aue),mb=iM("end"),Ei=iM("start");function iM(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 sue(e){const t=Ei(e),n=mb(e);if(t&&n)return{start:t,end:n}}function Sp(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?lO(e.position):"start"in e||"end"in e?lO(e):"line"in e||"column"in e?gT(e):""}function gT(e){return cO(e&&e.line)+":"+cO(e&&e.column)}function lO(e){return gT(e&&e.start)+"-"+gT(e&&e.end)}function cO(e){return e&&typeof e=="number"?e:1}class eo extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let o="",a={},s=!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&&(s=!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 c=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=c?c.column:void 0,this.fatal=void 0,this.file,this.message=o,this.line=c?c.line:void 0,this.name=Sp(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=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}eo.prototype.file="";eo.prototype.name="";eo.prototype.reason="";eo.prototype.message="";eo.prototype.stack="";eo.prototype.column=void 0;eo.prototype.line=void 0;eo.prototype.ancestors=void 0;eo.prototype.cause=void 0;eo.prototype.fatal=void 0;eo.prototype.place=void 0;eo.prototype.ruleId=void 0;eo.prototype.source=void 0;const UC={}.hasOwnProperty,lue=new Map,cue=/[A-Z]/g,uue=new Set(["table","tbody","thead","tfoot","tr"]),due=new Set(["td","th"]),sM="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function fue(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=Eue(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=vue(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"?os:gd,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=lM(o,e,void 0);return a&&typeof a!="string"?a:o.create(e,o.Fragment,{children:a||void 0},void 0)}function lM(e,t,n){if(t.type==="element")return pue(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return hue(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return gue(e,t,n);if(t.type==="mdxjsEsm")return mue(e,t);if(t.type==="root")return yue(e,t,n);if(t.type==="text")return bue(e,t)}function pue(e,t,n){const r=e.schema;let o=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(o=os,e.schema=o),e.ancestors.push(t);const a=uM(e,t.tagName,!1),s=xue(e,t);let c=zC(e,t);return uue.has(t.tagName)&&(c=c.filter(function(u){return typeof u=="string"?!Uh(u):!0})),cM(e,s,a,t),HC(s,c),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function hue(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)}fh(e,t.position)}function mue(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);fh(e,t.position)}function gue(e,t,n){const r=e.schema;let o=r;t.name==="svg"&&r.space==="html"&&(o=os,e.schema=o),e.ancestors.push(t);const a=t.name===null?e.Fragment:uM(e,t.name,!0),s=Tue(e,t),c=zC(e,t);return cM(e,s,a,t),HC(s,c),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function yue(e,t,n){const r={};return HC(r,zC(e,t)),e.create(t,e.Fragment,r,n)}function bue(e,t){return t.value}function cM(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function HC(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function vue(e,t,n){return r;function r(o,a,s,c){const u=Array.isArray(s.children)?n:t;return c?u(a,s,c):u(a,s)}}function Eue(e,t){return n;function n(r,o,a,s){const c=Array.isArray(a.children),u=Ei(r);return t(o,a,s,c,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function xue(e,t){const n={};let r,o;for(o in t.properties)if(o!=="children"&&UC.call(t.properties,o)){const a=Sue(e,o,t.properties[o]);if(a){const[s,c]=a;e.tableCellAlignToStyle&&s==="align"&&typeof c=="string"&&due.has(t.tagName)?r=c:n[s]=c}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Tue(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 s=a.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else fh(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 s=r.value.data.estree.body[0];s.type,a=e.evaluater.evaluateExpression(s.expression)}else fh(e,t.position);else a=r.value===null?!0:r.value;n[o]=a}return n}function zC(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:lue;for(;++r<t.children.length;){const a=t.children[r];let s;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;s=u+"-"+d,o.set(u,d+1)}}const c=lM(e,a,s);c!==void 0&&n.push(c)}return n}function Sue(e,t,n){const r=jh(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?lb(n):cb(n)),r.property==="style"){let o=typeof n=="object"?n:Cue(e,String(n));return e.stylePropertyNameCase==="css"&&(o=_ue(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&r.space?_oe[r.property]||r.property:r.attribute,n]}}function Cue(e,t){try{return iue(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,o=new eo("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=sM+"#cannot-parse-style-attribute",o}}function uM(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const o=t.split(".");let a=-1,s;for(;++a<o.length;){const c=rO(o[a])?{type:"Identifier",name:o[a]}:{type:"Literal",value:o[a]};s=s?{type:"MemberExpression",object:s,property:c,computed:!!(a&&c.type==="Literal"),optional:!1}:c}r=s}else r=rO(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const o=r.value;return UC.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(r);fh(e)}function fh(e,t){const n=new eo("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=sM+"#cannot-handle-mdx-estrees-without-createevaluater",n}function _ue(e){const t={};let n;for(n in e)UC.call(e,n)&&(t[Aue(n)]=e[n]);return t}function Aue(e){let t=e.replace(cue,kue);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function kue(e){return"-"+e.toLowerCase()}const RE={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"]},wue={};function $C(e,t){const n=wue,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(Due(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 uO(e.children,t,n)}return Array.isArray(e)?uO(e,t,n):""}function uO(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=dM(e[o],t,n);return r.join("")}function Due(e){return!!(e&&typeof e=="object")}const dO=document.createElement("i");function VC(e){const t="&"+e+";";dO.innerHTML=t;const n=dO.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function qo(e,t,n,r){const o=e.length;let a=0,s;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a<r.length;)s=r.slice(a,a+1e4),s.unshift(t,0),e.splice(...s),a+=1e4,t+=1e4}function ga(e,t){return e.length>0?(qo(e,e.length,0,t),e):t}const fO={}.hasOwnProperty;function fM(e){const t={};let n=-1;for(;++n<e.length;)Rue(t,e[n]);return t}function Rue(e,t){let n;for(n in t){const r=(fO.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){fO.call(r,a)||(r[a]=[]);const s=o[a];Iue(r[a],Array.isArray(s)?s:s?[s]:[])}}}function Iue(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);qo(e,0,0,r)}function pM(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 Ba(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const io=il(/[A-Za-z]/),Xr=il(/[\dA-Za-z]/),Oue=il(/[#-'*+\--9=?A-Z^-~]/);function Qy(e){return e!==null&&(e<32||e===127)}const yT=il(/\d/),Nue=il(/[\dA-Fa-f]/),Pue=il(/[!-/:-@[-`{-~]/);function vt(e){return e!==null&&e<-2}function wn(e){return e!==null&&(e<0||e===32)}function Qt(e){return e===-2||e===-1||e===32}const gb=il(/\p{P}|\p{S}/u),cc=il(/\s/);function il(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function vd(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const a=e.charCodeAt(n);let s="";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))||(s=String.fromCharCode(a));else if(a>55295&&a<57344){const c=e.charCodeAt(n+1);a<56320&&c>56319&&c<57344?(s=String.fromCharCode(a,c),o=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+o+1,s=""),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 s;function s(u){return Qt(u)?(e.enter(n),c(u)):t(u)}function c(u){return Qt(u)&&a++<o?(e.consume(u),c):(e.exit(n),t(u))}}const Lue={tokenize:Mue};function Mue(e){const t=e.attempt(this.parser.constructs.contentInitial,r,o);let n;return t;function r(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),nn(e,t,"linePrefix")}function o(c){return e.enter("paragraph"),a(c)}function a(c){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,s(c)}function s(c){if(c===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(c);return}return vt(c)?(e.consume(c),e.exit("chunkText"),a):(e.consume(c),s)}}const Fue={tokenize:Bue},pO={tokenize:jue};function Bue(e){const t=this,n=[];let r=0,o,a,s;return c;function c(w){if(r<n.length){const R=n[r];return t.containerState=R[1],e.attempt(R[0].continuation,u,d)(w)}return d(w)}function u(w){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&D();const R=t.events.length;let I=R,O;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){O=t.events[I][1].end;break}T(r);let F=R;for(;F<t.events.length;)t.events[F][1].end={...O},F++;return qo(t.events,I+1,0,t.events.slice(R)),t.events.length=F,d(w)}return c(w)}function d(w){if(r===n.length){if(!o)return g(w);if(o.currentConstruct&&o.currentConstruct.concrete)return b(w);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(pO,p,h)(w)}function p(w){return o&&D(),T(r),g(w)}function h(w){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,b(w)}function g(w){return t.containerState={},e.attempt(pO,y,b)(w)}function y(w){return r++,n.push([t.currentConstruct,t.containerState]),g(w)}function b(w){if(w===null){o&&D(),T(0),e.consume(w);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:a}),x(w)}function x(w){if(w===null){S(e.exit("chunkFlow"),!0),T(0),e.consume(w);return}return vt(w)?(e.consume(w),S(e.exit("chunkFlow")),r=0,t.interrupt=void 0,c):(e.consume(w),x)}function S(w,R){const I=t.sliceStream(w);if(R&&I.push(null),w.previous=a,a&&(a.next=w),a=w,o.defineSkip(w.start),o.write(I),t.parser.lazy[w.start.line]){let O=o.events.length;for(;O--;)if(o.events[O][1].start.offset<s&&(!o.events[O][1].end||o.events[O][1].end.offset>s))return;const F=t.events.length;let j=F,H,C;for(;j--;)if(t.events[j][0]==="exit"&&t.events[j][1].type==="chunkFlow"){if(H){C=t.events[j][1].end;break}H=!0}for(T(r),O=F;O<t.events.length;)t.events[O][1].end={...C},O++;qo(t.events,j+1,0,t.events.slice(F)),t.events.length=O}}function T(w){let R=n.length;for(;R-- >w;){const I=n[R];t.containerState=I[1],I[0].exit.call(t,e)}n.length=w}function D(){o.write([null]),a=void 0,o=void 0,t.containerState._closeFlow=void 0}}function jue(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 Zu(e){if(e===null||wn(e)||cc(e))return 1;if(gb(e))return 2}function yb(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 bT={name:"attention",resolveAll:Uue,tokenize:Hue};function Uue(e,t){let n=-1,r,o,a,s,c,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},g={...e[n][1].start};hO(h,-u),hO(g,u),s={type:u>1?"strongSequence":"emphasisSequence",start:h,end:{...e[r][1].end}},c={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:g},a={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},o={type:u>1?"strong":"emphasis",start:{...s.start},end:{...c.end}},e[r][1].end={...s.start},e[n][1].start={...c.end},d=[],e[r][1].end.offset-e[r][1].start.offset&&(d=ga(d,[["enter",e[r][1],t],["exit",e[r][1],t]])),d=ga(d,[["enter",o,t],["enter",s,t],["exit",s,t],["enter",a,t]]),d=ga(d,yb(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),d=ga(d,[["exit",a,t],["enter",c,t],["exit",c,t],["exit",o,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,d=ga(d,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,qo(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 Hue(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=Zu(r);let a;return s;function s(u){return a=u,e.enter("attentionSequence"),c(u)}function c(u){if(u===a)return e.consume(u),c;const d=e.exit("attentionSequence"),p=Zu(u),h=!p||p===2&&o||n.includes(u),g=!o||o===2&&p||n.includes(r);return d._open=!!(a===42?h:h&&(o||!g)),d._close=!!(a===42?g:g&&(p||!h)),t(u)}}function hO(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const zue={name:"autolink",tokenize:$ue};function $ue(e,t,n){let r=0;return o;function o(y){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(y){return io(y)?(e.consume(y),s):y===64?n(y):d(y)}function s(y){return y===43||y===45||y===46||Xr(y)?(r=1,c(y)):d(y)}function c(y){return y===58?(e.consume(y),r=0,u):(y===43||y===45||y===46||Xr(y))&&r++<32?(e.consume(y),c):(r=0,d(y))}function u(y){return y===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):y===null||y===32||y===60||Qy(y)?n(y):(e.consume(y),u)}function d(y){return y===64?(e.consume(y),p):Oue(y)?(e.consume(y),d):n(y)}function p(y){return Xr(y)?h(y):n(y)}function h(y){return y===46?(e.consume(y),r=0,p):y===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):g(y)}function g(y){if((y===45||Xr(y))&&r++<63){const b=y===45?g:h;return e.consume(y),b}return n(y)}}const $h={partial:!0,tokenize:Vue};function Vue(e,t,n){return r;function r(a){return Qt(a)?nn(e,o,"linePrefix")(a):o(a)}function o(a){return a===null||vt(a)?t(a):n(a)}}const hM={continuation:{tokenize:que},exit:Wue,name:"blockQuote",tokenize:Gue};function Gue(e,t,n){const r=this;return o;function o(s){if(s===62){const c=r.containerState;return c.open||(e.enter("blockQuote",{_container:!0}),c.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),a}return n(s)}function a(s){return Qt(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function que(e,t,n){const r=this;return o;function o(s){return Qt(s)?nn(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):a(s)}function a(s){return e.attempt(hM,t,n)(s)}}function Wue(e){e.exit("blockQuote")}const mM={name:"characterEscape",tokenize:Yue};function Yue(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 Pue(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const gM={name:"characterReference",tokenize:Kue};function Kue(e,t,n){const r=this;let o=0,a,s;return c;function c(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,s=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,s=Nue,p):(e.enter("characterReferenceValue"),a=7,s=yT,p(h))}function p(h){if(h===59&&o){const g=e.exit("characterReferenceValue");return s===Xr&&!VC(r.sliceSerialize(g))?n(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(h)&&o++<a?(e.consume(h),p):n(h)}}const mO={partial:!0,tokenize:Xue},gO={concrete:!0,name:"codeFenced",tokenize:Que};function Que(e,t,n){const r=this,o={partial:!0,tokenize:I};let a=0,s=0,c;return u;function u(O){return d(O)}function d(O){const F=r.events[r.events.length-1];return a=F&&F[1].type==="linePrefix"?F[2].sliceSerialize(F[1],!0).length:0,c=O,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(O)}function p(O){return O===c?(s++,e.consume(O),p):s<3?n(O):(e.exit("codeFencedFenceSequence"),Qt(O)?nn(e,h,"whitespace")(O):h(O))}function h(O){return O===null||vt(O)?(e.exit("codeFencedFence"),r.interrupt?t(O):e.check(mO,x,R)(O)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),g(O))}function g(O){return O===null||vt(O)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(O)):Qt(O)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),nn(e,y,"whitespace")(O)):O===96&&O===c?n(O):(e.consume(O),g)}function y(O){return O===null||vt(O)?h(O):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(O))}function b(O){return O===null||vt(O)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(O)):O===96&&O===c?n(O):(e.consume(O),b)}function x(O){return e.attempt(o,R,S)(O)}function S(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),T}function T(O){return a>0&&Qt(O)?nn(e,D,"linePrefix",a+1)(O):D(O)}function D(O){return O===null||vt(O)?e.check(mO,x,R)(O):(e.enter("codeFlowValue"),w(O))}function w(O){return O===null||vt(O)?(e.exit("codeFlowValue"),D(O)):(e.consume(O),w)}function R(O){return e.exit("codeFenced"),t(O)}function I(O,F,j){let H=0;return C;function C(Y){return O.enter("lineEnding"),O.consume(Y),O.exit("lineEnding"),M}function M(Y){return O.enter("codeFencedFence"),Qt(Y)?nn(O,$,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Y):$(Y)}function $(Y){return Y===c?(O.enter("codeFencedFenceSequence"),z(Y)):j(Y)}function z(Y){return Y===c?(H++,O.consume(Y),z):H>=s?(O.exit("codeFencedFenceSequence"),Qt(Y)?nn(O,q,"whitespace")(Y):q(Y)):j(Y)}function q(Y){return Y===null||vt(Y)?(O.exit("codeFencedFence"),F(Y)):j(Y)}}}function Xue(e,t,n){const r=this;return o;function o(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const IE={name:"codeIndented",tokenize:Jue},Zue={partial:!0,tokenize:ede};function Jue(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?s(d):n(d)}function s(d){return d===null?u(d):vt(d)?e.attempt(Zue,s,u)(d):(e.enter("codeFlowValue"),c(d))}function c(d){return d===null||vt(d)?(e.exit("codeFlowValue"),s(d)):(e.consume(d),c)}function u(d){return e.exit("codeIndented"),t(d)}}function ede(e,t,n){const r=this;return o;function o(s){return r.parser.lazy[r.now().line]?n(s):vt(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):nn(e,a,"linePrefix",5)(s)}function a(s){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(s):vt(s)?o(s):n(s)}}const tde={name:"codeText",previous:rde,resolve:nde,tokenize:ode};function nde(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 rde(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ode(e,t,n){let r=0,o,a;return s;function s(h){return e.enter("codeText"),e.enter("codeTextSequence"),c(h)}function c(h){return h===96?(e.consume(h),r++,c):(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)):vt(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||vt(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 ade{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&&Gf(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),Gf(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Gf(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);Gf(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Gf(this.left,n.reverse())}}}function Gf(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 yM(e){const t={};let n=-1,r,o,a,s,c,u,d;const p=new ade(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,ide(p,n)),n=t[n],d=!0);else if(r[1]._container){for(a=n,o=void 0;a--;)if(s=p.get(a),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(o&&(p.get(o)[1].type="lineEndingBlank"),s[1].type="lineEnding",o=a);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;o&&(r[1].end={...p.get(o)[1].start},c=p.slice(o,n),c.unshift(r),p.splice(o,n-o+1,c))}}return qo(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!d}function ide(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const a=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const c=s.events,u=[],d={};let p,h,g=-1,y=n,b=0,x=0;const S=[x];for(;y;){for(;e.get(++o)[1]!==y;);a.push(o),y._tokenizer||(p=r.sliceStream(y),y.next||p.push(null),h&&s.defineSkip(y.start),y._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(p),y._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),h=y,y=y.next}for(y=n;++g<c.length;)c[g][0]==="exit"&&c[g-1][0]==="enter"&&c[g][1].type===c[g-1][1].type&&c[g][1].start.line!==c[g][1].end.line&&(x=g+1,S.push(x),y._tokenizer=void 0,y.previous=void 0,y=y.next);for(s.events=[],y?(y._tokenizer=void 0,y.previous=void 0):S.pop(),g=S.length;g--;){const T=c.slice(S[g],S[g+1]),D=a.pop();u.push([D,D+T.length-1]),e.splice(D,2,T)}for(u.reverse(),g=-1;++g<u.length;)d[b+u[g][0]]=b+u[g][1],b+=u[g][1]-u[g][0]-1;return d}const sde={resolve:cde,tokenize:ude},lde={partial:!0,tokenize:dde};function cde(e){return yM(e),e}function ude(e,t){let n;return r;function r(c){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),o(c)}function o(c){return c===null?a(c):vt(c)?e.check(lde,s,a)(c):(e.consume(c),o)}function a(c){return e.exit("chunkContent"),e.exit("content"),t(c)}function s(c){return e.consume(c),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,o}}function dde(e,t,n){const r=this;return o;function o(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),nn(e,a,"linePrefix")}function a(s){if(s===null||vt(s))return n(s);const c=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function bM(e,t,n,r,o,a,s,c,u){const d=u||Number.POSITIVE_INFINITY;let p=0;return h;function h(T){return T===60?(e.enter(r),e.enter(o),e.enter(a),e.consume(T),e.exit(a),g):T===null||T===32||T===41||Qy(T)?n(T):(e.enter(r),e.enter(s),e.enter(c),e.enter("chunkString",{contentType:"string"}),x(T))}function g(T){return T===62?(e.enter(a),e.consume(T),e.exit(a),e.exit(o),e.exit(r),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),y(T))}function y(T){return T===62?(e.exit("chunkString"),e.exit(c),g(T)):T===null||T===60||vt(T)?n(T):(e.consume(T),T===92?b:y)}function b(T){return T===60||T===62||T===92?(e.consume(T),y):y(T)}function x(T){return!p&&(T===null||T===41||wn(T))?(e.exit("chunkString"),e.exit(c),e.exit(s),e.exit(r),t(T)):p<d&&T===40?(e.consume(T),p++,x):T===41?(e.consume(T),p--,x):T===null||T===32||T===40||Qy(T)?n(T):(e.consume(T),T===92?S:x)}function S(T){return T===40||T===41||T===92?(e.consume(T),x):x(T)}}function vM(e,t,n,r,o,a){const s=this;let c=0,u;return d;function d(y){return e.enter(r),e.enter(o),e.consume(y),e.exit(o),e.enter(a),p}function p(y){return c>999||y===null||y===91||y===93&&!u||y===94&&!c&&"_hiddenFootnoteSupport"in s.parser.constructs?n(y):y===93?(e.exit(a),e.enter(o),e.consume(y),e.exit(o),e.exit(r),t):vt(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===null||y===91||y===93||vt(y)||c++>999?(e.exit("chunkString"),p(y)):(e.consume(y),u||(u=!Qt(y)),y===92?g:h)}function g(y){return y===91||y===92||y===93?(e.consume(y),c++,h):h(y)}}function EM(e,t,n,r,o,a){let s;return c;function c(g){return g===34||g===39||g===40?(e.enter(r),e.enter(o),e.consume(g),e.exit(o),s=g===40?41:g,u):n(g)}function u(g){return g===s?(e.enter(o),e.consume(g),e.exit(o),e.exit(r),t):(e.enter(a),d(g))}function d(g){return g===s?(e.exit(a),u(s)):g===null?n(g):vt(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),nn(e,d,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(g))}function p(g){return g===s||g===null||vt(g)?(e.exit("chunkString"),d(g)):(e.consume(g),g===92?h:p)}function h(g){return g===s||g===92?(e.consume(g),p):p(g)}}function Cp(e,t){let n;return r;function r(o){return vt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):Qt(o)?nn(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}const fde={name:"definition",tokenize:hde},pde={partial:!0,tokenize:mde};function hde(e,t,n){const r=this;let o;return a;function a(y){return e.enter("definition"),s(y)}function s(y){return vM.call(r,e,c,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}function c(y){return o=Ba(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),u):n(y)}function u(y){return wn(y)?Cp(e,d)(y):d(y)}function d(y){return bM(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(y)}function p(y){return e.attempt(pde,h,h)(y)}function h(y){return Qt(y)?nn(e,g,"whitespace")(y):g(y)}function g(y){return y===null||vt(y)?(e.exit("definition"),r.parser.defined.push(o),t(y)):n(y)}}function mde(e,t,n){return r;function r(c){return wn(c)?Cp(e,o)(c):n(c)}function o(c){return EM(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function a(c){return Qt(c)?nn(e,s,"whitespace")(c):s(c)}function s(c){return c===null||vt(c)?t(c):n(c)}}const gde={name:"hardBreakEscape",tokenize:yde};function yde(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),o}function o(a){return vt(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const bde={name:"headingAtx",resolve:vde,tokenize:Ede};function vde(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"},qo(e,r,n-r+1,[["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t]])),e}function Ede(e,t,n){let r=0;return o;function o(p){return e.enter("atxHeading"),a(p)}function a(p){return e.enter("atxHeadingSequence"),s(p)}function s(p){return p===35&&r++<6?(e.consume(p),s):p===null||wn(p)?(e.exit("atxHeadingSequence"),c(p)):n(p)}function c(p){return p===35?(e.enter("atxHeadingSequence"),u(p)):p===null||vt(p)?(e.exit("atxHeading"),t(p)):Qt(p)?nn(e,c,"whitespace")(p):(e.enter("atxHeadingText"),d(p))}function u(p){return p===35?(e.consume(p),u):(e.exit("atxHeadingSequence"),c(p))}function d(p){return p===null||p===35||wn(p)?(e.exit("atxHeadingText"),c(p)):(e.consume(p),d)}}const xde=["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"],yO=["pre","script","style","textarea"],Tde={concrete:!0,name:"htmlFlow",resolveTo:_de,tokenize:Ade},Sde={partial:!0,tokenize:wde},Cde={partial:!0,tokenize:kde};function _de(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 Ade(e,t,n){const r=this;let o,a,s,c,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),g):P===47?(e.consume(P),a=!0,x):P===63?(e.consume(P),o=3,r.interrupt?t:N):io(P)?(e.consume(P),s=String.fromCharCode(P),S):n(P)}function g(P){return P===45?(e.consume(P),o=2,y):P===91?(e.consume(P),o=5,c=0,b):io(P)?(e.consume(P),o=4,r.interrupt?t:N):n(P)}function y(P){return P===45?(e.consume(P),r.interrupt?t:N):n(P)}function b(P){const ee="CDATA[";return P===ee.charCodeAt(c++)?(e.consume(P),c===ee.length?r.interrupt?t:$:b):n(P)}function x(P){return io(P)?(e.consume(P),s=String.fromCharCode(P),S):n(P)}function S(P){if(P===null||P===47||P===62||wn(P)){const ee=P===47,ce=s.toLowerCase();return!ee&&!a&&yO.includes(ce)?(o=1,r.interrupt?t(P):$(P)):xde.includes(s.toLowerCase())?(o=6,ee?(e.consume(P),T):r.interrupt?t(P):$(P)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(P):a?D(P):w(P))}return P===45||Xr(P)?(e.consume(P),s+=String.fromCharCode(P),S):n(P)}function T(P){return P===62?(e.consume(P),r.interrupt?t:$):n(P)}function D(P){return Qt(P)?(e.consume(P),D):C(P)}function w(P){return P===47?(e.consume(P),C):P===58||P===95||io(P)?(e.consume(P),R):Qt(P)?(e.consume(P),w):C(P)}function R(P){return P===45||P===46||P===58||P===95||Xr(P)?(e.consume(P),R):I(P)}function I(P){return P===61?(e.consume(P),O):Qt(P)?(e.consume(P),I):w(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,F):Qt(P)?(e.consume(P),O):j(P)}function F(P){return P===u?(e.consume(P),u=null,H):P===null||vt(P)?n(P):(e.consume(P),F)}function j(P){return P===null||P===34||P===39||P===47||P===60||P===61||P===62||P===96||wn(P)?I(P):(e.consume(P),j)}function H(P){return P===47||P===62||Qt(P)?w(P):n(P)}function C(P){return P===62?(e.consume(P),M):n(P)}function M(P){return P===null||vt(P)?$(P):Qt(P)?(e.consume(P),M):n(P)}function $(P){return P===45&&o===2?(e.consume(P),B):P===60&&o===1?(e.consume(P),X):P===62&&o===4?(e.consume(P),oe):P===63&&o===3?(e.consume(P),N):P===93&&o===5?(e.consume(P),te):vt(P)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(Sde,K,z)(P)):P===null||vt(P)?(e.exit("htmlFlowData"),z(P)):(e.consume(P),$)}function z(P){return e.check(Cde,q,K)(P)}function q(P){return e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),Y}function Y(P){return P===null||vt(P)?z(P):(e.enter("htmlFlowData"),$(P))}function B(P){return P===45?(e.consume(P),N):$(P)}function X(P){return P===47?(e.consume(P),s="",ae):$(P)}function ae(P){if(P===62){const ee=s.toLowerCase();return yO.includes(ee)?(e.consume(P),oe):$(P)}return io(P)&&s.length<8?(e.consume(P),s+=String.fromCharCode(P),ae):$(P)}function te(P){return P===93?(e.consume(P),N):$(P)}function N(P){return P===62?(e.consume(P),oe):P===45&&o===2?(e.consume(P),N):$(P)}function oe(P){return P===null||vt(P)?(e.exit("htmlFlowData"),K(P)):(e.consume(P),oe)}function K(P){return e.exit("htmlFlow"),t(P)}}function kde(e,t,n){const r=this;return o;function o(s){return vt(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function wde(e,t,n){return r;function r(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt($h,t,n)}}const Dde={name:"htmlText",tokenize:Rde};function Rde(e,t,n){const r=this;let o,a,s;return c;function c(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),w):io(N)?(e.consume(N),j):n(N)}function d(N){return N===45?(e.consume(N),p):N===91?(e.consume(N),a=0,b):io(N)?(e.consume(N),D):n(N)}function p(N){return N===45?(e.consume(N),y):n(N)}function h(N){return N===null?n(N):N===45?(e.consume(N),g):vt(N)?(s=h,X(N)):(e.consume(N),h)}function g(N){return N===45?(e.consume(N),y):h(N)}function y(N){return N===62?B(N):N===45?g(N):h(N)}function b(N){const oe="CDATA[";return N===oe.charCodeAt(a++)?(e.consume(N),a===oe.length?x:b):n(N)}function x(N){return N===null?n(N):N===93?(e.consume(N),S):vt(N)?(s=x,X(N)):(e.consume(N),x)}function S(N){return N===93?(e.consume(N),T):x(N)}function T(N){return N===62?B(N):N===93?(e.consume(N),T):x(N)}function D(N){return N===null||N===62?B(N):vt(N)?(s=D,X(N)):(e.consume(N),D)}function w(N){return N===null?n(N):N===63?(e.consume(N),R):vt(N)?(s=w,X(N)):(e.consume(N),w)}function R(N){return N===62?B(N):w(N)}function I(N){return io(N)?(e.consume(N),O):n(N)}function O(N){return N===45||Xr(N)?(e.consume(N),O):F(N)}function F(N){return vt(N)?(s=F,X(N)):Qt(N)?(e.consume(N),F):B(N)}function j(N){return N===45||Xr(N)?(e.consume(N),j):N===47||N===62||wn(N)?H(N):n(N)}function H(N){return N===47?(e.consume(N),B):N===58||N===95||io(N)?(e.consume(N),C):vt(N)?(s=H,X(N)):Qt(N)?(e.consume(N),H):B(N)}function C(N){return N===45||N===46||N===58||N===95||Xr(N)?(e.consume(N),C):M(N)}function M(N){return N===61?(e.consume(N),$):vt(N)?(s=M,X(N)):Qt(N)?(e.consume(N),M):H(N)}function $(N){return N===null||N===60||N===61||N===62||N===96?n(N):N===34||N===39?(e.consume(N),o=N,z):vt(N)?(s=$,X(N)):Qt(N)?(e.consume(N),$):(e.consume(N),q)}function z(N){return N===o?(e.consume(N),o=void 0,Y):N===null?n(N):vt(N)?(s=z,X(N)):(e.consume(N),z)}function q(N){return N===null||N===34||N===39||N===60||N===61||N===96?n(N):N===47||N===62||wn(N)?H(N):(e.consume(N),q)}function Y(N){return N===47||N===62||wn(N)?H(N):n(N)}function B(N){return N===62?(e.consume(N),e.exit("htmlTextData"),e.exit("htmlText"),t):n(N)}function X(N){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),ae}function ae(N){return Qt(N)?nn(e,te,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):te(N)}function te(N){return e.enter("htmlTextData"),s(N)}}const GC={name:"labelEnd",resolveAll:Pde,resolveTo:Lde,tokenize:Mde},Ide={tokenize:Fde},Ode={tokenize:Bde},Nde={tokenize:jde};function Pde(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&&qo(e,0,e.length,n),e}function Lde(e,t){let n=e.length,r=0,o,a,s,c;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(s){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"&&(s=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[s][1].end}},p={type:"labelText",start:{...e[a+r+2][1].end},end:{...e[s-2][1].start}};return c=[["enter",u,t],["enter",d,t]],c=ga(c,e.slice(a+1,a+r+3)),c=ga(c,[["enter",p,t]]),c=ga(c,yb(t.parser.constructs.insideSpan.null,e.slice(a+r+4,s-3),t)),c=ga(c,[["exit",p,t],e[s-2],e[s-1],["exit",d,t]]),c=ga(c,e.slice(s+1)),c=ga(c,[["exit",u,t]]),qo(e,a,e.length,c),e}function Mde(e,t,n){const r=this;let o=r.events.length,a,s;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 c;function c(g){return a?a._inactive?h(g):(s=r.parser.defined.includes(Ba(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(g),e.exit("labelMarker"),e.exit("labelEnd"),u):n(g)}function u(g){return g===40?e.attempt(Ide,p,s?p:h)(g):g===91?e.attempt(Ode,p,s?d:h)(g):s?p(g):h(g)}function d(g){return e.attempt(Nde,p,h)(g)}function p(g){return t(g)}function h(g){return a._balanced=!0,n(g)}}function Fde(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 wn(h)?Cp(e,a)(h):a(h)}function a(h){return h===41?p(h):bM(e,s,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function s(h){return wn(h)?Cp(e,u)(h):p(h)}function c(h){return n(h)}function u(h){return h===34||h===39||h===40?EM(e,d,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):p(h)}function d(h){return wn(h)?Cp(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 Bde(e,t,n){const r=this;return o;function o(c){return vM.call(r,e,a,s,"reference","referenceMarker","referenceString")(c)}function a(c){return r.parser.defined.includes(Ba(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(c):n(c)}function s(c){return n(c)}}function jde(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 Ude={name:"labelStartImage",resolveAll:GC.resolveAll,tokenize:Hde};function Hde(e,t,n){const r=this;return o;function o(c){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(c),e.exit("labelImageMarker"),a}function a(c){return c===91?(e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelImage"),s):n(c)}function s(c){return c===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(c):t(c)}}const zde={name:"labelStartLink",resolveAll:GC.resolveAll,tokenize:$de};function $de(e,t,n){const r=this;return o;function o(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),a}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const OE={name:"lineEnding",tokenize:Vde};function Vde(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),nn(e,t,"linePrefix")}}const ey={name:"thematicBreak",tokenize:Gde};function Gde(e,t,n){let r=0,o;return a;function a(d){return e.enter("thematicBreak"),s(d)}function s(d){return o=d,c(d)}function c(d){return d===o?(e.enter("thematicBreakSequence"),u(d)):r>=3&&(d===null||vt(d))?(e.exit("thematicBreak"),t(d)):n(d)}function u(d){return d===o?(e.consume(d),r++,u):(e.exit("thematicBreakSequence"),Qt(d)?nn(e,c,"whitespace")(d):c(d))}}const Eo={continuation:{tokenize:Kde},exit:Xde,name:"list",tokenize:Yde},qde={partial:!0,tokenize:Zde},Wde={partial:!0,tokenize:Qde};function Yde(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,s=0;return c;function c(y){const b=r.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||y===r.containerState.marker:yT(y)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),y===42||y===45?e.check(ey,n,d)(y):d(y);if(!r.interrupt||y===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(y)}return n(y)}function u(y){return yT(y)&&++s<10?(e.consume(y),u):(!r.interrupt||s<2)&&(r.containerState.marker?y===r.containerState.marker:y===41||y===46)?(e.exit("listItemValue"),d(y)):n(y)}function d(y){return e.enter("listItemMarker"),e.consume(y),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||y,e.check($h,r.interrupt?n:p,e.attempt(qde,g,h))}function p(y){return r.containerState.initialBlankLine=!0,a++,g(y)}function h(y){return Qt(y)?(e.enter("listItemPrefixWhitespace"),e.consume(y),e.exit("listItemPrefixWhitespace"),g):n(y)}function g(y){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(y)}}function Kde(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check($h,o,a);function o(c){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,nn(e,t,"listItemIndent",r.containerState.size+1)(c)}function a(c){return r.containerState.furtherBlankLines||!Qt(c)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(c)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Wde,t,s)(c))}function s(c){return r.containerState._closeFlow=!0,r.interrupt=void 0,nn(e,e.attempt(Eo,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function Qde(e,t,n){const r=this;return nn(e,o,"listItemIndent",r.containerState.size+1);function o(a){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(a):n(a)}}function Xde(e){e.exit(this.containerState.type)}function Zde(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 s=r.events[r.events.length-1];return!Qt(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const bO={name:"setextUnderline",resolveTo:Jde,tokenize:efe};function Jde(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 s={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",s,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function efe(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,s(d)):n(d)}function s(d){return e.enter("setextHeadingLineSequence"),c(d)}function c(d){return d===o?(e.consume(d),c):(e.exit("setextHeadingLineSequence"),Qt(d)?nn(e,u,"lineSuffix")(d):u(d))}function u(d){return d===null||vt(d)?(e.exit("setextHeadingLine"),t(d)):n(d)}}const tfe={tokenize:nfe};function nfe(e){const t=this,n=e.attempt($h,r,e.attempt(this.parser.constructs.flowInitial,o,nn(e,e.attempt(this.parser.constructs.flow,o,e.attempt(sde,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 rfe={resolveAll:TM()},ofe=xM("string"),afe=xM("text");function xM(e){return{resolveAll:TM(e==="text"?ife:void 0),tokenize:t};function t(n){const r=this,o=this.parser.constructs[e],a=n.attempt(o,s,c);return s;function s(p){return d(p)?a(p):c(p)}function c(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 g=-1;if(h)for(;++g<h.length;){const y=h[g];if(!y.previous||y.previous.call(r,r.previous))return!0}return!1}}}function TM(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 ife(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,s=-1,c=0,u;for(;a--;){const d=o[a];if(typeof d=="string"){for(s=d.length;d.charCodeAt(s-1)===32;)c++,s--;if(s)break;s=-1}else if(d===-2)u=!0,c++;else if(d!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(c=0),c){const d={type:n===e.length||u||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:r.start._bufferIndex+s,_index:r.start._index+a,line:r.end.line,column:r.end.column-c,offset:r.end.offset-c},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 sfe={42:Eo,43:Eo,45:Eo,48:Eo,49:Eo,50:Eo,51:Eo,52:Eo,53:Eo,54:Eo,55:Eo,56:Eo,57:Eo,62:hM},lfe={91:fde},cfe={[-2]:IE,[-1]:IE,32:IE},ufe={35:bde,42:ey,45:[bO,ey],60:Tde,61:bO,95:ey,96:gO,126:gO},dfe={38:gM,92:mM},ffe={[-5]:OE,[-4]:OE,[-3]:OE,33:Ude,38:gM,42:bT,60:[zue,Dde],91:zde,92:[gde,mM],93:GC,95:bT,96:tde},pfe={null:[bT,rfe]},hfe={null:[42,95]},mfe={null:[]},gfe=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:hfe,contentInitial:lfe,disable:mfe,document:sfe,flow:ufe,flowInitial:cfe,insideSpan:pfe,string:dfe,text:ffe},Symbol.toStringTag,{value:"Module"}));function yfe(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 s=[],c=[];const u={attempt:F(I),check:F(O),consume:D,enter:w,exit:R,interrupt:F(O,{interrupt:!0})},d={code:null,containerState:{},defineSkip:x,events:[],now:b,parser:e,previous:null,sliceSerialize:g,sliceStream:y,write:h};let p=t.tokenize.call(d,u);return t.resolveAll&&a.push(t),d;function h(M){return s=ga(s,M),S(),s[s.length-1]!==null?[]:(j(t,0),d.events=yb(a,d.events,d),d.events)}function g(M,$){return vfe(y(M),$)}function y(M){return bfe(s,M)}function b(){const{_bufferIndex:M,_index:$,line:z,column:q,offset:Y}=r;return{_bufferIndex:M,_index:$,line:z,column:q,offset:Y}}function x(M){o[M.line]=M.column,C()}function S(){let M;for(;r._index<s.length;){const $=s[r._index];if(typeof $=="string")for(M=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===M&&r._bufferIndex<$.length;)T($.charCodeAt(r._bufferIndex));else T($)}}function T(M){p=p(M)}function D(M){vt(M)?(r.line++,r.column=1,r.offset+=M===-3?2:1,C()):M!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),d.previous=M}function w(M,$){const z=$||{};return z.type=M,z.start=b(),d.events.push(["enter",z,d]),c.push(z),z}function R(M){const $=c.pop();return $.end=b(),d.events.push(["exit",$,d]),$}function I(M,$){j(M,$.from)}function O(M,$){$.restore()}function F(M,$){return z;function z(q,Y,B){let X,ae,te,N;return Array.isArray(q)?K(q):"tokenize"in q?K([q]):oe(q);function oe(re){return be;function be(ye){const Ge=ye!==null&&re[ye],Me=ye!==null&&re.null,Oe=[...Array.isArray(Ge)?Ge:Ge?[Ge]:[],...Array.isArray(Me)?Me:Me?[Me]:[]];return K(Oe)(ye)}}function K(re){return X=re,ae=0,re.length===0?B:P(re[ae])}function P(re){return be;function be(ye){return N=H(),te=re,re.partial||(d.currentConstruct=re),re.name&&d.parser.constructs.disable.null.includes(re.name)?ce():re.tokenize.call($?Object.assign(Object.create(d),$):d,u,ee,ce)(ye)}}function ee(re){return M(te,N),Y}function ce(re){return N.restore(),++ae<X.length?P(X[ae]):B}}}function j(M,$){M.resolveAll&&!a.includes(M)&&a.push(M),M.resolve&&qo(d.events,$,d.events.length-$,M.resolve(d.events.slice($),d)),M.resolveTo&&(d.events=M.resolveTo(d.events,d))}function H(){const M=b(),$=d.previous,z=d.currentConstruct,q=d.events.length,Y=Array.from(c);return{from:q,restore:B};function B(){r=M,d.previous=$,d.currentConstruct=z,d.events.length=q,c=Y,C()}}function C(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}function bfe(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,a=t.end._bufferIndex;let s;if(n===o)s=[e[n].slice(r,a)];else{if(s=e.slice(n,o),r>-1){const c=s[0];typeof c=="string"?s[0]=c.slice(r):s.shift()}a>0&&s.push(e[o].slice(0,a))}return s}function vfe(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const a=e[n];let s;if(typeof a=="string")s=a;else switch(a){case-5:{s="\r";break}case-4:{s=`
|
|
363
|
+
`;break}case-3:{s=`\r
|
|
364
|
+
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&o)continue;s=" ";break}default:s=String.fromCharCode(a)}o=a===-2,r.push(s)}return r.join("")}function Efe(e){const t={constructs:fM([gfe,...(e||{}).extensions||[]]),content:n(Lue),defined:[],document:n(Fue),flow:n(tfe),lazy:{},string:n(ofe),text:n(afe)};return t;function n(r){return o;function o(a){return yfe(t,r,a)}}}function xfe(e){for(;!yM(e););return e}const vO=/[\0\t\n\r]/g;function Tfe(){let e=1,t="",n=!0,r;return o;function o(a,s,c){const u=[];let d,p,h,g,y;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(s||void 0).decode(a)),h=0,t="",n&&(a.charCodeAt(0)===65279&&h++,n=void 0);h<a.length;){if(vO.lastIndex=h,d=vO.exec(a),g=d&&d.index!==void 0?d.index:a.length,y=a.charCodeAt(g),!d){t=a.slice(h);break}if(y===10&&h===g&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),h<g&&(u.push(a.slice(h,g)),e+=g-h),y){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=g+1}return c&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}const Sfe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Cfe(e){return e.replace(Sfe,_fe)}function _fe(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),o=r===120||r===88;return pM(n.slice(o?2:1),o?16:10)}return VC(n)||e}const SM={}.hasOwnProperty;function Afe(e,t,n){return typeof t!="string"&&(n=t,t=void 0),kfe(n)(xfe(Efe(n).document().write(Tfe()(e,t,!0))))}function kfe(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(lt),autolinkProtocol:H,autolinkEmail:H,atxHeading:a(gt),blockQuote:a(Me),characterEscape:H,characterReference:H,codeFenced:a(Oe),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(Oe,s),codeText:a(Qe,s),codeTextData:H,data:H,codeFlowValue:H,definition:a(nt),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(Re),hardBreakEscape:a(_t),hardBreakTrailing:a(_t),htmlFlow:a(je,s),htmlFlowData:H,htmlText:a(je,s),htmlTextData:H,image:a(mt),label:s,link:a(lt),listItem:a(Ue),listItemValue:g,listOrdered:a(ft,h),listUnordered:a(ft),paragraph:a(Le),reference:P,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(gt),strong:a(Jt),thematicBreak:a(At)},exit:{atxHeading:u(),atxHeadingSequence:I,autolink:u(),autolinkEmail:Ge,autolinkProtocol:ye,blockQuote:u(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:ce,characterReferenceMarkerNumeric:ce,characterReferenceValue:re,characterReference:be,codeFenced:u(S),codeFencedFence:x,codeFencedFenceInfo:y,codeFencedFenceMeta:b,codeFlowValue:C,codeIndented:u(T),codeText:u(Y),codeTextData:C,data:C,definition:u(),definitionDestinationString:R,definitionLabelString:D,definitionTitleString:w,emphasis:u(),hardBreakEscape:u($),hardBreakTrailing:u($),htmlFlow:u(z),htmlFlowData:C,htmlText:u(q),htmlTextData:C,image:u(X),label:te,labelText:ae,lineEnding:M,link:u(B),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:ee,resourceDestinationString:N,resourceTitleString:oe,resource:K,setextHeading:u(j),setextHeadingLineSequence:F,setextHeadingText:O,strong:u(),thematicBreak:u()}};CM(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(de){let ge={type:"root",children:[]};const ze={stack:[ge],tokenStack:[],config:t,enter:c,exit:d,buffer:s,resume:p,data:n},Xe=[];let Et=-1;for(;++Et<de.length;)if(de[Et][1].type==="listOrdered"||de[Et][1].type==="listUnordered")if(de[Et][0]==="enter")Xe.push(Et);else{const Je=Xe.pop();Et=o(de,Je,Et)}for(Et=-1;++Et<de.length;){const Je=t[de[Et][0]];SM.call(Je,de[Et][1].type)&&Je[de[Et][1].type].call(Object.assign({sliceSerialize:de[Et][2].sliceSerialize},ze),de[Et][1])}if(ze.tokenStack.length>0){const Je=ze.tokenStack[ze.tokenStack.length-1];(Je[1]||EO).call(ze,void 0,Je[0])}for(ge.position={start:Fs(de.length>0?de[0][1].start:{line:1,column:1,offset:0}),end:Fs(de.length>0?de[de.length-2][1].end:{line:1,column:1,offset:0})},Et=-1;++Et<t.transforms.length;)ge=t.transforms[Et](ge)||ge;return ge}function o(de,ge,ze){let Xe=ge-1,Et=-1,Je=!1,en,zt,Ke,Ee;for(;++Xe<=ze;){const Se=de[Xe];switch(Se[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Se[0]==="enter"?Et++:Et--,Ee=void 0;break}case"lineEndingBlank":{Se[0]==="enter"&&(en&&!Ee&&!Et&&!Ke&&(Ke=Xe),Ee=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ee=void 0}if(!Et&&Se[0]==="enter"&&Se[1].type==="listItemPrefix"||Et===-1&&Se[0]==="exit"&&(Se[1].type==="listUnordered"||Se[1].type==="listOrdered")){if(en){let ht=Xe;for(zt=void 0;ht--;){const rt=de[ht];if(rt[1].type==="lineEnding"||rt[1].type==="lineEndingBlank"){if(rt[0]==="exit")continue;zt&&(de[zt][1].type="lineEndingBlank",Je=!0),rt[1].type="lineEnding",zt=ht}else if(!(rt[1].type==="linePrefix"||rt[1].type==="blockQuotePrefix"||rt[1].type==="blockQuotePrefixWhitespace"||rt[1].type==="blockQuoteMarker"||rt[1].type==="listItemIndent"))break}Ke&&(!zt||Ke<zt)&&(en._spread=!0),en.end=Object.assign({},zt?de[zt][1].start:Se[1].end),de.splice(zt||Xe,0,["exit",en,Se[2]]),Xe++,ze++}if(Se[1].type==="listItemPrefix"){const ht={type:"listItem",_spread:!1,start:Object.assign({},Se[1].start),end:void 0};en=ht,de.splice(Xe,0,["enter",ht,Se[2]]),Xe++,ze++,Ke=void 0,Ee=!0}}}return de[ge][1]._spread=Je,ze}function a(de,ge){return ze;function ze(Xe){c.call(this,de(Xe),Xe),ge&&ge.call(this,Xe)}}function s(){this.stack.push({type:"fragment",children:[]})}function c(de,ge,ze){this.stack[this.stack.length-1].children.push(de),this.stack.push(de),this.tokenStack.push([ge,ze||void 0]),de.position={start:Fs(ge.start),end:void 0}}function u(de){return ge;function ge(ze){de&&de.call(this,ze),d.call(this,ze)}}function d(de,ge){const ze=this.stack.pop(),Xe=this.tokenStack.pop();if(Xe)Xe[0].type!==de.type&&(ge?ge.call(this,de,Xe[0]):(Xe[1]||EO).call(this,de,Xe[0]));else throw new Error("Cannot close `"+de.type+"` ("+Sp({start:de.start,end:de.end})+"): it’s not open");ze.position.end=Fs(de.end)}function p(){return $C(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function g(de){if(this.data.expectingFirstListItemValue){const ge=this.stack[this.stack.length-2];ge.start=Number.parseInt(this.sliceSerialize(de),10),this.data.expectingFirstListItemValue=void 0}}function y(){const de=this.resume(),ge=this.stack[this.stack.length-1];ge.lang=de}function b(){const de=this.resume(),ge=this.stack[this.stack.length-1];ge.meta=de}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function S(){const de=this.resume(),ge=this.stack[this.stack.length-1];ge.value=de.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function T(){const de=this.resume(),ge=this.stack[this.stack.length-1];ge.value=de.replace(/(\r?\n|\r)$/g,"")}function D(de){const ge=this.resume(),ze=this.stack[this.stack.length-1];ze.label=ge,ze.identifier=Ba(this.sliceSerialize(de)).toLowerCase()}function w(){const de=this.resume(),ge=this.stack[this.stack.length-1];ge.title=de}function R(){const de=this.resume(),ge=this.stack[this.stack.length-1];ge.url=de}function I(de){const ge=this.stack[this.stack.length-1];if(!ge.depth){const ze=this.sliceSerialize(de).length;ge.depth=ze}}function O(){this.data.setextHeadingSlurpLineEnding=!0}function F(de){const ge=this.stack[this.stack.length-1];ge.depth=this.sliceSerialize(de).codePointAt(0)===61?1:2}function j(){this.data.setextHeadingSlurpLineEnding=void 0}function H(de){const ge=this.stack[this.stack.length-1].children;let ze=ge[ge.length-1];(!ze||ze.type!=="text")&&(ze=jt(),ze.position={start:Fs(de.start),end:void 0},ge.push(ze)),this.stack.push(ze)}function C(de){const ge=this.stack.pop();ge.value+=this.sliceSerialize(de),ge.position.end=Fs(de.end)}function M(de){const ge=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ze=ge.children[ge.children.length-1];ze.position.end=Fs(de.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ge.type)&&(H.call(this,de),C.call(this,de))}function $(){this.data.atHardBreak=!0}function z(){const de=this.resume(),ge=this.stack[this.stack.length-1];ge.value=de}function q(){const de=this.resume(),ge=this.stack[this.stack.length-1];ge.value=de}function Y(){const de=this.resume(),ge=this.stack[this.stack.length-1];ge.value=de}function B(){const de=this.stack[this.stack.length-1];if(this.data.inReference){const ge=this.data.referenceType||"shortcut";de.type+="Reference",de.referenceType=ge,delete de.url,delete de.title}else delete de.identifier,delete de.label;this.data.referenceType=void 0}function X(){const de=this.stack[this.stack.length-1];if(this.data.inReference){const ge=this.data.referenceType||"shortcut";de.type+="Reference",de.referenceType=ge,delete de.url,delete de.title}else delete de.identifier,delete de.label;this.data.referenceType=void 0}function ae(de){const ge=this.sliceSerialize(de),ze=this.stack[this.stack.length-2];ze.label=Cfe(ge),ze.identifier=Ba(ge).toLowerCase()}function te(){const de=this.stack[this.stack.length-1],ge=this.resume(),ze=this.stack[this.stack.length-1];if(this.data.inReference=!0,ze.type==="link"){const Xe=de.children;ze.children=Xe}else ze.alt=ge}function N(){const de=this.resume(),ge=this.stack[this.stack.length-1];ge.url=de}function oe(){const de=this.resume(),ge=this.stack[this.stack.length-1];ge.title=de}function K(){this.data.inReference=void 0}function P(){this.data.referenceType="collapsed"}function ee(de){const ge=this.resume(),ze=this.stack[this.stack.length-1];ze.label=ge,ze.identifier=Ba(this.sliceSerialize(de)).toLowerCase(),this.data.referenceType="full"}function ce(de){this.data.characterReferenceType=de.type}function re(de){const ge=this.sliceSerialize(de),ze=this.data.characterReferenceType;let Xe;ze?(Xe=pM(ge,ze==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Xe=VC(ge);const Et=this.stack[this.stack.length-1];Et.value+=Xe}function be(de){const ge=this.stack.pop();ge.position.end=Fs(de.end)}function ye(de){C.call(this,de);const ge=this.stack[this.stack.length-1];ge.url=this.sliceSerialize(de)}function Ge(de){C.call(this,de);const ge=this.stack[this.stack.length-1];ge.url="mailto:"+this.sliceSerialize(de)}function Me(){return{type:"blockquote",children:[]}}function Oe(){return{type:"code",lang:null,meta:null,value:""}}function Qe(){return{type:"inlineCode",value:""}}function nt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Re(){return{type:"emphasis",children:[]}}function gt(){return{type:"heading",depth:0,children:[]}}function _t(){return{type:"break"}}function je(){return{type:"html",value:""}}function mt(){return{type:"image",title:null,url:"",alt:null}}function lt(){return{type:"link",title:null,url:"",children:[]}}function ft(de){return{type:"list",ordered:de.type==="listOrdered",start:null,spread:de._spread,children:[]}}function Ue(de){return{type:"listItem",spread:de._spread,checked:null,children:[]}}function Le(){return{type:"paragraph",children:[]}}function Jt(){return{type:"strong",children:[]}}function jt(){return{type:"text",value:""}}function At(){return{type:"thematicBreak"}}}function Fs(e){return{line:e.line,column:e.column,offset:e.offset}}function CM(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?CM(e,r):wfe(e,r)}}function wfe(e,t){let n;for(n in t)if(SM.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 EO(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Sp({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Sp({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Sp({start:t.start,end:t.end})+") is still open")}function Dfe(e){const t=this;t.parser=n;function n(r){return Afe(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Rfe(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 Ife(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
365
|
+
`}]}function Ofe(e,t){const n=t.value?t.value+`
|
|
366
|
+
`:"",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 Nfe(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Pfe(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Lfe(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=vd(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let s,c=e.footnoteCounts.get(r);c===void 0?(c=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=a+1,c+=1,e.footnoteCounts.set(r,c);const u={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(c>1?"-"+c:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,u);const d={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,d),e.applyData(t,d)}function Mfe(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 Ffe(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function _M(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 s=o[o.length-1];return s&&s.type==="text"?s.value+=r:o.push({type:"text",value:r}),o}function Bfe(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return _M(e,t);const o={src:vd(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 jfe(e,t){const n={src:vd(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 Ufe(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 Hfe(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return _M(e,t);const o={href:vd(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 zfe(e,t){const n={href:vd(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 $fe(e,t,n){const r=e.all(t),o=n?Vfe(n):AM(t),a={},s=[];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 c=-1;for(;++c<r.length;){const p=r[c];(o||c!==0||p.type!=="element"||p.tagName!=="p")&&s.push({type:"text",value:`
|
|
367
|
+
`}),p.type==="element"&&p.tagName==="p"&&!o?s.push(...p.children):s.push(p)}const u=r[r.length-1];u&&(o||u.type!=="element"||u.tagName!=="p")&&s.push({type:"text",value:`
|
|
368
|
+
`});const d={type:"element",tagName:"li",properties:a,children:s};return e.patch(t,d),e.applyData(t,d)}function Vfe(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=AM(n[r])}return t}function AM(e){return e.spread??e.children.length>1}function Gfe(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 s=r[o];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.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 qfe(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Wfe(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Yfe(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Kfe(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),o.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},c=Ei(t.children[1]),u=mb(t.children[t.children.length-1]);c&&u&&(s.position={start:c,end:u}),o.push(s)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,a),e.applyData(t,a)}function Qfe(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,s=a?a.length:t.children.length;let c=-1;const u=[];for(;++c<s;){const p=t.children[c],h={},g=a?a[c]:void 0;g&&(h.align=g);let y={type:"element",tagName:o,properties:h,children:[]};p&&(y.children=e.all(p),e.patch(p,y),y=e.applyData(p,y)),u.push(y)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,d),e.applyData(t,d)}function Xfe(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const xO=9,TO=32;function Zfe(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const a=[];for(;r;)a.push(SO(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return a.push(SO(t.slice(o),o>0,!1)),a.join("")}function SO(e,t,n){let r=0,o=e.length;if(t){let a=e.codePointAt(r);for(;a===xO||a===TO;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(o-1);for(;a===xO||a===TO;)o--,a=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}function Jfe(e,t){const n={type:"text",value:Zfe(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function epe(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const tpe={blockquote:Rfe,break:Ife,code:Ofe,delete:Nfe,emphasis:Pfe,footnoteReference:Lfe,heading:Mfe,html:Ffe,imageReference:Bfe,image:jfe,inlineCode:Ufe,linkReference:Hfe,link:zfe,listItem:$fe,list:Gfe,paragraph:qfe,root:Wfe,strong:Yfe,table:Kfe,tableCell:Xfe,tableRow:Qfe,text:Jfe,thematicBreak:epe,toml:Cg,yaml:Cg,definition:Cg,footnoteDefinition:Cg};function Cg(){}const kM=-1,bb=0,_p=1,Xy=2,qC=3,WC=4,YC=5,KC=6,wM=7,DM=8,CO=typeof self=="object"?self:globalThis,npe=(e,t)=>{const n=(o,a)=>(e.set(a,o),o),r=o=>{if(e.has(o))return e.get(o);const[a,s]=t[o];switch(a){case bb:case kM:return n(s,o);case _p:{const c=n([],o);for(const u of s)c.push(r(u));return c}case Xy:{const c=n({},o);for(const[u,d]of s)c[r(u)]=r(d);return c}case qC:return n(new Date(s),o);case WC:{const{source:c,flags:u}=s;return n(new RegExp(c,u),o)}case YC:{const c=n(new Map,o);for(const[u,d]of s)c.set(r(u),r(d));return c}case KC:{const c=n(new Set,o);for(const u of s)c.add(r(u));return c}case wM:{const{name:c,message:u}=s;return n(new CO[c](u),o)}case DM:return n(BigInt(s),o);case"BigInt":return n(Object(BigInt(s)),o);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:c}=new Uint8Array(s);return n(new DataView(c),s)}}return n(new CO[a](s),o)};return r},_O=e=>npe(new Map,e)(0),hu="",{toString:rpe}={},{keys:ope}=Object,qf=e=>{const t=typeof e;if(t!=="object"||!e)return[bb,t];const n=rpe.call(e).slice(8,-1);switch(n){case"Array":return[_p,hu];case"Object":return[Xy,hu];case"Date":return[qC,hu];case"RegExp":return[WC,hu];case"Map":return[YC,hu];case"Set":return[KC,hu];case"DataView":return[_p,n]}return n.includes("Array")?[_p,n]:n.includes("Error")?[wM,n]:[Xy,n]},_g=([e,t])=>e===bb&&(t==="function"||t==="symbol"),ape=(e,t,n,r)=>{const o=(s,c)=>{const u=r.push(s)-1;return n.set(c,u),u},a=s=>{if(n.has(s))return n.get(s);let[c,u]=qf(s);switch(c){case bb:{let p=s;switch(u){case"bigint":c=DM,p=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);p=null;break;case"undefined":return o([kM],s)}return o([c,p],s)}case _p:{if(u){let g=s;return u==="DataView"?g=new Uint8Array(s.buffer):u==="ArrayBuffer"&&(g=new Uint8Array(s)),o([u,[...g]],s)}const p=[],h=o([c,p],s);for(const g of s)p.push(a(g));return h}case Xy:{if(u)switch(u){case"BigInt":return o([u,s.toString()],s);case"Boolean":case"Number":case"String":return o([u,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const p=[],h=o([c,p],s);for(const g of ope(s))(e||!_g(qf(s[g])))&&p.push([a(g),a(s[g])]);return h}case qC:return o([c,s.toISOString()],s);case WC:{const{source:p,flags:h}=s;return o([c,{source:p,flags:h}],s)}case YC:{const p=[],h=o([c,p],s);for(const[g,y]of s)(e||!(_g(qf(g))||_g(qf(y))))&&p.push([a(g),a(y)]);return h}case KC:{const p=[],h=o([c,p],s);for(const g of s)(e||!_g(qf(g)))&&p.push(a(g));return h}}const{message:d}=s;return o([c,{name:u,message:d}],s)};return a},AO=(e,{json:t,lossy:n}={})=>{const r=[];return ape(!(t||n),!!t,new Map,r)(e),r},uc=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?_O(AO(e,t)):structuredClone(e):(e,t)=>_O(AO(e,t));function ipe(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 spe(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function lpe(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||ipe,r=e.options.footnoteBackLabel||spe,o=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},c=[];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(),g=vd(h.toLowerCase());let y=0;const b=[],x=e.footnoteCounts.get(h);for(;x!==void 0&&++y<=x;){b.length>0&&b.push({type:"text",value:" "});let D=typeof n=="string"?n:n(u,y);typeof D=="string"&&(D={type:"text",value:D}),b.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+g+(y>1?"-"+y:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,y),className:["data-footnote-backref"]},children:Array.isArray(D)?D:[D]})}const S=p[p.length-1];if(S&&S.type==="element"&&S.tagName==="p"){const D=S.children[S.children.length-1];D&&D.type==="text"?D.value+=" ":S.children.push({type:"text",value:" "}),S.children.push(...b)}else p.push(...b);const T={type:"element",tagName:"li",properties:{id:t+"fn-"+g},children:e.wrap(p,!0)};e.patch(d,T),c.push(T)}if(c.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...uc(s),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
|
|
369
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(c,!0)},{type:"text",value:`
|
|
370
|
+
`}]}}const vb=function(e){if(e==null)return fpe;if(typeof e=="function")return Eb(e);if(typeof e=="object")return Array.isArray(e)?cpe(e):upe(e);if(typeof e=="string")return dpe(e);throw new Error("Expected function, string, or object as test")};function cpe(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=vb(e[n]);return Eb(r);function r(...o){let a=-1;for(;++a<t.length;)if(t[a].apply(this,o))return!0;return!1}}function upe(e){const t=e;return Eb(n);function n(r){const o=r;let a;for(a in e)if(o[a]!==t[a])return!1;return!0}}function dpe(e){return Eb(t);function t(n){return n&&n.type===e}}function Eb(e){return t;function t(n,r,o){return!!(ppe(n)&&e.call(this,n,typeof r=="number"?r:void 0,o||void 0))}}function fpe(){return!0}function ppe(e){return e!==null&&typeof e=="object"&&"type"in e}const RM=[],hpe=!0,Zy=!1,Ap="skip";function IM(e,t,n,r){let o;typeof t=="function"&&typeof n!="function"?(r=n,n=t):o=t;const a=vb(o),s=r?-1:1;c(e,void 0,[])();function c(u,d,p){const h=u&&typeof u=="object"?u:{};if(typeof h.type=="string"){const y=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(g,"name",{value:"node ("+(u.type+(y?"<"+y+">":""))+")"})}return g;function g(){let y=RM,b,x,S;if((!t||a(u,d,p[p.length-1]||void 0))&&(y=mpe(n(u,p)),y[0]===Zy))return y;if("children"in u&&u.children){const T=u;if(T.children&&y[0]!==Ap)for(x=(r?T.children.length:-1)+s,S=p.concat(T);x>-1&&x<T.children.length;){const D=T.children[x];if(b=c(D,x,S)(),b[0]===Zy)return b;x=typeof b[1]=="number"?b[1]:x+s}}return y}}}function mpe(e){return Array.isArray(e)?e:typeof e=="number"?[hpe,e]:e==null?RM:[e]}function wo(e,t,n,r){let o,a,s;typeof t=="function"&&typeof n!="function"?(a=void 0,s=t,o=n):(a=t,s=n,o=r),IM(e,a,c,o);function c(u,d){const p=d[d.length-1],h=p?p.children.indexOf(u):void 0;return s(u,h,p)}}const vT={}.hasOwnProperty,gpe={};function ype(e,t){const n=t||gpe,r=new Map,o=new Map,a=new Map,s={...tpe,...n.handlers},c={all:d,applyData:vpe,definitionById:r,footnoteById:o,footnoteCounts:a,footnoteOrder:[],handlers:s,one:u,options:n,patch:bpe,wrap:xpe};return wo(e,function(p){if(p.type==="definition"||p.type==="footnoteDefinition"){const h=p.type==="definition"?r:o,g=String(p.identifier).toUpperCase();h.has(g)||h.set(g,p)}}),c;function u(p,h){const g=p.type,y=c.handlers[g];if(vT.call(c.handlers,g)&&y)return y(c,p,h);if(c.options.passThrough&&c.options.passThrough.includes(g)){if("children"in p){const{children:b,...x}=p,S=uc(x);return S.children=c.all(p),S}return uc(p)}return(c.options.unknownHandler||Epe)(c,p,h)}function d(p){const h=[];if("children"in p){const g=p.children;let y=-1;for(;++y<g.length;){const b=c.one(g[y],p);if(b){if(y&&g[y-1].type==="break"&&(!Array.isArray(b)&&b.type==="text"&&(b.value=kO(b.value)),!Array.isArray(b)&&b.type==="element")){const x=b.children[0];x&&x.type==="text"&&(x.value=kO(x.value))}Array.isArray(b)?h.push(...b):h.push(b)}}}return h}}function bpe(e,t){e.position&&(t.position=sue(e))}function vpe(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 s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&a&&Object.assign(n.properties,uc(a)),"children"in n&&n.children&&o!==null&&o!==void 0&&(n.children=o)}return n}function Epe(e,t){const n=t.data||{},r="value"in t&&!(vT.call(n,"hProperties")||vT.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 xpe(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
371
|
+
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
372
|
+
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
373
|
+
`}),n}function kO(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function wO(e,t){const n=ype(e,t),r=n.one(e,void 0),o=lpe(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&a.children.push({type:"text",value:`
|
|
374
|
+
`},o),a}function Tpe(e,t){return e&&"run"in e?async function(n,r){const o=wO(n,{file:r,...t});await e.run(o,r)}:function(n,r){return wO(n,{file:r,...e||t})}}function DO(e){if(e)throw e}var NE,RO;function Spe(){if(RO)return NE;RO=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)},s=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},c=function(u,d){if(d==="__proto__")if(e.call(u,d)){if(r)return r(u,d).value}else return;return u[d]};return NE=function u(){var d,p,h,g,y,b,x=arguments[0],S=1,T=arguments.length,D=!1;for(typeof x=="boolean"&&(D=x,x=arguments[1]||{},S=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});S<T;++S)if(d=arguments[S],d!=null)for(p in d)h=c(x,p),g=c(d,p),x!==g&&(D&&g&&(a(g)||(y=o(g)))?(y?(y=!1,b=h&&o(h)?h:[]):b=h&&a(h)?h:{},s(x,{name:p,newValue:u(D,b,g)})):typeof g<"u"&&s(x,{name:p,newValue:g}));return x},NE}var Cpe=Spe();const PE=K0(Cpe);function ET(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 _pe(){const e=[],t={run:n,use:r};return t;function n(...o){let a=-1;const s=o.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);c(null,...o);function c(u,...d){const p=e[++a];let h=-1;if(u){s(u);return}for(;++h<o.length;)(d[h]===null||d[h]===void 0)&&(d[h]=o[h]);o=d,p?Ape(p,c)(...d):s(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 Ape(e,t){let n;return r;function r(...s){const c=e.length>s.length;let u;c&&s.push(o);try{u=e.apply(this,s)}catch(d){const p=d;if(c&&n)throw p;return o(p)}c||(u&&u.then&&typeof u.then=="function"?u.then(a,o):u instanceof Error?o(u):a(u))}function o(s,...c){n||(n=!0,t(s,...c))}function a(s){o(null,s)}}const oi={basename:kpe,dirname:wpe,extname:Dpe,join:Rpe,sep:"/"};function kpe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Vh(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 s=-1,c=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(a){n=o+1;break}}else s<0&&(a=!0,s=o+1),c>-1&&(e.codePointAt(o)===t.codePointAt(c--)?c<0&&(r=o):(c=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function wpe(e){if(Vh(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 Dpe(e){Vh(e);let t=e.length,n=-1,r=0,o=-1,a=0,s;for(;t--;){const c=e.codePointAt(t);if(c===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),c===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 Rpe(...e){let t=-1,n;for(;++t<e.length;)Vh(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Ipe(n)}function Ipe(e){Vh(e);const t=e.codePointAt(0)===47;let n=Ope(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Ope(e,t){let n="",r=0,o=-1,a=0,s=-1,c,u;for(;++s<=e.length;){if(s<e.length)c=e.codePointAt(s);else{if(c===47)break;c=47}if(c===47){if(!(o===s-1||a===1))if(o!==s-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=s,a=0;continue}}else if(n.length>0){n="",r=0,o=s,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(o+1,s):n=e.slice(o+1,s),r=s-o-1;o=s,a=0}else c===46&&a>-1?a++:a=-1}return n}function Vh(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Npe={cwd:Ppe};function Ppe(){return"/"}function xT(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Lpe(e){if(typeof e=="string")e=new URL(e);else if(!xT(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 Mpe(e)}function Mpe(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 LE=["history","path","basename","stem","extname","dirname"];class OM{constructor(t){let n;t?xT(t)?n={path:t}:typeof t=="string"||Fpe(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Npe.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<LE.length;){const a=LE[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)LE.includes(o)||(this[o]=n[o])}get basename(){return typeof this.path=="string"?oi.basename(this.path):void 0}set basename(t){FE(t,"basename"),ME(t,"basename"),this.path=oi.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?oi.dirname(this.path):void 0}set dirname(t){IO(this.basename,"dirname"),this.path=oi.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?oi.extname(this.path):void 0}set extname(t){if(ME(t,"extname"),IO(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=oi.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){xT(t)&&(t=Lpe(t)),FE(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?oi.basename(this.path,this.extname):void 0}set stem(t){FE(t,"stem"),ME(t,"stem"),this.path=oi.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 eo(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 ME(e,t){if(e&&e.includes(oi.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+oi.sep+"`")}function FE(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function IO(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Fpe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Bpe=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},jpe={}.hasOwnProperty;class QC extends Bpe{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=_pe()}copy(){const t=new QC;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(PE(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(UE("data",this.frozen),this.namespace[t]=n,this):jpe.call(this.namespace,t)&&this.namespace[t]||void 0:t?(UE("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=Ag(t),r=this.parser||this.Parser;return BE("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),BE("process",this.parser||this.Parser),jE("process",this.compiler||this.Compiler),n?o(void 0,n):new Promise(o);function o(a,s){const c=Ag(t),u=r.parse(c);r.run(u,c,function(p,h,g){if(p||!h||!g)return d(p);const y=h,b=r.stringify(y,g);zpe(b)?g.value=b:g.result=b,d(p,g)});function d(p,h){p||!h?s(p):a?a(h):n(void 0,h)}}}processSync(t){let n=!1,r;return this.freeze(),BE("processSync",this.parser||this.Parser),jE("processSync",this.compiler||this.Compiler),this.process(t,o),NO("processSync","process",n),r;function o(a,s){n=!0,DO(a),r=s}}run(t,n,r){OO(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(s,c){const u=Ag(n);o.run(t,u,d);function d(p,h,g){const y=h||t;p?c(p):s?s(y):r(void 0,y,g)}}}runSync(t,n){let r=!1,o;return this.run(t,n,a),NO("runSync","run",r),o;function a(s,c){DO(s),o=c,r=!0}}stringify(t,n){this.freeze();const r=Ag(n),o=this.compiler||this.Compiler;return jE("stringify",o),OO(t),o(t,r)}use(t,...n){const r=this.attachers,o=this.namespace;if(UE("use",this.frozen),t!=null)if(typeof t=="function")u(t,n);else if(typeof t=="object")Array.isArray(t)?c(t):s(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 s(d);else throw new TypeError("Expected usable value, not `"+d+"`")}function s(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");c(d.plugins),d.settings&&(o.settings=PE(!0,o.settings,d.settings))}function c(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,g=-1;for(;++h<r.length;)if(r[h][0]===d){g=h;break}if(g===-1)r.push([d,...p]);else if(p.length>0){let[y,...b]=p;const x=r[g][1];ET(x)&&ET(y)&&(y=PE(!0,x,y)),r[g]=[d,y,...b]}}}}const Upe=new QC().freeze();function BE(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function jE(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function UE(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 OO(e){if(!ET(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function NO(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ag(e){return Hpe(e)?e:new OM(e)}function Hpe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function zpe(e){return typeof e=="string"||$pe(e)}function $pe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Vpe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",PO=[],LO={allowDangerousHtml:!0},Gpe=/^(https?|ircs?|mailto|xmpp)$/i,qpe=[{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 Wpe(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",o=e.className,a=e.components,s=e.disallowedElements,c=e.rehypePlugins||PO,u=e.remarkPlugins||PO,d=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...LO}:LO,p=e.skipHtml,h=e.unwrapDisallowed,g=e.urlTransform||Ype,y=Upe().use(Dfe).use(u).use(Tpe,d).use(c),b=new OM;typeof r=="string"&&(b.value=r);for(const D of qpe)Object.hasOwn(e,D.from)&&""+D.from+(D.to?"use `"+D.to+"` instead":"remove it")+Vpe+D.id;const x=y.parse(b);let S=y.runSync(x,b);return o&&(S={type:"element",tagName:"div",properties:{className:o},children:S.type==="root"?S.children:[S]}),wo(S,T),fue(S,{Fragment:v.Fragment,components:a,ignoreInvalidStyle:!0,jsx:v.jsx,jsxs:v.jsxs,passKeys:!0,passNode:!0});function T(D,w,R){if(D.type==="raw"&&R&&typeof w=="number")return p?R.children.splice(w,1):R.children[w]={type:"text",value:D.value},w;if(D.type==="element"){let I;for(I in RE)if(Object.hasOwn(RE,I)&&Object.hasOwn(D.properties,I)){const O=D.properties[I],F=RE[I];(F===null||F.includes(D.tagName))&&(D.properties[I]=g(String(O||""),I,D))}}if(D.type==="element"){let I=t?!t.includes(D.tagName):s?s.includes(D.tagName):!1;if(!I&&n&&typeof w=="number"&&(I=!n(D,w,R)),I&&R&&typeof w=="number")return h&&D.children?R.children.splice(w,1,...D.children):R.children.splice(w,1),w}}}function Ype(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||Gpe.test(e.slice(0,t))?e:""}function Kpe(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Qpe(e,t,n){const r=vb((n||{}).ignore||[]),o=Xpe(t);let a=-1;for(;++a<o.length;)IM(e,"text",s);function s(u,d){let p=-1,h;for(;++p<d.length;){const g=d[p],y=h?h.children:void 0;if(r(g,y?y.indexOf(g):void 0,h))return;h=g}if(h)return c(u,d)}function c(u,d){const p=d[d.length-1],h=o[a][0],g=o[a][1];let y=0;const b=p.children.indexOf(u);let x=!1,S=[];h.lastIndex=0;let T=h.exec(u.value);for(;T;){const D=T.index,w={index:T.index,input:T.input,stack:[...d,u]};let R=g(...T,w);if(typeof R=="string"&&(R=R.length>0?{type:"text",value:R}:void 0),R===!1?h.lastIndex=D+1:(y!==D&&S.push({type:"text",value:u.value.slice(y,D)}),Array.isArray(R)?S.push(...R):R&&S.push(R),y=D+T[0].length,x=!0),!h.global)break;T=h.exec(u.value)}return x?(y<u.value.length&&S.push({type:"text",value:u.value.slice(y)}),p.children.splice(b,1,...S)):S=[u],b+S.length}}function Xpe(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([Zpe(o[0]),Jpe(o[1])])}return t}function Zpe(e){return typeof e=="string"?new RegExp(Kpe(e),"g"):e}function Jpe(e){return typeof e=="function"?e:function(){return e}}const HE="phrasing",zE=["autolink","link","image","label"];function ehe(){return{transforms:[she],enter:{literalAutolink:nhe,literalAutolinkEmail:$E,literalAutolinkHttp:$E,literalAutolinkWww:$E},exit:{literalAutolink:ihe,literalAutolinkEmail:ahe,literalAutolinkHttp:rhe,literalAutolinkWww:ohe}}}function the(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:HE,notInConstruct:zE},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:HE,notInConstruct:zE},{character:":",before:"[ps]",after:"\\/",inConstruct:HE,notInConstruct:zE}]}}function nhe(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function $E(e){this.config.enter.autolinkProtocol.call(this,e)}function rhe(e){this.config.exit.autolinkProtocol.call(this,e)}function ohe(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 ahe(e){this.config.exit.autolinkEmail.call(this,e)}function ihe(e){this.exit(e)}function she(e){Qpe(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,lhe],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,che]],{ignore:["link","linkReference"]})}function lhe(e,t,n,r,o){let a="";if(!NM(o)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!uhe(n)))return!1;const s=dhe(n+r);if(!s[0])return!1;const c={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[c,{type:"text",value:s[1]}]:c}function che(e,t,n,r){return!NM(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function uhe(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 dhe(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=Hy(e,"(");let a=Hy(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 NM(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||cc(n)||gb(n))&&(!t||n!==47)}PM.peek=Ehe;function fhe(){this.buffer()}function phe(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function hhe(){this.buffer()}function mhe(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function ghe(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ba(this.sliceSerialize(e)).toLowerCase(),n.label=t}function yhe(e){this.exit(e)}function bhe(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ba(this.sliceSerialize(e)).toLowerCase(),n.label=t}function vhe(e){this.exit(e)}function Ehe(){return"["}function PM(e,t,n,r){const o=n.createTracker(r);let a=o.move("[^");const s=n.enter("footnoteReference"),c=n.enter("reference");return a+=o.move(n.safe(n.associationId(e),{after:"]",before:a})),c(),s(),a+=o.move("]"),a}function xhe(){return{enter:{gfmFootnoteCallString:fhe,gfmFootnoteCall:phe,gfmFootnoteDefinitionLabelString:hhe,gfmFootnoteDefinition:mhe},exit:{gfmFootnoteCallString:ghe,gfmFootnoteCall:yhe,gfmFootnoteDefinitionLabelString:bhe,gfmFootnoteDefinition:vhe}}}function The(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:PM},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,o,a,s){const c=a.createTracker(s);let u=c.move("[^");const d=a.enter("footnoteDefinition"),p=a.enter("label");return u+=c.move(a.safe(a.associationId(r),{before:u,after:"]"})),p(),u+=c.move("]:"),r.children&&r.children.length>0&&(c.shift(4),u+=c.move((t?`
|
|
375
|
+
`:" ")+a.indentLines(a.containerFlow(r,c.current()),t?LM:She))),d(),u}}function She(e,t,n){return t===0?e:LM(e,t,n)}function LM(e,t,n){return(n?"":" ")+e}const Che=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];MM.peek=Dhe;function _he(){return{canContainEols:["delete"],enter:{strikethrough:khe},exit:{strikethrough:whe}}}function Ahe(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Che}],handlers:{delete:MM}}}function khe(e){this.enter({type:"delete",children:[]},e)}function whe(e){this.exit(e)}function MM(e,t,n,r){const o=n.createTracker(r),a=n.enter("strikethrough");let s=o.move("~~");return s+=n.containerPhrasing(e,{...o.current(),before:s,after:"~"}),s+=o.move("~~"),a(),s}function Dhe(){return"~"}function Rhe(e){return e.length}function Ihe(e,t){const n=t||{},r=(n.align||[]).concat(),o=n.stringLength||Rhe,a=[],s=[],c=[],u=[];let d=0,p=-1;for(;++p<e.length;){const x=[],S=[];let T=-1;for(e[p].length>d&&(d=e[p].length);++T<e[p].length;){const D=Ohe(e[p][T]);if(n.alignDelimiters!==!1){const w=o(D);S[T]=w,(u[T]===void 0||w>u[T])&&(u[T]=w)}x.push(D)}s[p]=x,c[p]=S}let h=-1;if(typeof r=="object"&&"length"in r)for(;++h<d;)a[h]=MO(r[h]);else{const x=MO(r);for(;++h<d;)a[h]=x}h=-1;const g=[],y=[];for(;++h<d;){const x=a[h];let S="",T="";x===99?(S=":",T=":"):x===108?S=":":x===114&&(T=":");let D=n.alignDelimiters===!1?1:Math.max(1,u[h]-S.length-T.length);const w=S+"-".repeat(D)+T;n.alignDelimiters!==!1&&(D=S.length+D+T.length,D>u[h]&&(u[h]=D),y[h]=D),g[h]=w}s.splice(1,0,g),c.splice(1,0,y),p=-1;const b=[];for(;++p<s.length;){const x=s[p],S=c[p];h=-1;const T=[];for(;++h<d;){const D=x[h]||"";let w="",R="";if(n.alignDelimiters!==!1){const I=u[h]-(S[h]||0),O=a[h];O===114?w=" ".repeat(I):O===99?I%2?(w=" ".repeat(I/2+.5),R=" ".repeat(I/2-.5)):(w=" ".repeat(I/2),R=w):R=" ".repeat(I)}n.delimiterStart!==!1&&!h&&T.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&D==="")&&(n.delimiterStart!==!1||h)&&T.push(" "),n.alignDelimiters!==!1&&T.push(w),T.push(D),n.alignDelimiters!==!1&&T.push(R),n.padding!==!1&&T.push(" "),(n.delimiterEnd!==!1||h!==d-1)&&T.push("|")}b.push(n.delimiterEnd===!1?T.join("").replace(/ +$/,""):T.join(""))}return b.join(`
|
|
376
|
+
`)}function Ohe(e){return e==null?"":String(e)}function MO(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 Nhe(e,t,n,r){const o=n.enter("blockquote"),a=n.createTracker(r);a.move("> "),a.shift(2);const s=n.indentLines(n.containerFlow(e,a.current()),Phe);return o(),s}function Phe(e,t,n){return">"+(n?"":" ")+e}function Lhe(e,t){return FO(e,t.inConstruct,!0)&&!FO(e,t.notInConstruct,!1)}function FO(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 BO(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;)if(n.unsafe[o].character===`
|
|
377
|
+
`&&Lhe(n.stack,n.unsafe[o]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
378
|
+
`}function Mhe(e,t){const n=String(e);let r=n.indexOf(t),o=r,a=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===o?++a>s&&(s=a):a=1,o=r+t.length,r=n.indexOf(t,o);return s}function Fhe(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 Bhe(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 jhe(e,t,n,r){const o=Bhe(n),a=e.value||"",s=o==="`"?"GraveAccent":"Tilde";if(Fhe(e,n)){const h=n.enter("codeIndented"),g=n.indentLines(a,Uhe);return h(),g}const c=n.createTracker(r),u=o.repeat(Math.max(Mhe(a,o)+1,3)),d=n.enter("codeFenced");let p=c.move(u);if(e.lang){const h=n.enter(`codeFencedLang${s}`);p+=c.move(n.safe(e.lang,{before:p,after:" ",encode:["`"],...c.current()})),h()}if(e.lang&&e.meta){const h=n.enter(`codeFencedMeta${s}`);p+=c.move(" "),p+=c.move(n.safe(e.meta,{before:p,after:`
|
|
379
|
+
`,encode:["`"],...c.current()})),h()}return p+=c.move(`
|
|
380
|
+
`),a&&(p+=c.move(a+`
|
|
381
|
+
`)),p+=c.move(u),d(),p}function Uhe(e,t,n){return(n?"":" ")+e}function XC(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 Hhe(e,t,n,r){const o=XC(n),a=o==='"'?"Quote":"Apostrophe",s=n.enter("definition");let c=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("]: "),c(),!e.url||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),d+=u.move("<"),d+=u.move(n.safe(e.url,{before:d,after:">",...u.current()})),d+=u.move(">")):(c=n.enter("destinationRaw"),d+=u.move(n.safe(e.url,{before:d,after:e.title?" ":`
|
|
382
|
+
`,...u.current()}))),c(),e.title&&(c=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),c()),s(),d}function zhe(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 ph(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Jy(e,t,n){const r=Zu(e),o=Zu(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}}FM.peek=$he;function FM(e,t,n,r){const o=zhe(n),a=n.enter("emphasis"),s=n.createTracker(r),c=s.move(o);let u=s.move(n.containerPhrasing(e,{after:o,before:c,...s.current()}));const d=u.charCodeAt(0),p=Jy(r.before.charCodeAt(r.before.length-1),d,o);p.inside&&(u=ph(d)+u.slice(1));const h=u.charCodeAt(u.length-1),g=Jy(r.after.charCodeAt(0),h,o);g.inside&&(u=u.slice(0,-1)+ph(h));const y=s.move(o);return a(),n.attentionEncodeSurroundingInfo={after:g.outside,before:p.outside},c+u+y}function $he(e,t,n){return n.options.emphasis||"*"}function Vhe(e,t){let n=!1;return wo(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Zy}),!!((!e.depth||e.depth<3)&&$C(e)&&(t.options.setext||n))}function Ghe(e,t,n,r){const o=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(Vhe(e,n)){const p=n.enter("headingSetext"),h=n.enter("phrasing"),g=n.containerPhrasing(e,{...a.current(),before:`
|
|
383
|
+
`,after:`
|
|
384
|
+
`});return h(),p(),g+`
|
|
385
|
+
`+(o===1?"=":"-").repeat(g.length-(Math.max(g.lastIndexOf("\r"),g.lastIndexOf(`
|
|
386
|
+
`))+1))}const s="#".repeat(o),c=n.enter("headingAtx"),u=n.enter("phrasing");a.move(s+" ");let d=n.containerPhrasing(e,{before:"# ",after:`
|
|
387
|
+
`,...a.current()});return/^[\t ]/.test(d)&&(d=ph(d.charCodeAt(0))+d.slice(1)),d=d?s+" "+d:s,n.options.closeAtx&&(d+=" "+s),u(),c(),d}BM.peek=qhe;function BM(e){return e.value||""}function qhe(){return"<"}jM.peek=Whe;function jM(e,t,n,r){const o=XC(n),a=o==='"'?"Quote":"Apostrophe",s=n.enter("image");let c=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("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),d+=u.move("<"),d+=u.move(n.safe(e.url,{before:d,after:">",...u.current()})),d+=u.move(">")):(c=n.enter("destinationRaw"),d+=u.move(n.safe(e.url,{before:d,after:e.title?" ":")",...u.current()}))),c(),e.title&&(c=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),c()),d+=u.move(")"),s(),d}function Whe(){return"!"}UM.peek=Yhe;function UM(e,t,n,r){const o=e.referenceType,a=n.enter("imageReference");let s=n.enter("label");const c=n.createTracker(r);let u=c.move("![");const d=n.safe(e.alt,{before:u,after:"]",...c.current()});u+=c.move(d+"]["),s();const p=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),{before:u,after:"]",...c.current()});return s(),n.stack=p,a(),o==="full"||!d||d!==h?u+=c.move(h+"]"):o==="shortcut"?u=u.slice(0,-1):u+=c.move("]"),u}function Yhe(){return"!"}HM.peek=Khe;function HM(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 s=n.unsafe[a],c=n.compilePattern(s);let u;if(s.atBreak)for(;u=c.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 Khe(){return"`"}function zM(e,t){const n=$C(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))}$M.peek=Qhe;function $M(e,t,n,r){const o=XC(n),a=o==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let c,u;if(zM(e,n)){const p=n.stack;n.stack=[],c=n.enter("autolink");let h=s.move("<");return h+=s.move(n.containerPhrasing(e,{before:h,after:">",...s.current()})),h+=s.move(">"),c(),n.stack=p,h}c=n.enter("link"),u=n.enter("label");let d=s.move("[");return d+=s.move(n.containerPhrasing(e,{before:d,after:"](",...s.current()})),d+=s.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),d+=s.move("<"),d+=s.move(n.safe(e.url,{before:d,after:">",...s.current()})),d+=s.move(">")):(u=n.enter("destinationRaw"),d+=s.move(n.safe(e.url,{before:d,after:e.title?" ":")",...s.current()}))),u(),e.title&&(u=n.enter(`title${a}`),d+=s.move(" "+o),d+=s.move(n.safe(e.title,{before:d,after:o,...s.current()})),d+=s.move(o),u()),d+=s.move(")"),c(),d}function Qhe(e,t,n){return zM(e,n)?"<":"["}VM.peek=Xhe;function VM(e,t,n,r){const o=e.referenceType,a=n.enter("linkReference");let s=n.enter("label");const c=n.createTracker(r);let u=c.move("[");const d=n.containerPhrasing(e,{before:u,after:"]",...c.current()});u+=c.move(d+"]["),s();const p=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),{before:u,after:"]",...c.current()});return s(),n.stack=p,a(),o==="full"||!d||d!==h?u+=c.move(h+"]"):o==="shortcut"?u=u.slice(0,-1):u+=c.move("]"),u}function Xhe(){return"["}function ZC(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 Zhe(e){const t=ZC(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 Jhe(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 GM(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 eme(e,t,n,r){const o=n.enter("list"),a=n.bulletCurrent;let s=e.ordered?Jhe(n):ZC(n);const c=e.ordered?s==="."?")":".":Zhe(n);let u=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const p=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&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),GM(n)===s&&p){let h=-1;for(;++h<e.children.length;){const g=e.children[h];if(g&&g.type==="listItem"&&g.children&&g.children[0]&&g.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(s=c),n.bulletCurrent=s;const d=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=a,o(),d}function tme(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 nme(e,t,n,r){const o=tme(n);let a=n.bulletCurrent||ZC(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 s=a.length+1;(o==="tab"||o==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const c=n.createTracker(r);c.move(a+" ".repeat(s-a.length)),c.shift(s);const u=n.enter("listItem"),d=n.indentLines(n.containerFlow(e,c.current()),p);return u(),d;function p(h,g,y){return g?(y?"":" ".repeat(s))+h:(y?a:a+" ".repeat(s-a.length))+h}}function rme(e,t,n,r){const o=n.enter("paragraph"),a=n.enter("phrasing"),s=n.containerPhrasing(e,r);return a(),o(),s}const ome=vb(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function ame(e,t,n,r){return(e.children.some(function(o){return ome(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function ime(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}qM.peek=sme;function qM(e,t,n,r){const o=ime(n),a=n.enter("strong"),s=n.createTracker(r),c=s.move(o+o);let u=s.move(n.containerPhrasing(e,{after:o,before:c,...s.current()}));const d=u.charCodeAt(0),p=Jy(r.before.charCodeAt(r.before.length-1),d,o);p.inside&&(u=ph(d)+u.slice(1));const h=u.charCodeAt(u.length-1),g=Jy(r.after.charCodeAt(0),h,o);g.inside&&(u=u.slice(0,-1)+ph(h));const y=s.move(o+o);return a(),n.attentionEncodeSurroundingInfo={after:g.outside,before:p.outside},c+u+y}function sme(e,t,n){return n.options.strong||"*"}function lme(e,t,n,r){return n.safe(e.value,r)}function cme(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 ume(e,t,n){const r=(GM(n)+(n.options.ruleSpaces?" ":"")).repeat(cme(n));return n.options.ruleSpaces?r.slice(0,-1):r}const WM={blockquote:Nhe,break:BO,code:jhe,definition:Hhe,emphasis:FM,hardBreak:BO,heading:Ghe,html:BM,image:jM,imageReference:UM,inlineCode:HM,link:$M,linkReference:VM,list:eme,listItem:nme,paragraph:rme,root:ame,strong:qM,text:lme,thematicBreak:ume};function dme(){return{enter:{table:fme,tableData:jO,tableHeader:jO,tableRow:hme},exit:{codeText:mme,table:pme,tableData:VE,tableHeader:VE,tableRow:VE}}}function fme(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 pme(e){this.exit(e),this.data.inTable=void 0}function hme(e){this.enter({type:"tableRow",children:[]},e)}function VE(e){this.exit(e)}function jO(e){this.enter({type:"tableCell",children:[]},e)}function mme(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,gme));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function gme(e,t){return t==="|"?t:e}function yme(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
388
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:g,table:s,tableCell:u,tableRow:c}};function s(y,b,x,S){return d(p(y,x,S),y.align)}function c(y,b,x,S){const T=h(y,x,S),D=d([T]);return D.slice(0,D.indexOf(`
|
|
389
|
+
`))}function u(y,b,x,S){const T=x.enter("tableCell"),D=x.enter("phrasing"),w=x.containerPhrasing(y,{...S,before:a,after:a});return D(),T(),w}function d(y,b){return Ihe(y,{align:b,alignDelimiters:r,padding:n,stringLength:o})}function p(y,b,x){const S=y.children;let T=-1;const D=[],w=b.enter("table");for(;++T<S.length;)D[T]=h(S[T],b,x);return w(),D}function h(y,b,x){const S=y.children;let T=-1;const D=[],w=b.enter("tableRow");for(;++T<S.length;)D[T]=u(S[T],y,b,x);return w(),D}function g(y,b,x){let S=WM.inlineCode(y,b,x);return x.stack.includes("tableCell")&&(S=S.replace(/\|/g,"\\$&")),S}}function bme(){return{exit:{taskListCheckValueChecked:UO,taskListCheckValueUnchecked:UO,paragraph:Eme}}}function vme(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:xme}}}function UO(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Eme(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,s;for(;++a<o.length;){const c=o[a];if(c.type==="paragraph"){s=c;break}}s===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 xme(e,t,n,r){const o=e.children[0],a=typeof e.checked=="boolean"&&o&&o.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",c=n.createTracker(r);a&&c.move(s);let u=WM.listItem(e,t,n,{...r,...c.current()});return a&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,d)),u;function d(p){return p+s}}function Tme(){return[ehe(),xhe(),_he(),dme(),bme()]}function Sme(e){return{extensions:[the(),The(e),Ahe(),yme(e),vme()]}}const Cme={tokenize:Rme,partial:!0},YM={tokenize:Ime,partial:!0},KM={tokenize:Ome,partial:!0},QM={tokenize:Nme,partial:!0},_me={tokenize:Pme,partial:!0},XM={name:"wwwAutolink",tokenize:wme,previous:JM},ZM={name:"protocolAutolink",tokenize:Dme,previous:e6},is={name:"emailAutolink",tokenize:kme,previous:t6},xi={};function Ame(){return{text:xi}}let Al=48;for(;Al<123;)xi[Al]=is,Al++,Al===58?Al=65:Al===91&&(Al=97);xi[43]=is;xi[45]=is;xi[46]=is;xi[95]=is;xi[72]=[is,ZM];xi[104]=[is,ZM];xi[87]=[is,XM];xi[119]=[is,XM];function kme(e,t,n){const r=this;let o,a;return s;function s(h){return!TT(h)||!t6.call(r,r.previous)||JC(r.events)?n(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),c(h))}function c(h){return TT(h)?(e.consume(h),c):h===64?(e.consume(h),u):n(h)}function u(h){return h===46?e.check(_me,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&&io(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(h)):n(h)}}function wme(e,t,n){const r=this;return o;function o(s){return s!==87&&s!==119||!JM.call(r,r.previous)||JC(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Cme,e.attempt(YM,e.attempt(KM,a),n),n)(s))}function a(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function Dme(e,t,n){const r=this;let o="",a=!1;return s;function s(h){return(h===72||h===104)&&e6.call(r,r.previous)&&!JC(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(h),e.consume(h),c):n(h)}function c(h){if(io(h)&&o.length<5)return o+=String.fromCodePoint(h),e.consume(h),c;if(h===58){const g=o.toLowerCase();if(g==="http"||g==="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||Qy(h)||wn(h)||cc(h)||gb(h)?n(h):e.attempt(YM,e.attempt(KM,p),n)(h)}function p(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}function Rme(e,t,n){let r=0;return o;function o(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),o):s===46&&r===3?(e.consume(s),a):n(s)}function a(s){return s===null?n(s):t(s)}}function Ime(e,t,n){let r,o,a;return s;function s(d){return d===46||d===95?e.check(QM,u,c)(d):d===null||wn(d)||cc(d)||d!==45&&gb(d)?u(d):(a=!0,e.consume(d),s)}function c(d){return d===95?r=!0:(o=r,r=void 0),e.consume(d),s}function u(d){return o||r||!a?n(d):t(d)}}function Ome(e,t){let n=0,r=0;return o;function o(s){return s===40?(n++,e.consume(s),o):s===41&&r<n?a(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(QM,t,a)(s):s===null||wn(s)||cc(s)?t(s):(e.consume(s),o)}function a(s){return s===41&&r++,e.consume(s),o}}function Nme(e,t,n){return r;function r(c){return c===33||c===34||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===63||c===95||c===126?(e.consume(c),r):c===38?(e.consume(c),a):c===93?(e.consume(c),o):c===60||c===null||wn(c)||cc(c)?t(c):n(c)}function o(c){return c===null||c===40||c===91||wn(c)||cc(c)?t(c):r(c)}function a(c){return io(c)?s(c):n(c)}function s(c){return c===59?(e.consume(c),r):io(c)?(e.consume(c),s):n(c)}}function Pme(e,t,n){return r;function r(a){return e.consume(a),o}function o(a){return Xr(a)?n(a):t(a)}}function JM(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||wn(e)}function e6(e){return!io(e)}function t6(e){return!(e===47||TT(e))}function TT(e){return e===43||e===45||e===46||e===95||Xr(e)}function JC(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 Lme={tokenize:$me,partial:!0};function Mme(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Ume,continuation:{tokenize:Hme},exit:zme}},text:{91:{name:"gfmFootnoteCall",tokenize:jme},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Fme,resolveTo:Bme}}}}function Fme(e,t,n){const r=this;let o=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;o--;){const u=r.events[o][1];if(u.type==="labelImage"){s=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return c;function c(u){if(!s||!s._balanced)return n(u);const d=Ba(r.sliceSerialize({start:s.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 Bme(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)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},c=[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",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...c),e}function jme(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,s;return c;function c(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&&!s||h===null||h===91||wn(h))return n(h);if(h===93){e.exit("chunkString");const g=e.exit("gfmFootnoteCallString");return o.includes(Ba(r.sliceSerialize(g)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(h)}return wn(h)||(s=!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 Ume(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=0,c;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(s>999||b===93&&!c||b===null||b===91||wn(b))return n(b);if(b===93){e.exit("chunkString");const x=e.exit("gfmFootnoteDefinitionLabelString");return a=Ba(r.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),g}return wn(b)||(c=!0),s++,e.consume(b),b===92?h:p}function h(b){return b===91||b===92||b===93?(e.consume(b),s++,p):p(b)}function g(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),o.includes(a)||o.push(a),nn(e,y,"gfmFootnoteDefinitionWhitespace")):n(b)}function y(b){return t(b)}}function Hme(e,t,n){return e.check($h,t,e.attempt(Lme,t,n))}function zme(e){e.exit("gfmFootnoteDefinition")}function $me(e,t,n){const r=this;return nn(e,o,"gfmFootnoteDefinitionIndent",5);function o(a){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):n(a)}}function Vme(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,s){let c=-1;for(;++c<a.length;)if(a[c][0]==="enter"&&a[c][1].type==="strikethroughSequenceTemporary"&&a[c][1]._close){let u=c;for(;u--;)if(a[u][0]==="exit"&&a[u][1].type==="strikethroughSequenceTemporary"&&a[u][1]._open&&a[c][1].end.offset-a[c][1].start.offset===a[u][1].end.offset-a[u][1].start.offset){a[c][1].type="strikethroughSequence",a[u][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},a[u][1].start),end:Object.assign({},a[c][1].end)},p={type:"strikethroughText",start:Object.assign({},a[u][1].end),end:Object.assign({},a[c][1].start)},h=[["enter",d,s],["enter",a[u][1],s],["exit",a[u][1],s],["enter",p,s]],g=s.parser.constructs.insideSpan.null;g&&qo(h,h.length,0,yb(g,a.slice(u+1,c),s)),qo(h,h.length,0,[["exit",p,s],["enter",a[c][1],s],["exit",a[c][1],s],["exit",d,s]]),qo(a,u-1,c-u+3,h),c=u+h.length-2;break}}for(c=-1;++c<a.length;)a[c][1].type==="strikethroughSequenceTemporary"&&(a[c][1].type="data");return a}function o(a,s,c){const u=this.previous,d=this.events;let p=0;return h;function h(y){return u===126&&d[d.length-1][1].type!=="characterEscape"?c(y):(a.enter("strikethroughSequenceTemporary"),g(y))}function g(y){const b=Zu(u);if(y===126)return p>1?c(y):(a.consume(y),p++,g);if(p<2&&!t)return c(y);const x=a.exit("strikethroughSequenceTemporary"),S=Zu(y);return x._open=!S||S===2&&!!b,x._close=!b||b===2&&!!S,s(y)}}}class Gme{constructor(){this.map=[]}add(t,n,r){qme(this,t,n,r)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[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 qme(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 Wme(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 Yme(){return{flow:{null:{name:"table",tokenize:Kme,resolveAll:Qme}}}}function Kme(e,t,n){const r=this;let o=0,a=0,s;return c;function c(C){let M=r.events.length-1;for(;M>-1;){const q=r.events[M][1].type;if(q==="lineEnding"||q==="linePrefix")M--;else break}const $=M>-1?r.events[M][1].type:null,z=$==="tableHead"||$==="tableRow"?O:u;return z===O&&r.parser.lazy[r.now().line]?n(C):z(C)}function u(C){return e.enter("tableHead"),e.enter("tableRow"),d(C)}function d(C){return C===124||(s=!0,a+=1),p(C)}function p(C){return C===null?n(C):vt(C)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),y):n(C):Qt(C)?nn(e,p,"whitespace")(C):(a+=1,s&&(s=!1,o+=1),C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),s=!0,p):(e.enter("data"),h(C)))}function h(C){return C===null||C===124||wn(C)?(e.exit("data"),p(C)):(e.consume(C),C===92?g:h)}function g(C){return C===92||C===124?(e.consume(C),h):h(C)}function y(C){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(C):(e.enter("tableDelimiterRow"),s=!1,Qt(C)?nn(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):b(C))}function b(C){return C===45||C===58?S(C):C===124?(s=!0,e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),x):I(C)}function x(C){return Qt(C)?nn(e,S,"whitespace")(C):S(C)}function S(C){return C===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),T):C===45?(a+=1,T(C)):C===null||vt(C)?R(C):I(C)}function T(C){return C===45?(e.enter("tableDelimiterFiller"),D(C)):I(C)}function D(C){return C===45?(e.consume(C),D):C===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(C))}function w(C){return Qt(C)?nn(e,R,"whitespace")(C):R(C)}function R(C){return C===124?b(C):C===null||vt(C)?!s||o!==a?I(C):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(C)):I(C)}function I(C){return n(C)}function O(C){return e.enter("tableRow"),F(C)}function F(C){return C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),F):C===null||vt(C)?(e.exit("tableRow"),t(C)):Qt(C)?nn(e,F,"whitespace")(C):(e.enter("data"),j(C))}function j(C){return C===null||C===124||wn(C)?(e.exit("data"),F(C)):(e.consume(C),C===92?H:j)}function H(C){return C===92||C===124?(e.consume(C),j):j(C)}}function Qme(e,t){let n=-1,r=!0,o=0,a=[0,0,0,0],s=[0,0,0,0],c=!1,u=0,d,p,h;const g=new Gme;for(;++n<e.length;){const y=e[n],b=y[1];y[0]==="enter"?b.type==="tableHead"?(c=!1,u!==0&&(HO(g,t,u,d,p),p=void 0,u=0),d={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},g.add(n,0,[["enter",d,t]])):b.type==="tableRow"||b.type==="tableDelimiterRow"?(r=!0,h=void 0,a=[0,0,0,0],s=[0,n+1,0,0],c&&(c=!1,p={type:"tableBody",start:Object.assign({},b.start),end:Object.assign({},b.end)},g.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,s[2]===0&&(a[1]!==0&&(s[0]=s[1],h=kg(g,t,a,o,void 0,h),a=[0,0,0,0]),s[2]=n)):b.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(s[0]=s[1],h=kg(g,t,a,o,void 0,h)),a=s,s=[a[1],n,0,0])):b.type==="tableHead"?(c=!0,u=n):b.type==="tableRow"||b.type==="tableDelimiterRow"?(u=n,a[1]!==0?(s[0]=s[1],h=kg(g,t,a,o,n,h)):s[1]!==0&&(h=kg(g,t,s,o,n,h)),o=0):o&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(s[3]=n)}for(u!==0&&HO(g,t,u,d,p),g.consume(t.events),n=-1;++n<t.events.length;){const y=t.events[n];y[0]==="enter"&&y[1].type==="table"&&(y[1]._align=Wme(t.events,n))}return e}function kg(e,t,n,r,o,a){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",c="tableContent";n[0]!==0&&(a.end=Object.assign({},Eu(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const u=Eu(t.events,n[1]);if(a={type:s,start:Object.assign({},u),end:Object.assign({},u)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const d=Eu(t.events,n[2]),p=Eu(t.events,n[3]),h={type:c,start:Object.assign({},d),end:Object.assign({},p)};if(e.add(n[2],0,[["enter",h,t]]),r!==2){const g=t.events[n[2]],y=t.events[n[3]];if(g[1].end=Object.assign({},y[1].end),g[1].type="chunkText",g[1].contentType="text",n[3]>n[2]+1){const b=n[2]+1,x=n[3]-n[2]-1;e.add(b,x,[])}}e.add(n[3]+1,0,[["exit",h,t]])}return o!==void 0&&(a.end=Object.assign({},Eu(t.events,o)),e.add(o,0,[["exit",a,t]]),a=void 0),a}function HO(e,t,n,r,o){const a=[],s=Eu(t.events,n);o&&(o.end=Object.assign({},s),a.push(["exit",o,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function Eu(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Xme={name:"tasklistCheck",tokenize:Jme};function Zme(){return{text:{91:Xme}}}function Jme(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 wn(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),s):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),s):n(u)}function s(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),c):n(u)}function c(u){return vt(u)?t(u):Qt(u)?e.check({tokenize:ege},t,n)(u):n(u)}}function ege(e,t,n){return nn(e,r,"whitespace");function r(o){return o===null?n(o):t(o)}}function tge(e){return fM([Ame(),Mme(),Vme(e),Yme(),Zme()])}const nge={};function rge(e){const t=this,n=e||nge,r=t.data(),o=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);o.push(tge(n)),a.push(Tme()),s.push(Sme(n))}const zO=/[#.]/g;function oge(e,t){const n=e||"",r={};let o=0,a,s;for(;o<n.length;){zO.lastIndex=o;const c=zO.exec(n),u=n.slice(o,c?c.index:n.length);u&&(a?a==="#"?r.id=u:Array.isArray(r.className)?r.className.push(u):r.className=[u]:s=u,o+=u.length),c&&(a=c[0],o++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}function n6(e,t,n){const r=n?lge(n):void 0;function o(a,s,...c){let u;if(a==null){u={type:"root",children:[]};const d=s;c.unshift(d)}else{u=oge(a,t);const d=u.tagName.toLowerCase(),p=r?r.get(d):void 0;if(u.tagName=p||d,age(s))c.unshift(s);else for(const[h,g]of Object.entries(s))ige(e,u.properties,h,g)}for(const d of c)ST(u.children,d);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return o}function age(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 s of a)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function ige(e,t,n,r){const o=jh(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=cT(r):o.commaSeparated?a=lT(r):o.commaOrSpaceSeparated?a=cT(lT(r).join(" ")):a=$O(o,o.property,r):Array.isArray(r)?a=[...r]:a=o.property==="style"?sge(r):String(r);if(Array.isArray(a)){const s=[];for(const c of a)s.push($O(o,o.property,c));a=s}o.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[o.property]=a}}function ST(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)ST(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?ST(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function $O(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||ih(n)===ih(t)))return!0}return n}function sge(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function lge(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const cge=["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"],uge=n6(gd,"div"),dge=n6(os,"g",cge);function fge(e){const t=String(e),n=[];return{toOffset:o,toPoint:r};function r(a){if(typeof a=="number"&&a>-1&&a<=t.length){let s=0;for(;;){let c=n[s];if(c===void 0){const u=VO(t,n[s-1]);c=u===-1?t.length+1:u+1,n[s]=c}if(c>a)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a};s++}}}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 c=n[n.length-1],u=VO(t,c),d=u===-1?t.length+1:u+1;if(c===d)break;n.push(d)}const s=(a.line>1?n[a.line-2]:0)+a.column-1;if(s<n[a.line-1])return s}}}function VO(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
390
|
+
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const $l={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/"},r6={}.hasOwnProperty,pge=Object.prototype;function hge(e,t){const n=t||{};return e_({file:n.file||void 0,location:!1,schema:n.space==="svg"?os:gd,verbose:n.verbose||!1},e)}function e_(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},ty(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:o6(e,t.childNodes),data:{quirksMode:o}},e.file&&e.location){const a=String(e.file),s=fge(a),c=s.toPoint(0),u=s.toPoint(a.length);n.position={start:c,end:u}}return n}case"#documentType":{const r=t;return n={type:"doctype"},ty(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},ty(e,r,n),n}default:return n=mge(e,t),n}}function o6(e,t){let n=-1;const r=[];for(;++n<t.length;){const o=e_(e,t[n]);r.push(o)}return r}function mge(e,t){const n=e.schema;e.schema=t.namespaceURI===$l.svg?os:gd;let r=-1;const o={};for(;++r<t.attrs.length;){const s=t.attrs[r],c=(s.prefix?s.prefix+":":"")+s.name;r6.call(pge,c)||(o[c]=s.value)}const a=(e.schema.space==="svg"?dge:uge)(t.tagName,o,o6(e,t.childNodes));if(ty(e,t,a),a.tagName==="template"){const s=t,c=s.sourceCodeLocation,u=c&&c.startTag&&Au(c.startTag),d=c&&c.endTag&&Au(c.endTag),p=e_(e,s.content);u&&d&&e.file&&(p.position={start:u.end,end:d.start}),a.content=p}return e.schema=n,a}function ty(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=gge(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function gge(e,t,n){const r=Au(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 s;if(n.attrs)for(s in n.attrs)r6.call(n.attrs,s)&&(a[jh(e.schema,s).property]=Au(n.attrs[s]));n.startTag;const c=Au(n.startTag),u=n.endTag?Au(n.endTag):void 0,d={opening:c};u&&(d.closing=u),d.properties=a,t.data={position:d}}}return r}function Au(e){const t=GO({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=GO({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function GO(e){return e.line&&e.column?e:void 0}class Gh{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Gh.prototype.property={};Gh.prototype.normal={};Gh.prototype.space=null;function a6(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 Gh(n,r,t)}function CT(e){return e.toLowerCase()}class ka{constructor(t,n){this.property=t,this.attribute=n}}ka.prototype.space=null;ka.prototype.boolean=!1;ka.prototype.booleanish=!1;ka.prototype.overloadedBoolean=!1;ka.prototype.number=!1;ka.prototype.commaSeparated=!1;ka.prototype.spaceSeparated=!1;ka.prototype.commaOrSpaceSeparated=!1;ka.prototype.mustUseProperty=!1;ka.prototype.defined=!1;let yge=0;const Pt=bc(),fr=bc(),i6=bc(),Ve=bc(),On=bc(),Bu=bc(),Bo=bc();function bc(){return 2**++yge}const _T=Object.freeze(Object.defineProperty({__proto__:null,boolean:Pt,booleanish:fr,commaOrSpaceSeparated:Bo,commaSeparated:Bu,number:Ve,overloadedBoolean:i6,spaceSeparated:On},Symbol.toStringTag,{value:"Module"})),GE=Object.keys(_T);class t_ extends ka{constructor(t,n,r,o){let a=-1;if(super(t,n),qO(this,"space",o),typeof r=="number")for(;++a<GE.length;){const s=GE[a];qO(this,GE[a],(r&_T[s])===_T[s])}}}t_.prototype.defined=!0;function qO(e,t,n){n&&(e[t]=n)}const bge={}.hasOwnProperty;function Ed(e){const t={},n={};let r;for(r in e.properties)if(bge.call(e.properties,r)){const o=e.properties[r],a=new t_(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[CT(r)]=r,n[CT(a.attribute)]=r}return new Gh(t,n,e.space)}const s6=Ed({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}}),l6=Ed({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function c6(e,t){return t in e?e[t]:t}function u6(e,t){return c6(e,t.toLowerCase())}const d6=Ed({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:u6,properties:{xmlns:null,xmlnsXLink:null}}),f6=Ed({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:fr,ariaAutoComplete:null,ariaBusy:fr,ariaChecked:fr,ariaColCount:Ve,ariaColIndex:Ve,ariaColSpan:Ve,ariaControls:On,ariaCurrent:null,ariaDescribedBy:On,ariaDetails:null,ariaDisabled:fr,ariaDropEffect:On,ariaErrorMessage:null,ariaExpanded:fr,ariaFlowTo:On,ariaGrabbed:fr,ariaHasPopup:null,ariaHidden:fr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:On,ariaLevel:Ve,ariaLive:null,ariaModal:fr,ariaMultiLine:fr,ariaMultiSelectable:fr,ariaOrientation:null,ariaOwns:On,ariaPlaceholder:null,ariaPosInSet:Ve,ariaPressed:fr,ariaReadOnly:fr,ariaRelevant:null,ariaRequired:fr,ariaRoleDescription:On,ariaRowCount:Ve,ariaRowIndex:Ve,ariaRowSpan:Ve,ariaSelected:fr,ariaSetSize:Ve,ariaSort:null,ariaValueMax:Ve,ariaValueMin:Ve,ariaValueNow:Ve,ariaValueText:null,role:null}}),vge=Ed({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:u6,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Bu,acceptCharset:On,accessKey:On,action:null,allow:null,allowFullScreen:Pt,allowPaymentRequest:Pt,allowUserMedia:Pt,alt:null,as:null,async:Pt,autoCapitalize:null,autoComplete:On,autoFocus:Pt,autoPlay:Pt,blocking:On,capture:null,charSet:null,checked:Pt,cite:null,className:On,cols:Ve,colSpan:null,content:null,contentEditable:fr,controls:Pt,controlsList:On,coords:Ve|Bu,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Pt,defer:Pt,dir:null,dirName:null,disabled:Pt,download:i6,draggable:fr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Pt,formTarget:null,headers:On,height:Ve,hidden:Pt,high:Ve,href:null,hrefLang:null,htmlFor:On,httpEquiv:On,id:null,imageSizes:null,imageSrcSet:null,inert:Pt,inputMode:null,integrity:null,is:null,isMap:Pt,itemId:null,itemProp:On,itemRef:On,itemScope:Pt,itemType:On,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Pt,low:Ve,manifest:null,max:null,maxLength:Ve,media:null,method:null,min:null,minLength:Ve,multiple:Pt,muted:Pt,name:null,nonce:null,noModule:Pt,noValidate:Pt,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:Pt,optimum:Ve,pattern:null,ping:On,placeholder:null,playsInline:Pt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Pt,referrerPolicy:null,rel:On,required:Pt,reversed:Pt,rows:Ve,rowSpan:Ve,sandbox:On,scope:null,scoped:Pt,seamless:Pt,selected:Pt,shadowRootClonable:Pt,shadowRootDelegatesFocus:Pt,shadowRootMode:null,shape:null,size:Ve,sizes:null,slot:null,span:Ve,spellCheck:fr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ve,step:null,style:null,tabIndex:Ve,target:null,title:null,translate:null,type:null,typeMustMatch:Pt,useMap:null,value:fr,width:Ve,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:On,axis:null,background:null,bgColor:null,border:Ve,borderColor:null,bottomMargin:Ve,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Pt,declare:Pt,event:null,face:null,frame:null,frameBorder:null,hSpace:Ve,leftMargin:Ve,link:null,longDesc:null,lowSrc:null,marginHeight:Ve,marginWidth:Ve,noResize:Pt,noHref:Pt,noShade:Pt,noWrap:Pt,object:null,profile:null,prompt:null,rev:null,rightMargin:Ve,rules:null,scheme:null,scrolling:fr,standby:null,summary:null,text:null,topMargin:Ve,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ve,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Pt,disableRemotePlayback:Pt,prefix:null,property:null,results:Ve,security:null,unselectable:null}}),Ege=Ed({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:c6,properties:{about:Bo,accentHeight:Ve,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ve,amplitude:Ve,arabicForm:null,ascent:Ve,attributeName:null,attributeType:null,azimuth:Ve,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ve,by:null,calcMode:null,capHeight:Ve,className:On,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:Ve,diffuseConstant:Ve,direction:null,display:null,dur:null,divisor:Ve,dominantBaseline:null,download:Pt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ve,enableBackground:null,end:null,event:null,exponent:Ve,externalResourcesRequired:null,fill:null,fillOpacity:Ve,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:Bu,g2:Bu,glyphName:Bu,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ve,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ve,horizOriginX:Ve,horizOriginY:Ve,id:null,ideographic:Ve,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ve,k:Ve,k1:Ve,k2:Ve,k3:Ve,k4:Ve,kernelMatrix:Bo,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ve,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:Ve,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:Ve,overlineThickness:Ve,paintOrder:null,panose1:null,path:null,pathLength:Ve,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:On,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ve,pointsAtY:Ve,pointsAtZ:Ve,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Bo,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Bo,rev:Bo,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Bo,requiredFeatures:Bo,requiredFonts:Bo,requiredFormats:Bo,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:Ve,specularExponent:Ve,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ve,strikethroughThickness:Ve,string:null,stroke:null,strokeDashArray:Bo,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ve,strokeOpacity:Ve,strokeWidth:null,style:null,surfaceScale:Ve,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Bo,tabIndex:Ve,tableValues:null,target:null,targetX:Ve,targetY:Ve,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Bo,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ve,underlineThickness:Ve,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ve,values:null,vAlphabetic:Ve,vMathematical:Ve,vectorEffect:null,vHanging:Ve,vIdeographic:Ve,version:null,vertAdvY:Ve,vertOriginX:Ve,vertOriginY:Ve,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ve,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),xge=/^data[-\w.:]+$/i,WO=/-[a-z]/g,Tge=/[A-Z]/g;function Sge(e,t){const n=CT(t);let r=t,o=ka;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&xge.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(WO,_ge);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!WO.test(a)){let s=a.replace(Tge,Cge);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}o=t_}return new o(r,t)}function Cge(e){return"-"+e.toLowerCase()}function _ge(e){return e.charAt(1).toUpperCase()}const Age=a6([l6,s6,d6,f6,vge],"html"),p6=a6([l6,s6,d6,f6,Ege],"svg"),kge={},wge={}.hasOwnProperty,h6=sb("type",{handlers:{root:Rge,element:Lge,text:Nge,comment:Pge,doctype:Oge}});function Dge(e,t){const n=(t||kge).space;return h6(e,n==="svg"?p6:Age)}function Rge(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=n_(e.children,n,t),xd(e,n),n}function Ige(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=n_(e.children,n,t),xd(e,n),n}function Oge(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return xd(e,t),t}function Nge(e){const t={nodeName:"#text",value:e.value,parentNode:null};return xd(e,t),t}function Pge(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return xd(e,t),t}function Lge(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=p6);const o=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&wge.call(e.properties,a)){const u=Mge(r,a,e.properties[a]);u&&o.push(u)}}const s=r.space,c={nodeName:e.tagName,tagName:e.tagName,attrs:o,namespaceURI:$l[s],childNodes:[],parentNode:null};return c.childNodes=n_(e.children,c,r),xd(e,c),e.tagName==="template"&&e.content&&(c.content=Ige(e.content,r)),c}function Mge(e,t,n){const r=Sge(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?lb(n):cb(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=$l[r.space]}return o}function n_(e,t,n){let r=-1;const o=[];if(e)for(;++r<e.length;){const a=h6(e[r],n);a.parentNode=t,o.push(a)}return o}function xd(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 Fge=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]),Un="�";var V;(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"})(V||(V={}));const vo={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function m6(e){return e>=55296&&e<=57343}function Bge(e){return e>=56320&&e<=57343}function jge(e,t){return(e-55296)*1024+9216+t}function g6(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function y6(e){return e>=64976&&e<=65007||Fge.has(e)}var Te;(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"})(Te||(Te={}));const Uge=65536;class Hge{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=Uge,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,s=o+n,c=a+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:c,endOffset:c}}_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(Bge(n))return this.pos++,this._addGap(),jge(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,V.EOF;return this._err(Te.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,V.EOF;const r=this.html.charCodeAt(n);return r===V.CARRIAGE_RETURN?V.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,V.EOF;let t=this.html.charCodeAt(this.pos);return t===V.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,V.LINE_FEED):t===V.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,m6(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===V.LINE_FEED||t===V.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){g6(t)?this._err(Te.controlCharacterInInputStream):y6(t)&&this._err(Te.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Gt;(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"})(Gt||(Gt={}));function b6(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 v6=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))),zge=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var qE;const $ge=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]]),Vge=(qE=String.fromCodePoint)!==null&&qE!==void 0?qE:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Gge(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=$ge.get(e))!==null&&t!==void 0?t:e}var Nr;(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"})(Nr||(Nr={}));const qge=32;var qs;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(qs||(qs={}));function AT(e){return e>=Nr.ZERO&&e<=Nr.NINE}function Wge(e){return e>=Nr.UPPER_A&&e<=Nr.UPPER_F||e>=Nr.LOWER_A&&e<=Nr.LOWER_F}function Yge(e){return e>=Nr.UPPER_A&&e<=Nr.UPPER_Z||e>=Nr.LOWER_A&&e<=Nr.LOWER_Z||AT(e)}function Kge(e){return e===Nr.EQUALS||Yge(e)}var Ir;(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"})(Ir||(Ir={}));var Ki;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Ki||(Ki={}));class E6{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Ir.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ki.Strict}startEntity(t){this.decodeMode=t,this.state=Ir.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Ir.EntityStart:return t.charCodeAt(n)===Nr.NUM?(this.state=Ir.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Ir.NamedEntity,this.stateNamedEntity(t,n));case Ir.NumericStart:return this.stateNumericStart(t,n);case Ir.NumericDecimal:return this.stateNumericDecimal(t,n);case Ir.NumericHex:return this.stateNumericHex(t,n);case Ir.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|qge)===Nr.LOWER_X?(this.state=Ir.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Ir.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)+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(AT(o)||Wge(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(AT(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===Nr.SEMI)this.consumed+=1;else if(this.decodeMode===Ki.Strict)return 0;return this.emitCodePoint(Gge(this.result),this.consumed),this.errors&&(t!==Nr.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&qs.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=Qge(r,o,this.treeIndex+Math.max(1,a),s),this.treeIndex<0)return this.result===0||this.decodeMode===Ki.Attribute&&(a===0||Kge(s))?0:this.emitNotTerminatedNamedEntity();if(o=r[this.treeIndex],a=(o&qs.VALUE_LENGTH)>>14,a!==0){if(s===Nr.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==Ki.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]&qs.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]&~qs.VALUE_LENGTH:o[t+1],r),n===3&&this.emitCodePoint(o[t+2],r),r}end(){var t;switch(this.state){case Ir.NamedEntity:return this.result!==0&&(this.decodeMode!==Ki.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Ir.NumericDecimal:return this.emitNumericEntity(0,2);case Ir.NumericHex:return this.emitNumericEntity(0,3);case Ir.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Ir.EntityStart:return 0}}}function x6(e){let t="";const n=new E6(e,r=>t+=Vge(r));return function(r,o){let a=0,s=0;for(;(s=r.indexOf("&",s))>=0;){t+=r.slice(a,s),n.startEntity(o);const u=n.write(r,s+1);if(u<0){a=s+n.end();break}a=s+u,s=u===0?a+1:a}const c=t+r.slice(a);return t="",c}}function Qge(e,t,n,r){const o=(t&qs.BRANCH_LENGTH)>>7,a=t&qs.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 s=n,c=s+o-1;for(;s<=c;){const u=s+c>>>1,d=e[u];if(d<r)s=u+1;else if(d>r)c=u-1;else return e[u+o]}return-1}x6(v6);x6(zge);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 Kl;(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"})(Kl||(Kl={}));var ya;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(ya||(ya={}));var fe;(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"})(fe||(fe={}));var A;(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"})(A||(A={}));const Xge=new Map([[fe.A,A.A],[fe.ADDRESS,A.ADDRESS],[fe.ANNOTATION_XML,A.ANNOTATION_XML],[fe.APPLET,A.APPLET],[fe.AREA,A.AREA],[fe.ARTICLE,A.ARTICLE],[fe.ASIDE,A.ASIDE],[fe.B,A.B],[fe.BASE,A.BASE],[fe.BASEFONT,A.BASEFONT],[fe.BGSOUND,A.BGSOUND],[fe.BIG,A.BIG],[fe.BLOCKQUOTE,A.BLOCKQUOTE],[fe.BODY,A.BODY],[fe.BR,A.BR],[fe.BUTTON,A.BUTTON],[fe.CAPTION,A.CAPTION],[fe.CENTER,A.CENTER],[fe.CODE,A.CODE],[fe.COL,A.COL],[fe.COLGROUP,A.COLGROUP],[fe.DD,A.DD],[fe.DESC,A.DESC],[fe.DETAILS,A.DETAILS],[fe.DIALOG,A.DIALOG],[fe.DIR,A.DIR],[fe.DIV,A.DIV],[fe.DL,A.DL],[fe.DT,A.DT],[fe.EM,A.EM],[fe.EMBED,A.EMBED],[fe.FIELDSET,A.FIELDSET],[fe.FIGCAPTION,A.FIGCAPTION],[fe.FIGURE,A.FIGURE],[fe.FONT,A.FONT],[fe.FOOTER,A.FOOTER],[fe.FOREIGN_OBJECT,A.FOREIGN_OBJECT],[fe.FORM,A.FORM],[fe.FRAME,A.FRAME],[fe.FRAMESET,A.FRAMESET],[fe.H1,A.H1],[fe.H2,A.H2],[fe.H3,A.H3],[fe.H4,A.H4],[fe.H5,A.H5],[fe.H6,A.H6],[fe.HEAD,A.HEAD],[fe.HEADER,A.HEADER],[fe.HGROUP,A.HGROUP],[fe.HR,A.HR],[fe.HTML,A.HTML],[fe.I,A.I],[fe.IMG,A.IMG],[fe.IMAGE,A.IMAGE],[fe.INPUT,A.INPUT],[fe.IFRAME,A.IFRAME],[fe.KEYGEN,A.KEYGEN],[fe.LABEL,A.LABEL],[fe.LI,A.LI],[fe.LINK,A.LINK],[fe.LISTING,A.LISTING],[fe.MAIN,A.MAIN],[fe.MALIGNMARK,A.MALIGNMARK],[fe.MARQUEE,A.MARQUEE],[fe.MATH,A.MATH],[fe.MENU,A.MENU],[fe.META,A.META],[fe.MGLYPH,A.MGLYPH],[fe.MI,A.MI],[fe.MO,A.MO],[fe.MN,A.MN],[fe.MS,A.MS],[fe.MTEXT,A.MTEXT],[fe.NAV,A.NAV],[fe.NOBR,A.NOBR],[fe.NOFRAMES,A.NOFRAMES],[fe.NOEMBED,A.NOEMBED],[fe.NOSCRIPT,A.NOSCRIPT],[fe.OBJECT,A.OBJECT],[fe.OL,A.OL],[fe.OPTGROUP,A.OPTGROUP],[fe.OPTION,A.OPTION],[fe.P,A.P],[fe.PARAM,A.PARAM],[fe.PLAINTEXT,A.PLAINTEXT],[fe.PRE,A.PRE],[fe.RB,A.RB],[fe.RP,A.RP],[fe.RT,A.RT],[fe.RTC,A.RTC],[fe.RUBY,A.RUBY],[fe.S,A.S],[fe.SCRIPT,A.SCRIPT],[fe.SEARCH,A.SEARCH],[fe.SECTION,A.SECTION],[fe.SELECT,A.SELECT],[fe.SOURCE,A.SOURCE],[fe.SMALL,A.SMALL],[fe.SPAN,A.SPAN],[fe.STRIKE,A.STRIKE],[fe.STRONG,A.STRONG],[fe.STYLE,A.STYLE],[fe.SUB,A.SUB],[fe.SUMMARY,A.SUMMARY],[fe.SUP,A.SUP],[fe.TABLE,A.TABLE],[fe.TBODY,A.TBODY],[fe.TEMPLATE,A.TEMPLATE],[fe.TEXTAREA,A.TEXTAREA],[fe.TFOOT,A.TFOOT],[fe.TD,A.TD],[fe.TH,A.TH],[fe.THEAD,A.THEAD],[fe.TITLE,A.TITLE],[fe.TR,A.TR],[fe.TRACK,A.TRACK],[fe.TT,A.TT],[fe.U,A.U],[fe.UL,A.UL],[fe.SVG,A.SVG],[fe.VAR,A.VAR],[fe.WBR,A.WBR],[fe.XMP,A.XMP]]);function Td(e){var t;return(t=Xge.get(e))!==null&&t!==void 0?t:A.UNKNOWN}const Be=A,Zge={[Pe.HTML]:new Set([Be.ADDRESS,Be.APPLET,Be.AREA,Be.ARTICLE,Be.ASIDE,Be.BASE,Be.BASEFONT,Be.BGSOUND,Be.BLOCKQUOTE,Be.BODY,Be.BR,Be.BUTTON,Be.CAPTION,Be.CENTER,Be.COL,Be.COLGROUP,Be.DD,Be.DETAILS,Be.DIR,Be.DIV,Be.DL,Be.DT,Be.EMBED,Be.FIELDSET,Be.FIGCAPTION,Be.FIGURE,Be.FOOTER,Be.FORM,Be.FRAME,Be.FRAMESET,Be.H1,Be.H2,Be.H3,Be.H4,Be.H5,Be.H6,Be.HEAD,Be.HEADER,Be.HGROUP,Be.HR,Be.HTML,Be.IFRAME,Be.IMG,Be.INPUT,Be.LI,Be.LINK,Be.LISTING,Be.MAIN,Be.MARQUEE,Be.MENU,Be.META,Be.NAV,Be.NOEMBED,Be.NOFRAMES,Be.NOSCRIPT,Be.OBJECT,Be.OL,Be.P,Be.PARAM,Be.PLAINTEXT,Be.PRE,Be.SCRIPT,Be.SECTION,Be.SELECT,Be.SOURCE,Be.STYLE,Be.SUMMARY,Be.TABLE,Be.TBODY,Be.TD,Be.TEMPLATE,Be.TEXTAREA,Be.TFOOT,Be.TH,Be.THEAD,Be.TITLE,Be.TR,Be.TRACK,Be.UL,Be.WBR,Be.XMP]),[Pe.MATHML]:new Set([Be.MI,Be.MO,Be.MN,Be.MS,Be.MTEXT,Be.ANNOTATION_XML]),[Pe.SVG]:new Set([Be.TITLE,Be.FOREIGN_OBJECT,Be.DESC]),[Pe.XLINK]:new Set,[Pe.XML]:new Set,[Pe.XMLNS]:new Set},kT=new Set([Be.H1,Be.H2,Be.H3,Be.H4,Be.H5,Be.H6]);fe.STYLE,fe.SCRIPT,fe.XMP,fe.IFRAME,fe.NOEMBED,fe.NOFRAMES,fe.PLAINTEXT;var W;(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"})(W||(W={}));const ar={DATA:W.DATA,RCDATA:W.RCDATA,RAWTEXT:W.RAWTEXT,SCRIPT_DATA:W.SCRIPT_DATA,PLAINTEXT:W.PLAINTEXT,CDATA_SECTION:W.CDATA_SECTION};function Jge(e){return e>=V.DIGIT_0&&e<=V.DIGIT_9}function lp(e){return e>=V.LATIN_CAPITAL_A&&e<=V.LATIN_CAPITAL_Z}function eye(e){return e>=V.LATIN_SMALL_A&&e<=V.LATIN_SMALL_Z}function js(e){return eye(e)||lp(e)}function YO(e){return js(e)||Jge(e)}function wg(e){return e+32}function T6(e){return e===V.SPACE||e===V.LINE_FEED||e===V.TABULATION||e===V.FORM_FEED}function KO(e){return T6(e)||e===V.SOLIDUS||e===V.GREATER_THAN_SIGN}function tye(e){return e===V.NULL?Te.nullCharacterReference:e>1114111?Te.characterReferenceOutsideUnicodeRange:m6(e)?Te.surrogateCharacterReference:y6(e)?Te.noncharacterCharacterReference:g6(e)||e===V.CARRIAGE_RETURN?Te.controlCharacterReference:null}class nye{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=W.DATA,this.returnState=W.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Hge(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new E6(v6,(r,o)=>{this.preprocessor.pos=this.entityStartPos+o-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Te.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(Te.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const o=tye(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:Gt.START_TAG,tagName:"",tagID:A.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Gt.END_TAG,tagName:"",tagID:A.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Gt.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Gt.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(b6(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(Te.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=Td(t.tagName),t.type===Gt.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(Te.endTagWithAttributes),t.selfClosing&&this._err(Te.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 Gt.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Gt.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Gt.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:Gt.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=T6(t)?Gt.WHITESPACE_CHARACTER:t===V.NULL?Gt.NULL_CHARACTER:Gt.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Gt.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=W.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Ki.Attribute:Ki.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===W.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===W.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===W.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case W.DATA:{this._stateData(t);break}case W.RCDATA:{this._stateRcdata(t);break}case W.RAWTEXT:{this._stateRawtext(t);break}case W.SCRIPT_DATA:{this._stateScriptData(t);break}case W.PLAINTEXT:{this._statePlaintext(t);break}case W.TAG_OPEN:{this._stateTagOpen(t);break}case W.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case W.TAG_NAME:{this._stateTagName(t);break}case W.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case W.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case W.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case W.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case W.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case W.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case W.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case W.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case W.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case W.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case W.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case W.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case W.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case W.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case W.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case W.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case W.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case W.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case W.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case W.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case W.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case W.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case W.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case W.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case W.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case W.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case W.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case W.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case W.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case W.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case W.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case W.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case W.BOGUS_COMMENT:{this._stateBogusComment(t);break}case W.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case W.COMMENT_START:{this._stateCommentStart(t);break}case W.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case W.COMMENT:{this._stateComment(t);break}case W.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case W.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case W.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case W.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case W.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case W.COMMENT_END:{this._stateCommentEnd(t);break}case W.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case W.DOCTYPE:{this._stateDoctype(t);break}case W.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case W.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case W.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case W.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case W.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case W.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case W.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case W.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case W.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case W.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case W.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case W.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case W.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case W.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case W.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case W.CDATA_SECTION:{this._stateCdataSection(t);break}case W.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case W.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case W.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case W.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case V.LESS_THAN_SIGN:{this.state=W.TAG_OPEN;break}case V.AMPERSAND:{this._startCharacterReference();break}case V.NULL:{this._err(Te.unexpectedNullCharacter),this._emitCodePoint(t);break}case V.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case V.AMPERSAND:{this._startCharacterReference();break}case V.LESS_THAN_SIGN:{this.state=W.RCDATA_LESS_THAN_SIGN;break}case V.NULL:{this._err(Te.unexpectedNullCharacter),this._emitChars(Un);break}case V.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case V.LESS_THAN_SIGN:{this.state=W.RAWTEXT_LESS_THAN_SIGN;break}case V.NULL:{this._err(Te.unexpectedNullCharacter),this._emitChars(Un);break}case V.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case V.LESS_THAN_SIGN:{this.state=W.SCRIPT_DATA_LESS_THAN_SIGN;break}case V.NULL:{this._err(Te.unexpectedNullCharacter),this._emitChars(Un);break}case V.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case V.NULL:{this._err(Te.unexpectedNullCharacter),this._emitChars(Un);break}case V.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(js(t))this._createStartTagToken(),this.state=W.TAG_NAME,this._stateTagName(t);else switch(t){case V.EXCLAMATION_MARK:{this.state=W.MARKUP_DECLARATION_OPEN;break}case V.SOLIDUS:{this.state=W.END_TAG_OPEN;break}case V.QUESTION_MARK:{this._err(Te.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=W.BOGUS_COMMENT,this._stateBogusComment(t);break}case V.EOF:{this._err(Te.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Te.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=W.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(js(t))this._createEndTagToken(),this.state=W.TAG_NAME,this._stateTagName(t);else switch(t){case V.GREATER_THAN_SIGN:{this._err(Te.missingEndTagName),this.state=W.DATA;break}case V.EOF:{this._err(Te.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(Te.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=W.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:{this.state=W.BEFORE_ATTRIBUTE_NAME;break}case V.SOLIDUS:{this.state=W.SELF_CLOSING_START_TAG;break}case V.GREATER_THAN_SIGN:{this.state=W.DATA,this.emitCurrentTagToken();break}case V.NULL:{this._err(Te.unexpectedNullCharacter),n.tagName+=Un;break}case V.EOF:{this._err(Te.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(lp(t)?wg(t):t)}}_stateRcdataLessThanSign(t){t===V.SOLIDUS?this.state=W.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=W.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){js(t)?(this.state=W.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=W.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 V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=W.BEFORE_ATTRIBUTE_NAME,!1;case V.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=W.SELF_CLOSING_START_TAG,!1;case V.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=W.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=W.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===V.SOLIDUS?this.state=W.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=W.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){js(t)?(this.state=W.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=W.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=W.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case V.SOLIDUS:{this.state=W.SCRIPT_DATA_END_TAG_OPEN;break}case V.EXCLAMATION_MARK:{this.state=W.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=W.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){js(t)?(this.state=W.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=W.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=W.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===V.HYPHEN_MINUS?(this.state=W.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=W.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===V.HYPHEN_MINUS?(this.state=W.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=W.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case V.HYPHEN_MINUS:{this.state=W.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case V.LESS_THAN_SIGN:{this.state=W.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case V.NULL:{this._err(Te.unexpectedNullCharacter),this._emitChars(Un);break}case V.EOF:{this._err(Te.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case V.HYPHEN_MINUS:{this.state=W.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case V.LESS_THAN_SIGN:{this.state=W.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case V.NULL:{this._err(Te.unexpectedNullCharacter),this.state=W.SCRIPT_DATA_ESCAPED,this._emitChars(Un);break}case V.EOF:{this._err(Te.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=W.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case V.HYPHEN_MINUS:{this._emitChars("-");break}case V.LESS_THAN_SIGN:{this.state=W.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case V.GREATER_THAN_SIGN:{this.state=W.SCRIPT_DATA,this._emitChars(">");break}case V.NULL:{this._err(Te.unexpectedNullCharacter),this.state=W.SCRIPT_DATA_ESCAPED,this._emitChars(Un);break}case V.EOF:{this._err(Te.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=W.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===V.SOLIDUS?this.state=W.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:js(t)?(this._emitChars("<"),this.state=W.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=W.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){js(t)?(this.state=W.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=W.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=W.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(vo.SCRIPT,!1)&&KO(this.preprocessor.peek(vo.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<vo.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=W.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=W.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case V.HYPHEN_MINUS:{this.state=W.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case V.LESS_THAN_SIGN:{this.state=W.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case V.NULL:{this._err(Te.unexpectedNullCharacter),this._emitChars(Un);break}case V.EOF:{this._err(Te.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case V.HYPHEN_MINUS:{this.state=W.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case V.LESS_THAN_SIGN:{this.state=W.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case V.NULL:{this._err(Te.unexpectedNullCharacter),this.state=W.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Un);break}case V.EOF:{this._err(Te.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=W.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case V.HYPHEN_MINUS:{this._emitChars("-");break}case V.LESS_THAN_SIGN:{this.state=W.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case V.GREATER_THAN_SIGN:{this.state=W.SCRIPT_DATA,this._emitChars(">");break}case V.NULL:{this._err(Te.unexpectedNullCharacter),this.state=W.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Un);break}case V.EOF:{this._err(Te.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=W.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===V.SOLIDUS?(this.state=W.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=W.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(vo.SCRIPT,!1)&&KO(this.preprocessor.peek(vo.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<vo.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=W.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=W.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:break;case V.SOLIDUS:case V.GREATER_THAN_SIGN:case V.EOF:{this.state=W.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case V.EQUALS_SIGN:{this._err(Te.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=W.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=W.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:case V.SOLIDUS:case V.GREATER_THAN_SIGN:case V.EOF:{this._leaveAttrName(),this.state=W.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case V.EQUALS_SIGN:{this._leaveAttrName(),this.state=W.BEFORE_ATTRIBUTE_VALUE;break}case V.QUOTATION_MARK:case V.APOSTROPHE:case V.LESS_THAN_SIGN:{this._err(Te.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case V.NULL:{this._err(Te.unexpectedNullCharacter),this.currentAttr.name+=Un;break}default:this.currentAttr.name+=String.fromCodePoint(lp(t)?wg(t):t)}}_stateAfterAttributeName(t){switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:break;case V.SOLIDUS:{this.state=W.SELF_CLOSING_START_TAG;break}case V.EQUALS_SIGN:{this.state=W.BEFORE_ATTRIBUTE_VALUE;break}case V.GREATER_THAN_SIGN:{this.state=W.DATA,this.emitCurrentTagToken();break}case V.EOF:{this._err(Te.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=W.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:break;case V.QUOTATION_MARK:{this.state=W.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case V.APOSTROPHE:{this.state=W.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case V.GREATER_THAN_SIGN:{this._err(Te.missingAttributeValue),this.state=W.DATA,this.emitCurrentTagToken();break}default:this.state=W.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case V.QUOTATION_MARK:{this.state=W.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case V.AMPERSAND:{this._startCharacterReference();break}case V.NULL:{this._err(Te.unexpectedNullCharacter),this.currentAttr.value+=Un;break}case V.EOF:{this._err(Te.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case V.APOSTROPHE:{this.state=W.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case V.AMPERSAND:{this._startCharacterReference();break}case V.NULL:{this._err(Te.unexpectedNullCharacter),this.currentAttr.value+=Un;break}case V.EOF:{this._err(Te.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:{this._leaveAttrValue(),this.state=W.BEFORE_ATTRIBUTE_NAME;break}case V.AMPERSAND:{this._startCharacterReference();break}case V.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=W.DATA,this.emitCurrentTagToken();break}case V.NULL:{this._err(Te.unexpectedNullCharacter),this.currentAttr.value+=Un;break}case V.QUOTATION_MARK:case V.APOSTROPHE:case V.LESS_THAN_SIGN:case V.EQUALS_SIGN:case V.GRAVE_ACCENT:{this._err(Te.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case V.EOF:{this._err(Te.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:{this._leaveAttrValue(),this.state=W.BEFORE_ATTRIBUTE_NAME;break}case V.SOLIDUS:{this._leaveAttrValue(),this.state=W.SELF_CLOSING_START_TAG;break}case V.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=W.DATA,this.emitCurrentTagToken();break}case V.EOF:{this._err(Te.eofInTag),this._emitEOFToken();break}default:this._err(Te.missingWhitespaceBetweenAttributes),this.state=W.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case V.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=W.DATA,this.emitCurrentTagToken();break}case V.EOF:{this._err(Te.eofInTag),this._emitEOFToken();break}default:this._err(Te.unexpectedSolidusInTag),this.state=W.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case V.GREATER_THAN_SIGN:{this.state=W.DATA,this.emitCurrentComment(n);break}case V.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case V.NULL:{this._err(Te.unexpectedNullCharacter),n.data+=Un;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(vo.DASH_DASH,!0)?(this._createCommentToken(vo.DASH_DASH.length+1),this.state=W.COMMENT_START):this._consumeSequenceIfMatch(vo.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(vo.DOCTYPE.length+1),this.state=W.DOCTYPE):this._consumeSequenceIfMatch(vo.CDATA_START,!0)?this.inForeignNode?this.state=W.CDATA_SECTION:(this._err(Te.cdataInHtmlContent),this._createCommentToken(vo.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=W.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Te.incorrectlyOpenedComment),this._createCommentToken(2),this.state=W.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case V.HYPHEN_MINUS:{this.state=W.COMMENT_START_DASH;break}case V.GREATER_THAN_SIGN:{this._err(Te.abruptClosingOfEmptyComment),this.state=W.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=W.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case V.HYPHEN_MINUS:{this.state=W.COMMENT_END;break}case V.GREATER_THAN_SIGN:{this._err(Te.abruptClosingOfEmptyComment),this.state=W.DATA,this.emitCurrentComment(n);break}case V.EOF:{this._err(Te.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=W.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case V.HYPHEN_MINUS:{this.state=W.COMMENT_END_DASH;break}case V.LESS_THAN_SIGN:{n.data+="<",this.state=W.COMMENT_LESS_THAN_SIGN;break}case V.NULL:{this._err(Te.unexpectedNullCharacter),n.data+=Un;break}case V.EOF:{this._err(Te.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case V.EXCLAMATION_MARK:{n.data+="!",this.state=W.COMMENT_LESS_THAN_SIGN_BANG;break}case V.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=W.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===V.HYPHEN_MINUS?this.state=W.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=W.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===V.HYPHEN_MINUS?this.state=W.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=W.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==V.GREATER_THAN_SIGN&&t!==V.EOF&&this._err(Te.nestedComment),this.state=W.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case V.HYPHEN_MINUS:{this.state=W.COMMENT_END;break}case V.EOF:{this._err(Te.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=W.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case V.GREATER_THAN_SIGN:{this.state=W.DATA,this.emitCurrentComment(n);break}case V.EXCLAMATION_MARK:{this.state=W.COMMENT_END_BANG;break}case V.HYPHEN_MINUS:{n.data+="-";break}case V.EOF:{this._err(Te.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=W.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case V.HYPHEN_MINUS:{n.data+="--!",this.state=W.COMMENT_END_DASH;break}case V.GREATER_THAN_SIGN:{this._err(Te.incorrectlyClosedComment),this.state=W.DATA,this.emitCurrentComment(n);break}case V.EOF:{this._err(Te.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=W.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:{this.state=W.BEFORE_DOCTYPE_NAME;break}case V.GREATER_THAN_SIGN:{this.state=W.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case V.EOF:{this._err(Te.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Te.missingWhitespaceBeforeDoctypeName),this.state=W.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(lp(t))this._createDoctypeToken(String.fromCharCode(wg(t))),this.state=W.DOCTYPE_NAME;else switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:break;case V.NULL:{this._err(Te.unexpectedNullCharacter),this._createDoctypeToken(Un),this.state=W.DOCTYPE_NAME;break}case V.GREATER_THAN_SIGN:{this._err(Te.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=W.DATA;break}case V.EOF:{this._err(Te.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=W.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:{this.state=W.AFTER_DOCTYPE_NAME;break}case V.GREATER_THAN_SIGN:{this.state=W.DATA,this.emitCurrentDoctype(n);break}case V.NULL:{this._err(Te.unexpectedNullCharacter),n.name+=Un;break}case V.EOF:{this._err(Te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(lp(t)?wg(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:break;case V.GREATER_THAN_SIGN:{this.state=W.DATA,this.emitCurrentDoctype(n);break}case V.EOF:{this._err(Te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(vo.PUBLIC,!1)?this.state=W.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(vo.SYSTEM,!1)?this.state=W.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Te.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=W.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:{this.state=W.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case V.QUOTATION_MARK:{this._err(Te.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=W.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case V.APOSTROPHE:{this._err(Te.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=W.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case V.GREATER_THAN_SIGN:{this._err(Te.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=W.DATA,this.emitCurrentDoctype(n);break}case V.EOF:{this._err(Te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Te.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=W.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:break;case V.QUOTATION_MARK:{n.publicId="",this.state=W.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case V.APOSTROPHE:{n.publicId="",this.state=W.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case V.GREATER_THAN_SIGN:{this._err(Te.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=W.DATA,this.emitCurrentDoctype(n);break}case V.EOF:{this._err(Te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Te.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=W.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case V.QUOTATION_MARK:{this.state=W.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case V.NULL:{this._err(Te.unexpectedNullCharacter),n.publicId+=Un;break}case V.GREATER_THAN_SIGN:{this._err(Te.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=W.DATA;break}case V.EOF:{this._err(Te.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 V.APOSTROPHE:{this.state=W.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case V.NULL:{this._err(Te.unexpectedNullCharacter),n.publicId+=Un;break}case V.GREATER_THAN_SIGN:{this._err(Te.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=W.DATA;break}case V.EOF:{this._err(Te.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 V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:{this.state=W.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case V.GREATER_THAN_SIGN:{this.state=W.DATA,this.emitCurrentDoctype(n);break}case V.QUOTATION_MARK:{this._err(Te.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=W.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case V.APOSTROPHE:{this._err(Te.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=W.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case V.EOF:{this._err(Te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Te.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=W.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:break;case V.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=W.DATA;break}case V.QUOTATION_MARK:{n.systemId="",this.state=W.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case V.APOSTROPHE:{n.systemId="",this.state=W.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case V.EOF:{this._err(Te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Te.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=W.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:{this.state=W.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case V.QUOTATION_MARK:{this._err(Te.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=W.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case V.APOSTROPHE:{this._err(Te.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=W.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case V.GREATER_THAN_SIGN:{this._err(Te.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=W.DATA,this.emitCurrentDoctype(n);break}case V.EOF:{this._err(Te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Te.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=W.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:break;case V.QUOTATION_MARK:{n.systemId="",this.state=W.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case V.APOSTROPHE:{n.systemId="",this.state=W.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case V.GREATER_THAN_SIGN:{this._err(Te.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=W.DATA,this.emitCurrentDoctype(n);break}case V.EOF:{this._err(Te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Te.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=W.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case V.QUOTATION_MARK:{this.state=W.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case V.NULL:{this._err(Te.unexpectedNullCharacter),n.systemId+=Un;break}case V.GREATER_THAN_SIGN:{this._err(Te.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=W.DATA;break}case V.EOF:{this._err(Te.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 V.APOSTROPHE:{this.state=W.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case V.NULL:{this._err(Te.unexpectedNullCharacter),n.systemId+=Un;break}case V.GREATER_THAN_SIGN:{this._err(Te.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=W.DATA;break}case V.EOF:{this._err(Te.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 V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:break;case V.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=W.DATA;break}case V.EOF:{this._err(Te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Te.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=W.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case V.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=W.DATA;break}case V.NULL:{this._err(Te.unexpectedNullCharacter);break}case V.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case V.RIGHT_SQUARE_BRACKET:{this.state=W.CDATA_SECTION_BRACKET;break}case V.EOF:{this._err(Te.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===V.RIGHT_SQUARE_BRACKET?this.state=W.CDATA_SECTION_END:(this._emitChars("]"),this.state=W.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case V.GREATER_THAN_SIGN:{this.state=W.DATA;break}case V.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=W.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(V.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&YO(this.preprocessor.peek(1))?W.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){YO(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===V.SEMICOLON&&this._err(Te.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const S6=new Set([A.DD,A.DT,A.LI,A.OPTGROUP,A.OPTION,A.P,A.RB,A.RP,A.RT,A.RTC]),QO=new Set([...S6,A.CAPTION,A.COLGROUP,A.TBODY,A.TD,A.TFOOT,A.TH,A.THEAD,A.TR]),e0=new Set([A.APPLET,A.CAPTION,A.HTML,A.MARQUEE,A.OBJECT,A.TABLE,A.TD,A.TEMPLATE,A.TH]),rye=new Set([...e0,A.OL,A.UL]),oye=new Set([...e0,A.BUTTON]),XO=new Set([A.ANNOTATION_XML,A.MI,A.MN,A.MO,A.MS,A.MTEXT]),ZO=new Set([A.DESC,A.FOREIGN_OBJECT,A.TITLE]),aye=new Set([A.TR,A.TEMPLATE,A.HTML]),iye=new Set([A.TBODY,A.TFOOT,A.THEAD,A.TEMPLATE,A.HTML]),sye=new Set([A.TABLE,A.TEMPLATE,A.HTML]),lye=new Set([A.TD,A.TH]);class cye{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=A.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===A.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.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(n<0?0:n)}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(n<0?0:n)}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r<0?0:r)}popUntilNumberedHeaderPopped(){this.popUntilPopped(kT,Pe.HTML)}popUntilTableCellPopped(){this.popUntilPopped(lye,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(sye,Pe.HTML)}clearBackToTableBodyContext(){this.clearBackTo(iye,Pe.HTML)}clearBackToTableRowContext(){this.clearBackTo(aye,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]===A.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]===A.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(ZO.has(o))return!1;break}case Pe.MATHML:{if(XO.has(o))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,e0)}hasInListItemScope(t){return this.hasInDynamicScope(t,rye)}hasInButtonScope(t){return this.hasInDynamicScope(t,oye)}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(kT.has(n))return!0;if(e0.has(n))return!1;break}case Pe.SVG:{if(ZO.has(n))return!1;break}case Pe.MATHML:{if(XO.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 A.TABLE:case A.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 A.TBODY:case A.THEAD:case A.TFOOT:return!0;case A.TABLE:case A.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 A.OPTION:case A.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;S6.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;QO.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&QO.has(this.currentTagId);)this.pop()}}const WE=3;var li;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(li||(li={}));const JO={type:li.Marker};class uye{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],o=n.length,a=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let c=0;c<this.entries.length;c++){const u=this.entries[c];if(u.type===li.Marker)break;const{element:d}=u;if(this.treeAdapter.getTagName(d)===a&&this.treeAdapter.getNamespaceURI(d)===s){const p=this.treeAdapter.getAttrList(d);p.length===o&&r.push({idx:c,attrs:p})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<WE)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<WE)return;const o=new Map(n.map(s=>[s.name,s.value]));let a=0;for(let s=0;s<r.length;s++){const c=r[s];c.attrs.every(u=>o.get(u.name)===u.value)&&(a+=1,a>=WE&&this.entries.splice(c.idx,1))}}insertMarker(){this.entries.unshift(JO)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:li.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:li.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n>=0&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(JO);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===li.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===li.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===li.Element&&n.element===t)}}const Us={createDocument(){return{nodeName:"#document",mode:ya.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};Us.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(Us.isTextNode(n)){n.value+=t;return}}Us.appendChild(e,Us.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Us.isTextNode(r)?r.value+=t:Us.insertBefore(e,Us.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}}},C6="html",dye="about:legacy-compat",fye="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",_6=["+//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//"],pye=[..._6,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],hye=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),A6=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],mye=[...A6,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function eN(e,t){return t.some(n=>e.startsWith(n))}function gye(e){return e.name===C6&&e.publicId===null&&(e.systemId===null||e.systemId===dye)}function yye(e){if(e.name!==C6)return ya.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===fye)return ya.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),hye.has(n))return ya.QUIRKS;let r=t===null?pye:_6;if(eN(n,r))return ya.QUIRKS;if(r=t===null?A6:mye,eN(n,r))return ya.LIMITED_QUIRKS}return ya.NO_QUIRKS}const tN={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},bye="definitionurl",vye="definitionURL",Eye=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])),xye=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}]]),Tye=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])),Sye=new Set([A.B,A.BIG,A.BLOCKQUOTE,A.BODY,A.BR,A.CENTER,A.CODE,A.DD,A.DIV,A.DL,A.DT,A.EM,A.EMBED,A.H1,A.H2,A.H3,A.H4,A.H5,A.H6,A.HEAD,A.HR,A.I,A.IMG,A.LI,A.LISTING,A.MENU,A.META,A.NOBR,A.OL,A.P,A.PRE,A.RUBY,A.S,A.SMALL,A.SPAN,A.STRONG,A.STRIKE,A.SUB,A.SUP,A.TABLE,A.TT,A.U,A.UL,A.VAR]);function Cye(e){const t=e.tagID;return t===A.FONT&&e.attrs.some(({name:n})=>n===Kl.COLOR||n===Kl.SIZE||n===Kl.FACE)||Sye.has(t)}function k6(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===bye){e.attrs[t].name=vye;break}}function w6(e){for(let t=0;t<e.attrs.length;t++){const n=Eye.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function r_(e){for(let t=0;t<e.attrs.length;t++){const n=xye.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 _ye(e){const t=Tye.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Td(e.tagName))}function Aye(e,t){return t===Pe.MATHML&&(e===A.MI||e===A.MO||e===A.MN||e===A.MS||e===A.MTEXT)}function kye(e,t,n){if(t===Pe.MATHML&&e===A.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Kl.ENCODING){const o=n[r].value.toLowerCase();return o===tN.TEXT_HTML||o===tN.APPLICATION_XML}}return t===Pe.SVG&&(e===A.FOREIGN_OBJECT||e===A.DESC||e===A.TITLE)}function wye(e,t,n,r){return(!r||r===Pe.HTML)&&kye(e,t,n)||(!r||r===Pe.MATHML)&&Aye(e,t)}const Dye="hidden",Rye=8,Iye=3;var Q;(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"})(Q||(Q={}));const Oye={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},D6=new Set([A.TABLE,A.TBODY,A.TFOOT,A.THEAD,A.TR]),nN={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Us,onParseError:null};class rN{constructor(t,n,r=null,o=null){this.fragmentContext=r,this.scriptHandler=o,this.currentToken=null,this.stopped=!1,this.insertionMode=Q.INITIAL,this.originalInsertionMode=Q.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={...nN,...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 nye(this.options,this),this.activeFormattingElements=new uye(this.treeAdapter),this.fragmentContextID=r?Td(this.treeAdapter.getTagName(r)):A.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new cye(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={...nN,...n};t??(t=r.treeAdapter.createElement(fe.TEMPLATE,Pe.HTML,[]));const o=r.treeAdapter.createElement("documentmock",Pe.HTML,[]),a=new this(r,o,t);return a.fragmentContextID===A.TEMPLATE&&a.tmplInsertionModeStack.unshift(Q.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:Oye,s={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(s)}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,s;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,this._setContextModes(a,s)}}_setContextModes(t,n){const r=t===this.document||this.treeAdapter.getNamespaceURI(t)===Pe.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,Pe.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=Q.TEXT}switchToPlaintextParsing(){this.insertionMode=Q.TEXT,this.originalInsertionMode=Q.IN_BODY,this.tokenizer.state=ar.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)===fe.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 A.TITLE:case A.TEXTAREA:{this.tokenizer.state=ar.RCDATA;break}case A.STYLE:case A.XMP:case A.IFRAME:case A.NOEMBED:case A.NOFRAMES:case A.NOSCRIPT:{this.tokenizer.state=ar.RAWTEXT;break}case A.SCRIPT:{this.tokenizer.state=ar.SCRIPT_DATA;break}case A.PLAINTEXT:{this.tokenizer.state=ar.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(s=>this.treeAdapter.isDocumentTypeNode(s));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,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(fe.HTML,Pe.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,A.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,s=o[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:c,endCol:u,endOffset:d}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:c,endCol:u,endOffset:d})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,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===Gt.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===A.SVG&&this.treeAdapter.getTagName(n)===fe.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===Pe.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===A.MGLYPH||t.tagID===A.MALIGNMARK)&&!this._isIntegrationPoint(r,n,Pe.HTML)}_processToken(t){switch(t.type){case Gt.CHARACTER:{this.onCharacter(t);break}case Gt.NULL_CHARACTER:{this.onNullCharacter(t);break}case Gt.COMMENT:{this.onComment(t);break}case Gt.DOCTYPE:{this.onDoctype(t);break}case Gt.START_TAG:{this._processStartTag(t);break}case Gt.END_TAG:{this.onEndTag(t);break}case Gt.EOF:{this.onEof(t);break}case Gt.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const o=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return wye(t,o,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(o=>o.type===li.Marker||this.openElements.contains(o.element)),r=n<0?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=Q.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(A.P),this.openElements.popUntilTagNamePopped(A.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case A.TR:{this.insertionMode=Q.IN_ROW;return}case A.TBODY:case A.THEAD:case A.TFOOT:{this.insertionMode=Q.IN_TABLE_BODY;return}case A.CAPTION:{this.insertionMode=Q.IN_CAPTION;return}case A.COLGROUP:{this.insertionMode=Q.IN_COLUMN_GROUP;return}case A.TABLE:{this.insertionMode=Q.IN_TABLE;return}case A.BODY:{this.insertionMode=Q.IN_BODY;return}case A.FRAMESET:{this.insertionMode=Q.IN_FRAMESET;return}case A.SELECT:{this._resetInsertionModeForSelect(t);return}case A.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case A.HTML:{this.insertionMode=this.headElement?Q.AFTER_HEAD:Q.BEFORE_HEAD;return}case A.TD:case A.TH:{if(t>0){this.insertionMode=Q.IN_CELL;return}break}case A.HEAD:{if(t>0){this.insertionMode=Q.IN_HEAD;return}break}}this.insertionMode=Q.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===A.TEMPLATE)break;if(r===A.TABLE){this.insertionMode=Q.IN_SELECT_IN_TABLE;return}}this.insertionMode=Q.IN_SELECT}_isElementCausesFosterParenting(t){return D6.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&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 A.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===Pe.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case A.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 Zge[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){lbe(this,t);return}switch(this.insertionMode){case Q.INITIAL:{Wf(this,t);break}case Q.BEFORE_HTML:{kp(this,t);break}case Q.BEFORE_HEAD:{wp(this,t);break}case Q.IN_HEAD:{Dp(this,t);break}case Q.IN_HEAD_NO_SCRIPT:{Rp(this,t);break}case Q.AFTER_HEAD:{Ip(this,t);break}case Q.IN_BODY:case Q.IN_CAPTION:case Q.IN_CELL:case Q.IN_TEMPLATE:{I6(this,t);break}case Q.TEXT:case Q.IN_SELECT:case Q.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case Q.IN_TABLE:case Q.IN_TABLE_BODY:case Q.IN_ROW:{YE(this,t);break}case Q.IN_TABLE_TEXT:{F6(this,t);break}case Q.IN_COLUMN_GROUP:{t0(this,t);break}case Q.AFTER_BODY:{n0(this,t);break}case Q.AFTER_AFTER_BODY:{ny(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){sbe(this,t);return}switch(this.insertionMode){case Q.INITIAL:{Wf(this,t);break}case Q.BEFORE_HTML:{kp(this,t);break}case Q.BEFORE_HEAD:{wp(this,t);break}case Q.IN_HEAD:{Dp(this,t);break}case Q.IN_HEAD_NO_SCRIPT:{Rp(this,t);break}case Q.AFTER_HEAD:{Ip(this,t);break}case Q.TEXT:{this._insertCharacters(t);break}case Q.IN_TABLE:case Q.IN_TABLE_BODY:case Q.IN_ROW:{YE(this,t);break}case Q.IN_COLUMN_GROUP:{t0(this,t);break}case Q.AFTER_BODY:{n0(this,t);break}case Q.AFTER_AFTER_BODY:{ny(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){wT(this,t);return}switch(this.insertionMode){case Q.INITIAL:case Q.BEFORE_HTML:case Q.BEFORE_HEAD:case Q.IN_HEAD:case Q.IN_HEAD_NO_SCRIPT:case Q.AFTER_HEAD:case Q.IN_BODY:case Q.IN_TABLE:case Q.IN_CAPTION:case Q.IN_COLUMN_GROUP:case Q.IN_TABLE_BODY:case Q.IN_ROW:case Q.IN_CELL:case Q.IN_SELECT:case Q.IN_SELECT_IN_TABLE:case Q.IN_TEMPLATE:case Q.IN_FRAMESET:case Q.AFTER_FRAMESET:{wT(this,t);break}case Q.IN_TABLE_TEXT:{Yf(this,t);break}case Q.AFTER_BODY:{jye(this,t);break}case Q.AFTER_AFTER_BODY:case Q.AFTER_AFTER_FRAMESET:{Uye(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case Q.INITIAL:{Hye(this,t);break}case Q.BEFORE_HEAD:case Q.IN_HEAD:case Q.IN_HEAD_NO_SCRIPT:case Q.AFTER_HEAD:{this._err(t,Te.misplacedDoctype);break}case Q.IN_TABLE_TEXT:{Yf(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,Te.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?cbe(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case Q.INITIAL:{Wf(this,t);break}case Q.BEFORE_HTML:{zye(this,t);break}case Q.BEFORE_HEAD:{Vye(this,t);break}case Q.IN_HEAD:{qa(this,t);break}case Q.IN_HEAD_NO_SCRIPT:{Wye(this,t);break}case Q.AFTER_HEAD:{Kye(this,t);break}case Q.IN_BODY:{to(this,t);break}case Q.IN_TABLE:{Ju(this,t);break}case Q.IN_TABLE_TEXT:{Yf(this,t);break}case Q.IN_CAPTION:{G0e(this,t);break}case Q.IN_COLUMN_GROUP:{i_(this,t);break}case Q.IN_TABLE_BODY:{Sb(this,t);break}case Q.IN_ROW:{Cb(this,t);break}case Q.IN_CELL:{Y0e(this,t);break}case Q.IN_SELECT:{U6(this,t);break}case Q.IN_SELECT_IN_TABLE:{Q0e(this,t);break}case Q.IN_TEMPLATE:{Z0e(this,t);break}case Q.AFTER_BODY:{ebe(this,t);break}case Q.IN_FRAMESET:{tbe(this,t);break}case Q.AFTER_FRAMESET:{rbe(this,t);break}case Q.AFTER_AFTER_BODY:{abe(this,t);break}case Q.AFTER_AFTER_FRAMESET:{ibe(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?ube(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case Q.INITIAL:{Wf(this,t);break}case Q.BEFORE_HTML:{$ye(this,t);break}case Q.BEFORE_HEAD:{Gye(this,t);break}case Q.IN_HEAD:{qye(this,t);break}case Q.IN_HEAD_NO_SCRIPT:{Yye(this,t);break}case Q.AFTER_HEAD:{Qye(this,t);break}case Q.IN_BODY:{Tb(this,t);break}case Q.TEXT:{L0e(this,t);break}case Q.IN_TABLE:{hh(this,t);break}case Q.IN_TABLE_TEXT:{Yf(this,t);break}case Q.IN_CAPTION:{q0e(this,t);break}case Q.IN_COLUMN_GROUP:{W0e(this,t);break}case Q.IN_TABLE_BODY:{DT(this,t);break}case Q.IN_ROW:{j6(this,t);break}case Q.IN_CELL:{K0e(this,t);break}case Q.IN_SELECT:{H6(this,t);break}case Q.IN_SELECT_IN_TABLE:{X0e(this,t);break}case Q.IN_TEMPLATE:{J0e(this,t);break}case Q.AFTER_BODY:{$6(this,t);break}case Q.IN_FRAMESET:{nbe(this,t);break}case Q.AFTER_FRAMESET:{obe(this,t);break}case Q.AFTER_AFTER_BODY:{ny(this,t);break}}}onEof(t){switch(this.insertionMode){case Q.INITIAL:{Wf(this,t);break}case Q.BEFORE_HTML:{kp(this,t);break}case Q.BEFORE_HEAD:{wp(this,t);break}case Q.IN_HEAD:{Dp(this,t);break}case Q.IN_HEAD_NO_SCRIPT:{Rp(this,t);break}case Q.AFTER_HEAD:{Ip(this,t);break}case Q.IN_BODY:case Q.IN_TABLE:case Q.IN_CAPTION:case Q.IN_COLUMN_GROUP:case Q.IN_TABLE_BODY:case Q.IN_ROW:case Q.IN_CELL:case Q.IN_SELECT:case Q.IN_SELECT_IN_TABLE:{L6(this,t);break}case Q.TEXT:{M0e(this,t);break}case Q.IN_TABLE_TEXT:{Yf(this,t);break}case Q.IN_TEMPLATE:{z6(this,t);break}case Q.AFTER_BODY:case Q.IN_FRAMESET:case Q.AFTER_FRAMESET:case Q.AFTER_AFTER_BODY:case Q.AFTER_AFTER_FRAMESET:{a_(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===V.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 Q.IN_HEAD:case Q.IN_HEAD_NO_SCRIPT:case Q.AFTER_HEAD:case Q.TEXT:case Q.IN_COLUMN_GROUP:case Q.IN_SELECT:case Q.IN_SELECT_IN_TABLE:case Q.IN_FRAMESET:case Q.AFTER_FRAMESET:{this._insertCharacters(t);break}case Q.IN_BODY:case Q.IN_CAPTION:case Q.IN_CELL:case Q.IN_TEMPLATE:case Q.AFTER_BODY:case Q.AFTER_AFTER_BODY:case Q.AFTER_AFTER_FRAMESET:{R6(this,t);break}case Q.IN_TABLE:case Q.IN_TABLE_BODY:case Q.IN_ROW:{YE(this,t);break}case Q.IN_TABLE_TEXT:{M6(this,t);break}}}}function Nye(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):P6(e,t),n}function Pye(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(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function Lye(e,t,n){let r=t,o=e.openElements.getCommonAncestor(t);for(let a=0,s=o;s!==n;a++,s=o){o=e.openElements.getCommonAncestor(s);const c=e.activeFormattingElements.getElementEntry(s),u=c&&a>=Iye;!c||u?(u&&e.activeFormattingElements.removeEntry(c),e.openElements.remove(s)):(s=Mye(e,c),r===t&&(e.activeFormattingElements.bookmark=c),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function Mye(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 Fye(e,t,n){const r=e.treeAdapter.getTagName(t),o=Td(r);if(e._isElementCausesFosterParenting(o))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);o===A.TEMPLATE&&a===Pe.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Bye(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 o_(e,t){for(let n=0;n<Rye;n++){const r=Nye(e,t);if(!r)break;const o=Pye(e,r);if(!o)break;e.activeFormattingElements.bookmark=r;const a=Lye(e,o,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(a),s&&Fye(e,s,a),Bye(e,o,r)}}function wT(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function jye(e,t){e._appendCommentNode(t,e.openElements.items[0])}function Uye(e,t){e._appendCommentNode(t,e.document)}function a_(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],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function Hye(e,t){e._setDocumentType(t);const n=t.forceQuirks?ya.QUIRKS:yye(t);gye(t)||e._err(t,Te.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Q.BEFORE_HTML}function Wf(e,t){e._err(t,Te.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,ya.QUIRKS),e.insertionMode=Q.BEFORE_HTML,e._processToken(t)}function zye(e,t){t.tagID===A.HTML?(e._insertElement(t,Pe.HTML),e.insertionMode=Q.BEFORE_HEAD):kp(e,t)}function $ye(e,t){const n=t.tagID;(n===A.HTML||n===A.HEAD||n===A.BODY||n===A.BR)&&kp(e,t)}function kp(e,t){e._insertFakeRootElement(),e.insertionMode=Q.BEFORE_HEAD,e._processToken(t)}function Vye(e,t){switch(t.tagID){case A.HTML:{to(e,t);break}case A.HEAD:{e._insertElement(t,Pe.HTML),e.headElement=e.openElements.current,e.insertionMode=Q.IN_HEAD;break}default:wp(e,t)}}function Gye(e,t){const n=t.tagID;n===A.HEAD||n===A.BODY||n===A.HTML||n===A.BR?wp(e,t):e._err(t,Te.endTagWithoutMatchingOpenElement)}function wp(e,t){e._insertFakeElement(fe.HEAD,A.HEAD),e.headElement=e.openElements.current,e.insertionMode=Q.IN_HEAD,e._processToken(t)}function qa(e,t){switch(t.tagID){case A.HTML:{to(e,t);break}case A.BASE:case A.BASEFONT:case A.BGSOUND:case A.LINK:case A.META:{e._appendElement(t,Pe.HTML),t.ackSelfClosing=!0;break}case A.TITLE:{e._switchToTextParsing(t,ar.RCDATA);break}case A.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,ar.RAWTEXT):(e._insertElement(t,Pe.HTML),e.insertionMode=Q.IN_HEAD_NO_SCRIPT);break}case A.NOFRAMES:case A.STYLE:{e._switchToTextParsing(t,ar.RAWTEXT);break}case A.SCRIPT:{e._switchToTextParsing(t,ar.SCRIPT_DATA);break}case A.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Q.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(Q.IN_TEMPLATE);break}case A.HEAD:{e._err(t,Te.misplacedStartTagForHeadElement);break}default:Dp(e,t)}}function qye(e,t){switch(t.tagID){case A.HEAD:{e.openElements.pop(),e.insertionMode=Q.AFTER_HEAD;break}case A.BODY:case A.BR:case A.HTML:{Dp(e,t);break}case A.TEMPLATE:{vc(e,t);break}default:e._err(t,Te.endTagWithoutMatchingOpenElement)}}function vc(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==A.TEMPLATE&&e._err(t,Te.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(A.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Te.endTagWithoutMatchingOpenElement)}function Dp(e,t){e.openElements.pop(),e.insertionMode=Q.AFTER_HEAD,e._processToken(t)}function Wye(e,t){switch(t.tagID){case A.HTML:{to(e,t);break}case A.BASEFONT:case A.BGSOUND:case A.HEAD:case A.LINK:case A.META:case A.NOFRAMES:case A.STYLE:{qa(e,t);break}case A.NOSCRIPT:{e._err(t,Te.nestedNoscriptInHead);break}default:Rp(e,t)}}function Yye(e,t){switch(t.tagID){case A.NOSCRIPT:{e.openElements.pop(),e.insertionMode=Q.IN_HEAD;break}case A.BR:{Rp(e,t);break}default:e._err(t,Te.endTagWithoutMatchingOpenElement)}}function Rp(e,t){const n=t.type===Gt.EOF?Te.openElementsLeftAfterEof:Te.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=Q.IN_HEAD,e._processToken(t)}function Kye(e,t){switch(t.tagID){case A.HTML:{to(e,t);break}case A.BODY:{e._insertElement(t,Pe.HTML),e.framesetOk=!1,e.insertionMode=Q.IN_BODY;break}case A.FRAMESET:{e._insertElement(t,Pe.HTML),e.insertionMode=Q.IN_FRAMESET;break}case A.BASE:case A.BASEFONT:case A.BGSOUND:case A.LINK:case A.META:case A.NOFRAMES:case A.SCRIPT:case A.STYLE:case A.TEMPLATE:case A.TITLE:{e._err(t,Te.abandonedHeadElementChild),e.openElements.push(e.headElement,A.HEAD),qa(e,t),e.openElements.remove(e.headElement);break}case A.HEAD:{e._err(t,Te.misplacedStartTagForHeadElement);break}default:Ip(e,t)}}function Qye(e,t){switch(t.tagID){case A.BODY:case A.HTML:case A.BR:{Ip(e,t);break}case A.TEMPLATE:{vc(e,t);break}default:e._err(t,Te.endTagWithoutMatchingOpenElement)}}function Ip(e,t){e._insertFakeElement(fe.BODY,A.BODY),e.insertionMode=Q.IN_BODY,xb(e,t)}function xb(e,t){switch(t.type){case Gt.CHARACTER:{I6(e,t);break}case Gt.WHITESPACE_CHARACTER:{R6(e,t);break}case Gt.COMMENT:{wT(e,t);break}case Gt.START_TAG:{to(e,t);break}case Gt.END_TAG:{Tb(e,t);break}case Gt.EOF:{L6(e,t);break}}}function R6(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function I6(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Xye(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Zye(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function Jye(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Pe.HTML),e.insertionMode=Q.IN_FRAMESET)}function e0e(e,t){e.openElements.hasInButtonScope(A.P)&&e._closePElement(),e._insertElement(t,Pe.HTML)}function t0e(e,t){e.openElements.hasInButtonScope(A.P)&&e._closePElement(),kT.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Pe.HTML)}function n0e(e,t){e.openElements.hasInButtonScope(A.P)&&e._closePElement(),e._insertElement(t,Pe.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function r0e(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(A.P)&&e._closePElement(),e._insertElement(t,Pe.HTML),n||(e.formElement=e.openElements.current))}function o0e(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===A.LI&&o===A.LI||(n===A.DD||n===A.DT)&&(o===A.DD||o===A.DT)){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(o!==A.ADDRESS&&o!==A.DIV&&o!==A.P&&e._isSpecialElement(e.openElements.items[r],o))break}e.openElements.hasInButtonScope(A.P)&&e._closePElement(),e._insertElement(t,Pe.HTML)}function a0e(e,t){e.openElements.hasInButtonScope(A.P)&&e._closePElement(),e._insertElement(t,Pe.HTML),e.tokenizer.state=ar.PLAINTEXT}function i0e(e,t){e.openElements.hasInScope(A.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(A.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Pe.HTML),e.framesetOk=!1}function s0e(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(fe.A);n&&(o_(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 l0e(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Pe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function c0e(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(A.NOBR)&&(o_(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Pe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function u0e(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Pe.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function d0e(e,t){e.treeAdapter.getDocumentMode(e.document)!==ya.QUIRKS&&e.openElements.hasInButtonScope(A.P)&&e._closePElement(),e._insertElement(t,Pe.HTML),e.framesetOk=!1,e.insertionMode=Q.IN_TABLE}function O6(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Pe.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function N6(e){const t=b6(e,Kl.TYPE);return t!=null&&t.toLowerCase()===Dye}function f0e(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Pe.HTML),N6(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function p0e(e,t){e._appendElement(t,Pe.HTML),t.ackSelfClosing=!0}function h0e(e,t){e.openElements.hasInButtonScope(A.P)&&e._closePElement(),e._appendElement(t,Pe.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function m0e(e,t){t.tagName=fe.IMG,t.tagID=A.IMG,O6(e,t)}function g0e(e,t){e._insertElement(t,Pe.HTML),e.skipNextNewLine=!0,e.tokenizer.state=ar.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Q.TEXT}function y0e(e,t){e.openElements.hasInButtonScope(A.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,ar.RAWTEXT)}function b0e(e,t){e.framesetOk=!1,e._switchToTextParsing(t,ar.RAWTEXT)}function oN(e,t){e._switchToTextParsing(t,ar.RAWTEXT)}function v0e(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Pe.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===Q.IN_TABLE||e.insertionMode===Q.IN_CAPTION||e.insertionMode===Q.IN_TABLE_BODY||e.insertionMode===Q.IN_ROW||e.insertionMode===Q.IN_CELL?Q.IN_SELECT_IN_TABLE:Q.IN_SELECT}function E0e(e,t){e.openElements.currentTagId===A.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Pe.HTML)}function x0e(e,t){e.openElements.hasInScope(A.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Pe.HTML)}function T0e(e,t){e.openElements.hasInScope(A.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(A.RTC),e._insertElement(t,Pe.HTML)}function S0e(e,t){e._reconstructActiveFormattingElements(),k6(t),r_(t),t.selfClosing?e._appendElement(t,Pe.MATHML):e._insertElement(t,Pe.MATHML),t.ackSelfClosing=!0}function C0e(e,t){e._reconstructActiveFormattingElements(),w6(t),r_(t),t.selfClosing?e._appendElement(t,Pe.SVG):e._insertElement(t,Pe.SVG),t.ackSelfClosing=!0}function aN(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Pe.HTML)}function to(e,t){switch(t.tagID){case A.I:case A.S:case A.B:case A.U:case A.EM:case A.TT:case A.BIG:case A.CODE:case A.FONT:case A.SMALL:case A.STRIKE:case A.STRONG:{l0e(e,t);break}case A.A:{s0e(e,t);break}case A.H1:case A.H2:case A.H3:case A.H4:case A.H5:case A.H6:{t0e(e,t);break}case A.P:case A.DL:case A.OL:case A.UL:case A.DIV:case A.DIR:case A.NAV:case A.MAIN:case A.MENU:case A.ASIDE:case A.CENTER:case A.FIGURE:case A.FOOTER:case A.HEADER:case A.HGROUP:case A.DIALOG:case A.DETAILS:case A.ADDRESS:case A.ARTICLE:case A.SEARCH:case A.SECTION:case A.SUMMARY:case A.FIELDSET:case A.BLOCKQUOTE:case A.FIGCAPTION:{e0e(e,t);break}case A.LI:case A.DD:case A.DT:{o0e(e,t);break}case A.BR:case A.IMG:case A.WBR:case A.AREA:case A.EMBED:case A.KEYGEN:{O6(e,t);break}case A.HR:{h0e(e,t);break}case A.RB:case A.RTC:{x0e(e,t);break}case A.RT:case A.RP:{T0e(e,t);break}case A.PRE:case A.LISTING:{n0e(e,t);break}case A.XMP:{y0e(e,t);break}case A.SVG:{C0e(e,t);break}case A.HTML:{Xye(e,t);break}case A.BASE:case A.LINK:case A.META:case A.STYLE:case A.TITLE:case A.SCRIPT:case A.BGSOUND:case A.BASEFONT:case A.TEMPLATE:{qa(e,t);break}case A.BODY:{Zye(e,t);break}case A.FORM:{r0e(e,t);break}case A.NOBR:{c0e(e,t);break}case A.MATH:{S0e(e,t);break}case A.TABLE:{d0e(e,t);break}case A.INPUT:{f0e(e,t);break}case A.PARAM:case A.TRACK:case A.SOURCE:{p0e(e,t);break}case A.IMAGE:{m0e(e,t);break}case A.BUTTON:{i0e(e,t);break}case A.APPLET:case A.OBJECT:case A.MARQUEE:{u0e(e,t);break}case A.IFRAME:{b0e(e,t);break}case A.SELECT:{v0e(e,t);break}case A.OPTION:case A.OPTGROUP:{E0e(e,t);break}case A.NOEMBED:case A.NOFRAMES:{oN(e,t);break}case A.FRAMESET:{Jye(e,t);break}case A.TEXTAREA:{g0e(e,t);break}case A.NOSCRIPT:{e.options.scriptingEnabled?oN(e,t):aN(e,t);break}case A.PLAINTEXT:{a0e(e,t);break}case A.COL:case A.TH:case A.TD:case A.TR:case A.HEAD:case A.FRAME:case A.TBODY:case A.TFOOT:case A.THEAD:case A.CAPTION:case A.COLGROUP:break;default:aN(e,t)}}function _0e(e,t){if(e.openElements.hasInScope(A.BODY)&&(e.insertionMode=Q.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function A0e(e,t){e.openElements.hasInScope(A.BODY)&&(e.insertionMode=Q.AFTER_BODY,$6(e,t))}function k0e(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function w0e(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(A.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(A.FORM):n&&e.openElements.remove(n))}function D0e(e){e.openElements.hasInButtonScope(A.P)||e._insertFakeElement(fe.P,A.P),e._closePElement()}function R0e(e){e.openElements.hasInListItemScope(A.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(A.LI),e.openElements.popUntilTagNamePopped(A.LI))}function I0e(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function O0e(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function N0e(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function P0e(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(fe.BR,A.BR),e.openElements.pop(),e.framesetOk=!1}function P6(e,t){const n=t.tagName,r=t.tagID;for(let o=e.openElements.stackTop;o>0;o--){const a=e.openElements.items[o],s=e.openElements.tagIDs[o];if(r===s&&(r!==A.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=o&&e.openElements.shortenToLength(o);break}if(e._isSpecialElement(a,s))break}}function Tb(e,t){switch(t.tagID){case A.A:case A.B:case A.I:case A.S:case A.U:case A.EM:case A.TT:case A.BIG:case A.CODE:case A.FONT:case A.NOBR:case A.SMALL:case A.STRIKE:case A.STRONG:{o_(e,t);break}case A.P:{D0e(e);break}case A.DL:case A.UL:case A.OL:case A.DIR:case A.DIV:case A.NAV:case A.PRE:case A.MAIN:case A.MENU:case A.ASIDE:case A.BUTTON:case A.CENTER:case A.FIGURE:case A.FOOTER:case A.HEADER:case A.HGROUP:case A.DIALOG:case A.ADDRESS:case A.ARTICLE:case A.DETAILS:case A.SEARCH:case A.SECTION:case A.SUMMARY:case A.LISTING:case A.FIELDSET:case A.BLOCKQUOTE:case A.FIGCAPTION:{k0e(e,t);break}case A.LI:{R0e(e);break}case A.DD:case A.DT:{I0e(e,t);break}case A.H1:case A.H2:case A.H3:case A.H4:case A.H5:case A.H6:{O0e(e);break}case A.BR:{P0e(e);break}case A.BODY:{_0e(e,t);break}case A.HTML:{A0e(e,t);break}case A.FORM:{w0e(e);break}case A.APPLET:case A.OBJECT:case A.MARQUEE:{N0e(e,t);break}case A.TEMPLATE:{vc(e,t);break}default:P6(e,t)}}function L6(e,t){e.tmplInsertionModeStack.length>0?z6(e,t):a_(e,t)}function L0e(e,t){var n;t.tagID===A.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function M0e(e,t){e._err(t,Te.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function YE(e,t){if(D6.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Q.IN_TABLE_TEXT,t.type){case Gt.CHARACTER:{F6(e,t);break}case Gt.WHITESPACE_CHARACTER:{M6(e,t);break}}else qh(e,t)}function F0e(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Pe.HTML),e.insertionMode=Q.IN_CAPTION}function B0e(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Pe.HTML),e.insertionMode=Q.IN_COLUMN_GROUP}function j0e(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(fe.COLGROUP,A.COLGROUP),e.insertionMode=Q.IN_COLUMN_GROUP,i_(e,t)}function U0e(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Pe.HTML),e.insertionMode=Q.IN_TABLE_BODY}function H0e(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(fe.TBODY,A.TBODY),e.insertionMode=Q.IN_TABLE_BODY,Sb(e,t)}function z0e(e,t){e.openElements.hasInTableScope(A.TABLE)&&(e.openElements.popUntilTagNamePopped(A.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function $0e(e,t){N6(t)?e._appendElement(t,Pe.HTML):qh(e,t),t.ackSelfClosing=!0}function V0e(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Pe.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Ju(e,t){switch(t.tagID){case A.TD:case A.TH:case A.TR:{H0e(e,t);break}case A.STYLE:case A.SCRIPT:case A.TEMPLATE:{qa(e,t);break}case A.COL:{j0e(e,t);break}case A.FORM:{V0e(e,t);break}case A.TABLE:{z0e(e,t);break}case A.TBODY:case A.TFOOT:case A.THEAD:{U0e(e,t);break}case A.INPUT:{$0e(e,t);break}case A.CAPTION:{F0e(e,t);break}case A.COLGROUP:{B0e(e,t);break}default:qh(e,t)}}function hh(e,t){switch(t.tagID){case A.TABLE:{e.openElements.hasInTableScope(A.TABLE)&&(e.openElements.popUntilTagNamePopped(A.TABLE),e._resetInsertionMode());break}case A.TEMPLATE:{vc(e,t);break}case A.BODY:case A.CAPTION:case A.COL:case A.COLGROUP:case A.HTML:case A.TBODY:case A.TD:case A.TFOOT:case A.TH:case A.THEAD:case A.TR:break;default:qh(e,t)}}function qh(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,xb(e,t),e.fosterParentingEnabled=n}function M6(e,t){e.pendingCharacterTokens.push(t)}function F6(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Yf(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)qh(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const B6=new Set([A.CAPTION,A.COL,A.COLGROUP,A.TBODY,A.TD,A.TFOOT,A.TH,A.THEAD,A.TR]);function G0e(e,t){const n=t.tagID;B6.has(n)?e.openElements.hasInTableScope(A.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(A.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Q.IN_TABLE,Ju(e,t)):to(e,t)}function q0e(e,t){const n=t.tagID;switch(n){case A.CAPTION:case A.TABLE:{e.openElements.hasInTableScope(A.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(A.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Q.IN_TABLE,n===A.TABLE&&hh(e,t));break}case A.BODY:case A.COL:case A.COLGROUP:case A.HTML:case A.TBODY:case A.TD:case A.TFOOT:case A.TH:case A.THEAD:case A.TR:break;default:Tb(e,t)}}function i_(e,t){switch(t.tagID){case A.HTML:{to(e,t);break}case A.COL:{e._appendElement(t,Pe.HTML),t.ackSelfClosing=!0;break}case A.TEMPLATE:{qa(e,t);break}default:t0(e,t)}}function W0e(e,t){switch(t.tagID){case A.COLGROUP:{e.openElements.currentTagId===A.COLGROUP&&(e.openElements.pop(),e.insertionMode=Q.IN_TABLE);break}case A.TEMPLATE:{vc(e,t);break}case A.COL:break;default:t0(e,t)}}function t0(e,t){e.openElements.currentTagId===A.COLGROUP&&(e.openElements.pop(),e.insertionMode=Q.IN_TABLE,e._processToken(t))}function Sb(e,t){switch(t.tagID){case A.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Pe.HTML),e.insertionMode=Q.IN_ROW;break}case A.TH:case A.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(fe.TR,A.TR),e.insertionMode=Q.IN_ROW,Cb(e,t);break}case A.CAPTION:case A.COL:case A.COLGROUP:case A.TBODY:case A.TFOOT:case A.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Q.IN_TABLE,Ju(e,t));break}default:Ju(e,t)}}function DT(e,t){const n=t.tagID;switch(t.tagID){case A.TBODY:case A.TFOOT:case A.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Q.IN_TABLE);break}case A.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Q.IN_TABLE,hh(e,t));break}case A.BODY:case A.CAPTION:case A.COL:case A.COLGROUP:case A.HTML:case A.TD:case A.TH:case A.TR:break;default:hh(e,t)}}function Cb(e,t){switch(t.tagID){case A.TH:case A.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,Pe.HTML),e.insertionMode=Q.IN_CELL,e.activeFormattingElements.insertMarker();break}case A.CAPTION:case A.COL:case A.COLGROUP:case A.TBODY:case A.TFOOT:case A.THEAD:case A.TR:{e.openElements.hasInTableScope(A.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Q.IN_TABLE_BODY,Sb(e,t));break}default:Ju(e,t)}}function j6(e,t){switch(t.tagID){case A.TR:{e.openElements.hasInTableScope(A.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Q.IN_TABLE_BODY);break}case A.TABLE:{e.openElements.hasInTableScope(A.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Q.IN_TABLE_BODY,DT(e,t));break}case A.TBODY:case A.TFOOT:case A.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(A.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Q.IN_TABLE_BODY,DT(e,t));break}case A.BODY:case A.CAPTION:case A.COL:case A.COLGROUP:case A.HTML:case A.TD:case A.TH:break;default:hh(e,t)}}function Y0e(e,t){const n=t.tagID;B6.has(n)?(e.openElements.hasInTableScope(A.TD)||e.openElements.hasInTableScope(A.TH))&&(e._closeTableCell(),Cb(e,t)):to(e,t)}function K0e(e,t){const n=t.tagID;switch(n){case A.TD:case A.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Q.IN_ROW);break}case A.TABLE:case A.TBODY:case A.TFOOT:case A.THEAD:case A.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),j6(e,t));break}case A.BODY:case A.CAPTION:case A.COL:case A.COLGROUP:case A.HTML:break;default:Tb(e,t)}}function U6(e,t){switch(t.tagID){case A.HTML:{to(e,t);break}case A.OPTION:{e.openElements.currentTagId===A.OPTION&&e.openElements.pop(),e._insertElement(t,Pe.HTML);break}case A.OPTGROUP:{e.openElements.currentTagId===A.OPTION&&e.openElements.pop(),e.openElements.currentTagId===A.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Pe.HTML);break}case A.HR:{e.openElements.currentTagId===A.OPTION&&e.openElements.pop(),e.openElements.currentTagId===A.OPTGROUP&&e.openElements.pop(),e._appendElement(t,Pe.HTML),t.ackSelfClosing=!0;break}case A.INPUT:case A.KEYGEN:case A.TEXTAREA:case A.SELECT:{e.openElements.hasInSelectScope(A.SELECT)&&(e.openElements.popUntilTagNamePopped(A.SELECT),e._resetInsertionMode(),t.tagID!==A.SELECT&&e._processStartTag(t));break}case A.SCRIPT:case A.TEMPLATE:{qa(e,t);break}}}function H6(e,t){switch(t.tagID){case A.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===A.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===A.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===A.OPTGROUP&&e.openElements.pop();break}case A.OPTION:{e.openElements.currentTagId===A.OPTION&&e.openElements.pop();break}case A.SELECT:{e.openElements.hasInSelectScope(A.SELECT)&&(e.openElements.popUntilTagNamePopped(A.SELECT),e._resetInsertionMode());break}case A.TEMPLATE:{vc(e,t);break}}}function Q0e(e,t){const n=t.tagID;n===A.CAPTION||n===A.TABLE||n===A.TBODY||n===A.TFOOT||n===A.THEAD||n===A.TR||n===A.TD||n===A.TH?(e.openElements.popUntilTagNamePopped(A.SELECT),e._resetInsertionMode(),e._processStartTag(t)):U6(e,t)}function X0e(e,t){const n=t.tagID;n===A.CAPTION||n===A.TABLE||n===A.TBODY||n===A.TFOOT||n===A.THEAD||n===A.TR||n===A.TD||n===A.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(A.SELECT),e._resetInsertionMode(),e.onEndTag(t)):H6(e,t)}function Z0e(e,t){switch(t.tagID){case A.BASE:case A.BASEFONT:case A.BGSOUND:case A.LINK:case A.META:case A.NOFRAMES:case A.SCRIPT:case A.STYLE:case A.TEMPLATE:case A.TITLE:{qa(e,t);break}case A.CAPTION:case A.COLGROUP:case A.TBODY:case A.TFOOT:case A.THEAD:{e.tmplInsertionModeStack[0]=Q.IN_TABLE,e.insertionMode=Q.IN_TABLE,Ju(e,t);break}case A.COL:{e.tmplInsertionModeStack[0]=Q.IN_COLUMN_GROUP,e.insertionMode=Q.IN_COLUMN_GROUP,i_(e,t);break}case A.TR:{e.tmplInsertionModeStack[0]=Q.IN_TABLE_BODY,e.insertionMode=Q.IN_TABLE_BODY,Sb(e,t);break}case A.TD:case A.TH:{e.tmplInsertionModeStack[0]=Q.IN_ROW,e.insertionMode=Q.IN_ROW,Cb(e,t);break}default:e.tmplInsertionModeStack[0]=Q.IN_BODY,e.insertionMode=Q.IN_BODY,to(e,t)}}function J0e(e,t){t.tagID===A.TEMPLATE&&vc(e,t)}function z6(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(A.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):a_(e,t)}function ebe(e,t){t.tagID===A.HTML?to(e,t):n0(e,t)}function $6(e,t){var n;if(t.tagID===A.HTML){if(e.fragmentContext||(e.insertionMode=Q.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===A.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 n0(e,t)}function n0(e,t){e.insertionMode=Q.IN_BODY,xb(e,t)}function tbe(e,t){switch(t.tagID){case A.HTML:{to(e,t);break}case A.FRAMESET:{e._insertElement(t,Pe.HTML);break}case A.FRAME:{e._appendElement(t,Pe.HTML),t.ackSelfClosing=!0;break}case A.NOFRAMES:{qa(e,t);break}}}function nbe(e,t){t.tagID===A.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==A.FRAMESET&&(e.insertionMode=Q.AFTER_FRAMESET))}function rbe(e,t){switch(t.tagID){case A.HTML:{to(e,t);break}case A.NOFRAMES:{qa(e,t);break}}}function obe(e,t){t.tagID===A.HTML&&(e.insertionMode=Q.AFTER_AFTER_FRAMESET)}function abe(e,t){t.tagID===A.HTML?to(e,t):ny(e,t)}function ny(e,t){e.insertionMode=Q.IN_BODY,xb(e,t)}function ibe(e,t){switch(t.tagID){case A.HTML:{to(e,t);break}case A.NOFRAMES:{qa(e,t);break}}}function sbe(e,t){t.chars=Un,e._insertCharacters(t)}function lbe(e,t){e._insertCharacters(t),e.framesetOk=!1}function V6(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Pe.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function cbe(e,t){if(Cye(t))V6(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Pe.MATHML?k6(t):r===Pe.SVG&&(_ye(t),w6(t)),r_(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function ube(e,t){if(t.tagID===A.P||t.tagID===A.BR){V6(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}}}fe.AREA,fe.BASE,fe.BASEFONT,fe.BGSOUND,fe.BR,fe.COL,fe.EMBED,fe.FRAME,fe.HR,fe.IMG,fe.INPUT,fe.KEYGEN,fe.LINK,fe.META,fe.PARAM,fe.SOURCE,fe.TRACK,fe.WBR;const dbe=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,fbe=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),iN={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function G6(e,t){const n=Tbe(e),r=sb("type",{handlers:{root:pbe,element:hbe,text:mbe,comment:W6,doctype:gbe,raw:bbe},unknown:vbe}),o={parser:n?new rN(iN):rN.getFragmentParser(void 0,iN),handle(c){r(c,o)},stitches:!1,options:t||{}};r(e,o),Sd(o,Ei());const a=n?o.parser.document:o.parser.getFragment(),s=hge(a,{file:o.options.file});return o.stitches&&wo(s,"comment",function(c,u,d){const p=c;if(p.value.stitch&&d&&u!==void 0){const h=d.children;return h[u]=p.value.stitch,u}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function q6(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function pbe(e,t){q6(e.children,t)}function hbe(e,t){Ebe(e,t),q6(e.children,t),xbe(e,t)}function mbe(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:Gt.CHARACTER,chars:e.value,location:Wh(e)};Sd(t,Ei(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function gbe(e,t){const n={type:Gt.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Wh(e)};Sd(t,Ei(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function ybe(e,t){t.stitches=!0;const n=Sbe(e);if("children"in e&&"children"in n){const r=G6({type:"root",children:e.children},t.options);n.children=r.children}W6({type:"comment",value:{stitch:n}},t)}function W6(e,t){const n=e.value,r={type:Gt.COMMENT,data:n,location:Wh(e)};Sd(t,Ei(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function bbe(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,Y6(t,Ei(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(dbe,"<$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 vbe(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))ybe(n,t);else{let r="";throw fbe.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 Sd(e,t){Y6(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=ar.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 Y6(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 Ebe(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===ar.PLAINTEXT)return;Sd(t,Ei(e));const r=t.parser.openElements.current;let o="namespaceURI"in r?r.namespaceURI:$l.html;o===$l.html&&n==="svg"&&(o=$l.svg);const a=Dge({...e,children:[]},{space:o===$l.svg?"svg":"html"}),s={type:Gt.START_TAG,tagName:n,tagID:Td(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:Wh(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function xbe(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&VP.includes(n)||t.parser.tokenizer.state===ar.PLAINTEXT)return;Sd(t,mb(e));const r={type:Gt.END_TAG,tagName:n,tagID:Td(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Wh(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===ar.RCDATA||t.parser.tokenizer.state===ar.RAWTEXT||t.parser.tokenizer.state===ar.SCRIPT_DATA)&&(t.parser.tokenizer.state=ar.DATA)}function Tbe(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Wh(e){const t=Ei(e)||{line:void 0,column:void 0,offset:void 0},n=mb(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 Sbe(e){return"children"in e?uc({...e,children:[]}):uc(e)}function K6(e){return function(t,n){return G6(t,{...e,file:n})}}const Cbe=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,_be=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,Abe=({legacyTitle:e=!1,tagName:t="div"}={})=>n=>{wo(n,"blockquote",(r,o,a)=>{let s="",c="",u=!0,d=r.children.map(p=>{if(u&&p.type==="paragraph"){const h=p.children[0],g=h.type==="text"?h.value:"",y=e?_be:Cbe,b=g.match(y);if(b&&(u=!1,s=b[1].toLocaleLowerCase(),c=e&&b[2]||s.toLocaleUpperCase(),g.includes(`
|
|
391
|
+
`)&&(p.children[0]={type:"text",value:g.replace(y,"").replace(/^\n+/,"")}),!g.includes(`
|
|
392
|
+
`))){const x=[];p.children.forEach((S,T)=>{T!=0&&(T==1&&S.type==="break"||x.push(S))}),p.children=[...x]}}return p});s&&(r.data={hName:t,hProperties:{class:`markdown-alert markdown-alert-${s}`,dir:"auto"}},d.unshift({type:"paragraph",children:[kbe(s),{type:"text",value:c.replace(/^\//,"")}],data:{hProperties:{class:"markdown-alert-title",dir:"auto"}}})),r.children=[...d]})};function kbe(e){let t=wbe[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 wbe={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 Dbe(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 Q6(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?Q6(t.parentElement):null}function Rbe(e){var t=n=>{var r=Q6(n.target);r&&(r.classList.add("active"),Dbe(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};k.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 Ibe=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],Obe=e=>e;const Nbe=Fe.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:o,style:a,disableCopy:s=!1,skipHtml:c=!0,onScroll:u,onMouseOver:d,pluginsFilter:p,wrapperElement:h={},warpperElement:g={},urlTransform:y}=e,b=Xce(e,Ibe),x=Fe.useRef(null);k.useImperativeHandle(t,()=>Zi({},e,{mdp:x}),[x,e]);var S=(n||"")+" "+(r||"");Rbe(x);var T=[...b.rehypePlugins||[]],D={allowElement:(I,O,F)=>b.allowElement?b.allowElement(I,O,F):/^[A-Za-z0-9]+$/.test(I.tagName)};c&&T.push(K6);var w=[Abe,...b.remarkPlugins||[],rge],R=Zi({},g,h);return v.jsx("div",Zi({ref:x,onScroll:u,onMouseOver:d},R,{className:S,style:a,children:v.jsx(Wpe,Zi({},D,b,{skipHtml:c,urlTransform:y||Obe,rehypePlugins:p?p("rehype",T):T,remarkPlugins:p?p("remark",w):w,children:o||""}))}))});var ry={},RT={};function Pbe(e,t){for(var n=t,r=0;r<e.length;r++){var o=r===e.length-1,a=e.charAt(r),s=n[a]||(n[a]={chars:{}});o&&(s.self=e),n=s.chars}}function sN(e){if(e.length===0)return ry;for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];Pbe(o,t)}return t}function Lbe(e){if(e.length===0)return RT;for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];t[o]=!0}return t}var Dg={},lN={type:"String",optional:!0};function Mbe(e){var t={type:"NoArgument",optional:!1};function n(s){if(t.type&&t.type!==s&&t.type!=="NoArgument")throw new Error('Conflicting pseudo-class argument type: "'.concat(t.type,'" vs "').concat(s,'".'));t.type=s}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 Fbe(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 s=0,c=a;s<c.length;s++){var u=c[s];(t[u]||(t[u]=[])).push(o)}}return t}function cN(e){for(var t=Fbe(e),n={},r=0,o=Object.keys(t);r<o.length;r++){var a=o[r],s=t[a];s&&(n[a]=Mbe(s))}return n}var ed=function(){return ed=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},ed.apply(this,arguments)},Bbe={},IT={wildcard:!0};function jbe(e){return e?typeof e=="boolean"?IT:e:Bbe}function Ube(e,t){return function(n,r){return t(e(n),e(r))}}function Hbe(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 uN(e,t){return function(n,r){return r===!0?e:t(n===!0?e:n,r)}}function mu(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=ed({},t),o=0,a=Object.entries(n);o<a.length;o++){var s=a[o],c=s[0],u=s[1];if(c!=="latest"){var d=e[c];r[c]=d(t[c],u)}}return r}}function Gi(e,t){return t!==void 0?t:e}function Rg(e,t){return t?e?e.concat(t):t:e}function dN(e,t){if(!t)return e;if(!e)return t;for(var n=ed({},e),r=0,o=Object.entries(t);r<o.length;r++){var a=o[r],s=a[0],c=a[1];if(!c){delete n[s];continue}var u=e[s];if(!u){n[s]=c;continue}n[s]=u.concat(c)}return n}var Ql=Hbe(mu({baseSyntax:Gi,modules:Rg,tag:uN(IT,mu({wildcard:Gi})),ids:Gi,classNames:Gi,namespace:uN(IT,mu({wildcard:Gi})),combinators:Rg,attributes:mu({operators:Rg,caseSensitivityModifiers:Rg,unknownCaseSensitivityModifiers:Gi}),pseudoClasses:mu({unknown:Gi,definitions:dN}),pseudoElements:mu({unknown:Gi,notation:Gi,definitions:Ube(function(e){return Array.isArray(e)?{NoArgument:e}:e},dN)})})),X6={tag:{},ids:!0,classNames:!0,combinators:[],pseudoElements:{unknown:"reject",notation:"singleColon",definitions:["first-letter","first-line"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["link","visited","active"]}}},Z6=Ql(X6,{tag:{wildcard:!0},combinators:[">","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),OT=Ql(Z6,{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"]}}}),J6=Ql(OT,{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"],Selector:["part"]}}}),r0={"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:{Selector:["part"]}}}},e8=ed(ed({},J6),{modules:Object.entries(r0).filter(function(e){var t=e[1].latest;return t}).map(function(e){var t=e[0];return t})}),zbe=Ql(e8,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),NT={css1:X6,css2:Z6,css3:OT,"selectors-3":OT,"selectors-4":J6,latest:e8,progressive:zbe};function $be(){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=NT[o];if(a.pseudoClasses&&typeof a.pseudoClasses=="object"){var s=a.pseudoClasses.definitions;if(s)for(var c=0,u=Object.entries(s);c<u.length;c++)for(var d=u[c],p=d[1],h=0,g=p;h<g.length;h++){var y=g[h];e.pseudoClasses[y]||(e.pseudoClasses[y]=[]),e.pseudoClasses[y].includes(o)||e.pseudoClasses[y].push(o)}}if(a.pseudoElements&&typeof a.pseudoElements=="object"){var s=a.pseudoElements.definitions;if(s)if(Array.isArray(s))for(var b=0,x=s;b<x.length;b++){var S=x[b];e.pseudoElements[S]||(e.pseudoElements[S]=[]),e.pseudoElements[S].includes(o)||e.pseudoElements[S].push(o)}else for(var T=0,D=Object.values(s);T<D.length;T++)for(var p=D[T],w=0,R=p;w<R.length;w++){var I=R[w];e.pseudoElements[I]||(e.pseudoElements[I]=[]),e.pseudoElements[I].includes(o)||e.pseudoElements[I].push(o)}}}for(var O=0,F=Object.entries(r0);O<F.length;O++){var j=F[O],H=j[0],C=j[1];if(C.pseudoClasses&&typeof C.pseudoClasses=="object"){var s=C.pseudoClasses.definitions;if(s)for(var M=0,$=Object.values(s);M<$.length;M++)for(var p=$[M],z=0,q=p;z<q.length;z++){var Y=q[z];e.pseudoClasses[Y]||(e.pseudoClasses[Y]=[]),e.pseudoClasses[Y].includes(H)||e.pseudoClasses[Y].push(H)}}if(C.pseudoElements&&typeof C.pseudoElements=="object"){var s=C.pseudoElements.definitions;if(s)if(Array.isArray(s))for(var B=0,X=s;B<X.length;B++){var ae=X[B];e.pseudoElements[ae]||(e.pseudoElements[ae]=[]),e.pseudoElements[ae].includes(H)||e.pseudoElements[ae].push(H)}else for(var te=0,N=Object.values(s);te<N.length;te++)for(var p=N[te],oe=0,K=p;oe<K.length;oe++){var P=K[oe];e.pseudoElements[P]||(e.pseudoElements[P]=[]),e.pseudoElements[P].includes(H)||e.pseudoElements[P].push(H)}}}return e}var fN=$be();function Kf(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function pN(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function Qf(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var Vbe={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},Gbe={'"':!0,"'":!0},KE={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},qbe=6,QE="css-selector-parser parse error: ";function Wbe(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,s=e.modules,c=typeof n=="object"?n:NT[n];if(c.baseSyntax&&(c=Ql(NT[c.baseSyntax],c)),c.modules&&c.modules.length>0)for(var u=0,d=c.modules;u<d.length;u++){var p=d[u],h=r0[p];h&&(c=Ql(h,c))}if(s&&s.length>0)for(var g=0,y=s;g<y.length;g++){var b=y[g],h=r0[b];h&&(c=Ql(h,c))}var x=c.tag?[!0,!!jbe(c.tag).wildcard]:[!1,!1],S=x[0],T=x[1],D=!!c.ids,w=!!c.classNames,R=!!c.namespace,I=c.namespace&&(c.namespace===!0||c.namespace.wildcard===!0);if(R&&!S)throw new Error("".concat(QE,"Namespaces cannot be enabled while tags are disabled."));var O=!!r,F=c.combinators?sN(c.combinators):ry,j=c.attributes?[!0,c.attributes.operators?sN(c.attributes.operators):ry,c.attributes.caseSensitivityModifiers?Lbe(c.attributes.caseSensitivityModifiers):RT,c.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,ry,RT,!1],H=j[0],C=j[1],M=j[2],$=j[3],z=$||Object.keys(M).length>0,q=c.pseudoClasses?[!0,c.pseudoClasses.definitions?cN(c.pseudoClasses.definitions):Dg,c.pseudoClasses.unknown==="accept"]:[!1,Dg,!1],Y=q[0],B=q[1],X=q[2],ae=c.pseudoElements?[!0,c.pseudoElements.notation==="singleColon"||c.pseudoElements.notation==="both",!c.pseudoElements.notation||c.pseudoElements.notation==="doubleColon"||c.pseudoElements.notation==="both",c.pseudoElements.definitions?cN(Array.isArray(c.pseudoElements.definitions)?{NoArgument:c.pseudoElements.definitions}:c.pseudoElements.definitions):Dg,c.pseudoElements.unknown==="accept"]:[!1,!1,!1,Dg,!1],te=ae[0],N=ae[1],oe=ae[2],K=ae[3],P=ae[4],ee="",ce=ee.length,re=0,be="",ye=function(Ee){return be===Ee},Ge=function(){return ye("*")||Kf(be)},Me=function(Ee){re=Ee,be=ee.charAt(re)},Oe=function(){re++,be=ee.charAt(re)},Qe=function(){var Ee=be;return re++,be=ee.charAt(re),Ee};function nt(Ee){var Se=Math.min(ce-1,re),ht=new Error("".concat(QE).concat(Ee," Pos: ").concat(Se,"."));throw ht.position=Se,ht.name="ParserError",ht}function Re(Ee,Se){if(!Ee)return nt(Se)}var gt=function(){Re(re<ce,"Unexpected end of input.")},_t=function(){return re>=ce},je=function(Ee){Re(re<ce,'Expected "'.concat(Ee,'" but end of input reached.')),Re(be===Ee,'Expected "'.concat(Ee,'" but "').concat(be,'" found.')),re++,be=ee.charAt(re)};function mt(Ee){var Se=lt(Ee,re);if(Se)return re+=Se.length,be=ee.charAt(re),Se}function lt(Ee,Se){var ht=ee.charAt(Se),rt=Ee[ht];if(rt){var mn=lt(rt.chars,Se+1);if(mn)return mn;if(rt.self)return rt.self}}function ft(){for(var Ee=Qe(),Se=1;Qf(be)&&Se<qbe;)Ee+=Qe(),Se++;return jt(),String.fromCharCode(parseInt(Ee,16))}function Ue(Ee){var Se="";for(je(Ee);re<ce;){if(ye(Ee))return Oe(),Se;ye("\\")?(Oe(),ye(Ee)?(Se+=Ee,Oe()):be===`
|
|
393
|
+
`||be==="\f"?Oe():be==="\r"?(Oe(),ye(`
|
|
394
|
+
`)&&Oe()):Qf(be)?Se+=ft():(Se+=be,Oe())):(Se+=be,Oe())}return Se}function Le(){if(!Kf(be))return null;for(var Ee="";ye("-");)Ee+=be,Oe();for(Ee==="-"&&!pN(be)&&!ye("\\")&&nt("Identifiers cannot consist of a single hyphen."),a&&Ee.length>=2&&nt("Identifiers cannot start with two hyphens with strict mode on."),KE[be]&&nt("Identifiers cannot start with hyphens followed by digits.");re<ce;)if(pN(be))Ee+=Qe();else if(ye("\\"))Oe(),gt(),Qf(be)?Ee+=ft():Ee+=Qe();else break;return Ee}function Jt(){for(var Ee="";re<ce&&!ye(")");)if(ye("\\")){if(Oe(),_t()&&!a)return(Ee+"\\").trim();gt(),Qf(be)?Ee+=ft():Ee+=Qe()}else Ee+=Qe();return Ee.trim()}function jt(){if(be===" "||be===" "||be==="\f"||be===`
|
|
395
|
+
`){Oe();return}be==="\r"&&Oe(),be===`
|
|
396
|
+
`&&Oe()}function At(){for(;Vbe[be];)Oe()}function de(Ee){Ee===void 0&&(Ee=!1),At();for(var Se=[Ke(Ee)];ye(",");)Oe(),At(),Se.push(Ke(Ee));return{type:"Selector",rules:Se}}function ge(){je("["),At();var Ee;if(ye("|")){Re(R,"Namespaces are not enabled."),Oe();var Se=Le();Re(Se,"Expected attribute name."),Ee={type:"Attribute",name:Se,namespace:{type:"NoNamespace"}}}else if(ye("*")){Re(R,"Namespaces are not enabled."),Re(I,"Wildcard namespace is not enabled."),Oe(),je("|");var ht=Le();Re(ht,"Expected attribute name."),Ee={type:"Attribute",name:ht,namespace:{type:"WildcardNamespace"}}}else{var rt=Le();if(Re(rt,"Expected attribute name."),Ee={type:"Attribute",name:rt},ye("|")){var mn=re;if(Oe(),Kf(be)){Re(R,"Namespaces are not enabled.");var Lr=Le();Re(Lr,"Expected attribute name."),Ee={type:"Attribute",name:Lr,namespace:{type:"NamespaceName",name:rt}}}else Me(mn)}}if(Re(Ee.name,"Expected attribute name."),At(),_t()&&!a)return Ee;if(ye("]"))Oe();else{if(Ee.operator=mt(C),Re(Ee.operator,"Expected a valid attribute selector operator."),At(),gt(),Gbe[be])Ee.value={type:"String",value:Ue(be)};else if(O&&ye("$")){Oe();var Er=Le();Re(Er,"Expected substitute name."),Ee.value={type:"Substitution",name:Er}}else{var Vn=Le();Re(Vn,"Expected attribute value."),Ee.value={type:"String",value:Vn}}if(At(),_t()&&!a)return Ee;if(!ye("]")){var lr=Le();if(Re(lr,"Expected end of attribute selector."),Ee.caseSensitivityModifier=lr,Re(z,"Attribute case sensitivity modifiers are not enabled."),Re($||M[Ee.caseSensitivityModifier],"Unknown attribute case sensitivity modifier."),At(),_t()&&!a)return Ee}je("]")}return Ee}function ze(){for(var Ee="";KE[be];)Ee+=Qe();return Re(Ee!=="","Formula parse error."),parseInt(Ee)}var Xe=function(){return ye("-")||ye("+")||KE[be]};function Et(){if(ye("e")||ye("o")){var Ee=Le();if(Ee==="even")return At(),[2,0];if(Ee==="odd")return At(),[2,1]}var Se=null,ht=1;if(ye("-")&&(Oe(),ht=-1),Xe()&&(ye("+")&&Oe(),Se=ze(),!ye("\\")&&!ye("n")))return[0,Se*ht];Se===null&&(Se=1),Se*=ht;var rt;if(ye("\\")?(Oe(),Qf(be)?rt=ft():rt=Qe()):rt=Qe(),Re(rt==="n",'Formula parse error: expected "n".'),At(),ye("+")||ye("-")){var mn=ye("+")?1:-1;return Oe(),At(),[Se,mn*ze()]}else return[Se,0]}function Je(Ee,Se,ht){var rt;if(ye("(")){if(Oe(),At(),O&&ye("$")){Oe();var mn=Le();Re(mn,"Expected substitute name."),rt={type:"Substitution",name:mn}}else if(ht.type==="String")rt={type:"String",value:Jt()},Re(rt.value,"Expected ".concat(Se," argument value."));else if(ht.type==="Selector")rt=de(!0);else if(ht.type==="Formula"){var Lr=Et(),Er=Lr[0],Vn=Lr[1];if(rt={type:"Formula",a:Er,b:Vn},ht.ofSelector&&(At(),ye("o")||ye("\\"))){var lr=Le();Re(lr==="of","Formula of selector parse error."),At(),rt={type:"FormulaOfSelector",a:Er,b:Vn,selector:Ke()}}}else return nt("Invalid ".concat(Se," signature."));if(At(),_t()&&!a)return rt;je(")")}else Re(ht.optional,"Argument is required for ".concat(Se,' "').concat(Ee,'".'));return rt}function en(){if(ye("*"))return Re(T,"Wildcard tag name is not enabled."),Oe(),{type:"WildcardTag"};if(Kf(be)){Re(S,"Tag names are not enabled.");var Ee=Le();return Re(Ee,"Expected tag name."),{type:"TagName",name:Ee}}else return nt("Expected tag name.")}function zt(){if(ye("*")){var Ee=re;if(Oe(),!ye("|")||(Oe(),!Ge()))return Me(Ee),en();Re(R,"Namespaces are not enabled."),Re(I,"Wildcard namespace is not enabled.");var Se=en();return Se.namespace={type:"WildcardNamespace"},Se}else if(ye("|")){Re(R,"Namespaces are not enabled."),Oe();var Se=en();return Se.namespace={type:"NoNamespace"},Se}else if(Kf(be)){var ht=Le();if(Re(ht,"Expected tag name."),!ye("|"))return Re(S,"Tag names are not enabled."),{type:"TagName",name:ht};var Ee=re;if(Oe(),!Ge())return Me(Ee),{type:"TagName",name:ht};Re(R,"Namespaces are not enabled.");var Se=en();return Se.namespace={type:"NamespaceName",name:ht},Se}else return nt("Expected tag name.")}function Ke(Ee){var Se,ht;Ee===void 0&&(Ee=!1);var rt={type:"Rule",items:[]};if(Ee){var mn=mt(F);mn&&(rt.combinator=mn,At())}for(;re<ce;)if(Ge())Re(rt.items.length===0,"Unexpected tag/namespace start."),rt.items.push(zt());else if(ye("|")){var Lr=re;if(Oe(),Ge())Re(rt.items.length===0,"Unexpected tag/namespace start."),Me(Lr),rt.items.push(zt());else{Me(Lr);break}}else if(ye(".")){Re(w,"Class names are not enabled."),Oe();var Er=Le();Re(Er,"Expected class name."),rt.items.push({type:"ClassName",name:Er})}else if(ye("#")){Re(D,"IDs are not enabled."),Oe();var Vn=Le();Re(Vn,"Expected ID name."),rt.items.push({type:"Id",name:Vn})}else if(ye("["))Re(H,"Attributes are not enabled."),rt.items.push(ge());else if(ye(":")){var lr=!1,fo=!1;Oe(),ye(":")&&(Re(te,"Pseudo elements are not enabled."),Re(oe,"Pseudo elements double colon notation is not enabled."),lr=!0,Oe());var Tn=Le();if(Re(lr||Tn,"Expected pseudo-class name."),Re(!lr||Tn,"Expected pseudo-element name."),Re(Tn,"Expected pseudo-class name."),!(!lr||P||Object.prototype.hasOwnProperty.call(K,Tn))){var Mr=fN.pseudoElements[Tn],yt='Unknown pseudo-element "'.concat(Tn,'"');Mr&&Mr.length>0&&(yt+=". It is defined in: ".concat(Mr.join(", "))),nt(yt+".")}if(fo=te&&(lr||!lr&&N&&Object.prototype.hasOwnProperty.call(K,Tn)),fo){var ne=(Se=K[Tn])!==null&&Se!==void 0?Se:P&&lN,J={type:"PseudoElement",name:Tn},ie=Je(Tn,"pseudo-element",ne);ie&&(Re(ie.type!=="Formula"&&ie.type!=="FormulaOfSelector","Pseudo-elements cannot have formula argument."),J.argument=ie),rt.items.push(J)}else{Re(Y,"Pseudo-classes are not enabled.");var ne=(ht=B[Tn])!==null&&ht!==void 0?ht:X&&lN;if(!ne){var Mr=fN.pseudoClasses[Tn],yt='Unknown pseudo-class: "'.concat(Tn,'"');Mr&&Mr.length>0&&(yt+=". It is defined in: ".concat(Mr.join(", "))),nt(yt+".")}var ie=Je(Tn,"pseudo-class",ne),ve={type:"PseudoClass",name:Tn};ie&&(ve.argument=ie),rt.items.push(ve)}}else break;if(rt.items.length===0)return _t()?nt("Expected rule but end of input reached."):nt('Expected rule but "'.concat(be,'" found.'));if(At(),!_t()&&!ye(",")&&!ye(")")){var mn=mt(F);At(),rt.nestedRule=Ke(),rt.nestedRule.combinator=mn}return rt}return function(Ee){if(typeof Ee!="string")throw new Error("".concat(QE,"Expected string input."));return ee=Ee,ce=ee.length,re=0,be=ee.charAt(0),de()}}const Ybe=Wbe({syntax:"selectors-4"});function Kbe(e){if(typeof e!="string")throw new TypeError("Expected `string` as selector, not `"+e+"`");return Ybe(e)}const t8="֑-߿יִ-﷽ﹰ-ﻼ",n8="A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--",Qbe=new RegExp("^[^"+n8+"]*["+t8+"]"),Xbe=new RegExp("^[^"+t8+"]*["+n8+"]");function Zbe(e){const t=String(e||"");return Qbe.test(t)?"rtl":Xbe.test(t)?"ltr":"neutral"}function r8(e){return"children"in e?o8(e):"value"in e?e.value:""}function Jbe(e){return e.type==="text"?e.value:"children"in e?o8(e):""}function o8(e){let t=-1;const n=[];for(;++t<e.children.length;)n[t]=Jbe(e.children[t]);return n.join("")}function eve(e,t){const n=e.schema,r=e.language,o=e.direction,a=e.editableOrEditingHost;let s;if(t.type==="element"){const d=t.properties.xmlLang||t.properties.lang,p=t.properties.type||"text",h=hN(t);d!=null&&(e.language=String(d)),n&&n.space==="html"?(t.properties.contentEditable==="true"&&(e.editableOrEditingHost=!0),t.tagName==="svg"&&(e.schema=os),h==="rtl"?s=h:h==="ltr"||h!=="auto"&&t.tagName==="html"||h!=="auto"&&t.tagName==="input"&&p==="tel"?s="ltr":(h==="auto"||t.tagName==="bdi")&&(t.tagName==="textarea"?s=XE(r8(t)):t.tagName==="input"&&(p==="email"||p==="search"||p==="tel"||p==="text")?s=t.properties.value?XE(String(t.properties.value)):"ltr":wo(t,u)),s&&(e.direction=s)):e.editableOrEditingHost&&(e.editableOrEditingHost=!1)}return c;function c(){e.schema=n,e.language=r,e.direction=o,e.editableOrEditingHost=a}function u(d){if(d.type==="text")return s=XE(d.value),s?Zy:void 0;if(d!==t&&d.type==="element"&&(d.tagName==="bdi"||d.tagName==="script"||d.tagName==="style"||d.tagName==="textare"||hN(d)))return Ap}}function XE(e){const t=Zbe(e);return t==="neutral"?void 0:t}function hN(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 tve(e,t,n){const r=jh(n,e.name),o=t.properties[r.property];let a=nve(o,r);if(!e.value)return a!==void 0;e.value.type;let s=e.value.value;if(e.caseSensitivityModifier==="i"&&(s=s.toLowerCase(),a&&(a=a.toLowerCase())),a!==void 0)switch(e.operator){case"=":return s===a;case"$=":return s===a.slice(-s.length);case"*=":return a.includes(s);case"^=":return s===a.slice(0,s.length);case"|=":return s===a||s===a.slice(0,s.length)&&a.charAt(s.length)==="-";case"~=":return s===a||cT(a).includes(s)}return!1}function nve(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?lb:cb)(e)}else return String(e)}const rve=[];function ove(e,t){return(t.properties.className||rve).includes(e.name)}function ave(e,t){return t.properties.id===e.name}function ive(e,t){return e.name===t.tagName}function sve(e,t){return function(n,r){let o=mN(n,"tag");const a=mN(r??"*","range"),s=[];let c=-1;for(;++c<a.length;){const u=a[c].toLowerCase();let d=-1;const p=[];for(;++d<o.length;)e(o[d].toLowerCase(),u)?s.push(o[d]):p.push(o[d]);o=p}return s}}const lve=sve(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 mN(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 cve={}.hasOwnProperty;function dc(e,t){const n=e.type==="element"&&cve.call(e.properties,t)&&e.properties[t];return n!=null&&n!==!1}const uve=new Set([9,10,12,13,32]),gN=48,dve=57;function fve(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=s();if(t<e.length&&e.charAt(t)==="n"&&(t++,n=r*(o??1),c(),t<e.length?(r=a(),c(),o=s()):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 s(){const u=t;let d=0;for(;t<e.length&&e.charCodeAt(t)>=gN&&e.charCodeAt(t)<=dve;)d=d*10+(e.charCodeAt(t)-gN),t++;return t===u?null:d}function c(){for(;t<e.length&&uve.has(e.charCodeAt(t));)t++}}var yN,bN;function pve(){return bN||(bN=1,yN={trueFunc:function(){return!0},falseFunc:function(){return!1}}),yN}var hve=pve();const vN=K0(hve);function mve(e){const t=e[0],n=e[1]-1;if(n<0&&t<=0)return vN.falseFunc;if(t===-1)return a=>a<=n;if(t===0)return a=>a===n;if(t===1)return n<0?vN.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 EN(e){return mve(fve(e))}const gve=EN.default||EN,yve=sb("name",{handlers:{"any-link":bve,blank:vve,checked:Eve,dir:xve,disabled:a8,empty:Tve,enabled:Sve,"first-child":Cve,"first-of-type":_ve,has:Ave,is:i8,lang:wve,"last-child":Dve,"last-of-type":Rve,not:Ive,"nth-child":Ove,"nth-last-child":Nve,"nth-last-of-type":Pve,"nth-of-type":Lve,"only-child":Mve,"only-of-type":Fve,optional:Bve,"read-only":jve,"read-write":s8,required:l8,root:Uve,scope:Hve},invalid:kve,unknown:zve});function bve(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&dc(t,"href")}function Ti(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function vve(e,t){return!c8(t,n);function n(r){return r.type==="element"||r.type==="text"&&!Uh(r)}}function Eve(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&dc(t,"checked")):t.tagName==="option"?dc(t,"selected"):!1}function xve(e,t,n,r,o){return e.argument,e.argument.type,o.direction===e.argument.value}function a8(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")&&dc(t,"disabled")}function Tve(e,t){return!c8(t,n);function n(r){return r.type==="element"||r.type==="text"}}function Sve(e,t){return!a8(e,t)}function Cve(e,t,n,r,o){return Ti(o,e),o.elementIndex===0}function _ve(e,t,n,r,o){return Ti(o,e),o.typeIndex===0}function _b(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=gve(n.a+"n+"+n.b),e._cachedFn=t}return t}function Ave(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 s_(a,{type:"root",children:t.children}),a.results.length>0}function kve(){}function i8(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 s_(a,t),a.results[0]===t}function wve(e,t,n,r,o){return e.argument,e.argument.type,o.language!==""&&o.language!==void 0&&lve(o.language,lT(e.argument.value)).length>0}function Dve(e,t,n,r,o){return Ti(o,e),!!(o.elementCount&&o.elementIndex===o.elementCount-1)}function Rve(e,t,n,r,o){return Ti(o,e),typeof o.typeIndex=="number"&&typeof o.typeCount=="number"&&o.typeIndex===o.typeCount-1}function Ive(e,t,n,r,o){return!i8(e,t,n,r,o)}function Ove(e,t,n,r,o){const a=_b(e);return Ti(o,e),typeof o.elementIndex=="number"&&a(o.elementIndex)}function Nve(e,t,n,r,o){const a=_b(e);return Ti(o,e),!!(typeof o.elementCount=="number"&&typeof o.elementIndex=="number"&&a(o.elementCount-o.elementIndex-1))}function Pve(e,t,n,r,o){const a=_b(e);return Ti(o,e),typeof o.typeCount=="number"&&typeof o.typeIndex=="number"&&a(o.typeCount-1-o.typeIndex)}function Lve(e,t,n,r,o){const a=_b(e);return Ti(o,e),typeof o.typeIndex=="number"&&a(o.typeIndex)}function Mve(e,t,n,r,o){return Ti(o,e),o.elementCount===1}function Fve(e,t,n,r,o){return Ti(o,e),o.typeCount===1}function Bve(e,t){return!l8(e,t)}function jve(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"?!dc(t,"readOnly")&&!dc(t,"disabled"):!!o.editableOrEditingHost}function l8(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&dc(t,"required")}function Uve(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 Hve(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 zve(e){const t=e;throw new Error("Unknown pseudo-selector `"+t.name+"`")}function $ve(e,t,n,r,o){for(const a of e.items)if(a.type==="Attribute"){if(!tve(a,t,o.schema))return!1}else if(a.type==="Id"){if(!ave(a,t))return!1}else if(a.type==="ClassName"){if(!ove(a,t))return!1}else if(a.type==="PseudoClass"){if(!yve(a,t,n,r,o))return!1}else{if(a.type==="PseudoElement")throw new Error("Invalid selector: `::"+a.name+"`");if(a.type==="TagName"&&!ive(a,t))return!1}return!0}const Vve=[];function s_(e,t){t&&u8(e,[],t,void 0,void 0,t)}function ZE(e,t,n){const r=e[t];r?r.push(n):e[t]=[n]}function Gve(e,t,n,r){const o=oy(t.descendant,t.directChild);let a,s=-1;const c={count:0,types:new Map},u={count:0,types:new Map};for(;++s<n.children.length;)xN(c,n.children[s]);for(s=-1;++s<n.children.length;){const d=n.children[s],p=d.type==="element"?d.tagName.toUpperCase():void 0;if(e.elementIndex=u.count,e.typeIndex=p&&u.types.get(p)||0,e.elementCount=c.count,e.typeCount=p?c.types.get(p):0,"children"in d){const h=oy(o,a),g=u8(e,h,n.children[s],s,n,r);a=oy(g.generalSibling,g.adjacentSibling)}if(e.one&&e.found)break;xN(u,n.children[s])}}function qve(e,t,n,r,o){const a={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};let s=-1;for(;++s<t.length;){const c=t[s];if(e.one&&e.found)break;if(e.shallow&&c.nestedRule)throw new Error("Expected selector without nesting");if($ve(c,n,r,o,e)){const u=c.nestedRule;if(u){const d=u.combinator==="+"?"adjacentSibling":u.combinator==="~"?"generalSibling":u.combinator===">"?"directChild":"descendant";ZE(a,d,u)}else e.found=!0,e.results.includes(n)||e.results.push(n)}c.combinator===void 0?ZE(a,"descendant",c):c.combinator==="~"&&ZE(a,"generalSibling",c)}return a}function oy(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:Vve}function xN(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 u8(e,t,n,r,o,a){let s={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const c=eve(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)),s=qve(e,oy(t,u),n,r,o)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&Gve(e,s,n,a),c(),s}function Wve(e,t,n){const r=Yve(e,t);return s_(r,t||void 0),r.results}function Yve(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:Kbe(e),schema:gd,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const d8=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=d8(n.children))}),t),Kve=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const o=Wve(t,r);o&&o.length>0&&wo(r,o,(a,s,c)=>{n(a,s,c)});return}wo(r,(o,a,s)=>{n(o,a,s)})}}},Qve=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),Xve=(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]}},f8=(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?f8(e,o,"pre",r)?void 0:(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a):(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a)}},TN=({value:e=""})=>{const t=Qve(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},SN=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},Zve=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{wo(r,"element",(o,a,s)=>{if(n&&o.tagName==="pre"&&o&&Array.isArray(o.children)&&s&&Array.isArray(s.children)&&s.children.length>1){const c=o.children[0];if(c&&c.tagName==="code"&&typeof a=="number"){const u=Xve(s.children,a);if(u){const d=TN(u);Object.keys(d).length>0&&(o.properties={...o.properties,"data-type":"rehyp"},c.properties=SN(c.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)&&s&&Array.isArray(s.children)&&typeof a=="number"){const c=f8(s.children,a,"",n);if(c){const u=TN(c);Object.keys(u).length>0&&(o.properties=SN(o.properties,u,t))}}})}};var Jve=function(e){return t=>{wo(t,n=>{n.type==="element"&&n.tagName==="code"&&n.data&&n.data.meta&&(n.properties=Zi({},n.properties,{"data-meta":String(n.data.meta)}))})}},e1e=function(e){return t=>{wo(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 t1e=/[\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,n1e=Object.hasOwnProperty;class r1e{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let o=o1e(t,n===!0);const a=o;for(;n1e.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 o1e(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(t1e,"").replace(/ /g,"-"))}function p8(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 a1e={},CN=new r1e;function i1e(e){const t=(e||a1e).prefix||"";return function(n){CN.reset(),wo(n,"element",function(r){p8(r)&&!r.properties.id&&(r.properties.id=t+CN.slug(r8(r)))})}}const h8=function(e){if(e==null)return c1e;if(typeof e=="string")return l1e(e);if(typeof e=="object")return s1e(e);if(typeof e=="function")return l_(e);throw new Error("Expected function, string, or array as `test`")};function s1e(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=h8(e[n]);return l_(r);function r(...o){let a=-1;for(;++a<t.length;)if(t[a].apply(this,o))return!0;return!1}}function l1e(e){return l_(t);function t(n){return n.tagName===e}}function l_(e){return t;function t(n,r,o){return!!(u1e(n)&&e.call(this,n,typeof r=="number"?r:void 0,o||void 0))}}function c1e(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function u1e(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const _N={type:"element",tagName:"span",properties:{className:["icon","icon-link"]},children:[]},d1e={};function f1e(e){const t=e||d1e;let n=t.properties;const r=t.headingProperties,o=t.behavior||"prepend",a=t.content,s=t.group,c=h8(t.test);let u;return o==="after"||o==="before"?u=p:o==="wrap"?u=h:(u=d,n||(n={ariaHidden:"true",tabIndex:-1})),function(g){wo(g,"element",function(y,b,x){if(p8(y)&&y.properties.id&&c(y,b,x))return Object.assign(y.properties,Ig(r,y)),u(y,b,x)})};function d(g){const y=AN(a||_N,g);return g.children[o==="prepend"?"unshift":"push"](JE(g,Ig(n,g),y)),[Ap]}function p(g,y,b){if(typeof y!="number"||!b)return;const x=AN(a||_N,g),S=JE(g,Ig(n,g),x);let T=o==="before"?[S,g]:[g,S];if(s){const D=m8(s,g);D&&!Array.isArray(D)&&D.type==="element"&&(D.children=T,T=[D])}return b.children.splice(y,1,...T),[Ap,y+T.length]}function h(g){let y=g.children,b=[];return typeof a=="function"?(y=[],b=a(g)):a&&(b=c_(a)),g.children=[JE(g,Ig(n,g),Array.isArray(b)?[...y,...b]:[...y,b])],[Ap]}}function c_(e){return uc(e)}function JE(e,t,n){return{type:"element",tagName:"a",properties:{...t,href:"#"+e.properties.id},children:n}}function AN(e,t){const n=m8(e,t);return Array.isArray(n)?n:[n]}function m8(e,t){return typeof e=="function"?e(t):c_(e)}function Ig(e,t){return typeof e=="function"?e(t):e?c_(e):{}}const p1e=(e={})=>{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{wo(r,(o,a,s)=>{if(o.type==="element"||o.type==="root"){let c=!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 c=!0,!1;if(d===n)return c=!1,!1}return!c})}})}};var h1e={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 m1e(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 g1e=(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=Zi({class:"anchor"},a.properties),a.children=[h1e])}if(n.type==="element"&&n.tagName==="pre"&&!e){var s=d8(n.children);n.children.push(m1e(s))}t&&t(n,r===null?void 0:r,o===null?void 0:o)},y1e=[i1e,f1e,p1e];const g8=Fe.forwardRef((e,t)=>{var n,r=[Jve,K6,e1e,...y1e,[Kve,{rewrite:g1e((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[Zve,{properties:"attr"}],...e.rehypePlugins||[]];return v.jsx(Nbe,Zi({},e,{rehypePlugins:r,ref:t}))});function b1e(e,t){return dn({},e,t)}var Cd=Fe.createContext({markdown:""});function y8(e,t){return e===void 0&&(e=[]),t===void 0&&(t={}),e.forEach(n=>{n.children&&Array.isArray(n.children)?t=dn({},t,y8(n.children||[])):n.keyCommand&&n.shortcuts&&n.execute&&(t[n.shortcuts.toLocaleLowerCase()]=n)}),t}function b8(e,t,n,r,o){t===void 0&&(t=[]);var a=y8(t||[]),s=[];if(e.altKey&&s.push("alt"),e.shiftKey&&s.push("shift"),e.metaKey&&s.push("cmd"),e.ctrlKey&&s.push("ctrl"),s.length>0&&!/(control|alt|meta|shift)/.test(e.key.toLocaleLowerCase())&&s.push(e.key.toLocaleLowerCase()),/escape/.test(e.key.toLocaleLowerCase())&&s.push("escape"),!(s.length<1)){var c=!!a[s.join("+")],u=c?a[s.join("+")]:void 0;if(Object.keys(a).forEach(d=>{var p=d.split("+").every(h=>/ctrlcmd/.test(h)?s.includes("ctrl")||s.includes("cmd"):s.includes(h));p&&(u=a[d])}),u&&n){e.stopPropagation(),e.preventDefault(),n.executeCommand(u,r,o,s);return}}}var ex;function kN(e){if(e.nodeName!=="TEXTAREA")return!1;if(typeof ex>"u"){var t=document.createElement("textarea");t.value="1",ex=!!t.firstChild}return ex}function ju(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 s=document.createRange(),c=document.createTextNode(t);if(kN(e)){var u=e.firstChild;if(!u)e.appendChild(c);else{for(var d=0,p=null,h=null;u&&(p===null||h===null);){var g=u.nodeValue.length;o>=d&&o<=d+g&&s.setStart(p=u,o-d),a>=d&&a<=d+g&&s.setEnd(h=u,a-d),d+=g,u=u.nextSibling}o!==a&&s.deleteContents()}}if(kN(e)&&s.commonAncestorContainer.nodeName==="#text")s.insertNode(c);else{var y=e.value;e.value=y.slice(0,o)+t+y.slice(a)}}e.setSelectionRange(o+t.length,o+t.length);var b=document.createEvent("UIEvent");b.initEvent("input",!0,!1),e.dispatchEvent(b)}}function lo(e){var{text:t,selection:n,prefix:r,suffix:o=r}=e,a=n;if(t&&t.length&&n.start===n.end&&(a=v1e(t,n.start)),a.start>=r.length&&a.end<=t.length-o.length){var s=t.slice(a.start-r.length,a.end+o.length);if(s.startsWith(r)&&s.endsWith(o))return{start:a.start-r.length,end:a.end+o.length}}return a}function Op(e){var{text:t,selection:n}=e,r=t.slice(0,n.start).lastIndexOf(`
|
|
397
|
+
`)+1,o=t.slice(n.end).indexOf(`
|
|
398
|
+
`)+n.end;return o===n.end-1&&(o=t.length),{start:r,end:o}}function v8(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 E8(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 v1e(e,t){if(!e)throw Error("Argument 'text' should be truthy");for(var n=c=>c===" "||c.charCodeAt(0)===10,r=0,o=e.length,a=t;a-1>-1;a--)if(n(e[a-1])){r=a;break}for(var s=t;s<e.length;s++)if(n(e[s])){o=s;break}return{start:r,end:o}}function zr(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 u_(e,t){var n=e.split(/\n/),r=0,o=n.map((a,s)=>{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,s)))return r-=t(a,s).length,a.slice(t(a,s).length);var c=t(a,s);return r+=c.length,t(a,s)+a}throw Error("insertion is expected to be either a string or a function")}).join(`
|
|
399
|
+
`);return{modifiedText:o,insertionLength:r}}var E1e={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=lo({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);zr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},x8={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=lo({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)===`
|
|
400
|
+
`||r.selection.start===0)&&(o="```\n"),(r.selection.end<=e.text.length-1&&e.text.slice(r.selection.end,r.selection.end+1)===`
|
|
401
|
+
`||r.selection.end===e.text.length)&&(a="\n```"));var s=lo({text:e.text,selection:e.selection,prefix:o,suffix:a}),c=t.setSelectionRange(s);zr({api:t,selectedText:c.selectedText,selection:e.selection,prefix:o,suffix:a})}},x1e={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(`
|
|
402
|
+
`)===-1){var n=lo({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);zr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}else x8.execute(e,t)}},T1e={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=lo({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);zr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix})}},ay={keyCommand:"divider"},S1e={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 C1e(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var _1e=(e,t)=>{var n=dn({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=dn({},(C1e(r),r));return o.parent=n,dn({},o)})),n},A1e={name:"hr",keyCommand:"hr",shortcuts:"ctrlcmd+h",prefix:`
|
|
403
|
+
|
|
404
|
+
---
|
|
405
|
+
`,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=lo({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)?zr({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}),zr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}))}},k1e={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=lo({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")?zr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}):(n=lo({text:e.text,selection:e.selection,prefix:"![",suffix:"]()"}),r=t.setSelectionRange(n),r.selectedText.length===0?zr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:""}):zr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"![",suffix:"]()"}))}},w1e={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=lo({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);zr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},D1e={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=lo({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=lo({text:e.text,selection:e.selection,prefix:"[](",suffix:")"}),r=t.setSelectionRange(n),zr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"[](",suffix:")"})):r.selectedText.length===0?zr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"[title",suffix:"](url)"}):zr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix})}},d_=(e,t,n)=>{var r=lo({text:e.text,selection:e.selection,prefix:e.command.prefix}),o=t.setSelectionRange(r),a=v8(o.text,o.selection.start),s=Array(a+1).join(`
|
|
406
|
+
`),c=E8(o.text,o.selection.end),u=Array(c+1).join(`
|
|
407
|
+
`),{modifiedText:d,insertionLength:p}=u_(o.selectedText,n);if(p<0){var h=o.selection.start,g=o.selection.end;o.selection.start>0&&e.text.slice(o.selection.start-1,o.selection.start)===`
|
|
408
|
+
`&&(h-=1),o.selection.end<e.text.length-1&&e.text.slice(o.selection.end,o.selection.end+1)===`
|
|
409
|
+
`&&(g+=1),t.setSelectionRange({start:h,end:g}),t.replaceSelection(""+d),t.setSelectionRange({start:h,end:h+d.length})}else{t.replaceSelection(""+s+d+u);var y=o.selection.start+a,b=y+d.length;t.setSelectionRange({start:y,end:b})}},R1e={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)=>{d_(e,t,"- ")}},I1e={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)=>{d_(e,t,(n,r)=>r+1+". ")}},O1e={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)=>{d_(e,t,(n,r)=>"- [ ] ")}},N1e={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"})}},P1e={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"})}},L1e={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"})}},M1e={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=lo({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n),o=v8(r.text,r.selection.start),a=Array(o+1).join(`
|
|
410
|
+
`),s=E8(r.text,r.selection.end),c=Array(s+1).join(`
|
|
411
|
+
`),u=u_(r.selectedText,e.command.prefix);t.replaceSelection(""+a+u.modifiedText+c);var d=r.selection.start+o,p=d+u.modifiedText.length;t.setSelectionRange({start:d,end:p})}},F1e={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=lo({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);zr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},T8={name:"title1",keyCommand:"title1",shortcuts:"ctrlcmd+1",prefix:"# ",suffix:"",buttonProps:{"aria-label":"Insert title1 (ctrl + 1)",title:"Insert title1 (ctrl + 1)"},icon:v.jsx("div",{style:{fontSize:18,textAlign:"left"},children:"Title 1"}),execute:(e,t)=>{_d({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}};function _d(e){var{state:t,api:n,prefix:r,suffix:o=r}=e,a=Op({text:t.text,selection:t.selection}),s=n.setSelectionRange(a);zr({api:n,selectedText:s.selectedText,selection:t.selection,prefix:r,suffix:o})}dn({},T8,{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 B1e={name:"title2",keyCommand:"title2",shortcuts:"ctrlcmd+2",prefix:"## ",suffix:"",buttonProps:{"aria-label":"Insert title2 (ctrl + 2)",title:"Insert title2 (ctrl + 2)"},icon:v.jsx("div",{style:{fontSize:16,textAlign:"left"},children:"Title 2"}),execute:(e,t)=>{_d({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},j1e={name:"title3",keyCommand:"title3",shortcuts:"ctrlcmd+3",prefix:"### ",suffix:"",buttonProps:{"aria-label":"Insert title3 (ctrl + 3)",title:"Insert title3 (ctrl + 3)"},icon:v.jsx("div",{style:{fontSize:15,textAlign:"left"},children:"Title 3"}),execute:(e,t)=>{_d({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},U1e={name:"title4",keyCommand:"title4",shortcuts:"ctrlcmd+4",prefix:"#### ",suffix:"",buttonProps:{"aria-label":"Insert title4 (ctrl + 4)",title:"Insert title4 (ctrl + 4)"},icon:v.jsx("div",{style:{fontSize:14,textAlign:"left"},children:"Title 4"}),execute:(e,t)=>{_d({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},H1e={name:"title5",keyCommand:"title5",shortcuts:"ctrlcmd+5",prefix:"##### ",suffix:"",buttonProps:{"aria-label":"Insert title5 (ctrl + 5)",title:"Insert title5 (ctrl + 5)"},icon:v.jsx("div",{style:{fontSize:12,textAlign:"left"},children:"Title 5"}),execute:(e,t)=>{_d({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},z1e={name:"title6",keyCommand:"title6",shortcuts:"ctrlcmd+6",prefix:"###### ",suffix:"",buttonProps:{"aria-label":"Insert title6 (ctrl + 6)",title:"Insert title6 (ctrl + 6)"},icon:v.jsx("div",{style:{fontSize:12,textAlign:"left"},children:"Title 6"}),execute:(e,t)=>{_d({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},$1e={name:"table",keyCommand:"table",prefix:`
|
|
412
|
+
| Header | Header |
|
|
413
|
+
|--------|--------|
|
|
414
|
+
| Cell | Cell |
|
|
415
|
+
| Cell | Cell |
|
|
416
|
+
| Cell | Cell |
|
|
417
|
+
|
|
418
|
+
`,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=lo({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)?zr({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}),zr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}))}},V1e={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")}},G1e=()=>[E1e,w1e,F1e,A1e,_1e([T8,B1e,j1e,U1e,H1e,z1e],{name:"title",groupName:"title",buttonProps:{"aria-label":"Insert title",title:"Insert title"}}),ay,D1e,M1e,x1e,x8,T1e,k1e,$1e,ay,R1e,I1e,O1e,ay,V1e],q1e=()=>[P1e,L1e,N1e,ay,S1e];function o0(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 f_{constructor(t){this.textArea=void 0,this.textArea=t}replaceSelection(t){return ju(this.textArea,t),o0(this.textArea)}setSelectionRange(t){return this.textArea.focus(),this.textArea.selectionStart=t.start,this.textArea.selectionEnd=t.end,o0(this.textArea)}}class p_{constructor(t){this.textArea=void 0,this.textApi=void 0,this.textArea=t,this.textApi=new f_(t)}getState(){return this.textArea?o0(this.textArea):!1}executeCommand(t,n,r,o){t.execute&&t.execute(dn({command:t},o0(this.textArea)),this.textApi,n,r,o)}}function iy(e){e.stopPropagation(),e.preventDefault()}function wN(e,t){iy(e);var n=e.target,r=new f_(n),o={start:n.selectionStart,end:n.selectionEnd};if(o=Op({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 s=Op({text:n.value,selection:{start:o.start-1,end:o.start-1}}),c=n.value.slice(s.start,s.end);r.setSelectionRange({start:s.start,end:o.end}),ju(n,a+`
|
|
419
|
+
`+c),r.setSelectionRange({start:s.start,end:s.start+a.length})}else{var u=Op({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}),ju(n,d+`
|
|
420
|
+
`+a),r.setSelectionRange({start:u.end-a.length,end:u.end})}}}function W1e(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(`
|
|
421
|
+
`),s=a[a.length-1],c=new f_(r);if(!n&&e.code&&e.code.toLowerCase()==="tab"){iy(e);var u=new Array(t+1).join(" ");if(r.selectionStart!==r.selectionEnd){var d=r.value.substring(0,r.selectionStart).split(`
|
|
422
|
+
`),p=r.value.substring(0,r.selectionEnd).split(`
|
|
423
|
+
`),h=[];p.forEach((F,j)=>{F!==d[j]&&h.push(F)});var g=h.join(`
|
|
424
|
+
`),y=r.value.substring(r.selectionStart,r.selectionEnd),b=r.value.substring(0,r.selectionStart).length;c.setSelectionRange({start:r.value.indexOf(g),end:r.selectionEnd});var x=u_(g,e.shiftKey?"":u),S=x.modifiedText;e.shiftKey&&(S=S.split(`
|
|
425
|
+
`).map(F=>F.replace(new RegExp("^"+u),"")).join(`
|
|
426
|
+
`)),c.replaceSelection(S);var T=e.shiftKey?-t:t,D=e.shiftKey?-h.length*t:h.length*t;c.setSelectionRange({start:b+T,end:b+y.length+D})}else return ju(r,u)}else if(e.keyCode===13&&e.code.toLowerCase()==="enter"&&(/^(-|\*)\s/.test(s)||/^\d+.\s/.test(s))&&!e.shiftKey){iy(e);var w=`
|
|
427
|
+
- `;return s.startsWith("*")&&(w=`
|
|
428
|
+
* `),(s.startsWith("- [ ]")||s.startsWith("- [X]")||s.startsWith("- [x]"))&&(w=`
|
|
429
|
+
- [ ] `),/^\d+.\s/.test(s)&&(w=`
|
|
430
|
+
`+(parseInt(s)+1)+". "),ju(r,w)}else if(e.code&&e.code.toLowerCase()==="keyd"&&e.ctrlKey){iy(e);var R={start:r.selectionStart,end:r.selectionEnd},I=R;R=Op({text:r.value,selection:R});var O=r.value.slice(R.start,R.end);c.setSelectionRange({start:R.end,end:R.end}),ju(r,`
|
|
431
|
+
`+O),c.setSelectionRange({start:I.start,end:I.end})}else e.code&&e.code.toLowerCase()==="arrowup"&&e.altKey?wN(e,-1):e.code&&e.code.toLowerCase()==="arrowdown"&&e.altKey&&wN(e,1)}var Y1e=["prefixCls","onChange"],K1e=["markdown","commands","fullscreen","preview","highlightEnable","extraCommands","tabSize","defaultTabEnable","autoFocusEnd","textareaWarp","dispatch"];function Q1e(e){var{prefixCls:t,onChange:n}=e,r=Ky(e,Y1e),o=k.useContext(Cd),{markdown:a,commands:s,fullscreen:c,preview:u,highlightEnable:d,extraCommands:p,tabSize:h,defaultTabEnable:g,autoFocusEnd:y,textareaWarp:b,dispatch:x}=o;Ky(o,K1e);var S=Fe.useRef(null),T=Fe.useRef(),D=Fe.useRef({fullscreen:c,preview:u});k.useEffect(()=>{D.current={fullscreen:c,preview:u,highlightEnable:d}},[c,u,d]),k.useEffect(()=>{if(S.current&&x){var R=new p_(S.current);T.current=R,x({textarea:S.current,commandOrchestrator:R})}},[]),k.useEffect(()=>{if(y&&S.current&&b){S.current.focus();var R=S.current.value.length;S.current.setSelectionRange(R,R),setTimeout(()=>{b&&(b.scrollTop=b.scrollHeight),S.current&&(S.current.scrollTop=S.current.scrollHeight)},0)}},[b]);var w=R=>{W1e(R,h,g),b8(R,[...s||[],...p||[]],T.current,x,D.current)};return k.useEffect(()=>(S.current&&S.current.addEventListener("keydown",w),()=>{S.current&&S.current.removeEventListener("keydown",w)}),[]),v.jsx("textarea",dn({autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1},r,{ref:S,className:t+"-text-input "+(r.className?r.className:""),value:a,onChange:R=>{x&&x({markdown:R.target.value}),n&&n(R)}}))}var X1e=["prefixCls","className","onScroll","renderTextarea"];function Z1e(e){var t=e||{},{prefixCls:n,className:r,onScroll:o,renderTextarea:a}=t,s=Ky(t,X1e),{markdown:c,scrollTop:u,commands:d,extraCommands:p,dispatch:h}=k.useContext(Cd),g=Fe.useRef(null),y=Fe.useRef(),b=Fe.createRef();k.useEffect(()=>{var S={};b.current&&(S.textareaWarp=b.current||void 0,b.current.scrollTop=u||0),h&&h(dn({},S))},[]),k.useEffect(()=>{if(g.current&&h){var S=new p_(g.current);y.current=S,h({textarea:g.current,commandOrchestrator:S})}},[]);var x={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(dn({},s,{value:c,autoComplete:"off",autoCorrect:"off",spellCheck:"false",autoCapitalize:"off",className:n+"-text-input",style:{WebkitTextFillColor:"inherit",overflow:"auto"}}),{dispatch:h,onChange:s.onChange,shortcuts:b8,useContext:{commands:d,extraCommands:p,commandOrchestrator:y.current}}),{ref:g}):v.jsx(k.Fragment,{children:v.jsx(Q1e,dn({prefixCls:n},s,{style:x}))})})})}function J1e(e){var{prefixCls:t,groupName:n,commands:r,children:o}=e||{},{barPopup:a={}}=k.useContext(Cd);return k.useMemo(()=>v.jsx("div",{className:t+"-toolbar-child "+(n&&a[n]?"active":""),onClick:s=>s.stopPropagation(),children:Array.isArray(r)?v.jsx(S8,dn({commands:r},e,{isChild:!0})):o}),[r,a,n,t])}function DN(e){var{prefixCls:t,overflow:n}=e,{fullscreen:r,preview:o,barPopup:a={},components:s,commandOrchestrator:c,dispatch:u}=k.useContext(Cd),d=k.useRef("");function p(h,g){if(u){var y={barPopup:dn({},a)};h.keyCommand==="preview"&&(y.preview=h.value),h.keyCommand==="fullscreen"&&(y.fullscreen=!r),e.commands&&h.keyCommand==="group"?e.commands.forEach(b=>{g===b.groupName?y.barPopup[g]=!0:b.keyCommand&&(y.barPopup[b.groupName]=!1)}):(g||h.parent)&&Object.keys(y.barPopup||{}).forEach(b=>{y.barPopup[b]=!1}),Object.keys(y).length&&u(dn({},y)),c&&c.executeCommand(h)}}return k.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,g)=>{if(h.keyCommand==="divider")return v.jsx("li",dn({},h.liProps,{className:t+"-toolbar-divider"}),g);if(!h.keyCommand)return v.jsx(k.Fragment,{},g);var y=r&&h.keyCommand==="fullscreen"||h.keyCommand==="preview"&&o===h.value,b=h.children&&typeof h.children=="function"?h.children({getState:()=>c.getState(),textApi:c?c.textApi:void 0,close:()=>p({},h.groupName),execute:()=>p({execute:h.execute}),dispatch:u}):void 0,x=a&&o&&o==="preview"&&!/(preview|fullscreen)/.test(h.keyCommand),S=s?.toolbar||h.render,T=S&&typeof S=="function"?S(h,!!x,p,g):null;return v.jsxs("li",dn({},h.liProps,{className:y?"active":"",children:[T&&Fe.isValidElement(T)&&T,!T&&!h.buttonProps&&h.icon,!T&&h.buttonProps&&Fe.createElement("button",dn({type:"button",key:g,disabled:x,"data-name":h.name},h.buttonProps,{onClick:D=>{D.stopPropagation(),p(h,h.groupName)}}),h.icon),h.children&&v.jsx(J1e,{overflow:n,groupName:h.groupName,prefixCls:t,children:b,commands:Array.isArray(h.children)?h.children:void 0})]}),g)})})}function S8(e){e===void 0&&(e={});var{prefixCls:t,isChild:n,className:r}=e,{commands:o,extraCommands:a}=k.useContext(Cd);return v.jsxs("div",{className:t+"-toolbar "+r,children:[v.jsx(DN,dn({},e,{commands:e.commands||o||[]})),!n&&v.jsx(DN,dn({},e,{commands:a||[]}))]})}function RN(e){var{hideToolbar:t,toolbarBottom:n,placement:r,overflow:o,prefixCls:a}=e;if(t||r==="bottom"&&!n||r==="top"&&n)return null;var s=n?"bottom":"";return v.jsx(S8,{prefixCls:a,overflow:o,className:s})}var eEe=e=>{var{prefixCls:t,onChange:n}=e||{},r=k.useRef(null),o=k.useRef(),a=k.useRef(e.height);k.useEffect(()=>{a.current!==e.height&&(a.current=e.height)},[e.height]);function s(p){if(o.current){var h,g=p.clientY||((h=p.changedTouches[0])==null?void 0:h.clientY),y=o.current.height+g-o.current.dragY;y>=e.minHeight&&y<=e.maxHeight&&n&&n(o.current.height+(g-o.current.dragY))}}function c(){var p,h;o.current=void 0,document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",c),(p=r.current)==null||p.removeEventListener("touchmove",s),(h=r.current)==null||h.removeEventListener("touchend",c)}function u(p){var h,g,y;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",s),document.addEventListener("mouseup",c),(g=r.current)==null||g.addEventListener("touchmove",s,{passive:!1}),(y=r.current)==null||y.addEventListener("touchend",c,{passive:!1})}k.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 g;(g=r.current)==null||g.removeEventListener("touchstart",u),document.removeEventListener("mousemove",s)}}},[]);var d=k.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})},tEe=["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 nEe(e){return e===void 0&&(e={}),Object.keys(e).forEach(t=>{e[t]=!1}),e}var rEe=Fe.forwardRef((e,t)=>{var n=e||{},{prefixCls:r="w-md-editor",className:o,value:a,commands:s=G1e(),commandsFilter:c,direction:u,extraCommands:d=q1e(),height:p=200,enableScroll:h=!0,visibleDragbar:g=typeof e.visiableDragbar=="boolean"?e.visiableDragbar:!0,highlightEnable:y=!0,preview:b="live",fullscreen:x=!1,overflow:S=!0,previewOptions:T={},textareaProps:D,maxHeight:w=1200,minHeight:R=100,autoFocus:I,autoFocusEnd:O=!1,tabSize:F=2,defaultTabEnable:j=!1,onChange:H,onStatistics:C,onHeightChange:M,hideToolbar:$,toolbarBottom:z=!1,components:q,renderTextarea:Y}=n,B=Ky(n,tEe),X=s.map(je=>c?c(je,!1):je).filter(Boolean),ae=d.map(je=>c?c(je,!0):je).filter(Boolean),[te,N]=k.useReducer(b1e,{markdown:a,preview:b,components:q,height:p,minHeight:R,highlightEnable:y,tabSize:F,defaultTabEnable:j,scrollTop:0,scrollTopPreview:0,commands:X,extraCommands:ae,fullscreen:x,barPopup:{}}),oe=k.useRef(null),K=k.useRef(null),P=k.useRef(h);k.useImperativeHandle(t,()=>dn({},te,{container:oe.current,dispatch:N})),k.useMemo(()=>P.current=h,[h]),k.useEffect(()=>{var je={};oe.current&&(je.container=oe.current||void 0),je.markdown=a||"",je.barPopup={},N&&N(dn({},te,je))},[]);var ee=[o,"wmde-markdown-var",u?r+"-"+u:null,r,te.preview?r+"-show-"+te.preview:null,te.fullscreen?r+"-fullscreen":null].filter(Boolean).join(" ").trim();k.useMemo(()=>a!==te.markdown&&N({markdown:a||""}),[a,te.markdown]),k.useMemo(()=>b!==te.preview&&N({preview:b}),[b]),k.useMemo(()=>F!==te.tabSize&&N({tabSize:F}),[F]),k.useMemo(()=>y!==te.highlightEnable&&N({highlightEnable:y}),[y]),k.useMemo(()=>I!==te.autoFocus&&N({autoFocus:I}),[I]),k.useMemo(()=>O!==te.autoFocusEnd&&N({autoFocusEnd:O}),[O]),k.useMemo(()=>x!==te.fullscreen&&N({fullscreen:x}),[x]),k.useMemo(()=>p!==te.height&&N({height:p}),[p]),k.useMemo(()=>p!==te.height&&M&&M(te.height,p,te),[p,M,te]),k.useMemo(()=>s!==te.commands&&N({commands:X}),[e.commands]),k.useMemo(()=>d!==te.extraCommands&&N({extraCommands:ae}),[e.extraCommands]);var ce=k.useRef(),re=k.useRef("preview"),be=k.useRef(!1);k.useMemo(()=>{ce.current=te.textareaWarp,te.textareaWarp&&(te.textareaWarp.addEventListener("mouseover",()=>{re.current="text"}),te.textareaWarp.addEventListener("mouseleave",()=>{re.current="preview"}))},[te.textareaWarp]);var ye=(je,mt)=>{if(P.current){var lt=ce.current,ft=K.current?K.current:void 0;if(be.current||(re.current=mt,be.current=!0),lt&&ft){var Ue=(lt.scrollHeight-lt.offsetHeight)/(ft.scrollHeight-ft.offsetHeight);je.target===lt&&re.current==="text"&&(ft.scrollTop=lt.scrollTop/Ue),je.target===ft&&re.current==="preview"&&(lt.scrollTop=ft.scrollTop*Ue);var Le=0;re.current==="text"?Le=lt.scrollTop||0:re.current==="preview"&&(Le=ft.scrollTop||0),N({scrollTop:Le})}}},Ge=r+"-preview "+(T.className||""),Me=je=>ye(je,"preview"),Oe=k.useMemo(()=>v.jsx("div",{ref:K,className:Ge,children:v.jsx(g8,dn({},T,{onScroll:Me,source:te.markdown||""}))}),[Ge,T,te.markdown]),Qe=q?.preview&&q?.preview(te.markdown||"",te,N);Qe&&Fe.isValidElement(Qe)&&(Oe=v.jsx("div",{className:Ge,ref:K,onScroll:Me,children:Qe}));var nt=dn({},B.style,{height:te.height||"100%"}),Re=()=>N({barPopup:dn({},nEe(te.barPopup))}),gt=je=>N({height:je}),_t=je=>{if(H&&H(je.target.value,je,te),D&&D.onChange&&D.onChange(je),te.textarea&&te.textarea instanceof HTMLTextAreaElement&&C){var mt=new p_(te.textarea),lt=mt.getState()||{};C(dn({},lt,{lineCount:je.target.value.split(`
|
|
432
|
+
`).length,length:je.target.value.length}))}};return v.jsx(Cd.Provider,{value:dn({},te,{dispatch:N}),children:v.jsxs("div",dn({ref:oe,className:ee},B,{onClick:Re,style:nt,children:[v.jsx(RN,{hideToolbar:$,toolbarBottom:z,prefixCls:r,overflow:S,placement:"top"}),v.jsxs("div",{className:r+"-content",children:[/(edit|live)/.test(te.preview||"")&&v.jsx(Z1e,dn({className:r+"-input",prefixCls:r,autoFocus:I},D,{onChange:_t,renderTextarea:q?.textarea||Y,onScroll:je=>ye(je,"text")})),/(live|preview)/.test(te.preview||"")&&Oe]}),g&&!te.fullscreen&&v.jsx(eEe,{prefixCls:r,height:te.height,maxHeight:w,minHeight:R,onChange:gt}),v.jsx(RN,{hideToolbar:$,toolbarBottom:z,prefixCls:r,overflow:S,placement:"bottom"})]}))})}),C8=rEe;C8.Markdown=g8;function oEe({cell:e,sourceAndPaths:t,onQueryChange:n,onSourceChange:r}){const o={query:e.value,malloyResult:e.result?JSON.parse(e.result):void 0,malloyQuery:e.queryInfo?JSON.parse(e.queryInfo):void 0,sourceName:e.sourceName,modelPath:e.modelPath};return v.jsx(nM,{sourceAndPaths:t,existingQuery:o,existingSourceName:e.sourceName,onQueryChange:n,onSourceChange:r})}function aEe({cell:e,expandCodeCell:t,expandEmbedding:n,hideEmbeddingIcons:r,editingMalloy:o,editingMarkdown:a,sourceAndPaths:s,onCellChange:c,onClose:u,onEdit:d,onDelete:p,addButtonCallback:h}){const[g,y]=Fe.useState(t),[b,x]=Fe.useState(n),[S,T]=Fe.useState(),[D]=Fe.useState(),[w,R]=Fe.useState(xp()),[I,O]=Fe.useState(!1),[F,j]=Fe.useState(e.sourceName?s.findIndex(P=>P.sourceInfo.name===e.sourceName):0);k.useEffect(()=>{e.isMarkdown||lc(e.value,"malloy").then(P=>{T(P)})},[e]);const[H,C]=k.useState(e.value);Fe.useEffect(()=>{document.documentElement.setAttribute("data-color-mode","light")});const M=iEe(P=>{c({...e,value:P})}),[$,z]=k.useState(!1),q=()=>{p(),z(!1)},Y=s.length===0,B=()=>{const P=s[F],ee=P?.modelPath||e.modelPath||"",ce=P?.sourceInfo.name||e.sourceName||"";c({...e,value:w.query,result:w.malloyResult?JSON.stringify(w.malloyResult):void 0,queryInfo:w.malloyQuery?JSON.stringify(w.malloyQuery):void 0,sourceName:ce,modelPath:ee})},X=v.jsx(nr,{title:"Delete Cell",children:v.jsx($n,{size:"small",onClick:()=>z(!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"})})})}),ae=v.jsxs(ec,{open:$,onClose:()=>z(!1),children:[v.jsx(nc,{children:"Confirm Delete"}),v.jsx(tc,{children:v.jsx(He,{children:"Are you sure you want to delete this cell?"})}),v.jsxs(T5,{children:[v.jsx(Hr,{onClick:()=>z(!1),children:"Cancel"}),v.jsx(Hr,{onClick:q,color:"error",children:"Delete"})]})]}),te=e.isMarkdown?v.jsxs(v.Fragment,{children:[a?v.jsx(nr,{title:"Save",children:v.jsx($n,{size:"small",onClick:u,children:v.jsx(Sg,{})})}):v.jsx(nr,{title:"Edit",children:v.jsx($n,{size:"small",onClick:d,children:v.jsx(nO,{})})}),!a&&X]}):v.jsxs(v.Fragment,{children:[!o&&v.jsx(nr,{title:g?"Hide Code":"View Code",children:v.jsx($n,{size:"small",onClick:()=>{y(!g)},children:v.jsx(SL,{})})}),!r&&!o&&e.result&&v.jsx(nr,{title:b?"Hide Embedding":"View Embedding",children:v.jsx($n,{size:"small",onClick:()=>{x(!b)},children:v.jsx(Lh,{})})}),o&&v.jsx(nr,{title:"Save",children:v.jsx($n,{size:"small",onClick:()=>{B(),u()},children:v.jsx(Sg,{})})}),!o&&v.jsx(nr,{title:"Edit",children:v.jsx($n,{size:"small",onClick:d,children:v.jsx(nO,{})})}),!o&&X]}),N=o||a,oe=a?v.jsx(nr,{title:"Save",children:v.jsx($n,{size:"small",onClick:u,children:v.jsx(Sg,{})})}):o?v.jsx(nr,{title:"Save",children:v.jsx($n,{size:"small",onClick:()=>{B(),u()},children:v.jsx(Sg,{})})}):null,K=I&&v.jsx(It,{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:!N&&v.jsxs(v.Fragment,{children:[h(!0),h(!1),te]})||oe});return v.jsxs(Ar,{sx:{position:"relative",marginTop:"5px",marginBottom:"5px",borderWidth:"1.5px",backgroundColor:"#fff",minHeight:"50px"},onMouseEnter:()=>O(!0),onMouseLeave:()=>{O(!1)},children:[K,e.isMarkdown?v.jsx(v.Fragment,{children:a?v.jsx(C8,{value:H,preview:"edit",autoFocus:!0,onChange:P=>{C(P),M(P)},onBlur:()=>{B(),I||u()}}):v.jsx(It,{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:H?v.jsx(It,{onClick:d,sx:{cursor:"pointer"},children:v.jsx(VS,{children:H})}):v.jsxs(It,{onClick:d,sx:{cursor:"pointer"},children:[v.jsx(He,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"Markdown is empty"}),v.jsx(He,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Click to edit."})]})})}):v.jsxs(v.Fragment,{children:[v.jsx(Ma,{in:b,timeout:"auto",unmountOnExit:!0,children:v.jsx(fn,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:v.jsx(He,{component:"div",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},dangerouslySetInnerHTML:{__html:D}})})}),v.jsx(Ma,{in:g,timeout:"auto",unmountOnExit:!0,children:v.jsx(fn,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:v.jsx(He,{component:"div",className:"content",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},dangerouslySetInnerHTML:{__html:S}})})}),o&&(Y?v.jsxs(v.Fragment,{children:[v.jsx(He,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"No Model Imports"}),v.jsx(He,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Please add a model import above."})]}):v.jsx(oEe,{sourceAndPaths:s,onQueryChange:P=>{R(P)},cell:e,onSourceChange:j})),!o&&e.result&&v.jsx(Ar,{variant:"outlined",sx:{borderRadius:0},children:v.jsx(CL,{result:e.result,minHeight:300,maxHeight:800})}),!o&&!e.result&&v.jsxs(It,{onClick:d,sx:{cursor:"pointer"},children:[v.jsx(He,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"Explore is empty"}),v.jsx(He,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Click to edit."})]})]}),$&&ae]})}function iEe(e,t=2e3){const n=Fe.useRef(void 0);return Fe.useCallback(r=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{e(r)},t)},[e,t])}const _8=k.createContext(void 0);function sEe({children:e,workbookStorage:t}){const n=k.useMemo(()=>({workbookStorage:t}),[t]);return v.jsx(_8.Provider,{value:n,children:e})}function h_(){const e=k.useContext(_8);if(!e)throw new Error("useWorkbookStorage must be used within a WorkbookStorageProvider");return e}const lEe=Dn(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"})),cEe=Dn(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"})),uEe=new fb(new Vr);function dEe({initialSelectedModels:e,onModelChange:t}){const{projectName:n,packageName:r,versionId:o}=uo(),{data:a,isLoading:s,isSuccess:c,isError:u,error:d}=Jr({queryKey:["models",n,r,o],queryFn:T=>uEe.listModels(n,r,o,T)}),[p,h]=Fe.useState(e||[]),[g,y]=Fe.useState(null);Fe.useEffect(()=>{h(e||[])},[e]);const b=T=>{const D=p.filter(w=>w!==T);h(D),t(D)},x=T=>{const D=[...p,T];h(D),t(D),y(null)};let S=[];return c&&a?.data&&(S=a.data.filter(T=>!p.includes(T.path)).map(T=>T.path)),u?v.jsx($r,{error:d,context:`${n} > ${r} > Model Picker`}):v.jsxs(v.Fragment,{children:[v.jsxs(xy,{fullWidth:!0,children:[s&&v.jsx(He,{children:"Loading..."}),v.jsxs(fn,{direction:"row",spacing:1,children:[p.map(T=>v.jsx(Gl,{label:T,onDelete:()=>b(T),deleteIcon:v.jsx(lEe,{}),sx:{marginBottom:"5px"}},T)),v.jsx(Hr,{size:"small",startIcon:v.jsx(cEe,{}),onClick:T=>y(T.currentTarget),disabled:s||u||S.length===0,children:"Add Model"})]})]}),v.jsxs(I0,{anchorEl:g,open:!!g,onClose:()=>y(null),children:[v.jsx(He,{variant:"subtitle2",sx:{ml:1},children:"Models"}),v.jsx(_r,{}),S.length===0?v.jsx(ql,{disabled:!0,children:"No models available"}):S.map(T=>v.jsx(ql,{onClick:()=>x(T),children:v.jsx(He,{variant:"body2",children:T})},T))]})]})}const fEe=new fb(new Vr);function pEe({workbookPath:e,expandCodeCells:t,expandEmbeddings:n,hideEmbeddingIcons:r}){const o=bd(),a=uo(),{projectName:s,packageName:c,versionId:u}=a,{server:d,getAccessToken:p}=jC(),{workbookStorage:h}=h_(),[g,y]=Fe.useState(void 0);if(!s||!c)throw new Error("Project and package must be provided via PubliserPackageProvider");if(!h)throw new Error("Workbook storage be provided via WorkbookStorageProvider");const[b,x]=Fe.useState(),[S,T]=Fe.useState(),[D,w]=Fe.useState(),[R,I]=Fe.useState([]),[O,F]=Fe.useState(null),[j,H]=Fe.useState(null),C=!!O,M=()=>{F(null),H(null)},$=(K,P)=>{b.insertCell(P,{isMarkdown:K,value:""}),ae(),K?w(P):T(P),M()},[z,q]=Fe.useState(!1),Y=()=>{q(!0)},B=async K=>{e&&h&&a&&await h.deleteWorkbook(a,e).then(()=>{y(void 0)}).catch(P=>{y(`Error deleting workbook: ${P.message}`)}),q(!1),o(`/${s}/${c}`,K)},X=()=>{q(!1)},ae=Fe.useCallback(async()=>{try{x(await b.saveWorkbook()),y(void 0)}catch(K){y(`Error saving workbook: ${K.message}`)}},[b]);if(Fe.useEffect(()=>{b&&(async()=>{const K=new Map(R.map(({modelPath:ce,sourceInfos:re})=>[ce,re])),P=[],ee=[];for(const ce of b.getModels())K.has(ce)?P.push({modelPath:ce,sourceInfos:K.get(ce)}):(console.log("Fetching model from Publisher",ce),ee.push(fEe.getModel(s,c,ce,u,await wC(d,p)).then(re=>({modelPath:ce,sourceInfos:re.data.sourceInfos.map(be=>JSON.parse(be))}))));if(ee.length>0){const ce=await Promise.all(ee);I([...P,...ce])}else I(P)})()},[p,b,c,s,d,u]),Fe.useEffect(()=>{e&&Tp.loadWorkbook(h,a,e).then(K=>{x(K)})},[e,h,a]),!b)return v.jsx("div",{children:"Loading..."});const te=K=>{const P=[];for(const ee of K)for(const ce of ee.sourceInfos)P.push({modelPath:ee.modelPath,sourceInfo:ce});return P},N=(K,P)=>v.jsx(Hr,{size:"small",startIcon:v.jsx(Kce,{}),onClick:()=>$(K,P),variant:"contained",sx:{backgroundColor:"#fff",color:ee=>ee.palette.mode==="dark"?ee.palette.grey[100]:ee.palette.grey[700],boxShadow:"none","&:hover":{backgroundColor:ee=>ee.palette.mode==="dark"?ee.palette.grey[500]:ee.palette.grey[300],boxShadow:"none"}},children:K?"Markdown":"Explore"}),oe=v.jsxs(It,{sx:{display:"flex",gap:1,justifyContent:"center",flex:2},children:[N(!1,b.getCells().length),N(!0,b.getCells().length)]});return v.jsxs(Ar,{variant:"outlined",children:[v.jsxs(Ko,{children:[g&&v.jsx(It,{sx:{mb:2},children:v.jsx(He,{color:"error",variant:"body2",children:g})}),v.jsxs(fu,{sx:{flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:[v.jsxs(fu,{direction:"row",spacing:1,alignItems:"center",children:[v.jsx(He,{variant:"overline",sx:{fontSize:"13px",fontWeight:"bold",verticalAlign:"middle"},children:"Workbook"}),v.jsx(He,{variant:"subtitle2",sx:{fontSize:"13px",fontWeight:"normal",verticalAlign:"middle",ml:1},children:`${s} > ${c} > ${e.path}`})]}),v.jsxs(fu,{sx:{display:"flex",flexDirection:"row",gap:1},children:[v.jsx(It,{sx:{display:"flex",alignItems:"center",mt:1,mb:1},children:v.jsx(hEe,{workbookData:b})}),v.jsxs(It,{sx:{display:"flex",alignItems:"center",mt:1,mb:1},children:[v.jsx(Hr,{color:"error",onClick:Y,size:"small",children:"Delete"}),v.jsxs(ec,{open:z,onClose:X,children:[v.jsx(nc,{children:"Delete Workbook"}),v.jsx(tc,{children:v.jsxs(nW,{children:['Are you sure you want to delete the workbook "',e.path,'"? This action cannot be undone.']})}),v.jsxs(T5,{children:[v.jsx(Hr,{onClick:X,color:"primary",size:"small",children:"Cancel"}),v.jsx(Hr,{onClick:K=>B(K),color:"error",autoFocus:!0,size:"small",children:"Delete"})]})]})]})]})]}),v.jsx(_r,{}),v.jsxs(fu,{sx:{display:"flex",flexDirection:"row",width:"100%",mt:2},children:[v.jsx(It,{sx:{flex:1},children:v.jsx(dEe,{initialSelectedModels:b.getModels(),onModelChange:K=>{x(b.setModels(K)),ae()}})}),v.jsx(It,{sx:{flex:1}})]})]}),v.jsx(AC,{children:v.jsxs(fu,{children:[b.getCells().length===0&&v.jsxs(v.Fragment,{children:[v.jsx(He,{sx:{textAlign:"center",p:2,variant:"subtitle2",fontWeight:"medium"},children:"Workbook is empty"}),v.jsx(He,{variant:"body2",sx:{textAlign:"center",mb:2,variant:"body2"},children:"Click the + buttons to add a markdown or code cell."})]}),b.getCells().map((K,P)=>v.jsx(Fe.Fragment,{children:v.jsx(aEe,{cell:K,addButtonCallback:ee=>N(ee,P),sourceAndPaths:te(R),expandCodeCell:t,expandEmbedding:n,hideEmbeddingIcons:r,editingMarkdown:D===P,editingMalloy:S===P,onDelete:()=>{x(b.deleteCell(P)),ae()},onCellChange:ee=>{x(b.setCell(P,ee)),ae()},onEdit:()=>{K.isMarkdown?w(P):T(P)},onClose:()=>{K.isMarkdown?w(void 0):T(void 0)}},`${P}-${K.isMarkdown}-${e}-${s}-${c}`)},`${P}-${b.getCells().length}`)),oe,v.jsxs(I0,{anchorEl:O,open:C,onClose:M,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[v.jsx(ql,{onClick:()=>$(!0,j??0),children:"Add Markdown"}),v.jsx(ql,{onClick:()=>$(!1,j??0),children:"Add Malloy"})]}),v.jsx(fu,{sx:{flexDirection:"row",justifyContent:"flex-end",p:1}})]})})]})}function hEe({workbookData:e}){const[t,n]=Fe.useState(!1);return v.jsx(Hr,{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"})}function mEe({onWorkbookClick:e}){const{workbookStorage:t}=h_(),n=uo(),[r,o]=Fe.useState([]),[a,s]=Fe.useState(void 0);return Fe.useEffect(()=>{t&&t.listWorkspaces(n,!1).then(c=>{const u=[];Promise.all(c.map(async d=>{await t.listWorkbooks(d,n).then(p=>{u.push(...p)}).catch(p=>{s(`Error listing workbooks: ${p.message}`)})})).then(()=>{o(u),s(void 0)})})},[t,n]),v.jsxs(v.Fragment,{children:[a&&v.jsx(It,{sx:{mb:2},children:v.jsx(He,{color:"error",variant:"body2",children:a})}),v.jsx(_r,{}),v.jsx(It,{sx:{maxHeight:"300px",overflow:"auto","&::-webkit-scrollbar":{width:"8px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:"rgba(0,0,0,0.2)",borderRadius:"4px"}},children:v.jsxs(kh,{dense:!0,children:[r.length===0&&v.jsx(Su,{children:v.jsx(Ji,{primary:"No workbooks found.",sx:{textAlign:"center"}})}),r.map(c=>v.jsx(Su,{onClick:u=>e(c,u),sx:{cursor:"pointer","&:hover":{backgroundColor:"action.hover"}},children:v.jsx(Ji,{primary:c.path})},c.path))]})})]})}const IN="Local";class gEe{makeKey(t,n){let r=`BROWSER_NOTEBOOK_STORAGE/${t.projectName}/${t.packageName}`;return n&&(r+=`/${n}`),r}async listWorkspaces(t,n){return[{name:IN,description:"Stored locally- only accessible to this browser",writeable:!0}]}async listWorkbooks(t,n){const r=this.makeKey(n),o=[];for(let a=0;a<localStorage.length;a++){const s=localStorage.key(a);if(s&&s.startsWith(r+"/")){const c=s.substring(r.length+1);o.push({path:c,workspace:IN})}}return o}async getWorkbook(t,n){const r=this.makeKey(t,n.path),o=localStorage.getItem(r);if(o===null)throw new Error(`Notebook not found at path: ${n}`);return o}async deleteWorkbook(t,n){const r=this.makeKey(t,n.path);if(localStorage.getItem(r)===null)throw new Error(`Notebook not found at path: ${n}`);localStorage.removeItem(r)}async saveWorkbook(t,n,r){console.log("saveWorkbook",t,n,r);const o=this.makeKey(t,n.path);console.log("saveWorkbook",o),localStorage.setItem(o,r)}async moveWorkbook(t,n,r){const o=this.makeKey(t,n.path),a=this.makeKey(t,r.path),s=localStorage.getItem(o);if(s===null)throw new Error(`Notebook not found at path: ${n.path}`);localStorage.setItem(a,s),localStorage.removeItem(o)}}const yEe=Dn(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"})),bEe=Dn(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"})),ON=Dn(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"})),vEe=Dn(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"})),EEe=Dn(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"})),xEe=Dn([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")]),NN=Dn(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"})),TEe=new vL(new Vr),SEe=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(" ")+"..."};function CEe({navigate:e}){const{data:t,isSuccess:n,isError:r,error:o}=Jr({queryKey:["projects"],queryFn:a=>TEe.listProjects(a)});return r?v.jsx($r,{error:o,context:"Projects List"}):n?v.jsxs(kS,{maxWidth:"lg",sx:{py:4},children:[v.jsxs(It,{sx:{textAlign:"center",mb:6},children:[v.jsxs(fn,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[v.jsx(ON,{sx:{fontSize:32,color:"primary.main"}}),v.jsx(He,{variant:"h3",component:"h1",fontWeight:700,children:"Publisher"})]}),v.jsx(He,{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(He,{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(Zn,{container:!0,spacing:3,sx:{mb:6},children:[v.jsx(Zn,{size:{xs:12,md:4},children:v.jsx(xu,{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(Tu,{sx:{p:3},children:[v.jsxs(fn,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[v.jsx(yEe,{sx:{color:"info.main",fontSize:28}}),v.jsx(He,{variant:"h6",fontWeight:600,children:"Ad Hoc Analysis"})]}),v.jsx(He,{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(Gl,{label:"No-code",size:"small",color:"primary",variant:"outlined"})]})})}),v.jsx(Zn,{size:{xs:12,md:4},children:v.jsx(xu,{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(Tu,{sx:{p:3},children:[v.jsxs(fn,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[v.jsx(vEe,{sx:{color:"warning.main",fontSize:28}}),v.jsx(He,{variant:"h6",fontWeight:600,children:"Notebook Dashboards"})]}),v.jsx(He,{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(Gl,{label:"Versioned",size:"small",color:"warning",variant:"outlined"})]})})}),v.jsx(Zn,{size:{xs:12,md:4},children:v.jsx(xu,{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(Tu,{sx:{p:3},children:[v.jsxs(fn,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[v.jsx(xEe,{sx:{color:"success.main",fontSize:28}}),v.jsx(He,{variant:"h6",fontWeight:600,children:"AI Data Agents"})]}),v.jsx(He,{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(Gl,{label:"AI-Ready",size:"small",color:"success",variant:"outlined"})]})})})]}),v.jsx(_r,{sx:{my:4}}),t.data.length>0?v.jsxs(v.Fragment,{children:[v.jsxs(It,{sx:{textAlign:"center",mb:4},children:[v.jsxs(fn,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[v.jsx(NN,{sx:{color:"primary.main",fontSize:24}}),v.jsx(He,{variant:"h4",fontWeight:600,children:"Select a Project"})]}),v.jsx(He,{variant:"body1",color:"text.secondary",children:"Choose a project to explore its semantic models and start analyzing your data"})]}),v.jsx(Zn,{container:!0,spacing:3,justifyContent:"center",children:t.data.map(a=>v.jsx(Zn,{size:{xs:12,sm:6,md:4},children:v.jsx(xu,{variant:"outlined",sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2,borderColor:"primary.main"}},onClick:s=>e(`/${a.name}/`,s),children:v.jsxs(Tu,{sx:{p:3,textAlign:"center"},children:[v.jsx(EEe,{sx:{fontSize:48,color:"primary.main",mb:2}}),v.jsx(He,{variant:"h6",fontWeight:600,gutterBottom:!0,children:a.name}),v.jsx(He,{variant:"body2",color:"text.secondary",sx:{mb:2},children:SEe(a.readme)}),v.jsx(Hr,{variant:"contained",color:"secondary",endIcon:v.jsx(bEe,{}),fullWidth:!0,children:"Open Project"})]})})},a.name))})]}):v.jsxs(It,{sx:{textAlign:"center",mb:4},children:[v.jsxs(fn,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[v.jsx(NN,{sx:{color:"primary.main",fontSize:24}}),v.jsx(He,{variant:"h4",fontWeight:600,children:"Get Started"})]}),v.jsx(He,{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(Hr,{variant:"contained",size:"large",color:"primary",startIcon:v.jsx(ON,{}),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(It,{sx:{textAlign:"center",mt:6,pt:4,borderTop:1,borderColor:"divider"},children:v.jsxs(He,{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(Zr,{text:"Loading projects..."})}function _Ee(){const e=hc(),{packageName:t,projectName:n}=e,{workbookStorage:r}=h_(),[o,a]=Fe.useState(""),[s,c]=Fe.useState(""),[u,d]=Fe.useState([]),[p,h]=Fe.useState(null),[g,y]=Fe.useState(!1),[b,x]=Fe.useState(!1),S=bd(),T=!!p,D=j=>{h(j.currentTarget)},w=()=>{h(null)},R=()=>{x(!1)},I=()=>{y(!1),a(""),c("")};Fe.useEffect(()=>{g&&r&&e&&r.listWorkspaces(e,!0).then(j=>{d(j),j.length===1&&c(j[0].name)}).catch(j=>{console.error("Error fetching workspaces:",j),d([])})},[g,r,e]);const O=(j,H)=>{x(!1),S(`/${n}/${t}/workbook/${encodeURIComponent(j.workspace)}/${encodeURIComponent(j.path)}`,H)},F=j=>{y(!1);const H=`${encodeURIComponent(s)}/${encodeURIComponent(o)}`;S(`/${n}/${t}/workbook/${H}`,j),a(""),c("")};return!n||!t?null:v.jsxs(v.Fragment,{children:[v.jsx(Hr,{"aria-controls":T?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":T?"true":void 0,onClick:D,variant:"contained",sx:{height:"40px",px:2,backgroundColor:"#fbbb04","&:hover":{backgroundColor:"#eab308"}},children:"Analyze Package"}),v.jsxs(I0,{id:"basic-menu",anchorEl:p,open:T,onClose:w,MenuListProps:{"aria-labelledby":"basic-button",sx:{py:.5}},children:[v.jsxs(ql,{onClick:()=>{y(!0),w()},sx:{py:1,px:2},children:[v.jsx(BD,{children:v.jsx(mJ,{fontSize:"small"})}),v.jsxs(Ji,{children:[v.jsx(He,{variant:"body2",fontWeight:500,children:"New Workbook"}),v.jsx(He,{variant:"caption",color:"text.secondary",children:"Create a new analysis workbook"})]})]}),v.jsxs(ql,{onClick:()=>{x(!0),w()},sx:{py:1,px:2},children:[v.jsx(BD,{children:v.jsx(vJ,{fontSize:"small"})}),v.jsxs(Ji,{children:[v.jsx(He,{variant:"body2",fontWeight:500,children:"Open Workbook"}),v.jsx(He,{variant:"caption",color:"text.secondary",children:"Open an existing workbook"})]})]})]}),v.jsxs(ec,{open:g,onClose:I,maxWidth:"sm",fullWidth:!0,children:[v.jsxs(nc,{sx:{pb:1,pt:2,px:2},children:[v.jsx(He,{fontWeight:600,sx:{fontSize:"1.5rem",mb:.5},children:"Create New Workbook"}),v.jsx(He,{variant:"body2",color:"text.secondary",children:"Start a new analysis workbook to explore your data"})]}),v.jsx(tc,{sx:{px:2,pb:2},children:v.jsxs(fn,{spacing:2,sx:{mt:1},children:[u.length>1?v.jsxs(xy,{fullWidth:!0,size:"small",children:[v.jsx(S5,{children:"Workspace"}),v.jsx(NS,{value:s,label:"Workspace",onChange:j=>c(j.target.value),children:u.map(j=>v.jsx(ql,{value:j.name,children:v.jsxs(It,{children:[v.jsx(He,{variant:"body2",fontWeight:500,children:j.name}),v.jsx(He,{variant:"caption",color:"text.secondary",children:j.description})]})},j.name))})]}):u.length===1?v.jsxs(It,{sx:{p:2,border:1,borderColor:"divider",borderRadius:1,backgroundColor:"grey.50"},children:[v.jsxs(He,{variant:"body2",fontWeight:500,gutterBottom:!0,children:["Workspace: ",u[0].name]}),v.jsx(He,{variant:"caption",color:"text.secondary",children:u[0].description})]}):null,v.jsx(xy,{fullWidth:!0,children:v.jsx(ZK,{label:"Workbook Name",value:o,onChange:j=>a(j.target.value),placeholder:"Enter workbook name...",fullWidth:!0,autoFocus:!0,size:"small"})}),v.jsxs(fn,{direction:"row",spacing:1,justifyContent:"flex-end",children:[v.jsx(Hr,{onClick:I,variant:"outlined",size:"small",children:"Cancel"}),v.jsx(Hr,{onClick:j=>F(j),variant:"contained",disabled:!o.trim()||u.length>1&&!s,size:"small",children:"Create Workbook"})]})]})})]}),v.jsxs(ec,{open:b,onClose:R,maxWidth:"md",fullWidth:!0,children:[v.jsxs(nc,{sx:{pb:1,pt:2,px:2},children:[v.jsx(He,{fontWeight:600,sx:{mb:.5,fontSize:"1.5rem"},children:"Open Workbook"}),v.jsx(He,{variant:"body2",color:"text.secondary",children:"Select an existing workbook to continue your analysis"})]}),v.jsx(tc,{sx:{px:2,pb:2},children:v.jsx(lh,{projectName:n,packageName:t,children:v.jsx(mEe,{onWorkbookClick:O})})})]})]})}new kC(new Vr);Mt.defaults.baseURL="IfYouAreSeeingThis_baseURL_IsNotSet";function AEe(){const e=bd();return v.jsx(CEe,{navigate:e})}function kEe(){const e=hc(),t=e["*"],n=bd();return v.jsx(It,{sx:{display:"flex",alignItems:"center"},children:v.jsxs(UG,{"aria-label":"breadcrumb",separator:v.jsx(gJ,{sx:{fontSize:14,color:"text.secondary"}}),sx:{"& .MuiBreadcrumbs-separator":{margin:"0 6px"}},children:[e.projectName&&v.jsx(Gl,{onClick:r=>n(`/${e.projectName}/`,r),label:e.projectName,size:"medium",sx:{backgroundColor:"white",color:"primary.main",fontWeight:500,height:"32px",fontSize:"0.875rem",cursor:"pointer","&:hover":{backgroundColor:"primary.100"}}}),e.packageName&&v.jsx(Gl,{onClick:r=>n(`/${e.projectName}/${e.packageName}/`,r),label:e.packageName,size:"medium",sx:{backgroundColor:"white",color:"primary.main",fontWeight:500,height:"32px",fontSize:"0.875rem",cursor:"pointer","&:hover":{backgroundColor:"secondary.100"}}}),t&&v.jsx(Gl,{onClick:r=>n(`/${e.projectName}/${e.packageName}/${t}`,r),label:t,size:"medium",sx:{backgroundColor:"white",color:"primary.main",fontWeight:500,height:"32px",fontSize:"0.875rem",cursor:"pointer","&:hover":{backgroundColor:"grey.200"}}})]})})}function wEe({logoHeader:e,endCap:t}){const n=HT(),{projectName:r,packageName:o}=hc();return v.jsx(q$,{position:"sticky",elevation:0,sx:{backgroundColor:"background.paper",borderBottom:"1px solid",borderColor:"divider"},children:v.jsxs(_K,{sx:{justifyContent:"space-between"},children:[v.jsxs(fn,{direction:"row",spacing:2,alignItems:"center",children:[e||v.jsxs(It,{sx:{display:"flex",alignItems:"center",gap:1},children:[v.jsx(It,{component:"img",src:"/logo.svg",alt:"Malloy",sx:{width:28,height:28}}),v.jsx(He,{variant:"h5",sx:{color:"text.primary",fontWeight:700,letterSpacing:"-0.025em",cursor:"pointer"},onClick:()=>{n("/")},children:"Malloy Publisher"})]}),v.jsx(kEe,{})]}),v.jsxs(fn,{direction:"row",spacing:2,alignItems:"center",children:[!r||!o?!e&&v.jsxs(v.Fragment,{children:[v.jsx(Hr,{href:"https://docs.malloydata.dev/documentation/",children:"Malloy Docs"}),v.jsx(Hr,{href:"https://github.com/malloydata/publisher/blob/main/README.md",children:"Publisher Docs"}),v.jsx(Hr,{href:"/api-doc.html",children:"Publisher API"})]}):v.jsx(v.Fragment,{children:v.jsx(_Ee,{})}),t]})]})})}function DEe({headerProps:e}){return v.jsxs(It,{sx:{display:"flex",flexDirection:"column",minHeight:"100vh"},children:[v.jsx(wEe,{...e}),v.jsx(kS,{maxWidth:"xl",component:"main",sx:{flex:1,display:"flex",flexDirection:"column",py:2,gap:2},children:v.jsx(It,{sx:{flex:1},children:v.jsx(u9,{})})})]})}function REe(){const e=hc(),t=e["*"];return e.projectName?e.packageName?t?.endsWith(".malloy")?v.jsx(lh,{projectName:e.projectName,packageName:e.packageName,children:v.jsx(Wce,{modelPath:t,hideEmbeddingIcons:!1})}):t?.endsWith(".malloynb")?v.jsx(lh,{projectName:e.projectName,packageName:e.packageName,children:v.jsx(_L,{notebookPath:t,hideEmbeddingIcons:!1,expandResults:!1})}):v.jsx("div",{children:v.jsxs("h2",{children:["Unrecognized file type: ",t]})}):v.jsx("div",{children:v.jsx("h2",{children:"Missing package name"})}):v.jsx("div",{children:v.jsx("h2",{children:"Missing project name"})})}function IEe(){const{projectName:e,packageName:t}=hc(),n=bd();return e?t?v.jsx(lh,{projectName:e,packageName:t,children:v.jsx(Bce,{navigate:n})}):v.jsx("div",{children:v.jsx("h2",{children:"Missing package name"})}):v.jsx("div",{children:v.jsx("h2",{children:"Missing project name"})})}function OEe(){const e=bd(),{projectName:t}=hc();return t?v.jsx(wL,{projectName:t,children:v.jsx(Kie,{navigate:e})}):v.jsx("div",{children:v.jsx("h2",{children:"Missing project name"})})}function NEe(){const e=e3();return console.error(e),v.jsx(kS,{maxWidth:"lg",component:"main",sx:{display:"flex",flexDirection:"column",my:2,gap:0},children:v.jsxs(fn,{sx:{m:"auto",flexDirection:"column"},children:[v.jsx(It,{sx:{height:"300px"}}),v.jsx("img",{src:"/error.png"}),v.jsx(He,{variant:"subtitle1",children:"An unexpected error occurred"})]})})}function PEe(){const{projectName:e,packageName:t,workspace:n,workbookPath:r}=hc();return e?t?n?r?v.jsx(lh,{projectName:e,packageName:t,children:v.jsx(pEe,{workbookPath:{path:r,workspace:n},hideEmbeddingIcons:!0},`${r}-${e}-${t}`)}):v.jsx("div",{children:v.jsx("h2",{children:"Missing workbook path"})}):v.jsx("div",{children:v.jsx("h2",{children:"Missing workspace"})}):v.jsx("div",{children:v.jsx("h2",{children:"Missing package name"})}):v.jsx("div",{children:v.jsx("h2",{children:"Missing project name"})})}const jn={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"}},LEe=T0({palette:{mode:"light",primary:jn.primary,secondary:jn.secondary,grey:jn.grey,success:jn.success,warning:jn.warning,error:jn.error,info:jn.info,background:{default:"#ffffff",paper:"#ffffff"},text:{primary:jn.grey[900],secondary:jn.grey[600]},divider:jn.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:`${jn.grey[300]} ${jn.grey[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:jn.grey[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:jn.grey[300],borderRadius:"4px","&:hover":{background:jn.grey[400]}},"&::-webkit-scrollbar-corner":{background:jn.grey[100]}},"*":{scrollbarWidth:"thin",scrollbarColor:`${jn.grey[300]} ${jn.grey[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:jn.grey[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:jn.grey[300],borderRadius:"4px","&:hover":{background:jn.grey[400]}},"&::-webkit-scrollbar-corner":{background:jn.grey[100]}}}},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:jn.grey[400]}}}},MuiDivider:{styleOverrides:{root:{margin:"4px 0",borderColor:jn.grey[200]}},defaultProps:{sx:{my:1}}}}}),MEe=(e="/",t,n,r,o)=>L9([{path:e,element:v.jsx(Qce,{server:r,getAccessToken:o,children:v.jsx(sEe,{workbookStorage:t,children:v.jsxs(Fz,{theme:LEe,children:[v.jsx(vq,{}),v.jsx(DEe,{headerProps:n})]})})}),errorElement:v.jsx(NEe,{}),children:[{path:"",element:v.jsx(AEe,{})},{path:":projectName",element:v.jsx(OEe,{})},{path:":projectName/:packageName",element:v.jsx(IEe,{})},{path:":projectName/:packageName/*",element:v.jsx(REe,{})},{path:":projectName/:packageName/workbook/:workspace/:workbookPath",element:v.jsx(PEe,{})}]}]),FEe=`${window.location.protocol}//${window.location.host}/api/v0`,BEe=MEe("/",new gEe,void 0,FEe);UF.createRoot(document.getElementById("root")).render(v.jsx(k.StrictMode,{children:v.jsx(W9,{router:BEe})}));export{tx as R,G as _,zs as a,Fe as b,s0 as c,jEe as d,PN as g,v as j,k as r};
|