@malloy-publisher/server 0.0.87 → 0.0.88
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/build.ts +25 -0
- package/dist/app/api-doc.yaml +83 -0
- package/dist/app/assets/{RenderedResult-BAZuT25g-BMU632YI.js → RenderedResult-BAZuT25g-DLMDvQic.js} +2 -2
- package/dist/app/assets/{index-BbW5TZg_.js → index-CNRCklos.js} +2 -2
- package/dist/app/assets/{index-2xWCh-ya.css → index-CcIq0aEZ.css} +1 -1
- package/dist/app/assets/index-CobAY3LE.js +427 -0
- package/dist/app/assets/{index-CIfV3yj1.js → index-lhN38COk.js} +2 -2
- package/dist/app/assets/{index.umd-x-naS8R7.js → index.umd-CSPhcx55.js} +259 -259
- package/dist/app/index.html +2 -2
- package/dist/instrumentation.js +67969 -35371
- package/dist/server.js +49297 -40630
- package/package.json +7 -4
- package/publisher.config.json +1 -1
- package/src/config.ts +20 -0
- package/src/constants.ts +6 -0
- package/src/controller/package.controller.ts +41 -2
- package/src/controller/watch-mode.controller.ts +83 -0
- package/src/errors.ts +2 -1
- package/src/server.ts +22 -14
- package/src/service/connection.ts +7 -7
- package/src/service/model.ts +6 -6
- package/src/service/package.ts +4 -4
- package/src/service/project.ts +6 -4
- package/src/service/project_store.spec.ts +19 -14
- package/src/service/project_store.ts +262 -47
- package/src/utils.ts +0 -18
- package/dist/app/assets/index-C7whj6wK.js +0 -432
|
@@ -0,0 +1,427 @@
|
|
|
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-lhN38COk.js","assets/index-CNRCklos.js","assets/index.umd-CSPhcx55.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
function bF(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 vEe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jN(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var N1={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 Kk;function vF(){if(Kk)return xf;Kk=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 l in o)l!=="key"&&(a[l]=o[l])}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 Xk;function EF(){return Xk||(Xk=1,N1.exports=vF()),N1.exports}var b=EF(),P1={exports:{}},Mt={};/**
|
|
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 Zk;function xF(){if(Zk)return Mt;Zk=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"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.iterator;function 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(){}},v=Object.assign,T={};function _(N,Q,X){this.props=N,this.context=Q,this.refs=T,this.updater=X||y}_.prototype.isReactComponent={},_.prototype.setState=function(N,Q){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,Q,"setState")},_.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function x(){}x.prototype=_.prototype;function D(N,Q,X){this.props=N,this.context=Q,this.refs=T,this.updater=X||y}var C=D.prototype=new x;C.constructor=D,v(C,_.prototype),C.isPureReactComponent=!0;var R=Array.isArray,I={H:null,A:null,T:null,S:null,V:null},O=Object.prototype.hasOwnProperty;function F(N,Q,X,P,re,ce){return X=ce.ref,{$$typeof:e,type:N,key:Q,ref:X!==void 0?X:null,props:ce}}function H(N,Q){return F(N.type,Q,void 0,void 0,void 0,N.props)}function U(N){return typeof N=="object"&&N!==null&&N.$$typeof===e}function S(N){var Q={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(X){return Q[X]})}var M=/\/+/g;function $(N,Q){return typeof N=="object"&&N!==null&&N.key!=null?S(""+N.key):Q.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(Q){N.status==="pending"&&(N.status="fulfilled",N.value=Q)},function(Q){N.status==="pending"&&(N.status="rejected",N.reason=Q)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function Y(N,Q,X,P,re){var ce=typeof N;(ce==="undefined"||ce==="boolean")&&(N=null);var oe=!1;if(N===null)oe=!0;else switch(ce){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(N.$$typeof){case e:case t:oe=!0;break;case p:return oe=N._init,Y(oe(N._payload),Q,X,P,re)}}if(oe)return re=re(N),oe=P===""?"."+$(N,0):P,R(re)?(X="",oe!=null&&(X=oe.replace(M,"$&/")+"/"),Y(re,Q,X,"",function(qe){return qe})):re!=null&&(U(re)&&(re=H(re,X+(re.key==null||N&&N.key===re.key?"":(""+re.key).replace(M,"$&/")+"/")+oe)),Q.push(re)),1;oe=0;var ve=P===""?".":P+":";if(R(N))for(var be=0;be<N.length;be++)P=N[be],ce=ve+$(P,be),oe+=Y(P,Q,X,ce,re);else if(be=g(N),typeof be=="function")for(N=be.call(N),be=0;!(P=N.next()).done;)P=P.value,ce=ve+$(P,be++),oe+=Y(P,Q,X,ce,re);else if(ce==="object"){if(typeof N.then=="function")return Y(q(N),Q,X,P,re);throw Q=String(N),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return oe}function B(N,Q,X){if(N==null)return N;var P=[],re=0;return Y(N,P,"","",function(ce){return Q.call(X,ce,re++)}),P}function K(N){if(N._status===-1){var Q=N._result;Q=Q(),Q.then(function(X){(N._status===0||N._status===-1)&&(N._status=1,N._result=X)},function(X){(N._status===0||N._status===-1)&&(N._status=2,N._result=X)}),N._status===-1&&(N._status=0,N._result=Q)}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 Q=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(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)};function ne(){}return Mt.Children={map:B,forEach:function(N,Q,X){B(N,function(){Q.apply(this,arguments)},X)},count:function(N){var Q=0;return B(N,function(){Q++}),Q},toArray:function(N){return B(N,function(Q){return Q})||[]},only:function(N){if(!U(N))throw Error("React.Children.only expected to receive a single React element child.");return N}},Mt.Component=_,Mt.Fragment=n,Mt.Profiler=o,Mt.PureComponent=D,Mt.StrictMode=r,Mt.Suspense=u,Mt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,Mt.__COMPILER_RUNTIME={__proto__:null,c:function(N){return I.H.useMemoCache(N)}},Mt.cache=function(N){return function(){return N.apply(null,arguments)}},Mt.cloneElement=function(N,Q,X){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var P=v({},N.props),re=N.key,ce=void 0;if(Q!=null)for(oe in Q.ref!==void 0&&(ce=void 0),Q.key!==void 0&&(re=""+Q.key),Q)!O.call(Q,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&Q.ref===void 0||(P[oe]=Q[oe]);var oe=arguments.length-2;if(oe===1)P.children=X;else if(1<oe){for(var ve=Array(oe),be=0;be<oe;be++)ve[be]=arguments[be+2];P.children=ve}return F(N.type,re,void 0,void 0,ce,P)},Mt.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},Mt.createElement=function(N,Q,X){var P,re={},ce=null;if(Q!=null)for(P in Q.key!==void 0&&(ce=""+Q.key),Q)O.call(Q,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(re[P]=Q[P]);var oe=arguments.length-2;if(oe===1)re.children=X;else if(1<oe){for(var ve=Array(oe),be=0;be<oe;be++)ve[be]=arguments[be+2];re.children=ve}if(N&&N.defaultProps)for(P in oe=N.defaultProps,oe)re[P]===void 0&&(re[P]=oe[P]);return F(N,ce,void 0,void 0,null,re)},Mt.createRef=function(){return{current:null}},Mt.forwardRef=function(N){return{$$typeof:l,render:N}},Mt.isValidElement=U,Mt.lazy=function(N){return{$$typeof:p,_payload:{_status:-1,_result:N},_init:K}},Mt.memo=function(N,Q){return{$$typeof:d,type:N,compare:Q===void 0?null:Q}},Mt.startTransition=function(N){var Q=I.T,X={};I.T=X;try{var P=N(),re=I.S;re!==null&&re(X,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(ne,ae)}catch(ce){ae(ce)}finally{I.T=Q}},Mt.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},Mt.use=function(N){return I.H.use(N)},Mt.useActionState=function(N,Q,X){return I.H.useActionState(N,Q,X)},Mt.useCallback=function(N,Q){return I.H.useCallback(N,Q)},Mt.useContext=function(N){return I.H.useContext(N)},Mt.useDebugValue=function(){},Mt.useDeferredValue=function(N,Q){return I.H.useDeferredValue(N,Q)},Mt.useEffect=function(N,Q,X){var P=I.H;if(typeof X=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return P.useEffect(N,Q)},Mt.useId=function(){return I.H.useId()},Mt.useImperativeHandle=function(N,Q,X){return I.H.useImperativeHandle(N,Q,X)},Mt.useInsertionEffect=function(N,Q){return I.H.useInsertionEffect(N,Q)},Mt.useLayoutEffect=function(N,Q){return I.H.useLayoutEffect(N,Q)},Mt.useMemo=function(N,Q){return I.H.useMemo(N,Q)},Mt.useOptimistic=function(N,Q){return I.H.useOptimistic(N,Q)},Mt.useReducer=function(N,Q,X){return I.H.useReducer(N,Q,X)},Mt.useRef=function(N){return I.H.useRef(N)},Mt.useState=function(N){return I.H.useState(N)},Mt.useSyncExternalStore=function(N,Q,X){return I.H.useSyncExternalStore(N,Q,X)},Mt.useTransition=function(){return I.H.useTransition()},Mt.version="19.1.1",Mt}var Jk;function BT(){return Jk||(Jk=1,P1.exports=xF()),P1.exports}var w=BT();const Be=jN(w),sx=bF({__proto__:null,default:Be},[w]);var L1={exports:{}},Tf={},M1={exports:{}},F1={};/**
|
|
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 ew;function TF(){return ew||(ew=1,function(e){function t(B,K){var ae=B.length;B.push(K);e:for(;0<ae;){var ne=ae-1>>>1,N=B[ne];if(0<o(N,K))B[ne]=K,B[ae]=N,ae=ne;else break e}}function n(B){return B.length===0?null:B[0]}function r(B){if(B.length===0)return null;var K=B[0],ae=B.pop();if(ae!==K){B[0]=ae;e:for(var ne=0,N=B.length,Q=N>>>1;ne<Q;){var X=2*(ne+1)-1,P=B[X],re=X+1,ce=B[re];if(0>o(P,ae))re<N&&0>o(ce,P)?(B[ne]=ce,B[re]=ae,ne=re):(B[ne]=P,B[X]=ae,ne=X);else if(re<N&&0>o(ce,ae))B[ne]=ce,B[re]=ae,ne=re;else break e}}return K}function o(B,K){var ae=B.sortIndex-K.sortIndex;return ae!==0?ae:B.id-K.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,l=s.now();e.unstable_now=function(){return s.now()-l}}var u=[],d=[],p=1,h=null,g=3,y=!1,v=!1,T=!1,_=!1,x=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;function R(B){for(var K=n(d);K!==null;){if(K.callback===null)r(d);else if(K.startTime<=B)r(d),K.sortIndex=K.expirationTime,t(u,K);else break;K=n(d)}}function I(B){if(T=!1,R(B),!v)if(n(u)!==null)v=!0,O||(O=!0,$());else{var K=n(d);K!==null&&Y(I,K.startTime-B)}}var O=!1,F=-1,H=5,U=-1;function S(){return _?!0:!(e.unstable_now()-U<H)}function M(){if(_=!1,O){var B=e.unstable_now();U=B;var K=!0;try{e:{v=!1,T&&(T=!1,D(F),F=-1),y=!0;var ae=g;try{t:{for(R(B),h=n(u);h!==null&&!(h.expirationTime>B&&S());){var ne=h.callback;if(typeof ne=="function"){h.callback=null,g=h.priorityLevel;var N=ne(h.expirationTime<=B);if(B=e.unstable_now(),typeof N=="function"){h.callback=N,R(B),K=!0;break t}h===n(u)&&r(u),R(B)}else r(u);h=n(u)}if(h!==null)K=!0;else{var Q=n(d);Q!==null&&Y(I,Q.startTime-B),K=!1}}break e}finally{h=null,g=ae,y=!1}K=void 0}}finally{K?$():O=!1}}}var $;if(typeof C=="function")$=function(){C(M)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,q=z.port2;z.port1.onmessage=M,$=function(){q.postMessage(null)}}else $=function(){x(M,0)};function Y(B,K){F=x(function(){B(e.unstable_now())},K)}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"):H=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 K=3;break;default:K=g}var ae=g;g=K;try{return B()}finally{g=ae}},e.unstable_requestPaint=function(){_=!0},e.unstable_runWithPriority=function(B,K){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var ae=g;g=B;try{return K()}finally{g=ae}},e.unstable_scheduleCallback=function(B,K,ae){var ne=e.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?ne+ae:ne):ae=ne,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:K,priorityLevel:B,startTime:ae,expirationTime:N,sortIndex:-1},ae>ne?(B.sortIndex=ae,t(d,B),n(u)===null&&B===n(d)&&(T?(D(F),F=-1):T=!0,Y(I,ae-ne))):(B.sortIndex=N,t(u,B),v||y||(v=!0,O||(O=!0,$()))),B},e.unstable_shouldYield=S,e.unstable_wrapCallback=function(B){var K=g;return function(){var ae=g;g=K;try{return B.apply(this,arguments)}finally{g=ae}}}}(F1)),F1}var tw;function SF(){return tw||(tw=1,M1.exports=TF()),M1.exports}var B1={exports:{}},Gr={};/**
|
|
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 nw;function CF(){if(nw)return Gr;nw=1;var e=BT();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 l(u,d){if(u==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return Gr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Gr.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)},Gr.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()}},Gr.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))},Gr.prefetchDNS=function(u){typeof u=="string"&&r.d.D(u)},Gr.preinit=function(u,d){if(typeof u=="string"&&d&&typeof d.as=="string"){var p=d.as,h=l(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})}},Gr.preinitModule=function(u,d){if(typeof u=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var p=l(d.as,d.crossOrigin);r.d.M(u,{crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(u)},Gr.preload=function(u,d){if(typeof u=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var p=d.as,h=l(p,d.crossOrigin);r.d.L(u,p,{crossOrigin:h,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},Gr.preloadModule=function(u,d){if(typeof u=="string")if(d){var p=l(d.as,d.crossOrigin);r.d.m(u,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(u)},Gr.requestFormReset=function(u){r.d.r(u)},Gr.unstable_batchedUpdates=function(u,d){return u(d)},Gr.useFormState=function(u,d,p){return s.H.useFormState(u,d,p)},Gr.useFormStatus=function(){return s.H.useHostTransitionStatus()},Gr.version="19.1.1",Gr}var rw;function UN(){if(rw)return B1.exports;rw=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(),B1.exports=CF(),B1.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 ow;function _F(){if(ow)return Tf;ow=1;var e=SF(),t=BT(),n=UN();function r(i){var c="https://react.dev/errors/"+i;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)c+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+i+"; visit "+c+" 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 c=i,f=i;if(i.alternate)for(;c.return;)c=c.return;else{i=c;do c=i,(c.flags&4098)!==0&&(f=c.return),i=c.return;while(i)}return c.tag===3?f:null}function s(i){if(i.tag===13){var c=i.memoizedState;if(c===null&&(i=i.alternate,i!==null&&(c=i.memoizedState)),c!==null)return c.dehydrated}return null}function l(i){if(a(i)!==i)throw Error(r(188))}function u(i){var c=i.alternate;if(!c){if(c=a(i),c===null)throw Error(r(188));return c!==i?null:i}for(var f=i,m=c;;){var E=f.return;if(E===null)break;var A=E.alternate;if(A===null){if(m=E.return,m!==null){f=m;continue}break}if(E.child===A.child){for(A=E.child;A;){if(A===f)return l(E),i;if(A===m)return l(E),c;A=A.sibling}throw Error(r(188))}if(f.return!==m.return)f=E,m=A;else{for(var L=!1,j=E.child;j;){if(j===f){L=!0,f=E,m=A;break}if(j===m){L=!0,m=E,f=A;break}j=j.sibling}if(!L){for(j=A.child;j;){if(j===f){L=!0,f=A,m=E;break}if(j===m){L=!0,m=A,f=E;break}j=j.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:c}function d(i){var c=i.tag;if(c===5||c===26||c===27||c===6)return i;for(i=i.child;i!==null;){if(c=d(i),c!==null)return c;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"),v=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),D=Symbol.for("react.consumer"),C=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"),H=Symbol.for("react.lazy"),U=Symbol.for("react.activity"),S=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 v:return"Fragment";case _:return"Profiler";case T:return"StrictMode";case I:return"Suspense";case O:return"SuspenseList";case U:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case y:return"Portal";case C:return(i.displayName||"Context")+".Provider";case D:return(i._context.displayName||"Context")+".Consumer";case R:var c=i.render;return i=i.displayName,i||(i=c.displayName||c.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case F:return c=i.displayName||null,c!==null?c:q(i.type)||"Memo";case H:c=i._payload,i=i._init;try{return q(i(c))}catch{}}return null}var Y=Array.isArray,B=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},ne=[],N=-1;function Q(i){return{current:i}}function X(i){0>N||(i.current=ne[N],ne[N]=null,N--)}function P(i,c){N++,ne[N]=i.current,i.current=c}var re=Q(null),ce=Q(null),oe=Q(null),ve=Q(null);function be(i,c){switch(P(oe,c),P(ce,i),P(re,null),c.nodeType){case 9:case 11:i=(i=c.documentElement)&&(i=i.namespaceURI)?Ck(i):0;break;default:if(i=c.tagName,c=c.namespaceURI)c=Ck(c),i=_k(c,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}X(re),P(re,i)}function qe(){X(re),X(ce),X(oe)}function Me(i){i.memoizedState!==null&&P(ve,i);var c=re.current,f=_k(c,i.type);c!==f&&(P(ce,i),P(re,f))}function Oe(i){ce.current===i&&(X(re),X(ce)),ve.current===i&&(X(ve),gf._currentValue=ae)}var Ke=Object.prototype.hasOwnProperty,at=e.unstable_scheduleCallback,Re=e.unstable_cancelCallback,yt=e.unstable_shouldYield,_t=e.unstable_requestPaint,He=e.unstable_now,mt=e.unstable_getCurrentPriorityLevel,ct=e.unstable_ImmediatePriority,ft=e.unstable_UserBlockingPriority,ze=e.unstable_NormalPriority,Le=e.unstable_LowPriority,Xt=e.unstable_IdlePriority,Bt=e.log,At=e.unstable_setDisableYieldValue,de=null,ye=null;function $e(i){if(typeof Bt=="function"&&At(i),ye&&typeof ye.setStrictMode=="function")try{ye.setStrictMode(de,i)}catch{}}var Xe=Math.clz32?Math.clz32:Zt,Et=Math.log,Ze=Math.LN2;function Zt(i){return i>>>=0,i===0?32:31-(Et(i)/Ze|0)|0}var Vt=256,tn=4194304;function he(i){var c=i&42;if(c!==0)return c;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 xe(i,c,f){var m=i.pendingLanes;if(m===0)return 0;var E=0,A=i.suspendedLanes,L=i.pingedLanes;i=i.warmLanes;var j=m&134217727;return j!==0?(m=j&~A,m!==0?E=he(m):(L&=j,L!==0?E=he(L):f||(f=j&~i,f!==0&&(E=he(f))))):(j=m&~A,j!==0?E=he(j):L!==0?E=he(L):f||(f=m&~i,f!==0&&(E=he(f)))),E===0?0:c!==0&&c!==E&&(c&A)===0&&(A=E&-E,f=c&-c,A>=f||A===32&&(f&4194048)!==0)?c:E}function tt(i,c){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&c)===0}function nt(i,c){switch(i){case 1:case 2:case 4:case 8:case 64:return c+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return c+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function rn(){var i=Vt;return Vt<<=1,(Vt&4194048)===0&&(Vt=256),i}function Pr(){var i=tn;return tn<<=1,(tn&62914560)===0&&(tn=4194304),i}function Er(i){for(var c=[],f=0;31>f;f++)c.push(i);return c}function qn(i,c){i.pendingLanes|=c,c!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function ur(i,c,f,m,E,A){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 j=i.entanglements,J=i.expirationTimes,pe=i.hiddenUpdates;for(f=L&~f;0<f;){var ke=31-Xe(f),Ie=1<<ke;j[ke]=0,J[ke]=-1;var me=pe[ke];if(me!==null)for(pe[ke]=null,ke=0;ke<me.length;ke++){var ge=me[ke];ge!==null&&(ge.lane&=-536870913)}f&=~Ie}m!==0&&uo(i,m,0),A!==0&&E===0&&i.tag!==0&&(i.suspendedLanes|=A&~(L&~c))}function uo(i,c,f){i.pendingLanes|=c,i.suspendedLanes&=~c;var m=31-Xe(c);i.entangledLanes|=c,i.entanglements[m]=i.entanglements[m]|1073741824|f&4194090}function En(i,c){var f=i.entangledLanes|=c;for(i=i.entanglements;f;){var m=31-Xe(f),E=1<<m;E&c|i[m]&c&&(i[m]|=c),f&=~E}}function Lr(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 bt(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function te(){var i=K.p;return i!==0?i:(i=window.event,i===void 0?32:Vk(i.type))}function ee(i,c){var f=K.p;try{return K.p=i,c()}finally{K.p=f}}var ie=Math.random().toString(36).slice(2),Ee="__reactFiber$"+ie,Ae="__reactProps$"+ie,Qe="__reactContainer$"+ie,Je="__reactEvents$"+ie,et="__reactListeners$"+ie,it="__reactHandles$"+ie,gt="__reactResources$"+ie,rt="__reactMarker$"+ie;function pt(i){delete i[Ee],delete i[Ae],delete i[Je],delete i[et],delete i[it]}function jt(i){var c=i[Ee];if(c)return c;for(var f=i.parentNode;f;){if(c=f[Qe]||f[Ee]){if(f=c.alternate,c.child!==null||f!==null&&f.child!==null)for(i=Dk(i);i!==null;){if(f=i[Ee])return f;i=Dk(i)}return c}i=f,f=i.parentNode}return null}function un(i){if(i=i[Ee]||i[Qe]){var c=i.tag;if(c===5||c===6||c===13||c===26||c===27||c===3)return i}return null}function Wn(i){var c=i.tag;if(c===5||c===26||c===27||c===6)return i.stateNode;throw Error(r(33))}function Yn(i){var c=i[gt];return c||(c=i[gt]={hoistableStyles:new Map,hoistableScripts:new Map}),c}function Lt(i){i[rt]=!0}var pn=new Set,Va={};function Do(i,c){to(i,c),to(i+"Capture",c)}function to(i,c){for(Va[i]=c,i=0;i<c.length;i++)pn.add(c[i])}var Qo=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]*$"),Cc={},cs={};function _i(i){return Ke.call(cs,i)?!0:Ke.call(Cc,i)?!1:Qo.test(i)?cs[i]=!0:(Cc[i]=!0,!1)}function Ai(i,c,f){if(_i(c))if(f===null)i.removeAttribute(c);else{switch(typeof f){case"undefined":case"function":case"symbol":i.removeAttribute(c);return;case"boolean":var m=c.toLowerCase().slice(0,5);if(m!=="data-"&&m!=="aria-"){i.removeAttribute(c);return}}i.setAttribute(c,""+f)}}function ki(i,c,f){if(f===null)i.removeAttribute(c);else{switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(c);return}i.setAttribute(c,""+f)}}function Ht(i,c,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(c,f,""+m)}}var dr,ul;function Ko(i){if(dr===void 0)try{throw Error()}catch(f){var c=f.stack.trim().match(/\n( *(at )?)/);dr=c&&c[1]||"",ul=-1<f.stack.indexOf(`
|
|
43
|
+
at`)?" (<anonymous>)":-1<f.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
+
`+dr+i+ul}var $n=!1;function us(i,c){if(!i||$n)return"";$n=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var m={DetermineComponentFrameRoot:function(){try{if(c){var Ie=function(){throw Error()};if(Object.defineProperty(Ie.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ie,[])}catch(ge){var me=ge}Reflect.construct(i,[],Ie)}else{try{Ie.call()}catch(ge){me=ge}i.call(Ie.prototype)}}else{try{throw Error()}catch(ge){me=ge}(Ie=i())&&typeof Ie.catch=="function"&&Ie.catch(function(){})}}catch(ge){if(ge&&me&&typeof ge.stack=="string")return[ge.stack,me.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 A=m.DetermineComponentFrameRoot(),L=A[0],j=A[1];if(L&&j){var J=L.split(`
|
|
45
|
+
`),pe=j.split(`
|
|
46
|
+
`);for(E=m=0;m<J.length&&!J[m].includes("DetermineComponentFrameRoot");)m++;for(;E<pe.length&&!pe[E].includes("DetermineComponentFrameRoot");)E++;if(m===J.length||E===pe.length)for(m=J.length-1,E=pe.length-1;1<=m&&0<=E&&J[m]!==pe[E];)E--;for(;1<=m&&0<=E;m--,E--)if(J[m]!==pe[E]){if(m!==1||E!==1)do if(m--,E--,0>E||J[m]!==pe[E]){var ke=`
|
|
47
|
+
`+J[m].replace(" at new "," at ");return i.displayName&&ke.includes("<anonymous>")&&(ke=ke.replace("<anonymous>",i.displayName)),ke}while(1<=m&&0<=E);break}}}finally{$n=!1,Error.prepareStackTrace=f}return(f=i?i.displayName||i.name:"")?Ko(f):""}function Qh(i){switch(i.tag){case 26:case 27:case 5:return Ko(i.type);case 16:return Ko("Lazy");case 13:return Ko("Suspense");case 19:return Ko("SuspenseList");case 0:case 15:return us(i.type,!1);case 11:return us(i.type.render,!1);case 1:return us(i.type,!0);case 31:return Ko("Activity");default:return""}}function Kh(i){try{var c="";do c+=Qh(i),i=i.return;while(i);return c}catch(f){return`
|
|
48
|
+
Error generating stack: `+f.message+`
|
|
49
|
+
`+f.stack}}function Xo(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function v_(i){var c=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function p8(i){var c=v_(i)?"checked":"value",f=Object.getOwnPropertyDescriptor(i.constructor.prototype,c),m=""+i[c];if(!i.hasOwnProperty(c)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var E=f.get,A=f.set;return Object.defineProperty(i,c,{configurable:!0,get:function(){return E.call(this)},set:function(L){m=""+L,A.call(this,L)}}),Object.defineProperty(i,c,{enumerable:f.enumerable}),{getValue:function(){return m},setValue:function(L){m=""+L},stopTracking:function(){i._valueTracker=null,delete i[c]}}}}function Xh(i){i._valueTracker||(i._valueTracker=p8(i))}function E_(i){if(!i)return!1;var c=i._valueTracker;if(!c)return!0;var f=c.getValue(),m="";return i&&(m=v_(i)?i.checked?"true":"false":i.value),i=m,i!==f?(c.setValue(i),!0):!1}function Zh(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 h8=/[\n"\\]/g;function Zo(i){return i.replace(h8,function(c){return"\\"+c.charCodeAt(0).toString(16)+" "})}function Rb(i,c,f,m,E,A,L,j){i.name="",L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"?i.type=L:i.removeAttribute("type"),c!=null?L==="number"?(c===0&&i.value===""||i.value!=c)&&(i.value=""+Xo(c)):i.value!==""+Xo(c)&&(i.value=""+Xo(c)):L!=="submit"&&L!=="reset"||i.removeAttribute("value"),c!=null?Ib(i,L,Xo(c)):f!=null?Ib(i,L,Xo(f)):m!=null&&i.removeAttribute("value"),E==null&&A!=null&&(i.defaultChecked=!!A),E!=null&&(i.checked=E&&typeof E!="function"&&typeof E!="symbol"),j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"?i.name=""+Xo(j):i.removeAttribute("name")}function x_(i,c,f,m,E,A,L,j){if(A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"&&(i.type=A),c!=null||f!=null){if(!(A!=="submit"&&A!=="reset"||c!=null))return;f=f!=null?""+Xo(f):"",c=c!=null?""+Xo(c):f,j||c===i.value||(i.value=c),i.defaultValue=c}m=m??E,m=typeof m!="function"&&typeof m!="symbol"&&!!m,i.checked=j?i.checked:!!m,i.defaultChecked=!!m,L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"&&(i.name=L)}function Ib(i,c,f){c==="number"&&Zh(i.ownerDocument)===i||i.defaultValue===""+f||(i.defaultValue=""+f)}function _c(i,c,f,m){if(i=i.options,c){c={};for(var E=0;E<f.length;E++)c["$"+f[E]]=!0;for(f=0;f<i.length;f++)E=c.hasOwnProperty("$"+i[f].value),i[f].selected!==E&&(i[f].selected=E),E&&m&&(i[f].defaultSelected=!0)}else{for(f=""+Xo(f),c=null,E=0;E<i.length;E++){if(i[E].value===f){i[E].selected=!0,m&&(i[E].defaultSelected=!0);return}c!==null||i[E].disabled||(c=i[E])}c!==null&&(c.selected=!0)}}function T_(i,c,f){if(c!=null&&(c=""+Xo(c),c!==i.value&&(i.value=c),f==null)){i.defaultValue!==c&&(i.defaultValue=c);return}i.defaultValue=f!=null?""+Xo(f):""}function S_(i,c,f,m){if(c==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=""),c=f}f=Xo(c),i.defaultValue=f,m=i.textContent,m===f&&m!==""&&m!==null&&(i.value=m)}function Ac(i,c){if(c){var f=i.firstChild;if(f&&f===i.lastChild&&f.nodeType===3){f.nodeValue=c;return}}i.textContent=c}var m8=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 C_(i,c,f){var m=c.indexOf("--")===0;f==null||typeof f=="boolean"||f===""?m?i.setProperty(c,""):c==="float"?i.cssFloat="":i[c]="":m?i.setProperty(c,f):typeof f!="number"||f===0||m8.has(c)?c==="float"?i.cssFloat=f:i[c]=(""+f).trim():i[c]=f+"px"}function __(i,c,f){if(c!=null&&typeof c!="object")throw Error(r(62));if(i=i.style,f!=null){for(var m in f)!f.hasOwnProperty(m)||c!=null&&c.hasOwnProperty(m)||(m.indexOf("--")===0?i.setProperty(m,""):m==="float"?i.cssFloat="":i[m]="");for(var E in c)m=c[E],c.hasOwnProperty(E)&&f[E]!==m&&C_(i,E,m)}else for(var A in c)c.hasOwnProperty(A)&&C_(i,A,c[A])}function Ob(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 g8=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"]]),y8=/^[\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 Jh(i){return y8.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}var Nb=null;function Pb(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var kc=null,wc=null;function A_(i){var c=un(i);if(c&&(i=c.stateNode)){var f=i[Ae]||null;e:switch(i=c.stateNode,c.type){case"input":if(Rb(i,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name),c=f.name,f.type==="radio"&&c!=null){for(f=i;f.parentNode;)f=f.parentNode;for(f=f.querySelectorAll('input[name="'+Zo(""+c)+'"][type="radio"]'),c=0;c<f.length;c++){var m=f[c];if(m!==i&&m.form===i.form){var E=m[Ae]||null;if(!E)throw Error(r(90));Rb(m,E.value,E.defaultValue,E.defaultValue,E.checked,E.defaultChecked,E.type,E.name)}}for(c=0;c<f.length;c++)m=f[c],m.form===i.form&&E_(m)}break e;case"textarea":T_(i,f.value,f.defaultValue);break e;case"select":c=f.value,c!=null&&_c(i,!!f.multiple,c,!1)}}}var Lb=!1;function k_(i,c,f){if(Lb)return i(c,f);Lb=!0;try{var m=i(c);return m}finally{if(Lb=!1,(kc!==null||wc!==null)&&(Bm(),kc&&(c=kc,i=wc,wc=kc=null,A_(c),i)))for(c=0;c<i.length;c++)A_(i[c])}}function wd(i,c){var f=i.stateNode;if(f===null)return null;var m=f[Ae]||null;if(m===null)return null;f=m[c];e:switch(c){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(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,c,typeof f));return f}var wi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Mb=!1;if(wi)try{var Dd={};Object.defineProperty(Dd,"passive",{get:function(){Mb=!0}}),window.addEventListener("test",Dd,Dd),window.removeEventListener("test",Dd,Dd)}catch{Mb=!1}var ds=null,Fb=null,em=null;function w_(){if(em)return em;var i,c=Fb,f=c.length,m,E="value"in ds?ds.value:ds.textContent,A=E.length;for(i=0;i<f&&c[i]===E[i];i++);var L=f-i;for(m=1;m<=L&&c[f-m]===E[A-m];m++);return em=E.slice(i,1<m?1-m:void 0)}function tm(i){var c=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&c===13&&(i=13)):i=c,i===10&&(i=13),32<=i||i===13?i:0}function nm(){return!0}function D_(){return!1}function fo(i){function c(f,m,E,A,L){this._reactName=f,this._targetInst=E,this.type=m,this.nativeEvent=A,this.target=L,this.currentTarget=null;for(var j in i)i.hasOwnProperty(j)&&(f=i[j],this[j]=f?f(A):A[j]);return this.isDefaultPrevented=(A.defaultPrevented!=null?A.defaultPrevented:A.returnValue===!1)?nm:D_,this.isPropagationStopped=D_,this}return p(c.prototype,{preventDefault:function(){this.defaultPrevented=!0;var f=this.nativeEvent;f&&(f.preventDefault?f.preventDefault():typeof f.returnValue!="unknown"&&(f.returnValue=!1),this.isDefaultPrevented=nm)},stopPropagation:function(){var f=this.nativeEvent;f&&(f.stopPropagation?f.stopPropagation():typeof f.cancelBubble!="unknown"&&(f.cancelBubble=!0),this.isPropagationStopped=nm)},persist:function(){},isPersistent:nm}),c}var dl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},rm=fo(dl),Rd=p({},dl,{view:0,detail:0}),b8=fo(Rd),Bb,jb,Id,om=p({},Rd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Hb,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"?(Bb=i.screenX-Id.screenX,jb=i.screenY-Id.screenY):jb=Bb=0,Id=i),Bb)},movementY:function(i){return"movementY"in i?i.movementY:jb}}),R_=fo(om),v8=p({},om,{dataTransfer:0}),E8=fo(v8),x8=p({},Rd,{relatedTarget:0}),Ub=fo(x8),T8=p({},dl,{animationName:0,elapsedTime:0,pseudoElement:0}),S8=fo(T8),C8=p({},dl,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),_8=fo(C8),A8=p({},dl,{data:0}),I_=fo(A8),k8={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},w8={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"},D8={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function R8(i){var c=this.nativeEvent;return c.getModifierState?c.getModifierState(i):(i=D8[i])?!!c[i]:!1}function Hb(){return R8}var I8=p({},Rd,{key:function(i){if(i.key){var c=k8[i.key]||i.key;if(c!=="Unidentified")return c}return i.type==="keypress"?(i=tm(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?w8[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Hb,charCode:function(i){return i.type==="keypress"?tm(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?tm(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),O8=fo(I8),N8=p({},om,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),O_=fo(N8),P8=p({},Rd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hb}),L8=fo(P8),M8=p({},dl,{propertyName:0,elapsedTime:0,pseudoElement:0}),F8=fo(M8),B8=p({},om,{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}),j8=fo(B8),U8=p({},dl,{newState:0,oldState:0}),H8=fo(U8),z8=[9,13,27,32],zb=wi&&"CompositionEvent"in window,Od=null;wi&&"documentMode"in document&&(Od=document.documentMode);var $8=wi&&"TextEvent"in window&&!Od,N_=wi&&(!zb||Od&&8<Od&&11>=Od),P_=" ",L_=!1;function M_(i,c){switch(i){case"keyup":return z8.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function F_(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Dc=!1;function V8(i,c){switch(i){case"compositionend":return F_(c);case"keypress":return c.which!==32?null:(L_=!0,P_);case"textInput":return i=c.data,i===P_&&L_?null:i;default:return null}}function G8(i,c){if(Dc)return i==="compositionend"||!zb&&M_(i,c)?(i=w_(),em=Fb=ds=null,Dc=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1<c.char.length)return c.char;if(c.which)return String.fromCharCode(c.which)}return null;case"compositionend":return N_&&c.locale!=="ko"?null:c.data;default:return null}}var q8={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 B_(i){var c=i&&i.nodeName&&i.nodeName.toLowerCase();return c==="input"?!!q8[i.type]:c==="textarea"}function j_(i,c,f,m){kc?wc?wc.push(m):wc=[m]:kc=m,c=Vm(c,"onChange"),0<c.length&&(f=new rm("onChange","change",null,f,m),i.push({event:f,listeners:c}))}var Nd=null,Pd=null;function W8(i){vk(i,0)}function am(i){var c=Wn(i);if(E_(c))return i}function U_(i,c){if(i==="change")return c}var H_=!1;if(wi){var $b;if(wi){var Vb="oninput"in document;if(!Vb){var z_=document.createElement("div");z_.setAttribute("oninput","return;"),Vb=typeof z_.oninput=="function"}$b=Vb}else $b=!1;H_=$b&&(!document.documentMode||9<document.documentMode)}function $_(){Nd&&(Nd.detachEvent("onpropertychange",V_),Pd=Nd=null)}function V_(i){if(i.propertyName==="value"&&am(Pd)){var c=[];j_(c,Pd,i,Pb(i)),k_(W8,c)}}function Y8(i,c,f){i==="focusin"?($_(),Nd=c,Pd=f,Nd.attachEvent("onpropertychange",V_)):i==="focusout"&&$_()}function Q8(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return am(Pd)}function K8(i,c){if(i==="click")return am(c)}function X8(i,c){if(i==="input"||i==="change")return am(c)}function Z8(i,c){return i===c&&(i!==0||1/i===1/c)||i!==i&&c!==c}var Ro=typeof Object.is=="function"?Object.is:Z8;function Ld(i,c){if(Ro(i,c))return!0;if(typeof i!="object"||i===null||typeof c!="object"||c===null)return!1;var f=Object.keys(i),m=Object.keys(c);if(f.length!==m.length)return!1;for(m=0;m<f.length;m++){var E=f[m];if(!Ke.call(c,E)||!Ro(i[E],c[E]))return!1}return!0}function G_(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function q_(i,c){var f=G_(i);i=0;for(var m;f;){if(f.nodeType===3){if(m=i+f.textContent.length,i<=c&&m>=c)return{node:f,offset:c-i};i=m}e:{for(;f;){if(f.nextSibling){f=f.nextSibling;break e}f=f.parentNode}f=void 0}f=G_(f)}}function W_(i,c){return i&&c?i===c?!0:i&&i.nodeType===3?!1:c&&c.nodeType===3?W_(i,c.parentNode):"contains"in i?i.contains(c):i.compareDocumentPosition?!!(i.compareDocumentPosition(c)&16):!1:!1}function Y_(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var c=Zh(i.document);c instanceof i.HTMLIFrameElement;){try{var f=typeof c.contentWindow.location.href=="string"}catch{f=!1}if(f)i=c.contentWindow;else break;c=Zh(i.document)}return c}function Gb(i){var c=i&&i.nodeName&&i.nodeName.toLowerCase();return c&&(c==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||c==="textarea"||i.contentEditable==="true")}var J8=wi&&"documentMode"in document&&11>=document.documentMode,Rc=null,qb=null,Md=null,Wb=!1;function Q_(i,c,f){var m=f.window===f?f.document:f.nodeType===9?f:f.ownerDocument;Wb||Rc==null||Rc!==Zh(m)||(m=Rc,"selectionStart"in m&&Gb(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=Vm(qb,"onSelect"),0<m.length&&(c=new rm("onSelect","select",null,c,f),i.push({event:c,listeners:m}),c.target=Rc)))}function fl(i,c){var f={};return f[i.toLowerCase()]=c.toLowerCase(),f["Webkit"+i]="webkit"+c,f["Moz"+i]="moz"+c,f}var Ic={animationend:fl("Animation","AnimationEnd"),animationiteration:fl("Animation","AnimationIteration"),animationstart:fl("Animation","AnimationStart"),transitionrun:fl("Transition","TransitionRun"),transitionstart:fl("Transition","TransitionStart"),transitioncancel:fl("Transition","TransitionCancel"),transitionend:fl("Transition","TransitionEnd")},Yb={},K_={};wi&&(K_=document.createElement("div").style,"AnimationEvent"in window||(delete Ic.animationend.animation,delete Ic.animationiteration.animation,delete Ic.animationstart.animation),"TransitionEvent"in window||delete Ic.transitionend.transition);function pl(i){if(Yb[i])return Yb[i];if(!Ic[i])return i;var c=Ic[i],f;for(f in c)if(c.hasOwnProperty(f)&&f in K_)return Yb[i]=c[f];return i}var X_=pl("animationend"),Z_=pl("animationiteration"),J_=pl("animationstart"),e7=pl("transitionrun"),t7=pl("transitionstart"),n7=pl("transitioncancel"),eA=pl("transitionend"),tA=new Map,Qb="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(" ");Qb.push("scrollEnd");function wa(i,c){tA.set(i,c),Do(c,[i])}var nA=new WeakMap;function Jo(i,c){if(typeof i=="object"&&i!==null){var f=nA.get(i);return f!==void 0?f:(c={value:i,source:c,stack:Kh(c)},nA.set(i,c),c)}return{value:i,source:c,stack:Kh(c)}}var ea=[],Oc=0,Kb=0;function im(){for(var i=Oc,c=Kb=Oc=0;c<i;){var f=ea[c];ea[c++]=null;var m=ea[c];ea[c++]=null;var E=ea[c];ea[c++]=null;var A=ea[c];if(ea[c++]=null,m!==null&&E!==null){var L=m.pending;L===null?E.next=E:(E.next=L.next,L.next=E),m.pending=E}A!==0&&rA(f,E,A)}}function sm(i,c,f,m){ea[Oc++]=i,ea[Oc++]=c,ea[Oc++]=f,ea[Oc++]=m,Kb|=m,i.lanes|=m,i=i.alternate,i!==null&&(i.lanes|=m)}function Xb(i,c,f,m){return sm(i,c,f,m),lm(i)}function Nc(i,c){return sm(i,null,null,c),lm(i)}function rA(i,c,f){i.lanes|=f;var m=i.alternate;m!==null&&(m.lanes|=f);for(var E=!1,A=i.return;A!==null;)A.childLanes|=f,m=A.alternate,m!==null&&(m.childLanes|=f),A.tag===22&&(i=A.stateNode,i===null||i._visibility&1||(E=!0)),i=A,A=A.return;return i.tag===3?(A=i.stateNode,E&&c!==null&&(E=31-Xe(f),i=A.hiddenUpdates,m=i[E],m===null?i[E]=[c]:m.push(c),c.lane=f|536870912),A):null}function lm(i){if(50<lf)throw lf=0,r1=null,Error(r(185));for(var c=i.return;c!==null;)i=c,c=i.return;return i.tag===3?i.stateNode:null}var Pc={};function r7(i,c,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=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Io(i,c,f,m){return new r7(i,c,f,m)}function Zb(i){return i=i.prototype,!(!i||!i.isReactComponent)}function Di(i,c){var f=i.alternate;return f===null?(f=Io(i.tag,c,i.key,i.mode),f.elementType=i.elementType,f.type=i.type,f.stateNode=i.stateNode,f.alternate=i,i.alternate=f):(f.pendingProps=c,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,c=i.dependencies,f.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},f.sibling=i.sibling,f.index=i.index,f.ref=i.ref,f.refCleanup=i.refCleanup,f}function oA(i,c){i.flags&=65011714;var f=i.alternate;return f===null?(i.childLanes=0,i.lanes=c,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,c=f.dependencies,i.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext}),i}function cm(i,c,f,m,E,A){var L=0;if(m=i,typeof i=="function")Zb(i)&&(L=1);else if(typeof i=="string")L=aF(i,f,re.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case U:return i=Io(31,f,c,E),i.elementType=U,i.lanes=A,i;case v:return hl(f.children,E,A,c);case T:L=8,E|=24;break;case _:return i=Io(12,f,c,E|2),i.elementType=_,i.lanes=A,i;case I:return i=Io(13,f,c,E),i.elementType=I,i.lanes=A,i;case O:return i=Io(19,f,c,E),i.elementType=O,i.lanes=A,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case x:case C:L=10;break e;case D:L=9;break e;case R:L=11;break e;case F:L=14;break e;case H:L=16,m=null;break e}L=29,f=Error(r(130,i===null?"null":typeof i,"")),m=null}return c=Io(L,f,c,E),c.elementType=i,c.type=m,c.lanes=A,c}function hl(i,c,f,m){return i=Io(7,i,m,c),i.lanes=f,i}function Jb(i,c,f){return i=Io(6,i,null,c),i.lanes=f,i}function ev(i,c,f){return c=Io(4,i.children!==null?i.children:[],i.key,c),c.lanes=f,c.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},c}var Lc=[],Mc=0,um=null,dm=0,ta=[],na=0,ml=null,Ri=1,Ii="";function gl(i,c){Lc[Mc++]=dm,Lc[Mc++]=um,um=i,dm=c}function aA(i,c,f){ta[na++]=Ri,ta[na++]=Ii,ta[na++]=ml,ml=i;var m=Ri;i=Ii;var E=32-Xe(m)-1;m&=~(1<<E),f+=1;var A=32-Xe(c)+E;if(30<A){var L=E-E%5;A=(m&(1<<L)-1).toString(32),m>>=L,E-=L,Ri=1<<32-Xe(c)+E|f<<E|m,Ii=A+i}else Ri=1<<A|f<<E|m,Ii=i}function tv(i){i.return!==null&&(gl(i,1),aA(i,1,0))}function nv(i){for(;i===um;)um=Lc[--Mc],Lc[Mc]=null,dm=Lc[--Mc],Lc[Mc]=null;for(;i===ml;)ml=ta[--na],ta[na]=null,Ii=ta[--na],ta[na]=null,Ri=ta[--na],ta[na]=null}var no=null,Qn=null,on=!1,yl=null,Ga=!1,rv=Error(r(519));function bl(i){var c=Error(r(418,""));throw jd(Jo(c,i)),rv}function iA(i){var c=i.stateNode,f=i.type,m=i.memoizedProps;switch(c[Ee]=i,c[Ae]=m,f){case"dialog":qt("cancel",c),qt("close",c);break;case"iframe":case"object":case"embed":qt("load",c);break;case"video":case"audio":for(f=0;f<uf.length;f++)qt(uf[f],c);break;case"source":qt("error",c);break;case"img":case"image":case"link":qt("error",c),qt("load",c);break;case"details":qt("toggle",c);break;case"input":qt("invalid",c),x_(c,m.value,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name,!0),Xh(c);break;case"select":qt("invalid",c);break;case"textarea":qt("invalid",c),S_(c,m.value,m.defaultValue,m.children),Xh(c)}f=m.children,typeof f!="string"&&typeof f!="number"&&typeof f!="bigint"||c.textContent===""+f||m.suppressHydrationWarning===!0||Sk(c.textContent,f)?(m.popover!=null&&(qt("beforetoggle",c),qt("toggle",c)),m.onScroll!=null&&qt("scroll",c),m.onScrollEnd!=null&&qt("scrollend",c),m.onClick!=null&&(c.onclick=Gm),c=!0):c=!1,c||bl(i)}function sA(i){for(no=i.return;no;)switch(no.tag){case 5:case 13:Ga=!1;return;case 27:case 3:Ga=!0;return;default:no=no.return}}function Fd(i){if(i!==no)return!1;if(!on)return sA(i),on=!0,!1;var c=i.tag,f;if((f=c!==3&&c!==27)&&((f=c===5)&&(f=i.type,f=!(f!=="form"&&f!=="button")||v1(i.type,i.memoizedProps)),f=!f),f&&Qn&&bl(i),sA(i),c===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));e:{for(i=i.nextSibling,c=0;i;){if(i.nodeType===8)if(f=i.data,f==="/$"){if(c===0){Qn=Ra(i.nextSibling);break e}c--}else f!=="$"&&f!=="$!"&&f!=="$?"||c++;i=i.nextSibling}Qn=null}}else c===27?(c=Qn,ks(i.type)?(i=S1,S1=null,Qn=i):Qn=c):Qn=no?Ra(i.stateNode.nextSibling):null;return!0}function Bd(){Qn=no=null,on=!1}function lA(){var i=yl;return i!==null&&(mo===null?mo=i:mo.push.apply(mo,i),yl=null),i}function jd(i){yl===null?yl=[i]:yl.push(i)}var ov=Q(null),vl=null,Oi=null;function fs(i,c,f){P(ov,c._currentValue),c._currentValue=f}function Ni(i){i._currentValue=ov.current,X(ov)}function av(i,c,f){for(;i!==null;){var m=i.alternate;if((i.childLanes&c)!==c?(i.childLanes|=c,m!==null&&(m.childLanes|=c)):m!==null&&(m.childLanes&c)!==c&&(m.childLanes|=c),i===f)break;i=i.return}}function iv(i,c,f,m){var E=i.child;for(E!==null&&(E.return=i);E!==null;){var A=E.dependencies;if(A!==null){var L=E.child;A=A.firstContext;e:for(;A!==null;){var j=A;A=E;for(var J=0;J<c.length;J++)if(j.context===c[J]){A.lanes|=f,j=A.alternate,j!==null&&(j.lanes|=f),av(A.return,f,i),m||(L=null);break e}A=j.next}}else if(E.tag===18){if(L=E.return,L===null)throw Error(r(341));L.lanes|=f,A=L.alternate,A!==null&&(A.lanes|=f),av(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,c,f,m){i=null;for(var E=c,A=!1;E!==null;){if(!A){if((E.flags&524288)!==0)A=!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 j=E.type;Ro(E.pendingProps.value,L.value)||(i!==null?i.push(j):i=[j])}}else if(E===ve.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&&iv(c,i,f,m),c.flags|=262144}function fm(i){for(i=i.firstContext;i!==null;){if(!Ro(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function El(i){vl=i,Oi=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function Vr(i){return cA(vl,i)}function pm(i,c){return vl===null&&El(i),cA(i,c)}function cA(i,c){var f=c._currentValue;if(c={context:c,memoizedValue:f,next:null},Oi===null){if(i===null)throw Error(r(308));Oi=c,i.dependencies={lanes:0,firstContext:c},i.flags|=524288}else Oi=Oi.next=c;return f}var o7=typeof AbortController<"u"?AbortController:function(){var i=[],c=this.signal={aborted:!1,addEventListener:function(f,m){i.push(m)}};this.abort=function(){c.aborted=!0,i.forEach(function(f){return f()})}},a7=e.unstable_scheduleCallback,i7=e.unstable_NormalPriority,xr={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function sv(){return{controller:new o7,data:new Map,refCount:0}}function Hd(i){i.refCount--,i.refCount===0&&a7(i7,function(){i.controller.abort()})}var zd=null,lv=0,Fc=0,Bc=null;function s7(i,c){if(zd===null){var f=zd=[];lv=0,Fc=u1(),Bc={status:"pending",value:void 0,then:function(m){f.push(m)}}}return lv++,c.then(uA,uA),c}function uA(){if(--lv===0&&zd!==null){Bc!==null&&(Bc.status="fulfilled");var i=zd;zd=null,Fc=0,Bc=null;for(var c=0;c<i.length;c++)(0,i[c])()}}function l7(i,c){var f=[],m={status:"pending",value:null,reason:null,then:function(E){f.push(E)}};return i.then(function(){m.status="fulfilled",m.value=c;for(var E=0;E<f.length;E++)(0,f[E])(c)},function(E){for(m.status="rejected",m.reason=E,E=0;E<f.length;E++)(0,f[E])(void 0)}),m}var dA=B.S;B.S=function(i,c){typeof c=="object"&&c!==null&&typeof c.then=="function"&&s7(i,c),dA!==null&&dA(i,c)};var xl=Q(null);function cv(){var i=xl.current;return i!==null?i:Dn.pooledCache}function hm(i,c){c===null?P(xl,xl.current):P(xl,c.pool)}function fA(){var i=cv();return i===null?null:{parent:xr._currentValue,pool:i}}var $d=Error(r(460)),pA=Error(r(474)),mm=Error(r(542)),uv={then:function(){}};function hA(i){return i=i.status,i==="fulfilled"||i==="rejected"}function gm(){}function mA(i,c,f){switch(f=i[f],f===void 0?i.push(c):f!==c&&(c.then(gm,gm),c=f),c.status){case"fulfilled":return c.value;case"rejected":throw i=c.reason,yA(i),i;default:if(typeof c.status=="string")c.then(gm,gm);else{if(i=Dn,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=c,i.status="pending",i.then(function(m){if(c.status==="pending"){var E=c;E.status="fulfilled",E.value=m}},function(m){if(c.status==="pending"){var E=c;E.status="rejected",E.reason=m}})}switch(c.status){case"fulfilled":return c.value;case"rejected":throw i=c.reason,yA(i),i}throw Vd=c,$d}}var Vd=null;function gA(){if(Vd===null)throw Error(r(459));var i=Vd;return Vd=null,i}function yA(i){if(i===$d||i===mm)throw Error(r(483))}var ps=!1;function dv(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function fv(i,c){i=i.updateQueue,c.updateQueue===i&&(c.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,c,f){var m=i.updateQueue;if(m===null)return null;if(m=m.shared,(dn&2)!==0){var E=m.pending;return E===null?c.next=c:(c.next=E.next,E.next=c),m.pending=c,c=lm(i),rA(i,null,f),c}return sm(i,m,c,f),lm(i)}function Gd(i,c,f){if(c=c.updateQueue,c!==null&&(c=c.shared,(f&4194048)!==0)){var m=c.lanes;m&=i.pendingLanes,f|=m,c.lanes=f,En(i,f)}}function pv(i,c){var f=i.updateQueue,m=i.alternate;if(m!==null&&(m=m.updateQueue,f===m)){var E=null,A=null;if(f=f.firstBaseUpdate,f!==null){do{var L={lane:f.lane,tag:f.tag,payload:f.payload,callback:null,next:null};A===null?E=A=L:A=A.next=L,f=f.next}while(f!==null);A===null?E=A=c:A=A.next=c}else E=A=c;f={baseState:m.baseState,firstBaseUpdate:E,lastBaseUpdate:A,shared:m.shared,callbacks:m.callbacks},i.updateQueue=f;return}i=f.lastBaseUpdate,i===null?f.firstBaseUpdate=c:i.next=c,f.lastBaseUpdate=c}var hv=!1;function qd(){if(hv){var i=Bc;if(i!==null)throw i}}function Wd(i,c,f,m){hv=!1;var E=i.updateQueue;ps=!1;var A=E.firstBaseUpdate,L=E.lastBaseUpdate,j=E.shared.pending;if(j!==null){E.shared.pending=null;var J=j,pe=J.next;J.next=null,L===null?A=pe:L.next=pe,L=J;var ke=i.alternate;ke!==null&&(ke=ke.updateQueue,j=ke.lastBaseUpdate,j!==L&&(j===null?ke.firstBaseUpdate=pe:j.next=pe,ke.lastBaseUpdate=J))}if(A!==null){var Ie=E.baseState;L=0,ke=pe=J=null,j=A;do{var me=j.lane&-536870913,ge=me!==j.lane;if(ge?(Jt&me)===me:(m&me)===me){me!==0&&me===Fc&&(hv=!0),ke!==null&&(ke=ke.next={lane:0,tag:j.tag,payload:j.payload,callback:null,next:null});e:{var kt=i,xt=j;me=c;var gn=f;switch(xt.tag){case 1:if(kt=xt.payload,typeof kt=="function"){Ie=kt.call(gn,Ie,me);break e}Ie=kt;break e;case 3:kt.flags=kt.flags&-65537|128;case 0:if(kt=xt.payload,me=typeof kt=="function"?kt.call(gn,Ie,me):kt,me==null)break e;Ie=p({},Ie,me);break e;case 2:ps=!0}}me=j.callback,me!==null&&(i.flags|=64,ge&&(i.flags|=8192),ge=E.callbacks,ge===null?E.callbacks=[me]:ge.push(me))}else ge={lane:me,tag:j.tag,payload:j.payload,callback:j.callback,next:null},ke===null?(pe=ke=ge,J=Ie):ke=ke.next=ge,L|=me;if(j=j.next,j===null){if(j=E.shared.pending,j===null)break;ge=j,j=ge.next,ge.next=null,E.lastBaseUpdate=ge,E.shared.pending=null}}while(!0);ke===null&&(J=Ie),E.baseState=J,E.firstBaseUpdate=pe,E.lastBaseUpdate=ke,A===null&&(E.shared.lanes=0),Ss|=L,i.lanes=L,i.memoizedState=Ie}}function bA(i,c){if(typeof i!="function")throw Error(r(191,i));i.call(c)}function vA(i,c){var f=i.callbacks;if(f!==null)for(i.callbacks=null,i=0;i<f.length;i++)bA(f[i],c)}var jc=Q(null),ym=Q(0);function EA(i,c){i=Ui,P(ym,i),P(jc,c),Ui=i|c.baseLanes}function mv(){P(ym,Ui),P(jc,jc.current)}function gv(){Ui=ym.current,X(jc),X(ym)}var gs=0,Ut=null,hn=null,fr=null,bm=!1,Uc=!1,Tl=!1,vm=0,Yd=0,Hc=null,c7=0;function or(){throw Error(r(321))}function yv(i,c){if(c===null)return!1;for(var f=0;f<c.length&&f<i.length;f++)if(!Ro(i[f],c[f]))return!1;return!0}function bv(i,c,f,m,E,A){return gs=A,Ut=c,c.memoizedState=null,c.updateQueue=null,c.lanes=0,B.H=i===null||i.memoizedState===null?r2:o2,Tl=!1,A=f(m,E),Tl=!1,Uc&&(A=TA(c,f,m,E)),xA(i),A}function xA(i){B.H=_m;var c=hn!==null&&hn.next!==null;if(gs=0,fr=hn=Ut=null,bm=!1,Yd=0,Hc=null,c)throw Error(r(300));i===null||kr||(i=i.dependencies,i!==null&&fm(i)&&(kr=!0))}function TA(i,c,f,m){Ut=i;var E=0;do{if(Uc&&(Hc=null),Yd=0,Uc=!1,25<=E)throw Error(r(301));if(E+=1,fr=hn=null,i.updateQueue!=null){var A=i.updateQueue;A.lastEffect=null,A.events=null,A.stores=null,A.memoCache!=null&&(A.memoCache.index=0)}B.H=g7,A=c(f,m)}while(Uc);return A}function u7(){var i=B.H,c=i.useState()[0];return c=typeof c.then=="function"?Qd(c):c,i=i.useState()[0],(hn!==null?hn.memoizedState:null)!==i&&(Ut.flags|=1024),c}function vv(){var i=vm!==0;return vm=0,i}function Ev(i,c,f){c.updateQueue=i.updateQueue,c.flags&=-2053,i.lanes&=~f}function xv(i){if(bm){for(i=i.memoizedState;i!==null;){var c=i.queue;c!==null&&(c.pending=null),i=i.next}bm=!1}gs=0,fr=hn=Ut=null,Uc=!1,Yd=vm=0,Hc=null}function po(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return fr===null?Ut.memoizedState=fr=i:fr=fr.next=i,fr}function pr(){if(hn===null){var i=Ut.alternate;i=i!==null?i.memoizedState:null}else i=hn.next;var c=fr===null?Ut.memoizedState:fr.next;if(c!==null)fr=c,hn=i;else{if(i===null)throw Ut.alternate===null?Error(r(467)):Error(r(310));hn=i,i={memoizedState:hn.memoizedState,baseState:hn.baseState,baseQueue:hn.baseQueue,queue:hn.queue,next:null},fr===null?Ut.memoizedState=fr=i:fr=fr.next=i}return fr}function Tv(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Qd(i){var c=Yd;return Yd+=1,Hc===null&&(Hc=[]),i=mA(Hc,i,c),c=Ut,(fr===null?c.memoizedState:fr.next)===null&&(c=c.alternate,B.H=c===null||c.memoizedState===null?r2:o2),i}function Em(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return Qd(i);if(i.$$typeof===C)return Vr(i)}throw Error(r(438,String(i)))}function Sv(i){var c=null,f=Ut.updateQueue;if(f!==null&&(c=f.memoCache),c==null){var m=Ut.alternate;m!==null&&(m=m.updateQueue,m!==null&&(m=m.memoCache,m!=null&&(c={data:m.data.map(function(E){return E.slice()}),index:0})))}if(c==null&&(c={data:[],index:0}),f===null&&(f=Tv(),Ut.updateQueue=f),f.memoCache=c,f=c.data[c.index],f===void 0)for(f=c.data[c.index]=Array(i),m=0;m<i;m++)f[m]=S;return c.index++,f}function Pi(i,c){return typeof c=="function"?c(i):c}function xm(i){var c=pr();return Cv(c,hn,i)}function Cv(i,c,f){var m=i.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=f;var E=i.baseQueue,A=m.pending;if(A!==null){if(E!==null){var L=E.next;E.next=A.next,A.next=L}c.baseQueue=E=A,m.pending=null}if(A=i.baseState,E===null)i.memoizedState=A;else{c=E.next;var j=L=null,J=null,pe=c,ke=!1;do{var Ie=pe.lane&-536870913;if(Ie!==pe.lane?(Jt&Ie)===Ie:(gs&Ie)===Ie){var me=pe.revertLane;if(me===0)J!==null&&(J=J.next={lane:0,revertLane:0,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null}),Ie===Fc&&(ke=!0);else if((gs&me)===me){pe=pe.next,me===Fc&&(ke=!0);continue}else Ie={lane:0,revertLane:pe.revertLane,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null},J===null?(j=J=Ie,L=A):J=J.next=Ie,Ut.lanes|=me,Ss|=me;Ie=pe.action,Tl&&f(A,Ie),A=pe.hasEagerState?pe.eagerState:f(A,Ie)}else me={lane:Ie,revertLane:pe.revertLane,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null},J===null?(j=J=me,L=A):J=J.next=me,Ut.lanes|=Ie,Ss|=Ie;pe=pe.next}while(pe!==null&&pe!==c);if(J===null?L=A:J.next=j,!Ro(A,i.memoizedState)&&(kr=!0,ke&&(f=Bc,f!==null)))throw f;i.memoizedState=A,i.baseState=L,i.baseQueue=J,m.lastRenderedState=A}return E===null&&(m.lanes=0),[i.memoizedState,m.dispatch]}function _v(i){var c=pr(),f=c.queue;if(f===null)throw Error(r(311));f.lastRenderedReducer=i;var m=f.dispatch,E=f.pending,A=c.memoizedState;if(E!==null){f.pending=null;var L=E=E.next;do A=i(A,L.action),L=L.next;while(L!==E);Ro(A,c.memoizedState)||(kr=!0),c.memoizedState=A,c.baseQueue===null&&(c.baseState=A),f.lastRenderedState=A}return[A,m]}function SA(i,c,f){var m=Ut,E=pr(),A=on;if(A){if(f===void 0)throw Error(r(407));f=f()}else f=c();var L=!Ro((hn||E).memoizedState,f);L&&(E.memoizedState=f,kr=!0),E=E.queue;var j=AA.bind(null,m,E,i);if(Kd(2048,8,j,[i]),E.getSnapshot!==c||L||fr!==null&&fr.memoizedState.tag&1){if(m.flags|=2048,zc(9,Tm(),_A.bind(null,m,E,f,c),null),Dn===null)throw Error(r(349));A||(gs&124)!==0||CA(m,c,f)}return f}function CA(i,c,f){i.flags|=16384,i={getSnapshot:c,value:f},c=Ut.updateQueue,c===null?(c=Tv(),Ut.updateQueue=c,c.stores=[i]):(f=c.stores,f===null?c.stores=[i]:f.push(i))}function _A(i,c,f,m){c.value=f,c.getSnapshot=m,kA(c)&&wA(i)}function AA(i,c,f){return f(function(){kA(c)&&wA(i)})}function kA(i){var c=i.getSnapshot;i=i.value;try{var f=c();return!Ro(i,f)}catch{return!0}}function wA(i){var c=Nc(i,2);c!==null&&Mo(c,i,2)}function Av(i){var c=po();if(typeof i=="function"){var f=i;if(i=f(),Tl){$e(!0);try{f()}finally{$e(!1)}}}return c.memoizedState=c.baseState=i,c.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pi,lastRenderedState:i},c}function DA(i,c,f,m){return i.baseState=f,Cv(i,hn,typeof m=="function"?m:Pi)}function d7(i,c,f,m,E){if(Cm(i))throw Error(r(485));if(i=c.action,i!==null){var A={payload:E,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(L){A.listeners.push(L)}};B.T!==null?f(!0):A.isTransition=!1,m(A),f=c.pending,f===null?(A.next=c.pending=A,RA(c,A)):(A.next=f.next,c.pending=f.next=A)}}function RA(i,c){var f=c.action,m=c.payload,E=i.state;if(c.isTransition){var A=B.T,L={};B.T=L;try{var j=f(E,m),J=B.S;J!==null&&J(L,j),IA(i,c,j)}catch(pe){kv(i,c,pe)}finally{B.T=A}}else try{A=f(E,m),IA(i,c,A)}catch(pe){kv(i,c,pe)}}function IA(i,c,f){f!==null&&typeof f=="object"&&typeof f.then=="function"?f.then(function(m){OA(i,c,m)},function(m){return kv(i,c,m)}):OA(i,c,f)}function OA(i,c,f){c.status="fulfilled",c.value=f,NA(c),i.state=f,c=i.pending,c!==null&&(f=c.next,f===c?i.pending=null:(f=f.next,c.next=f,RA(i,f)))}function kv(i,c,f){var m=i.pending;if(i.pending=null,m!==null){m=m.next;do c.status="rejected",c.reason=f,NA(c),c=c.next;while(c!==m)}i.action=null}function NA(i){i=i.listeners;for(var c=0;c<i.length;c++)(0,i[c])()}function PA(i,c){return c}function LA(i,c){if(on){var f=Dn.formState;if(f!==null){e:{var m=Ut;if(on){if(Qn){t:{for(var E=Qn,A=Ga;E.nodeType!==8;){if(!A){E=null;break t}if(E=Ra(E.nextSibling),E===null){E=null;break t}}A=E.data,E=A==="F!"||A==="F"?E:null}if(E){Qn=Ra(E.nextSibling),m=E.data==="F!";break e}}bl(m)}m=!1}m&&(c=f[0])}}return f=po(),f.memoizedState=f.baseState=c,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:PA,lastRenderedState:c},f.queue=m,f=e2.bind(null,Ut,m),m.dispatch=f,m=Av(!1),A=Ov.bind(null,Ut,!1,m.queue),m=po(),E={state:c,dispatch:null,action:i,pending:null},m.queue=E,f=d7.bind(null,Ut,E,A,f),E.dispatch=f,m.memoizedState=i,[c,f,!1]}function MA(i){var c=pr();return FA(c,hn,i)}function FA(i,c,f){if(c=Cv(i,c,PA)[0],i=xm(Pi)[0],typeof c=="object"&&c!==null&&typeof c.then=="function")try{var m=Qd(c)}catch(L){throw L===$d?mm:L}else m=c;c=pr();var E=c.queue,A=E.dispatch;return f!==c.memoizedState&&(Ut.flags|=2048,zc(9,Tm(),f7.bind(null,E,f),null)),[m,A,i]}function f7(i,c){i.action=c}function BA(i){var c=pr(),f=hn;if(f!==null)return FA(c,f,i);pr(),c=c.memoizedState,f=pr();var m=f.queue.dispatch;return f.memoizedState=i,[c,m,!1]}function zc(i,c,f,m){return i={tag:i,create:f,deps:m,inst:c,next:null},c=Ut.updateQueue,c===null&&(c=Tv(),Ut.updateQueue=c),f=c.lastEffect,f===null?c.lastEffect=i.next=i:(m=f.next,f.next=i,i.next=m,c.lastEffect=i),i}function Tm(){return{destroy:void 0,resource:void 0}}function jA(){return pr().memoizedState}function Sm(i,c,f,m){var E=po();m=m===void 0?null:m,Ut.flags|=i,E.memoizedState=zc(1|c,Tm(),f,m)}function Kd(i,c,f,m){var E=pr();m=m===void 0?null:m;var A=E.memoizedState.inst;hn!==null&&m!==null&&yv(m,hn.memoizedState.deps)?E.memoizedState=zc(c,A,f,m):(Ut.flags|=i,E.memoizedState=zc(1|c,A,f,m))}function UA(i,c){Sm(8390656,8,i,c)}function HA(i,c){Kd(2048,8,i,c)}function zA(i,c){return Kd(4,2,i,c)}function $A(i,c){return Kd(4,4,i,c)}function VA(i,c){if(typeof c=="function"){i=i();var f=c(i);return function(){typeof f=="function"?f():c(null)}}if(c!=null)return i=i(),c.current=i,function(){c.current=null}}function GA(i,c,f){f=f!=null?f.concat([i]):null,Kd(4,4,VA.bind(null,c,i),f)}function wv(){}function qA(i,c){var f=pr();c=c===void 0?null:c;var m=f.memoizedState;return c!==null&&yv(c,m[1])?m[0]:(f.memoizedState=[i,c],i)}function WA(i,c){var f=pr();c=c===void 0?null:c;var m=f.memoizedState;if(c!==null&&yv(c,m[1]))return m[0];if(m=i(),Tl){$e(!0);try{i()}finally{$e(!1)}}return f.memoizedState=[m,c],m}function Dv(i,c,f){return f===void 0||(gs&1073741824)!==0?i.memoizedState=c:(i.memoizedState=f,i=K2(),Ut.lanes|=i,Ss|=i,f)}function YA(i,c,f,m){return Ro(f,c)?f:jc.current!==null?(i=Dv(i,f,m),Ro(i,c)||(kr=!0),i):(gs&42)===0?(kr=!0,i.memoizedState=f):(i=K2(),Ut.lanes|=i,Ss|=i,c)}function QA(i,c,f,m,E){var A=K.p;K.p=A!==0&&8>A?A:8;var L=B.T,j={};B.T=j,Ov(i,!1,c,f);try{var J=E(),pe=B.S;if(pe!==null&&pe(j,J),J!==null&&typeof J=="object"&&typeof J.then=="function"){var ke=l7(J,m);Xd(i,c,ke,Lo(i))}else Xd(i,c,m,Lo(i))}catch(Ie){Xd(i,c,{then:function(){},status:"rejected",reason:Ie},Lo())}finally{K.p=A,B.T=L}}function p7(){}function Rv(i,c,f,m){if(i.tag!==5)throw Error(r(476));var E=KA(i).queue;QA(i,E,c,ae,f===null?p7:function(){return XA(i),f(m)})}function KA(i){var c=i.memoizedState;if(c!==null)return c;c={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pi,lastRenderedState:ae},next:null};var f={};return c.next={memoizedState:f,baseState:f,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pi,lastRenderedState:f},next:null},i.memoizedState=c,i=i.alternate,i!==null&&(i.memoizedState=c),c}function XA(i){var c=KA(i).next.queue;Xd(i,c,{},Lo())}function Iv(){return Vr(gf)}function ZA(){return pr().memoizedState}function JA(){return pr().memoizedState}function h7(i){for(var c=i.return;c!==null;){switch(c.tag){case 24:case 3:var f=Lo();i=hs(f);var m=ms(c,i,f);m!==null&&(Mo(m,c,f),Gd(m,c,f)),c={cache:sv()},i.payload=c;return}c=c.return}}function m7(i,c,f){var m=Lo();f={lane:m,revertLane:0,action:f,hasEagerState:!1,eagerState:null,next:null},Cm(i)?t2(c,f):(f=Xb(i,c,f,m),f!==null&&(Mo(f,i,m),n2(f,c,m)))}function e2(i,c,f){var m=Lo();Xd(i,c,f,m)}function Xd(i,c,f,m){var E={lane:m,revertLane:0,action:f,hasEagerState:!1,eagerState:null,next:null};if(Cm(i))t2(c,E);else{var A=i.alternate;if(i.lanes===0&&(A===null||A.lanes===0)&&(A=c.lastRenderedReducer,A!==null))try{var L=c.lastRenderedState,j=A(L,f);if(E.hasEagerState=!0,E.eagerState=j,Ro(j,L))return sm(i,c,E,0),Dn===null&&im(),!1}catch{}finally{}if(f=Xb(i,c,E,m),f!==null)return Mo(f,i,m),n2(f,c,m),!0}return!1}function Ov(i,c,f,m){if(m={lane:2,revertLane:u1(),action:m,hasEagerState:!1,eagerState:null,next:null},Cm(i)){if(c)throw Error(r(479))}else c=Xb(i,f,m,2),c!==null&&Mo(c,i,2)}function Cm(i){var c=i.alternate;return i===Ut||c!==null&&c===Ut}function t2(i,c){Uc=bm=!0;var f=i.pending;f===null?c.next=c:(c.next=f.next,f.next=c),i.pending=c}function n2(i,c,f){if((f&4194048)!==0){var m=c.lanes;m&=i.pendingLanes,f|=m,c.lanes=f,En(i,f)}}var _m={readContext:Vr,use:Em,useCallback:or,useContext:or,useEffect:or,useImperativeHandle:or,useLayoutEffect:or,useInsertionEffect:or,useMemo:or,useReducer:or,useRef:or,useState:or,useDebugValue:or,useDeferredValue:or,useTransition:or,useSyncExternalStore:or,useId:or,useHostTransitionStatus:or,useFormState:or,useActionState:or,useOptimistic:or,useMemoCache:or,useCacheRefresh:or},r2={readContext:Vr,use:Em,useCallback:function(i,c){return po().memoizedState=[i,c===void 0?null:c],i},useContext:Vr,useEffect:UA,useImperativeHandle:function(i,c,f){f=f!=null?f.concat([i]):null,Sm(4194308,4,VA.bind(null,c,i),f)},useLayoutEffect:function(i,c){return Sm(4194308,4,i,c)},useInsertionEffect:function(i,c){Sm(4,2,i,c)},useMemo:function(i,c){var f=po();c=c===void 0?null:c;var m=i();if(Tl){$e(!0);try{i()}finally{$e(!1)}}return f.memoizedState=[m,c],m},useReducer:function(i,c,f){var m=po();if(f!==void 0){var E=f(c);if(Tl){$e(!0);try{f(c)}finally{$e(!1)}}}else E=c;return m.memoizedState=m.baseState=E,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:E},m.queue=i,i=i.dispatch=m7.bind(null,Ut,i),[m.memoizedState,i]},useRef:function(i){var c=po();return i={current:i},c.memoizedState=i},useState:function(i){i=Av(i);var c=i.queue,f=e2.bind(null,Ut,c);return c.dispatch=f,[i.memoizedState,f]},useDebugValue:wv,useDeferredValue:function(i,c){var f=po();return Dv(f,i,c)},useTransition:function(){var i=Av(!1);return i=QA.bind(null,Ut,i.queue,!0,!1),po().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,c,f){var m=Ut,E=po();if(on){if(f===void 0)throw Error(r(407));f=f()}else{if(f=c(),Dn===null)throw Error(r(349));(Jt&124)!==0||CA(m,c,f)}E.memoizedState=f;var A={value:f,getSnapshot:c};return E.queue=A,UA(AA.bind(null,m,A,i),[i]),m.flags|=2048,zc(9,Tm(),_A.bind(null,m,A,f,c),null),f},useId:function(){var i=po(),c=Dn.identifierPrefix;if(on){var f=Ii,m=Ri;f=(m&~(1<<32-Xe(m)-1)).toString(32)+f,c="«"+c+"R"+f,f=vm++,0<f&&(c+="H"+f.toString(32)),c+="»"}else f=c7++,c="«"+c+"r"+f.toString(32)+"»";return i.memoizedState=c},useHostTransitionStatus:Iv,useFormState:LA,useActionState:LA,useOptimistic:function(i){var c=po();c.memoizedState=c.baseState=i;var f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return c.queue=f,c=Ov.bind(null,Ut,!0,f),f.dispatch=c,[i,c]},useMemoCache:Sv,useCacheRefresh:function(){return po().memoizedState=h7.bind(null,Ut)}},o2={readContext:Vr,use:Em,useCallback:qA,useContext:Vr,useEffect:HA,useImperativeHandle:GA,useInsertionEffect:zA,useLayoutEffect:$A,useMemo:WA,useReducer:xm,useRef:jA,useState:function(){return xm(Pi)},useDebugValue:wv,useDeferredValue:function(i,c){var f=pr();return YA(f,hn.memoizedState,i,c)},useTransition:function(){var i=xm(Pi)[0],c=pr().memoizedState;return[typeof i=="boolean"?i:Qd(i),c]},useSyncExternalStore:SA,useId:ZA,useHostTransitionStatus:Iv,useFormState:MA,useActionState:MA,useOptimistic:function(i,c){var f=pr();return DA(f,hn,i,c)},useMemoCache:Sv,useCacheRefresh:JA},g7={readContext:Vr,use:Em,useCallback:qA,useContext:Vr,useEffect:HA,useImperativeHandle:GA,useInsertionEffect:zA,useLayoutEffect:$A,useMemo:WA,useReducer:_v,useRef:jA,useState:function(){return _v(Pi)},useDebugValue:wv,useDeferredValue:function(i,c){var f=pr();return hn===null?Dv(f,i,c):YA(f,hn.memoizedState,i,c)},useTransition:function(){var i=_v(Pi)[0],c=pr().memoizedState;return[typeof i=="boolean"?i:Qd(i),c]},useSyncExternalStore:SA,useId:ZA,useHostTransitionStatus:Iv,useFormState:BA,useActionState:BA,useOptimistic:function(i,c){var f=pr();return hn!==null?DA(f,hn,i,c):(f.baseState=i,[i,f.queue.dispatch])},useMemoCache:Sv,useCacheRefresh:JA},$c=null,Zd=0;function Am(i){var c=Zd;return Zd+=1,$c===null&&($c=[]),mA($c,i,c)}function Jd(i,c){c=c.props.ref,i.ref=c!==void 0?c:null}function km(i,c){throw c.$$typeof===h?Error(r(525)):(i=Object.prototype.toString.call(c),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":i)))}function a2(i){var c=i._init;return c(i._payload)}function i2(i){function c(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;)c(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=Di(le,se),le.index=0,le.sibling=null,le}function A(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 j(le,se,ue,De){return se===null||se.tag!==6?(se=Jb(ue,le.mode,De),se.return=le,se):(se=E(se,ue),se.return=le,se)}function J(le,se,ue,De){var ot=ue.type;return ot===v?ke(le,se,ue.props.children,De,ue.key):se!==null&&(se.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===H&&a2(ot)===se.type)?(se=E(se,ue.props),Jd(se,ue),se.return=le,se):(se=cm(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=ev(ue,le.mode,De),se.return=le,se):(se=E(se,ue.children||[]),se.return=le,se)}function ke(le,se,ue,De,ot){return se===null||se.tag!==7?(se=hl(ue,le.mode,De,ot),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=Jb(""+se,le.mode,ue),se.return=le,se;if(typeof se=="object"&&se!==null){switch(se.$$typeof){case g:return ue=cm(se.type,se.key,se.props,null,le.mode,ue),Jd(ue,se),ue.return=le,ue;case y:return se=ev(se,le.mode,ue),se.return=le,se;case H:var De=se._init;return se=De(se._payload),Ie(le,se,ue)}if(Y(se)||$(se))return se=hl(se,le.mode,ue,null),se.return=le,se;if(typeof se.then=="function")return Ie(le,Am(se),ue);if(se.$$typeof===C)return Ie(le,pm(le,se),ue);km(le,se)}return null}function me(le,se,ue,De){var ot=se!==null?se.key:null;if(typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint")return ot!==null?null:j(le,se,""+ue,De);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case g:return ue.key===ot?J(le,se,ue,De):null;case y:return ue.key===ot?pe(le,se,ue,De):null;case H:return ot=ue._init,ue=ot(ue._payload),me(le,se,ue,De)}if(Y(ue)||$(ue))return ot!==null?null:ke(le,se,ue,De,null);if(typeof ue.then=="function")return me(le,se,Am(ue),De);if(ue.$$typeof===C)return me(le,se,pm(le,ue),De);km(le,ue)}return null}function ge(le,se,ue,De,ot){if(typeof De=="string"&&De!==""||typeof De=="number"||typeof De=="bigint")return le=le.get(ue)||null,j(se,le,""+De,ot);if(typeof De=="object"&&De!==null){switch(De.$$typeof){case g:return le=le.get(De.key===null?ue:De.key)||null,J(se,le,De,ot);case y:return le=le.get(De.key===null?ue:De.key)||null,pe(se,le,De,ot);case H:var zt=De._init;return De=zt(De._payload),ge(le,se,ue,De,ot)}if(Y(De)||$(De))return le=le.get(ue)||null,ke(se,le,De,ot,null);if(typeof De.then=="function")return ge(le,se,ue,Am(De),ot);if(De.$$typeof===C)return ge(le,se,ue,pm(se,De),ot);km(se,De)}return null}function kt(le,se,ue,De){for(var ot=null,zt=null,ht=se,Tt=se=0,Dr=null;ht!==null&&Tt<ue.length;Tt++){ht.index>Tt?(Dr=ht,ht=null):Dr=ht.sibling;var nn=me(le,ht,ue[Tt],De);if(nn===null){ht===null&&(ht=Dr);break}i&&ht&&nn.alternate===null&&c(le,ht),se=A(nn,se,Tt),zt===null?ot=nn:zt.sibling=nn,zt=nn,ht=Dr}if(Tt===ue.length)return f(le,ht),on&&gl(le,Tt),ot;if(ht===null){for(;Tt<ue.length;Tt++)ht=Ie(le,ue[Tt],De),ht!==null&&(se=A(ht,se,Tt),zt===null?ot=ht:zt.sibling=ht,zt=ht);return on&&gl(le,Tt),ot}for(ht=m(ht);Tt<ue.length;Tt++)Dr=ge(ht,le,Tt,ue[Tt],De),Dr!==null&&(i&&Dr.alternate!==null&&ht.delete(Dr.key===null?Tt:Dr.key),se=A(Dr,se,Tt),zt===null?ot=Dr:zt.sibling=Dr,zt=Dr);return i&&ht.forEach(function(Os){return c(le,Os)}),on&&gl(le,Tt),ot}function xt(le,se,ue,De){if(ue==null)throw Error(r(151));for(var ot=null,zt=null,ht=se,Tt=se=0,Dr=null,nn=ue.next();ht!==null&&!nn.done;Tt++,nn=ue.next()){ht.index>Tt?(Dr=ht,ht=null):Dr=ht.sibling;var Os=me(le,ht,nn.value,De);if(Os===null){ht===null&&(ht=Dr);break}i&&ht&&Os.alternate===null&&c(le,ht),se=A(Os,se,Tt),zt===null?ot=Os:zt.sibling=Os,zt=Os,ht=Dr}if(nn.done)return f(le,ht),on&&gl(le,Tt),ot;if(ht===null){for(;!nn.done;Tt++,nn=ue.next())nn=Ie(le,nn.value,De),nn!==null&&(se=A(nn,se,Tt),zt===null?ot=nn:zt.sibling=nn,zt=nn);return on&&gl(le,Tt),ot}for(ht=m(ht);!nn.done;Tt++,nn=ue.next())nn=ge(ht,le,Tt,nn.value,De),nn!==null&&(i&&nn.alternate!==null&&ht.delete(nn.key===null?Tt:nn.key),se=A(nn,se,Tt),zt===null?ot=nn:zt.sibling=nn,zt=nn);return i&&ht.forEach(function(yF){return c(le,yF)}),on&&gl(le,Tt),ot}function gn(le,se,ue,De){if(typeof ue=="object"&&ue!==null&&ue.type===v&&ue.key===null&&(ue=ue.props.children),typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case g:e:{for(var ot=ue.key;se!==null;){if(se.key===ot){if(ot=ue.type,ot===v){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===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===H&&a2(ot)===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 c(le,se);se=se.sibling}ue.type===v?(De=hl(ue.props.children,le.mode,De,ue.key),De.return=le,le=De):(De=cm(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(ot=ue.key;se!==null;){if(se.key===ot)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 c(le,se);se=se.sibling}De=ev(ue,le.mode,De),De.return=le,le=De}return L(le);case H:return ot=ue._init,ue=ot(ue._payload),gn(le,se,ue,De)}if(Y(ue))return kt(le,se,ue,De);if($(ue)){if(ot=$(ue),typeof ot!="function")throw Error(r(150));return ue=ot.call(ue),xt(le,se,ue,De)}if(typeof ue.then=="function")return gn(le,se,Am(ue),De);if(ue.$$typeof===C)return gn(le,se,pm(le,ue),De);km(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=Jb(ue,le.mode,De),De.return=le,le=De),L(le)):f(le,se)}return function(le,se,ue,De){try{Zd=0;var ot=gn(le,se,ue,De);return $c=null,ot}catch(ht){if(ht===$d||ht===mm)throw ht;var zt=Io(29,ht,null,le.mode);return zt.lanes=De,zt.return=le,zt}finally{}}}var Vc=i2(!0),s2=i2(!1),ra=Q(null),qa=null;function ys(i){var c=i.alternate;P(Tr,Tr.current&1),P(ra,i),qa===null&&(c===null||jc.current!==null||c.memoizedState!==null)&&(qa=i)}function l2(i){if(i.tag===22){if(P(Tr,Tr.current),P(ra,i),qa===null){var c=i.alternate;c!==null&&c.memoizedState!==null&&(qa=i)}}else bs()}function bs(){P(Tr,Tr.current),P(ra,ra.current)}function Li(i){X(ra),qa===i&&(qa=null),X(Tr)}var Tr=Q(0);function wm(i){for(var c=i;c!==null;){if(c.tag===13){var f=c.memoizedState;if(f!==null&&(f=f.dehydrated,f===null||f.data==="$?"||T1(f)))return c}else if(c.tag===19&&c.memoizedProps.revealOrder!==void 0){if((c.flags&128)!==0)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===i)break;for(;c.sibling===null;){if(c.return===null||c.return===i)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}function Nv(i,c,f,m){c=i.memoizedState,f=f(m,c),f=f==null?c:p({},c,f),i.memoizedState=f,i.lanes===0&&(i.updateQueue.baseState=f)}var Pv={enqueueSetState:function(i,c,f){i=i._reactInternals;var m=Lo(),E=hs(m);E.payload=c,f!=null&&(E.callback=f),c=ms(i,E,m),c!==null&&(Mo(c,i,m),Gd(c,i,m))},enqueueReplaceState:function(i,c,f){i=i._reactInternals;var m=Lo(),E=hs(m);E.tag=1,E.payload=c,f!=null&&(E.callback=f),c=ms(i,E,m),c!==null&&(Mo(c,i,m),Gd(c,i,m))},enqueueForceUpdate:function(i,c){i=i._reactInternals;var f=Lo(),m=hs(f);m.tag=2,c!=null&&(m.callback=c),c=ms(i,m,f),c!==null&&(Mo(c,i,f),Gd(c,i,f))}};function c2(i,c,f,m,E,A,L){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(m,A,L):c.prototype&&c.prototype.isPureReactComponent?!Ld(f,m)||!Ld(E,A):!0}function u2(i,c,f,m){i=c.state,typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps(f,m),typeof c.UNSAFE_componentWillReceiveProps=="function"&&c.UNSAFE_componentWillReceiveProps(f,m),c.state!==i&&Pv.enqueueReplaceState(c,c.state,null)}function Sl(i,c){var f=c;if("ref"in c){f={};for(var m in c)m!=="ref"&&(f[m]=c[m])}if(i=i.defaultProps){f===c&&(f=p({},f));for(var E in i)f[E]===void 0&&(f[E]=i[E])}return f}var Dm=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var c=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(c))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)};function d2(i){Dm(i)}function f2(i){console.error(i)}function p2(i){Dm(i)}function Rm(i,c){try{var f=i.onUncaughtError;f(c.value,{componentStack:c.stack})}catch(m){setTimeout(function(){throw m})}}function h2(i,c,f){try{var m=i.onCaughtError;m(f.value,{componentStack:f.stack,errorBoundary:c.tag===1?c.stateNode:null})}catch(E){setTimeout(function(){throw E})}}function Lv(i,c,f){return f=hs(f),f.tag=3,f.payload={element:null},f.callback=function(){Rm(i,c)},f}function m2(i){return i=hs(i),i.tag=3,i}function g2(i,c,f,m){var E=f.type.getDerivedStateFromError;if(typeof E=="function"){var A=m.value;i.payload=function(){return E(A)},i.callback=function(){h2(c,f,m)}}var L=f.stateNode;L!==null&&typeof L.componentDidCatch=="function"&&(i.callback=function(){h2(c,f,m),typeof E!="function"&&(Cs===null?Cs=new Set([this]):Cs.add(this));var j=m.stack;this.componentDidCatch(m.value,{componentStack:j!==null?j:""})})}function y7(i,c,f,m,E){if(f.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){if(c=f.alternate,c!==null&&Ud(c,f,E,!0),f=ra.current,f!==null){switch(f.tag){case 13:return qa===null?a1():f.alternate===null&&Kn===0&&(Kn=3),f.flags&=-257,f.flags|=65536,f.lanes=E,m===uv?f.flags|=16384:(c=f.updateQueue,c===null?f.updateQueue=new Set([m]):c.add(m),s1(i,m,E)),!1;case 22:return f.flags|=65536,m===uv?f.flags|=16384:(c=f.updateQueue,c===null?(c={transitions:null,markerInstances:null,retryQueue:new Set([m])},f.updateQueue=c):(f=c.retryQueue,f===null?c.retryQueue=new Set([m]):f.add(m)),s1(i,m,E)),!1}throw Error(r(435,f.tag))}return s1(i,m,E),a1(),!1}if(on)return c=ra.current,c!==null?((c.flags&65536)===0&&(c.flags|=256),c.flags|=65536,c.lanes=E,m!==rv&&(i=Error(r(422),{cause:m}),jd(Jo(i,f)))):(m!==rv&&(c=Error(r(423),{cause:m}),jd(Jo(c,f))),i=i.current.alternate,i.flags|=65536,E&=-E,i.lanes|=E,m=Jo(m,f),E=Lv(i.stateNode,m,E),pv(i,E),Kn!==4&&(Kn=2)),!1;var A=Error(r(520),{cause:m});if(A=Jo(A,f),sf===null?sf=[A]:sf.push(A),Kn!==4&&(Kn=2),c===null)return!0;m=Jo(m,f),f=c;do{switch(f.tag){case 3:return f.flags|=65536,i=E&-E,f.lanes|=i,i=Lv(f.stateNode,m,i),pv(f,i),!1;case 1:if(c=f.type,A=f.stateNode,(f.flags&128)===0&&(typeof c.getDerivedStateFromError=="function"||A!==null&&typeof A.componentDidCatch=="function"&&(Cs===null||!Cs.has(A))))return f.flags|=65536,E&=-E,f.lanes|=E,E=m2(E),g2(E,i,f,m),pv(f,E),!1}f=f.return}while(f!==null);return!1}var y2=Error(r(461)),kr=!1;function Mr(i,c,f,m){c.child=i===null?s2(c,null,f,m):Vc(c,i.child,f,m)}function b2(i,c,f,m,E){f=f.render;var A=c.ref;if("ref"in m){var L={};for(var j in m)j!=="ref"&&(L[j]=m[j])}else L=m;return El(c),m=bv(i,c,f,L,A,E),j=vv(),i!==null&&!kr?(Ev(i,c,E),Mi(i,c,E)):(on&&j&&tv(c),c.flags|=1,Mr(i,c,m,E),c.child)}function v2(i,c,f,m,E){if(i===null){var A=f.type;return typeof A=="function"&&!Zb(A)&&A.defaultProps===void 0&&f.compare===null?(c.tag=15,c.type=A,E2(i,c,A,m,E)):(i=cm(f.type,null,m,c,c.mode,E),i.ref=c.ref,i.return=c,c.child=i)}if(A=i.child,!$v(i,E)){var L=A.memoizedProps;if(f=f.compare,f=f!==null?f:Ld,f(L,m)&&i.ref===c.ref)return Mi(i,c,E)}return c.flags|=1,i=Di(A,m),i.ref=c.ref,i.return=c,c.child=i}function E2(i,c,f,m,E){if(i!==null){var A=i.memoizedProps;if(Ld(A,m)&&i.ref===c.ref)if(kr=!1,c.pendingProps=m=A,$v(i,E))(i.flags&131072)!==0&&(kr=!0);else return c.lanes=i.lanes,Mi(i,c,E)}return Mv(i,c,f,m,E)}function x2(i,c,f){var m=c.pendingProps,E=m.children,A=i!==null?i.memoizedState:null;if(m.mode==="hidden"){if((c.flags&128)!==0){if(m=A!==null?A.baseLanes|f:f,i!==null){for(E=c.child=i.child,A=0;E!==null;)A=A|E.lanes|E.childLanes,E=E.sibling;c.childLanes=A&~m}else c.childLanes=0,c.child=null;return T2(i,c,m,f)}if((f&536870912)!==0)c.memoizedState={baseLanes:0,cachePool:null},i!==null&&hm(c,A!==null?A.cachePool:null),A!==null?EA(c,A):mv(),l2(c);else return c.lanes=c.childLanes=536870912,T2(i,c,A!==null?A.baseLanes|f:f,f)}else A!==null?(hm(c,A.cachePool),EA(c,A),bs(),c.memoizedState=null):(i!==null&&hm(c,null),mv(),bs());return Mr(i,c,E,f),c.child}function T2(i,c,f,m){var E=cv();return E=E===null?null:{parent:xr._currentValue,pool:E},c.memoizedState={baseLanes:f,cachePool:E},i!==null&&hm(c,null),mv(),l2(c),i!==null&&Ud(i,c,m,!0),null}function Im(i,c){var f=c.ref;if(f===null)i!==null&&i.ref!==null&&(c.flags|=4194816);else{if(typeof f!="function"&&typeof f!="object")throw Error(r(284));(i===null||i.ref!==f)&&(c.flags|=4194816)}}function Mv(i,c,f,m,E){return El(c),f=bv(i,c,f,m,void 0,E),m=vv(),i!==null&&!kr?(Ev(i,c,E),Mi(i,c,E)):(on&&m&&tv(c),c.flags|=1,Mr(i,c,f,E),c.child)}function S2(i,c,f,m,E,A){return El(c),c.updateQueue=null,f=TA(c,m,f,E),xA(i),m=vv(),i!==null&&!kr?(Ev(i,c,A),Mi(i,c,A)):(on&&m&&tv(c),c.flags|=1,Mr(i,c,f,A),c.child)}function C2(i,c,f,m,E){if(El(c),c.stateNode===null){var A=Pc,L=f.contextType;typeof L=="object"&&L!==null&&(A=Vr(L)),A=new f(m,A),c.memoizedState=A.state!==null&&A.state!==void 0?A.state:null,A.updater=Pv,c.stateNode=A,A._reactInternals=c,A=c.stateNode,A.props=m,A.state=c.memoizedState,A.refs={},dv(c),L=f.contextType,A.context=typeof L=="object"&&L!==null?Vr(L):Pc,A.state=c.memoizedState,L=f.getDerivedStateFromProps,typeof L=="function"&&(Nv(c,f,L,m),A.state=c.memoizedState),typeof f.getDerivedStateFromProps=="function"||typeof A.getSnapshotBeforeUpdate=="function"||typeof A.UNSAFE_componentWillMount!="function"&&typeof A.componentWillMount!="function"||(L=A.state,typeof A.componentWillMount=="function"&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount=="function"&&A.UNSAFE_componentWillMount(),L!==A.state&&Pv.enqueueReplaceState(A,A.state,null),Wd(c,m,A,E),qd(),A.state=c.memoizedState),typeof A.componentDidMount=="function"&&(c.flags|=4194308),m=!0}else if(i===null){A=c.stateNode;var j=c.memoizedProps,J=Sl(f,j);A.props=J;var pe=A.context,ke=f.contextType;L=Pc,typeof ke=="object"&&ke!==null&&(L=Vr(ke));var Ie=f.getDerivedStateFromProps;ke=typeof Ie=="function"||typeof A.getSnapshotBeforeUpdate=="function",j=c.pendingProps!==j,ke||typeof A.UNSAFE_componentWillReceiveProps!="function"&&typeof A.componentWillReceiveProps!="function"||(j||pe!==L)&&u2(c,A,m,L),ps=!1;var me=c.memoizedState;A.state=me,Wd(c,m,A,E),qd(),pe=c.memoizedState,j||me!==pe||ps?(typeof Ie=="function"&&(Nv(c,f,Ie,m),pe=c.memoizedState),(J=ps||c2(c,f,J,m,me,pe,L))?(ke||typeof A.UNSAFE_componentWillMount!="function"&&typeof A.componentWillMount!="function"||(typeof A.componentWillMount=="function"&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount=="function"&&A.UNSAFE_componentWillMount()),typeof A.componentDidMount=="function"&&(c.flags|=4194308)):(typeof A.componentDidMount=="function"&&(c.flags|=4194308),c.memoizedProps=m,c.memoizedState=pe),A.props=m,A.state=pe,A.context=L,m=J):(typeof A.componentDidMount=="function"&&(c.flags|=4194308),m=!1)}else{A=c.stateNode,fv(i,c),L=c.memoizedProps,ke=Sl(f,L),A.props=ke,Ie=c.pendingProps,me=A.context,pe=f.contextType,J=Pc,typeof pe=="object"&&pe!==null&&(J=Vr(pe)),j=f.getDerivedStateFromProps,(pe=typeof j=="function"||typeof A.getSnapshotBeforeUpdate=="function")||typeof A.UNSAFE_componentWillReceiveProps!="function"&&typeof A.componentWillReceiveProps!="function"||(L!==Ie||me!==J)&&u2(c,A,m,J),ps=!1,me=c.memoizedState,A.state=me,Wd(c,m,A,E),qd();var ge=c.memoizedState;L!==Ie||me!==ge||ps||i!==null&&i.dependencies!==null&&fm(i.dependencies)?(typeof j=="function"&&(Nv(c,f,j,m),ge=c.memoizedState),(ke=ps||c2(c,f,ke,m,me,ge,J)||i!==null&&i.dependencies!==null&&fm(i.dependencies))?(pe||typeof A.UNSAFE_componentWillUpdate!="function"&&typeof A.componentWillUpdate!="function"||(typeof A.componentWillUpdate=="function"&&A.componentWillUpdate(m,ge,J),typeof A.UNSAFE_componentWillUpdate=="function"&&A.UNSAFE_componentWillUpdate(m,ge,J)),typeof A.componentDidUpdate=="function"&&(c.flags|=4),typeof A.getSnapshotBeforeUpdate=="function"&&(c.flags|=1024)):(typeof A.componentDidUpdate!="function"||L===i.memoizedProps&&me===i.memoizedState||(c.flags|=4),typeof A.getSnapshotBeforeUpdate!="function"||L===i.memoizedProps&&me===i.memoizedState||(c.flags|=1024),c.memoizedProps=m,c.memoizedState=ge),A.props=m,A.state=ge,A.context=J,m=ke):(typeof A.componentDidUpdate!="function"||L===i.memoizedProps&&me===i.memoizedState||(c.flags|=4),typeof A.getSnapshotBeforeUpdate!="function"||L===i.memoizedProps&&me===i.memoizedState||(c.flags|=1024),m=!1)}return A=m,Im(i,c),m=(c.flags&128)!==0,A||m?(A=c.stateNode,f=m&&typeof f.getDerivedStateFromError!="function"?null:A.render(),c.flags|=1,i!==null&&m?(c.child=Vc(c,i.child,null,E),c.child=Vc(c,null,f,E)):Mr(i,c,f,E),c.memoizedState=A.state,i=c.child):i=Mi(i,c,E),i}function _2(i,c,f,m){return Bd(),c.flags|=256,Mr(i,c,f,m),c.child}var Fv={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Bv(i){return{baseLanes:i,cachePool:fA()}}function jv(i,c,f){return i=i!==null?i.childLanes&~f:0,c&&(i|=oa),i}function A2(i,c,f){var m=c.pendingProps,E=!1,A=(c.flags&128)!==0,L;if((L=A)||(L=i!==null&&i.memoizedState===null?!1:(Tr.current&2)!==0),L&&(E=!0,c.flags&=-129),L=(c.flags&32)!==0,c.flags&=-33,i===null){if(on){if(E?ys(c):bs(),on){var j=Qn,J;if(J=j){e:{for(J=j,j=Ga;J.nodeType!==8;){if(!j){j=null;break e}if(J=Ra(J.nextSibling),J===null){j=null;break e}}j=J}j!==null?(c.memoizedState={dehydrated:j,treeContext:ml!==null?{id:Ri,overflow:Ii}:null,retryLane:536870912,hydrationErrors:null},J=Io(18,null,null,0),J.stateNode=j,J.return=c,c.child=J,no=c,Qn=null,J=!0):J=!1}J||bl(c)}if(j=c.memoizedState,j!==null&&(j=j.dehydrated,j!==null))return T1(j)?c.lanes=32:c.lanes=536870912,null;Li(c)}return j=m.children,m=m.fallback,E?(bs(),E=c.mode,j=Om({mode:"hidden",children:j},E),m=hl(m,E,f,null),j.return=c,m.return=c,j.sibling=m,c.child=j,E=c.child,E.memoizedState=Bv(f),E.childLanes=jv(i,L,f),c.memoizedState=Fv,m):(ys(c),Uv(c,j))}if(J=i.memoizedState,J!==null&&(j=J.dehydrated,j!==null)){if(A)c.flags&256?(ys(c),c.flags&=-257,c=Hv(i,c,f)):c.memoizedState!==null?(bs(),c.child=i.child,c.flags|=128,c=null):(bs(),E=m.fallback,j=c.mode,m=Om({mode:"visible",children:m.children},j),E=hl(E,j,f,null),E.flags|=2,m.return=c,E.return=c,m.sibling=E,c.child=m,Vc(c,i.child,null,f),m=c.child,m.memoizedState=Bv(f),m.childLanes=jv(i,L,f),c.memoizedState=Fv,c=E);else if(ys(c),T1(j)){if(L=j.nextSibling&&j.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}),c=Hv(i,c,f)}else if(kr||Ud(i,c,f,!1),L=(f&i.childLanes)!==0,kr||L){if(L=Dn,L!==null&&(m=f&-f,m=(m&42)!==0?1:Lr(m),m=(m&(L.suspendedLanes|f))!==0?0:m,m!==0&&m!==J.retryLane))throw J.retryLane=m,Nc(i,m),Mo(L,i,m),y2;j.data==="$?"||a1(),c=Hv(i,c,f)}else j.data==="$?"?(c.flags|=192,c.child=i.child,c=null):(i=J.treeContext,Qn=Ra(j.nextSibling),no=c,on=!0,yl=null,Ga=!1,i!==null&&(ta[na++]=Ri,ta[na++]=Ii,ta[na++]=ml,Ri=i.id,Ii=i.overflow,ml=c),c=Uv(c,m.children),c.flags|=4096);return c}return E?(bs(),E=m.fallback,j=c.mode,J=i.child,pe=J.sibling,m=Di(J,{mode:"hidden",children:m.children}),m.subtreeFlags=J.subtreeFlags&65011712,pe!==null?E=Di(pe,E):(E=hl(E,j,f,null),E.flags|=2),E.return=c,m.return=c,m.sibling=E,c.child=m,m=E,E=c.child,j=i.child.memoizedState,j===null?j=Bv(f):(J=j.cachePool,J!==null?(pe=xr._currentValue,J=J.parent!==pe?{parent:pe,pool:pe}:J):J=fA(),j={baseLanes:j.baseLanes|f,cachePool:J}),E.memoizedState=j,E.childLanes=jv(i,L,f),c.memoizedState=Fv,m):(ys(c),f=i.child,i=f.sibling,f=Di(f,{mode:"visible",children:m.children}),f.return=c,f.sibling=null,i!==null&&(L=c.deletions,L===null?(c.deletions=[i],c.flags|=16):L.push(i)),c.child=f,c.memoizedState=null,f)}function Uv(i,c){return c=Om({mode:"visible",children:c},i.mode),c.return=i,i.child=c}function Om(i,c){return i=Io(22,i,null,c),i.lanes=0,i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},i}function Hv(i,c,f){return Vc(c,i.child,null,f),i=Uv(c,c.pendingProps.children),i.flags|=2,c.memoizedState=null,i}function k2(i,c,f){i.lanes|=c;var m=i.alternate;m!==null&&(m.lanes|=c),av(i.return,c,f)}function zv(i,c,f,m,E){var A=i.memoizedState;A===null?i.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:m,tail:f,tailMode:E}:(A.isBackwards=c,A.rendering=null,A.renderingStartTime=0,A.last=m,A.tail=f,A.tailMode=E)}function w2(i,c,f){var m=c.pendingProps,E=m.revealOrder,A=m.tail;if(Mr(i,c,m.children,f),m=Tr.current,(m&2)!==0)m=m&1|2,c.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=c.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&k2(i,f,c);else if(i.tag===19)k2(i,f,c);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===c)break e;for(;i.sibling===null;){if(i.return===null||i.return===c)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}m&=1}switch(P(Tr,m),E){case"forwards":for(f=c.child,E=null;f!==null;)i=f.alternate,i!==null&&wm(i)===null&&(E=f),f=f.sibling;f=E,f===null?(E=c.child,c.child=null):(E=f.sibling,f.sibling=null),zv(c,!1,E,f,A);break;case"backwards":for(f=null,E=c.child,c.child=null;E!==null;){if(i=E.alternate,i!==null&&wm(i)===null){c.child=E;break}i=E.sibling,E.sibling=f,f=E,E=i}zv(c,!0,f,null,A);break;case"together":zv(c,!1,null,null,void 0);break;default:c.memoizedState=null}return c.child}function Mi(i,c,f){if(i!==null&&(c.dependencies=i.dependencies),Ss|=c.lanes,(f&c.childLanes)===0)if(i!==null){if(Ud(i,c,f,!1),(f&c.childLanes)===0)return null}else return null;if(i!==null&&c.child!==i.child)throw Error(r(153));if(c.child!==null){for(i=c.child,f=Di(i,i.pendingProps),c.child=f,f.return=c;i.sibling!==null;)i=i.sibling,f=f.sibling=Di(i,i.pendingProps),f.return=c;f.sibling=null}return c.child}function $v(i,c){return(i.lanes&c)!==0?!0:(i=i.dependencies,!!(i!==null&&fm(i)))}function b7(i,c,f){switch(c.tag){case 3:be(c,c.stateNode.containerInfo),fs(c,xr,i.memoizedState.cache),Bd();break;case 27:case 5:Me(c);break;case 4:be(c,c.stateNode.containerInfo);break;case 10:fs(c,c.type,c.memoizedProps.value);break;case 13:var m=c.memoizedState;if(m!==null)return m.dehydrated!==null?(ys(c),c.flags|=128,null):(f&c.child.childLanes)!==0?A2(i,c,f):(ys(c),i=Mi(i,c,f),i!==null?i.sibling:null);ys(c);break;case 19:var E=(i.flags&128)!==0;if(m=(f&c.childLanes)!==0,m||(Ud(i,c,f,!1),m=(f&c.childLanes)!==0),E){if(m)return w2(i,c,f);c.flags|=128}if(E=c.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 c.lanes=0,x2(i,c,f);case 24:fs(c,xr,i.memoizedState.cache)}return Mi(i,c,f)}function D2(i,c,f){if(i!==null)if(i.memoizedProps!==c.pendingProps)kr=!0;else{if(!$v(i,f)&&(c.flags&128)===0)return kr=!1,b7(i,c,f);kr=(i.flags&131072)!==0}else kr=!1,on&&(c.flags&1048576)!==0&&aA(c,dm,c.index);switch(c.lanes=0,c.tag){case 16:e:{i=c.pendingProps;var m=c.elementType,E=m._init;if(m=E(m._payload),c.type=m,typeof m=="function")Zb(m)?(i=Sl(m,i),c.tag=1,c=C2(null,c,m,i,f)):(c.tag=0,c=Mv(null,c,m,i,f));else{if(m!=null){if(E=m.$$typeof,E===R){c.tag=11,c=b2(null,c,m,i,f);break e}else if(E===F){c.tag=14,c=v2(null,c,m,i,f);break e}}throw c=q(m)||m,Error(r(306,c,""))}}return c;case 0:return Mv(i,c,c.type,c.pendingProps,f);case 1:return m=c.type,E=Sl(m,c.pendingProps),C2(i,c,m,E,f);case 3:e:{if(be(c,c.stateNode.containerInfo),i===null)throw Error(r(387));m=c.pendingProps;var A=c.memoizedState;E=A.element,fv(i,c),Wd(c,m,null,f);var L=c.memoizedState;if(m=L.cache,fs(c,xr,m),m!==A.cache&&iv(c,[xr],f,!0),qd(),m=L.element,A.isDehydrated)if(A={element:m,isDehydrated:!1,cache:L.cache},c.updateQueue.baseState=A,c.memoizedState=A,c.flags&256){c=_2(i,c,m,f);break e}else if(m!==E){E=Jo(Error(r(424)),c),jd(E),c=_2(i,c,m,f);break e}else{switch(i=c.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(Qn=Ra(i.firstChild),no=c,on=!0,yl=null,Ga=!0,f=s2(c,null,m,f),c.child=f;f;)f.flags=f.flags&-3|4096,f=f.sibling}else{if(Bd(),m===E){c=Mi(i,c,f);break e}Mr(i,c,m,f)}c=c.child}return c;case 26:return Im(i,c),i===null?(f=Nk(c.type,null,c.pendingProps,null))?c.memoizedState=f:on||(f=c.type,i=c.pendingProps,m=qm(oe.current).createElement(f),m[Ee]=c,m[Ae]=i,Br(m,f,i),Lt(m),c.stateNode=m):c.memoizedState=Nk(c.type,i.memoizedProps,c.pendingProps,i.memoizedState),null;case 27:return Me(c),i===null&&on&&(m=c.stateNode=Rk(c.type,c.pendingProps,oe.current),no=c,Ga=!0,E=Qn,ks(c.type)?(S1=E,Qn=Ra(m.firstChild)):Qn=E),Mr(i,c,c.pendingProps.children,f),Im(i,c),i===null&&(c.flags|=4194304),c.child;case 5:return i===null&&on&&((E=m=Qn)&&(m=q7(m,c.type,c.pendingProps,Ga),m!==null?(c.stateNode=m,no=c,Qn=Ra(m.firstChild),Ga=!1,E=!0):E=!1),E||bl(c)),Me(c),E=c.type,A=c.pendingProps,L=i!==null?i.memoizedProps:null,m=A.children,v1(E,A)?m=null:L!==null&&v1(E,L)&&(c.flags|=32),c.memoizedState!==null&&(E=bv(i,c,u7,null,null,f),gf._currentValue=E),Im(i,c),Mr(i,c,m,f),c.child;case 6:return i===null&&on&&((i=f=Qn)&&(f=W7(f,c.pendingProps,Ga),f!==null?(c.stateNode=f,no=c,Qn=null,i=!0):i=!1),i||bl(c)),null;case 13:return A2(i,c,f);case 4:return be(c,c.stateNode.containerInfo),m=c.pendingProps,i===null?c.child=Vc(c,null,m,f):Mr(i,c,m,f),c.child;case 11:return b2(i,c,c.type,c.pendingProps,f);case 7:return Mr(i,c,c.pendingProps,f),c.child;case 8:return Mr(i,c,c.pendingProps.children,f),c.child;case 12:return Mr(i,c,c.pendingProps.children,f),c.child;case 10:return m=c.pendingProps,fs(c,c.type,m.value),Mr(i,c,m.children,f),c.child;case 9:return E=c.type._context,m=c.pendingProps.children,El(c),E=Vr(E),m=m(E),c.flags|=1,Mr(i,c,m,f),c.child;case 14:return v2(i,c,c.type,c.pendingProps,f);case 15:return E2(i,c,c.type,c.pendingProps,f);case 19:return w2(i,c,f);case 31:return m=c.pendingProps,f=c.mode,m={mode:m.mode,children:m.children},i===null?(f=Om(m,f),f.ref=c.ref,c.child=f,f.return=c,c=f):(f=Di(i.child,m),f.ref=c.ref,c.child=f,f.return=c,c=f),c;case 22:return x2(i,c,f);case 24:return El(c),m=Vr(xr),i===null?(E=cv(),E===null&&(E=Dn,A=sv(),E.pooledCache=A,A.refCount++,A!==null&&(E.pooledCacheLanes|=f),E=A),c.memoizedState={parent:m,cache:E},dv(c),fs(c,xr,E)):((i.lanes&f)!==0&&(fv(i,c),Wd(c,null,null,f),qd()),E=i.memoizedState,A=c.memoizedState,E.parent!==m?(E={parent:m,cache:m},c.memoizedState=E,c.lanes===0&&(c.memoizedState=c.updateQueue.baseState=E),fs(c,xr,m)):(m=A.cache,fs(c,xr,m),m!==E.cache&&iv(c,[xr],f,!0))),Mr(i,c,c.pendingProps.children,f),c.child;case 29:throw c.pendingProps}throw Error(r(156,c.tag))}function Fi(i){i.flags|=4}function R2(i,c){if(c.type!=="stylesheet"||(c.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!Bk(c)){if(c=ra.current,c!==null&&((Jt&4194048)===Jt?qa!==null:(Jt&62914560)!==Jt&&(Jt&536870912)===0||c!==qa))throw Vd=uv,pA;i.flags|=8192}}function Nm(i,c){c!==null&&(i.flags|=4),i.flags&16384&&(c=i.tag!==22?Pr():536870912,i.lanes|=c,Yc|=c)}function ef(i,c){if(!on)switch(i.tailMode){case"hidden":c=i.tail;for(var f=null;c!==null;)c.alternate!==null&&(f=c),c=c.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?c||i.tail===null?i.tail=null:i.tail.sibling=null:m.sibling=null}}function Vn(i){var c=i.alternate!==null&&i.alternate.child===i.child,f=0,m=0;if(c)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,c}function v7(i,c,f){var m=c.pendingProps;switch(nv(c),c.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vn(c),null;case 1:return Vn(c),null;case 3:return f=c.stateNode,m=null,i!==null&&(m=i.memoizedState.cache),c.memoizedState.cache!==m&&(c.flags|=2048),Ni(xr),qe(),f.pendingContext&&(f.context=f.pendingContext,f.pendingContext=null),(i===null||i.child===null)&&(Fd(c)?Fi(c):i===null||i.memoizedState.isDehydrated&&(c.flags&256)===0||(c.flags|=1024,lA())),Vn(c),null;case 26:return f=c.memoizedState,i===null?(Fi(c),f!==null?(Vn(c),R2(c,f)):(Vn(c),c.flags&=-16777217)):f?f!==i.memoizedState?(Fi(c),Vn(c),R2(c,f)):(Vn(c),c.flags&=-16777217):(i.memoizedProps!==m&&Fi(c),Vn(c),c.flags&=-16777217),null;case 27:Oe(c),f=oe.current;var E=c.type;if(i!==null&&c.stateNode!=null)i.memoizedProps!==m&&Fi(c);else{if(!m){if(c.stateNode===null)throw Error(r(166));return Vn(c),null}i=re.current,Fd(c)?iA(c):(i=Rk(E,m,f),c.stateNode=i,Fi(c))}return Vn(c),null;case 5:if(Oe(c),f=c.type,i!==null&&c.stateNode!=null)i.memoizedProps!==m&&Fi(c);else{if(!m){if(c.stateNode===null)throw Error(r(166));return Vn(c),null}if(i=re.current,Fd(c))iA(c);else{switch(E=qm(oe.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[Ee]=c,i[Ae]=m;e:for(E=c.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===c)break e;for(;E.sibling===null;){if(E.return===null||E.return===c)break e;E=E.return}E.sibling.return=E.return,E=E.sibling}c.stateNode=i;e:switch(Br(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&&Fi(c)}}return Vn(c),c.flags&=-16777217,null;case 6:if(i&&c.stateNode!=null)i.memoizedProps!==m&&Fi(c);else{if(typeof m!="string"&&c.stateNode===null)throw Error(r(166));if(i=oe.current,Fd(c)){if(i=c.stateNode,f=c.memoizedProps,m=null,E=no,E!==null)switch(E.tag){case 27:case 5:m=E.memoizedProps}i[Ee]=c,i=!!(i.nodeValue===f||m!==null&&m.suppressHydrationWarning===!0||Sk(i.nodeValue,f)),i||bl(c)}else i=qm(i).createTextNode(m),i[Ee]=c,c.stateNode=i}return Vn(c),null;case 13:if(m=c.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(E=Fd(c),m!==null&&m.dehydrated!==null){if(i===null){if(!E)throw Error(r(318));if(E=c.memoizedState,E=E!==null?E.dehydrated:null,!E)throw Error(r(317));E[Ee]=c}else Bd(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;Vn(c),E=!1}else E=lA(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=E),E=!0;if(!E)return c.flags&256?(Li(c),c):(Li(c),null)}if(Li(c),(c.flags&128)!==0)return c.lanes=f,c;if(f=m!==null,i=i!==null&&i.memoizedState!==null,f){m=c.child,E=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(E=m.alternate.memoizedState.cachePool.pool);var A=null;m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(A=m.memoizedState.cachePool.pool),A!==E&&(m.flags|=2048)}return f!==i&&f&&(c.child.flags|=8192),Nm(c,c.updateQueue),Vn(c),null;case 4:return qe(),i===null&&h1(c.stateNode.containerInfo),Vn(c),null;case 10:return Ni(c.type),Vn(c),null;case 19:if(X(Tr),E=c.memoizedState,E===null)return Vn(c),null;if(m=(c.flags&128)!==0,A=E.rendering,A===null)if(m)ef(E,!1);else{if(Kn!==0||i!==null&&(i.flags&128)!==0)for(i=c.child;i!==null;){if(A=wm(i),A!==null){for(c.flags|=128,ef(E,!1),i=A.updateQueue,c.updateQueue=i,Nm(c,i),c.subtreeFlags=0,i=f,f=c.child;f!==null;)oA(f,i),f=f.sibling;return P(Tr,Tr.current&1|2),c.child}i=i.sibling}E.tail!==null&&He()>Mm&&(c.flags|=128,m=!0,ef(E,!1),c.lanes=4194304)}else{if(!m)if(i=wm(A),i!==null){if(c.flags|=128,m=!0,i=i.updateQueue,c.updateQueue=i,Nm(c,i),ef(E,!0),E.tail===null&&E.tailMode==="hidden"&&!A.alternate&&!on)return Vn(c),null}else 2*He()-E.renderingStartTime>Mm&&f!==536870912&&(c.flags|=128,m=!0,ef(E,!1),c.lanes=4194304);E.isBackwards?(A.sibling=c.child,c.child=A):(i=E.last,i!==null?i.sibling=A:c.child=A,E.last=A)}return E.tail!==null?(c=E.tail,E.rendering=c,E.tail=c.sibling,E.renderingStartTime=He(),c.sibling=null,i=Tr.current,P(Tr,m?i&1|2:i&1),c):(Vn(c),null);case 22:case 23:return Li(c),gv(),m=c.memoizedState!==null,i!==null?i.memoizedState!==null!==m&&(c.flags|=8192):m&&(c.flags|=8192),m?(f&536870912)!==0&&(c.flags&128)===0&&(Vn(c),c.subtreeFlags&6&&(c.flags|=8192)):Vn(c),f=c.updateQueue,f!==null&&Nm(c,f.retryQueue),f=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(f=i.memoizedState.cachePool.pool),m=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(m=c.memoizedState.cachePool.pool),m!==f&&(c.flags|=2048),i!==null&&X(xl),null;case 24:return f=null,i!==null&&(f=i.memoizedState.cache),c.memoizedState.cache!==f&&(c.flags|=2048),Ni(xr),Vn(c),null;case 25:return null;case 30:return null}throw Error(r(156,c.tag))}function E7(i,c){switch(nv(c),c.tag){case 1:return i=c.flags,i&65536?(c.flags=i&-65537|128,c):null;case 3:return Ni(xr),qe(),i=c.flags,(i&65536)!==0&&(i&128)===0?(c.flags=i&-65537|128,c):null;case 26:case 27:case 5:return Oe(c),null;case 13:if(Li(c),i=c.memoizedState,i!==null&&i.dehydrated!==null){if(c.alternate===null)throw Error(r(340));Bd()}return i=c.flags,i&65536?(c.flags=i&-65537|128,c):null;case 19:return X(Tr),null;case 4:return qe(),null;case 10:return Ni(c.type),null;case 22:case 23:return Li(c),gv(),i!==null&&X(xl),i=c.flags,i&65536?(c.flags=i&-65537|128,c):null;case 24:return Ni(xr),null;case 25:return null;default:return null}}function I2(i,c){switch(nv(c),c.tag){case 3:Ni(xr),qe();break;case 26:case 27:case 5:Oe(c);break;case 4:qe();break;case 13:Li(c);break;case 19:X(Tr);break;case 10:Ni(c.type);break;case 22:case 23:Li(c),gv(),i!==null&&X(xl);break;case 24:Ni(xr)}}function tf(i,c){try{var f=c.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 A=f.create,L=f.inst;m=A(),L.destroy=m}f=f.next}while(f!==E)}}catch(j){xn(c,c.return,j)}}function vs(i,c,f){try{var m=c.updateQueue,E=m!==null?m.lastEffect:null;if(E!==null){var A=E.next;m=A;do{if((m.tag&i)===i){var L=m.inst,j=L.destroy;if(j!==void 0){L.destroy=void 0,E=c;var J=f,pe=j;try{pe()}catch(ke){xn(E,J,ke)}}}m=m.next}while(m!==A)}}catch(ke){xn(c,c.return,ke)}}function O2(i){var c=i.updateQueue;if(c!==null){var f=i.stateNode;try{vA(c,f)}catch(m){xn(i,i.return,m)}}}function N2(i,c,f){f.props=Sl(i.type,i.memoizedProps),f.state=i.memoizedState;try{f.componentWillUnmount()}catch(m){xn(i,c,m)}}function nf(i,c){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){xn(i,c,E)}}function Wa(i,c){var f=i.ref,m=i.refCleanup;if(f!==null)if(typeof m=="function")try{m()}catch(E){xn(i,c,E)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof f=="function")try{f(null)}catch(E){xn(i,c,E)}else f.current=null}function P2(i){var c=i.type,f=i.memoizedProps,m=i.stateNode;try{e:switch(c){case"button":case"input":case"select":case"textarea":f.autoFocus&&m.focus();break e;case"img":f.src?m.src=f.src:f.srcSet&&(m.srcset=f.srcSet)}}catch(E){xn(i,i.return,E)}}function Vv(i,c,f){try{var m=i.stateNode;H7(m,i.type,f,c),m[Ae]=c}catch(E){xn(i,i.return,E)}}function L2(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&ks(i.type)||i.tag===4}function Gv(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||L2(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 qv(i,c,f){var m=i.tag;if(m===5||m===6)i=i.stateNode,c?(f.nodeType===9?f.body:f.nodeName==="HTML"?f.ownerDocument.body:f).insertBefore(i,c):(c=f.nodeType===9?f.body:f.nodeName==="HTML"?f.ownerDocument.body:f,c.appendChild(i),f=f._reactRootContainer,f!=null||c.onclick!==null||(c.onclick=Gm));else if(m!==4&&(m===27&&ks(i.type)&&(f=i.stateNode,c=null),i=i.child,i!==null))for(qv(i,c,f),i=i.sibling;i!==null;)qv(i,c,f),i=i.sibling}function Pm(i,c,f){var m=i.tag;if(m===5||m===6)i=i.stateNode,c?f.insertBefore(i,c):f.appendChild(i);else if(m!==4&&(m===27&&ks(i.type)&&(f=i.stateNode),i=i.child,i!==null))for(Pm(i,c,f),i=i.sibling;i!==null;)Pm(i,c,f),i=i.sibling}function M2(i){var c=i.stateNode,f=i.memoizedProps;try{for(var m=i.type,E=c.attributes;E.length;)c.removeAttributeNode(E[0]);Br(c,m,f),c[Ee]=i,c[Ae]=f}catch(A){xn(i,i.return,A)}}var Bi=!1,ar=!1,Wv=!1,F2=typeof WeakSet=="function"?WeakSet:Set,wr=null;function x7(i,c){if(i=i.containerInfo,y1=Zm,i=Y_(i),Gb(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,A=m.focusNode;m=m.focusOffset;try{f.nodeType,A.nodeType}catch{f=null;break e}var L=0,j=-1,J=-1,pe=0,ke=0,Ie=i,me=null;t:for(;;){for(var ge;Ie!==f||E!==0&&Ie.nodeType!==3||(j=L+E),Ie!==A||m!==0&&Ie.nodeType!==3||(J=L+m),Ie.nodeType===3&&(L+=Ie.nodeValue.length),(ge=Ie.firstChild)!==null;)me=Ie,Ie=ge;for(;;){if(Ie===i)break t;if(me===f&&++pe===E&&(j=L),me===A&&++ke===m&&(J=L),(ge=Ie.nextSibling)!==null)break;Ie=me,me=Ie.parentNode}Ie=ge}f=j===-1||J===-1?null:{start:j,end:J}}else f=null}f=f||{start:0,end:0}}else f=null;for(b1={focusedElem:i,selectionRange:f},Zm=!1,wr=c;wr!==null;)if(c=wr,i=c.child,(c.subtreeFlags&1024)!==0&&i!==null)i.return=c,wr=i;else for(;wr!==null;){switch(c=wr,A=c.alternate,i=c.flags,c.tag){case 0:break;case 11:case 15:break;case 1:if((i&1024)!==0&&A!==null){i=void 0,f=c,E=A.memoizedProps,A=A.memoizedState,m=f.stateNode;try{var kt=Sl(f.type,E,f.elementType===f.type);i=m.getSnapshotBeforeUpdate(kt,A),m.__reactInternalSnapshotBeforeUpdate=i}catch(xt){xn(f,f.return,xt)}}break;case 3:if((i&1024)!==0){if(i=c.stateNode.containerInfo,f=i.nodeType,f===9)x1(i);else if(f===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":x1(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=c.sibling,i!==null){i.return=c.return,wr=i;break}wr=c.return}}function B2(i,c,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,c===null)try{i.componentDidMount()}catch(L){xn(f,f.return,L)}else{var E=Sl(f.type,c.memoizedProps);c=c.memoizedState;try{i.componentDidUpdate(E,c,i.__reactInternalSnapshotBeforeUpdate)}catch(L){xn(f,f.return,L)}}m&64&&O2(f),m&512&&nf(f,f.return);break;case 3:if(Es(i,f),m&64&&(i=f.updateQueue,i!==null)){if(c=null,f.child!==null)switch(f.child.tag){case 27:case 5:c=f.child.stateNode;break;case 1:c=f.child.stateNode}try{vA(i,c)}catch(L){xn(f,f.return,L)}}break;case 27:c===null&&m&4&&M2(f);case 26:case 5:Es(i,f),c===null&&m&4&&P2(f),m&512&&nf(f,f.return);break;case 12:Es(i,f);break;case 13:Es(i,f),m&4&&H2(i,f),m&64&&(i=f.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(f=R7.bind(null,f),Y7(i,f))));break;case 22:if(m=f.memoizedState!==null||Bi,!m){c=c!==null&&c.memoizedState!==null||ar,E=Bi;var A=ar;Bi=m,(ar=c)&&!A?xs(i,f,(f.subtreeFlags&8772)!==0):Es(i,f),Bi=E,ar=A}break;case 30:break;default:Es(i,f)}}function j2(i){var c=i.alternate;c!==null&&(i.alternate=null,j2(c)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(c=i.stateNode,c!==null&&pt(c)),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 Bn=null,ho=!1;function ji(i,c,f){for(f=f.child;f!==null;)U2(i,c,f),f=f.sibling}function U2(i,c,f){if(ye&&typeof ye.onCommitFiberUnmount=="function")try{ye.onCommitFiberUnmount(de,f)}catch{}switch(f.tag){case 26:ar||Wa(f,c),ji(i,c,f),f.memoizedState?f.memoizedState.count--:f.stateNode&&(f=f.stateNode,f.parentNode.removeChild(f));break;case 27:ar||Wa(f,c);var m=Bn,E=ho;ks(f.type)&&(Bn=f.stateNode,ho=!1),ji(i,c,f),ff(f.stateNode),Bn=m,ho=E;break;case 5:ar||Wa(f,c);case 6:if(m=Bn,E=ho,Bn=null,ji(i,c,f),Bn=m,ho=E,Bn!==null)if(ho)try{(Bn.nodeType===9?Bn.body:Bn.nodeName==="HTML"?Bn.ownerDocument.body:Bn).removeChild(f.stateNode)}catch(A){xn(f,c,A)}else try{Bn.removeChild(f.stateNode)}catch(A){xn(f,c,A)}break;case 18:Bn!==null&&(ho?(i=Bn,wk(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,f.stateNode),Ef(i)):wk(Bn,f.stateNode));break;case 4:m=Bn,E=ho,Bn=f.stateNode.containerInfo,ho=!0,ji(i,c,f),Bn=m,ho=E;break;case 0:case 11:case 14:case 15:ar||vs(2,f,c),ar||vs(4,f,c),ji(i,c,f);break;case 1:ar||(Wa(f,c),m=f.stateNode,typeof m.componentWillUnmount=="function"&&N2(f,c,m)),ji(i,c,f);break;case 21:ji(i,c,f);break;case 22:ar=(m=ar)||f.memoizedState!==null,ji(i,c,f),ar=m;break;default:ji(i,c,f)}}function H2(i,c){if(c.memoizedState===null&&(i=c.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{Ef(i)}catch(f){xn(c,c.return,f)}}function T7(i){switch(i.tag){case 13:case 19:var c=i.stateNode;return c===null&&(c=i.stateNode=new F2),c;case 22:return i=i.stateNode,c=i._retryCache,c===null&&(c=i._retryCache=new F2),c;default:throw Error(r(435,i.tag))}}function Yv(i,c){var f=T7(i);c.forEach(function(m){var E=I7.bind(null,i,m);f.has(m)||(f.add(m),m.then(E,E))})}function Oo(i,c){var f=c.deletions;if(f!==null)for(var m=0;m<f.length;m++){var E=f[m],A=i,L=c,j=L;e:for(;j!==null;){switch(j.tag){case 27:if(ks(j.type)){Bn=j.stateNode,ho=!1;break e}break;case 5:Bn=j.stateNode,ho=!1;break e;case 3:case 4:Bn=j.stateNode.containerInfo,ho=!0;break e}j=j.return}if(Bn===null)throw Error(r(160));U2(A,L,E),Bn=null,ho=!1,A=E.alternate,A!==null&&(A.return=null),E.return=null}if(c.subtreeFlags&13878)for(c=c.child;c!==null;)z2(c,i),c=c.sibling}var Da=null;function z2(i,c){var f=i.alternate,m=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:Oo(c,i),No(i),m&4&&(vs(3,i,i.return),tf(3,i),vs(5,i,i.return));break;case 1:Oo(c,i),No(i),m&512&&(ar||f===null||Wa(f,f.return)),m&64&&Bi&&(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=Da;if(Oo(c,i),No(i),m&512&&(ar||f===null||Wa(f,f.return)),m&4){var A=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":A=E.getElementsByTagName("title")[0],(!A||A[rt]||A[Ee]||A.namespaceURI==="http://www.w3.org/2000/svg"||A.hasAttribute("itemprop"))&&(A=E.createElement(m),E.head.insertBefore(A,E.querySelector("head > title"))),Br(A,m,f),A[Ee]=i,Lt(A),m=A;break e;case"link":var L=Mk("link","href",E).get(m+(f.href||""));if(L){for(var j=0;j<L.length;j++)if(A=L[j],A.getAttribute("href")===(f.href==null||f.href===""?null:f.href)&&A.getAttribute("rel")===(f.rel==null?null:f.rel)&&A.getAttribute("title")===(f.title==null?null:f.title)&&A.getAttribute("crossorigin")===(f.crossOrigin==null?null:f.crossOrigin)){L.splice(j,1);break t}}A=E.createElement(m),Br(A,m,f),E.head.appendChild(A);break;case"meta":if(L=Mk("meta","content",E).get(m+(f.content||""))){for(j=0;j<L.length;j++)if(A=L[j],A.getAttribute("content")===(f.content==null?null:""+f.content)&&A.getAttribute("name")===(f.name==null?null:f.name)&&A.getAttribute("property")===(f.property==null?null:f.property)&&A.getAttribute("http-equiv")===(f.httpEquiv==null?null:f.httpEquiv)&&A.getAttribute("charset")===(f.charSet==null?null:f.charSet)){L.splice(j,1);break t}}A=E.createElement(m),Br(A,m,f),E.head.appendChild(A);break;default:throw Error(r(468,m))}A[Ee]=i,Lt(A),m=A}i.stateNode=m}else Fk(E,i.type,i.stateNode);else i.stateNode=Lk(E,m,i.memoizedProps);else A!==m?(A===null?f.stateNode!==null&&(f=f.stateNode,f.parentNode.removeChild(f)):A.count--,m===null?Fk(E,i.type,i.stateNode):Lk(E,m,i.memoizedProps)):m===null&&i.stateNode!==null&&Vv(i,i.memoizedProps,f.memoizedProps)}break;case 27:Oo(c,i),No(i),m&512&&(ar||f===null||Wa(f,f.return)),f!==null&&m&4&&Vv(i,i.memoizedProps,f.memoizedProps);break;case 5:if(Oo(c,i),No(i),m&512&&(ar||f===null||Wa(f,f.return)),i.flags&32){E=i.stateNode;try{Ac(E,"")}catch(ge){xn(i,i.return,ge)}}m&4&&i.stateNode!=null&&(E=i.memoizedProps,Vv(i,E,f!==null?f.memoizedProps:E)),m&1024&&(Wv=!0);break;case 6:if(Oo(c,i),No(i),m&4){if(i.stateNode===null)throw Error(r(162));m=i.memoizedProps,f=i.stateNode;try{f.nodeValue=m}catch(ge){xn(i,i.return,ge)}}break;case 3:if(Qm=null,E=Da,Da=Wm(c.containerInfo),Oo(c,i),Da=E,No(i),m&4&&f!==null&&f.memoizedState.isDehydrated)try{Ef(c.containerInfo)}catch(ge){xn(i,i.return,ge)}Wv&&(Wv=!1,$2(i));break;case 4:m=Da,Da=Wm(i.stateNode.containerInfo),Oo(c,i),No(i),Da=m;break;case 12:Oo(c,i),No(i);break;case 13:Oo(c,i),No(i),i.child.flags&8192&&i.memoizedState!==null!=(f!==null&&f.memoizedState!==null)&&(e1=He()),m&4&&(m=i.updateQueue,m!==null&&(i.updateQueue=null,Yv(i,m)));break;case 22:E=i.memoizedState!==null;var J=f!==null&&f.memoizedState!==null,pe=Bi,ke=ar;if(Bi=pe||E,ar=ke||J,Oo(c,i),ar=ke,Bi=pe,No(i),m&8192)e:for(c=i.stateNode,c._visibility=E?c._visibility&-2:c._visibility|1,E&&(f===null||J||Bi||ar||Cl(i)),f=null,c=i;;){if(c.tag===5||c.tag===26){if(f===null){J=f=c;try{if(A=J.stateNode,E)L=A.style,typeof L.setProperty=="function"?L.setProperty("display","none","important"):L.display="none";else{j=J.stateNode;var Ie=J.memoizedProps.style,me=Ie!=null&&Ie.hasOwnProperty("display")?Ie.display:null;j.style.display=me==null||typeof me=="boolean"?"":(""+me).trim()}}catch(ge){xn(J,J.return,ge)}}}else if(c.tag===6){if(f===null){J=c;try{J.stateNode.nodeValue=E?"":J.memoizedProps}catch(ge){xn(J,J.return,ge)}}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===i)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===i)break e;for(;c.sibling===null;){if(c.return===null||c.return===i)break e;f===c&&(f=null),c=c.return}f===c&&(f=null),c.sibling.return=c.return,c=c.sibling}m&4&&(m=i.updateQueue,m!==null&&(f=m.retryQueue,f!==null&&(m.retryQueue=null,Yv(i,f))));break;case 19:Oo(c,i),No(i),m&4&&(m=i.updateQueue,m!==null&&(i.updateQueue=null,Yv(i,m)));break;case 30:break;case 21:break;default:Oo(c,i),No(i)}}function No(i){var c=i.flags;if(c&2){try{for(var f,m=i.return;m!==null;){if(L2(m)){f=m;break}m=m.return}if(f==null)throw Error(r(160));switch(f.tag){case 27:var E=f.stateNode,A=Gv(i);Pm(i,A,E);break;case 5:var L=f.stateNode;f.flags&32&&(Ac(L,""),f.flags&=-33);var j=Gv(i);Pm(i,j,L);break;case 3:case 4:var J=f.stateNode.containerInfo,pe=Gv(i);qv(i,pe,J);break;default:throw Error(r(161))}}catch(ke){xn(i,i.return,ke)}i.flags&=-3}c&4096&&(i.flags&=-4097)}function $2(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var c=i;$2(c),c.tag===5&&c.flags&1024&&c.stateNode.reset(),i=i.sibling}}function Es(i,c){if(c.subtreeFlags&8772)for(c=c.child;c!==null;)B2(i,c.alternate,c),c=c.sibling}function Cl(i){for(i=i.child;i!==null;){var c=i;switch(c.tag){case 0:case 11:case 14:case 15:vs(4,c,c.return),Cl(c);break;case 1:Wa(c,c.return);var f=c.stateNode;typeof f.componentWillUnmount=="function"&&N2(c,c.return,f),Cl(c);break;case 27:ff(c.stateNode);case 26:case 5:Wa(c,c.return),Cl(c);break;case 22:c.memoizedState===null&&Cl(c);break;case 30:Cl(c);break;default:Cl(c)}i=i.sibling}}function xs(i,c,f){for(f=f&&(c.subtreeFlags&8772)!==0,c=c.child;c!==null;){var m=c.alternate,E=i,A=c,L=A.flags;switch(A.tag){case 0:case 11:case 15:xs(E,A,f),tf(4,A);break;case 1:if(xs(E,A,f),m=A,E=m.stateNode,typeof E.componentDidMount=="function")try{E.componentDidMount()}catch(pe){xn(m,m.return,pe)}if(m=A,E=m.updateQueue,E!==null){var j=m.stateNode;try{var J=E.shared.hiddenCallbacks;if(J!==null)for(E.shared.hiddenCallbacks=null,E=0;E<J.length;E++)bA(J[E],j)}catch(pe){xn(m,m.return,pe)}}f&&L&64&&O2(A),nf(A,A.return);break;case 27:M2(A);case 26:case 5:xs(E,A,f),f&&m===null&&L&4&&P2(A),nf(A,A.return);break;case 12:xs(E,A,f);break;case 13:xs(E,A,f),f&&L&4&&H2(E,A);break;case 22:A.memoizedState===null&&xs(E,A,f),nf(A,A.return);break;case 30:break;default:xs(E,A,f)}c=c.sibling}}function Qv(i,c){var f=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(f=i.memoizedState.cachePool.pool),i=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(i=c.memoizedState.cachePool.pool),i!==f&&(i!=null&&i.refCount++,f!=null&&Hd(f))}function Kv(i,c){i=null,c.alternate!==null&&(i=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==i&&(c.refCount++,i!=null&&Hd(i))}function Ya(i,c,f,m){if(c.subtreeFlags&10256)for(c=c.child;c!==null;)V2(i,c,f,m),c=c.sibling}function V2(i,c,f,m){var E=c.flags;switch(c.tag){case 0:case 11:case 15:Ya(i,c,f,m),E&2048&&tf(9,c);break;case 1:Ya(i,c,f,m);break;case 3:Ya(i,c,f,m),E&2048&&(i=null,c.alternate!==null&&(i=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==i&&(c.refCount++,i!=null&&Hd(i)));break;case 12:if(E&2048){Ya(i,c,f,m),i=c.stateNode;try{var A=c.memoizedProps,L=A.id,j=A.onPostCommit;typeof j=="function"&&j(L,c.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(J){xn(c,c.return,J)}}else Ya(i,c,f,m);break;case 13:Ya(i,c,f,m);break;case 23:break;case 22:A=c.stateNode,L=c.alternate,c.memoizedState!==null?A._visibility&2?Ya(i,c,f,m):rf(i,c):A._visibility&2?Ya(i,c,f,m):(A._visibility|=2,Gc(i,c,f,m,(c.subtreeFlags&10256)!==0)),E&2048&&Qv(L,c);break;case 24:Ya(i,c,f,m),E&2048&&Kv(c.alternate,c);break;default:Ya(i,c,f,m)}}function Gc(i,c,f,m,E){for(E=E&&(c.subtreeFlags&10256)!==0,c=c.child;c!==null;){var A=i,L=c,j=f,J=m,pe=L.flags;switch(L.tag){case 0:case 11:case 15:Gc(A,L,j,J,E),tf(8,L);break;case 23:break;case 22:var ke=L.stateNode;L.memoizedState!==null?ke._visibility&2?Gc(A,L,j,J,E):rf(A,L):(ke._visibility|=2,Gc(A,L,j,J,E)),E&&pe&2048&&Qv(L.alternate,L);break;case 24:Gc(A,L,j,J,E),E&&pe&2048&&Kv(L.alternate,L);break;default:Gc(A,L,j,J,E)}c=c.sibling}}function rf(i,c){if(c.subtreeFlags&10256)for(c=c.child;c!==null;){var f=i,m=c,E=m.flags;switch(m.tag){case 22:rf(f,m),E&2048&&Qv(m.alternate,m);break;case 24:rf(f,m),E&2048&&Kv(m.alternate,m);break;default:rf(f,m)}c=c.sibling}}var of=8192;function qc(i){if(i.subtreeFlags&of)for(i=i.child;i!==null;)G2(i),i=i.sibling}function G2(i){switch(i.tag){case 26:qc(i),i.flags&of&&i.memoizedState!==null&&sF(Da,i.memoizedState,i.memoizedProps);break;case 5:qc(i);break;case 3:case 4:var c=Da;Da=Wm(i.stateNode.containerInfo),qc(i),Da=c;break;case 22:i.memoizedState===null&&(c=i.alternate,c!==null&&c.memoizedState!==null?(c=of,of=16777216,qc(i),of=c):qc(i));break;default:qc(i)}}function q2(i){var c=i.alternate;if(c!==null&&(i=c.child,i!==null)){c.child=null;do c=i.sibling,i.sibling=null,i=c;while(i!==null)}}function af(i){var c=i.deletions;if((i.flags&16)!==0){if(c!==null)for(var f=0;f<c.length;f++){var m=c[f];wr=m,Y2(m,i)}q2(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)W2(i),i=i.sibling}function W2(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 c=i.stateNode;i.memoizedState!==null&&c._visibility&2&&(i.return===null||i.return.tag!==13)?(c._visibility&=-3,Lm(i)):af(i);break;default:af(i)}}function Lm(i){var c=i.deletions;if((i.flags&16)!==0){if(c!==null)for(var f=0;f<c.length;f++){var m=c[f];wr=m,Y2(m,i)}q2(i)}for(i=i.child;i!==null;){switch(c=i,c.tag){case 0:case 11:case 15:vs(8,c,c.return),Lm(c);break;case 22:f=c.stateNode,f._visibility&2&&(f._visibility&=-3,Lm(c));break;default:Lm(c)}i=i.sibling}}function Y2(i,c){for(;wr!==null;){var f=wr;switch(f.tag){case 0:case 11:case 15:vs(8,f,c);break;case 23:case 22:if(f.memoizedState!==null&&f.memoizedState.cachePool!==null){var m=f.memoizedState.cachePool.pool;m!=null&&m.refCount++}break;case 24:Hd(f.memoizedState.cache)}if(m=f.child,m!==null)m.return=f,wr=m;else e:for(f=i;wr!==null;){m=wr;var E=m.sibling,A=m.return;if(j2(m),m===f){wr=null;break e}if(E!==null){E.return=A,wr=E;break e}wr=A}}}var S7={getCacheForType:function(i){var c=Vr(xr),f=c.data.get(i);return f===void 0&&(f=i(),c.data.set(i,f)),f}},C7=typeof WeakMap=="function"?WeakMap:Map,dn=0,Dn=null,Gt=null,Jt=0,fn=0,Po=null,Ts=!1,Wc=!1,Xv=!1,Ui=0,Kn=0,Ss=0,_l=0,Zv=0,oa=0,Yc=0,sf=null,mo=null,Jv=!1,e1=0,Mm=1/0,Fm=null,Cs=null,Fr=0,_s=null,Qc=null,Kc=0,t1=0,n1=null,Q2=null,lf=0,r1=null;function Lo(){if((dn&2)!==0&&Jt!==0)return Jt&-Jt;if(B.T!==null){var i=Fc;return i!==0?i:u1()}return te()}function K2(){oa===0&&(oa=(Jt&536870912)===0||on?rn():536870912);var i=ra.current;return i!==null&&(i.flags|=32),oa}function Mo(i,c,f){(i===Dn&&(fn===2||fn===9)||i.cancelPendingCommit!==null)&&(Xc(i,0),As(i,Jt,oa,!1)),qn(i,f),((dn&2)===0||i!==Dn)&&(i===Dn&&((dn&2)===0&&(_l|=f),Kn===4&&As(i,Jt,oa,!1)),Qa(i))}function X2(i,c,f){if((dn&6)!==0)throw Error(r(327));var m=!f&&(c&124)===0&&(c&i.expiredLanes)===0||tt(i,c),E=m?k7(i,c):i1(i,c,!0),A=m;do{if(E===0){Wc&&!m&&As(i,c,0,!1);break}else{if(f=i.current.alternate,A&&!_7(f)){E=i1(i,c,!1),A=!1;continue}if(E===2){if(A=c,i.errorRecoveryDisabledLanes&A)var L=0;else L=i.pendingLanes&-536870913,L=L!==0?L:L&536870912?536870912:0;if(L!==0){c=L;e:{var j=i;E=sf;var J=j.current.memoizedState.isDehydrated;if(J&&(Xc(j,L).flags|=256),L=i1(j,L,!1),L!==2){if(Xv&&!J){j.errorRecoveryDisabledLanes|=A,_l|=A,E=4;break e}A=mo,mo=E,A!==null&&(mo===null?mo=A:mo.push.apply(mo,A))}E=L}if(A=!1,E!==2)continue}}if(E===1){Xc(i,0),As(i,c,0,!0);break}e:{switch(m=i,A=E,A){case 0:case 1:throw Error(r(345));case 4:if((c&4194048)!==c)break;case 6:As(m,c,oa,!Ts);break e;case 2:mo=null;break;case 3:case 5:break;default:throw Error(r(329))}if((c&62914560)===c&&(E=e1+300-He(),10<E)){if(As(m,c,oa,!Ts),xe(m,0,!0)!==0)break e;m.timeoutHandle=Ak(Z2.bind(null,m,f,mo,Fm,Jv,c,oa,_l,Yc,Ts,A,2,-0,0),E);break e}Z2(m,f,mo,Fm,Jv,c,oa,_l,Yc,Ts,A,0,-0,0)}}break}while(!0);Qa(i)}function Z2(i,c,f,m,E,A,L,j,J,pe,ke,Ie,me,ge){if(i.timeoutHandle=-1,Ie=c.subtreeFlags,(Ie&8192||(Ie&16785408)===16785408)&&(mf={stylesheets:null,count:0,unsuspend:iF},G2(c),Ie=lF(),Ie!==null)){i.cancelPendingCommit=Ie(ak.bind(null,i,c,A,f,m,E,L,j,J,ke,1,me,ge)),As(i,A,L,!pe);return}ak(i,c,A,f,m,E,L,j,J)}function _7(i){for(var c=i;;){var f=c.tag;if((f===0||f===11||f===15)&&c.flags&16384&&(f=c.updateQueue,f!==null&&(f=f.stores,f!==null)))for(var m=0;m<f.length;m++){var E=f[m],A=E.getSnapshot;E=E.value;try{if(!Ro(A(),E))return!1}catch{return!1}}if(f=c.child,c.subtreeFlags&16384&&f!==null)f.return=c,c=f;else{if(c===i)break;for(;c.sibling===null;){if(c.return===null||c.return===i)return!0;c=c.return}c.sibling.return=c.return,c=c.sibling}}return!0}function As(i,c,f,m){c&=~Zv,c&=~_l,i.suspendedLanes|=c,i.pingedLanes&=~c,m&&(i.warmLanes|=c),m=i.expirationTimes;for(var E=c;0<E;){var A=31-Xe(E),L=1<<A;m[A]=-1,E&=~L}f!==0&&uo(i,f,c)}function Bm(){return(dn&6)===0?(cf(0),!1):!0}function o1(){if(Gt!==null){if(fn===0)var i=Gt.return;else i=Gt,Oi=vl=null,xv(i),$c=null,Zd=0,i=Gt;for(;i!==null;)I2(i.alternate,i),i=i.return;Gt=null}}function Xc(i,c){var f=i.timeoutHandle;f!==-1&&(i.timeoutHandle=-1,$7(f)),f=i.cancelPendingCommit,f!==null&&(i.cancelPendingCommit=null,f()),o1(),Dn=i,Gt=f=Di(i.current,null),Jt=c,fn=0,Po=null,Ts=!1,Wc=tt(i,c),Xv=!1,Yc=oa=Zv=_l=Ss=Kn=0,mo=sf=null,Jv=!1,(c&8)!==0&&(c|=c&32);var m=i.entangledLanes;if(m!==0)for(i=i.entanglements,m&=c;0<m;){var E=31-Xe(m),A=1<<E;c|=i[E],m&=~A}return Ui=c,im(),f}function J2(i,c){Ut=null,B.H=_m,c===$d||c===mm?(c=gA(),fn=3):c===pA?(c=gA(),fn=4):fn=c===y2?8:c!==null&&typeof c=="object"&&typeof c.then=="function"?6:1,Po=c,Gt===null&&(Kn=1,Rm(i,Jo(c,i.current)))}function ek(){var i=B.H;return B.H=_m,i===null?_m:i}function tk(){var i=B.A;return B.A=S7,i}function a1(){Kn=4,Ts||(Jt&4194048)!==Jt&&ra.current!==null||(Wc=!0),(Ss&134217727)===0&&(_l&134217727)===0||Dn===null||As(Dn,Jt,oa,!1)}function i1(i,c,f){var m=dn;dn|=2;var E=ek(),A=tk();(Dn!==i||Jt!==c)&&(Fm=null,Xc(i,c)),c=!1;var L=Kn;e:do try{if(fn!==0&&Gt!==null){var j=Gt,J=Po;switch(fn){case 8:o1(),L=6;break e;case 3:case 2:case 9:case 6:ra.current===null&&(c=!0);var pe=fn;if(fn=0,Po=null,Zc(i,j,J,pe),f&&Wc){L=0;break e}break;default:pe=fn,fn=0,Po=null,Zc(i,j,J,pe)}}A7(),L=Kn;break}catch(ke){J2(i,ke)}while(!0);return c&&i.shellSuspendCounter++,Oi=vl=null,dn=m,B.H=E,B.A=A,Gt===null&&(Dn=null,Jt=0,im()),L}function A7(){for(;Gt!==null;)nk(Gt)}function k7(i,c){var f=dn;dn|=2;var m=ek(),E=tk();Dn!==i||Jt!==c?(Fm=null,Mm=He()+500,Xc(i,c)):Wc=tt(i,c);e:do try{if(fn!==0&&Gt!==null){c=Gt;var A=Po;t:switch(fn){case 1:fn=0,Po=null,Zc(i,c,A,1);break;case 2:case 9:if(hA(A)){fn=0,Po=null,rk(c);break}c=function(){fn!==2&&fn!==9||Dn!==i||(fn=7),Qa(i)},A.then(c,c);break e;case 3:fn=7;break e;case 4:fn=5;break e;case 7:hA(A)?(fn=0,Po=null,rk(c)):(fn=0,Po=null,Zc(i,c,A,7));break;case 5:var L=null;switch(Gt.tag){case 26:L=Gt.memoizedState;case 5:case 27:var j=Gt;if(!L||Bk(L)){fn=0,Po=null;var J=j.sibling;if(J!==null)Gt=J;else{var pe=j.return;pe!==null?(Gt=pe,jm(pe)):Gt=null}break t}}fn=0,Po=null,Zc(i,c,A,5);break;case 6:fn=0,Po=null,Zc(i,c,A,6);break;case 8:o1(),Kn=6;break e;default:throw Error(r(462))}}w7();break}catch(ke){J2(i,ke)}while(!0);return Oi=vl=null,B.H=m,B.A=E,dn=f,Gt!==null?0:(Dn=null,Jt=0,im(),Kn)}function w7(){for(;Gt!==null&&!yt();)nk(Gt)}function nk(i){var c=D2(i.alternate,i,Ui);i.memoizedProps=i.pendingProps,c===null?jm(i):Gt=c}function rk(i){var c=i,f=c.alternate;switch(c.tag){case 15:case 0:c=S2(f,c,c.pendingProps,c.type,void 0,Jt);break;case 11:c=S2(f,c,c.pendingProps,c.type.render,c.ref,Jt);break;case 5:xv(c);default:I2(f,c),c=Gt=oA(c,Ui),c=D2(f,c,Ui)}i.memoizedProps=i.pendingProps,c===null?jm(i):Gt=c}function Zc(i,c,f,m){Oi=vl=null,xv(c),$c=null,Zd=0;var E=c.return;try{if(y7(i,E,c,f,Jt)){Kn=1,Rm(i,Jo(f,i.current)),Gt=null;return}}catch(A){if(E!==null)throw Gt=E,A;Kn=1,Rm(i,Jo(f,i.current)),Gt=null;return}c.flags&32768?(on||m===1?i=!0:Wc||(Jt&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))),ok(c,i)):jm(c)}function jm(i){var c=i;do{if((c.flags&32768)!==0){ok(c,Ts);return}i=c.return;var f=v7(c.alternate,c,Ui);if(f!==null){Gt=f;return}if(c=c.sibling,c!==null){Gt=c;return}Gt=c=i}while(c!==null);Kn===0&&(Kn=5)}function ok(i,c){do{var f=E7(i.alternate,i);if(f!==null){f.flags&=32767,Gt=f;return}if(f=i.return,f!==null&&(f.flags|=32768,f.subtreeFlags=0,f.deletions=null),!c&&(i=i.sibling,i!==null)){Gt=i;return}Gt=i=f}while(i!==null);Kn=6,Gt=null}function ak(i,c,f,m,E,A,L,j,J){i.cancelPendingCommit=null;do Um();while(Fr!==0);if((dn&6)!==0)throw Error(r(327));if(c!==null){if(c===i.current)throw Error(r(177));if(A=c.lanes|c.childLanes,A|=Kb,ur(i,f,A,L,j,J),i===Dn&&(Gt=Dn=null,Jt=0),Qc=c,_s=i,Kc=f,t1=A,n1=E,Q2=m,(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,O7(ze,function(){return uk(),null})):(i.callbackNode=null,i.callbackPriority=0),m=(c.flags&13878)!==0,(c.subtreeFlags&13878)!==0||m){m=B.T,B.T=null,E=K.p,K.p=2,L=dn,dn|=4;try{x7(i,c,f)}finally{dn=L,K.p=E,B.T=m}}Fr=1,ik(),sk(),lk()}}function ik(){if(Fr===1){Fr=0;var i=_s,c=Qc,f=(c.flags&13878)!==0;if((c.subtreeFlags&13878)!==0||f){f=B.T,B.T=null;var m=K.p;K.p=2;var E=dn;dn|=4;try{z2(c,i);var A=b1,L=Y_(i.containerInfo),j=A.focusedElem,J=A.selectionRange;if(L!==j&&j&&j.ownerDocument&&W_(j.ownerDocument.documentElement,j)){if(J!==null&&Gb(j)){var pe=J.start,ke=J.end;if(ke===void 0&&(ke=pe),"selectionStart"in j)j.selectionStart=pe,j.selectionEnd=Math.min(ke,j.value.length);else{var Ie=j.ownerDocument||document,me=Ie&&Ie.defaultView||window;if(me.getSelection){var ge=me.getSelection(),kt=j.textContent.length,xt=Math.min(J.start,kt),gn=J.end===void 0?xt:Math.min(J.end,kt);!ge.extend&&xt>gn&&(L=gn,gn=xt,xt=L);var le=q_(j,xt),se=q_(j,gn);if(le&&se&&(ge.rangeCount!==1||ge.anchorNode!==le.node||ge.anchorOffset!==le.offset||ge.focusNode!==se.node||ge.focusOffset!==se.offset)){var ue=Ie.createRange();ue.setStart(le.node,le.offset),ge.removeAllRanges(),xt>gn?(ge.addRange(ue),ge.extend(se.node,se.offset)):(ue.setEnd(se.node,se.offset),ge.addRange(ue))}}}}for(Ie=[],ge=j;ge=ge.parentNode;)ge.nodeType===1&&Ie.push({element:ge,left:ge.scrollLeft,top:ge.scrollTop});for(typeof j.focus=="function"&&j.focus(),j=0;j<Ie.length;j++){var De=Ie[j];De.element.scrollLeft=De.left,De.element.scrollTop=De.top}}Zm=!!y1,b1=y1=null}finally{dn=E,K.p=m,B.T=f}}i.current=c,Fr=2}}function sk(){if(Fr===2){Fr=0;var i=_s,c=Qc,f=(c.flags&8772)!==0;if((c.subtreeFlags&8772)!==0||f){f=B.T,B.T=null;var m=K.p;K.p=2;var E=dn;dn|=4;try{B2(i,c.alternate,c)}finally{dn=E,K.p=m,B.T=f}}Fr=3}}function lk(){if(Fr===4||Fr===3){Fr=0,_t();var i=_s,c=Qc,f=Kc,m=Q2;(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?Fr=5:(Fr=0,Qc=_s=null,ck(i,i.pendingLanes));var E=i.pendingLanes;if(E===0&&(Cs=null),bt(f),c=c.stateNode,ye&&typeof ye.onCommitFiberRoot=="function")try{ye.onCommitFiberRoot(de,c,void 0,(c.current.flags&128)===128)}catch{}if(m!==null){c=B.T,E=K.p,K.p=2,B.T=null;try{for(var A=i.onRecoverableError,L=0;L<m.length;L++){var j=m[L];A(j.value,{componentStack:j.stack})}}finally{B.T=c,K.p=E}}(Kc&3)!==0&&Um(),Qa(i),E=i.pendingLanes,(f&4194090)!==0&&(E&42)!==0?i===r1?lf++:(lf=0,r1=i):lf=0,cf(0)}}function ck(i,c){(i.pooledCacheLanes&=c)===0&&(c=i.pooledCache,c!=null&&(i.pooledCache=null,Hd(c)))}function Um(i){return ik(),sk(),lk(),uk()}function uk(){if(Fr!==5)return!1;var i=_s,c=t1;t1=0;var f=bt(Kc),m=B.T,E=K.p;try{K.p=32>f?32:f,B.T=null,f=n1,n1=null;var A=_s,L=Kc;if(Fr=0,Qc=_s=null,Kc=0,(dn&6)!==0)throw Error(r(331));var j=dn;if(dn|=4,W2(A.current),V2(A,A.current,L,f),dn=j,cf(0,!1),ye&&typeof ye.onPostCommitFiberRoot=="function")try{ye.onPostCommitFiberRoot(de,A)}catch{}return!0}finally{K.p=E,B.T=m,ck(i,c)}}function dk(i,c,f){c=Jo(f,c),c=Lv(i.stateNode,c,2),i=ms(i,c,2),i!==null&&(qn(i,2),Qa(i))}function xn(i,c,f){if(i.tag===3)dk(i,i,f);else for(;c!==null;){if(c.tag===3){dk(c,i,f);break}else if(c.tag===1){var m=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(Cs===null||!Cs.has(m))){i=Jo(f,i),f=m2(2),m=ms(c,f,2),m!==null&&(g2(f,m,c,i),qn(m,2),Qa(m));break}}c=c.return}}function s1(i,c,f){var m=i.pingCache;if(m===null){m=i.pingCache=new C7;var E=new Set;m.set(c,E)}else E=m.get(c),E===void 0&&(E=new Set,m.set(c,E));E.has(f)||(Xv=!0,E.add(f),i=D7.bind(null,i,c,f),c.then(i,i))}function D7(i,c,f){var m=i.pingCache;m!==null&&m.delete(c),i.pingedLanes|=i.suspendedLanes&f,i.warmLanes&=~f,Dn===i&&(Jt&f)===f&&(Kn===4||Kn===3&&(Jt&62914560)===Jt&&300>He()-e1?(dn&2)===0&&Xc(i,0):Zv|=f,Yc===Jt&&(Yc=0)),Qa(i)}function fk(i,c){c===0&&(c=Pr()),i=Nc(i,c),i!==null&&(qn(i,c),Qa(i))}function R7(i){var c=i.memoizedState,f=0;c!==null&&(f=c.retryLane),fk(i,f)}function I7(i,c){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(c),fk(i,f)}function O7(i,c){return at(i,c)}var Hm=null,Jc=null,l1=!1,zm=!1,c1=!1,Al=0;function Qa(i){i!==Jc&&i.next===null&&(Jc===null?Hm=Jc=i:Jc=Jc.next=i),zm=!0,l1||(l1=!0,P7())}function cf(i,c){if(!c1&&zm){c1=!0;do for(var f=!1,m=Hm;m!==null;){if(i!==0){var E=m.pendingLanes;if(E===0)var A=0;else{var L=m.suspendedLanes,j=m.pingedLanes;A=(1<<31-Xe(42|i)+1)-1,A&=E&~(L&~j),A=A&201326741?A&201326741|1:A?A|2:0}A!==0&&(f=!0,gk(m,A))}else A=Jt,A=xe(m,m===Dn?A:0,m.cancelPendingCommit!==null||m.timeoutHandle!==-1),(A&3)===0||tt(m,A)||(f=!0,gk(m,A));m=m.next}while(f);c1=!1}}function N7(){pk()}function pk(){zm=l1=!1;var i=0;Al!==0&&(z7()&&(i=Al),Al=0);for(var c=He(),f=null,m=Hm;m!==null;){var E=m.next,A=hk(m,c);A===0?(m.next=null,f===null?Hm=E:f.next=E,E===null&&(Jc=f)):(f=m,(i!==0||(A&3)!==0)&&(zm=!0)),m=E}cf(i)}function hk(i,c){for(var f=i.suspendedLanes,m=i.pingedLanes,E=i.expirationTimes,A=i.pendingLanes&-62914561;0<A;){var L=31-Xe(A),j=1<<L,J=E[L];J===-1?((j&f)===0||(j&m)!==0)&&(E[L]=nt(j,c)):J<=c&&(i.expiredLanes|=j),A&=~j}if(c=Dn,f=Jt,f=xe(i,i===c?f:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),m=i.callbackNode,f===0||i===c&&(fn===2||fn===9)||i.cancelPendingCommit!==null)return m!==null&&m!==null&&Re(m),i.callbackNode=null,i.callbackPriority=0;if((f&3)===0||tt(i,f)){if(c=f&-f,c===i.callbackPriority)return c;switch(m!==null&&Re(m),bt(f)){case 2:case 8:f=ft;break;case 32:f=ze;break;case 268435456:f=Xt;break;default:f=ze}return m=mk.bind(null,i),f=at(f,m),i.callbackPriority=c,i.callbackNode=f,c}return m!==null&&m!==null&&Re(m),i.callbackPriority=2,i.callbackNode=null,2}function mk(i,c){if(Fr!==0&&Fr!==5)return i.callbackNode=null,i.callbackPriority=0,null;var f=i.callbackNode;if(Um()&&i.callbackNode!==f)return null;var m=Jt;return m=xe(i,i===Dn?m:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),m===0?null:(X2(i,m,c),hk(i,He()),i.callbackNode!=null&&i.callbackNode===f?mk.bind(null,i):null)}function gk(i,c){if(Um())return null;X2(i,c,!0)}function P7(){V7(function(){(dn&6)!==0?at(ct,N7):pk()})}function u1(){return Al===0&&(Al=rn()),Al}function yk(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:Jh(""+i)}function bk(i,c){var f=c.ownerDocument.createElement("input");return f.name=c.name,f.value=c.value,i.id&&f.setAttribute("form",i.id),c.parentNode.insertBefore(f,c),i=new FormData(i),f.parentNode.removeChild(f),i}function L7(i,c,f,m,E){if(c==="submit"&&f&&f.stateNode===E){var A=yk((E[Ae]||null).action),L=m.submitter;L&&(c=(c=L[Ae]||null)?yk(c.formAction):L.getAttribute("formAction"),c!==null&&(A=c,L=null));var j=new rm("action","action",null,m,E);i.push({event:j,listeners:[{instance:null,listener:function(){if(m.defaultPrevented){if(Al!==0){var J=L?bk(E,L):new FormData(E);Rv(f,{pending:!0,data:J,method:E.method,action:A},null,J)}}else typeof A=="function"&&(j.preventDefault(),J=L?bk(E,L):new FormData(E),Rv(f,{pending:!0,data:J,method:E.method,action:A},A,J))},currentTarget:E}]})}}for(var d1=0;d1<Qb.length;d1++){var f1=Qb[d1],M7=f1.toLowerCase(),F7=f1[0].toUpperCase()+f1.slice(1);wa(M7,"on"+F7)}wa(X_,"onAnimationEnd"),wa(Z_,"onAnimationIteration"),wa(J_,"onAnimationStart"),wa("dblclick","onDoubleClick"),wa("focusin","onFocus"),wa("focusout","onBlur"),wa(e7,"onTransitionRun"),wa(t7,"onTransitionStart"),wa(n7,"onTransitionCancel"),wa(eA,"onTransitionEnd"),to("onMouseEnter",["mouseout","mouseover"]),to("onMouseLeave",["mouseout","mouseover"]),to("onPointerEnter",["pointerout","pointerover"]),to("onPointerLeave",["pointerout","pointerover"]),Do("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Do("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Do("onBeforeInput",["compositionend","keypress","textInput","paste"]),Do("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Do("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Do("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(" "),B7=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(uf));function vk(i,c){c=(c&4)!==0;for(var f=0;f<i.length;f++){var m=i[f],E=m.event;m=m.listeners;e:{var A=void 0;if(c)for(var L=m.length-1;0<=L;L--){var j=m[L],J=j.instance,pe=j.currentTarget;if(j=j.listener,J!==A&&E.isPropagationStopped())break e;A=j,E.currentTarget=pe;try{A(E)}catch(ke){Dm(ke)}E.currentTarget=null,A=J}else for(L=0;L<m.length;L++){if(j=m[L],J=j.instance,pe=j.currentTarget,j=j.listener,J!==A&&E.isPropagationStopped())break e;A=j,E.currentTarget=pe;try{A(E)}catch(ke){Dm(ke)}E.currentTarget=null,A=J}}}}function qt(i,c){var f=c[Je];f===void 0&&(f=c[Je]=new Set);var m=i+"__bubble";f.has(m)||(Ek(c,i,2,!1),f.add(m))}function p1(i,c,f){var m=0;c&&(m|=4),Ek(f,i,m,c)}var $m="_reactListening"+Math.random().toString(36).slice(2);function h1(i){if(!i[$m]){i[$m]=!0,pn.forEach(function(f){f!=="selectionchange"&&(B7.has(f)||p1(f,!1,i),p1(f,!0,i))});var c=i.nodeType===9?i:i.ownerDocument;c===null||c[$m]||(c[$m]=!0,p1("selectionchange",!1,c))}}function Ek(i,c,f,m){switch(Vk(c)){case 2:var E=dF;break;case 8:E=fF;break;default:E=w1}f=E.bind(null,c,f,i),E=void 0,!Mb||c!=="touchstart"&&c!=="touchmove"&&c!=="wheel"||(E=!0),m?E!==void 0?i.addEventListener(c,f,{capture:!0,passive:E}):i.addEventListener(c,f,!0):E!==void 0?i.addEventListener(c,f,{passive:E}):i.addEventListener(c,f,!1)}function m1(i,c,f,m,E){var A=m;if((c&1)===0&&(c&2)===0&&m!==null)e:for(;;){if(m===null)return;var L=m.tag;if(L===3||L===4){var j=m.stateNode.containerInfo;if(j===E)break;if(L===4)for(L=m.return;L!==null;){var J=L.tag;if((J===3||J===4)&&L.stateNode.containerInfo===E)return;L=L.return}for(;j!==null;){if(L=jt(j),L===null)return;if(J=L.tag,J===5||J===6||J===26||J===27){m=A=L;continue e}j=j.parentNode}}m=m.return}k_(function(){var pe=A,ke=Pb(f),Ie=[];e:{var me=tA.get(i);if(me!==void 0){var ge=rm,kt=i;switch(i){case"keypress":if(tm(f)===0)break e;case"keydown":case"keyup":ge=O8;break;case"focusin":kt="focus",ge=Ub;break;case"focusout":kt="blur",ge=Ub;break;case"beforeblur":case"afterblur":ge=Ub;break;case"click":if(f.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ge=R_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ge=E8;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ge=L8;break;case X_:case Z_:case J_:ge=S8;break;case eA:ge=F8;break;case"scroll":case"scrollend":ge=b8;break;case"wheel":ge=j8;break;case"copy":case"cut":case"paste":ge=_8;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ge=O_;break;case"toggle":case"beforetoggle":ge=H8}var xt=(c&4)!==0,gn=!xt&&(i==="scroll"||i==="scrollend"),le=xt?me!==null?me+"Capture":null:me;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))),gn)break;se=se.return}0<xt.length&&(me=new ge(me,kt,null,f,ke),Ie.push({event:me,listeners:xt}))}}if((c&7)===0){e:{if(me=i==="mouseover"||i==="pointerover",ge=i==="mouseout"||i==="pointerout",me&&f!==Nb&&(kt=f.relatedTarget||f.fromElement)&&(jt(kt)||kt[Qe]))break e;if((ge||me)&&(me=ke.window===ke?ke:(me=ke.ownerDocument)?me.defaultView||me.parentWindow:window,ge?(kt=f.relatedTarget||f.toElement,ge=pe,kt=kt?jt(kt):null,kt!==null&&(gn=a(kt),xt=kt.tag,kt!==gn||xt!==5&&xt!==27&&xt!==6)&&(kt=null)):(ge=null,kt=pe),ge!==kt)){if(xt=R_,De="onMouseLeave",le="onMouseEnter",se="mouse",(i==="pointerout"||i==="pointerover")&&(xt=O_,De="onPointerLeave",le="onPointerEnter",se="pointer"),gn=ge==null?me:Wn(ge),ue=kt==null?me:Wn(kt),me=new xt(De,se+"leave",ge,f,ke),me.target=gn,me.relatedTarget=ue,De=null,jt(ke)===pe&&(xt=new xt(le,se+"enter",kt,f,ke),xt.target=ue,xt.relatedTarget=gn,De=xt),gn=De,ge&&kt)t:{for(xt=ge,le=kt,se=0,ue=xt;ue;ue=eu(ue))se++;for(ue=0,De=le;De;De=eu(De))ue++;for(;0<se-ue;)xt=eu(xt),se--;for(;0<ue-se;)le=eu(le),ue--;for(;se--;){if(xt===le||le!==null&&xt===le.alternate)break t;xt=eu(xt),le=eu(le)}xt=null}else xt=null;ge!==null&&xk(Ie,me,ge,xt,!1),kt!==null&&gn!==null&&xk(Ie,gn,kt,xt,!0)}}e:{if(me=pe?Wn(pe):window,ge=me.nodeName&&me.nodeName.toLowerCase(),ge==="select"||ge==="input"&&me.type==="file")var ot=U_;else if(B_(me))if(H_)ot=X8;else{ot=Q8;var zt=Y8}else ge=me.nodeName,!ge||ge.toLowerCase()!=="input"||me.type!=="checkbox"&&me.type!=="radio"?pe&&Ob(pe.elementType)&&(ot=U_):ot=K8;if(ot&&(ot=ot(i,pe))){j_(Ie,ot,f,ke);break e}zt&&zt(i,me,pe),i==="focusout"&&pe&&me.type==="number"&&pe.memoizedProps.value!=null&&Ib(me,"number",me.value)}switch(zt=pe?Wn(pe):window,i){case"focusin":(B_(zt)||zt.contentEditable==="true")&&(Rc=zt,qb=pe,Md=null);break;case"focusout":Md=qb=Rc=null;break;case"mousedown":Wb=!0;break;case"contextmenu":case"mouseup":case"dragend":Wb=!1,Q_(Ie,f,ke);break;case"selectionchange":if(J8)break;case"keydown":case"keyup":Q_(Ie,f,ke)}var ht;if(zb)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 Dc?M_(i,f)&&(Tt="onCompositionEnd"):i==="keydown"&&f.keyCode===229&&(Tt="onCompositionStart");Tt&&(N_&&f.locale!=="ko"&&(Dc||Tt!=="onCompositionStart"?Tt==="onCompositionEnd"&&Dc&&(ht=w_()):(ds=ke,Fb="value"in ds?ds.value:ds.textContent,Dc=!0)),zt=Vm(pe,Tt),0<zt.length&&(Tt=new I_(Tt,i,null,f,ke),Ie.push({event:Tt,listeners:zt}),ht?Tt.data=ht:(ht=F_(f),ht!==null&&(Tt.data=ht)))),(ht=$8?V8(i,f):G8(i,f))&&(Tt=Vm(pe,"onBeforeInput"),0<Tt.length&&(zt=new I_("onBeforeInput","beforeinput",null,f,ke),Ie.push({event:zt,listeners:Tt}),zt.data=ht)),L7(Ie,i,pe,f,ke)}vk(Ie,c)})}function df(i,c,f){return{instance:i,listener:c,currentTarget:f}}function Vm(i,c){for(var f=c+"Capture",m=[];i!==null;){var E=i,A=E.stateNode;if(E=E.tag,E!==5&&E!==26&&E!==27||A===null||(E=wd(i,f),E!=null&&m.unshift(df(i,E,A)),E=wd(i,c),E!=null&&m.push(df(i,E,A))),i.tag===3)return m;i=i.return}return[]}function eu(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function xk(i,c,f,m,E){for(var A=c._reactName,L=[];f!==null&&f!==m;){var j=f,J=j.alternate,pe=j.stateNode;if(j=j.tag,J!==null&&J===m)break;j!==5&&j!==26&&j!==27||pe===null||(J=pe,E?(pe=wd(f,A),pe!=null&&L.unshift(df(f,pe,J))):E||(pe=wd(f,A),pe!=null&&L.push(df(f,pe,J)))),f=f.return}L.length!==0&&i.push({event:c,listeners:L})}var j7=/\r\n?/g,U7=/\u0000|\uFFFD/g;function Tk(i){return(typeof i=="string"?i:""+i).replace(j7,`
|
|
50
|
+
`).replace(U7,"")}function Sk(i,c){return c=Tk(c),Tk(i)===c}function Gm(){}function mn(i,c,f,m,E,A){switch(f){case"children":typeof m=="string"?c==="body"||c==="textarea"&&m===""||Ac(i,m):(typeof m=="number"||typeof m=="bigint")&&c!=="body"&&Ac(i,""+m);break;case"className":ki(i,"class",m);break;case"tabIndex":ki(i,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":ki(i,f,m);break;case"style":__(i,m,A);break;case"data":if(c!=="object"){ki(i,"data",m);break}case"src":case"href":if(m===""&&(c!=="a"||f!=="href")){i.removeAttribute(f);break}if(m==null||typeof m=="function"||typeof m=="symbol"||typeof m=="boolean"){i.removeAttribute(f);break}m=Jh(""+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 A=="function"&&(f==="formAction"?(c!=="input"&&mn(i,c,"name",E.name,E,null),mn(i,c,"formEncType",E.formEncType,E,null),mn(i,c,"formMethod",E.formMethod,E,null),mn(i,c,"formTarget",E.formTarget,E,null)):(mn(i,c,"encType",E.encType,E,null),mn(i,c,"method",E.method,E,null),mn(i,c,"target",E.target,E,null)));if(m==null||typeof m=="symbol"||typeof m=="boolean"){i.removeAttribute(f);break}m=Jh(""+m),i.setAttribute(f,m);break;case"onClick":m!=null&&(i.onclick=Gm);break;case"onScroll":m!=null&&qt("scroll",i);break;case"onScrollEnd":m!=null&&qt("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=Jh(""+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":qt("beforetoggle",i),qt("toggle",i),Ai(i,"popover",m);break;case"xlinkActuate":Ht(i,"http://www.w3.org/1999/xlink","xlink:actuate",m);break;case"xlinkArcrole":Ht(i,"http://www.w3.org/1999/xlink","xlink:arcrole",m);break;case"xlinkRole":Ht(i,"http://www.w3.org/1999/xlink","xlink:role",m);break;case"xlinkShow":Ht(i,"http://www.w3.org/1999/xlink","xlink:show",m);break;case"xlinkTitle":Ht(i,"http://www.w3.org/1999/xlink","xlink:title",m);break;case"xlinkType":Ht(i,"http://www.w3.org/1999/xlink","xlink:type",m);break;case"xmlBase":Ht(i,"http://www.w3.org/XML/1998/namespace","xml:base",m);break;case"xmlLang":Ht(i,"http://www.w3.org/XML/1998/namespace","xml:lang",m);break;case"xmlSpace":Ht(i,"http://www.w3.org/XML/1998/namespace","xml:space",m);break;case"is":Ai(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=g8.get(f)||f,Ai(i,f,m))}}function g1(i,c,f,m,E,A){switch(f){case"style":__(i,m,A);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"?Ac(i,m):(typeof m=="number"||typeof m=="bigint")&&Ac(i,""+m);break;case"onScroll":m!=null&&qt("scroll",i);break;case"onScrollEnd":m!=null&&qt("scrollend",i);break;case"onClick":m!=null&&(i.onclick=Gm);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Va.hasOwnProperty(f))e:{if(f[0]==="o"&&f[1]==="n"&&(E=f.endsWith("Capture"),c=f.slice(2,E?f.length-7:void 0),A=i[Ae]||null,A=A!=null?A[f]:null,typeof A=="function"&&i.removeEventListener(c,A,E),typeof m=="function")){typeof A!="function"&&A!==null&&(f in i?i[f]=null:i.hasAttribute(f)&&i.removeAttribute(f)),i.addEventListener(c,m,E);break e}f in i?i[f]=m:m===!0?i.setAttribute(f,""):Ai(i,f,m)}}}function Br(i,c,f){switch(c){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":qt("error",i),qt("load",i);var m=!1,E=!1,A;for(A in f)if(f.hasOwnProperty(A)){var L=f[A];if(L!=null)switch(A){case"src":m=!0;break;case"srcSet":E=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,c));default:mn(i,c,A,L,f,null)}}E&&mn(i,c,"srcSet",f.srcSet,f,null),m&&mn(i,c,"src",f.src,f,null);return;case"input":qt("invalid",i);var j=A=L=E=null,J=null,pe=null;for(m in f)if(f.hasOwnProperty(m)){var ke=f[m];if(ke!=null)switch(m){case"name":E=ke;break;case"type":L=ke;break;case"checked":J=ke;break;case"defaultChecked":pe=ke;break;case"value":A=ke;break;case"defaultValue":j=ke;break;case"children":case"dangerouslySetInnerHTML":if(ke!=null)throw Error(r(137,c));break;default:mn(i,c,m,ke,f,null)}}x_(i,A,j,J,pe,L,E,!1),Xh(i);return;case"select":qt("invalid",i),m=L=A=null;for(E in f)if(f.hasOwnProperty(E)&&(j=f[E],j!=null))switch(E){case"value":A=j;break;case"defaultValue":L=j;break;case"multiple":m=j;default:mn(i,c,E,j,f,null)}c=A,f=L,i.multiple=!!m,c!=null?_c(i,!!m,c,!1):f!=null&&_c(i,!!m,f,!0);return;case"textarea":qt("invalid",i),A=E=m=null;for(L in f)if(f.hasOwnProperty(L)&&(j=f[L],j!=null))switch(L){case"value":m=j;break;case"defaultValue":E=j;break;case"children":A=j;break;case"dangerouslySetInnerHTML":if(j!=null)throw Error(r(91));break;default:mn(i,c,L,j,f,null)}S_(i,m,E,A),Xh(i);return;case"option":for(J in f)if(f.hasOwnProperty(J)&&(m=f[J],m!=null))switch(J){case"selected":i.selected=m&&typeof m!="function"&&typeof m!="symbol";break;default:mn(i,c,J,m,f,null)}return;case"dialog":qt("beforetoggle",i),qt("toggle",i),qt("cancel",i),qt("close",i);break;case"iframe":case"object":qt("load",i);break;case"video":case"audio":for(m=0;m<uf.length;m++)qt(uf[m],i);break;case"image":qt("error",i),qt("load",i);break;case"details":qt("toggle",i);break;case"embed":case"source":case"link":qt("error",i),qt("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,c));default:mn(i,c,pe,m,f,null)}return;default:if(Ob(c)){for(ke in f)f.hasOwnProperty(ke)&&(m=f[ke],m!==void 0&&g1(i,c,ke,m,f,void 0));return}}for(j in f)f.hasOwnProperty(j)&&(m=f[j],m!=null&&mn(i,c,j,m,f,null))}function H7(i,c,f,m){switch(c){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var E=null,A=null,L=null,j=null,J=null,pe=null,ke=null;for(ge in f){var Ie=f[ge];if(f.hasOwnProperty(ge)&&Ie!=null)switch(ge){case"checked":break;case"value":break;case"defaultValue":J=Ie;default:m.hasOwnProperty(ge)||mn(i,c,ge,null,m,Ie)}}for(var me in m){var ge=m[me];if(Ie=f[me],m.hasOwnProperty(me)&&(ge!=null||Ie!=null))switch(me){case"type":A=ge;break;case"name":E=ge;break;case"checked":pe=ge;break;case"defaultChecked":ke=ge;break;case"value":L=ge;break;case"defaultValue":j=ge;break;case"children":case"dangerouslySetInnerHTML":if(ge!=null)throw Error(r(137,c));break;default:ge!==Ie&&mn(i,c,me,ge,m,Ie)}}Rb(i,L,j,J,pe,ke,A,E);return;case"select":ge=L=j=me=null;for(A in f)if(J=f[A],f.hasOwnProperty(A)&&J!=null)switch(A){case"value":break;case"multiple":ge=J;default:m.hasOwnProperty(A)||mn(i,c,A,null,m,J)}for(E in m)if(A=m[E],J=f[E],m.hasOwnProperty(E)&&(A!=null||J!=null))switch(E){case"value":me=A;break;case"defaultValue":j=A;break;case"multiple":L=A;default:A!==J&&mn(i,c,E,A,m,J)}c=j,f=L,m=ge,me!=null?_c(i,!!f,me,!1):!!m!=!!f&&(c!=null?_c(i,!!f,c,!0):_c(i,!!f,f?[]:"",!1));return;case"textarea":ge=me=null;for(j in f)if(E=f[j],f.hasOwnProperty(j)&&E!=null&&!m.hasOwnProperty(j))switch(j){case"value":break;case"children":break;default:mn(i,c,j,null,m,E)}for(L in m)if(E=m[L],A=f[L],m.hasOwnProperty(L)&&(E!=null||A!=null))switch(L){case"value":me=E;break;case"defaultValue":ge=E;break;case"children":break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(r(91));break;default:E!==A&&mn(i,c,L,E,m,A)}T_(i,me,ge);return;case"option":for(var kt in f)if(me=f[kt],f.hasOwnProperty(kt)&&me!=null&&!m.hasOwnProperty(kt))switch(kt){case"selected":i.selected=!1;break;default:mn(i,c,kt,null,m,me)}for(J in m)if(me=m[J],ge=f[J],m.hasOwnProperty(J)&&me!==ge&&(me!=null||ge!=null))switch(J){case"selected":i.selected=me&&typeof me!="function"&&typeof me!="symbol";break;default:mn(i,c,J,me,m,ge)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var xt in f)me=f[xt],f.hasOwnProperty(xt)&&me!=null&&!m.hasOwnProperty(xt)&&mn(i,c,xt,null,m,me);for(pe in m)if(me=m[pe],ge=f[pe],m.hasOwnProperty(pe)&&me!==ge&&(me!=null||ge!=null))switch(pe){case"children":case"dangerouslySetInnerHTML":if(me!=null)throw Error(r(137,c));break;default:mn(i,c,pe,me,m,ge)}return;default:if(Ob(c)){for(var gn in f)me=f[gn],f.hasOwnProperty(gn)&&me!==void 0&&!m.hasOwnProperty(gn)&&g1(i,c,gn,void 0,m,me);for(ke in m)me=m[ke],ge=f[ke],!m.hasOwnProperty(ke)||me===ge||me===void 0&&ge===void 0||g1(i,c,ke,me,m,ge);return}}for(var le in f)me=f[le],f.hasOwnProperty(le)&&me!=null&&!m.hasOwnProperty(le)&&mn(i,c,le,null,m,me);for(Ie in m)me=m[Ie],ge=f[Ie],!m.hasOwnProperty(Ie)||me===ge||me==null&&ge==null||mn(i,c,Ie,me,m,ge)}var y1=null,b1=null;function qm(i){return i.nodeType===9?i:i.ownerDocument}function Ck(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 _k(i,c){if(i===0)switch(c){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&c==="foreignObject"?0:i}function v1(i,c){return i==="textarea"||i==="noscript"||typeof c.children=="string"||typeof c.children=="number"||typeof c.children=="bigint"||typeof c.dangerouslySetInnerHTML=="object"&&c.dangerouslySetInnerHTML!==null&&c.dangerouslySetInnerHTML.__html!=null}var E1=null;function z7(){var i=window.event;return i&&i.type==="popstate"?i===E1?!1:(E1=i,!0):(E1=null,!1)}var Ak=typeof setTimeout=="function"?setTimeout:void 0,$7=typeof clearTimeout=="function"?clearTimeout:void 0,kk=typeof Promise=="function"?Promise:void 0,V7=typeof queueMicrotask=="function"?queueMicrotask:typeof kk<"u"?function(i){return kk.resolve(null).then(i).catch(G7)}:Ak;function G7(i){setTimeout(function(){throw i})}function ks(i){return i==="head"}function wk(i,c){var f=c,m=0,E=0;do{var A=f.nextSibling;if(i.removeChild(f),A&&A.nodeType===8)if(f=A.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 j=L.nextSibling,J=L.nodeName;L[rt]||J==="SCRIPT"||J==="STYLE"||J==="LINK"&&L.rel.toLowerCase()==="stylesheet"||f.removeChild(L),L=j}}if(E===0){i.removeChild(A),Ef(c);return}E--}else f==="$"||f==="$?"||f==="$!"?E++:m=f.charCodeAt(0)-48;else m=0;f=A}while(f);Ef(c)}function x1(i){var c=i.firstChild;for(c&&c.nodeType===10&&(c=c.nextSibling);c;){var f=c;switch(c=c.nextSibling,f.nodeName){case"HTML":case"HEAD":case"BODY":x1(f),pt(f);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(f.rel.toLowerCase()==="stylesheet")continue}i.removeChild(f)}}function q7(i,c,f,m){for(;i.nodeType===1;){var E=f;if(i.nodeName.toLowerCase()!==c.toLowerCase()){if(!m&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(m){if(!i[rt])switch(c){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(A=i.getAttribute("rel"),A==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(A!==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(A=i.getAttribute("src"),(A!==(E.src==null?null:E.src)||i.getAttribute("type")!==(E.type==null?null:E.type)||i.getAttribute("crossorigin")!==(E.crossOrigin==null?null:E.crossOrigin))&&A&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(c==="input"&&i.type==="hidden"){var A=E.name==null?null:""+E.name;if(E.type==="hidden"&&i.getAttribute("name")===A)return i}else return i;if(i=Ra(i.nextSibling),i===null)break}return null}function W7(i,c,f){if(c==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!f||(i=Ra(i.nextSibling),i===null))return null;return i}function T1(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState==="complete"}function Y7(i,c){var f=i.ownerDocument;if(i.data!=="$?"||f.readyState==="complete")c();else{var m=function(){c(),f.removeEventListener("DOMContentLoaded",m)};f.addEventListener("DOMContentLoaded",m),i._reactRetry=m}}function Ra(i){for(;i!=null;i=i.nextSibling){var c=i.nodeType;if(c===1||c===3)break;if(c===8){if(c=i.data,c==="$"||c==="$!"||c==="$?"||c==="F!"||c==="F")break;if(c==="/$")return null}}return i}var S1=null;function Dk(i){i=i.previousSibling;for(var c=0;i;){if(i.nodeType===8){var f=i.data;if(f==="$"||f==="$!"||f==="$?"){if(c===0)return i;c--}else f==="/$"&&c++}i=i.previousSibling}return null}function Rk(i,c,f){switch(c=qm(f),i){case"html":if(i=c.documentElement,!i)throw Error(r(452));return i;case"head":if(i=c.head,!i)throw Error(r(453));return i;case"body":if(i=c.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function ff(i){for(var c=i.attributes;c.length;)i.removeAttributeNode(c[0]);pt(i)}var aa=new Map,Ik=new Set;function Wm(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var Hi=K.d;K.d={f:Q7,r:K7,D:X7,C:Z7,L:J7,m:eF,X:nF,S:tF,M:rF};function Q7(){var i=Hi.f(),c=Bm();return i||c}function K7(i){var c=un(i);c!==null&&c.tag===5&&c.type==="form"?XA(c):Hi.r(i)}var tu=typeof document>"u"?null:document;function Ok(i,c,f){var m=tu;if(m&&typeof c=="string"&&c){var E=Zo(c);E='link[rel="'+i+'"][href="'+E+'"]',typeof f=="string"&&(E+='[crossorigin="'+f+'"]'),Ik.has(E)||(Ik.add(E),i={rel:i,crossOrigin:f,href:c},m.querySelector(E)===null&&(c=m.createElement("link"),Br(c,"link",i),Lt(c),m.head.appendChild(c)))}}function X7(i){Hi.D(i),Ok("dns-prefetch",i,null)}function Z7(i,c){Hi.C(i,c),Ok("preconnect",i,c)}function J7(i,c,f){Hi.L(i,c,f);var m=tu;if(m&&i&&c){var E='link[rel="preload"][as="'+Zo(c)+'"]';c==="image"&&f&&f.imageSrcSet?(E+='[imagesrcset="'+Zo(f.imageSrcSet)+'"]',typeof f.imageSizes=="string"&&(E+='[imagesizes="'+Zo(f.imageSizes)+'"]')):E+='[href="'+Zo(i)+'"]';var A=E;switch(c){case"style":A=nu(i);break;case"script":A=ru(i)}aa.has(A)||(i=p({rel:"preload",href:c==="image"&&f&&f.imageSrcSet?void 0:i,as:c},f),aa.set(A,i),m.querySelector(E)!==null||c==="style"&&m.querySelector(pf(A))||c==="script"&&m.querySelector(hf(A))||(c=m.createElement("link"),Br(c,"link",i),Lt(c),m.head.appendChild(c)))}}function eF(i,c){Hi.m(i,c);var f=tu;if(f&&i){var m=c&&typeof c.as=="string"?c.as:"script",E='link[rel="modulepreload"][as="'+Zo(m)+'"][href="'+Zo(i)+'"]',A=E;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":A=ru(i)}if(!aa.has(A)&&(i=p({rel:"modulepreload",href:i},c),aa.set(A,i),f.querySelector(E)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(f.querySelector(hf(A)))return}m=f.createElement("link"),Br(m,"link",i),Lt(m),f.head.appendChild(m)}}}function tF(i,c,f){Hi.S(i,c,f);var m=tu;if(m&&i){var E=Yn(m).hoistableStyles,A=nu(i);c=c||"default";var L=E.get(A);if(!L){var j={loading:0,preload:null};if(L=m.querySelector(pf(A)))j.loading=5;else{i=p({rel:"stylesheet",href:i,"data-precedence":c},f),(f=aa.get(A))&&C1(i,f);var J=L=m.createElement("link");Lt(J),Br(J,"link",i),J._p=new Promise(function(pe,ke){J.onload=pe,J.onerror=ke}),J.addEventListener("load",function(){j.loading|=1}),J.addEventListener("error",function(){j.loading|=2}),j.loading|=4,Ym(L,c,m)}L={type:"stylesheet",instance:L,count:1,state:j},E.set(A,L)}}}function nF(i,c){Hi.X(i,c);var f=tu;if(f&&i){var m=Yn(f).hoistableScripts,E=ru(i),A=m.get(E);A||(A=f.querySelector(hf(E)),A||(i=p({src:i,async:!0},c),(c=aa.get(E))&&_1(i,c),A=f.createElement("script"),Lt(A),Br(A,"link",i),f.head.appendChild(A)),A={type:"script",instance:A,count:1,state:null},m.set(E,A))}}function rF(i,c){Hi.M(i,c);var f=tu;if(f&&i){var m=Yn(f).hoistableScripts,E=ru(i),A=m.get(E);A||(A=f.querySelector(hf(E)),A||(i=p({src:i,async:!0,type:"module"},c),(c=aa.get(E))&&_1(i,c),A=f.createElement("script"),Lt(A),Br(A,"link",i),f.head.appendChild(A)),A={type:"script",instance:A,count:1,state:null},m.set(E,A))}}function Nk(i,c,f,m){var E=(E=oe.current)?Wm(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"?(c=nu(f.href),f=Yn(E).hoistableStyles,m=f.get(c),m||(m={type:"style",instance:null,count:0,state:null},f.set(c,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(f.rel==="stylesheet"&&typeof f.href=="string"&&typeof f.precedence=="string"){i=nu(f.href);var A=Yn(E).hoistableStyles,L=A.get(i);if(L||(E=E.ownerDocument||E,L={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},A.set(i,L),(A=E.querySelector(pf(i)))&&!A._p&&(L.instance=A,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),A||oF(E,i,f,L.state))),c&&m===null)throw Error(r(528,""));return L}if(c&&m!==null)throw Error(r(529,""));return null;case"script":return c=f.async,f=f.src,typeof f=="string"&&c&&typeof c!="function"&&typeof c!="symbol"?(c=ru(f),f=Yn(E).hoistableScripts,m=f.get(c),m||(m={type:"script",instance:null,count:0,state:null},f.set(c,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function nu(i){return'href="'+Zo(i)+'"'}function pf(i){return'link[rel="stylesheet"]['+i+"]"}function Pk(i){return p({},i,{"data-precedence":i.precedence,precedence:null})}function oF(i,c,f,m){i.querySelector('link[rel="preload"][as="style"]['+c+"]")?m.loading=1:(c=i.createElement("link"),m.preload=c,c.addEventListener("load",function(){return m.loading|=1}),c.addEventListener("error",function(){return m.loading|=2}),Br(c,"link",f),Lt(c),i.head.appendChild(c))}function ru(i){return'[src="'+Zo(i)+'"]'}function hf(i){return"script[async]"+i}function Lk(i,c,f){if(c.count++,c.instance===null)switch(c.type){case"style":var m=i.querySelector('style[data-href~="'+Zo(f.href)+'"]');if(m)return c.instance=m,Lt(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"),Lt(m),Br(m,"style",E),Ym(m,f.precedence,i),c.instance=m;case"stylesheet":E=nu(f.href);var A=i.querySelector(pf(E));if(A)return c.state.loading|=4,c.instance=A,Lt(A),A;m=Pk(f),(E=aa.get(E))&&C1(m,E),A=(i.ownerDocument||i).createElement("link"),Lt(A);var L=A;return L._p=new Promise(function(j,J){L.onload=j,L.onerror=J}),Br(A,"link",m),c.state.loading|=4,Ym(A,f.precedence,i),c.instance=A;case"script":return A=ru(f.src),(E=i.querySelector(hf(A)))?(c.instance=E,Lt(E),E):(m=f,(E=aa.get(A))&&(m=p({},f),_1(m,E)),i=i.ownerDocument||i,E=i.createElement("script"),Lt(E),Br(E,"link",m),i.head.appendChild(E),c.instance=E);case"void":return null;default:throw Error(r(443,c.type))}else c.type==="stylesheet"&&(c.state.loading&4)===0&&(m=c.instance,c.state.loading|=4,Ym(m,f.precedence,i));return c.instance}function Ym(i,c,f){for(var m=f.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),E=m.length?m[m.length-1]:null,A=E,L=0;L<m.length;L++){var j=m[L];if(j.dataset.precedence===c)A=j;else if(A!==E)break}A?A.parentNode.insertBefore(i,A.nextSibling):(c=f.nodeType===9?f.head:f,c.insertBefore(i,c.firstChild))}function C1(i,c){i.crossOrigin==null&&(i.crossOrigin=c.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=c.referrerPolicy),i.title==null&&(i.title=c.title)}function _1(i,c){i.crossOrigin==null&&(i.crossOrigin=c.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=c.referrerPolicy),i.integrity==null&&(i.integrity=c.integrity)}var Qm=null;function Mk(i,c,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 A=f[E];if(!(A[rt]||A[Ee]||i==="link"&&A.getAttribute("rel")==="stylesheet")&&A.namespaceURI!=="http://www.w3.org/2000/svg"){var L=A.getAttribute(c)||"";L=i+L;var j=m.get(L);j?j.push(A):m.set(L,[A])}}return m}function Fk(i,c,f){i=i.ownerDocument||i,i.head.insertBefore(f,c==="title"?i.querySelector("head > title"):null)}function aF(i,c,f){if(f===1||c.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof c.precedence!="string"||typeof c.href!="string"||c.href==="")break;return!0;case"link":if(typeof c.rel!="string"||typeof c.href!="string"||c.href===""||c.onLoad||c.onError)break;switch(c.rel){case"stylesheet":return i=c.disabled,typeof c.precedence=="string"&&i==null;default:return!0}case"script":if(c.async&&typeof c.async!="function"&&typeof c.async!="symbol"&&!c.onLoad&&!c.onError&&c.src&&typeof c.src=="string")return!0}return!1}function Bk(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}var mf=null;function iF(){}function sF(i,c,f){if(mf===null)throw Error(r(475));var m=mf;if(c.type==="stylesheet"&&(typeof f.media!="string"||matchMedia(f.media).matches!==!1)&&(c.state.loading&4)===0){if(c.instance===null){var E=nu(f.href),A=i.querySelector(pf(E));if(A){i=A._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(m.count++,m=Km.bind(m),i.then(m,m)),c.state.loading|=4,c.instance=A,Lt(A);return}A=i.ownerDocument||i,f=Pk(f),(E=aa.get(E))&&C1(f,E),A=A.createElement("link"),Lt(A);var L=A;L._p=new Promise(function(j,J){L.onload=j,L.onerror=J}),Br(A,"link",f),c.instance=A}m.stylesheets===null&&(m.stylesheets=new Map),m.stylesheets.set(c,i),(i=c.state.preload)&&(c.state.loading&3)===0&&(m.count++,c=Km.bind(m),i.addEventListener("load",c),i.addEventListener("error",c))}}function lF(){if(mf===null)throw Error(r(475));var i=mf;return i.stylesheets&&i.count===0&&A1(i,i.stylesheets),0<i.count?function(c){var f=setTimeout(function(){if(i.stylesheets&&A1(i,i.stylesheets),i.unsuspend){var m=i.unsuspend;i.unsuspend=null,m()}},6e4);return i.unsuspend=c,function(){i.unsuspend=null,clearTimeout(f)}}:null}function Km(){if(this.count--,this.count===0){if(this.stylesheets)A1(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var Xm=null;function A1(i,c){i.stylesheets=null,i.unsuspend!==null&&(i.count++,Xm=new Map,c.forEach(cF,i),Xm=null,Km.call(i))}function cF(i,c){if(!(c.state.loading&4)){var f=Xm.get(i);if(f)var m=f.get(null);else{f=new Map,Xm.set(i,f);for(var E=i.querySelectorAll("link[data-precedence],style[data-precedence]"),A=0;A<E.length;A++){var L=E[A];(L.nodeName==="LINK"||L.getAttribute("media")!=="not all")&&(f.set(L.dataset.precedence,L),m=L)}m&&f.set(null,m)}E=c.instance,L=E.getAttribute("data-precedence"),A=f.get(L)||m,A===m&&f.set(null,E),f.set(L,E),this.count++,m=Km.bind(this),E.addEventListener("load",m),E.addEventListener("error",m),A?A.parentNode.insertBefore(E,A.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(E,i.firstChild)),c.state.loading|=4}}var gf={$$typeof:C,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function uF(i,c,f,m,E,A,L,j){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=A,this.onRecoverableError=L,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=j,this.incompleteTransitions=new Map}function jk(i,c,f,m,E,A,L,j,J,pe,ke,Ie){return i=new uF(i,c,f,L,j,J,pe,Ie),c=1,A===!0&&(c|=24),A=Io(3,null,null,c),i.current=A,A.stateNode=i,c=sv(),c.refCount++,i.pooledCache=c,c.refCount++,A.memoizedState={element:m,isDehydrated:f,cache:c},dv(A),i}function Uk(i){return i?(i=Pc,i):Pc}function Hk(i,c,f,m,E,A){E=Uk(E),m.context===null?m.context=E:m.pendingContext=E,m=hs(c),m.payload={element:f},A=A===void 0?null:A,A!==null&&(m.callback=A),f=ms(i,m,c),f!==null&&(Mo(f,i,c),Gd(f,i,c))}function zk(i,c){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var f=i.retryLane;i.retryLane=f!==0&&f<c?f:c}}function k1(i,c){zk(i,c),(i=i.alternate)&&zk(i,c)}function $k(i){if(i.tag===13){var c=Nc(i,67108864);c!==null&&Mo(c,i,67108864),k1(i,67108864)}}var Zm=!0;function dF(i,c,f,m){var E=B.T;B.T=null;var A=K.p;try{K.p=2,w1(i,c,f,m)}finally{K.p=A,B.T=E}}function fF(i,c,f,m){var E=B.T;B.T=null;var A=K.p;try{K.p=8,w1(i,c,f,m)}finally{K.p=A,B.T=E}}function w1(i,c,f,m){if(Zm){var E=D1(m);if(E===null)m1(i,c,m,Jm,f),Gk(i,m);else if(hF(E,i,c,f,m))m.stopPropagation();else if(Gk(i,m),c&4&&-1<pF.indexOf(i)){for(;E!==null;){var A=un(E);if(A!==null)switch(A.tag){case 3:if(A=A.stateNode,A.current.memoizedState.isDehydrated){var L=he(A.pendingLanes);if(L!==0){var j=A;for(j.pendingLanes|=2,j.entangledLanes|=2;L;){var J=1<<31-Xe(L);j.entanglements[1]|=J,L&=~J}Qa(A),(dn&6)===0&&(Mm=He()+500,cf(0))}}break;case 13:j=Nc(A,2),j!==null&&Mo(j,A,2),Bm(),k1(A,2)}if(A=D1(m),A===null&&m1(i,c,m,Jm,f),A===E)break;E=A}E!==null&&m.stopPropagation()}else m1(i,c,m,null,f)}}function D1(i){return i=Pb(i),R1(i)}var Jm=null;function R1(i){if(Jm=null,i=jt(i),i!==null){var c=a(i);if(c===null)i=null;else{var f=c.tag;if(f===13){if(i=s(c),i!==null)return i;i=null}else if(f===3){if(c.stateNode.current.memoizedState.isDehydrated)return c.tag===3?c.stateNode.containerInfo:null;i=null}else c!==i&&(i=null)}}return Jm=i,null}function Vk(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 ct:return 2;case ft:return 8;case ze:case Le:return 32;case Xt:return 268435456;default:return 32}default:return 32}}var I1=!1,ws=null,Ds=null,Rs=null,yf=new Map,bf=new Map,Is=[],pF="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 Gk(i,c){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(c.pointerId);break;case"gotpointercapture":case"lostpointercapture":bf.delete(c.pointerId)}}function vf(i,c,f,m,E,A){return i===null||i.nativeEvent!==A?(i={blockedOn:c,domEventName:f,eventSystemFlags:m,nativeEvent:A,targetContainers:[E]},c!==null&&(c=un(c),c!==null&&$k(c)),i):(i.eventSystemFlags|=m,c=i.targetContainers,E!==null&&c.indexOf(E)===-1&&c.push(E),i)}function hF(i,c,f,m,E){switch(c){case"focusin":return ws=vf(ws,i,c,f,m,E),!0;case"dragenter":return Ds=vf(Ds,i,c,f,m,E),!0;case"mouseover":return Rs=vf(Rs,i,c,f,m,E),!0;case"pointerover":var A=E.pointerId;return yf.set(A,vf(yf.get(A)||null,i,c,f,m,E)),!0;case"gotpointercapture":return A=E.pointerId,bf.set(A,vf(bf.get(A)||null,i,c,f,m,E)),!0}return!1}function qk(i){var c=jt(i.target);if(c!==null){var f=a(c);if(f!==null){if(c=f.tag,c===13){if(c=s(f),c!==null){i.blockedOn=c,ee(i.priority,function(){if(f.tag===13){var m=Lo();m=Lr(m);var E=Nc(f,m);E!==null&&Mo(E,f,m),k1(f,m)}});return}}else if(c===3&&f.stateNode.current.memoizedState.isDehydrated){i.blockedOn=f.tag===3?f.stateNode.containerInfo:null;return}}}i.blockedOn=null}function eg(i){if(i.blockedOn!==null)return!1;for(var c=i.targetContainers;0<c.length;){var f=D1(i.nativeEvent);if(f===null){f=i.nativeEvent;var m=new f.constructor(f.type,f);Nb=m,f.target.dispatchEvent(m),Nb=null}else return c=un(f),c!==null&&$k(c),i.blockedOn=f,!1;c.shift()}return!0}function Wk(i,c,f){eg(i)&&f.delete(c)}function mF(){I1=!1,ws!==null&&eg(ws)&&(ws=null),Ds!==null&&eg(Ds)&&(Ds=null),Rs!==null&&eg(Rs)&&(Rs=null),yf.forEach(Wk),bf.forEach(Wk)}function tg(i,c){i.blockedOn===c&&(i.blockedOn=null,I1||(I1=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,mF)))}var ng=null;function Yk(i){ng!==i&&(ng=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){ng===i&&(ng=null);for(var c=0;c<i.length;c+=3){var f=i[c],m=i[c+1],E=i[c+2];if(typeof m!="function"){if(R1(m||f)===null)continue;break}var A=un(f);A!==null&&(i.splice(c,3),c-=3,Rv(A,{pending:!0,data:E,method:f.method,action:m},m,E))}}))}function Ef(i){function c(J){return tg(J,i)}ws!==null&&tg(ws,i),Ds!==null&&tg(Ds,i),Rs!==null&&tg(Rs,i),yf.forEach(c),bf.forEach(c);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);)qk(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],A=f[m+1],L=E[Ae]||null;if(typeof A=="function")L||Yk(f);else if(L){var j=null;if(A&&A.hasAttribute("formAction")){if(E=A,L=A[Ae]||null)j=L.formAction;else if(R1(E)!==null)continue}else j=L.action;typeof j=="function"?f[m+1]=j:(f.splice(m,3),m-=3),Yk(f)}}}function O1(i){this._internalRoot=i}rg.prototype.render=O1.prototype.render=function(i){var c=this._internalRoot;if(c===null)throw Error(r(409));var f=c.current,m=Lo();Hk(f,m,i,c,null,null)},rg.prototype.unmount=O1.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var c=i.containerInfo;Hk(i.current,2,null,i,null,null),Bm(),c[Qe]=null}};function rg(i){this._internalRoot=i}rg.prototype.unstable_scheduleHydration=function(i){if(i){var c=te();i={blockedOn:null,target:i,priority:c};for(var f=0;f<Is.length&&c!==0&&c<Is[f].priority;f++);Is.splice(f,0,i),f===0&&qk(i)}};var Qk=t.version;if(Qk!=="19.1.1")throw Error(r(527,Qk,"19.1.1"));K.findDOMNode=function(i){var c=i._reactInternals;if(c===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=u(c),i=i!==null?d(i):null,i=i===null?null:i.stateNode,i};var gF={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var og=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!og.isDisabled&&og.supportsFiber)try{de=og.inject(gF),ye=og}catch{}}return Tf.createRoot=function(i,c){if(!o(i))throw Error(r(299));var f=!1,m="",E=d2,A=f2,L=p2,j=null;return c!=null&&(c.unstable_strictMode===!0&&(f=!0),c.identifierPrefix!==void 0&&(m=c.identifierPrefix),c.onUncaughtError!==void 0&&(E=c.onUncaughtError),c.onCaughtError!==void 0&&(A=c.onCaughtError),c.onRecoverableError!==void 0&&(L=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(j=c.unstable_transitionCallbacks)),c=jk(i,1,!1,null,null,f,m,E,A,L,j,null),i[Qe]=c.current,h1(i),new O1(c)},Tf.hydrateRoot=function(i,c,f){if(!o(i))throw Error(r(299));var m=!1,E="",A=d2,L=f2,j=p2,J=null,pe=null;return f!=null&&(f.unstable_strictMode===!0&&(m=!0),f.identifierPrefix!==void 0&&(E=f.identifierPrefix),f.onUncaughtError!==void 0&&(A=f.onUncaughtError),f.onCaughtError!==void 0&&(L=f.onCaughtError),f.onRecoverableError!==void 0&&(j=f.onRecoverableError),f.unstable_transitionCallbacks!==void 0&&(J=f.unstable_transitionCallbacks),f.formState!==void 0&&(pe=f.formState)),c=jk(i,1,!0,c,f??null,m,E,A,L,j,J,pe),c.context=Uk(null),f=c.current,m=Lo(),m=Lr(m),E=hs(m),E.callback=null,ms(f,E,m),f=m,c.current.lanes=f,qn(c,f),Qa(c),i[Qe]=c.current,h1(i),new rg(c)},Tf.version="19.1.1",Tf}var aw;function AF(){if(aw)return L1.exports;aw=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(),L1.exports=_F(),L1.exports}var kF=AF();/**
|
|
51
|
+
* react-router v7.7.1
|
|
52
|
+
*
|
|
53
|
+
* Copyright (c) Remix Software Inc.
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the MIT license found in the
|
|
56
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
57
|
+
*
|
|
58
|
+
* @license MIT
|
|
59
|
+
*/var HN=e=>{throw TypeError(e)},wF=(e,t,n)=>t.has(e)||HN("Cannot "+n),j1=(e,t,n)=>(wF(e,t,"read from private field"),n?n.call(e):t.get(e)),DF=(e,t,n)=>t.has(e)?HN("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),iw="popstate";function RF(e={}){function t(r,o){let{pathname:a,search:s,hash:l}=r.location;return Np("",{pathname:a,search:s,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:Xs(o)}return OF(t,n,null,e)}function Yt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function br(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function IF(){return Math.random().toString(36).substring(2,10)}function sw(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"?tl(t):t,state:n,key:t&&t.key||r||IF()}}function Xs({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 tl(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 OF(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:a=!1}=r,s=o.history,l="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(){l="POP";let _=p(),x=_==null?null:_-d;d=_,u&&u({action:l,location:T.location,delta:x})}function g(_,x){l="PUSH";let D=Np(T.location,_,x);d=p()+1;let C=sw(D,d),R=T.createHref(D);try{s.pushState(C,"",R)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;o.location.assign(R)}a&&u&&u({action:l,location:T.location,delta:1})}function y(_,x){l="REPLACE";let D=Np(T.location,_,x);d=p();let C=sw(D,d),R=T.createHref(D);s.replaceState(C,"",R),a&&u&&u({action:l,location:T.location,delta:0})}function v(_){return zN(_)}let T={get action(){return l},get location(){return e(o,s)},listen(_){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(iw,h),u=_,()=>{o.removeEventListener(iw,h),u=null}},createHref(_){return t(o,_)},createURL:v,encodeLocation(_){let x=v(_);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:g,replace:y,go(_){return s.go(_)}};return T}function zN(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Yt(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Xs(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}var Xf,lw=class{constructor(e){if(DF(this,Xf,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(j1(this,Xf).has(e))return j1(this,Xf).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){j1(this,Xf).set(e,t)}};Xf=new WeakMap;var NF=new Set(["lazy","caseSensitive","path","id","index","children"]);function PF(e){return NF.has(e)}var LF=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function MF(e){return LF.has(e)}function FF(e){return e.index===!0}function Pp(e,t,n=[],r={},o=!1){return e.map((a,s)=>{let l=[...n,String(s)],u=typeof a.id=="string"?a.id:l.join("-");if(Yt(a.index!==!0||!a.children,"Cannot specify children on an index route"),Yt(o||!r[u],`Found a route id collision on id "${u}". Route id's must be globally unique within Data Router usages`),FF(a)){let d={...a,...t(a),id:u};return r[u]=d,d}else{let d={...a,...t(a),id:u,children:void 0};return r[u]=d,a.children&&(d.children=Pp(a.children,t,l,r,o)),d}})}function Hs(e,t,n="/"){return Mg(e,t,n,!1)}function Mg(e,t,n,r){let o=typeof t=="string"?tl(t):t,a=Ta(o.pathname||"/",n);if(a==null)return null;let s=$N(e);jF(s);let l=null;for(let u=0;l==null&&u<s.length;++u){let d=KF(a);l=YF(s[u],d,r)}return l}function BF(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 $N(e,t=[],n=[],r=""){let o=(a,s,l)=>{let u={relativePath:l===void 0?a.path||"":l,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};u.relativePath.startsWith("/")&&(Yt(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&&(Yt(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),$N(a.children,t,p,d)),!(a.path==null&&!a.index)&&t.push({path:d,score:qF(d,a.index),routesMeta:p})};return e.forEach((a,s)=>{if(a.path===""||!a.path?.includes("?"))o(a,s);else for(let l of VN(a.path))o(a,s,l)}),t}function VN(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=VN(r.join("/")),l=[];return l.push(...s.map(u=>u===""?a:[a,u].join("/"))),o&&l.push(...s),l.map(u=>e.startsWith("/")&&u===""?"/":u)}function jF(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:WF(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var UF=/^:[\w-]+$/,HF=3,zF=2,$F=1,VF=10,GF=-2,cw=e=>e==="*";function qF(e,t){let n=e.split("/"),r=n.length;return n.some(cw)&&(r+=GF),t&&(r+=zF),n.filter(o=>!cw(o)).reduce((o,a)=>o+(UF.test(a)?HF:a===""?$F:VF),r)}function WF(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 YF(e,t,n=!1){let{routesMeta:r}=e,o={},a="/",s=[];for(let l=0;l<r.length;++l){let u=r[l],d=l===r.length-1,p=a==="/"?t:t.slice(a.length)||"/",h=fy({path:u.relativePath,caseSensitive:u.caseSensitive,end:d},p),g=u.route;if(!h&&d&&n&&!r[r.length-1].route.index&&(h=fy({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:eB(di([a,h.pathnameBase])),route:g}),h.pathnameBase!=="/"&&(a=di([a,h.pathnameBase]))}return s}function fy(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=QF(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],s=a.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce((d,{paramName:p,isOptional:h},g)=>{if(p==="*"){let v=l[g]||"";s=a.slice(0,a.length-v.length).replace(/(.)\/+$/,"$1")}const y=l[g];return h&&!y?d[p]=void 0:d[p]=(y||"").replace(/%2F/g,"/"),d},{}),pathname:a,pathnameBase:s,pattern:e}}function QF(e,t=!1,n=!0){br(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,l,u)=>(r.push({paramName:l,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 KF(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return br(!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 XF({basename:e,pathname:t}){return t==="/"?e:di([e,t])}function ZF(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?tl(e):e;return{pathname:n?n.startsWith("/")?n:JF(n,t):t,search:tB(r),hash:nB(o)}}function JF(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 U1(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 GN(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function jT(e){let t=GN(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function UT(e,t,n,r=!1){let o;typeof e=="string"?o=tl(e):(o={...e},Yt(!o.pathname||!o.pathname.includes("?"),U1("?","pathname","search",o)),Yt(!o.pathname||!o.pathname.includes("#"),U1("#","pathname","hash",o)),Yt(!o.search||!o.search.includes("#"),U1("#","search","hash",o)));let a=e===""||o.pathname==="",s=a?"/":o.pathname,l;if(s==null)l=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("/")}l=h>=0?t[h]:"/"}let u=ZF(o,l),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,"/"),eB=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),tB=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,nB=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,py=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 Lp(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var qN=["POST","PUT","PATCH","DELETE"],rB=new Set(qN),oB=["GET",...qN],aB=new Set(oB),iB=new Set([301,302,303,307,308]),sB=new Set([307,308]),H1={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},lB={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Sf={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},cB=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,HT=e=>cB.test(e),uB=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),WN="remix-router-transitions",YN=Symbol("ResetLoaderData");function dB(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";Yt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],o=e.mapRouteProperties||uB,a={},s=Pp(e.routes,o,void 0,a),l,u=e.basename||"/",d=e.dataStrategy||gB,p={unstable_middleware:!1,...e.future},h=null,g=new Set,y=null,v=null,T=null,_=e.hydrationData!=null,x=Hs(s,e.history.location,u),D=!1,C=null,R;if(x==null&&!e.patchRoutesOnNavigation){let te=ca(404,{pathname:e.history.location.pathname}),{matches:ee,route:ie}=xw(s);R=!0,x=ee,C={[ie.id]:te}}else if(x&&!e.hydrationData&&uo(x,s,e.history.location.pathname).active&&(x=null),x)if(x.some(te=>te.route.lazy))R=!1;else if(!x.some(te=>te.route.loader))R=!0;else{let te=e.hydrationData?e.hydrationData.loaderData:null,ee=e.hydrationData?e.hydrationData.errors:null;if(ee){let ie=x.findIndex(Ee=>ee[Ee.route.id]!==void 0);R=x.slice(0,ie+1).every(Ee=>!cx(Ee.route,te,ee))}else R=x.every(ie=>!cx(ie.route,te,ee))}else{R=!1,x=[];let te=uo(null,s,e.history.location.pathname);te.active&&te.matches&&(D=!0,x=te.matches)}let I,O={historyAction:e.history.action,location:e.history.location,matches:x,initialized:R,navigation:H1,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||C,fetchers:new Map,blockers:new Map},F="POP",H=!1,U,S=!1,M=new Map,$=null,z=!1,q=!1,Y=new Set,B=new Map,K=0,ae=-1,ne=new Map,N=new Set,Q=new Map,X=new Map,P=new Set,re=new Map,ce,oe=null;function ve(){if(h=e.history.listen(({action:te,location:ee,delta:ie})=>{if(ce){ce(),ce=void 0;return}br(re.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 Ee=nt({currentLocation:O.location,nextLocation:ee,historyAction:te});if(Ee&&ie!=null){let Ae=new Promise(Qe=>{ce=Qe});e.history.go(ie*-1),tt(Ee,{state:"blocked",location:ee,proceed(){tt(Ee,{state:"proceeding",proceed:void 0,reset:void 0,location:ee}),Ae.then(()=>e.history.go(ie))},reset(){let Qe=new Map(O.blockers);Qe.set(Ee,Sf),Me({blockers:Qe})}});return}return Re(te,ee)}),n){kB(t,M);let te=()=>wB(t,M);t.addEventListener("pagehide",te),$=()=>t.removeEventListener("pagehide",te)}return O.initialized||Re("POP",O.location,{initialHydration:!0}),I}function be(){h&&h(),$&&$(),g.clear(),U&&U.abort(),O.fetchers.forEach((te,ee)=>Xe(ee)),O.blockers.forEach((te,ee)=>xe(ee))}function qe(te){return g.add(te),()=>g.delete(te)}function Me(te,ee={}){te.matches&&(te.matches=te.matches.map(Ae=>{let Qe=a[Ae.route.id],Je=Ae.route;return Je.element!==Qe.element||Je.errorElement!==Qe.errorElement||Je.hydrateFallbackElement!==Qe.hydrateFallbackElement?{...Ae,route:Qe}:Ae})),O={...O,...te};let ie=[],Ee=[];O.fetchers.forEach((Ae,Qe)=>{Ae.state==="idle"&&(P.has(Qe)?ie.push(Qe):Ee.push(Qe))}),P.forEach(Ae=>{!O.fetchers.has(Ae)&&!B.has(Ae)&&ie.push(Ae)}),[...g].forEach(Ae=>Ae(O,{deletedFetchers:ie,viewTransitionOpts:ee.viewTransitionOpts,flushSync:ee.flushSync===!0})),ie.forEach(Ae=>Xe(Ae)),Ee.forEach(Ae=>O.fetchers.delete(Ae))}function Oe(te,ee,{flushSync:ie}={}){let Ee=O.actionData!=null&&O.navigation.formMethod!=null&&bo(O.navigation.formMethod)&&O.navigation.state==="loading"&&te.state?._isRedirect!==!0,Ae;ee.actionData?Object.keys(ee.actionData).length>0?Ae=ee.actionData:Ae=null:Ee?Ae=O.actionData:Ae=null;let Qe=ee.loaderData?vw(O.loaderData,ee.loaderData,ee.matches||[],ee.errors):O.loaderData,Je=O.blockers;Je.size>0&&(Je=new Map(Je),Je.forEach((rt,pt)=>Je.set(pt,Sf)));let et=z?!1:ur(te,ee.matches||O.matches),it=H===!0||O.navigation.formMethod!=null&&bo(O.navigation.formMethod)&&te.state?._isRedirect!==!0;l&&(s=l,l=void 0),z||F==="POP"||(F==="PUSH"?e.history.push(te,te.state):F==="REPLACE"&&e.history.replace(te,te.state));let gt;if(F==="POP"){let rt=M.get(O.location.pathname);rt&&rt.has(te.pathname)?gt={currentLocation:O.location,nextLocation:te}:M.has(te.pathname)&&(gt={currentLocation:te,nextLocation:O.location})}else if(S){let rt=M.get(O.location.pathname);rt?rt.add(te.pathname):(rt=new Set([te.pathname]),M.set(O.location.pathname,rt)),gt={currentLocation:O.location,nextLocation:te}}Me({...ee,actionData:Ae,loaderData:Qe,historyAction:F,location:te,initialized:!0,navigation:H1,revalidation:"idle",restoreScrollPosition:et,preventScrollReset:it,blockers:Je},{viewTransitionOpts:gt,flushSync:ie===!0}),F="POP",H=!1,S=!1,z=!1,q=!1,oe?.resolve(),oe=null}async function Ke(te,ee){if(typeof te=="number"){e.history.go(te);return}let ie=lx(O.location,O.matches,u,te,ee?.fromRouteId,ee?.relative),{path:Ee,submission:Ae,error:Qe}=uw(!1,ie,ee),Je=O.location,et=Np(O.location,Ee,ee&&ee.state);et={...et,...e.history.encodeLocation(et)};let it=ee&&ee.replace!=null?ee.replace:void 0,gt="PUSH";it===!0?gt="REPLACE":it===!1||Ae!=null&&bo(Ae.formMethod)&&Ae.formAction===O.location.pathname+O.location.search&&(gt="REPLACE");let rt=ee&&"preventScrollReset"in ee?ee.preventScrollReset===!0:void 0,pt=(ee&&ee.flushSync)===!0,jt=nt({currentLocation:Je,nextLocation:et,historyAction:gt});if(jt){tt(jt,{state:"blocked",location:et,proceed(){tt(jt,{state:"proceeding",proceed:void 0,reset:void 0,location:et}),Ke(te,ee)},reset(){let un=new Map(O.blockers);un.set(jt,Sf),Me({blockers:un})}});return}await Re(gt,et,{submission:Ae,pendingError:Qe,preventScrollReset:rt,replace:ee&&ee.replace,enableViewTransition:ee&&ee.viewTransition,flushSync:pt})}function at(){oe||(oe=DB()),At(),Me({revalidation:"loading"});let te=oe.promise;return O.navigation.state==="submitting"?te:O.navigation.state==="idle"?(Re(O.historyAction,O.location,{startUninterruptedRevalidation:!0}),te):(Re(F||O.historyAction,O.navigation.location,{overrideNavigation:O.navigation,enableViewTransition:S===!0}),te)}async function Re(te,ee,ie){U&&U.abort(),U=null,F=te,z=(ie&&ie.startUninterruptedRevalidation)===!0,qn(O.location,O.matches),H=(ie&&ie.preventScrollReset)===!0,S=(ie&&ie.enableViewTransition)===!0;let Ee=l||s,Ae=ie&&ie.overrideNavigation,Qe=ie?.initialHydration&&O.matches&&O.matches.length>0&&!D?O.matches:Hs(Ee,ee,u),Je=(ie&&ie.flushSync)===!0;if(Qe&&O.initialized&&!q&&TB(O.location,ee)&&!(ie&&ie.submission&&bo(ie.submission.formMethod))){Oe(ee,{matches:Qe},{flushSync:Je});return}let et=uo(Qe,Ee,ee.pathname);if(et.active&&et.matches&&(Qe=et.matches),!Qe){let{error:Yn,notFoundMatches:Lt,route:pn}=rn(ee.pathname);Oe(ee,{matches:Lt,loaderData:{},errors:{[pn.id]:Yn}},{flushSync:Je});return}U=new AbortController;let it=xu(e.history,ee,U.signal,ie&&ie.submission),gt=new lw(e.unstable_getContext?await e.unstable_getContext():void 0),rt;if(ie&&ie.pendingError)rt=[Ll(Qe).route.id,{type:"error",error:ie.pendingError}];else if(ie&&ie.submission&&bo(ie.submission.formMethod)){let Yn=await yt(it,ee,ie.submission,Qe,gt,et.active,ie&&ie.initialHydration===!0,{replace:ie.replace,flushSync:Je});if(Yn.shortCircuited)return;if(Yn.pendingActionResult){let[Lt,pn]=Yn.pendingActionResult;if(jo(pn)&&Lp(pn.error)&&pn.error.status===404){U=null,Oe(ee,{matches:Yn.matches,loaderData:{},errors:{[Lt]:pn.error}});return}}Qe=Yn.matches||Qe,rt=Yn.pendingActionResult,Ae=z1(ee,ie.submission),Je=!1,et.active=!1,it=xu(e.history,it.url,it.signal)}let{shortCircuited:pt,matches:jt,loaderData:un,errors:Wn}=await _t(it,ee,Qe,gt,et.active,Ae,ie&&ie.submission,ie&&ie.fetcherSubmission,ie&&ie.replace,ie&&ie.initialHydration===!0,Je,rt);pt||(U=null,Oe(ee,{matches:jt||Qe,...Ew(rt),loaderData:un,errors:Wn}))}async function yt(te,ee,ie,Ee,Ae,Qe,Je,et={}){At();let it=_B(ee,ie);if(Me({navigation:it},{flushSync:et.flushSync===!0}),Qe){let pt=await En(Ee,ee.pathname,te.signal);if(pt.type==="aborted")return{shortCircuited:!0};if(pt.type==="error"){let jt=Ll(pt.partialMatches).route.id;return{matches:pt.partialMatches,pendingActionResult:[jt,{type:"error",error:pt.error}]}}else if(pt.matches)Ee=pt.matches;else{let{notFoundMatches:jt,error:un,route:Wn}=rn(ee.pathname);return{matches:jt,pendingActionResult:[Wn.id,{type:"error",error:un}]}}}let gt,rt=Fg(Ee,ee);if(!rt.route.action&&!rt.route.lazy)gt={type:"error",error:ca(405,{method:te.method,pathname:ee.pathname,routeId:rt.route.id})};else{let pt=Ou(o,a,te,Ee,rt,Je?[]:r,Ae),jt=await Xt(te,pt,Ae,null);if(gt=jt[rt.route.id],!gt){for(let un of Ee)if(jt[un.route.id]){gt=jt[un.route.id];break}}if(te.signal.aborted)return{shortCircuited:!0}}if(Bl(gt)){let pt;return et&&et.replace!=null?pt=et.replace:pt=gw(gt.response.headers.get("Location"),new URL(te.url),u)===O.location.pathname+O.location.search,await Le(te,gt,!0,{submission:ie,replace:pt}),{shortCircuited:!0}}if(jo(gt)){let pt=Ll(Ee,rt.route.id);return(et&&et.replace)!==!0&&(F="PUSH"),{matches:Ee,pendingActionResult:[pt.route.id,gt,rt.route.id]}}return{matches:Ee,pendingActionResult:[rt.route.id,gt]}}async function _t(te,ee,ie,Ee,Ae,Qe,Je,et,it,gt,rt,pt){let jt=Qe||z1(ee,Je),un=Je||et||Sw(jt),Wn=!z&&!gt;if(Ae){if(Wn){let dr=He(pt);Me({navigation:jt,...dr!==void 0?{actionData:dr}:{}},{flushSync:rt})}let Ht=await En(ie,ee.pathname,te.signal);if(Ht.type==="aborted")return{shortCircuited:!0};if(Ht.type==="error"){let dr=Ll(Ht.partialMatches).route.id;return{matches:Ht.partialMatches,loaderData:{},errors:{[dr]:Ht.error}}}else if(Ht.matches)ie=Ht.matches;else{let{error:dr,notFoundMatches:ul,route:Ko}=rn(ee.pathname);return{matches:ul,loaderData:{},errors:{[Ko.id]:dr}}}}let Yn=l||s,{dsMatches:Lt,revalidatingFetchers:pn}=dw(te,Ee,o,a,e.history,O,ie,un,ee,gt?[]:r,gt===!0,q,Y,P,Q,N,Yn,u,e.patchRoutesOnNavigation!=null,pt);if(ae=++K,!e.dataStrategy&&!Lt.some(Ht=>Ht.shouldLoad)&&pn.length===0){let Ht=Vt();return Oe(ee,{matches:ie,loaderData:{},errors:pt&&jo(pt[1])?{[pt[0]]:pt[1].error}:null,...Ew(pt),...Ht?{fetchers:new Map(O.fetchers)}:{}},{flushSync:rt}),{shortCircuited:!0}}if(Wn){let Ht={};if(!Ae){Ht.navigation=jt;let dr=He(pt);dr!==void 0&&(Ht.actionData=dr)}pn.length>0&&(Ht.fetchers=mt(pn)),Me(Ht,{flushSync:rt})}pn.forEach(Ht=>{Ze(Ht.key),Ht.controller&&B.set(Ht.key,Ht.controller)});let Va=()=>pn.forEach(Ht=>Ze(Ht.key));U&&U.signal.addEventListener("abort",Va);let{loaderResults:Do,fetcherResults:to}=await Bt(Lt,pn,te,Ee);if(te.signal.aborted)return{shortCircuited:!0};U&&U.signal.removeEventListener("abort",Va),pn.forEach(Ht=>B.delete(Ht.key));let Qo=ag(Do);if(Qo)return await Le(te,Qo.result,!0,{replace:it}),{shortCircuited:!0};if(Qo=ag(to),Qo)return N.add(Qo.key),await Le(te,Qo.result,!0,{replace:it}),{shortCircuited:!0};let{loaderData:Cc,errors:cs}=bw(O,ie,Do,pt,pn,to);gt&&O.errors&&(cs={...O.errors,...cs});let _i=Vt(),Ai=tn(ae),ki=_i||Ai||pn.length>0;return{matches:ie,loaderData:Cc,errors:cs,...ki?{fetchers:new Map(O.fetchers)}:{}}}function He(te){if(te&&!jo(te[1]))return{[te[0]]:te[1].data};if(O.actionData)return Object.keys(O.actionData).length===0?null:O.actionData}function mt(te){return te.forEach(ee=>{let ie=O.fetchers.get(ee.key),Ee=Cf(void 0,ie?ie.data:void 0);O.fetchers.set(ee.key,Ee)}),new Map(O.fetchers)}async function ct(te,ee,ie,Ee){Ze(te);let Ae=(Ee&&Ee.flushSync)===!0,Qe=l||s,Je=lx(O.location,O.matches,u,ie,ee,Ee?.relative),et=Hs(Qe,Je,u),it=uo(et,Qe,Je);if(it.active&&it.matches&&(et=it.matches),!et){ye(te,ee,ca(404,{pathname:Je}),{flushSync:Ae});return}let{path:gt,submission:rt,error:pt}=uw(!0,Je,Ee);if(pt){ye(te,ee,pt,{flushSync:Ae});return}let jt=new lw(e.unstable_getContext?await e.unstable_getContext():void 0),un=(Ee&&Ee.preventScrollReset)===!0;if(rt&&bo(rt.formMethod)){await ft(te,ee,gt,et,jt,it.active,Ae,un,rt);return}Q.set(te,{routeId:ee,path:gt}),await ze(te,ee,gt,et,jt,it.active,Ae,un,rt)}async function ft(te,ee,ie,Ee,Ae,Qe,Je,et,it){At(),Q.delete(te);let gt=O.fetchers.get(te);de(te,AB(it,gt),{flushSync:Je});let rt=new AbortController,pt=xu(e.history,ie,rt.signal,it);if(Qe){let $n=await En(Ee,new URL(pt.url).pathname,pt.signal,te);if($n.type==="aborted")return;if($n.type==="error"){ye(te,ee,$n.error,{flushSync:Je});return}else if($n.matches)Ee=$n.matches;else{ye(te,ee,ca(404,{pathname:ie}),{flushSync:Je});return}}let jt=Fg(Ee,ie);if(!jt.route.action&&!jt.route.lazy){let $n=ca(405,{method:it.formMethod,pathname:ie,routeId:ee});ye(te,ee,$n,{flushSync:Je});return}B.set(te,rt);let un=K,Wn=Ou(o,a,pt,Ee,jt,r,Ae),Lt=(await Xt(pt,Wn,Ae,te))[jt.route.id];if(pt.signal.aborted){B.get(te)===rt&&B.delete(te);return}if(P.has(te)){if(Bl(Lt)||jo(Lt)){de(te,Bs(void 0));return}}else{if(Bl(Lt))if(B.delete(te),ae>un){de(te,Bs(void 0));return}else return N.add(te),de(te,Cf(it)),Le(pt,Lt,!1,{fetcherSubmission:it,preventScrollReset:et});if(jo(Lt)){ye(te,ee,Lt.error);return}}let pn=O.navigation.location||O.location,Va=xu(e.history,pn,rt.signal),Do=l||s,to=O.navigation.state!=="idle"?Hs(Do,O.navigation.location,u):O.matches;Yt(to,"Didn't find any matches after fetcher action");let Qo=++K;ne.set(te,Qo);let Cc=Cf(it,Lt.data);O.fetchers.set(te,Cc);let{dsMatches:cs,revalidatingFetchers:_i}=dw(Va,Ae,o,a,e.history,O,to,it,pn,r,!1,q,Y,P,Q,N,Do,u,e.patchRoutesOnNavigation!=null,[jt.route.id,Lt]);_i.filter($n=>$n.key!==te).forEach($n=>{let us=$n.key,Qh=O.fetchers.get(us),Kh=Cf(void 0,Qh?Qh.data:void 0);O.fetchers.set(us,Kh),Ze(us),$n.controller&&B.set(us,$n.controller)}),Me({fetchers:new Map(O.fetchers)});let Ai=()=>_i.forEach($n=>Ze($n.key));rt.signal.addEventListener("abort",Ai);let{loaderResults:ki,fetcherResults:Ht}=await Bt(cs,_i,Va,Ae);if(rt.signal.aborted)return;if(rt.signal.removeEventListener("abort",Ai),ne.delete(te),B.delete(te),_i.forEach($n=>B.delete($n.key)),O.fetchers.has(te)){let $n=Bs(Lt.data);O.fetchers.set(te,$n)}let dr=ag(ki);if(dr)return Le(Va,dr.result,!1,{preventScrollReset:et});if(dr=ag(Ht),dr)return N.add(dr.key),Le(Va,dr.result,!1,{preventScrollReset:et});let{loaderData:ul,errors:Ko}=bw(O,to,ki,void 0,_i,Ht);tn(Qo),O.navigation.state==="loading"&&Qo>ae?(Yt(F,"Expected pending action"),U&&U.abort(),Oe(O.navigation.location,{matches:to,loaderData:ul,errors:Ko,fetchers:new Map(O.fetchers)})):(Me({errors:Ko,loaderData:vw(O.loaderData,ul,to,Ko),fetchers:new Map(O.fetchers)}),q=!1)}async function ze(te,ee,ie,Ee,Ae,Qe,Je,et,it){let gt=O.fetchers.get(te);de(te,Cf(it,gt?gt.data:void 0),{flushSync:Je});let rt=new AbortController,pt=xu(e.history,ie,rt.signal);if(Qe){let pn=await En(Ee,new URL(pt.url).pathname,pt.signal,te);if(pn.type==="aborted")return;if(pn.type==="error"){ye(te,ee,pn.error,{flushSync:Je});return}else if(pn.matches)Ee=pn.matches;else{ye(te,ee,ca(404,{pathname:ie}),{flushSync:Je});return}}let jt=Fg(Ee,ie);B.set(te,rt);let un=K,Wn=Ou(o,a,pt,Ee,jt,r,Ae),Lt=(await Xt(pt,Wn,Ae,te))[jt.route.id];if(B.get(te)===rt&&B.delete(te),!pt.signal.aborted){if(P.has(te)){de(te,Bs(void 0));return}if(Bl(Lt))if(ae>un){de(te,Bs(void 0));return}else{N.add(te),await Le(pt,Lt,!1,{preventScrollReset:et});return}if(jo(Lt)){ye(te,ee,Lt.error);return}de(te,Bs(Lt.data))}}async function Le(te,ee,ie,{submission:Ee,fetcherSubmission:Ae,preventScrollReset:Qe,replace:Je}={}){ee.response.headers.has("X-Remix-Revalidate")&&(q=!0);let et=ee.response.headers.get("Location");Yt(et,"Expected a Location header on the redirect Response"),et=gw(et,new URL(te.url),u);let it=Np(O.location,et,{_isRedirect:!0});if(n){let Wn=!1;if(ee.response.headers.has("X-Remix-Reload-Document"))Wn=!0;else if(HT(et)){const Yn=zN(et,!0);Wn=Yn.origin!==t.location.origin||Ta(Yn.pathname,u)==null}if(Wn){Je?t.location.replace(et):t.location.assign(et);return}}U=null;let gt=Je===!0||ee.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:rt,formAction:pt,formEncType:jt}=O.navigation;!Ee&&!Ae&&rt&&pt&&jt&&(Ee=Sw(O.navigation));let un=Ee||Ae;if(sB.has(ee.response.status)&&un&&bo(un.formMethod))await Re(gt,it,{submission:{...un,formAction:et},preventScrollReset:Qe||H,enableViewTransition:ie?S:void 0});else{let Wn=z1(it,Ee);await Re(gt,it,{overrideNavigation:Wn,fetcherSubmission:Ae,preventScrollReset:Qe||H,enableViewTransition:ie?S:void 0})}}async function Xt(te,ee,ie,Ee){let Ae,Qe={};try{Ae=await yB(d,te,ee,Ee,ie,!1)}catch(Je){return ee.filter(et=>et.shouldLoad).forEach(et=>{Qe[et.route.id]={type:"error",error:Je}}),Qe}if(te.signal.aborted)return Qe;for(let[Je,et]of Object.entries(Ae))if(SB(et)){let it=et.result;Qe[Je]={type:"redirect",response:EB(it,te,Je,ee,u)}}else Qe[Je]=await vB(et);return Qe}async function Bt(te,ee,ie,Ee){let Ae=Xt(ie,te,Ee,null),Qe=Promise.all(ee.map(async it=>{if(it.matches&&it.match&&it.request&&it.controller){let rt=(await Xt(it.request,it.matches,Ee,it.key))[it.match.route.id];return{[it.key]:rt}}else return Promise.resolve({[it.key]:{type:"error",error:ca(404,{pathname:it.path})}})})),Je=await Ae,et=(await Qe).reduce((it,gt)=>Object.assign(it,gt),{});return{loaderResults:Je,fetcherResults:et}}function At(){q=!0,Q.forEach((te,ee)=>{B.has(ee)&&Y.add(ee),Ze(ee)})}function de(te,ee,ie={}){O.fetchers.set(te,ee),Me({fetchers:new Map(O.fetchers)},{flushSync:(ie&&ie.flushSync)===!0})}function ye(te,ee,ie,Ee={}){let Ae=Ll(O.matches,ee);Xe(te),Me({errors:{[Ae.route.id]:ie},fetchers:new Map(O.fetchers)},{flushSync:(Ee&&Ee.flushSync)===!0})}function $e(te){return X.set(te,(X.get(te)||0)+1),P.has(te)&&P.delete(te),O.fetchers.get(te)||lB}function Xe(te){let ee=O.fetchers.get(te);B.has(te)&&!(ee&&ee.state==="loading"&&ne.has(te))&&Ze(te),Q.delete(te),ne.delete(te),N.delete(te),P.delete(te),Y.delete(te),O.fetchers.delete(te)}function Et(te){let ee=(X.get(te)||0)-1;ee<=0?(X.delete(te),P.add(te)):X.set(te,ee),Me({fetchers:new Map(O.fetchers)})}function Ze(te){let ee=B.get(te);ee&&(ee.abort(),B.delete(te))}function Zt(te){for(let ee of te){let ie=$e(ee),Ee=Bs(ie.data);O.fetchers.set(ee,Ee)}}function Vt(){let te=[],ee=!1;for(let ie of N){let Ee=O.fetchers.get(ie);Yt(Ee,`Expected fetcher: ${ie}`),Ee.state==="loading"&&(N.delete(ie),te.push(ie),ee=!0)}return Zt(te),ee}function tn(te){let ee=[];for(let[ie,Ee]of ne)if(Ee<te){let Ae=O.fetchers.get(ie);Yt(Ae,`Expected fetcher: ${ie}`),Ae.state==="loading"&&(Ze(ie),ne.delete(ie),ee.push(ie))}return Zt(ee),ee.length>0}function he(te,ee){let ie=O.blockers.get(te)||Sf;return re.get(te)!==ee&&re.set(te,ee),ie}function xe(te){O.blockers.delete(te),re.delete(te)}function tt(te,ee){let ie=O.blockers.get(te)||Sf;Yt(ie.state==="unblocked"&&ee.state==="blocked"||ie.state==="blocked"&&ee.state==="blocked"||ie.state==="blocked"&&ee.state==="proceeding"||ie.state==="blocked"&&ee.state==="unblocked"||ie.state==="proceeding"&&ee.state==="unblocked",`Invalid blocker state transition: ${ie.state} -> ${ee.state}`);let Ee=new Map(O.blockers);Ee.set(te,ee),Me({blockers:Ee})}function nt({currentLocation:te,nextLocation:ee,historyAction:ie}){if(re.size===0)return;re.size>1&&br(!1,"A router only supports one blocker at a time");let Ee=Array.from(re.entries()),[Ae,Qe]=Ee[Ee.length-1],Je=O.blockers.get(Ae);if(!(Je&&Je.state==="proceeding")&&Qe({currentLocation:te,nextLocation:ee,historyAction:ie}))return Ae}function rn(te){let ee=ca(404,{pathname:te}),ie=l||s,{matches:Ee,route:Ae}=xw(ie);return{notFoundMatches:Ee,route:Ae,error:ee}}function Pr(te,ee,ie){if(y=te,T=ee,v=ie||null,!_&&O.navigation===H1){_=!0;let Ee=ur(O.location,O.matches);Ee!=null&&Me({restoreScrollPosition:Ee})}return()=>{y=null,T=null,v=null}}function Er(te,ee){return v&&v(te,ee.map(Ee=>BF(Ee,O.loaderData)))||te.key}function qn(te,ee){if(y&&T){let ie=Er(te,ee);y[ie]=T()}}function ur(te,ee){if(y){let ie=Er(te,ee),Ee=y[ie];if(typeof Ee=="number")return Ee}return null}function uo(te,ee,ie){if(e.patchRoutesOnNavigation)if(te){if(Object.keys(te[0].params).length>0)return{active:!0,matches:Mg(ee,ie,u,!0)}}else return{active:!0,matches:Mg(ee,ie,u,!0)||[]};return{active:!1,matches:null}}async function En(te,ee,ie,Ee){if(!e.patchRoutesOnNavigation)return{type:"success",matches:te};let Ae=te;for(;;){let Qe=l==null,Je=l||s,et=a;try{await e.patchRoutesOnNavigation({signal:ie,path:ee,matches:Ae,fetcherKey:Ee,patch:(rt,pt)=>{ie.aborted||fw(rt,pt,Je,et,o,!1)}})}catch(rt){return{type:"error",error:rt,partialMatches:Ae}}finally{Qe&&!ie.aborted&&(s=[...s])}if(ie.aborted)return{type:"aborted"};let it=Hs(Je,ee,u);if(it)return{type:"success",matches:it};let gt=Mg(Je,ee,u,!0);if(!gt||Ae.length===gt.length&&Ae.every((rt,pt)=>rt.route.id===gt[pt].route.id))return{type:"success",matches:null};Ae=gt}}function Lr(te){a={},l=Pp(te,o,void 0,a)}function bt(te,ee,ie=!1){let Ee=l==null;fw(te,ee,l||s,a,o,ie),Ee&&(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:ve,subscribe:qe,enableScrollRestoration:Pr,navigate:Ke,fetch:ct,revalidate:at,createHref:te=>e.history.createHref(te),encodeLocation:te=>e.history.encodeLocation(te),getFetcher:$e,deleteFetcher:Et,dispose:be,getBlocker:he,deleteBlocker:xe,patchRoutes:bt,_internalFetchControllers:B,_internalSetRoutes:Lr,_internalSetStateDoNotUseOrYouWillBreakYourApp(te){Me(te)}},I}function fB(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function lx(e,t,n,r,o,a){let s,l;if(o){s=[];for(let d of t)if(s.push(d),d.route.id===o){l=d;break}}else s=t,l=t[t.length-1];let u=UT(r||".",jT(s),Ta(e.pathname,n)||e.pathname,a==="path");if(r==null&&(u.search=e.search,u.hash=e.hash),(r==null||r===""||r===".")&&l){let d=zT(u.search);if(l.route.index&&!d)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!l.route.index&&d){let p=new URLSearchParams(u.search),h=p.getAll("index");p.delete("index"),h.filter(y=>y).forEach(y=>p.append("index",y));let g=p.toString();u.search=g?`?${g}`:""}}return n!=="/"&&(u.pathname=XF({basename:n,pathname:u.pathname})),Xs(u)}function uw(e,t,n){if(!n||!fB(n))return{path:t};if(n.formMethod&&!CB(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=e3(t);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!bo(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,v])=>`${g}${y}=${v}
|
|
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(!bo(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()}}}Yt(typeof FormData=="function","FormData is not available in this environment");let l,u;if(n.formData)l=dx(n.formData),u=n.formData;else if(n.body instanceof FormData)l=dx(n.body),u=n.body;else if(n.body instanceof URLSearchParams)l=n.body,u=yw(l);else if(n.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(n.body),u=yw(l)}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(bo(d.formMethod))return{path:t,submission:d};let p=tl(t);return e&&p.search&&zT(p.search)&&l.append("index",""),p.search=`?${l}`,{path:Xs(p),submission:d}}function dw(e,t,n,r,o,a,s,l,u,d,p,h,g,y,v,T,_,x,D,C){let R=C?jo(C[1])?C[1].error:C[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(C&&jo(C[1])){let z=C[0];F=s.findIndex(q=>q.route.id===z)-1}let H=C?C[1].statusCode:void 0,U=H&&H>=400,S={currentUrl:I,currentParams:a.matches[0]?.params||{},nextUrl:O,nextParams:s[0].params,...l,actionResult:R,actionStatus:H},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=cx(Y,a.loaderData,a.errors):pB(a.loaderData,a.matches[q],z)&&(B=!0),B!==null)return ux(n,r,e,z,d,t,B);let K=U?!1:h||I.pathname+I.search===O.pathname+O.search||I.search!==O.search||hB(a.matches[q],z),ae={...S,defaultShouldRevalidate:K},ne=hy(z,ae);return ux(n,r,e,z,d,t,ne,ae)}),$=[];return v.forEach((z,q)=>{if(p||!s.some(X=>X.route.id===z.routeId)||y.has(q))return;let Y=a.fetchers.get(q),B=Y&&Y.state!=="idle"&&Y.data===void 0,K=Hs(_,z.path,x);if(!K){if(D&&B)return;$.push({key:q,routeId:z.routeId,path:z.path,matches:null,match:null,request:null,controller:null});return}if(T.has(q))return;let ae=Fg(K,z.path),ne=new AbortController,N=xu(o,z.path,ne.signal),Q=null;if(g.has(q))g.delete(q),Q=Ou(n,r,N,K,ae,d,t);else if(B)h&&(Q=Ou(n,r,N,K,ae,d,t));else{let X={...S,defaultShouldRevalidate:U?!1:h};hy(ae,X)&&(Q=Ou(n,r,N,K,ae,d,t,X))}Q&&$.push({key:q,routeId:z.routeId,path:z.path,matches:Q,match:ae,request:N,controller:ne})}),{dsMatches:M,revalidatingFetchers:$}}function cx(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 pB(e,t,n){let r=!t||n.route.id!==t.route.id,o=!e.hasOwnProperty(n.route.id);return r||o}function hB(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function hy(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function fw(e,t,n,r,o,a){let s;if(e){let d=r[e];Yt(d,`No route found to patch children into: routeId = ${e}`),d.children||(d.children=[]),s=d.children}else s=n;let l=[],u=[];if(t.forEach(d=>{let p=s.find(h=>QN(d,h));p?u.push({existingRoute:p,newRoute:d}):l.push(d)}),l.length>0){let d=Pp(l,o,[e||"_","patch",String(s?.length||"0")],r);s.push(...d)}if(a&&u.length>0)for(let d=0;d<u.length;d++){let{existingRoute:p,newRoute:h}=u[d],g=p,[y]=Pp([h],o,[],{},!0);Object.assign(g,{element:y.element?y.element:g.element,errorElement:y.errorElement?y.errorElement:g.errorElement,hydrateFallbackElement:y.hydrateFallbackElement?y.hydrateFallbackElement:g.hydrateFallbackElement})}}function QN(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=>QN(n,o))):!1}var pw=new WeakMap,KN=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let o=n[t.id];if(Yt(o,"No route found in manifest"),!o.lazy||typeof o.lazy!="object")return;let a=o.lazy[e];if(!a)return;let s=pw.get(o);s||(s={},pw.set(o,s));let l=s[e];if(l)return l;let u=(async()=>{let d=PF(e),h=o[e]!==void 0&&e!=="hasErrorBoundary";if(d)br(!d,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),s[e]=Promise.resolve();else if(h)br(!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},hw=new WeakMap;function mB(e,t,n,r,o){let a=n[e.id];if(Yt(a,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let p=hw.get(a);if(p)return{lazyRoutePromise:p,lazyHandlerPromise:p};let h=(async()=>{Yt(typeof e.lazy=="function","No lazy route function found");let g=await e.lazy(),y={};for(let v in g){let T=g[v];if(T===void 0)continue;let _=MF(v),D=a[v]!==void 0&&v!=="hasErrorBoundary";_?br(!_,"Route property "+v+" is not a supported property to be returned from a lazy route function. This property will be ignored."):D?br(!D,`Route "${a.id}" has a static property "${v}" defined but its lazy function is also returning a value for this property. The lazy route property "${v}" will be ignored.`):y[v]=T}Object.assign(a,y),Object.assign(a,{...r(a),lazy:void 0})})();return hw.set(a,h),h.catch(()=>{}),{lazyRoutePromise:h,lazyHandlerPromise:h}}let s=Object.keys(e.lazy),l=[],u;for(let p of s){if(o&&o.includes(p))continue;let h=KN({key:p,route:e,manifest:n,mapRouteProperties:r});h&&(l.push(h),p===t&&(u=h))}let d=l.length>0?Promise.all(l).then(()=>{}):void 0;return d?.catch(()=>{}),u?.catch(()=>{}),{lazyRoutePromise:d,lazyHandlerPromise:u}}async function mw(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 gB(e){return e.matches.some(t=>t.route.unstable_middleware)?XN(e,!1,()=>mw(e),(t,n)=>({[n]:{type:"error",result:t}})):mw(e)}async function XN(e,t,n,r){let{matches:o,request:a,params:s,context:l}=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 ZN({request:a,params:s,context:l},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 ZN(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 l=t[a];if(!l)return r.handlerResult=await o(),r.handlerResult;let[u,d]=l,p=!1,h,g=async()=>{if(p)throw new Error("You may only call `next()` once per middleware");p=!0,await ZN(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 JN(e,t,n,r,o){let a=KN({key:"unstable_middleware",route:r.route,manifest:t,mapRouteProperties:e}),s=mB(r.route,bo(n.method)?"action":"loader",t,e,o);return{middleware:a,route:s.lazyRoutePromise,handler:s.lazyHandlerPromise}}function ux(e,t,n,r,o,a,s,l=null){let u=!1,d=JN(e,t,n,r,o);return{...r,_lazyPromises:d,shouldLoad:s,unstable_shouldRevalidateArgs:l,unstable_shouldCallHandler(p){return u=!0,l?typeof p=="boolean"?hy(r,{...l,defaultShouldRevalidate:p}):hy(r,l):s},resolve(p){return u||s||p&&!bo(n.method)&&(r.route.lazy||r.route.loader)?bB({request:n,match:r,lazyHandlerPromise:d?.handler,lazyRoutePromise:d?.route,handlerOverride:p,scopedContext:a}):Promise.resolve({type:"data",result:void 0})}}}function Ou(e,t,n,r,o,a,s,l=null){return r.map(u=>u.route.id!==o.route.id?{...u,shouldLoad:!1,unstable_shouldRevalidateArgs:l,unstable_shouldCallHandler:()=>!1,_lazyPromises:JN(e,t,n,u,a),resolve:()=>Promise.resolve({type:"data",result:void 0})}:ux(e,t,n,u,a,s,!0,l))}async function yB(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 XN(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 bB({request:e,match:t,lazyHandlerPromise:n,lazyRoutePromise:r,handlerOverride:o,scopedContext:a}){let s,l,u=bo(e.method),d=u?"action":"loader",p=h=>{let g,y=new Promise((_,x)=>g=x);l=()=>g(),e.signal.addEventListener("abort",l);let v=_=>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},..._!==void 0?[_]:[]),T=(async()=>{try{return{type:"data",result:await(o?o(x=>v(x)):v())}}catch(_){return{type:"error",result:_}}})();return Promise.race([T,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(v=>{g=v}),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),v=y.pathname+y.search;throw ca(405,{method:e.method,pathname:v,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{l&&e.signal.removeEventListener("abort",l)}return s}async function vB(e){let{result:t,type:n}=e;if(t3(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 py(t.status,t.statusText,r),statusCode:t.status,headers:t.headers}:{type:"data",data:r,statusCode:t.status,headers:t.headers}}return n==="error"?Tw(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 py(t.init?.status||500,void 0,t.data),statusCode:Lp(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:Lp(t)?t.status:void 0}:Tw(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 EB(e,t,n,r,o){let a=e.headers.get("Location");if(Yt(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!HT(a)){let s=r.slice(0,r.findIndex(l=>l.route.id===n)+1);a=lx(new URL(t.url),s,o,a),e.headers.set("Location",a)}return e}function gw(e,t,n){if(HT(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 xu(e,t,n,r){let o=e.createURL(e3(t)).toString(),a={signal:n};if(r&&bo(r.formMethod)){let{formMethod:s,formEncType:l}=r;a.method=s.toUpperCase(),l==="application/json"?(a.headers=new Headers({"Content-Type":l}),a.body=JSON.stringify(r.json)):l==="text/plain"?a.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?a.body=dx(r.formData):a.body=r.formData}return new Request(o,a)}function dx(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function yw(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function xB(e,t,n,r=!1,o=!1){let a={},s=null,l,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(Yt(!Bl(y),"Cannot handle redirect results in processLoaderData"),jo(y)){let v=y.error;if(p!==void 0&&(v=p,p=void 0),s=s||{},o)s[g]=v;else{let T=Ll(e,g);s[T.route.id]==null&&(s[T.route.id]=v)}r||(a[g]=YN),u||(u=!0,l=Lp(y.error)?y.error.status:500),y.headers&&(d[g]=y.headers)}else a[g]=y.data,y.statusCode&&y.statusCode!==200&&!u&&(l=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:l||200,loaderHeaders:d}}function bw(e,t,n,r,o,a){let{loaderData:s,errors:l}=xB(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(Yt(g,"Did not find corresponding fetcher result"),!(h&&h.signal.aborted))if(jo(g)){let y=Ll(e.matches,p?.route.id);l&&l[y.route.id]||(l={...l,[y.route.id]:g.error}),e.fetchers.delete(d)}else if(Bl(g))Yt(!1,"Unhandled fetcher revalidation redirect");else{let y=Bs(g.data);e.fetchers.set(d,y)}}),{loaderData:s,errors:l}}function vw(e,t,n,r){let o=Object.entries(t).filter(([,a])=>a!==YN).reduce((a,[s,l])=>(a[s]=l,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 Ew(e){return e?jo(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Ll(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 xw(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",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",r&&t&&n?l=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:o==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l=`Route "${n}" does not match URL "${t}"`):e===404?(s="Not Found",l=`No route matches URL "${t}"`):e===405&&(s="Method Not Allowed",r&&t&&n?l=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(l=`Invalid request method "${r.toUpperCase()}"`)),new py(e||500,s,new Error(l),!0)}function ag(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,o]=t[n];if(Bl(o))return{key:r,result:o}}}function e3(e){let t=typeof e=="string"?tl(e):e;return Xs({...t,hash:""})}function TB(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function SB(e){return t3(e.result)&&iB.has(e.result.status)}function jo(e){return e.type==="error"}function Bl(e){return(e&&e.type)==="redirect"}function Tw(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function t3(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function CB(e){return aB.has(e.toUpperCase())}function bo(e){return rB.has(e.toUpperCase())}function zT(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Fg(e,t){let n=typeof t=="string"?tl(t).search:t.search;if(e[e.length-1].route.index&&zT(n||""))return e[e.length-1];let r=GN(e);return r[r.length-1]}function Sw(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 z1(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 _B(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 Cf(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 AB(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 kB(e,t){try{let n=e.sessionStorage.getItem(WN);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 wB(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(WN,JSON.stringify(n))}catch(r){br(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function DB(){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 mc=w.createContext(null);mc.displayName="DataRouter";var hh=w.createContext(null);hh.displayName="DataRouterState";w.createContext(!1);var $T=w.createContext({isTransitioning:!1});$T.displayName="ViewTransition";var n3=w.createContext(new Map);n3.displayName="Fetchers";var RB=w.createContext(null);RB.displayName="Await";var Ei=w.createContext(null);Ei.displayName="Navigation";var u0=w.createContext(null);u0.displayName="Location";var Ua=w.createContext({outlet:null,matches:[],isDataRoute:!1});Ua.displayName="Route";var VT=w.createContext(null);VT.displayName="RouteError";function IB(e,{relative:t}={}){Yt(mh(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=w.useContext(Ei),{hash:o,pathname:a,search:s}=gh(e,{relative:t}),l=a;return n!=="/"&&(l=a==="/"?n:di([n,a])),r.createHref({pathname:l,search:s,hash:o})}function mh(){return w.useContext(u0)!=null}function gc(){return Yt(mh(),"useLocation() may be used only in the context of a <Router> component."),w.useContext(u0).location}var r3="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function o3(e){w.useContext(Ei).static||w.useLayoutEffect(e)}function GT(){let{isDataRoute:e}=w.useContext(Ua);return e?GB():OB()}function OB(){Yt(mh(),"useNavigate() may be used only in the context of a <Router> component.");let e=w.useContext(mc),{basename:t,navigator:n}=w.useContext(Ei),{matches:r}=w.useContext(Ua),{pathname:o}=gc(),a=JSON.stringify(jT(r)),s=w.useRef(!1);return o3(()=>{s.current=!0}),w.useCallback((u,d={})=>{if(br(s.current,r3),!s.current)return;if(typeof u=="number"){n.go(u);return}let p=UT(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 NB=w.createContext(null);function PB(e){let t=w.useContext(Ua).outlet;return t&&w.createElement(NB.Provider,{value:e},t)}function id(){let{matches:e}=w.useContext(Ua),t=e[e.length-1];return t?t.params:{}}function gh(e,{relative:t}={}){let{matches:n}=w.useContext(Ua),{pathname:r}=gc(),o=JSON.stringify(jT(n));return w.useMemo(()=>UT(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function LB(e,t,n,r){Yt(mh(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=w.useContext(Ei),{matches:a}=w.useContext(Ua),s=a[a.length-1],l=s?s.params:{},u=s?s.pathname:"/",d=s?s.pathnameBase:"/",p=s&&s.route;{let x=p&&p.path||"";i3(u,!p||x.endsWith("*")||x.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${x}">) 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="${x}"> to <Route path="${x==="/"?"*":`${x}/*`}">.`)}let h=gc(),g;g=h;let y=g.pathname||"/",v=y;if(d!=="/"){let x=d.replace(/^\//,"").split("/");v="/"+y.replace(/^\//,"").split("/").slice(x.length).join("/")}let T=Hs(e,{pathname:v});return br(p||T!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),br(T==null||T[T.length-1].route.element!==void 0||T[T.length-1].route.Component!==void 0||T[T.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),UB(T&&T.map(x=>Object.assign({},x,{params:Object.assign({},l,x.params),pathname:di([d,o.encodeLocation?o.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?d:di([d,o.encodeLocation?o.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),a,n,r)}function MB(){let e=a3(),t=Lp(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=w.createElement(w.Fragment,null,w.createElement("p",null,"💿 Hey developer 👋"),w.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",w.createElement("code",{style:a},"ErrorBoundary")," or"," ",w.createElement("code",{style:a},"errorElement")," prop on your route.")),w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),n?w.createElement("pre",{style:o},n):null,s)}var FB=w.createElement(MB,null),BB=class extends w.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?w.createElement(Ua.Provider,{value:this.props.routeContext},w.createElement(VT.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function jB({routeContext:e,match:t,children:n}){let r=w.useContext(mc);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),w.createElement(Ua.Provider,{value:e},n)}function UB(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);Yt(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,l=-1;if(n)for(let u=0;u<o.length;u++){let d=o[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(l=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,l>=0?o=o.slice(0,l+1):o=[o[0]];break}}}return o.reduceRight((u,d,p)=>{let h,g=!1,y=null,v=null;n&&(h=a&&d.route.id?a[d.route.id]:void 0,y=d.route.errorElement||FB,s&&(l<0&&p===0?(i3("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,v=null):l===p&&(g=!0,v=d.route.hydrateFallbackElement||null)));let T=t.concat(o.slice(0,p+1)),_=()=>{let x;return h?x=y:g?x=v:d.route.Component?x=w.createElement(d.route.Component,null):d.route.element?x=d.route.element:x=u,w.createElement(jB,{match:d,routeContext:{outlet:u,matches:T,isDataRoute:n!=null},children:x})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?w.createElement(BB,{location:n.location,revalidation:n.revalidation,component:y,error:h,children:_(),routeContext:{outlet:null,matches:T,isDataRoute:!0}}):_()},null)}function qT(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function HB(e){let t=w.useContext(mc);return Yt(t,qT(e)),t}function zB(e){let t=w.useContext(hh);return Yt(t,qT(e)),t}function $B(e){let t=w.useContext(Ua);return Yt(t,qT(e)),t}function WT(e){let t=$B(e),n=t.matches[t.matches.length-1];return Yt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function VB(){return WT("useRouteId")}function a3(){let e=w.useContext(VT),t=zB("useRouteError"),n=WT("useRouteError");return e!==void 0?e:t.errors?.[n]}function GB(){let{router:e}=HB("useNavigate"),t=WT("useNavigate"),n=w.useRef(!1);return o3(()=>{n.current=!0}),w.useCallback(async(o,a={})=>{br(n.current,r3),n.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:t,...a}))},[e,t])}var Cw={};function i3(e,t,n){!t&&!Cw[e]&&(Cw[e]=!0,br(!1,n))}var _w={};function Aw(e,t){!e&&!_w[t]&&(_w[t]=!0,console.warn(t))}function qB(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&br(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:w.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&br(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:w.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&br(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:w.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var WB=["HydrateFallback","hydrateFallbackElement"],YB=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 QB({router:e,flushSync:t}){let[n,r]=w.useState(e.state),[o,a]=w.useState(),[s,l]=w.useState({isTransitioning:!1}),[u,d]=w.useState(),[p,h]=w.useState(),[g,y]=w.useState(),v=w.useRef(new Map),T=w.useCallback((C,{deletedFetchers:R,flushSync:I,viewTransitionOpts:O})=>{C.fetchers.forEach((H,U)=>{H.data!==void 0&&v.current.set(U,H.data)}),R.forEach(H=>v.current.delete(H)),Aw(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(Aw(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(C)):w.startTransition(()=>r(C));return}if(t&&I){t(()=>{p&&(u&&u.resolve(),p.skipTransition()),l({isTransitioning:!0,flushSync:!0,currentLocation:O.currentLocation,nextLocation:O.nextLocation})});let H=e.window.document.startViewTransition(()=>{t(()=>r(C))});H.finished.finally(()=>{t(()=>{d(void 0),h(void 0),a(void 0),l({isTransitioning:!1})})}),t(()=>h(H));return}p?(u&&u.resolve(),p.skipTransition(),y({state:C,currentLocation:O.currentLocation,nextLocation:O.nextLocation})):(a(C),l({isTransitioning:!0,flushSync:!1,currentLocation:O.currentLocation,nextLocation:O.nextLocation}))},[e.window,t,p,u]);w.useLayoutEffect(()=>e.subscribe(T),[e,T]),w.useEffect(()=>{s.isTransitioning&&!s.flushSync&&d(new YB)},[s]),w.useEffect(()=>{if(u&&o&&e.window){let C=o,R=u.promise,I=e.window.document.startViewTransition(async()=>{w.startTransition(()=>r(C)),await R});I.finished.finally(()=>{d(void 0),h(void 0),a(void 0),l({isTransitioning:!1})}),h(I)}},[o,u,e.window]),w.useEffect(()=>{u&&o&&n.location.key===o.location.key&&u.resolve()},[u,p,n.location,o]),w.useEffect(()=>{!s.isTransitioning&&g&&(a(g.state),l({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),y(void 0))},[s.isTransitioning,g]);let _=w.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:C=>e.navigate(C),push:(C,R,I)=>e.navigate(C,{state:R,preventScrollReset:I?.preventScrollReset}),replace:(C,R,I)=>e.navigate(C,{replace:!0,state:R,preventScrollReset:I?.preventScrollReset})}),[e]),x=e.basename||"/",D=w.useMemo(()=>({router:e,navigator:_,static:!1,basename:x}),[e,_,x]);return w.createElement(w.Fragment,null,w.createElement(mc.Provider,{value:D},w.createElement(hh.Provider,{value:n},w.createElement(n3.Provider,{value:v.current},w.createElement($T.Provider,{value:s},w.createElement(JB,{basename:x,location:n.location,navigationType:n.historyAction,navigator:_},w.createElement(KB,{routes:e.routes,future:e.future,state:n})))))),null)}var KB=w.memo(XB);function XB({routes:e,future:t,state:n}){return LB(e,void 0,n,t)}function ZB(e){return PB(e.context)}function JB({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:a=!1}){Yt(!mh(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),l=w.useMemo(()=>({basename:s,navigator:o,static:a,future:{}}),[s,o,a]);typeof n=="string"&&(n=tl(n));let{pathname:u="/",search:d="",hash:p="",state:h=null,key:g="default"}=n,y=w.useMemo(()=>{let v=Ta(u,s);return v==null?null:{location:{pathname:v,search:d,hash:p,state:h,key:g},navigationType:r}},[s,u,d,p,h,g,r]);return br(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:w.createElement(Ei.Provider,{value:l},w.createElement(u0.Provider,{children:t,value:y}))}var Bg="get",jg="application/x-www-form-urlencoded";function d0(e){return e!=null&&typeof e.tagName=="string"}function e9(e){return d0(e)&&e.tagName.toLowerCase()==="button"}function t9(e){return d0(e)&&e.tagName.toLowerCase()==="form"}function n9(e){return d0(e)&&e.tagName.toLowerCase()==="input"}function r9(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function o9(e,t){return e.button===0&&(!t||t==="_self")&&!r9(e)}var ig=null;function a9(){if(ig===null)try{new FormData(document.createElement("form"),0),ig=!1}catch{ig=!0}return ig}var i9=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function $1(e){return e!=null&&!i9.has(e)?(br(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${jg}"`),null):e}function s9(e,t){let n,r,o,a,s;if(t9(e)){let l=e.getAttribute("action");r=l?Ta(l,t):null,n=e.getAttribute("method")||Bg,o=$1(e.getAttribute("enctype"))||jg,a=new FormData(e)}else if(e9(e)||n9(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let u=e.getAttribute("formaction")||l.getAttribute("action");if(r=u?Ta(u,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||Bg,o=$1(e.getAttribute("formenctype"))||$1(l.getAttribute("enctype"))||jg,a=new FormData(l,e),!a9()){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(d0(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Bg,r=null,o=jg,s=e}return a&&o==="text/plain"&&(s=a,a=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:a,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function YT(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function l9(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&Ta(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function c9(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 u9(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 d9(e,t,n){let r=await Promise.all(e.map(async o=>{let a=t.routes[o.route.id];if(a){let s=await c9(a,n);return s.links?s.links():[]}return[]}));return m9(r.flat(1).filter(u9).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function kw(e,t,n,r,o,a){let s=(u,d)=>n[d]?u.route.id!==n[d].route.id:!0,l=(u,d)=>n[d].pathname!==u.pathname||n[d].route.path?.endsWith("*")&&n[d].params["*"]!==u.params["*"];return a==="assets"?t.filter((u,d)=>s(u,d)||l(u,d)):a==="data"?t.filter((u,d)=>{let p=r.routes[u.route.id];if(!p||!p.hasLoader)return!1;if(s(u,d)||l(u,d))return!0;if(u.route.shouldRevalidate){let h=u.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:u.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function f9(e,t,{includeHydrateFallback:n}={}){return p9(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 p9(e){return[...new Set(e)]}function h9(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function m9(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let a=JSON.stringify(h9(o));return n.has(a)||(n.add(a),r.push({key:a,link:o})),r},[])}function s3(){let e=w.useContext(mc);return YT(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function g9(){let e=w.useContext(hh);return YT(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var QT=w.createContext(void 0);QT.displayName="FrameworkContext";function l3(){let e=w.useContext(QT);return YT(e,"You must render this element inside a <HydratedRouter> element"),e}function y9(e,t){let n=w.useContext(QT),[r,o]=w.useState(!1),[a,s]=w.useState(!1),{onFocus:l,onBlur:u,onMouseEnter:d,onMouseLeave:p,onTouchStart:h}=t,g=w.useRef(null);w.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let T=x=>{x.forEach(D=>{s(D.isIntersecting)})},_=new IntersectionObserver(T,{threshold:.5});return g.current&&_.observe(g.current),()=>{_.disconnect()}}},[e]),w.useEffect(()=>{if(r){let T=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(T)}}},[r]);let y=()=>{o(!0)},v=()=>{o(!1),s(!1)};return n?e!=="intent"?[a,g,{}]:[a,g,{onFocus:_f(l,y),onBlur:_f(u,v),onMouseEnter:_f(d,y),onMouseLeave:_f(p,v),onTouchStart:_f(h,y)}]:[!1,g,{}]}function _f(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function b9({page:e,...t}){let{router:n}=s3(),r=w.useMemo(()=>Hs(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?w.createElement(E9,{page:e,matches:r,...t}):null}function v9(e){let{manifest:t,routeModules:n}=l3(),[r,o]=w.useState([]);return w.useEffect(()=>{let a=!1;return d9(e,t,n).then(s=>{a||o(s)}),()=>{a=!0}},[e,t,n]),r}function E9({page:e,matches:t,...n}){let r=gc(),{manifest:o,routeModules:a}=l3(),{basename:s}=s3(),{loaderData:l,matches:u}=g9(),d=w.useMemo(()=>kw(e,t,u,o,r,"data"),[e,t,u,o,r]),p=w.useMemo(()=>kw(e,t,u,o,r,"assets"),[e,t,u,o,r]),h=w.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let v=new Set,T=!1;if(t.forEach(x=>{let D=o.routes[x.route.id];!D||!D.hasLoader||(!d.some(C=>C.route.id===x.route.id)&&x.route.id in l&&a[x.route.id]?.shouldRevalidate||D.hasClientLoader?T=!0:v.add(x.route.id))}),v.size===0)return[];let _=l9(e,s,"data");return T&&v.size>0&&_.searchParams.set("_routes",t.filter(x=>v.has(x.route.id)).map(x=>x.route.id).join(",")),[_.pathname+_.search]},[s,l,r,o,d,t,e,a]),g=w.useMemo(()=>f9(p,o),[p,o]),y=v9(p);return w.createElement(w.Fragment,null,h.map(v=>w.createElement("link",{key:v,rel:"prefetch",as:"fetch",href:v,...n})),g.map(v=>w.createElement("link",{key:v,rel:"modulepreload",href:v,...n})),y.map(({key:v,link:T})=>w.createElement("link",{key:v,...T})))}function x9(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var c3=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{c3&&(window.__reactRouterVersion="7.7.1")}catch{}function T9(e,t){return dB({basename:t?.basename,unstable_getContext:t?.unstable_getContext,future:t?.future,history:RF({window:t?.window}),hydrationData:S9(),routes:e,mapRouteProperties:qB,hydrationRouteProperties:WB,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function S9(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:C9(e.errors)}),e}function C9(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 py(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 u3=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,d3=w.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:a,replace:s,state:l,target:u,to:d,preventScrollReset:p,viewTransition:h,...g},y){let{basename:v}=w.useContext(Ei),T=typeof d=="string"&&u3.test(d),_,x=!1;if(typeof d=="string"&&T&&(_=d,c3))try{let U=new URL(window.location.href),S=d.startsWith("//")?new URL(U.protocol+d):new URL(d),M=Ta(S.pathname,v);S.origin===U.origin&&M!=null?d=M+S.search+S.hash:x=!0}catch{br(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let D=IB(d,{relative:o}),[C,R,I]=y9(r,g),O=w9(d,{replace:s,state:l,target:u,preventScrollReset:p,relative:o,viewTransition:h});function F(U){t&&t(U),U.defaultPrevented||O(U)}let H=w.createElement("a",{...g,...I,href:_||D,onClick:x||a?t:F,ref:x9(y,R),target:u,"data-discover":!T&&n==="render"?"true":void 0});return C&&!T?w.createElement(w.Fragment,null,H,w.createElement(b9,{page:D})):H});d3.displayName="Link";var _9=w.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:a,to:s,viewTransition:l,children:u,...d},p){let h=gh(s,{relative:d.relative}),g=gc(),y=w.useContext(hh),{navigator:v,basename:T}=w.useContext(Ei),_=y!=null&&N9(h)&&l===!0,x=v.encodeLocation?v.encodeLocation(h).pathname:h.pathname,D=g.pathname,C=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;n||(D=D.toLowerCase(),C=C?C.toLowerCase():null,x=x.toLowerCase()),C&&T&&(C=Ta(C,T)||C);const R=x!=="/"&&x.endsWith("/")?x.length-1:x.length;let I=D===x||!o&&D.startsWith(x)&&D.charAt(R)==="/",O=C!=null&&(C===x||!o&&C.startsWith(x)&&C.charAt(x.length)==="/"),F={isActive:I,isPending:O,isTransitioning:_},H=I?t:void 0,U;typeof r=="function"?U=r(F):U=[r,I?"active":null,O?"pending":null,_?"transitioning":null].filter(Boolean).join(" ");let S=typeof a=="function"?a(F):a;return w.createElement(d3,{...d,"aria-current":H,className:U,ref:p,style:S,to:s,viewTransition:l},typeof u=="function"?u(F):u)});_9.displayName="NavLink";var A9=w.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:a,method:s=Bg,action:l,onSubmit:u,relative:d,preventScrollReset:p,viewTransition:h,...g},y)=>{let v=I9(),T=O9(l,{relative:d}),_=s.toLowerCase()==="get"?"get":"post",x=typeof l=="string"&&u3.test(l),D=C=>{if(u&&u(C),C.defaultPrevented)return;C.preventDefault();let R=C.nativeEvent.submitter,I=R?.getAttribute("formmethod")||s;v(R||C.currentTarget,{fetcherKey:t,method:I,navigate:n,replace:o,state:a,relative:d,preventScrollReset:p,viewTransition:h})};return w.createElement("form",{ref:y,method:_,action:T,onSubmit:r?u:D,...g,"data-discover":!x&&e==="render"?"true":void 0})});A9.displayName="Form";function k9(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function f3(e){let t=w.useContext(mc);return Yt(t,k9(e)),t}function w9(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:a,viewTransition:s}={}){let l=GT(),u=gc(),d=gh(e,{relative:a});return w.useCallback(p=>{if(o9(p,t)){p.preventDefault();let h=n!==void 0?n:Xs(u)===Xs(d);l(e,{replace:h,state:r,preventScrollReset:o,relative:a,viewTransition:s})}},[u,l,d,n,r,t,e,o,a,s])}var D9=0,R9=()=>`__${String(++D9)}__`;function I9(){let{router:e}=f3("useSubmit"),{basename:t}=w.useContext(Ei),n=VB();return w.useCallback(async(r,o={})=>{let{action:a,method:s,encType:l,formData:u,body:d}=s9(r,t);if(o.navigate===!1){let p=o.fetcherKey||R9();await e.fetch(p,n,o.action||a,{preventScrollReset:o.preventScrollReset,formData:u,body:d,formMethod:o.method||s,formEncType:o.encType||l,flushSync:o.flushSync})}else await e.navigate(o.action||a,{preventScrollReset:o.preventScrollReset,formData:u,body:d,formMethod:o.method||s,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function O9(e,{relative:t}={}){let{basename:n}=w.useContext(Ei),r=w.useContext(Ua);Yt(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),a={...gh(e||".",{relative:t})},s=gc();if(e==null){a.search=s.search;let l=new URLSearchParams(a.search),u=l.getAll("index");if(u.some(p=>p==="")){l.delete("index"),u.filter(h=>h).forEach(h=>l.append("index",h));let p=l.toString();a.search=p?`?${p}`:""}}return(!e||e===".")&&o.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(a.pathname=a.pathname==="/"?n:di([n,a.pathname])),Xs(a)}function N9(e,{relative:t}={}){let n=w.useContext($T);Yt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=f3("useViewTransitionState"),o=gh(e,{relative:t});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 fy(o.pathname,s)!=null||fy(o.pathname,a)!=null}var f0=UN();const zs=jN(f0);function P9(e){return w.createElement(QB,{flushSync:f0.flushSync,...e})}const L9="modulepreload",M9=function(e){return"/"+e},ww={},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 l=document.querySelector("meta[property=csp-nonce]"),u=l?.nonce||l?.getAttribute("nonce");o=s(n.map(d=>{if(d=M9(d),d in ww)return;ww[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":L9,p||(g.as="script"),g.crossOrigin="",g.href=d,u&&g.setAttribute("nonce",u),document.head.appendChild(g),p)return new Promise((y,v)=>{g.addEventListener("load",y),g.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${d}`)))})}))}function a(s){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=s,window.dispatchEvent(l),!l.defaultPrevented)throw s}return o.then(s=>{for(const l of s||[])l.status==="rejected"&&a(l.reason);return t().catch(a)})};function rs(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 my(){return my=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},my.apply(null,arguments)}function F9(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 B9(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 j9=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(B9(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=F9(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}(),qr="-ms-",gy="-moz-",an="-webkit-",p3="comm",KT="rule",XT="decl",U9="@import",h3="@keyframes",H9="@layer",z9=Math.abs,p0=String.fromCharCode,$9=Object.assign;function V9(e,t){return jr(e,0)^45?(((t<<2^jr(e,0))<<2^jr(e,1))<<2^jr(e,2))<<2^jr(e,3):0}function m3(e){return e.trim()}function G9(e,t){return(e=t.exec(e))?e[0]:e}function sn(e,t,n){return e.replace(t,n)}function fx(e,t){return e.indexOf(t)}function jr(e,t){return e.charCodeAt(t)|0}function Mp(e,t,n){return e.slice(t,n)}function ai(e){return e.length}function ZT(e){return e.length}function sg(e,t){return t.push(e),e}function q9(e,t){return e.map(t).join("")}var h0=1,$u=1,g3=0,Co=0,yr=0,sd="";function m0(e,t,n,r,o,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:h0,column:$u,length:s,return:""}}function Af(e,t){return $9(m0("",null,null,"",null,null,0),e,{length:-e.length},t)}function W9(){return yr}function Y9(){return yr=Co>0?jr(sd,--Co):0,$u--,yr===10&&($u=1,h0--),yr}function $o(){return yr=Co<g3?jr(sd,Co++):0,$u++,yr===10&&($u=1,h0++),yr}function fi(){return jr(sd,Co)}function Ug(){return Co}function yh(e,t){return Mp(sd,e,t)}function Fp(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 y3(e){return h0=$u=1,g3=ai(sd=e),Co=0,[]}function b3(e){return sd="",e}function Hg(e){return m3(yh(Co-1,px(e===91?e+2:e===40?e+1:e)))}function Q9(e){for(;(yr=fi())&&yr<33;)$o();return Fp(e)>2||Fp(yr)>3?"":" "}function K9(e,t){for(;--t&&$o()&&!(yr<48||yr>102||yr>57&&yr<65||yr>70&&yr<97););return yh(e,Ug()+(t<6&&fi()==32&&$o()==32))}function px(e){for(;$o();)switch(yr){case e:return Co;case 34:case 39:e!==34&&e!==39&&px(yr);break;case 40:e===41&&px(e);break;case 92:$o();break}return Co}function X9(e,t){for(;$o()&&e+yr!==57;)if(e+yr===84&&fi()===47)break;return"/*"+yh(t,Co-1)+"*"+p0(e===47?e:$o())}function Z9(e){for(;!Fp(fi());)$o();return yh(e,Co)}function J9(e){return b3(zg("",null,null,null,[""],e=y3(e),0,[0],e))}function zg(e,t,n,r,o,a,s,l,u){for(var d=0,p=0,h=s,g=0,y=0,v=0,T=1,_=1,x=1,D=0,C="",R=o,I=a,O=r,F=C;_;)switch(v=D,D=$o()){case 40:if(v!=108&&jr(F,h-1)==58){fx(F+=sn(Hg(D),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:F+=Hg(D);break;case 9:case 10:case 13:case 32:F+=Q9(v);break;case 92:F+=K9(Ug()-1,7);continue;case 47:switch(fi()){case 42:case 47:sg(ej(X9($o(),Ug()),t,n),u);break;default:F+="/"}break;case 123*T:l[d++]=ai(F)*x;case 125*T:case 59:case 0:switch(D){case 0:case 125:_=0;case 59+p:x==-1&&(F=sn(F,/\f/g,"")),y>0&&ai(F)-h&&sg(y>32?Rw(F+";",r,n,h-1):Rw(sn(F," ","")+";",r,n,h-2),u);break;case 59:F+=";";default:if(sg(O=Dw(F,t,n,d,p,o,l,C,R=[],I=[],h),a),D===123)if(p===0)zg(F,t,O,O,R,a,h,l,I);else switch(g===99&&jr(F,3)===110?100:g){case 100:case 108:case 109:case 115:zg(e,O,O,r&&sg(Dw(e,O,O,0,0,o,l,C,o,R=[],h),I),o,I,h,l,r?R:I);break;default:zg(F,O,O,O,[""],I,0,l,I)}}d=p=y=0,T=x=1,C=F="",h=s;break;case 58:h=1+ai(F),y=v;default:if(T<1){if(D==123)--T;else if(D==125&&T++==0&&Y9()==125)continue}switch(F+=p0(D),D*T){case 38:x=p>0?1:(F+="\f",-1);break;case 44:l[d++]=(ai(F)-1)*x,x=1;break;case 64:fi()===45&&(F+=Hg($o())),g=fi(),p=h=ai(C=F+=Z9(Ug())),D++;break;case 45:v===45&&ai(F)==2&&(T=0)}}return a}function Dw(e,t,n,r,o,a,s,l,u,d,p){for(var h=o-1,g=o===0?a:[""],y=ZT(g),v=0,T=0,_=0;v<r;++v)for(var x=0,D=Mp(e,h+1,h=z9(T=s[v])),C=e;x<y;++x)(C=m3(T>0?g[x]+" "+D:sn(D,/&\f/g,g[x])))&&(u[_++]=C);return m0(e,t,n,o===0?KT:l,u,d,p)}function ej(e,t,n){return m0(e,t,n,p3,p0(W9()),Mp(e,2,-2),0)}function Rw(e,t,n,r){return m0(e,t,n,XT,Mp(e,0,r),Mp(e,r+1,-1),r)}function Nu(e,t){for(var n="",r=ZT(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function tj(e,t,n,r){switch(e.type){case H9:if(e.children.length)break;case U9:case XT:return e.return=e.return||e.value;case p3:return"";case h3:return e.return=e.value+"{"+Nu(e.children,r)+"}";case KT:e.value=e.props.join(",")}return ai(n=Nu(e.children,r))?e.return=e.value+"{"+n+"}":""}function nj(e){var t=ZT(e);return function(n,r,o,a){for(var s="",l=0;l<t;l++)s+=e[l](n,r,o,a)||"";return s}}function rj(e){return function(t){t.root||(t=t.return)&&e(t)}}function v3(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var oj=function(t,n,r){for(var o=0,a=0;o=a,a=fi(),o===38&&a===12&&(n[r]=1),!Fp(a);)$o();return yh(t,Co)},aj=function(t,n){var r=-1,o=44;do switch(Fp(o)){case 0:o===38&&fi()===12&&(n[r]=1),t[r]+=oj(Co-1,n,r);break;case 2:t[r]+=Hg(o);break;case 4:if(o===44){t[++r]=fi()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=p0(o)}while(o=$o());return t},ij=function(t,n){return b3(aj(y3(t),n))},Iw=new WeakMap,sj=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&&!Iw.get(r))&&!o){Iw.set(t,!0);for(var a=[],s=ij(n,a),l=r.props,u=0,d=0;u<s.length;u++)for(var p=0;p<l.length;p++,d++)t.props[d]=a[u]?s[u].replace(/&\f/g,l[p]):l[p]+" "+s[u]}}},lj=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function E3(e,t){switch(V9(e,t)){case 5103:return an+"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 an+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return an+e+gy+e+qr+e+e;case 6828:case 4268:return an+e+qr+e+e;case 6165:return an+e+qr+"flex-"+e+e;case 5187:return an+e+sn(e,/(\w+).+(:[^]+)/,an+"box-$1$2"+qr+"flex-$1$2")+e;case 5443:return an+e+qr+"flex-item-"+sn(e,/flex-|-self/,"")+e;case 4675:return an+e+qr+"flex-line-pack"+sn(e,/align-content|flex-|-self/,"")+e;case 5548:return an+e+qr+sn(e,"shrink","negative")+e;case 5292:return an+e+qr+sn(e,"basis","preferred-size")+e;case 6060:return an+"box-"+sn(e,"-grow","")+an+e+qr+sn(e,"grow","positive")+e;case 4554:return an+sn(e,/([^-])(transform)/g,"$1"+an+"$2")+e;case 6187:return sn(sn(sn(e,/(zoom-|grab)/,an+"$1"),/(image-set)/,an+"$1"),e,"")+e;case 5495:case 3959:return sn(e,/(image-set\([^]*)/,an+"$1$`$1");case 4968:return sn(sn(e,/(.+:)(flex-)?(.*)/,an+"box-pack:$3"+qr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+an+e+e;case 4095:case 3583:case 4068:case 2532:return sn(e,/(.+)-inline(.+)/,an+"$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(ai(e)-1-t>6)switch(jr(e,t+1)){case 109:if(jr(e,t+4)!==45)break;case 102:return sn(e,/(.+:)(.+)-([^]+)/,"$1"+an+"$2-$3$1"+gy+(jr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~fx(e,"stretch")?E3(sn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(jr(e,t+1)!==115)break;case 6444:switch(jr(e,ai(e)-3-(~fx(e,"!important")&&10))){case 107:return sn(e,":",":"+an)+e;case 101:return sn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+an+(jr(e,14)===45?"inline-":"")+"box$3$1"+an+"$2$3$1"+qr+"$2box$3")+e}break;case 5936:switch(jr(e,t+11)){case 114:return an+e+qr+sn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return an+e+qr+sn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return an+e+qr+sn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return an+e+qr+e+e}return e}var cj=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case XT:t.return=E3(t.value,t.length);break;case h3:return Nu([Af(t,{value:sn(t.value,"@","@"+an)})],o);case KT:if(t.length)return q9(t.props,function(a){switch(G9(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Nu([Af(t,{props:[sn(a,/:(read-\w+)/,":"+gy+"$1")]})],o);case"::placeholder":return Nu([Af(t,{props:[sn(a,/:(plac\w+)/,":"+an+"input-$1")]}),Af(t,{props:[sn(a,/:(plac\w+)/,":"+gy+"$1")]}),Af(t,{props:[sn(a,/:(plac\w+)/,qr+"input-$1")]})],o)}return""})}},uj=[cj],dj=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(T){var _=T.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(T),T.setAttribute("data-s",""))})}var o=t.stylisPlugins||uj,a={},s,l=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(T){for(var _=T.getAttribute("data-emotion").split(" "),x=1;x<_.length;x++)a[_[x]]=!0;l.push(T)});var u,d=[sj,lj];{var p,h=[tj,rj(function(T){p.insert(T)})],g=nj(d.concat(o,h)),y=function(_){return Nu(J9(_),g)};u=function(_,x,D,C){p=D,y(_?_+"{"+x.styles+"}":x.styles),C&&(v.inserted[x.name]=!0)}}var v={key:n,sheet:new j9({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 v.sheet.hydrate(l),v},V1={exports:{}},ln={};/** @license React v16.13.1
|
|
63
|
+
* react-is.production.min.js
|
|
64
|
+
*
|
|
65
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
66
|
+
*
|
|
67
|
+
* This source code is licensed under the MIT license found in the
|
|
68
|
+
* LICENSE file in the root directory of this source tree.
|
|
69
|
+
*/var Ow;function fj(){if(Ow)return ln;Ow=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,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,T=e?Symbol.for("react.block"):60121,_=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,D=e?Symbol.for("react.scope"):60119;function C(I){if(typeof I=="object"&&I!==null){var O=I.$$typeof;switch(O){case t:switch(I=I.type,I){case u:case d:case r:case a:case o:case h:return I;default:switch(I=I&&I.$$typeof,I){case l:case p:case v:case y:case s:return I;default:return O}}case n:return O}}}function R(I){return C(I)===d}return ln.AsyncMode=u,ln.ConcurrentMode=d,ln.ContextConsumer=l,ln.ContextProvider=s,ln.Element=t,ln.ForwardRef=p,ln.Fragment=r,ln.Lazy=v,ln.Memo=y,ln.Portal=n,ln.Profiler=a,ln.StrictMode=o,ln.Suspense=h,ln.isAsyncMode=function(I){return R(I)||C(I)===u},ln.isConcurrentMode=R,ln.isContextConsumer=function(I){return C(I)===l},ln.isContextProvider=function(I){return C(I)===s},ln.isElement=function(I){return typeof I=="object"&&I!==null&&I.$$typeof===t},ln.isForwardRef=function(I){return C(I)===p},ln.isFragment=function(I){return C(I)===r},ln.isLazy=function(I){return C(I)===v},ln.isMemo=function(I){return C(I)===y},ln.isPortal=function(I){return C(I)===n},ln.isProfiler=function(I){return C(I)===a},ln.isStrictMode=function(I){return C(I)===o},ln.isSuspense=function(I){return C(I)===h},ln.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===v||I.$$typeof===y||I.$$typeof===s||I.$$typeof===l||I.$$typeof===p||I.$$typeof===_||I.$$typeof===x||I.$$typeof===D||I.$$typeof===T)},ln.typeOf=C,ln}var Nw;function pj(){return Nw||(Nw=1,V1.exports=fj()),V1.exports}var G1,Pw;function hj(){if(Pw)return G1;Pw=1;var e=pj(),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(v){return e.isMemo(v)?o:a[v.$$typeof]||t}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,g=Object.prototype;function y(v,T,_){if(typeof T!="string"){if(g){var x=h(T);x&&x!==g&&y(v,x,_)}var D=u(T);d&&(D=D.concat(d(T)));for(var C=s(v),R=s(T),I=0;I<D.length;++I){var O=D[I];if(!n[O]&&!(_&&_[O])&&!(R&&R[O])&&!(C&&C[O])){var F=p(T,O);try{l(v,O,F)}catch{}}}}return v}return G1=y,G1}hj();var mj=!0;function x3(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var JT=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||mj===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},eS=function(t,n,r){JT(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 gj(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 yj={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},bj=/[A-Z]|^ms/g,vj=/_EMO_([^_]+?)_([^]*?)_EMO_/g,T3=function(t){return t.charCodeAt(1)===45},Lw=function(t){return t!=null&&typeof t!="boolean"},q1=v3(function(e){return T3(e)?e:e.replace(bj,"-$&").toLowerCase()}),Mw=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(vj,function(r,o,a){return ii={name:o,styles:a,next:ii},o})}return yj[t]!==1&&!T3(t)&&typeof n=="number"&&n!==0?n+"px":n};function Bp(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 ii={name:o.name,styles:o.styles,next:ii},o.name;var a=n;if(a.styles!==void 0){var s=a.next;if(s!==void 0)for(;s!==void 0;)ii={name:s.name,styles:s.styles,next:ii},s=s.next;var l=a.styles+";";return l}return Ej(e,t,n)}case"function":{if(e!==void 0){var u=ii,d=n(e);return ii=u,Bp(e,t,d)}break}}var p=n;if(t==null)return p;var h=t[p];return h!==void 0?h:p}function Ej(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Bp(e,t,n[o])+";";else for(var a in n){var s=n[a];if(typeof s!="object"){var l=s;t!=null&&t[l]!==void 0?r+=a+"{"+t[l]+"}":Lw(l)&&(r+=q1(a)+":"+Mw(a,l)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var u=0;u<s.length;u++)Lw(s[u])&&(r+=q1(a)+":"+Mw(a,s[u])+";");else{var d=Bp(e,t,s);switch(a){case"animation":case"animationName":{r+=q1(a)+":"+d+";";break}default:r+=a+"{"+d+"}"}}}return r}var Fw=/label:\s*([^\s;{]+)\s*(;|$)/g,ii;function bh(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="";ii=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,o+=Bp(n,t,a);else{var s=a;o+=s[0]}for(var l=1;l<e.length;l++)if(o+=Bp(n,t,e[l]),r){var u=a;o+=u[l]}Fw.lastIndex=0;for(var d="",p;(p=Fw.exec(o))!==null;)d+="-"+p[1];var h=gj(o)+d;return{name:h,styles:o,next:ii}}var xj=function(t){return t()},S3=sx.useInsertionEffect?sx.useInsertionEffect:!1,C3=S3||xj,Bw=S3||w.useLayoutEffect,_3=w.createContext(typeof HTMLElement<"u"?dj({key:"css"}):null);_3.Provider;var tS=function(t){return w.forwardRef(function(n,r){var o=w.useContext(_3);return t(n,o,r)})},ld=w.createContext({}),nS={}.hasOwnProperty,hx="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Tj=function(t,n){var r={};for(var o in n)nS.call(n,o)&&(r[o]=n[o]);return r[hx]=t,r},Sj=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return JT(n,r,o),C3(function(){return eS(n,r,o)}),null},Cj=tS(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[hx],a=[r],s="";typeof e.className=="string"?s=x3(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var l=bh(a,void 0,w.useContext(ld));s+=t.key+"-"+l.name;var u={};for(var d in e)nS.call(e,d)&&d!=="css"&&d!==hx&&(u[d]=e[d]);return u.className=s,n&&(u.ref=n),w.createElement(w.Fragment,null,w.createElement(Sj,{cache:t,serialized:l,isStringTag:typeof o=="string"}),w.createElement(o,u))}),_j=Cj,jw=function(t,n){var r=arguments;if(n==null||!nS.call(n,"css"))return w.createElement.apply(void 0,r);var o=r.length,a=new Array(o);a[0]=_j,a[1]=Tj(t,n);for(var s=2;s<o;s++)a[s]=r[s];return w.createElement.apply(null,a)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(jw||(jw={}));var Aj=tS(function(e,t){var n=e.styles,r=bh([n],void 0,w.useContext(ld)),o=w.useRef();return Bw(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}),l=!1,u=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),u!==null&&(l=!0,u.setAttribute("data-emotion",a),s.hydrate([u])),o.current=[s,l],function(){s.flush()}},[t]),Bw(function(){var a=o.current,s=a[0],l=a[1];if(l){a[1]=!1;return}if(r.next!==void 0&&eS(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 rS(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return bh(t)}function nl(){var e=rS.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 kj=/^((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)-.*))$/,wj=v3(function(e){return kj.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Dj=wj,Rj=function(t){return t!=="theme"},Uw=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Dj:Rj},Hw=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},Ij=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return JT(n,r,o),C3(function(){return eS(n,r,o)}),null},Oj=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 l=Hw(t,n,r),u=l||Uw(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,v=1;v<y;v++)h.push(p[v],g[v])}var T=tS(function(_,x,D){var C=d&&_.as||o,R="",I=[],O=_;if(_.theme==null){O={};for(var F in _)O[F]=_[F];O.theme=w.useContext(ld)}typeof _.className=="string"?R=x3(x.registered,I,_.className):_.className!=null&&(R=_.className+" ");var H=bh(h.concat(I),x.registered,O);R+=x.key+"-"+H.name,s!==void 0&&(R+=" "+s);var U=d&&l===void 0?Uw(C):u,S={};for(var M in _)d&&M==="as"||U(M)&&(S[M]=_[M]);return S.className=R,D&&(S.ref=D),w.createElement(w.Fragment,null,w.createElement(Ij,{cache:x,serialized:H,isStringTag:typeof C=="string"}),w.createElement(C,S))});return T.displayName=a!==void 0?a:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",T.defaultProps=t.defaultProps,T.__emotion_real=T,T.__emotion_base=o,T.__emotion_styles=h,T.__emotion_forwardProp=l,Object.defineProperty(T,"toString",{value:function(){return"."+s}}),T.withComponent=function(_,x){var D=e(_,my({},n,x,{shouldForwardProp:Hw(T,x,!0)}));return D.apply(void 0,h)},T}},Nj=["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"],yy=Oj.bind(null);Nj.forEach(function(e){yy[e]=yy(e)});function Pj(e){return e==null||Object.keys(e).length===0}function A3(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(Pj(o)?n:o):t;return b.jsx(Aj,{styles:r})}function k3(e,t){return yy(e,t)}function Lj(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const zw=[];function Ws(e){return zw[0]=e,bh(zw)}var W1={exports:{}},yn={};/**
|
|
70
|
+
* @license React
|
|
71
|
+
* react-is.production.js
|
|
72
|
+
*
|
|
73
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
74
|
+
*
|
|
75
|
+
* This source code is licensed under the MIT license found in the
|
|
76
|
+
* LICENSE file in the root directory of this source tree.
|
|
77
|
+
*/var $w;function Mj(){if($w)return yn;$w=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"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),g=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function v(T){if(typeof T=="object"&&T!==null){var _=T.$$typeof;switch(_){case e:switch(T=T.type,T){case n:case o:case r:case u:case d:case g:return T;default:switch(T=T&&T.$$typeof,T){case s:case l:case h:case p:return T;case a:return T;default:return _}}case t:return _}}}return yn.ContextConsumer=a,yn.ContextProvider=s,yn.Element=e,yn.ForwardRef=l,yn.Fragment=n,yn.Lazy=h,yn.Memo=p,yn.Portal=t,yn.Profiler=o,yn.StrictMode=r,yn.Suspense=u,yn.SuspenseList=d,yn.isContextConsumer=function(T){return v(T)===a},yn.isContextProvider=function(T){return v(T)===s},yn.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===e},yn.isForwardRef=function(T){return v(T)===l},yn.isFragment=function(T){return v(T)===n},yn.isLazy=function(T){return v(T)===h},yn.isMemo=function(T){return v(T)===p},yn.isPortal=function(T){return v(T)===t},yn.isProfiler=function(T){return v(T)===o},yn.isStrictMode=function(T){return v(T)===r},yn.isSuspense=function(T){return v(T)===u},yn.isSuspenseList=function(T){return v(T)===d},yn.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===n||T===o||T===r||T===u||T===d||typeof T=="object"&&T!==null&&(T.$$typeof===h||T.$$typeof===p||T.$$typeof===s||T.$$typeof===a||T.$$typeof===l||T.$$typeof===y||T.getModuleId!==void 0)},yn.typeOf=v,yn}var Vw;function Fj(){return Vw||(Vw=1,W1.exports=Mj()),W1.exports}var w3=Fj();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 D3(e){if(w.isValidElement(e)||w3.isValidElementType(e)||!ci(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=D3(e[n])}),t}function Nr(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return ci(e)&&ci(t)&&Object.keys(t).forEach(o=>{w.isValidElement(t[o])||w3.isValidElementType(t[o])?r[o]=t[o]:ci(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&ci(e[o])?r[o]=Nr(e[o],t[o],n):n.clone?r[o]=ci(t[o])?D3(t[o]):t[o]:r[o]=t[o]}),r}const Bj=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 jj(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,a=Bj(t),s=Object.keys(a);function l(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 v=s.indexOf(y);return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n}) and (max-width:${(v!==-1&&typeof t[s[v]]=="number"?t[s[v]]:y)-r/100}${n})`}function p(g){return s.indexOf(g)+1<s.length?d(g,s[s.indexOf(g)+1]):l(g)}function h(g){const y=s.indexOf(g);return y===0?l(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:l,down:u,between:d,only:p,not:h,unit:n,...o}}function Gw(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 Uj(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Hj(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 zj(e){const t=(a,s)=>a.replace("@media",s?`@container ${s}`:"@container");function n(a,s){a.up=(...l)=>t(e.breakpoints.up(...l),s),a.down=(...l)=>t(e.breakpoints.down(...l),s),a.between=(...l)=>t(e.breakpoints.between(...l),s),a.only=(...l)=>t(e.breakpoints.only(...l),s),a.not=(...l)=>{const u=t(e.breakpoints.not(...l),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 $j={borderRadius:4};function lp(e,t){return t?Nr(e,t,{clone:!1}):e}const g0={xs:0,sm:600,md:900,lg:1200,xl:1536},qw={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${g0[e]}px)`},Vj={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:g0[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Ma(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||qw;return t.reduce((s,l,u)=>(s[a.up(a.keys[u])]=n(t[u]),s),{})}if(typeof t=="object"){const a=r.breakpoints||qw;return Object.keys(t).reduce((s,l)=>{if(Uj(a.keys,l)){const u=Hj(r.containerQueries?r:Vj,l);u&&(s[u]=n(t[l],l))}else if(Object.keys(a.values||g0).includes(l)){const u=a.up(l);s[u]=n(t[l],l)}else{const u=l;s[u]=t[u]}return s},{})}return n(t)}function R3(e={}){return e.keys?.reduce((n,r)=>{const o=e.up(r);return n[o]={},n},{})||{}}function mx(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Gj(e,...t){const n=R3(e),r=[n,...t].reduce((o,a)=>Nr(o,a),{});return mx(Object.keys(n),r)}function qj(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 Y1({values:e,breakpoints:t,base:n}){const r=n||qj(e,t),o=Object.keys(r);if(o.length===0)return e;let a;return o.reduce((s,l,u)=>(Array.isArray(e)?(s[l]=e[u]!=null?e[u]:e[a],a=u):typeof e=="object"?(s[l]=e[l]!=null?e[l]:e[a],a=l):s[l]=e,s),{})}function Ne(e){if(typeof e!="string")throw new Error(rs(7));return e.charAt(0).toUpperCase()+e.slice(1)}function y0(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 by(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=y0(e,n)||r,t&&(o=t(o,r,e)),o}function lr(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=s=>{if(s[t]==null)return null;const l=s[t],u=s.theme,d=y0(u,r)||{};return Ma(s,l,h=>{let g=by(d,o,h);return h===g&&typeof h=="string"&&(g=by(d,o,`${t}${h==="default"?"":Ne(h)}`,h)),n===!1?g:{[n]:g}})};return a.propTypes={},a.filterProps=[t],a}function Wj(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Yj={m:"margin",p:"padding"},Qj={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ww={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Kj=Wj(e=>{if(e.length>2)if(Ww[e])e=Ww[e];else return[e];const[t,n]=e.split(""),r=Yj[t],o=Qj[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),oS=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],aS=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...oS,...aS];function vh(e,t,n,r){const o=y0(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),l=o[s];return a>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof o=="function"?o:()=>{}}function b0(e){return vh(e,"spacing",8)}function rc(e,t){return typeof t=="string"||t==null?t:e(t)}function Xj(e,t){return n=>e.reduce((r,o)=>(r[o]=rc(t,n),r),{})}function Zj(e,t,n,r){if(!t.includes(n))return null;const o=Kj(n),a=Xj(o,r),s=e[n];return Ma(e,s,a)}function I3(e,t){const n=b0(e.theme);return Object.keys(e).map(r=>Zj(e,t,r,n)).reduce(lp,{})}function Xn(e){return I3(e,oS)}Xn.propTypes={};Xn.filterProps=oS;function Zn(e){return I3(e,aS)}Zn.propTypes={};Zn.filterProps=aS;function iS(e=8,t=b0({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 v0(...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]?lp(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 lr({prop:e,themeKey:"borders",transform:t})}const Jj=_a("border",pa),eU=_a("borderTop",pa),tU=_a("borderRight",pa),nU=_a("borderBottom",pa),rU=_a("borderLeft",pa),oU=_a("borderColor"),aU=_a("borderTopColor"),iU=_a("borderRightColor"),sU=_a("borderBottomColor"),lU=_a("borderLeftColor"),cU=_a("outline",pa),uU=_a("outlineColor"),E0=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=vh(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:rc(t,r)});return Ma(e,e.borderRadius,n)}return null};E0.propTypes={};E0.filterProps=["borderRadius"];v0(Jj,eU,tU,nU,rU,oU,aU,iU,sU,lU,E0,cU,uU);const x0=e=>{if(e.gap!==void 0&&e.gap!==null){const t=vh(e.theme,"spacing",8),n=r=>({gap:rc(t,r)});return Ma(e,e.gap,n)}return null};x0.propTypes={};x0.filterProps=["gap"];const T0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=vh(e.theme,"spacing",8),n=r=>({columnGap:rc(t,r)});return Ma(e,e.columnGap,n)}return null};T0.propTypes={};T0.filterProps=["columnGap"];const S0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=vh(e.theme,"spacing",8),n=r=>({rowGap:rc(t,r)});return Ma(e,e.rowGap,n)}return null};S0.propTypes={};S0.filterProps=["rowGap"];const dU=lr({prop:"gridColumn"}),fU=lr({prop:"gridRow"}),pU=lr({prop:"gridAutoFlow"}),hU=lr({prop:"gridAutoColumns"}),mU=lr({prop:"gridAutoRows"}),gU=lr({prop:"gridTemplateColumns"}),yU=lr({prop:"gridTemplateRows"}),bU=lr({prop:"gridTemplateAreas"}),vU=lr({prop:"gridArea"});v0(x0,T0,S0,dU,fU,pU,hU,mU,gU,yU,bU,vU);function Pu(e,t){return t==="grey"?t:e}const EU=lr({prop:"color",themeKey:"palette",transform:Pu}),xU=lr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Pu}),TU=lr({prop:"backgroundColor",themeKey:"palette",transform:Pu});v0(EU,xU,TU);function Uo(e){return e<=1&&e!==0?`${e*100}%`:e}const SU=lr({prop:"width",transform:Uo}),sS=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||g0[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Uo(n)}};return Ma(e,e.maxWidth,t)}return null};sS.filterProps=["maxWidth"];const CU=lr({prop:"minWidth",transform:Uo}),_U=lr({prop:"height",transform:Uo}),AU=lr({prop:"maxHeight",transform:Uo}),kU=lr({prop:"minHeight",transform:Uo});lr({prop:"size",cssProperty:"width",transform:Uo});lr({prop:"size",cssProperty:"height",transform:Uo});const wU=lr({prop:"boxSizing"});v0(SU,sS,CU,_U,AU,kU,wU);const Eh={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:E0},color:{themeKey:"palette",transform:Pu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Pu},backgroundColor:{themeKey:"palette",transform:Pu},p:{style:Zn},pt:{style:Zn},pr:{style:Zn},pb:{style:Zn},pl:{style:Zn},px:{style:Zn},py:{style:Zn},padding:{style:Zn},paddingTop:{style:Zn},paddingRight:{style:Zn},paddingBottom:{style:Zn},paddingLeft:{style:Zn},paddingX:{style:Zn},paddingY:{style:Zn},paddingInline:{style:Zn},paddingInlineStart:{style:Zn},paddingInlineEnd:{style:Zn},paddingBlock:{style:Zn},paddingBlockStart:{style:Zn},paddingBlockEnd:{style:Zn},m:{style:Xn},mt:{style:Xn},mr:{style:Xn},mb:{style:Xn},ml:{style:Xn},mx:{style:Xn},my:{style:Xn},margin:{style:Xn},marginTop:{style:Xn},marginRight:{style:Xn},marginBottom:{style:Xn},marginLeft:{style:Xn},marginX:{style:Xn},marginY:{style:Xn},marginInline:{style:Xn},marginInlineStart:{style:Xn},marginInlineEnd:{style:Xn},marginBlock:{style:Xn},marginBlockStart:{style:Xn},marginBlockEnd:{style:Xn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:x0},rowGap:{style:S0},columnGap:{style:T0},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Uo},maxWidth:{style:sS},minWidth:{transform:Uo},height:{transform:Uo},maxHeight:{transform:Uo},minHeight:{transform:Uo},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 DU(...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 RU(e,t){return typeof e=="function"?e(t):e}function IU(){function e(n,r,o,a){const s={[n]:r,theme:o},l=a[n];if(!l)return{[n]:r};const{cssProperty:u=n,themeKey:d,transform:p,style:h}=l;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const g=y0(o,d)||{};return h?h(s):Ma(s,r,v=>{let T=by(g,p,v);return v===T&&typeof v=="string"&&(T=by(g,p,`${n}${v==="default"?"":Ne(v)}`,v)),u===!1?T:{[u]:T}})}function t(n){const{sx:r,theme:o={},nested:a}=n||{};if(!r)return null;const s=o.unstable_sxConfig??Eh;function l(u){let d=u;if(typeof u=="function")d=u(o);else if(typeof u!="object")return u;if(!d)return null;const p=R3(o.breakpoints),h=Object.keys(p);let g=p;return Object.keys(d).forEach(y=>{const v=RU(d[y],o);if(v!=null)if(typeof v=="object")if(s[y])g=lp(g,e(y,v,o,s));else{const T=Ma({theme:o},v,_=>({[y]:_}));DU(T,v)?g[y]=t({sx:v,theme:o,nested:!0}):g=lp(g,T)}else g=lp(g,e(y,v,o,s))}),!a&&o.modularCssLayers?{"@layer sx":Gw(o,mx(h,g))}:Gw(o,mx(h,g))}return Array.isArray(r)?r.map(l):l(r)}return t}const Zs=IU();Zs.filterProps=["sx"];function OU(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 cd(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={},...s}=e,l=jj(n),u=iS(o);let d=Nr({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:u,shape:{...$j,...a}},s);return d=zj(d),d.applyStyles=OU,d=t.reduce((p,h)=>Nr(p,h),d),d.unstable_sxConfig={...Eh,...s?.unstable_sxConfig},d.unstable_sx=function(h){return Zs({sx:h,theme:this})},d}function NU(e){return Object.keys(e).length===0}function lS(e=null){const t=w.useContext(ld);return!t||NU(t)?e:t}const PU=cd();function ud(e=PU){return lS(e)}function Q1(e){const t=Ws(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function O3({styles:e,themeId:t,defaultTheme:n={}}){const r=ud(n),o=t&&r[t]||r;let a=typeof e=="function"?e(o):e;return o.modularCssLayers&&(Array.isArray(a)?a=a.map(s=>Q1(typeof s=="function"?s(o):s)):a=Q1(a)),b.jsx(A3,{styles:a})}const LU=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Eh;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function C0(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=LU(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...s)=>{const l=t(...s);return ci(l)?{...r,...l}:r}:a={...r,...t},{...o,sx:a}}const Yw=e=>e,MU=()=>{let e=Yw;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Yw}}},cS=MU();function N3(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=N3(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function We(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=N3(e))&&(r&&(r+=" "),r+=t);return r}function P3(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,a=k3("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(Zs);return w.forwardRef(function(u,d){const p=ud(n),{className:h,component:g="div",...y}=C0(u);return b.jsx(a,{as:g,ref:d,className:We(h,o?o(r):r),theme:t&&p[t]||p,...y})})}const FU={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 st(e,t,n="Mui"){const r=FU[t];return r?`${n}-${r}`:`${cS.generate(e)}-${t}`}function ut(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=st(e,o,n)}),r}const BU=ut("MuiBox",["root"]),L3=P3({defaultClassName:BU.root,generateClassName:cS.generate});function M3(e){const{variants:t,...n}=e,r={variants:t,style:Ws(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Ws(o.style))}),r}const jU=cd();function $g(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function jl(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function UU(e){return e?(t,n)=>n[e]:null}function HU(e,t,n){e.theme=$U(e.theme)?n:e.theme[t]||e.theme}function Vg(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>Vg(e,o,n));if(Array.isArray(r?.variants)){let o;if(r.isProcessed)o=n?jl(r.style,n):r.style;else{const{variants:a,...s}=r;o=n?jl(Ws(s),n):s}return F3(e,r.variants,[o],n)}return r?.isProcessed?n?jl(Ws(r.style),n):r.style:n?jl(Ws(r),n):r}function F3(e,t,n=[],r=void 0){let o;e:for(let a=0;a<t.length;a+=1){const s=t[a];if(typeof s.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!s.props(o))continue}else for(const l in s.props)if(e[l]!==s.props[l]&&e.ownerState?.[l]!==s.props[l])continue e;typeof s.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?jl(Ws(s.style(o)),r):s.style(o))):n.push(r?jl(Ws(s.style),r):s.style)}return n}function B3(e={}){const{themeId:t,defaultTheme:n=jU,rootShouldForwardProp:r=$g,slotShouldForwardProp:o=$g}=e;function a(l){HU(l,t,n)}return(l,u={})=>{Lj(l,O=>O.filter(F=>F!==Zs));const{name:d,slot:p,skipVariantsResolver:h,skipSx:g,overridesResolver:y=UU(GU(p)),...v}=u,T=d&&d.startsWith("Mui")||p?"components":"custom",_=h!==void 0?h:p&&p!=="Root"&&p!=="root"||!1,x=g||!1;let D=$g;p==="Root"||p==="root"?D=r:p?D=o:VU(l)&&(D=void 0);const C=k3(l,{shouldForwardProp:D,label:zU(),...v}),R=O=>{if(O.__emotion_real===O)return O;if(typeof O=="function")return function(H){return Vg(H,O,H.theme.modularCssLayers?T:void 0)};if(ci(O)){const F=M3(O);return function(U){return F.variants?Vg(U,F,U.theme.modularCssLayers?T:void 0):U.theme.modularCssLayers?jl(F.style,T):F.style}}return O},I=(...O)=>{const F=[],H=O.map(R),U=[];if(F.push(a),d&&y&&U.push(function(z){const Y=z.theme.components?.[d]?.styleOverrides;if(!Y)return null;const B={};for(const K in Y)B[K]=Vg(z,Y[K],z.theme.modularCssLayers?"theme":void 0);return y(z,B)}),d&&!_&&U.push(function(z){const Y=z.theme?.components?.[d]?.variants;return Y?F3(z,Y,[],z.theme.modularCssLayers?"theme":void 0):null}),x||U.push(Zs),Array.isArray(H[0])){const $=H.shift(),z=new Array(F.length).fill(""),q=new Array(U.length).fill("");let Y;Y=[...z,...$,...q],Y.raw=[...z,...$.raw,...q],F.unshift(Y)}const S=[...F,...H,...U],M=C(...S);return l.muiName&&(M.muiName=l.muiName),M};return C.withConfig&&(I.withConfig=C.withConfig),I}}function zU(e,t){return void 0}function $U(e){for(const t in e)return!1;return!0}function VU(e){return typeof e=="string"&&e.charCodeAt(0)>96}function GU(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const uS=B3();function jp(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const a=o;if(a==="components"||a==="slots")r[a]={...e[a],...r[a]};else if(a==="componentsProps"||a==="slotProps"){const s=e[a],l=t[a];if(!l)r[a]=s||{};else if(!s)r[a]=l;else{r[a]={...l};for(const u in s)if(Object.prototype.hasOwnProperty.call(s,u)){const d=u;r[a][d]=jp(s[d],l[d],n)}}}else a==="className"&&n&&t.className?r.className=We(e?.className,t?.className):a==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[a]===void 0&&(r[a]=e[a])}return r}function qU(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:jp(t.components[n].defaultProps,r)}function dS({props:e,name:t,defaultTheme:n,themeId:r}){let o=ud(n);return r&&(o=o[r]||o),qU({theme:o,name:t,props:e})}const _o=typeof window<"u"?w.useLayoutEffect:w.useEffect;function WU(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function fS(e,t=0,n=1){return WU(e,t,n)}function YU(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(YU(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(rs(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(rs(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}const QU=e=>{const t=Js(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Zf=(e,t)=>{try{return QU(e)}catch{return e}};function _0(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 j3(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 l="rgb";const u=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",u.push(t[3])),_0({type:l,values:u})}function gx(e){e=Js(e);let t=e.type==="hsl"||e.type==="hsla"?Js(j3(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 KU(e,t){const n=gx(e),r=gx(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Dt(e,t){return e=Js(e),t=fS(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,_0(e)}function lg(e,t,n){try{return Dt(e,t)}catch{return e}}function xh(e,t){if(e=Js(e),t=fS(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 _0(e)}function Tn(e,t,n){try{return xh(e,t)}catch{return e}}function Th(e,t){if(e=Js(e),t=fS(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 _0(e)}function Sn(e,t,n){try{return Th(e,t)}catch{return e}}function yx(e,t=.15){return gx(e)>.5?xh(e,t):Th(e,t)}function cg(e,t,n){try{return yx(e,t)}catch{return e}}const U3=w.createContext(null);function pS(){return w.useContext(U3)}const XU=typeof Symbol=="function"&&Symbol.for,ZU=XU?Symbol.for("mui.nested"):"__THEME_NESTED__";function JU(e,t){return typeof t=="function"?t(e):{...e,...t}}function eH(e){const{children:t,theme:n}=e,r=pS(),o=w.useMemo(()=>{const a=r===null?{...n}:JU(r,n);return a!=null&&(a[ZU]=r!==null),a},[n,r]);return b.jsx(U3.Provider,{value:o,children:t})}const H3=w.createContext();function tH({value:e,...t}){return b.jsx(H3.Provider,{value:e??!0,...t})}const Sh=()=>w.useContext(H3)??!1,z3=w.createContext(void 0);function nH({value:e,children:t}){return b.jsx(z3.Provider,{value:e,children:t})}function rH(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?jp(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?jp(o,r,t.components.mergeClassNameAndStyle):r}function oH({props:e,name:t}){const n=w.useContext(z3);return rH({props:e,name:t,theme:{components:n}})}let Qw=0;function aH(e){const[t,n]=w.useState(e),r=e||t;return w.useEffect(()=>{t==null&&(Qw+=1,n(`mui-${Qw}`))},[t]),r}const iH={...sx},Kw=iH.useId;function yc(e){if(Kw!==void 0){const t=Kw();return e??t}return aH(e)}function sH(e){const t=lS(),n=yc()||"",{modularCssLayers:r}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!r||t!==null?o="":typeof r=="string"?o=r.replace(/mui(?!\.)/g,o):o=`@layer ${o};`,_o(()=>{const a=document.querySelector("head");if(!a)return;const s=a.firstChild;if(o){if(s&&s.hasAttribute?.("data-mui-layer-order")&&s.getAttribute("data-mui-layer-order")===n)return;const l=document.createElement("style");l.setAttribute("data-mui-layer-order",n),l.textContent=o,a.prepend(l)}else a.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove()},[o,n]),o?b.jsx(O3,{styles:o}):null}const Xw={};function Zw(e,t,n,r=!1){return w.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 $3(e){const{children:t,theme:n,themeId:r}=e,o=lS(Xw),a=pS()||Xw,s=Zw(r,o,n),l=Zw(r,a,n,!0),u=(r?s[r]:s).direction==="rtl",d=sH(s);return b.jsx(eH,{theme:l,children:b.jsx(ld.Provider,{value:s,children:b.jsx(tH,{value:u,children:b.jsxs(nH,{value:r?s[r].components:s.components,children:[d,t]})})})})}const Jw={theme:void 0};function V3(e){let t,n;return function(o){let a=t;return(a===void 0||o.theme!==n)&&(Jw.theme=o.theme,a=M3(e(Jw)),t=a,n=o.theme),a}}const hS="mode",mS="color-scheme",lH="data-color-scheme";function cH(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=hS,colorSchemeStorageKey:a=mS,attribute:s=lH,colorSchemeNode:l="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+=`${l}.classList.remove('${g}'.replace('%s', light), '${g}'.replace('%s', dark));
|
|
78
|
+
${l}.classList.add('${g}'.replace('%s', colorScheme));`}const h=p.match(/\[([^\]]+)\]/);if(h){const[g,y]=h[1].split("=");y||(d+=`${l}.removeAttribute('${g}'.replace('%s', light));
|
|
79
|
+
${l}.removeAttribute('${g}'.replace('%s', dark));`),d+=`
|
|
80
|
+
${l}.setAttribute('${g}'.replace('%s', colorScheme), ${y?`${y}.replace('%s', colorScheme)`:'""'});`}else d+=`${l}.setAttribute('${p}', colorScheme);`;return b.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?u:"",dangerouslySetInnerHTML:{__html:`(function() {
|
|
81
|
+
try {
|
|
82
|
+
let colorScheme = '';
|
|
83
|
+
const mode = localStorage.getItem('${o}') || '${t}';
|
|
84
|
+
const dark = localStorage.getItem('${a}-dark') || '${r}';
|
|
85
|
+
const light = localStorage.getItem('${a}-light') || '${n}';
|
|
86
|
+
if (mode === 'system') {
|
|
87
|
+
// handle system mode
|
|
88
|
+
const mql = window.matchMedia('(prefers-color-scheme: dark)');
|
|
89
|
+
if (mql.matches) {
|
|
90
|
+
colorScheme = dark
|
|
91
|
+
} else {
|
|
92
|
+
colorScheme = light
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
if (mode === 'light') {
|
|
96
|
+
colorScheme = light;
|
|
97
|
+
}
|
|
98
|
+
if (mode === 'dark') {
|
|
99
|
+
colorScheme = dark;
|
|
100
|
+
}
|
|
101
|
+
if (colorScheme) {
|
|
102
|
+
${d}
|
|
103
|
+
}
|
|
104
|
+
} catch(e){}})();`}},"mui-color-scheme-init")}function uH(){}const dH=({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 uH;const r=o=>{const a=o.newValue;o.key===e&&n(a)};return t.addEventListener("storage",r),()=>{t.removeEventListener("storage",r)}}});function K1(){}function eD(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function G3(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 fH(e){return G3(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function pH(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:a=hS,colorSchemeStorageKey:s=mS,storageWindow:l=typeof window>"u"?void 0:window,storageManager:u=dH,noSsr:d=!1}=e,p=o.join(","),h=o.length>1,g=w.useMemo(()=>u?.({key:a,storageWindow:l}),[u,a,l]),y=w.useMemo(()=>u?.({key:`${s}-light`,storageWindow:l}),[u,s,l]),v=w.useMemo(()=>u?.({key:`${s}-dark`,storageWindow:l}),[u,s,l]),[T,_]=w.useState(()=>{const H=g?.get(t)||t,U=y?.get(n)||n,S=v?.get(r)||r;return{mode:H,systemMode:eD(H),lightColorScheme:U,darkColorScheme:S}}),[x,D]=w.useState(d||!h);w.useEffect(()=>{D(!0)},[]);const C=fH(T),R=w.useCallback(H=>{_(U=>{if(H===U.mode)return U;const S=H??t;return g?.set(S),{...U,mode:S,systemMode:eD(S)}})},[g,t]),I=w.useCallback(H=>{H?typeof H=="string"?H&&!p.includes(H)?console.error(`\`${H}\` does not exist in \`theme.colorSchemes\`.`):_(U=>{const S={...U};return G3(U,M=>{M==="light"&&(y?.set(H),S.lightColorScheme=H),M==="dark"&&(v?.set(H),S.darkColorScheme=H)}),S}):_(U=>{const S={...U},M=H.light===null?n:H.light,$=H.dark===null?r:H.dark;return M&&(p.includes(M)?(S.lightColorScheme=M,y?.set(M)):console.error(`\`${M}\` does not exist in \`theme.colorSchemes\`.`)),$&&(p.includes($)?(S.darkColorScheme=$,v?.set($)):console.error(`\`${$}\` does not exist in \`theme.colorSchemes\`.`)),S}):_(U=>(y?.set(n),v?.set(r),{...U,lightColorScheme:n,darkColorScheme:r}))},[p,y,v,n,r]),O=w.useCallback(H=>{T.mode==="system"&&_(U=>{const S=H?.matches?"dark":"light";return U.systemMode===S?U:{...U,systemMode:S}})},[T.mode]),F=w.useRef(O);return F.current=O,w.useEffect(()=>{if(typeof window.matchMedia!="function"||!h)return;const H=(...S)=>F.current(...S),U=window.matchMedia("(prefers-color-scheme: dark)");return U.addListener(H),H(U),()=>{U.removeListener(H)}},[h]),w.useEffect(()=>{if(h){const H=g?.subscribe(M=>{(!M||["light","dark","system"].includes(M))&&R(M||t)})||K1,U=y?.subscribe(M=>{(!M||p.match(M))&&I({light:M})})||K1,S=v?.subscribe(M=>{(!M||p.match(M))&&I({dark:M})})||K1;return()=>{H(),U(),S()}}},[I,R,p,t,l,h,g,y,v]),{...T,mode:x?T.mode:void 0,systemMode:x?T.systemMode:void 0,colorScheme:x?C:void 0,setMode:R,setColorScheme:I}}const hH="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function mH(e){const{themeId:t,theme:n={},modeStorageKey:r=hS,colorSchemeStorageKey:o=mS,disableTransitionOnChange:a=!1,defaultColorScheme:s,resolveTheme:l}=e,u={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},d=w.createContext(void 0),p=()=>w.useContext(d)||u,h={},g={};function y(x){const{children:D,theme:C,modeStorageKey:R=r,colorSchemeStorageKey:I=o,disableTransitionOnChange:O=a,storageManager:F,storageWindow:H=typeof window>"u"?void 0:window,documentNode:U=typeof document>"u"?void 0:document,colorSchemeNode:S=typeof document>"u"?void 0:document.documentElement,disableNestedContext:M=!1,disableStyleSheetGeneration:$=!1,defaultMode:z="system",forceThemeRerender:q=!1,noSsr:Y}=x,B=w.useRef(!1),K=pS(),ae=w.useContext(d),ne=!!ae&&!M,N=w.useMemo(()=>C||(typeof n=="function"?n():n),[C]),Q=N[t],X=Q||N,{colorSchemes:P=h,components:re=g,cssVarPrefix:ce}=X,oe=Object.keys(P).filter(de=>!!P[de]).join(","),ve=w.useMemo(()=>oe.split(","),[oe]),be=typeof s=="string"?s:s.light,qe=typeof s=="string"?s:s.dark,Me=P[be]&&P[qe]?z:P[X.defaultColorScheme]?.palette?.mode||X.palette?.mode,{mode:Oe,setMode:Ke,systemMode:at,lightColorScheme:Re,darkColorScheme:yt,colorScheme:_t,setColorScheme:He}=pH({supportedColorSchemes:ve,defaultLightColorScheme:be,defaultDarkColorScheme:qe,modeStorageKey:R,colorSchemeStorageKey:I,defaultMode:Me,storageManager:F,storageWindow:H,noSsr:Y});let mt=Oe,ct=_t;ne&&(mt=ae.mode,ct=ae.colorScheme);let ft=ct||X.defaultColorScheme;X.vars&&!q&&(ft=X.defaultColorScheme);const ze=w.useMemo(()=>{const de=X.generateThemeVars?.()||X.vars,ye={...X,components:re,colorSchemes:P,cssVarPrefix:ce,vars:de};if(typeof ye.generateSpacing=="function"&&(ye.spacing=ye.generateSpacing()),ft){const $e=P[ft];$e&&typeof $e=="object"&&Object.keys($e).forEach(Xe=>{$e[Xe]&&typeof $e[Xe]=="object"?ye[Xe]={...ye[Xe],...$e[Xe]}:ye[Xe]=$e[Xe]})}return l?l(ye):ye},[X,ft,re,P,ce]),Le=X.colorSchemeSelector;_o(()=>{if(ct&&S&&Le&&Le!=="media"){const de=Le;let ye=Le;if(de==="class"&&(ye=".%s"),de==="data"&&(ye="[data-%s]"),de?.startsWith("data-")&&!de.includes("%s")&&(ye=`[${de}="%s"]`),ye.startsWith("."))S.classList.remove(...ve.map($e=>ye.substring(1).replace("%s",$e))),S.classList.add(ye.substring(1).replace("%s",ct));else{const $e=ye.replace("%s",ct).match(/\[([^\]]+)\]/);if($e){const[Xe,Et]=$e[1].split("=");Et||ve.forEach(Ze=>{S.removeAttribute(Xe.replace(ct,Ze))}),S.setAttribute(Xe,Et?Et.replace(/"|'/g,""):"")}else S.setAttribute(ye,ct)}}},[ct,Le,S,ve]),w.useEffect(()=>{let de;if(O&&B.current&&U){const ye=U.createElement("style");ye.appendChild(U.createTextNode(hH)),U.head.appendChild(ye),window.getComputedStyle(U.body),de=setTimeout(()=>{U.head.removeChild(ye)},1)}return()=>{clearTimeout(de)}},[ct,O,U]),w.useEffect(()=>(B.current=!0,()=>{B.current=!1}),[]);const Xt=w.useMemo(()=>({allColorSchemes:ve,colorScheme:ct,darkColorScheme:yt,lightColorScheme:Re,mode:mt,setColorScheme:He,setMode:Ke,systemMode:at}),[ve,ct,yt,Re,mt,He,Ke,at,ze.colorSchemeSelector]);let Bt=!0;($||X.cssVariables===!1||ne&&K?.cssVarPrefix===ce)&&(Bt=!1);const At=b.jsxs(w.Fragment,{children:[b.jsx($3,{themeId:Q?t:void 0,theme:ze,children:D}),Bt&&b.jsx(A3,{styles:ze.generateStyleSheets?.()||[]})]});return ne?At:b.jsx(d.Provider,{value:Xt,children:At})}const v=typeof s=="string"?s:s.light,T=typeof s=="string"?s:s.dark;return{CssVarsProvider:y,useColorScheme:p,getInitColorSchemeScript:x=>cH({colorSchemeStorageKey:o,defaultLightColorScheme:v,defaultDarkColorScheme:T,modeStorageKey:r,...x})}}function q3(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 tD=(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])})},gH=(e,t,n)=>{function r(o,a=[],s=[]){Object.entries(o).forEach(([l,u])=>{(!n||n&&!n([...a,l]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?r(u,[...a,l],Array.isArray(u)?[...s,l]:s):t([...a,l],u,s))})}r(e)},yH=(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 X1(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},s={};return gH(e,(l,u,d)=>{if((typeof u=="string"||typeof u=="number")&&(!r||!r(l,u))){const p=`--${n?`${n}-`:""}${l.join("-")}`,h=yH(l,u);Object.assign(o,{[p]:h}),tD(a,l,`var(${p})`,d),tD(s,l,`var(${p}, ${h})`,d)}},l=>l[0]==="vars"),{css:o,vars:a,varsWithDefaults:s}}function bH(e,t={}){const{getSelector:n=_,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:a={},components:s,defaultColorScheme:l="light",...u}=e,{vars:d,css:p,varsWithDefaults:h}=X1(u,t);let g=h;const y={},{[l]:v,...T}=a;if(Object.entries(T||{}).forEach(([C,R])=>{const{vars:I,css:O,varsWithDefaults:F}=X1(R,t);g=Nr(g,F),y[C]={css:O,vars:I}}),v){const{css:C,vars:R,varsWithDefaults:I}=X1(v,t);g=Nr(g,I),y[l]={css:C,vars:R}}function _(C,R){let I=o;if(o==="class"&&(I=".%s"),o==="data"&&(I="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(I=`[${o}="%s"]`),C){if(I==="media")return e.defaultColorScheme===C?":root":{[`@media (prefers-color-scheme: ${a[C]?.palette?.mode||C})`]:{":root":R}};if(I)return e.defaultColorScheme===C?`:root, ${I.replace("%s",String(C))}`:I.replace("%s",String(C))}return":root"}return{vars:g,generateThemeVars:()=>{let C={...d};return Object.entries(y).forEach(([,{vars:R}])=>{C=Nr(C,R)}),C},generateStyleSheets:()=>{const C=[],R=e.defaultColorScheme||"light";function I(H,U){Object.keys(U).length&&C.push(typeof H=="string"?{[H]:{...U}}:H)}I(n(void 0,{...p}),p);const{[R]:O,...F}=y;if(O){const{css:H}=O,U=a[R]?.palette?.mode,S=!r&&U?{colorScheme:U,...H}:{...H};I(n(R,{...S}),S)}return Object.entries(F).forEach(([H,{css:U}])=>{const S=a[H]?.palette?.mode,M=!r&&S?{colorScheme:S,...U}:{...U};I(n(H,{...M}),M)}),C}}}function vH(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 lt(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let s="",l=!0;for(let u=0;u<a.length;u+=1){const d=a[u];d&&(s+=(l===!0?"":" ")+t(d),l=!1,n&&n[d]&&(s+=" "+n[d]))}r[o]=s}return r}const EH=cd(),xH=uS("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]}}),TH=e=>dS({props:e,name:"MuiContainer",defaultTheme:EH}),SH=(e,t)=>{const n=u=>st(t,u),{classes:r,fixed:o,disableGutters:a,maxWidth:s}=e,l={root:["root",s&&`maxWidth${Ne(String(s))}`,o&&"fixed",a&&"disableGutters"]};return lt(l,n,r)};function CH(e={}){const{createStyledComponent:t=xH,useThemeProps:n=TH,componentName:r="MuiContainer"}=e,o=t(({theme:s,ownerState:l})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!l.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}}),({theme:s,ownerState:l})=>l.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:l})=>({...l.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},...l.maxWidth&&l.maxWidth!=="xs"&&{[s.breakpoints.up(l.maxWidth)]:{maxWidth:`${s.breakpoints.values[l.maxWidth]}${s.breakpoints.unit}`}}}));return w.forwardRef(function(l,u){const d=n(l),{className:p,component:h="div",disableGutters:g=!1,fixed:y=!1,maxWidth:v="lg",classes:T,..._}=d,x={...d,component:h,disableGutters:g,fixed:y,maxWidth:v},D=SH(x,r);return b.jsx(o,{as:h,ownerState:x,className:We(D.root,p),ref:u,..._})})}function cp(e,t){return w.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const _H=(e,t)=>e.filter(n=>t.includes(n)),dd=(e,t,n)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((o,a)=>{n((s,l)=>{a<=e.keys.length-1&&(a===0?Object.assign(s,l):s[e.up(e.keys[a])]=l)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:_H(e.keys,Object.keys(t))).forEach(a=>{if(e.keys.includes(a)){const s=t[a];s!==void 0&&n((l,u)=>{r===a?Object.assign(l,u):l[e.up(a)]=u},s)}}):(typeof t=="number"||typeof t=="string")&&n((o,a)=>{Object.assign(o,a)},t)};function vy(e){return`--Grid-${e}Spacing`}function A0(e){return`--Grid-parent-${e}Spacing`}const nD="--Grid-columns",Lu="--Grid-parent-columns",AH=({theme:e,ownerState:t})=>{const n={};return dd(e.breakpoints,t.size,(r,o)=>{let a={};o==="grow"&&(a={flexBasis:0,flexGrow:1,maxWidth:"100%"}),o==="auto"&&(a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof o=="number"&&(a={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / var(${Lu}) - (var(${Lu}) - ${o}) * (var(${A0("column")}) / var(${Lu})))`}),r(n,a)}),n},kH=({theme:e,ownerState:t})=>{const n={};return dd(e.breakpoints,t.offset,(r,o)=>{let a={};o==="auto"&&(a={marginLeft:"auto"}),typeof o=="number"&&(a={marginLeft:o===0?"0px":`calc(100% * ${o} / var(${Lu}) + var(${A0("column")}) * ${o} / var(${Lu}))`}),r(n,a)}),n},wH=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[nD]:12};return dd(e.breakpoints,t.columns,(r,o)=>{const a=o??12;r(n,{[nD]:a,"> *":{[Lu]:a}})}),n},DH=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return dd(e.breakpoints,t.rowSpacing,(r,o)=>{const a=typeof o=="string"?o:e.spacing?.(o);r(n,{[vy("row")]:a,"> *":{[A0("row")]:a}})}),n},RH=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return dd(e.breakpoints,t.columnSpacing,(r,o)=>{const a=typeof o=="string"?o:e.spacing?.(o);r(n,{[vy("column")]:a,"> *":{[A0("column")]:a}})}),n},IH=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return dd(e.breakpoints,t.direction,(r,o)=>{r(n,{flexDirection:o})}),n},OH=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${vy("row")}) var(${vy("column")})`}}),NH=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},PH=(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[]},LH=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`];function MH(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 FH=cd(),BH=uS("div",{name:"MuiGrid",slot:"Root"});function jH(e){return dS({props:e,name:"MuiGrid",defaultTheme:FH})}function UH(e={}){const{createStyledComponent:t=BH,useThemeProps:n=jH,useTheme:r=ud,componentName:o="MuiGrid"}=e,a=(d,p)=>{const{container:h,direction:g,spacing:y,wrap:v,size:T}=d,_={root:["root",h&&"container",v!=="wrap"&&`wrap-xs-${String(v)}`,...LH(g),...NH(T),...h?PH(y,p.breakpoints.keys[0]):[]]};return lt(_,x=>st(o,x),{})};function s(d,p,h=()=>!0){const g={};return d===null||(Array.isArray(d)?d.forEach((y,v)=>{y!==null&&h(y)&&p.keys[v]&&(g[p.keys[v]]=y)}):typeof d=="object"?Object.keys(d).forEach(y=>{const v=d[y];v!=null&&h(v)&&(g[y]=v)}):g[p.keys[0]]=d),g}const l=t(wH,RH,DH,AH,IH,OH,kH),u=w.forwardRef(function(p,h){const g=r(),y=n(p),v=C0(y);MH(v,g.breakpoints);const{className:T,children:_,columns:x=12,container:D=!1,component:C="div",direction:R="row",wrap:I="wrap",size:O={},offset:F={},spacing:H=0,rowSpacing:U=H,columnSpacing:S=H,unstable_level:M=0,...$}=v,z=s(O,g.breakpoints,Q=>Q!==!1),q=s(F,g.breakpoints),Y=p.columns??(M?void 0:x),B=p.spacing??(M?void 0:H),K=p.rowSpacing??p.spacing??(M?void 0:U),ae=p.columnSpacing??p.spacing??(M?void 0:S),ne={...v,level:M,columns:Y,container:D,direction:R,wrap:I,spacing:B,rowSpacing:K,columnSpacing:ae,size:z,offset:q},N=a(ne,g);return b.jsx(l,{ref:h,as:C,ownerState:ne,className:We(N.root,T),...$,children:w.Children.map(_,Q=>w.isValidElement(Q)&&cp(Q,["Grid"])&&D&&Q.props.container?w.cloneElement(Q,{unstable_level:Q.props?.unstable_level??M+1}):Q)})});return u.muiName="Grid",u}const HH=cd(),zH=uS("div",{name:"MuiStack",slot:"Root"});function $H(e){return dS({props:e,name:"MuiStack",defaultTheme:HH})}function VH(e,t){const n=w.Children.toArray(e).filter(Boolean);return n.reduce((r,o,a)=>(r.push(o),a<n.length-1&&r.push(w.cloneElement(t,{key:`separator-${a}`})),r),[])}const GH=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],qH=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...Ma({theme:t},Y1({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=b0(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=Y1({values:e.direction,base:o}),s=Y1({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=Nr(n,Ma({theme:t},s,(u,d)=>e.useFlexGap?{gap:rc(r,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${GH(d?a[d]:e.direction)}`]:rc(r,u)}}))}return n=Gj(t.breakpoints,n),n};function gS(e={}){const{createStyledComponent:t=zH,useThemeProps:n=$H,componentName:r="MuiStack"}=e,o=()=>lt({root:["root"]},u=>st(r,u),{}),a=t(qH);return w.forwardRef(function(u,d){const p=n(u),h=C0(p),{component:g="div",direction:y="column",spacing:v=0,divider:T,children:_,className:x,useFlexGap:D=!1,...C}=h,R={direction:y,spacing:v,useFlexGap:D},I=o();return b.jsx(a,{as:g,ownerState:R,ref:d,className:We(I.root,x),...C,children:T?VH(_,T):_})})}const rD=gS(),Up={black:"#000",white:"#fff"},ou={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},au={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},iu={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},su={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},lu={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},kf={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},WH={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 W3(){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:Up.white,default:Up.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 YH=W3();function Y3(){return{text:{primary:Up.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:Up.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 oD=Y3();function aD(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=Th(e.main,o):t==="dark"&&(e.dark=xh(e.main,a)))}function QH(e="light"){return e==="dark"?{main:iu[200],light:iu[50],dark:iu[400]}:{main:iu[700],light:iu[400],dark:iu[800]}}function KH(e="light"){return e==="dark"?{main:au[200],light:au[50],dark:au[400]}:{main:au[500],light:au[300],dark:au[700]}}function XH(e="light"){return e==="dark"?{main:ou[500],light:ou[300],dark:ou[700]}:{main:ou[700],light:ou[400],dark:ou[800]}}function ZH(e="light"){return e==="dark"?{main:su[400],light:su[300],dark:su[700]}:{main:su[700],light:su[500],dark:su[900]}}function JH(e="light"){return e==="dark"?{main:lu[400],light:lu[300],dark:lu[700]}:{main:lu[800],light:lu[500],dark:lu[900]}}function ez(e="light"){return e==="dark"?{main:kf[400],light:kf[300],dark:kf[700]}:{main:"#ed6c02",light:kf[500],dark:kf[900]}}function yS(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,a=e.primary||QH(t),s=e.secondary||KH(t),l=e.error||XH(t),u=e.info||ZH(t),d=e.success||JH(t),p=e.warning||ez(t);function h(T){return KU(T,oD.text.primary)>=n?oD.text.primary:YH.text.primary}const g=({color:T,name:_,mainShade:x=500,lightShade:D=300,darkShade:C=700})=>{if(T={...T},!T.main&&T[x]&&(T.main=T[x]),!T.hasOwnProperty("main"))throw new Error(rs(11,_?` (${_})`:"",x));if(typeof T.main!="string")throw new Error(rs(12,_?` (${_})`:"",JSON.stringify(T.main)));return aD(T,"light",D,r),aD(T,"dark",C,r),T.contrastText||(T.contrastText=h(T.main)),T};let y;return t==="light"?y=W3():t==="dark"&&(y=Y3()),Nr({common:{...Up},mode:t,primary:g({color:a,name:"primary"}),secondary:g({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:l,name:"error"}),warning:g({color:p,name:"warning"}),info:g({color:u,name:"info"}),success:g({color:d,name:"success"}),grey:WH,contrastThreshold:n,getContrastText:h,augmentColor:g,tonalOffset:r,...y},o)}function tz(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 nz(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function rz(e){return Math.round(e*1e5)/1e5}const iD={textTransform:"uppercase"},sD='"Roboto", "Helvetica", "Arial", sans-serif';function Q3(e,t){const{fontFamily:n=sD,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:d,pxToRem:p,...h}=typeof t=="function"?t(e):t,g=r/14,y=p||(_=>`${_/u*g}rem`),v=(_,x,D,C,R)=>({fontFamily:n,fontWeight:_,fontSize:y(x),lineHeight:D,...n===sD?{letterSpacing:`${rz(C/x)}em`}:{},...R,...d}),T={h1:v(o,96,1.167,-1.5),h2:v(o,60,1.2,-.5),h3:v(a,48,1.167,0),h4:v(a,34,1.235,.25),h5:v(a,24,1.334,0),h6:v(s,20,1.6,.15),subtitle1:v(a,16,1.75,.15),subtitle2:v(s,14,1.57,.1),body1:v(a,16,1.5,.15),body2:v(a,14,1.43,.15),button:v(s,14,1.75,.4,iD),caption:v(a,12,1.66,.4),overline:v(a,12,2.66,1,iD),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Nr({htmlFontSize:u,pxToRem:y,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l,...T},h,{clone:!1})}const oz=.2,az=.14,iz=.12;function jn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${oz})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${az})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${iz})`].join(",")}const sz=["none",jn(0,2,1,-1,0,1,1,0,0,1,3,0),jn(0,3,1,-2,0,2,2,0,0,1,5,0),jn(0,3,3,-2,0,3,4,0,0,1,8,0),jn(0,2,4,-1,0,4,5,0,0,1,10,0),jn(0,3,5,-1,0,5,8,0,0,1,14,0),jn(0,3,5,-1,0,6,10,0,0,1,18,0),jn(0,4,5,-2,0,7,10,1,0,2,16,1),jn(0,5,5,-3,0,8,10,1,0,3,14,2),jn(0,5,6,-3,0,9,12,1,0,3,16,2),jn(0,6,6,-3,0,10,14,1,0,4,18,3),jn(0,6,7,-4,0,11,15,1,0,4,20,3),jn(0,7,8,-4,0,12,17,2,0,5,22,4),jn(0,7,8,-4,0,13,19,2,0,5,24,4),jn(0,7,9,-4,0,14,21,2,0,5,26,4),jn(0,8,9,-5,0,15,22,2,0,6,28,5),jn(0,8,10,-5,0,16,24,2,0,6,30,5),jn(0,8,11,-5,0,17,26,2,0,6,32,5),jn(0,9,11,-5,0,18,28,2,0,7,34,6),jn(0,9,12,-6,0,19,29,2,0,7,36,6),jn(0,10,13,-6,0,20,31,3,0,8,38,7),jn(0,10,13,-6,0,21,33,3,0,8,40,7),jn(0,10,14,-6,0,22,35,3,0,8,42,7),jn(0,11,14,-7,0,23,36,3,0,9,44,8),jn(0,11,15,-7,0,24,38,3,0,9,46,8)],lz={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)"},K3={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function lD(e){return`${Math.round(e)}ms`}function cz(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function uz(e){const t={...lz,...e.easing},n={...K3,...e.duration};return{getAutoHeightDuration:cz,create:(o=["all"],a={})=>{const{duration:s=n.standard,easing:l=t.easeInOut,delay:u=0,...d}=a;return(Array.isArray(o)?o:[o]).map(p=>`${p} ${typeof s=="string"?s:lD(s)} ${l} ${typeof u=="string"?u:lD(u)}`).join(",")},...e,easing:t,duration:n}}const dz={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function fz(e){return ci(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function X3(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let a=0;a<o.length;a++){const[s,l]=o[a];!fz(l)||s.startsWith("unstable_")?delete r[s]:ci(l)&&(r[s]={...l},n(r[s]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
105
|
+
|
|
106
|
+
const theme = ${JSON.stringify(t,null,2)};
|
|
107
|
+
|
|
108
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
109
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
110
|
+
|
|
111
|
+
export default theme;`}function bx(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:a={},transitions:s={},typography:l={},shape:u,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(rs(20));const p=yS(a),h=cd(e);let g=Nr(h,{mixins:nz(h.breakpoints,r),palette:p,shadows:sz.slice(),typography:Q3(p,l),transitions:uz(s),zIndex:{...dz}});return g=Nr(g,d),g=t.reduce((y,v)=>Nr(y,v),g),g.unstable_sxConfig={...Eh,...d?.unstable_sxConfig},g.unstable_sx=function(v){return Zs({sx:v,theme:this})},g.toRuntimeSource=X3,g}function vx(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 pz=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=vx(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Z3(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function J3(e){return e==="dark"?pz:[]}function hz(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,a=yS(t);return{palette:a,opacity:{...Z3(a.mode),...n},overlays:r||J3(a.mode),...o}}function mz(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const gz=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],yz=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 gz(e.cssVarPrefix).forEach(l=>{s[l]=n[l],delete n[l]}),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 bz(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Ce(e,t,n){!e[t]&&n&&(e[t]=n)}function Jf(e){return typeof e!="string"||!e.startsWith("hsl")?e:j3(e)}function zi(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Zf(Jf(e[t])))}function vz(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Ka=e=>{try{return e()}catch{}},Ez=(e="mui")=>q3(e);function Z1(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=hz({...t,palette:{mode:o,...t?.palette}});return}const{palette:a,...s}=bx({...n,palette:{mode:o,...t?.palette}});return e[r]={...t,palette:a,opacity:{...Z3(o),...t?.opacity},overlays:t?.overlays||J3(o)},s}function xz(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:s=mz,colorSchemeSelector:l=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=Ez(a),{[h]:y,light:v,dark:T,..._}=n,x={..._};let D=y;if((h==="dark"&&!("dark"in n)||h==="light"&&!("light"in n))&&(D=!0),!D)throw new Error(rs(21,h));const C=Z1(x,D,d,h);v&&!x.light&&Z1(x,v,void 0,"light"),T&&!x.dark&&Z1(x,T,void 0,"dark");let R={defaultColorScheme:h,...C,cssVarPrefix:a,colorSchemeSelector:l,rootSelector:u,getCssVar:g,colorSchemes:x,font:{...tz(C.typography),...C.font},spacing:vz(d.spacing)};Object.keys(R.colorSchemes).forEach(U=>{const S=R.colorSchemes[U].palette,M=$=>{const z=$.split("-"),q=z[1],Y=z[2];return g($,S[q][Y])};if(S.mode==="light"&&(Ce(S.common,"background","#fff"),Ce(S.common,"onBackground","#000")),S.mode==="dark"&&(Ce(S.common,"background","#000"),Ce(S.common,"onBackground","#fff")),bz(S,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),S.mode==="light"){Ce(S.Alert,"errorColor",Tn(S.error.light,.6)),Ce(S.Alert,"infoColor",Tn(S.info.light,.6)),Ce(S.Alert,"successColor",Tn(S.success.light,.6)),Ce(S.Alert,"warningColor",Tn(S.warning.light,.6)),Ce(S.Alert,"errorFilledBg",M("palette-error-main")),Ce(S.Alert,"infoFilledBg",M("palette-info-main")),Ce(S.Alert,"successFilledBg",M("palette-success-main")),Ce(S.Alert,"warningFilledBg",M("palette-warning-main")),Ce(S.Alert,"errorFilledColor",Ka(()=>S.getContrastText(S.error.main))),Ce(S.Alert,"infoFilledColor",Ka(()=>S.getContrastText(S.info.main))),Ce(S.Alert,"successFilledColor",Ka(()=>S.getContrastText(S.success.main))),Ce(S.Alert,"warningFilledColor",Ka(()=>S.getContrastText(S.warning.main))),Ce(S.Alert,"errorStandardBg",Sn(S.error.light,.9)),Ce(S.Alert,"infoStandardBg",Sn(S.info.light,.9)),Ce(S.Alert,"successStandardBg",Sn(S.success.light,.9)),Ce(S.Alert,"warningStandardBg",Sn(S.warning.light,.9)),Ce(S.Alert,"errorIconColor",M("palette-error-main")),Ce(S.Alert,"infoIconColor",M("palette-info-main")),Ce(S.Alert,"successIconColor",M("palette-success-main")),Ce(S.Alert,"warningIconColor",M("palette-warning-main")),Ce(S.AppBar,"defaultBg",M("palette-grey-100")),Ce(S.Avatar,"defaultBg",M("palette-grey-400")),Ce(S.Button,"inheritContainedBg",M("palette-grey-300")),Ce(S.Button,"inheritContainedHoverBg",M("palette-grey-A100")),Ce(S.Chip,"defaultBorder",M("palette-grey-400")),Ce(S.Chip,"defaultAvatarColor",M("palette-grey-700")),Ce(S.Chip,"defaultIconColor",M("palette-grey-700")),Ce(S.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Ce(S.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Ce(S.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Ce(S.LinearProgress,"primaryBg",Sn(S.primary.main,.62)),Ce(S.LinearProgress,"secondaryBg",Sn(S.secondary.main,.62)),Ce(S.LinearProgress,"errorBg",Sn(S.error.main,.62)),Ce(S.LinearProgress,"infoBg",Sn(S.info.main,.62)),Ce(S.LinearProgress,"successBg",Sn(S.success.main,.62)),Ce(S.LinearProgress,"warningBg",Sn(S.warning.main,.62)),Ce(S.Skeleton,"bg",`rgba(${M("palette-text-primaryChannel")} / 0.11)`),Ce(S.Slider,"primaryTrack",Sn(S.primary.main,.62)),Ce(S.Slider,"secondaryTrack",Sn(S.secondary.main,.62)),Ce(S.Slider,"errorTrack",Sn(S.error.main,.62)),Ce(S.Slider,"infoTrack",Sn(S.info.main,.62)),Ce(S.Slider,"successTrack",Sn(S.success.main,.62)),Ce(S.Slider,"warningTrack",Sn(S.warning.main,.62));const $=cg(S.background.default,.8);Ce(S.SnackbarContent,"bg",$),Ce(S.SnackbarContent,"color",Ka(()=>S.getContrastText($))),Ce(S.SpeedDialAction,"fabHoverBg",cg(S.background.paper,.15)),Ce(S.StepConnector,"border",M("palette-grey-400")),Ce(S.StepContent,"border",M("palette-grey-400")),Ce(S.Switch,"defaultColor",M("palette-common-white")),Ce(S.Switch,"defaultDisabledColor",M("palette-grey-100")),Ce(S.Switch,"primaryDisabledColor",Sn(S.primary.main,.62)),Ce(S.Switch,"secondaryDisabledColor",Sn(S.secondary.main,.62)),Ce(S.Switch,"errorDisabledColor",Sn(S.error.main,.62)),Ce(S.Switch,"infoDisabledColor",Sn(S.info.main,.62)),Ce(S.Switch,"successDisabledColor",Sn(S.success.main,.62)),Ce(S.Switch,"warningDisabledColor",Sn(S.warning.main,.62)),Ce(S.TableCell,"border",Sn(lg(S.divider,1),.88)),Ce(S.Tooltip,"bg",lg(S.grey[700],.92))}if(S.mode==="dark"){Ce(S.Alert,"errorColor",Sn(S.error.light,.6)),Ce(S.Alert,"infoColor",Sn(S.info.light,.6)),Ce(S.Alert,"successColor",Sn(S.success.light,.6)),Ce(S.Alert,"warningColor",Sn(S.warning.light,.6)),Ce(S.Alert,"errorFilledBg",M("palette-error-dark")),Ce(S.Alert,"infoFilledBg",M("palette-info-dark")),Ce(S.Alert,"successFilledBg",M("palette-success-dark")),Ce(S.Alert,"warningFilledBg",M("palette-warning-dark")),Ce(S.Alert,"errorFilledColor",Ka(()=>S.getContrastText(S.error.dark))),Ce(S.Alert,"infoFilledColor",Ka(()=>S.getContrastText(S.info.dark))),Ce(S.Alert,"successFilledColor",Ka(()=>S.getContrastText(S.success.dark))),Ce(S.Alert,"warningFilledColor",Ka(()=>S.getContrastText(S.warning.dark))),Ce(S.Alert,"errorStandardBg",Tn(S.error.light,.9)),Ce(S.Alert,"infoStandardBg",Tn(S.info.light,.9)),Ce(S.Alert,"successStandardBg",Tn(S.success.light,.9)),Ce(S.Alert,"warningStandardBg",Tn(S.warning.light,.9)),Ce(S.Alert,"errorIconColor",M("palette-error-main")),Ce(S.Alert,"infoIconColor",M("palette-info-main")),Ce(S.Alert,"successIconColor",M("palette-success-main")),Ce(S.Alert,"warningIconColor",M("palette-warning-main")),Ce(S.AppBar,"defaultBg",M("palette-grey-900")),Ce(S.AppBar,"darkBg",M("palette-background-paper")),Ce(S.AppBar,"darkColor",M("palette-text-primary")),Ce(S.Avatar,"defaultBg",M("palette-grey-600")),Ce(S.Button,"inheritContainedBg",M("palette-grey-800")),Ce(S.Button,"inheritContainedHoverBg",M("palette-grey-700")),Ce(S.Chip,"defaultBorder",M("palette-grey-700")),Ce(S.Chip,"defaultAvatarColor",M("palette-grey-300")),Ce(S.Chip,"defaultIconColor",M("palette-grey-300")),Ce(S.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Ce(S.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Ce(S.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Ce(S.LinearProgress,"primaryBg",Tn(S.primary.main,.5)),Ce(S.LinearProgress,"secondaryBg",Tn(S.secondary.main,.5)),Ce(S.LinearProgress,"errorBg",Tn(S.error.main,.5)),Ce(S.LinearProgress,"infoBg",Tn(S.info.main,.5)),Ce(S.LinearProgress,"successBg",Tn(S.success.main,.5)),Ce(S.LinearProgress,"warningBg",Tn(S.warning.main,.5)),Ce(S.Skeleton,"bg",`rgba(${M("palette-text-primaryChannel")} / 0.13)`),Ce(S.Slider,"primaryTrack",Tn(S.primary.main,.5)),Ce(S.Slider,"secondaryTrack",Tn(S.secondary.main,.5)),Ce(S.Slider,"errorTrack",Tn(S.error.main,.5)),Ce(S.Slider,"infoTrack",Tn(S.info.main,.5)),Ce(S.Slider,"successTrack",Tn(S.success.main,.5)),Ce(S.Slider,"warningTrack",Tn(S.warning.main,.5));const $=cg(S.background.default,.98);Ce(S.SnackbarContent,"bg",$),Ce(S.SnackbarContent,"color",Ka(()=>S.getContrastText($))),Ce(S.SpeedDialAction,"fabHoverBg",cg(S.background.paper,.15)),Ce(S.StepConnector,"border",M("palette-grey-600")),Ce(S.StepContent,"border",M("palette-grey-600")),Ce(S.Switch,"defaultColor",M("palette-grey-300")),Ce(S.Switch,"defaultDisabledColor",M("palette-grey-600")),Ce(S.Switch,"primaryDisabledColor",Tn(S.primary.main,.55)),Ce(S.Switch,"secondaryDisabledColor",Tn(S.secondary.main,.55)),Ce(S.Switch,"errorDisabledColor",Tn(S.error.main,.55)),Ce(S.Switch,"infoDisabledColor",Tn(S.info.main,.55)),Ce(S.Switch,"successDisabledColor",Tn(S.success.main,.55)),Ce(S.Switch,"warningDisabledColor",Tn(S.warning.main,.55)),Ce(S.TableCell,"border",Tn(lg(S.divider,1),.68)),Ce(S.Tooltip,"bg",lg(S.grey[700],.92))}zi(S.background,"default"),zi(S.background,"paper"),zi(S.common,"background"),zi(S.common,"onBackground"),zi(S,"divider"),Object.keys(S).forEach($=>{const z=S[$];$!=="tonalOffset"&&z&&typeof z=="object"&&(z.main&&Ce(S[$],"mainChannel",Zf(Jf(z.main))),z.light&&Ce(S[$],"lightChannel",Zf(Jf(z.light))),z.dark&&Ce(S[$],"darkChannel",Zf(Jf(z.dark))),z.contrastText&&Ce(S[$],"contrastTextChannel",Zf(Jf(z.contrastText))),$==="text"&&(zi(S[$],"primary"),zi(S[$],"secondary")),$==="action"&&(z.active&&zi(S[$],"active"),z.selected&&zi(S[$],"selected")))})}),R=t.reduce((U,S)=>Nr(U,S),R);const I={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:yz(R)},{vars:O,generateThemeVars:F,generateStyleSheets:H}=bH(R,I);return R.vars=O,Object.entries(R.colorSchemes[R.defaultColorScheme]).forEach(([U,S])=>{R[U]=S}),R.generateThemeVars=F,R.generateStyleSheets=H,R.generateSpacing=function(){return iS(d.spacing,b0(this))},R.getColorSchemeSelector=vH(l),R.spacing=R.generateSpacing(),R.shouldSkipGeneratingVar=s,R.unstable_sxConfig={...Eh,...d?.unstable_sxConfig},R.unstable_sx=function(S){return Zs({sx:S,theme:this})},R.toRuntimeSource=X3,R}function cD(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:yS({...n===!0?{}:n.palette,mode:t})})}function k0(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...s}=e,l=a||"light",u=o?.[l],d={...o,...n?{[l]:{...typeof u!="boolean"&&u,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return bx(e,...t);let p=n;"palette"in e||d[l]&&(d[l]!==!0?p=d[l].palette:l==="dark"&&(p={mode:"dark"}));const h=bx({...e,palette:p},...t);return h.defaultColorScheme=l,h.colorSchemes=d,h.palette.mode==="light"&&(h.colorSchemes.light={...d.light!==!0&&d.light,palette:h.palette},cD(h,"dark",d.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:h.palette},cD(h,"light",d.light)),h}return!n&&!("light"in d)&&l==="light"&&(d.light=!0),xz({...s,colorSchemes:d,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}const bS=k0();function rl(){const e=ud(bS);return e[pi]||e}function e5(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const co=e=>e5(e)&&e!=="classes",we=B3({themeId:pi,defaultTheme:bS,rootShouldForwardProp:co});function Tz({theme:e,...t}){const n=pi in e?e[pi]:void 0;return b.jsx($3,{...t,themeId:n?pi:void 0,theme:n||e})}const ug={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:Sz}=mH({themeId:pi,theme:()=>k0({cssVariables:!0}),colorSchemeStorageKey:ug.colorSchemeStorageKey,modeStorageKey:ug.modeStorageKey,defaultColorScheme:{light:ug.defaultLightColorScheme,dark:ug.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:Q3(e.palette,e.typography)};return t.unstable_sx=function(r){return Zs({sx:r,theme:this})},t}}),Cz=Sz;function _z({theme:e,...t}){const n=w.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?b.jsx(Tz,{theme:n,...t}):b.jsx(Cz,{theme:e,...t})}function uD(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Az(e){return b.jsx(O3,{...e,defaultTheme:bS,themeId:pi})}function vS(e){return function(n){return b.jsx(Az,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function kz(){return C0}const Ct=V3;function dt(e){return oH(e)}function wz(e){return st("MuiSvgIcon",e)}ut("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Dz=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Ne(t)}`,`fontSize${Ne(n)}`]};return lt(o,wz,r)},Rz=we("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)}`]]}})(Ct(({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}}]}))),Ex=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:s="inherit",component:l="svg",fontSize:u="medium",htmlColor:d,inheritViewBox:p=!1,titleAccess:h,viewBox:g="0 0 24 24",...y}=r,v=w.isValidElement(o)&&o.type==="svg",T={...r,color:s,component:l,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:g,hasSvgAsChild:v},_={};p||(_.viewBox=g);const x=Dz(T);return b.jsxs(Rz,{as:l,className:We(x.root,a),focusable:"false",color:d,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n,..._,...y,...v&&o.props,ownerState:T,children:[v?o.props.children:o,h?b.jsx("title",{children:h}):null]})});Ex.muiName="SvgIcon";function xi(e,t){function n(r,o){return b.jsx(Ex,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=Ex.muiName,w.memo(w.forwardRef(n))}function w0(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 Ao(e){return e&&e.ownerDocument||document}function Fa(e){return Ao(e).defaultView||window}function dD(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Ey(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:a}=w.useRef(t!==void 0),[s,l]=w.useState(n),u=a?t:s,d=w.useCallback(p=>{a||l(p)},[]);return[u,d]}function va(e){const t=w.useRef(e);return _o(()=>{t.current=e}),w.useRef((...n)=>(0,t.current)(...n)).current}function rr(...e){const t=w.useRef(void 0),n=w.useCallback(r=>{const o=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const s=a,l=s(r);return typeof l=="function"?l:()=>{s(null)}}return a.current=r,()=>{a.current=null}});return()=>{o.forEach(a=>a?.())}},e);return w.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function Iz(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function Oz(e,t){if(!e)return t;function n(s,l){const u={};return Object.keys(l).forEach(d=>{Iz(d,l[d])&&typeof s[d]=="function"&&(u[d]=(...p)=>{s[d](...p),l[d](...p)})}),u}if(typeof e=="function"||typeof t=="function")return s=>{const l=typeof t=="function"?t(s):t,u=typeof e=="function"?e({...s,...l}):e,d=We(s?.className,l?.className,u?.className),p=n(u,l);return{...l,...u,...p,...!!d&&{className:d},...l?.style&&u?.style&&{style:{...l.style,...u.style}},...l?.sx&&u?.sx&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const r=t,o=n(e,r),a=We(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 t5(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 xx(e,t){return xx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},xx(e,t)}function n5(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,xx(e,t)}const fD={disabled:!1},xy=Be.createContext(null);var Nz=function(t){return t.scrollTop},ep="unmounted",Rl="exited",Il="entering",Tu="entered",Tx="exiting",Ha=function(e){n5(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var s=o,l=s&&!s.isMounting?r.enter:r.appear,u;return a.appearStatus=null,r.in?l?(u=Rl,a.appearStatus=Il):u=Tu:r.unmountOnExit||r.mountOnEnter?u=ep:u=Rl,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var s=o.in;return s&&a.status===ep?{status:Rl}: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!==Il&&s!==Tu&&(a=Il):(s===Il||s===Tu)&&(a=Tx)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,a,s,l;return a=s=l=o,o!=null&&typeof o!="number"&&(a=o.exit,s=o.enter,l=o.appear!==void 0?o.appear:s),{exit:a,enter:s,appear:l}},n.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===Il){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:zs.findDOMNode(this);s&&Nz(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Rl&&this.setState({status:ep})},n.performEnter=function(o){var a=this,s=this.props.enter,l=this.context?this.context.isMounting:o,u=this.props.nodeRef?[l]:[zs.findDOMNode(this),l],d=u[0],p=u[1],h=this.getTimeouts(),g=l?h.appear:h.enter;if(!o&&!s||fD.disabled){this.safeSetState({status:Tu},function(){a.props.onEntered(d)});return}this.props.onEnter(d,p),this.safeSetState({status:Il},function(){a.props.onEntering(d,p),a.onTransitionEnd(g,function(){a.safeSetState({status:Tu},function(){a.props.onEntered(d,p)})})})},n.performExit=function(){var o=this,a=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:zs.findDOMNode(this);if(!a||fD.disabled){this.safeSetState({status:Rl},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Tx},function(){o.props.onExiting(l),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:Rl},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},n.setNextCallback=function(o){var a=this,s=!0;return this.nextCallback=function(l){s&&(s=!1,a.nextCallback=null,o(l))},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),l=o==null&&!this.props.addEndListener;if(!s||l){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===ep)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 l=t5(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Be.createElement(xy.Provider,{value:null},typeof s=="function"?s(o,l):Be.cloneElement(Be.Children.only(s),l))},t}(Be.Component);Ha.contextType=xy;Ha.propTypes={};function cu(){}Ha.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:cu,onEntering:cu,onEntered:cu,onExit:cu,onExiting:cu,onExited:cu};Ha.UNMOUNTED=ep;Ha.EXITED=Rl;Ha.ENTERING=Il;Ha.ENTERED=Tu;Ha.EXITING=Tx;function Pz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ES(e,t){var n=function(a){return t&&w.isValidElement(a)?t(a):a},r=Object.create(null);return e&&w.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function Lz(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,l={};for(var u in t){if(r[u])for(s=0;s<r[u].length;s++){var d=r[u][s];l[r[u][s]]=n(d)}l[u]=n(u)}for(s=0;s<o.length;s++)l[o[s]]=n(o[s]);return l}function Ul(e,t,n){return n[t]!=null?n[t]:e.props[t]}function Mz(e,t){return ES(e.children,function(n){return w.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Ul(n,"appear",e),enter:Ul(n,"enter",e),exit:Ul(n,"exit",e)})})}function Fz(e,t,n){var r=ES(e.children),o=Lz(t,r);return Object.keys(o).forEach(function(a){var s=o[a];if(w.isValidElement(s)){var l=a in t,u=a in r,d=t[a],p=w.isValidElement(d)&&!d.props.in;u&&(!l||p)?o[a]=w.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:Ul(s,"exit",e),enter:Ul(s,"enter",e)}):!u&&l&&!p?o[a]=w.cloneElement(s,{in:!1}):u&&l&&w.isValidElement(d)&&(o[a]=w.cloneElement(s,{onExited:n.bind(null,s),in:d.props.in,exit:Ul(s,"exit",e),enter:Ul(s,"enter",e)}))}}),o}var Bz=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},jz={component:"div",childFactory:function(t){return t}},xS=function(e){n5(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var s=a.handleExited.bind(Pz(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,l=a.handleExited,u=a.firstRender;return{children:u?Mz(o,l):Fz(o,s,l),firstRender:!1}},n.handleExited=function(o,a){var s=ES(this.props.children);o.key in s||(o.props.onExited&&o.props.onExited(a),this.mounted&&this.setState(function(l){var u=my({},l.children);return delete u[o.key],{children:u}}))},n.render=function(){var o=this.props,a=o.component,s=o.childFactory,l=t5(o,["component","childFactory"]),u=this.state.contextValue,d=Bz(this.state.children).map(s);return delete l.appear,delete l.enter,delete l.exit,a===null?Be.createElement(xy.Provider,{value:u},d):Be.createElement(xy.Provider,{value:u},Be.createElement(a,l,d))},t}(Be.Component);xS.propTypes={};xS.defaultProps=jz;const pD={};function r5(e,t){const n=w.useRef(pD);return n.current===pD&&(n.current=e(t)),n}const Uz=[];function Hz(e){w.useEffect(e,Uz)}class D0{static create(){return new D0}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 Hl(){const e=r5(D0.create).current;return Hz(e.disposeEffect),e}const o5=e=>e.scrollTop;function Vu(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 zz(e){return st("MuiCollapse",e)}ut("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const $z=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return lt(r,zz,n)},Vz=we("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]}})(Ct(({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"}}]}))),Gz=we("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),qz=we("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Na=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiCollapse"}),{addEndListener:o,children:a,className:s,collapsedSize:l="0px",component:u,easing:d,in:p,onEnter:h,onEntered:g,onEntering:y,onExit:v,onExited:T,onExiting:_,orientation:x="vertical",style:D,timeout:C=K3.standard,TransitionComponent:R=Ha,...I}=r,O={...r,orientation:x,collapsedSize:l},F=$z(O),H=rl(),U=Hl(),S=w.useRef(null),M=w.useRef(),$=typeof l=="number"?`${l}px`:l,z=x==="horizontal",q=z?"width":"height",Y=w.useRef(null),B=rr(n,Y),K=oe=>ve=>{if(oe){const be=Y.current;ve===void 0?oe(be):oe(be,ve)}},ae=()=>S.current?S.current[z?"clientWidth":"clientHeight"]:0,ne=K((oe,ve)=>{S.current&&z&&(S.current.style.position="absolute"),oe.style[q]=$,h&&h(oe,ve)}),N=K((oe,ve)=>{const be=ae();S.current&&z&&(S.current.style.position="");const{duration:qe,easing:Me}=Vu({style:D,timeout:C,easing:d},{mode:"enter"});if(C==="auto"){const Oe=H.transitions.getAutoHeightDuration(be);oe.style.transitionDuration=`${Oe}ms`,M.current=Oe}else oe.style.transitionDuration=typeof qe=="string"?qe:`${qe}ms`;oe.style[q]=`${be}px`,oe.style.transitionTimingFunction=Me,y&&y(oe,ve)}),Q=K((oe,ve)=>{oe.style[q]="auto",g&&g(oe,ve)}),X=K(oe=>{oe.style[q]=`${ae()}px`,v&&v(oe)}),P=K(T),re=K(oe=>{const ve=ae(),{duration:be,easing:qe}=Vu({style:D,timeout:C,easing:d},{mode:"exit"});if(C==="auto"){const Me=H.transitions.getAutoHeightDuration(ve);oe.style.transitionDuration=`${Me}ms`,M.current=Me}else oe.style.transitionDuration=typeof be=="string"?be:`${be}ms`;oe.style[q]=$,oe.style.transitionTimingFunction=qe,_&&_(oe)}),ce=oe=>{C==="auto"&&U.start(M.current||0,oe),o&&o(Y.current,oe)};return b.jsx(R,{in:p,onEnter:ne,onEntered:Q,onEntering:N,onExit:X,onExited:P,onExiting:re,addEndListener:ce,nodeRef:Y,timeout:C==="auto"?null:C,...I,children:(oe,{ownerState:ve,...be})=>b.jsx(Vz,{as:u,className:We(F.root,s,{entered:F.entered,exited:!p&&$==="0px"&&F.hidden}[oe]),style:{[z?"minWidth":"minHeight"]:$,...D},ref:B,ownerState:{...O,state:oe},...be,children:b.jsx(Gz,{ownerState:{...O,state:oe},className:F.wrapper,ref:S,children:b.jsx(qz,{ownerState:{...O,state:oe},className:F.wrapperInner,children:a})})})})});Na&&(Na.muiSupportAuto=!0);function Wz(e){return st("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 Yz=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return lt(a,Wz,o)},Qz=we("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}`]]}})(Ct(({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)"}}]}))),es=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiPaper"}),o=rl(),{className:a,component:s="div",elevation:l=1,square:u=!1,variant:d="elevation",...p}=r,h={...r,component:s,elevation:l,square:u,variant:d},g=Yz(h);return b.jsx(Qz,{as:s,ownerState:h,className:We(g.root,a),ref:n,...p,style:{...d==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[l],...o.vars&&{"--Paper-overlay":o.vars.overlays?.[l]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Dt("#fff",vx(l))}, ${Dt("#fff",vx(l))})`}},...p.style}})});function Kz(e){return typeof e=="string"}function a5(e,t,n){return e===void 0||Kz(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function i5(e,t,n){return typeof e=="function"?e(t,n):e}function s5(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 hD(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 l5(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const y=We(n?.className,a,o?.className,r?.className),v={...n?.style,...o?.style,...r?.style},T={...n,...o,...r};return y.length>0&&(T.className=y),Object.keys(v).length>0&&(T.style=v),{props:T,internalRef:void 0}}const s=s5({...o,...r}),l=hD(r),u=hD(o),d=t(s),p=We(d?.className,n?.className,a,o?.className,r?.className),h={...d?.style,...n?.style,...o?.style,...r?.style},g={...d,...n,...u,...l};return p.length>0&&(g.className=p),Object.keys(h).length>0&&(g.style=h),{props:g,internalRef:d.ref}}function Pt(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,internalForwardedProps:s,shouldForwardComponentProp:l=!1,...u}=t,{component:d,slots:p={[e]:void 0},slotProps:h={[e]:void 0},...g}=a,y=p[e]||r,v=i5(h[e],o),{props:{component:T,..._},internalRef:x}=l5({className:n,...u,externalForwardedProps:e==="root"?g:void 0,externalSlotProps:v}),D=rr(x,v?.ref,t.ref),C=e==="root"?T||d:T,R=a5(y,{...e==="root"&&!d&&!p[e]&&s,...e!=="root"&&!p[e]&&s,..._,...C&&!l&&{as:C},...C&&l&&{component:C},ref:D},o);return[y,R]}function Ty(e){try{return e.matches(":focus-visible")}catch{}return!1}class Sy{static create(){return new Sy}static use(){const t=r5(Sy.create).current,[n,r]=w.useState(!1);return t.shouldMount=n,t.setShouldMount=r,w.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=Zz(),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 Xz(){return Sy.use()}function Zz(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function Jz(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:s,in:l,onExited:u,timeout:d}=e,[p,h]=w.useState(!1),g=We(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:s,height:s,top:-(s/2)+a,left:-(s/2)+o},v=We(n.child,p&&n.childLeaving,r&&n.childPulsate);return!l&&!p&&h(!0),w.useEffect(()=>{if(!l&&u!=null){const T=setTimeout(u,d);return()=>{clearTimeout(T)}}},[u,l,d]),b.jsx("span",{className:g,style:y,children:b.jsx("span",{className:v})})}const ua=ut("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Sx=550,e$=80,t$=nl`
|
|
112
|
+
0% {
|
|
113
|
+
transform: scale(0);
|
|
114
|
+
opacity: 0.1;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
100% {
|
|
118
|
+
transform: scale(1);
|
|
119
|
+
opacity: 0.3;
|
|
120
|
+
}
|
|
121
|
+
`,n$=nl`
|
|
122
|
+
0% {
|
|
123
|
+
opacity: 1;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
100% {
|
|
127
|
+
opacity: 0;
|
|
128
|
+
}
|
|
129
|
+
`,r$=nl`
|
|
130
|
+
0% {
|
|
131
|
+
transform: scale(1);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
50% {
|
|
135
|
+
transform: scale(0.92);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
100% {
|
|
139
|
+
transform: scale(1);
|
|
140
|
+
}
|
|
141
|
+
`,o$=we("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),a$=we(Jz,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
142
|
+
opacity: 0;
|
|
143
|
+
position: absolute;
|
|
144
|
+
|
|
145
|
+
&.${ua.rippleVisible} {
|
|
146
|
+
opacity: 0.3;
|
|
147
|
+
transform: scale(1);
|
|
148
|
+
animation-name: ${t$};
|
|
149
|
+
animation-duration: ${Sx}ms;
|
|
150
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
&.${ua.ripplePulsate} {
|
|
154
|
+
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
& .${ua.child} {
|
|
158
|
+
opacity: 1;
|
|
159
|
+
display: block;
|
|
160
|
+
width: 100%;
|
|
161
|
+
height: 100%;
|
|
162
|
+
border-radius: 50%;
|
|
163
|
+
background-color: currentColor;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
& .${ua.childLeaving} {
|
|
167
|
+
opacity: 0;
|
|
168
|
+
animation-name: ${n$};
|
|
169
|
+
animation-duration: ${Sx}ms;
|
|
170
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
& .${ua.childPulsate} {
|
|
174
|
+
position: absolute;
|
|
175
|
+
/* @noflip */
|
|
176
|
+
left: 0px;
|
|
177
|
+
top: 0;
|
|
178
|
+
animation-name: ${r$};
|
|
179
|
+
animation-duration: 2500ms;
|
|
180
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
181
|
+
animation-iteration-count: infinite;
|
|
182
|
+
animation-delay: 200ms;
|
|
183
|
+
}
|
|
184
|
+
`,i$=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:s,...l}=r,[u,d]=w.useState([]),p=w.useRef(0),h=w.useRef(null);w.useEffect(()=>{h.current&&(h.current(),h.current=null)},[u]);const g=w.useRef(!1),y=Hl(),v=w.useRef(null),T=w.useRef(null),_=w.useCallback(R=>{const{pulsate:I,rippleX:O,rippleY:F,rippleSize:H,cb:U}=R;d(S=>[...S,b.jsx(a$,{classes:{ripple:We(a.ripple,ua.ripple),rippleVisible:We(a.rippleVisible,ua.rippleVisible),ripplePulsate:We(a.ripplePulsate,ua.ripplePulsate),child:We(a.child,ua.child),childLeaving:We(a.childLeaving,ua.childLeaving),childPulsate:We(a.childPulsate,ua.childPulsate)},timeout:Sx,pulsate:I,rippleX:O,rippleY:F,rippleSize:H},p.current)]),p.current+=1,h.current=U},[a]),x=w.useCallback((R={},I={},O=()=>{})=>{const{pulsate:F=!1,center:H=o||I.pulsate,fakeElement:U=!1}=I;if(R?.type==="mousedown"&&g.current){g.current=!1;return}R?.type==="touchstart"&&(g.current=!0);const S=U?null:T.current,M=S?S.getBoundingClientRect():{width:0,height:0,left:0,top:0};let $,z,q;if(H||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(H)q=Math.sqrt((2*M.width**2+M.height**2)/3),q%2===0&&(q+=1);else{const Y=Math.max(Math.abs((S?S.clientWidth:0)-$),$)*2+2,B=Math.max(Math.abs((S?S.clientHeight:0)-z),z)*2+2;q=Math.sqrt(Y**2+B**2)}R?.touches?v.current===null&&(v.current=()=>{_({pulsate:F,rippleX:$,rippleY:z,rippleSize:q,cb:O})},y.start(e$,()=>{v.current&&(v.current(),v.current=null)})):_({pulsate:F,rippleX:$,rippleY:z,rippleSize:q,cb:O})},[o,_,y]),D=w.useCallback(()=>{x({},{pulsate:!0})},[x]),C=w.useCallback((R,I)=>{if(y.clear(),R?.type==="touchend"&&v.current){v.current(),v.current=null,y.start(0,()=>{C(R,I)});return}v.current=null,d(O=>O.length>0?O.slice(1):O),h.current=I},[y]);return w.useImperativeHandle(n,()=>({pulsate:D,start:x,stop:C}),[D,x,C]),b.jsx(o$,{className:We(ua.root,a.root,s),ref:T,...l,children:b.jsx(xS,{component:null,exit:!0,children:u})})});function s$(e){return st("MuiButtonBase",e)}const l$=ut("MuiButtonBase",["root","disabled","focusVisible"]),c$=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=lt({root:["root",t&&"disabled",n&&"focusVisible"]},s$,o);return n&&r&&(s.root+=` ${r}`),s},u$=we("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"},[`&.${l$.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),gi=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:s,className:l,component:u="button",disabled:d=!1,disableRipple:p=!1,disableTouchRipple:h=!1,focusRipple:g=!1,focusVisibleClassName:y,LinkComponent:v="a",onBlur:T,onClick:_,onContextMenu:x,onDragLeave:D,onFocus:C,onFocusVisible:R,onKeyDown:I,onKeyUp:O,onMouseDown:F,onMouseLeave:H,onMouseUp:U,onTouchEnd:S,onTouchMove:M,onTouchStart:$,tabIndex:z=0,TouchRippleProps:q,touchRippleRef:Y,type:B,...K}=r,ae=w.useRef(null),ne=Xz(),N=rr(ne.ref,Y),[Q,X]=w.useState(!1);d&&Q&&X(!1),w.useImperativeHandle(o,()=>({focusVisible:()=>{X(!0),ae.current.focus()}}),[]);const P=ne.shouldMount&&!p&&!d;w.useEffect(()=>{Q&&g&&!p&&ne.pulsate()},[p,g,Q,ne]);const re=$i(ne,"start",F,h),ce=$i(ne,"stop",x,h),oe=$i(ne,"stop",D,h),ve=$i(ne,"stop",U,h),be=$i(ne,"stop",Le=>{Q&&Le.preventDefault(),H&&H(Le)},h),qe=$i(ne,"start",$,h),Me=$i(ne,"stop",S,h),Oe=$i(ne,"stop",M,h),Ke=$i(ne,"stop",Le=>{Ty(Le.target)||X(!1),T&&T(Le)},!1),at=va(Le=>{ae.current||(ae.current=Le.currentTarget),Ty(Le.target)&&(X(!0),R&&R(Le)),C&&C(Le)}),Re=()=>{const Le=ae.current;return u&&u!=="button"&&!(Le.tagName==="A"&&Le.href)},yt=va(Le=>{g&&!Le.repeat&&Q&&Le.key===" "&&ne.stop(Le,()=>{ne.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(),_&&_(Le))}),_t=va(Le=>{g&&Le.key===" "&&Q&&!Le.defaultPrevented&&ne.stop(Le,()=>{ne.pulsate(Le)}),O&&O(Le),_&&Le.target===Le.currentTarget&&Re()&&Le.key===" "&&!Le.defaultPrevented&&_(Le)});let He=u;He==="button"&&(K.href||K.to)&&(He=v);const mt={};He==="button"?(mt.type=B===void 0?"button":B,mt.disabled=d):(!K.href&&!K.to&&(mt.role="button"),d&&(mt["aria-disabled"]=d));const ct=rr(n,ae),ft={...r,centerRipple:a,component:u,disabled:d,disableRipple:p,disableTouchRipple:h,focusRipple:g,tabIndex:z,focusVisible:Q},ze=c$(ft);return b.jsxs(u$,{as:He,className:We(ze.root,l),ownerState:ft,onBlur:Ke,onClick:_,onContextMenu:ce,onFocus:at,onKeyDown:yt,onKeyUp:_t,onMouseDown:re,onMouseLeave:be,onMouseUp:ve,onDragLeave:oe,onTouchEnd:Me,onTouchMove:Oe,onTouchStart:qe,ref:ct,tabIndex:d?-1:z,type:B,...mt,...K,children:[s,P?b.jsx(i$,{ref:N,center:a,...q}):null]})});function $i(e,t,n,r=!1){return va(o=>(n&&n(o),r||e[t](o),!0))}function d$(e){return typeof e.main=="string"}function f$(e,t=[]){if(!d$(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&&f$(t,e)}function p$(e){return st("MuiCircularProgress",e)}ut("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ns=44,Cx=nl`
|
|
185
|
+
0% {
|
|
186
|
+
transform: rotate(0deg);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
100% {
|
|
190
|
+
transform: rotate(360deg);
|
|
191
|
+
}
|
|
192
|
+
`,_x=nl`
|
|
193
|
+
0% {
|
|
194
|
+
stroke-dasharray: 1px, 200px;
|
|
195
|
+
stroke-dashoffset: 0;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
50% {
|
|
199
|
+
stroke-dasharray: 100px, 200px;
|
|
200
|
+
stroke-dashoffset: -15px;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
100% {
|
|
204
|
+
stroke-dasharray: 1px, 200px;
|
|
205
|
+
stroke-dashoffset: -126px;
|
|
206
|
+
}
|
|
207
|
+
`,h$=typeof Cx!="string"?rS`
|
|
208
|
+
animation: ${Cx} 1.4s linear infinite;
|
|
209
|
+
`:null,m$=typeof _x!="string"?rS`
|
|
210
|
+
animation: ${_x} 1.4s ease-in-out infinite;
|
|
211
|
+
`:null,g$=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 lt(a,p$,t)},y$=we("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Ne(n.color)}`]]}})(Ct(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:h$||{animation:`${Cx} 1.4s linear infinite`}},...Object.entries(e.palette).filter(so()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),b$=we("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),v$=we("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Ne(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Ct(({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:m$||{animation:`${_x} 1.4s ease-in-out infinite`}}]}))),TS=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:s=!1,size:l=40,style:u,thickness:d=3.6,value:p=0,variant:h="indeterminate",...g}=r,y={...r,color:a,disableShrink:s,size:l,thickness:d,value:p,variant:h},v=g$(y),T={},_={},x={};if(h==="determinate"){const D=2*Math.PI*((Ns-d)/2);T.strokeDasharray=D.toFixed(3),x["aria-valuenow"]=Math.round(p),T.strokeDashoffset=`${((100-p)/100*D).toFixed(3)}px`,_.transform="rotate(-90deg)"}return b.jsx(y$,{className:We(v.root,o),style:{width:l,height:l,..._,...u},ownerState:y,ref:n,role:"progressbar",...x,...g,children:b.jsx(b$,{className:v.svg,ownerState:y,viewBox:`${Ns/2} ${Ns/2} ${Ns} ${Ns}`,children:b.jsx(v$,{className:v.circle,style:T,ownerState:y,cx:Ns,cy:Ns,r:(Ns-d)/2,fill:"none",strokeWidth:d})})})});function E$(e){return st("MuiIconButton",e)}const mD=ut("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),x$=e=>{const{classes:t,disabled:n,color:r,edge:o,size:a,loading:s}=e,l={root:["root",s&&"loading",n&&"disabled",r!=="default"&&`color${Ne(r)}`,o&&`edge${Ne(o)}`,`size${Ne(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return lt(l,E$,t)},T$=we(gi,{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)}`]]}})(Ct(({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}}]})),Ct(({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)}}],[`&.${mD.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${mD.loading}`]:{color:"transparent"}}))),S$=we("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"}}]})),nr=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:s,color:l="default",disabled:u=!1,disableFocusRipple:d=!1,size:p="medium",id:h,loading:g=null,loadingIndicator:y,...v}=r,T=yc(h),_=y??b.jsx(TS,{"aria-labelledby":T,color:"inherit",size:16}),x={...r,edge:o,color:l,disabled:u,disableFocusRipple:d,loading:g,loadingIndicator:_,size:p},D=x$(x);return b.jsxs(T$,{id:g?T:h,className:We(D.root,s),centerRipple:!0,focusRipple:!d,disabled:u||g,ref:n,...v,ownerState:x,children:[typeof g=="boolean"&&b.jsx("span",{className:D.loadingWrapper,style:{display:"contents"},children:b.jsx(S$,{className:D.loadingIndicator,ownerState:x,children:g&&_})}),a]})});function C$(e){return st("MuiTypography",e)}const gD=ut("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),_$={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},A$=kz(),k$=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:s}=e,l={root:["root",a,e.align!=="inherit"&&`align${Ne(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return lt(l,C$,s)},w$=we("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]}})(Ct(({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}}]}))),yD={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Ue=w.forwardRef(function(t,n){const{color:r,...o}=dt({props:t,name:"MuiTypography"}),a=!_$[r],s=A$({...o,...a&&{color:r}}),{align:l="inherit",className:u,component:d,gutterBottom:p=!1,noWrap:h=!1,paragraph:g=!1,variant:y="body1",variantMapping:v=yD,...T}=s,_={...s,align:l,color:r,className:u,component:d,gutterBottom:p,noWrap:h,paragraph:g,variant:y,variantMapping:v},x=d||(g?"p":v[y]||yD[y])||"span",D=k$(_);return b.jsx(w$,{as:x,ref:n,className:We(D.root,u),...T,ownerState:_,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...T.style}})});function D$(e){return st("MuiAppBar",e)}ut("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const R$=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${Ne(t)}`,`position${Ne(n)}`]};return lt(o,D$,r)},bD=(e,t)=>e?`${e?.replace(")","")}, ${t})`:t,I$=we(es,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Ne(n.position)}`],t[`color${Ne(n.color)}`]]}})(Ct(({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?bD(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?bD(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"})}}]}))),O$=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:s=!1,position:l="fixed",...u}=r,d={...r,color:a,position:l,enableColorOnDark:s},p=R$(d);return b.jsx(I$,{square:!0,component:"header",ownerState:d,elevation:4,className:We(p.root,o,l==="fixed"&&"mui-fixed"),ref:n,...u})});var Eo="top",Sa="bottom",Ca="right",xo="left",SS="auto",Ch=[Eo,Sa,Ca,xo],Gu="start",Hp="end",N$="clippingParents",c5="viewport",wf="popper",P$="reference",vD=Ch.reduce(function(e,t){return e.concat([t+"-"+Gu,t+"-"+Hp])},[]),u5=[].concat(Ch,[SS]).reduce(function(e,t){return e.concat([t,t+"-"+Gu,t+"-"+Hp])},[]),L$="beforeRead",M$="read",F$="afterRead",B$="beforeMain",j$="main",U$="afterMain",H$="beforeWrite",z$="write",$$="afterWrite",V$=[L$,M$,F$,B$,j$,U$,H$,z$,$$];function yi(e){return e?(e.nodeName||"").toLowerCase():null}function qo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function oc(e){var t=qo(e).Element;return e instanceof t||e instanceof Element}function Ea(e){var t=qo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function CS(e){if(typeof ShadowRoot>"u")return!1;var t=qo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function G$(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)||!yi(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(s){var l=o[s];l===!1?a.removeAttribute(s):a.setAttribute(s,l===!0?"":l)}))})}function q$(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]),l=s.reduce(function(u,d){return u[d]="",u},{});!Ea(o)||!yi(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(u){o.removeAttribute(u)}))})}}const W$={name:"applyStyles",enabled:!0,phase:"write",fn:G$,effect:q$,requires:["computeStyles"]};function hi(e){return e.split("-")[0]}var Ql=Math.max,Cy=Math.min,qu=Math.round;function Ax(){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 d5(){return!/^((?!chrome|android).)*safari/i.test(Ax())}function Wu(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&&qu(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&qu(r.height)/e.offsetHeight||1);var s=oc(e)?qo(e):window,l=s.visualViewport,u=!d5()&&n,d=(r.left+(u&&l?l.offsetLeft:0))/o,p=(r.top+(u&&l?l.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 _S(e){var t=Wu(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 f5(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&CS(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function os(e){return qo(e).getComputedStyle(e)}function Y$(e){return["table","td","th"].indexOf(yi(e))>=0}function ol(e){return((oc(e)?e.ownerDocument:e.document)||window.document).documentElement}function R0(e){return yi(e)==="html"?e:e.assignedSlot||e.parentNode||(CS(e)?e.host:null)||ol(e)}function ED(e){return!Ea(e)||os(e).position==="fixed"?null:e.offsetParent}function Q$(e){var t=/firefox/i.test(Ax()),n=/Trident/i.test(Ax());if(n&&Ea(e)){var r=os(e);if(r.position==="fixed")return null}var o=R0(e);for(CS(o)&&(o=o.host);Ea(o)&&["html","body"].indexOf(yi(o))<0;){var a=os(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 _h(e){for(var t=qo(e),n=ED(e);n&&Y$(n)&&os(n).position==="static";)n=ED(n);return n&&(yi(n)==="html"||yi(n)==="body"&&os(n).position==="static")?t:n||Q$(e)||t}function AS(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function up(e,t,n){return Ql(e,Cy(t,n))}function K$(e,t,n){var r=up(e,t,n);return r>n?n:r}function p5(){return{top:0,right:0,bottom:0,left:0}}function h5(e){return Object.assign({},p5(),e)}function m5(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var X$=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,h5(typeof t!="number"?t:m5(t,Ch))};function Z$(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,l=hi(n.placement),u=AS(l),d=[xo,Ca].indexOf(l)>=0,p=d?"height":"width";if(!(!a||!s)){var h=X$(o.padding,n),g=_S(a),y=u==="y"?Eo:xo,v=u==="y"?Sa:Ca,T=n.rects.reference[p]+n.rects.reference[u]-s[u]-n.rects.popper[p],_=s[u]-n.rects.reference[u],x=_h(a),D=x?u==="y"?x.clientHeight||0:x.clientWidth||0:0,C=T/2-_/2,R=h[y],I=D-g[p]-h[v],O=D/2-g[p]/2+C,F=up(R,O,I),H=u;n.modifiersData[r]=(t={},t[H]=F,t.centerOffset=F-O,t)}}function J$(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)||f5(t.elements.popper,o)&&(t.elements.arrow=o))}const eV={name:"arrow",enabled:!0,phase:"main",fn:Z$,effect:J$,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Yu(e){return e.split("-")[1]}var tV={top:"auto",right:"auto",bottom:"auto",left:"auto"};function nV(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:qu(n*o)/o||0,y:qu(r*o)/o||0}}function xD(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,l=e.position,u=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,h=e.isFixed,g=s.x,y=g===void 0?0:g,v=s.y,T=v===void 0?0:v,_=typeof p=="function"?p({x:y,y:T}):{x:y,y:T};y=_.x,T=_.y;var x=s.hasOwnProperty("x"),D=s.hasOwnProperty("y"),C=xo,R=Eo,I=window;if(d){var O=_h(n),F="clientHeight",H="clientWidth";if(O===qo(n)&&(O=ol(n),os(O).position!=="static"&&l==="absolute"&&(F="scrollHeight",H="scrollWidth")),O=O,o===Eo||(o===xo||o===Ca)&&a===Hp){R=Sa;var U=h&&O===I&&I.visualViewport?I.visualViewport.height:O[F];T-=U-r.height,T*=u?1:-1}if(o===xo||(o===Eo||o===Sa)&&a===Hp){C=Ca;var S=h&&O===I&&I.visualViewport?I.visualViewport.width:O[H];y-=S-r.width,y*=u?1:-1}}var M=Object.assign({position:l},d&&tV),$=p===!0?nV({x:y,y:T},qo(n)):{x:y,y:T};if(y=$.x,T=$.y,u){var z;return Object.assign({},M,(z={},z[R]=D?"0":"",z[C]=x?"0":"",z.transform=(I.devicePixelRatio||1)<=1?"translate("+y+"px, "+T+"px)":"translate3d("+y+"px, "+T+"px, 0)",z))}return Object.assign({},M,(t={},t[R]=D?T+"px":"",t[C]=x?y+"px":"",t.transform="",t))}function rV(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,l=n.roundOffsets,u=l===void 0?!0:l,d={placement:hi(t.placement),variation:Yu(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,xD(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,xD(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 oV={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:rV,data:{}};var dg={passive:!0};function aV(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,s=r.resize,l=s===void 0?!0:s,u=qo(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach(function(p){p.addEventListener("scroll",n.update,dg)}),l&&u.addEventListener("resize",n.update,dg),function(){a&&d.forEach(function(p){p.removeEventListener("scroll",n.update,dg)}),l&&u.removeEventListener("resize",n.update,dg)}}const iV={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:aV,data:{}};var sV={left:"right",right:"left",bottom:"top",top:"bottom"};function Gg(e){return e.replace(/left|right|bottom|top/g,function(t){return sV[t]})}var lV={start:"end",end:"start"};function TD(e){return e.replace(/start|end/g,function(t){return lV[t]})}function kS(e){var t=qo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function wS(e){return Wu(ol(e)).left+kS(e).scrollLeft}function cV(e,t){var n=qo(e),r=ol(e),o=n.visualViewport,a=r.clientWidth,s=r.clientHeight,l=0,u=0;if(o){a=o.width,s=o.height;var d=d5();(d||!d&&t==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}return{width:a,height:s,x:l+wS(e),y:u}}function uV(e){var t,n=ol(e),r=kS(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Ql(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Ql(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+wS(e),u=-r.scrollTop;return os(o||n).direction==="rtl"&&(l+=Ql(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:l,y:u}}function DS(e){var t=os(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function g5(e){return["html","body","#document"].indexOf(yi(e))>=0?e.ownerDocument.body:Ea(e)&&DS(e)?e:g5(R0(e))}function dp(e,t){var n;t===void 0&&(t=[]);var r=g5(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=qo(r),s=o?[a].concat(a.visualViewport||[],DS(r)?r:[]):r,l=t.concat(s);return o?l:l.concat(dp(R0(s)))}function kx(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function dV(e,t){var n=Wu(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 SD(e,t,n){return t===c5?kx(cV(e,n)):oc(t)?dV(t,n):kx(uV(ol(e)))}function fV(e){var t=dp(R0(e)),n=["absolute","fixed"].indexOf(os(e).position)>=0,r=n&&Ea(e)?_h(e):e;return oc(r)?t.filter(function(o){return oc(o)&&f5(o,r)&&yi(o)!=="body"}):[]}function pV(e,t,n,r){var o=t==="clippingParents"?fV(e):[].concat(t),a=[].concat(o,[n]),s=a[0],l=a.reduce(function(u,d){var p=SD(e,d,r);return u.top=Ql(p.top,u.top),u.right=Cy(p.right,u.right),u.bottom=Cy(p.bottom,u.bottom),u.left=Ql(p.left,u.left),u},SD(e,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function y5(e){var t=e.reference,n=e.element,r=e.placement,o=r?hi(r):null,a=r?Yu(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,u;switch(o){case Eo: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:l};break;case xo:u={x:t.x-n.width,y:l};break;default:u={x:t.x,y:t.y}}var d=o?AS(o):null;if(d!=null){var p=d==="y"?"height":"width";switch(a){case Gu:u[d]=u[d]-(t[p]/2-n[p]/2);break;case Hp:u[d]=u[d]+(t[p]/2-n[p]/2);break}}return u}function zp(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,l=n.boundary,u=l===void 0?N$:l,d=n.rootBoundary,p=d===void 0?c5:d,h=n.elementContext,g=h===void 0?wf:h,y=n.altBoundary,v=y===void 0?!1:y,T=n.padding,_=T===void 0?0:T,x=h5(typeof _!="number"?_:m5(_,Ch)),D=g===wf?P$:wf,C=e.rects.popper,R=e.elements[v?D:g],I=pV(oc(R)?R:R.contextElement||ol(e.elements.popper),u,p,s),O=Wu(e.elements.reference),F=y5({reference:O,element:C,placement:o}),H=kx(Object.assign({},C,F)),U=g===wf?H:O,S={top:I.top-U.top+x.top,bottom:U.bottom-I.bottom+x.bottom,left:I.left-U.left+x.left,right:U.right-I.right+x.right},M=e.modifiersData.offset;if(g===wf&&M){var $=M[o];Object.keys(S).forEach(function(z){var q=[Ca,Sa].indexOf(z)>=0?1:-1,Y=[Eo,Sa].indexOf(z)>=0?"y":"x";S[z]+=$[Y]*q})}return S}function hV(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,s=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,d=u===void 0?u5:u,p=Yu(r),h=p?l?vD:vD.filter(function(v){return Yu(v)===p}):Ch,g=h.filter(function(v){return d.indexOf(v)>=0});g.length===0&&(g=h);var y=g.reduce(function(v,T){return v[T]=zp(e,{placement:T,boundary:o,rootBoundary:a,padding:s})[hi(T)],v},{});return Object.keys(y).sort(function(v,T){return y[v]-y[T]})}function mV(e){if(hi(e)===SS)return[];var t=Gg(e);return[TD(e),t,TD(t)]}function gV(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,l=s===void 0?!0:s,u=n.fallbackPlacements,d=n.padding,p=n.boundary,h=n.rootBoundary,g=n.altBoundary,y=n.flipVariations,v=y===void 0?!0:y,T=n.allowedAutoPlacements,_=t.options.placement,x=hi(_),D=x===_,C=u||(D||!v?[Gg(_)]:mV(_)),R=[_].concat(C).reduce(function(re,ce){return re.concat(hi(ce)===SS?hV(t,{placement:ce,boundary:p,rootBoundary:h,padding:d,flipVariations:v,allowedAutoPlacements:T}):ce)},[]),I=t.rects.reference,O=t.rects.popper,F=new Map,H=!0,U=R[0],S=0;S<R.length;S++){var M=R[S],$=hi(M),z=Yu(M)===Gu,q=[Eo,Sa].indexOf($)>=0,Y=q?"width":"height",B=zp(t,{placement:M,boundary:p,rootBoundary:h,altBoundary:g,padding:d}),K=q?z?Ca:xo:z?Sa:Eo;I[Y]>O[Y]&&(K=Gg(K));var ae=Gg(K),ne=[];if(a&&ne.push(B[$]<=0),l&&ne.push(B[K]<=0,B[ae]<=0),ne.every(function(re){return re})){U=M,H=!1;break}F.set(M,ne)}if(H)for(var N=v?3:1,Q=function(ce){var oe=R.find(function(ve){var be=F.get(ve);if(be)return be.slice(0,ce).every(function(qe){return qe})});if(oe)return U=oe,"break"},X=N;X>0;X--){var P=Q(X);if(P==="break")break}t.placement!==U&&(t.modifiersData[r]._skip=!0,t.placement=U,t.reset=!0)}}const yV={name:"flip",enabled:!0,phase:"main",fn:gV,requiresIfExists:["offset"],data:{_skip:!1}};function CD(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function _D(e){return[Eo,Ca,Sa,xo].some(function(t){return e[t]>=0})}function bV(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=zp(t,{elementContext:"reference"}),l=zp(t,{altBoundary:!0}),u=CD(s,r),d=CD(l,o,a),p=_D(u),h=_D(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 vV={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:bV};function EV(e,t,n){var r=hi(e),o=[xo,Eo].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],l=a[1];return s=s||0,l=(l||0)*o,[xo,Ca].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function xV(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,s=u5.reduce(function(p,h){return p[h]=EV(h,t.rects,a),p},{}),l=s[t.placement],u=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=s}const TV={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:xV};function SV(e){var t=e.state,n=e.name;t.modifiersData[n]=y5({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const CV={name:"popperOffsets",enabled:!0,phase:"read",fn:SV,data:{}};function _V(e){return e==="x"?"y":"x"}function AV(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,l=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,v=n.tetherOffset,T=v===void 0?0:v,_=zp(t,{boundary:u,rootBoundary:d,padding:h,altBoundary:p}),x=hi(t.placement),D=Yu(t.placement),C=!D,R=AS(x),I=_V(R),O=t.modifiersData.popperOffsets,F=t.rects.reference,H=t.rects.popper,U=typeof T=="function"?T(Object.assign({},t.rects,{placement:t.placement})):T,S=typeof U=="number"?{mainAxis:U,altAxis:U}:Object.assign({mainAxis:0,altAxis:0},U),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,$={x:0,y:0};if(O){if(a){var z,q=R==="y"?Eo:xo,Y=R==="y"?Sa:Ca,B=R==="y"?"height":"width",K=O[R],ae=K+_[q],ne=K-_[Y],N=y?-H[B]/2:0,Q=D===Gu?F[B]:H[B],X=D===Gu?-H[B]:-F[B],P=t.elements.arrow,re=y&&P?_S(P):{width:0,height:0},ce=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:p5(),oe=ce[q],ve=ce[Y],be=up(0,F[B],re[B]),qe=C?F[B]/2-N-be-oe-S.mainAxis:Q-be-oe-S.mainAxis,Me=C?-F[B]/2+N+be+ve+S.mainAxis:X+be+ve+S.mainAxis,Oe=t.elements.arrow&&_h(t.elements.arrow),Ke=Oe?R==="y"?Oe.clientTop||0:Oe.clientLeft||0:0,at=(z=M?.[R])!=null?z:0,Re=K+qe-at-Ke,yt=K+Me-at,_t=up(y?Cy(ae,Re):ae,K,y?Ql(ne,yt):ne);O[R]=_t,$[R]=_t-K}if(l){var He,mt=R==="x"?Eo:xo,ct=R==="x"?Sa:Ca,ft=O[I],ze=I==="y"?"height":"width",Le=ft+_[mt],Xt=ft-_[ct],Bt=[Eo,xo].indexOf(x)!==-1,At=(He=M?.[I])!=null?He:0,de=Bt?Le:ft-F[ze]-H[ze]-At+S.altAxis,ye=Bt?ft+F[ze]+H[ze]-At-S.altAxis:Xt,$e=y&&Bt?K$(de,ft,ye):up(y?de:Le,ft,y?ye:Xt);O[I]=$e,$[I]=$e-ft}t.modifiersData[r]=$}}const kV={name:"preventOverflow",enabled:!0,phase:"main",fn:AV,requiresIfExists:["offset"]};function wV(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function DV(e){return e===qo(e)||!Ea(e)?kS(e):wV(e)}function RV(e){var t=e.getBoundingClientRect(),n=qu(t.width)/e.offsetWidth||1,r=qu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function IV(e,t,n){n===void 0&&(n=!1);var r=Ea(t),o=Ea(t)&&RV(t),a=ol(t),s=Wu(e,o,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((yi(t)!=="body"||DS(a))&&(l=DV(t)),Ea(t)?(u=Wu(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=wS(a))),{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}function OV(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(l){if(!n.has(l)){var u=t.get(l);u&&o(u)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function NV(e){var t=OV(e);return V$.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function PV(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function LV(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 AD={placement:"bottom",modifiers:[],strategy:"absolute"};function kD(){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 MV(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,a=o===void 0?AD:o;return function(l,u,d){d===void 0&&(d=a);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},AD,a),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},h=[],g=!1,y={state:p,setOptions:function(x){var D=typeof x=="function"?x(p.options):x;T(),p.options=Object.assign({},a,p.options,D),p.scrollParents={reference:oc(l)?dp(l):l.contextElement?dp(l.contextElement):[],popper:dp(u)};var C=NV(LV([].concat(r,p.options.modifiers)));return p.orderedModifiers=C.filter(function(R){return R.enabled}),v(),y.update()},forceUpdate:function(){if(!g){var x=p.elements,D=x.reference,C=x.popper;if(kD(D,C)){p.rects={reference:IV(D,_h(C),p.options.strategy==="fixed"),popper:_S(C)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(S){return p.modifiersData[S.name]=Object.assign({},S.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,H=F===void 0?{}:F,U=I.name;typeof O=="function"&&(p=O({state:p,options:H,name:U,instance:y})||p)}}}},update:PV(function(){return new Promise(function(_){y.forceUpdate(),_(p)})}),destroy:function(){T(),g=!0}};if(!kD(l,u))return y;y.setOptions(d).then(function(_){!g&&d.onFirstUpdate&&d.onFirstUpdate(_)});function v(){p.orderedModifiers.forEach(function(_){var x=_.name,D=_.options,C=D===void 0?{}:D,R=_.effect;if(typeof R=="function"){var I=R({state:p,name:x,instance:y,options:C}),O=function(){};h.push(I||O)}})}function T(){h.forEach(function(_){return _()}),h=[]}return y}}var FV=[iV,CV,oV,W$,TV,yV,kV,eV,vV],BV=MV({defaultModifiers:FV});function ac(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...a}=e,s=o?{}:i5(n,r),{props:l,internalRef:u}=l5({...a,externalSlotProps:s}),d=rr(u,s?.ref,e.additionalProps?.ref);return a5(t,{...l,ref:d},r)}function fd(e){return parseInt(w.version,10)>=19?e?.props?.ref||null:e?.ref||null}function jV(e){return typeof e=="function"?e():e}const b5=w.forwardRef(function(t,n){const{children:r,container:o,disablePortal:a=!1}=t,[s,l]=w.useState(null),u=rr(w.isValidElement(r)?fd(r):null,n);if(_o(()=>{a||l(jV(o)||document.body)},[o,a]),_o(()=>{if(s&&!a)return dD(n,s),()=>{dD(n,null)}},[n,s,a]),a){if(w.isValidElement(r)){const d={ref:u};return w.cloneElement(r,d)}return r}return s&&f0.createPortal(r,s)});function UV(e){return st("MuiPopper",e)}ut("MuiPopper",["root"]);function HV(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 wx(e){return typeof e=="function"?e():e}function zV(e){return e.nodeType!==void 0}const $V=e=>{const{classes:t}=e;return lt({root:["root"]},UV,t)},VV={},GV=w.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:a,disablePortal:s,modifiers:l,open:u,placement:d,popperOptions:p,popperRef:h,slotProps:g={},slots:y={},TransitionProps:v,ownerState:T,..._}=t,x=w.useRef(null),D=rr(x,n),C=w.useRef(null),R=rr(C,h),I=w.useRef(R);_o(()=>{I.current=R},[R]),w.useImperativeHandle(h,()=>C.current,[]);const O=HV(d,a),[F,H]=w.useState(O),[U,S]=w.useState(wx(r));w.useEffect(()=>{C.current&&C.current.forceUpdate()}),w.useEffect(()=>{r&&S(wx(r))},[r]),_o(()=>{if(!U||!u)return;const Y=ae=>{H(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)}}];l!=null&&(B=B.concat(l)),p&&p.modifiers!=null&&(B=B.concat(p.modifiers));const K=BV(U,x.current,{placement:O,...p,modifiers:B});return I.current(K),()=>{K.destroy(),I.current(null)}},[U,s,l,u,p,O]);const M={placement:F};v!==null&&(M.TransitionProps=v);const $=$V(t),z=y.root??"div",q=ac({elementType:z,externalSlotProps:g.root,externalForwardedProps:_,additionalProps:{role:"tooltip",ref:D},ownerState:t,className:$.root});return b.jsx(z,{...q,children:typeof o=="function"?o(M):o})}),qV=w.forwardRef(function(t,n){const{anchorEl:r,children:o,container:a,direction:s="ltr",disablePortal:l=!1,keepMounted:u=!1,modifiers:d,open:p,placement:h="bottom",popperOptions:g=VV,popperRef:y,style:v,transition:T=!1,slotProps:_={},slots:x={},...D}=t,[C,R]=w.useState(!0),I=()=>{R(!1)},O=()=>{R(!0)};if(!u&&!p&&(!T||C))return null;let F;if(a)F=a;else if(r){const S=wx(r);F=S&&zV(S)?Ao(S).body:Ao(null).body}const H=!p&&u&&(!T||C)?"none":void 0,U=T?{in:p,onEnter:I,onExited:O}:void 0;return b.jsx(b5,{disablePortal:l,container:F,children:b.jsx(GV,{anchorEl:r,direction:s,disablePortal:l,modifiers:d,ref:n,open:T?!C:p,placement:h,popperOptions:g,popperRef:y,slotProps:_,slots:x,...D,style:{position:"fixed",top:0,left:0,display:H,...v},TransitionProps:U,children:o})})}),WV=we(qV,{name:"MuiPopper",slot:"Root"})({}),v5=w.forwardRef(function(t,n){const r=Sh(),o=dt({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:u,container:d,disablePortal:p,keepMounted:h,modifiers:g,open:y,placement:v,popperOptions:T,popperRef:_,transition:x,slots:D,slotProps:C,...R}=o,I=D?.root??l?.Root,O={anchorEl:a,container:d,disablePortal:p,keepMounted:h,modifiers:g,open:y,placement:v,popperOptions:T,popperRef:_,transition:x,...R};return b.jsx(WV,{as:s,direction:r?"rtl":"ltr",slots:{root:I},slotProps:C??u,...O,ref:n})}),YV=xi(b.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 QV(e){return st("MuiChip",e)}const Wt=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"]),KV=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:a,onDelete:s,clickable:l,variant:u}=e,d={root:["root",u,n&&"disabled",`size${Ne(r)}`,`color${Ne(o)}`,l&&"clickable",l&&`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 lt(d,QV,t)},XV=we("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:a,onDelete:s,size:l,variant:u}=n;return[{[`& .${Wt.avatar}`]:t.avatar},{[`& .${Wt.avatar}`]:t[`avatar${Ne(l)}`]},{[`& .${Wt.avatar}`]:t[`avatarColor${Ne(r)}`]},{[`& .${Wt.icon}`]:t.icon},{[`& .${Wt.icon}`]:t[`icon${Ne(l)}`]},{[`& .${Wt.icon}`]:t[`iconColor${Ne(o)}`]},{[`& .${Wt.deleteIcon}`]:t.deleteIcon},{[`& .${Wt.deleteIcon}`]:t[`deleteIcon${Ne(l)}`]},{[`& .${Wt.deleteIcon}`]:t[`deleteIconColor${Ne(r)}`]},{[`& .${Wt.deleteIcon}`]:t[`deleteIcon${Ne(u)}Color${Ne(r)}`]},t.root,t[`size${Ne(l)}`],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)}`]]}})(Ct(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Wt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Wt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Wt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Wt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Wt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Wt.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Wt.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,[`& .${Wt.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Wt.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,[`& .${Wt.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:{[`& .${Wt.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Wt.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Wt.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:{[`&.${Wt.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)},[`&.${Wt.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, &.${Wt.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]}`,[`&.${Wt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Wt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Wt.avatar}`]:{marginLeft:4},[`& .${Wt.avatarSmall}`]:{marginLeft:2},[`& .${Wt.icon}`]:{marginLeft:4},[`& .${Wt.iconSmall}`]:{marginLeft:2},[`& .${Wt.deleteIcon}`]:{marginRight:5},[`& .${Wt.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)}`,[`&.${Wt.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)},[`&.${Wt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Dt(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${Wt.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}}}}))]}})),ZV=we("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 wD(e){return e.key==="Backspace"||e.key==="Delete"}const Kl=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiChip"}),{avatar:o,className:a,clickable:s,color:l="default",component:u,deleteIcon:d,disabled:p=!1,icon:h,label:g,onClick:y,onDelete:v,onKeyDown:T,onKeyUp:_,size:x="medium",variant:D="filled",tabIndex:C,skipFocusWhenDisabled:R=!1,slots:I={},slotProps:O={},...F}=r,H=w.useRef(null),U=rr(H,n),S=oe=>{oe.stopPropagation(),v&&v(oe)},M=oe=>{oe.currentTarget===oe.target&&wD(oe)&&oe.preventDefault(),T&&T(oe)},$=oe=>{oe.currentTarget===oe.target&&v&&wD(oe)&&v(oe),_&&_(oe)},z=s!==!1&&y?!0:s,q=z||v?gi:u||"div",Y={...r,component:q,disabled:p,size:x,color:l,iconColor:w.isValidElement(h)&&h.props.color||l,onDelete:!!v,clickable:z,variant:D},B=KV(Y),K=q===gi?{component:u||"div",focusVisibleClassName:B.focusVisible,...v&&{disableRipple:!0}}:{};let ae=null;v&&(ae=d&&w.isValidElement(d)?w.cloneElement(d,{className:We(d.props.className,B.deleteIcon),onClick:S}):b.jsx(YV,{className:B.deleteIcon,onClick:S}));let ne=null;o&&w.isValidElement(o)&&(ne=w.cloneElement(o,{className:We(B.avatar,o.props.className)}));let N=null;h&&w.isValidElement(h)&&(N=w.cloneElement(h,{className:We(B.icon,h.props.className)}));const Q={slots:I,slotProps:O},[X,P]=Pt("root",{elementType:XV,externalForwardedProps:{...Q,...F},ownerState:Y,shouldForwardComponentProp:!0,ref:U,className:We(B.root,a),additionalProps:{disabled:z&&p?!0:void 0,tabIndex:R&&p?-1:C,...K},getSlotProps:oe=>({...oe,onClick:ve=>{oe.onClick?.(ve),y?.(ve)},onKeyDown:ve=>{oe.onKeyDown?.(ve),M?.(ve)},onKeyUp:ve=>{oe.onKeyUp?.(ve),$?.(ve)}})}),[re,ce]=Pt("label",{elementType:ZV,externalForwardedProps:Q,ownerState:Y,className:B.label});return b.jsxs(X,{as:q,...P,children:[ne||N,b.jsx(re,{...ce,children:g}),ae]})});function fg(e){return parseInt(e,10)||0}const JV={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function eG(e){for(const t in e)return!1;return!0}function DD(e){return eG(e)||e.outerHeightStyle===0&&!e.overflowing}const tG=w.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:a=1,style:s,value:l,...u}=t,{current:d}=w.useRef(l!=null),p=w.useRef(null),h=rr(n,p),g=w.useRef(null),y=w.useRef(null),v=w.useCallback(()=>{const C=p.current,R=y.current;if(!C||!R)return;const O=Fa(C).getComputedStyle(C);if(O.width==="0px")return{outerHeightStyle:0,overflowing:!1};R.style.width=O.width,R.value=C.value||t.placeholder||"x",R.value.slice(-1)===`
|
|
212
|
+
`&&(R.value+=" ");const F=O.boxSizing,H=fg(O.paddingBottom)+fg(O.paddingTop),U=fg(O.borderBottomWidth)+fg(O.borderTopWidth),S=R.scrollHeight;R.value="x";const M=R.scrollHeight;let $=S;a&&($=Math.max(Number(a)*M,$)),o&&($=Math.min(Number(o)*M,$)),$=Math.max($,M);const z=$+(F==="border-box"?H+U:0),q=Math.abs($-S)<=1;return{outerHeightStyle:z,overflowing:q}},[o,a,t.placeholder]),T=va(()=>{const C=p.current,R=v();if(!C||!R||DD(R))return!1;const I=R.outerHeightStyle;return g.current!=null&&g.current!==I}),_=w.useCallback(()=>{const C=p.current,R=v();if(!C||!R||DD(R))return;const I=R.outerHeightStyle;g.current!==I&&(g.current=I,C.style.height=`${I}px`),C.style.overflow=R.overflowing?"hidden":""},[v]),x=w.useRef(-1);_o(()=>{const C=w0(_),R=p?.current;if(!R)return;const I=Fa(R);I.addEventListener("resize",C);let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(()=>{T()&&(O.unobserve(R),cancelAnimationFrame(x.current),_(),x.current=requestAnimationFrame(()=>{O.observe(R)}))}),O.observe(R)),()=>{C.clear(),cancelAnimationFrame(x.current),I.removeEventListener("resize",C),O&&O.disconnect()}},[v,_,T]),_o(()=>{_()});const D=C=>{d||_();const R=C.target,I=R.value.length,O=R.value.endsWith(`
|
|
213
|
+
`),F=R.selectionStart===I;O&&F&&R.setSelectionRange(I,I),r&&r(C)};return b.jsxs(w.Fragment,{children:[b.jsx("textarea",{value:l,onChange:D,ref:h,rows:a,style:s,...u}),b.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:y,tabIndex:-1,style:{...JV.shadow,...s,paddingTop:0,paddingBottom:0}})]})});function $p(e){return typeof e=="string"}function bc({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 RS=w.createContext(void 0);function al(){return w.useContext(RS)}function RD(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function _y(e,t=!1){return e&&(RD(e.value)&&e.value!==""||t&&RD(e.defaultValue)&&e.defaultValue!=="")}function nG(e){return e.startAdornment}function rG(e){return st("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 ID;const I0=(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]},O0=(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]},oG=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:s,formControl:l,fullWidth:u,hiddenLabel:d,multiline:p,readOnly:h,size:g,startAdornment:y,type:v}=e,T={root:["root",`color${Ne(n)}`,r&&"disabled",o&&"error",u&&"fullWidth",s&&"focused",l&&"formControl",g&&g!=="medium"&&`size${Ne(g)}`,p&&"multiline",y&&"adornedStart",a&&"adornedEnd",d&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",v==="search"&&"inputTypeSearch",p&&"inputMultiline",g==="small"&&"inputSizeSmall",d&&"inputHiddenLabel",y&&"inputAdornedStart",a&&"inputAdornedEnd",h&&"readOnly"]};return lt(T,rG,t)},N0=we("div",{name:"MuiInputBase",slot:"Root",overridesResolver:I0})(Ct(({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%"}}]}))),P0=we("input",{name:"MuiInputBase",slot:"Input",overridesResolver:O0})(Ct(({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"}}]}})),OD=vS({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),IS=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:s,className:l,color:u,components:d={},componentsProps:p={},defaultValue:h,disabled:g,disableInjectingGlobalStyles:y,endAdornment:v,error:T,fullWidth:_=!1,id:x,inputComponent:D="input",inputProps:C={},inputRef:R,margin:I,maxRows:O,minRows:F,multiline:H=!1,name:U,onBlur:S,onChange:M,onClick:$,onFocus:z,onKeyDown:q,onKeyUp:Y,placeholder:B,readOnly:K,renderSuffix:ae,rows:ne,size:N,slotProps:Q={},slots:X={},startAdornment:P,type:re="text",value:ce,...oe}=r,ve=C.value!=null?C.value:ce,{current:be}=w.useRef(ve!=null),qe=w.useRef(),Me=w.useCallback(Ze=>{},[]),Oe=rr(qe,R,C.ref,Me),[Ke,at]=w.useState(!1),Re=al(),yt=bc({props:r,muiFormControl:Re,states:["color","disabled","error","hiddenLabel","size","required","filled"]});yt.focused=Re?Re.focused:Ke,w.useEffect(()=>{!Re&&g&&Ke&&(at(!1),S&&S())},[Re,g,Ke,S]);const _t=Re&&Re.onFilled,He=Re&&Re.onEmpty,mt=w.useCallback(Ze=>{_y(Ze)?_t&&_t():He&&He()},[_t,He]);_o(()=>{be&&mt({value:ve})},[ve,mt,be]);const ct=Ze=>{z&&z(Ze),C.onFocus&&C.onFocus(Ze),Re&&Re.onFocus?Re.onFocus(Ze):at(!0)},ft=Ze=>{S&&S(Ze),C.onBlur&&C.onBlur(Ze),Re&&Re.onBlur?Re.onBlur(Ze):at(!1)},ze=(Ze,...Zt)=>{if(!be){const Vt=Ze.target||qe.current;if(Vt==null)throw new Error(rs(1));mt({value:Vt.value})}C.onChange&&C.onChange(Ze,...Zt),M&&M(Ze,...Zt)};w.useEffect(()=>{mt(qe.current)},[]);const Le=Ze=>{qe.current&&Ze.currentTarget===Ze.target&&qe.current.focus(),$&&$(Ze)};let Xt=D,Bt=C;H&&Xt==="input"&&(ne?Bt={type:void 0,minRows:ne,maxRows:ne,...Bt}:Bt={type:void 0,maxRows:O,minRows:F,...Bt},Xt=tG);const At=Ze=>{mt(Ze.animationName==="mui-auto-fill-cancel"?qe.current:{value:"x"})};w.useEffect(()=>{Re&&Re.setAdornedStart(!!P)},[Re,P]);const de={...r,color:yt.color||"primary",disabled:yt.disabled,endAdornment:v,error:yt.error,focused:yt.focused,formControl:Re,fullWidth:_,hiddenLabel:yt.hiddenLabel,multiline:H,size:yt.size,startAdornment:P,type:re},ye=oG(de),$e=X.root||d.Root||N0,Xe=Q.root||p.root||{},Et=X.input||d.Input||P0;return Bt={...Bt,...Q.input??p.input},b.jsxs(w.Fragment,{children:[!y&&typeof OD=="function"&&(ID||(ID=b.jsx(OD,{}))),b.jsxs($e,{...Xe,ref:n,onClick:Le,...oe,...!$p($e)&&{ownerState:{...de,...Xe.ownerState}},className:We(ye.root,Xe.className,l,K&&"MuiInputBase-readOnly"),children:[P,b.jsx(RS.Provider,{value:null,children:b.jsx(Et,{"aria-invalid":yt.error,"aria-describedby":o,autoComplete:a,autoFocus:s,defaultValue:h,disabled:yt.disabled,id:x,onAnimationStart:At,name:U,placeholder:B,readOnly:K,required:yt.required,rows:ne,value:ve,onKeyDown:q,onKeyUp:Y,type:re,...Bt,...!$p(Et)&&{as:Xt,ownerState:{...de,...Bt.ownerState}},ref:Oe,className:We(ye.input,Bt.className,K&&"MuiInputBase-readOnly"),onBlur:ft,onChange:ze,onFocus:ct})}),v,ae?ae({...yt,startAdornment:P}):null]})]})});function aG(e){return st("MuiInput",e)}const Df={...Qu,...ut("MuiInput",["root","underline","input"])};function iG(e){return st("MuiOutlinedInput",e)}const Xa={...Qu,...ut("MuiOutlinedInput",["root","notchedOutline","input"])};function sG(e){return st("MuiFilledInput",e)}const kl={...Qu,...ut("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},lG=xi(b.jsx("path",{d:"M7 10l5 5 5-5z"})),cG={entering:{opacity:1},entered:{opacity:1}},Dx=w.forwardRef(function(t,n){const r=rl(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,easing:u,in:d,onEnter:p,onEntered:h,onEntering:g,onExit:y,onExited:v,onExiting:T,style:_,timeout:x=o,TransitionComponent:D=Ha,...C}=t,R=w.useRef(null),I=rr(R,fd(l),n),O=q=>Y=>{if(q){const B=R.current;Y===void 0?q(B):q(B,Y)}},F=O(g),H=O((q,Y)=>{o5(q);const B=Vu({style:_,timeout:x,easing:u},{mode:"enter"});q.style.webkitTransition=r.transitions.create("opacity",B),q.style.transition=r.transitions.create("opacity",B),p&&p(q,Y)}),U=O(h),S=O(T),M=O(q=>{const Y=Vu({style:_,timeout:x,easing:u},{mode:"exit"});q.style.webkitTransition=r.transitions.create("opacity",Y),q.style.transition=r.transitions.create("opacity",Y),y&&y(q)}),$=O(v),z=q=>{a&&a(R.current,q)};return b.jsx(D,{appear:s,in:d,nodeRef:R,onEnter:H,onEntered:U,onEntering:F,onExit:M,onExited:$,onExiting:S,addEndListener:z,timeout:x,...C,children:(q,{ownerState:Y,...B})=>w.cloneElement(l,{style:{opacity:0,visibility:q==="exited"&&!d?"hidden":void 0,...cG[q],..._,...l.props.style},ref:I,...B})})});function uG(e){return st("MuiBackdrop",e)}ut("MuiBackdrop",["root","invisible"]);const dG=e=>{const{classes:t,invisible:n}=e;return lt({root:["root",n&&"invisible"]},uG,t)},fG=we("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"}}]}),E5=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiBackdrop"}),{children:o,className:a,component:s="div",invisible:l=!1,open:u,components:d={},componentsProps:p={},slotProps:h={},slots:g={},TransitionComponent:y,transitionDuration:v,...T}=r,_={...r,component:s,invisible:l},x=dG(_),D={transition:y,root:d.Root,...g},C={...p,...h},R={component:s,slots:D,slotProps:C},[I,O]=Pt("root",{elementType:fG,externalForwardedProps:R,className:We(x.root,a),ownerState:_}),[F,H]=Pt("transition",{elementType:Dx,externalForwardedProps:R,ownerState:_});return b.jsx(F,{in:u,timeout:v,...T,...H,children:b.jsx(I,{"aria-hidden":!0,...O,classes:x,ref:n,children:o})})}),pG=ut("MuiBox",["root"]),hG=k0(),Rt=P3({themeId:pi,defaultTheme:hG,defaultClassName:pG.root,generateClassName:cS.generate}),mG=xi(b.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"})),gG=we(gi,{name:"MuiBreadcrumbCollapsed"})(Ct(({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:yx(e.palette.grey[200],.12)}:{backgroundColor:yx(e.palette.grey[600],.12)}}}))),yG=we(mG)({width:24,height:16});function bG(e){const{slots:t={},slotProps:n={},...r}=e,o=e;return b.jsx("li",{children:b.jsx(gG,{focusRipple:!0,...r,ownerState:o,children:b.jsx(yG,{as:t.CollapsedIcon,ownerState:o,...n.collapsedIcon})})})}function vG(e){return st("MuiBreadcrumbs",e)}const EG=ut("MuiBreadcrumbs",["root","ol","li","separator"]),xG=e=>{const{classes:t}=e;return lt({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},vG,t)},TG=we(Ue,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${EG.li}`]:t.li},t.root]})({}),SG=we("ol",{name:"MuiBreadcrumbs",slot:"Ol"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),CG=we("li",{name:"MuiBreadcrumbs",slot:"Separator"})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function _G(e,t,n,r){return e.reduce((o,a,s)=>(s<e.length-1?o=o.concat(a,b.jsx(CG,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${s}`)):o.push(a),o),[])}const AG=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiBreadcrumbs"}),{children:o,className:a,component:s="nav",slots:l={},slotProps:u={},expandText:d="Show path",itemsAfterCollapse:p=1,itemsBeforeCollapse:h=1,maxItems:g=8,separator:y="/",...v}=r,[T,_]=w.useState(!1),x={...r,component:s,expanded:T,expandText:d,itemsAfterCollapse:p,itemsBeforeCollapse:h,maxItems:g,separator:y},D=xG(x),C=ac({elementType:l.CollapsedIcon,externalSlotProps:u.collapsedIcon,ownerState:x}),R=w.useRef(null),I=F=>{const H=()=>{_(!0);const U=R.current.querySelector("a[href],button,[tabindex]");U&&U.focus()};return h+p>=F.length?F:[...F.slice(0,h),b.jsx(bG,{"aria-label":d,slots:{CollapsedIcon:l.CollapsedIcon},slotProps:{collapsedIcon:C},onClick:H},"ellipsis"),...F.slice(F.length-p,F.length)]},O=w.Children.toArray(o).filter(F=>w.isValidElement(F)).map((F,H)=>b.jsx("li",{className:D.li,children:F},`child-${H}`));return b.jsx(TG,{ref:n,component:s,color:"textSecondary",className:We(D.root,a),ownerState:x,...v,children:b.jsx(SG,{className:D.ol,ref:R,ownerState:x,children:_G(T||g&&O.length<=g?O:I(O),D.separator,y,x)})})});function kG(e){return st("MuiButton",e)}const wl=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"]),wG=w.createContext({}),DG=w.createContext(void 0),RG=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,loading:s,loadingPosition:l,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(l)}`],startIcon:["icon","startIcon",`iconSize${Ne(o)}`],endIcon:["icon","endIcon",`iconSize${Ne(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},p=lt(d,kG,u);return{...u,...p}},x5=[{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}}}],IG=we(gi,{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]}})(Ct(({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"},[`&.${wl.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]},[`&.${wl.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${wl.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)",[`&.${wl.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"},[`&.${wl.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${wl.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}),[`&.${wl.loading}`]:{color:"transparent"}}}]}})),OG=we("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}},...x5]})),NG=we("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}},...x5]})),PG=we("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}}]})),ND=we("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Ur=w.forwardRef(function(t,n){const r=w.useContext(wG),o=w.useContext(DG),a=jp(r,t),s=dt({props:a,name:"MuiButton"}),{children:l,color:u="primary",component:d="button",className:p,disabled:h=!1,disableElevation:g=!1,disableFocusRipple:y=!1,endIcon:v,focusVisibleClassName:T,fullWidth:_=!1,id:x,loading:D=null,loadingIndicator:C,loadingPosition:R="center",size:I="medium",startIcon:O,type:F,variant:H="text",...U}=s,S=yc(x),M=C??b.jsx(TS,{"aria-labelledby":S,color:"inherit",size:16}),$={...s,color:u,component:d,disabled:h,disableElevation:g,disableFocusRipple:y,fullWidth:_,loading:D,loadingIndicator:M,loadingPosition:R,size:I,type:F,variant:H},z=RG($),q=(O||D&&R==="start")&&b.jsx(OG,{className:z.startIcon,ownerState:$,children:O||b.jsx(ND,{className:z.loadingIconPlaceholder,ownerState:$})}),Y=(v||D&&R==="end")&&b.jsx(NG,{className:z.endIcon,ownerState:$,children:v||b.jsx(ND,{className:z.loadingIconPlaceholder,ownerState:$})}),B=o||"",K=typeof D=="boolean"?b.jsx("span",{className:z.loadingWrapper,style:{display:"contents"},children:D&&b.jsx(PG,{className:z.loadingIndicator,ownerState:$,children:M})}):null;return b.jsxs(IG,{ownerState:$,className:We(r.className,z.root,p,B),component:d,disabled:h||D,focusRipple:!y,focusVisibleClassName:We(z.focusVisible,T),ref:n,type:F,id:D?S:x,...U,classes:z,children:[q,R!=="end"&&K,l,R==="end"&&K,Y]})});function LG(e){return st("MuiCard",e)}ut("MuiCard",["root"]);const MG=e=>{const{classes:t}=e;return lt({root:["root"]},LG,t)},FG=we(es,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),Au=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiCard"}),{className:o,raised:a=!1,...s}=r,l={...r,raised:a},u=MG(l);return b.jsx(FG,{className:We(u.root,o),elevation:a?8:void 0,ref:n,ownerState:l,...s})});function BG(e){return st("MuiCardActions",e)}ut("MuiCardActions",["root","spacing"]);const jG=e=>{const{classes:t,disableSpacing:n}=e;return lt({root:["root",!n&&"spacing"]},BG,t)},UG=we("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}}}]}),L0=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiCardActions"}),{disableSpacing:o=!1,className:a,...s}=r,l={...r,disableSpacing:o},u=jG(l);return b.jsx(UG,{className:We(u.root,a),ownerState:l,ref:n,...s})});function HG(e){return st("MuiCardContent",e)}ut("MuiCardContent",["root"]);const zG=e=>{const{classes:t}=e;return lt({root:["root"]},HG,t)},$G=we("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),ku=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiCardContent"}),{className:o,component:a="div",...s}=r,l={...r,component:a},u=zG(l);return b.jsx($G,{as:a,className:We(u.root,o),ownerState:l,ref:n,...s})});function VG(e){return st("MuiCardMedia",e)}ut("MuiCardMedia",["root","media","img"]);const GG=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return lt({root:["root",n&&"media",r&&"img"]},VG,t)},qG=we("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"}}]}),WG=["video","audio","picture","iframe","img"],YG=["picture","img"],QG=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiCardMedia"}),{children:o,className:a,component:s="div",image:l,src:u,style:d,...p}=r,h=WG.includes(s),g=!h&&l?{backgroundImage:`url("${l}")`,...d}:d,y={...r,component:s,isMediaComponent:h,isImageComponent:YG.includes(s)},v=GG(y);return b.jsx(qG,{className:We(v.root,a),as:s,role:!h&&l?"img":void 0,ref:n,style:g,ownerState:y,src:h?l||u:void 0,...p,children:o})});function KG(e){return st("PrivateSwitchBase",e)}ut("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const XG=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 lt(a,KG,t)},ZG=we(gi,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),JG=we("input",{name:"MuiSwitchBase",shouldForwardProp:co})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),eq=w.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:a,defaultChecked:s,disabled:l,disableFocusRipple:u=!1,edge:d=!1,icon:p,id:h,inputProps:g,inputRef:y,name:v,onBlur:T,onChange:_,onFocus:x,readOnly:D,required:C=!1,tabIndex:R,type:I,value:O,slots:F={},slotProps:H={},...U}=t,[S,M]=Ey({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),$=al(),z=ce=>{x&&x(ce),$&&$.onFocus&&$.onFocus(ce)},q=ce=>{T&&T(ce),$&&$.onBlur&&$.onBlur(ce)},Y=ce=>{if(ce.nativeEvent.defaultPrevented)return;const oe=ce.target.checked;M(oe),_&&_(ce,oe)};let B=l;$&&typeof B>"u"&&(B=$.disabled);const K=I==="checkbox"||I==="radio",ae={...t,checked:S,disabled:B,disableFocusRipple:u,edge:d},ne=XG(ae),N={slots:F,slotProps:{input:g,...H}},[Q,X]=Pt("root",{ref:n,elementType:ZG,className:ne.root,shouldForwardComponentProp:!0,externalForwardedProps:{...N,component:"span",...U},getSlotProps:ce=>({...ce,onFocus:oe=>{ce.onFocus?.(oe),z(oe)},onBlur:oe=>{ce.onBlur?.(oe),q(oe)}}),ownerState:ae,additionalProps:{centerRipple:!0,focusRipple:!u,disabled:B,role:void 0,tabIndex:null}}),[P,re]=Pt("input",{ref:y,elementType:JG,className:ne.input,externalForwardedProps:N,getSlotProps:ce=>({...ce,onChange:oe=>{ce.onChange?.(oe),Y(oe)}}),ownerState:ae,additionalProps:{autoFocus:r,checked:o,defaultChecked:s,disabled:B,id:K?h:void 0,name:v,readOnly:D,required:C,tabIndex:R,type:I,...I==="checkbox"&&O===void 0?{}:{value:O}}});return b.jsxs(Q,{...X,children:[b.jsx(P,{...re}),S?a:p]})}),OS=CH({createStyledComponent:we("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"})}),Rx=typeof vS({})=="function",tq=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),nq=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}}),T5=(e,t=!1)=>{const n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([a,s])=>{const l=e.getColorSchemeSelector(a);l.startsWith("@")?n[l]={":root":{colorScheme:s.palette?.mode}}:n[l.replace(/\s*&/,"")]={colorScheme:s.palette?.mode}});let r={html:tq(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...nq(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const o=e.components?.MuiCssBaseline?.styleOverrides;return o&&(r=[r,o]),r},qg="mui-ecs",rq=e=>{const t=T5(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${qg})`]={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(.${qg}))`]:{colorScheme:o.palette?.mode}}:n[a.replace(/\s*&/,"")]={[`&:not(:has(.${qg}))`]:{colorScheme:o.palette?.mode}}}),t},oq=vS(Rx?({theme:e,enableColorScheme:t})=>T5(e,t):({theme:e})=>rq(e));function aq(e){const t=dt({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return b.jsxs(w.Fragment,{children:[Rx&&b.jsx(oq,{enableColorScheme:r}),!Rx&&!r&&b.jsx("span",{className:qg,style:{display:"none"}}),n]})}function S5(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function iq(e){const t=Ao(e);return t.body===e?Fa(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function fp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function PD(e){return parseInt(Fa(e).getComputedStyle(e).paddingRight,10)||0}function sq(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 LD(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,s=>{const l=!a.includes(s),u=!sq(s);l&&u&&fp(s,o)})}function J1(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function lq(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(iq(r)){const s=S5(Fa(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${PD(r)+s}px`;const l=Ao(r).querySelectorAll(".mui-fixed");[].forEach.call(l,u=>{n.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${PD(u)+s}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=Ao(r).body;else{const s=r.parentElement,l=Fa(r);a=s?.nodeName==="HTML"&&l.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:l})=>{a?s.style.setProperty(l,a):s.style.removeProperty(l)})}}function cq(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class uq{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&&fp(t.modalRef,!1);const o=cq(n);LD(n,t.mount,t.modalRef,o,!0);const a=J1(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=J1(this.containers,a=>a.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=lq(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=J1(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&&fp(t.modalRef,n),LD(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&&fp(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const dq=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function fq(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 pq(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 hq(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||pq(e))}function mq(e){const t=[],n=[];return Array.from(e.querySelectorAll(dq)).forEach((r,o)=>{const a=fq(r);a===-1||!hq(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 gq(){return!0}function yq(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=mq,isEnabled:s=gq,open:l}=e,u=w.useRef(!1),d=w.useRef(null),p=w.useRef(null),h=w.useRef(null),g=w.useRef(null),y=w.useRef(!1),v=w.useRef(null),T=rr(fd(t),v),_=w.useRef(null);w.useEffect(()=>{!l||!v.current||(y.current=!n)},[n,l]),w.useEffect(()=>{if(!l||!v.current)return;const C=Ao(v.current);return v.current.contains(C.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex","-1"),y.current&&v.current.focus()),()=>{o||(h.current&&h.current.focus&&(u.current=!0,h.current.focus()),h.current=null)}},[l]),w.useEffect(()=>{if(!l||!v.current)return;const C=Ao(v.current),R=F=>{_.current=F,!(r||!s()||F.key!=="Tab")&&C.activeElement===v.current&&F.shiftKey&&(u.current=!0,p.current&&p.current.focus())},I=()=>{const F=v.current;if(F===null)return;if(!C.hasFocus()||!s()||u.current){u.current=!1;return}if(F.contains(C.activeElement)||r&&C.activeElement!==d.current&&C.activeElement!==p.current)return;if(C.activeElement!==g.current)g.current=null;else if(g.current!==null)return;if(!y.current)return;let H=[];if((C.activeElement===d.current||C.activeElement===p.current)&&(H=a(v.current)),H.length>0){const U=!!(_.current?.shiftKey&&_.current?.key==="Tab"),S=H[0],M=H[H.length-1];typeof S!="string"&&typeof M!="string"&&(U?M.focus():S.focus())}else F.focus()};C.addEventListener("focusin",I),C.addEventListener("keydown",R,!0);const O=setInterval(()=>{C.activeElement&&C.activeElement.tagName==="BODY"&&I()},50);return()=>{clearInterval(O),C.removeEventListener("focusin",I),C.removeEventListener("keydown",R,!0)}},[n,r,o,s,l,a]);const x=C=>{h.current===null&&(h.current=C.relatedTarget),y.current=!0,g.current=C.target;const R=t.props.onFocus;R&&R(C)},D=C=>{h.current===null&&(h.current=C.relatedTarget),y.current=!0};return b.jsxs(w.Fragment,{children:[b.jsx("div",{tabIndex:l?0:-1,onFocus:D,ref:d,"data-testid":"sentinelStart"}),w.cloneElement(t,{ref:T,onFocus:x}),b.jsx("div",{tabIndex:l?0:-1,onFocus:D,ref:p,"data-testid":"sentinelEnd"})]})}function bq(e){return typeof e=="function"?e():e}function vq(e){return e?e.props.hasOwnProperty("in"):!1}const MD=()=>{},pg=new uq;function Eq(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:d,rootRef:p}=e,h=w.useRef({}),g=w.useRef(null),y=w.useRef(null),v=rr(y,p),[T,_]=w.useState(!d),x=vq(l);let D=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(D=!1);const C=()=>Ao(g.current),R=()=>(h.current.modalRef=y.current,h.current.mount=g.current,h.current),I=()=>{pg.mount(R(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},O=va(()=>{const Y=bq(t)||C().body;pg.add(R(),Y),y.current&&I()}),F=()=>pg.isTopModal(R()),H=va(Y=>{g.current=Y,Y&&(d&&F()?I():y.current&&fp(y.current,D))}),U=w.useCallback(()=>{pg.remove(R(),D)},[D]);w.useEffect(()=>()=>{U()},[U]),w.useEffect(()=>{d?O():(!x||!o)&&U()},[d,U,x,o,O]);const S=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=s5(e);delete B.onTransitionEnter,delete B.onTransitionExited;const K={...B,...Y};return{role:"presentation",...K,onKeyDown:S(K),ref:v}},getBackdropProps:(Y={})=>{const B=Y;return{"aria-hidden":!0,...B,onClick:M(B),open:d}},getTransitionProps:()=>{const Y=()=>{_(!1),a&&a()},B=()=>{_(!0),s&&s(),o&&U()};return{onEnter:uD(Y,l?.props.onEnter??MD),onExited:uD(B,l?.props.onExited??MD)}},rootRef:v,portalRef:H,isTopModal:F,exited:T,hasTransition:x}}function xq(e){return st("MuiModal",e)}ut("MuiModal",["root","hidden","backdrop"]);const Tq=e=>{const{open:t,exited:n,classes:r}=e;return lt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},xq,r)},Sq=we("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Ct(({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"}}]}))),Cq=we(E5,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),C5=w.forwardRef(function(t,n){const r=dt({name:"MuiModal",props:t}),{BackdropComponent:o=Cq,BackdropProps:a,classes:s,className:l,closeAfterTransition:u=!1,children:d,container:p,component:h,components:g={},componentsProps:y={},disableAutoFocus:v=!1,disableEnforceFocus:T=!1,disableEscapeKeyDown:_=!1,disablePortal:x=!1,disableRestoreFocus:D=!1,disableScrollLock:C=!1,hideBackdrop:R=!1,keepMounted:I=!1,onClose:O,onTransitionEnter:F,onTransitionExited:H,open:U,slotProps:S={},slots:M={},theme:$,...z}=r,q={...r,closeAfterTransition:u,disableAutoFocus:v,disableEnforceFocus:T,disableEscapeKeyDown:_,disablePortal:x,disableRestoreFocus:D,disableScrollLock:C,hideBackdrop:R,keepMounted:I},{getRootProps:Y,getBackdropProps:B,getTransitionProps:K,portalRef:ae,isTopModal:ne,exited:N,hasTransition:Q}=Eq({...q,rootRef:n}),X={...q,exited:N},P=Tq(X),re={};if(d.props.tabIndex===void 0&&(re.tabIndex="-1"),Q){const{onEnter:Me,onExited:Oe}=K();re.onEnter=Me,re.onExited=Oe}const ce={slots:{root:g.Root,backdrop:g.Backdrop,...M},slotProps:{...y,...S}},[oe,ve]=Pt("root",{ref:n,elementType:Sq,externalForwardedProps:{...ce,...z,component:h},getSlotProps:Y,ownerState:X,className:We(l,P?.root,!X.open&&X.exited&&P?.hidden)}),[be,qe]=Pt("backdrop",{ref:a?.ref,elementType:o,externalForwardedProps:ce,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:Me=>B({...Me,onClick:Oe=>{Me?.onClick&&Me.onClick(Oe)}}),className:We(a?.className,P?.backdrop),ownerState:X});return!I&&!U&&(!Q||N)?null:b.jsx(b5,{ref:ae,container:p,disablePortal:x,children:b.jsxs(oe,{...ve,children:[!R&&o?b.jsx(be,{...qe}):null,b.jsx(yq,{disableEnforceFocus:T,disableAutoFocus:v,disableRestoreFocus:D,isEnabled:ne,open:U,children:w.cloneElement(d,re)})]})})});function _q(e){return st("MuiDialog",e)}const eE=ut("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),_5=w.createContext({}),Aq=we(E5,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),kq=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 lt(s,_q,t)},wq=we(C5,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),Dq=we("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"}}}]}),Rq=we(es,{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]}})(Ct(({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)`,[`&.${eE.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${eE.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${eE.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Ku=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiDialog"}),o=rl(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":l,"aria-modal":u=!0,BackdropComponent:d,BackdropProps:p,children:h,className:g,disableEscapeKeyDown:y=!1,fullScreen:v=!1,fullWidth:T=!1,maxWidth:_="sm",onClick:x,onClose:D,open:C,PaperComponent:R=es,PaperProps:I={},scroll:O="paper",slots:F={},slotProps:H={},TransitionComponent:U=Dx,transitionDuration:S=a,TransitionProps:M,...$}=r,z={...r,disableEscapeKeyDown:y,fullScreen:v,fullWidth:T,maxWidth:_,scroll:O},q=kq(z),Y=w.useRef(),B=at=>{Y.current=at.target===at.currentTarget},K=at=>{x&&x(at),Y.current&&(Y.current=null,D&&D(at,"backdropClick"))},ae=yc(l),ne=w.useMemo(()=>({titleId:ae}),[ae]),N={transition:U,...F},Q={transition:M,paper:I,backdrop:p,...H},X={slots:N,slotProps:Q},[P,re]=Pt("root",{elementType:wq,shouldForwardComponentProp:!0,externalForwardedProps:X,ownerState:z,className:We(q.root,g),ref:n}),[ce,oe]=Pt("backdrop",{elementType:Aq,shouldForwardComponentProp:!0,externalForwardedProps:X,ownerState:z}),[ve,be]=Pt("paper",{elementType:Rq,shouldForwardComponentProp:!0,externalForwardedProps:X,ownerState:z,className:We(q.paper,I.className)}),[qe,Me]=Pt("container",{elementType:Dq,externalForwardedProps:X,ownerState:z,className:q.container}),[Oe,Ke]=Pt("transition",{elementType:Dx,externalForwardedProps:X,ownerState:z,additionalProps:{appear:!0,in:C,timeout:S,role:"presentation"}});return b.jsx(P,{closeAfterTransition:!0,slots:{backdrop:ce},slotProps:{backdrop:{transitionDuration:S,as:d,...oe}},disableEscapeKeyDown:y,onClose:D,open:C,onClick:K,...re,...$,children:b.jsx(Oe,{...Ke,children:b.jsx(qe,{onMouseDown:B,...Me,children:b.jsx(ve,{as:R,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":ae,"aria-modal":u,...be,children:b.jsx(_5.Provider,{value:ne,children:h})})})})})});function Iq(e){return st("MuiDialogActions",e)}ut("MuiDialogActions",["root","spacing"]);const Oq=e=>{const{classes:t,disableSpacing:n}=e;return lt({root:["root",!n&&"spacing"]},Iq,t)},Nq=we("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}}}]}),A5=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1,...s}=r,l={...r,disableSpacing:a},u=Oq(l);return b.jsx(Nq,{className:We(u.root,o),ownerState:l,ref:n,...s})});function Pq(e){return st("MuiDialogContent",e)}ut("MuiDialogContent",["root","dividers"]);function Lq(e){return st("MuiDialogTitle",e)}const Mq=ut("MuiDialogTitle",["root"]),Fq=e=>{const{classes:t,dividers:n}=e;return lt({root:["root",n&&"dividers"]},Pq,t)},Bq=we("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Ct(({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:{[`.${Mq.root} + &`]:{paddingTop:0}}}]}))),Xu=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1,...s}=r,l={...r,dividers:a},u=Fq(l);return b.jsx(Bq,{className:We(u.root,o),ownerState:l,ref:n,...s})});function jq(e){return st("MuiDialogContentText",e)}ut("MuiDialogContentText",["root"]);const Uq=e=>{const{classes:t}=e,r=lt({root:["root"]},jq,t);return{...t,...r}},Hq=we(Ue,{shouldForwardProp:e=>co(e)||e==="classes",name:"MuiDialogContentText",slot:"Root"})({}),zq=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiDialogContentText"}),{children:o,className:a,...s}=r,l=Uq(s);return b.jsx(Hq,{component:"p",variant:"body1",color:"textSecondary",ref:n,ownerState:s,className:We(l.root,a),...r,classes:l})}),$q=e=>{const{classes:t}=e;return lt({root:["root"]},Lq,t)},Vq=we(Ue,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),Zu=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiDialogTitle"}),{className:o,id:a,...s}=r,l=r,u=$q(l),{titleId:d=a}=w.useContext(_5);return b.jsx(Vq,{component:"h2",className:We(u.root,o),ownerState:l,ref:n,variant:"h6",id:a??d,...s})});function Gq(e){return st("MuiDivider",e)}const FD=ut("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),qq=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:s,textAlign:l,variant:u}=e;return lt({root:["root",t&&"absolute",u,a&&"light",s==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",l==="right"&&s!=="vertical"&&"textAlignRight",l==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},Gq,r)},Wq=we("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]}})(Ct(({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%"}}}]}))),Yq=we("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Ct(({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)`}}]}))),vr=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiDivider"}),{absolute:o=!1,children:a,className:s,orientation:l="horizontal",component:u=a||l==="vertical"?"div":"hr",flexItem:d=!1,light:p=!1,role:h=u!=="hr"?"separator":void 0,textAlign:g="center",variant:y="fullWidth",...v}=r,T={...r,absolute:o,component:u,flexItem:d,light:p,orientation:l,role:h,textAlign:g,variant:y},_=qq(T);return b.jsx(Wq,{as:u,className:We(_.root,s),role:h,ref:n,ownerState:T,"aria-orientation":h==="separator"&&(u!=="hr"||l==="vertical")?l:void 0,...v,children:a?b.jsx(Yq,{className:_.wrapper,ownerState:T,children:a}):null})});vr&&(vr.muiSkipListHighlight=!0);const Qq=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:a,hiddenLabel:s,multiline:l}=e,u={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",a==="small"&&`size${Ne(a)}`,s&&"hiddenLabel",l&&"multiline"],input:["input"]},d=lt(u,sG,t);return{...t,...d}},Kq=we(N0,{shouldForwardProp:e=>co(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...I0(e,t),!n.disableUnderline&&t.underline]}})(Ct(({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}},[`&.${kl.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${kl.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"},[`&.${kl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${kl.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(.${kl.disabled}, .${kl.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${kl.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:l})=>s.multiline&&l==="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}}]}})),Xq=we(P0,{name:"MuiFilledInput",slot:"Input",overridesResolver:O0})(Ct(({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}}]}))),NS=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:a={},componentsProps:s,fullWidth:l=!1,hiddenLabel:u,inputComponent:d="input",multiline:p=!1,slotProps:h,slots:g={},type:y="text",...v}=r,T={...r,disableUnderline:o,fullWidth:l,inputComponent:d,multiline:p,type:y},_=Qq(r),x={root:{ownerState:T},input:{ownerState:T}},D=h??s?Nr(x,h??s):x,C=g.root??a.Root??Kq,R=g.input??a.Input??Xq;return b.jsx(IS,{slots:{root:C,input:R},slotProps:D,fullWidth:l,inputComponent:d,multiline:p,ref:n,type:y,...v,classes:_})});NS.muiName="Input";function Zq(e){return st("MuiFormControl",e)}ut("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Jq=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Ne(n)}`,r&&"fullWidth"]};return lt(o,Zq,t)},eW=we("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%"}}]}),Ay=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiFormControl"}),{children:o,className:a,color:s="primary",component:l="div",disabled:u=!1,error:d=!1,focused:p,fullWidth:h=!1,hiddenLabel:g=!1,margin:y="none",required:v=!1,size:T="medium",variant:_="outlined",...x}=r,D={...r,color:s,component:l,disabled:u,error:d,fullWidth:h,hiddenLabel:g,margin:y,required:v,size:T,variant:_},C=Jq(D),[R,I]=w.useState(()=>{let Y=!1;return o&&w.Children.forEach(o,B=>{if(!cp(B,["Input","Select"]))return;const K=cp(B,["Select"])?B.props.input:B;K&&nG(K.props)&&(Y=!0)}),Y}),[O,F]=w.useState(()=>{let Y=!1;return o&&w.Children.forEach(o,B=>{cp(B,["Input","Select"])&&(_y(B.props,!0)||_y(B.props.inputProps,!0))&&(Y=!0)}),Y}),[H,U]=w.useState(!1);u&&H&&U(!1);const S=p!==void 0&&!u?p:H;let M;w.useRef(!1);const $=w.useCallback(()=>{F(!0)},[]),z=w.useCallback(()=>{F(!1)},[]),q=w.useMemo(()=>({adornedStart:R,setAdornedStart:I,color:s,disabled:u,error:d,filled:O,focused:S,fullWidth:h,hiddenLabel:g,size:T,onBlur:()=>{U(!1)},onFocus:()=>{U(!0)},onEmpty:z,onFilled:$,registerEffect:M,required:v,variant:_}),[R,s,u,d,O,S,h,g,M,z,$,v,T,_]);return b.jsx(RS.Provider,{value:q,children:b.jsx(eW,{as:l,ownerState:D,className:We(C.root,a),ref:n,...x,children:o})})});function tW(e){return st("MuiFormControlLabel",e)}const tp=ut("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),nW=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 lt(s,tW,t)},rW=we("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${tp.label}`]:t.label},t.root,t[`labelPlacement${Ne(n.labelPlacement)}`]]}})(Ct(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${tp.disabled}`]:{cursor:"default"},[`& .${tp.label}`]:{[`&.${tp.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}}]}))),oW=we("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Ct(({theme:e})=>({[`&.${tp.error}`]:{color:(e.vars||e).palette.error.main}}))),aW=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiFormControlLabel"}),{checked:o,className:a,componentsProps:s={},control:l,disabled:u,disableTypography:d,inputRef:p,label:h,labelPlacement:g="end",name:y,onChange:v,required:T,slots:_={},slotProps:x={},value:D,...C}=r,R=al(),I=u??l.props.disabled??R?.disabled,O=T??l.props.required,F={disabled:I,required:O};["checked","name","onChange","value","inputRef"].forEach(Y=>{typeof l.props[Y]>"u"&&typeof r[Y]<"u"&&(F[Y]=r[Y])});const H=bc({props:r,muiFormControl:R,states:["error"]}),U={...r,disabled:I,labelPlacement:g,required:O,error:H.error},S=nW(U),M={slots:_,slotProps:{...s,...x}},[$,z]=Pt("typography",{elementType:Ue,externalForwardedProps:M,ownerState:U});let q=h;return q!=null&&q.type!==Ue&&!d&&(q=b.jsx($,{component:"span",...z,className:We(S.label,z?.className),children:q})),b.jsxs(rW,{className:We(S.root,a),ownerState:U,ref:n,...C,children:[w.cloneElement(l,F),O?b.jsxs("div",{children:[q,b.jsxs(oW,{ownerState:U,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}):q]})});function iW(e){return st("MuiFormHelperText",e)}const BD=ut("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var jD;const sW=e=>{const{classes:t,contained:n,size:r,disabled:o,error:a,filled:s,focused:l,required:u}=e,d={root:["root",o&&"disabled",a&&"error",r&&`size${Ne(r)}`,n&&"contained",l&&"focused",s&&"filled",u&&"required"]};return lt(d,iW,t)},lW=we("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]}})(Ct(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${BD.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${BD.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}}]}))),cW=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:s="p",disabled:l,error:u,filled:d,focused:p,margin:h,required:g,variant:y,...v}=r,T=al(),_=bc({props:r,muiFormControl:T,states:["variant","size","disabled","error","filled","focused","required"]}),x={...r,component:s,contained:_.variant==="filled"||_.variant==="outlined",variant:_.variant,size:_.size,disabled:_.disabled,error:_.error,filled:_.filled,focused:_.focused,required:_.required};delete x.ownerState;const D=sW(x);return b.jsx(lW,{as:s,className:We(D.root,a),ref:n,...v,ownerState:x,children:o===" "?jD||(jD=b.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):o})});function uW(e){return st("MuiFormLabel",e)}const pp=ut("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),dW=e=>{const{classes:t,color:n,focused:r,disabled:o,error:a,filled:s,required:l}=e,u={root:["root",`color${Ne(n)}`,o&&"disabled",a&&"error",s&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",a&&"error"]};return lt(u,uW,t)},fW=we("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Ct(({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:{[`&.${pp.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${pp.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${pp.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),pW=we("span",{name:"MuiFormLabel",slot:"Asterisk"})(Ct(({theme:e})=>({[`&.${pp.error}`]:{color:(e.vars||e).palette.error.main}}))),hW=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiFormLabel"}),{children:o,className:a,color:s,component:l="label",disabled:u,error:d,filled:p,focused:h,required:g,...y}=r,v=al(),T=bc({props:r,muiFormControl:v,states:["color","required","focused","disabled","error","filled"]}),_={...r,color:T.color||"primary",component:l,disabled:T.disabled,error:T.error,filled:T.filled,focused:T.focused,required:T.required},x=dW(_);return b.jsxs(fW,{as:l,ownerState:_,className:We(x.root,a),ref:n,...y,children:[o,T.required&&b.jsxs(pW,{ownerState:_,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]})}),Gn=UH({createStyledComponent:we("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:rl});function Ix(e){return`scale(${e}, ${e**2})`}const mW={entering:{opacity:1,transform:Ix(1)},entered:{opacity:1,transform:"none"}},tE=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ky=w.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:a,easing:s,in:l,onEnter:u,onEntered:d,onEntering:p,onExit:h,onExited:g,onExiting:y,style:v,timeout:T="auto",TransitionComponent:_=Ha,...x}=t,D=Hl(),C=w.useRef(),R=rl(),I=w.useRef(null),O=rr(I,fd(a),n),F=Y=>B=>{if(Y){const K=I.current;B===void 0?Y(K):Y(K,B)}},H=F(p),U=F((Y,B)=>{o5(Y);const{duration:K,delay:ae,easing:ne}=Vu({style:v,timeout:T,easing:s},{mode:"enter"});let N;T==="auto"?(N=R.transitions.getAutoHeightDuration(Y.clientHeight),C.current=N):N=K,Y.style.transition=[R.transitions.create("opacity",{duration:N,delay:ae}),R.transitions.create("transform",{duration:tE?N:N*.666,delay:ae,easing:ne})].join(","),u&&u(Y,B)}),S=F(d),M=F(y),$=F(Y=>{const{duration:B,delay:K,easing:ae}=Vu({style:v,timeout:T,easing:s},{mode:"exit"});let ne;T==="auto"?(ne=R.transitions.getAutoHeightDuration(Y.clientHeight),C.current=ne):ne=B,Y.style.transition=[R.transitions.create("opacity",{duration:ne,delay:K}),R.transitions.create("transform",{duration:tE?ne:ne*.666,delay:tE?K:K||ne*.333,easing:ae})].join(","),Y.style.opacity=0,Y.style.transform=Ix(.75),h&&h(Y)}),z=F(g),q=Y=>{T==="auto"&&D.start(C.current||0,Y),r&&r(I.current,Y)};return b.jsx(_,{appear:o,in:l,nodeRef:I,onEnter:U,onEntered:S,onEntering:H,onExit:$,onExited:z,onExiting:M,addEndListener:q,timeout:T==="auto"?null:T,...x,children:(Y,{ownerState:B,...K})=>w.cloneElement(a,{style:{opacity:0,transform:Ix(.75),visibility:Y==="exited"&&!l?"hidden":void 0,...mW[Y],...v,...a.props.style},ref:O,...K})})});ky&&(ky.muiSupportAuto=!0);const gW=e=>{const{classes:t,disableUnderline:n}=e,o=lt({root:["root",!n&&"underline"],input:["input"]},aG,t);return{...t,...o}},yW=we(N0,{shouldForwardProp:e=>co(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...I0(e,t),!n.disableUnderline&&t.underline]}})(Ct(({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"},[`&.${Df.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Df.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(.${Df.disabled}, .${Df.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Df.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}`}}}))]}})),bW=we(P0,{name:"MuiInput",slot:"Input",overridesResolver:O0})({}),PS=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:a={},componentsProps:s,fullWidth:l=!1,inputComponent:u="input",multiline:d=!1,slotProps:p,slots:h={},type:g="text",...y}=r,v=gW(r),_={root:{ownerState:{disableUnderline:o}}},x=p??s?Nr(p??s,_):_,D=h.root??a.Root??yW,C=h.input??a.Input??bW;return b.jsx(IS,{slots:{root:D,input:C},slotProps:x,fullWidth:l,inputComponent:u,multiline:d,ref:n,type:g,...y,classes:v})});PS.muiName="Input";function vW(e){return st("MuiInputLabel",e)}ut("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const EW=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:a,variant:s,required:l}=e,u={root:["root",n&&"formControl",!a&&"animated",o&&"shrink",r&&r!=="medium"&&`size${Ne(r)}`,s],asterisk:[l&&"asterisk"]},d=lt(u,vW,t);return{...t,...d}},xW=we(hW,{shouldForwardProp:e=>co(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${pp.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]]}})(Ct(({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)"}}]}))),k5=w.forwardRef(function(t,n){const r=dt({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:a,shrink:s,variant:l,className:u,...d}=r,p=al();let h=s;typeof h>"u"&&p&&(h=p.filled||p.focused||p.adornedStart);const g=bc({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},v=EW(y);return b.jsx(xW,{"data-shrink":h,ref:n,className:We(v.root,u),...d,ownerState:y,classes:v})}),Pa=w.createContext({});function TW(e){return st("MuiList",e)}ut("MuiList",["root","padding","dense","subheader"]);const SW=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return lt({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},TW,t)},CW=we("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}}]}),Ah=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiList"}),{children:o,className:a,component:s="ul",dense:l=!1,disablePadding:u=!1,subheader:d,...p}=r,h=w.useMemo(()=>({dense:l}),[l]),g={...r,component:s,dense:l,disablePadding:u},y=SW(g);return b.jsx(Pa.Provider,{value:h,children:b.jsxs(CW,{as:s,className:We(y.root,a),ref:n,ownerState:g,...p,children:[d,o]})})});function _W(e){return st("MuiListItem",e)}ut("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function AW(e){return st("MuiListItemButton",e)}const Su=ut("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),kW=(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]},wW=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:a,divider:s,selected:l}=e,d=lt({root:["root",r&&"dense",!a&&"gutters",s&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",l&&"selected"]},AW,n);return{...n,...d}},DW=we(gi,{shouldForwardProp:e=>co(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:kW})(Ct(({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"}},[`&.${Su.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Dt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Su.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)}},[`&.${Su.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)}},[`&.${Su.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Su.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}}]}))),w5=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:a=!1,component:s="div",children:l,dense:u=!1,disableGutters:d=!1,divider:p=!1,focusVisibleClassName:h,selected:g=!1,className:y,...v}=r,T=w.useContext(Pa),_=w.useMemo(()=>({dense:u||T.dense||!1,alignItems:o,disableGutters:d}),[o,T.dense,u,d]),x=w.useRef(null);_o(()=>{a&&x.current&&x.current.focus()},[a]);const D={...r,alignItems:o,dense:_.dense,disableGutters:d,divider:p,selected:g},C=wW(D),R=rr(x,n);return b.jsx(Pa.Provider,{value:_,children:b.jsx(DW,{ref:R,href:v.href||v.to,component:(v.href||v.to)&&s==="div"?"button":s,focusVisibleClassName:We(C.focusVisible,h),ownerState:D,className:We(C.root,y),...v,classes:C,children:l})})});function RW(e){return st("MuiListItemSecondaryAction",e)}ut("MuiListItemSecondaryAction",["root","disableGutters"]);const IW=e=>{const{disableGutters:t,classes:n}=e;return lt({root:["root",t&&"disableGutters"]},RW,n)},OW=we("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}}]}),D5=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...a}=r,s=w.useContext(Pa),l={...r,disableGutters:s.disableGutters},u=IW(l);return b.jsx(OW,{className:We(u.root,o),ownerState:l,ref:n,...a})});D5.muiName="ListItemSecondaryAction";const NW=(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]},PW=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:a,divider:s,hasSecondaryAction:l}=e;return lt({root:["root",r&&"dense",!o&&"gutters",!a&&"padding",s&&"divider",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"]},_W,n)},LW=we("div",{name:"MuiListItem",slot:"Root",overridesResolver:NW})(Ct(({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:{[`& > .${Su.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}}]}))),MW=we("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),wu=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiListItem"}),{alignItems:o="center",children:a,className:s,component:l,components:u={},componentsProps:d={},ContainerComponent:p="li",ContainerProps:{className:h,...g}={},dense:y=!1,disableGutters:v=!1,disablePadding:T=!1,divider:_=!1,secondaryAction:x,slotProps:D={},slots:C={},...R}=r,I=w.useContext(Pa),O=w.useMemo(()=>({dense:y||I.dense||!1,alignItems:o,disableGutters:v}),[o,I.dense,y,v]),F=w.useRef(null),H=w.Children.toArray(a),U=H.length&&cp(H[H.length-1],["ListItemSecondaryAction"]),S={...r,alignItems:o,dense:O.dense,disableGutters:v,disablePadding:T,divider:_,hasSecondaryAction:U},M=PW(S),$=rr(F,n),z=C.root||u.Root||LW,q=D.root||d.root||{},Y={className:We(M.root,q.className,s),...R};let B=l||"li";return U?(B=!Y.component&&!l?"div":B,p==="li"&&(B==="li"?B="div":Y.component==="li"&&(Y.component="div")),b.jsx(Pa.Provider,{value:O,children:b.jsxs(MW,{as:p,className:We(M.container,h),ref:$,ownerState:S,...g,children:[b.jsx(z,{...q,...!$p(z)&&{as:B,ownerState:{...S,...q.ownerState}},...Y,children:H}),H.pop()]})})):b.jsx(Pa.Provider,{value:O,children:b.jsxs(z,{...q,as:B,ref:$,...!$p(z)&&{ownerState:{...S,...q.ownerState}},...Y,children:[H,x&&b.jsx(D5,{children:x})]})})});function FW(e){return st("MuiListItemIcon",e)}const UD=ut("MuiListItemIcon",["root","alignItemsFlexStart"]),BW=e=>{const{alignItems:t,classes:n}=e;return lt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},FW,n)},jW=we("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(Ct(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),HD=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiListItemIcon"}),{className:o,...a}=r,s=w.useContext(Pa),l={...r,alignItems:s.alignItems},u=BW(l);return b.jsx(jW,{className:We(u.root,o),ownerState:l,ref:n,...a})});function UW(e){return st("MuiListItemText",e)}const Du=ut("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),HW=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:a}=e;return lt({root:["root",n&&"inset",a&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},UW,t)},zW=we("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Du.primary}`]:t.primary},{[`& .${Du.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,[`.${gD.root}:where(& .${Du.primary})`]:{display:"block"},[`.${gD.root}:where(& .${Du.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),ts=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:s=!1,inset:l=!1,primary:u,primaryTypographyProps:d,secondary:p,secondaryTypographyProps:h,slots:g={},slotProps:y={},...v}=r,{dense:T}=w.useContext(Pa);let _=u??o,x=p;const D={...r,disableTypography:s,inset:l,primary:!!_,secondary:!!x,dense:T},C=HW(D),R={slots:g,slotProps:{primary:d,secondary:h,...y}},[I,O]=Pt("root",{className:We(C.root,a),elementType:zW,externalForwardedProps:{...R,...v},ownerState:D,ref:n}),[F,H]=Pt("primary",{className:C.primary,elementType:Ue,externalForwardedProps:R,ownerState:D}),[U,S]=Pt("secondary",{className:C.secondary,elementType:Ue,externalForwardedProps:R,ownerState:D});return _!=null&&_.type!==Ue&&!s&&(_=b.jsx(F,{variant:T?"body2":"body1",component:H?.variant?void 0:"span",...H,children:_})),x!=null&&x.type!==Ue&&!s&&(x=b.jsx(U,{variant:"body2",color:"textSecondary",...S,children:x})),b.jsxs(I,{...O,children:[_,x]})});function nE(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function zD(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function R5(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 Rf(e,t,n,r,o,a){let s=!1,l=o(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(s)return!1;s=!0}const u=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!R5(l,a)||u)l=o(e,l,n);else return l.focus(),!0}return!1}const $W=w.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:a=!1,children:s,className:l,disabledItemsFocusable:u=!1,disableListWrap:d=!1,onKeyDown:p,variant:h="selectedMenu",...g}=t,y=w.useRef(null),v=w.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});_o(()=>{o&&y.current.focus()},[o]),w.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(C,{direction:R})=>{const I=!y.current.style.width;if(C.clientHeight<y.current.clientHeight&&I){const O=`${S5(Fa(C))}px`;y.current.style[R==="rtl"?"paddingLeft":"paddingRight"]=O,y.current.style.width=`calc(100% + ${O})`}return y.current}}),[]);const T=C=>{const R=y.current,I=C.key;if(C.ctrlKey||C.metaKey||C.altKey){p&&p(C);return}const F=Ao(R).activeElement;if(I==="ArrowDown")C.preventDefault(),Rf(R,F,d,u,nE);else if(I==="ArrowUp")C.preventDefault(),Rf(R,F,d,u,zD);else if(I==="Home")C.preventDefault(),Rf(R,null,d,u,nE);else if(I==="End")C.preventDefault(),Rf(R,null,d,u,zD);else if(I.length===1){const H=v.current,U=I.toLowerCase(),S=performance.now();H.keys.length>0&&(S-H.lastTime>500?(H.keys=[],H.repeating=!0,H.previousKeyMatched=!0):H.repeating&&U!==H.keys[0]&&(H.repeating=!1)),H.lastTime=S,H.keys.push(U);const M=F&&!H.repeating&&R5(F,H);H.previousKeyMatched&&(M||Rf(R,F,!1,u,nE,H))?C.preventDefault():H.previousKeyMatched=!1}p&&p(C)},_=rr(y,n);let x=-1;w.Children.forEach(s,(C,R)=>{if(!w.isValidElement(C)){x===R&&(x+=1,x>=s.length&&(x=-1));return}C.props.disabled||(h==="selectedMenu"&&C.props.selected||x===-1)&&(x=R),x===R&&(C.props.disabled||C.props.muiSkipListHighlight||C.type.muiSkipListHighlight)&&(x+=1,x>=s.length&&(x=-1))});const D=w.Children.map(s,(C,R)=>{if(R===x){const I={};return a&&(I.autoFocus=!0),C.props.tabIndex===void 0&&h==="selectedMenu"&&(I.tabIndex=0),w.cloneElement(C,I)}return C});return b.jsx(Ah,{role:"menu",ref:_,className:l,onKeyDown:T,tabIndex:o?0:-1,...g,children:D})});function VW(e){return st("MuiPopover",e)}ut("MuiPopover",["root","paper"]);function $D(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function VD(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function GD(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function hg(e){return typeof e=="function"?e():e}const GW=e=>{const{classes:t}=e;return lt({root:["root"],paper:["paper"]},VW,t)},qW=we(C5,{name:"MuiPopover",slot:"Root"})({}),I5=we(es,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),WW=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiPopover"}),{action:o,anchorEl:a,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:u="anchorEl",children:d,className:p,container:h,elevation:g=8,marginThreshold:y=16,open:v,PaperProps:T={},slots:_={},slotProps:x={},transformOrigin:D={vertical:"top",horizontal:"left"},TransitionComponent:C,transitionDuration:R="auto",TransitionProps:I={},disableScrollLock:O=!1,...F}=r,H=w.useRef(),U={...r,anchorOrigin:s,anchorReference:u,elevation:g,marginThreshold:y,transformOrigin:D,TransitionComponent:C,transitionDuration:R,TransitionProps:I},S=GW(U),M=w.useCallback(()=>{if(u==="anchorPosition")return l;const Me=hg(a),Ke=(Me&&Me.nodeType===1?Me:Ao(H.current).body).getBoundingClientRect();return{top:Ke.top+$D(Ke,s.vertical),left:Ke.left+VD(Ke,s.horizontal)}},[a,s.horizontal,s.vertical,l,u]),$=w.useCallback(Me=>({vertical:$D(Me,D.vertical),horizontal:VD(Me,D.horizontal)}),[D.horizontal,D.vertical]),z=w.useCallback(Me=>{const Oe={width:Me.offsetWidth,height:Me.offsetHeight},Ke=$(Oe);if(u==="none")return{top:null,left:null,transformOrigin:GD(Ke)};const at=M();let Re=at.top-Ke.vertical,yt=at.left-Ke.horizontal;const _t=Re+Oe.height,He=yt+Oe.width,mt=Fa(hg(a)),ct=mt.innerHeight-y,ft=mt.innerWidth-y;if(y!==null&&Re<y){const ze=Re-y;Re-=ze,Ke.vertical+=ze}else if(y!==null&&_t>ct){const ze=_t-ct;Re-=ze,Ke.vertical+=ze}if(y!==null&&yt<y){const ze=yt-y;yt-=ze,Ke.horizontal+=ze}else if(He>ft){const ze=He-ft;yt-=ze,Ke.horizontal+=ze}return{top:`${Math.round(Re)}px`,left:`${Math.round(yt)}px`,transformOrigin:GD(Ke)}},[a,u,M,$,y]),[q,Y]=w.useState(v),B=w.useCallback(()=>{const Me=H.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]);w.useEffect(()=>(O&&window.addEventListener("scroll",B),()=>window.removeEventListener("scroll",B)),[a,O,B]);const K=()=>{B()},ae=()=>{Y(!1)};w.useEffect(()=>{v&&B()}),w.useImperativeHandle(o,()=>v?{updatePosition:()=>{B()}}:null,[v,B]),w.useEffect(()=>{if(!v)return;const Me=w0(()=>{B()}),Oe=Fa(hg(a));return Oe.addEventListener("resize",Me),()=>{Me.clear(),Oe.removeEventListener("resize",Me)}},[a,v,B]);let ne=R;const N={slots:{transition:C,..._},slotProps:{transition:I,paper:T,...x}},[Q,X]=Pt("transition",{elementType:ky,externalForwardedProps:N,ownerState:U,getSlotProps:Me=>({...Me,onEntering:(Oe,Ke)=>{Me.onEntering?.(Oe,Ke),K()},onExited:Oe=>{Me.onExited?.(Oe),ae()}}),additionalProps:{appear:!0,in:v}});R==="auto"&&!Q.muiSupportAuto&&(ne=void 0);const P=h||(a?Ao(hg(a)).body:void 0),[re,{slots:ce,slotProps:oe,...ve}]=Pt("root",{ref:n,elementType:qW,externalForwardedProps:{...N,...F},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:_.backdrop},slotProps:{backdrop:Oz(typeof x.backdrop=="function"?x.backdrop(U):x.backdrop,{invisible:!0})},container:P,open:v},ownerState:U,className:We(S.root,p)}),[be,qe]=Pt("paper",{ref:H,className:S.paper,elementType:I5,externalForwardedProps:N,shouldForwardComponentProp:!0,additionalProps:{elevation:g,style:q?void 0:{opacity:0}},ownerState:U});return b.jsx(re,{...ve,...!$p(re)&&{slots:ce,slotProps:oe,disableScrollLock:O},children:b.jsx(Q,{...X,timeout:ne,children:b.jsx(be,{...qe,children:d})})})});function YW(e){return st("MuiMenu",e)}ut("MuiMenu",["root","paper","list"]);const QW={vertical:"top",horizontal:"right"},KW={vertical:"top",horizontal:"left"},XW=e=>{const{classes:t}=e;return lt({root:["root"],paper:["paper"],list:["list"]},YW,t)},ZW=we(WW,{shouldForwardProp:e=>co(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),JW=we(I5,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),eY=we($W,{name:"MuiMenu",slot:"List"})({outline:0}),M0=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:d,open:p,PaperProps:h={},PopoverClasses:g,transitionDuration:y="auto",TransitionProps:{onEntering:v,...T}={},variant:_="selectedMenu",slots:x={},slotProps:D={},...C}=r,R=Sh(),I={...r,autoFocus:o,disableAutoFocusItem:l,MenuListProps:u,onEntering:v,PaperProps:h,transitionDuration:y,TransitionProps:T,variant:_},O=XW(I),F=o&&!l&&p,H=w.useRef(null),U=(ne,N)=>{H.current&&H.current.adjustStyleForScrollbar(ne,{direction:R?"rtl":"ltr"}),v&&v(ne,N)},S=ne=>{ne.key==="Tab"&&(ne.preventDefault(),d&&d(ne,"tabKeyDown"))};let M=-1;w.Children.map(a,(ne,N)=>{w.isValidElement(ne)&&(ne.props.disabled||(_==="selectedMenu"&&ne.props.selected||M===-1)&&(M=N))});const $={slots:x,slotProps:{list:u,transition:T,paper:h,...D}},z=ac({elementType:x.root,externalSlotProps:D.root,ownerState:I,className:[O.root,s]}),[q,Y]=Pt("paper",{className:O.paper,elementType:JW,externalForwardedProps:$,shouldForwardComponentProp:!0,ownerState:I}),[B,K]=Pt("list",{className:We(O.list,u.className),elementType:eY,shouldForwardComponentProp:!0,externalForwardedProps:$,getSlotProps:ne=>({...ne,onKeyDown:N=>{S(N),ne.onKeyDown?.(N)}}),ownerState:I}),ae=typeof $.slotProps.transition=="function"?$.slotProps.transition(I):$.slotProps.transition;return b.jsx(ZW,{onClose:d,anchorOrigin:{vertical:"bottom",horizontal:R?"right":"left"},transformOrigin:R?QW:KW,slots:{root:x.root,paper:q,backdrop:x.backdrop,...x.transition&&{transition:x.transition}},slotProps:{root:z,paper:Y,backdrop:typeof D.backdrop=="function"?D.backdrop(I):D.backdrop,transition:{...ae,onEntering:(...ne)=>{U(...ne),ae?.onEntering?.(...ne)}}},open:p,ref:n,transitionDuration:y,ownerState:I,...C,classes:g,children:b.jsx(B,{actions:H,autoFocus:o&&(M===-1||l),autoFocusItem:F,variant:_,...K,children:a})})});function tY(e){return st("MuiMenuItem",e)}const If=ut("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),nY=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},rY=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:s}=e,u=lt({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},tY,s);return{...s,...u}},oY=we(gi,{shouldForwardProp:e=>co(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:nY})(Ct(({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"}},[`&.${If.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Dt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${If.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)}},[`&.${If.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)}},[`&.${If.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${If.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${FD.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${FD.inset}`]:{marginLeft:52},[`& .${Du.root}`]:{marginTop:0,marginBottom:0},[`& .${Du.inset}`]:{paddingLeft:36},[`& .${UD.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,[`& .${UD.root} svg`]:{fontSize:"1.25rem"}}}]}))),Xl=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:s=!1,divider:l=!1,disableGutters:u=!1,focusVisibleClassName:d,role:p="menuitem",tabIndex:h,className:g,...y}=r,v=w.useContext(Pa),T=w.useMemo(()=>({dense:s||v.dense||!1,disableGutters:u}),[v.dense,s,u]),_=w.useRef(null);_o(()=>{o&&_.current&&_.current.focus()},[o]);const x={...r,dense:T.dense,divider:l,disableGutters:u},D=rY(r),C=rr(_,n);let R;return r.disabled||(R=h!==void 0?h:-1),b.jsx(Pa.Provider,{value:T,children:b.jsx(oY,{ref:C,role:p,tabIndex:R,component:a,focusVisibleClassName:We(D.focusVisible,d),className:We(D.root,g),...y,ownerState:x,classes:D})})});function aY(e){return st("MuiNativeSelect",e)}const LS=ut("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),iY=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:s}=e,l={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${Ne(n)}`,a&&"iconOpen",r&&"disabled"]};return lt(l,aY,t)},O5=we("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${LS.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}}}]})),sY=we(O5,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:co,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${LS.multiple}`]:t.multiple}]}})({}),N5=we("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${LS.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}}]})),lY=we(N5,{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]}})({}),cY=w.forwardRef(function(t,n){const{className:r,disabled:o,error:a,IconComponent:s,inputRef:l,variant:u="standard",...d}=t,p={...t,disabled:o,variant:u,error:a},h=iY(p);return b.jsxs(w.Fragment,{children:[b.jsx(sY,{ownerState:p,className:We(h.select,r),disabled:o,ref:l||n,...d}),t.multiple?null:b.jsx(lY,{as:s,ownerState:p,className:h.icon})]})});var qD;const uY=we("fieldset",{name:"MuiNotchedOutlined",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%"}),dY=we("legend",{name:"MuiNotchedOutlined",shouldForwardProp:co})(Ct(({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 fY(e){const{children:t,classes:n,className:r,label:o,notched:a,...s}=e,l=o!=null&&o!=="",u={...e,notched:a,withLabel:l};return b.jsx(uY,{"aria-hidden":!0,className:r,ownerState:u,...s,children:b.jsx(dY,{ownerState:u,children:l?b.jsx("span",{children:o}):qD||(qD=b.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}const pY=e=>{const{classes:t}=e,r=lt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},iG,t);return{...t,...r}},hY=we(N0,{shouldForwardProp:e=>co(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:I0})(Ct(({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 .${Xa.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Xa.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Xa.focused} .${Xa.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(so()).map(([n])=>({props:{color:n},style:{[`&.${Xa.focused} .${Xa.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Xa.error} .${Xa.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Xa.disabled} .${Xa.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"}}]}})),mY=we(fY,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Ct(({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}})),gY=we(P0,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:O0})(Ct(({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}}]}))),MS=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiOutlinedInput"}),{components:o={},fullWidth:a=!1,inputComponent:s="input",label:l,multiline:u=!1,notched:d,slots:p={},slotProps:h={},type:g="text",...y}=r,v=pY(r),T=al(),_=bc({props:r,muiFormControl:T,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x={...r,color:_.color||"primary",disabled:_.disabled,error:_.error,focused:_.focused,formControl:T,fullWidth:a,hiddenLabel:_.hiddenLabel,multiline:u,size:_.size,type:g},D=p.root??o.Root??hY,C=p.input??o.Input??gY,[R,I]=Pt("notchedOutline",{elementType:mY,className:v.notchedOutline,shouldForwardComponentProp:!0,ownerState:x,externalForwardedProps:{slots:p,slotProps:h},additionalProps:{label:l!=null&&l!==""&&_.required?b.jsxs(w.Fragment,{children:[l," ","*"]}):l}});return b.jsx(IS,{slots:{root:D,input:C},slotProps:h,renderSuffix:O=>b.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:{...v,notchedOutline:null}})});MS.muiName="Input";function P5(e){return st("MuiSelect",e)}const Of=ut("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var WD;const yY=we(O5,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Of.select}`]:t.select},{[`&.${Of.select}`]:t[n.variant]},{[`&.${Of.error}`]:t.error},{[`&.${Of.multiple}`]:t.multiple}]}})({[`&.${Of.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),bY=we(N5,{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]}})({}),vY=we("input",{shouldForwardProp:e=>e5(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function YD(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function EY(e){return e==null||typeof e=="string"&&!e.trim()}const xY=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:s}=e,l={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${Ne(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return lt(l,P5,t)},TY=w.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":o,autoFocus:a,autoWidth:s,children:l,className:u,defaultOpen:d,defaultValue:p,disabled:h,displayEmpty:g,error:y=!1,IconComponent:v,inputRef:T,labelId:_,MenuProps:x={},multiple:D,name:C,onBlur:R,onChange:I,onClose:O,onFocus:F,onOpen:H,open:U,readOnly:S,renderValue:M,required:$,SelectDisplayProps:z={},tabIndex:q,type:Y,value:B,variant:K="standard",...ae}=t,[ne,N]=Ey({controlled:B,default:p,name:"Select"}),[Q,X]=Ey({controlled:U,default:d,name:"Select"}),P=w.useRef(null),re=w.useRef(null),[ce,oe]=w.useState(null),{current:ve}=w.useRef(U!=null),[be,qe]=w.useState(),Me=rr(n,T),Oe=w.useCallback(he=>{re.current=he,he&&oe(he)},[]),Ke=ce?.parentNode;w.useImperativeHandle(Me,()=>({focus:()=>{re.current.focus()},node:P.current,value:ne}),[ne]),w.useEffect(()=>{d&&Q&&ce&&!ve&&(qe(s?null:Ke.clientWidth),re.current.focus())},[ce,s]),w.useEffect(()=>{a&&re.current.focus()},[a]),w.useEffect(()=>{if(!_)return;const he=Ao(re.current).getElementById(_);if(he){const xe=()=>{getSelection().isCollapsed&&re.current.focus()};return he.addEventListener("click",xe),()=>{he.removeEventListener("click",xe)}}},[_]);const at=(he,xe)=>{he?H&&H(xe):O&&O(xe),ve||(qe(s?null:Ke.clientWidth),X(he))},Re=he=>{he.button===0&&(he.preventDefault(),re.current.focus(),at(!0,he))},yt=he=>{at(!1,he)},_t=w.Children.toArray(l),He=he=>{const xe=_t.find(tt=>tt.props.value===he.target.value);xe!==void 0&&(N(xe.props.value),I&&I(he,xe))},mt=he=>xe=>{let tt;if(xe.currentTarget.hasAttribute("tabindex")){if(D){tt=Array.isArray(ne)?ne.slice():[];const nt=ne.indexOf(he.props.value);nt===-1?tt.push(he.props.value):tt.splice(nt,1)}else tt=he.props.value;if(he.props.onClick&&he.props.onClick(xe),ne!==tt&&(N(tt),I)){const nt=xe.nativeEvent||xe,rn=new nt.constructor(nt.type,nt);Object.defineProperty(rn,"target",{writable:!0,value:{value:tt,name:C}}),I(rn,he)}D||at(!1,xe)}},ct=he=>{S||[" ","ArrowUp","ArrowDown","Enter"].includes(he.key)&&(he.preventDefault(),at(!0,he))},ft=ce!==null&&Q,ze=he=>{!ft&&R&&(Object.defineProperty(he,"target",{writable:!0,value:{value:ne,name:C}}),R(he))};delete ae["aria-invalid"];let Le,Xt;const Bt=[];let At=!1;(_y({value:ne})||g)&&(M?Le=M(ne):At=!0);const de=_t.map(he=>{if(!w.isValidElement(he))return null;let xe;if(D){if(!Array.isArray(ne))throw new Error(rs(2));xe=ne.some(tt=>YD(tt,he.props.value)),xe&&At&&Bt.push(he.props.children)}else xe=YD(ne,he.props.value),xe&&At&&(Xt=he.props.children);return w.cloneElement(he,{"aria-selected":xe?"true":"false",onClick:mt(he),onKeyUp:tt=>{tt.key===" "&&tt.preventDefault(),he.props.onKeyUp&&he.props.onKeyUp(tt)},role:"option",selected:xe,value:void 0,"data-value":he.props.value})});At&&(D?Bt.length===0?Le=null:Le=Bt.reduce((he,xe,tt)=>(he.push(xe),tt<Bt.length-1&&he.push(", "),he),[]):Le=Xt);let ye=be;!s&&ve&&ce&&(ye=Ke.clientWidth);let $e;typeof q<"u"?$e=q:$e=h?null:0;const Xe=z.id||(C?`mui-component-select-${C}`:void 0),Et={...t,variant:K,value:ne,open:ft,error:y},Ze=xY(Et),Zt={...x.PaperProps,...x.slotProps?.paper},Vt={...x.MenuListProps,...x.slotProps?.list},tn=yc();return b.jsxs(w.Fragment,{children:[b.jsx(yY,{as:"div",ref:Oe,tabIndex:$e,role:"combobox","aria-controls":ft?tn:void 0,"aria-disabled":h?"true":void 0,"aria-expanded":ft?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[_,Xe].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":$?"true":void 0,"aria-invalid":y?"true":void 0,onKeyDown:ct,onMouseDown:h||S?null:Re,onBlur:ze,onFocus:F,...z,ownerState:Et,className:We(z.className,Ze.select,u),id:Xe,children:EY(Le)?WD||(WD=b.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):Le}),b.jsx(vY,{"aria-invalid":y,value:Array.isArray(ne)?ne.join(","):ne,name:C,ref:P,"aria-hidden":!0,onChange:He,tabIndex:-1,disabled:h,className:Ze.nativeInput,autoFocus:a,required:$,...ae,ownerState:Et}),b.jsx(bY,{as:v,className:Ze.icon,ownerState:Et}),b.jsx(M0,{id:`menu-${C||""}`,anchorEl:Ke,open:ft,onClose:yt,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...x,slotProps:{...x.slotProps,list:{"aria-labelledby":_,role:"listbox","aria-multiselectable":D?"true":void 0,disableListWrap:!0,id:tn,...Vt},paper:{...Zt,style:{minWidth:ye,...Zt!=null?Zt.style:null}}},children:de})]})}),SY=e=>{const{classes:t}=e,r=lt({root:["root"]},P5,t);return{...t,...r}},FS={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>co(e)&&e!=="variant"},CY=we(PS,FS)(""),_Y=we(MS,FS)(""),AY=we(NS,FS)(""),BS=w.forwardRef(function(t,n){const r=dt({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:s={},className:l,defaultOpen:u=!1,displayEmpty:d=!1,IconComponent:p=lG,id:h,input:g,inputProps:y,label:v,labelId:T,MenuProps:_,multiple:x=!1,native:D=!1,onClose:C,onOpen:R,open:I,renderValue:O,SelectDisplayProps:F,variant:H="outlined",...U}=r,S=D?cY:TY,M=al(),$=bc({props:r,muiFormControl:M,states:["variant","error"]}),z=$.variant||H,q={...r,variant:z,classes:s},Y=SY(q),{root:B,...K}=Y,ae=g||{standard:b.jsx(CY,{ownerState:q}),outlined:b.jsx(_Y,{label:v,ownerState:q}),filled:b.jsx(AY,{ownerState:q})}[z],ne=rr(n,fd(ae));return b.jsx(w.Fragment,{children:w.cloneElement(ae,{inputComponent:S,inputProps:{children:a,error:$.error,IconComponent:p,variant:z,type:void 0,multiple:x,...D?{id:h}:{autoWidth:o,defaultOpen:u,displayEmpty:d,labelId:T,MenuProps:_,onClose:C,onOpen:R,open:I,renderValue:O,SelectDisplayProps:{id:h,...F}},...y,classes:y?Nr(K,y.classes):K,...g?g.props.inputProps:{}},...(x&&D||d)&&z==="outlined"?{notched:!0}:{},ref:ne,className:We(ae.props.className,l,Y.root),...!g&&{variant:z},...U})})});BS.muiName="Select";function kY(e){return st("MuiTooltip",e)}const tr=ut("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function wY(e){return Math.round(e*1e5)/1e5}const DY=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 lt(s,kY,t)},RY=we(v5,{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]}})(Ct(({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"] .${tr.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${tr.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${tr.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${tr.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${tr.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${tr.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${tr.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${tr.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),IY=we("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])}`]]}})(Ct(({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,[`.${tr.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${tr.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${tr.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${tr.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:`${wY(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${tr.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${tr.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${tr.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${tr.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${tr.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${tr.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${tr.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${tr.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${tr.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${tr.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),OY=we("span",{name:"MuiTooltip",slot:"Arrow"})(Ct(({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 mg=!1;const QD=new D0;let Nf={x:0,y:0};function gg(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const ir=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:a,classes:s,components:l={},componentsProps:u={},describeChild:d=!1,disableFocusListener:p=!1,disableHoverListener:h=!1,disableInteractive:g=!1,disableTouchListener:y=!1,enterDelay:v=100,enterNextDelay:T=0,enterTouchDelay:_=700,followCursor:x=!1,id:D,leaveDelay:C=0,leaveTouchDelay:R=1500,onClose:I,onOpen:O,open:F,placement:H="bottom",PopperComponent:U,PopperProps:S={},slotProps:M={},slots:$={},title:z,TransitionComponent:q,TransitionProps:Y,...B}=r,K=w.isValidElement(a)?a:b.jsx("span",{children:a}),ae=rl(),ne=Sh(),[N,Q]=w.useState(),[X,P]=w.useState(null),re=w.useRef(!1),ce=g||x,oe=Hl(),ve=Hl(),be=Hl(),qe=Hl(),[Me,Oe]=Ey({controlled:F,default:!1,name:"Tooltip",state:"open"});let Ke=Me;const at=yc(D),Re=w.useRef(),yt=va(()=>{Re.current!==void 0&&(document.body.style.WebkitUserSelect=Re.current,Re.current=void 0),qe.clear()});w.useEffect(()=>yt,[yt]);const _t=bt=>{QD.clear(),mg=!0,Oe(!0),O&&!Ke&&O(bt)},He=va(bt=>{QD.start(800+C,()=>{mg=!1}),Oe(!1),I&&Ke&&I(bt),oe.start(ae.transitions.duration.shortest,()=>{re.current=!1})}),mt=bt=>{re.current&&bt.type!=="touchstart"||(N&&N.removeAttribute("title"),ve.clear(),be.clear(),v||mg&&T?ve.start(mg?T:v,()=>{_t(bt)}):_t(bt))},ct=bt=>{ve.clear(),be.start(C,()=>{He(bt)})},[,ft]=w.useState(!1),ze=bt=>{Ty(bt.target)||(ft(!1),ct(bt))},Le=bt=>{N||Q(bt.currentTarget),Ty(bt.target)&&(ft(!0),mt(bt))},Xt=bt=>{re.current=!0;const te=K.props;te.onTouchStart&&te.onTouchStart(bt)},Bt=bt=>{Xt(bt),be.clear(),oe.clear(),yt(),Re.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",qe.start(_,()=>{document.body.style.WebkitUserSelect=Re.current,mt(bt)})},At=bt=>{K.props.onTouchEnd&&K.props.onTouchEnd(bt),yt(),be.start(R,()=>{He(bt)})};w.useEffect(()=>{if(!Ke)return;function bt(te){te.key==="Escape"&&He(te)}return document.addEventListener("keydown",bt),()=>{document.removeEventListener("keydown",bt)}},[He,Ke]);const de=rr(fd(K),Q,n);!z&&z!==0&&(Ke=!1);const ye=w.useRef(),$e=bt=>{const te=K.props;te.onMouseMove&&te.onMouseMove(bt),Nf={x:bt.clientX,y:bt.clientY},ye.current&&ye.current.update()},Xe={},Et=typeof z=="string";d?(Xe.title=!Ke&&Et&&!h?z:null,Xe["aria-describedby"]=Ke?at:null):(Xe["aria-label"]=Et?z:null,Xe["aria-labelledby"]=Ke&&!Et?at:null);const Ze={...Xe,...B,...K.props,className:We(B.className,K.props.className),onTouchStart:Xt,ref:de,...x?{onMouseMove:$e}:{}},Zt={};y||(Ze.onTouchStart=Bt,Ze.onTouchEnd=At),h||(Ze.onMouseOver=gg(mt,Ze.onMouseOver),Ze.onMouseLeave=gg(ct,Ze.onMouseLeave),ce||(Zt.onMouseOver=mt,Zt.onMouseLeave=ct)),p||(Ze.onFocus=gg(Le,Ze.onFocus),Ze.onBlur=gg(ze,Ze.onBlur),ce||(Zt.onFocus=Le,Zt.onBlur=ze));const Vt={...r,isRtl:ne,arrow:o,disableInteractive:ce,placement:H,PopperComponentProp:U,touch:re.current},tn=typeof M.popper=="function"?M.popper(Vt):M.popper,he=w.useMemo(()=>{let bt=[{name:"arrow",enabled:!!X,options:{element:X,padding:4}}];return S.popperOptions?.modifiers&&(bt=bt.concat(S.popperOptions.modifiers)),tn?.popperOptions?.modifiers&&(bt=bt.concat(tn.popperOptions.modifiers)),{...S.popperOptions,...tn?.popperOptions,modifiers:bt}},[X,S.popperOptions,tn?.popperOptions]),xe=DY(Vt),tt=typeof M.transition=="function"?M.transition(Vt):M.transition,nt={slots:{popper:l.Popper,transition:l.Transition??q,tooltip:l.Tooltip,arrow:l.Arrow,...$},slotProps:{arrow:M.arrow??u.arrow,popper:{...S,...tn??u.popper},tooltip:M.tooltip??u.tooltip,transition:{...Y,...tt??u.transition}}},[rn,Pr]=Pt("popper",{elementType:RY,externalForwardedProps:nt,ownerState:Vt,className:We(xe.popper,S?.className)}),[Er,qn]=Pt("transition",{elementType:ky,externalForwardedProps:nt,ownerState:Vt}),[ur,uo]=Pt("tooltip",{elementType:IY,className:xe.tooltip,externalForwardedProps:nt,ownerState:Vt}),[En,Lr]=Pt("arrow",{elementType:OY,className:xe.arrow,externalForwardedProps:nt,ownerState:Vt,ref:P});return b.jsxs(w.Fragment,{children:[w.cloneElement(K,Ze),b.jsx(rn,{as:U??v5,placement:H,anchorEl:x?{getBoundingClientRect:()=>({top:Nf.y,left:Nf.x,right:Nf.x,bottom:Nf.y,width:0,height:0})}:N,popperRef:ye,open:N?Ke:!1,id:at,transition:!0,...Zt,...Pr,popperOptions:he,children:({TransitionProps:bt})=>b.jsx(Er,{timeout:ae.transitions.duration.shorter,...bt,...qn,children:b.jsxs(ur,{...uo,children:[z,o?b.jsx(En,{...Lr}):null]})})})]})}),cn=gS({createStyledComponent:we("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>dt({props:e,name:"MuiStack"})});function NY(e){return st("MuiSwitch",e)}const ro=ut("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),PY=e=>{const{classes:t,edge:n,size:r,color:o,checked:a,disabled:s}=e,l={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=lt(l,NY,t);return{...t,...u}},LY=we("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:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${ro.thumb}`]:{width:16,height:16},[`& .${ro.switchBase}`]:{padding:4,[`&.${ro.checked}`]:{transform:"translateX(16px)"}}}}]}),MY=we(eq,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${ro.input}`]:t.input},n.color!=="default"&&t[`color${Ne(n.color)}`]]}})(Ct(({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}),[`&.${ro.checked}`]:{transform:"translateX(20px)"},[`&.${ro.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${ro.checked} + .${ro.track}`]:{opacity:.5},[`&.${ro.disabled} + .${ro.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${ro.input}`]:{left:"-100%",width:"300%"}})),Ct(({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:{[`&.${ro.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"}},[`&.${ro.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?Th(e.palette[t].main,.62):xh(e.palette[t].main,.55)}`}},[`&.${ro.checked} + .${ro.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),FY=we("span",{name:"MuiSwitch",slot:"Track"})(Ct(({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}`}))),BY=we("span",{name:"MuiSwitch",slot:"Thumb"})(Ct(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),jY=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiSwitch"}),{className:o,color:a="primary",edge:s=!1,size:l="medium",sx:u,slots:d={},slotProps:p={},...h}=r,g={...r,color:a,edge:s,size:l},y=PY(g),v={slots:d,slotProps:p},[T,_]=Pt("root",{className:We(y.root,o),elementType:LY,externalForwardedProps:v,ownerState:g,additionalProps:{sx:u}}),[x,D]=Pt("thumb",{className:y.thumb,elementType:BY,externalForwardedProps:v,ownerState:g}),C=b.jsx(x,{...D}),[R,I]=Pt("track",{className:y.track,elementType:FY,externalForwardedProps:v,ownerState:g});return b.jsxs(T,{..._,children:[b.jsx(MY,{type:"checkbox",icon:C,checkedIcon:C,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}}}),b.jsx(R,{...I})]})});function UY(e){return st("MuiTab",e)}const ia=ut("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),HY=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:a,label:s,selected:l,disabled:u}=e,d={root:["root",a&&s&&"labelIcon",`textColor${Ne(n)}`,r&&"fullWidth",o&&"wrapped",l&&"selected",u&&"disabled"],icon:["iconWrapper","icon"]};return lt(d,UY,t)},zY=we(gi,{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}]}})(Ct(({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)}}]}))),$Y=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:s=!1,fullWidth:l,icon:u,iconPosition:d="top",indicator:p,label:h,onChange:g,onClick:y,onFocus:v,selected:T,selectionFollowsFocus:_,textColor:x="inherit",value:D,wrapped:C=!1,...R}=r,I={...r,disabled:a,disableFocusRipple:s,selected:T,icon:!!u,iconPosition:d,label:!!h,fullWidth:l,textColor:x,wrapped:C},O=HY(I),F=u&&h&&w.isValidElement(u)?w.cloneElement(u,{className:We(O.icon,u.props.className)}):u,H=S=>{!T&&g&&g(S,D),y&&y(S)},U=S=>{_&&!T&&g&&g(S,D),v&&v(S)};return b.jsxs(zY,{focusRipple:!s,className:We(O.root,o),ref:n,role:"tab","aria-selected":T,disabled:a,onClick:H,onFocus:U,ownerState:I,tabIndex:T?0:-1,...R,children:[d==="top"||d==="start"?b.jsxs(w.Fragment,{children:[F,h]}):b.jsxs(w.Fragment,{children:[h,F]}),p]})}),L5=w.createContext();function VY(e){return st("MuiTable",e)}ut("MuiTable",["root","stickyHeader"]);const GY=e=>{const{classes:t,stickyHeader:n}=e;return lt({root:["root",n&&"stickyHeader"]},VY,t)},qY=we("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(Ct(({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"}}]}))),KD="table",Vp=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiTable"}),{className:o,component:a=KD,padding:s="normal",size:l="medium",stickyHeader:u=!1,...d}=r,p={...r,component:a,padding:s,size:l,stickyHeader:u},h=GY(p),g=w.useMemo(()=>({padding:s,size:l,stickyHeader:u}),[s,l,u]);return b.jsx(L5.Provider,{value:g,children:b.jsx(qY,{as:a,role:a===KD?null:"table",ref:n,className:We(h.root,o),ownerState:p,...d})})}),F0=w.createContext();function WY(e){return st("MuiTableBody",e)}ut("MuiTableBody",["root"]);const YY=e=>{const{classes:t}=e;return lt({root:["root"]},WY,t)},QY=we("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),KY={variant:"body"},XD="tbody",Gp=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiTableBody"}),{className:o,component:a=XD,...s}=r,l={...r,component:a},u=YY(l);return b.jsx(F0.Provider,{value:KY,children:b.jsx(QY,{className:We(u.root,o),as:a,ref:n,role:a===XD?null:"rowgroup",ownerState:l,...s})})});function XY(e){return st("MuiTableCell",e)}const ZY=ut("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),JY=e=>{const{classes:t,variant:n,align:r,padding:o,size:a,stickyHeader:s}=e,l={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${Ne(r)}`,o!=="normal"&&`padding${Ne(o)}`,`size${Ne(a)}`]};return lt(l,XY,t)},eQ=we("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]}})(Ct(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
214
|
+
${e.palette.mode==="light"?Th(Dt(e.palette.divider,1),.88):xh(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",[`&.${ZY.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),vn=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:s,padding:l,scope:u,size:d,sortDirection:p,variant:h,...g}=r,y=w.useContext(L5),v=w.useContext(F0),T=v&&v.variant==="head";let _;s?_=s:_=T?"th":"td";let x=u;_==="td"?x=void 0:!x&&T&&(x="col");const D=h||v&&v.variant,C={...r,align:o,component:_,padding:l||(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=JY(C);let I=null;return p&&(I=p==="asc"?"ascending":"descending"),b.jsx(eQ,{as:_,ref:n,className:We(R.root,a),"aria-sort":I,scope:x,ownerState:C,...g})});function tQ(e){return st("MuiTableContainer",e)}ut("MuiTableContainer",["root"]);const nQ=e=>{const{classes:t}=e;return lt({root:["root"]},tQ,t)},rQ=we("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),jS=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiTableContainer"}),{className:o,component:a="div",...s}=r,l={...r,component:a},u=nQ(l);return b.jsx(rQ,{ref:n,as:a,className:We(u.root,o),ownerState:l,...s})});function oQ(e){return st("MuiTableHead",e)}ut("MuiTableHead",["root"]);const aQ=e=>{const{classes:t}=e;return lt({root:["root"]},oQ,t)},iQ=we("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),sQ={variant:"head"},ZD="thead",wy=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiTableHead"}),{className:o,component:a=ZD,...s}=r,l={...r,component:a},u=aQ(l);return b.jsx(F0.Provider,{value:sQ,children:b.jsx(iQ,{as:a,className:We(u.root,o),ref:n,role:a===ZD?null:"rowgroup",ownerState:l,...s})})});function lQ(e){return st("MuiToolbar",e)}ut("MuiToolbar",["root","gutters","regular","dense"]);const cQ=e=>{const{classes:t,disableGutters:n,variant:r}=e;return lt({root:["root",!n&&"gutters",r]},lQ,t)},uQ=we("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(Ct(({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}]}))),dQ=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:s=!1,variant:l="regular",...u}=r,d={...r,component:a,disableGutters:s,variant:l},p=cQ(d);return b.jsx(uQ,{as:a,className:We(p.root,o),ref:n,ownerState:d,...u})}),fQ=xi(b.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),pQ=xi(b.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}));function hQ(e){return st("MuiTableRow",e)}const JD=ut("MuiTableRow",["root","selected","hover","head","footer"]),mQ=e=>{const{classes:t,selected:n,hover:r,head:o,footer:a}=e;return lt({root:["root",n&&"selected",r&&"hover",o&&"head",a&&"footer"]},hQ,t)},gQ=we("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(Ct(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${JD.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${JD.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)}}}))),eR="tr",ui=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiTableRow"}),{className:o,component:a=eR,hover:s=!1,selected:l=!1,...u}=r,d=w.useContext(F0),p={...r,component:a,hover:s,selected:l,head:d&&d.variant==="head",footer:d&&d.variant==="footer"},h=mQ(p);return b.jsx(gQ,{as:a,ref:n,className:We(h.root,o),role:a===eR?null:"row",ownerState:p,...u})});function yQ(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function bQ(e,t,n,r={},o=()=>{}){const{ease:a=yQ,duration:s=300}=r;let l=null;const u=t[e];let d=!1;const p=()=>{d=!0},h=g=>{if(d){o(new Error("Animation cancelled"));return}l===null&&(l=g);const y=Math.min(1,(g-l)/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 vQ={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function EQ(e){const{onChange:t,...n}=e,r=w.useRef(),o=w.useRef(null),a=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return _o(()=>{const s=w0(()=>{const u=r.current;a(),u!==r.current&&t(r.current)}),l=Fa(o.current);return l.addEventListener("resize",s),()=>{s.clear(),l.removeEventListener("resize",s)}},[t]),w.useEffect(()=>{a(),t(r.current)},[t]),b.jsx("div",{style:vQ,...n,ref:o})}function xQ(e){return st("MuiTabScrollButton",e)}const TQ=ut("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),SQ=e=>{const{classes:t,orientation:n,disabled:r}=e;return lt({root:["root",n,r&&"disabled"]},xQ,t)},CQ=we(gi,{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,[`&.${TQ.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),_Q=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiTabScrollButton"}),{className:o,slots:a={},slotProps:s={},direction:l,orientation:u,disabled:d,...p}=r,h=Sh(),g={isRtl:h,...r},y=SQ(g),v=a.StartScrollButtonIcon??fQ,T=a.EndScrollButtonIcon??pQ,_=ac({elementType:v,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g}),x=ac({elementType:T,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g});return b.jsx(CQ,{component:"div",className:We(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:l==="left"?b.jsx(v,{..._}):b.jsx(T,{...x})})});function AQ(e){return st("MuiTabs",e)}const rE=ut("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),tR=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,nR=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,yg=(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}}},kQ=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:a,centered:s,scrollButtonsHideMobile:l,classes:u}=e;return lt({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",l&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},AQ,u)},wQ=we("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${rE.scrollButtons}`]:t.scrollButtons},{[`& .${rE.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(Ct(({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:{[`& .${rE.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),DQ=we("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"}}]}),RQ=we("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"}}]}),IQ=we("span",{name:"MuiTabs",slot:"Indicator"})(Ct(({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}}]}))),OQ=we(EQ)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),rR={},NQ=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiTabs"}),o=rl(),a=Sh(),{"aria-label":s,"aria-labelledby":l,action:u,centered:d=!1,children:p,className:h,component:g="div",allowScrollButtonsMobile:y=!1,indicatorColor:v="primary",onChange:T,orientation:_="horizontal",ScrollButtonComponent:x,scrollButtons:D="auto",selectionFollowsFocus:C,slots:R={},slotProps:I={},TabIndicatorProps:O={},TabScrollButtonProps:F={},textColor:H="primary",value:U,variant:S="standard",visibleScrollbar:M=!1,...$}=r,z=S==="scrollable",q=_==="vertical",Y=q?"scrollTop":"scrollLeft",B=q?"top":"left",K=q?"bottom":"right",ae=q?"clientHeight":"clientWidth",ne=q?"height":"width",N={...r,component:g,allowScrollButtonsMobile:y,indicatorColor:v,orientation:_,vertical:q,scrollButtons:D,textColor:H,variant:S,visibleScrollbar:M,fixed:!z,hideScrollbar:z&&!M,scrollableX:z&&!q,scrollableY:z&&q,centered:d&&!z,scrollButtonsHideMobile:!y},Q=kQ(N),X=ac({elementType:R.StartScrollButtonIcon,externalSlotProps:I.startScrollButtonIcon,ownerState:N}),P=ac({elementType:R.EndScrollButtonIcon,externalSlotProps:I.endScrollButtonIcon,ownerState:N}),[re,ce]=w.useState(!1),[oe,ve]=w.useState(rR),[be,qe]=w.useState(!1),[Me,Oe]=w.useState(!1),[Ke,at]=w.useState(!1),[Re,yt]=w.useState({overflow:"hidden",scrollbarWidth:0}),_t=new Map,He=w.useRef(null),mt=w.useRef(null),ct={slots:R,slotProps:{indicator:O,scrollButton:F,...I}},ft=()=>{const ee=He.current;let ie;if(ee){const Ae=ee.getBoundingClientRect();ie={clientWidth:ee.clientWidth,scrollLeft:ee.scrollLeft,scrollTop:ee.scrollTop,scrollWidth:ee.scrollWidth,top:Ae.top,bottom:Ae.bottom,left:Ae.left,right:Ae.right}}let Ee;if(ee&&U!==!1){const Ae=mt.current.children;if(Ae.length>0){const Qe=Ae[_t.get(U)];Ee=Qe?Qe.getBoundingClientRect():null}}return{tabsMeta:ie,tabMeta:Ee}},ze=va(()=>{const{tabsMeta:ee,tabMeta:ie}=ft();let Ee=0,Ae;q?(Ae="top",ie&&ee&&(Ee=ie.top-ee.top+ee.scrollTop)):(Ae=a?"right":"left",ie&&ee&&(Ee=(a?-1:1)*(ie[Ae]-ee[Ae]+ee.scrollLeft)));const Qe={[Ae]:Ee,[ne]:ie?ie[ne]:0};if(typeof oe[Ae]!="number"||typeof oe[ne]!="number")ve(Qe);else{const Je=Math.abs(oe[Ae]-Qe[Ae]),et=Math.abs(oe[ne]-Qe[ne]);(Je>=1||et>=1)&&ve(Qe)}}),Le=(ee,{animation:ie=!0}={})=>{ie?bQ(Y,He.current,ee,{duration:o.transitions.duration.standard}):He.current[Y]=ee},Xt=ee=>{let ie=He.current[Y];q?ie+=ee:ie+=ee*(a?-1:1),Le(ie)},Bt=()=>{const ee=He.current[ae];let ie=0;const Ee=Array.from(mt.current.children);for(let Ae=0;Ae<Ee.length;Ae+=1){const Qe=Ee[Ae];if(ie+Qe[ae]>ee){Ae===0&&(ie=ee);break}ie+=Qe[ae]}return ie},At=()=>{Xt(-1*Bt())},de=()=>{Xt(Bt())},[ye,{onChange:$e,...Xe}]=Pt("scrollbar",{className:We(Q.scrollableX,Q.hideScrollbar),elementType:OQ,shouldForwardComponentProp:!0,externalForwardedProps:ct,ownerState:N}),Et=w.useCallback(ee=>{$e?.(ee),yt({overflow:null,scrollbarWidth:ee})},[$e]),[Ze,Zt]=Pt("scrollButtons",{className:We(Q.scrollButtons,F.className),elementType:_Q,externalForwardedProps:ct,ownerState:N,additionalProps:{orientation:_,slots:{StartScrollButtonIcon:R.startScrollButtonIcon||R.StartScrollButtonIcon,EndScrollButtonIcon:R.endScrollButtonIcon||R.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:X,endScrollButtonIcon:P}}}),Vt=()=>{const ee={};ee.scrollbarSizeListener=z?b.jsx(ye,{...Xe,onChange:Et}):null;const Ee=z&&(D==="auto"&&(be||Me)||D===!0);return ee.scrollButtonStart=Ee?b.jsx(Ze,{direction:a?"right":"left",onClick:At,disabled:!be,...Zt}):null,ee.scrollButtonEnd=Ee?b.jsx(Ze,{direction:a?"left":"right",onClick:de,disabled:!Me,...Zt}):null,ee},tn=va(ee=>{const{tabsMeta:ie,tabMeta:Ee}=ft();if(!(!Ee||!ie)){if(Ee[B]<ie[B]){const Ae=ie[Y]+(Ee[B]-ie[B]);Le(Ae,{animation:ee})}else if(Ee[K]>ie[K]){const Ae=ie[Y]+(Ee[K]-ie[K]);Le(Ae,{animation:ee})}}}),he=va(()=>{z&&D!==!1&&at(!Ke)});w.useEffect(()=>{const ee=w0(()=>{He.current&&ze()});let ie;const Ee=Je=>{Je.forEach(et=>{et.removedNodes.forEach(it=>{ie?.unobserve(it)}),et.addedNodes.forEach(it=>{ie?.observe(it)})}),ee(),he()},Ae=Fa(He.current);Ae.addEventListener("resize",ee);let Qe;return typeof ResizeObserver<"u"&&(ie=new ResizeObserver(ee),Array.from(mt.current.children).forEach(Je=>{ie.observe(Je)})),typeof MutationObserver<"u"&&(Qe=new MutationObserver(Ee),Qe.observe(mt.current,{childList:!0})),()=>{ee.clear(),Ae.removeEventListener("resize",ee),Qe?.disconnect(),ie?.disconnect()}},[ze,he]),w.useEffect(()=>{const ee=Array.from(mt.current.children),ie=ee.length;if(typeof IntersectionObserver<"u"&&ie>0&&z&&D!==!1){const Ee=ee[0],Ae=ee[ie-1],Qe={root:He.current,threshold:.99},Je=rt=>{qe(!rt[0].isIntersecting)},et=new IntersectionObserver(Je,Qe);et.observe(Ee);const it=rt=>{Oe(!rt[0].isIntersecting)},gt=new IntersectionObserver(it,Qe);return gt.observe(Ae),()=>{et.disconnect(),gt.disconnect()}}},[z,D,Ke,p?.length]),w.useEffect(()=>{ce(!0)},[]),w.useEffect(()=>{ze()}),w.useEffect(()=>{tn(rR!==oe)},[tn,oe]),w.useImperativeHandle(u,()=>({updateIndicator:ze,updateScrollButtons:he}),[ze,he]);const[xe,tt]=Pt("indicator",{className:We(Q.indicator,O.className),elementType:IQ,externalForwardedProps:ct,ownerState:N,additionalProps:{style:oe}}),nt=b.jsx(xe,{...tt});let rn=0;const Pr=w.Children.map(p,ee=>{if(!w.isValidElement(ee))return null;const ie=ee.props.value===void 0?rn:ee.props.value;_t.set(ie,rn);const Ee=ie===U;return rn+=1,w.cloneElement(ee,{fullWidth:S==="fullWidth",indicator:Ee&&!re&&nt,selected:Ee,selectionFollowsFocus:C,onChange:T,textColor:H,value:ie,...rn===1&&U===!1&&!ee.props.tabIndex?{tabIndex:0}:{}})}),Er=ee=>{if(ee.altKey||ee.shiftKey||ee.ctrlKey||ee.metaKey)return;const ie=mt.current,Ee=Ao(ie).activeElement;if(Ee.getAttribute("role")!=="tab")return;let Qe=_==="horizontal"?"ArrowLeft":"ArrowUp",Je=_==="horizontal"?"ArrowRight":"ArrowDown";switch(_==="horizontal"&&a&&(Qe="ArrowRight",Je="ArrowLeft"),ee.key){case Qe:ee.preventDefault(),yg(ie,Ee,nR);break;case Je:ee.preventDefault(),yg(ie,Ee,tR);break;case"Home":ee.preventDefault(),yg(ie,null,tR);break;case"End":ee.preventDefault(),yg(ie,null,nR);break}},qn=Vt(),[ur,uo]=Pt("root",{ref:n,className:We(Q.root,h),elementType:wQ,externalForwardedProps:{...ct,...$,component:g},ownerState:N}),[En,Lr]=Pt("scroller",{ref:He,className:Q.scroller,elementType:DQ,externalForwardedProps:ct,ownerState:N,additionalProps:{style:{overflow:Re.overflow,[q?`margin${a?"Left":"Right"}`:"marginBottom"]:M?void 0:-Re.scrollbarWidth}}}),[bt,te]=Pt("list",{ref:mt,className:We(Q.list,Q.flexContainer),elementType:RQ,externalForwardedProps:ct,ownerState:N,getSlotProps:ee=>({...ee,onKeyDown:ie=>{Er(ie),ee.onKeyDown?.(ie)}})});return b.jsxs(ur,{...uo,children:[qn.scrollButtonStart,qn.scrollbarSizeListener,b.jsxs(En,{...Lr,children:[b.jsx(bt,{"aria-label":s,"aria-labelledby":l,"aria-orientation":_==="vertical"?"vertical":null,role:"tablist",...te,children:Pr}),re&&nt]}),qn.scrollButtonEnd]})});function PQ(e){return st("MuiTextField",e)}ut("MuiTextField",["root"]);const LQ={standard:PS,filled:NS,outlined:MS},MQ=e=>{const{classes:t}=e;return lt({root:["root"]},PQ,t)},FQ=we(Ay,{name:"MuiTextField",slot:"Root"})({}),BQ=w.forwardRef(function(t,n){const r=dt({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:s,className:l,color:u="primary",defaultValue:d,disabled:p=!1,error:h=!1,FormHelperTextProps:g,fullWidth:y=!1,helperText:v,id:T,InputLabelProps:_,inputProps:x,InputProps:D,inputRef:C,label:R,maxRows:I,minRows:O,multiline:F=!1,name:H,onBlur:U,onChange:S,onFocus:M,placeholder:$,required:z=!1,rows:q,select:Y=!1,SelectProps:B,slots:K={},slotProps:ae={},type:ne,value:N,variant:Q="outlined",...X}=r,P={...r,autoFocus:a,color:u,disabled:p,error:h,fullWidth:y,multiline:F,required:z,select:Y,variant:Q},re=MQ(P),ce=yc(T),oe=v&&ce?`${ce}-helper-text`:void 0,ve=R&&ce?`${ce}-label`:void 0,be=LQ[Q],qe={slots:K,slotProps:{input:D,inputLabel:_,htmlInput:x,formHelperText:g,select:B,...ae}},Me={},Oe=qe.slotProps.inputLabel;Q==="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[Ke,at]=Pt("root",{elementType:FQ,shouldForwardComponentProp:!0,externalForwardedProps:{...qe,...X},ownerState:P,className:We(re.root,l),ref:n,additionalProps:{disabled:p,error:h,fullWidth:y,required:z,color:u,variant:Q}}),[Re,yt]=Pt("input",{elementType:be,externalForwardedProps:qe,additionalProps:Me,ownerState:P}),[_t,He]=Pt("inputLabel",{elementType:k5,externalForwardedProps:qe,ownerState:P}),[mt,ct]=Pt("htmlInput",{elementType:"input",externalForwardedProps:qe,ownerState:P}),[ft,ze]=Pt("formHelperText",{elementType:cW,externalForwardedProps:qe,ownerState:P}),[Le,Xt]=Pt("select",{elementType:BS,externalForwardedProps:qe,ownerState:P}),Bt=b.jsx(Re,{"aria-describedby":oe,autoComplete:o,autoFocus:a,defaultValue:d,fullWidth:y,multiline:F,name:H,rows:q,maxRows:I,minRows:O,type:ne,value:N,id:ce,inputRef:C,onBlur:U,onChange:S,onFocus:M,placeholder:$,inputProps:ct,slots:{input:K.htmlInput?mt:void 0},...yt});return b.jsxs(Ke,{...at,children:[R!=null&&R!==""&&b.jsx(_t,{htmlFor:ce,id:ve,...He,children:R}),Y?b.jsx(Le,{"aria-describedby":oe,id:ce,labelId:ve,value:N,input:Bt,...Xt,children:s}):Bt,v&&b.jsx(ft,{id:oe,...ze,children:v})]})});function M5(e,t){return function(){return e.apply(t,arguments)}}const{toString:jQ}=Object.prototype,{getPrototypeOf:US}=Object,{iterator:B0,toStringTag:F5}=Symbol,j0=(e=>t=>{const n=jQ.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),za=e=>(e=e.toLowerCase(),t=>j0(t)===e),U0=e=>t=>typeof t===e,{isArray:pd}=Array,qp=U0("undefined");function kh(e){return e!==null&&!qp(e)&&e.constructor!==null&&!qp(e.constructor)&&To(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const B5=za("ArrayBuffer");function UQ(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&B5(e.buffer),t}const HQ=U0("string"),To=U0("function"),j5=U0("number"),wh=e=>e!==null&&typeof e=="object",zQ=e=>e===!0||e===!1,Wg=e=>{if(j0(e)!=="object")return!1;const t=US(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(F5 in e)&&!(B0 in e)},$Q=e=>{if(!wh(e)||kh(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},VQ=za("Date"),GQ=za("File"),qQ=za("Blob"),WQ=za("FileList"),YQ=e=>wh(e)&&To(e.pipe),QQ=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||To(e.append)&&((t=j0(e))==="formdata"||t==="object"&&To(e.toString)&&e.toString()==="[object FormData]"))},KQ=za("URLSearchParams"),[XQ,ZQ,JQ,eK]=["ReadableStream","Request","Response","Headers"].map(za),tK=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Dh(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),pd(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(kh(e))return;const a=n?Object.getOwnPropertyNames(e):Object.keys(e),s=a.length;let l;for(r=0;r<s;r++)l=a[r],t.call(null,e[l],l,e)}}function U5(e,t){if(kh(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const zl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,H5=e=>!qp(e)&&e!==zl;function Ox(){const{caseless:e}=H5(this)&&this||{},t={},n=(r,o)=>{const a=e&&U5(t,o)||o;Wg(t[a])&&Wg(r)?t[a]=Ox(t[a],r):Wg(r)?t[a]=Ox({},r):pd(r)?t[a]=r.slice():t[a]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Dh(arguments[r],n);return t}const nK=(e,t,n,{allOwnKeys:r}={})=>(Dh(t,(o,a)=>{n&&To(o)?e[a]=M5(o,n):e[a]=o},{allOwnKeys:r}),e),rK=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),oK=(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)},aK=(e,t,n,r)=>{let o,a,s;const l={};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))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&US(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},iK=(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},sK=e=>{if(!e)return null;if(pd(e))return e;let t=e.length;if(!j5(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},lK=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&US(Uint8Array)),cK=(e,t)=>{const r=(e&&e[B0]).call(e);let o;for(;(o=r.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},uK=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},dK=za("HTMLFormElement"),fK=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),oR=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),pK=za("RegExp"),z5=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Dh(n,(o,a)=>{let s;(s=t(o,a,e))!==!1&&(r[a]=s||o)}),Object.defineProperties(e,r)},hK=e=>{z5(e,(t,n)=>{if(To(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(To(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+"'")})}})},mK=(e,t)=>{const n={},r=o=>{o.forEach(a=>{n[a]=!0})};return pd(e)?r(e):r(String(e).split(t)),n},gK=()=>{},yK=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function bK(e){return!!(e&&To(e.append)&&e[F5]==="FormData"&&e[B0])}const vK=e=>{const t=new Array(10),n=(r,o)=>{if(wh(r)){if(t.indexOf(r)>=0)return;if(kh(r))return r;if(!("toJSON"in r)){t[o]=r;const a=pd(r)?[]:{};return Dh(r,(s,l)=>{const u=n(s,o+1);!qp(u)&&(a[l]=u)}),t[o]=void 0,a}}return r};return n(e,0)},EK=za("AsyncFunction"),xK=e=>e&&(wh(e)||To(e))&&To(e.then)&&To(e.catch),$5=((e,t)=>e?setImmediate:t?((n,r)=>(zl.addEventListener("message",({source:o,data:a})=>{o===zl&&a===n&&r.length&&r.shift()()},!1),o=>{r.push(o),zl.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",To(zl.postMessage)),TK=typeof queueMicrotask<"u"?queueMicrotask.bind(zl):typeof process<"u"&&process.nextTick||$5,SK=e=>e!=null&&To(e[B0]),Te={isArray:pd,isArrayBuffer:B5,isBuffer:kh,isFormData:QQ,isArrayBufferView:UQ,isString:HQ,isNumber:j5,isBoolean:zQ,isObject:wh,isPlainObject:Wg,isEmptyObject:$Q,isReadableStream:XQ,isRequest:ZQ,isResponse:JQ,isHeaders:eK,isUndefined:qp,isDate:VQ,isFile:GQ,isBlob:qQ,isRegExp:pK,isFunction:To,isStream:YQ,isURLSearchParams:KQ,isTypedArray:lK,isFileList:WQ,forEach:Dh,merge:Ox,extend:nK,trim:tK,stripBOM:rK,inherits:oK,toFlatObject:aK,kindOf:j0,kindOfTest:za,endsWith:iK,toArray:sK,forEachEntry:cK,matchAll:uK,isHTMLForm:dK,hasOwnProperty:oR,hasOwnProp:oR,reduceDescriptors:z5,freezeMethods:hK,toObjectSet:mK,toCamelCase:fK,noop:gK,toFiniteNumber:yK,findKey:U5,global:zl,isContextDefined:H5,isSpecCompliantForm:bK,toJSONObject:vK,isAsyncFn:EK,isThenable:xK,setImmediate:$5,asap:TK,isIterable:SK};function Nt(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)}Te.inherits(Nt,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:Te.toJSONObject(this.config),code:this.code,status:this.status}}});const V5=Nt.prototype,G5={};["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=>{G5[e]={value:e}});Object.defineProperties(Nt,G5);Object.defineProperty(V5,"isAxiosError",{value:!0});Nt.from=(e,t,n,r,o,a)=>{const s=Object.create(V5);return Te.toFlatObject(e,s,function(u){return u!==Error.prototype},l=>l!=="isAxiosError"),Nt.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,a&&Object.assign(s,a),s};const CK=null;function Nx(e){return Te.isPlainObject(e)||Te.isArray(e)}function q5(e){return Te.endsWith(e,"[]")?e.slice(0,-2):e}function aR(e,t,n){return e?e.concat(t).map(function(o,a){return o=q5(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function _K(e){return Te.isArray(e)&&!e.some(Nx)}const AK=Te.toFlatObject(Te,{},null,function(t){return/^is[A-Z]/.test(t)});function H0(e,t,n){if(!Te.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Te.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(T,_){return!Te.isUndefined(_[T])});const r=n.metaTokens,o=n.visitor||p,a=n.dots,s=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&Te.isSpecCompliantForm(t);if(!Te.isFunction(o))throw new TypeError("visitor must be a function");function d(v){if(v===null)return"";if(Te.isDate(v))return v.toISOString();if(Te.isBoolean(v))return v.toString();if(!u&&Te.isBlob(v))throw new Nt("Blob is not supported. Use a Buffer instead.");return Te.isArrayBuffer(v)||Te.isTypedArray(v)?u&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function p(v,T,_){let x=v;if(v&&!_&&typeof v=="object"){if(Te.endsWith(T,"{}"))T=r?T:T.slice(0,-2),v=JSON.stringify(v);else if(Te.isArray(v)&&_K(v)||(Te.isFileList(v)||Te.endsWith(T,"[]"))&&(x=Te.toArray(v)))return T=q5(T),x.forEach(function(C,R){!(Te.isUndefined(C)||C===null)&&t.append(s===!0?aR([T],R,a):s===null?T:T+"[]",d(C))}),!1}return Nx(v)?!0:(t.append(aR(_,T,a),d(v)),!1)}const h=[],g=Object.assign(AK,{defaultVisitor:p,convertValue:d,isVisitable:Nx});function y(v,T){if(!Te.isUndefined(v)){if(h.indexOf(v)!==-1)throw Error("Circular reference detected in "+T.join("."));h.push(v),Te.forEach(v,function(x,D){(!(Te.isUndefined(x)||x===null)&&o.call(t,x,Te.isString(D)?D.trim():D,T,g))===!0&&y(x,T?T.concat(D):[D])}),h.pop()}}if(!Te.isObject(e))throw new TypeError("data must be an object");return y(e),t}function iR(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function HS(e,t){this._pairs=[],e&&H0(e,this,t)}const W5=HS.prototype;W5.append=function(t,n){this._pairs.push([t,n])};W5.toString=function(t){const n=t?function(r){return t.call(this,r,iR)}:iR;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function kK(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Y5(e,t,n){if(!t)return e;const r=n&&n.encode||kK;Te.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let a;if(o?a=o(t,n):a=Te.isURLSearchParams(t)?t.toString():new HS(t,n).toString(r),a){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class sR{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){Te.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Q5={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},wK=typeof URLSearchParams<"u"?URLSearchParams:HS,DK=typeof FormData<"u"?FormData:null,RK=typeof Blob<"u"?Blob:null,IK={isBrowser:!0,classes:{URLSearchParams:wK,FormData:DK,Blob:RK},protocols:["http","https","file","blob","url","data"]},zS=typeof window<"u"&&typeof document<"u",Px=typeof navigator=="object"&&navigator||void 0,OK=zS&&(!Px||["ReactNative","NativeScript","NS"].indexOf(Px.product)<0),NK=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",PK=zS&&window.location.href||"http://localhost",LK=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:zS,hasStandardBrowserEnv:OK,hasStandardBrowserWebWorkerEnv:NK,navigator:Px,origin:PK},Symbol.toStringTag,{value:"Module"})),Yr={...LK,...IK};function MK(e,t){return H0(e,new Yr.classes.URLSearchParams,{visitor:function(n,r,o,a){return Yr.isNode&&Te.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function FK(e){return Te.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function BK(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 K5(e){function t(n,r,o,a){let s=n[a++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),u=a>=n.length;return s=!s&&Te.isArray(o)?o.length:s,u?(Te.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!l):((!o[s]||!Te.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],a)&&Te.isArray(o[s])&&(o[s]=BK(o[s])),!l)}if(Te.isFormData(e)&&Te.isFunction(e.entries)){const n={};return Te.forEachEntry(e,(r,o)=>{t(FK(r),o,n,0)}),n}return null}function jK(e,t,n){if(Te.isString(e))try{return(t||JSON.parse)(e),Te.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Rh={transitional:Q5,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=Te.isObject(t);if(a&&Te.isHTMLForm(t)&&(t=new FormData(t)),Te.isFormData(t))return o?JSON.stringify(K5(t)):t;if(Te.isArrayBuffer(t)||Te.isBuffer(t)||Te.isStream(t)||Te.isFile(t)||Te.isBlob(t)||Te.isReadableStream(t))return t;if(Te.isArrayBufferView(t))return t.buffer;if(Te.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return MK(t,this.formSerializer).toString();if((l=Te.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return H0(l?{"files[]":t}:t,u&&new u,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),jK(t)):t}],transformResponse:[function(t){const n=this.transitional||Rh.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Te.isResponse(t)||Te.isReadableStream(t))return t;if(t&&Te.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(s)throw l.name==="SyntaxError"?Nt.from(l,Nt.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Yr.classes.FormData,Blob:Yr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Te.forEach(["delete","get","head","post","put","patch"],e=>{Rh.headers[e]={}});const UK=Te.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"]),HK=e=>{const t={};let n,r,o;return e&&e.split(`
|
|
215
|
+
`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&UK[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},lR=Symbol("internals");function Pf(e){return e&&String(e).trim().toLowerCase()}function Yg(e){return e===!1||e==null?e:Te.isArray(e)?e.map(Yg):String(e)}function zK(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 $K=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function oE(e,t,n,r,o){if(Te.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Te.isString(t)){if(Te.isString(r))return t.indexOf(r)!==-1;if(Te.isRegExp(r))return r.test(t)}}function VK(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function GK(e,t){const n=Te.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 So=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function a(l,u,d){const p=Pf(u);if(!p)throw new Error("header name must be a non-empty string");const h=Te.findKey(o,p);(!h||o[h]===void 0||d===!0||d===void 0&&o[h]!==!1)&&(o[h||u]=Yg(l))}const s=(l,u)=>Te.forEach(l,(d,p)=>a(d,p,u));if(Te.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(Te.isString(t)&&(t=t.trim())&&!$K(t))s(HK(t),n);else if(Te.isObject(t)&&Te.isIterable(t)){let l={},u,d;for(const p of t){if(!Te.isArray(p))throw TypeError("Object iterator must return a key-value pair");l[d=p[0]]=(u=l[d])?Te.isArray(u)?[...u,p[1]]:[u,p[1]]:p[1]}s(l,n)}else t!=null&&a(n,t,r);return this}get(t,n){if(t=Pf(t),t){const r=Te.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return zK(o);if(Te.isFunction(n))return n.call(this,o,r);if(Te.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Pf(t),t){const r=Te.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||oE(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function a(s){if(s=Pf(s),s){const l=Te.findKey(r,s);l&&(!n||oE(r,r[l],l,n))&&(delete r[l],o=!0)}}return Te.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||oE(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,r={};return Te.forEach(this,(o,a)=>{const s=Te.findKey(r,a);if(s){n[s]=Yg(o),delete n[a];return}const l=t?VK(a):String(a).trim();l!==a&&delete n[a],n[l]=Yg(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Te.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Te.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(`
|
|
216
|
+
`)}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[lR]=this[lR]={accessors:{}}).accessors,o=this.prototype;function a(s){const l=Pf(s);r[l]||(GK(o,s),r[l]=!0)}return Te.isArray(t)?t.forEach(a):a(t),this}};So.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Te.reduceDescriptors(So.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Te.freezeMethods(So);function aE(e,t){const n=this||Rh,r=t||n,o=So.from(r.headers);let a=r.data;return Te.forEach(e,function(l){a=l.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function X5(e){return!!(e&&e.__CANCEL__)}function hd(e,t,n){Nt.call(this,e??"canceled",Nt.ERR_CANCELED,t,n),this.name="CanceledError"}Te.inherits(hd,Nt,{__CANCEL__:!0});function Z5(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Nt("Request failed with status code "+n.status,[Nt.ERR_BAD_REQUEST,Nt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function qK(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function WK(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 YK(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(...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 Dy=(e,t,n=3)=>{let r=0;const o=WK(50,250);return YK(a=>{const s=a.loaded,l=a.lengthComputable?a.total:void 0,u=s-r,d=o(u),p=s<=l;r=s;const h={loaded:s,total:l,progress:l?s/l:void 0,bytes:u,rate:d||void 0,estimated:d&&l&&p?(l-s)/d:void 0,event:a,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(h)},n)},cR=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},uR=e=>(...t)=>Te.asap(()=>e(...t)),QK=Yr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Yr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Yr.origin),Yr.navigator&&/(msie|trident)/i.test(Yr.navigator.userAgent)):()=>!0,KK=Yr.hasStandardBrowserEnv?{write(e,t,n,r,o,a){const s=[e+"="+encodeURIComponent(t)];Te.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),Te.isString(r)&&s.push("path="+r),Te.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 XK(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ZK(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function J5(e,t,n){let r=!XK(t);return e&&(r||n==!1)?ZK(e,t):t}const dR=e=>e instanceof So?{...e}:e;function ic(e,t){t=t||{};const n={};function r(d,p,h,g){return Te.isPlainObject(d)&&Te.isPlainObject(p)?Te.merge.call({caseless:g},d,p):Te.isPlainObject(p)?Te.merge({},p):Te.isArray(p)?p.slice():p}function o(d,p,h,g){if(Te.isUndefined(p)){if(!Te.isUndefined(d))return r(void 0,d,h,g)}else return r(d,p,h,g)}function a(d,p){if(!Te.isUndefined(p))return r(void 0,p)}function s(d,p){if(Te.isUndefined(p)){if(!Te.isUndefined(d))return r(void 0,d)}else return r(void 0,p)}function l(d,p,h){if(h in t)return r(d,p);if(h in e)return r(void 0,d)}const u={url:a,method:a,data:a,baseURL: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:l,headers:(d,p,h)=>o(dR(d),dR(p),h,!0)};return Te.forEach(Object.keys({...e,...t}),function(p){const h=u[p]||o,g=h(e[p],t[p],p);Te.isUndefined(g)&&h!==l||(n[p]=g)}),n}const eP=e=>{const t=ic({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=t;t.headers=s=So.from(s),t.url=Y5(J5(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let u;if(Te.isFormData(n)){if(Yr.hasStandardBrowserEnv||Yr.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(Yr.hasStandardBrowserEnv&&(r&&Te.isFunction(r)&&(r=r(t)),r||r!==!1&&QK(t.url))){const d=o&&a&&KK.read(a);d&&s.set(o,d)}return t},JK=typeof XMLHttpRequest<"u",eX=JK&&function(e){return new Promise(function(n,r){const o=eP(e);let a=o.data;const s=So.from(o.headers).normalize();let{responseType:l,onUploadProgress:u,onDownloadProgress:d}=o,p,h,g,y,v;function T(){y&&y(),v&&v(),o.cancelToken&&o.cancelToken.unsubscribe(p),o.signal&&o.signal.removeEventListener("abort",p)}let _=new XMLHttpRequest;_.open(o.method.toUpperCase(),o.url,!0),_.timeout=o.timeout;function x(){if(!_)return;const C=So.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),I={data:!l||l==="text"||l==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:C,config:e,request:_};Z5(function(F){n(F),T()},function(F){r(F),T()},I),_=null}"onloadend"in _?_.onloadend=x:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(x)},_.onabort=function(){_&&(r(new Nt("Request aborted",Nt.ECONNABORTED,e,_)),_=null)},_.onerror=function(){r(new Nt("Network Error",Nt.ERR_NETWORK,e,_)),_=null},_.ontimeout=function(){let R=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const I=o.transitional||Q5;o.timeoutErrorMessage&&(R=o.timeoutErrorMessage),r(new Nt(R,I.clarifyTimeoutError?Nt.ETIMEDOUT:Nt.ECONNABORTED,e,_)),_=null},a===void 0&&s.setContentType(null),"setRequestHeader"in _&&Te.forEach(s.toJSON(),function(R,I){_.setRequestHeader(I,R)}),Te.isUndefined(o.withCredentials)||(_.withCredentials=!!o.withCredentials),l&&l!=="json"&&(_.responseType=o.responseType),d&&([g,v]=Dy(d,!0),_.addEventListener("progress",g)),u&&_.upload&&([h,y]=Dy(u),_.upload.addEventListener("progress",h),_.upload.addEventListener("loadend",y)),(o.cancelToken||o.signal)&&(p=C=>{_&&(r(!C||C.type?new hd(null,e,_):C),_.abort(),_=null)},o.cancelToken&&o.cancelToken.subscribe(p),o.signal&&(o.signal.aborted?p():o.signal.addEventListener("abort",p)));const D=qK(o.url);if(D&&Yr.protocols.indexOf(D)===-1){r(new Nt("Unsupported protocol "+D+":",Nt.ERR_BAD_REQUEST,e));return}_.send(a||null)})},tX=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const a=function(d){if(!o){o=!0,l();const p=d instanceof Error?d:this.reason;r.abort(p instanceof Nt?p:new hd(p instanceof Error?p.message:p))}};let s=t&&setTimeout(()=>{s=null,a(new Nt(`timeout ${t} of ms exceeded`,Nt.ETIMEDOUT))},t);const l=()=>{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=()=>Te.asap(l),u}},nX=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},rX=async function*(e,t){for await(const n of oX(e))yield*nX(n,t)},oX=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()}},fR=(e,t,n,r)=>{const o=rX(e,t);let a=0,s,l=u=>{s||(s=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:d,value:p}=await o.next();if(d){l(),u.close();return}let h=p.byteLength;if(n){let g=a+=h;n(g)}u.enqueue(new Uint8Array(p))}catch(d){throw l(d),d}},cancel(u){return l(u),o.return()}},{highWaterMark:2})},z0=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",tP=z0&&typeof ReadableStream=="function",aX=z0&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),nP=(e,...t)=>{try{return!!e(...t)}catch{return!1}},iX=tP&&nP(()=>{let e=!1;const t=new Request(Yr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),pR=64*1024,Lx=tP&&nP(()=>Te.isReadableStream(new Response("").body)),Ry={stream:Lx&&(e=>e.body)};z0&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Ry[t]&&(Ry[t]=Te.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Nt(`Response type '${t}' is not supported`,Nt.ERR_NOT_SUPPORT,r)})})})(new Response);const sX=async e=>{if(e==null)return 0;if(Te.isBlob(e))return e.size;if(Te.isSpecCompliantForm(e))return(await new Request(Yr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Te.isArrayBufferView(e)||Te.isArrayBuffer(e))return e.byteLength;if(Te.isURLSearchParams(e)&&(e=e+""),Te.isString(e))return(await aX(e)).byteLength},lX=async(e,t)=>{const n=Te.toFiniteNumber(e.getContentLength());return n??sX(t)},cX=z0&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:a,timeout:s,onDownloadProgress:l,onUploadProgress:u,responseType:d,headers:p,withCredentials:h="same-origin",fetchOptions:g}=eP(e);d=d?(d+"").toLowerCase():"text";let y=tX([o,a&&a.toAbortSignal()],s),v;const T=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let _;try{if(u&&iX&&n!=="get"&&n!=="head"&&(_=await lX(p,r))!==0){let I=new Request(t,{method:"POST",body:r,duplex:"half"}),O;if(Te.isFormData(r)&&(O=I.headers.get("content-type"))&&p.setContentType(O),I.body){const[F,H]=cR(_,Dy(uR(u)));r=fR(I.body,pR,F,H)}}Te.isString(h)||(h=h?"include":"omit");const x="credentials"in Request.prototype;v=new Request(t,{...g,signal:y,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:x?h:void 0});let D=await fetch(v,g);const C=Lx&&(d==="stream"||d==="response");if(Lx&&(l||C&&T)){const I={};["status","statusText","headers"].forEach(U=>{I[U]=D[U]});const O=Te.toFiniteNumber(D.headers.get("content-length")),[F,H]=l&&cR(O,Dy(uR(l),!0))||[];D=new Response(fR(D.body,pR,F,()=>{H&&H(),T&&T()}),I)}d=d||"text";let R=await Ry[Te.findKey(Ry,d)||"text"](D,e);return!C&&T&&T(),await new Promise((I,O)=>{Z5(I,O,{data:R,headers:So.from(D.headers),status:D.status,statusText:D.statusText,config:e,request:v})})}catch(x){throw T&&T(),x&&x.name==="TypeError"&&/Load failed|fetch/i.test(x.message)?Object.assign(new Nt("Network Error",Nt.ERR_NETWORK,e,v),{cause:x.cause||x}):Nt.from(x,x&&x.code,e,v)}}),Mx={http:CK,xhr:eX,fetch:cX};Te.forEach(Mx,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const hR=e=>`- ${e}`,uX=e=>Te.isFunction(e)||e===null||e===!1,rP={getAdapter:e=>{e=Te.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,!uX(n)&&(r=Mx[(s=String(n)).toLowerCase()],r===void 0))throw new Nt(`Unknown adapter '${s}'`);if(r)break;o[s||"#"+a]=r}if(!r){const a=Object.entries(o).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=t?a.length>1?`since :
|
|
217
|
+
`+a.map(hR).join(`
|
|
218
|
+
`):" "+hR(a[0]):"as no adapter specified";throw new Nt("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:Mx};function iE(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new hd(null,e)}function mR(e){return iE(e),e.headers=So.from(e.headers),e.data=aE.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),rP.getAdapter(e.adapter||Rh.adapter)(e).then(function(r){return iE(e),r.data=aE.call(e,e.transformResponse,r),r.headers=So.from(r.headers),r},function(r){return X5(r)||(iE(e),r&&r.response&&(r.response.data=aE.call(e,e.transformResponse,r.response),r.response.headers=So.from(r.response.headers))),Promise.reject(r)})}const oP="1.11.0",$0={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{$0[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const gR={};$0.transitional=function(t,n,r){function o(a,s){return"[Axios v"+oP+"] Transitional option '"+a+"'"+s+(r?". "+r:"")}return(a,s,l)=>{if(t===!1)throw new Nt(o(s," has been removed"+(n?" in "+n:"")),Nt.ERR_DEPRECATED);return n&&!gR[s]&&(gR[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,s,l):!0}};$0.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function dX(e,t,n){if(typeof e!="object")throw new Nt("options must be an object",Nt.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 l=e[a],u=l===void 0||s(l,a,e);if(u!==!0)throw new Nt("option "+a+" must be "+u,Nt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Nt("Unknown option "+a,Nt.ERR_BAD_OPTION)}}const Qg={assertOptions:dX,validators:$0},Za=Qg.validators;let Zl=class{constructor(t){this.defaults=t||{},this.interceptors={request:new sR,response:new sR}}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+=`
|
|
219
|
+
`+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ic(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:a}=n;r!==void 0&&Qg.assertOptions(r,{silentJSONParsing:Za.transitional(Za.boolean),forcedJSONParsing:Za.transitional(Za.boolean),clarifyTimeoutError:Za.transitional(Za.boolean)},!1),o!=null&&(Te.isFunction(o)?n.paramsSerializer={serialize:o}:Qg.assertOptions(o,{encode:Za.function,serialize:Za.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Qg.assertOptions(n,{baseUrl:Za.spelling("baseURL"),withXsrfToken:Za.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=a&&Te.merge(a.common,a[n.method]);a&&Te.forEach(["delete","get","head","post","put","patch","common"],v=>{delete a[v]}),n.headers=So.concat(s,a);const l=[];let u=!0;this.interceptors.request.forEach(function(T){typeof T.runWhen=="function"&&T.runWhen(n)===!1||(u=u&&T.synchronous,l.unshift(T.fulfilled,T.rejected))});const d=[];this.interceptors.response.forEach(function(T){d.push(T.fulfilled,T.rejected)});let p,h=0,g;if(!u){const v=[mR.bind(this),void 0];for(v.unshift(...l),v.push(...d),g=v.length,p=Promise.resolve(n);h<g;)p=p.then(v[h++],v[h++]);return p}g=l.length;let y=n;for(h=0;h<g;){const v=l[h++],T=l[h++];try{y=v(y)}catch(_){T.call(this,_);break}}try{p=mR.call(this,y)}catch(v){return Promise.reject(v)}for(h=0,g=d.length;h<g;)p=p.then(d[h++],d[h++]);return p}getUri(t){t=ic(this.defaults,t);const n=J5(t.baseURL,t.url,t.allowAbsoluteUrls);return Y5(n,t.params,t.paramsSerializer)}};Te.forEach(["delete","get","head","options"],function(t){Zl.prototype[t]=function(n,r){return this.request(ic(r||{},{method:t,url:n,data:(r||{}).data}))}});Te.forEach(["post","put","patch"],function(t){function n(r){return function(a,s,l){return this.request(ic(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:s}))}}Zl.prototype[t]=n(),Zl.prototype[t+"Form"]=n(!0)});let fX=class aP{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(l=>{r.subscribe(l),a=l}).then(o);return s.cancel=function(){r.unsubscribe(a)},s},t(function(a,s,l){r.reason||(r.reason=new hd(a,s,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new aP(function(o){t=o}),cancel:t}}};function pX(e){return function(n){return e.apply(null,n)}}function hX(e){return Te.isObject(e)&&e.isAxiosError===!0}const Fx={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(Fx).forEach(([e,t])=>{Fx[t]=e});function iP(e){const t=new Zl(e),n=M5(Zl.prototype.request,t);return Te.extend(n,Zl.prototype,t,{allOwnKeys:!0}),Te.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return iP(ic(e,o))},n}const wt=iP(Rh);wt.Axios=Zl;wt.CanceledError=hd;wt.CancelToken=fX;wt.isCancel=X5;wt.VERSION=oP;wt.toFormData=H0;wt.AxiosError=Nt;wt.Cancel=wt.CanceledError;wt.all=function(t){return Promise.all(t)};wt.spread=pX;wt.isAxiosError=hX;wt.mergeConfig=ic;wt.AxiosHeaders=So;wt.formToJSON=e=>K5(Te.isHTMLForm(e)?new FormData(e):e);wt.getAdapter=rP.getAdapter;wt.HttpStatusCode=Fx;wt.default=wt;const{Axios:TEe,AxiosError:SEe,CanceledError:CEe,isCancel:_Ee,CancelToken:AEe,VERSION:kEe,all:wEe,Cancel:DEe,isAxiosError:REe,spread:IEe,toFormData:OEe,AxiosHeaders:NEe,HttpStatusCode:PEe,formToJSON:LEe,getAdapter:MEe,mergeConfig:FEe}=wt;var md=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(){}},sc=typeof window>"u"||"Deno"in globalThis;function oo(){}function mX(e,t){return typeof e=="function"?e(t):e}function Bx(e){return typeof e=="number"&&e>=0&&e!==1/0}function sP(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ys(e,t){return typeof e=="function"?e(t):e}function da(e,t){return typeof e=="function"?e(t):e}function yR(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:a,queryKey:s,stale:l}=e;if(s){if(r){if(t.queryHash!==$S(s,t.options))return!1}else if(!Wp(t.queryKey,s))return!1}if(n!=="all"){const u=t.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||o&&o!==t.state.fetchStatus||a&&!a(t))}function bR(e,t){const{exact:n,status:r,predicate:o,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(lc(t.options.mutationKey)!==lc(a))return!1}else if(!Wp(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function $S(e,t){return(t?.queryKeyHashFn||lc)(e)}function lc(e){return JSON.stringify(e,(t,n)=>jx(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Wp(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Wp(e[n],t[n])):!1}function lP(e,t){if(e===t)return e;const n=vR(e)&&vR(t);if(n||jx(e)&&jx(t)){const r=n?e:Object.keys(e),o=r.length,a=n?t:Object.keys(t),s=a.length,l=n?[]:{},u=new Set(r);let d=0;for(let p=0;p<s;p++){const h=n?p:a[p];(!n&&u.has(h)||n)&&e[h]===void 0&&t[h]===void 0?(l[h]=void 0,d++):(l[h]=lP(e[h],t[h]),l[h]===e[h]&&e[h]!==void 0&&d++)}return o===s&&d===o?e:l}return t}function Iy(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 vR(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function jx(e){if(!ER(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!ER(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function ER(e){return Object.prototype.toString.call(e)==="[object Object]"}function gX(e){return new Promise(t=>{setTimeout(t,e)})}function Ux(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?lP(e,t):t}function yX(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function bX(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var VS=Symbol();function cP(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===VS?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function uP(e,t){return typeof e=="function"?e(...t):!!e}var vX=class extends md{#t;#e;#n;constructor(){super(),this.#n=e=>{if(!sc&&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"}},GS=new vX,EX=class extends md{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!sc&&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}},Oy=new EX;function Hx(){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 xX(e){return Math.min(1e3*2**e,3e4)}function dP(e){return(e??"online")==="online"?Oy.isOnline():!0}var fP=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function sE(e){return e instanceof fP}function pP(e){let t=!1,n=0,r=!1,o;const a=Hx(),s=T=>{r||(g(new fP(T)),e.abort?.())},l=()=>{t=!0},u=()=>{t=!1},d=()=>GS.isFocused()&&(e.networkMode==="always"||Oy.isOnline())&&e.canRun(),p=()=>dP(e.networkMode)&&e.canRun(),h=T=>{r||(r=!0,e.onSuccess?.(T),o?.(),a.resolve(T))},g=T=>{r||(r=!0,e.onError?.(T),o?.(),a.reject(T))},y=()=>new Promise(T=>{o=_=>{(r||d())&&T(_)},e.onPause?.()}).then(()=>{o=void 0,r||e.onContinue?.()}),v=()=>{if(r)return;let T;const _=n===0?e.initialPromise:void 0;try{T=_??e.fn()}catch(x){T=Promise.reject(x)}Promise.resolve(T).then(h).catch(x=>{if(r)return;const D=e.retry??(sc?0:3),C=e.retryDelay??xX,R=typeof C=="function"?C(n,x):C,I=D===!0||typeof D=="number"&&n<D||typeof D=="function"&&D(n,x);if(t||!I){g(x);return}n++,e.onFail?.(n,x),gX(R).then(()=>d()?void 0:y()).then(()=>{t?g(x):v()})})};return{promise:a,cancel:s,continue:()=>(o?.(),a),cancelRetry:l,continueRetry:u,canStart:p,start:()=>(p()?v():y().then(v),a)}}var TX=e=>setTimeout(e,0);function SX(){let e=[],t=0,n=l=>{l()},r=l=>{l()},o=TX;const a=l=>{t?e.push(l):o(()=>{n(l)})},s=()=>{const l=e;e=[],l.length&&o(()=>{r(()=>{l.forEach(u=>{n(u)})})})};return{batch:l=>{let u;t++;try{u=l()}finally{t--,t||s()}return u},batchCalls:l=>(...u)=>{a(()=>{l(...u)})},schedule:a,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{o=l}}}var Cr=SX(),hP=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Bx(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(sc?1/0:300*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},CX=class extends hP{#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=_X(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=Ux(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(oo).catch(oo):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>da(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===VS||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Ys(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!sP(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 u=this.observers.find(d=>d.options.queryFn);u&&this.setOptions(u.options)}const n=new AbortController,r=u=>{Object.defineProperty(u,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},o=()=>{const u=cP(this.options,t),p=(()=>{const h={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(h),h})();return this.#s=!1,this.options.persister?this.options.persister(u,p,this):u(p)},s=(()=>{const u={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:o};return r(u),u})();this.options.behavior?.onFetch(s,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==s.fetchOptions?.meta)&&this.#a({type:"fetch",meta:s.fetchOptions?.meta});const l=u=>{sE(u)&&u.silent||this.#a({type:"error",error:u}),sE(u)||(this.#n.config.onError?.(u,this),this.#n.config.onSettled?.(this.state.data,u,this)),this.scheduleGc()};return this.#o=pP({initialPromise:t?.initialPromise,fn:s.fetchFn,abort:n.abort.bind(n),onSuccess:u=>{if(u===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(u)}catch(d){l(d);return}this.#n.config.onSuccess?.(u,this),this.#n.config.onSettled?.(u,this.state.error,this),this.scheduleGc()},onError:l,onFail:(u,d)=>{this.#a({type:"failed",failureCount:u,error:d})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.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,...mP(n.data,this.options),fetchMeta:e.meta??null};case"success":return this.#e=void 0,{...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 sE(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 mP(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:dP(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function _X(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 AX=class extends md{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,n){const r=t.queryKey,o=t.queryHash??$S(r,t);let a=this.get(o);return a||(a=new CX({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=>yR(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>yR(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()})})}},kX=class extends hP{#t;#e;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#e=e.mutationCache,this.#t=[],this.state=e.state||gP(),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=pP({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 gP(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var wX=class extends md{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 kX({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#t.add(e);const t=bg(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=bg(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=bg(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=bg(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=>bR(t,n))}findAll(e={}){return this.getAll().filter(t=>bR(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(oo))))}};function bg(e){return e.options.scope?.id}function xR(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 l={pages:[],pageParams:[]},u=0;const d=async()=>{let p=!1;const h=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},g=cP(t.options,t.fetchOptions),y=async(v,T,_)=>{if(p)return Promise.reject();if(T==null&&v.pages.length)return Promise.resolve(v);const D=(()=>{const O={client:t.client,queryKey:t.queryKey,pageParam:T,direction:_?"backward":"forward",meta:t.options.meta};return h(O),O})(),C=await g(D),{maxPages:R}=t.options,I=_?bX:yX;return{pages:I(v.pages,C,R),pageParams:I(v.pageParams,T,R)}};if(o&&a.length){const v=o==="backward",T=v?DX:TR,_={pages:a,pageParams:s},x=T(r,_);l=await y(_,x,v)}else{const v=e??a.length;do{const T=u===0?s[0]??r.initialPageParam:TR(r,l);if(u>0&&T==null)break;l=await y(l,T),u++}while(u<v)}return l};t.options.persister?t.fetchFn=()=>t.options.persister?.(d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=d}}}function TR(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 DX(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var RX=class{#t;#e;#n;#r;#o;#i;#s;#a;constructor(e={}){this.#t=e.queryCache||new AX,this.#e=e.mutationCache||new wX,this.#n=e.defaultOptions||{},this.#r=new Map,this.#o=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#s=GS.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#a=Oy.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(Ys(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=mX(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(oo).catch(oo)}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()&&!o.isStatic()).map(o=>{let a=o.fetch(void 0,n);return n.throwOnError||(a=a.catch(oo)),o.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(oo)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#t.build(this,t);return n.isStaleByTime(Ys(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(oo).catch(oo)}fetchInfiniteQuery(e){return e.behavior=xR(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(oo).catch(oo)}ensureInfiniteQueryData(e){return e.behavior=xR(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Oy.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(lc(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{Wp(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#o.set(lc(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#o.values()],n={};return t.forEach(r=>{Wp(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=$S(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===VS&&(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()}},IX=class extends md{constructor(e,t){super(),this.options=t,this.#t=e,this.#a=null,this.#s=Hx(),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),SR(this.#e,this.options)?this.#d():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return zx(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return zx(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 da(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&&!Iy(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const r=this.hasListeners();r&&CR(this.#e,n,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#e!==n||da(this.options.enabled,this.#e)!==da(t.enabled,this.#e)||Ys(this.options.staleTime,this.#e)!==Ys(t.staleTime,this.#e))&&this.#g();const o=this.#y();r&&(this.#e!==n||da(this.options.enabled,this.#e)!==da(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 NX(this,n)&&(this.#r=n,this.#i=this.options,this.#o=this.#e.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),Reflect.get(n,r))})}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(oo)),t}#g(){this.#E();const e=Ys(this.options.staleTime,this.#e);if(sc||this.#r.isStale||!Bx(e))return;const n=sP(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,!(sc||da(this.options.enabled,this.#e)===!1||!Bx(this.#l)||this.#l===0)&&(this.#u=setInterval(()=>{(this.options.refetchIntervalInBackground||GS.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 H=this.hasListeners(),U=!H&&SR(e,t),S=H&&CR(e,n,t,r);(U||S)&&(p={...p,...mP(d.data,e.options)}),t._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:y,errorUpdatedAt:v,status:T}=p;g=p.data;let _=!1;if(t.placeholderData!==void 0&&g===void 0&&T==="pending"){let H;o?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(H=o.data,_=!0):H=typeof t.placeholderData=="function"?t.placeholderData(this.#p?.state.data,this.#p):t.placeholderData,H!==void 0&&(T="success",g=Ux(o?.data,H,t),h=!0)}if(t.select&&g!==void 0&&!_)if(o&&g===a?.data&&t.select===this.#m)g=this.#f;else try{this.#m=t.select,g=t.select(g),g=Ux(o?.data,g,t),this.#f=g,this.#a=null}catch(H){this.#a=H}this.#a&&(y=this.#a,g=this.#f,v=Date.now(),T="error");const x=p.fetchStatus==="fetching",D=T==="pending",C=T==="error",R=D&&x,I=g!==void 0,F={status:T,fetchStatus:p.fetchStatus,isPending:D,isSuccess:T==="success",isError:C,isInitialLoading:R,isLoading:R,data:g,dataUpdatedAt:p.dataUpdatedAt,error:y,errorUpdatedAt:v,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:x,isRefetching:x&&!D,isLoadingError:C&&!I,isPaused:p.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:C&&I,isStale:qS(e,t),refetch:this.refetch,promise:this.#s,isEnabled:da(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const H=M=>{F.status==="error"?M.reject(F.error):F.data!==void 0&&M.resolve(F.data)},U=()=>{const M=this.#s=F.promise=Hx();H(M)},S=this.#s;switch(S.status){case"pending":e.queryHash===n.queryHash&&H(S);break;case"fulfilled":(F.status==="error"||F.data!==S.value)&&U();break;case"rejected":(F.status!=="error"||F.error!==S.reason)&&U();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),Iy(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 l=s;return this.#r[l]!==e[l]&&a.has(l)})};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 OX(e,t){return da(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function SR(e,t){return OX(e,t)||e.state.data!==void 0&&zx(e,t,t.refetchOnMount)}function zx(e,t,n){if(da(t.enabled,e)!==!1&&Ys(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&qS(e,t)}return!1}function CR(e,t,n,r){return(e!==t||da(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&qS(e,n)}function qS(e,t){return da(t.enabled,e)!==!1&&e.isStaleByTime(Ys(t.staleTime,e))}function NX(e,t){return!Iy(e.getCurrentResult(),t)}var PX=class extends md{#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),Iy(this.options,n)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&lc(n.mutationKey)!==lc(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??gP();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)})})}},LX=w.createContext(void 0),yP=e=>{const t=w.useContext(LX);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},bP=w.createContext(!1),MX=()=>w.useContext(bP);bP.Provider;function FX(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var BX=w.createContext(FX()),jX=()=>w.useContext(BX),UX=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},HX=e=>{w.useEffect(()=>{e.clearReset()},[e])},zX=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||uP(n,[e.error,r])),$X=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},VX=(e,t)=>e.isLoading&&e.isFetching&&!t,GX=(e,t)=>e?.suspense&&t.isPending,_R=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function qX(e,t,n){const r=MX(),o=jX(),a=yP(n),s=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(s),s._optimisticResults=r?"isRestoring":"optimistic",$X(s),UX(s,o),HX(o);const l=!a.getQueryCache().get(s.queryHash),[u]=w.useState(()=>new t(a,s)),d=u.getOptimisticResult(s),p=!r&&e.subscribed!==!1;if(w.useSyncExternalStore(w.useCallback(h=>{const g=p?u.subscribe(Cr.batchCalls(h)):oo;return u.updateResult(),g},[u,p]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),w.useEffect(()=>{u.setOptions(s)},[s,u]),GX(s,d))throw _R(s,u,o);if(zX({result:d,errorResetBoundary:o,throwOnError:s.throwOnError,query:a.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw d.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(s,d),s.experimental_prefetchInRender&&!sc&&VX(d,r)&&(l?_R(s,u,o):a.getQueryCache().get(s.queryHash)?.promise)?.catch(oo).finally(()=>{u.updateResult()}),s.notifyOnChangeProps?d:u.trackResult(d)}function WX(e,t){return qX(e,IX,t)}function YX(e,t){const n=yP(t),[r]=w.useState(()=>new PX(n,e));w.useEffect(()=>{r.setOptions(e)},[r,e]);const o=w.useSyncExternalStore(w.useCallback(s=>r.subscribe(Cr.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=w.useCallback((s,l)=>{r.mutate(s,l).catch(oo)},[r]);if(o.error&&uP(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:a,mutateAsync:o.mutate}}function Ml(){return Ml=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},Ml.apply(this,arguments)}const QX=["children","options"],AR=["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"}),kR={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},KX=["style","script","pre"],XX=["src","href","data","formAction","srcDoc","action"],ZX=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,JX=/mailto:/i,eZ=/\n{2,}$/,wR=/^(\s*>[\s\S]*?)(?=\n\n|$)/,tZ=/^ *> ?/gm,nZ=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,rZ=/^ {2,}\n/,oZ=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,DR=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,RR=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,aZ=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,iZ=/^(?:\n *)*\n/,sZ=/\r\n?/g,lZ=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,cZ=/^\[\^([^\]]+)]/,uZ=/\f/g,dZ=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,fZ=/^\s*?\[(x|\s)\]/,IR=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,OR=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,NR=/^([^\n]+)\n *(=|-){3,} *\n/,lE=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,pZ=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,PR=/^<!--[\s\S]*?(?:-->)/,hZ=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,cE=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,mZ=/^\{.*\}$/,gZ=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,yZ=/^<([^ >]+@[^ >]+)>/,bZ=/^<([^ >]+:\/[^ >]+)>/,vZ=/-([a-z])?/gi,LR=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,EZ=/^[^\n]+(?: \n|\n{2,})/,xZ=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,TZ=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,SZ=/^\[([^\]]*)\] ?\[([^\]]*)\]/,CZ=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,_Z=/\t/g,AZ=/(^ *\||\| *$)/g,kZ=/^ *:-+: *$/,wZ=/^ *:-+ *$/,DZ=/^ *-+: *$/,V0="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",RZ=RegExp(`^([*_])\\1${V0}\\1\\1(?!\\1)`),IZ=RegExp(`^([*_])${V0}\\1(?!\\1)`),OZ=RegExp(`^(==)${V0}\\1`),NZ=RegExp(`^(~~)${V0}\\1`),PZ=/^(:[a-zA-Z0-9-_]+:)/,LZ=/^\\([^0-9A-Za-z\s])/,MZ=/\\([^0-9A-Za-z\s])/g,FZ=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,BZ=/^\n+/,jZ=/^([ \t]*)/,UZ=/(?:^|\n)( *)$/,WS="(?:\\d+\\.)",YS="(?:[*+-])";function vP(e){return"( *)("+(e===1?WS:YS)+") +"}const EP=vP(1),xP=vP(2);function TP(e){return RegExp("^"+(e===1?EP:xP))}const HZ=TP(1),zZ=TP(2);function SP(e){return RegExp("^"+(e===1?EP:xP)+"[^\\n]*(?:\\n(?!\\1"+(e===1?WS:YS)+" )[^\\n]*)*(\\n|$)","gm")}const $Z=SP(1),VZ=SP(2);function CP(e){const t=e===1?WS:YS;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const _P=CP(1),AP=CP(2);function MR(e,t){const n=t===1,r=n?_P:AP,o=n?$Z:VZ,a=n?HZ:zZ;return{t:s=>a.test(s),o:Ju(function(s,l){const u=UZ.exec(l.prevCapture);return u&&(l.list||!l.inline&&!l.simple)?r.exec(s=u[1]+s):null}),i:1,u(s,l,u){const d=n?+s[2]:void 0,p=s[0].replace(eZ,`
|
|
220
|
+
`).match(o);let h=!1;return{items:p.map(function(g,y){const v=a.exec(g)[0].length,T=RegExp("^ {1,"+v+"}","gm"),_=g.replace(T,"").replace(a,""),x=y===p.length-1,D=_.indexOf(`
|
|
221
|
+
|
|
222
|
+
`)!==-1||x&&h;h=D;const C=u.inline,R=u.list;let I;u.list=!0,D?(u.inline=!1,I=hp(_)+`
|
|
223
|
+
|
|
224
|
+
`):(u.inline=!0,I=hp(_));const O=l(I,u);return u.inline=C,u.list=R,O}),ordered:n,start:d}},l:(s,l,u)=>e(s.ordered?"ol":"ul",{key:u.key,start:s.type==="20"?s.start:void 0},s.items.map(function(d,p){return e("li",{key:p},l(d,u))}))}}const GZ=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),qZ=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function hp(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function Kg(e,t){return e.startsWith(t)}function WZ(e,t,n){if(Array.isArray(n)){for(let r=0;r<n.length;r++)if(Kg(e,n[r]))return!0;return!1}return n(e,t)}function Lf(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 YZ(e){return DZ.test(e)?"right":kZ.test(e)?"center":wZ.test(e)?"left":null}function FR(e,t,n,r){const o=n.inTable;n.inTable=!0;let a=[[]],s="";function l(){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()==="|"&&(l(),r)?d!==0&&d!==p.length-1&&a.push([]):s+=u}),l(),n.inTable=o,a}function QZ(e,t,n){n.inline=!0;const r=e[2]?e[2].replace(AZ,"").split("|").map(YZ):[],o=e[3]?function(s,l,u){return s.trim().split(`
|
|
225
|
+
`).map(function(d){return FR(d,l,u,!0)})}(e[3],t,n):[],a=FR(e[1],t,n,!!o.length);return n.inline=!1,o.length?{align:r,cells:o,header:a,type:"25"}:{children:a,type:"21"}}function BR(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function Ju(e){return e.inline=1,e}function Ps(e){return Ju(function(t,n){return n.inline?e.exec(t):null})}function Ls(e){return Ju(function(t,n){return n.inline||n.simple?e.exec(t):null})}function Vi(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function vg(e){return Ju(function(t){return e.exec(t)})}const KZ=/(javascript|vbscript|data(?!:image)):/i;function XZ(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(KZ.test(t))return null}catch{return null}return e}function Ja(e){return e&&e.replace(MZ,"$1")}function Xg(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 ZZ(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 JZ(e,t,n){const r=n.inline||!1;n.inline=!1;const o=e(t,n);return n.inline=r,o}const uE=(e,t,n)=>({children:Xg(t,e[2],n)});function dE(){return{}}function fE(){return null}function eJ(...e){return e.filter(Boolean).join(" ")}function pE(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 tJ(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?Ml({},kR,t.namedCodesToUnicode):kR;const n=t.slugify||Lf,r=t.sanitizer||XZ,o=t.createElement||w.createElement,a=[wR,DR,RR,t.enforceAtxHeadings?OR:IR,NR,LR,_P,AP],s=[...a,EZ,lE,PR,cE];function l(x,D,...C){const R=pE(t.overrides,x+".props",{});return o(function(I,O){const F=pE(O,I);return F?typeof F=="function"||typeof F=="object"&&"render"in F?F:pE(O,I+".component",I):I}(x,t.overrides),Ml({},D,R,{className:eJ(D?.className,R.className)||void 0}),...C)}function u(x){x=x.replace(dZ,"");let D=!1;t.forceInline?D=!0:t.forceBlock||(D=CZ.test(x)===!1);const C=v(y(D?x:hp(x).replace(BZ,"")+`
|
|
226
|
+
|
|
227
|
+
`,{inline:D}));for(;typeof C[C.length-1]=="string"&&!C[C.length-1].trim();)C.pop();if(t.wrapper===null)return C;const R=t.wrapper||(D?"span":"div");let I;if(C.length>1||t.forceWrapper)I=C;else{if(C.length===1)return I=C[0],typeof I=="string"?l("span",{key:"outer"},I):I;I=null}return o(R,{key:"outer"},I)}function d(x,D){if(!D||!D.trim())return null;const C=D.match(ZX);return C?C.reduce(function(R,I){const O=I.indexOf("=");if(O!==-1){const F=function(M){return M.indexOf("-")!==-1&&M.match(hZ)===null&&(M=M.replace(vZ,function($,z){return z.toUpperCase()})),M}(I.slice(0,O)).trim(),H=function(M){const $=M[0];return($==='"'||$==="'")&&M.length>=2&&M[M.length-1]===$?M.slice(1,-1):M}(I.slice(O+1).trim()),U=AR[F]||F;if(U==="ref")return R;const S=R[U]=function(M,$,z,q){return $==="style"?function(Y){const B=[];let K="",ae=!1,ne=!1,N="";if(!Y)return B;for(let X=0;X<Y.length;X++){const P=Y[X];if(P!=='"'&&P!=="'"||ae||(ne?P===N&&(ne=!1,N=""):(ne=!0,N=P)),P==="("&&K.endsWith("url")?ae=!0:P===")"&&ae&&(ae=!1),P!==";"||ne||ae)K+=P;else{const re=K.trim();if(re){const ce=re.indexOf(":");if(ce>0){const oe=re.slice(0,ce).trim(),ve=re.slice(ce+1).trim();B.push([oe,ve])}}K=""}}const Q=K.trim();if(Q){const X=Q.indexOf(":");if(X>0){const P=Q.slice(0,X).trim(),re=Q.slice(X+1).trim();B.push([P,re])}}return B}(z).reduce(function(Y,[B,K]){return Y[B.replace(/(-[a-z])/g,ae=>ae[1].toUpperCase())]=q(K,M,B),Y},{}):XX.indexOf($)!==-1?q(Ja(z),M,$):(z.match(mZ)&&(z=Ja(z.slice(1,z.length-1))),z==="true"||z!=="false"&&z)}(x,F,H,r);typeof S=="string"&&(lE.test(S)||cE.test(S))&&(R[U]=u(S.trim()))}else I!=="style"&&(R[AR[I]||I]=!0);return R},{}):null}const p=[],h={},g={0:{t:[">"],o:Vi(wR),i:1,u(x,D,C){const[,R,I]=x[0].replace(tZ,"").match(nZ);return{alert:R,children:D(I,C)}},l(x,D,C){const R={key:C.key};return x.alert&&(R.className="markdown-alert-"+n(x.alert.toLowerCase(),Lf),x.children.unshift({attrs:{},children:[{type:"27",text:x.alert}],noInnerParse:!0,type:"11",tag:"header"})),l("blockquote",R,D(x.children,C))}},1:{o:vg(rZ),i:1,u:dE,l:(x,D,C)=>l("br",{key:C.key})},2:{t:x=>{const D=x[0];return D==="-"||D==="*"||D==="_"},o:Vi(oZ),i:1,u:dE,l:(x,D,C)=>l("hr",{key:C.key})},3:{t:[" "],o:Vi(RR),i:0,u:x=>({lang:void 0,text:Ja(hp(x[0].replace(/^ {4}/gm,"")))}),l:(x,D,C)=>l("pre",{key:C.key},l("code",Ml({},x.attrs,{className:x.lang?"lang-"+x.lang:""}),x.text))},4:{t:["```","~~~"],o:Vi(DR),i:0,u:x=>({attrs:d("code",x[3]||""),lang:x[2]||void 0,text:x[4],type:"3"})},5:{t:["`"],o:Ls(aZ),i:3,u:x=>({text:Ja(x[2])}),l:(x,D,C)=>l("code",{key:C.key},x.text)},6:{t:["[^"],o:Vi(lZ),i:0,u:x=>(p.push({footnote:x[2],identifier:x[1]}),{}),l:fE},7:{t:["[^"],o:Ps(cZ),i:1,u:x=>({target:"#"+n(x[1],Lf),text:x[1]}),l:(x,D,C)=>l("a",{key:C.key,href:r(x.target,"a","href")},l("sup",{key:C.key},x.text))},8:{t:["[ ]","[x]"],o:Ps(fZ),i:1,u:x=>({completed:x[1].toLowerCase()==="x"}),l:(x,D,C)=>l("input",{checked:x.completed,key:C.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:Vi(t.enforceAtxHeadings?OR:IR),i:1,u:(x,D,C)=>({children:Xg(D,x[2],C),id:n(x[2],Lf),level:x[1].length}),l:(x,D,C)=>l("h"+x.level,{id:x.id,key:C.key},D(x.children,C))},10:{o:Vi(NR),i:0,u:(x,D,C)=>({children:Xg(D,x[1],C),level:x[2]==="="?1:2,type:"9"})},11:{t:["<"],o:vg(lE),i:1,u(x,D,C){const[,R]=x[3].match(jZ),I=RegExp("^"+R,"gm"),O=x[3].replace(I,""),F=(H=O,s.some(z=>z.test(H))?JZ:Xg);var H;const U=x[1].toLowerCase(),S=KX.indexOf(U)!==-1,M=(S?U:x[1]).trim(),$={attrs:d(M,x[2]),noInnerParse:S,tag:M};if(C.inAnchor=C.inAnchor||U==="a",S)$.text=x[3];else{const z=C.inHTML;C.inHTML=!0,$.children=F(D,O,C),C.inHTML=z}return C.inAnchor=!1,$},l:(x,D,C)=>l(x.tag,Ml({key:C.key},x.attrs),x.text||(x.children?D(x.children,C):""))},13:{t:["<"],o:vg(cE),i:1,u(x){const D=x[1].trim();return{attrs:d(D,x[2]||""),tag:D}},l:(x,D,C)=>l(x.tag,Ml({},x.attrs,{key:C.key}))},12:{t:["<!--"],o:vg(PR),i:1,u:()=>({}),l:fE},14:{t:["!["],o:Ls(qZ),i:1,u:x=>({alt:Ja(x[1]),target:Ja(x[2]),title:Ja(x[3])}),l:(x,D,C)=>l("img",{key:C.key,alt:x.alt||void 0,title:x.title||void 0,src:r(x.target,"img","src")})},15:{t:["["],o:Ps(GZ),i:3,u:(x,D,C)=>({children:ZZ(D,x[1],C),target:Ja(x[2]),title:Ja(x[3])}),l:(x,D,C)=>l("a",{key:C.key,href:r(x.target,"a","href"),title:x.title},D(x.children,C))},16:{t:["<"],o:Ps(bZ),i:0,u:x=>({children:[{text:x[1],type:"27"}],target:x[1],type:"15"})},17:{t:(x,D)=>!D.inAnchor&&!t.disableAutoLink&&(Kg(x,"http://")||Kg(x,"https://")),o:Ps(gZ),i:0,u:x=>({children:[{text:x[1],type:"27"}],target:x[1],title:void 0,type:"15"})},18:{t:["<"],o:Ps(yZ),i:0,u(x){let D=x[1],C=x[1];return JX.test(C)||(C="mailto:"+C),{children:[{text:D.replace("mailto:",""),type:"27"}],target:C,type:"15"}}},20:MR(l,1),33:MR(l,2),19:{o:Vi(iZ),i:3,u:dE,l:()=>`
|
|
228
|
+
`},21:{o:Ju(function(x,D){if(D.inline||D.simple||D.inHTML&&x.indexOf(`
|
|
229
|
+
|
|
230
|
+
`)===-1&&D.prevCapture.indexOf(`
|
|
231
|
+
|
|
232
|
+
`)===-1)return null;let C="";x.split(`
|
|
233
|
+
`).every(I=>(I+=`
|
|
234
|
+
`,!a.some(O=>O.test(I))&&(C+=I,!!I.trim())));const R=hp(C);return R===""?null:[C,,R]}),i:3,u:uE,l:(x,D,C)=>l("p",{key:C.key},D(x.children,C))},22:{t:["["],o:Ps(xZ),i:0,u:x=>(h[x[1]]={target:x[2],title:x[4]},{}),l:fE},23:{t:["!["],o:Ls(TZ),i:0,u:x=>({alt:x[1]?Ja(x[1]):void 0,ref:x[2]}),l:(x,D,C)=>h[x.ref]?l("img",{key:C.key,alt:x.alt,src:r(h[x.ref].target,"img","src"),title:h[x.ref].title}):null},24:{t:x=>x[0]==="["&&x.indexOf("](")===-1,o:Ps(SZ),i:0,u:(x,D,C)=>({children:D(x[1],C),fallbackChildren:x[0],ref:x[2]}),l:(x,D,C)=>h[x.ref]?l("a",{key:C.key,href:r(h[x.ref].target,"a","href"),title:h[x.ref].title},D(x.children,C)):l("span",{key:C.key},x.fallbackChildren)},25:{t:["|"],o:Vi(LR),i:1,u:QZ,l(x,D,C){const R=x;return l("table",{key:C.key},l("thead",null,l("tr",null,R.header.map(function(I,O){return l("th",{key:O,style:BR(R,O)},D(I,C))}))),l("tbody",null,R.cells.map(function(I,O){return l("tr",{key:O},I.map(function(F,H){return l("td",{key:H,style:BR(R,H)},D(F,C))}))})))}},27:{o:Ju(function(x,D){let C;return Kg(x,":")&&(C=PZ.exec(x)),C||FZ.exec(x)}),i:4,u(x){const D=x[0];return{text:D.indexOf("&")===-1?D:D.replace(pZ,(C,R)=>t.namedCodesToUnicode[R]||C)}},l:x=>x.text},28:{t:["**","__"],o:Ls(RZ),i:2,u:(x,D,C)=>({children:D(x[2],C)}),l:(x,D,C)=>l("strong",{key:C.key},D(x.children,C))},29:{t:x=>{const D=x[0];return(D==="*"||D==="_")&&x[1]!==D},o:Ls(IZ),i:3,u:(x,D,C)=>({children:D(x[2],C)}),l:(x,D,C)=>l("em",{key:C.key},D(x.children,C))},30:{t:["\\"],o:Ls(LZ),i:1,u:x=>({text:x[1],type:"27"})},31:{t:["=="],o:Ls(OZ),i:3,u:uE,l:(x,D,C)=>l("mark",{key:C.key},D(x.children,C))},32:{t:["~~"],o:Ls(NZ),i:3,u:uE,l:(x,D,C)=>l("del",{key:C.key},D(x.children,C))}};t.disableParsingRawHTML===!0&&(delete g[11],delete g[13]);const y=function(x){var D=Object.keys(x);function C(R,I){var O=[];if(I.prevCapture=I.prevCapture||"",R.trim())for(;R;)for(var F=0;F<D.length;){var H=D[F],U=x[H];if(!U.t||WZ(R,I,U.t)){var S=U.o(R,I);if(S&&S[0]){R=R.substring(S[0].length);var M=U.u(S,C,I);I.prevCapture+=S[0],M.type||(M.type=H),O.push(M);break}F++}else F++}return I.prevCapture="",O}return D.sort(function(R,I){return x[R].i-x[I].i||(R<I?-1:1)}),function(R,I){return C(function(O){return O.replace(sZ,`
|
|
235
|
+
`).replace(uZ,"").replace(_Z," ")}(R),I)}}(g),v=(T=function(x,D){return function(C,R,I){const O=x[C.type].l;return D?D(()=>O(C,R,I),C,R,I):O(C,R,I)}}(g,t.renderRule),function x(D,C={}){if(Array.isArray(D)){const R=C.key,I=[];let O=!1;for(let F=0;F<D.length;F++){C.key=F;const H=x(D[F],C),U=typeof H=="string";U&&O?I[I.length-1]+=H:H!==null&&I.push(H),O=U}return C.key=R,I}return T(D,x,C)});var T;const _=u(e);return p.length?l("div",null,_,l("footer",{key:"footer"},p.map(function(x){return l("div",{id:n(x.identifier,Lf),key:x.identifier},x.identifier,v(y(x.footnote,{inline:!0})))}))):_}const QS=e=>{let{children:t="",options:n}=e,r=function(o,a){if(o==null)return{};var s,l,u={},d=Object.keys(o);for(l=0;l<d.length;l++)a.indexOf(s=d[l])>=0||(u[s]=o[s]);return u}(e,QX);return w.cloneElement(tJ(t,n),r)},nJ=xi(b.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),rJ=xi(b.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),oJ=xi(b.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"})),aJ=xi(b.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),iJ=xi(b.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 KS=Oh(),It=e=>Ih(e,KS),XS=Oh();It.write=e=>Ih(e,XS);var G0=Oh();It.onStart=e=>Ih(e,G0);var ZS=Oh();It.onFrame=e=>Ih(e,ZS);var JS=Oh();It.onFinish=e=>Ih(e,JS);var Mu=[];It.setTimeout=(e,t)=>{const n=It.now()+t,r=()=>{const a=Mu.findIndex(s=>s.cancel==r);~a&&Mu.splice(a,1),Vs-=~a?1:0},o={time:n,handler:e,cancel:r};return Mu.splice(kP(n),0,o),Vs+=1,wP(),o};var kP=e=>~(~Mu.findIndex(t=>t.time>e)||~Mu.length);It.cancel=e=>{G0.delete(e),ZS.delete(e),JS.delete(e),KS.delete(e),XS.delete(e)};It.sync=e=>{$x=!0,It.batchedUpdates(e),$x=!1};It.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...o){t=o,It.onStart(n)}return r.handler=e,r.cancel=()=>{G0.delete(n),t=null},r};var eC=typeof window<"u"?window.requestAnimationFrame:()=>{};It.use=e=>eC=e;It.now=typeof performance<"u"?()=>performance.now():Date.now;It.batchedUpdates=e=>e();It.catch=console.error;It.frameLoop="always";It.advance=()=>{It.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):RP()};var $s=-1,Vs=0,$x=!1;function Ih(e,t){$x?(t.delete(e),e(0)):(t.add(e),wP())}function wP(){$s<0&&($s=0,It.frameLoop!=="demand"&&eC(DP))}function sJ(){$s=-1}function DP(){~$s&&(eC(DP),It.batchedUpdates(RP))}function RP(){const e=$s;$s=It.now();const t=kP($s);if(t&&(IP(Mu.splice(0,t),n=>n.handler()),Vs-=t),!Vs){sJ();return}G0.flush(),KS.flush(e?Math.min(64,$s-e):16.667),ZS.flush(),XS.flush(),JS.flush()}function Oh(){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,IP(t,r=>r(n)&&e.add(r)),Vs+=e.size,t=e)}}}function IP(e,t){e.forEach(n=>{try{t(n)}catch(r){It.catch(r)}})}var lJ=Object.defineProperty,cJ=(e,t)=>{for(var n in t)lJ(e,n,{get:t[n],enumerable:!0})},Ba={};cJ(Ba,{assign:()=>dJ,colors:()=>Qs,createStringInterpolator:()=>nC,skipAnimation:()=>NP,to:()=>OP,willAdvance:()=>rC});function Vx(){}var uJ=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Ye={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function Ki(e,t){if(Ye.arr(e)){if(!Ye.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var Kt=(e,t)=>e.forEach(t);function bi(e,t,n){if(Ye.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var zo=e=>Ye.und(e)?[]:Ye.arr(e)?e:[e];function mp(e,t){if(e.size){const n=Array.from(e);e.clear(),Kt(n,t)}}var np=(e,...t)=>mp(e,n=>n(...t)),tC=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),nC,OP,Qs=null,NP=!1,rC=Vx,dJ=e=>{e.to&&(OP=e.to),e.now&&(It.now=e.now),e.colors!==void 0&&(Qs=e.colors),e.skipAnimation!=null&&(NP=e.skipAnimation),e.createStringInterpolator&&(nC=e.createStringInterpolator),e.requestAnimationFrame&&It.use(e.requestAnimationFrame),e.batchedUpdates&&(It.batchedUpdates=e.batchedUpdates),e.willAdvance&&(rC=e.willAdvance),e.frameLoop&&(It.frameLoop=e.frameLoop)},gp=new Set,ba=[],hE=[],Ny=0,q0={get idle(){return!gp.size&&!ba.length},start(e){Ny>e.priority?(gp.add(e),It.onStart(fJ)):(PP(e),It(Gx))},advance:Gx,sort(e){if(Ny)It.onFrame(()=>q0.sort(e));else{const t=ba.indexOf(e);~t&&(ba.splice(t,1),LP(e))}},clear(){ba=[],gp.clear()}};function fJ(){gp.forEach(PP),gp.clear(),It(Gx)}function PP(e){ba.includes(e)||LP(e)}function LP(e){ba.splice(pJ(ba,t=>t.priority>e.priority),0,e)}function Gx(e){const t=hE;for(let n=0;n<ba.length;n++){const r=ba[n];Ny=r.priority,r.idle||(rC(r),r.advance(e),r.idle||t.push(r))}return Ny=0,hE=ba,hE.length=0,ba=t,ba.length>0}function pJ(e,t){const n=e.findIndex(t);return n<0?e.length:n}var hJ={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},Oa="[-+]?\\d*\\.?\\d+",Py=Oa+"%";function W0(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var mJ=new RegExp("rgb"+W0(Oa,Oa,Oa)),gJ=new RegExp("rgba"+W0(Oa,Oa,Oa,Oa)),yJ=new RegExp("hsl"+W0(Oa,Py,Py)),bJ=new RegExp("hsla"+W0(Oa,Py,Py,Oa)),vJ=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,EJ=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,xJ=/^#([0-9a-fA-F]{6})$/,TJ=/^#([0-9a-fA-F]{8})$/;function SJ(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=xJ.exec(e))?parseInt(t[1]+"ff",16)>>>0:Qs&&Qs[e]!==void 0?Qs[e]:(t=mJ.exec(e))?(uu(t[1])<<24|uu(t[2])<<16|uu(t[3])<<8|255)>>>0:(t=gJ.exec(e))?(uu(t[1])<<24|uu(t[2])<<16|uu(t[3])<<8|HR(t[4]))>>>0:(t=vJ.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=TJ.exec(e))?parseInt(t[1],16)>>>0:(t=EJ.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=yJ.exec(e))?(jR(UR(t[1]),Eg(t[2]),Eg(t[3]))|255)>>>0:(t=bJ.exec(e))?(jR(UR(t[1]),Eg(t[2]),Eg(t[3]))|HR(t[4]))>>>0:null}function mE(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 jR(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,a=mE(o,r,e+1/3),s=mE(o,r,e),l=mE(o,r,e-1/3);return Math.round(a*255)<<24|Math.round(s*255)<<16|Math.round(l*255)<<8}function uu(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function UR(e){return(parseFloat(e)%360+360)%360/360}function HR(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Eg(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function zR(e){let t=SJ(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(Ye.fun(e))return e;if(Ye.arr(e))return Yp({range:e,output:t,extrapolate:n});if(Ye.str(e.output[0]))return nC(e);const r=e,o=r.output,a=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||"extend",l=r.extrapolateRight||r.extrapolate||"extend",u=r.easing||(d=>d);return d=>{const p=_J(d,a);return CJ(d,a[p],a[p+1],o[p],o[p+1],u,s,l,r.map)}};function CJ(e,t,n,r,o,a,s,l,u){let d=u?u(e):e;if(d<t){if(s==="identity")return d;s==="clamp"&&(d=t)}if(d>n){if(l==="identity")return d;l==="clamp"&&(d=n)}return r===o?r:t===n?e<=t?r:o:(t===-1/0?d=-d:n===1/0?d=d-t:d=(d-t)/(n-t),d=a(d),r===-1/0?d=-d:o===1/0?d=d+r:d=d*(o-r)+r,d)}function _J(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var AJ={linear:e=>e},Qp=Symbol.for("FluidValue.get"),ed=Symbol.for("FluidValue.observers"),ha=e=>!!(e&&e[Qp]),vo=e=>e&&e[Qp]?e[Qp]():e,$R=e=>e[ed]||null;function kJ(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Kp(e,t){const n=e[ed];n&&n.forEach(r=>{kJ(r,t)})}var MP=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");wJ(this,e)}},wJ=(e,t)=>FP(e,Qp,t);function gd(e,t){if(e[Qp]){let n=e[ed];n||FP(e,ed,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[ed];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[ed]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var FP=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Zg=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,DJ=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,VR=new RegExp(`(${Zg.source})(%|[a-z]+)`,"i"),RJ=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Y0=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,BP=e=>{const[t,n]=IJ(e);if(!t||tC())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&&Y0.test(n))return BP(n);if(n)return n}return e},IJ=e=>{const t=Y0.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},gE,OJ=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,jP=e=>{gE||(gE=Qs?new RegExp(`(${Object.keys(Qs).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(a=>vo(a).replace(Y0,BP).replace(DJ,zR).replace(gE,zR)),n=t.map(a=>a.match(Zg).map(Number)),o=n[0].map((a,s)=>n.map(l=>{if(!(s in l))throw Error('The arity of each "output" value must be equal');return l[s]})).map(a=>Yp({...e,output:a}));return a=>{const s=!VR.test(t[0])&&t.find(u=>VR.test(u))?.replace(Zg,"");let l=0;return t[0].replace(Zg,()=>`${o[l++](a)}${s||""}`).replace(RJ,OJ)}},oC="react-spring: ",UP=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${oC}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},NJ=UP(console.warn);function PJ(){NJ(`${oC}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var LJ=UP(console.warn);function MJ(){LJ(`${oC}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 Q0(e){return Ye.str(e)&&(e[0]=="#"||/\d/.test(e)||!tC()&&Y0.test(e)||e in(Qs||{}))}var aC=tC()?w.useEffect:w.useLayoutEffect,FJ=()=>{const e=w.useRef(!1);return aC(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function HP(){const e=w.useState()[1],t=FJ();return()=>{t.current&&e(Math.random())}}var zP=e=>w.useEffect(e,BJ),BJ=[];function GR(e){const t=w.useRef(void 0);return w.useEffect(()=>{t.current=e}),t.current}var Zp=Symbol.for("Animated:node"),jJ=e=>!!e&&e[Zp]===e,oi=e=>e&&e[Zp],iC=(e,t)=>uJ(e,Zp,t),K0=e=>e&&e[Zp]&&e[Zp].getPayload(),$P=class{constructor(){iC(this,this)}getPayload(){return this.payload||[]}},X0=class VP extends $P{constructor(t){super(),this._value=t,this.done=!0,this.durationProgress=0,Ye.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new VP(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,n){return Ye.num(t)&&(this.lastPosition=t,n&&(t=Math.round(t/n)*n,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){const{done:t}=this;this.done=!1,Ye.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},Ly=class GP extends X0{constructor(t){super(0),this._string=null,this._toString=Yp({output:[t,t]})}static create(t){return new GP(t)}getValue(){const t=this._string;return t??(this._string=this._toString(this._value))}setValue(t){if(Ye.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=Yp({output:[this.getValue(),t]})),this._value=0,super.reset()}},My={dependencies:null},Z0=class extends $P{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return bi(this.source,(n,r)=>{jJ(n)?t[r]=n.getValue(e):ha(n)?t[r]=vo(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Kt(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return bi(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){My.dependencies&&ha(e)&&My.dependencies.add(e);const t=K0(e);t&&Kt(t,n=>this.add(n))}},UJ=class qP extends Z0{constructor(t){super(t)}static create(t){return new qP(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(HJ)),!0)}};function HJ(e){return(Q0(e)?Ly:X0).create(e)}function qx(e){const t=oi(e);return t?t.constructor:Ye.arr(e)?UJ:Q0(e)?Ly:X0}var qR=(e,t)=>{const n=!Ye.fun(e)||e.prototype&&e.prototype.isReactComponent;return w.forwardRef((r,o)=>{const a=w.useRef(null),s=n&&w.useCallback(v=>{a.current=VJ(o,v)},[o]),[l,u]=$J(r,t),d=HP(),p=()=>{const v=a.current;if(n&&!v)return;(v?t.applyAnimatedValues(v,l.getValue(!0)):!1)===!1&&d()},h=new zJ(p,u),g=w.useRef(void 0);aC(()=>(g.current=h,Kt(u,v=>gd(v,h)),()=>{g.current&&(Kt(g.current.deps,v=>Xp(v,g.current)),It.cancel(g.current.update))})),w.useEffect(p,[]),zP(()=>()=>{const v=g.current;Kt(v.deps,T=>Xp(T,v))});const y=t.getComponentProps(l.getValue());return w.createElement(e,{...y,ref:s})})},zJ=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&It.write(this.update)}};function $J(e,t){const n=new Set;return My.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Z0(e),My.dependencies=null,[e,n]}function VJ(e,t){return e&&(Ye.fun(e)?e(t):e.current=t),t}var WR=Symbol.for("AnimatedComponent"),GJ=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=o=>new Z0(o),getComponentProps:r=o=>o}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=s=>{const l=YR(s)||"Anonymous";return Ye.str(s)?s=a[s]||(a[s]=qR(s,o)):s=s[WR]||(s[WR]=qR(s,o)),s.displayName=`Animated(${l})`,s};return bi(e,(s,l)=>{Ye.arr(e)&&(l=YR(s)),a[l]=a(s)}),{animated:a}},YR=e=>Ye.str(e)?e:e&&Ye.str(e.displayName)?e.displayName:Ye.fun(e)&&e.name||null;function Fl(e,...t){return Ye.fun(e)?e(...t):e}var yp=(e,t)=>e===!0||!!(t&&e&&(Ye.fun(e)?e(t):zo(e).includes(t))),WP=(e,t)=>Ye.obj(e)?t&&e[t]:e,YP=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,qJ=e=>e,sC=(e,t=qJ)=>{let n=WJ;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const o of n){const a=t(e[o],o);Ye.und(a)||(r[o]=a)}return r},WJ=["config","onProps","onStart","onChange","onPause","onResume","onRest"],YJ={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 QJ(e){const t={};let n=0;if(bi(e,(r,o)=>{YJ[o]||(t[o]=r,n++)}),n)return t}function QP(e){const t=QJ(e);if(t){const n={to:t};return bi(e,(r,o)=>o in t||(n[o]=r)),n}return{...e}}function Jp(e){return e=vo(e),Ye.arr(e)?e.map(Jp):Q0(e)?Ba.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function KJ(e){for(const t in e)return!0;return!1}function Wx(e){return Ye.fun(e)||Ye.arr(e)&&Ye.obj(e[0])}function XJ(e,t){e.ref?.delete(e),t?.delete(e)}function ZJ(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var JJ={default:{tension:170,friction:26}},Yx={...JJ.default,mass:1,damping:1,easing:AJ.linear,clamp:!1},eee=class{constructor(){this.velocity=0,Object.assign(this,Yx)}};function tee(e,t,n){n&&(n={...n},QR(n,t),t={...n,...t}),QR(e,t),Object.assign(e,t);for(const s in Yx)e[s]==null&&(e[s]=Yx[s]);let{frequency:r,damping:o}=e;const{mass:a}=e;return Ye.und(r)||(r<.01&&(r=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/r,2)*a,e.friction=4*Math.PI*o*a/r),e}function QR(e,t){if(!Ye.und(t.decay))e.duration=void 0;else{const n=!Ye.und(t.tension)||!Ye.und(t.friction);(n||!Ye.und(t.frequency)||!Ye.und(t.damping)||!Ye.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var KR=[],nee=class{constructor(){this.changed=!1,this.values=KR,this.toValues=null,this.fromValues=KR,this.config=new eee,this.immediate=!1}};function KP(e,{key:t,props:n,defaultProps:r,state:o,actions:a}){return new Promise((s,l)=>{let u,d,p=yp(n.cancel??r?.cancel,t);if(p)y();else{Ye.und(n.pause)||(o.paused=yp(n.pause,t));let v=r?.pause;v!==!0&&(v=o.paused||yp(v,t)),u=Fl(n.delay||0,t),v?(o.resumeQueue.add(g),a.pause()):(a.resume(),g())}function h(){o.resumeQueue.add(g),o.timeouts.delete(d),d.cancel(),u=d.time-It.now()}function g(){u>0&&!Ba.skipAnimation?(o.delayed=!0,d=It.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(v){l(v)}}})}var lC=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Fu(e.get()):t.every(n=>n.noop)?XP(e.get()):Ia(e.get(),t.every(n=>n.finished)),XP=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Ia=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Fu=e=>({value:e,cancelled:!0,finished:!1});function ZP(e,t,n,r){const{callId:o,parentId:a,onRest:s}=t,{asyncTo:l,promise:u}=n;return!a&&e===l&&!t.reset?u:n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const d=sC(t,(_,x)=>x==="onRest"?void 0:_);let p,h;const g=new Promise((_,x)=>(p=_,h=x)),y=_=>{const x=o<=(n.cancelId||0)&&Fu(r)||o!==n.asyncId&&Ia(r,!1);if(x)throw _.result=x,h(_),_},v=(_,x)=>{const D=new XR,C=new ZR;return(async()=>{if(Ba.skipAnimation)throw eh(n),C.result=Ia(r,!1),h(C),C;y(D);const R=Ye.obj(_)?{..._}:{...x,to:_};R.parentId=o,bi(d,(O,F)=>{Ye.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 T;if(Ba.skipAnimation)return eh(n),Ia(r,!1);try{let _;Ye.arr(e)?_=(async x=>{for(const D of x)await v(D)})(e):_=Promise.resolve(e(v,r.stop.bind(r))),await Promise.all([_.then(p),g]),T=Ia(r.get(),!0,!1)}catch(_){if(_ instanceof XR)T=_.result;else if(_ instanceof ZR)T=_.result;else throw _}finally{o==n.asyncId&&(n.asyncId=a,n.asyncTo=a?l:void 0,n.promise=a?u:void 0)}return Ye.fun(s)&&It.batchedUpdates(()=>{s(T,r,r.item)}),T})()}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 XR=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.")}},ZR=class extends Error{constructor(){super("SkipAnimationSignal")}},Qx=e=>e instanceof cC,ree=1,cC=class extends MP{constructor(){super(...arguments),this.id=ree++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=oi(this);return e&&e.getValue()}to(...e){return Ba.to(this,e)}interpolate(...e){return PJ(),Ba.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){Kp(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||q0.sort(this),Kp(this,{type:"priority",parent:this,priority:e})}},cc=Symbol.for("SpringPhase"),JP=1,Kx=2,Xx=4,yE=e=>(e[cc]&JP)>0,Ms=e=>(e[cc]&Kx)>0,Mf=e=>(e[cc]&Xx)>0,JR=(e,t)=>t?e[cc]|=Kx|JP:e[cc]&=~Kx,eI=(e,t)=>t?e[cc]|=Xx:e[cc]&=~Xx,oee=class extends cC{constructor(e,t){if(super(),this.animation=new nee,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Ye.und(e)||!Ye.und(t)){const n=Ye.obj(e)?{...e}:{...t,from:e};Ye.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Ms(this)||this._state.asyncTo)||Mf(this)}get goal(){return vo(this.animation.to)}get velocity(){const e=oi(this);return e instanceof X0?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return yE(this)}get isAnimating(){return Ms(this)}get isPaused(){return Mf(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=K0(r.to);!s&&ha(r.to)&&(o=zo(vo(r.to))),r.values.forEach((d,p)=>{if(d.done)return;const h=d.constructor==Ly?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 v=d.elapsedTime+=e;const T=r.fromValues[p],_=d.v0!=null?d.v0:d.v0=Ye.arr(a.velocity)?a.velocity[p]:a.velocity;let x;const D=a.precision||(T==h?.005:Math.min(1,Math.abs(h-T)*.001));if(Ye.und(a.duration))if(a.decay){const C=a.decay===!0?.998:a.decay,R=Math.exp(-(1-C)*v);y=T+_/(1-C)*(1-R),g=Math.abs(d.lastPosition-y)<=D,x=_*R}else{x=d.lastVelocity==null?_:d.lastVelocity;const C=a.restVelocity||D/10,R=a.clamp?0:a.bounce,I=!Ye.und(R),O=T==h?d.v0>0:T<h;let F,H=!1;const U=1,S=Math.ceil(e/U);for(let M=0;M<S&&(F=Math.abs(x)>C,!(!F&&(g=Math.abs(h-y)<=D,g)));++M){I&&(H=y==h||y>h==O,H&&(x=-x*R,y=h));const $=-a.tension*1e-6*(y-h),z=-a.friction*.001*x,q=($+z)/a.mass;x=x+q*U,y=y+x*U}}else{let C=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,d.durationProgress>0&&(d.elapsedTime=a.duration*d.durationProgress,v=d.elapsedTime+=e)),C=(a.progress||0)+v/this._memoizedDuration,C=C>1?1:C<0?0:C,d.durationProgress=C),y=T+a.easing(C)*(h-T),x=(y-d.lastPosition)/e,g=C==1}d.lastVelocity=x,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 l=oi(this),u=l.getValue();if(t){const d=vo(r.to);(u!==d||n)&&!a.decay?(l.setValue(d),this._onChange(d)):n&&a.decay&&this._onChange(u),this._stop()}else n&&this._onChange(u)}set(e){return It.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;It.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return Ye.und(e)?(n=this.queue||[],this.queue=[]):n=[Ye.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>lC(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),eh(this._state,e&&this._lastCallId),It.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=Ye.obj(n)?n[t]:n,(n==null||Wx(n))&&(n=void 0),r=Ye.obj(r)?r[t]:r,r==null&&(r=void 0);const o={to:n,from:r};return yE(this)||(e.reverse&&([n,r]=[r,n]),r=vo(r),Ye.und(r)?oi(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,sC(e,(s,l)=>/^on/.test(l)?WP(s,n):s)),nI(this,e,"onProps"),Bf(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 KP(++this._lastCallId,{key:n,props:e,defaultProps:r,state:a,actions:{pause:()=>{Mf(this)||(eI(this,!0),np(a.pauseQueue),Bf(this,"onPause",Ia(this,Ff(this,this.animation.to)),this))},resume:()=>{Mf(this)&&(eI(this,!1),Ms(this)&&this._resume(),np(a.resumeQueue),Bf(this,"onResume",Ia(this,Ff(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then(s=>{if(e.loop&&s.finished&&!(t&&s.noop)){const l=e4(e);if(l)return this._update(l,!0)}return s})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Fu(this));const r=!Ye.und(e.to),o=!Ye.und(e.from);if(r||o)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Fu(this));const{key:a,defaultProps:s,animation:l}=this,{to:u,from:d}=l;let{to:p=u,from:h=d}=e;o&&!r&&(!t.default||Ye.und(p))&&(p=h),t.reverse&&([p,h]=[h,p]);const g=!Ki(h,d);g&&(l.from=h),h=vo(h);const y=!Ki(p,u);y&&this._focus(p);const v=Wx(t.to),{config:T}=l,{decay:_,velocity:x}=T;(r||o)&&(T.velocity=0),t.config&&!v&&tee(T,Fl(t.config,a),t.config!==s.config?Fl(s.config,a):void 0);let D=oi(this);if(!D||Ye.und(p))return n(Ia(this,!0));const C=Ye.und(t.reset)?o&&!t.default:!Ye.und(h)&&yp(t.reset,a),R=C?h:this.get(),I=Jp(p),O=Ye.num(I)||Ye.arr(I)||Q0(I),F=!v&&(!O||yp(s.immediate||t.immediate,a));if(y){const M=qx(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 H=D.constructor;let U=ha(p),S=!1;if(!U){const M=C||!yE(this)&&g;(y||M)&&(S=Ki(Jp(R),I),U=!S),(!Ki(l.immediate,F)&&!F||!Ki(T.decay,_)||!Ki(T.velocity,x))&&(U=!0)}if(S&&Ms(this)&&(l.changed&&!C?U=!0:U||this._stop(u)),!v&&((U||ha(u))&&(l.values=D.getPayload(),l.toValues=ha(p)?null:H==Ly?[1]:zo(I)),l.immediate!=F&&(l.immediate=F,!F&&!C&&this._set(u)),U)){const{onRest:M}=l;Kt(iee,z=>nI(this,t,z));const $=Ia(this,Ff(this,u));np(this._pendingCalls,$),this._pendingCalls.add(n),l.changed&&It.batchedUpdates(()=>{l.changed=!C,M?.($,this),C?Fl(s.onRest,$):l.onStart?.($,this)})}C&&this._set(R),v?n(ZP(t.to,t,this._state,this)):U?this._start():Ms(this)&&!y?this._pendingCalls.add(n):n(XP(R))}_focus(e){const t=this.animation;e!==t.to&&($R(this)&&this._detach(),t.to=e,$R(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;ha(t)&&(gd(t,this),Qx(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=vo(e);if(!Ye.und(n)){const r=oi(this);if(!r||!Ki(n,r.getValue())){const o=qx(n);!r||r.constructor!=o?iC(this,o.create(n)):r.setValue(n),r&&It.batchedUpdates(()=>{this._onChange(n,t)})}}return oi(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Bf(this,"onStart",Ia(this,Ff(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Fl(this.animation.onChange,e,this)),Fl(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;oi(this).reset(vo(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Ms(this)||(JR(this,!0),Mf(this)||this._resume())}_resume(){Ba.skipAnimation?this.finish():q0.start(this)}_stop(e,t){if(Ms(this)){JR(this,!1);const n=this.animation;Kt(n.values,o=>{o.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Kp(this,{type:"idle",parent:this});const r=t?Fu(this.get()):Ia(this.get(),Ff(this,e??n.to));np(this._pendingCalls,r),n.changed&&(n.changed=!1,Bf(this,"onRest",r,this))}}};function Ff(e,t){const n=Jp(t),r=Jp(e.get());return Ki(r,n)}function e4(e,t=e.loop,n=e.to){const r=Fl(t);if(r){const o=r!==!0&&QP(r),a=(o||e).reverse,s=!o||o.reset;return th({...e,loop:t,default:!1,pause:void 0,to:!a||Wx(n)?n:void 0,from:s?e.from:void 0,reset:s,...o})}}function th(e){const{to:t,from:n}=e=QP(e),r=new Set;return Ye.obj(t)&&tI(t,r),Ye.obj(n)&&tI(n,r),e.keys=r.size?Array.from(r):null,e}function aee(e){const t=th(e);return Ye.und(t.default)&&(t.default=sC(t)),t}function tI(e,t){bi(e,(n,r)=>n!=null&&t.add(r))}var iee=["onStart","onRest","onChange","onPause","onResume"];function nI(e,t,n){e.animation[n]=t[n]!==YP(t,n)?WP(t[n],e.key):void 0}function Bf(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var see=["onStart","onChange","onRest"],lee=1,cee=class{constructor(e,t){this.id=lee++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];Ye.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(th(e)),this}start(e){let{queue:t}=this;return e?t=zo(e).map(th):this.queue=[],this._flush?this._flush(this,t):(a4(this,t),Zx(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Kt(zo(t),r=>n[r].stop(!!e))}else eh(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(Ye.und(e))this.start({pause:!0});else{const t=this.springs;Kt(zo(e),n=>t[n].pause())}return this}resume(e){if(Ye.und(e))this.start({pause:!1});else{const t=this.springs;Kt(zo(e),n=>t[n].resume())}return this}each(e){bi(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,([l,u])=>{u.value=this.get(),l(u,this,this._item)}));const a=!r&&this._started,s=o||a&&n.size?this.get():null;o&&t.size&&mp(t,([l,u])=>{u.value=s,l(u,this,this._item)}),a&&(this._started=!1,mp(n,([l,u])=>{u.value=s,l(u,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;It.onFrame(this._onFrame)}};function Zx(e,t){return Promise.all(t.map(n=>t4(e,n))).then(n=>lC(e,n))}async function t4(e,t,n){const{keys:r,to:o,from:a,loop:s,onRest:l,onResolve:u}=t,d=Ye.obj(t.default)&&t.default;s&&(t.loop=!1),o===!1&&(t.to=null),a===!1&&(t.from=null);const p=Ye.arr(o)||Ye.fun(o)?o:void 0;p?(t.to=void 0,t.onRest=void 0,d&&(d.onRest=void 0)):Kt(see,T=>{const _=t[T];if(Ye.fun(_)){const x=e._events[T];t[T]=({finished:D,cancelled:C})=>{const R=x.get(_);R?(D||(R.finished=!1),C&&(R.cancelled=!0)):x.set(_,{value:null,finished:D||!1,cancelled:C||!1})},d&&(d[T]=t[T])}});const h=e._state;t.pause===!h.paused?(h.paused=t.pause,np(t.pause?h.pauseQueue:h.resumeQueue)):h.paused&&(t.pause=!0);const g=(r||Object.keys(e.springs)).map(T=>e.springs[T].start(t)),y=t.cancel===!0||YP(t,"cancel")===!0;(p||y&&h.asyncId)&&g.push(KP(++e._lastAsyncId,{props:t,state:h,actions:{pause:Vx,resume:Vx,start(T,_){y?(eh(h,e._lastAsyncId),_(Fu(e))):(T.onRest=l,_(ZP(p,T,h,e)))}}})),h.paused&&await new Promise(T=>{h.resumeQueue.add(T)});const v=lC(e,await Promise.all(g));if(s&&v.finished&&!(n&&v.noop)){const T=e4(t,s,o);if(T)return a4(e,[T]),t4(e,T,!0)}return u&&It.batchedUpdates(()=>u(v,e,e.item)),v}function rI(e,t){const n={...e.springs};return t&&Kt(zo(t),r=>{Ye.und(r.keys)&&(r=th(r)),Ye.obj(r.to)||(r={...r,to:void 0}),o4(n,r,o=>r4(o))}),n4(e,n),n}function n4(e,t){bi(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,gd(n,e))})}function r4(e,t){const n=new oee;return n.key=e,t&&gd(n,t),n}function o4(e,t,n){t.keys&&Kt(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function a4(e,t){Kt(t,n=>{o4(e.springs,n,r=>r4(r,e))})}var uee=w.createContext({pause:!1,immediate:!1}),dee=()=>{const e=[],t=function(r){MJ();const o=[];return Kt(e,(a,s)=>{if(Ye.und(r))o.push(a.start());else{const l=n(r,a,s);l&&o.push(a.start(l))}}),o};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const o=e.indexOf(r);~o&&e.splice(o,1)},t.pause=function(){return Kt(e,r=>r.pause(...arguments)),this},t.resume=function(){return Kt(e,r=>r.resume(...arguments)),this},t.set=function(r){Kt(e,(o,a)=>{const s=Ye.fun(r)?r(a,o):r;s&&o.set(s)})},t.start=function(r){const o=[];return Kt(e,(a,s)=>{if(Ye.und(r))o.push(a.start());else{const l=this._getProps(r,a,s);l&&o.push(a.start(l))}}),o},t.stop=function(){return Kt(e,r=>r.stop(...arguments)),this},t.update=function(r){return Kt(e,(o,a)=>o.update(this._getProps(r,o,a))),this};const n=function(r,o,a){return Ye.fun(r)?r(a,o):r};return t._getProps=n,t};function fee(e,t,n){const r=Ye.fun(t)&&t;r&&!n&&(n=[]);const o=w.useMemo(()=>r||arguments.length==3?dee():void 0,[]),a=w.useRef(0),s=HP(),l=w.useMemo(()=>({ctrls:[],queue:[],flush(x,D){const C=rI(x,D);return a.current>0&&!l.queue.length&&!Object.keys(C).some(I=>!x.springs[I])?Zx(x,D):new Promise(I=>{n4(x,C),l.queue.push(()=>{I(Zx(x,D))}),s()})}}),[]),u=w.useRef([...l.ctrls]),d=w.useRef([]),p=GR(e)||0;w.useMemo(()=>{Kt(u.current.slice(e,p),x=>{XJ(x,o),x.stop(!0)}),u.current.length=e,h(p,e)},[e]),w.useMemo(()=>{h(0,Math.min(p,e))},n);function h(x,D){for(let C=x;C<D;C++){const R=u.current[C]||(u.current[C]=new cee(null,l.flush)),I=r?r(C,R):t[C];I&&(d.current[C]=aee(I))}}const g=u.current.map((x,D)=>rI(x,d.current[D])),y=w.useContext(uee),v=GR(y),T=y!==v&&KJ(y);aC(()=>{a.current++,l.ctrls=u.current;const{queue:x}=l;x.length&&(l.queue=[],Kt(x,D=>D())),Kt(u.current,(D,C)=>{o?.add(D),T&&D.start({default:y});const R=d.current[C];R&&(ZJ(D,R.ref),D.ref?D.queue.push(R):D.start(R))})}),zP(()=>()=>{Kt(l.ctrls,x=>x.stop(!0))});const _=g.map(x=>({...x}));return o?[_,o]:_}function pee(e,t){const n=Ye.fun(e),[[r],o]=fee(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,o]:r}var hee=class extends cC{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Yp(...t);const n=this._get(),r=qx(n);iC(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Ki(t,n)||(oi(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&oI(this._active)&&bE(this)}_get(){const e=Ye.arr(this.source)?this.source.map(vo):zo(vo(this.source));return this.calc(...e)}_start(){this.idle&&!oI(this._active)&&(this.idle=!1,Kt(K0(this),e=>{e.done=!1}),Ba.skipAnimation?(It.batchedUpdates(()=>this.advance()),bE(this)):q0.start(this))}_attach(){let e=1;Kt(zo(this.source),t=>{ha(t)&&gd(t,this),Qx(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Kt(zo(this.source),e=>{ha(e)&&Xp(e,this)}),this._active.clear(),bE(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=zo(this.source).reduce((t,n)=>Math.max(t,(Qx(n)?n.priority:0)+1),0))}};function mee(e){return e.idle!==!1}function oI(e){return!e.size||Array.from(e).every(mee)}function bE(e){e.idle||(e.idle=!0,Kt(K0(e),t=>{t.done=!0}),Kp(e,{type:"idle",parent:e}))}Ba.assign({createStringInterpolator:jP,to:(e,t)=>new hee(e,t)});var i4=/^--/;function gee(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!i4.test(e)&&!(bp.hasOwnProperty(e)&&bp[e])?t+"px":(""+t).trim()}var aI={};function yee(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:l,viewBox:u,...d}=t,p=Object.values(d),h=Object.keys(d).map(g=>n||e.hasAttribute(g)?g:aI[g]||(aI[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=gee(g,o[g]);i4.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),l!==void 0&&(e.scrollLeft=l),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},bee=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),vee=["Webkit","Ms","Moz","O"];bp=Object.keys(bp).reduce((e,t)=>(vee.forEach(n=>e[bee(n,t)]=e[t]),e),bp);var Eee=/^(matrix|translate|scale|rotate|skew)/,xee=/^(translate)/,Tee=/^(rotate|skew)/,vE=(e,t)=>Ye.num(e)&&e!==0?e+t:e,Jg=(e,t)=>Ye.arr(e)?e.every(n=>Jg(n,t)):Ye.num(e)?e===t:parseFloat(e)===t,See=class extends Z0{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(l=>vE(l,"px")).join(",")})`,Jg(s,0)])),bi(r,(s,l)=>{if(l==="transform")o.push([s||""]),a.push(u=>[u,u===""]);else if(Eee.test(l)){if(delete r[l],Ye.und(s))return;const u=xee.test(l)?"px":Tee.test(l)?"deg":"";o.push(zo(s)),a.push(l==="rotate3d"?([d,p,h,g])=>[`rotate3d(${d},${p},${h},${vE(g,u)})`,Jg(g,0)]:d=>[`${l}(${d.map(p=>vE(p,u)).join(",")})`,Jg(d,l.startsWith("scale")?1:0)])}}),o.length&&(r.transform=new Cee(o,a)),super(r)}},Cee=class extends MP{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 Kt(this.inputs,(n,r)=>{const o=vo(n[0]),[a,s]=this.transforms[r](Ye.arr(o)?o:n.map(vo));e+=" "+a,t=t&&s}),t?"none":e}observerAdded(e){e==1&&Kt(this.inputs,t=>Kt(t,n=>ha(n)&&gd(n,this)))}observerRemoved(e){e==0&&Kt(this.inputs,t=>Kt(t,n=>ha(n)&&Xp(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Kp(this,e)}},_ee=["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"];Ba.assign({batchedUpdates:f0.unstable_batchedUpdates,createStringInterpolator:jP,colors:hJ});var Aee=GJ(_ee,{applyAnimatedValues:yee,createAnimatedStyle:e=>new See(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),kee=Aee.animated;const iI=e=>e,wee=()=>{let e=iI;return{configure(t){e=t},generate(t){return e(t)},reset(){e=iI}}},Dee=wee();function uc(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 ja(e){if(typeof e!="string")throw new Error(uc(7));return e.charAt(0).toUpperCase()+e.slice(1)}function J0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var sI={exports:{}},EE,lI;function Ree(){if(lI)return EE;lI=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return EE=e,EE}var xE,cI;function Iee(){if(cI)return xE;cI=1;var e=Ree();function t(){}function n(){}return n.resetWarningCache=t,xE=function(){function r(s,l,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},xE}var uI;function Oee(){return uI||(uI=1,sI.exports=Iee()()),sI.exports}var Nee=Oee();const dI=J0(Nee);function s4(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=s4(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function gr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=s4(e))&&(r&&(r+=" "),r+=t);return r}function vc(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let s="",l=!0;for(let u=0;u<a.length;u+=1){const d=a[u];d&&(s+=(l===!0?"":" ")+t(d),l=!1,n&&n[d]&&(s+=" "+n[d]))}r[o]=s}return r}var fI={exports:{}},bn={};/**
|
|
236
|
+
* @license React
|
|
237
|
+
* react-is.production.js
|
|
238
|
+
*
|
|
239
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
240
|
+
*
|
|
241
|
+
* This source code is licensed under the MIT license found in the
|
|
242
|
+
* LICENSE file in the root directory of this source tree.
|
|
243
|
+
*/var pI;function Pee(){if(pI)return bn;pI=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"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),g=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function v(T){if(typeof T=="object"&&T!==null){var _=T.$$typeof;switch(_){case e:switch(T=T.type,T){case n:case o:case r:case u:case d:case g:return T;default:switch(T=T&&T.$$typeof,T){case s:case l:case h:case p:return T;case a:return T;default:return _}}case t:return _}}}return bn.ContextConsumer=a,bn.ContextProvider=s,bn.Element=e,bn.ForwardRef=l,bn.Fragment=n,bn.Lazy=h,bn.Memo=p,bn.Portal=t,bn.Profiler=o,bn.StrictMode=r,bn.Suspense=u,bn.SuspenseList=d,bn.isContextConsumer=function(T){return v(T)===a},bn.isContextProvider=function(T){return v(T)===s},bn.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===e},bn.isForwardRef=function(T){return v(T)===l},bn.isFragment=function(T){return v(T)===n},bn.isLazy=function(T){return v(T)===h},bn.isMemo=function(T){return v(T)===p},bn.isPortal=function(T){return v(T)===t},bn.isProfiler=function(T){return v(T)===o},bn.isStrictMode=function(T){return v(T)===r},bn.isSuspense=function(T){return v(T)===u},bn.isSuspenseList=function(T){return v(T)===d},bn.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===n||T===o||T===r||T===u||T===d||typeof T=="object"&&T!==null&&(T.$$typeof===h||T.$$typeof===p||T.$$typeof===s||T.$$typeof===a||T.$$typeof===l||T.$$typeof===y||T.getModuleId!==void 0)},bn.typeOf=v,bn}var hI;function Lee(){return hI||(hI=1,fI.exports=Pee()),fI.exports}var l4=Lee();function Xi(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 c4(e){if(w.isValidElement(e)||l4.isValidElementType(e)||!Xi(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=c4(e[n])}),t}function Vo(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Xi(e)&&Xi(t)&&Object.keys(t).forEach(o=>{w.isValidElement(t[o])||l4.isValidElementType(t[o])?r[o]=t[o]:Xi(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Xi(e[o])?r[o]=Vo(e[o],t[o],n):n.clone?r[o]=Xi(t[o])?c4(t[o]):t[o]:r[o]=t[o]}),r}function vp(e,t){return t?Vo(e,t,{clone:!1}):e}function mI(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 Mee(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Fee(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 Bee(e){const t=(a,s)=>a.replace("@media",s?`@container ${s}`:"@container");function n(a,s){a.up=(...l)=>t(e.breakpoints.up(...l),s),a.down=(...l)=>t(e.breakpoints.down(...l),s),a.between=(...l)=>t(e.breakpoints.between(...l),s),a.only=(...l)=>t(e.breakpoints.only(...l),s),a.not=(...l)=>{const u=t(e.breakpoints.not(...l),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 eb={xs:0,sm:600,md:900,lg:1200,xl:1536},gI={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${eb[e]}px)`},jee={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:eb[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function as(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||gI;return t.reduce((a,s,l)=>(a[o.up(o.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const o=r.breakpoints||gI;return Object.keys(t).reduce((a,s)=>{if(Mee(o.keys,s)){const l=Fee(r.containerQueries?r:jee,s);l&&(a[l]=n(t[s],s))}else if(Object.keys(o.values||eb).includes(s)){const l=o.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function Uee(e={}){return e.keys?.reduce((t,n)=>{const r=e.up(n);return t[r]={},t},{})||{}}function yI(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function tb(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 Fy(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=tb(e,n)||r,t&&(o=t(o,r,e)),o}function cr(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=s=>{if(s[t]==null)return null;const l=s[t],u=s.theme,d=tb(u,r)||{};return as(s,l,p=>{let h=Fy(d,o,p);return p===h&&typeof p=="string"&&(h=Fy(d,o,`${t}${p==="default"?"":ja(p)}`,p)),n===!1?h:{[n]:h}})};return a.propTypes={},a.filterProps=[t],a}function Hee(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const zee={m:"margin",p:"padding"},$ee={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},bI={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Vee=Hee(e=>{if(e.length>2)if(bI[e])e=bI[e];else return[e];const[t,n]=e.split(""),r=zee[t],o=$ee[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),uC=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],dC=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...uC,...dC];function Nh(e,t,n,r){const o=tb(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),l=o[s];return a>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof o=="function"?o:()=>{}}function fC(e){return Nh(e,"spacing",8)}function Ph(e,t){return typeof t=="string"||t==null?t:e(t)}function Gee(e,t){return n=>e.reduce((r,o)=>(r[o]=Ph(t,n),r),{})}function qee(e,t,n,r){if(!t.includes(n))return null;const o=Vee(n),a=Gee(o,r),s=e[n];return as(e,s,a)}function u4(e,t){const n=fC(e.theme);return Object.keys(e).map(r=>qee(e,t,r,n)).reduce(vp,{})}function Jn(e){return u4(e,uC)}Jn.propTypes={};Jn.filterProps=uC;function er(e){return u4(e,dC)}er.propTypes={};er.filterProps=dC;function nb(...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 cr({prop:e,themeKey:"borders",transform:t})}const Wee=Aa("border",ma),Yee=Aa("borderTop",ma),Qee=Aa("borderRight",ma),Kee=Aa("borderBottom",ma),Xee=Aa("borderLeft",ma),Zee=Aa("borderColor"),Jee=Aa("borderTopColor"),ete=Aa("borderRightColor"),tte=Aa("borderBottomColor"),nte=Aa("borderLeftColor"),rte=Aa("outline",ma),ote=Aa("outlineColor"),rb=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Nh(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Ph(t,r)});return as(e,e.borderRadius,n)}return null};rb.propTypes={};rb.filterProps=["borderRadius"];nb(Wee,Yee,Qee,Kee,Xee,Zee,Jee,ete,tte,nte,rb,rte,ote);const ob=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Nh(e.theme,"spacing",8),n=r=>({gap:Ph(t,r)});return as(e,e.gap,n)}return null};ob.propTypes={};ob.filterProps=["gap"];const ab=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Nh(e.theme,"spacing",8),n=r=>({columnGap:Ph(t,r)});return as(e,e.columnGap,n)}return null};ab.propTypes={};ab.filterProps=["columnGap"];const ib=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Nh(e.theme,"spacing",8),n=r=>({rowGap:Ph(t,r)});return as(e,e.rowGap,n)}return null};ib.propTypes={};ib.filterProps=["rowGap"];const ate=cr({prop:"gridColumn"}),ite=cr({prop:"gridRow"}),ste=cr({prop:"gridAutoFlow"}),lte=cr({prop:"gridAutoColumns"}),cte=cr({prop:"gridAutoRows"}),ute=cr({prop:"gridTemplateColumns"}),dte=cr({prop:"gridTemplateRows"}),fte=cr({prop:"gridTemplateAreas"}),pte=cr({prop:"gridArea"});nb(ob,ab,ib,ate,ite,ste,lte,cte,ute,dte,fte,pte);function Bu(e,t){return t==="grey"?t:e}const hte=cr({prop:"color",themeKey:"palette",transform:Bu}),mte=cr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Bu}),gte=cr({prop:"backgroundColor",themeKey:"palette",transform:Bu});nb(hte,mte,gte);function Ho(e){return e<=1&&e!==0?`${e*100}%`:e}const yte=cr({prop:"width",transform:Ho}),pC=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||eb[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Ho(n)}};return as(e,e.maxWidth,t)}return null};pC.filterProps=["maxWidth"];const bte=cr({prop:"minWidth",transform:Ho}),vte=cr({prop:"height",transform:Ho}),Ete=cr({prop:"maxHeight",transform:Ho}),xte=cr({prop:"minHeight",transform:Ho});cr({prop:"size",cssProperty:"width",transform:Ho});cr({prop:"size",cssProperty:"height",transform:Ho});const Tte=cr({prop:"boxSizing"});nb(yte,pC,bte,vte,Ete,xte,Tte);const sb={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:rb},color:{themeKey:"palette",transform:Bu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Bu},backgroundColor:{themeKey:"palette",transform:Bu},p:{style:er},pt:{style:er},pr:{style:er},pb:{style:er},pl:{style:er},px:{style:er},py:{style:er},padding:{style:er},paddingTop:{style:er},paddingRight:{style:er},paddingBottom:{style:er},paddingLeft:{style:er},paddingX:{style:er},paddingY:{style:er},paddingInline:{style:er},paddingInlineStart:{style:er},paddingInlineEnd:{style:er},paddingBlock:{style:er},paddingBlockStart:{style:er},paddingBlockEnd:{style:er},m:{style:Jn},mt:{style:Jn},mr:{style:Jn},mb:{style:Jn},ml:{style:Jn},mx:{style:Jn},my:{style:Jn},margin:{style:Jn},marginTop:{style:Jn},marginRight:{style:Jn},marginBottom:{style:Jn},marginLeft:{style:Jn},marginX:{style:Jn},marginY:{style:Jn},marginInline:{style:Jn},marginInlineStart:{style:Jn},marginInlineEnd:{style:Jn},marginBlock:{style:Jn},marginBlockStart:{style:Jn},marginBlockEnd:{style:Jn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ob},rowGap:{style:ib},columnGap:{style:ab},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:pC},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 Ste(...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 Cte(e,t){return typeof e=="function"?e(t):e}function _te(){function e(n,r,o,a){const s={[n]:r,theme:o},l=a[n];if(!l)return{[n]:r};const{cssProperty:u=n,themeKey:d,transform:p,style:h}=l;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const g=tb(o,d)||{};return h?h(s):as(s,r,y=>{let v=Fy(g,p,y);return y===v&&typeof y=="string"&&(v=Fy(g,p,`${n}${y==="default"?"":ja(y)}`,y)),u===!1?v:{[u]:v}})}function t(n){const{sx:r,theme:o={},nested:a}=n||{};if(!r)return null;const s=o.unstable_sxConfig??sb;function l(u){let d=u;if(typeof u=="function")d=u(o);else if(typeof u!="object")return u;if(!d)return null;const p=Uee(o.breakpoints),h=Object.keys(p);let g=p;return Object.keys(d).forEach(y=>{const v=Cte(d[y],o);if(v!=null)if(typeof v=="object")if(s[y])g=vp(g,e(y,v,o,s));else{const T=as({theme:o},v,_=>({[y]:_}));Ste(T,v)?g[y]=t({sx:v,theme:o,nested:!0}):g=vp(g,T)}else g=vp(g,e(y,v,o,s))}),!a&&o.modularCssLayers?{"@layer sx":mI(o,yI(h,g))}:mI(o,yI(h,g))}return Array.isArray(r)?r.map(l):l(r)}return t}const td=_te();td.filterProps=["sx"];function Ate(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function hC(e,t=0,n=1){return Ate(e,t,n)}function kte(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function el(e){if(e.type)return e;if(e.charAt(0)==="#")return el(kte(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(uc(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(uc(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}const wte=e=>{const t=el(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},rp=(e,t)=>{try{return wte(e)}catch{return e}};function lb(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,a)=>a<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function d4(e){e=el(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),s=(d,p=(d+n/30)%12)=>o-a*Math.max(Math.min(p-3,9-p,1),-1);let l="rgb";const u=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",u.push(t[3])),lb({type:l,values:u})}function Jx(e){e=el(e);let t=e.type==="hsl"||e.type==="hsla"?el(d4(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 Dte(e,t){const n=Jx(e),r=Jx(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function eT(e,t){return e=el(e),t=hC(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,lb(e)}function xg(e,t,n){try{return eT(e,t)}catch{return e}}function mC(e,t){if(e=el(e),t=hC(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return lb(e)}function Cn(e,t,n){try{return mC(e,t)}catch{return e}}function gC(e,t){if(e=el(e),t=hC(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return lb(e)}function _n(e,t,n){try{return gC(e,t)}catch{return e}}function Rte(e,t=.15){return Jx(e)>.5?mC(e,t):gC(e,t)}function Tg(e,t,n){try{return Rte(e,t)}catch{return e}}const nh={black:"#000",white:"#fff"},Ite={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"},du={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},fu={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},jf={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},pu={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},hu={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},mu={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function f4(){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 Ote=f4();function p4(){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 vI=p4();function EI(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=gC(e.main,o):t==="dark"&&(e.dark=mC(e.main,a)))}function Nte(e="light"){return e==="dark"?{main:pu[200],light:pu[50],dark:pu[400]}:{main:pu[700],light:pu[400],dark:pu[800]}}function Pte(e="light"){return e==="dark"?{main:du[200],light:du[50],dark:du[400]}:{main:du[500],light:du[300],dark:du[700]}}function Lte(e="light"){return e==="dark"?{main:fu[500],light:fu[300],dark:fu[700]}:{main:fu[700],light:fu[400],dark:fu[800]}}function Mte(e="light"){return e==="dark"?{main:hu[400],light:hu[300],dark:hu[700]}:{main:hu[700],light:hu[500],dark:hu[900]}}function Fte(e="light"){return e==="dark"?{main:mu[400],light:mu[300],dark:mu[700]}:{main:mu[800],light:mu[500],dark:mu[900]}}function Bte(e="light"){return e==="dark"?{main:jf[400],light:jf[300],dark:jf[700]}:{main:"#ed6c02",light:jf[500],dark:jf[900]}}function yC(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,a=e.primary||Nte(t),s=e.secondary||Pte(t),l=e.error||Lte(t),u=e.info||Mte(t),d=e.success||Fte(t),p=e.warning||Bte(t);function h(v){return Dte(v,vI.text.primary)>=n?vI.text.primary:Ote.text.primary}const g=({color:v,name:T,mainShade:_=500,lightShade:x=300,darkShade:D=700})=>{if(v={...v},!v.main&&v[_]&&(v.main=v[_]),!v.hasOwnProperty("main"))throw new Error(uc(11,T?` (${T})`:"",_));if(typeof v.main!="string")throw new Error(uc(12,T?` (${T})`:"",JSON.stringify(v.main)));return EI(v,"light",x,r),EI(v,"dark",D,r),v.contrastText||(v.contrastText=h(v.main)),v};let y;return t==="light"?y=f4():t==="dark"&&(y=p4()),Vo({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:l,name:"error"}),warning:g({color:p,name:"warning"}),info:g({color:u,name:"info"}),success:g({color:d,name:"success"}),grey:Ite,contrastThreshold:n,getContrastText:h,augmentColor:g,tonalOffset:r,...y},o)}function jte(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 Ute={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 Hte(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var zte=/[A-Z]|^ms/g,$te=/_EMO_([^_]+?)_([^]*?)_EMO_/g,h4=function(e){return e.charCodeAt(1)===45},xI=function(e){return e!=null&&typeof e!="boolean"},TE=Hte(function(e){return h4(e)?e:e.replace(zte,"-$&").toLowerCase()}),TI=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace($te,function(n,r,o){return Gs={name:r,styles:o,next:Gs},r})}return Ute[e]!==1&&!h4(e)&&typeof t=="number"&&t!==0?t+"px":t};function By(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 l=a.styles+";";return l}return Vte(e,t,n)}}var u=n;return u}function Vte(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=By(e,t,n[o])+";";else for(var a in n){var s=n[a];if(typeof s!="object"){var l=s;xI(l)&&(r+=TE(a)+":"+TI(a,l)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var u=0;u<s.length;u++)xI(s[u])&&(r+=TE(a)+":"+TI(a,s[u])+";");else{var d=By(e,t,s);switch(a){case"animation":case"animationName":{r+=TE(a)+":"+d+";";break}default:r+=a+"{"+d+"}"}}}return r}var SI=/label:\s*([^\s;{]+)\s*(;|$)/g,Gs;function Gte(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+=By(n,t,a);else{var s=a;o+=s[0]}for(var l=1;l<e.length;l++)if(o+=By(n,t,e[l]),r){var u=a;o+=u[l]}SI.lastIndex=0;for(var d="",p;(p=SI.exec(o))!==null;)d+="-"+p[1];var h=jte(o)+d;return{name:h,styles:o,next:Gs}}function qte(e,t){return yy(e,t)}function Wte(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const CI=[];function Jl(e){return CI[0]=e,Gte(CI)}const Yte=typeof window<"u"?w.useLayoutEffect:w.useEffect;function Qte(e){return Object.keys(e).length===0}function Kte(e=null){const t=w.useContext(ld);return!t||Qte(t)?e:t}const Xte=w.createContext(),Zte=()=>w.useContext(Xte)??!1;function jy(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const a=o;if(a==="components"||a==="slots")r[a]={...e[a],...r[a]};else if(a==="componentsProps"||a==="slotProps"){const s=e[a],l=t[a];if(!l)r[a]=s||{};else if(!s)r[a]=l;else{r[a]={...l};for(const u in s)if(Object.prototype.hasOwnProperty.call(s,u)){const d=u;r[a][d]=jy(s[d],l[d],n)}}}else a==="className"&&n&&t.className?r.className=gr(e?.className,t?.className):a==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[a]===void 0&&(r[a]=e[a])}return r}const Jte=w.createContext(void 0);function ene(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?jy(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?jy(o,r,t.components.mergeClassNameAndStyle):r}function tne({props:e,name:t}){const n=w.useContext(Jte);return ene({props:e,name:t,theme:{components:n}})}const nne=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 rne(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,a=nne(t),s=Object.keys(a);function l(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 v=s.indexOf(y);return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n}) and (max-width:${(v!==-1&&typeof t[s[v]]=="number"?t[s[v]]:y)-r/100}${n})`}function p(g){return s.indexOf(g)+1<s.length?d(g,s[s.indexOf(g)+1]):l(g)}function h(g){const y=s.indexOf(g);return y===0?l(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:l,down:u,between:d,only:p,not:h,unit:n,...o}}const one={borderRadius:4};function ane(e=8,t=fC({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 ine(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 bC(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={},...s}=e,l=rne(n),u=ane(o);let d=Vo({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:u,shape:{...one,...a}},s);return d=Bee(d),d.applyStyles=ine,d=t.reduce((p,h)=>Vo(p,h),d),d.unstable_sxConfig={...sb,...s?.unstable_sxConfig},d.unstable_sx=function(p){return td({sx:p,theme:this})},d}const sne=bC();function lne(e=sne){return Kte(e)}const _I=(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])})},cne=(e,t,n)=>{function r(o,a=[],s=[]){Object.entries(o).forEach(([l,u])=>{(!n||n&&!n([...a,l]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?r(u,[...a,l],Array.isArray(u)?[...s,l]:s):t([...a,l],u,s))})}r(e)},une=(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 SE(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},s={};return cne(e,(l,u,d)=>{if((typeof u=="string"||typeof u=="number")&&(!r||!r(l,u))){const p=`--${n?`${n}-`:""}${l.join("-")}`,h=une(l,u);Object.assign(o,{[p]:h}),_I(a,l,`var(${p})`,d),_I(s,l,`var(${p}, ${h})`,d)}},l=>l[0]==="vars"),{css:o,vars:a,varsWithDefaults:s}}function dne(e,t={}){const{getSelector:n=_,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:a={},components:s,defaultColorScheme:l="light",...u}=e,{vars:d,css:p,varsWithDefaults:h}=SE(u,t);let g=h;const y={},{[l]:v,...T}=a;if(Object.entries(T||{}).forEach(([x,D])=>{const{vars:C,css:R,varsWithDefaults:I}=SE(D,t);g=Vo(g,I),y[x]={css:R,vars:C}}),v){const{css:x,vars:D,varsWithDefaults:C}=SE(v,t);g=Vo(g,C),y[l]={css:x,vars:D}}function _(x,D){let C=o;if(o==="class"&&(C=".%s"),o==="data"&&(C="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(C=`[${o}="%s"]`),x){if(C==="media")return e.defaultColorScheme===x?":root":{[`@media (prefers-color-scheme: ${a[x]?.palette?.mode||x})`]:{":root":D}};if(C)return e.defaultColorScheme===x?`:root, ${C.replace("%s",String(x))}`:C.replace("%s",String(x))}return":root"}return{vars:g,generateThemeVars:()=>{let x={...d};return Object.entries(y).forEach(([,{vars:D}])=>{x=Vo(x,D)}),x},generateStyleSheets:()=>{const x=[],D=e.defaultColorScheme||"light";function C(O,F){Object.keys(F).length&&x.push(typeof O=="string"?{[O]:{...F}}:O)}C(n(void 0,{...p}),p);const{[D]:R,...I}=y;if(R){const{css:O}=R,F=a[D]?.palette?.mode,H=!r&&F?{colorScheme:F,...O}:{...O};C(n(D,{...H}),H)}return Object.entries(I).forEach(([O,{css:F}])=>{const H=a[O]?.palette?.mode,U=!r&&H?{colorScheme:H,...F}:{...F};C(n(O,{...U}),U)}),x}}}function fne(e){const t={};return Object.entries(e).forEach(n=>{const[r,o]=n;typeof o=="object"&&(t[r]=`${o.fontStyle?`${o.fontStyle} `:""}${o.fontVariant?`${o.fontVariant} `:""}${o.fontWeight?`${o.fontWeight} `:""}${o.fontStretch?`${o.fontStretch} `:""}${o.fontSize||""}${o.lineHeight?`/${o.lineHeight} `:""}${o.fontFamily||""}`)}),t}function pne(e){return function(t){return e==="media"?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:e==="class"?`.${t} &`:e==="data"?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}const hne={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 il(e,t,n="Mui"){const r=hne[t];return r?`${n}-${r}`:`${Dee.generate(e)}-${t}`}function mne(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function gne(e){return Math.round(e*1e5)/1e5}const AI={textTransform:"uppercase"},kI='"Roboto", "Helvetica", "Arial", sans-serif';function yne(e,t){const{fontFamily:n=kI,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:d,pxToRem:p,...h}=typeof t=="function"?t(e):t,g=r/14,y=p||(_=>`${_/u*g}rem`),v=(_,x,D,C,R)=>({fontFamily:n,fontWeight:_,fontSize:y(x),lineHeight:D,...n===kI?{letterSpacing:`${gne(C/x)}em`}:{},...R,...d}),T={h1:v(o,96,1.167,-1.5),h2:v(o,60,1.2,-.5),h3:v(a,48,1.167,0),h4:v(a,34,1.235,.25),h5:v(a,24,1.334,0),h6:v(s,20,1.6,.15),subtitle1:v(a,16,1.75,.15),subtitle2:v(s,14,1.57,.1),body1:v(a,16,1.5,.15),body2:v(a,14,1.43,.15),button:v(s,14,1.75,.4,AI),caption:v(a,12,1.66,.4),overline:v(a,12,2.66,1,AI),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Vo({htmlFontSize:u,pxToRem:y,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l,...T},h,{clone:!1})}const bne=.2,vne=.14,Ene=.12;function Un(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${bne})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${vne})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Ene})`].join(",")}const xne=["none",Un(0,2,1,-1,0,1,1,0,0,1,3,0),Un(0,3,1,-2,0,2,2,0,0,1,5,0),Un(0,3,3,-2,0,3,4,0,0,1,8,0),Un(0,2,4,-1,0,4,5,0,0,1,10,0),Un(0,3,5,-1,0,5,8,0,0,1,14,0),Un(0,3,5,-1,0,6,10,0,0,1,18,0),Un(0,4,5,-2,0,7,10,1,0,2,16,1),Un(0,5,5,-3,0,8,10,1,0,3,14,2),Un(0,5,6,-3,0,9,12,1,0,3,16,2),Un(0,6,6,-3,0,10,14,1,0,4,18,3),Un(0,6,7,-4,0,11,15,1,0,4,20,3),Un(0,7,8,-4,0,12,17,2,0,5,22,4),Un(0,7,8,-4,0,13,19,2,0,5,24,4),Un(0,7,9,-4,0,14,21,2,0,5,26,4),Un(0,8,9,-5,0,15,22,2,0,6,28,5),Un(0,8,10,-5,0,16,24,2,0,6,30,5),Un(0,8,11,-5,0,17,26,2,0,6,32,5),Un(0,9,11,-5,0,18,28,2,0,7,34,6),Un(0,9,12,-6,0,19,29,2,0,7,36,6),Un(0,10,13,-6,0,20,31,3,0,8,38,7),Un(0,10,13,-6,0,21,33,3,0,8,40,7),Un(0,10,14,-6,0,22,35,3,0,8,42,7),Un(0,11,14,-7,0,23,36,3,0,9,44,8),Un(0,11,15,-7,0,24,38,3,0,9,46,8)],Tne={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)"},m4={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function wI(e){return`${Math.round(e)}ms`}function Sne(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Cne(e){const t={...Tne,...e.easing},n={...m4,...e.duration};return{getAutoHeightDuration:Sne,create:(r=["all"],o={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0,...u}=o;return(Array.isArray(r)?r:[r]).map(d=>`${d} ${typeof a=="string"?a:wI(a)} ${s} ${typeof l=="string"?l:wI(l)}`).join(",")},...e,easing:t,duration:n}}const _ne={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Ane(e){return Xi(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function g4(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let a=0;a<o.length;a++){const[s,l]=o[a];!Ane(l)||s.startsWith("unstable_")?delete r[s]:Xi(l)&&(r[s]={...l},n(r[s]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
244
|
+
|
|
245
|
+
const theme = ${JSON.stringify(t,null,2)};
|
|
246
|
+
|
|
247
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
248
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
249
|
+
|
|
250
|
+
export default theme;`}function tT(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:a={},transitions:s={},typography:l={},shape:u,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(uc(20));const p=yC(a),h=bC(e);let g=Vo(h,{mixins:mne(h.breakpoints,r),palette:p,shadows:xne.slice(),typography:yne(p,l),transitions:Cne(s),zIndex:{..._ne}});return g=Vo(g,d),g=t.reduce((y,v)=>Vo(y,v),g),g.unstable_sxConfig={...sb,...d?.unstable_sxConfig},g.unstable_sx=function(y){return td({sx:y,theme:this})},g.toRuntimeSource=g4,g}function kne(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 wne=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=kne(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function y4(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function b4(e){return e==="dark"?wne:[]}function Dne(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,a=yC(t);return{palette:a,opacity:{...y4(a.mode),...n},overlays:r||b4(a.mode),...o}}function Rne(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const Ine=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],One=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 Ine(e.cssVarPrefix).forEach(l=>{s[l]=n[l],delete n[l]}),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 Nne(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function _e(e,t,n){!e[t]&&n&&(e[t]=n)}function op(e){return typeof e!="string"||!e.startsWith("hsl")?e:d4(e)}function Gi(e,t){`${t}Channel`in e||(e[`${t}Channel`]=rp(op(e[t])))}function Pne(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const ei=e=>{try{return e()}catch{}},Lne=(e="mui")=>q3(e);function CE(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=Dne({...t,palette:{mode:o,...t?.palette}});return}const{palette:a,...s}=tT({...n,palette:{mode:o,...t?.palette}});return e[r]={...t,palette:a,opacity:{...y4(o),...t?.opacity},overlays:t?.overlays||b4(o)},s}function Mne(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:s=Rne,colorSchemeSelector:l=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=Lne(a),{[h]:y,light:v,dark:T,..._}=n,x={..._};let D=y;if((h==="dark"&&!("dark"in n)||h==="light"&&!("light"in n))&&(D=!0),!D)throw new Error(uc(21,h));const C=CE(x,D,d,h);v&&!x.light&&CE(x,v,void 0,"light"),T&&!x.dark&&CE(x,T,void 0,"dark");let R={defaultColorScheme:h,...C,cssVarPrefix:a,colorSchemeSelector:l,rootSelector:u,getCssVar:g,colorSchemes:x,font:{...fne(C.typography),...C.font},spacing:Pne(d.spacing)};Object.keys(R.colorSchemes).forEach(U=>{const S=R.colorSchemes[U].palette,M=$=>{const z=$.split("-"),q=z[1],Y=z[2];return g($,S[q][Y])};if(S.mode==="light"&&(_e(S.common,"background","#fff"),_e(S.common,"onBackground","#000")),S.mode==="dark"&&(_e(S.common,"background","#000"),_e(S.common,"onBackground","#fff")),Nne(S,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),S.mode==="light"){_e(S.Alert,"errorColor",Cn(S.error.light,.6)),_e(S.Alert,"infoColor",Cn(S.info.light,.6)),_e(S.Alert,"successColor",Cn(S.success.light,.6)),_e(S.Alert,"warningColor",Cn(S.warning.light,.6)),_e(S.Alert,"errorFilledBg",M("palette-error-main")),_e(S.Alert,"infoFilledBg",M("palette-info-main")),_e(S.Alert,"successFilledBg",M("palette-success-main")),_e(S.Alert,"warningFilledBg",M("palette-warning-main")),_e(S.Alert,"errorFilledColor",ei(()=>S.getContrastText(S.error.main))),_e(S.Alert,"infoFilledColor",ei(()=>S.getContrastText(S.info.main))),_e(S.Alert,"successFilledColor",ei(()=>S.getContrastText(S.success.main))),_e(S.Alert,"warningFilledColor",ei(()=>S.getContrastText(S.warning.main))),_e(S.Alert,"errorStandardBg",_n(S.error.light,.9)),_e(S.Alert,"infoStandardBg",_n(S.info.light,.9)),_e(S.Alert,"successStandardBg",_n(S.success.light,.9)),_e(S.Alert,"warningStandardBg",_n(S.warning.light,.9)),_e(S.Alert,"errorIconColor",M("palette-error-main")),_e(S.Alert,"infoIconColor",M("palette-info-main")),_e(S.Alert,"successIconColor",M("palette-success-main")),_e(S.Alert,"warningIconColor",M("palette-warning-main")),_e(S.AppBar,"defaultBg",M("palette-grey-100")),_e(S.Avatar,"defaultBg",M("palette-grey-400")),_e(S.Button,"inheritContainedBg",M("palette-grey-300")),_e(S.Button,"inheritContainedHoverBg",M("palette-grey-A100")),_e(S.Chip,"defaultBorder",M("palette-grey-400")),_e(S.Chip,"defaultAvatarColor",M("palette-grey-700")),_e(S.Chip,"defaultIconColor",M("palette-grey-700")),_e(S.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),_e(S.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),_e(S.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),_e(S.LinearProgress,"primaryBg",_n(S.primary.main,.62)),_e(S.LinearProgress,"secondaryBg",_n(S.secondary.main,.62)),_e(S.LinearProgress,"errorBg",_n(S.error.main,.62)),_e(S.LinearProgress,"infoBg",_n(S.info.main,.62)),_e(S.LinearProgress,"successBg",_n(S.success.main,.62)),_e(S.LinearProgress,"warningBg",_n(S.warning.main,.62)),_e(S.Skeleton,"bg",`rgba(${M("palette-text-primaryChannel")} / 0.11)`),_e(S.Slider,"primaryTrack",_n(S.primary.main,.62)),_e(S.Slider,"secondaryTrack",_n(S.secondary.main,.62)),_e(S.Slider,"errorTrack",_n(S.error.main,.62)),_e(S.Slider,"infoTrack",_n(S.info.main,.62)),_e(S.Slider,"successTrack",_n(S.success.main,.62)),_e(S.Slider,"warningTrack",_n(S.warning.main,.62));const $=Tg(S.background.default,.8);_e(S.SnackbarContent,"bg",$),_e(S.SnackbarContent,"color",ei(()=>S.getContrastText($))),_e(S.SpeedDialAction,"fabHoverBg",Tg(S.background.paper,.15)),_e(S.StepConnector,"border",M("palette-grey-400")),_e(S.StepContent,"border",M("palette-grey-400")),_e(S.Switch,"defaultColor",M("palette-common-white")),_e(S.Switch,"defaultDisabledColor",M("palette-grey-100")),_e(S.Switch,"primaryDisabledColor",_n(S.primary.main,.62)),_e(S.Switch,"secondaryDisabledColor",_n(S.secondary.main,.62)),_e(S.Switch,"errorDisabledColor",_n(S.error.main,.62)),_e(S.Switch,"infoDisabledColor",_n(S.info.main,.62)),_e(S.Switch,"successDisabledColor",_n(S.success.main,.62)),_e(S.Switch,"warningDisabledColor",_n(S.warning.main,.62)),_e(S.TableCell,"border",_n(xg(S.divider,1),.88)),_e(S.Tooltip,"bg",xg(S.grey[700],.92))}if(S.mode==="dark"){_e(S.Alert,"errorColor",_n(S.error.light,.6)),_e(S.Alert,"infoColor",_n(S.info.light,.6)),_e(S.Alert,"successColor",_n(S.success.light,.6)),_e(S.Alert,"warningColor",_n(S.warning.light,.6)),_e(S.Alert,"errorFilledBg",M("palette-error-dark")),_e(S.Alert,"infoFilledBg",M("palette-info-dark")),_e(S.Alert,"successFilledBg",M("palette-success-dark")),_e(S.Alert,"warningFilledBg",M("palette-warning-dark")),_e(S.Alert,"errorFilledColor",ei(()=>S.getContrastText(S.error.dark))),_e(S.Alert,"infoFilledColor",ei(()=>S.getContrastText(S.info.dark))),_e(S.Alert,"successFilledColor",ei(()=>S.getContrastText(S.success.dark))),_e(S.Alert,"warningFilledColor",ei(()=>S.getContrastText(S.warning.dark))),_e(S.Alert,"errorStandardBg",Cn(S.error.light,.9)),_e(S.Alert,"infoStandardBg",Cn(S.info.light,.9)),_e(S.Alert,"successStandardBg",Cn(S.success.light,.9)),_e(S.Alert,"warningStandardBg",Cn(S.warning.light,.9)),_e(S.Alert,"errorIconColor",M("palette-error-main")),_e(S.Alert,"infoIconColor",M("palette-info-main")),_e(S.Alert,"successIconColor",M("palette-success-main")),_e(S.Alert,"warningIconColor",M("palette-warning-main")),_e(S.AppBar,"defaultBg",M("palette-grey-900")),_e(S.AppBar,"darkBg",M("palette-background-paper")),_e(S.AppBar,"darkColor",M("palette-text-primary")),_e(S.Avatar,"defaultBg",M("palette-grey-600")),_e(S.Button,"inheritContainedBg",M("palette-grey-800")),_e(S.Button,"inheritContainedHoverBg",M("palette-grey-700")),_e(S.Chip,"defaultBorder",M("palette-grey-700")),_e(S.Chip,"defaultAvatarColor",M("palette-grey-300")),_e(S.Chip,"defaultIconColor",M("palette-grey-300")),_e(S.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),_e(S.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),_e(S.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),_e(S.LinearProgress,"primaryBg",Cn(S.primary.main,.5)),_e(S.LinearProgress,"secondaryBg",Cn(S.secondary.main,.5)),_e(S.LinearProgress,"errorBg",Cn(S.error.main,.5)),_e(S.LinearProgress,"infoBg",Cn(S.info.main,.5)),_e(S.LinearProgress,"successBg",Cn(S.success.main,.5)),_e(S.LinearProgress,"warningBg",Cn(S.warning.main,.5)),_e(S.Skeleton,"bg",`rgba(${M("palette-text-primaryChannel")} / 0.13)`),_e(S.Slider,"primaryTrack",Cn(S.primary.main,.5)),_e(S.Slider,"secondaryTrack",Cn(S.secondary.main,.5)),_e(S.Slider,"errorTrack",Cn(S.error.main,.5)),_e(S.Slider,"infoTrack",Cn(S.info.main,.5)),_e(S.Slider,"successTrack",Cn(S.success.main,.5)),_e(S.Slider,"warningTrack",Cn(S.warning.main,.5));const $=Tg(S.background.default,.98);_e(S.SnackbarContent,"bg",$),_e(S.SnackbarContent,"color",ei(()=>S.getContrastText($))),_e(S.SpeedDialAction,"fabHoverBg",Tg(S.background.paper,.15)),_e(S.StepConnector,"border",M("palette-grey-600")),_e(S.StepContent,"border",M("palette-grey-600")),_e(S.Switch,"defaultColor",M("palette-grey-300")),_e(S.Switch,"defaultDisabledColor",M("palette-grey-600")),_e(S.Switch,"primaryDisabledColor",Cn(S.primary.main,.55)),_e(S.Switch,"secondaryDisabledColor",Cn(S.secondary.main,.55)),_e(S.Switch,"errorDisabledColor",Cn(S.error.main,.55)),_e(S.Switch,"infoDisabledColor",Cn(S.info.main,.55)),_e(S.Switch,"successDisabledColor",Cn(S.success.main,.55)),_e(S.Switch,"warningDisabledColor",Cn(S.warning.main,.55)),_e(S.TableCell,"border",Cn(xg(S.divider,1),.68)),_e(S.Tooltip,"bg",xg(S.grey[700],.92))}Gi(S.background,"default"),Gi(S.background,"paper"),Gi(S.common,"background"),Gi(S.common,"onBackground"),Gi(S,"divider"),Object.keys(S).forEach($=>{const z=S[$];$!=="tonalOffset"&&z&&typeof z=="object"&&(z.main&&_e(S[$],"mainChannel",rp(op(z.main))),z.light&&_e(S[$],"lightChannel",rp(op(z.light))),z.dark&&_e(S[$],"darkChannel",rp(op(z.dark))),z.contrastText&&_e(S[$],"contrastTextChannel",rp(op(z.contrastText))),$==="text"&&(Gi(S[$],"primary"),Gi(S[$],"secondary")),$==="action"&&(z.active&&Gi(S[$],"active"),z.selected&&Gi(S[$],"selected")))})}),R=t.reduce((U,S)=>Vo(U,S),R);const I={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:One(R)},{vars:O,generateThemeVars:F,generateStyleSheets:H}=dne(R,I);return R.vars=O,Object.entries(R.colorSchemes[R.defaultColorScheme]).forEach(([U,S])=>{R[U]=S}),R.generateThemeVars=F,R.generateStyleSheets=H,R.generateSpacing=function(){return iS(d.spacing,fC(this))},R.getColorSchemeSelector=pne(l),R.spacing=R.generateSpacing(),R.shouldSkipGeneratingVar=s,R.unstable_sxConfig={...sb,...d?.unstable_sxConfig},R.unstable_sx=function(U){return td({sx:U,theme:this})},R.toRuntimeSource=g4,R}function DI(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:yC({...n===!0?{}:n.palette,mode:t})})}function Fne(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...s}=e,l=a||"light",u=o?.[l],d={...o,...n?{[l]:{...typeof u!="boolean"&&u,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return tT(e,...t);let p=n;"palette"in e||d[l]&&(d[l]!==!0?p=d[l].palette:l==="dark"&&(p={mode:"dark"}));const h=tT({...e,palette:p},...t);return h.defaultColorScheme=l,h.colorSchemes=d,h.palette.mode==="light"&&(h.colorSchemes.light={...d.light!==!0&&d.light,palette:h.palette},DI(h,"dark",d.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:h.palette},DI(h,"light",d.light)),h}return!n&&!("light"in d)&&l==="light"&&(d.light=!0),Mne({...s,colorSchemes:d,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}const vC=Fne(),EC="$$material";function Bne(){const e=ud(vC);return e[EC]||e}function jne(e){const{variants:t,...n}=e,r={variants:t,style:Jl(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Jl(o.style))}),r}const Une=bC();function Ks(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function $l(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Hne(e){return e?(t,n)=>n[e]:null}function zne(e,t,n){e.theme=Vne(e.theme)?n:e.theme[t]||e.theme}function ey(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>ey(e,o,n));if(Array.isArray(r?.variants)){let o;if(r.isProcessed)o=n?$l(r.style,n):r.style;else{const{variants:a,...s}=r;o=n?$l(Jl(s),n):s}return v4(e,r.variants,[o],n)}return r?.isProcessed?n?$l(Jl(r.style),n):r.style:n?$l(Jl(r),n):r}function v4(e,t,n=[],r=void 0){let o;e:for(let a=0;a<t.length;a+=1){const s=t[a];if(typeof s.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!s.props(o))continue}else for(const l in s.props)if(e[l]!==s.props[l]&&e.ownerState?.[l]!==s.props[l])continue e;typeof s.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?$l(Jl(s.style(o)),r):s.style(o))):n.push(r?$l(Jl(s.style),r):s.style)}return n}function $ne(e={}){const{themeId:t,defaultTheme:n=Une,rootShouldForwardProp:r=Ks,slotShouldForwardProp:o=Ks}=e;function a(s){zne(s,t,n)}return(s,l={})=>{Wte(s,I=>I.filter(O=>O!==td));const{name:u,slot:d,skipVariantsResolver:p,skipSx:h,overridesResolver:g=Hne(qne(d)),...y}=l,v=u&&u.startsWith("Mui")||d?"components":"custom",T=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,_=h||!1;let x=Ks;d==="Root"||d==="root"?x=r:d?x=o:Gne(s)&&(x=void 0);const D=qte(s,{shouldForwardProp:x,label:void 0,...y}),C=I=>{if(I.__emotion_real===I)return I;if(typeof I=="function")return function(O){return ey(O,I,O.theme.modularCssLayers?v:void 0)};if(Xi(I)){const O=jne(I);return function(F){return O.variants?ey(F,O,F.theme.modularCssLayers?v:void 0):F.theme.modularCssLayers?$l(O.style,v):O.style}}return I},R=(...I)=>{const O=[],F=I.map(C),H=[];if(O.push(a),u&&g&&H.push(function(M){const $=M.theme.components?.[u]?.styleOverrides;if(!$)return null;const z={};for(const q in $)z[q]=ey(M,$[q],M.theme.modularCssLayers?"theme":void 0);return g(M,z)}),u&&!T&&H.push(function(M){const $=M.theme?.components?.[u]?.variants;return $?v4(M,$,[],M.theme.modularCssLayers?"theme":void 0):null}),_||H.push(td),Array.isArray(F[0])){const M=F.shift(),$=new Array(O.length).fill(""),z=new Array(H.length).fill("");let q;q=[...$,...M,...z],q.raw=[...$,...M.raw,...z],O.unshift(q)}const U=[...O,...F,...H],S=D(...U);return s.muiName&&(S.muiName=s.muiName),S};return D.withConfig&&(R.withConfig=D.withConfig),R}}function Vne(e){for(const t in e)return!1;return!0}function Gne(e){return typeof e=="string"&&e.charCodeAt(0)>96}function qne(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Wne(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const xC=e=>Wne(e)&&e!=="classes",Fn=$ne({themeId:EC,defaultTheme:vC,rootShouldForwardProp:xC}),TC=V3;function yd(e){return tne(e)}function sl(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=il(e,o,n)}),r}function Yne(e){return il("MuiSvgIcon",e)}sl("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Qne=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ja(t)}`,`fontSize${ja(n)}`]};return vc(o,Yne,r)},Kne=Fn("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ja(n.color)}`],t[`fontSize${ja(n.fontSize)}`]]}})(TC(({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}}]}))),nT=w.forwardRef(function(e,t){const n=yd({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:p,viewBox:h="0 0 24 24",...g}=n,y=w.isValidElement(r)&&r.type==="svg",v={...n,color:a,component:s,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:y},T={};d||(T.viewBox=h);const _=Qne(v);return b.jsxs(Kne,{as:s,className:gr(_.root,o),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:t,...T,...g,...y&&r.props,ownerState:v,children:[y?r.props.children:r,p?b.jsx("title",{children:p}):null]})});nT.muiName="SvgIcon";function wn(e,t){function n(r,o){return b.jsx(nT,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=nT.muiName,w.memo(w.forwardRef(n))}function Xne(e){return e&&e.ownerDocument||document}function Zne(e){const{controlled:t,default:n}=e,{current:r}=w.useRef(t!==void 0),[o,a]=w.useState(n),s=r?t:o,l=w.useCallback(u=>{r||a(u)},[]);return[s,l]}function mi(e){const t=w.useRef(e);return Yte(()=>{t.current=e}),w.useRef((...n)=>(0,t.current)(...n)).current}function vi(...e){const t=w.useRef(void 0),n=w.useCallback(r=>{const o=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const s=a,l=s(r);return typeof l=="function"?l:()=>{s(null)}}return a.current=r,()=>{a.current=null}});return()=>{o.forEach(a=>a?.())}},e);return w.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function Jne(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function ere(e,t){if(!e)return t;function n(s,l){const u={};return Object.keys(l).forEach(d=>{Jne(d,l[d])&&typeof s[d]=="function"&&(u[d]=(...p)=>{s[d](...p),l[d](...p)})}),u}if(typeof e=="function"||typeof t=="function")return s=>{const l=typeof t=="function"?t(s):t,u=typeof e=="function"?e({...s,...l}):e,d=gr(s?.className,l?.className,u?.className),p=n(u,l);return{...l,...u,...p,...!!d&&{className:d},...l?.style&&u?.style&&{style:{...l.style,...u.style}},...l?.sx&&u?.sx&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const r=t,o=n(e,r),a=gr(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 cb=wn(b.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=wn(b.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"})),E4=[{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"),[])}],tre=Object.fromEntries(E4.map(e=>[e.id,e.import])),nre=Object.fromEntries(E4.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),rre={...tre,...nre},ore=[{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"),[])}],are=Object.fromEntries(ore.map(e=>[e.id,e.import]));let ns=class extends Error{constructor(e){super(e),this.name="ShikiError"}},SC=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function ire(){return 2147483648}function sre(){return typeof performance<"u"?performance.now():Date.now()}const lre=(e,t)=>e+(t-e%t)%t;async function cre(e){let t,n;const r={};function o(y){n=y,r.HEAPU8=new Uint8Array(y),r.HEAPU32=new Uint32Array(y)}function a(y,v,T){r.HEAPU8.copyWithin(y,v,v+T)}function s(y){try{return t.grow(y-n.byteLength+65535>>>16),o(t.buffer),1}catch{}}function l(y){const v=r.HEAPU8.length;y=y>>>0;const T=ire();if(y>T)return!1;for(let _=1;_<=4;_*=2){let x=v*(1+.2/_);x=Math.min(x,y+100663296);const D=Math.min(T,lre(Math.max(y,x),65536));if(s(D))return!0}return!1}const u=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function d(y,v,T=1024){const _=v+T;let x=v;for(;y[x]&&!(x>=_);)++x;if(x-v>16&&y.buffer&&u)return u.decode(y.subarray(v,x));let D="";for(;v<x;){let C=y[v++];if(!(C&128)){D+=String.fromCharCode(C);continue}const R=y[v++]&63;if((C&224)===192){D+=String.fromCharCode((C&31)<<6|R);continue}const I=y[v++]&63;if((C&240)===224?C=(C&15)<<12|R<<6|I:C=(C&7)<<18|R<<12|I<<6|y[v++]&63,C<65536)D+=String.fromCharCode(C);else{const O=C-65536;D+=String.fromCharCode(55296|O>>10,56320|O&1023)}}return D}function p(y,v){return y?d(r.HEAPU8,y,v):""}const h={emscripten_get_now:sre,emscripten_memcpy_big:a,emscripten_resize_heap:l,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 ure=Object.defineProperty,dre=(e,t,n)=>t in e?ure(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Sr=(e,t,n)=>(dre(e,typeof t!="symbol"?t+"":t,n),n);let Ir=null;function fre(e){throw new SC(e.UTF8ToString(e.getLastOnigError()))}class ub{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=ub._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 l=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?l[u++]=h:h<=2047?(l[u++]=192|(h&1984)>>>6,l[u++]=128|(h&63)>>>0):h<=65535?(l[u++]=224|(h&61440)>>>12,l[u++]=128|(h&4032)>>>6,l[u++]=128|(h&63)>>>0):(l[u++]=240|(h&1835008)>>>18,l[u++]=128|(h&258048)>>>12,l[u++]=128|(h&4032)>>>6,l[u++]=128|(h&63)>>>0),g&&d++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=l,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,l=!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,l=!0)}s<=127?n+=1:s<=2047?n+=2:s<=65535?n+=3:n+=4,l&&r++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const ti=class{constructor(e){if(Sr(this,"id",++ti.LAST_ID),Sr(this,"_onigBinding"),Sr(this,"content"),Sr(this,"utf16Length"),Sr(this,"utf8Length"),Sr(this,"utf16OffsetToUtf8"),Sr(this,"utf8OffsetToUtf16"),Sr(this,"ptr"),!Ir)throw new SC("Must invoke loadWasm first.");this._onigBinding=Ir,this.content=e;const t=new ub(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!ti._sharedPtrInUse?(ti._sharedPtr||(ti._sharedPtr=Ir.omalloc(1e4)),ti._sharedPtrInUse=!0,Ir.HEAPU8.set(t.utf8Value,ti._sharedPtr),this.ptr=ti._sharedPtr):this.ptr=t.createString(Ir)}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===ti._sharedPtr?ti._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let Mh=ti;Sr(Mh,"LAST_ID",0);Sr(Mh,"_sharedPtr",0);Sr(Mh,"_sharedPtrInUse",!1);class pre{constructor(t){if(Sr(this,"_onigBinding"),Sr(this,"_ptr"),!Ir)throw new SC("Must invoke loadWasm first.");const n=[],r=[];for(let l=0,u=t.length;l<u;l++){const d=new ub(t[l]);n[l]=d.createString(Ir),r[l]=d.utf8Length}const o=Ir.omalloc(4*t.length);Ir.HEAPU32.set(n,o/4);const a=Ir.omalloc(4*t.length);Ir.HEAPU32.set(r,a/4);const s=Ir.createOnigScanner(o,a,t.length);for(let l=0,u=t.length;l<u;l++)Ir.ofree(n[l]);Ir.ofree(a),Ir.ofree(o),s===0&&fre(Ir),this._onigBinding=Ir,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 l=a.HEAPU32;let u=s/4;const d=l[u++],p=l[u++],h=[];for(let g=0;g<p;g++){const y=t.convertUtf8OffsetToUtf16(l[u++]),v=t.convertUtf8OffsetToUtf16(l[u++]);h[g]={start:y,end:v,length:v-y}}return{index:d,captureIndices:h}}}function hre(e){return typeof e.instantiator=="function"}function mre(e){return typeof e.default=="function"}function gre(e){return typeof e.data<"u"}function yre(e){return typeof Response<"u"&&e instanceof Response}function bre(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 Sg;function vre(e){if(Sg)return Sg;async function t(){Ir=await cre(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),hre(r)?r=await r.instantiator(n):mre(r)?r=await r.default(n):(gre(r)&&(r=r.data),yre(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await Ere(r)(n):r=await xre(r)(n):bre(r)?r=await _E(r)(n):r instanceof WebAssembly.Module?r=await _E(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await _E(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return Sg=t(),Sg}function _E(e){return t=>WebAssembly.instantiate(e,t)}function Ere(e){return t=>WebAssembly.instantiateStreaming(e,t)}function xre(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}let Tre;function Sre(){return Tre}async function x4(e){return e&&await vre(e),{createScanner(t){return new pre(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new Mh(t)}}}function Cre(e){return CC(e)}function CC(e){return Array.isArray(e)?_re(e):e instanceof RegExp?e:typeof e=="object"?Are(e):e}function _re(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=CC(e[n]);return t}function Are(e){let t={};for(let n in e)t[n]=CC(e[n]);return t}function T4(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function S4(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?S4(e.substring(0,e.length-1)):e.substr(~t+1)}var AE=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Cg=class{static hasCaptures(e){return e===null?!1:(AE.lastIndex=0,AE.test(e))}static replaceCaptures(e,t,n){return e.replace(AE,(r,o,a,s)=>{let l=n[parseInt(o||a,10)];if(l){let u=t.substring(l.start,l.end);for(;u[0]===".";)u=u.substring(1);switch(s){case"downcase":return u.toLowerCase();case"upcase":return u.toUpperCase();default:return u}}else return r})}};function C4(e,t){return e<t?-1:e>t?1:0}function _4(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=C4(e[o],t[o]);if(a!==0)return a}return 0}return n-r}function RI(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 A4(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var k4=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}},Uy=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(Dre(e),t)}static createFromParsedTheme(e,t){return Ire(e,t)}_cachedMatchRoot=new k4(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=>kre(e.parent,r.parentScopes));return n?new w4(n.fontStyle,n.foreground,n.background):null}},kE=class ty{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new ty(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new ty(n,t[r]);return n}push(t){return new ty(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 kre(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&&!wre(e.scopeName,r);){if(o)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function wre(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var w4=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function Dre(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 l;if(typeof s.scope=="string"){let h=s.scope;h=h.replace(/^[,]+/,""),h=h.replace(/[,]+$/,""),l=h.split(",")}else Array.isArray(s.scope)?l=s.scope:l=[""];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"&&RI(s.settings.foreground)&&(d=s.settings.foreground);let p=null;typeof s.settings.background=="string"&&RI(s.settings.background)&&(p=s.settings.background);for(let h=0,g=l.length;h<g;h++){let y=l[h].trim().split(" "),v=y[y.length-1],T=null;y.length>1&&(T=y.slice(0,y.length-1),T.reverse()),n[r++]=new Rre(v,T,o,u,d,p)}}return n}var Rre=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}},Ji=(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))(Ji||{});function Ire(e,t){e.sort((u,d)=>{let p=C4(u.scope,d.scope);return p!==0||(p=_4(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 Ore(t),s=new w4(n,a.getId(r),a.getId(o)),l=new Pre(new rT(0,null,-1,0,0),[]);for(let u=0,d=e.length;u<d;u++){let p=e[u];l.insert(0,p.scope,p.parentScopes,p.fontStyle,a.getId(p.foreground),a.getId(p.background))}return new Uy(a,s,l)}var Ore=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)}},Nre=Object.freeze([]),rT=class D4{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,o,a){this.scopeDepth=t,this.parentScopes=n||Nre,this.fontStyle=r,this.foreground=o,this.background=a}clone(){return new D4(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)}},Pre=class oT{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(oT._cmpBySpecificity),n}insert(t,n,r,o,a,s){if(n===""){this._doInsertHere(t,r,o,a,s);return}let l=n.indexOf("."),u,d;l===-1?(u=n,d=""):(u=n.substring(0,l),d=n.substring(l+1));let p;this._children.hasOwnProperty(u)?p=this._children[u]:(p=new oT(this._mainRule.clone(),rT.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,l=this._rulesWithParentScopes.length;s<l;s++){let u=this._rulesWithParentScopes[s];if(_4(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 rT(t,n,r,o,a))}},nd=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,l){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),l!==0&&(y=l),(u<<0|d<<8|p<<10|h<<11|g<<15|y<<24)>>>0}};function Hy(e,t){const n=[],r=Lre(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=l();return o===")"&&(o=r.next()),u}if(II(o)){const u=[];do u.push(o),o=r.next();while(II(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 l(){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 II(e){return!!e&&!!e.match(/[\w\.:]+/)}function Lre(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 R4(e){typeof e.dispose=="function"&&e.dispose()}var rh=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},Mre=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},Fre=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))}},Bre=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 Fre;for(const n of e)jre(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 jre(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?ny({baseGrammar:a,selfGrammar:o},r):aT(e.ruleName,{baseGrammar:a,selfGrammar:o,repository:o.repository},r);const s=n.injections(e.scopeName);if(s)for(const l of s)r.add(new rh(l))}function aT(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];zy([r],t,n)}}function ny(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&zy(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&zy(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function zy(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const o=r.repository?T4({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&zy(r.patterns,{...t,repository:o},n);const a=r.include;if(!a)continue;const s=I4(a);switch(s.kind){case 0:ny({...t,selfGrammar:t.baseGrammar},n);break;case 1:ny(t,n);break;case 2:aT(s.ruleName,{...t,repository:o},n);break;case 3:case 4:const l=s.scopeName===t.selfGrammar.scopeName?t.selfGrammar:s.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(l){const u={baseGrammar:t.baseGrammar,selfGrammar:l,repository:o};s.kind===4?aT(s.ruleName,u,n):ny(u,n)}else s.kind===4?n.add(new Mre(s.scopeName,s.ruleName)):n.add(new rh(s.scopeName));break}}}var Ure=class{kind=0},Hre=class{kind=1},zre=class{constructor(e){this.ruleName=e}kind=2},$re=class{constructor(e){this.scopeName=e}kind=3},Vre=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function I4(e){if(e==="$base")return new Ure;if(e==="$self")return new Hre;const t=e.indexOf("#");if(t===-1)return new $re(e);if(t===0)return new zre(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new Vre(n,r)}}var Gre=/\\(\d+)/,OI=/\\(\d+)/g,qre=-1,O4=-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=Cg.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=Cg.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${S4(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:Cg.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Cg.replaceCaptures(this._contentName,e,t)}},Wre=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!")}},Yre=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}},NI=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}},iT=class extends Fh{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,o,a,s,l,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=l,this.applyEndPatternLast=u||!1,this.patterns=d.patterns,this.hasMissingPatterns=d.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new 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}},$y=class extends Fh{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,o,a,s,l,u){super(e,t,n,r),this._begin=new oh(o,this.id),this.beginCaptures=a,this.whileCaptures=l,this._while=new oh(s,O4),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}},N4=class Wr{static createCaptureRule(t,n,r,o,a){return t.registerRule(s=>new Wre(n,s,r,o,a))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(o=>{if(t.id=o,t.match)return new Yre(t.$vscodeTextmateLocation,t.id,t.name,t.match,Wr._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=T4({},r,t.repository));let a=t.patterns;return typeof a>"u"&&t.include&&(a=[{include:t.include}]),new NI(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Wr._compilePatterns(a,n,r))}return t.while?new $y(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Wr._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,Wr._compileCaptures(t.whileCaptures||t.captures,n,r),Wr._compilePatterns(t.patterns,n,r)):new iT(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Wr._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,Wr._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,Wr._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 l=parseInt(s,10);l>a&&(a=l)}for(let s=0;s<=a;s++)o[s]=null;for(const s in t){if(s==="$vscodeTextmateLocation")continue;const l=parseInt(s,10);let u=0;t[s].patterns&&(u=Wr.getCompiledRuleId(t[s],n,r)),o[l]=Wr.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 l=t[a];let u=-1;if(l.include){const d=I4(l.include);switch(d.kind){case 0:case 1:u=Wr.getCompiledRuleId(r[l.include],n,r);break;case 2:let p=r[d.ruleName];p&&(u=Wr.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 v=y.repository[g];v&&(u=Wr.getCompiledRuleId(v,n,y.repository))}else u=Wr.getCompiledRuleId(y.repository.$self,n,y.repository);break}}else u=Wr.getCompiledRuleId(l,n,r);if(u!==-1){const d=n.getRule(u);let p=!1;if((d instanceof NI||d instanceof iT||d instanceof $y)&&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 P4{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 l=0;l<r;l++)if(t.charAt(l)==="\\"&&l+1<r){const u=t.charAt(l+1);u==="z"?(a.push(t.substring(o,l)),a.push("$(?!\\n)(?<!\\n)"),o=l+2):(u==="A"||u==="G")&&(s=!0),l++}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=Gre.test(this.source):this.hasBackReferences=!1}clone(){return new P4(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 OI.lastIndex=0,this.source.replace(OI,(o,a)=>A4(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,l,u;for(a=0,s=this.source.length;a<s;a++)l=this.source.charAt(a),t[a]=l,n[a]=l,r[a]=l,o[a]=l,l==="\\"&&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 PI(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 PI(e,r,this._items.map(o=>o.ruleId))}},PI=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(`
|
|
251
|
+
`)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},wE=class{constructor(e,t){this.languageId=e,this.tokenType=t}},Qre=class sT{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new wE(t,8),this._embeddedLanguagesMatcher=new Kre(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?sT._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new wE(0,0);_getBasicScopeAttributes=new k4(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new wE(n,r)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(sT.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/},Kre=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])=>A4(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])}},LI=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function L4(e,t,n,r,o,a,s,l){const u=t.content.length;let d=!1,p=-1;if(s){const y=Xre(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(l!==0&&Date.now()-h>l)return new LI(o,!0);g()}return new LI(o,!1);function g(){const y=Zre(e,t,n,r,o,p);if(!y){a.produce(o,u),d=!0;return}const v=y.captureIndices,T=y.matchedRuleId,_=v&&v.length>0?v[0].end>r:!1;if(T===qre){const x=o.getRule(e);a.produce(o,v[0].start),o=o.withContentNameScopesList(o.nameScopesList),ap(e,t,n,o,a,x.endCaptures,v),a.produce(o,v[0].end);const D=o;if(o=o.parent,p=D.getAnchorPos(),!_&&D.getEnterPos()===r){o=D,a.produce(o,u),d=!0;return}}else{const x=e.getRule(T);a.produce(o,v[0].start);const D=o,C=x.getName(t.content,v),R=o.contentNameScopesList.pushAttributed(C,e);if(o=o.push(T,r,p,v[0].end===u,null,R,R),x instanceof iT){const I=x;ap(e,t,n,o,a,I.beginCaptures,v),a.produce(o,v[0].end),p=v[0].end;const O=I.getContentName(t.content,v),F=R.pushAttributed(O,e);if(o=o.withContentNameScopesList(F),I.endHasBackReferences&&(o=o.withEndRule(I.getEndWithResolvedBackReferences(t.content,v))),!_&&D.hasSameRuleAs(o)){o=o.pop(),a.produce(o,u),d=!0;return}}else if(x instanceof $y){const I=x;ap(e,t,n,o,a,I.beginCaptures,v),a.produce(o,v[0].end),p=v[0].end;const O=I.getContentName(t.content,v),F=R.pushAttributed(O,e);if(o=o.withContentNameScopesList(F),I.whileHasBackReferences&&(o=o.withEndRule(I.getWhileWithResolvedBackReferences(t.content,v))),!_&&D.hasSameRuleAs(o)){o=o.pop(),a.produce(o,u),d=!0;return}}else if(ap(e,t,n,o,a,x.captures,v),a.produce(o,v[0].end),o=o.pop(),!_){o=o.safePop(),a.produce(o,u),d=!0;return}}v[0].end>r&&(r=v[0].end,n=!1)}}function Xre(e,t,n,r,o,a){let s=o.beginRuleCapturedEOL?0:-1;const l=[];for(let u=o;u;u=u.pop()){const d=u.getRule(e);d instanceof $y&&l.push({rule:d,stack:u})}for(let u=l.pop();u;u=l.pop()){const{ruleScanner:d,findOptions:p}=toe(u.rule,e,u.stack.endRule,n,r===s),h=d.findNextMatchSync(t,r,p);if(h){if(h.ruleId!==O4){o=u.stack.pop();break}h.captureIndices&&h.captureIndices.length&&(a.produce(u.stack,h.captureIndices[0].start),ap(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 Zre(e,t,n,r,o,a){const s=Jre(e,t,n,r,o,a),l=e.getInjections();if(l.length===0)return s;const u=eoe(l,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 Jre(e,t,n,r,o,a){const s=o.getRule(e),{ruleScanner:l,findOptions:u}=M4(s,e,o.endRule,n,r===a),d=l.findNextMatchSync(t,r,u);return d?{captureIndices:d.captureIndices,matchedRuleId:d.ruleId}:null}function eoe(e,t,n,r,o,a,s){let l=Number.MAX_VALUE,u=null,d,p=0;const h=a.contentNameScopesList.getScopeNames();for(let g=0,y=e.length;g<y;g++){const v=e[g];if(!v.matcher(h))continue;const T=t.getRule(v.ruleId),{ruleScanner:_,findOptions:x}=M4(T,t,null,r,o===s),D=_.findNextMatchSync(n,o,x);if(!D)continue;const C=D.captureIndices[0].start;if(!(C>=l)&&(l=C,u=D.captureIndices,d=D.ruleId,p=v.priority,l===o))break}return u?{priorityMatch:p===-1,captureIndices:u,matchedRuleId:d}:null}function M4(e,t,n,r,o){return{ruleScanner:e.compileAG(t,n,r,o),findOptions:0}}function toe(e,t,n,r,o){return{ruleScanner:e.compileWhileAG(t,n,r,o),findOptions:0}}function ap(e,t,n,r,o,a,s){if(a.length===0)return;const l=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 T=g.getName(l,s),_=r.contentNameScopesList.pushAttributed(T,e),x=g.getContentName(l,s),D=_.pushAttributed(x,e),C=r.push(g.retokenizeCapturedWithRuleId,y.start,-1,!1,null,_,D),R=e.createOnigString(l.substring(0,y.end));L4(e,R,n&&y.start===0,y.start,C,o,!1,0),R4(R);continue}const v=g.getName(l,s);if(v!==null){const T=(d.length>0?d[d.length-1].scopes:r.contentNameScopesList).pushAttributed(v,e);d.push(new noe(T,y.end))}}for(;d.length>0;)o.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop()}var noe=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function roe(e,t,n,r,o,a,s,l){return new aoe(e,t,n,r,o,a,s,l)}function MI(e,t,n,r,o){const a=Hy(t,Vy),s=N4.getCompiledRuleId(n,r,o.repository);for(const l of a)e.push({debugSelector:t,matcher:l.matcher,ruleId:s,grammar:o,priority:l.priority})}function Vy(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(ooe(t[o],r))return n=o+1,!0;return!1})}function ooe(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 aoe=class{constructor(e,t,n,r,o,a,s,l){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=l,this._basicScopeAttributesProvider=new Qre(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=FI(t,null),this._injections=null,this._tokenTypeMatchers=[],o)for(const u of Object.keys(o)){const d=Hy(u,Vy);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)MI(t,s,o[s],this,r);const a=this._grammarRepository.injections(n);a&&a.forEach(s=>{const l=this.getExternalGrammar(s);if(l){const u=l.injectionSelector;u&&MI(t,u,l,this,l)}})}return t.sort((o,a)=>o.priority-a.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=FI(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=N4.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let o;if(!t||t===lT.NULL){o=!0;const d=this._basicScopeAttributesProvider.getDefaultAttributes(),p=this.themeProvider.getDefaults(),h=nd.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 lT(null,this._rootId,-1,-1,!1,null,y,y)}else o=!1,t.reset();e=e+`
|
|
252
|
+
`;const a=this.createOnigString(e),s=a.content.length,l=new soe(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),u=L4(this,a,o,0,t,l,!0,r);return R4(a),{lineLength:s,lineTokens:l,ruleStack:u.stack,stoppedEarly:u.stoppedEarly}}};function FI(e,t){return e=Cre(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 ni{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=kE.push(o,a.scopeNames),r=new ni(r,o,a.encodedTokenAttributes);return r}static createRoot(t,n){return new ni(null,new kE(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const o=r.getMetadataForScope(t),a=new kE(null,t),s=r.themeProvider.themeMatch(a),l=ni.mergeAttributes(n,o,s);return new ni(null,a,l)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return ni.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),nd.set(t,n.languageId,n.tokenType,null,o,a,s)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return ni._pushAttributed(this,t,n);const r=t.split(/ /g);let o=this;for(const a of r)o=ni._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),l=ni.mergeAttributes(t.tokenAttributes,o,s);return new ni(t,a,l)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===t?n.reverse():void 0}},lT=class Ol{constructor(t,n,r,o,a,s,l,u){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=a,this.endRule=s,this.nameScopesList=l,this.contentNameScopesList=u,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=o}_stackElementBrand=void 0;static NULL=new Ol(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:Ol._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(){Ol._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,o,a,s,l){return new Ol(this,t,n,r,o,a,s,l)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new Ol(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 Ol(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Ep.fromExtension(r,n.contentNameScopesList))}},ioe=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):Hy(n,Vy).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>Hy(n,Vy).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}},soe=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=nd.set(r,0,s.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(a))}if(o&&(r=nd.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}},loe=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,roe(e,a,t,n,r,o,this,this._onigLib))}return this._grammars.get(e)}},coe=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new loe(Uy.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(Uy.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 ioe(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,o){const a=new Bre(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)}},cT=lT.NULL;const F4=["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 B4(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 wo=class{constructor(e,t){this.attribute=t,this.property=e}};wo.prototype.attribute="";wo.prototype.booleanish=!1;wo.prototype.boolean=!1;wo.prototype.commaOrSpaceSeparated=!1;wo.prototype.commaSeparated=!1;wo.prototype.defined=!1;wo.prototype.mustUseProperty=!1;wo.prototype.number=!1;wo.prototype.overloadedBoolean=!1;wo.prototype.property="";wo.prototype.spaceSeparated=!1;wo.prototype.space=void 0;let uoe=0;const Ft=Ec(),hr=Ec(),uT=Ec(),Ve=Ec(),Rn=Ec(),ju=Ec(),Fo=Ec();function Ec(){return 2**++uoe}const dT=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ft,booleanish:hr,commaOrSpaceSeparated:Fo,commaSeparated:ju,number:Ve,overloadedBoolean:uT,spaceSeparated:Rn},Symbol.toStringTag,{value:"Module"})),DE=Object.keys(dT);let _C=class extends wo{constructor(e,t,n,r){let o=-1;if(super(e,t),BI(this,"space",r),typeof n=="number")for(;++o<DE.length;){const a=DE[o];BI(this,DE[o],(n&dT[a])===dT[a])}}};_C.prototype.defined=!0;function BI(e,t,n){n&&(e[t]=n)}function bd(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const a=new _C(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 j4=bd({properties:{ariaActiveDescendant:null,ariaAtomic:hr,ariaAutoComplete:null,ariaBusy:hr,ariaChecked:hr,ariaColCount:Ve,ariaColIndex:Ve,ariaColSpan:Ve,ariaControls:Rn,ariaCurrent:null,ariaDescribedBy:Rn,ariaDetails:null,ariaDisabled:hr,ariaDropEffect:Rn,ariaErrorMessage:null,ariaExpanded:hr,ariaFlowTo:Rn,ariaGrabbed:hr,ariaHasPopup:null,ariaHidden:hr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Rn,ariaLevel:Ve,ariaLive:null,ariaModal:hr,ariaMultiLine:hr,ariaMultiSelectable:hr,ariaOrientation:null,ariaOwns:Rn,ariaPlaceholder:null,ariaPosInSet:Ve,ariaPressed:hr,ariaReadOnly:hr,ariaRelevant:null,ariaRequired:hr,ariaRoleDescription:Rn,ariaRowCount:Ve,ariaRowIndex:Ve,ariaRowSpan:Ve,ariaSelected:hr,ariaSetSize:Ve,ariaSort:null,ariaValueMax:Ve,ariaValueMin:Ve,ariaValueNow:Ve,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function U4(e,t){return t in e?e[t]:t}function H4(e,t){return U4(e,t.toLowerCase())}const doe=bd({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ju,acceptCharset:Rn,accessKey:Rn,action:null,allow:null,allowFullScreen:Ft,allowPaymentRequest:Ft,allowUserMedia:Ft,alt:null,as:null,async:Ft,autoCapitalize:null,autoComplete:Rn,autoFocus:Ft,autoPlay:Ft,blocking:Rn,capture:null,charSet:null,checked:Ft,cite:null,className:Rn,cols:Ve,colSpan:null,content:null,contentEditable:hr,controls:Ft,controlsList:Rn,coords:Ve|ju,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ft,defer:Ft,dir:null,dirName:null,disabled:Ft,download:uT,draggable:hr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ft,formTarget:null,headers:Rn,height:Ve,hidden:uT,high:Ve,href:null,hrefLang:null,htmlFor:Rn,httpEquiv:Rn,id:null,imageSizes:null,imageSrcSet:null,inert:Ft,inputMode:null,integrity:null,is:null,isMap:Ft,itemId:null,itemProp:Rn,itemRef:Rn,itemScope:Ft,itemType:Rn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ft,low:Ve,manifest:null,max:null,maxLength:Ve,media:null,method:null,min:null,minLength:Ve,multiple:Ft,muted:Ft,name:null,nonce:null,noModule:Ft,noValidate:Ft,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:Ft,optimum:Ve,pattern:null,ping:Rn,placeholder:null,playsInline:Ft,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ft,referrerPolicy:null,rel:Rn,required:Ft,reversed:Ft,rows:Ve,rowSpan:Ve,sandbox:Rn,scope:null,scoped:Ft,seamless:Ft,selected:Ft,shadowRootClonable:Ft,shadowRootDelegatesFocus:Ft,shadowRootMode:null,shape:null,size:Ve,sizes:null,slot:null,span:Ve,spellCheck:hr,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:Ft,useMap:null,value:hr,width:Ve,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Rn,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:Ft,declare:Ft,event:null,face:null,frame:null,frameBorder:null,hSpace:Ve,leftMargin:Ve,link:null,longDesc:null,lowSrc:null,marginHeight:Ve,marginWidth:Ve,noResize:Ft,noHref:Ft,noShade:Ft,noWrap:Ft,object:null,profile:null,prompt:null,rev:null,rightMargin:Ve,rules:null,scheme:null,scrolling:hr,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:Ft,disableRemotePlayback:Ft,prefix:null,property:null,results:Ve,security:null,unselectable:null},space:"html",transform:H4}),foe=bd({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: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:Rn,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:Ft,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:ju,g2:ju,glyphName:ju,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:Fo,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:Rn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ve,pointsAtY:Ve,pointsAtZ:Ve,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: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:Fo,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:Fo,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:Fo,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},space:"svg",transform:U4}),z4=bd({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()}}),$4=bd({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:H4}),V4=bd({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),poe={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"},hoe=/[A-Z]/g,jI=/-[a-z]/g,moe=/^data[-\w.:]+$/i;function jh(e,t){const n=ih(t);let r=t,o=wo;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&moe.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(jI,yoe);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!jI.test(a)){let s=a.replace(hoe,goe);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}o=_C}return new o(r,t)}function goe(e){return"-"+e.toLowerCase()}function yoe(e){return e.charAt(1).toUpperCase()}const vd=B4([j4,doe,z4,$4,V4],"html"),is=B4([j4,foe,z4,$4,V4],"svg"),UI={}.hasOwnProperty;function db(e,t){const n=t||{};function r(o,...a){let s=r.invalid;const l=r.handlers;if(o&&UI.call(o,e)){const u=String(o[e]);s=UI.call(l,u)?l[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 boe=/["&'<>`]/g,voe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Eoe=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,xoe=/[|\\{}()[\]^$+*?.]/g,HI=new WeakMap;function Toe(e,t){if(e=e.replace(t.subset?Soe(t.subset):boe,r),t.subset||t.escapeOnly)return e;return e.replace(voe,n).replace(Eoe,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 Soe(e){let t=HI.get(e);return t||(t=Coe(e),HI.set(e,t)),t}function Coe(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(xoe,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const _oe=/[\dA-Fa-f]/;function Aoe(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!_oe.test(String.fromCharCode(t))?r:r+";"}const koe=/\d/;function woe(e,t,n){const r="&#"+String(e);return n&&t&&!koe.test(String.fromCharCode(t))?r:r+";"}const Doe=["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"],RE={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:"€"},Roe=["cent","copy","divide","gt","lt","not","para","times"],G4={}.hasOwnProperty,fT={};let _g;for(_g in RE)G4.call(RE,_g)&&(fT[RE[_g]]=_g);const Ioe=/[^\dA-Za-z]/;function Ooe(e,t,n,r){const o=String.fromCharCode(e);if(G4.call(fT,o)){const a=fT[o],s="&"+a;return n&&Doe.includes(a)&&!Roe.includes(a)&&(!r||t&&t!==61&&Ioe.test(String.fromCharCode(t)))?s:s+";"}return""}function Noe(e,t,n){let r=Aoe(e,t,n.omitOptionalSemicolons),o;if((n.useNamedReferences||n.useShortestReferences)&&(o=Ooe(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!o)&&n.useShortestReferences){const a=woe(e,t,n.omitOptionalSemicolons);a.length<r.length&&(r=a)}return o&&(!n.useShortestReferences||o.length<r.length)?o:r}function Uu(e,t){return Toe(e,Object.assign({format:Noe},t))}const Poe=/^>|^->|<!--|-->|--!>|<!-$/g,Loe=[">"],Moe=["<",">"];function Foe(e,t,n,r){return r.settings.bogusComments?"<?"+Uu(e.value,Object.assign({},r.settings.characterReferences,{subset:Loe}))+">":"<!--"+e.value.replace(Poe,o)+"-->";function o(a){return Uu(a,Object.assign({},r.settings.characterReferences,{subset:Moe}))}}function Boe(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function Gy(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 pT(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 fb(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function hT(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function pb(e){return e.join(" ").trim()}const joe=/[ \t\n\f\r]/g;function Uh(e){return typeof e=="object"?e.type==="text"?zI(e.value):!1:zI(e)}function zI(e){return e.replace(joe,"")===""}const Ar=W4(1),q4=W4(-1),Uoe=[];function W4(e){return t;function t(n,r,o){const a=n?n.children:Uoe;let s=(r||0)+e,l=a[s];if(!o)for(;l&&Uh(l);)s+=e,l=a[s];return l}}const Hoe={}.hasOwnProperty;function Y4(e){return t;function t(n,r,o){return Hoe.call(e,n.tagName)&&e[n.tagName](n,r,o)}}const AC=Y4({body:$oe,caption:IE,colgroup:IE,dd:Woe,dt:qoe,head:IE,html:zoe,li:Goe,optgroup:Yoe,option:Qoe,p:Voe,rp:$I,rt:$I,tbody:Xoe,td:VI,tfoot:Zoe,th:VI,thead:Koe,tr:Joe});function IE(e,t,n){const r=Ar(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Uh(r.value.charAt(0)))}function zoe(e,t,n){const r=Ar(n,t);return!r||r.type!=="comment"}function $oe(e,t,n){const r=Ar(n,t);return!r||r.type!=="comment"}function Voe(e,t,n){const r=Ar(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 Goe(e,t,n){const r=Ar(n,t);return!r||r.type==="element"&&r.tagName==="li"}function qoe(e,t,n){const r=Ar(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function Woe(e,t,n){const r=Ar(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function $I(e,t,n){const r=Ar(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function Yoe(e,t,n){const r=Ar(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function Qoe(e,t,n){const r=Ar(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function Koe(e,t,n){const r=Ar(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Xoe(e,t,n){const r=Ar(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Zoe(e,t,n){return!Ar(n,t)}function Joe(e,t,n){const r=Ar(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function VI(e,t,n){const r=Ar(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const eae=Y4({body:rae,colgroup:oae,head:nae,html:tae,tbody:aae});function tae(e){const t=Ar(e,-1);return!t||t.type!=="comment"}function nae(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function rae(e){const t=Ar(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 oae(e,t,n){const r=q4(n,t),o=Ar(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&AC(r,n.children.indexOf(r),n)?!1:!!(o&&o.type==="element"&&o.tagName==="col")}function aae(e,t,n){const r=q4(n,t),o=Ar(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&AC(r,n.children.indexOf(r),n)?!1:!!(o&&o.type==="element"&&o.tagName==="tr")}const Ag={name:[[`
|
|
253
|
+
\f\r &/=>`.split(""),`
|
|
254
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
255
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
256
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
257
|
+
\f\r &>`.split(""),`\0
|
|
258
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
259
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
260
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function iae(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 l=[];let u;o.space==="html"&&e.tagName==="svg"&&(r.schema=is);const d=sae(r,e.properties),p=r.all(o.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=o,p&&(s=!1),(d||!a||!eae(e,t,n))&&(l.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!=="'")&&l.push(" "),l.push("/")),l.push(">")),l.push(p),!s&&(!a||!AC(e,t,n))&&l.push("</"+e.tagName+">"),l.join("")}function sae(e,t){const n=[];let r=-1,o;if(t){for(o in t)if(t[o]!==null&&t[o]!==void 0){const a=lae(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 lae(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,l;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const u=Uu(r.attribute,Object.assign({},e.settings.characterReferences,{subset:Ag.name[o][a]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?fb:pb)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?u:(e.settings.preferUnquoted&&(l=Uu(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Ag.unquoted[o][a]}))),l!==n&&(e.settings.quoteSmart&&Gy(n,s)>Gy(n,e.alternative)&&(s=e.alternative),l=s+Uu(n,Object.assign({},e.settings.characterReferences,{subset:(s==="'"?Ag.single:Ag.double)[o][a],attribute:!0}))+s),u+(l&&"="+l))}const cae=["<","&"];function Q4(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Uu(e.value,Object.assign({},r.settings.characterReferences,{subset:cae}))}function uae(e,t,n,r){return r.settings.allowDangerousHtml?e.value:Q4(e,t,n,r)}function dae(e,t,n,r){return r.all(e)}const fae=db("type",{invalid:pae,unknown:hae,handlers:{comment:Foe,doctype:Boe,element:iae,raw:uae,root:dae,text:Q4}});function pae(e){throw new Error("Expected node, not `"+e+"`")}function hae(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const mae={},gae={},yae=[];function bae(e,t){const n=mae,r=n.quote||'"',o=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:vae,all:Eae,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||F4,characterReferences:n.characterReferences||gae,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?is:vd,quote:r,alternative:o}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function vae(e,t,n){return fae(e,t,n,this)}function Eae(e){const t=[],n=e&&e.children||yae;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function xae(e){return Array.isArray(e)?e:[e]}function hb(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 kC(e){return!e||["plaintext","txt","text","plain"].includes(e)}function K4(e){return e==="ansi"||kC(e)}function wC(e){return e==="none"}function X4(e){return wC(e)}function Z4(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 Tae(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 Sae(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,l)=>s-l);return a.length?Tae(o,a):o})):e}async function J4(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function qy(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 Vl(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function eL(e){const t={};return e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle&&(e.fontStyle&Ji.Italic&&(t["font-style"]="italic"),e.fontStyle&Ji.Bold&&(t["font-weight"]="bold"),e.fontStyle&Ji.Underline&&(t["text-decoration"]="underline")),t}function Cae(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}function _ae(e){const t=hb(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 l of t){if(a<l.length)break;a-=l.length,s++}return{line:s,character:a}}function r(o,a){let s=0;for(let l=0;l<o;l++)s+=t[l].length;return s+=a,s}return{lines:t,indexToPos:n,posToIndex:r}}class ao extends Error{constructor(t){super(t),this.name="ShikiError"}}const tL=new WeakMap;function mb(e,t){tL.set(e,t)}function sh(e){return tL.get(e)}class Ed{_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 Ed(Object.fromEntries(xae(n).map(r=>[r,cT])),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 GI(this._stacks[this.theme])}getScopes(t=this.theme){return GI(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}}function GI(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 Aae(e,t){if(!(e instanceof Ed))throw new ao("Invalid grammar state");return e.getInternalStack(t)}function kae(){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 l=o.lines[s.line];if(l===void 0)throw new ao(`Invalid decoration position ${JSON.stringify(s)}. Lines length: ${o.lines.length}`);if(s.character<0||s.character>l.length)throw new ao(`Invalid decoration position ${JSON.stringify(s)}. Line ${s.line} length: ${l.length}`);return{...s,offset:o.posToIndex(s.line,s.character)}}};const o=_ae(n.source),a=(n.options.decorations||[]).map(s=>({...s,start:r(s.start),end:r(s.end)}));wae(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 Sae(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 v=o[p];let T="",_=-1,x=-1;if(h===0&&(_=0),g===0&&(x=0),g===Number.POSITIVE_INFINITY&&(x=v.children.length),_===-1||x===-1)for(let C=0;C<v.children.length;C++)T+=nL(v.children[C]),_===-1&&T.length===h&&(_=C+1),x===-1&&T.length===g&&(x=C+1);if(_===-1)throw new ao(`Failed to find start index for decoration ${JSON.stringify(y.start)}`);if(x===-1)throw new ao(`Failed to find end index for decoration ${JSON.stringify(y.end)}`);const D=v.children.slice(_,x);if(!y.alwaysWrap&&D.length===v.children.length)l(v,y,"line");else if(!y.alwaysWrap&&D.length===1&&D[0].type==="element")l(D[0],y,"token");else{const C={type:"element",tagName:"span",properties:{},children:D};l(C,y,"wrapper"),v.children.splice(_,D.length,C)}}function s(p,h){o[p]=l(o[p],h,"line")}function l(p,h,g){const y=h.properties||{},v=h.transform||(T=>T);return p.tagName=h.tagName||"span",p.properties={...p.properties,...y,class:p.properties.class},h.properties?.class&&Z4(p,h.properties.class),p=v(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 wae(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,l=o.start.offset<n.start.offset&&n.start.offset<o.end.offset,u=o.start.offset<n.end.offset&&n.end.offset<o.end.offset;if(a||s||l||u){if(s&&s||l&&u)continue;throw new ao(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(o.start)} intersect.`)}}}}function nL(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(nL).join(""):""}const Dae=[kae()];function Wy(e){return[...e.transformers||[],...Dae]}var Gl=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],OE={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function Rae(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 qI(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 Iae(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)OE[o]&&t.push({type:"setDecoration",value:OE[o]});else if(o<=29){const a=OE[o-20];a&&t.push({type:"resetDecoration",value:a})}else if(o<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Gl[o-30]}});else if(o===38){const[a,s]=qI(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:Gl[o-40]}});else if(o===48){const[a,s]=qI(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:Gl[o-90+8]}}):o>=100&&o<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Gl[o-100+8]}})}return t}function Oae(){let e=null,t=null,n=new Set;return{parse(r){const o=[];let a=0;do{const s=Rae(r,a),l=s.sequence?r.substring(a,s.startPosition):r.substring(a);if(l.length>0&&o.push({value:l,foreground:e,background:t,decorations:new Set(n)}),s.sequence){const u=Iae(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 Nae={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 Pae(e=Nae){function t(l){return e[l]}function n(l){return`#${l.map(u=>Math.max(0,Math.min(u,255)).toString(16).padStart(2,"0")).join("")}`}let r;function o(){if(r)return r;r=[];for(let d=0;d<Gl.length;d++)r.push(t(Gl[d]));let l=[0,95,135,175,215,255];for(let d=0;d<6;d++)for(let p=0;p<6;p++)for(let h=0;h<6;h++)r.push(n([l[d],l[p],l[h]]));let u=8;for(let d=0;d<24;d++,u+=10)r.push(n([u,u,u]));return r}function a(l){return o()[l]}function s(l){switch(l.type){case"named":return t(l.name);case"rgb":return n(l.rgb);case"table":return a(l.index)}}return{value:s}}function Lae(e,t,n){const r=qy(e,n),o=hb(t),a=Pae(Object.fromEntries(Gl.map(l=>[l,e.colors?.[`terminal.ansi${l[0].toUpperCase()}${l.substring(1)}`]]))),s=Oae();return o.map(l=>s.parse(l[0]).map(u=>{let d,p;u.decorations.has("reverse")?(d=u.background?a.value(u.background):e.bg,p=u.foreground?a.value(u.foreground):e.fg):(d=u.foreground?a.value(u.foreground):e.fg,p=u.background?a.value(u.background):void 0),d=Vl(d,r),p=Vl(p,r),u.decorations.has("dim")&&(d=Mae(d));let h=Ji.None;return u.decorations.has("bold")&&(h|=Ji.Bold),u.decorations.has("italic")&&(h|=Ji.Italic),u.decorations.has("underline")&&(h|=Ji.Underline),{content:u.value,offset:l[1],color:d,bgColor:p,fontStyle:h}}))}function Mae(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 DC(e,t,n={}){const{lang:r="text",theme:o=e.getLoadedThemes()[0]}=n;if(kC(r)||wC(o))return hb(t).map(u=>[{content:u[0],offset:u[1]}]);const{theme:a,colorMap:s}=e.setTheme(o);if(r==="ansi")return Lae(a,t,n);const l=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==l.name)throw new ns(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${l.name}"`);if(!n.grammarState.themes.includes(a.name))throw new ns(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${a.name}"`)}return Bae(t,l,a,s,n)}function Fae(...e){if(e.length===2)return sh(e[1]);const[t,n,r={}]=e,{lang:o="text",theme:a=t.getLoadedThemes()[0]}=r;if(kC(o)||wC(a))throw new ns("Plain language does not have grammar state");if(o==="ansi")throw new ns("ANSI language does not have grammar state");const{theme:s,colorMap:l}=t.setTheme(a),u=t.getLanguage(o);return new Ed(Yy(n,u,s,l,r).stateStack,u.name,s.name)}function Bae(e,t,n,r,o){const a=Yy(e,t,n,r,o),s=new Ed(Yy(e,t,n,r,o).stateStack,t.name,n.name);return mb(a.tokens,s),a.tokens}function Yy(e,t,n,r,o){const a=qy(n,o),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:l=500}=o,u=hb(e);let d=o.grammarState?Aae(o.grammarState,n.name)??cT:o.grammarContextCode!=null?Yy(o.grammarContextCode,t,n,r,{...o,grammarState:void 0,grammarContextCode:void 0}).stateStack:cT,p=[];const h=[];for(let g=0,y=u.length;g<y;g++){const[v,T]=u[g];if(v===""){p=[],h.push([]);continue}if(s>0&&v.length>=s){p=[],h.push([{content:v,offset:T,color:"",fontStyle:0}]);continue}let _,x,D;o.includeExplanation&&(_=t.tokenizeLine(v,d),x=_.tokens,D=0);const C=t.tokenizeLine2(v,d,l),R=C.tokens.length/2;for(let I=0;I<R;I++){const O=C.tokens[2*I],F=I+1<R?C.tokens[2*I+2]:v.length;if(O===F)continue;const H=C.tokens[2*I+1],U=Vl(r[nd.getForeground(H)],a),S=nd.getFontStyle(H),M={content:v.substring(O,F),offset:T+O,color:U,fontStyle:S};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=x[D],Y=v.substring(q.startIndex,q.endIndex);z+=Y.length,M.explanation.push({content:Y,scopes:o.includeExplanation==="scopeName"?jae(q.scopes):Uae($,q.scopes)}),D+=1}}p.push(M)}h.push(p),p=[],d=C.ruleStack}return{tokens:h,stateStack:d}}function jae(e){return e.map(t=>({scopeName:t}))}function Uae(e,t){const n=[];for(let r=0,o=t.length;r<o;r++){const a=t[r];n[r]={scopeName:a,themeMatches:zae(e,a,t.slice(0,r))}}return n}function WI(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function Hae(e,t,n){if(!WI(e[e.length-1],t))return!1;let r=e.length-2,o=n.length-1;for(;r>=0&&o>=0;)WI(e[r],n[o])&&(r-=1),o-=1;return r===-1}function zae(e,t,n){const r=[];for(const{selectors:o,settings:a}of e)for(const s of o)if(Hae(s,t,n)){r.push(a);break}return r}function rL(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=DC(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=$ae(...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,v)=>{const{content:T,explanation:_,offset:x,...D}=y[d][h];g.variants[r[v].color]=D}),g})),l=o[0].state?new Ed(Object.fromEntries(o.map(u=>[u.theme,u.state?.getInternalStack(u.theme)])),o[0].state.lang):void 0;return l&&mb(s,l),s}function $ae(...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),l=o.map(u=>u[0]);for(;l.every(u=>u);){const u=Math.min(...l.map(d=>d.content.length));for(let d=0;d<n;d++){const p=l[d];p.content.length===u?(a[d].push(p),s[d]+=1,l[d]=o[d][s[d]]):(a[d].push({...p,content:p.content.slice(0,u)}),l[d]={...p,content:p.content.slice(u),offset:p.offset+u})}}}return t}function Qy(e,t,n){let r,o,a,s,l,u;if("themes"in n){const{defaultColor:d="light",cssVariablePrefix:p="--shiki-"}=n,h=Object.entries(n.themes).filter(_=>_[1]).map(_=>({color:_[0],theme:_[1]})).sort((_,x)=>_.color===d?-1:x.color===d?1:0);if(h.length===0)throw new ns("`themes` option must not be empty");const g=rL(e,t,n);if(u=sh(g),d&&!h.find(_=>_.color===d))throw new ns(`\`themes\` option must contain the defaultColor key \`${d}\``);const y=h.map(_=>e.getTheme(_.theme)),v=h.map(_=>_.color);a=g.map(_=>_.map(x=>Vae(x,v,p,d))),u&&mb(a,u);const T=h.map(_=>qy(_.theme,n));o=h.map((_,x)=>(x===0&&d?"":`${p+_.color}:`)+(Vl(y[x].fg,T[x])||"inherit")).join(";"),r=h.map((_,x)=>(x===0&&d?"":`${p+_.color}-bg:`)+(Vl(y[x].bg,T[x])||"inherit")).join(";"),s=`shiki-themes ${y.map(_=>_.name).join(" ")}`,l=d?void 0:[o,r].join(";")}else if("theme"in n){const d=qy(n.theme,n);a=DC(e,t,n);const p=e.getTheme(n.theme);r=Vl(p.bg,d),o=Vl(p.fg,d),s=p.name,u=sh(a)}else throw new ns("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:o,bg:r,themeName:s,rootStyle:l,grammarState:u}}function Vae(e,t,n,r){const o={content:e.content,explanation:e.explanation,offset:e.offset},a=t.map(u=>eL(e.variants[u])),s=new Set(a.flatMap(u=>Object.keys(u))),l={};return a.forEach((u,d)=>{for(const p of s){const h=u[p]||"inherit";if(d===0&&r)l[p]=h;else{const g=p==="color"?"":p==="background-color"?"-bg":`-${p}`,y=n+t[d]+(p==="color"?"":g);l[y]=h}}}),o.htmlStyle=l,o}function Ky(e,t,n,r={meta:{},options:n,codeToHast:(o,a)=>Ky(e,o,a),codeToTokens:(o,a)=>Qy(e,o,a)}){let o=t;for(const y of Wy(n))o=y.preprocess?.call(r,o,n)||o;let{tokens:a,fg:s,bg:l,themeName:u,rootStyle:d,grammarState:p}=Qy(e,o,n);const{mergeWhitespaces:h=!0}=n;h===!0?a=qae(a):h==="never"&&(a=Wae(a));const g={...r,get source(){return o}};for(const y of Wy(n))a=y.tokens?.call(g,a)||a;return Gae(a,{...n,fg:s,bg:l,themeName:u,rootStyle:d},g,p)}function Gae(e,t,n,r=sh(e)){const o=Wy(t),a=[],s={type:"root",children:[]},{structure:l="classic",tabindex:u="0"}=t;let d={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...u!==!1&&u!=null?{tabindex:u.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([v])=>!v.startsWith("_")))},children:[]},p={type:"element",tagName:"code",properties:{},children:a};const h=[],g={...n,structure:l,addClassToHast:Z4,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((v,T)=>{T&&(l==="inline"?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):l==="classic"&&a.push({type:"text",value:`
|
|
261
|
+
`}));let _={type:"element",tagName:"span",properties:{class:"line"},children:[]},x=0;for(const D of v){let C={type:"element",tagName:"span",properties:{...D.htmlAttrs},children:[{type:"text",value:D.content}]};D.htmlStyle;const R=Cae(D.htmlStyle||eL(D));R&&(C.properties.style=R);for(const I of o)C=I?.span?.call(g,C,T+1,x,_,D)||C;l==="inline"?s.children.push(C):l==="classic"&&_.children.push(C),x+=D.content.length}if(l==="classic"){for(const D of o)_=D?.line?.call(g,_,T+1)||_;h.push(_),a.push(_)}}),l==="classic"){for(const v of o)p=v?.code?.call(g,p)||p;d.children.push(p);for(const v of o)d=v?.pre?.call(g,d)||d;s.children.push(d)}let y=s;for(const v of o)y=v?.root?.call(g,y)||y;return r&&mb(y,r),y}function qae(e){return e.map(t=>{const n=[];let r="",o=0;return t.forEach((a,s)=>{const l=!(a.fontStyle&&a.fontStyle&Ji.Underline);l&&a.content.match(/^\s+$/)&&t[s+1]?(o||(o=a.offset),r+=a.content):r?(l?n.push({...a,offset:o,content:r+a.content}):n.push({content:r,offset:o},a),o=0,r=""):n.push(a)}),n})}function Wae(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 l=[{...n,offset:n.offset+o.length,content:a}];return o&&l.unshift({content:o,offset:n.offset}),s&&l.push({content:s,offset:n.offset+o.length+a.length}),l}))}function Yae(e,t,n){const r={meta:{},options:n,codeToHast:(a,s)=>Ky(e,a,s),codeToTokens:(a,s)=>Qy(e,a,s)};let o=bae(Ky(e,t,n,r));for(const a of Wy(n))o=a.postprocess?.call(r,o,n)||o;return o}const YI={light:"#333333",dark:"#bbbbbb"},QI={light:"#fffffe",dark:"#1e1e1e"},KI="__shiki_resolved";function RC(e){if(e?.[KI])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){const l=t.settings?t.settings.find(u=>!u.name&&!u.scope):void 0;l?.settings?.foreground&&(r=l.settings.foreground),l?.settings?.background&&(n=l.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?YI.light:YI.dark),n||(n=t.type==="light"?QI.light:QI.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(l){if(a.has(l))return a.get(l);o+=1;const u=`#${o.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${u}`]?s(l):(a.set(l,u),u)}t.settings=t.settings.map(l=>{const u=l.settings?.foreground&&!l.settings.foreground.startsWith("#"),d=l.settings?.background&&!l.settings.background.startsWith("#");if(!u&&!d)return l;const p={...l,settings:{...l.settings}};if(u){const h=s(l.settings.foreground);t.colorReplacements[h]=l.settings.foreground,p.settings.foreground=h}if(d){const h=s(l.settings.background);t.colorReplacements[h]=l.settings.background,p.settings.background=h}return p});for(const l of Object.keys(t.colors||{}))if((l==="editor.foreground"||l==="editor.background"||l.startsWith("terminal.ansi"))&&!t.colors[l]?.startsWith("#")){const u=s(t.colors[l]);t.colorReplacements[u]=t.colors[l],t.colors[l]=u}return Object.defineProperty(t,KI,{enumerable:!1,writable:!1,value:!0}),t}async function oL(e){return Array.from(new Set((await Promise.all(e.filter(t=>!K4(t)).map(async t=>await J4(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function aL(e){return(await Promise.all(e.map(async t=>X4(t)?null:RC(await J4(t))))).filter(t=>!!t)}class Qae extends coe{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=RC(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=Uy.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(l=>r.map(([u])=>u).includes(l))).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 Kae{_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 Uf=0;function Xae(e){Uf+=1,e.warnings!==!1&&Uf>=10&&Uf%10===0&&console.warn(`[Shiki] ${Uf} 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(RC),o=new Kae(e.engine,n),a=new Qae(o,r,n,e.langAlias);let s;function l(D){_();const C=a.getGrammar(typeof D=="string"?D:D.name);if(!C)throw new ao(`Language \`${D}\` not found, you may need to load it first`);return C}function u(D){if(D==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};_();const C=a.getTheme(D);if(!C)throw new ao(`Theme \`${D}\` not found, you may need to load it first`);return C}function d(D){_();const C=u(D);s!==D&&(a.setTheme(C),s=D);const R=a.getColorMap();return{theme:C,colorMap:R}}function p(){return _(),a.getLoadedThemes()}function h(){return _(),a.getLoadedLanguages()}function g(...D){_(),a.loadLanguages(D.flat(1))}async function y(...D){return g(await oL(D))}function v(...D){_();for(const C of D.flat(1))a.loadTheme(C)}async function T(...D){return _(),v(await aL(D))}function _(){if(t)throw new ao("Shiki instance has been disposed")}function x(){t||(t=!0,a.dispose(),Uf-=1)}return{setTheme:d,getTheme:u,getLanguage:l,getLoadedThemes:p,getLoadedLanguages:h,loadLanguage:y,loadLanguageSync:g,loadTheme:T,loadThemeSync:v,dispose:x,[Symbol.dispose]:x}}async function Zae(e={}){e.loadWasm;const[t,n,r]=await Promise.all([aL(e.themes||[]),oL(e.langs||[]),e.engine||x4(e.loadWasm||Sre())]);return Xae({...e,themes:t,langs:n,engine:r})}async function Jae(e={}){const t=await Zae(e);return{getLastGrammarState:(...n)=>Fae(t,...n),codeToTokensBase:(n,r)=>DC(t,n,r),codeToTokensWithThemes:(n,r)=>rL(t,n,r),codeToTokens:(n,r)=>Qy(t,n,r),codeToHast:(n,r)=>Ky(t,n,r),codeToHtml:(n,r)=>Yae(t,n,r),...t,getInternalContext:()=>t}}function eie(e,t,n){let r,o,a;{const l=e;r=l.langs,o=l.themes,a=l.engine}async function s(l){function u(y){if(typeof y=="string"){if(K4(y))return[];const v=r[y];if(!v)throw new ns(`Language \`${y}\` is not included in this bundle. You may want to load it from external source.`);return v}return y}function d(y){if(X4(y))return"none";if(typeof y=="string"){const v=o[y];if(!v)throw new ns(`Theme \`${y}\` is not included in this bundle. You may want to load it from external source.`);return v}return y}const p=(l.themes??[]).map(y=>d(y)),h=(l.langs??[]).map(y=>u(y)),g=await Jae({engine:l.engine??a(),...l,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 tie=eie({langs:rre,themes:are,engine:()=>x4(G(()=>import("./wasm-DQxwEHae-CG6Dc4jp.js"),[]))}),NE={scopeName:"source.malloy",patterns:[{include:"#malloy-language"}],repository:{"malloy-language":{patterns:[{include:"#sql-string"},{include:"#comments"},{include:"#tags"},{include:"#strings"},{include:"#numbers"},{include:"#keywords"},{include:"#properties"},{include:"#functions"},{include:"#datetimes"},{include:"#identifiers-quoted"},{include:"#types"},{include:"#constants"},{include:"#timeframes"},{include:"#identifiers-unquoted"}]},"malloy-matched":{begin:"{",end:"}",patterns:[{include:"#malloy-matched"},{include:"#malloy-language"}]},"malloy-in-sql":{begin:"%{",name:"source.malloy-in-sql",end:"}%?",patterns:[{include:"#malloy-matched"},{include:"#malloy-language"}]},"sql-string":{patterns:[{begin:'(\\b[A-Za-z_][A-Za-z_0-9]*)(\\s*\\.\\s*)(sql)(\\s*\\(\\s*)(""")',end:'"""',beginCaptures:{1:{name:"variable.other"},3:{name:"keyword.control.sql"},5:{name:"punctuation.sql-block.open"}},endCaptures:{0:{name:"punctuation.sql-block.close"}},name:"source.sql",patterns:[{include:"#malloy-in-sql"},{include:"source.sql"}]}]},functions:{patterns:[{match:"(?i)\\b(count)(\\s*\\()(distinct)",captures:{1:{name:"entity.name.function"},3:{name:"entity.name.function.modifier"}}},{match:"(?i)\\b(AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE|UNGROUPED)(\\s*\\()",captures:{1:{name:"entity.name.function"}}},{match:"(?i)\\b([a-zA-Z_][a-zA-Z_0-9]*)(\\s*\\()",captures:{1:{name:"entity.name.function"}}},{match:"(?i)\\b([a-zA-Z_][a-zA-Z_0-9]*)(!)(timestamp|number|string|boolean|date)?(\\s*\\()",captures:{1:{name:"entity.name.function"},3:{name:"entity.name.type"}}}]},datetimes:{patterns:[{match:"(?i)@[0-9]{4}-[0-9]{2}-[0-9]{2}[ T][0-9]{2}:[0-9]{2}((:[0-9]{2})(([\\.,][0-9]+)(\\[[A-Za-z_/]+\\])?)?)?",name:"constant.numeric.timestamp"},{match:"(?i)@[0-9]{4}(-Q[1-4]|-[0-9]{2}(-[0-9]{2}(-WK)?)?)?",name:"constant.numeric.date"}]},"identifiers-quoted":{patterns:[{match:"`[^`]*`",name:"variable.other.quoted"}]},"identifiers-unquoted":{patterns:[{match:"(?i)\\b[A-Za-z_][A-Za-z_0-9]*\\b",name:"variable.other"}]},timeframes:{patterns:[{match:"(?i)\\b((year|quarter|month|week|day|hour|minute|second)s?)\\b",name:"keyword.other.timeframe"},{match:"(?i)\\b(day_of_year|day_of_month)\\b",name:"keyword.other.timeframe"}]},comments:{patterns:[{begin:"/\\*",end:"\\*/",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"comment.block"},{begin:"//",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{begin:"--",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-hyphen"}]},tags:{patterns:[{match:"##\\n",name:"string.quoted",captures:{0:{name:"string.quoted"}}},{begin:'#"',end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{match:"#\\n",name:"string.quoted",captures:{0:{name:"string.quoted"}}},{begin:"#\\s",end:"\\n",beginCaptures:{0:{name:"support.type.property-name.json"}},name:"comment.line.double-slash",patterns:[{include:"#tag-values"}]},{begin:"##\\s",end:"\\n",beginCaptures:{0:{name:"support.type.property-name.json"}},name:"comment.line.double-slash",patterns:[{include:"#tag-values"}]},{begin:"#",end:"\\n",beginCaptures:{0:{name:"string.quoted"}},name:"string.quoted"}],repository:{"tag-values":{name:"support.type.property-name.json",match:'(-)?((?:[^\\s=#]+)|(?:"[^#]+"))(?:\\s*(=)\\s*((?:[^\\s=#]+)|(?:"[^#]+")))?',captures:{1:{name:"keyword.control.negate"},2:{name:"support.type.property-name.json"},3:{name:"keyword.operator.comparison.ts"},4:{name:"string.quoted"}}}}},strings:{patterns:[{begin:"'",end:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.single",patterns:[{include:"#escapes"}]},{begin:'"',end:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.double",patterns:[{include:"#escapes"}]},{begin:'"""',end:'"""',beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.triple"},{begin:"(?i)[r|/]'",end:"'",name:"string.regexp",patterns:[{include:"#regex-escapes"}]}],repository:{escapes:{name:"constant.character.escape",match:"\\\\(u[A-Fa-f0-9]{4}|.)",captures:{0:{name:"constant.character.escape"}}},"regex-escapes":{name:"constant.character.escape",match:"\\\\.",captures:{0:{name:"constant.character.escape"}}}}},numbers:{match:"(?i)(\\b((0|[1-9][0-9]*)(E[+-]?[0-9]+|\\.[0-9]*)?)|\\.[0-9]+)",name:"constant.numeric"},constants:{patterns:[{match:"(?i)\\bnull\\b",name:"constant.language.null"},{match:"(?i)\\btrue\\b",name:"constant.language.true"},{match:"(?i)\\bfalse\\b",name:"constant.language.false"}]},types:{patterns:[{match:"(?i)\\bstring\\b",name:"entity.name.type.string"},{match:"(?i)\\bnumber\\b",name:"entity.name.type.number"},{match:"(?i)\\bdate\\b",name:"entity.name.type.date"},{match:"(?i)\\btimestamp\\b",name:"entity.name.type.timestamp"},{match:"(?i)\\bboolean\\b",name:"entity.name.type.boolean"}]},properties:{patterns:[{match:"(?i)\\baccept\\b",name:"keyword.control.accept"},{match:"(?i)\\bselect\\b",name:"keyword.control.select"},{match:"(?i)\\bconnection\\b",name:"keyword.control.connection"},{match:"(?i)\\brun\\b",name:"keyword.control.run"},{match:"(?i)\\bextend\\b",name:"keyword.control.extend"},{match:"(?i)\\brefine\\b",name:"keyword.control.refine"},{match:"(?i)\\baggregate\\b",name:"keyword.control.aggregate"},{match:"(?i)\\bsample\\b",name:"keyword.control.sample"},{match:"(?i)\\bcalculate\\b",name:"keyword.control.calculate"},{match:"(?i)\\btimezone\\b",name:"keyword.control.timezone"},{match:"(?i)\\bdimension\\b",name:"keyword.control.dimension"},{match:"(?i)\\bexcept\\b",name:"keyword.control.except"},{match:"(?i)\\bsource\\b",name:"keyword.control.source"},{match:"(?i)\\bgroup_by\\b",name:"keyword.control.group_by"},{match:"(?i)\\bhaving\\b",name:"keyword.control.having"},{match:"(?i)\\bindex\\b",name:"keyword.control.index"},{match:"(?i)\\bjoin_one\\b",name:"keyword.control.join_one"},{match:"(?i)\\bwith\\b",name:"keyword.control.with"},{match:"(?i)\\bjoin_many\\b",name:"keyword.control.join_many"},{match:"(?i)\\bjoin_cross\\b",name:"keyword.control.join_cross"},{match:"(?i)\\blimit\\b",name:"keyword.control.limit"},{match:"(?i)\\bmeasure\\b",name:"keyword.control.measure"},{match:"(?i)\\bnest\\b",name:"keyword.control.nest"},{match:"(?i)\\border_by\\b",name:"keyword.control.order_by"},{match:"(?i)\\bpartition_by\\b",name:"keyword.control.partition_by"},{match:"(?i)\\bprimary_key\\b",name:"keyword.control.primary_key"},{match:"(?i)\\bproject\\b",name:"keyword.control.project"},{match:"(?i)\\bquery\\b",name:"keyword.control.query"},{match:"(?i)\\brename\\b",name:"keyword.control.rename"},{match:"(?i)\\btop\\b",name:"keyword.control.top"},{match:"(?i)\\bview\\b",name:"keyword.control.view"},{match:"(?i)\\bwhere\\b",name:"keyword.control.where"},{match:"(?i)\\bdeclare\\b",name:"keyword.control.declare"}]},keywords:{patterns:[{match:"(?i)\\bis\\b",name:"keyword.control.is"},{match:"(?i)\\bon\\b",name:"keyword.control.on"},{match:"(?i)\\bnot\\b",name:"keyword.other.not"},{match:"(?i)\\bor\\b",name:"keyword.other.or"},{match:"(?i)\\bdesc\\b",name:"keyword.control.desc"},{match:"(?i)\\bby\\b",name:"keyword.control.by"},{match:"(?i)\\band\\b",name:"keyword.other.and"},{match:"(?i)\\basc\\b",name:"keyword.control.asc"},{match:"(?i)\\bfor\\b",name:"keyword.other.for"},{match:"(?i)\\belse\\b",name:"keyword.other.else"},{match:"(?i)\\bto\\b",name:"keyword.other.to"},{match:"(?i)\\bwhen\\b",name:"keyword.other.when"},{match:"(?i)\\bpick\\b",name:"keyword.other.pick"},{match:"(?i)\\bimport\\b",name:"keyword.control.import"}]}}},nie={...NE,patterns:[...NE.patterns,{include:"#docvar"}],repository:{...NE.repository,docvar:{patterns:[{match:"\\<\\<[^(\\>\\>)]*\\>\\>",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"markup.italic.markdown"}]}}},rie={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"}]}}},iL="catppuccin-latte",oie=tie({themes:[iL],langs:["sql","json","typescript",{name:"malloy",scopeName:"source.malloy",embeddedLangs:["sql"],...nie},{name:"malloysql",scopeName:"source.malloy-sql",embeddedLangs:["sql"],...rie}]});async function dc(e,t){return(await oie).codeToHtml(e,{lang:t,theme:iL})}const _r=we(Au)({display:"flex",flexDirection:"column",height:"100%"}),Wo=we(ku)({display:"flex",flexDirection:"column",padding:"10px",flexGrow:1}),IC=we(QG)({padding:"10px"}),aie=we("div")({height:"100%"});we("div")({height:"30px",backgroundColor:"rgba(225, 240, 255, 1)",display:"flex",padding:"4px",alignItems:"center"});const sL=we("div")({height:"75vh",width:"100%",overflowY:"auto"});we("div")({position:"relative",height:"100%",flex:"0 0 auto"});function zr({error:e,context:t}){const n=e.data?.message||"Unknown Error";return b.jsxs(b.Fragment,{children:[t&&b.jsx(Ue,{variant:"body2",sx:{p:"10px",m:"auto"},children:t}),b.jsx("pre",{style:{whiteSpace:"pre-wrap",color:"red",padding:"10px",margin:"auto"},children:n})]})}function Xr({text:e,size:t=20,color:n="primary",thickness:r=3.6,centered:o=!0,spacing:a=2,textVariant:s="body2"}){const l=b.jsxs(Rt,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:a},children:[b.jsx(TS,{size:t,color:n,thickness:r}),e&&b.jsx(Ue,{variant:s,color:"text.secondary",children:e})]});return o?b.jsx(Rt,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px",width:"100%"},children:l}):l}const iie=wn([b.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"),b.jsx("path",{d:"M7 12h2v5H7zm8-5h2v10h-2zm-4 7h2v3h-2zm0-4h2v2h-2z"},"1")]),An="http://localhost/api/v0".replace(/\/+$/,"");class ll{constructor(t,n=An,r=wt){this.basePath=n,this.axios=r,t&&(this.configuration=t,this.basePath=t.basePath??n)}configuration}class sie extends Error{constructor(t,n){super(n),this.field=t,this.name="RequiredError"}}const On={},Nn="https://example.com",St=function(e,t,n){if(n==null)throw new sie(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function mT(e,t,n=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(r=>mT(e,r,n)):Object.keys(t).forEach(r=>mT(e,t[r],`${n}${n!==""?".":""}${r}`)):e.has(n)?e.append(n,t):e.set(n,t))}const Pn=function(e,...t){const n=new URLSearchParams(e.search);mT(n,t),e.search=n.toString()},Xy=function(e,t,n){const r=typeof e!="string";return(r&&n&&n.isJsonMime?n.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(e!==void 0?e:{}):e||""},Ln=function(e){return e.pathname+e.search+e.hash},Mn=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)}},lie=function(e){return{getConnection:async(t,n,r={})=>{St("getConnection","projectName",t),St("getConnection","connectionName",n);const o="/projects/{projectName}/connections/{connectionName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),a=new URL(o,Nn);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...r},u={};Pn(a,{});let d=s&&s.headers?s.headers:{};return l.headers={...u,...d,...r.headers},{url:Ln(a),options:l}},getQuerydata:async(t,n,r,o,a={})=>{St("getQuerydata","projectName",t),St("getQuerydata","connectionName",n);const s="/projects/{projectName}/connections/{connectionName}/queryData".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),l=new URL(s,Nn);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),Pn(l,h);let g=u&&u.headers?u.headers:{};return d.headers={...p,...g,...a.headers},{url:Ln(l),options:d}},getSqlsource:async(t,n,r,o={})=>{St("getSqlsource","projectName",t),St("getSqlsource","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),s=new URL(a,Nn);let l;e&&(l=e.baseOptions);const u={method:"GET",...l,...o},d={},p={};r!==void 0&&(p.sqlStatement=r),Pn(s,p);let h=l&&l.headers?l.headers:{};return u.headers={...d,...h,...o.headers},{url:Ln(s),options:u}},getTablesource:async(t,n,r,o,a={})=>{St("getTablesource","projectName",t),St("getTablesource","connectionName",n);const s="/projects/{projectName}/connections/{connectionName}/tableSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),l=new URL(s,Nn);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),Pn(l,h);let g=u&&u.headers?u.headers:{};return d.headers={...p,...g,...a.headers},{url:Ln(l),options:d}},getTemporarytable:async(t,n,r,o={})=>{St("getTemporarytable","projectName",t),St("getTemporarytable","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}/temporaryTable".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),s=new URL(a,Nn);let l;e&&(l=e.baseOptions);const u={method:"GET",...l,...o},d={},p={};r!==void 0&&(p.sqlStatement=r),Pn(s,p);let h=l&&l.headers?l.headers:{};return u.headers={...d,...h,...o.headers},{url:Ln(s),options:u}},getTest:async(t,n,r={})=>{St("getTest","projectName",t),St("getTest","connectionName",n);const o="/projects/{projectName}/connections/{connectionName}/test".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),a=new URL(o,Nn);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...r},u={};Pn(a,{});let d=s&&s.headers?s.headers:{};return l.headers={...u,...d,...r.headers},{url:Ln(a),options:l}},listConnections:async(t,n={})=>{St("listConnections","projectName",t);const r="/projects/{projectName}/connections".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(r,Nn);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...n},l={};Pn(o,{});let u=a&&a.headers?a.headers:{};return s.headers={...l,...u,...n.headers},{url:Ln(o),options:s}},listSchemas:async(t,n,r={})=>{St("listSchemas","projectName",t),St("listSchemas","connectionName",n);const o="/projects/{projectName}/connections/{connectionName}/schemas".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),a=new URL(o,Nn);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...r},u={};Pn(a,{});let d=s&&s.headers?s.headers:{};return l.headers={...u,...d,...r.headers},{url:Ln(a),options:l}},listTables:async(t,n,r,o={})=>{St("listTables","projectName",t),St("listTables","connectionName",n),St("listTables","schemaName",r);const a="/projects/{projectName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))).replace("{schemaName}",encodeURIComponent(String(r))),s=new URL(a,Nn);let l;e&&(l=e.baseOptions);const u={method:"GET",...l,...o},d={};Pn(s,{});let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:Ln(s),options:u}}}},qi=function(e){const t=lie(e);return{async getConnection(n,r,o){const a=await t.getConnection(n,r,o),s=e?.serverIndex??0,l=On["ConnectionsApi.getConnection"]?.[s]?.url;return(u,d)=>Mn(a,wt,An,e)(u,l||d)},async getQuerydata(n,r,o,a,s){const l=await t.getQuerydata(n,r,o,a,s),u=e?.serverIndex??0,d=On["ConnectionsApi.getQuerydata"]?.[u]?.url;return(p,h)=>Mn(l,wt,An,e)(p,d||h)},async getSqlsource(n,r,o,a){const s=await t.getSqlsource(n,r,o,a),l=e?.serverIndex??0,u=On["ConnectionsApi.getSqlsource"]?.[l]?.url;return(d,p)=>Mn(s,wt,An,e)(d,u||p)},async getTablesource(n,r,o,a,s){const l=await t.getTablesource(n,r,o,a,s),u=e?.serverIndex??0,d=On["ConnectionsApi.getTablesource"]?.[u]?.url;return(p,h)=>Mn(l,wt,An,e)(p,d||h)},async getTemporarytable(n,r,o,a){const s=await t.getTemporarytable(n,r,o,a),l=e?.serverIndex??0,u=On["ConnectionsApi.getTemporarytable"]?.[l]?.url;return(d,p)=>Mn(s,wt,An,e)(d,u||p)},async getTest(n,r,o){const a=await t.getTest(n,r,o),s=e?.serverIndex??0,l=On["ConnectionsApi.getTest"]?.[s]?.url;return(u,d)=>Mn(a,wt,An,e)(u,l||d)},async listConnections(n,r){const o=await t.listConnections(n,r),a=e?.serverIndex??0,s=On["ConnectionsApi.listConnections"]?.[a]?.url;return(l,u)=>Mn(o,wt,An,e)(l,s||u)},async listSchemas(n,r,o){const a=await t.listSchemas(n,r,o),s=e?.serverIndex??0,l=On["ConnectionsApi.listSchemas"]?.[s]?.url;return(u,d)=>Mn(a,wt,An,e)(u,l||d)},async listTables(n,r,o,a){const s=await t.listTables(n,r,o,a),l=e?.serverIndex??0,u=On["ConnectionsApi.listTables"]?.[l]?.url;return(d,p)=>Mn(s,wt,An,e)(d,u||p)}}};class lL extends ll{getConnection(t,n,r){return qi(this.configuration).getConnection(t,n,r).then(o=>o(this.axios,this.basePath))}getQuerydata(t,n,r,o,a){return qi(this.configuration).getQuerydata(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}getSqlsource(t,n,r,o){return qi(this.configuration).getSqlsource(t,n,r,o).then(a=>a(this.axios,this.basePath))}getTablesource(t,n,r,o,a){return qi(this.configuration).getTablesource(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}getTemporarytable(t,n,r,o){return qi(this.configuration).getTemporarytable(t,n,r,o).then(a=>a(this.axios,this.basePath))}getTest(t,n,r){return qi(this.configuration).getTest(t,n,r).then(o=>o(this.axios,this.basePath))}listConnections(t,n){return qi(this.configuration).listConnections(t,n).then(r=>r(this.axios,this.basePath))}listSchemas(t,n,r){return qi(this.configuration).listSchemas(t,n,r).then(o=>o(this.axios,this.basePath))}listTables(t,n,r,o){return qi(this.configuration).listTables(t,n,r,o).then(a=>a(this.axios,this.basePath))}}const cie=function(e){return{listDatabases:async(t,n,r,o={})=>{St("listDatabases","projectName",t),St("listDatabases","packageName",n);const a="/projects/{projectName}/packages/{packageName}/databases".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(a,Nn);let l;e&&(l=e.baseOptions);const u={method:"GET",...l,...o},d={},p={};r!==void 0&&(p.versionId=r),Pn(s,p);let h=l&&l.headers?l.headers:{};return u.headers={...d,...h,...o.headers},{url:Ln(s),options:u}}}},uie=function(e){const t=cie(e);return{async listDatabases(n,r,o,a){const s=await t.listDatabases(n,r,o,a),l=e?.serverIndex??0,u=On["DatabasesApi.listDatabases"]?.[l]?.url;return(d,p)=>Mn(s,wt,An,e)(d,u||p)}}};class die extends ll{listDatabases(t,n,r,o){return uie(this.configuration).listDatabases(t,n,r,o).then(a=>a(this.axios,this.basePath))}}const fie=function(e){return{getModel:async(t,n,r,o,a={})=>{St("getModel","projectName",t),St("getModel","packageName",n),St("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))),l=new URL(s,Nn);let u;e&&(u=e.baseOptions);const d={method:"GET",...u,...a},p={},h={};o!==void 0&&(h.versionId=o),Pn(l,h);let g=u&&u.headers?u.headers:{};return d.headers={...p,...g,...a.headers},{url:Ln(l),options:d}},listModels:async(t,n,r,o={})=>{St("listModels","projectName",t),St("listModels","packageName",n);const a="/projects/{projectName}/packages/{packageName}/models".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(a,Nn);let l;e&&(l=e.baseOptions);const u={method:"GET",...l,...o},d={},p={};r!==void 0&&(p.versionId=r),Pn(s,p);let h=l&&l.headers?l.headers:{};return u.headers={...d,...h,...o.headers},{url:Ln(s),options:u}}}},XI=function(e){const t=fie(e);return{async getModel(n,r,o,a,s){const l=await t.getModel(n,r,o,a,s),u=e?.serverIndex??0,d=On["ModelsApi.getModel"]?.[u]?.url;return(p,h)=>Mn(l,wt,An,e)(p,d||h)},async listModels(n,r,o,a){const s=await t.listModels(n,r,o,a),l=e?.serverIndex??0,u=On["ModelsApi.listModels"]?.[l]?.url;return(d,p)=>Mn(s,wt,An,e)(d,u||p)}}};class gb extends ll{getModel(t,n,r,o,a){return XI(this.configuration).getModel(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}listModels(t,n,r,o){return XI(this.configuration).listModels(t,n,r,o).then(a=>a(this.axios,this.basePath))}}const pie=function(e){return{getNotebook:async(t,n,r,o,a={})=>{St("getNotebook","projectName",t),St("getNotebook","packageName",n),St("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))),l=new URL(s,Nn);let u;e&&(u=e.baseOptions);const d={method:"GET",...u,...a},p={},h={};o!==void 0&&(h.versionId=o),Pn(l,h);let g=u&&u.headers?u.headers:{};return d.headers={...p,...g,...a.headers},{url:Ln(l),options:d}},listNotebooks:async(t,n,r,o={})=>{St("listNotebooks","projectName",t),St("listNotebooks","packageName",n);const a="/projects/{projectName}/packages/{packageName}/notebooks".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(a,Nn);let l;e&&(l=e.baseOptions);const u={method:"GET",...l,...o},d={},p={};r!==void 0&&(p.versionId=r),Pn(s,p);let h=l&&l.headers?l.headers:{};return u.headers={...d,...h,...o.headers},{url:Ln(s),options:u}}}},ZI=function(e){const t=pie(e);return{async getNotebook(n,r,o,a,s){const l=await t.getNotebook(n,r,o,a,s),u=e?.serverIndex??0,d=On["NotebooksApi.getNotebook"]?.[u]?.url;return(p,h)=>Mn(l,wt,An,e)(p,d||h)},async listNotebooks(n,r,o,a){const s=await t.listNotebooks(n,r,o,a),l=e?.serverIndex??0,u=On["NotebooksApi.listNotebooks"]?.[l]?.url;return(d,p)=>Mn(s,wt,An,e)(d,u||p)}}};class cL extends ll{getNotebook(t,n,r,o,a){return ZI(this.configuration).getNotebook(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}listNotebooks(t,n,r,o){return ZI(this.configuration).listNotebooks(t,n,r,o).then(a=>a(this.axios,this.basePath))}}const hie=function(e){return{createPackage:async(t,n,r={})=>{St("createPackage","projectName",t),St("createPackage","body",n);const o="/projects/{projectName}/packages".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(o,Nn);let s;e&&(s=e.baseOptions);const l={method:"POST",...s,...r},u={},d={};u["Content-Type"]="application/json",Pn(a,d);let p=s&&s.headers?s.headers:{};return l.headers={...u,...p,...r.headers},l.data=Xy(n,l,e),{url:Ln(a),options:l}},deletePackage:async(t,n,r={})=>{St("deletePackage","projectName",t),St("deletePackage","packageName",n);const o="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),a=new URL(o,Nn);let s;e&&(s=e.baseOptions);const l={method:"DELETE",...s,...r},u={};Pn(a,{});let d=s&&s.headers?s.headers:{};return l.headers={...u,...d,...r.headers},{url:Ln(a),options:l}},getPackage:async(t,n,r,o,a={})=>{St("getPackage","projectName",t),St("getPackage","packageName",n);const s="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(s,Nn);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),Pn(l,h);let g=u&&u.headers?u.headers:{};return d.headers={...p,...g,...a.headers},{url:Ln(l),options:d}},listPackages:async(t,n={})=>{St("listPackages","projectName",t);const r="/projects/{projectName}/packages".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(r,Nn);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...n},l={};Pn(o,{});let u=a&&a.headers?a.headers:{};return s.headers={...l,...u,...n.headers},{url:Ln(o),options:s}},updatePackage:async(t,n,r,o={})=>{St("updatePackage","projectName",t),St("updatePackage","packageName",n),St("updatePackage","body",r);const a="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(a,Nn);let l;e&&(l=e.baseOptions);const u={method:"PATCH",...l,...o},d={},p={};d["Content-Type"]="application/json",Pn(s,p);let h=l&&l.headers?l.headers:{};return u.headers={...d,...h,...o.headers},u.data=Xy(r,u,e),{url:Ln(s),options:u}}}},Hf=function(e){const t=hie(e);return{async createPackage(n,r,o){const a=await t.createPackage(n,r,o),s=e?.serverIndex??0,l=On["PackagesApi.createPackage"]?.[s]?.url;return(u,d)=>Mn(a,wt,An,e)(u,l||d)},async deletePackage(n,r,o){const a=await t.deletePackage(n,r,o),s=e?.serverIndex??0,l=On["PackagesApi.deletePackage"]?.[s]?.url;return(u,d)=>Mn(a,wt,An,e)(u,l||d)},async getPackage(n,r,o,a,s){const l=await t.getPackage(n,r,o,a,s),u=e?.serverIndex??0,d=On["PackagesApi.getPackage"]?.[u]?.url;return(p,h)=>Mn(l,wt,An,e)(p,d||h)},async listPackages(n,r){const o=await t.listPackages(n,r),a=e?.serverIndex??0,s=On["PackagesApi.listPackages"]?.[a]?.url;return(l,u)=>Mn(o,wt,An,e)(l,s||u)},async updatePackage(n,r,o,a){const s=await t.updatePackage(n,r,o,a),l=e?.serverIndex??0,u=On["PackagesApi.updatePackage"]?.[l]?.url;return(d,p)=>Mn(s,wt,An,e)(d,u||p)}}};class uL extends ll{createPackage(t,n,r){return Hf(this.configuration).createPackage(t,n,r).then(o=>o(this.axios,this.basePath))}deletePackage(t,n,r){return Hf(this.configuration).deletePackage(t,n,r).then(o=>o(this.axios,this.basePath))}getPackage(t,n,r,o,a){return Hf(this.configuration).getPackage(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}listPackages(t,n){return Hf(this.configuration).listPackages(t,n).then(r=>r(this.axios,this.basePath))}updatePackage(t,n,r,o){return Hf(this.configuration).updatePackage(t,n,r,o).then(a=>a(this.axios,this.basePath))}}const mie=function(e){return{createProject:async(t,n={})=>{St("createProject","body",t);const r="/projects",o=new URL(r,Nn);let a;e&&(a=e.baseOptions);const s={method:"POST",...a,...n},l={},u={};l["Content-Type"]="application/json",Pn(o,u);let d=a&&a.headers?a.headers:{};return s.headers={...l,...d,...n.headers},s.data=Xy(t,s,e),{url:Ln(o),options:s}},deleteProject:async(t,n={})=>{St("deleteProject","projectName",t);const r="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(r,Nn);let a;e&&(a=e.baseOptions);const s={method:"DELETE",...a,...n},l={};Pn(o,{});let u=a&&a.headers?a.headers:{};return s.headers={...l,...u,...n.headers},{url:Ln(o),options:s}},getProject:async(t,n,r={})=>{St("getProject","projectName",t);const o="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(o,Nn);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...r},u={},d={};n!==void 0&&(d.reload=n),Pn(a,d);let p=s&&s.headers?s.headers:{};return l.headers={...u,...p,...r.headers},{url:Ln(a),options:l}},listProjects:async(t={})=>{const n="/projects",r=new URL(n,Nn);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},s={};Pn(r,{});let l=o&&o.headers?o.headers:{};return a.headers={...s,...l,...t.headers},{url:Ln(r),options:a}},updateProject:async(t,n,r={})=>{St("updateProject","projectName",t),St("updateProject","body",n);const o="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(o,Nn);let s;e&&(s=e.baseOptions);const l={method:"PATCH",...s,...r},u={},d={};u["Content-Type"]="application/json",Pn(a,d);let p=s&&s.headers?s.headers:{};return l.headers={...u,...p,...r.headers},l.data=Xy(n,l,e),{url:Ln(a),options:l}}}},zf=function(e){const t=mie(e);return{async createProject(n,r){const o=await t.createProject(n,r),a=e?.serverIndex??0,s=On["ProjectsApi.createProject"]?.[a]?.url;return(l,u)=>Mn(o,wt,An,e)(l,s||u)},async deleteProject(n,r){const o=await t.deleteProject(n,r),a=e?.serverIndex??0,s=On["ProjectsApi.deleteProject"]?.[a]?.url;return(l,u)=>Mn(o,wt,An,e)(l,s||u)},async getProject(n,r,o){const a=await t.getProject(n,r,o),s=e?.serverIndex??0,l=On["ProjectsApi.getProject"]?.[s]?.url;return(u,d)=>Mn(a,wt,An,e)(u,l||d)},async listProjects(n){const r=await t.listProjects(n),o=e?.serverIndex??0,a=On["ProjectsApi.listProjects"]?.[o]?.url;return(s,l)=>Mn(r,wt,An,e)(s,a||l)},async updateProject(n,r,o){const a=await t.updateProject(n,r,o),s=e?.serverIndex??0,l=On["ProjectsApi.updateProject"]?.[s]?.url;return(u,d)=>Mn(a,wt,An,e)(u,l||d)}}};class dL extends ll{createProject(t,n){return zf(this.configuration).createProject(t,n).then(r=>r(this.axios,this.basePath))}deleteProject(t,n){return zf(this.configuration).deleteProject(t,n).then(r=>r(this.axios,this.basePath))}getProject(t,n,r){return zf(this.configuration).getProject(t,n,r).then(o=>o(this.axios,this.basePath))}listProjects(t){return zf(this.configuration).listProjects(t).then(n=>n(this.axios,this.basePath))}updateProject(t,n,r){return zf(this.configuration).updateProject(t,n,r).then(o=>o(this.axios,this.basePath))}}const gie=function(e){return{executeQuery:async(t,n,r,o,a,s,l,u={})=>{St("executeQuery","projectName",t),St("executeQuery","packageName",n),St("executeQuery","path",r);const d="/projects/{projectName}/packages/{packageName}/queryResults/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),p=new URL(d,Nn);let h;e&&(h=e.baseOptions);const g={method:"GET",...h,...u},y={},v={};o!==void 0&&(v.query=o),a!==void 0&&(v.sourceName=a),s!==void 0&&(v.queryName=s),l!==void 0&&(v.versionId=l),Pn(p,v);let T=h&&h.headers?h.headers:{};return g.headers={...y,...T,...u.headers},{url:Ln(p),options:g}}}},yie=function(e){const t=gie(e);return{async executeQuery(n,r,o,a,s,l,u,d){const p=await t.executeQuery(n,r,o,a,s,l,u,d),h=e?.serverIndex??0,g=On["QueryresultsApi.executeQuery"]?.[h]?.url;return(y,v)=>Mn(p,wt,An,e)(y,g||v)}}};class OC extends ll{executeQuery(t,n,r,o,a,s,l,u){return yie(this.configuration).executeQuery(t,n,r,o,a,s,l,u).then(d=>d(this.axios,this.basePath))}}const bie=function(e){return{listSchedules:async(t,n,r,o={})=>{St("listSchedules","projectName",t),St("listSchedules","packageName",n);const a="/projects/{projectName}/packages/{packageName}/schedules".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(a,Nn);let l;e&&(l=e.baseOptions);const u={method:"GET",...l,...o},d={},p={};r!==void 0&&(p.versionId=r),Pn(s,p);let h=l&&l.headers?l.headers:{};return u.headers={...d,...h,...o.headers},{url:Ln(s),options:u}}}},vie=function(e){const t=bie(e);return{async listSchedules(n,r,o,a){const s=await t.listSchedules(n,r,o,a),l=e?.serverIndex??0,u=On["SchedulesApi.listSchedules"]?.[l]?.url;return(d,p)=>Mn(s,wt,An,e)(d,u||p)}}};class Eie extends ll{listSchedules(t,n,r,o){return vie(this.configuration).listSchedules(t,n,r,o).then(a=>a(this.axios,this.basePath))}}class $r{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 fL=w.createContext(void 0),Zy=({projectName:e,packageName:t,versionId:n,children:r})=>b.jsx(fL.Provider,{value:{projectName:e,packageName:t,versionId:n},children:r});function Yo(e=!0){const t=w.useContext(fL);if(!t&&e)throw new Error("usePackage must be used within a PackageProvider");return t}const pL=new RX({defaultOptions:{queries:{retry:!1,throwOnError:!1},mutations:{retry:!1,throwOnError:!1}}}),NC=async(e,t)=>{const n=t?await t():void 0,r=n?{Authorization:`Bearer ${n}`}:{};return{baseURL:e,withCredentials:!!n,headers:r}};function Zr(e){const{server:t,getAccessToken:n}=$C(),r={...e,queryKey:[...e.queryKey,t],queryFn:async()=>{try{const o=await NC(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 WX(r,pL)}function xie(e){const{server:t,getAccessToken:n}=$C(),r={...e,mutationFn:async o=>{try{const a=await NC(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 l=new Error(s.response.data.message||s.message);throw l.status=s.response.status,l.data=s.response.data,l}}throw a}},retry:!1,throwOnError:!1};return YX(r,pL)}const Tie=w.lazy(()=>G(()=>import("./RenderedResult-BAZuT25g-DLMDvQic.js"),[])),Sie=new OC(new $r);function hL(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 Cie({modelPath:e,query:t,sourceName:n,queryName:r,optionalProjectName:o,optionalPackageName:a,optionalVersionId:s}){const l=Yo(!1),u=o||l?.projectName,d=a||l?.packageName,p=s||l?.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:v}=Zr({queryKey:["queryResult",u,d,e,p,t,n,r],queryFn:T=>Sie.executeQuery(u,d,e,t,n,r,p,T)});return b.jsxs(b.Fragment,{children:[!g&&!y&&b.jsx(Xr,{text:"Fetching Query Results..."}),g&&b.jsx(w.Suspense,{fallback:b.jsx("div",{children:"Loading..."}),children:b.jsx(Tie,{result:h.data.result})}),y&&b.jsx(zr,{context:`${u} > ${d} > ${e}`,error:v})]})}const mL=wn(b.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"})),_ie=w.lazy(()=>G(()=>import("./RenderedResult-BAZuT25g-DLMDvQic.js"),[]));function gL({result:e,minHeight:t,maxHeight:n}){const[r,o]=w.useState(!1),[a,s]=w.useState(0),[l,u]=w.useState(!1),d=w.useRef(null),p=w.useRef(null),[h,g]=w.useState(void 0),[y,v]=w.useState(!1),T=w.useCallback(()=>{const R=r;o(!r),R&&p.current&&setTimeout(()=>{p.current?.scrollIntoView({behavior:"smooth",block:"start"})},100)},[r]),_=w.useCallback(R=>{s(R)},[]);if(w.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 x=b.jsx(Xr,{text:"Loading...",centered:!0,size:32}),D=y?r?n-40:t-40:void 0,C=h?{minHeight:`${h}px`,height:"100%"}:{height:"100%"};return b.jsx(b.Fragment,{children:b.jsxs(Rt,{ref:p,sx:{position:"relative",minHeight:`${t}px`,maxHeight:`${r?n:t}px`,border:"0px",borderRadius:0,overflow:"hidden",display:"flex",flexDirection:"column",...C},children:[b.jsx(Rt,{ref:d,sx:{flex:1,overflow:r?"auto":"hidden",p:0,pb:l?"40px":1},children:e&&b.jsx(w.Suspense,{fallback:x,children:b.jsx(_ie,{result:e,height:D,isFillElement:R=>{v(R)},onSizeChange:_})})||x}),l&&b.jsx(Rt,{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:b.jsx(nr,{size:"small",onClick:T,sx:{color:"text.secondary","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},title:r?"Collapse to original size":"Expand to full size",children:r?b.jsx(oJ,{sx:{fontSize:30}}):b.jsx(aJ,{sx:{fontSize:30}})})})]})})}const Aie=`
|
|
262
|
+
.code-display pre {
|
|
263
|
+
margin: 0;
|
|
264
|
+
padding: 0;
|
|
265
|
+
}
|
|
266
|
+
`;function kie({cell:e,notebookPath:t,expandCodeCell:n,hideCodeCellIcon:r,expandEmbedding:o,hideEmbeddingIcon:a}){const[s,l]=Be.useState(n),[u,d]=Be.useState(o),[p,h]=Be.useState(),[g,y]=Be.useState(),[v,T]=Be.useState(!1),{packageName:_,projectName:x}=Yo(),D=hL({modelPath:t,query:e.text,optionalPackageName:_,optionalProjectName:x});return w.useEffect(()=>{e.type==="code"&&dc(e.text,"malloy").then(C=>{h(C)})},[e]),w.useEffect(()=>{dc(D,"typescript").then(C=>{y(C)})},[D]),e.type==="markdown"&&b.jsx(_r,{variant:"outlined",children:b.jsx(Wo,{children:b.jsx(QS,{children:e.text})})})||e.type==="code"&&b.jsxs(_r,{variant:"outlined",sx:{height:"auto"},children:[(!r||!a&&e.result)&&b.jsxs(cn,{sx:{flexDirection:"row",justifyContent:"space-between",ml:"8px"},children:[b.jsxs(cn,{sx:{flexDirection:"row"},children:[e.newSources&&e.newSources.length>0&&b.jsx(Ue,{variant:"overline",children:b.jsx("b",{children:"Data source"})}),e.result&&b.jsx(Ue,{variant:"overline",fontWeight:"bold",children:"Results"})]}),b.jsx(cn,{sx:{flexDirection:"row"},children:b.jsxs(L0,{sx:{padding:"0px 8px 0px 8px",mb:"auto",mt:"auto"},children:[e.newSources&&e.newSources.length>0&&b.jsx(ir,{title:"Explore Data Sources",children:b.jsx(nr,{size:"small",onClick:()=>{T(!v),d(!1),l(!1)},children:b.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:b.jsx("path",{d:"M3 3h18v18H3V3zm2 2v14h14V5H5zm2 2h10v2H7V7zm0 4h10v2H7v-2zm0 4h10v2H7v-2z",fill:"currentColor"})})})}),!r&&b.jsx(ir,{title:s?"Hide Code":"View Code",children:b.jsx(nr,{size:"small",onClick:()=>{l(!s)},children:b.jsx(mL,{})})}),!a&&e.result&&b.jsx(ir,{title:u?"Hide Embedding":"View Embedding",children:b.jsx(nr,{size:"small",onClick:()=>{d(!u)},children:b.jsx(Lh,{})})})]})})]}),b.jsx(Na,{in:u,timeout:"auto",unmountOnExit:!0,children:b.jsxs(cn,{sx:{p:"8px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:[b.jsx(Ue,{component:"div",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},dangerouslySetInnerHTML:{__html:g}}),b.jsx(ir,{title:"Copy Embeddable Code",children:b.jsx(nr,{sx:{width:"24px",height:"24px"},onClick:()=>{navigator.clipboard.writeText(D)},children:b.jsx(cb,{})})})]})}),b.jsxs(Na,{in:s,timeout:"auto",unmountOnExit:!0,children:[b.jsx("style",{children:Aie}),b.jsx(cn,{sx:{mx:"8px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:b.jsx("div",{className:"code-display",style:{fontSize:"12px",width:"800px",border:"1px solid rgb(220,220,220)"},dangerouslySetInnerHTML:{__html:p}})})]}),b.jsx(Na,{in:v,timeout:"auto",unmountOnExit:!0,sx:{p:"5px"},children:b.jsx(WL,{sourceAndPaths:e.newSources.map(C=>({sourceInfo:JSON.parse(C),modelPath:t}))})}),e.result&&!v&&b.jsx(b.Fragment,{children:b.jsx(gL,{result:e.result,minHeight:300,maxHeight:700})})]})}const wie=new cL(new $r);function yL({notebookPath:e,expandResults:t,hideResultIcons:n,expandEmbeddings:r,hideEmbeddingIcons:o}){const[a,s]=Be.useState(!1),[l,u]=Be.useState(),{projectName:d,packageName:p,versionId:h}=Yo(),g=Die(e,!0);w.useEffect(()=>{dc(g,"typescript").then(x=>{u(x)})},[a,g]);const{data:y,isSuccess:v,isError:T,error:_}=Zr({queryKey:["notebook",d,p,e,h],queryFn:async x=>(await wie.getNotebook(d,p,e,h,x)).data});return b.jsxs(_r,{variant:"outlined",children:[b.jsxs(Wo,{children:[b.jsxs(cn,{sx:{flexDirection:"row",justifyContent:"space-between"},children:[b.jsx(Ue,{variant:"overline",fontWeight:"bold",children:"Notebook"}),!o&&b.jsx(L0,{sx:{padding:"0px 10px 0px 10px",mb:"auto",mt:"auto"},children:b.jsx(ir,{title:a?"Hide Embedding":"View Embedding",children:b.jsx(nr,{size:"small",onClick:()=>{s(!a)},children:b.jsx(Lh,{})})})})]}),b.jsx(Na,{in:a,timeout:"auto",unmountOnExit:!0,children:b.jsxs(cn,{sx:{borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:[b.jsx(Ue,{sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:b.jsx("div",{dangerouslySetInnerHTML:{__html:l}})}),b.jsx(ir,{title:"Copy Embeddable Code",children:b.jsx(nr,{sx:{width:"24px",height:"24px"},onClick:()=>{navigator.clipboard.writeText(g)},children:b.jsx(cb,{})})})]})})]}),b.jsx(IC,{children:b.jsxs(cn,{spacing:2,component:"section",children:[!v&&!T&&b.jsx(Xr,{text:"Fetching Notebook..."}),v&&y.notebookCells?.map((x,D)=>b.jsx(kie,{cell:x,notebookPath:e,expandCodeCell:t,hideCodeCellIcon:n,expandEmbedding:r,hideEmbeddingIcon:o},D)),T&&_.status===404&&b.jsxs(Ue,{variant:"body2",children:[b.jsx("code",{children:`${d} > ${p} > ${e}`})," ","not found."]}),T&&_.status!==404&&b.jsx(zr,{error:_,context:`${d} > ${p} > ${e}`})]})})]})}function Die(e,t){return`<Notebook
|
|
267
|
+
notebookPath="${e}"
|
|
268
|
+
expandCodeCells={${t}}
|
|
269
|
+
/>`}const bL=wn(b.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"})),Rie=new uL(new $r);function Iie(){const{projectName:e,packageName:t,versionId:n}=Yo(),{data:r,isSuccess:o,isError:a,error:s}=Zr({queryKey:["package",e,t,n],queryFn:l=>Rie.getPackage(e,t,n,!1,l)});return b.jsx(_r,{variant:"outlined",sx:{width:"100%"},children:b.jsxs(Wo,{children:[b.jsx(Ue,{variant:"overline",fontWeight:"bold",children:"Package Config"}),b.jsx(vr,{}),b.jsx(Rt,{sx:{maxHeight:"200px",overflowY:"auto"},children:b.jsxs(Ah,{dense:!0,disablePadding:!0,children:[b.jsx(wu,{dense:!0,disablePadding:!0,children:b.jsx(ts,{primary:"Name",primaryTypographyProps:{fontWeight:"500"},secondary:t})}),!o&&!a&&b.jsx(wu,{children:b.jsx(Xr,{text:"Fetching Package Metadata..."})}),o&&(r.data&&b.jsx(wu,{dense:!0,disablePadding:!0,children:b.jsx(ts,{primary:"Description",primaryTypographyProps:{fontWeight:"500"},secondary:r.data.description})})||b.jsxs(wu,{disablePadding:!0,dense:!0,sx:{mt:"20px"},children:[b.jsx(bL,{sx:{color:"grey.600",mr:"10px"}}),b.jsx(ts,{primary:"No package manifest"})]})),a&&b.jsx(zr,{error:s,context:`${e} > ${t} > ${n}`})]})})]})})}const Oie=wn(b.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"})),Nie=new dL(new $r);function Pie(){const{projectName:e}=Hh(),{data:t,isSuccess:n,isError:r,error:o}=Zr({queryKey:["about",e],queryFn:a=>Nie.getProject(e,!1,a)});return b.jsxs(b.Fragment,{children:[!n&&!r&&b.jsx(Xr,{text:"Fetching About..."}),n&&t.data?.readme&&b.jsxs(_r,{variant:"outlined",sx:{p:2},children:[b.jsx(Ue,{variant:"overline",fontWeight:"bold",sx:{mb:1},children:"Readme"}),b.jsx(_r,{sx:{p:1},children:b.jsx(QS,{children:t.data.readme})})]}),r&&b.jsx(zr,{error:o,context:`${e} > About`})]})}const Lie=new uL(new $r);function Mie({navigate:e}){const{projectName:t}=Hh(),{data:n,isSuccess:r,isError:o,error:a}=Zr({queryKey:["packages",t],queryFn:s=>Lie.listPackages(t,s)});return b.jsxs(b.Fragment,{children:[!r&&!o&&b.jsx(Xr,{text:"Fetching Packages..."}),r&&b.jsxs(_r,{variant:"outlined",sx:{p:2},children:[b.jsx(Ue,{variant:"overline",fontWeight:"bold",sx:{mb:1},children:"Packages"}),b.jsx(Gn,{container:!0,spacing:2,columns:12,children:n.data.sort((s,l)=>s.name.localeCompare(l.name)).map(s=>b.jsx(Gn,{size:{xs:12,sm:12,md:12,lg:4},children:b.jsx(_r,{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:l=>e(s.name,l),children:b.jsxs(Wo,{children:[b.jsx(Ue,{variant:"overline",color:"primary.main",children:s.name}),b.jsx(Rt,{sx:{maxHeight:"120px",overflowY:"auto"},children:b.jsx(Ue,{variant:"body2",children:s.description})})]})})},s.name))})]}),o&&b.jsx(zr,{error:a,context:`${t} > Packages`})]})}const vL=w.createContext(void 0);function Hh(){const e=w.useContext(vL);if(!e)throw new Error("useProject must be used within a ProjectProvider");return e}function EL({children:e,projectName:t}){return b.jsx(vL.Provider,{value:{projectName:t},children:e})}function Fie({navigate:e}){return b.jsxs(Gn,{container:!0,spacing:2,columns:12,children:[b.jsx(Gn,{size:{xs:12,md:12},children:b.jsx(Mie,{navigate:e})}),b.jsx(Gn,{size:{xs:12,md:12},children:b.jsx(Pie,{})})]})}const PC=new lL(new $r);function Bie({connectionName:e,schema:t}){const{projectName:n}=Hh(),[r,o]=Be.useState(void 0),[a,s]=Be.useState(t||null),[l,u]=Be.useState(!1),{data:d,isSuccess:p,isError:h,error:g,isLoading:y}=Zr({queryKey:["tablePath",n,e],queryFn:v=>PC.listSchemas(n,e,v)});return b.jsxs(Gn,{container:!0,spacing:1,children:[!t&&b.jsx(Gn,{size:{xs:12,md:4},children:b.jsxs(es,{sx:{p:1,m:0},children:[b.jsxs(Rt,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:0},children:[b.jsx(Ue,{variant:"overline",fontWeight:"bold",children:"Table Paths"}),b.jsx(aW,{control:b.jsx(jY,{checked:l,onChange:v=>u(v.target.checked)}),label:"Hidden Schemas"})]}),b.jsx(vr,{sx:{mt:"2px"}}),b.jsxs(Rt,{sx:{mt:"2px",maxHeight:"600px",overflowY:"auto"},children:[y&&b.jsx(Xr,{text:"Fetching Table Paths..."}),h&&b.jsx(zr,{error:g,context:`${n} > ${e}`}),p&&d.data.length===0&&b.jsx(Ue,{variant:"body2",children:"No Schemas"}),p&&d.data.length>0&&b.jsx(Ah,{dense:!0,disablePadding:!0,children:d.data.filter(({isHidden:v})=>l||!v).sort((v,T)=>v.isDefault===T.isDefault?0:v.isDefault?-1:1).map(v=>b.jsx(w5,{selected:a===v.name,onClick:()=>s(v.name),children:b.jsx(ts,{primary:v.name})},v.name))})]})]})}),b.jsx(Gn,{size:{xs:12,md:t?6:4},children:a&&b.jsx(es,{sx:{p:1,m:0},children:b.jsx(Uie,{connectionName:e,schemaName:a,onTableClick:v=>{o(v)}})})}),b.jsx(Gn,{size:{xs:12,md:t?6:4},children:r&&a&&b.jsx(es,{sx:{p:1,m:0},children:b.jsx(jie,{connectionName:e,schemaName:a,tableName:r})})})]})}function jie({connectionName:e,schemaName:t,tableName:n}){const{projectName:r}=Hh(),{data:o,isSuccess:a,isError:s,error:l,isLoading:u}=Zr({queryKey:["tablePathSchema",r,e,t,n],queryFn:d=>PC.getTablesource(r,e,n,`${t}.${n}`,d)});return b.jsxs(b.Fragment,{children:[b.jsxs(Ue,{variant:"overline",fontWeight:"bold",children:["Schema: ",t,".",n]}),b.jsx(vr,{}),b.jsxs(Rt,{sx:{mt:"10px",maxHeight:"600px",overflowY:"auto"},children:[u&&b.jsx(Xr,{text:"Fetching Table Details..."}),s&&b.jsx(zr,{error:l,context:`${r} > ${e} > ${t}.${n}`}),a&&o&&b.jsx(jS,{children:b.jsxs(Vp,{size:"small",sx:{"& .MuiTableCell-root":{padding:"10px"}},children:[b.jsx(wy,{children:b.jsxs(ui,{children:[b.jsx(vn,{children:"NAME"}),b.jsx(vn,{children:"TYPE"})]})}),b.jsx(Gp,{children:o.data.columns?.map(d=>b.jsxs(ui,{children:[b.jsx(vn,{children:d.name}),b.jsx(vn,{children:d.type})]},d.name))})]})})]})]})}function Uie({connectionName:e,schemaName:t,onTableClick:n}){const{projectName:r}=Hh(),{data:o,isSuccess:a,isError:s,error:l,isLoading:u}=Zr({queryKey:["tablesInSchema",r,e,t],queryFn:d=>PC.listTables(r,e,t,d)});return b.jsxs(b.Fragment,{children:[b.jsxs(Ue,{variant:"overline",fontWeight:"bold",children:["Tables in ",t]}),b.jsx(vr,{}),b.jsxs(Rt,{sx:{mt:"2px",maxHeight:"600px",overflowY:"auto"},children:[u&&b.jsx(Xr,{text:"Fetching Tables..."}),s&&b.jsx(zr,{error:l,context:`${r} > ${e} > ${t}`}),a&&o.data.length===0&&b.jsx(Ue,{variant:"body2",children:"No Tables"}),a&&o.data.length>0&&b.jsx(Ah,{dense:!0,disablePadding:!0,children:o.data.map(d=>b.jsx(w5,{onClick:()=>n(d),children:b.jsx(ts,{primary:d})},d))})]})]})}const Hie=new lL(new $r);function zie({connection:e,onClick:t}){return b.jsxs(ui,{onClick:t,sx:{cursor:"pointer","&:hover":{backgroundColor:"action.hover"}},children:[b.jsx(vn,{children:b.jsxs(Rt,{sx:{display:"flex",alignItems:"center",gap:1},children:[b.jsx(Ue,{variant:"body2",children:e.name}),b.jsx(Oie,{sx:{fontSize:"1rem",color:"action.active",opacity:.7}})]})}),b.jsx(vn,{children:b.jsx(Ue,{variant:"body2",children:e.type})})]},e.name)}function $ie(){const{projectName:e}=Yo(),[t,n]=w.useState(null),{data:r,isSuccess:o,isError:a,error:s}=Zr({queryKey:["connections",e],queryFn:d=>Hie.listConnections(e,d)}),l=d=>{n(d)},u=()=>{n(null)};return b.jsxs(EL,{projectName:e,children:[b.jsx(_r,{variant:"outlined",sx:{width:"100%"},children:b.jsxs(Wo,{children:[b.jsx(Ue,{variant:"overline",fontWeight:"bold",children:"Database Connections"}),b.jsx(vr,{}),b.jsxs(Rt,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!o&&!a&&b.jsx(Ue,{variant:"body2",sx:{m:"auto"},children:"Fetching Connections..."}),o&&r.data.length>0&&b.jsx(Vp,{size:"small",children:b.jsxs(Gp,{children:[b.jsxs(ui,{children:[b.jsx(vn,{children:b.jsx(Ue,{variant:"subtitle2",fontWeight:"bold",children:"Connection Name"})}),b.jsx(vn,{children:b.jsx(Ue,{variant:"subtitle2",fontWeight:"bold",children:"Type"})})]}),r.data.map(d=>b.jsx(zie,{connection:d,onClick:()=>l(d.name)},d.name))]})}),o&&r.data.length===0&&b.jsx(Ue,{variant:"body2",children:"No Connections"}),a&&b.jsx(zr,{error:s,context:`${e} > Connections`})]})]})}),b.jsxs(Ku,{open:t!==null,onClose:u,maxWidth:"lg",fullWidth:!0,children:[b.jsxs(Zu,{children:["Connection Explorer: ",t,b.jsx(nr,{"aria-label":"close",onClick:u,sx:{position:"absolute",right:8,top:8},children:b.jsx(Rt,{sx:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"},children:"X"})})]}),b.jsx(Xu,{children:t&&b.jsx(Bie,{connectionName:t})})]})]})}const Vie=new die(new $r);function Gie(){const{projectName:e,packageName:t,versionId:n}=Yo(),[r,o]=Be.useState(!1),[a,s]=Be.useState(null),l=v=>{s(v),o(!0)},u=()=>{o(!1),s(null)},{data:d,isError:p,error:h,isSuccess:g}=Zr({queryKey:["databases",e,t,n],queryFn:v=>Vie.listDatabases(e,t,n,v)}),y=v=>v>=1024*1024*1024*1024?`${(v/(1024*1024*1024)).toFixed(2)} T`:v>=1024*1024*1024?`${(v/(1024*1024*1024)).toFixed(2)} G`:v>=1024*1024?`${(v/(1024*1024)).toFixed(2)} M`:`${(v/1024).toFixed(2)} K`;return b.jsxs(b.Fragment,{children:[b.jsx(_r,{variant:"outlined",sx:{width:"100%"},children:b.jsxs(Wo,{children:[b.jsx(Ue,{variant:"overline",fontWeight:"bold",children:"Embedded Databases"}),b.jsx(vr,{}),b.jsxs(Rt,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!g&&!p&&b.jsx(Xr,{text:"Fetching Databases..."}),p&&b.jsx(zr,{error:h,context:`${e} > ${t} > Databases`}),g&&d.data.length>0&&b.jsxs(Vp,{size:"small",children:[b.jsx(wy,{children:b.jsxs(ui,{children:[b.jsx(vn,{children:"Name"}),b.jsx(vn,{align:"right",children:"Rows"})]})}),b.jsx(Gp,{children:d.data.map(v=>b.jsxs(ui,{onClick:()=>l(v),sx:{cursor:"pointer"},children:[b.jsx(vn,{component:"th",scope:"row",children:v.path}),b.jsx(vn,{align:"right",children:y(v.info.rowCount)})]},v.path))})]}),g&&d.data.length===0&&b.jsx(Ue,{variant:"body2",sx:{m:"auto"},children:"No databases found"})]})]})}),b.jsxs(Ku,{open:r,onClose:u,maxWidth:"sm",fullWidth:!0,children:[b.jsx(Zu,{children:a?.path}),b.jsx(Xu,{children:a?.info?.columns&&b.jsx(jS,{children:b.jsxs(Vp,{size:"small",children:[b.jsx(wy,{children:b.jsxs(ui,{children:[b.jsx(vn,{children:"Column"}),b.jsx(vn,{children:"Type"})]})}),b.jsx(Gp,{children:a.info.columns.map(v=>b.jsxs(ui,{children:[b.jsx(vn,{component:"th",scope:"row",children:v.name}),b.jsx(vn,{children:v.type})]},v.name))})]})})})]})]})}function Qr(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 Fe(){return Fe=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},Fe.apply(null,arguments)}function qie(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:jy(t.components[n].defaultProps,r)}function Wie({props:e,name:t,defaultTheme:n,themeId:r}){let o=lne(n);return o=o[r]||o,qie({theme:o,name:t,props:e})}function Yie({props:e,name:t}){return Wie({props:e,name:t,defaultTheme:vC,themeId:EC})}function gT(e,t){return gT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},gT(e,t)}function xL(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,gT(e,t)}const JI={disabled:!1},Jy=Be.createContext(null);var Qie=function(e){return e.scrollTop},ip="unmounted",Nl="exited",Pl="entering",Cu="entered",yT="exiting",ss=function(e){xL(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var s=o,l=s&&!s.isMounting?r.enter:r.appear,u;return a.appearStatus=null,r.in?l?(u=Nl,a.appearStatus=Pl):u=Cu:r.unmountOnExit||r.mountOnEnter?u=ip:u=Nl,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(r,o){var a=r.in;return a&&o.status===ip?{status:Nl}: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!==Pl&&a!==Cu&&(o=Pl):(a===Pl||a===Cu)&&(o=yT)}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===Pl){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:zs.findDOMNode(this);a&&Qie(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Nl&&this.setState({status:ip})},n.performEnter=function(r){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:r,l=this.props.nodeRef?[s]:[zs.findDOMNode(this),s],u=l[0],d=l[1],p=this.getTimeouts(),h=s?p.appear:p.enter;if(!r&&!a||JI.disabled){this.safeSetState({status:Cu},function(){o.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:Pl},function(){o.props.onEntering(u,d),o.onTransitionEnd(h,function(){o.safeSetState({status:Cu},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||JI.disabled){this.safeSetState({status:Nl},function(){r.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:yT},function(){r.props.onExiting(s),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:Nl},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 l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=l[0],d=l[1];this.props.addEndListener(u,d)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===ip)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=Qr(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Be.createElement(Jy.Provider,{value:null},typeof a=="function"?a(r,s):Be.cloneElement(Be.Children.only(a),s))},t}(Be.Component);ss.contextType=Jy;ss.propTypes={};function gu(){}ss.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:gu,onEntering:gu,onEntered:gu,onExit:gu,onExiting:gu,onExited:gu};ss.UNMOUNTED=ip;ss.EXITED=Nl;ss.ENTERING=Pl;ss.ENTERED=Cu;ss.EXITING=yT;function Kie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LC(e,t){var n=function(o){return t&&w.isValidElement(o)?t(o):o},r=Object.create(null);return e&&w.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function Xie(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,l={};for(var u in t){if(r[u])for(s=0;s<r[u].length;s++){var d=r[u][s];l[r[u][s]]=n(d)}l[u]=n(u)}for(s=0;s<o.length;s++)l[o[s]]=n(o[s]);return l}function ql(e,t,n){return n[t]!=null?n[t]:e.props[t]}function Zie(e,t){return LC(e.children,function(n){return w.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:ql(n,"appear",e),enter:ql(n,"enter",e),exit:ql(n,"exit",e)})})}function Jie(e,t,n){var r=LC(e.children),o=Xie(t,r);return Object.keys(o).forEach(function(a){var s=o[a];if(w.isValidElement(s)){var l=a in t,u=a in r,d=t[a],p=w.isValidElement(d)&&!d.props.in;u&&(!l||p)?o[a]=w.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:ql(s,"exit",e),enter:ql(s,"enter",e)}):!u&&l&&!p?o[a]=w.cloneElement(s,{in:!1}):u&&l&&w.isValidElement(d)&&(o[a]=w.cloneElement(s,{onExited:n.bind(null,s),in:d.props.in,exit:ql(s,"exit",e),enter:ql(s,"enter",e)}))}}),o}var ese=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},tse={component:"div",childFactory:function(e){return e}},MC=function(e){xL(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var s=a.handleExited.bind(Kie(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,l=o.firstRender;return{children:l?Zie(r,s):Jie(r,a,s),firstRender:!1}},n.handleExited=function(r,o){var a=LC(this.props.children);r.key in a||(r.props.onExited&&r.props.onExited(o),this.mounted&&this.setState(function(s){var l=Fe({},s.children);return delete l[r.key],{children:l}}))},n.render=function(){var r=this.props,o=r.component,a=r.childFactory,s=Qr(r,["component","childFactory"]),l=this.state.contextValue,u=ese(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,o===null?Be.createElement(Jy.Provider,{value:l},u):Be.createElement(Jy.Provider,{value:l},Be.createElement(o,s,u))},t}(Be.Component);MC.propTypes={};MC.defaultProps=tse;const eO={};function TL(e,t){const n=w.useRef(eO);return n.current===eO&&(n.current=e(t)),n}const nse=[];function rse(e){w.useEffect(e,nse)}class FC{static create(){return new FC}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 SL(){const e=TL(FC.create).current;return rse(e.disposeEffect),e}function tO(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 ose(e){return il("MuiCollapse",e)}sl("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const ase=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return vc(r,ose,n)},ise=Fn("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]}})(TC(({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"}}]}))),sse=Fn("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),lse=Fn("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),lh=w.forwardRef(function(e,t){const n=yd({props:e,name:"MuiCollapse"}),{addEndListener:r,children:o,className:a,collapsedSize:s="0px",component:l,easing:u,in:d,onEnter:p,onEntered:h,onEntering:g,onExit:y,onExited:v,onExiting:T,orientation:_="vertical",style:x,timeout:D=m4.standard,TransitionComponent:C=ss,...R}=n,I={...n,orientation:_,collapsedSize:s},O=ase(I),F=Bne(),H=SL(),U=w.useRef(null),S=w.useRef(),M=typeof s=="number"?`${s}px`:s,$=_==="horizontal",z=$?"width":"height",q=w.useRef(null),Y=vi(t,q),B=re=>ce=>{if(re){const oe=q.current;ce===void 0?re(oe):re(oe,ce)}},K=()=>U.current?U.current[$?"clientWidth":"clientHeight"]:0,ae=B((re,ce)=>{U.current&&$&&(U.current.style.position="absolute"),re.style[z]=M,p&&p(re,ce)}),ne=B((re,ce)=>{const oe=K();U.current&&$&&(U.current.style.position="");const{duration:ve,easing:be}=tO({style:x,timeout:D,easing:u},{mode:"enter"});if(D==="auto"){const qe=F.transitions.getAutoHeightDuration(oe);re.style.transitionDuration=`${qe}ms`,S.current=qe}else re.style.transitionDuration=typeof ve=="string"?ve:`${ve}ms`;re.style[z]=`${oe}px`,re.style.transitionTimingFunction=be,g&&g(re,ce)}),N=B((re,ce)=>{re.style[z]="auto",h&&h(re,ce)}),Q=B(re=>{re.style[z]=`${K()}px`,y&&y(re)}),X=B(v),P=B(re=>{const ce=K(),{duration:oe,easing:ve}=tO({style:x,timeout:D,easing:u},{mode:"exit"});if(D==="auto"){const be=F.transitions.getAutoHeightDuration(ce);re.style.transitionDuration=`${be}ms`,S.current=be}else re.style.transitionDuration=typeof oe=="string"?oe:`${oe}ms`;re.style[z]=M,re.style.transitionTimingFunction=ve,T&&T(re)});return b.jsx(C,{in:d,onEnter:ae,onEntered:N,onEntering:ne,onExit:Q,onExited:X,onExiting:P,addEndListener:re=>{D==="auto"&&H.start(S.current||0,re),r&&r(q.current,re)},nodeRef:q,timeout:D==="auto"?null:D,...R,children:(re,{ownerState:ce,...oe})=>b.jsx(ise,{as:l,className:gr(O.root,a,{entered:O.entered,exited:!d&&M==="0px"&&O.hidden}[re]),style:{[$?"minWidth":"minHeight"]:M,...x},ref:Y,ownerState:{...I,state:re},...oe,children:b.jsx(sse,{ownerState:{...I,state:re},className:O.wrapper,ref:U,children:b.jsx(lse,{ownerState:{...I,state:re},className:O.wrapperInner,children:o})})})})});lh&&(lh.muiSupportAuto=!0);const cse=w.createContext(void 0);function use(){return w.useContext(cse)}function nO(e){try{return e.matches(":focus-visible")}catch{}return!1}class e0{static create(){return new e0}static use(){const t=TL(e0.create).current,[n,r]=w.useState(!1);return t.shouldMount=n,t.setShouldMount=r,w.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=fse(),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 dse(){return e0.use()}function fse(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function pse(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:s,in:l,onExited:u,timeout:d}=e,[p,h]=w.useState(!1),g=gr(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:s,height:s,top:-(s/2)+a,left:-(s/2)+o},v=gr(n.child,p&&n.childLeaving,r&&n.childPulsate);return!l&&!p&&h(!0),w.useEffect(()=>{if(!l&&u!=null){const T=setTimeout(u,d);return()=>{clearTimeout(T)}}},[u,l,d]),b.jsx("span",{className:g,style:y,children:b.jsx("span",{className:v})})}const fa=sl("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),bT=550,hse=80,mse=nl`
|
|
270
|
+
0% {
|
|
271
|
+
transform: scale(0);
|
|
272
|
+
opacity: 0.1;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
100% {
|
|
276
|
+
transform: scale(1);
|
|
277
|
+
opacity: 0.3;
|
|
278
|
+
}
|
|
279
|
+
`,gse=nl`
|
|
280
|
+
0% {
|
|
281
|
+
opacity: 1;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
100% {
|
|
285
|
+
opacity: 0;
|
|
286
|
+
}
|
|
287
|
+
`,yse=nl`
|
|
288
|
+
0% {
|
|
289
|
+
transform: scale(1);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
50% {
|
|
293
|
+
transform: scale(0.92);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
100% {
|
|
297
|
+
transform: scale(1);
|
|
298
|
+
}
|
|
299
|
+
`,bse=Fn("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),vse=Fn(pse,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
300
|
+
opacity: 0;
|
|
301
|
+
position: absolute;
|
|
302
|
+
|
|
303
|
+
&.${fa.rippleVisible} {
|
|
304
|
+
opacity: 0.3;
|
|
305
|
+
transform: scale(1);
|
|
306
|
+
animation-name: ${mse};
|
|
307
|
+
animation-duration: ${bT}ms;
|
|
308
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
&.${fa.ripplePulsate} {
|
|
312
|
+
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
& .${fa.child} {
|
|
316
|
+
opacity: 1;
|
|
317
|
+
display: block;
|
|
318
|
+
width: 100%;
|
|
319
|
+
height: 100%;
|
|
320
|
+
border-radius: 50%;
|
|
321
|
+
background-color: currentColor;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
& .${fa.childLeaving} {
|
|
325
|
+
opacity: 0;
|
|
326
|
+
animation-name: ${gse};
|
|
327
|
+
animation-duration: ${bT}ms;
|
|
328
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
& .${fa.childPulsate} {
|
|
332
|
+
position: absolute;
|
|
333
|
+
/* @noflip */
|
|
334
|
+
left: 0px;
|
|
335
|
+
top: 0;
|
|
336
|
+
animation-name: ${yse};
|
|
337
|
+
animation-duration: 2500ms;
|
|
338
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
339
|
+
animation-iteration-count: infinite;
|
|
340
|
+
animation-delay: 200ms;
|
|
341
|
+
}
|
|
342
|
+
`,Ese=w.forwardRef(function(e,t){const n=yd({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a,...s}=n,[l,u]=w.useState([]),d=w.useRef(0),p=w.useRef(null);w.useEffect(()=>{p.current&&(p.current(),p.current=null)},[l]);const h=w.useRef(!1),g=SL(),y=w.useRef(null),v=w.useRef(null),T=w.useCallback(C=>{const{pulsate:R,rippleX:I,rippleY:O,rippleSize:F,cb:H}=C;u(U=>[...U,b.jsx(vse,{classes:{ripple:gr(o.ripple,fa.ripple),rippleVisible:gr(o.rippleVisible,fa.rippleVisible),ripplePulsate:gr(o.ripplePulsate,fa.ripplePulsate),child:gr(o.child,fa.child),childLeaving:gr(o.childLeaving,fa.childLeaving),childPulsate:gr(o.childPulsate,fa.childPulsate)},timeout:bT,pulsate:R,rippleX:I,rippleY:O,rippleSize:F},d.current)]),d.current+=1,p.current=H},[o]),_=w.useCallback((C={},R={},I=()=>{})=>{const{pulsate:O=!1,center:F=r||R.pulsate,fakeElement:H=!1}=R;if(C?.type==="mousedown"&&h.current){h.current=!1;return}C?.type==="touchstart"&&(h.current=!0);const U=H?null:v.current,S=U?U.getBoundingClientRect():{width:0,height:0,left:0,top:0};let M,$,z;if(F||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)M=Math.round(S.width/2),$=Math.round(S.height/2);else{const{clientX:q,clientY:Y}=C.touches&&C.touches.length>0?C.touches[0]:C;M=Math.round(q-S.left),$=Math.round(Y-S.top)}if(F)z=Math.sqrt((2*S.width**2+S.height**2)/3),z%2===0&&(z+=1);else{const q=Math.max(Math.abs((U?U.clientWidth:0)-M),M)*2+2,Y=Math.max(Math.abs((U?U.clientHeight:0)-$),$)*2+2;z=Math.sqrt(q**2+Y**2)}C?.touches?y.current===null&&(y.current=()=>{T({pulsate:O,rippleX:M,rippleY:$,rippleSize:z,cb:I})},g.start(hse,()=>{y.current&&(y.current(),y.current=null)})):T({pulsate:O,rippleX:M,rippleY:$,rippleSize:z,cb:I})},[r,T,g]),x=w.useCallback(()=>{_({},{pulsate:!0})},[_]),D=w.useCallback((C,R)=>{if(g.clear(),C?.type==="touchend"&&y.current){y.current(),y.current=null,g.start(0,()=>{D(C,R)});return}y.current=null,u(I=>I.length>0?I.slice(1):I),p.current=R},[g]);return w.useImperativeHandle(t,()=>({pulsate:x,start:_,stop:D}),[x,_,D]),b.jsx(bse,{className:gr(fa.root,o.root,a),ref:v,...s,children:b.jsx(MC,{component:null,exit:!0,children:l})})});function xse(e){return il("MuiButtonBase",e)}const Tse=sl("MuiButtonBase",["root","disabled","focusVisible"]),Sse=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=vc({root:["root",t&&"disabled",n&&"focusVisible"]},xse,o);return n&&r&&(a.root+=` ${r}`),a},Cse=Fn("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"},[`&.${Tse.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),_se=w.forwardRef(function(e,t){const n=yd({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:a,className:s,component:l="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:p=!1,focusRipple:h=!1,focusVisibleClassName:g,LinkComponent:y="a",onBlur:v,onClick:T,onContextMenu:_,onDragLeave:x,onFocus:D,onFocusVisible:C,onKeyDown:R,onKeyUp:I,onMouseDown:O,onMouseLeave:F,onMouseUp:H,onTouchEnd:U,onTouchMove:S,onTouchStart:M,tabIndex:$=0,TouchRippleProps:z,touchRippleRef:q,type:Y,...B}=n,K=w.useRef(null),ae=dse(),ne=vi(ae.ref,q),[N,Q]=w.useState(!1);u&&N&&Q(!1),w.useImperativeHandle(r,()=>({focusVisible:()=>{Q(!0),K.current.focus()}}),[]);const X=ae.shouldMount&&!d&&!u;w.useEffect(()=>{N&&h&&!d&&ae.pulsate()},[d,h,N,ae]);const P=Wi(ae,"start",O,p),re=Wi(ae,"stop",_,p),ce=Wi(ae,"stop",x,p),oe=Wi(ae,"stop",H,p),ve=Wi(ae,"stop",ze=>{N&&ze.preventDefault(),F&&F(ze)},p),be=Wi(ae,"start",M,p),qe=Wi(ae,"stop",U,p),Me=Wi(ae,"stop",S,p),Oe=Wi(ae,"stop",ze=>{nO(ze.target)||Q(!1),v&&v(ze)},!1),Ke=mi(ze=>{K.current||(K.current=ze.currentTarget),nO(ze.target)&&(Q(!0),C&&C(ze)),D&&D(ze)}),at=()=>{const ze=K.current;return l&&l!=="button"&&!(ze.tagName==="A"&&ze.href)},Re=mi(ze=>{h&&!ze.repeat&&N&&ze.key===" "&&ae.stop(ze,()=>{ae.start(ze)}),ze.target===ze.currentTarget&&at()&&ze.key===" "&&ze.preventDefault(),R&&R(ze),ze.target===ze.currentTarget&&at()&&ze.key==="Enter"&&!u&&(ze.preventDefault(),T&&T(ze))}),yt=mi(ze=>{h&&ze.key===" "&&N&&!ze.defaultPrevented&&ae.stop(ze,()=>{ae.pulsate(ze)}),I&&I(ze),T&&ze.target===ze.currentTarget&&at()&&ze.key===" "&&!ze.defaultPrevented&&T(ze)});let _t=l;_t==="button"&&(B.href||B.to)&&(_t=y);const He={};_t==="button"?(He.type=Y===void 0?"button":Y,He.disabled=u):(!B.href&&!B.to&&(He.role="button"),u&&(He["aria-disabled"]=u));const mt=vi(t,K),ct={...n,centerRipple:o,component:l,disabled:u,disableRipple:d,disableTouchRipple:p,focusRipple:h,tabIndex:$,focusVisible:N},ft=Sse(ct);return b.jsxs(Cse,{as:_t,className:gr(ft.root,s),ownerState:ct,onBlur:Oe,onClick:T,onContextMenu:re,onFocus:Ke,onKeyDown:Re,onKeyUp:yt,onMouseDown:P,onMouseLeave:ve,onMouseUp:oe,onDragLeave:ce,onTouchEnd:qe,onTouchMove:Me,onTouchStart:be,ref:mt,tabIndex:u?-1:$,type:Y,...He,...B,children:[a,X?b.jsx(Ese,{ref:ne,center:o,...z}):null]})});function Wi(e,t,n,r=!1){return mi(o=>(n&&n(o),r||e[t](o),!0))}function Ase(e){return il("PrivateSwitchBase",e)}sl("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);function kse(e){return typeof e=="string"}function CL(e,t,n){return e===void 0||kse(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function si(e,t,n){return typeof e=="function"?e(t,n):e}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 rO(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 _L(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const y=gr(n?.className,a,o?.className,r?.className),v={...n?.style,...o?.style,...r?.style},T={...n,...o,...r};return y.length>0&&(T.className=y),Object.keys(v).length>0&&(T.style=v),{props:T,internalRef:void 0}}const s=la({...o,...r}),l=rO(r),u=rO(o),d=t(s),p=gr(d?.className,n?.className,a,o?.className,r?.className),h={...d?.style,...n?.style,...o?.style,...r?.style},g={...d,...n,...u,...l};return p.length>0&&(g.className=p),Object.keys(h).length>0&&(g.style=h),{props:g,internalRef:d.ref}}function vT(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,internalForwardedProps:s,shouldForwardComponentProp:l=!1,...u}=t,{component:d,slots:p={[e]:void 0},slotProps:h={[e]:void 0},...g}=a,y=p[e]||r,v=si(h[e],o),{props:{component:T,..._},internalRef:x}=_L({className:n,...u,externalForwardedProps:e==="root"?g:void 0,externalSlotProps:v}),D=vi(x,v?.ref,t.ref),C=e==="root"?T||d:T,R=CL(y,{...e==="root"&&!d&&!p[e]&&s,...e!=="root"&&!p[e]&&s,..._,...C&&!l&&{as:C},...C&&l&&{component:C},ref:D},o);return[y,R]}const wse=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,a={root:["root",n&&"checked",r&&"disabled",o&&`edge${ja(o)}`],input:["input"]};return vc(a,Ase,t)},Dse=Fn(_se,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),Rse=Fn("input",{name:"MuiSwitchBase",shouldForwardProp:xC})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Ise=w.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:u=!1,icon:d,id:p,inputProps:h,inputRef:g,name:y,onBlur:v,onChange:T,onFocus:_,readOnly:x,required:D=!1,tabIndex:C,type:R,value:I,slots:O={},slotProps:F={},...H}=e,[U,S]=Zne({controlled:r,default:!!a}),M=use(),$=re=>{_&&_(re),M&&M.onFocus&&M.onFocus(re)},z=re=>{v&&v(re),M&&M.onBlur&&M.onBlur(re)},q=re=>{if(re.nativeEvent.defaultPrevented)return;const ce=re.target.checked;S(ce),T&&T(re,ce)};let Y=s;M&&typeof Y>"u"&&(Y=M.disabled);const B=R==="checkbox"||R==="radio",K={...e,checked:U,disabled:Y,disableFocusRipple:l,edge:u},ae=wse(K),ne={slots:O,slotProps:{input:h,...F}},[N,Q]=vT("root",{ref:t,elementType:Dse,className:ae.root,shouldForwardComponentProp:!0,externalForwardedProps:{...ne,component:"span",...H},getSlotProps:re=>({...re,onFocus:ce=>{re.onFocus?.(ce),$(ce)},onBlur:ce=>{re.onBlur?.(ce),z(ce)}}),ownerState:K,additionalProps:{centerRipple:!0,focusRipple:!l,disabled:Y,role:void 0,tabIndex:null}}),[X,P]=vT("input",{ref:g,elementType:Rse,className:ae.input,externalForwardedProps:ne,getSlotProps:re=>({...re,onChange:ce=>{re.onChange?.(ce),q(ce)}}),ownerState:K,additionalProps:{autoFocus:n,checked:r,defaultChecked:a,disabled:Y,id:B?p:void 0,name:y,readOnly:x,required:D,tabIndex:C,type:R,...R==="checkbox"&&I===void 0?{}:{value:I}}});return b.jsxs(N,{...Q,children:[b.jsx(X,{...P}),U?o:d]})}),Ose=wn(b.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"})),Nse=wn(b.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"})),Pse=wn(b.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 Lse(e){return il("MuiCheckbox",e)}const PE=sl("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);function Mse(e){return typeof e.main=="string"}function Fse(e,t=[]){if(!Mse(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function oO(e=[]){return([,t])=>t&&Fse(t,e)}const Bse=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,a={root:["root",n&&"indeterminate",`color${ja(r)}`,`size${ja(o)}`]},s=vc(a,Lse,t);return{...t,...s}},jse=Fn(Ise,{shouldForwardProp:e=>xC(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${ja(n.size)}`],n.color!=="default"&&t[`color${ja(n.color)}`]]}})(TC(({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})`:eT(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(oO()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:eT(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(oO()).map(([t])=>({props:{color:t},style:{[`&.${PE.checked}, &.${PE.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${PE.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),Use=b.jsx(Nse,{}),Hse=b.jsx(Ose,{}),zse=b.jsx(Pse,{}),AL=w.forwardRef(function(e,t){const n=yd({props:e,name:"MuiCheckbox"}),{checkedIcon:r=Use,color:o="primary",icon:a=Hse,indeterminate:s=!1,indeterminateIcon:l=zse,inputProps:u,size:d="medium",disableRipple:p=!1,className:h,slots:g={},slotProps:y={},...v}=n,T=s?l:a,_=s?l:r,x={...n,disableRipple:p,color:o,indeterminate:s,size:d},D=Bse(x),C=y.input??u,[R,I]=vT("root",{ref:t,elementType:jse,className:gr(D.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:y,...v},ownerState:x,additionalProps:{type:"checkbox",icon:w.cloneElement(T,{fontSize:T.props.fontSize??d}),checkedIcon:w.cloneElement(_,{fontSize:_.props.fontSize??d}),disableRipple:p,slots:g,slotProps:{input:ere(typeof C=="function"?C(x):C,{"data-indeterminate":s})}}});return b.jsx(R,{...I,classes:D})});function Wl(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...a}=e,s=o?{}:si(n,r),{props:l,internalRef:u}=_L({...a,externalSlotProps:s}),d=vi(u,s?.ref,e.additionalProps?.ref);return CL(t,{...l,ref:d},r)}function kL(e){return Yie}const wL=w.createContext(null);function $se(e){const{value:t,children:n}=e;return b.jsx(wL.Provider,{value:t,children:t.wrapRoot({children:n,instance:t.instance})})}const xc=()=>{const e=w.useContext(wL);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(`
|
|
343
|
+
`));return e},Vse=({props:e})=>{const{instance:t}=xc(),{label:n,itemId:r}=e,[o,a]=w.useState(n),s=t.isItemBeingEdited(r);return w.useEffect(()=>{s||a(n)},[s,n]),{propsEnhancers:{labelInput:({externalEventHandlers:l,interactions:u})=>t.isItemEditable(r)?{value:o??"","data-element":"labelInput",onChange:d=>{l.onChange?.(d),a(d.target.value)},onKeyDown:d=>{if(l.onKeyDown?.(d),d.defaultMuiPrevented)return;const p=d.target;d.key==="Enter"&&p.value?u.handleSaveItemLabel(d,p.value):d.key==="Escape"&&u.handleCancelItemLabelEditing(d)},onBlur:d=>{l.onBlur?.(d),!d.defaultMuiPrevented&&d.target.value&&u.handleSaveItemLabel(d,d.target.value)},autoFocus:!0,type:"text"}:{}}}},xa=({instance:e,state:t,setState:n,params:r})=>{const o=w.useRef(t.editedItemId),a=h=>o.current===h,s=h=>{n(g=>Fe({},g,{editedItemId:h})),o.current=h},l=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(`
|
|
344
|
+
`));n(y=>{const v=y.items.itemMetaMap[h];return v.label!==g?Fe({},y,{items:Fe({},y.items,{itemMetaMap:Fe({},y.items.itemMetaMap,{[h]:Fe({},v,{label:g})})})}):y}),r.onItemLabelChange&&r.onItemLabelChange(h,g)};return{instance:{setEditedItemId:s,isItemBeingEdited:l,updateItemLabel:p,isItemEditable:d,isTreeViewEditable:u,isItemBeingEditedRef:a},publicAPI:{updateItemLabel:p}}};xa.itemPlugin=Vse;xa.getDefaultizedParams=({params:e,experimentalFeatures:t})=>{const n=t?.labelEditing;return Fe({},e,{isItemEditable:n?e.isItemEditable??!1:!1})};xa.getInitialState=()=>({editedItemId:null});xa.params={onItemLabelChange:!0,isItemEditable:!0};const ec=(e,t)=>e.getAvailablePlugins().has(t),DL=e=>Array.isArray(e)?e.length>0&&e.some(DL):!!e,Gse=({itemId:e,children:t})=>{const{instance:n,selection:{multiSelect:r},publicAPI:o}=xc(),a={expandable:DL(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)},l=p=>{a.disabled||(!a.focused&&!a.editing&&n.focusItem(p,e),r&&(p.shiftKey||p.ctrlKey||p.metaKey)?p.shiftKey?n.expandSelectionRange(p,e):n.selectItem({event:p,itemId:e,keepExistingSelection:!0}):n.selectItem({event:p,itemId:e,shouldBeSelected:!0}))},u=p=>{const h=p.nativeEvent.shiftKey;r&&h?n.expandSelectionRange(p,e):n.selectItem({event:p,itemId:e,keepExistingSelection:r,shouldBeSelected:p.target.checked})},d=()=>{ec(n,xa)&&n.isItemEditable(e)&&(n.isItemBeingEdited(e)?n.setEditedItemId(null):n.setEditedItemId(e))};return{interactions:{handleExpansion:s,handleSelection:l,handleCheckboxSelection:u,toggleItemEditing:d,handleSaveItemLabel:(p,h)=>{ec(n,xa)&&n.isItemBeingEditedRef(e)&&(n.updateItemLabel(e,h),d(),n.focusItem(p,e))},handleCancelItemLabelEditing:p=>{ec(n,xa)&&n.isItemBeingEditedRef(e)&&(d(),n.focusItem(p,e))}},status:a,publicAPI:o}},BC=w.createContext(()=>-1),RL=(e,t)=>{let n=t.length-1;for(;n>=0&&!e.isItemNavigable(t[n]);)n-=1;if(n!==-1)return t[n]},IL=(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:IL(e,n.parentId);let s=r[a],l=RL(e,e.getItemOrderedChildrenIds(s));for(;e.isItemExpanded(s)&&l!=null;)s=l,l=e.getItemOrderedChildrenIds(s).find(e.isItemNavigable);return s},ry=(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},OL=e=>{let t=null;for(;t==null||e.isItemExpanded(t);){const n=e.getItemOrderedChildrenIds(t),r=RL(e,n);if(r==null)return t;t=r}return t},ch=e=>e.getItemOrderedChildrenIds(null).find(e.isItemNavigable),NL=(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 l=r.parentId,u=o.parentId,d=s.indexOf(l)!==-1,p=a.indexOf(u)!==-1,h=!0,g=!0;for(;!p&&!d;)h&&(a.push(l),d=s.indexOf(l)!==-1,h=l!==null,!d&&h&&(l=e.getItemMeta(l).parentId)),g&&!d&&(s.push(u),p=a.indexOf(u)!==-1,g=u!==null,!p&&g&&(u=e.getItemMeta(u).parentId));const y=d?l:u,v=e.getItemOrderedChildrenIds(y),T=a[a.indexOf(y)-1],_=s[s.indexOf(y)-1];return v.indexOf(T)<v.indexOf(_)?[t,n]:[n,t]},qse=(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]=NL(e,t,n),s=[o];let l=o;for(;l!==a;)l=r(l),e.isItemDisabled(l)||s.push(l);return s},Wse=e=>{let t=ch(e);const n=[];for(;t!=null;)n.push(t),t=ry(e,t);return n},uh=(e,t)=>t!==e.closest('*[role="treeitem"]');let aO=0;const Yse=()=>(aO+=1,`mui-tree-view-${aO}`),jC=({id:e,treeId:t="",itemId:n})=>e??`${t}-${n}`,Qse=e=>{const{runItemPlugins:t,items:{onItemClick:n,disabledItemsFocusable:r,indentationAtItemLevel:o},selection:{disableSelection:a,checkboxSelection:s},expansion:{expansionTrigger:l},treeId:u,instance:d,publicAPI:p}=xc(),h=w.useContext(BC),{id:g,itemId:y,label:v,children:T,rootRef:_}=e,{rootRef:x,contentRef:D,propsEnhancers:C}=t(e),{interactions:R,status:I}=Gse({itemId:y,children:T}),O=w.useRef(null),F=w.useRef(null),H=vi(_,x,O),U=vi(D,F),S=w.useRef(null),M=jC({itemId:y,treeId:u,id:g}),$=d.canItemBeTabbed(y)?0:-1,z={rootRefObject:O,contentRefObject:F,interactions:R},q=X=>P=>{if(X.onFocus?.(P),P.defaultMuiPrevented)return;const re=!I.disabled||r;!I.focused&&re&&P.currentTarget===P.target&&d.focusItem(P,y)},Y=X=>P=>{if(X.onBlur?.(P),P.defaultMuiPrevented)return;const re=d.getItemDOMElement(y);I.editing||P.relatedTarget&&uh(P.relatedTarget,re)&&(P.target&&P.target?.dataset?.element==="labelInput"&&uh(P.target,re)||P.relatedTarget?.dataset?.element==="labelInput")||d.removeFocusedItem()},B=X=>P=>{X.onKeyDown?.(P),!(P.defaultMuiPrevented||P.target?.dataset?.element==="labelInput")&&d.handleItemKeyDown(P,y)},K=X=>P=>{X.onDoubleClick?.(P),!P.defaultMuiPrevented&&R.toggleItemEditing()},ae=X=>P=>{X.onClick?.(P),n?.(P,y),!(P.defaultMuiPrevented||S.current?.contains(P.target))&&(l==="content"&&R.handleExpansion(P),s||R.handleSelection(P))},ne=X=>P=>{X.onMouseDown?.(P),!P.defaultMuiPrevented&&(P.shiftKey||P.ctrlKey||P.metaKey||I.disabled)&&P.preventDefault()},N=X=>P=>{X.onChange?.(P),!P.defaultMuiPrevented&&(a||I.disabled||R.handleCheckboxSelection(P))},Q=X=>P=>{X.onClick?.(P),!P.defaultMuiPrevented&&l==="iconContainer"&&R.handleExpansion(P)};return{getRootProps:(X={})=>{const P=Fe({},la(e),la(X));let re;I.selected?re=!0:a||I.disabled?re=void 0:re=!1;const ce=Fe({},P,{ref:H,role:"treeitem",tabIndex:$,id:M,"aria-expanded":I.expandable?I.expanded:void 0,"aria-selected":re,"aria-disabled":I.disabled||void 0},X,{onFocus:q(P),onBlur:Y(P),onKeyDown:B(P)});o&&(ce.style={"--TreeView-itemDepth":typeof h=="function"?h(y):h});const oe=C.root?.(Fe({},z,{externalEventHandlers:P}))??{};return Fe({},ce,oe)},getContentProps:(X={})=>{const P=la(X),re=Fe({},P,X,{ref:U,onClick:ae(P),onMouseDown:ne(P),status:I});o&&(re.indentationAtItemLevel=!0);const ce=C.content?.(Fe({},z,{externalEventHandlers:P}))??{};return Fe({},re,ce)},getGroupTransitionProps:(X={})=>{const P=la(X),re=Fe({},P,{unmountOnExit:!0,component:"ul",role:"group",in:I.expanded,children:T},X);return o&&(re.indentationAtItemLevel=!0),re},getIconContainerProps:(X={})=>{const P=la(X);return Fe({},P,X,{onClick:Q(P)})},getCheckboxProps:(X={})=>{const P=la(X);return Fe({},P,{visible:s,ref:S,checked:I.selected,disabled:a||I.disabled,tabIndex:-1},X,{onChange:N(P)})},getLabelProps:(X={})=>{const P=Fe({},la(X)),re=Fe({},P,{children:v},X,{onDoubleClick:K(P)});return d.isTreeViewEditable&&(re.editable=I.editable),re},getLabelInputProps:(X={})=>{const P=la(X),re=C.labelInput?.({rootRefObject:O,contentRefObject:F,externalEventHandlers:P,interactions:R})??{};return Fe({},X,re)},getDragAndDropOverlayProps:(X={})=>{const P=la(X),re=C.dragAndDropOverlay?.(Fe({},z,{externalEventHandlers:P}))??{};return Fe({},X,re)},rootRef:H,status:I,publicAPI:p}},Kse=Qse;function PL(e){const{instance:t,items:{onItemClick:n},selection:{multiSelect:r,checkboxSelection:o,disableSelection:a},expansion:{expansionTrigger:s}}=xc(),l=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,v=C=>{if(!h){d||t.focusItem(C,e);const R=r&&(C.shiftKey||C.ctrlKey||C.metaKey);l&&!(R&&t.isItemExpanded(e))&&t.toggleItemExpansion(C,e)}},T=C=>{h||(!d&&!g&&t.focusItem(C,e),r&&(C.shiftKey||C.ctrlKey||C.metaKey)?C.shiftKey?t.expandSelectionRange(C,e):t.selectItem({event:C,itemId:e,keepExistingSelection:!0}):t.selectItem({event:C,itemId:e,shouldBeSelected:!0}))},_=C=>{if(a||h)return;const R=C.nativeEvent.shiftKey;r&&R?t.expandSelectionRange(C,e):t.selectItem({event:C,itemId:e,keepExistingSelection:r,shouldBeSelected:C.target.checked})},x=C=>{(C.shiftKey||C.ctrlKey||C.metaKey||h)&&C.preventDefault()},D=()=>{ec(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:v,handleSelection:T,handleCheckboxSelection:_,handleContentClick:n,preventSelection:x,expansionTrigger:s,toggleItemEditing:D,handleSaveItemLabel:(C,R)=>{ec(t,xa)&&t.isItemBeingEditedRef(e)&&(t.updateItemLabel(e,R),D(),t.focusItem(C,e))},handleCancelItemLabelEditing:C=>{ec(t,xa)&&t.isItemBeingEditedRef(e)&&(D(),t.focusItem(C,e))}}}const Xse=Fn("div",{name:"MuiTreeItem2DragAndDropOverlay",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>$g(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 Zse(e){return e.action==null?null:b.jsx(Xse,Fe({},e))}const Jse=Fn("input",{name:"MuiTreeItem2",slot:"LabelInput",overridesResolver:(e,t)=>t.labelInput})(({theme:e})=>Fe({},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}`}})),ele=["classes","className","displayIcon","expansionIcon","icon","label","itemId","onClick","onMouseDown","dragAndDropOverlayProps","labelInputProps"],LL=w.forwardRef(function(e,t){const{classes:n,className:r,displayIcon:o,expansionIcon:a,icon:s,label:l,itemId:u,onClick:d,onMouseDown:p,dragAndDropOverlayProps:h,labelInputProps:g}=e,y=Qr(e,ele),{disabled:v,expanded:T,selected:_,focused:x,editing:D,editable:C,disableSelection:R,checkboxSelection:I,handleExpansion:O,handleSelection:F,handleCheckboxSelection:H,handleContentClick:U,preventSelection:S,expansionTrigger:M,toggleItemEditing:$}=PL(u),z=s||a||o,q=w.useRef(null),Y=ae=>{S(ae),p&&p(ae)},B=ae=>{U?.(ae,u),!q.current?.contains(ae.target)&&(M==="content"&&O(ae),I||F(ae),d&&d(ae))},K=ae=>{ae.defaultMuiPrevented||$()};return b.jsxs("div",Fe({},y,{className:gr(n.root,r,T&&n.expanded,_&&n.selected,x&&n.focused,v&&n.disabled,D&&n.editing,C&&n.editable),onClick:B,onMouseDown:Y,ref:t,children:[b.jsx("div",{className:n.iconContainer,children:z}),I&&b.jsx(AL,{className:n.checkbox,checked:_,onChange:H,disabled:v||R,ref:q,tabIndex:-1}),D?b.jsx(Jse,Fe({},g,{className:n.labelInput})):b.jsx("div",Fe({className:n.label},C&&{onDoubleClick:K},{children:l})),h&&b.jsx(Zse,Fe({},h))]}))});function tle(e){return il("MuiTreeItem",e)}const Yi=sl("MuiTreeItem",["root","groupTransition","content","expanded","selected","focused","disabled","iconContainer","label","checkbox","labelInput","editable","editing","dragAndDropOverlay"]),ML=wn(b.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),FL=wn(b.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}));function UC(e){const{children:t,itemId:n}=e,{wrapItem:r,instance:o}=xc();return r({children:t,itemId:n,instance:o})}UC.propTypes={children:dI.node,itemId:dI.string.isRequired};const nle=["children","className","slots","slotProps","ContentComponent","ContentProps","itemId","id","label","onClick","onMouseDown","onFocus","onBlur","onKeyDown"],rle=["ownerState"],ole=["ownerState"],ale=["ownerState"],ile=kL(),sle=e=>{const{classes:t}=e;return vc({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"]},tle,t)},lle=Fn("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),cle=Fn(LL,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${Yi.iconContainer}`]:t.iconContainer},t.label&&{[`& .${Yi.label}`]:t.label}],shouldForwardProp:e=>Ks(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"}},[`&.${Yi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${Yi.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Yi.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)}},[`&.${Yi.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)}},[`& .${Yi.iconContainer}`]:{width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${Yi.label}`]:Fe({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1),[`& .${Yi.checkbox}`]:{padding:0},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}}]})),ule=Fn(lh,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>Ks(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]}),dle=w.forwardRef(function(e,t){const{icons:n,runItemPlugins:r,items:{disabledItemsFocusable:o,indentationAtItemLevel:a},selection:{disableSelection:s},expansion:{expansionTrigger:l},treeId:u,instance:d}=xc(),p=w.useContext(BC),h=ile({props:e,name:"MuiTreeItem"}),{children:g,className:y,slots:v,slotProps:T,ContentComponent:_=LL,ContentProps:x,itemId:D,id:C,label:R,onClick:I,onMouseDown:O,onBlur:F,onKeyDown:H}=h,U=Qr(h,nle),{expanded:S,focused:M,selected:$,disabled:z,editing:q,handleExpansion:Y,handleCancelItemLabelEditing:B,handleSaveItemLabel:K}=PL(D),{contentRef:ae,rootRef:ne,propsEnhancers:N}=r(h),Q=w.useRef(null),X=w.useRef(null),P=vi(t,ne,Q),re=vi(x?.ref,ae,X),ce={expandIcon:v?.expandIcon??n.slots.expandIcon??ML,collapseIcon:v?.collapseIcon??n.slots.collapseIcon??FL,endIcon:v?.endIcon??n.slots.endIcon,icon:v?.icon,groupTransition:v?.groupTransition},oe=xe=>Array.isArray(xe)?xe.length>0&&xe.some(oe):!!xe,ve=oe(g),be=Fe({},h,{expanded:S,focused:M,selected:$,disabled:z,indentationAtItemLevel:a}),qe=sle(be),Me=ce.groupTransition??void 0,Oe=Wl({elementType:Me,ownerState:{},externalSlotProps:T?.groupTransition,additionalProps:Fe({unmountOnExit:!0,in:S,component:"ul",role:"group"},a?{indentationAtItemLevel:!0}:{}),className:qe.groupTransition}),Ke=xe=>{l==="iconContainer"&&Y(xe)},at=S?ce.collapseIcon:ce.expandIcon,Re=Wl({elementType:at,ownerState:{},externalSlotProps:xe=>S?Fe({},si(n.slotProps.collapseIcon,xe),si(T?.collapseIcon,xe)):Fe({},si(n.slotProps.expandIcon,xe),si(T?.expandIcon,xe)),additionalProps:{onClick:Ke}}),yt=Qr(Re,rle),_t=ve&&at?b.jsx(at,Fe({},yt)):null,He=ve?void 0:ce.endIcon,mt=Wl({elementType:He,ownerState:{},externalSlotProps:xe=>ve?{}:Fe({},si(n.slotProps.endIcon,xe),si(T?.endIcon,xe))}),ct=Qr(mt,ole),ft=He?b.jsx(He,Fe({},ct)):null,ze=ce.icon,Le=Wl({elementType:ze,ownerState:{},externalSlotProps:T?.icon}),Xt=Qr(Le,ale),Bt=ze?b.jsx(ze,Fe({},Xt)):null;let At;$?At=!0:s||z?At=void 0:At=!1;function de(xe){!M&&(!z||o)&&xe.currentTarget===xe.target&&d.focusItem(xe,D)}function ye(xe){F?.(xe),!(q||xe.relatedTarget&&uh(xe.relatedTarget,Q.current)&&(xe.target&&xe.target?.dataset?.element==="labelInput"&&uh(xe.target,Q.current)||xe.relatedTarget?.dataset?.element==="labelInput"))&&d.removeFocusedItem()}const $e=xe=>{H?.(xe),xe.target?.dataset?.element!=="labelInput"&&d.handleItemKeyDown(xe,D)},Xe=jC({itemId:D,treeId:u,id:C}),Et=d.canItemBeTabbed(D)?0:-1,Ze={rootRefObject:Q,contentRefObject:X,interactions:{handleSaveItemLabel:K,handleCancelItemLabelEditing:B}},Zt=N.root?.(Fe({},Ze,{externalEventHandlers:la(U)}))??{},Vt=N.content?.(Fe({},Ze,{externalEventHandlers:la(x)}))??{},tn=N.dragAndDropOverlay?.(Fe({},Ze,{externalEventHandlers:{}}))??{},he=N.labelInput?.(Fe({},Ze,{externalEventHandlers:{}}))??{};return b.jsx(UC,{itemId:D,children:b.jsxs(lle,Fe({className:gr(qe.root,y),role:"treeitem","aria-expanded":ve?S:void 0,"aria-selected":At,"aria-disabled":z||void 0,id:Xe,tabIndex:Et},U,{ownerState:be,onFocus:de,onBlur:ye,onKeyDown:$e,ref:P,style:a?Fe({},U.style,{"--TreeView-itemDepth":typeof p=="function"?p(D):p}):U.style},Zt,{children:[b.jsx(cle,Fe({as:_,classes:{root:qe.content,expanded:qe.expanded,selected:qe.selected,focused:qe.focused,disabled:qe.disabled,editable:qe.editable,editing:qe.editing,iconContainer:qe.iconContainer,label:qe.label,labelInput:qe.labelInput,checkbox:qe.checkbox},label:R,itemId:D,onClick:I,onMouseDown:O,icon:Bt,expansionIcon:_t,displayIcon:ft,ownerState:be},x,Vt,tn.action==null?{}:{dragAndDropOverlayProps:tn},he.value==null?{}:{labelInputProps:he},{ref:re})),g&&b.jsx(ule,Fe({as:Me},Oe,{children:g}))]}))})});function fle(e){const{slots:t,slotProps:n,status:r}=e,o=xc(),a=Fe({},o.icons.slots,{expandIcon:o.icons.slots.expandIcon??ML,collapseIcon:o.icons.slots.collapseIcon??FL}),s=o.icons.slotProps;let l;t?.icon?l="icon":r.expandable?r.expanded?l="collapseIcon":l="expandIcon":l="endIcon";const u=t?.[l]??a[l],d=Wl({elementType:u,externalSlotProps:p=>Fe({},si(s[l],p),si(n?.[l],p)),ownerState:{}});return u?b.jsx(u,Fe({},d)):null}const ple=["visible"],hle=Fn("li",{name:"MuiTreeItem2",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),mle=Fn("div",{name:"MuiTreeItem2",slot:"Content",overridesResolver:(e,t)=>t.content,shouldForwardProp:e=>Ks(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)}}]})),gle=Fn("div",{name:"MuiTreeItem2",slot:"Label",overridesResolver:(e,t)=>t.label,shouldForwardProp:e=>Ks(e)&&e!=="editable"})(({theme:e})=>Fe({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative",overflow:"hidden"},e.typography.body1,{variants:[{props:({editable:t})=>t,style:{paddingLeft:"2px"}}]})),yle=Fn("div",{name:"MuiTreeItem2",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})({width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}});Fn(lh,{name:"MuiTreeItem2",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>Ks(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]});Fn(w.forwardRef((e,t)=>{const{visible:n}=e,r=Qr(e,ple);return n?b.jsx(AL,Fe({},r,{ref:t})):null}),{name:"MuiTreeItem2",slot:"Checkbox",overridesResolver:(e,t)=>t.checkbox})({padding:0});function ble(e){return il("MuiRichTreeView",e)}sl("MuiRichTreeView",["root"]);const vle=(e,t)=>{const n=w.useRef({}),[r,o]=w.useState(()=>{const a={};return e.forEach(s=>{s.models&&Object.entries(s.models).forEach(([l,u])=>{n.current[l]={isControlled:t[l]!==void 0,getDefaultValue:u.getDefaultValue},a[l]=u.getDefaultValue(t)})}),a});return Object.fromEntries(Object.entries(n.current).map(([a,s])=>{const l=t[a]??r[a];return[a,{value:l,setControlledValue:u=>{s.isControlled||o(d=>Fe({},d,{[a]:u}))}}]}))};class Ele{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 l=o[s];r.highPriority.has(l)&&l.apply(this,n)}for(let s=0;s<a.length;s+=1){const l=a[s];r.regular.has(l)&&l.apply(this,n)}}once(t,n){const r=this;this.on(t,function o(...a){r.removeListener(t,o),n.apply(r,a)})}}const xle=e=>e.isPropagationStopped!==void 0,BL=()=>{const[e]=w.useState(()=>new Ele),t=w.useCallback((...r)=>{const[o,a,s={}]=r;s.defaultMuiPrevented=!1,!(xle(s)&&s.isPropagationStopped())&&e.emit(o,a,s)},[e]),n=w.useCallback((r,o)=>(e.on(r,o),()=>{e.removeListener(r,o)}),[e]);return{instance:{$$publishEvent:t,$$subscribeEvent:n}}};BL.params={};const jL=({plugins:e})=>{const t=new Set(e);return{instance:{getAvailablePlugins:()=>t}}};jL.params={};const HC=({params:e,state:t,setState:n})=>{w.useEffect(()=>{n(o=>o.id.treeId===e.id&&o.id.treeId!==void 0?o:Fe({},o,{id:Fe({},o.id,{treeId:e.id??Yse()})}))},[n,e.id]);const r=e.id??t.id.treeId;return{getRootProps:()=>({id:r}),contextValue:{treeId:r}}};HC.params={id:!0};HC.getInitialState=({id:e})=>({id:{treeId:e??void 0}});const Tle=[BL,jL,HC],Sle=["slots","slotProps","apiRef","experimentalFeatures"],Cle=e=>{let{props:{slots:t,slotProps:n,apiRef:r,experimentalFeatures:o},plugins:a}=e,s=Qr(e.props,Sle);const l={};a.forEach(g=>{Object.assign(l,g.params)});const u={},d={};Object.keys(s).forEach(g=>{const y=s[g];l[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}},_le=({plugins:e,instance:t,publicAPI:n,rootRef:r})=>({runItemPlugins:o=>{let a=null,s=null;const l=[],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&&(l.push(g.propsEnhancers),Object.keys(g.propsEnhancers).forEach(y=>{u[y]=!0}))});const d=h=>g=>{const y={};return l.forEach(v=>{const T=v[h];T!=null&&Object.assign(y,T(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 l=e.length-1;l>=0;l-=1){const u=e[l];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 l=e[s];l.wrapRoot&&(a=l.wrapRoot({children:a,instance:t}))}return a},instance:t,rootRef:r,publicAPI:n});function Ale(e){const t=w.useRef({});return e?(e.current==null&&(e.current={}),e.current):t.current}const kle=({plugins:e,rootRef:t,props:n})=>{const r=[...Tle,...e],{pluginParams:o,forwardedProps:a,apiRef:s,experimentalFeatures:l,slots:u,slotProps:d}=Cle({plugins:r,props:n}),p=vle(r,o),h=w.useRef({}).current,g=Ale(s),y=w.useRef(null),v=vi(y,t),T=_le({plugins:r,instance:h,publicAPI:g,rootRef:y}),[_,x]=w.useState(()=>{const R={};return r.forEach(I=>{I.getInitialState&&Object.assign(R,I.getInitialState(o))}),R}),D=[],C=R=>{const I=R({instance:h,params:o,slots:u,slotProps:d,experimentalFeatures:l,state:_,setState:x,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(T,I.contextValue)};return r.forEach(C),{getRootProps:(R={})=>{const I=Fe({role:"tree"},a,R,{ref:v});return D.forEach(O=>{Object.assign(I,O(R))}),I},rootRef:v,contextValue:T,instance:h}},wle=(e,t,n)=>{e.$$publishEvent(t,n)},Ru="__TREE_VIEW_ROOT_PARENT_ID__",Dle=e=>{const t={};return e.forEach((n,r)=>{t[n]=r}),t},Rle=["children"],UL=({items:e,isItemDisabled:t,getItemLabel:n,getItemId:r})=>{const o={},a={},s={[Ru]:[]},l=(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(`
|
|
345
|
+
`));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(`
|
|
346
|
+
`));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(`
|
|
347
|
+
`));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 v=h??Ru;s[v]||(s[v]=[]),s[v].push(g),d.children?.forEach(T=>l(T,p+1,g))};e.forEach(d=>l(d,0,null));const u={};return Object.keys(s).forEach(d=>{u[d]=Dle(s[d])}),{itemMetaMap:o,itemMap:a,itemOrderedChildrenIds:s,itemChildrenIndexes:u}},zh=({instance:e,params:t,state:n,setState:r,experimentalFeatures:o})=>{const a=w.useCallback(_=>n.items.itemMetaMap[_],[n.items.itemMetaMap]),s=w.useCallback(_=>n.items.itemMap[_],[n.items.itemMap]),l=w.useCallback(()=>{const _=x=>{const D=n.items.itemMap[x],C=Qr(D,Rle),R=n.items.itemOrderedChildrenIds[x];return R&&(C.children=R.map(_)),C};return n.items.itemOrderedChildrenIds[Ru].map(_)},[n.items.itemMap,n.items.itemOrderedChildrenIds]),u=w.useCallback(_=>{if(_==null)return!1;let x=e.getItemMeta(_);if(!x)return!1;if(x.disabled)return!0;for(;x.parentId!=null;)if(x=e.getItemMeta(x.parentId),x.disabled)return!0;return!1},[e]),d=w.useCallback(_=>{const x=e.getItemMeta(_).parentId??Ru;return n.items.itemChildrenIndexes[x][_]},[e,n.items.itemChildrenIndexes]),p=w.useCallback(_=>n.items.itemOrderedChildrenIds[_??Ru]??[],[n.items.itemOrderedChildrenIds]),h=_=>{const x=e.getItemMeta(_);return x==null?null:document.getElementById(jC({treeId:n.id.treeId,itemId:_,id:x.idAttribute}))},g=_=>t.disabledItemsFocusable?!0:!e.isItemDisabled(_),y=w.useRef(!1),v=w.useCallback(()=>{y.current=!0},[]),T=w.useCallback(()=>y.current,[]);return w.useEffect(()=>{e.areItemUpdatesPrevented()||r(_=>{const x=UL({items:t.items,isItemDisabled:t.isItemDisabled,getItemId:t.getItemId,getItemLabel:t.getItemLabel});return Object.values(_.items.itemMetaMap).forEach(D=>{x.itemMetaMap[D.id]||wle(e,"removeItem",{id:D.id})}),Fe({},_,{items:x})})},[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:l,getItemOrderedChildrenIds:p},instance:{getItemMeta:a,getItem:s,getItemTree:l,getItemsToRender:()=>{const _=x=>{const D=n.items.itemMetaMap[x];return{label:D.label,itemId:D.id,id:D.idAttribute,children:n.items.itemOrderedChildrenIds[x]?.map(_)}};return n.items.itemOrderedChildrenIds[Ru].map(_)},getItemIndex:d,getItemDOMElement:h,getItemOrderedChildrenIds:p,isItemDisabled:u,isItemNavigable:g,preventItemUpdates:v,areItemUpdatesPrevented:T},contextValue:{items:{onItemClick:t.onItemClick,disabledItemsFocusable:t.disabledItemsFocusable,indentationAtItemLevel:o.indentationAtItemLevel??!1}}}};zh.getInitialState=e=>({items:UL({items:e.items,isItemDisabled:e.isItemDisabled,getItemId:e.getItemId,getItemLabel:e.getItemLabel})});zh.getDefaultizedParams=({params:e})=>Fe({},e,{disabledItemsFocusable:e.disabledItemsFocusable??!1,itemChildrenIndentation:e.itemChildrenIndentation??"12px"});zh.wrapRoot=({children:e,instance:t})=>b.jsx(BC.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 yb=({instance:e,params:t,models:n})=>{const r=w.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=w.useCallback(h=>r.has(h),[r]),s=w.useCallback(h=>!!e.getItemMeta(h)?.expandable,[e]),l=mi((h,g)=>{const y=e.isItemExpanded(g);e.setItemExpansion(h,g,!y)}),u=mi((h,g,y)=>{if(e.isItemExpanded(g)===y)return;let v;y?v=[g].concat(n.expandedItems.value):v=n.expandedItems.value.filter(T=>T!==g),t.onItemExpansionToggle&&t.onItemExpansionToggle(h,g,y),o(h,v)}),d=(h,g)=>{const y=e.getItemMeta(g),v=e.getItemOrderedChildrenIds(y.parentId).filter(_=>e.isItemExpandable(_)&&!e.isItemExpanded(_)),T=n.expandedItems.value.concat(v);v.length>0&&(t.onItemExpansionToggle&&v.forEach(_=>{t.onItemExpansionToggle(h,_,!0)}),o(h,T))},p=w.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:l,expandAllSiblings:d},contextValue:{expansion:{expansionTrigger:p}}}};yb.models={expandedItems:{getDefaultValue:e=>e.defaultExpandedItems}};const Ile=[];yb.getDefaultizedParams=({params:e})=>Fe({},e,{defaultExpandedItems:e.defaultExpandedItems??Ile});yb.params={expandedItems:!0,defaultExpandedItems:!0,onExpandedItemsChange:!0,onItemExpansionToggle:!0,expansionTrigger:!0};const oy=e=>Array.isArray(e)?e:e!=null?[e]:[],LE=e=>{const t={};return e.forEach(n=>{t[n]=!0}),t},bb=({instance:e,params:t,models:n})=>{const r=w.useRef(null),o=w.useRef({}),a=w.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(v=>!e.isItemSelected(v)),y=n.selectedItems.value.filter(v=>!h.includes(v));g.forEach(v=>{t.onItemSelectionToggle(p,v,!0)}),y.forEach(v=>{t.onItemSelectionToggle(p,v,!1)})}else h!==n.selectedItems.value&&(n.selectedItems.value!=null&&t.onItemSelectionToggle(p,n.selectedItems.value,!1),h!=null&&t.onItemSelectionToggle(p,h,!0));t.onSelectedItemsChange&&t.onSelectedItemsChange(p,h),n.selectedItems.setControlledValue(h)},l=p=>a.has(p),u=({event:p,itemId:h,keepExistingSelection:g=!1,shouldBeSelected:y})=>{if(t.disableSelection)return;let v;if(g){const T=oy(n.selectedItems.value),_=e.isItemSelected(h);_&&(y===!1||y==null)?v=T.filter(x=>x!==h):!_&&(y===!0||y==null)?v=[h].concat(T):v=T}else y===!1||y==null&&e.isItemSelected(h)?v=t.multiSelect?[]:null:v=t.multiSelect?[h]:h;s(p,v),r.current=h,o.current={}},d=(p,[h,g])=>{if(t.disableSelection||!t.multiSelect)return;let y=oy(n.selectedItems.value).slice();Object.keys(o.current).length>0&&(y=y.filter(x=>!o.current[x]));const v=LE(y),T=qse(e,h,g),_=T.filter(x=>!v[x]);y=y.concat(_),s(p,y),o.current=LE(T)};return{getRootProps:()=>({"aria-multiselectable":t.multiSelect}),publicAPI:{selectItem:u},instance:{isItemSelected:l,selectItem:u,selectAllNavigableItems:p=>{if(t.disableSelection||!t.multiSelect)return;const h=Wse(e);s(p,h),o.current=LE(h)},expandSelectionRange:(p,h)=>{if(r.current!=null){const[g,y]=NL(e,h,r.current);d(p,[g,y])}},selectRangeFromStartToItem:(p,h)=>{d(p,[ch(e),h])},selectRangeFromItemToEnd:(p,h)=>{d(p,[h,OL(e)])},selectItemFromArrowNavigation:(p,h,g)=>{if(t.disableSelection||!t.multiSelect)return;let y=oy(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(v=>v!==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}}}};bb.models={selectedItems:{getDefaultValue:e=>e.defaultSelectedItems}};const Ole=[];bb.getDefaultizedParams=({params:e})=>Fe({},e,{disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,checkboxSelection:e.checkboxSelection??!1,defaultSelectedItems:e.defaultSelectedItems??(e.multiSelect?Ole:null)});bb.params={disableSelection:!0,multiSelect:!0,checkboxSelection:!0,defaultSelectedItems:!0,selectedItems:!0,onSelectedItemsChange:!0,onItemSelectionToggle:!0};const iO=1e3;class Nle{constructor(t=iO){this.timeouts=new Map,this.cleanupTimeout=iO,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 Ple{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 Lle{}function Mle(e){let t=0;return function(n,r,o){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new Ple:new Nle);const[a]=w.useState(new Lle),s=w.useRef(null),l=w.useRef(void 0);l.current=o;const u=w.useRef(null);if(!s.current&&l.current){const d=(p,h)=>{h.defaultMuiPrevented||l.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!l.current&&s.current&&(s.current(),s.current=null,u.current&&(e.registry.unregister(u.current),u.current=null));w.useEffect(()=>{if(!s.current&&l.current){const d=(p,h)=>{h.defaultMuiPrevented||l.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 Fle={registry:null},Ble=Mle(Fle),HL=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?HL(t.shadowRoot):t:null},jle=(e,t)=>{let n=oy(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=ch(e)),n},zC=({instance:e,params:t,state:n,setState:r,models:o,rootRef:a})=>{const s=jle(e,o.selectedItems.value),l=mi(_=>{const x=typeof _=="function"?_(n.focusedItemId):_;n.focusedItemId!==x&&r(D=>Fe({},D,{focusedItemId:x}))}),u=w.useCallback(()=>!!a.current&&a.current.contains(HL(Xne(a.current))),[a]),d=w.useCallback(_=>n.focusedItemId===_&&u(),[n.focusedItemId,u]),p=_=>{const x=e.getItemMeta(_);return x&&(x.parentId==null||e.isItemExpanded(x.parentId))},h=(_,x)=>{const D=e.getItemDOMElement(x);D&&D.focus(),l(x),t.onItemFocus&&t.onItemFocus(_,x)},g=mi((_,x)=>{p(x)&&h(_,x)}),y=mi(()=>{if(n.focusedItemId!=null){if(e.getItemMeta(n.focusedItemId)){const _=e.getItemDOMElement(n.focusedItemId);_&&_.blur()}l(null)}}),v=_=>_===s;Ble(e,"removeItem",({id:_})=>{n.focusedItemId===_&&h(null,s)});const T=_=>x=>{_.onFocus?.(x),!x.defaultMuiPrevented&&x.target===x.currentTarget&&h(x,s)};return{getRootProps:_=>({onFocus:T(_)}),publicAPI:{focusItem:g},instance:{isItemFocused:d,canItemBeTabbed:v,focusItem:g,removeFocusedItem:y}}};zC.getInitialState=()=>({focusedItemId:null});zC.params={onItemFocus:!0};function Ule(e){return!!e&&e.length===1&&!!e.match(/\S/)}const zL=({instance:e,params:t,state:n})=>{const r=Zte(),o=w.useRef({}),a=mi(d=>{o.current=d(o.current)});w.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=_=>{const x=ry(e,_);return x===null?ch(e):x};let y=null,v=g(d);const T={};for(;y==null&&!T[v];)o.current[v]===h?y=v:(T[v]=!0,v=g(v));return y},l=d=>!t.disableSelection&&!e.isItemDisabled(d),u=d=>!e.isItemDisabled(d)&&e.isItemExpandable(d);return{instance:{updateFirstCharMap:a,handleItemKeyDown:(d,p)=>{if(d.defaultMuiPrevented||d.altKey||uh(d.target,d.currentTarget))return;const h=d.ctrlKey||d.metaKey,g=d.key;switch(!0){case(g===" "&&l(p)):{d.preventDefault(),t.multiSelect&&d.shiftKey?e.expandSelectionRange(d,p):e.selectItem({event:d,itemId:p,keepExistingSelection:t.multiSelect,shouldBeSelected:t.multiSelect?void 0:!0});break}case g==="Enter":{ec(e,xa)&&e.isItemEditable(p)&&!e.isItemBeingEdited(p)?e.setEditedItemId(p):u(p)?(e.toggleItemExpansion(d,p),d.preventDefault()):l(p)&&(t.multiSelect?(d.preventDefault(),e.selectItem({event:d,itemId:p,keepExistingSelection:!0})):e.isItemSelected(p)||(e.selectItem({event:d,itemId:p}),d.preventDefault()));break}case g==="ArrowDown":{const y=ry(e,p);y&&(d.preventDefault(),e.focusItem(d,y),t.multiSelect&&d.shiftKey&&l(y)&&e.selectItemFromArrowNavigation(d,p,y));break}case g==="ArrowUp":{const y=IL(e,p);y&&(d.preventDefault(),e.focusItem(d,y),t.multiSelect&&d.shiftKey&&l(y)&&e.selectItemFromArrowNavigation(d,p,y));break}case(g==="ArrowRight"&&!r||g==="ArrowLeft"&&r):{if(h)return;if(e.isItemExpanded(p)){const y=ry(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":{l(p)&&t.multiSelect&&h&&d.shiftKey?e.selectRangeFromStartToItem(d,p):e.focusItem(d,ch(e)),d.preventDefault();break}case g==="End":{l(p)&&t.multiSelect&&h&&d.shiftKey?e.selectRangeFromItemToEnd(d,p):e.focusItem(d,OL(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&&Ule(g)):{const y=s(p,g);y!=null&&(e.focusItem(d,y),d.preventDefault());break}}}}}};zL.params={};const $L=({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}}}});$L.params={};const Hle=[zh,yb,bb,zC,zL,$L,xa],zle=["ownerState"];function $le({slots:e,slotProps:t,label:n,id:r,itemId:o,itemsToRender:a}){const s=e?.item??dle,l=Wl({elementType:s,externalSlotProps:t?.item,additionalProps:{itemId:o,id:r,label:n},ownerState:{itemId:o,label:n}}),u=Qr(l,zle),d=w.useMemo(()=>a?b.jsx(VL,{itemsToRender:a,slots:e,slotProps:t}):null,[a,e,t]);return b.jsx(s,Fe({},u,{children:d}))}function VL(e){const{itemsToRender:t,slots:n,slotProps:r}=e;return b.jsx(w.Fragment,{children:t.map(o=>b.jsx($le,{slots:n,slotProps:r,label:o.label,id:o.id,itemId:o.itemId,itemsToRender:o.children},o.itemId))})}const Vle=kL(),Gle=e=>{const{classes:t}=e;return vc({root:["root"]},ble,t)},qle=Fn("ul",{name:"MuiRichTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"}),Wle=w.forwardRef(function(e,t){const n=Vle({props:e,name:"MuiRichTreeView"}),{getRootProps:r,contextValue:o,instance:a}=kle({plugins:Hle,rootRef:t,props:n}),{slots:s,slotProps:l}=n,u=Gle(n),d=s?.root??qle,p=Wl({elementType:d,externalSlotProps:l?.root,className:u.root,getSlotProps:r,ownerState:n});return b.jsx($se,{value:o,children:b.jsx(d,Fe({},p,{children:b.jsx(VL,{slots:s,slotProps:l,itemsToRender:a.getItemsToRender()})}))})}),Yle=wn(b.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"})),Qle=wn([b.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"),b.jsx("path",{d:"M14 17H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"},"1")]),Kle=wn(b.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"})),Xle=wn(b.jsx("path",{d:"M15 4v2h3v12h-3v2h5V4zM4 20h5v-2H6V6h3V4H4z"}));function GL({items:e,defaultExpandedItems:t,navigate:n}){return b.jsx(Wle,{items:nce(e,n),defaultExpandedItems:t,slots:{item:tce}})}const Zle=kee(lh);function Jle(e){const t=pee({to:{opacity:e.in?1:0,transform:`translate3d(0,${e.in?0:20}px,0)`}});return b.jsx(Zle,{style:t,...e})}function ece({item:e,...t}){const n=b.jsxs(gle,{...t,sx:{display:"flex",alignItems:"center",color:e.error?"error.main":"grey.600"},children:[e.fileType==="directory"&&b.jsx(Yle,{})||e.fileType==="notebook"&&b.jsx(Qle,{})||e.fileType==="model"&&b.jsx(Xle,{})||e.fileType=="database"&&b.jsx(Kle,{})||b.jsx(bL,{}),b.jsx(Ue,{variant:"body2",sx:{marginLeft:"5px"},color:e.error?"error.main":e.link?"primary.main":"grey.600",children:e.label})]});return e.error?b.jsx(ir,{title:e.error,placement:"right",children:n}):n}const tce=w.forwardRef(function(e,t){const{id:n,itemId:r,label:o,children:a,disabled:s,...l}=e,{getRootProps:u,getContentProps:d,getLabelProps:p,getIconContainerProps:h,getGroupTransitionProps:g,status:y,publicAPI:v}=Kse({id:n,itemId:r,children:a,label:o,disabled:s,rootRef:t}),T=v.getItem(r);return y.selected=!1,y.focused=!1,b.jsx(UC,{itemId:r,children:b.jsxs(hle,{...u(l),children:[b.jsxs(mle,{...d(),...T.link&&{onClick:_=>T.link(_)},sx:{pointerEvents:!T.selectable&&"none"},children:[b.jsx(yle,{...h(),children:b.jsx(fle,{status:y})}),b.jsx(ece,{...p({item:T})})]}),a&&b.jsx(Jle,{...g()})]})})});function nce(e,t){const n=new Map;return e.map(r=>{let o=n;const a=r.path.split("/");a.forEach((s,l)=>{l===a.length-1?o.set(s,r):(o.has(s)||o.set(s,new Map),o=o.get(s))})}),qL(n,"",t)}function qL(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 l=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 l?l.error:void 0})}else t+=`${a}/`,r.push({id:t,label:a,fileType:"directory",selectable:!0,link:void 0,children:qL(o,t,n)})}),r}const rce=new gb(new $r),oce=["notebooks/","models/"];function ace({navigate:e}){const{projectName:t,packageName:n,versionId:r}=Yo(),{data:o,isError:a,error:s,isSuccess:l}=Zr({queryKey:["models",t,n,r],queryFn:u=>rce.listModels(t,n,r,u)});return b.jsx(_r,{variant:"outlined",sx:{width:"100%"},children:b.jsxs(Wo,{children:[b.jsx(Ue,{variant:"overline",fontWeight:"bold",children:"Semantic Models"}),b.jsx(vr,{}),b.jsxs(Rt,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!l&&!a&&b.jsx(Xr,{text:"Fetching Models..."}),a&&b.jsx(zr,{error:s,context:`${t} > ${n} > Models`}),l&&o.data.length>0&&b.jsx(GL,{items:o.data.sort((u,d)=>u.path.localeCompare(d.path)),navigate:e,defaultExpandedItems:oce}),l&&o.data.length===0&&b.jsx(Ue,{variant:"body2",children:"No models found"})]})]})})}const ice=new cL(new $r),sce=["notebooks/"];function lce({navigate:e}){const{projectName:t,packageName:n,versionId:r}=Yo(),{data:o,isError:a,error:s,isSuccess:l}=Zr({queryKey:["notebooks",t,n,r],queryFn:u=>ice.listNotebooks(t,n,r,u)});return b.jsx(_r,{variant:"outlined",sx:{width:"100%"},children:b.jsxs(Wo,{children:[b.jsx(Ue,{variant:"overline",fontWeight:"bold",children:"Notebooks"}),b.jsx(vr,{}),b.jsxs(Rt,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!l&&!a&&b.jsx(Xr,{text:"Fetching Notebooks..."}),a&&b.jsx(zr,{error:s,context:`${t} > ${n} > Notebooks`}),l&&o.data.length>0&&b.jsx(GL,{items:o.data.sort((u,d)=>u.path.localeCompare(d.path)),defaultExpandedItems:sce,navigate:e}),l&&o.data.length===0&&b.jsx(Ue,{variant:"body2",children:"No notebooks found"})]})]})})}const cce=new Eie(new $r);function uce(){const{projectName:e,packageName:t,versionId:n}=Yo(),{data:r,isError:o,isLoading:a,error:s}=Zr({queryKey:["schedules",e,t,n],queryFn:l=>cce.listSchedules(e,t,n,l)});return a?b.jsx(Xr,{text:"Fetching Schedules..."}):o?b.jsx(zr,{error:s,context:`${e} > ${t} > Schedules`}):r.data.length?b.jsx(_r,{variant:"outlined",sx:{padding:"10px",width:"100%"},children:b.jsxs(Wo,{children:[b.jsx(Ue,{variant:"overline",fontWeight:"bold",children:"Scheduler"}),b.jsx(vr,{}),b.jsx(Rt,{sx:{mt:"10px",maxHeight:"200px",overflowY:"auto"},children:b.jsx(jS,{component:es,children:b.jsxs(Vp,{sx:{minWidth:300},size:"small",children:[b.jsx(wy,{children:b.jsxs(ui,{children:[b.jsx(vn,{align:"left",children:"Resource"}),b.jsx(vn,{align:"left",children:"Schedule"}),b.jsx(vn,{align:"left",children:"Action"}),b.jsx(vn,{align:"left",children:"Connection"}),b.jsx(vn,{align:"left",children:"Last Run"}),b.jsx(vn,{align:"left",children:"Status"})]})}),b.jsx(Gp,{children:r.data.map(l=>b.jsxs(ui,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[b.jsx(vn,{align:"left",children:l.resource}),b.jsx(vn,{align:"left",children:l.schedule}),b.jsx(vn,{align:"left",children:l.action}),b.jsx(vn,{align:"left",children:l.connection}),b.jsx(vn,{align:"left",children:l.lastRunTime?new Date(l.lastRunTime).toLocaleString():"n/a"}),b.jsx(vn,{align:"left",children:l.lastRunStatus})]},l.resource))})]})})})]})}):null}const dce="README.malloynb";function fce({navigate:e}){return e||(e=t=>{window.location.href=t}),b.jsxs(Gn,{container:!0,spacing:2,columns:12,children:[b.jsx(Gn,{size:{xs:12,md:4},children:b.jsx(Iie,{})}),b.jsx(Gn,{size:{xs:12,md:4},children:b.jsx(lce,{navigate:e})}),b.jsx(Gn,{size:{xs:12,md:4},children:b.jsx(ace,{navigate:e})}),b.jsx(Gn,{size:{xs:12,md:6},children:b.jsx(Gie,{})}),b.jsx(Gn,{size:{xs:12,md:6},children:b.jsx($ie,{})}),b.jsx(Gn,{size:{xs:12,md:12},children:b.jsx(uce,{})}),b.jsx(Gn,{size:{xs:12,md:12},children:b.jsx(yL,{notebookPath:dce,hideEmbeddingIcons:!0})})]})}const pce=we(Au)({display:"flex",flexDirection:"column",height:"100%"});function hce({modelPath:e,sourceName:t,queryName:n,expandResult:r,hideResultIcon:o,expandEmbedding:a,hideEmbeddingIcon:s,noView:l,annotations:u}){const[d,p]=Be.useState(r),[h,g]=Be.useState(a),[y,v]=Be.useState(),[T,_]=Be.useState(),{packageName:x,projectName:D}=Yo(),C=hL({modelPath:e,sourceName:t,queryName:n,optionalPackageName:x,optionalProjectName:D});return w.useEffect(()=>{dc(C,"typescript").then(R=>{v(R)})},[h,C]),w.useEffect(()=>{if(u&&u.length>0){const R=u.map(I=>`// ${I}`).join(`
|
|
348
|
+
`);dc(R,"typescript").then(I=>{_(I)})}},[u]),b.jsx(b.Fragment,{children:b.jsxs(pce,{variant:"outlined",sx:{padding:"0px 10px 0px 10px",borderRadius:"0px"},children:[b.jsxs(cn,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",width:"100%"},children:[b.jsx(Ue,{variant:"subtitle2",sx:{mt:"auto",mb:"auto"},children:`${l?"":"View >"} ${n}`}),b.jsxs(L0,{sx:{padding:"0px"},children:[!o&&b.jsx(ir,{title:d?"Hide Results":"Show Results",children:b.jsx(nr,{size:"small",onClick:()=>{p(!d)},children:b.jsx(iie,{})})}),!s&&b.jsx(ir,{title:h?"Hide Sharing":"Show Sharing",children:b.jsx(nr,{size:"small",onClick:()=>{g(!h)},children:b.jsx(Lh,{})})})]})]}),b.jsxs(Na,{in:h,timeout:"auto",unmountOnExit:!0,children:[b.jsx(vr,{}),b.jsxs(cn,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:[b.jsx(Ue,{sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:b.jsx("div",{dangerouslySetInnerHTML:{__html:y}})}),b.jsx(ir,{title:"Copy Embeddable Code",children:b.jsx(nr,{sx:{width:"24px",height:"24px"},onClick:()=>{navigator.clipboard.writeText(C)},children:b.jsx(cb,{})})})]})]}),b.jsxs(Na,{in:d,timeout:"auto",unmountOnExit:!0,children:[b.jsx(vr,{sx:{mb:"4px"}}),T&&b.jsxs(b.Fragment,{children:[b.jsx(cn,{sx:{borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:b.jsx(Ue,{fontSize:"12px",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:b.jsx("div",{className:"content",dangerouslySetInnerHTML:{__html:T}})})}),b.jsx(vr,{sx:{mb:"4px"}})]}),b.jsx(ku,{children:b.jsx(Cie,{modelPath:e,sourceName:t,queryName:n})})]})]})})}const mce=new OC(new $r),gce=Fn(L3)(({theme:e})=>({display:"flex",flexWrap:"wrap",gap:e.spacing(.5),borderBottom:`1px solid ${e.palette.divider}`,minHeight:36})),yce=Fn(Ur)(({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 WL({sourceAndPaths:e,existingQuery:t,existingSourceName:n,onQueryChange:r,onSourceChange:o}){const[a,s]=Be.useState(n?e.findIndex(d=>d.sourceInfo.name===n):0),[l,u]=Be.useState(t||xp());return Be.useEffect(()=>{o&&o(a)},[a,o]),b.jsxs(_r,{variant:"outlined",children:[b.jsx(Wo,{children:b.jsx(rD,{sx:{flexDirection:"row",justifyContent:"space-between"},children:e.length>0&&b.jsx(gce,{children:e.map((d,p)=>b.jsx(yce,{selected:a===p,onClick:()=>s(p),children:d.sourceInfo.name||`Source ${p+1}`},d.sourceInfo.name||p))})})}),b.jsx(IC,{children:b.jsxs(rD,{spacing:2,component:"section",children:[b.jsx(YL,{sourceAndPath:e[a],existingQuery:l,onChange:d=>{u(d),r&&r(d)}}),b.jsx(L3,{height:"5px"})]})})]})}function xp(){return{query:void 0,malloyQuery:void 0,malloyResult:void 0}}function bce({sourceAndPath:e,onChange:t,existingQuery:n,explorerComponents:r,QueryBuilder:o}){const[a,s]=Be.useState(n||xp()),[l,u]=Be.useState([]),{MalloyExplorerProvider:d,QueryPanel:p,ResizableCollapsiblePanel:h,ResultPanel:g,SourcePanel:y}=r;Be.useEffect(()=>{t&&t(a)},[t,a]);const{projectName:v,packageName:T,versionId:_}=Yo(),x=xie({mutationFn:(I,O)=>{const F=new o.ASTQuery({source:e.sourceInfo,query:a?.malloyQuery}).toMalloy();return s({...a,query:F}),mce.executeQuery(v,T,e.modelPath,F,void 0,void 0,_,O)},onSuccess:I=>{if(I){const O=JSON.parse(I.data.result);s({...a,malloyResult:O})}}}),[D,C]=Be.useState(e.sourceInfo.name);Be.useEffect(()=>{D!==e.sourceInfo.name&&(C(e.sourceInfo.name),s(xp()))},[e,D]);const R=Be.useCallback(I=>{s({...a,malloyQuery:I,malloyResult:void 0})},[a]);return D!==e.sourceInfo.name?b.jsx("div",{children:"Loading..."}):b.jsx(sL,{children:b.jsx(d,{source:e.sourceInfo,query:a?.malloyQuery,onQueryChange:R,focusedNestViewPath:l,onFocusedNestViewPathChange:u,onDrill:I=>{console.info(I)},children:b.jsxs("div",{style:{display:"flex",height:"100%",overflowY:"auto"},children:[b.jsx(h,{isInitiallyExpanded:!0,initialWidth:180,minWidth:180,icon:"database",title:e.sourceInfo.name,children:b.jsx(y,{onRefresh:()=>s(xp())})}),b.jsx(h,{isInitiallyExpanded:!0,initialWidth:280,minWidth:280,icon:"filterSliders",title:"Query",children:b.jsx(p,{runQuery:()=>{x.mutate()}})}),b.jsx(g,{source:e.sourceInfo,draftQuery:a?.malloyQuery,setDraftQuery:I=>s({...a,malloyQuery:I}),submittedQuery:a?.malloyQuery?{executionState:x.isPending?"running":"finished",response:{result:a.malloyResult},query:a.malloyQuery,queryResolutionStartMillis:Date.now(),onCancel:x.reset}:void 0,options:{showRawQuery:!0}})]})})},e.sourceInfo.name)}function YL(e){const[t,n]=w.useState(null),[r,o]=w.useState(null),[a,s]=w.useState(!0);return w.useEffect(()=>{let l=!0;return Promise.all([G(()=>import("./index-lhN38COk.js"),__vite__mapDeps([93,94,95])),G(()=>import("./index-CNRCklos.js").then(u=>u.i),[])]).then(([u,d])=>{l&&(n(u),o(d),s(!1))}).catch(u=>{console.error("Failed to load Malloy components:",u),l&&s(!1)}),()=>{l=!1}},[]),a||!t||!r?b.jsx(aie,{children:b.jsx(sL,{children:b.jsx("div",{style:{alignItems:"center",justifyContent:"center",height:"200px",color:"#666"},children:"Loading explorer..."})})}):b.jsx(bce,{...e,explorerComponents:t,QueryBuilder:r})}const vce=new gb(new $r);function QL(e,t){const{projectName:n,packageName:r,versionId:o}=Yo(),a=t||o;return Zr({queryKey:["package",n,r,e,a],queryFn:async s=>(await vce.getModel(n,r,e,a,s)).data})}function Ece({modelPath:e,versionId:t,expandResults:n,hideResultIcons:r,expandEmbeddings:o,hideEmbeddingIcons:a,onChange:s}){const[l,u]=Be.useState(0),{data:d,isError:p,isLoading:h,error:g}=QL(e,t);return h?b.jsx(Xr,{text:"Fetching Model..."}):p?(console.log("error",g),b.jsx(zr,{error:g,context:`ModelExplorer > ${e}`})):b.jsxs(cn,{spacing:2,component:"section",children:[Array.isArray(d.sourceInfos)&&d.sourceInfos.length>0&&b.jsx(cn,{sx:{flexDirection:"row",justifyContent:"flex-start"},children:b.jsx(NQ,{value:l,onChange:(y,v)=>u(v),variant:"scrollable",scrollButtons:"auto",sx:{borderBottom:1,borderColor:"divider",minHeight:36},children:d.sourceInfos.map((y,v)=>{let T;try{T=JSON.parse(y)}catch{T={name:String(v)}}return b.jsx($Y,{label:T.name||`Source ${v+1}`,sx:{minHeight:36}},T.name||v)})})}),Array.isArray(d.sourceInfos)&&d.sourceInfos.length>0&&b.jsx(YL,{sourceAndPath:{modelPath:e,sourceInfo:JSON.parse(d.sourceInfos[l])},onChange:s}),d.queries?.length>0&&b.jsxs(_r,{variant:"outlined",sx:{padding:"0px 10px 0px 10px"},children:[b.jsx(Wo,{sx:{p:"10px"},children:b.jsx(Ue,{variant:"subtitle1",children:"Named Queries"})}),b.jsx(cn,{spacing:1,component:"section",children:d.queries.map(y=>b.jsx(hce,{modelPath:e,queryName:y.name,expandResult:n,hideResultIcon:r,expandEmbedding:o,hideEmbeddingIcon:a,noView:!0,annotations:y.annotations},y.name))}),b.jsx(Rt,{height:"10px"})]}),b.jsx(Rt,{height:"5px"})]})}function xce({modelPath:e,versionId:t,expandResults:n,hideResultIcons:r,expandEmbeddings:o,hideEmbeddingIcons:a,onChange:s}){const[l,u]=Be.useState(!1),[d,p]=Be.useState(),{isError:h,isLoading:g,error:y}=QL(e,t),v=Tce(e);return w.useEffect(()=>{dc(v,"typescript").then(T=>{p(T)})},[l,v]),g?b.jsx(Xr,{text:"Fetching Model..."}):h?(console.log("error",y),b.jsx(zr,{error:y,context:`Model > ${e}`})):b.jsxs(_r,{variant:"outlined",children:[b.jsxs(Wo,{children:[b.jsx(cn,{sx:{flexDirection:"row",justifyContent:"flex-end"},children:!a&&b.jsx(L0,{sx:{padding:"0px 10px 0px 10px",mb:"auto",mt:"auto"},children:b.jsx(ir,{title:l?"Hide Embedding":"View Embedding",children:b.jsx(nr,{size:"small",onClick:()=>{u(!l)},children:b.jsx(Lh,{})})})})}),b.jsxs(Na,{in:l,timeout:"auto",unmountOnExit:!0,children:[b.jsx(vr,{}),b.jsxs(cn,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:[b.jsx(Ue,{sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:b.jsx("div",{dangerouslySetInnerHTML:{__html:d}})}),b.jsx(ir,{title:"Copy Embeddable Code",children:b.jsx(nr,{sx:{width:"24px",height:"24px"},onClick:()=>{navigator.clipboard.writeText(v)},children:b.jsx(cb,{})})})]})]}),b.jsx(vr,{})]}),b.jsx(Ece,{modelPath:e,versionId:t,expandResults:n,hideResultIcons:r,expandEmbeddings:o,hideEmbeddingIcons:a,onChange:s})]})}function Tce(e){return`<Model
|
|
349
|
+
modelPath="${e}"
|
|
350
|
+
accessToken={accessToken}
|
|
351
|
+
/>`}const Sce=wn(b.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),yu=gS({createStyledComponent:Fn("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>yd({props:e,name:"MuiStack"})});class Tp{constructor(t,n){this.workbookData=n,this.workbookStorage=t,this.workbookData?this.isSaved=!0:(this.workbookData={models:[],cells:[],workbookPath:void 0},this.isSaved=!1)}isSaved;workbookStorage;getWorkbookData(){return this.workbookData}getWorkbookPath(){return this.workbookData.workbookPath}async renameWorkbook(t){if(this.workbookData.workbookPath.path!==t)try{await this.workbookStorage.moveWorkbook(this.workbookData.workbookPath,{path:t,workspace:this.workbookData.workbookPath.workspace})}catch{}return this.workbookData.workbookPath.path=t,this.isSaved=!1,await this.saveWorkbook()}getCells(){return this.workbookData.cells}deleteCell(t){return this.workbookData.cells=[...this.workbookData.cells.slice(0,t),...this.workbookData.cells.slice(t+1)],this.isSaved=!1,this}insertCell(t,n){return this.workbookData.cells=[...this.workbookData.cells.slice(0,t),n,...this.workbookData.cells.slice(t)],this.isSaved=!1,this}setCell(t,n){return this.workbookData.cells[t]=n,this.isSaved=!1,this}setModels(t){return this.workbookData.models=t,this.isSaved=!1,this}getModels(){return this.workbookData.models}updateWorkbookData(t){return this.workbookData=t,this.isSaved=!1,this}async saveWorkbook(){if(!this.isSaved){if(!this.workbookData.workbookPath)throw new Error("Workbook path is not set");await this.workbookStorage.saveWorkbook(this.workbookData.workbookPath,JSON.stringify(this.workbookData)),this.isSaved=!0}return new Tp(this.workbookStorage,this.workbookData)}toMalloyWorkbook(){return this.workbookData.cells.map(t=>t.isMarkdown?`>>>markdown
|
|
352
|
+
`+t.value:`>>>malloy
|
|
353
|
+
import {${t.sourceName}}" from '${t.modelPath}'"
|
|
354
|
+
`+t.value+`
|
|
355
|
+
`).join(`
|
|
356
|
+
`)}static newWorkbook(t){return new Tp(t,void 0)}static async loadWorkbook(t,n){let r;try{const o=await t.getWorkbook(n);o&&(r=JSON.parse(o))}catch{r={models:[],cells:[],workbookPath:n}}return new Tp(t,r)}}const KL=w.createContext(void 0),Cce=({server:e=`${window.location.protocol}//${window.location.host}/api/v0`,getAccessToken:t,children:n})=>{const r={server:e,getAccessToken:t};return b.jsx(KL.Provider,{value:r,children:n})},$C=()=>{const e=w.useContext(KL);if(e===void 0)throw new Error("useServer must be used within a ServerProvider");return e},kg=wn(b.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),sO=wn(b.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"})),_ce=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ace=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,kce={};function lO(e,t){return(kce.jsx?Ace:_ce).test(e)}var bu={},ME,cO;function wce(){if(cO)return ME;cO=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,u=`
|
|
357
|
+
`,d="/",p="*",h="",g="comment",y="declaration";ME=function(T,_){if(typeof T!="string")throw new TypeError("First argument must be a string");if(!T)return[];_=_||{};var x=1,D=1;function C(z){var q=z.match(t);q&&(x+=q.length);var Y=z.lastIndexOf(u);D=~Y?z.length-Y:D+z.length}function R(){var z={line:x,column:D};return function(q){return q.position=new I(z),H(),q}}function I(z){this.start=z,this.end={line:x,column:D},this.source=_.source}I.prototype.content=T;function O(z){var q=new Error(_.source+":"+x+":"+D+": "+z);if(q.reason=z,q.filename=_.source,q.line=x,q.column=D,q.source=T,!_.silent)throw q}function F(z){var q=z.exec(T);if(q){var Y=q[0];return C(Y),T=T.slice(Y.length),q}}function H(){F(n)}function U(z){var q;for(z=z||[];q=S();)q!==!1&&z.push(q);return z}function S(){var z=R();if(!(d!=T.charAt(0)||p!=T.charAt(1))){for(var q=2;h!=T.charAt(q)&&(p!=T.charAt(q)||d!=T.charAt(q+1));)++q;if(q+=2,h===T.charAt(q-1))return O("End of comment missing");var Y=T.slice(2,q-2);return D+=2,C(Y),T=T.slice(q),D+=2,z({type:g,comment:Y})}}function M(){var z=R(),q=F(r);if(q){if(S(),!F(o))return O("property missing ':'");var Y=F(a),B=z({type:y,property:v(q[0].replace(e,h)),value:Y?v(Y[0].replace(e,h)):h});return F(s),B}}function $(){var z=[];U(z);for(var q;q=M();)q!==!1&&(z.push(q),U(z));return z}return H(),$()};function v(T){return T?T.replace(l,h):h}return ME}var uO;function Dce(){if(uO)return bu;uO=1;var e=bu&&bu.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(bu,"__esModule",{value:!0}),bu.default=n;var t=e(wce());function n(r,o){var a=null;if(!r||typeof r!="string")return a;var s=(0,t.default)(r),l=typeof o=="function";return s.forEach(function(u){if(u.type==="declaration"){var d=u.property,p=u.value;l?o(d,p,u):p&&(a=a||{},a[d]=p)}}),a}return bu}var $f={},dO;function Rce(){if(dO)return $f;dO=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()},l=function(d,p){return"".concat(p,"-")},u=function(d,p){return p===void 0&&(p={}),a(d)?d:(d=d.toLowerCase(),p.reactCompat?d=d.replace(o,l):d=d.replace(r,l),d.replace(t,s))};return $f.camelCase=u,$f}var Vf,fO;function Ice(){if(fO)return Vf;fO=1;var e=Vf&&Vf.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(Dce()),n=Rce();function r(o,a){var s={};return!o||typeof o!="string"||(0,t.default)(o,function(l,u){l&&u&&(s[(0,n.camelCase)(l,a)]=u)}),s}return r.default=r,Vf=r,Vf}var Oce=Ice();const Nce=J0(Oce),vb=XL("end"),Ti=XL("start");function XL(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 Pce(e){const t=Ti(e),n=vb(e);if(t&&n)return{start:t,end:n}}function Sp(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?pO(e.position):"start"in e||"end"in e?pO(e):"line"in e||"column"in e?ET(e):""}function ET(e){return hO(e&&e.line)+":"+hO(e&&e.column)}function pO(e){return ET(e&&e.start)+"-"+ET(e&&e.end)}function hO(e){return e&&typeof e=="number"?e:1}class Jr 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 l=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=l?l.line:void 0,this.name=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=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Jr.prototype.file="";Jr.prototype.name="";Jr.prototype.reason="";Jr.prototype.message="";Jr.prototype.stack="";Jr.prototype.column=void 0;Jr.prototype.line=void 0;Jr.prototype.ancestors=void 0;Jr.prototype.cause=void 0;Jr.prototype.fatal=void 0;Jr.prototype.place=void 0;Jr.prototype.ruleId=void 0;Jr.prototype.source=void 0;const VC={}.hasOwnProperty,Lce=new Map,Mce=/[A-Z]/g,Fce=new Set(["table","tbody","thead","tfoot","tr"]),Bce=new Set(["td","th"]),ZL="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function jce(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=Wce(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=qce(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"?is:vd,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=JL(o,e,void 0);return a&&typeof a!="string"?a:o.create(e,o.Fragment,{children:a||void 0},void 0)}function JL(e,t,n){if(t.type==="element")return Uce(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Hce(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return $ce(e,t,n);if(t.type==="mdxjsEsm")return zce(e,t);if(t.type==="root")return Vce(e,t,n);if(t.type==="text")return Gce(e,t)}function Uce(e,t,n){const r=e.schema;let o=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(o=is,e.schema=o),e.ancestors.push(t);const a=tM(e,t.tagName,!1),s=Yce(e,t);let l=qC(e,t);return Fce.has(t.tagName)&&(l=l.filter(function(u){return typeof u=="string"?!Uh(u):!0})),eM(e,s,a,t),GC(s,l),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function Hce(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)}dh(e,t.position)}function zce(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);dh(e,t.position)}function $ce(e,t,n){const r=e.schema;let o=r;t.name==="svg"&&r.space==="html"&&(o=is,e.schema=o),e.ancestors.push(t);const a=t.name===null?e.Fragment:tM(e,t.name,!0),s=Qce(e,t),l=qC(e,t);return eM(e,s,a,t),GC(s,l),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function Vce(e,t,n){const r={};return GC(r,qC(e,t)),e.create(t,e.Fragment,r,n)}function Gce(e,t){return t.value}function eM(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function GC(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function qce(e,t,n){return r;function r(o,a,s,l){const u=Array.isArray(s.children)?n:t;return l?u(a,s,l):u(a,s)}}function Wce(e,t){return n;function n(r,o,a,s){const l=Array.isArray(a.children),u=Ti(r);return t(o,a,s,l,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function Yce(e,t){const n={};let r,o;for(o in t.properties)if(o!=="children"&&VC.call(t.properties,o)){const a=Kce(e,o,t.properties[o]);if(a){const[s,l]=a;e.tableCellAlignToStyle&&s==="align"&&typeof l=="string"&&Bce.has(t.tagName)?r=l:n[s]=l}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Qce(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 dh(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 dh(e,t.position);else a=r.value===null?!0:r.value;n[o]=a}return n}function qC(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:Lce;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 l=JL(e,a,s);l!==void 0&&n.push(l)}return n}function Kce(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?fb(n):pb(n)),r.property==="style"){let o=typeof n=="object"?n:Xce(e,String(n));return e.stylePropertyNameCase==="css"&&(o=Zce(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&r.space?poe[r.property]||r.property:r.attribute,n]}}function Xce(e,t){try{return Nce(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,o=new Jr("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=ZL+"#cannot-parse-style-attribute",o}}function tM(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 l=lO(o[a])?{type:"Identifier",name:o[a]}:{type:"Literal",value:o[a]};s=s?{type:"MemberExpression",object:s,property:l,computed:!!(a&&l.type==="Literal"),optional:!1}:l}r=s}else r=lO(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const o=r.value;return VC.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(r);dh(e)}function dh(e,t){const n=new Jr("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=ZL+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Zce(e){const t={};let n;for(n in e)VC.call(e,n)&&(t[Jce(n)]=e[n]);return t}function Jce(e){let t=e.replace(Mce,eue);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function eue(e){return"-"+e.toLowerCase()}const FE={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"]},tue={};function WC(e,t){const n=tue,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,o=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return nM(e,r,o)}function nM(e,t,n){if(nue(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 mO(e.children,t,n)}return Array.isArray(e)?mO(e,t,n):""}function mO(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=nM(e[o],t,n);return r.join("")}function nue(e){return!!(e&&typeof e=="object")}const gO=document.createElement("i");function YC(e){const t="&"+e+";";gO.innerHTML=t;const n=gO.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Go(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?(Go(e,e.length,0,t),e):t}const yO={}.hasOwnProperty;function rM(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=(yO.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){yO.call(r,a)||(r[a]=[]);const s=o[a];oue(r[a],Array.isArray(s)?s:s?[s]:[])}}}function oue(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Go(e,0,0,r)}function oM(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function La(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const io=cl(/[A-Za-z]/),Kr=cl(/[\dA-Za-z]/),aue=cl(/[#-'*+\--9=?A-Z^-~]/);function t0(e){return e!==null&&(e<32||e===127)}const xT=cl(/\d/),iue=cl(/[\dA-Fa-f]/),sue=cl(/[!-/:-@[-`{-~]/);function vt(e){return e!==null&&e<-2}function kn(e){return e!==null&&(e<0||e===32)}function Qt(e){return e===-2||e===-1||e===32}const Eb=cl(/\p{P}|\p{S}/u),fc=cl(/\s/);function cl(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function xd(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const a=e.charCodeAt(n);let s="";if(a===37&&Kr(e.charCodeAt(n+1))&&Kr(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 l=e.charCodeAt(n+1);a<56320&&l>56319&&l<57344?(s=String.fromCharCode(a,l),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 en(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),l(u)):t(u)}function l(u){return Qt(u)&&a++<o?(e.consume(u),l):(e.exit(n),t(u))}}const lue={tokenize:cue};function cue(e){const t=e.attempt(this.parser.constructs.contentInitial,r,o);let n;return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),en(e,t,"linePrefix")}function o(l){return e.enter("paragraph"),a(l)}function a(l){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,s(l)}function s(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return vt(l)?(e.consume(l),e.exit("chunkText"),a):(e.consume(l),s)}}const uue={tokenize:due},bO={tokenize:fue};function due(e){const t=this,n=[];let r=0,o,a,s;return l;function l(C){if(r<n.length){const R=n[r];return t.containerState=R[1],e.attempt(R[0].continuation,u,d)(C)}return d(C)}function u(C){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}x(r);let F=R;for(;F<t.events.length;)t.events[F][1].end={...O},F++;return Go(t.events,I+1,0,t.events.slice(R)),t.events.length=F,d(C)}return l(C)}function d(C){if(r===n.length){if(!o)return g(C);if(o.currentConstruct&&o.currentConstruct.concrete)return v(C);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(bO,p,h)(C)}function p(C){return o&&D(),x(r),g(C)}function h(C){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,v(C)}function g(C){return t.containerState={},e.attempt(bO,y,v)(C)}function y(C){return r++,n.push([t.currentConstruct,t.containerState]),g(C)}function v(C){if(C===null){o&&D(),x(0),e.consume(C);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:a}),T(C)}function T(C){if(C===null){_(e.exit("chunkFlow"),!0),x(0),e.consume(C);return}return vt(C)?(e.consume(C),_(e.exit("chunkFlow")),r=0,t.interrupt=void 0,l):(e.consume(C),T)}function _(C,R){const I=t.sliceStream(C);if(R&&I.push(null),C.previous=a,a&&(a.next=C),a=C,o.defineSkip(C.start),o.write(I),t.parser.lazy[C.start.line]){let O=o.events.length;for(;O--;)if(o.events[O][1].start.offset<s&&(!o.events[O][1].end||o.events[O][1].end.offset>s))return;const F=t.events.length;let H=F,U,S;for(;H--;)if(t.events[H][0]==="exit"&&t.events[H][1].type==="chunkFlow"){if(U){S=t.events[H][1].end;break}U=!0}for(x(r),O=F;O<t.events.length;)t.events[O][1].end={...S},O++;Go(t.events,H+1,0,t.events.slice(F)),t.events.length=O}}function x(C){let R=n.length;for(;R-- >C;){const I=n[R];t.containerState=I[1],I[0].exit.call(t,e)}n.length=C}function D(){o.write([null]),a=void 0,o=void 0,t.containerState._closeFlow=void 0}}function fue(e,t,n){return en(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function rd(e){if(e===null||kn(e)||fc(e))return 1;if(Eb(e))return 2}function xb(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 TT={name:"attention",resolveAll:pue,tokenize:hue};function pue(e,t){let n=-1,r,o,a,s,l,u,d,p;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const h={...e[r][1].end},g={...e[n][1].start};vO(h,-u),vO(g,u),s={type:u>1?"strongSequence":"emphasisSequence",start:h,end:{...e[r][1].end}},l={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:{...l.end}},e[r][1].end={...s.start},e[n][1].start={...l.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,xb(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),d=ga(d,[["exit",a,t],["enter",l,t],["exit",l,t],["exit",o,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,d=ga(d,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,Go(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=rd(r);let a;return s;function s(u){return a=u,e.enter("attentionSequence"),l(u)}function l(u){if(u===a)return e.consume(u),l;const d=e.exit("attentionSequence"),p=rd(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 vO(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const mue={name:"autolink",tokenize:gue};function gue(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||Kr(y)?(r=1,l(y)):d(y)}function l(y){return y===58?(e.consume(y),r=0,u):(y===43||y===45||y===46||Kr(y))&&r++<32?(e.consume(y),l):(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||t0(y)?n(y):(e.consume(y),u)}function d(y){return y===64?(e.consume(y),p):aue(y)?(e.consume(y),d):n(y)}function p(y){return Kr(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||Kr(y))&&r++<63){const v=y===45?g:h;return e.consume(y),v}return n(y)}}const $h={partial:!0,tokenize:yue};function yue(e,t,n){return r;function r(a){return Qt(a)?en(e,o,"linePrefix")(a):o(a)}function o(a){return a===null||vt(a)?t(a):n(a)}}const aM={continuation:{tokenize:vue},exit:Eue,name:"blockQuote",tokenize:bue};function bue(e,t,n){const r=this;return o;function o(s){if(s===62){const l=r.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.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 vue(e,t,n){const r=this;return o;function o(s){return Qt(s)?en(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):a(s)}function a(s){return e.attempt(aM,t,n)(s)}}function Eue(e){e.exit("blockQuote")}const iM={name:"characterEscape",tokenize:xue};function xue(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 sue(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const sM={name:"characterReference",tokenize:Tue};function Tue(e,t,n){const r=this;let o=0,a,s;return l;function l(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),u}function u(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),d):(e.enter("characterReferenceValue"),a=31,s=Kr,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=iue,p):(e.enter("characterReferenceValue"),a=7,s=xT,p(h))}function p(h){if(h===59&&o){const g=e.exit("characterReferenceValue");return s===Kr&&!YC(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 EO={partial:!0,tokenize:Cue},xO={concrete:!0,name:"codeFenced",tokenize:Sue};function Sue(e,t,n){const r=this,o={partial:!0,tokenize:I};let a=0,s=0,l;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,l=O,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(O)}function p(O){return O===l?(s++,e.consume(O),p):s<3?n(O):(e.exit("codeFencedFenceSequence"),Qt(O)?en(e,h,"whitespace")(O):h(O))}function h(O){return O===null||vt(O)?(e.exit("codeFencedFence"),r.interrupt?t(O):e.check(EO,T,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"),en(e,y,"whitespace")(O)):O===96&&O===l?n(O):(e.consume(O),g)}function y(O){return O===null||vt(O)?h(O):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(O))}function v(O){return O===null||vt(O)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(O)):O===96&&O===l?n(O):(e.consume(O),v)}function T(O){return e.attempt(o,R,_)(O)}function _(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),x}function x(O){return a>0&&Qt(O)?en(e,D,"linePrefix",a+1)(O):D(O)}function D(O){return O===null||vt(O)?e.check(EO,T,R)(O):(e.enter("codeFlowValue"),C(O))}function C(O){return O===null||vt(O)?(e.exit("codeFlowValue"),D(O)):(e.consume(O),C)}function R(O){return e.exit("codeFenced"),t(O)}function I(O,F,H){let U=0;return S;function S(Y){return O.enter("lineEnding"),O.consume(Y),O.exit("lineEnding"),M}function M(Y){return O.enter("codeFencedFence"),Qt(Y)?en(O,$,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Y):$(Y)}function $(Y){return Y===l?(O.enter("codeFencedFenceSequence"),z(Y)):H(Y)}function z(Y){return Y===l?(U++,O.consume(Y),z):U>=s?(O.exit("codeFencedFenceSequence"),Qt(Y)?en(O,q,"whitespace")(Y):q(Y)):H(Y)}function q(Y){return Y===null||vt(Y)?(O.exit("codeFencedFence"),F(Y)):H(Y)}}}function Cue(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 BE={name:"codeIndented",tokenize:Aue},_ue={partial:!0,tokenize:kue};function Aue(e,t,n){const r=this;return o;function o(d){return e.enter("codeIndented"),en(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(_ue,s,u)(d):(e.enter("codeFlowValue"),l(d))}function l(d){return d===null||vt(d)?(e.exit("codeFlowValue"),s(d)):(e.consume(d),l)}function u(d){return e.exit("codeIndented"),t(d)}}function kue(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):en(e,a,"linePrefix",5)(s)}function a(s){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(s):vt(s)?o(s):n(s)}}const wue={name:"codeText",previous:Rue,resolve:Due,tokenize:Iue};function Due(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 Rue(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Iue(e,t,n){let r=0,o,a;return s;function s(h){return e.enter("codeText"),e.enter("codeTextSequence"),l(h)}function l(h){return h===96?(e.consume(h),r++,l):(e.exit("codeTextSequence"),u(h))}function u(h){return h===null?n(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),u):h===96?(a=e.enter("codeTextSequence"),o=0,p(h)):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 Oue{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 lM(e){const t={};let n=-1,r,o,a,s,l,u,d;const p=new Oue(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,Nue(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},l=p.slice(o,n),l.unshift(r),p.splice(o,n-o+1,l))}}return Go(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!d}function Nue(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 l=s.events,u=[],d={};let p,h,g=-1,y=n,v=0,T=0;const _=[T];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<l.length;)l[g][0]==="exit"&&l[g-1][0]==="enter"&&l[g][1].type===l[g-1][1].type&&l[g][1].start.line!==l[g][1].end.line&&(T=g+1,_.push(T),y._tokenizer=void 0,y.previous=void 0,y=y.next);for(s.events=[],y?(y._tokenizer=void 0,y.previous=void 0):_.pop(),g=_.length;g--;){const x=l.slice(_[g],_[g+1]),D=a.pop();u.push([D,D+x.length-1]),e.splice(D,2,x)}for(u.reverse(),g=-1;++g<u.length;)d[v+u[g][0]]=v+u[g][1],v+=u[g][1]-u[g][0]-1;return d}const Pue={resolve:Mue,tokenize:Fue},Lue={partial:!0,tokenize:Bue};function Mue(e){return lM(e),e}function Fue(e,t){let n;return r;function r(l){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),o(l)}function o(l){return l===null?a(l):vt(l)?e.check(Lue,s,a)(l):(e.consume(l),o)}function a(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function s(l){return e.consume(l),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,o}}function Bue(e,t,n){const r=this;return o;function o(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),en(e,a,"linePrefix")}function a(s){if(s===null||vt(s))return n(s);const l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function cM(e,t,n,r,o,a,s,l,u){const d=u||Number.POSITIVE_INFINITY;let p=0;return h;function h(x){return x===60?(e.enter(r),e.enter(o),e.enter(a),e.consume(x),e.exit(a),g):x===null||x===32||x===41||t0(x)?n(x):(e.enter(r),e.enter(s),e.enter(l),e.enter("chunkString",{contentType:"string"}),T(x))}function g(x){return x===62?(e.enter(a),e.consume(x),e.exit(a),e.exit(o),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),y(x))}function y(x){return x===62?(e.exit("chunkString"),e.exit(l),g(x)):x===null||x===60||vt(x)?n(x):(e.consume(x),x===92?v:y)}function v(x){return x===60||x===62||x===92?(e.consume(x),y):y(x)}function T(x){return!p&&(x===null||x===41||kn(x))?(e.exit("chunkString"),e.exit(l),e.exit(s),e.exit(r),t(x)):p<d&&x===40?(e.consume(x),p++,T):x===41?(e.consume(x),p--,T):x===null||x===32||x===40||t0(x)?n(x):(e.consume(x),x===92?_:T)}function _(x){return x===40||x===41||x===92?(e.consume(x),T):T(x)}}function uM(e,t,n,r,o,a){const s=this;let l=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 l>999||y===null||y===91||y===93&&!u||y===94&&!l&&"_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)||l++>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),l++,h):h(y)}}function dM(e,t,n,r,o,a){let s;return l;function l(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"),en(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)?en(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}const jue={name:"definition",tokenize:Hue},Uue={partial:!0,tokenize:zue};function Hue(e,t,n){const r=this;let o;return a;function a(y){return e.enter("definition"),s(y)}function s(y){return uM.call(r,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}function l(y){return o=La(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 kn(y)?Cp(e,d)(y):d(y)}function d(y){return cM(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(y)}function p(y){return e.attempt(Uue,h,h)(y)}function h(y){return Qt(y)?en(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 zue(e,t,n){return r;function r(l){return kn(l)?Cp(e,o)(l):n(l)}function o(l){return dM(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function a(l){return Qt(l)?en(e,s,"whitespace")(l):s(l)}function s(l){return l===null||vt(l)?t(l):n(l)}}const $ue={name:"hardBreakEscape",tokenize:Vue};function Vue(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 Gue={name:"headingAtx",resolve:que,tokenize:Wue};function que(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"},Go(e,r,n-r+1,[["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t]])),e}function Wue(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||kn(p)?(e.exit("atxHeadingSequence"),l(p)):n(p)}function l(p){return p===35?(e.enter("atxHeadingSequence"),u(p)):p===null||vt(p)?(e.exit("atxHeading"),t(p)):Qt(p)?en(e,l,"whitespace")(p):(e.enter("atxHeadingText"),d(p))}function u(p){return p===35?(e.consume(p),u):(e.exit("atxHeadingSequence"),l(p))}function d(p){return p===null||p===35||kn(p)?(e.exit("atxHeadingText"),l(p)):(e.consume(p),d)}}const Yue=["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"],TO=["pre","script","style","textarea"],Que={concrete:!0,name:"htmlFlow",resolveTo:Zue,tokenize:Jue},Kue={partial:!0,tokenize:tde},Xue={partial:!0,tokenize:ede};function Zue(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 Jue(e,t,n){const r=this;let o,a,s,l,u;return d;function d(P){return p(P)}function p(P){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(P),h}function h(P){return P===33?(e.consume(P),g):P===47?(e.consume(P),a=!0,T):P===63?(e.consume(P),o=3,r.interrupt?t:N):io(P)?(e.consume(P),s=String.fromCharCode(P),_):n(P)}function g(P){return P===45?(e.consume(P),o=2,y):P===91?(e.consume(P),o=5,l=0,v):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 v(P){const re="CDATA[";return P===re.charCodeAt(l++)?(e.consume(P),l===re.length?r.interrupt?t:$:v):n(P)}function T(P){return io(P)?(e.consume(P),s=String.fromCharCode(P),_):n(P)}function _(P){if(P===null||P===47||P===62||kn(P)){const re=P===47,ce=s.toLowerCase();return!re&&!a&&TO.includes(ce)?(o=1,r.interrupt?t(P):$(P)):Yue.includes(s.toLowerCase())?(o=6,re?(e.consume(P),x):r.interrupt?t(P):$(P)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(P):a?D(P):C(P))}return P===45||Kr(P)?(e.consume(P),s+=String.fromCharCode(P),_):n(P)}function x(P){return P===62?(e.consume(P),r.interrupt?t:$):n(P)}function D(P){return Qt(P)?(e.consume(P),D):S(P)}function C(P){return P===47?(e.consume(P),S):P===58||P===95||io(P)?(e.consume(P),R):Qt(P)?(e.consume(P),C):S(P)}function R(P){return P===45||P===46||P===58||P===95||Kr(P)?(e.consume(P),R):I(P)}function I(P){return P===61?(e.consume(P),O):Qt(P)?(e.consume(P),I):C(P)}function O(P){return P===null||P===60||P===61||P===62||P===96?n(P):P===34||P===39?(e.consume(P),u=P,F):Qt(P)?(e.consume(P),O):H(P)}function F(P){return P===u?(e.consume(P),u=null,U):P===null||vt(P)?n(P):(e.consume(P),F)}function H(P){return P===null||P===34||P===39||P===47||P===60||P===61||P===62||P===96||kn(P)?I(P):(e.consume(P),H)}function U(P){return P===47||P===62||Qt(P)?C(P):n(P)}function S(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),K):P===62&&o===4?(e.consume(P),Q):P===63&&o===3?(e.consume(P),N):P===93&&o===5?(e.consume(P),ne):vt(P)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(Kue,X,z)(P)):P===null||vt(P)?(e.exit("htmlFlowData"),z(P)):(e.consume(P),$)}function z(P){return e.check(Xue,q,X)(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 K(P){return P===47?(e.consume(P),s="",ae):$(P)}function ae(P){if(P===62){const re=s.toLowerCase();return TO.includes(re)?(e.consume(P),Q):$(P)}return io(P)&&s.length<8?(e.consume(P),s+=String.fromCharCode(P),ae):$(P)}function ne(P){return P===93?(e.consume(P),N):$(P)}function N(P){return P===62?(e.consume(P),Q):P===45&&o===2?(e.consume(P),N):$(P)}function Q(P){return P===null||vt(P)?(e.exit("htmlFlowData"),X(P)):(e.consume(P),Q)}function X(P){return e.exit("htmlFlow"),t(P)}}function ede(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 tde(e,t,n){return r;function r(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt($h,t,n)}}const nde={name:"htmlText",tokenize:rde};function rde(e,t,n){const r=this;let o,a,s;return l;function l(N){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(N),u}function u(N){return N===33?(e.consume(N),d):N===47?(e.consume(N),I):N===63?(e.consume(N),C):io(N)?(e.consume(N),H):n(N)}function d(N){return N===45?(e.consume(N),p):N===91?(e.consume(N),a=0,v):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,K(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 v(N){const Q="CDATA[";return N===Q.charCodeAt(a++)?(e.consume(N),a===Q.length?T:v):n(N)}function T(N){return N===null?n(N):N===93?(e.consume(N),_):vt(N)?(s=T,K(N)):(e.consume(N),T)}function _(N){return N===93?(e.consume(N),x):T(N)}function x(N){return N===62?B(N):N===93?(e.consume(N),x):T(N)}function D(N){return N===null||N===62?B(N):vt(N)?(s=D,K(N)):(e.consume(N),D)}function C(N){return N===null?n(N):N===63?(e.consume(N),R):vt(N)?(s=C,K(N)):(e.consume(N),C)}function R(N){return N===62?B(N):C(N)}function I(N){return io(N)?(e.consume(N),O):n(N)}function O(N){return N===45||Kr(N)?(e.consume(N),O):F(N)}function F(N){return vt(N)?(s=F,K(N)):Qt(N)?(e.consume(N),F):B(N)}function H(N){return N===45||Kr(N)?(e.consume(N),H):N===47||N===62||kn(N)?U(N):n(N)}function U(N){return N===47?(e.consume(N),B):N===58||N===95||io(N)?(e.consume(N),S):vt(N)?(s=U,K(N)):Qt(N)?(e.consume(N),U):B(N)}function S(N){return N===45||N===46||N===58||N===95||Kr(N)?(e.consume(N),S):M(N)}function M(N){return N===61?(e.consume(N),$):vt(N)?(s=M,K(N)):Qt(N)?(e.consume(N),M):U(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=$,K(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,K(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||kn(N)?U(N):(e.consume(N),q)}function Y(N){return N===47||N===62||kn(N)?U(N):n(N)}function B(N){return N===62?(e.consume(N),e.exit("htmlTextData"),e.exit("htmlText"),t):n(N)}function K(N){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),ae}function ae(N){return Qt(N)?en(e,ne,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):ne(N)}function ne(N){return e.enter("htmlTextData"),s(N)}}const QC={name:"labelEnd",resolveAll:sde,resolveTo:lde,tokenize:cde},ode={tokenize:ude},ade={tokenize:dde},ide={tokenize:fde};function sde(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&&Go(e,0,e.length,n),e}function lde(e,t){let n=e.length,r=0,o,a,s,l;for(;n--;)if(o=e[n][1],a){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[n][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(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 l=[["enter",u,t],["enter",d,t]],l=ga(l,e.slice(a+1,a+r+3)),l=ga(l,[["enter",p,t]]),l=ga(l,xb(t.parser.constructs.insideSpan.null,e.slice(a+r+4,s-3),t)),l=ga(l,[["exit",p,t],e[s-2],e[s-1],["exit",d,t]]),l=ga(l,e.slice(s+1)),l=ga(l,[["exit",u,t]]),Go(e,a,e.length,l),e}function cde(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 l;function l(g){return a?a._inactive?h(g):(s=r.parser.defined.includes(La(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(ode,p,s?p:h)(g):g===91?e.attempt(ade,p,s?d:h)(g):s?p(g):h(g)}function d(g){return e.attempt(ide,p,h)(g)}function p(g){return t(g)}function h(g){return a._balanced=!0,n(g)}}function ude(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 kn(h)?Cp(e,a)(h):a(h)}function a(h){return h===41?p(h):cM(e,s,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function s(h){return kn(h)?Cp(e,u)(h):p(h)}function l(h){return n(h)}function u(h){return h===34||h===39||h===40?dM(e,d,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):p(h)}function d(h){return kn(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 dde(e,t,n){const r=this;return o;function o(l){return uM.call(r,e,a,s,"reference","referenceMarker","referenceString")(l)}function a(l){return r.parser.defined.includes(La(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(l):n(l)}function s(l){return n(l)}}function fde(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 pde={name:"labelStartImage",resolveAll:QC.resolveAll,tokenize:hde};function hde(e,t,n){const r=this;return o;function o(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),a}function a(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),s):n(l)}function s(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const mde={name:"labelStartLink",resolveAll:QC.resolveAll,tokenize:gde};function gde(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 jE={name:"lineEnding",tokenize:yde};function yde(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),en(e,t,"linePrefix")}}const ay={name:"thematicBreak",tokenize:bde};function bde(e,t,n){let r=0,o;return a;function a(d){return e.enter("thematicBreak"),s(d)}function s(d){return o=d,l(d)}function l(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)?en(e,l,"whitespace")(d):l(d))}}const yo={continuation:{tokenize:Tde},exit:Cde,name:"list",tokenize:xde},vde={partial:!0,tokenize:_de},Ede={partial:!0,tokenize:Sde};function xde(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 l;function l(y){const v=r.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(v==="listUnordered"?!r.containerState.marker||y===r.containerState.marker:xT(y)){if(r.containerState.type||(r.containerState.type=v,e.enter(v,{_container:!0})),v==="listUnordered")return e.enter("listItemPrefix"),y===42||y===45?e.check(ay,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 xT(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(vde,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 Tde(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check($h,o,a);function o(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,en(e,t,"listItemIndent",r.containerState.size+1)(l)}function a(l){return r.containerState.furtherBlankLines||!Qt(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Ede,t,s)(l))}function s(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,en(e,e.attempt(yo,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function Sde(e,t,n){const r=this;return en(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 Cde(e){e.exit(this.containerState.type)}function _de(e,t,n){const r=this;return en(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 SO={name:"setextUnderline",resolveTo:Ade,tokenize:kde};function Ade(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 kde(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"),l(d)}function l(d){return d===o?(e.consume(d),l):(e.exit("setextHeadingLineSequence"),Qt(d)?en(e,u,"lineSuffix")(d):u(d))}function u(d){return d===null||vt(d)?(e.exit("setextHeadingLine"),t(d)):n(d)}}const wde={tokenize:Dde};function Dde(e){const t=this,n=e.attempt($h,r,e.attempt(this.parser.constructs.flowInitial,o,en(e,e.attempt(this.parser.constructs.flow,o,e.attempt(Pue,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 Rde={resolveAll:pM()},Ide=fM("string"),Ode=fM("text");function fM(e){return{resolveAll:pM(e==="text"?Nde:void 0),tokenize:t};function t(n){const r=this,o=this.parser.constructs[e],a=n.attempt(o,s,l);return s;function s(p){return d(p)?a(p):l(p)}function l(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),u}function u(p){return d(p)?(n.exit("data"),a(p)):(n.consume(p),u)}function d(p){if(p===null)return!0;const h=o[p];let 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 pM(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 Nde(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,l=0,u;for(;a--;){const d=o[a];if(typeof d=="string"){for(s=d.length;d.charCodeAt(s-1)===32;)l++,s--;if(s)break;s=-1}else if(d===-2)u=!0,l++;else if(d!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const d={type:n===e.length||u||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:r.start._bufferIndex+s,_index:r.start._index+a,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...d.start},r.start.offset===r.end.offset?Object.assign(r,d):(e.splice(n,0,["enter",d,t],["exit",d,t]),n+=2)}n++}return e}const Pde={42:yo,43:yo,45:yo,48:yo,49:yo,50:yo,51:yo,52:yo,53:yo,54:yo,55:yo,56:yo,57:yo,62:aM},Lde={91:jue},Mde={[-2]:BE,[-1]:BE,32:BE},Fde={35:Gue,42:ay,45:[SO,ay],60:Que,61:SO,95:ay,96:xO,126:xO},Bde={38:sM,92:iM},jde={[-5]:jE,[-4]:jE,[-3]:jE,33:pde,38:sM,42:TT,60:[mue,nde],91:mde,92:[$ue,iM],93:QC,95:TT,96:wue},Ude={null:[TT,Rde]},Hde={null:[42,95]},zde={null:[]},$de=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Hde,contentInitial:Lde,disable:zde,document:Pde,flow:Fde,flowInitial:Mde,insideSpan:Ude,string:Bde,text:jde},Symbol.toStringTag,{value:"Module"}));function Vde(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=[],l=[];const u={attempt:F(I),check:F(O),consume:D,enter:C,exit:R,interrupt:F(O,{interrupt:!0})},d={code:null,containerState:{},defineSkip:T,events:[],now:v,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.length-1]!==null?[]:(H(t,0),d.events=xb(a,d.events,d),d.events)}function g(M,$){return qde(y(M),$)}function y(M){return Gde(s,M)}function v(){const{_bufferIndex:M,_index:$,line:z,column:q,offset:Y}=r;return{_bufferIndex:M,_index:$,line:z,column:q,offset:Y}}function T(M){o[M.line]=M.column,S()}function _(){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;)x($.charCodeAt(r._bufferIndex));else x($)}}function x(M){p=p(M)}function D(M){vt(M)?(r.line++,r.column=1,r.offset+=M===-3?2:1,S()):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 C(M,$){const z=$||{};return z.type=M,z.start=v(),d.events.push(["enter",z,d]),l.push(z),z}function R(M){const $=l.pop();return $.end=v(),d.events.push(["exit",$,d]),$}function I(M,$){H(M,$.from)}function O(M,$){$.restore()}function F(M,$){return z;function z(q,Y,B){let K,ae,ne,N;return Array.isArray(q)?X(q):"tokenize"in q?X([q]):Q(q);function Q(oe){return ve;function ve(be){const qe=be!==null&&oe[be],Me=be!==null&&oe.null,Oe=[...Array.isArray(qe)?qe:qe?[qe]:[],...Array.isArray(Me)?Me:Me?[Me]:[]];return X(Oe)(be)}}function X(oe){return K=oe,ae=0,oe.length===0?B:P(oe[ae])}function P(oe){return ve;function ve(be){return N=U(),ne=oe,oe.partial||(d.currentConstruct=oe),oe.name&&d.parser.constructs.disable.null.includes(oe.name)?ce():oe.tokenize.call($?Object.assign(Object.create(d),$):d,u,re,ce)(be)}}function re(oe){return M(ne,N),Y}function ce(oe){return N.restore(),++ae<K.length?P(K[ae]):B}}}function H(M,$){M.resolveAll&&!a.includes(M)&&a.push(M),M.resolve&&Go(d.events,$,d.events.length-$,M.resolve(d.events.slice($),d)),M.resolveTo&&(d.events=M.resolveTo(d.events,d))}function U(){const M=v(),$=d.previous,z=d.currentConstruct,q=d.events.length,Y=Array.from(l);return{from:q,restore:B};function B(){r=M,d.previous=$,d.currentConstruct=z,d.events.length=q,l=Y,S()}}function S(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}function Gde(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 l=s[0];typeof l=="string"?s[0]=l.slice(r):s.shift()}a>0&&s.push(e[o].slice(0,a))}return s}function qde(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=`
|
|
358
|
+
`;break}case-3:{s=`\r
|
|
359
|
+
`;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 Wde(e){const t={constructs:rM([$de,...(e||{}).extensions||[]]),content:n(lue),defined:[],document:n(uue),flow:n(wde),lazy:{},string:n(Ide),text:n(Ode)};return t;function n(r){return o;function o(a){return Vde(t,r,a)}}}function Yde(e){for(;!lM(e););return e}const CO=/[\0\t\n\r]/g;function Qde(){let e=1,t="",n=!0,r;return o;function o(a,s,l){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(CO.lastIndex=h,d=CO.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 l&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}const Kde=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Xde(e){return e.replace(Kde,Zde)}function Zde(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),o=r===120||r===88;return oM(n.slice(o?2:1),o?16:10)}return YC(n)||e}const hM={}.hasOwnProperty;function Jde(e,t,n){return typeof t!="string"&&(n=t,t=void 0),efe(n)(Yde(Wde(n).document().write(Qde()(e,t,!0))))}function efe(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(ct),autolinkProtocol:U,autolinkEmail:U,atxHeading:a(yt),blockQuote:a(Me),characterEscape:U,characterReference:U,codeFenced:a(Oe),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(Oe,s),codeText:a(Ke,s),codeTextData:U,data:U,codeFlowValue:U,definition:a(at),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(Re),hardBreakEscape:a(_t),hardBreakTrailing:a(_t),htmlFlow:a(He,s),htmlFlowData:U,htmlText:a(He,s),htmlTextData:U,image:a(mt),label:s,link:a(ct),listItem:a(ze),listItemValue:g,listOrdered:a(ft,h),listUnordered:a(ft),paragraph:a(Le),reference:P,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(yt),strong:a(Xt),thematicBreak:a(At)},exit:{atxHeading:u(),atxHeadingSequence:I,autolink:u(),autolinkEmail:qe,autolinkProtocol:be,blockQuote:u(),characterEscapeValue:S,characterReferenceMarkerHexadecimal:ce,characterReferenceMarkerNumeric:ce,characterReferenceValue:oe,characterReference:ve,codeFenced:u(_),codeFencedFence:T,codeFencedFenceInfo:y,codeFencedFenceMeta:v,codeFlowValue:S,codeIndented:u(x),codeText:u(Y),codeTextData:S,data:S,definition:u(),definitionDestinationString:R,definitionLabelString:D,definitionTitleString:C,emphasis:u(),hardBreakEscape:u($),hardBreakTrailing:u($),htmlFlow:u(z),htmlFlowData:S,htmlText:u(q),htmlTextData:S,image:u(K),label:ne,labelText:ae,lineEnding:M,link:u(B),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:re,resourceDestinationString:N,resourceTitleString:Q,resource:X,setextHeading:u(H),setextHeadingLineSequence:F,setextHeadingText:O,strong:u(),thematicBreak:u()}};mM(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(de){let ye={type:"root",children:[]};const $e={stack:[ye],tokenStack:[],config:t,enter:l,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 Ze=Xe.pop();Et=o(de,Ze,Et)}for(Et=-1;++Et<de.length;){const Ze=t[de[Et][0]];hM.call(Ze,de[Et][1].type)&&Ze[de[Et][1].type].call(Object.assign({sliceSerialize:de[Et][2].sliceSerialize},$e),de[Et][1])}if($e.tokenStack.length>0){const Ze=$e.tokenStack[$e.tokenStack.length-1];(Ze[1]||_O).call($e,void 0,Ze[0])}for(ye.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;)ye=t.transforms[Et](ye)||ye;return ye}function o(de,ye,$e){let Xe=ye-1,Et=-1,Ze=!1,Zt,Vt,tn,he;for(;++Xe<=$e;){const xe=de[Xe];switch(xe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{xe[0]==="enter"?Et++:Et--,he=void 0;break}case"lineEndingBlank":{xe[0]==="enter"&&(Zt&&!he&&!Et&&!tn&&(tn=Xe),he=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:he=void 0}if(!Et&&xe[0]==="enter"&&xe[1].type==="listItemPrefix"||Et===-1&&xe[0]==="exit"&&(xe[1].type==="listUnordered"||xe[1].type==="listOrdered")){if(Zt){let tt=Xe;for(Vt=void 0;tt--;){const nt=de[tt];if(nt[1].type==="lineEnding"||nt[1].type==="lineEndingBlank"){if(nt[0]==="exit")continue;Vt&&(de[Vt][1].type="lineEndingBlank",Ze=!0),nt[1].type="lineEnding",Vt=tt}else if(!(nt[1].type==="linePrefix"||nt[1].type==="blockQuotePrefix"||nt[1].type==="blockQuotePrefixWhitespace"||nt[1].type==="blockQuoteMarker"||nt[1].type==="listItemIndent"))break}tn&&(!Vt||tn<Vt)&&(Zt._spread=!0),Zt.end=Object.assign({},Vt?de[Vt][1].start:xe[1].end),de.splice(Vt||Xe,0,["exit",Zt,xe[2]]),Xe++,$e++}if(xe[1].type==="listItemPrefix"){const tt={type:"listItem",_spread:!1,start:Object.assign({},xe[1].start),end:void 0};Zt=tt,de.splice(Xe,0,["enter",tt,xe[2]]),Xe++,$e++,tn=void 0,he=!0}}}return de[ye][1]._spread=Ze,$e}function a(de,ye){return $e;function $e(Xe){l.call(this,de(Xe),Xe),ye&&ye.call(this,Xe)}}function s(){this.stack.push({type:"fragment",children:[]})}function l(de,ye,$e){this.stack[this.stack.length-1].children.push(de),this.stack.push(de),this.tokenStack.push([ye,$e||void 0]),de.position={start:Fs(ye.start),end:void 0}}function u(de){return ye;function ye($e){de&&de.call(this,$e),d.call(this,$e)}}function d(de,ye){const $e=this.stack.pop(),Xe=this.tokenStack.pop();if(Xe)Xe[0].type!==de.type&&(ye?ye.call(this,de,Xe[0]):(Xe[1]||_O).call(this,de,Xe[0]));else throw new Error("Cannot close `"+de.type+"` ("+Sp({start:de.start,end:de.end})+"): it’s not open");$e.position.end=Fs(de.end)}function p(){return WC(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function g(de){if(this.data.expectingFirstListItemValue){const ye=this.stack[this.stack.length-2];ye.start=Number.parseInt(this.sliceSerialize(de),10),this.data.expectingFirstListItemValue=void 0}}function y(){const de=this.resume(),ye=this.stack[this.stack.length-1];ye.lang=de}function v(){const de=this.resume(),ye=this.stack[this.stack.length-1];ye.meta=de}function T(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){const de=this.resume(),ye=this.stack[this.stack.length-1];ye.value=de.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const de=this.resume(),ye=this.stack[this.stack.length-1];ye.value=de.replace(/(\r?\n|\r)$/g,"")}function D(de){const ye=this.resume(),$e=this.stack[this.stack.length-1];$e.label=ye,$e.identifier=La(this.sliceSerialize(de)).toLowerCase()}function C(){const de=this.resume(),ye=this.stack[this.stack.length-1];ye.title=de}function R(){const de=this.resume(),ye=this.stack[this.stack.length-1];ye.url=de}function I(de){const ye=this.stack[this.stack.length-1];if(!ye.depth){const $e=this.sliceSerialize(de).length;ye.depth=$e}}function O(){this.data.setextHeadingSlurpLineEnding=!0}function F(de){const ye=this.stack[this.stack.length-1];ye.depth=this.sliceSerialize(de).codePointAt(0)===61?1:2}function H(){this.data.setextHeadingSlurpLineEnding=void 0}function U(de){const ye=this.stack[this.stack.length-1].children;let $e=ye[ye.length-1];(!$e||$e.type!=="text")&&($e=Bt(),$e.position={start:Fs(de.start),end:void 0},ye.push($e)),this.stack.push($e)}function S(de){const ye=this.stack.pop();ye.value+=this.sliceSerialize(de),ye.position.end=Fs(de.end)}function M(de){const ye=this.stack[this.stack.length-1];if(this.data.atHardBreak){const $e=ye.children[ye.children.length-1];$e.position.end=Fs(de.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ye.type)&&(U.call(this,de),S.call(this,de))}function $(){this.data.atHardBreak=!0}function z(){const de=this.resume(),ye=this.stack[this.stack.length-1];ye.value=de}function q(){const de=this.resume(),ye=this.stack[this.stack.length-1];ye.value=de}function Y(){const de=this.resume(),ye=this.stack[this.stack.length-1];ye.value=de}function B(){const de=this.stack[this.stack.length-1];if(this.data.inReference){const ye=this.data.referenceType||"shortcut";de.type+="Reference",de.referenceType=ye,delete de.url,delete de.title}else delete de.identifier,delete de.label;this.data.referenceType=void 0}function K(){const de=this.stack[this.stack.length-1];if(this.data.inReference){const ye=this.data.referenceType||"shortcut";de.type+="Reference",de.referenceType=ye,delete de.url,delete de.title}else delete de.identifier,delete de.label;this.data.referenceType=void 0}function ae(de){const ye=this.sliceSerialize(de),$e=this.stack[this.stack.length-2];$e.label=Xde(ye),$e.identifier=La(ye).toLowerCase()}function ne(){const de=this.stack[this.stack.length-1],ye=this.resume(),$e=this.stack[this.stack.length-1];if(this.data.inReference=!0,$e.type==="link"){const Xe=de.children;$e.children=Xe}else $e.alt=ye}function N(){const de=this.resume(),ye=this.stack[this.stack.length-1];ye.url=de}function Q(){const de=this.resume(),ye=this.stack[this.stack.length-1];ye.title=de}function X(){this.data.inReference=void 0}function P(){this.data.referenceType="collapsed"}function re(de){const ye=this.resume(),$e=this.stack[this.stack.length-1];$e.label=ye,$e.identifier=La(this.sliceSerialize(de)).toLowerCase(),this.data.referenceType="full"}function ce(de){this.data.characterReferenceType=de.type}function oe(de){const ye=this.sliceSerialize(de),$e=this.data.characterReferenceType;let Xe;$e?(Xe=oM(ye,$e==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Xe=YC(ye);const Et=this.stack[this.stack.length-1];Et.value+=Xe}function ve(de){const ye=this.stack.pop();ye.position.end=Fs(de.end)}function be(de){S.call(this,de);const ye=this.stack[this.stack.length-1];ye.url=this.sliceSerialize(de)}function qe(de){S.call(this,de);const ye=this.stack[this.stack.length-1];ye.url="mailto:"+this.sliceSerialize(de)}function Me(){return{type:"blockquote",children:[]}}function Oe(){return{type:"code",lang:null,meta:null,value:""}}function Ke(){return{type:"inlineCode",value:""}}function at(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Re(){return{type:"emphasis",children:[]}}function yt(){return{type:"heading",depth:0,children:[]}}function _t(){return{type:"break"}}function He(){return{type:"html",value:""}}function mt(){return{type:"image",title:null,url:"",alt:null}}function ct(){return{type:"link",title:null,url:"",children:[]}}function ft(de){return{type:"list",ordered:de.type==="listOrdered",start:null,spread:de._spread,children:[]}}function ze(de){return{type:"listItem",spread:de._spread,checked:null,children:[]}}function Le(){return{type:"paragraph",children:[]}}function Xt(){return{type:"strong",children:[]}}function Bt(){return{type:"text",value:""}}function At(){return{type:"thematicBreak"}}}function Fs(e){return{line:e.line,column:e.column,offset:e.offset}}function mM(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?mM(e,r):tfe(e,r)}}function tfe(e,t){let n;for(n in t)if(hM.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function _O(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 nfe(e){const t=this;t.parser=n;function n(r){return Jde(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 ofe(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
360
|
+
`}]}function afe(e,t){const n=t.value?t.value+`
|
|
361
|
+
`:"",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 ife(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function sfe(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=xd(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let s,l=e.footnoteCounts.get(r);l===void 0?(l=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=a+1,l+=1,e.footnoteCounts.set(r,l);const u={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,u);const d={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,d),e.applyData(t,d)}function cfe(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 ufe(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function gM(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),a=o[0];a&&a.type==="text"?a.value="["+a.value:o.unshift({type:"text",value:"["});const s=o[o.length-1];return s&&s.type==="text"?s.value+=r:o.push({type:"text",value:r}),o}function dfe(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return gM(e,t);const o={src:xd(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 ffe(e,t){const n={src:xd(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 pfe(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 gM(e,t);const o={href:xd(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 mfe(e,t){const n={href:xd(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 gfe(e,t,n){const r=e.all(t),o=n?yfe(n):yM(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 l=-1;for(;++l<r.length;){const p=r[l];(o||l!==0||p.type!=="element"||p.tagName!=="p")&&s.push({type:"text",value:`
|
|
362
|
+
`}),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:`
|
|
363
|
+
`});const d={type:"element",tagName:"li",properties:a,children:s};return e.patch(t,d),e.applyData(t,d)}function yfe(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=yM(n[r])}return t}function yM(e){return e.spread??e.children.length>1}function bfe(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 vfe(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Efe(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function xfe(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Tfe(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)},l=Ti(t.children[1]),u=vb(t.children[t.children.length-1]);l&&u&&(s.position={start:l,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 Sfe(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 l=-1;const u=[];for(;++l<s;){const p=t.children[l],h={},g=a?a[l]: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 Cfe(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const AO=9,kO=32;function _fe(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const a=[];for(;r;)a.push(wO(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return a.push(wO(t.slice(o),o>0,!1)),a.join("")}function wO(e,t,n){let r=0,o=e.length;if(t){let a=e.codePointAt(r);for(;a===AO||a===kO;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(o-1);for(;a===AO||a===kO;)o--,a=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}function Afe(e,t){const n={type:"text",value:_fe(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function kfe(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const wfe={blockquote:rfe,break:ofe,code:afe,delete:ife,emphasis:sfe,footnoteReference:lfe,heading:cfe,html:ufe,imageReference:dfe,image:ffe,inlineCode:pfe,linkReference:hfe,link:mfe,listItem:gfe,list:bfe,paragraph:vfe,root:Efe,strong:xfe,table:Tfe,tableCell:Cfe,tableRow:Sfe,text:Afe,thematicBreak:kfe,toml:wg,yaml:wg,definition:wg,footnoteDefinition:wg};function wg(){}const bM=-1,Tb=0,_p=1,n0=2,KC=3,XC=4,ZC=5,JC=6,vM=7,EM=8,DO=typeof self=="object"?self:globalThis,Dfe=(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 Tb:case bM:return n(s,o);case _p:{const l=n([],o);for(const u of s)l.push(r(u));return l}case n0:{const l=n({},o);for(const[u,d]of s)l[r(u)]=r(d);return l}case KC:return n(new Date(s),o);case XC:{const{source:l,flags:u}=s;return n(new RegExp(l,u),o)}case ZC:{const l=n(new Map,o);for(const[u,d]of s)l.set(r(u),r(d));return l}case JC:{const l=n(new Set,o);for(const u of s)l.add(r(u));return l}case vM:{const{name:l,message:u}=s;return n(new DO[l](u),o)}case EM: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:l}=new Uint8Array(s);return n(new DataView(l),s)}}return n(new DO[a](s),o)};return r},RO=e=>Dfe(new Map,e)(0),vu="",{toString:Rfe}={},{keys:Ife}=Object,qf=e=>{const t=typeof e;if(t!=="object"||!e)return[Tb,t];const n=Rfe.call(e).slice(8,-1);switch(n){case"Array":return[_p,vu];case"Object":return[n0,vu];case"Date":return[KC,vu];case"RegExp":return[XC,vu];case"Map":return[ZC,vu];case"Set":return[JC,vu];case"DataView":return[_p,n]}return n.includes("Array")?[_p,n]:n.includes("Error")?[vM,n]:[n0,n]},Dg=([e,t])=>e===Tb&&(t==="function"||t==="symbol"),Ofe=(e,t,n,r)=>{const o=(s,l)=>{const u=r.push(s)-1;return n.set(l,u),u},a=s=>{if(n.has(s))return n.get(s);let[l,u]=qf(s);switch(l){case Tb:{let p=s;switch(u){case"bigint":l=EM,p=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);p=null;break;case"undefined":return o([bM],s)}return o([l,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([l,p],s);for(const g of s)p.push(a(g));return h}case n0:{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([l,p],s);for(const g of Ife(s))(e||!Dg(qf(s[g])))&&p.push([a(g),a(s[g])]);return h}case KC:return o([l,s.toISOString()],s);case XC:{const{source:p,flags:h}=s;return o([l,{source:p,flags:h}],s)}case ZC:{const p=[],h=o([l,p],s);for(const[g,y]of s)(e||!(Dg(qf(g))||Dg(qf(y))))&&p.push([a(g),a(y)]);return h}case JC:{const p=[],h=o([l,p],s);for(const g of s)(e||!Dg(qf(g)))&&p.push(a(g));return h}}const{message:d}=s;return o([l,{name:u,message:d}],s)};return a},IO=(e,{json:t,lossy:n}={})=>{const r=[];return Ofe(!(t||n),!!t,new Map,r)(e),r},pc=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?RO(IO(e,t)):structuredClone(e):(e,t)=>RO(IO(e,t));function Nfe(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 Pfe(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Lfe(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Nfe,r=e.options.footnoteBackLabel||Pfe,o=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let u=-1;for(;++u<e.footnoteOrder.length;){const d=e.footnoteById.get(e.footnoteOrder[u]);if(!d)continue;const p=e.all(d),h=String(d.identifier).toUpperCase(),g=xd(h.toLowerCase());let y=0;const v=[],T=e.footnoteCounts.get(h);for(;T!==void 0&&++y<=T;){v.length>0&&v.push({type:"text",value:" "});let D=typeof n=="string"?n:n(u,y);typeof D=="string"&&(D={type:"text",value:D}),v.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 _=p[p.length-1];if(_&&_.type==="element"&&_.tagName==="p"){const D=_.children[_.children.length-1];D&&D.type==="text"?D.value+=" ":_.children.push({type:"text",value:" "}),_.children.push(...v)}else p.push(...v);const x={type:"element",tagName:"li",properties:{id:t+"fn-"+g},children:e.wrap(p,!0)};e.patch(d,x),l.push(x)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...pc(s),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
|
|
364
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:`
|
|
365
|
+
`}]}}const Sb=function(e){if(e==null)return jfe;if(typeof e=="function")return Cb(e);if(typeof e=="object")return Array.isArray(e)?Mfe(e):Ffe(e);if(typeof e=="string")return Bfe(e);throw new Error("Expected function, string, or object as test")};function Mfe(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Sb(e[n]);return Cb(r);function r(...o){let a=-1;for(;++a<t.length;)if(t[a].apply(this,o))return!0;return!1}}function Ffe(e){const t=e;return Cb(n);function n(r){const o=r;let a;for(a in e)if(o[a]!==t[a])return!1;return!0}}function Bfe(e){return Cb(t);function t(n){return n&&n.type===e}}function Cb(e){return t;function t(n,r,o){return!!(Ufe(n)&&e.call(this,n,typeof r=="number"?r:void 0,o||void 0))}}function jfe(){return!0}function Ufe(e){return e!==null&&typeof e=="object"&&"type"in e}const xM=[],Hfe=!0,r0=!1,Ap="skip";function TM(e,t,n,r){let o;typeof t=="function"&&typeof n!="function"?(r=n,n=t):o=t;const a=Sb(o),s=r?-1:1;l(e,void 0,[])();function l(u,d,p){const h=u&&typeof u=="object"?u:{};if(typeof h.type=="string"){const 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=xM,v,T,_;if((!t||a(u,d,p[p.length-1]||void 0))&&(y=zfe(n(u,p)),y[0]===r0))return y;if("children"in u&&u.children){const x=u;if(x.children&&y[0]!==Ap)for(T=(r?x.children.length:-1)+s,_=p.concat(x);T>-1&&T<x.children.length;){const D=x.children[T];if(v=l(D,T,_)(),v[0]===r0)return v;T=typeof v[1]=="number"?v[1]:T+s}}return y}}}function zfe(e){return Array.isArray(e)?e:typeof e=="number"?[Hfe,e]:e==null?xM:[e]}function ko(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),TM(e,a,l,o);function l(u,d){const p=d[d.length-1],h=p?p.children.indexOf(u):void 0;return s(u,h,p)}}const ST={}.hasOwnProperty,$fe={};function Vfe(e,t){const n=t||$fe,r=new Map,o=new Map,a=new Map,s={...wfe,...n.handlers},l={all:d,applyData:qfe,definitionById:r,footnoteById:o,footnoteCounts:a,footnoteOrder:[],handlers:s,one:u,options:n,patch:Gfe,wrap:Yfe};return ko(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)}}),l;function u(p,h){const g=p.type,y=l.handlers[g];if(ST.call(l.handlers,g)&&y)return y(l,p,h);if(l.options.passThrough&&l.options.passThrough.includes(g)){if("children"in p){const{children:v,...T}=p,_=pc(T);return _.children=l.all(p),_}return pc(p)}return(l.options.unknownHandler||Wfe)(l,p,h)}function d(p){const h=[];if("children"in p){const g=p.children;let y=-1;for(;++y<g.length;){const v=l.one(g[y],p);if(v){if(y&&g[y-1].type==="break"&&(!Array.isArray(v)&&v.type==="text"&&(v.value=OO(v.value)),!Array.isArray(v)&&v.type==="element")){const T=v.children[0];T&&T.type==="text"&&(T.value=OO(T.value))}Array.isArray(v)?h.push(...v):h.push(v)}}}return h}}function Gfe(e,t){e.position&&(t.position=Pce(e))}function qfe(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,pc(a)),"children"in n&&n.children&&o!==null&&o!==void 0&&(n.children=o)}return n}function Wfe(e,t){const n=t.data||{},r="value"in t&&!(ST.call(n,"hProperties")||ST.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 Yfe(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
366
|
+
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
367
|
+
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
368
|
+
`}),n}function OO(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function NO(e,t){const n=Vfe(e,t),r=n.one(e,void 0),o=Lfe(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&a.children.push({type:"text",value:`
|
|
369
|
+
`},o),a}function Qfe(e,t){return e&&"run"in e?async function(n,r){const o=NO(n,{file:r,...t});await e.run(o,r)}:function(n,r){return NO(n,{file:r,...e||t})}}function PO(e){if(e)throw e}var UE,LO;function Kfe(){if(LO)return UE;LO=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},l=function(u,d){if(d==="__proto__")if(e.call(u,d)){if(r)return r(u,d).value}else return;return u[d]};return UE=function u(){var d,p,h,g,y,v,T=arguments[0],_=1,x=arguments.length,D=!1;for(typeof T=="boolean"&&(D=T,T=arguments[1]||{},_=2),(T==null||typeof T!="object"&&typeof T!="function")&&(T={});_<x;++_)if(d=arguments[_],d!=null)for(p in d)h=l(T,p),g=l(d,p),T!==g&&(D&&g&&(a(g)||(y=o(g)))?(y?(y=!1,v=h&&o(h)?h:[]):v=h&&a(h)?h:{},s(T,{name:p,newValue:u(D,v,g)})):typeof g<"u"&&s(T,{name:p,newValue:g}));return T},UE}var Xfe=Kfe();const HE=J0(Xfe);function CT(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 Zfe(){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);l(null,...o);function l(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?Jfe(p,l)(...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 Jfe(e,t){let n;return r;function r(...s){const l=e.length>s.length;let u;l&&s.push(o);try{u=e.apply(this,s)}catch(d){const p=d;if(l&&n)throw p;return o(p)}l||(u&&u.then&&typeof u.then=="function"?u.then(a,o):u instanceof Error?o(u):a(u))}function o(s,...l){n||(n=!0,t(s,...l))}function a(s){o(null,s)}}const ri={basename:epe,dirname:tpe,extname:npe,join:rpe,sep:"/"};function epe(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,l=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(a){n=o+1;break}}else s<0&&(a=!0,s=o+1),l>-1&&(e.codePointAt(o)===t.codePointAt(l--)?l<0&&(r=o):(l=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function tpe(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 npe(e){Vh(e);let t=e.length,n=-1,r=0,o=-1,a=0,s;for(;t--;){const l=e.codePointAt(t);if(l===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),l===46?o<0?o=t:a!==1&&(a=1):o>-1&&(a=-1)}return o<0||n<0||a===0||a===1&&o===n-1&&o===r+1?"":e.slice(o,n)}function 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?".":ope(n)}function ope(e){Vh(e);const t=e.codePointAt(0)===47;let n=ape(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function ape(e,t){let n="",r=0,o=-1,a=0,s=-1,l,u;for(;++s<=e.length;){if(s<e.length)l=e.codePointAt(s);else{if(l===47)break;l=47}if(l===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 l===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 ipe={cwd:spe};function spe(){return"/"}function _T(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(!_T(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 cpe(e)}function cpe(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 zE=["history","path","basename","stem","extname","dirname"];class SM{constructor(t){let n;t?_T(t)?n={path:t}:typeof t=="string"||upe(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":ipe.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<zE.length;){const a=zE[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)zE.includes(o)||(this[o]=n[o])}get basename(){return typeof this.path=="string"?ri.basename(this.path):void 0}set basename(t){VE(t,"basename"),$E(t,"basename"),this.path=ri.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ri.dirname(this.path):void 0}set dirname(t){MO(this.basename,"dirname"),this.path=ri.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ri.extname(this.path):void 0}set extname(t){if($E(t,"extname"),MO(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=ri.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){_T(t)&&(t=lpe(t)),VE(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ri.basename(this.path,this.extname):void 0}set stem(t){VE(t,"stem"),$E(t,"stem"),this.path=ri.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 Jr(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 $E(e,t){if(e&&e.includes(ri.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ri.sep+"`")}function VE(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function MO(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function upe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const dpe=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},fpe={}.hasOwnProperty;class e_ extends dpe{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=Zfe()}copy(){const t=new e_;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(HE(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(WE("data",this.frozen),this.namespace[t]=n,this):fpe.call(this.namespace,t)&&this.namespace[t]||void 0:t?(WE("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=Rg(t),r=this.parser||this.Parser;return GE("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),GE("process",this.parser||this.Parser),qE("process",this.compiler||this.Compiler),n?o(void 0,n):new Promise(o);function o(a,s){const l=Rg(t),u=r.parse(l);r.run(u,l,function(p,h,g){if(p||!h||!g)return d(p);const y=h,v=r.stringify(y,g);mpe(v)?g.value=v:g.result=v,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(),GE("processSync",this.parser||this.Parser),qE("processSync",this.compiler||this.Compiler),this.process(t,o),BO("processSync","process",n),r;function o(a,s){n=!0,PO(a),r=s}}run(t,n,r){FO(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,l){const u=Rg(n);o.run(t,u,d);function d(p,h,g){const y=h||t;p?l(p):s?s(y):r(void 0,y,g)}}}runSync(t,n){let r=!1,o;return this.run(t,n,a),BO("runSync","run",r),o;function a(s,l){PO(s),o=l,r=!0}}stringify(t,n){this.freeze();const r=Rg(n),o=this.compiler||this.Compiler;return qE("stringify",o),FO(t),o(t,r)}use(t,...n){const r=this.attachers,o=this.namespace;if(WE("use",this.frozen),t!=null)if(typeof t=="function")u(t,n);else if(typeof t=="object")Array.isArray(t)?l(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");l(d.plugins),d.settings&&(o.settings=HE(!0,o.settings,d.settings))}function l(d){let p=-1;if(d!=null)if(Array.isArray(d))for(;++p<d.length;){const h=d[p];a(h)}else throw new TypeError("Expected a list of plugins, not `"+d+"`")}function u(d,p){let h=-1,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,...v]=p;const T=r[g][1];CT(T)&&CT(y)&&(y=HE(!0,T,y)),r[g]=[d,y,...v]}}}}const ppe=new e_().freeze();function GE(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function qE(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function WE(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 FO(e){if(!CT(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function BO(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Rg(e){return hpe(e)?e:new SM(e)}function hpe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function mpe(e){return typeof e=="string"||gpe(e)}function gpe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const ype="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",jO=[],UO={allowDangerousHtml:!0},bpe=/^(https?|ircs?|mailto|xmpp)$/i,vpe=[{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 Epe(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",o=e.className,a=e.components,s=e.disallowedElements,l=e.rehypePlugins||jO,u=e.remarkPlugins||jO,d=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...UO}:UO,p=e.skipHtml,h=e.unwrapDisallowed,g=e.urlTransform||xpe,y=ppe().use(nfe).use(u).use(Qfe,d).use(l),v=new SM;typeof r=="string"&&(v.value=r);for(const D of vpe)Object.hasOwn(e,D.from)&&""+D.from+(D.to?"use `"+D.to+"` instead":"remove it")+ype+D.id;const T=y.parse(v);let _=y.runSync(T,v);return o&&(_={type:"element",tagName:"div",properties:{className:o},children:_.type==="root"?_.children:[_]}),ko(_,x),jce(_,{Fragment:b.Fragment,components:a,ignoreInvalidStyle:!0,jsx:b.jsx,jsxs:b.jsxs,passKeys:!0,passNode:!0});function x(D,C,R){if(D.type==="raw"&&R&&typeof C=="number")return p?R.children.splice(C,1):R.children[C]={type:"text",value:D.value},C;if(D.type==="element"){let I;for(I in FE)if(Object.hasOwn(FE,I)&&Object.hasOwn(D.properties,I)){const O=D.properties[I],F=FE[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 C=="number"&&(I=!n(D,C,R)),I&&R&&typeof C=="number")return h&&D.children?R.children.splice(C,1,...D.children):R.children.splice(C,1),C}}}function xpe(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||bpe.test(e.slice(0,t))?e:""}function Tpe(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Spe(e,t,n){const r=Sb((n||{}).ignore||[]),o=Cpe(t);let a=-1;for(;++a<o.length;)TM(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 l(u,d)}function l(u,d){const p=d[d.length-1],h=o[a][0],g=o[a][1];let y=0;const v=p.children.indexOf(u);let T=!1,_=[];h.lastIndex=0;let x=h.exec(u.value);for(;x;){const D=x.index,C={index:x.index,input:x.input,stack:[...d,u]};let R=g(...x,C);if(typeof R=="string"&&(R=R.length>0?{type:"text",value:R}:void 0),R===!1?h.lastIndex=D+1:(y!==D&&_.push({type:"text",value:u.value.slice(y,D)}),Array.isArray(R)?_.push(...R):R&&_.push(R),y=D+x[0].length,T=!0),!h.global)break;x=h.exec(u.value)}return T?(y<u.value.length&&_.push({type:"text",value:u.value.slice(y)}),p.children.splice(v,1,..._)):_=[u],v+_.length}}function Cpe(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([_pe(o[0]),Ape(o[1])])}return t}function _pe(e){return typeof e=="string"?new RegExp(Tpe(e),"g"):e}function Ape(e){return typeof e=="function"?e:function(){return e}}const YE="phrasing",QE=["autolink","link","image","label"];function kpe(){return{transforms:[Ppe],enter:{literalAutolink:Dpe,literalAutolinkEmail:KE,literalAutolinkHttp:KE,literalAutolinkWww:KE},exit:{literalAutolink:Npe,literalAutolinkEmail:Ope,literalAutolinkHttp:Rpe,literalAutolinkWww:Ipe}}}function wpe(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:YE,notInConstruct:QE},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:YE,notInConstruct:QE},{character:":",before:"[ps]",after:"\\/",inConstruct:YE,notInConstruct:QE}]}}function Dpe(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function KE(e){this.config.enter.autolinkProtocol.call(this,e)}function Rpe(e){this.config.exit.autolinkProtocol.call(this,e)}function Ipe(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 Ope(e){this.config.exit.autolinkEmail.call(this,e)}function Npe(e){this.exit(e)}function Ppe(e){Spe(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Lpe],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,Mpe]],{ignore:["link","linkReference"]})}function Lpe(e,t,n,r,o){let a="";if(!CM(o)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!Fpe(n)))return!1;const s=Bpe(n+r);if(!s[0])return!1;const l={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[l,{type:"text",value:s[1]}]:l}function Mpe(e,t,n,r){return!CM(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Fpe(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 Bpe(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=Gy(e,"(");let a=Gy(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 CM(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||fc(n)||Eb(n))&&(!t||n!==47)}_M.peek=Wpe;function jpe(){this.buffer()}function Upe(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Hpe(){this.buffer()}function zpe(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function $pe(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=La(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Vpe(e){this.exit(e)}function Gpe(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=La(this.sliceSerialize(e)).toLowerCase(),n.label=t}function qpe(e){this.exit(e)}function Wpe(){return"["}function _M(e,t,n,r){const o=n.createTracker(r);let a=o.move("[^");const s=n.enter("footnoteReference"),l=n.enter("reference");return a+=o.move(n.safe(n.associationId(e),{after:"]",before:a})),l(),s(),a+=o.move("]"),a}function Ype(){return{enter:{gfmFootnoteCallString:jpe,gfmFootnoteCall:Upe,gfmFootnoteDefinitionLabelString:Hpe,gfmFootnoteDefinition:zpe},exit:{gfmFootnoteCallString:$pe,gfmFootnoteCall:Vpe,gfmFootnoteDefinitionLabelString:Gpe,gfmFootnoteDefinition:qpe}}}function Qpe(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:_M},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,o,a,s){const l=a.createTracker(s);let u=l.move("[^");const d=a.enter("footnoteDefinition"),p=a.enter("label");return u+=l.move(a.safe(a.associationId(r),{before:u,after:"]"})),p(),u+=l.move("]:"),r.children&&r.children.length>0&&(l.shift(4),u+=l.move((t?`
|
|
370
|
+
`:" ")+a.indentLines(a.containerFlow(r,l.current()),t?AM:Kpe))),d(),u}}function Kpe(e,t,n){return t===0?e:AM(e,t,n)}function AM(e,t,n){return(n?"":" ")+e}const Xpe=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];kM.peek=nhe;function Zpe(){return{canContainEols:["delete"],enter:{strikethrough:ehe},exit:{strikethrough:the}}}function Jpe(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Xpe}],handlers:{delete:kM}}}function ehe(e){this.enter({type:"delete",children:[]},e)}function the(e){this.exit(e)}function kM(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 nhe(){return"~"}function rhe(e){return e.length}function ohe(e,t){const n=t||{},r=(n.align||[]).concat(),o=n.stringLength||rhe,a=[],s=[],l=[],u=[];let d=0,p=-1;for(;++p<e.length;){const T=[],_=[];let x=-1;for(e[p].length>d&&(d=e[p].length);++x<e[p].length;){const D=ahe(e[p][x]);if(n.alignDelimiters!==!1){const C=o(D);_[x]=C,(u[x]===void 0||C>u[x])&&(u[x]=C)}T.push(D)}s[p]=T,l[p]=_}let h=-1;if(typeof r=="object"&&"length"in r)for(;++h<d;)a[h]=HO(r[h]);else{const T=HO(r);for(;++h<d;)a[h]=T}h=-1;const g=[],y=[];for(;++h<d;){const T=a[h];let _="",x="";T===99?(_=":",x=":"):T===108?_=":":T===114&&(x=":");let D=n.alignDelimiters===!1?1:Math.max(1,u[h]-_.length-x.length);const C=_+"-".repeat(D)+x;n.alignDelimiters!==!1&&(D=_.length+D+x.length,D>u[h]&&(u[h]=D),y[h]=D),g[h]=C}s.splice(1,0,g),l.splice(1,0,y),p=-1;const v=[];for(;++p<s.length;){const T=s[p],_=l[p];h=-1;const x=[];for(;++h<d;){const D=T[h]||"";let C="",R="";if(n.alignDelimiters!==!1){const I=u[h]-(_[h]||0),O=a[h];O===114?C=" ".repeat(I):O===99?I%2?(C=" ".repeat(I/2+.5),R=" ".repeat(I/2-.5)):(C=" ".repeat(I/2),R=C):R=" ".repeat(I)}n.delimiterStart!==!1&&!h&&x.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&D==="")&&(n.delimiterStart!==!1||h)&&x.push(" "),n.alignDelimiters!==!1&&x.push(C),x.push(D),n.alignDelimiters!==!1&&x.push(R),n.padding!==!1&&x.push(" "),(n.delimiterEnd!==!1||h!==d-1)&&x.push("|")}v.push(n.delimiterEnd===!1?x.join("").replace(/ +$/,""):x.join(""))}return v.join(`
|
|
371
|
+
`)}function ahe(e){return e==null?"":String(e)}function HO(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 ihe(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()),she);return o(),s}function she(e,t,n){return">"+(n?"":" ")+e}function lhe(e,t){return zO(e,t.inConstruct,!0)&&!zO(e,t.notInConstruct,!1)}function zO(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 $O(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;)if(n.unsafe[o].character===`
|
|
372
|
+
`&&lhe(n.stack,n.unsafe[o]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
373
|
+
`}function che(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 uhe(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 dhe(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 fhe(e,t,n,r){const o=dhe(n),a=e.value||"",s=o==="`"?"GraveAccent":"Tilde";if(uhe(e,n)){const h=n.enter("codeIndented"),g=n.indentLines(a,phe);return h(),g}const l=n.createTracker(r),u=o.repeat(Math.max(che(a,o)+1,3)),d=n.enter("codeFenced");let p=l.move(u);if(e.lang){const h=n.enter(`codeFencedLang${s}`);p+=l.move(n.safe(e.lang,{before:p,after:" ",encode:["`"],...l.current()})),h()}if(e.lang&&e.meta){const h=n.enter(`codeFencedMeta${s}`);p+=l.move(" "),p+=l.move(n.safe(e.meta,{before:p,after:`
|
|
374
|
+
`,encode:["`"],...l.current()})),h()}return p+=l.move(`
|
|
375
|
+
`),a&&(p+=l.move(a+`
|
|
376
|
+
`)),p+=l.move(u),d(),p}function phe(e,t,n){return(n?"":" ")+e}function t_(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=t_(n),a=o==='"'?"Quote":"Apostrophe",s=n.enter("definition");let l=n.enter("label");const u=n.createTracker(r);let d=u.move("[");return d+=u.move(n.safe(n.associationId(e),{before:d,after:"]",...u.current()})),d+=u.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),d+=u.move("<"),d+=u.move(n.safe(e.url,{before:d,after:">",...u.current()})),d+=u.move(">")):(l=n.enter("destinationRaw"),d+=u.move(n.safe(e.url,{before:d,after:e.title?" ":`
|
|
377
|
+
`,...u.current()}))),l(),e.title&&(l=n.enter(`title${a}`),d+=u.move(" "+o),d+=u.move(n.safe(e.title,{before:d,after:o,...u.current()})),d+=u.move(o),l()),s(),d}function mhe(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 fh(e){return"&#x"+e.toString(16).toUpperCase()+";"}function o0(e,t,n){const r=rd(e),o=rd(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}}wM.peek=ghe;function wM(e,t,n,r){const o=mhe(n),a=n.enter("emphasis"),s=n.createTracker(r),l=s.move(o);let u=s.move(n.containerPhrasing(e,{after:o,before:l,...s.current()}));const d=u.charCodeAt(0),p=o0(r.before.charCodeAt(r.before.length-1),d,o);p.inside&&(u=fh(d)+u.slice(1));const h=u.charCodeAt(u.length-1),g=o0(r.after.charCodeAt(0),h,o);g.inside&&(u=u.slice(0,-1)+fh(h));const y=s.move(o);return a(),n.attentionEncodeSurroundingInfo={after:g.outside,before:p.outside},l+u+y}function ghe(e,t,n){return n.options.emphasis||"*"}function yhe(e,t){let n=!1;return ko(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,r0}),!!((!e.depth||e.depth<3)&&WC(e)&&(t.options.setext||n))}function bhe(e,t,n,r){const o=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(yhe(e,n)){const p=n.enter("headingSetext"),h=n.enter("phrasing"),g=n.containerPhrasing(e,{...a.current(),before:`
|
|
378
|
+
`,after:`
|
|
379
|
+
`});return h(),p(),g+`
|
|
380
|
+
`+(o===1?"=":"-").repeat(g.length-(Math.max(g.lastIndexOf("\r"),g.lastIndexOf(`
|
|
381
|
+
`))+1))}const s="#".repeat(o),l=n.enter("headingAtx"),u=n.enter("phrasing");a.move(s+" ");let d=n.containerPhrasing(e,{before:"# ",after:`
|
|
382
|
+
`,...a.current()});return/^[\t ]/.test(d)&&(d=fh(d.charCodeAt(0))+d.slice(1)),d=d?s+" "+d:s,n.options.closeAtx&&(d+=" "+s),u(),l(),d}DM.peek=vhe;function DM(e){return e.value||""}function vhe(){return"<"}RM.peek=Ehe;function RM(e,t,n,r){const o=t_(n),a=o==='"'?"Quote":"Apostrophe",s=n.enter("image");let l=n.enter("label");const u=n.createTracker(r);let d=u.move("![");return d+=u.move(n.safe(e.alt,{before:d,after:"]",...u.current()})),d+=u.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),d+=u.move("<"),d+=u.move(n.safe(e.url,{before:d,after:">",...u.current()})),d+=u.move(">")):(l=n.enter("destinationRaw"),d+=u.move(n.safe(e.url,{before:d,after:e.title?" ":")",...u.current()}))),l(),e.title&&(l=n.enter(`title${a}`),d+=u.move(" "+o),d+=u.move(n.safe(e.title,{before:d,after:o,...u.current()})),d+=u.move(o),l()),d+=u.move(")"),s(),d}function Ehe(){return"!"}IM.peek=xhe;function IM(e,t,n,r){const o=e.referenceType,a=n.enter("imageReference");let s=n.enter("label");const l=n.createTracker(r);let u=l.move("![");const d=n.safe(e.alt,{before:u,after:"]",...l.current()});u+=l.move(d+"]["),s();const p=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),{before:u,after:"]",...l.current()});return s(),n.stack=p,a(),o==="full"||!d||d!==h?u+=l.move(h+"]"):o==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}function xhe(){return"!"}OM.peek=The;function OM(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],l=n.compilePattern(s);let u;if(s.atBreak)for(;u=l.exec(r);){let d=u.index;r.charCodeAt(d)===10&&r.charCodeAt(d-1)===13&&d--,r=r.slice(0,d)+" "+r.slice(u.index+1)}}return o+r+o}function The(){return"`"}function NM(e,t){const n=WC(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))}PM.peek=She;function PM(e,t,n,r){const o=t_(n),a=o==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let l,u;if(NM(e,n)){const p=n.stack;n.stack=[],l=n.enter("autolink");let h=s.move("<");return h+=s.move(n.containerPhrasing(e,{before:h,after:">",...s.current()})),h+=s.move(">"),l(),n.stack=p,h}l=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(")"),l(),d}function She(e,t,n){return NM(e,n)?"<":"["}LM.peek=Che;function LM(e,t,n,r){const o=e.referenceType,a=n.enter("linkReference");let s=n.enter("label");const l=n.createTracker(r);let u=l.move("[");const d=n.containerPhrasing(e,{before:u,after:"]",...l.current()});u+=l.move(d+"]["),s();const p=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),{before:u,after:"]",...l.current()});return s(),n.stack=p,a(),o==="full"||!d||d!==h?u+=l.move(h+"]"):o==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}function Che(){return"["}function n_(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 _he(e){const t=n_(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 Ahe(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 MM(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 khe(e,t,n,r){const o=n.enter("list"),a=n.bulletCurrent;let s=e.ordered?Ahe(n):n_(n);const l=e.ordered?s==="."?")":".":_he(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),MM(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=l),n.bulletCurrent=s;const d=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=a,o(),d}function whe(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 Dhe(e,t,n,r){const o=whe(n);let a=n.bulletCurrent||n_(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 l=n.createTracker(r);l.move(a+" ".repeat(s-a.length)),l.shift(s);const u=n.enter("listItem"),d=n.indentLines(n.containerFlow(e,l.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 Rhe(e,t,n,r){const o=n.enter("paragraph"),a=n.enter("phrasing"),s=n.containerPhrasing(e,r);return a(),o(),s}const Ihe=Sb(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Ohe(e,t,n,r){return(e.children.some(function(o){return Ihe(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Nhe(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}FM.peek=Phe;function FM(e,t,n,r){const o=Nhe(n),a=n.enter("strong"),s=n.createTracker(r),l=s.move(o+o);let u=s.move(n.containerPhrasing(e,{after:o,before:l,...s.current()}));const d=u.charCodeAt(0),p=o0(r.before.charCodeAt(r.before.length-1),d,o);p.inside&&(u=fh(d)+u.slice(1));const h=u.charCodeAt(u.length-1),g=o0(r.after.charCodeAt(0),h,o);g.inside&&(u=u.slice(0,-1)+fh(h));const y=s.move(o+o);return a(),n.attentionEncodeSurroundingInfo={after:g.outside,before:p.outside},l+u+y}function Phe(e,t,n){return n.options.strong||"*"}function Lhe(e,t,n,r){return n.safe(e.value,r)}function Mhe(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 Fhe(e,t,n){const r=(MM(n)+(n.options.ruleSpaces?" ":"")).repeat(Mhe(n));return n.options.ruleSpaces?r.slice(0,-1):r}const BM={blockquote:ihe,break:$O,code:fhe,definition:hhe,emphasis:wM,hardBreak:$O,heading:bhe,html:DM,image:RM,imageReference:IM,inlineCode:OM,link:PM,linkReference:LM,list:khe,listItem:Dhe,paragraph:Rhe,root:Ohe,strong:FM,text:Lhe,thematicBreak:Fhe};function Bhe(){return{enter:{table:jhe,tableData:VO,tableHeader:VO,tableRow:Hhe},exit:{codeText:zhe,table:Uhe,tableData:XE,tableHeader:XE,tableRow:XE}}}function jhe(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 Uhe(e){this.exit(e),this.data.inTable=void 0}function Hhe(e){this.enter({type:"tableRow",children:[]},e)}function XE(e){this.exit(e)}function VO(e){this.enter({type:"tableCell",children:[]},e)}function zhe(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,$he));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function $he(e,t){return t==="|"?t:e}function Vhe(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
383
|
+
`,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:l}};function s(y,v,T,_){return d(p(y,T,_),y.align)}function l(y,v,T,_){const x=h(y,T,_),D=d([x]);return D.slice(0,D.indexOf(`
|
|
384
|
+
`))}function u(y,v,T,_){const x=T.enter("tableCell"),D=T.enter("phrasing"),C=T.containerPhrasing(y,{..._,before:a,after:a});return D(),x(),C}function d(y,v){return ohe(y,{align:v,alignDelimiters:r,padding:n,stringLength:o})}function p(y,v,T){const _=y.children;let x=-1;const D=[],C=v.enter("table");for(;++x<_.length;)D[x]=h(_[x],v,T);return C(),D}function h(y,v,T){const _=y.children;let x=-1;const D=[],C=v.enter("tableRow");for(;++x<_.length;)D[x]=u(_[x],y,v,T);return C(),D}function g(y,v,T){let _=BM.inlineCode(y,v,T);return T.stack.includes("tableCell")&&(_=_.replace(/\|/g,"\\$&")),_}}function Ghe(){return{exit:{taskListCheckValueChecked:GO,taskListCheckValueUnchecked:GO,paragraph:Whe}}}function qhe(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Yhe}}}function GO(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Whe(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 l=o[a];if(l.type==="paragraph"){s=l;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 Yhe(e,t,n,r){const o=e.children[0],a=typeof e.checked=="boolean"&&o&&o.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",l=n.createTracker(r);a&&l.move(s);let u=BM.listItem(e,t,n,{...r,...l.current()});return a&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,d)),u;function d(p){return p+s}}function Qhe(){return[kpe(),Ype(),Zpe(),Bhe(),Ghe()]}function Khe(e){return{extensions:[wpe(),Qpe(e),Jpe(),Vhe(e),qhe()]}}const Xhe={tokenize:rme,partial:!0},jM={tokenize:ome,partial:!0},UM={tokenize:ame,partial:!0},HM={tokenize:ime,partial:!0},Zhe={tokenize:sme,partial:!0},zM={name:"wwwAutolink",tokenize:tme,previous:VM},$M={name:"protocolAutolink",tokenize:nme,previous:GM},ls={name:"emailAutolink",tokenize:eme,previous:qM},Si={};function Jhe(){return{text:Si}}let Dl=48;for(;Dl<123;)Si[Dl]=ls,Dl++,Dl===58?Dl=65:Dl===91&&(Dl=97);Si[43]=ls;Si[45]=ls;Si[46]=ls;Si[95]=ls;Si[72]=[ls,$M];Si[104]=[ls,$M];Si[87]=[ls,zM];Si[119]=[ls,zM];function eme(e,t,n){const r=this;let o,a;return s;function s(h){return!AT(h)||!qM.call(r,r.previous)||r_(r.events)?n(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(h))}function l(h){return AT(h)?(e.consume(h),l):h===64?(e.consume(h),u):n(h)}function u(h){return h===46?e.check(Zhe,p,d)(h):h===45||h===95||Kr(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 tme(e,t,n){const r=this;return o;function o(s){return s!==87&&s!==119||!VM.call(r,r.previous)||r_(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Xhe,e.attempt(jM,e.attempt(UM,a),n),n)(s))}function a(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function nme(e,t,n){const r=this;let o="",a=!1;return s;function s(h){return(h===72||h===104)&&GM.call(r,r.previous)&&!r_(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(h),e.consume(h),l):n(h)}function l(h){if(io(h)&&o.length<5)return o+=String.fromCodePoint(h),e.consume(h),l;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||t0(h)||kn(h)||fc(h)||Eb(h)?n(h):e.attempt(jM,e.attempt(UM,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 ome(e,t,n){let r,o,a;return s;function s(d){return d===46||d===95?e.check(HM,u,l)(d):d===null||kn(d)||fc(d)||d!==45&&Eb(d)?u(d):(a=!0,e.consume(d),s)}function l(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 ame(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(HM,t,a)(s):s===null||kn(s)||fc(s)?t(s):(e.consume(s),o)}function a(s){return s===41&&r++,e.consume(s),o}}function ime(e,t,n){return r;function r(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),r):l===38?(e.consume(l),a):l===93?(e.consume(l),o):l===60||l===null||kn(l)||fc(l)?t(l):n(l)}function o(l){return l===null||l===40||l===91||kn(l)||fc(l)?t(l):r(l)}function a(l){return io(l)?s(l):n(l)}function s(l){return l===59?(e.consume(l),r):io(l)?(e.consume(l),s):n(l)}}function sme(e,t,n){return r;function r(a){return e.consume(a),o}function o(a){return Kr(a)?n(a):t(a)}}function VM(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||kn(e)}function GM(e){return!io(e)}function qM(e){return!(e===47||AT(e))}function AT(e){return e===43||e===45||e===46||e===95||Kr(e)}function r_(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:gme,partial:!0};function cme(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:pme,continuation:{tokenize:hme},exit:mme}},text:{91:{name:"gfmFootnoteCall",tokenize:fme},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:ume,resolveTo:dme}}}}function ume(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 l;function l(u){if(!s||!s._balanced)return n(u);const d=La(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 dme(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)},l=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",a,t],["enter",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,...l),e}function fme(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,s;return l;function l(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),u}function u(h){return h!==94?n(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",d)}function d(h){if(a>999||h===93&&!s||h===null||h===91||kn(h))return n(h);if(h===93){e.exit("chunkString");const g=e.exit("gfmFootnoteCallString");return o.includes(La(r.sliceSerialize(g)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(h)}return kn(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 pme(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=0,l;return u;function u(v){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionLabelMarker"),d}function d(v){return v===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):n(v)}function p(v){if(s>999||v===93&&!l||v===null||v===91||kn(v))return n(v);if(v===93){e.exit("chunkString");const T=e.exit("gfmFootnoteDefinitionLabelString");return a=La(r.sliceSerialize(T)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),g}return kn(v)||(l=!0),s++,e.consume(v),v===92?h:p}function h(v){return v===91||v===92||v===93?(e.consume(v),s++,p):p(v)}function g(v){return v===58?(e.enter("definitionMarker"),e.consume(v),e.exit("definitionMarker"),o.includes(a)||o.push(a),en(e,y,"gfmFootnoteDefinitionWhitespace")):n(v)}function y(v){return t(v)}}function hme(e,t,n){return e.check($h,t,e.attempt(lme,t,n))}function mme(e){e.exit("gfmFootnoteDefinition")}function gme(e,t,n){const r=this;return en(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 yme(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 l=-1;for(;++l<a.length;)if(a[l][0]==="enter"&&a[l][1].type==="strikethroughSequenceTemporary"&&a[l][1]._close){let u=l;for(;u--;)if(a[u][0]==="exit"&&a[u][1].type==="strikethroughSequenceTemporary"&&a[u][1]._open&&a[l][1].end.offset-a[l][1].start.offset===a[u][1].end.offset-a[u][1].start.offset){a[l][1].type="strikethroughSequence",a[u][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},a[u][1].start),end:Object.assign({},a[l][1].end)},p={type:"strikethroughText",start:Object.assign({},a[u][1].end),end:Object.assign({},a[l][1].start)},h=[["enter",d,s],["enter",a[u][1],s],["exit",a[u][1],s],["enter",p,s]],g=s.parser.constructs.insideSpan.null;g&&Go(h,h.length,0,xb(g,a.slice(u+1,l),s)),Go(h,h.length,0,[["exit",p,s],["enter",a[l][1],s],["exit",a[l][1],s],["exit",d,s]]),Go(a,u-1,l-u+3,h),l=u+h.length-2;break}}for(l=-1;++l<a.length;)a[l][1].type==="strikethroughSequenceTemporary"&&(a[l][1].type="data");return a}function o(a,s,l){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"?l(y):(a.enter("strikethroughSequenceTemporary"),g(y))}function g(y){const v=rd(u);if(y===126)return p>1?l(y):(a.consume(y),p++,g);if(p<2&&!t)return l(y);const T=a.exit("strikethroughSequenceTemporary"),_=rd(y);return T._open=!_||_===2&&!!v,T._close=!v||v===2&&!!_,s(y)}}}class bme{constructor(){this.map=[]}add(t,n,r){vme(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 vme(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 Eme(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 xme(){return{flow:{null:{name:"table",tokenize:Tme,resolveAll:Sme}}}}function Tme(e,t,n){const r=this;let o=0,a=0,s;return l;function l(S){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(S):z(S)}function u(S){return e.enter("tableHead"),e.enter("tableRow"),d(S)}function d(S){return S===124||(s=!0,a+=1),p(S)}function p(S){return S===null?n(S):vt(S)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),y):n(S):Qt(S)?en(e,p,"whitespace")(S):(a+=1,s&&(s=!1,o+=1),S===124?(e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),s=!0,p):(e.enter("data"),h(S)))}function h(S){return S===null||S===124||kn(S)?(e.exit("data"),p(S)):(e.consume(S),S===92?g:h)}function g(S){return S===92||S===124?(e.consume(S),h):h(S)}function y(S){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(S):(e.enter("tableDelimiterRow"),s=!1,Qt(S)?en(e,v,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):v(S))}function v(S){return S===45||S===58?_(S):S===124?(s=!0,e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),T):I(S)}function T(S){return Qt(S)?en(e,_,"whitespace")(S):_(S)}function _(S){return S===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(S),e.exit("tableDelimiterMarker"),x):S===45?(a+=1,x(S)):S===null||vt(S)?R(S):I(S)}function x(S){return S===45?(e.enter("tableDelimiterFiller"),D(S)):I(S)}function D(S){return S===45?(e.consume(S),D):S===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(S),e.exit("tableDelimiterMarker"),C):(e.exit("tableDelimiterFiller"),C(S))}function C(S){return Qt(S)?en(e,R,"whitespace")(S):R(S)}function R(S){return S===124?v(S):S===null||vt(S)?!s||o!==a?I(S):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(S)):I(S)}function I(S){return n(S)}function O(S){return e.enter("tableRow"),F(S)}function F(S){return S===124?(e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),F):S===null||vt(S)?(e.exit("tableRow"),t(S)):Qt(S)?en(e,F,"whitespace")(S):(e.enter("data"),H(S))}function H(S){return S===null||S===124||kn(S)?(e.exit("data"),F(S)):(e.consume(S),S===92?U:H)}function U(S){return S===92||S===124?(e.consume(S),H):H(S)}}function Sme(e,t){let n=-1,r=!0,o=0,a=[0,0,0,0],s=[0,0,0,0],l=!1,u=0,d,p,h;const g=new bme;for(;++n<e.length;){const y=e[n],v=y[1];y[0]==="enter"?v.type==="tableHead"?(l=!1,u!==0&&(qO(g,t,u,d,p),p=void 0,u=0),d={type:"table",start:Object.assign({},v.start),end:Object.assign({},v.end)},g.add(n,0,[["enter",d,t]])):v.type==="tableRow"||v.type==="tableDelimiterRow"?(r=!0,h=void 0,a=[0,0,0,0],s=[0,n+1,0,0],l&&(l=!1,p={type:"tableBody",start:Object.assign({},v.start),end:Object.assign({},v.end)},g.add(n,0,[["enter",p,t]])),o=v.type==="tableDelimiterRow"?2:p?3:1):o&&(v.type==="data"||v.type==="tableDelimiterMarker"||v.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(a[1]!==0&&(s[0]=s[1],h=Ig(g,t,a,o,void 0,h),a=[0,0,0,0]),s[2]=n)):v.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(s[0]=s[1],h=Ig(g,t,a,o,void 0,h)),a=s,s=[a[1],n,0,0])):v.type==="tableHead"?(l=!0,u=n):v.type==="tableRow"||v.type==="tableDelimiterRow"?(u=n,a[1]!==0?(s[0]=s[1],h=Ig(g,t,a,o,n,h)):s[1]!==0&&(h=Ig(g,t,s,o,n,h)),o=0):o&&(v.type==="data"||v.type==="tableDelimiterMarker"||v.type==="tableDelimiterFiller")&&(s[3]=n)}for(u!==0&&qO(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=Eme(t.events,n))}return e}function Ig(e,t,n,r,o,a){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",l="tableContent";n[0]!==0&&(a.end=Object.assign({},_u(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const u=_u(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=_u(t.events,n[2]),p=_u(t.events,n[3]),h={type:l,start:Object.assign({},d),end:Object.assign({},p)};if(e.add(n[2],0,[["enter",h,t]]),r!==2){const 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 v=n[2]+1,T=n[3]-n[2]-1;e.add(v,T,[])}}e.add(n[3]+1,0,[["exit",h,t]])}return o!==void 0&&(a.end=Object.assign({},_u(t.events,o)),e.add(o,0,[["exit",a,t]]),a=void 0),a}function qO(e,t,n,r,o){const a=[],s=_u(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 _u(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Cme={name:"tasklistCheck",tokenize:Ame};function _me(){return{text:{91:Cme}}}function Ame(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 kn(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"),l):n(u)}function l(u){return vt(u)?t(u):Qt(u)?e.check({tokenize:kme},t,n)(u):n(u)}}function kme(e,t,n){return en(e,r,"whitespace");function r(o){return o===null?n(o):t(o)}}function wme(e){return rM([Jhe(),cme(),yme(e),xme(),_me()])}const Dme={};function Rme(e){const t=this,n=e||Dme,r=t.data(),o=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);o.push(wme(n)),a.push(Qhe()),s.push(Khe(n))}const WO=/[#.]/g;function Ime(e,t){const n=e||"",r={};let o=0,a,s;for(;o<n.length;){WO.lastIndex=o;const l=WO.exec(n),u=n.slice(o,l?l.index:n.length);u&&(a?a==="#"?r.id=u:Array.isArray(r.className)?r.className.push(u):r.className=[u]:s=u,o+=u.length),l&&(a=l[0],o++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}function WM(e,t,n){const r=n?Lme(n):void 0;function o(a,s,...l){let u;if(a==null){u={type:"root",children:[]};const d=s;l.unshift(d)}else{u=Ime(a,t);const d=u.tagName.toLowerCase(),p=r?r.get(d):void 0;if(u.tagName=p||d,Ome(s))l.unshift(s);else for(const[h,g]of Object.entries(s))Nme(e,u.properties,h,g)}for(const d of l)kT(u.children,d);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return o}function Ome(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 Nme(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=hT(r):o.commaSeparated?a=pT(r):o.commaOrSpaceSeparated?a=hT(pT(r).join(" ")):a=YO(o,o.property,r):Array.isArray(r)?a=[...r]:a=o.property==="style"?Pme(r):String(r);if(Array.isArray(a)){const s=[];for(const l of a)s.push(YO(o,o.property,l));a=s}o.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[o.property]=a}}function kT(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)kT(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?kT(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function YO(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 Pme(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function Lme(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const Mme=["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"],Fme=WM(vd,"div"),Bme=WM(is,"g",Mme);function jme(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 l=n[s];if(l===void 0){const u=QO(t,n[s-1]);l=u===-1?t.length+1:u+1,n[s]=l}if(l>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 l=n[n.length-1],u=QO(t,l),d=u===-1?t.length+1:u+1;if(l===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 QO(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
385
|
+
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const Yl={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/"},YM={}.hasOwnProperty,Ume=Object.prototype;function Hme(e,t){const n=t||{};return o_({file:n.file||void 0,location:!1,schema:n.space==="svg"?is:vd,verbose:n.verbose||!1},e)}function o_(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},iy(e,r,n),n}case"#document":case"#document-fragment":{const r=t,o="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:QM(e,t.childNodes),data:{quirksMode:o}},e.file&&e.location){const a=String(e.file),s=jme(a),l=s.toPoint(0),u=s.toPoint(a.length);n.position={start:l,end:u}}return n}case"#documentType":{const r=t;return n={type:"doctype"},iy(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},iy(e,r,n),n}default:return n=zme(e,t),n}}function QM(e,t){let n=-1;const r=[];for(;++n<t.length;){const o=o_(e,t[n]);r.push(o)}return r}function zme(e,t){const n=e.schema;e.schema=t.namespaceURI===Yl.svg?is:vd;let r=-1;const o={};for(;++r<t.attrs.length;){const s=t.attrs[r],l=(s.prefix?s.prefix+":":"")+s.name;YM.call(Ume,l)||(o[l]=s.value)}const a=(e.schema.space==="svg"?Bme:Fme)(t.tagName,o,QM(e,t.childNodes));if(iy(e,t,a),a.tagName==="template"){const s=t,l=s.sourceCodeLocation,u=l&&l.startTag&&Iu(l.startTag),d=l&&l.endTag&&Iu(l.endTag),p=o_(e,s.content);u&&d&&e.file&&(p.position={start:u.end,end:d.start}),a.content=p}return e.schema=n,a}function iy(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=$me(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function $me(e,t,n){const r=Iu(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)YM.call(n.attrs,s)&&(a[jh(e.schema,s).property]=Iu(n.attrs[s]));n.startTag;const l=Iu(n.startTag),u=n.endTag?Iu(n.endTag):void 0,d={opening:l};u&&(d.closing=u),d.properties=a,t.data={position:d}}}return r}function Iu(e){const t=KO({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=KO({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function KO(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 KM(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 wT(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 Vme=0;const Ot=Tc(),mr=Tc(),XM=Tc(),Ge=Tc(),In=Tc(),Hu=Tc(),Bo=Tc();function Tc(){return 2**++Vme}const DT=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ot,booleanish:mr,commaOrSpaceSeparated:Bo,commaSeparated:Hu,number:Ge,overloadedBoolean:XM,spaceSeparated:In},Symbol.toStringTag,{value:"Module"})),ZE=Object.keys(DT);class a_ extends ka{constructor(t,n,r,o){let a=-1;if(super(t,n),XO(this,"space",o),typeof r=="number")for(;++a<ZE.length;){const s=ZE[a];XO(this,ZE[a],(r&DT[s])===DT[s])}}}a_.prototype.defined=!0;function XO(e,t,n){n&&(e[t]=n)}const Gme={}.hasOwnProperty;function Td(e){const t={},n={};let r;for(r in e.properties)if(Gme.call(e.properties,r)){const o=e.properties[r],a=new a_(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[wT(r)]=r,n[wT(a.attribute)]=r}return new Gh(t,n,e.space)}const ZM=Td({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}}),JM=Td({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function e6(e,t){return t in e?e[t]:t}function t6(e,t){return e6(e,t.toLowerCase())}const n6=Td({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:t6,properties:{xmlns:null,xmlnsXLink:null}}),r6=Td({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:mr,ariaAutoComplete:null,ariaBusy:mr,ariaChecked:mr,ariaColCount:Ge,ariaColIndex:Ge,ariaColSpan:Ge,ariaControls:In,ariaCurrent:null,ariaDescribedBy:In,ariaDetails:null,ariaDisabled:mr,ariaDropEffect:In,ariaErrorMessage:null,ariaExpanded:mr,ariaFlowTo:In,ariaGrabbed:mr,ariaHasPopup:null,ariaHidden:mr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:In,ariaLevel:Ge,ariaLive:null,ariaModal:mr,ariaMultiLine:mr,ariaMultiSelectable:mr,ariaOrientation:null,ariaOwns:In,ariaPlaceholder:null,ariaPosInSet:Ge,ariaPressed:mr,ariaReadOnly:mr,ariaRelevant:null,ariaRequired:mr,ariaRoleDescription:In,ariaRowCount:Ge,ariaRowIndex:Ge,ariaRowSpan:Ge,ariaSelected:mr,ariaSetSize:Ge,ariaSort:null,ariaValueMax:Ge,ariaValueMin:Ge,ariaValueNow:Ge,ariaValueText:null,role:null}}),qme=Td({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:t6,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Hu,acceptCharset:In,accessKey:In,action:null,allow:null,allowFullScreen:Ot,allowPaymentRequest:Ot,allowUserMedia:Ot,alt:null,as:null,async:Ot,autoCapitalize:null,autoComplete:In,autoFocus:Ot,autoPlay:Ot,blocking:In,capture:null,charSet:null,checked:Ot,cite:null,className:In,cols:Ge,colSpan:null,content:null,contentEditable:mr,controls:Ot,controlsList:In,coords:Ge|Hu,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ot,defer:Ot,dir:null,dirName:null,disabled:Ot,download:XM,draggable:mr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ot,formTarget:null,headers:In,height:Ge,hidden:Ot,high:Ge,href:null,hrefLang:null,htmlFor:In,httpEquiv:In,id:null,imageSizes:null,imageSrcSet:null,inert:Ot,inputMode:null,integrity:null,is:null,isMap:Ot,itemId:null,itemProp:In,itemRef:In,itemScope:Ot,itemType:In,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ot,low:Ge,manifest:null,max:null,maxLength:Ge,media:null,method:null,min:null,minLength:Ge,multiple:Ot,muted:Ot,name:null,nonce:null,noModule:Ot,noValidate:Ot,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:Ot,optimum:Ge,pattern:null,ping:In,placeholder:null,playsInline:Ot,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ot,referrerPolicy:null,rel:In,required:Ot,reversed:Ot,rows:Ge,rowSpan:Ge,sandbox:In,scope:null,scoped:Ot,seamless:Ot,selected:Ot,shadowRootClonable:Ot,shadowRootDelegatesFocus:Ot,shadowRootMode:null,shape:null,size:Ge,sizes:null,slot:null,span:Ge,spellCheck:mr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ge,step:null,style:null,tabIndex:Ge,target:null,title:null,translate:null,type:null,typeMustMatch:Ot,useMap:null,value:mr,width:Ge,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:In,axis:null,background:null,bgColor:null,border:Ge,borderColor:null,bottomMargin:Ge,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ot,declare:Ot,event:null,face:null,frame:null,frameBorder:null,hSpace:Ge,leftMargin:Ge,link:null,longDesc:null,lowSrc:null,marginHeight:Ge,marginWidth:Ge,noResize:Ot,noHref:Ot,noShade:Ot,noWrap:Ot,object:null,profile:null,prompt:null,rev:null,rightMargin:Ge,rules:null,scheme:null,scrolling:mr,standby:null,summary:null,text:null,topMargin:Ge,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ge,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ot,disableRemotePlayback:Ot,prefix:null,property:null,results:Ge,security:null,unselectable:null}}),Wme=Td({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:e6,properties:{about:Bo,accentHeight:Ge,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ge,amplitude:Ge,arabicForm:null,ascent:Ge,attributeName:null,attributeType:null,azimuth:Ge,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ge,by:null,calcMode:null,capHeight:Ge,className: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:Ge,diffuseConstant:Ge,direction:null,display:null,dur:null,divisor:Ge,dominantBaseline:null,download:Ot,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ge,enableBackground:null,end:null,event:null,exponent:Ge,externalResourcesRequired:null,fill:null,fillOpacity:Ge,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Hu,g2:Hu,glyphName:Hu,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ge,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ge,horizOriginX:Ge,horizOriginY:Ge,id:null,ideographic:Ge,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ge,k:Ge,k1:Ge,k2:Ge,k3:Ge,k4:Ge,kernelMatrix:Bo,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ge,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Ge,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Ge,overlineThickness:Ge,paintOrder:null,panose1:null,path:null,pathLength:Ge,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:In,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ge,pointsAtY:Ge,pointsAtZ:Ge,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:Ge,specularExponent:Ge,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ge,strikethroughThickness:Ge,string:null,stroke:null,strokeDashArray:Bo,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ge,strokeOpacity:Ge,strokeWidth:null,style:null,surfaceScale:Ge,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Bo,tabIndex:Ge,tableValues:null,target:null,targetX:Ge,targetY:Ge,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Bo,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ge,underlineThickness:Ge,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ge,values:null,vAlphabetic:Ge,vMathematical:Ge,vectorEffect:null,vHanging:Ge,vIdeographic:Ge,version:null,vertAdvY:Ge,vertOriginX:Ge,vertOriginY:Ge,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ge,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Yme=/^data[-\w.:]+$/i,ZO=/-[a-z]/g,Qme=/[A-Z]/g;function Kme(e,t){const n=wT(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"&&Yme.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(ZO,Zme);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!ZO.test(a)){let s=a.replace(Qme,Xme);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}o=a_}return new o(r,t)}function Xme(e){return"-"+e.toLowerCase()}function Zme(e){return e.charAt(1).toUpperCase()}const Jme=KM([JM,ZM,n6,r6,qme],"html"),o6=KM([JM,ZM,n6,r6,Wme],"svg"),ege={},tge={}.hasOwnProperty,a6=db("type",{handlers:{root:rge,element:lge,text:ige,comment:sge,doctype:age}});function nge(e,t){const n=(t||ege).space;return a6(e,n==="svg"?o6:Jme)}function rge(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=i_(e.children,n,t),Sd(e,n),n}function oge(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=i_(e.children,n,t),Sd(e,n),n}function age(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Sd(e,t),t}function ige(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Sd(e,t),t}function sge(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Sd(e,t),t}function lge(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=o6);const o=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&tge.call(e.properties,a)){const u=cge(r,a,e.properties[a]);u&&o.push(u)}}const s=r.space,l={nodeName:e.tagName,tagName:e.tagName,attrs:o,namespaceURI:Yl[s],childNodes:[],parentNode:null};return l.childNodes=i_(e.children,l,r),Sd(e,l),e.tagName==="template"&&e.content&&(l.content=oge(e.content,r)),l}function cge(e,t,n){const r=Kme(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?fb(n):pb(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=Yl[r.space]}return o}function i_(e,t,n){let r=-1;const o=[];if(e)for(;++r<e.length;){const a=a6(e[r],n);a.parentNode=t,o.push(a)}return o}function Sd(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 uge=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]),zn="�";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 go={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function i6(e){return e>=55296&&e<=57343}function dge(e){return e>=56320&&e<=57343}function fge(e,t){return(e-55296)*1024+9216+t}function s6(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function l6(e){return e>=64976&&e<=65007||uge.has(e)}var Se;(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"})(Se||(Se={}));const pge=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=pge,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,l=a+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:l,endOffset:l}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(dge(n))return this.pos++,this._addGap(),fge(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,V.EOF;return this._err(Se.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,i6(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){s6(t)?this._err(Se.controlCharacterInInputStream):l6(t)&&this._err(Se.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var $t;(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"})($t||($t={}));function c6(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 mge=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))),gge=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function yge(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=gge.get(e))!==null&&t!==void 0?t:e}var Or;(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"})(Or||(Or={}));const bge=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 RT(e){return e>=Or.ZERO&&e<=Or.NINE}function vge(e){return e>=Or.UPPER_A&&e<=Or.UPPER_F||e>=Or.LOWER_A&&e<=Or.LOWER_F}function Ege(e){return e>=Or.UPPER_A&&e<=Or.UPPER_Z||e>=Or.LOWER_A&&e<=Or.LOWER_Z||RT(e)}function xge(e){return e===Or.EQUALS||Ege(e)}var Rr;(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"})(Rr||(Rr={}));var Zi;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Zi||(Zi={}));class Tge{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Rr.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Zi.Strict}startEntity(t){this.decodeMode=t,this.state=Rr.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Rr.EntityStart:return t.charCodeAt(n)===Or.NUM?(this.state=Rr.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Rr.NamedEntity,this.stateNamedEntity(t,n));case Rr.NumericStart:return this.stateNumericStart(t,n);case Rr.NumericDecimal:return this.stateNumericDecimal(t,n);case Rr.NumericHex:return this.stateNumericHex(t,n);case Rr.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|bge)===Or.LOWER_X?(this.state=Rr.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Rr.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,o){if(n!==r){const a=r-n;this.result=this.result*Math.pow(o,a)+Number.parseInt(t.substr(n,a),o),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const o=t.charCodeAt(n);if(RT(o)||vge(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(RT(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===Or.SEMI)this.consumed+=1;else if(this.decodeMode===Zi.Strict)return 0;return this.emitCodePoint(yge(this.result),this.consumed),this.errors&&(t!==Or.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=Sge(r,o,this.treeIndex+Math.max(1,a),s),this.treeIndex<0)return this.result===0||this.decodeMode===Zi.Attribute&&(a===0||xge(s))?0:this.emitNotTerminatedNamedEntity();if(o=r[this.treeIndex],a=(o&qs.VALUE_LENGTH)>>14,a!==0){if(s===Or.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==Zi.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 Rr.NamedEntity:return this.result!==0&&(this.decodeMode!==Zi.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Rr.NumericDecimal:return this.emitNumericEntity(0,2);case Rr.NumericHex:return this.emitNumericEntity(0,3);case Rr.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Rr.EntityStart:return 0}}}function Sge(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,l=s+o-1;for(;s<=l;){const u=s+l>>>1,d=e[u];if(d<r)s=u+1;else if(d>r)l=u-1;else return e[u+o]}return-1}var Pe;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(Pe||(Pe={}));var tc;(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"})(tc||(tc={}));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 k;(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"})(k||(k={}));const Cge=new Map([[fe.A,k.A],[fe.ADDRESS,k.ADDRESS],[fe.ANNOTATION_XML,k.ANNOTATION_XML],[fe.APPLET,k.APPLET],[fe.AREA,k.AREA],[fe.ARTICLE,k.ARTICLE],[fe.ASIDE,k.ASIDE],[fe.B,k.B],[fe.BASE,k.BASE],[fe.BASEFONT,k.BASEFONT],[fe.BGSOUND,k.BGSOUND],[fe.BIG,k.BIG],[fe.BLOCKQUOTE,k.BLOCKQUOTE],[fe.BODY,k.BODY],[fe.BR,k.BR],[fe.BUTTON,k.BUTTON],[fe.CAPTION,k.CAPTION],[fe.CENTER,k.CENTER],[fe.CODE,k.CODE],[fe.COL,k.COL],[fe.COLGROUP,k.COLGROUP],[fe.DD,k.DD],[fe.DESC,k.DESC],[fe.DETAILS,k.DETAILS],[fe.DIALOG,k.DIALOG],[fe.DIR,k.DIR],[fe.DIV,k.DIV],[fe.DL,k.DL],[fe.DT,k.DT],[fe.EM,k.EM],[fe.EMBED,k.EMBED],[fe.FIELDSET,k.FIELDSET],[fe.FIGCAPTION,k.FIGCAPTION],[fe.FIGURE,k.FIGURE],[fe.FONT,k.FONT],[fe.FOOTER,k.FOOTER],[fe.FOREIGN_OBJECT,k.FOREIGN_OBJECT],[fe.FORM,k.FORM],[fe.FRAME,k.FRAME],[fe.FRAMESET,k.FRAMESET],[fe.H1,k.H1],[fe.H2,k.H2],[fe.H3,k.H3],[fe.H4,k.H4],[fe.H5,k.H5],[fe.H6,k.H6],[fe.HEAD,k.HEAD],[fe.HEADER,k.HEADER],[fe.HGROUP,k.HGROUP],[fe.HR,k.HR],[fe.HTML,k.HTML],[fe.I,k.I],[fe.IMG,k.IMG],[fe.IMAGE,k.IMAGE],[fe.INPUT,k.INPUT],[fe.IFRAME,k.IFRAME],[fe.KEYGEN,k.KEYGEN],[fe.LABEL,k.LABEL],[fe.LI,k.LI],[fe.LINK,k.LINK],[fe.LISTING,k.LISTING],[fe.MAIN,k.MAIN],[fe.MALIGNMARK,k.MALIGNMARK],[fe.MARQUEE,k.MARQUEE],[fe.MATH,k.MATH],[fe.MENU,k.MENU],[fe.META,k.META],[fe.MGLYPH,k.MGLYPH],[fe.MI,k.MI],[fe.MO,k.MO],[fe.MN,k.MN],[fe.MS,k.MS],[fe.MTEXT,k.MTEXT],[fe.NAV,k.NAV],[fe.NOBR,k.NOBR],[fe.NOFRAMES,k.NOFRAMES],[fe.NOEMBED,k.NOEMBED],[fe.NOSCRIPT,k.NOSCRIPT],[fe.OBJECT,k.OBJECT],[fe.OL,k.OL],[fe.OPTGROUP,k.OPTGROUP],[fe.OPTION,k.OPTION],[fe.P,k.P],[fe.PARAM,k.PARAM],[fe.PLAINTEXT,k.PLAINTEXT],[fe.PRE,k.PRE],[fe.RB,k.RB],[fe.RP,k.RP],[fe.RT,k.RT],[fe.RTC,k.RTC],[fe.RUBY,k.RUBY],[fe.S,k.S],[fe.SCRIPT,k.SCRIPT],[fe.SEARCH,k.SEARCH],[fe.SECTION,k.SECTION],[fe.SELECT,k.SELECT],[fe.SOURCE,k.SOURCE],[fe.SMALL,k.SMALL],[fe.SPAN,k.SPAN],[fe.STRIKE,k.STRIKE],[fe.STRONG,k.STRONG],[fe.STYLE,k.STYLE],[fe.SUB,k.SUB],[fe.SUMMARY,k.SUMMARY],[fe.SUP,k.SUP],[fe.TABLE,k.TABLE],[fe.TBODY,k.TBODY],[fe.TEMPLATE,k.TEMPLATE],[fe.TEXTAREA,k.TEXTAREA],[fe.TFOOT,k.TFOOT],[fe.TD,k.TD],[fe.TH,k.TH],[fe.THEAD,k.THEAD],[fe.TITLE,k.TITLE],[fe.TR,k.TR],[fe.TRACK,k.TRACK],[fe.TT,k.TT],[fe.U,k.U],[fe.UL,k.UL],[fe.SVG,k.SVG],[fe.VAR,k.VAR],[fe.WBR,k.WBR],[fe.XMP,k.XMP]]);function Cd(e){var t;return(t=Cge.get(e))!==null&&t!==void 0?t:k.UNKNOWN}const je=k,_ge={[Pe.HTML]:new Set([je.ADDRESS,je.APPLET,je.AREA,je.ARTICLE,je.ASIDE,je.BASE,je.BASEFONT,je.BGSOUND,je.BLOCKQUOTE,je.BODY,je.BR,je.BUTTON,je.CAPTION,je.CENTER,je.COL,je.COLGROUP,je.DD,je.DETAILS,je.DIR,je.DIV,je.DL,je.DT,je.EMBED,je.FIELDSET,je.FIGCAPTION,je.FIGURE,je.FOOTER,je.FORM,je.FRAME,je.FRAMESET,je.H1,je.H2,je.H3,je.H4,je.H5,je.H6,je.HEAD,je.HEADER,je.HGROUP,je.HR,je.HTML,je.IFRAME,je.IMG,je.INPUT,je.LI,je.LINK,je.LISTING,je.MAIN,je.MARQUEE,je.MENU,je.META,je.NAV,je.NOEMBED,je.NOFRAMES,je.NOSCRIPT,je.OBJECT,je.OL,je.P,je.PARAM,je.PLAINTEXT,je.PRE,je.SCRIPT,je.SECTION,je.SELECT,je.SOURCE,je.STYLE,je.SUMMARY,je.TABLE,je.TBODY,je.TD,je.TEMPLATE,je.TEXTAREA,je.TFOOT,je.TH,je.THEAD,je.TITLE,je.TR,je.TRACK,je.UL,je.WBR,je.XMP]),[Pe.MATHML]:new Set([je.MI,je.MO,je.MN,je.MS,je.MTEXT,je.ANNOTATION_XML]),[Pe.SVG]:new Set([je.TITLE,je.FOREIGN_OBJECT,je.DESC]),[Pe.XLINK]:new Set,[Pe.XML]:new Set,[Pe.XMLNS]:new Set},IT=new Set([je.H1,je.H2,je.H3,je.H4,je.H5,je.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 sr={DATA:W.DATA,RCDATA:W.RCDATA,RAWTEXT:W.RAWTEXT,SCRIPT_DATA:W.SCRIPT_DATA,PLAINTEXT:W.PLAINTEXT,CDATA_SECTION:W.CDATA_SECTION};function Age(e){return e>=V.DIGIT_0&&e<=V.DIGIT_9}function sp(e){return e>=V.LATIN_CAPITAL_A&&e<=V.LATIN_CAPITAL_Z}function kge(e){return e>=V.LATIN_SMALL_A&&e<=V.LATIN_SMALL_Z}function js(e){return kge(e)||sp(e)}function JO(e){return js(e)||Age(e)}function Og(e){return e+32}function u6(e){return e===V.SPACE||e===V.LINE_FEED||e===V.TABULATION||e===V.FORM_FEED}function eN(e){return u6(e)||e===V.SOLIDUS||e===V.GREATER_THAN_SIGN}function wge(e){return e===V.NULL?Se.nullCharacterReference:e>1114111?Se.characterReferenceOutsideUnicodeRange:i6(e)?Se.surrogateCharacterReference:l6(e)?Se.noncharacterCharacterReference:s6(e)||e===V.CARRIAGE_RETURN?Se.controlCharacterReference:null}class Dge{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 Tge(mge,(r,o)=>{this.preprocessor.pos=this.entityStartPos+o-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Se.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(Se.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const o=wge(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:$t.START_TAG,tagName:"",tagID:k.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:$t.END_TAG,tagName:"",tagID:k.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:$t.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:$t.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(c6(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(Se.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=Cd(t.tagName),t.type===$t.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(Se.endTagWithAttributes),t.selfClosing&&this._err(Se.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 $t.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case $t.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case $t.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:$t.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=u6(t)?$t.WHITESPACE_CHARACTER:t===V.NULL?$t.NULL_CHARACTER:$t.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken($t.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=W.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Zi.Attribute:Zi.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(Se.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(Se.unexpectedNullCharacter),this._emitChars(zn);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(Se.unexpectedNullCharacter),this._emitChars(zn);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(Se.unexpectedNullCharacter),this._emitChars(zn);break}case V.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case V.NULL:{this._err(Se.unexpectedNullCharacter),this._emitChars(zn);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(Se.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=W.BOGUS_COMMENT,this._stateBogusComment(t);break}case V.EOF:{this._err(Se.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Se.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(Se.missingEndTagName),this.state=W.DATA;break}case V.EOF:{this._err(Se.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(Se.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(Se.unexpectedNullCharacter),n.tagName+=zn;break}case V.EOF:{this._err(Se.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(sp(t)?Og(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(Se.unexpectedNullCharacter),this._emitChars(zn);break}case V.EOF:{this._err(Se.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(Se.unexpectedNullCharacter),this.state=W.SCRIPT_DATA_ESCAPED,this._emitChars(zn);break}case V.EOF:{this._err(Se.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(Se.unexpectedNullCharacter),this.state=W.SCRIPT_DATA_ESCAPED,this._emitChars(zn);break}case V.EOF:{this._err(Se.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(go.SCRIPT,!1)&&eN(this.preprocessor.peek(go.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<go.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(Se.unexpectedNullCharacter),this._emitChars(zn);break}case V.EOF:{this._err(Se.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(Se.unexpectedNullCharacter),this.state=W.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(zn);break}case V.EOF:{this._err(Se.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(Se.unexpectedNullCharacter),this.state=W.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(zn);break}case V.EOF:{this._err(Se.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(go.SCRIPT,!1)&&eN(this.preprocessor.peek(go.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<go.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(Se.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(Se.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case V.NULL:{this._err(Se.unexpectedNullCharacter),this.currentAttr.name+=zn;break}default:this.currentAttr.name+=String.fromCodePoint(sp(t)?Og(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(Se.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(Se.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(Se.unexpectedNullCharacter),this.currentAttr.value+=zn;break}case V.EOF:{this._err(Se.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(Se.unexpectedNullCharacter),this.currentAttr.value+=zn;break}case V.EOF:{this._err(Se.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(Se.unexpectedNullCharacter),this.currentAttr.value+=zn;break}case V.QUOTATION_MARK:case V.APOSTROPHE:case V.LESS_THAN_SIGN:case V.EQUALS_SIGN:case V.GRAVE_ACCENT:{this._err(Se.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case V.EOF:{this._err(Se.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(Se.eofInTag),this._emitEOFToken();break}default:this._err(Se.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(Se.eofInTag),this._emitEOFToken();break}default:this._err(Se.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(Se.unexpectedNullCharacter),n.data+=zn;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(go.DASH_DASH,!0)?(this._createCommentToken(go.DASH_DASH.length+1),this.state=W.COMMENT_START):this._consumeSequenceIfMatch(go.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(go.DOCTYPE.length+1),this.state=W.DOCTYPE):this._consumeSequenceIfMatch(go.CDATA_START,!0)?this.inForeignNode?this.state=W.CDATA_SECTION:(this._err(Se.cdataInHtmlContent),this._createCommentToken(go.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=W.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Se.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(Se.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(Se.abruptClosingOfEmptyComment),this.state=W.DATA,this.emitCurrentComment(n);break}case V.EOF:{this._err(Se.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(Se.unexpectedNullCharacter),n.data+=zn;break}case V.EOF:{this._err(Se.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(Se.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(Se.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(Se.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(Se.incorrectlyClosedComment),this.state=W.DATA,this.emitCurrentComment(n);break}case V.EOF:{this._err(Se.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(Se.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Se.missingWhitespaceBeforeDoctypeName),this.state=W.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(sp(t))this._createDoctypeToken(String.fromCharCode(Og(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(Se.unexpectedNullCharacter),this._createDoctypeToken(zn),this.state=W.DOCTYPE_NAME;break}case V.GREATER_THAN_SIGN:{this._err(Se.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=W.DATA;break}case V.EOF:{this._err(Se.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(Se.unexpectedNullCharacter),n.name+=zn;break}case V.EOF:{this._err(Se.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(sp(t)?Og(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(Se.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(go.PUBLIC,!1)?this.state=W.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(go.SYSTEM,!1)?this.state=W.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Se.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(Se.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=W.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case V.APOSTROPHE:{this._err(Se.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=W.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case V.GREATER_THAN_SIGN:{this._err(Se.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=W.DATA,this.emitCurrentDoctype(n);break}case V.EOF:{this._err(Se.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Se.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(Se.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=W.DATA,this.emitCurrentDoctype(n);break}case V.EOF:{this._err(Se.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Se.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(Se.unexpectedNullCharacter),n.publicId+=zn;break}case V.GREATER_THAN_SIGN:{this._err(Se.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=W.DATA;break}case V.EOF:{this._err(Se.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(Se.unexpectedNullCharacter),n.publicId+=zn;break}case V.GREATER_THAN_SIGN:{this._err(Se.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=W.DATA;break}case V.EOF:{this._err(Se.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(Se.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=W.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case V.APOSTROPHE:{this._err(Se.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=W.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case V.EOF:{this._err(Se.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Se.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(Se.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Se.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(Se.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=W.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case V.APOSTROPHE:{this._err(Se.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=W.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case V.GREATER_THAN_SIGN:{this._err(Se.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=W.DATA,this.emitCurrentDoctype(n);break}case V.EOF:{this._err(Se.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Se.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(Se.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=W.DATA,this.emitCurrentDoctype(n);break}case V.EOF:{this._err(Se.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Se.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(Se.unexpectedNullCharacter),n.systemId+=zn;break}case V.GREATER_THAN_SIGN:{this._err(Se.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=W.DATA;break}case V.EOF:{this._err(Se.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(Se.unexpectedNullCharacter),n.systemId+=zn;break}case V.GREATER_THAN_SIGN:{this._err(Se.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=W.DATA;break}case V.EOF:{this._err(Se.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(Se.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Se.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(Se.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(Se.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()&&JO(this.preprocessor.peek(1))?W.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){JO(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===V.SEMICOLON&&this._err(Se.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const d6=new Set([k.DD,k.DT,k.LI,k.OPTGROUP,k.OPTION,k.P,k.RB,k.RP,k.RT,k.RTC]),tN=new Set([...d6,k.CAPTION,k.COLGROUP,k.TBODY,k.TD,k.TFOOT,k.TH,k.THEAD,k.TR]),a0=new Set([k.APPLET,k.CAPTION,k.HTML,k.MARQUEE,k.OBJECT,k.TABLE,k.TD,k.TEMPLATE,k.TH]),Rge=new Set([...a0,k.OL,k.UL]),Ige=new Set([...a0,k.BUTTON]),nN=new Set([k.ANNOTATION_XML,k.MI,k.MN,k.MO,k.MS,k.MTEXT]),rN=new Set([k.DESC,k.FOREIGN_OBJECT,k.TITLE]),Oge=new Set([k.TR,k.TEMPLATE,k.HTML]),Nge=new Set([k.TBODY,k.TFOOT,k.THEAD,k.TEMPLATE,k.HTML]),Pge=new Set([k.TABLE,k.TEMPLATE,k.HTML]),Lge=new Set([k.TD,k.TH]);class Mge{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=k.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===k.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Pe.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const o=this._indexOf(t)+1;this.items.splice(o,0,n),this.tagIDs.splice(o,0,r),this.stackTop++,o===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,o===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==Pe.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(IT,Pe.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Lge,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(Pge,Pe.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Nge,Pe.HTML)}clearBackToTableRowContext(){this.clearBackTo(Oge,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]===k.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]===k.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(rN.has(o))return!1;break}case Pe.MATHML:{if(nN.has(o))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,a0)}hasInListItemScope(t){return this.hasInDynamicScope(t,Rge)}hasInButtonScope(t){return this.hasInDynamicScope(t,Ige)}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(IT.has(n))return!0;if(a0.has(n))return!1;break}case Pe.SVG:{if(rN.has(n))return!1;break}case Pe.MATHML:{if(nN.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 k.TABLE:case k.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 k.TBODY:case k.THEAD:case k.TFOOT:return!0;case k.TABLE:case k.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 k.OPTION:case k.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&d6.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&tN.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&tN.has(this.currentTagId);)this.pop()}}const JE=3;var li;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(li||(li={}));const oN={type:li.Marker};class Fge{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 l=0;l<this.entries.length;l++){const u=this.entries[l];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:l,attrs:p})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<JE)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<JE)return;const o=new Map(n.map(s=>[s.name,s.value]));let a=0;for(let s=0;s<r.length;s++){const l=r[s];l.attrs.every(u=>o.get(u.name)===u.value)&&(a+=1,a>=JE&&this.entries.splice(l.idx,1))}}insertMarker(){this.entries.unshift(oN)}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!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(oN);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}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}}},f6="html",Bge="about:legacy-compat",jge="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",p6=["+//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//"],Uge=[...p6,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Hge=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),h6=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],zge=[...h6,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function aN(e,t){return t.some(n=>e.startsWith(n))}function $ge(e){return e.name===f6&&e.publicId===null&&(e.systemId===null||e.systemId===Bge)}function Vge(e){if(e.name!==f6)return ya.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===jge)return ya.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),Hge.has(n))return ya.QUIRKS;let r=t===null?Uge:p6;if(aN(n,r))return ya.QUIRKS;if(r=t===null?h6:zge,aN(n,r))return ya.LIMITED_QUIRKS}return ya.NO_QUIRKS}const iN={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Gge="definitionurl",qge="definitionURL",Wge=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])),Yge=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}]]),Qge=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])),Kge=new Set([k.B,k.BIG,k.BLOCKQUOTE,k.BODY,k.BR,k.CENTER,k.CODE,k.DD,k.DIV,k.DL,k.DT,k.EM,k.EMBED,k.H1,k.H2,k.H3,k.H4,k.H5,k.H6,k.HEAD,k.HR,k.I,k.IMG,k.LI,k.LISTING,k.MENU,k.META,k.NOBR,k.OL,k.P,k.PRE,k.RUBY,k.S,k.SMALL,k.SPAN,k.STRONG,k.STRIKE,k.SUB,k.SUP,k.TABLE,k.TT,k.U,k.UL,k.VAR]);function Xge(e){const t=e.tagID;return t===k.FONT&&e.attrs.some(({name:n})=>n===tc.COLOR||n===tc.SIZE||n===tc.FACE)||Kge.has(t)}function m6(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===Gge){e.attrs[t].name=qge;break}}function g6(e){for(let t=0;t<e.attrs.length;t++){const n=Wge.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function s_(e){for(let t=0;t<e.attrs.length;t++){const n=Yge.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 Zge(e){const t=Qge.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Cd(e.tagName))}function Jge(e,t){return t===Pe.MATHML&&(e===k.MI||e===k.MO||e===k.MN||e===k.MS||e===k.MTEXT)}function eye(e,t,n){if(t===Pe.MATHML&&e===k.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===tc.ENCODING){const o=n[r].value.toLowerCase();return o===iN.TEXT_HTML||o===iN.APPLICATION_XML}}return t===Pe.SVG&&(e===k.FOREIGN_OBJECT||e===k.DESC||e===k.TITLE)}function tye(e,t,n,r){return(!r||r===Pe.HTML)&&eye(e,t,n)||(!r||r===Pe.MATHML)&&Jge(e,t)}const nye="hidden",rye=8,oye=3;var Z;(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"})(Z||(Z={}));const aye={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},y6=new Set([k.TABLE,k.TBODY,k.TFOOT,k.THEAD,k.TR]),sN={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Us,onParseError:null};class lN{constructor(t,n,r=null,o=null){this.fragmentContext=r,this.scriptHandler=o,this.currentToken=null,this.stopped=!1,this.insertionMode=Z.INITIAL,this.originalInsertionMode=Z.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={...sN,...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 Dge(this.options,this),this.activeFormattingElements=new Fge(this.treeAdapter),this.fragmentContextID=r?Cd(this.treeAdapter.getTagName(r)):k.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new Mge(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={...sN,...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===k.TEMPLATE&&a.tmplInsertionModeStack.unshift(Z.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:aye,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||t&&this.treeAdapter.getNamespaceURI(t)===Pe.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,Pe.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=Z.TEXT}switchToPlaintextParsing(){this.insertionMode=Z.TEXT,this.originalInsertionMode=Z.IN_BODY,this.tokenizer.state=sr.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 k.TITLE:case k.TEXTAREA:{this.tokenizer.state=sr.RCDATA;break}case k.STYLE:case k.XMP:case k.IFRAME:case k.NOEMBED:case k.NOFRAMES:case k.NOSCRIPT:{this.tokenizer.state=sr.RAWTEXT;break}case k.SCRIPT:{this.tokenizer.state=sr.SCRIPT_DATA;break}case k.PLAINTEXT:{this.tokenizer.state=sr.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??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,Pe.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,Pe.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(fe.HTML,Pe.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,k.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:l,endCol:u,endOffset:d}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:l,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===$t.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===k.SVG&&this.treeAdapter.getTagName(n)===fe.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===Pe.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===k.MGLYPH||t.tagID===k.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,Pe.HTML)}_processToken(t){switch(t.type){case $t.CHARACTER:{this.onCharacter(t);break}case $t.NULL_CHARACTER:{this.onNullCharacter(t);break}case $t.COMMENT:{this.onComment(t);break}case $t.DOCTYPE:{this.onDoctype(t);break}case $t.START_TAG:{this._processStartTag(t);break}case $t.END_TAG:{this.onEndTag(t);break}case $t.EOF:{this.onEof(t);break}case $t.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const o=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return tye(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===-1?t-1:n-1;for(let o=r;o>=0;o--){const a=this.activeFormattingElements.entries[o];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Z.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(k.P),this.openElements.popUntilTagNamePopped(k.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case k.TR:{this.insertionMode=Z.IN_ROW;return}case k.TBODY:case k.THEAD:case k.TFOOT:{this.insertionMode=Z.IN_TABLE_BODY;return}case k.CAPTION:{this.insertionMode=Z.IN_CAPTION;return}case k.COLGROUP:{this.insertionMode=Z.IN_COLUMN_GROUP;return}case k.TABLE:{this.insertionMode=Z.IN_TABLE;return}case k.BODY:{this.insertionMode=Z.IN_BODY;return}case k.FRAMESET:{this.insertionMode=Z.IN_FRAMESET;return}case k.SELECT:{this._resetInsertionModeForSelect(t);return}case k.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case k.HTML:{this.insertionMode=this.headElement?Z.AFTER_HEAD:Z.BEFORE_HEAD;return}case k.TD:case k.TH:{if(t>0){this.insertionMode=Z.IN_CELL;return}break}case k.HEAD:{if(t>0){this.insertionMode=Z.IN_HEAD;return}break}}this.insertionMode=Z.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===k.TEMPLATE)break;if(r===k.TABLE){this.insertionMode=Z.IN_SELECT_IN_TABLE;return}}this.insertionMode=Z.IN_SELECT}_isElementCausesFosterParenting(t){return y6.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case k.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===Pe.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case k.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 _ge[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){L0e(this,t);return}switch(this.insertionMode){case Z.INITIAL:{Wf(this,t);break}case Z.BEFORE_HTML:{kp(this,t);break}case Z.BEFORE_HEAD:{wp(this,t);break}case Z.IN_HEAD:{Dp(this,t);break}case Z.IN_HEAD_NO_SCRIPT:{Rp(this,t);break}case Z.AFTER_HEAD:{Ip(this,t);break}case Z.IN_BODY:case Z.IN_CAPTION:case Z.IN_CELL:case Z.IN_TEMPLATE:{v6(this,t);break}case Z.TEXT:case Z.IN_SELECT:case Z.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case Z.IN_TABLE:case Z.IN_TABLE_BODY:case Z.IN_ROW:{ex(this,t);break}case Z.IN_TABLE_TEXT:{_6(this,t);break}case Z.IN_COLUMN_GROUP:{i0(this,t);break}case Z.AFTER_BODY:{s0(this,t);break}case Z.AFTER_AFTER_BODY:{sy(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){P0e(this,t);return}switch(this.insertionMode){case Z.INITIAL:{Wf(this,t);break}case Z.BEFORE_HTML:{kp(this,t);break}case Z.BEFORE_HEAD:{wp(this,t);break}case Z.IN_HEAD:{Dp(this,t);break}case Z.IN_HEAD_NO_SCRIPT:{Rp(this,t);break}case Z.AFTER_HEAD:{Ip(this,t);break}case Z.TEXT:{this._insertCharacters(t);break}case Z.IN_TABLE:case Z.IN_TABLE_BODY:case Z.IN_ROW:{ex(this,t);break}case Z.IN_COLUMN_GROUP:{i0(this,t);break}case Z.AFTER_BODY:{s0(this,t);break}case Z.AFTER_AFTER_BODY:{sy(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){OT(this,t);return}switch(this.insertionMode){case Z.INITIAL:case Z.BEFORE_HTML:case Z.BEFORE_HEAD:case Z.IN_HEAD:case Z.IN_HEAD_NO_SCRIPT:case Z.AFTER_HEAD:case Z.IN_BODY:case Z.IN_TABLE:case Z.IN_CAPTION:case Z.IN_COLUMN_GROUP:case Z.IN_TABLE_BODY:case Z.IN_ROW:case Z.IN_CELL:case Z.IN_SELECT:case Z.IN_SELECT_IN_TABLE:case Z.IN_TEMPLATE:case Z.IN_FRAMESET:case Z.AFTER_FRAMESET:{OT(this,t);break}case Z.IN_TABLE_TEXT:{Yf(this,t);break}case Z.AFTER_BODY:{fye(this,t);break}case Z.AFTER_AFTER_BODY:case Z.AFTER_AFTER_FRAMESET:{pye(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case Z.INITIAL:{hye(this,t);break}case Z.BEFORE_HEAD:case Z.IN_HEAD:case Z.IN_HEAD_NO_SCRIPT:case Z.AFTER_HEAD:{this._err(t,Se.misplacedDoctype);break}case Z.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,Se.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?M0e(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case Z.INITIAL:{Wf(this,t);break}case Z.BEFORE_HTML:{mye(this,t);break}case Z.BEFORE_HEAD:{yye(this,t);break}case Z.IN_HEAD:{$a(this,t);break}case Z.IN_HEAD_NO_SCRIPT:{Eye(this,t);break}case Z.AFTER_HEAD:{Tye(this,t);break}case Z.IN_BODY:{eo(this,t);break}case Z.IN_TABLE:{od(this,t);break}case Z.IN_TABLE_TEXT:{Yf(this,t);break}case Z.IN_CAPTION:{b0e(this,t);break}case Z.IN_COLUMN_GROUP:{u_(this,t);break}case Z.IN_TABLE_BODY:{kb(this,t);break}case Z.IN_ROW:{wb(this,t);break}case Z.IN_CELL:{x0e(this,t);break}case Z.IN_SELECT:{w6(this,t);break}case Z.IN_SELECT_IN_TABLE:{S0e(this,t);break}case Z.IN_TEMPLATE:{_0e(this,t);break}case Z.AFTER_BODY:{k0e(this,t);break}case Z.IN_FRAMESET:{w0e(this,t);break}case Z.AFTER_FRAMESET:{R0e(this,t);break}case Z.AFTER_AFTER_BODY:{O0e(this,t);break}case Z.AFTER_AFTER_FRAMESET:{N0e(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?F0e(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case Z.INITIAL:{Wf(this,t);break}case Z.BEFORE_HTML:{gye(this,t);break}case Z.BEFORE_HEAD:{bye(this,t);break}case Z.IN_HEAD:{vye(this,t);break}case Z.IN_HEAD_NO_SCRIPT:{xye(this,t);break}case Z.AFTER_HEAD:{Sye(this,t);break}case Z.IN_BODY:{Ab(this,t);break}case Z.TEXT:{l0e(this,t);break}case Z.IN_TABLE:{ph(this,t);break}case Z.IN_TABLE_TEXT:{Yf(this,t);break}case Z.IN_CAPTION:{v0e(this,t);break}case Z.IN_COLUMN_GROUP:{E0e(this,t);break}case Z.IN_TABLE_BODY:{NT(this,t);break}case Z.IN_ROW:{k6(this,t);break}case Z.IN_CELL:{T0e(this,t);break}case Z.IN_SELECT:{D6(this,t);break}case Z.IN_SELECT_IN_TABLE:{C0e(this,t);break}case Z.IN_TEMPLATE:{A0e(this,t);break}case Z.AFTER_BODY:{I6(this,t);break}case Z.IN_FRAMESET:{D0e(this,t);break}case Z.AFTER_FRAMESET:{I0e(this,t);break}case Z.AFTER_AFTER_BODY:{sy(this,t);break}}}onEof(t){switch(this.insertionMode){case Z.INITIAL:{Wf(this,t);break}case Z.BEFORE_HTML:{kp(this,t);break}case Z.BEFORE_HEAD:{wp(this,t);break}case Z.IN_HEAD:{Dp(this,t);break}case Z.IN_HEAD_NO_SCRIPT:{Rp(this,t);break}case Z.AFTER_HEAD:{Ip(this,t);break}case Z.IN_BODY:case Z.IN_TABLE:case Z.IN_CAPTION:case Z.IN_COLUMN_GROUP:case Z.IN_TABLE_BODY:case Z.IN_ROW:case Z.IN_CELL:case Z.IN_SELECT:case Z.IN_SELECT_IN_TABLE:{S6(this,t);break}case Z.TEXT:{c0e(this,t);break}case Z.IN_TABLE_TEXT:{Yf(this,t);break}case Z.IN_TEMPLATE:{R6(this,t);break}case Z.AFTER_BODY:case Z.IN_FRAMESET:case Z.AFTER_FRAMESET:case Z.AFTER_AFTER_BODY:case Z.AFTER_AFTER_FRAMESET:{c_(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 Z.IN_HEAD:case Z.IN_HEAD_NO_SCRIPT:case Z.AFTER_HEAD:case Z.TEXT:case Z.IN_COLUMN_GROUP:case Z.IN_SELECT:case Z.IN_SELECT_IN_TABLE:case Z.IN_FRAMESET:case Z.AFTER_FRAMESET:{this._insertCharacters(t);break}case Z.IN_BODY:case Z.IN_CAPTION:case Z.IN_CELL:case Z.IN_TEMPLATE:case Z.AFTER_BODY:case Z.AFTER_AFTER_BODY:case Z.AFTER_AFTER_FRAMESET:{b6(this,t);break}case Z.IN_TABLE:case Z.IN_TABLE_BODY:case Z.IN_ROW:{ex(this,t);break}case Z.IN_TABLE_TEXT:{C6(this,t);break}}}}function iye(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):T6(e,t),n}function sye(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const o=e.openElements.items[r];if(o===t.element)break;e._isSpecialElement(o,e.openElements.tagIDs[r])&&(n=o)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function 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 l=e.activeFormattingElements.getElementEntry(s),u=l&&a>=oye;!l||u?(u&&e.activeFormattingElements.removeEntry(l),e.openElements.remove(s)):(s=cye(e,l),r===t&&(e.activeFormattingElements.bookmark=l),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function cye(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 uye(e,t,n){const r=e.treeAdapter.getTagName(t),o=Cd(r);if(e._isElementCausesFosterParenting(o))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);o===k.TEMPLATE&&a===Pe.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function dye(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:o}=n,a=e.treeAdapter.createElement(o.tagName,r,o.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,o),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,o.tagID)}function l_(e,t){for(let n=0;n<rye;n++){const r=iye(e,t);if(!r)break;const o=sye(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&&uye(e,s,a),dye(e,o,r)}}function OT(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function fye(e,t){e._appendCommentNode(t,e.openElements.items[0])}function pye(e,t){e._appendCommentNode(t,e.document)}function c_(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:Vge(t);$ge(t)||e._err(t,Se.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Z.BEFORE_HTML}function Wf(e,t){e._err(t,Se.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,ya.QUIRKS),e.insertionMode=Z.BEFORE_HTML,e._processToken(t)}function mye(e,t){t.tagID===k.HTML?(e._insertElement(t,Pe.HTML),e.insertionMode=Z.BEFORE_HEAD):kp(e,t)}function gye(e,t){const n=t.tagID;(n===k.HTML||n===k.HEAD||n===k.BODY||n===k.BR)&&kp(e,t)}function kp(e,t){e._insertFakeRootElement(),e.insertionMode=Z.BEFORE_HEAD,e._processToken(t)}function yye(e,t){switch(t.tagID){case k.HTML:{eo(e,t);break}case k.HEAD:{e._insertElement(t,Pe.HTML),e.headElement=e.openElements.current,e.insertionMode=Z.IN_HEAD;break}default:wp(e,t)}}function bye(e,t){const n=t.tagID;n===k.HEAD||n===k.BODY||n===k.HTML||n===k.BR?wp(e,t):e._err(t,Se.endTagWithoutMatchingOpenElement)}function wp(e,t){e._insertFakeElement(fe.HEAD,k.HEAD),e.headElement=e.openElements.current,e.insertionMode=Z.IN_HEAD,e._processToken(t)}function $a(e,t){switch(t.tagID){case k.HTML:{eo(e,t);break}case k.BASE:case k.BASEFONT:case k.BGSOUND:case k.LINK:case k.META:{e._appendElement(t,Pe.HTML),t.ackSelfClosing=!0;break}case k.TITLE:{e._switchToTextParsing(t,sr.RCDATA);break}case k.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,sr.RAWTEXT):(e._insertElement(t,Pe.HTML),e.insertionMode=Z.IN_HEAD_NO_SCRIPT);break}case k.NOFRAMES:case k.STYLE:{e._switchToTextParsing(t,sr.RAWTEXT);break}case k.SCRIPT:{e._switchToTextParsing(t,sr.SCRIPT_DATA);break}case k.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Z.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(Z.IN_TEMPLATE);break}case k.HEAD:{e._err(t,Se.misplacedStartTagForHeadElement);break}default:Dp(e,t)}}function vye(e,t){switch(t.tagID){case k.HEAD:{e.openElements.pop(),e.insertionMode=Z.AFTER_HEAD;break}case k.BODY:case k.BR:case k.HTML:{Dp(e,t);break}case k.TEMPLATE:{Sc(e,t);break}default:e._err(t,Se.endTagWithoutMatchingOpenElement)}}function Sc(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==k.TEMPLATE&&e._err(t,Se.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(k.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Se.endTagWithoutMatchingOpenElement)}function Dp(e,t){e.openElements.pop(),e.insertionMode=Z.AFTER_HEAD,e._processToken(t)}function Eye(e,t){switch(t.tagID){case k.HTML:{eo(e,t);break}case k.BASEFONT:case k.BGSOUND:case k.HEAD:case k.LINK:case k.META:case k.NOFRAMES:case k.STYLE:{$a(e,t);break}case k.NOSCRIPT:{e._err(t,Se.nestedNoscriptInHead);break}default:Rp(e,t)}}function xye(e,t){switch(t.tagID){case k.NOSCRIPT:{e.openElements.pop(),e.insertionMode=Z.IN_HEAD;break}case k.BR:{Rp(e,t);break}default:e._err(t,Se.endTagWithoutMatchingOpenElement)}}function Rp(e,t){const n=t.type===$t.EOF?Se.openElementsLeftAfterEof:Se.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=Z.IN_HEAD,e._processToken(t)}function Tye(e,t){switch(t.tagID){case k.HTML:{eo(e,t);break}case k.BODY:{e._insertElement(t,Pe.HTML),e.framesetOk=!1,e.insertionMode=Z.IN_BODY;break}case k.FRAMESET:{e._insertElement(t,Pe.HTML),e.insertionMode=Z.IN_FRAMESET;break}case k.BASE:case k.BASEFONT:case k.BGSOUND:case k.LINK:case k.META:case k.NOFRAMES:case k.SCRIPT:case k.STYLE:case k.TEMPLATE:case k.TITLE:{e._err(t,Se.abandonedHeadElementChild),e.openElements.push(e.headElement,k.HEAD),$a(e,t),e.openElements.remove(e.headElement);break}case k.HEAD:{e._err(t,Se.misplacedStartTagForHeadElement);break}default:Ip(e,t)}}function Sye(e,t){switch(t.tagID){case k.BODY:case k.HTML:case k.BR:{Ip(e,t);break}case k.TEMPLATE:{Sc(e,t);break}default:e._err(t,Se.endTagWithoutMatchingOpenElement)}}function Ip(e,t){e._insertFakeElement(fe.BODY,k.BODY),e.insertionMode=Z.IN_BODY,_b(e,t)}function _b(e,t){switch(t.type){case $t.CHARACTER:{v6(e,t);break}case $t.WHITESPACE_CHARACTER:{b6(e,t);break}case $t.COMMENT:{OT(e,t);break}case $t.START_TAG:{eo(e,t);break}case $t.END_TAG:{Ab(e,t);break}case $t.EOF:{S6(e,t);break}}}function b6(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function v6(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Cye(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function _ye(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function Aye(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Pe.HTML),e.insertionMode=Z.IN_FRAMESET)}function kye(e,t){e.openElements.hasInButtonScope(k.P)&&e._closePElement(),e._insertElement(t,Pe.HTML)}function wye(e,t){e.openElements.hasInButtonScope(k.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&IT.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Pe.HTML)}function Dye(e,t){e.openElements.hasInButtonScope(k.P)&&e._closePElement(),e._insertElement(t,Pe.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Rye(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(k.P)&&e._closePElement(),e._insertElement(t,Pe.HTML),n||(e.formElement=e.openElements.current))}function Iye(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===k.LI&&o===k.LI||(n===k.DD||n===k.DT)&&(o===k.DD||o===k.DT)){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(o!==k.ADDRESS&&o!==k.DIV&&o!==k.P&&e._isSpecialElement(e.openElements.items[r],o))break}e.openElements.hasInButtonScope(k.P)&&e._closePElement(),e._insertElement(t,Pe.HTML)}function Oye(e,t){e.openElements.hasInButtonScope(k.P)&&e._closePElement(),e._insertElement(t,Pe.HTML),e.tokenizer.state=sr.PLAINTEXT}function Nye(e,t){e.openElements.hasInScope(k.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(k.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Pe.HTML),e.framesetOk=!1}function Pye(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(fe.A);n&&(l_(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Pe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Lye(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Pe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Mye(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(k.NOBR)&&(l_(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Pe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Fye(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Pe.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Bye(e,t){e.treeAdapter.getDocumentMode(e.document)!==ya.QUIRKS&&e.openElements.hasInButtonScope(k.P)&&e._closePElement(),e._insertElement(t,Pe.HTML),e.framesetOk=!1,e.insertionMode=Z.IN_TABLE}function E6(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Pe.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function x6(e){const t=c6(e,tc.TYPE);return t!=null&&t.toLowerCase()===nye}function jye(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Pe.HTML),x6(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function Uye(e,t){e._appendElement(t,Pe.HTML),t.ackSelfClosing=!0}function Hye(e,t){e.openElements.hasInButtonScope(k.P)&&e._closePElement(),e._appendElement(t,Pe.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function zye(e,t){t.tagName=fe.IMG,t.tagID=k.IMG,E6(e,t)}function $ye(e,t){e._insertElement(t,Pe.HTML),e.skipNextNewLine=!0,e.tokenizer.state=sr.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Z.TEXT}function Vye(e,t){e.openElements.hasInButtonScope(k.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,sr.RAWTEXT)}function Gye(e,t){e.framesetOk=!1,e._switchToTextParsing(t,sr.RAWTEXT)}function cN(e,t){e._switchToTextParsing(t,sr.RAWTEXT)}function qye(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Pe.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===Z.IN_TABLE||e.insertionMode===Z.IN_CAPTION||e.insertionMode===Z.IN_TABLE_BODY||e.insertionMode===Z.IN_ROW||e.insertionMode===Z.IN_CELL?Z.IN_SELECT_IN_TABLE:Z.IN_SELECT}function Wye(e,t){e.openElements.currentTagId===k.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Pe.HTML)}function Yye(e,t){e.openElements.hasInScope(k.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Pe.HTML)}function Qye(e,t){e.openElements.hasInScope(k.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(k.RTC),e._insertElement(t,Pe.HTML)}function Kye(e,t){e._reconstructActiveFormattingElements(),m6(t),s_(t),t.selfClosing?e._appendElement(t,Pe.MATHML):e._insertElement(t,Pe.MATHML),t.ackSelfClosing=!0}function Xye(e,t){e._reconstructActiveFormattingElements(),g6(t),s_(t),t.selfClosing?e._appendElement(t,Pe.SVG):e._insertElement(t,Pe.SVG),t.ackSelfClosing=!0}function uN(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Pe.HTML)}function eo(e,t){switch(t.tagID){case k.I:case k.S:case k.B:case k.U:case k.EM:case k.TT:case k.BIG:case k.CODE:case k.FONT:case k.SMALL:case k.STRIKE:case k.STRONG:{Lye(e,t);break}case k.A:{Pye(e,t);break}case k.H1:case k.H2:case k.H3:case k.H4:case k.H5:case k.H6:{wye(e,t);break}case k.P:case k.DL:case k.OL:case k.UL:case k.DIV:case k.DIR:case k.NAV:case k.MAIN:case k.MENU:case k.ASIDE:case k.CENTER:case k.FIGURE:case k.FOOTER:case k.HEADER:case k.HGROUP:case k.DIALOG:case k.DETAILS:case k.ADDRESS:case k.ARTICLE:case k.SEARCH:case k.SECTION:case k.SUMMARY:case k.FIELDSET:case k.BLOCKQUOTE:case k.FIGCAPTION:{kye(e,t);break}case k.LI:case k.DD:case k.DT:{Iye(e,t);break}case k.BR:case k.IMG:case k.WBR:case k.AREA:case k.EMBED:case k.KEYGEN:{E6(e,t);break}case k.HR:{Hye(e,t);break}case k.RB:case k.RTC:{Yye(e,t);break}case k.RT:case k.RP:{Qye(e,t);break}case k.PRE:case k.LISTING:{Dye(e,t);break}case k.XMP:{Vye(e,t);break}case k.SVG:{Xye(e,t);break}case k.HTML:{Cye(e,t);break}case k.BASE:case k.LINK:case k.META:case k.STYLE:case k.TITLE:case k.SCRIPT:case k.BGSOUND:case k.BASEFONT:case k.TEMPLATE:{$a(e,t);break}case k.BODY:{_ye(e,t);break}case k.FORM:{Rye(e,t);break}case k.NOBR:{Mye(e,t);break}case k.MATH:{Kye(e,t);break}case k.TABLE:{Bye(e,t);break}case k.INPUT:{jye(e,t);break}case k.PARAM:case k.TRACK:case k.SOURCE:{Uye(e,t);break}case k.IMAGE:{zye(e,t);break}case k.BUTTON:{Nye(e,t);break}case k.APPLET:case k.OBJECT:case k.MARQUEE:{Fye(e,t);break}case k.IFRAME:{Gye(e,t);break}case k.SELECT:{qye(e,t);break}case k.OPTION:case k.OPTGROUP:{Wye(e,t);break}case k.NOEMBED:case k.NOFRAMES:{cN(e,t);break}case k.FRAMESET:{Aye(e,t);break}case k.TEXTAREA:{$ye(e,t);break}case k.NOSCRIPT:{e.options.scriptingEnabled?cN(e,t):uN(e,t);break}case k.PLAINTEXT:{Oye(e,t);break}case k.COL:case k.TH:case k.TD:case k.TR:case k.HEAD:case k.FRAME:case k.TBODY:case k.TFOOT:case k.THEAD:case k.CAPTION:case k.COLGROUP:break;default:uN(e,t)}}function Zye(e,t){if(e.openElements.hasInScope(k.BODY)&&(e.insertionMode=Z.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function Jye(e,t){e.openElements.hasInScope(k.BODY)&&(e.insertionMode=Z.AFTER_BODY,I6(e,t))}function e0e(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function t0e(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(k.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(k.FORM):n&&e.openElements.remove(n))}function n0e(e){e.openElements.hasInButtonScope(k.P)||e._insertFakeElement(fe.P,k.P),e._closePElement()}function r0e(e){e.openElements.hasInListItemScope(k.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(k.LI),e.openElements.popUntilTagNamePopped(k.LI))}function o0e(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function a0e(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function i0e(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function s0e(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(fe.BR,k.BR),e.openElements.pop(),e.framesetOk=!1}function T6(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!==k.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 Ab(e,t){switch(t.tagID){case k.A:case k.B:case k.I:case k.S:case k.U:case k.EM:case k.TT:case k.BIG:case k.CODE:case k.FONT:case k.NOBR:case k.SMALL:case k.STRIKE:case k.STRONG:{l_(e,t);break}case k.P:{n0e(e);break}case k.DL:case k.UL:case k.OL:case k.DIR:case k.DIV:case k.NAV:case k.PRE:case k.MAIN:case k.MENU:case k.ASIDE:case k.BUTTON:case k.CENTER:case k.FIGURE:case k.FOOTER:case k.HEADER:case k.HGROUP:case k.DIALOG:case k.ADDRESS:case k.ARTICLE:case k.DETAILS:case k.SEARCH:case k.SECTION:case k.SUMMARY:case k.LISTING:case k.FIELDSET:case k.BLOCKQUOTE:case k.FIGCAPTION:{e0e(e,t);break}case k.LI:{r0e(e);break}case k.DD:case k.DT:{o0e(e,t);break}case k.H1:case k.H2:case k.H3:case k.H4:case k.H5:case k.H6:{a0e(e);break}case k.BR:{s0e(e);break}case k.BODY:{Zye(e,t);break}case k.HTML:{Jye(e,t);break}case k.FORM:{t0e(e);break}case k.APPLET:case k.OBJECT:case k.MARQUEE:{i0e(e,t);break}case k.TEMPLATE:{Sc(e,t);break}default:T6(e,t)}}function S6(e,t){e.tmplInsertionModeStack.length>0?R6(e,t):c_(e,t)}function l0e(e,t){var n;t.tagID===k.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function c0e(e,t){e._err(t,Se.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function ex(e,t){if(e.openElements.currentTagId!==void 0&&y6.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Z.IN_TABLE_TEXT,t.type){case $t.CHARACTER:{_6(e,t);break}case $t.WHITESPACE_CHARACTER:{C6(e,t);break}}else qh(e,t)}function u0e(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Pe.HTML),e.insertionMode=Z.IN_CAPTION}function d0e(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Pe.HTML),e.insertionMode=Z.IN_COLUMN_GROUP}function f0e(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(fe.COLGROUP,k.COLGROUP),e.insertionMode=Z.IN_COLUMN_GROUP,u_(e,t)}function p0e(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Pe.HTML),e.insertionMode=Z.IN_TABLE_BODY}function h0e(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(fe.TBODY,k.TBODY),e.insertionMode=Z.IN_TABLE_BODY,kb(e,t)}function m0e(e,t){e.openElements.hasInTableScope(k.TABLE)&&(e.openElements.popUntilTagNamePopped(k.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function g0e(e,t){x6(t)?e._appendElement(t,Pe.HTML):qh(e,t),t.ackSelfClosing=!0}function y0e(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Pe.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function od(e,t){switch(t.tagID){case k.TD:case k.TH:case k.TR:{h0e(e,t);break}case k.STYLE:case k.SCRIPT:case k.TEMPLATE:{$a(e,t);break}case k.COL:{f0e(e,t);break}case k.FORM:{y0e(e,t);break}case k.TABLE:{m0e(e,t);break}case k.TBODY:case k.TFOOT:case k.THEAD:{p0e(e,t);break}case k.INPUT:{g0e(e,t);break}case k.CAPTION:{u0e(e,t);break}case k.COLGROUP:{d0e(e,t);break}default:qh(e,t)}}function ph(e,t){switch(t.tagID){case k.TABLE:{e.openElements.hasInTableScope(k.TABLE)&&(e.openElements.popUntilTagNamePopped(k.TABLE),e._resetInsertionMode());break}case k.TEMPLATE:{Sc(e,t);break}case k.BODY:case k.CAPTION:case k.COL:case k.COLGROUP:case k.HTML:case k.TBODY:case k.TD:case k.TFOOT:case k.TH:case k.THEAD:case k.TR:break;default:qh(e,t)}}function qh(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,_b(e,t),e.fosterParentingEnabled=n}function C6(e,t){e.pendingCharacterTokens.push(t)}function _6(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 A6=new Set([k.CAPTION,k.COL,k.COLGROUP,k.TBODY,k.TD,k.TFOOT,k.TH,k.THEAD,k.TR]);function b0e(e,t){const n=t.tagID;A6.has(n)?e.openElements.hasInTableScope(k.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(k.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Z.IN_TABLE,od(e,t)):eo(e,t)}function v0e(e,t){const n=t.tagID;switch(n){case k.CAPTION:case k.TABLE:{e.openElements.hasInTableScope(k.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(k.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Z.IN_TABLE,n===k.TABLE&&ph(e,t));break}case k.BODY:case k.COL:case k.COLGROUP:case k.HTML:case k.TBODY:case k.TD:case k.TFOOT:case k.TH:case k.THEAD:case k.TR:break;default:Ab(e,t)}}function u_(e,t){switch(t.tagID){case k.HTML:{eo(e,t);break}case k.COL:{e._appendElement(t,Pe.HTML),t.ackSelfClosing=!0;break}case k.TEMPLATE:{$a(e,t);break}default:i0(e,t)}}function E0e(e,t){switch(t.tagID){case k.COLGROUP:{e.openElements.currentTagId===k.COLGROUP&&(e.openElements.pop(),e.insertionMode=Z.IN_TABLE);break}case k.TEMPLATE:{Sc(e,t);break}case k.COL:break;default:i0(e,t)}}function i0(e,t){e.openElements.currentTagId===k.COLGROUP&&(e.openElements.pop(),e.insertionMode=Z.IN_TABLE,e._processToken(t))}function kb(e,t){switch(t.tagID){case k.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Pe.HTML),e.insertionMode=Z.IN_ROW;break}case k.TH:case k.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(fe.TR,k.TR),e.insertionMode=Z.IN_ROW,wb(e,t);break}case k.CAPTION:case k.COL:case k.COLGROUP:case k.TBODY:case k.TFOOT:case k.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Z.IN_TABLE,od(e,t));break}default:od(e,t)}}function NT(e,t){const n=t.tagID;switch(t.tagID){case k.TBODY:case k.TFOOT:case k.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Z.IN_TABLE);break}case k.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Z.IN_TABLE,ph(e,t));break}case k.BODY:case k.CAPTION:case k.COL:case k.COLGROUP:case k.HTML:case k.TD:case k.TH:case k.TR:break;default:ph(e,t)}}function wb(e,t){switch(t.tagID){case k.TH:case k.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,Pe.HTML),e.insertionMode=Z.IN_CELL,e.activeFormattingElements.insertMarker();break}case k.CAPTION:case k.COL:case k.COLGROUP:case k.TBODY:case k.TFOOT:case k.THEAD:case k.TR:{e.openElements.hasInTableScope(k.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Z.IN_TABLE_BODY,kb(e,t));break}default:od(e,t)}}function k6(e,t){switch(t.tagID){case k.TR:{e.openElements.hasInTableScope(k.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Z.IN_TABLE_BODY);break}case k.TABLE:{e.openElements.hasInTableScope(k.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Z.IN_TABLE_BODY,NT(e,t));break}case k.TBODY:case k.TFOOT:case k.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(k.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Z.IN_TABLE_BODY,NT(e,t));break}case k.BODY:case k.CAPTION:case k.COL:case k.COLGROUP:case k.HTML:case k.TD:case k.TH:break;default:ph(e,t)}}function x0e(e,t){const n=t.tagID;A6.has(n)?(e.openElements.hasInTableScope(k.TD)||e.openElements.hasInTableScope(k.TH))&&(e._closeTableCell(),wb(e,t)):eo(e,t)}function T0e(e,t){const n=t.tagID;switch(n){case k.TD:case k.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Z.IN_ROW);break}case k.TABLE:case k.TBODY:case k.TFOOT:case k.THEAD:case k.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),k6(e,t));break}case k.BODY:case k.CAPTION:case k.COL:case k.COLGROUP:case k.HTML:break;default:Ab(e,t)}}function w6(e,t){switch(t.tagID){case k.HTML:{eo(e,t);break}case k.OPTION:{e.openElements.currentTagId===k.OPTION&&e.openElements.pop(),e._insertElement(t,Pe.HTML);break}case k.OPTGROUP:{e.openElements.currentTagId===k.OPTION&&e.openElements.pop(),e.openElements.currentTagId===k.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Pe.HTML);break}case k.HR:{e.openElements.currentTagId===k.OPTION&&e.openElements.pop(),e.openElements.currentTagId===k.OPTGROUP&&e.openElements.pop(),e._appendElement(t,Pe.HTML),t.ackSelfClosing=!0;break}case k.INPUT:case k.KEYGEN:case k.TEXTAREA:case k.SELECT:{e.openElements.hasInSelectScope(k.SELECT)&&(e.openElements.popUntilTagNamePopped(k.SELECT),e._resetInsertionMode(),t.tagID!==k.SELECT&&e._processStartTag(t));break}case k.SCRIPT:case k.TEMPLATE:{$a(e,t);break}}}function D6(e,t){switch(t.tagID){case k.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===k.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===k.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===k.OPTGROUP&&e.openElements.pop();break}case k.OPTION:{e.openElements.currentTagId===k.OPTION&&e.openElements.pop();break}case k.SELECT:{e.openElements.hasInSelectScope(k.SELECT)&&(e.openElements.popUntilTagNamePopped(k.SELECT),e._resetInsertionMode());break}case k.TEMPLATE:{Sc(e,t);break}}}function S0e(e,t){const n=t.tagID;n===k.CAPTION||n===k.TABLE||n===k.TBODY||n===k.TFOOT||n===k.THEAD||n===k.TR||n===k.TD||n===k.TH?(e.openElements.popUntilTagNamePopped(k.SELECT),e._resetInsertionMode(),e._processStartTag(t)):w6(e,t)}function C0e(e,t){const n=t.tagID;n===k.CAPTION||n===k.TABLE||n===k.TBODY||n===k.TFOOT||n===k.THEAD||n===k.TR||n===k.TD||n===k.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(k.SELECT),e._resetInsertionMode(),e.onEndTag(t)):D6(e,t)}function _0e(e,t){switch(t.tagID){case k.BASE:case k.BASEFONT:case k.BGSOUND:case k.LINK:case k.META:case k.NOFRAMES:case k.SCRIPT:case k.STYLE:case k.TEMPLATE:case k.TITLE:{$a(e,t);break}case k.CAPTION:case k.COLGROUP:case k.TBODY:case k.TFOOT:case k.THEAD:{e.tmplInsertionModeStack[0]=Z.IN_TABLE,e.insertionMode=Z.IN_TABLE,od(e,t);break}case k.COL:{e.tmplInsertionModeStack[0]=Z.IN_COLUMN_GROUP,e.insertionMode=Z.IN_COLUMN_GROUP,u_(e,t);break}case k.TR:{e.tmplInsertionModeStack[0]=Z.IN_TABLE_BODY,e.insertionMode=Z.IN_TABLE_BODY,kb(e,t);break}case k.TD:case k.TH:{e.tmplInsertionModeStack[0]=Z.IN_ROW,e.insertionMode=Z.IN_ROW,wb(e,t);break}default:e.tmplInsertionModeStack[0]=Z.IN_BODY,e.insertionMode=Z.IN_BODY,eo(e,t)}}function A0e(e,t){t.tagID===k.TEMPLATE&&Sc(e,t)}function R6(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(k.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):c_(e,t)}function k0e(e,t){t.tagID===k.HTML?eo(e,t):s0(e,t)}function I6(e,t){var n;if(t.tagID===k.HTML){if(e.fragmentContext||(e.insertionMode=Z.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===k.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 s0(e,t)}function s0(e,t){e.insertionMode=Z.IN_BODY,_b(e,t)}function w0e(e,t){switch(t.tagID){case k.HTML:{eo(e,t);break}case k.FRAMESET:{e._insertElement(t,Pe.HTML);break}case k.FRAME:{e._appendElement(t,Pe.HTML),t.ackSelfClosing=!0;break}case k.NOFRAMES:{$a(e,t);break}}}function D0e(e,t){t.tagID===k.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==k.FRAMESET&&(e.insertionMode=Z.AFTER_FRAMESET))}function R0e(e,t){switch(t.tagID){case k.HTML:{eo(e,t);break}case k.NOFRAMES:{$a(e,t);break}}}function I0e(e,t){t.tagID===k.HTML&&(e.insertionMode=Z.AFTER_AFTER_FRAMESET)}function O0e(e,t){t.tagID===k.HTML?eo(e,t):sy(e,t)}function sy(e,t){e.insertionMode=Z.IN_BODY,_b(e,t)}function N0e(e,t){switch(t.tagID){case k.HTML:{eo(e,t);break}case k.NOFRAMES:{$a(e,t);break}}}function P0e(e,t){t.chars=zn,e._insertCharacters(t)}function L0e(e,t){e._insertCharacters(t),e.framesetOk=!1}function O6(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Pe.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function M0e(e,t){if(Xge(t))O6(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Pe.MATHML?m6(t):r===Pe.SVG&&(Zge(t),g6(t)),s_(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function F0e(e,t){if(t.tagID===k.P||t.tagID===k.BR){O6(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 B0e=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,j0e=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),dN={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function N6(e,t){const n=Q0e(e),r=db("type",{handlers:{root:U0e,element:H0e,text:z0e,comment:L6,doctype:$0e,raw:G0e},unknown:q0e}),o={parser:n?new lN(dN):lN.getFragmentParser(void 0,dN),handle(l){r(l,o)},stitches:!1,options:t||{}};r(e,o),_d(o,Ti());const a=n?o.parser.document:o.parser.getFragment(),s=Hme(a,{file:o.options.file});return o.stitches&&ko(s,"comment",function(l,u,d){const p=l;if(p.value.stitch&&d&&u!==void 0){const h=d.children;return h[u]=p.value.stitch,u}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function P6(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function U0e(e,t){P6(e.children,t)}function H0e(e,t){W0e(e,t),P6(e.children,t),Y0e(e,t)}function z0e(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:$t.CHARACTER,chars:e.value,location:Wh(e)};_d(t,Ti(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function $0e(e,t){const n={type:$t.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Wh(e)};_d(t,Ti(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function V0e(e,t){t.stitches=!0;const n=K0e(e);if("children"in e&&"children"in n){const r=N6({type:"root",children:e.children},t.options);n.children=r.children}L6({type:"comment",value:{stitch:n}},t)}function L6(e,t){const n=e.value,r={type:$t.COMMENT,data:n,location:Wh(e)};_d(t,Ti(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function G0e(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,M6(t,Ti(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(B0e,"<$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 q0e(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))V0e(n,t);else{let r="";throw j0e.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 _d(e,t){M6(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=sr.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 M6(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 W0e(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===sr.PLAINTEXT)return;_d(t,Ti(e));const r=t.parser.openElements.current;let o="namespaceURI"in r?r.namespaceURI:Yl.html;o===Yl.html&&n==="svg"&&(o=Yl.svg);const a=nge({...e,children:[]},{space:o===Yl.svg?"svg":"html"}),s={type:$t.START_TAG,tagName:n,tagID:Cd(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 Y0e(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&F4.includes(n)||t.parser.tokenizer.state===sr.PLAINTEXT)return;_d(t,vb(e));const r={type:$t.END_TAG,tagName:n,tagID:Cd(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===sr.RCDATA||t.parser.tokenizer.state===sr.RAWTEXT||t.parser.tokenizer.state===sr.SCRIPT_DATA)&&(t.parser.tokenizer.state=sr.DATA)}function Q0e(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=Ti(e)||{line:void 0,column:void 0,offset:void 0},n=vb(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 K0e(e){return"children"in e?pc({...e,children:[]}):pc(e)}function X0e(e){return function(t,n){return N6(t,{...e,file:n})}}const Z0e=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,J0e=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,ebe=({legacyTitle:e=!1,tagName:t="div"}={})=>n=>{ko(n,"blockquote",(r,o,a)=>{let s="",l="",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?J0e:Z0e,v=g.match(y);if(v&&(u=!1,s=v[1].toLocaleLowerCase(),l=e&&v[2]||s.toLocaleUpperCase(),g.includes(`
|
|
386
|
+
`)&&(p.children[0]={type:"text",value:g.replace(y,"").replace(/^\n+/,"")}),!g.includes(`
|
|
387
|
+
`))){const T=[];p.children.forEach((_,x)=>{x!=0&&(x==1&&_.type==="break"||T.push(_))}),p.children=[...T]}}return p});s&&(r.data={hName:t,hProperties:{class:`markdown-alert markdown-alert-${s}`,dir:"auto"}},d.unshift({type:"paragraph",children:[tbe(s),{type:"text",value:l.replace(/^\//,"")}],data:{hProperties:{class:"markdown-alert-title",dir:"auto"}}})),r.children=[...d]})};function tbe(e){let t=nbe[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 nbe={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 rbe(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 F6(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?F6(t.parentElement):null}function obe(e){var t=n=>{var r=F6(n.target);r&&(r.classList.add("active"),rbe(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};w.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 abe=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],ibe=e=>e;const sbe=Be.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:o,style:a,disableCopy:s=!1,skipHtml:l=!0,onScroll:u,onMouseOver:d,pluginsFilter:p,wrapperElement:h={},warpperElement:g={},urlTransform:y}=e,v=Qr(e,abe),T=Be.useRef(null);w.useImperativeHandle(t,()=>Fe({},e,{mdp:T}),[T,e]);var _=(n||"")+" "+(r||"");obe(T);var x=[...v.rehypePlugins||[]],D={allowElement:(I,O,F)=>v.allowElement?v.allowElement(I,O,F):/^[A-Za-z0-9]+$/.test(I.tagName)};l||x.push(X0e);var C=[ebe,...v.remarkPlugins||[],Rme],R=Fe({},g,h);return b.jsx("div",Fe({ref:T,onScroll:u,onMouseOver:d},R,{className:_,style:a,children:b.jsx(Epe,Fe({},D,v,{skipHtml:!l,urlTransform:y||ibe,rehypePlugins:p?p("rehype",x):x,remarkPlugins:p?p("remark",C):C,children:o||""}))}))});var ly={},PT={};function lbe(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 fN(e){if(e.length===0)return ly;for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];lbe(o,t)}return t}function cbe(e){if(e.length===0)return PT;for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];t[o]=!0}return t}var Ng={},pN={type:"String",optional:!0};function ube(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 dbe(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,l=a;s<l.length;s++){var u=l[s];(t[u]||(t[u]=[])).push(o)}}return t}function hN(e){for(var t=dbe(e),n={},r=0,o=Object.keys(t);r<o.length;r++){var a=o[r],s=t[a];s&&(n[a]=ube(s))}return n}var ad=function(){return ad=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},ad.apply(this,arguments)},fbe={},LT={wildcard:!0};function pbe(e){return e?typeof e=="boolean"?LT:e:fbe}function hbe(e,t){return function(n,r){return t(e(n),e(r))}}function mbe(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 mN(e,t){return function(n,r){return r===!0?e:t(n===!0?e:n,r)}}function Eu(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=ad({},t),o=0,a=Object.entries(n);o<a.length;o++){var s=a[o],l=s[0],u=s[1];if(l!=="latest"){var d=e[l];r[l]=d(t[l],u)}}return r}}function Qi(e,t){return t!==void 0?t:e}function Pg(e,t){return t?e?e.concat(t):t:e}function gN(e,t){if(!t)return e;if(!e)return t;for(var n=ad({},e),r=0,o=Object.entries(t);r<o.length;r++){var a=o[r],s=a[0],l=a[1];if(!l){delete n[s];continue}var u=e[s];if(!u){n[s]=l;continue}n[s]=u.concat(l)}return n}var nc=mbe(Eu({baseSyntax:Qi,modules:Pg,tag:mN(LT,Eu({wildcard:Qi})),ids:Qi,classNames:Qi,namespace:mN(LT,Eu({wildcard:Qi})),combinators:Pg,attributes:Eu({operators:Pg,caseSensitivityModifiers:Pg,unknownCaseSensitivityModifiers:Qi}),pseudoClasses:Eu({unknown:Qi,definitions:gN}),pseudoElements:Eu({unknown:Qi,notation:Qi,definitions:hbe(function(e){return Array.isArray(e)?{NoArgument:e}:e},gN)})})),B6={tag:{},ids:!0,classNames:!0,combinators:[],pseudoElements:{unknown:"reject",notation:"singleColon",definitions:["first-letter","first-line"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["link","visited","active"]}}},j6=nc(B6,{tag:{wildcard:!0},combinators:[">","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),MT=nc(j6,{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"]}}}),U6=nc(MT,{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"]}}}),l0={"css-position-1":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute"]}}},"css-position-2":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute","fixed"]}}},"css-position-3":{latest:!1,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static"]}}},"css-position-4":{latest:!0,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static","initial"]}}},"css-scoping-1":{latest:!0,pseudoClasses:{definitions:{NoArgument:["host","host-context"],Selector:["host","host-context"]}},pseudoElements:{definitions:{Selector:["slotted"]}}},"css-pseudo-4":{latest:!0,pseudoElements:{definitions:{NoArgument:["marker","selection","target-text","search-text","spelling-error","grammar-error","backdrop","file-selector-button","prefix","postfix","placeholder","details-content"],String:["highlight"]}}},"css-shadow-parts-1":{latest:!0,pseudoElements:{definitions:{String:["part"]}}}},H6=ad(ad({},U6),{modules:Object.entries(l0).filter(function(e){var t=e[1].latest;return t}).map(function(e){var t=e[0];return t})}),gbe=nc(H6,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),FT={css1:B6,css2:j6,css3:MT,"selectors-3":MT,"selectors-4":U6,latest:H6,progressive:gbe};function ybe(){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=FT[o];if(a.pseudoClasses&&typeof a.pseudoClasses=="object"){var s=a.pseudoClasses.definitions;if(s)for(var l=0,u=Object.entries(s);l<u.length;l++)for(var d=u[l],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 v=0,T=s;v<T.length;v++){var _=T[v];e.pseudoElements[_]||(e.pseudoElements[_]=[]),e.pseudoElements[_].includes(o)||e.pseudoElements[_].push(o)}else for(var x=0,D=Object.values(s);x<D.length;x++)for(var p=D[x],C=0,R=p;C<R.length;C++){var I=R[C];e.pseudoElements[I]||(e.pseudoElements[I]=[]),e.pseudoElements[I].includes(o)||e.pseudoElements[I].push(o)}}}for(var O=0,F=Object.entries(l0);O<F.length;O++){var H=F[O],U=H[0],S=H[1];if(S.pseudoClasses&&typeof S.pseudoClasses=="object"){var s=S.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(U)||e.pseudoClasses[Y].push(U)}}if(S.pseudoElements&&typeof S.pseudoElements=="object"){var s=S.pseudoElements.definitions;if(s)if(Array.isArray(s))for(var B=0,K=s;B<K.length;B++){var ae=K[B];e.pseudoElements[ae]||(e.pseudoElements[ae]=[]),e.pseudoElements[ae].includes(U)||e.pseudoElements[ae].push(U)}else for(var ne=0,N=Object.values(s);ne<N.length;ne++)for(var p=N[ne],Q=0,X=p;Q<X.length;Q++){var P=X[Q];e.pseudoElements[P]||(e.pseudoElements[P]=[]),e.pseudoElements[P].includes(U)||e.pseudoElements[P].push(U)}}}return e}var yN=ybe();function Qf(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function bN(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function Kf(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var bbe={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},vbe={'"':!0,"'":!0},tx={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},Ebe=6,nx="css-selector-parser parse error: ";function xbe(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,l=typeof n=="object"?n:FT[n];if(l.baseSyntax&&(l=nc(FT[l.baseSyntax],l)),l.modules&&l.modules.length>0)for(var u=0,d=l.modules;u<d.length;u++){var p=d[u],h=l0[p];h&&(l=nc(h,l))}if(s&&s.length>0)for(var g=0,y=s;g<y.length;g++){var v=y[g],h=l0[v];h&&(l=nc(h,l))}var T=l.tag?[!0,!!pbe(l.tag).wildcard]:[!1,!1],_=T[0],x=T[1],D=!!l.ids,C=!!l.classNames,R=!!l.namespace,I=l.namespace&&(l.namespace===!0||l.namespace.wildcard===!0);if(R&&!_)throw new Error("".concat(nx,"Namespaces cannot be enabled while tags are disabled."));var O=!!r,F=l.combinators?fN(l.combinators):ly,H=l.attributes?[!0,l.attributes.operators?fN(l.attributes.operators):ly,l.attributes.caseSensitivityModifiers?cbe(l.attributes.caseSensitivityModifiers):PT,l.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,ly,PT,!1],U=H[0],S=H[1],M=H[2],$=H[3],z=$||Object.keys(M).length>0,q=l.pseudoClasses?[!0,l.pseudoClasses.definitions?hN(l.pseudoClasses.definitions):Ng,l.pseudoClasses.unknown==="accept"]:[!1,Ng,!1],Y=q[0],B=q[1],K=q[2],ae=l.pseudoElements?[!0,l.pseudoElements.notation==="singleColon"||l.pseudoElements.notation==="both",!l.pseudoElements.notation||l.pseudoElements.notation==="doubleColon"||l.pseudoElements.notation==="both",l.pseudoElements.definitions?hN(Array.isArray(l.pseudoElements.definitions)?{NoArgument:l.pseudoElements.definitions}:l.pseudoElements.definitions):Ng,l.pseudoElements.unknown==="accept"]:[!1,!1,!1,Ng,!1],ne=ae[0],N=ae[1],Q=ae[2],X=ae[3],P=ae[4],re="",ce=re.length,oe=0,ve="",be=function(he){return ve===he},qe=function(){return be("*")||Qf(ve)},Me=function(he){oe=he,ve=re.charAt(oe)},Oe=function(){oe++,ve=re.charAt(oe)},Ke=function(){var he=ve;return oe++,ve=re.charAt(oe),he};function at(he){var xe=Math.min(ce-1,oe),tt=new Error("".concat(nx).concat(he," Pos: ").concat(xe,"."));throw tt.position=xe,tt.name="ParserError",tt}function Re(he,xe){if(!he)return at(xe)}var yt=function(){Re(oe<ce,"Unexpected end of input.")},_t=function(){return oe>=ce},He=function(he){Re(oe<ce,'Expected "'.concat(he,'" but end of input reached.')),Re(ve===he,'Expected "'.concat(he,'" but "').concat(ve,'" found.')),oe++,ve=re.charAt(oe)};function mt(he){var xe=ct(he,oe);if(xe)return oe+=xe.length,ve=re.charAt(oe),xe}function ct(he,xe){var tt=re.charAt(xe),nt=he[tt];if(nt){var rn=ct(nt.chars,xe+1);if(rn)return rn;if(nt.self)return nt.self}}function ft(){for(var he=Ke(),xe=1;Kf(ve)&&xe<Ebe;)he+=Ke(),xe++;return Bt(),String.fromCharCode(parseInt(he,16))}function ze(he){var xe="";for(He(he);oe<ce;){if(be(he))return Oe(),xe;be("\\")?(Oe(),be(he)?(xe+=he,Oe()):ve===`
|
|
388
|
+
`||ve==="\f"?Oe():ve==="\r"?(Oe(),be(`
|
|
389
|
+
`)&&Oe()):Kf(ve)?xe+=ft():(xe+=ve,Oe())):(xe+=ve,Oe())}return xe}function Le(){if(!Qf(ve))return null;for(var he="";be("-");)he+=ve,Oe();for(he==="-"&&!bN(ve)&&!be("\\")&&at("Identifiers cannot consist of a single hyphen."),a&&he.length>=2&&at("Identifiers cannot start with two hyphens with strict mode on."),tx[ve]&&at("Identifiers cannot start with hyphens followed by digits.");oe<ce;)if(bN(ve))he+=Ke();else if(be("\\"))Oe(),yt(),Kf(ve)?he+=ft():he+=Ke();else break;return he}function Xt(){for(var he="";oe<ce&&!be(")");)if(be("\\")){if(Oe(),_t()&&!a)return(he+"\\").trim();yt(),Kf(ve)?he+=ft():he+=Ke()}else he+=Ke();return he.trim()}function Bt(){if(ve===" "||ve===" "||ve==="\f"||ve===`
|
|
390
|
+
`){Oe();return}ve==="\r"&&Oe(),ve===`
|
|
391
|
+
`&&Oe()}function At(){for(;bbe[ve];)Oe()}function de(he){he===void 0&&(he=!1),At();for(var xe=[tn(he)];be(",");)Oe(),At(),xe.push(tn(he));return{type:"Selector",rules:xe}}function ye(){He("["),At();var he;if(be("|")){Re(R,"Namespaces are not enabled."),Oe();var xe=Le();Re(xe,"Expected attribute name."),he={type:"Attribute",name:xe,namespace:{type:"NoNamespace"}}}else if(be("*")){Re(R,"Namespaces are not enabled."),Re(I,"Wildcard namespace is not enabled."),Oe(),He("|");var tt=Le();Re(tt,"Expected attribute name."),he={type:"Attribute",name:tt,namespace:{type:"WildcardNamespace"}}}else{var nt=Le();if(Re(nt,"Expected attribute name."),he={type:"Attribute",name:nt},be("|")){var rn=oe;if(Oe(),Qf(ve)){Re(R,"Namespaces are not enabled.");var Pr=Le();Re(Pr,"Expected attribute name."),he={type:"Attribute",name:Pr,namespace:{type:"NamespaceName",name:nt}}}else Me(rn)}}if(Re(he.name,"Expected attribute name."),At(),_t()&&!a)return he;if(be("]"))Oe();else{if(he.operator=mt(S),Re(he.operator,"Expected a valid attribute selector operator."),At(),yt(),vbe[ve])he.value={type:"String",value:ze(ve)};else if(O&&be("$")){Oe();var Er=Le();Re(Er,"Expected substitute name."),he.value={type:"Substitution",name:Er}}else{var qn=Le();Re(qn,"Expected attribute value."),he.value={type:"String",value:qn}}if(At(),_t()&&!a)return he;if(!be("]")){var ur=Le();if(Re(ur,"Expected end of attribute selector."),he.caseSensitivityModifier=ur,Re(z,"Attribute case sensitivity modifiers are not enabled."),Re($||M[he.caseSensitivityModifier],"Unknown attribute case sensitivity modifier."),At(),_t()&&!a)return he}He("]")}return he}function $e(){for(var he="";tx[ve];)he+=Ke();return Re(he!=="","Formula parse error."),parseInt(he)}var Xe=function(){return be("-")||be("+")||tx[ve]};function Et(){if(be("e")||be("o")){var he=Le();if(he==="even")return At(),[2,0];if(he==="odd")return At(),[2,1]}var xe=null,tt=1;if(be("-")&&(Oe(),tt=-1),Xe()&&(be("+")&&Oe(),xe=$e(),!be("\\")&&!be("n")))return[0,xe*tt];xe===null&&(xe=1),xe*=tt;var nt;if(be("\\")?(Oe(),Kf(ve)?nt=ft():nt=Ke()):nt=Ke(),Re(nt==="n",'Formula parse error: expected "n".'),At(),be("+")||be("-")){var rn=be("+")?1:-1;return Oe(),At(),[xe,rn*$e()]}else return[xe,0]}function Ze(he,xe,tt){var nt;if(be("(")){if(Oe(),At(),O&&be("$")){Oe();var rn=Le();Re(rn,"Expected substitute name."),nt={type:"Substitution",name:rn}}else if(tt.type==="String")nt={type:"String",value:Xt()},Re(nt.value,"Expected ".concat(xe," argument value."));else if(tt.type==="Selector")nt=de(!0);else if(tt.type==="Formula"){var Pr=Et(),Er=Pr[0],qn=Pr[1];if(nt={type:"Formula",a:Er,b:qn},tt.ofSelector&&(At(),be("o")||be("\\"))){var ur=Le();Re(ur==="of","Formula of selector parse error."),At(),nt={type:"FormulaOfSelector",a:Er,b:qn,selector:tn()}}}else return at("Invalid ".concat(xe," signature."));if(At(),_t()&&!a)return nt;He(")")}else Re(tt.optional,"Argument is required for ".concat(xe,' "').concat(he,'".'));return nt}function Zt(){if(be("*"))return Re(x,"Wildcard tag name is not enabled."),Oe(),{type:"WildcardTag"};if(Qf(ve)){Re(_,"Tag names are not enabled.");var he=Le();return Re(he,"Expected tag name."),{type:"TagName",name:he}}else return at("Expected tag name.")}function Vt(){if(be("*")){var he=oe;if(Oe(),!be("|")||(Oe(),!qe()))return Me(he),Zt();Re(R,"Namespaces are not enabled."),Re(I,"Wildcard namespace is not enabled.");var xe=Zt();return xe.namespace={type:"WildcardNamespace"},xe}else if(be("|")){Re(R,"Namespaces are not enabled."),Oe();var xe=Zt();return xe.namespace={type:"NoNamespace"},xe}else if(Qf(ve)){var tt=Le();if(Re(tt,"Expected tag name."),!be("|"))return Re(_,"Tag names are not enabled."),{type:"TagName",name:tt};var he=oe;if(Oe(),!qe())return Me(he),{type:"TagName",name:tt};Re(R,"Namespaces are not enabled.");var xe=Zt();return xe.namespace={type:"NamespaceName",name:tt},xe}else return at("Expected tag name.")}function tn(he){var xe,tt;he===void 0&&(he=!1);var nt={type:"Rule",items:[]};if(he){var rn=mt(F);rn&&(nt.combinator=rn,At())}for(;oe<ce;)if(qe())Re(nt.items.length===0,"Unexpected tag/namespace start."),nt.items.push(Vt());else if(be("|")){var Pr=oe;if(Oe(),qe())Re(nt.items.length===0,"Unexpected tag/namespace start."),Me(Pr),nt.items.push(Vt());else{Me(Pr);break}}else if(be(".")){Re(C,"Class names are not enabled."),Oe();var Er=Le();Re(Er,"Expected class name."),nt.items.push({type:"ClassName",name:Er})}else if(be("#")){Re(D,"IDs are not enabled."),Oe();var qn=Le();Re(qn,"Expected ID name."),nt.items.push({type:"Id",name:qn})}else if(be("["))Re(U,"Attributes are not enabled."),nt.items.push(ye());else if(be(":")){var ur=!1,uo=!1;Oe(),be(":")&&(Re(ne,"Pseudo elements are not enabled."),Re(Q,"Pseudo elements double colon notation is not enabled."),ur=!0,Oe());var En=Le();if(Re(ur||En,"Expected pseudo-class name."),Re(!ur||En,"Expected pseudo-element name."),Re(En,"Expected pseudo-class name."),!(!ur||P||Object.prototype.hasOwnProperty.call(X,En))){var Lr=yN.pseudoElements[En],bt='Unknown pseudo-element "'.concat(En,'"');Lr&&Lr.length>0&&(bt+=". It is defined in: ".concat(Lr.join(", "))),at(bt+".")}if(uo=ne&&(ur||!ur&&N&&Object.prototype.hasOwnProperty.call(X,En)),uo){var te=(xe=X[En])!==null&&xe!==void 0?xe:P&&pN,ee={type:"PseudoElement",name:En},ie=Ze(En,"pseudo-element",te);ie&&(Re(ie.type!=="Formula"&&ie.type!=="FormulaOfSelector","Pseudo-elements cannot have formula argument."),ee.argument=ie),nt.items.push(ee)}else{Re(Y,"Pseudo-classes are not enabled.");var te=(tt=B[En])!==null&&tt!==void 0?tt:K&&pN;if(!te){var Lr=yN.pseudoClasses[En],bt='Unknown pseudo-class: "'.concat(En,'"');Lr&&Lr.length>0&&(bt+=". It is defined in: ".concat(Lr.join(", "))),at(bt+".")}var ie=Ze(En,"pseudo-class",te),Ee={type:"PseudoClass",name:En};ie&&(Ee.argument=ie),nt.items.push(Ee)}}else break;if(nt.items.length===0)return _t()?at("Expected rule but end of input reached."):at('Expected rule but "'.concat(ve,'" found.'));if(At(),!_t()&&!be(",")&&!be(")")){var rn=mt(F);At(),nt.nestedRule=tn(),nt.nestedRule.combinator=rn}return nt}return function(he){if(typeof he!="string")throw new Error("".concat(nx,"Expected string input."));return re=he,ce=re.length,oe=0,ve=re.charAt(0),de()}}const Tbe=xbe({syntax:"selectors-4"});function Sbe(e){if(typeof e!="string")throw new TypeError("Expected `string` as selector, not `"+e+"`");return Tbe(e)}const z6="֑-߿יִ-﷽ﹰ-ﻼ",$6="A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--",Cbe=new RegExp("^[^"+$6+"]*["+z6+"]"),_be=new RegExp("^[^"+z6+"]*["+$6+"]");function Abe(e){const t=String(e||"");return Cbe.test(t)?"rtl":_be.test(t)?"ltr":"neutral"}function V6(e){return"children"in e?G6(e):"value"in e?e.value:""}function kbe(e){return e.type==="text"?e.value:"children"in e?G6(e):""}function G6(e){let t=-1;const n=[];for(;++t<e.children.length;)n[t]=kbe(e.children[t]);return n.join("")}function wbe(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=vN(t);d!=null&&(e.language=String(d)),n&&n.space==="html"?(t.properties.contentEditable==="true"&&(e.editableOrEditingHost=!0),t.tagName==="svg"&&(e.schema=is),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=rx(V6(t)):t.tagName==="input"&&(p==="email"||p==="search"||p==="tel"||p==="text")?s=t.properties.value?rx(String(t.properties.value)):"ltr":ko(t,u)),s&&(e.direction=s)):e.editableOrEditingHost&&(e.editableOrEditingHost=!1)}return l;function l(){e.schema=n,e.language=r,e.direction=o,e.editableOrEditingHost=a}function u(d){if(d.type==="text")return s=rx(d.value),s?r0:void 0;if(d!==t&&d.type==="element"&&(d.tagName==="bdi"||d.tagName==="script"||d.tagName==="style"||d.tagName==="textare"||vN(d)))return Ap}}function rx(e){const t=Abe(e);return t==="neutral"?void 0:t}function vN(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 Dbe(e,t,n){const r=jh(n,e.name),o=t.properties[r.property];let a=Rbe(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||hT(a).includes(s)}return!1}function Rbe(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?fb:pb)(e)}else return String(e)}const Ibe=[];function Obe(e,t){return(t.properties.className||Ibe).includes(e.name)}function Nbe(e,t){return t.properties.id===e.name}function Pbe(e,t){return e.name===t.tagName}function Lbe(e,t){return function(n,r){let o=EN(n,"tag");const a=EN(r??"*","range"),s=[];let l=-1;for(;++l<a.length;){const u=a[l].toLowerCase();let d=-1;const p=[];for(;++d<o.length;)e(o[d].toLowerCase(),u)?s.push(o[d]):p.push(o[d]);o=p}return s}}const Mbe=Lbe(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 EN(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 Fbe={}.hasOwnProperty;function hc(e,t){const n=e.type==="element"&&Fbe.call(e.properties,t)&&e.properties[t];return n!=null&&n!==!1}const Bbe=new Set([9,10,12,13,32]),xN=48,jbe=57;function Ube(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),l(),t<e.length?(r=a(),l(),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)>=xN&&e.charCodeAt(t)<=jbe;)d=d*10+(e.charCodeAt(t)-xN),t++;return t===u?null:d}function l(){for(;t<e.length&&Bbe.has(e.charCodeAt(t));)t++}}var TN,SN;function Hbe(){return SN||(SN=1,TN={trueFunc:function(){return!0},falseFunc:function(){return!1}}),TN}var zbe=Hbe();const CN=J0(zbe);function $be(e){const t=e[0],n=e[1]-1;if(n<0&&t<=0)return CN.falseFunc;if(t===-1)return a=>a<=n;if(t===0)return a=>a===n;if(t===1)return n<0?CN.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 _N(e){return $be(Ube(e))}const Vbe=_N.default||_N,Gbe=db("name",{handlers:{"any-link":qbe,blank:Wbe,checked:Ybe,dir:Qbe,disabled:q6,empty:Kbe,enabled:Xbe,"first-child":Zbe,"first-of-type":Jbe,has:eve,is:W6,lang:nve,"last-child":rve,"last-of-type":ove,not:ave,"nth-child":ive,"nth-last-child":sve,"nth-last-of-type":lve,"nth-of-type":cve,"only-child":uve,"only-of-type":dve,optional:fve,"read-only":pve,"read-write":Y6,required:Q6,root:hve,scope:mve},invalid:tve,unknown:gve});function qbe(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&hc(t,"href")}function Ci(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function Wbe(e,t){return!K6(t,n);function n(r){return r.type==="element"||r.type==="text"&&!Uh(r)}}function Ybe(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&hc(t,"checked")):t.tagName==="option"?hc(t,"selected"):!1}function Qbe(e,t,n,r,o){return e.argument,e.argument.type,o.direction===e.argument.value}function q6(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")&&hc(t,"disabled")}function Kbe(e,t){return!K6(t,n);function n(r){return r.type==="element"||r.type==="text"}}function Xbe(e,t){return!q6(e,t)}function Zbe(e,t,n,r,o){return Ci(o,e),o.elementIndex===0}function Jbe(e,t,n,r,o){return Ci(o,e),o.typeIndex===0}function Db(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=Vbe(n.a+"n+"+n.b),e._cachedFn=t}return t}function eve(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 d_(a,{type:"root",children:t.children}),a.results.length>0}function tve(){}function W6(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 d_(a,t),a.results[0]===t}function nve(e,t,n,r,o){return e.argument,e.argument.type,o.language!==""&&o.language!==void 0&&Mbe(o.language,pT(e.argument.value)).length>0}function rve(e,t,n,r,o){return Ci(o,e),!!(o.elementCount&&o.elementIndex===o.elementCount-1)}function ove(e,t,n,r,o){return Ci(o,e),typeof o.typeIndex=="number"&&typeof o.typeCount=="number"&&o.typeIndex===o.typeCount-1}function ave(e,t,n,r,o){return!W6(e,t,n,r,o)}function ive(e,t,n,r,o){const a=Db(e);return Ci(o,e),typeof o.elementIndex=="number"&&a(o.elementIndex)}function sve(e,t,n,r,o){const a=Db(e);return Ci(o,e),!!(typeof o.elementCount=="number"&&typeof o.elementIndex=="number"&&a(o.elementCount-o.elementIndex-1))}function lve(e,t,n,r,o){const a=Db(e);return Ci(o,e),typeof o.typeCount=="number"&&typeof o.typeIndex=="number"&&a(o.typeCount-1-o.typeIndex)}function cve(e,t,n,r,o){const a=Db(e);return Ci(o,e),typeof o.typeIndex=="number"&&a(o.typeIndex)}function uve(e,t,n,r,o){return Ci(o,e),o.elementCount===1}function dve(e,t,n,r,o){return Ci(o,e),o.typeCount===1}function fve(e,t){return!Q6(e,t)}function pve(e,t,n,r,o){return!Y6(e,t,n,r,o)}function Y6(e,t,n,r,o){return t.tagName==="input"||t.tagName==="textarea"?!hc(t,"readOnly")&&!hc(t,"disabled"):!!o.editableOrEditingHost}function Q6(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&hc(t,"required")}function hve(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 mve(e,t,n,r,o){return o.scopeElements.includes(t)}function K6(e,t){const n=e.children;let r=-1;for(;++r<n.length;)if(t(n[r]))return!0;return!1}function gve(e){const t=e;throw new Error("Unknown pseudo-selector `"+t.name+"`")}function yve(e,t,n,r,o){for(const a of e.items)if(a.type==="Attribute"){if(!Dbe(a,t,o.schema))return!1}else if(a.type==="Id"){if(!Nbe(a,t))return!1}else if(a.type==="ClassName"){if(!Obe(a,t))return!1}else if(a.type==="PseudoClass"){if(!Gbe(a,t,n,r,o))return!1}else{if(a.type==="PseudoElement")throw new Error("Invalid selector: `::"+a.name+"`");if(a.type==="TagName"&&!Pbe(a,t))return!1}return!0}const bve=[];function d_(e,t){t&&X6(e,[],t,void 0,void 0,t)}function ox(e,t,n){const r=e[t];r?r.push(n):e[t]=[n]}function vve(e,t,n,r){const o=cy(t.descendant,t.directChild);let a,s=-1;const l={count:0,types:new Map},u={count:0,types:new Map};for(;++s<n.children.length;)AN(l,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=l.count,e.typeCount=p?l.types.get(p):0,"children"in d){const h=cy(o,a),g=X6(e,h,n.children[s],s,n,r);a=cy(g.generalSibling,g.adjacentSibling)}if(e.one&&e.found)break;AN(u,n.children[s])}}function Eve(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 l=t[s];if(e.one&&e.found)break;if(e.shallow&&l.nestedRule)throw new Error("Expected selector without nesting");if(yve(l,n,r,o,e)){const u=l.nestedRule;if(u){const d=u.combinator==="+"?"adjacentSibling":u.combinator==="~"?"generalSibling":u.combinator===">"?"directChild":"descendant";ox(a,d,u)}else e.found=!0,e.results.includes(n)||e.results.push(n)}l.combinator===void 0?ox(a,"descendant",l):l.combinator==="~"&&ox(a,"generalSibling",l)}return a}function cy(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:bve}function AN(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 X6(e,t,n,r,o,a){let s={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const l=wbe(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=Eve(e,cy(t,u),n,r,o)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&vve(e,s,n,a),l(),s}function xve(e,t,n){const r=Tve(e,t);return d_(r,t||void 0),r.results}function Tve(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:Sbe(e),schema:vd,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const Z6=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=Z6(n.children))}),t),Sve=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const o=xve(t,r);o&&o.length>0&&ko(r,o,(a,s,l)=>{n(a,s,l)});return}ko(r,(o,a,s)=>{n(o,a,s)})}}},Cve=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),_ve=(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]}},J6=(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?J6(e,o,"pre",r)?void 0:(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a):(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a)}},kN=({value:e=""})=>{const t=Cve(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},wN=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},Ave=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{ko(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 l=o.children[0];if(l&&l.tagName==="code"&&typeof a=="number"){const u=_ve(s.children,a);if(u){const d=kN(u);Object.keys(d).length>0&&(o.properties={...o.properties,"data-type":"rehyp"},l.properties=wN(l.properties,d,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(o.tagName)&&s&&Array.isArray(s.children)&&typeof a=="number"){const l=J6(s.children,a,"",n);if(l){const u=kN(l);Object.keys(u).length>0&&(o.properties=wN(o.properties,u,t))}}})}};var kve=function(e){return t=>{ko(t,n=>{n.type==="element"&&n.tagName==="code"&&n.data&&n.data.meta&&(n.properties=Fe({},n.properties,{"data-meta":String(n.data.meta)}))})}},wve=function(e){return t=>{ko(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 Dve=/[\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,Rve=Object.hasOwnProperty;class Ive{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let o=Ove(t,n===!0);const a=o;for(;Rve.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 Ove(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(Dve,"").replace(/ /g,"-"))}function e8(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 Nve={},DN=new Ive;function Pve(e){const t=(e||Nve).prefix||"";return function(n){DN.reset(),ko(n,"element",function(r){e8(r)&&!r.properties.id&&(r.properties.id=t+DN.slug(V6(r)))})}}const t8=function(e){if(e==null)return Fve;if(typeof e=="string")return Mve(e);if(typeof e=="object")return Lve(e);if(typeof e=="function")return f_(e);throw new Error("Expected function, string, or array as `test`")};function Lve(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=t8(e[n]);return f_(r);function r(...o){let a=-1;for(;++a<t.length;)if(t[a].apply(this,o))return!0;return!1}}function Mve(e){return f_(t);function t(n){return n.tagName===e}}function f_(e){return t;function t(n,r,o){return!!(Bve(n)&&e.call(this,n,typeof r=="number"?r:void 0,o||void 0))}}function Fve(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function Bve(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const RN={type:"element",tagName:"span",properties:{className:["icon","icon-link"]},children:[]},jve={};function Uve(e){const t=e||jve;let n=t.properties;const r=t.headingProperties,o=t.behavior||"prepend",a=t.content,s=t.group,l=t8(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){ko(g,"element",function(y,v,T){if(e8(y)&&y.properties.id&&l(y,v,T))return Object.assign(y.properties,Lg(r,y)),u(y,v,T)})};function d(g){const y=IN(a||RN,g);return g.children[o==="prepend"?"unshift":"push"](ax(g,Lg(n,g),y)),[Ap]}function p(g,y,v){if(typeof y!="number"||!v)return;const T=IN(a||RN,g),_=ax(g,Lg(n,g),T);let x=o==="before"?[_,g]:[g,_];if(s){const D=n8(s,g);D&&!Array.isArray(D)&&D.type==="element"&&(D.children=x,x=[D])}return v.children.splice(y,1,...x),[Ap,y+x.length]}function h(g){let y=g.children,v=[];return typeof a=="function"?(y=[],v=a(g)):a&&(v=p_(a)),g.children=[ax(g,Lg(n,g),Array.isArray(v)?[...y,...v]:[...y,v])],[Ap]}}function p_(e){return pc(e)}function ax(e,t,n){return{type:"element",tagName:"a",properties:{...t,href:"#"+e.properties.id},children:n}}function IN(e,t){const n=n8(e,t);return Array.isArray(n)?n:[n]}function n8(e,t){return typeof e=="function"?e(t):p_(e)}function Lg(e,t){return typeof e=="function"?e(t):e?p_(e):{}}const Hve=(e={})=>{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{ko(r,(o,a,s)=>{if(o.type==="element"||o.type==="root"){let l=!1;o.children=o.children.filter(u=>{if(u.type==="raw"||u.type==="comment"){let d=(u.value||"").trim();if(d=d.replace(/^<!--(.*?)-->/,"$1"),d===t)return l=!0,!1;if(d===n)return l=!1,!1}return!l})}})}};var zve={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 $ve(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 Vve=(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=Fe({class:"anchor"},a.properties),a.children=[zve])}if(n.type==="element"&&n.tagName==="pre"&&!e){var s=Z6(n.children);n.children.push($ve(s))}t&&t(n,r===null?void 0:r,o===null?void 0:o)},Gve=[Pve,Uve,Hve];const r8=Be.forwardRef((e,t)=>{var n,r=[kve,wve,...Gve,[Sve,{rewrite:Vve((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[Ave,{properties:"attr"}],...e.rehypePlugins||[]];return b.jsx(sbe,Fe({},e,{rehypePlugins:r,ref:t}))});function qve(e,t){return Fe({},e,t)}var Ad=Be.createContext({markdown:""});function o8(e,t){return e===void 0&&(e=[]),t===void 0&&(t={}),e.forEach(n=>{n.children&&Array.isArray(n.children)?t=Fe({},t,o8(n.children||[])):n.keyCommand&&n.shortcuts&&n.execute&&(t[n.shortcuts.toLocaleLowerCase()]=n)}),t}function a8(e,t,n,r,o){t===void 0&&(t=[]);var a=o8(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 l=!!a[s.join("+")],u=l?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 ix;function ON(e){if(e.nodeName!=="TEXTAREA")return!1;if(typeof ix>"u"){var t=document.createElement("textarea");t.value="1",ix=!!t.firstChild}return ix}function zu(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(),l=document.createTextNode(t);if(ON(e)){var u=e.firstChild;if(!u)e.appendChild(l);else{for(var d=0,p=null,h=null;u&&(p===null||h===null);){var 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(ON(e)&&s.commonAncestorContainer.nodeName==="#text")s.insertNode(l);else{var y=e.value;e.value=y.slice(0,o)+t+y.slice(a)}}e.setSelectionRange(o+t.length,o+t.length);var v=document.createEvent("UIEvent");v.initEvent("input",!0,!1),e.dispatchEvent(v)}}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=Wve(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(`
|
|
392
|
+
`)+1,o=t.slice(n.end).indexOf(`
|
|
393
|
+
`)+n.end;return o===n.end-1&&(o=t.length),{start:r,end:o}}function i8(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 s8(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 Wve(e,t){if(!e)throw Error("Argument 'text' should be truthy");for(var n=l=>l===" "||l.charCodeAt(0)===10,r=0,o=e.length,a=t;a-1>-1;a--)if(n(e[a-1])){r=a;break}for(var s=t;s<e.length;s++)if(n(e[s])){o=s;break}return{start:r,end:o}}function Hr(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 h_(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 l=t(a,s);return r+=l.length,t(a,s)+a}throw Error("insertion is expected to be either a string or a function")}).join(`
|
|
394
|
+
`);return{modifiedText:o,insertionLength:r}}var Yve={name:"bold",keyCommand:"bold",shortcuts:"ctrlcmd+b",prefix:"**",buttonProps:{"aria-label":"Add bold text (ctrl + b)",title:"Add bold text (ctrl + b)"},icon:b.jsx("svg",{role:"img",width:"12",height:"12",viewBox:"0 0 384 512",children:b.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);Hr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},l8={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:b.jsx("svg",{width:"13",height:"13",role:"img",viewBox:"0 0 156 156",children:b.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)===`
|
|
395
|
+
`||r.selection.start===0)&&(o="```\n"),(r.selection.end<=e.text.length-1&&e.text.slice(r.selection.end,r.selection.end+1)===`
|
|
396
|
+
`||r.selection.end===e.text.length)&&(a="\n```"));var s=lo({text:e.text,selection:e.selection,prefix:o,suffix:a}),l=t.setSelectionRange(s);Hr({api:t,selectedText:l.selectedText,selection:e.selection,prefix:o,suffix:a})}},Qve={name:"code",keyCommand:"code",shortcuts:"ctrlcmd+j",prefix:"`",buttonProps:{"aria-label":"Insert code (ctrl + j)",title:"Insert code (ctrl + j)"},icon:b.jsx("svg",{width:"14",height:"14",role:"img",viewBox:"0 0 640 512",children:b.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(`
|
|
397
|
+
`)===-1){var n=lo({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);Hr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}else l8.execute(e,t)}},Kve={name:"comment",keyCommand:"comment",shortcuts:"ctrlcmd+/",prefix:"<!-- ",suffix:" -->",buttonProps:{"aria-label":"Insert comment (ctrl + /)",title:"Insert comment (ctrl + /)"},icon:b.jsx("svg",{height:"1em",width:"1em",viewBox:"0 0 25 25",children:b.jsxs("g",{fill:"none",fillRule:"evenodd",children:[b.jsx("polygon",{points:".769 .727 24.981 .727 24.981 24.727 .769 24.727"}),b.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"}),b.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);Hr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix})}},uy={keyCommand:"divider"},Xve={name:"fullscreen",keyCommand:"fullscreen",shortcuts:"ctrlcmd+0",value:"fullscreen",buttonProps:{"aria-label":"Toggle fullscreen (ctrl + 0)",title:"Toggle fullscreen (ctrl+ 0)"},icon:b.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:b.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 Zve(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var Jve=(e,t)=>{var n=Fe({children:e,icon:b.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:b.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=Fe({},(Zve(r),r));return o.parent=n,Fe({},o)})),n},e1e={name:"hr",keyCommand:"hr",shortcuts:"ctrlcmd+h",prefix:`
|
|
398
|
+
|
|
399
|
+
---
|
|
400
|
+
`,suffix:"",buttonProps:{"aria-label":"Insert HR (ctrl + h)",title:"Insert HR (ctrl + h)"},icon:b.jsx("svg",{width:"12",height:"12",viewBox:"0 0 175 175",children:b.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)?Hr({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}),Hr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}))}},t1e={name:"image",keyCommand:"image",shortcuts:"ctrlcmd+k",prefix:"",buttonProps:{"aria-label":"Add image (ctrl + k)",title:"Add image (ctrl + k)"},icon:b.jsx("svg",{width:"13",height:"13",viewBox:"0 0 20 20",children:b.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")?Hr({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?Hr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:""}):Hr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"![",suffix:"]()"}))}},n1e={name:"italic",keyCommand:"italic",shortcuts:"ctrlcmd+i",prefix:"*",buttonProps:{"aria-label":"Add italic text (ctrl + i)",title:"Add italic text (ctrl + i)"},icon:b.jsx("svg",{"data-name":"italic",width:"12",height:"12",role:"img",viewBox:"0 0 320 512",children:b.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);Hr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},r1e={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:b.jsx("svg",{"data-name":"italic",width:"12",height:"12",role:"img",viewBox:"0 0 520 520",children:b.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),Hr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"[](",suffix:")"})):r.selectedText.length===0?Hr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"[title",suffix:"](url)"}):Hr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix})}},m_=(e,t,n)=>{var r=lo({text:e.text,selection:e.selection,prefix:e.command.prefix}),o=t.setSelectionRange(r),a=i8(o.text,o.selection.start),s=Array(a+1).join(`
|
|
401
|
+
`),l=s8(o.text,o.selection.end),u=Array(l+1).join(`
|
|
402
|
+
`),{modifiedText:d,insertionLength:p}=h_(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)===`
|
|
403
|
+
`&&(h-=1),o.selection.end<e.text.length-1&&e.text.slice(o.selection.end,o.selection.end+1)===`
|
|
404
|
+
`&&(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,v=y+d.length;t.setSelectionRange({start:y,end:v})}},o1e={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:b.jsx("svg",{"data-name":"unordered-list",width:"12",height:"12",viewBox:"0 0 512 512",children:b.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)=>{m_(e,t,"- ")}},a1e={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:b.jsx("svg",{"data-name":"ordered-list",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:b.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)=>{m_(e,t,(n,r)=>r+1+". ")}},i1e={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:b.jsx("svg",{"data-name":"checked-list",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:b.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)=>{m_(e,t,(n,r)=>"- [ ] ")}},s1e={name:"preview",keyCommand:"preview",value:"preview",shortcuts:"ctrlcmd+9",buttonProps:{"aria-label":"Preview code (ctrl + 9)",title:"Preview code (ctrl + 9)"},icon:b.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[b.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"}),b.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"})}},l1e={name:"edit",keyCommand:"preview",value:"edit",shortcuts:"ctrlcmd+7",buttonProps:{"aria-label":"Edit code (ctrl + 7)",title:"Edit code (ctrl + 7)"},icon:b.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[b.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"}),b.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"})}},c1e={name:"live",keyCommand:"preview",value:"live",shortcuts:"ctrlcmd+8",buttonProps:{"aria-label":"Live code (ctrl + 8)",title:"Live code (ctrl + 8)"},icon:b.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[b.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"}),b.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"})}},u1e={name:"quote",keyCommand:"quote",shortcuts:"ctrlcmd+q",prefix:"> ",buttonProps:{"aria-label":"Insert a quote (ctrl + q)",title:"Insert a quote (ctrl + q)"},icon:b.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:b.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=i8(r.text,r.selection.start),a=Array(o+1).join(`
|
|
405
|
+
`),s=s8(r.text,r.selection.end),l=Array(s+1).join(`
|
|
406
|
+
`),u=h_(r.selectedText,e.command.prefix);t.replaceSelection(""+a+u.modifiedText+l);var d=r.selection.start+o,p=d+u.modifiedText.length;t.setSelectionRange({start:d,end:p})}},d1e={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:b.jsx("svg",{"data-name":"strikethrough",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:b.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);Hr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},c8={name:"heading1",keyCommand:"heading1",shortcuts:"ctrlcmd+1",prefix:"# ",suffix:"",buttonProps:{"aria-label":"Insert Heading 1 (ctrl + 1)",title:"Insert Heading 1 (ctrl + 1)"},icon:b.jsx("div",{style:{fontSize:18,textAlign:"left"},children:"Heading 1"}),execute:(e,t)=>{kd({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},f1e=c8;function kd(e){var{state:t,api:n,prefix:r,suffix:o=r}=e,a=Op({text:t.text,selection:t.selection}),s=n.setSelectionRange(a);Hr({api:n,selectedText:s.selectedText,selection:t.selection,prefix:r,suffix:o})}Fe({},c8,{icon:b.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:b.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 p1e={name:"heading2",keyCommand:"heading2",shortcuts:"ctrlcmd+2",prefix:"## ",suffix:"",buttonProps:{"aria-label":"Insert Heading 2 (ctrl + 2)",title:"Insert Heading 2 (ctrl + 2)"},icon:b.jsx("div",{style:{fontSize:16,textAlign:"left"},children:"Heading 2"}),execute:(e,t)=>{kd({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},h1e=p1e,m1e={name:"heading3",keyCommand:"heading3",shortcuts:"ctrlcmd+3",prefix:"### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 3 (ctrl + 3)",title:"Insert Heading 3 (ctrl + 3)"},icon:b.jsx("div",{style:{fontSize:15,textAlign:"left"},children:"Heading 3"}),execute:(e,t)=>{kd({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},g1e=m1e,y1e={name:"heading4",keyCommand:"heading4",shortcuts:"ctrlcmd+4",prefix:"#### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 4 (ctrl + 4)",title:"Insert Heading 4 (ctrl + 4)"},icon:b.jsx("div",{style:{fontSize:14,textAlign:"left"},children:"Heading 4"}),execute:(e,t)=>{kd({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},b1e=y1e,v1e={name:"heading5",keyCommand:"heading5",shortcuts:"ctrlcmd+5",prefix:"##### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 5 (ctrl + 5)",title:"Insert Heading 5 (ctrl + 5)"},icon:b.jsx("div",{style:{fontSize:12,textAlign:"left"},children:"Heading 5"}),execute:(e,t)=>{kd({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},E1e=v1e,x1e={name:"heading6",keyCommand:"heading6",shortcuts:"ctrlcmd+6",prefix:"###### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 6 (ctrl + 6)",title:"Insert Heading 6 (ctrl + 6)"},icon:b.jsx("div",{style:{fontSize:12,textAlign:"left"},children:"Heading 6"}),execute:(e,t)=>{kd({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},T1e=x1e,S1e={name:"table",keyCommand:"table",prefix:`
|
|
407
|
+
| Header | Header |
|
|
408
|
+
|--------|--------|
|
|
409
|
+
| Cell | Cell |
|
|
410
|
+
| Cell | Cell |
|
|
411
|
+
| Cell | Cell |
|
|
412
|
+
|
|
413
|
+
`,suffix:"",buttonProps:{"aria-label":"Add table",title:"Add table"},icon:b.jsx("svg",{role:"img",width:"12",height:"12",viewBox:"0 0 512 512",children:b.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)?Hr({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}),Hr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}))}},C1e={name:"help",keyCommand:"help",buttonProps:{"aria-label":"Open help",title:"Open help"},icon:b.jsx("svg",{viewBox:"0 0 16 16",width:"12px",height:"12px",children:b.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")}},_1e=()=>[Yve,n1e,d1e,e1e,Jve([f1e,h1e,g1e,b1e,E1e,T1e],{name:"title",groupName:"title",buttonProps:{"aria-label":"Insert title",title:"Insert title"}}),uy,r1e,u1e,Qve,l8,Kve,t1e,S1e,uy,o1e,a1e,i1e,uy,C1e],A1e=()=>[l1e,c1e,s1e,uy,Xve];function c0(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 g_{constructor(t){this.textArea=void 0,this.textArea=t}replaceSelection(t){return zu(this.textArea,t),c0(this.textArea)}setSelectionRange(t){return this.textArea.focus(),this.textArea.selectionStart=t.start,this.textArea.selectionEnd=t.end,c0(this.textArea)}}class y_{constructor(t){this.textArea=void 0,this.textApi=void 0,this.textArea=t,this.textApi=new g_(t)}getState(){return this.textArea?c0(this.textArea):!1}executeCommand(t,n,r,o){t.execute&&t.execute(Fe({command:t},c0(this.textArea)),this.textApi,n,r,o)}}function dy(e){e.stopPropagation(),e.preventDefault()}function NN(e,t){dy(e);var n=e.target,r=new g_(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}}),l=n.value.slice(s.start,s.end);r.setSelectionRange({start:s.start,end:o.end}),zu(n,a+`
|
|
414
|
+
`+l),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}),zu(n,d+`
|
|
415
|
+
`+a),r.setSelectionRange({start:u.end-a.length,end:u.end})}}}function k1e(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(`
|
|
416
|
+
`),s=a[a.length-1],l=new g_(r);if(!n&&e.code&&e.code.toLowerCase()==="tab"){dy(e);var u=new Array(t+1).join(" ");if(r.selectionStart!==r.selectionEnd){var d=r.value.substring(0,r.selectionStart).split(`
|
|
417
|
+
`),p=r.value.substring(0,r.selectionEnd).split(`
|
|
418
|
+
`),h=[];p.forEach((F,H)=>{F!==d[H]&&h.push(F)});var g=h.join(`
|
|
419
|
+
`),y=r.value.substring(r.selectionStart,r.selectionEnd),v=r.value.substring(0,r.selectionStart).length;l.setSelectionRange({start:r.value.indexOf(g),end:r.selectionEnd});var T=h_(g,e.shiftKey?"":u),_=T.modifiedText;e.shiftKey&&(_=_.split(`
|
|
420
|
+
`).map(F=>F.replace(new RegExp("^"+u),"")).join(`
|
|
421
|
+
`)),l.replaceSelection(_);var x=e.shiftKey?-t:t,D=e.shiftKey?-h.length*t:h.length*t;l.setSelectionRange({start:v+x,end:v+y.length+D})}else return zu(r,u)}else if(e.keyCode===13&&e.code.toLowerCase()==="enter"&&(/^(-|\*)\s/.test(s)||/^\d+.\s/.test(s))&&!e.shiftKey){dy(e);var C=`
|
|
422
|
+
- `;return s.startsWith("*")&&(C=`
|
|
423
|
+
* `),(s.startsWith("- [ ]")||s.startsWith("- [X]")||s.startsWith("- [x]"))&&(C=`
|
|
424
|
+
- [ ] `),/^\d+.\s/.test(s)&&(C=`
|
|
425
|
+
`+(parseInt(s)+1)+". "),zu(r,C)}else if(e.code&&e.code.toLowerCase()==="keyd"&&e.ctrlKey){dy(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);l.setSelectionRange({start:R.end,end:R.end}),zu(r,`
|
|
426
|
+
`+O),l.setSelectionRange({start:I.start,end:I.end})}else e.code&&e.code.toLowerCase()==="arrowup"&&e.altKey?NN(e,-1):e.code&&e.code.toLowerCase()==="arrowdown"&&e.altKey&&NN(e,1)}var w1e=["prefixCls","onChange"],D1e=["markdown","commands","fullscreen","preview","highlightEnable","extraCommands","tabSize","defaultTabEnable","autoFocusEnd","textareaWarp","dispatch"];function R1e(e){var{prefixCls:t,onChange:n}=e,r=Qr(e,w1e),o=w.useContext(Ad),{markdown:a,commands:s,fullscreen:l,preview:u,highlightEnable:d,extraCommands:p,tabSize:h,defaultTabEnable:g,autoFocusEnd:y,textareaWarp:v,dispatch:T}=o;Qr(o,D1e);var _=Be.useRef(null),x=Be.useRef(),D=Be.useRef({fullscreen:l,preview:u});w.useEffect(()=>{D.current={fullscreen:l,preview:u,highlightEnable:d}},[l,u,d]),w.useEffect(()=>{if(_.current&&T){var R=new y_(_.current);x.current=R,T({textarea:_.current,commandOrchestrator:R})}},[]),w.useEffect(()=>{if(y&&_.current&&v){_.current.focus();var R=_.current.value.length;_.current.setSelectionRange(R,R),setTimeout(()=>{v&&(v.scrollTop=v.scrollHeight),_.current&&(_.current.scrollTop=_.current.scrollHeight)},0)}},[v]);var C=R=>{k1e(R,h,g),a8(R,[...s||[],...p||[]],x.current,T,D.current)};return w.useEffect(()=>(_.current&&_.current.addEventListener("keydown",C),()=>{_.current&&_.current.removeEventListener("keydown",C)}),[]),b.jsx("textarea",Fe({autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1},r,{ref:_,className:t+"-text-input "+(r.className?r.className:""),value:a,onChange:R=>{T&&T({markdown:R.target.value}),n&&n(R)}}))}var I1e=["prefixCls","className","onScroll","renderTextarea"];function O1e(e){var t=e||{},{prefixCls:n,className:r,onScroll:o,renderTextarea:a}=t,s=Qr(t,I1e),{markdown:l,scrollTop:u,commands:d,extraCommands:p,dispatch:h}=w.useContext(Ad),g=Be.useRef(null),y=Be.useRef(),v=Be.createRef();w.useEffect(()=>{var _={};v.current&&(_.textareaWarp=v.current||void 0,v.current.scrollTop=u||0),h&&h(Fe({},_))},[]),w.useEffect(()=>{if(g.current&&h){var _=new y_(g.current);y.current=_,h({textarea:g.current,commandOrchestrator:_})}},[]);var T={WebkitTextFillColor:"initial",overflow:"auto"};return b.jsx("div",{ref:v,className:n+"-area "+(r||""),onScroll:o,children:b.jsx("div",{className:n+"-text",children:a?Be.cloneElement(a(Fe({},s,{value:l,autoComplete:"off",autoCorrect:"off",spellCheck:"false",autoCapitalize:"off",className:n+"-text-input",style:{WebkitTextFillColor:"inherit",overflow:"auto"}}),{dispatch:h,onChange:s.onChange,shortcuts:a8,useContext:{commands:d,extraCommands:p,commandOrchestrator:y.current}}),{ref:g}):b.jsx(w.Fragment,{children:b.jsx(R1e,Fe({prefixCls:n},s,{style:T}))})})})}function N1e(e){var{prefixCls:t,groupName:n,commands:r,children:o}=e||{},{barPopup:a={}}=w.useContext(Ad);return w.useMemo(()=>b.jsx("div",{className:t+"-toolbar-child "+(n&&a[n]?"active":""),onClick:s=>s.stopPropagation(),children:Array.isArray(r)?b.jsx(u8,Fe({commands:r},e,{isChild:!0})):o}),[r,a,n,t])}function PN(e){var{prefixCls:t,overflow:n}=e,{fullscreen:r,preview:o,barPopup:a={},components:s,commandOrchestrator:l,dispatch:u}=w.useContext(Ad),d=w.useRef("");function p(h,g){if(u){var y={barPopup:Fe({},a)};h.keyCommand==="preview"&&(y.preview=h.value),h.keyCommand==="fullscreen"&&(y.fullscreen=!r),e.commands&&h.keyCommand==="group"?e.commands.forEach(v=>{g===v.groupName?y.barPopup[g]=!0:v.keyCommand&&(y.barPopup[v.groupName]=!1)}):(g||h.parent)&&Object.keys(y.barPopup||{}).forEach(v=>{y.barPopup[v]=!1}),Object.keys(y).length&&u(Fe({},y)),l&&l.executeCommand(h)}}return w.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]),b.jsx("ul",{children:(e.commands||[]).map((h,g)=>{if(h.keyCommand==="divider")return b.jsx("li",Fe({},h.liProps,{className:t+"-toolbar-divider"}),g);if(!h.keyCommand)return b.jsx(w.Fragment,{},g);var y=r&&h.keyCommand==="fullscreen"||h.keyCommand==="preview"&&o===h.value,v=h.children&&typeof h.children=="function"?h.children({getState:()=>l.getState(),textApi:l?l.textApi:void 0,close:()=>p({},h.groupName),execute:()=>p({execute:h.execute}),dispatch:u}):void 0,T=a&&o&&o==="preview"&&!/(preview|fullscreen)/.test(h.keyCommand),_=s?.toolbar||h.render,x=_&&typeof _=="function"?_(h,!!T,p,g):null;return b.jsxs("li",Fe({},h.liProps,{className:y?"active":"",children:[x&&Be.isValidElement(x)&&x,!x&&!h.buttonProps&&h.icon,!x&&h.buttonProps&&Be.createElement("button",Fe({type:"button",key:g,disabled:T,"data-name":h.name},h.buttonProps,{onClick:D=>{D.stopPropagation(),p(h,h.groupName)}}),h.icon),h.children&&b.jsx(N1e,{overflow:n,groupName:h.groupName,prefixCls:t,children:v,commands:Array.isArray(h.children)?h.children:void 0})]}),g)})})}function u8(e){e===void 0&&(e={});var{prefixCls:t,isChild:n,className:r}=e,{commands:o,extraCommands:a}=w.useContext(Ad);return b.jsxs("div",{className:t+"-toolbar "+r,children:[b.jsx(PN,Fe({},e,{commands:e.commands||o||[]})),!n&&b.jsx(PN,Fe({},e,{commands:a||[]}))]})}function LN(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 b.jsx(u8,{prefixCls:a,overflow:o,className:s})}var P1e=e=>{var{prefixCls:t,onChange:n}=e||{},r=w.useRef(null),o=w.useRef(),a=w.useRef(e.height);w.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 l(){var p,h;o.current=void 0,document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",l),(p=r.current)==null||p.removeEventListener("touchmove",s),(h=r.current)==null||h.removeEventListener("touchend",l)}function u(p){var h,g,y;p.preventDefault();var v=p.clientY||((h=p.changedTouches[0])==null?void 0:h.clientY);o.current={height:a.current,dragY:v},document.addEventListener("mousemove",s),document.addEventListener("mouseup",l),(g=r.current)==null||g.addEventListener("touchmove",s,{passive:!1}),(y=r.current)==null||y.addEventListener("touchend",l,{passive:!1})}w.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=w.useMemo(()=>b.jsx("svg",{viewBox:"0 0 512 512",height:"100%",children:b.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 b.jsx("div",{className:t+"-bar",ref:r,children:d})},L1e=["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 M1e(e){return e===void 0&&(e={}),Object.keys(e).forEach(t=>{e[t]=!1}),e}var F1e=Be.forwardRef((e,t)=>{var n=e||{},{prefixCls:r="w-md-editor",className:o,value:a,commands:s=_1e(),commandsFilter:l,direction:u,extraCommands:d=A1e(),height:p=200,enableScroll:h=!0,visibleDragbar:g=typeof e.visiableDragbar=="boolean"?e.visiableDragbar:!0,highlightEnable:y=!0,preview:v="live",fullscreen:T=!1,overflow:_=!0,previewOptions:x={},textareaProps:D,maxHeight:C=1200,minHeight:R=100,autoFocus:I,autoFocusEnd:O=!1,tabSize:F=2,defaultTabEnable:H=!1,onChange:U,onStatistics:S,onHeightChange:M,hideToolbar:$,toolbarBottom:z=!1,components:q,renderTextarea:Y}=n,B=Qr(n,L1e),K=s.map(He=>l?l(He,!1):He).filter(Boolean),ae=d.map(He=>l?l(He,!0):He).filter(Boolean),[ne,N]=w.useReducer(qve,{markdown:a,preview:v,components:q,height:p,minHeight:R,highlightEnable:y,tabSize:F,defaultTabEnable:H,scrollTop:0,scrollTopPreview:0,commands:K,extraCommands:ae,fullscreen:T,barPopup:{}}),Q=w.useRef(null),X=w.useRef(null),P=w.useRef(h);w.useImperativeHandle(t,()=>Fe({},ne,{container:Q.current,dispatch:N})),w.useMemo(()=>P.current=h,[h]),w.useEffect(()=>{var He={};Q.current&&(He.container=Q.current||void 0),He.markdown=a||"",He.barPopup={},N&&N(Fe({},ne,He))},[]);var re=[o,"wmde-markdown-var",u?r+"-"+u:null,r,ne.preview?r+"-show-"+ne.preview:null,ne.fullscreen?r+"-fullscreen":null].filter(Boolean).join(" ").trim();w.useMemo(()=>a!==ne.markdown&&N({markdown:a||""}),[a,ne.markdown]),w.useMemo(()=>v!==ne.preview&&N({preview:v}),[v]),w.useMemo(()=>F!==ne.tabSize&&N({tabSize:F}),[F]),w.useMemo(()=>y!==ne.highlightEnable&&N({highlightEnable:y}),[y]),w.useMemo(()=>I!==ne.autoFocus&&N({autoFocus:I}),[I]),w.useMemo(()=>O!==ne.autoFocusEnd&&N({autoFocusEnd:O}),[O]),w.useMemo(()=>T!==ne.fullscreen&&N({fullscreen:T}),[T]),w.useMemo(()=>p!==ne.height&&N({height:p}),[p]),w.useMemo(()=>p!==ne.height&&M&&M(ne.height,p,ne),[p,M,ne]),w.useMemo(()=>s!==ne.commands&&N({commands:K}),[e.commands]),w.useMemo(()=>d!==ne.extraCommands&&N({extraCommands:ae}),[e.extraCommands]);var ce=w.useRef(),oe=w.useRef("preview"),ve=w.useRef(!1);w.useMemo(()=>{ce.current=ne.textareaWarp,ne.textareaWarp&&(ne.textareaWarp.addEventListener("mouseover",()=>{oe.current="text"}),ne.textareaWarp.addEventListener("mouseleave",()=>{oe.current="preview"}))},[ne.textareaWarp]);var be=(He,mt)=>{if(P.current){var ct=ce.current,ft=X.current?X.current:void 0;if(ve.current||(oe.current=mt,ve.current=!0),ct&&ft){var ze=(ct.scrollHeight-ct.offsetHeight)/(ft.scrollHeight-ft.offsetHeight);He.target===ct&&oe.current==="text"&&(ft.scrollTop=ct.scrollTop/ze),He.target===ft&&oe.current==="preview"&&(ct.scrollTop=ft.scrollTop*ze);var Le=0;oe.current==="text"?Le=ct.scrollTop||0:oe.current==="preview"&&(Le=ft.scrollTop||0),N({scrollTop:Le})}}},qe=r+"-preview "+(x.className||""),Me=He=>be(He,"preview"),Oe=w.useMemo(()=>b.jsx("div",{ref:X,className:qe,children:b.jsx(r8,Fe({},x,{onScroll:Me,source:ne.markdown||""}))}),[qe,x,ne.markdown]),Ke=q?.preview&&q?.preview(ne.markdown||"",ne,N);Ke&&Be.isValidElement(Ke)&&(Oe=b.jsx("div",{className:qe,ref:X,onScroll:Me,children:Ke}));var at=Fe({},B.style,{height:ne.height||"100%"}),Re=()=>N({barPopup:Fe({},M1e(ne.barPopup))}),yt=He=>N({height:He}),_t=He=>{if(U&&U(He.target.value,He,ne),D&&D.onChange&&D.onChange(He),ne.textarea&&ne.textarea instanceof HTMLTextAreaElement&&S){var mt=new y_(ne.textarea),ct=mt.getState()||{};S(Fe({},ct,{lineCount:He.target.value.split(`
|
|
427
|
+
`).length,length:He.target.value.length}))}};return b.jsx(Ad.Provider,{value:Fe({},ne,{dispatch:N}),children:b.jsxs("div",Fe({ref:Q,className:re},B,{onClick:Re,style:at,children:[b.jsx(LN,{hideToolbar:$,toolbarBottom:z,prefixCls:r,overflow:_,placement:"top"}),b.jsxs("div",{className:r+"-content",children:[/(edit|live)/.test(ne.preview||"")&&b.jsx(O1e,Fe({className:r+"-input",prefixCls:r,autoFocus:I},D,{onChange:_t,renderTextarea:q?.textarea||Y,onScroll:He=>be(He,"text")})),/(live|preview)/.test(ne.preview||"")&&Oe]}),g&&!ne.fullscreen&&b.jsx(P1e,{prefixCls:r,height:ne.height,maxHeight:C,minHeight:R,onChange:yt}),b.jsx(LN,{hideToolbar:$,toolbarBottom:z,prefixCls:r,overflow:_,placement:"bottom"})]}))})}),d8=F1e;d8.Markdown=r8;function B1e({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 b.jsx(WL,{sourceAndPaths:t,existingQuery:o,existingSourceName:e.sourceName,onQueryChange:n,onSourceChange:r})}function j1e({cell:e,expandCodeCell:t,expandEmbedding:n,hideEmbeddingIcons:r,editingMalloy:o,editingMarkdown:a,sourceAndPaths:s,onCellChange:l,onClose:u,onEdit:d,onDelete:p,addButtonCallback:h}){const[g,y]=Be.useState(t),[v,T]=Be.useState(n),[_,x]=Be.useState(),[D]=Be.useState(),[C,R]=Be.useState(xp()),[I,O]=Be.useState(!1),[F,H]=Be.useState(e.sourceName?s.findIndex(P=>P.sourceInfo.name===e.sourceName):0);w.useEffect(()=>{e.isMarkdown||dc(e.value,"malloy").then(P=>{x(P)})},[e]);const[U,S]=w.useState(e.value);Be.useEffect(()=>{document.documentElement.setAttribute("data-color-mode","light")});const M=U1e(P=>{l({...e,value:P})}),[$,z]=w.useState(!1),q=()=>{p(),z(!1)},Y=s.length===0,B=()=>{const P=s[F],re=P?.modelPath||e.modelPath||"",ce=P?.sourceInfo.name||e.sourceName||"";l({...e,value:C.query,result:C.malloyResult?JSON.stringify(C.malloyResult):void 0,queryInfo:C.malloyQuery?JSON.stringify(C.malloyQuery):void 0,sourceName:ce,modelPath:re})},K=b.jsx(ir,{title:"Delete Cell",children:b.jsx(nr,{size:"small",onClick:()=>z(!0),children:b.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:b.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=b.jsxs(Ku,{open:$,onClose:()=>z(!1),children:[b.jsx(Zu,{children:"Confirm Delete"}),b.jsx(Xu,{children:b.jsx(Ue,{children:"Are you sure you want to delete this cell?"})}),b.jsxs(A5,{children:[b.jsx(Ur,{onClick:()=>z(!1),children:"Cancel"}),b.jsx(Ur,{onClick:q,color:"error",children:"Delete"})]})]}),ne=e.isMarkdown?b.jsxs(b.Fragment,{children:[a?b.jsx(ir,{title:"Save",children:b.jsx(nr,{size:"small",onClick:u,children:b.jsx(kg,{})})}):b.jsx(ir,{title:"Edit",children:b.jsx(nr,{size:"small",onClick:d,children:b.jsx(sO,{})})}),!a&&K]}):b.jsxs(b.Fragment,{children:[!o&&b.jsx(ir,{title:g?"Hide Code":"View Code",children:b.jsx(nr,{size:"small",onClick:()=>{y(!g)},children:b.jsx(mL,{})})}),!r&&!o&&e.result&&b.jsx(ir,{title:v?"Hide Embedding":"View Embedding",children:b.jsx(nr,{size:"small",onClick:()=>{T(!v)},children:b.jsx(Lh,{})})}),o&&b.jsx(ir,{title:"Save",children:b.jsx(nr,{size:"small",onClick:()=>{B(),u()},children:b.jsx(kg,{})})}),!o&&b.jsx(ir,{title:"Edit",children:b.jsx(nr,{size:"small",onClick:d,children:b.jsx(sO,{})})}),!o&&K]}),N=o||a,Q=a?b.jsx(ir,{title:"Save",children:b.jsx(nr,{size:"small",onClick:u,children:b.jsx(kg,{})})}):o?b.jsx(ir,{title:"Save",children:b.jsx(nr,{size:"small",onClick:()=>{B(),u()},children:b.jsx(kg,{})})}):null,X=I&&b.jsx(Rt,{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&&b.jsxs(b.Fragment,{children:[h(!0),h(!1),ne]})||Q});return b.jsxs(_r,{sx:{position:"relative",marginTop:"5px",marginBottom:"5px",borderWidth:"1.5px",backgroundColor:"#fff",minHeight:"50px"},onMouseEnter:()=>O(!0),onMouseLeave:()=>{O(!1)},children:[X,e.isMarkdown?b.jsx(b.Fragment,{children:a?b.jsx(d8,{value:U,preview:"edit",autoFocus:!0,onChange:P=>{S(P),M(P)},onBlur:()=>{B(),I||u()}}):b.jsx(Rt,{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:U?b.jsx(Rt,{onClick:d,sx:{cursor:"pointer"},children:b.jsx(QS,{children:U})}):b.jsxs(Rt,{onClick:d,sx:{cursor:"pointer"},children:[b.jsx(Ue,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"Markdown is empty"}),b.jsx(Ue,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Click to edit."})]})})}):b.jsxs(b.Fragment,{children:[b.jsx(Na,{in:v,timeout:"auto",unmountOnExit:!0,children:b.jsx(cn,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:b.jsx(Ue,{component:"div",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},dangerouslySetInnerHTML:{__html:D}})})}),b.jsx(Na,{in:g,timeout:"auto",unmountOnExit:!0,children:b.jsx(cn,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:b.jsx(Ue,{component:"div",className:"content",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},dangerouslySetInnerHTML:{__html:_}})})}),o&&(Y?b.jsxs(b.Fragment,{children:[b.jsx(Ue,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"No Model Imports"}),b.jsx(Ue,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Please add a model import above."})]}):b.jsx(B1e,{sourceAndPaths:s,onQueryChange:P=>{R(P)},cell:e,onSourceChange:H})),!o&&e.result&&b.jsx(_r,{variant:"outlined",sx:{borderRadius:0},children:b.jsx(gL,{result:e.result,minHeight:300,maxHeight:800})}),!o&&!e.result&&b.jsxs(Rt,{onClick:d,sx:{cursor:"pointer"},children:[b.jsx(Ue,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"Explore is empty"}),b.jsx(Ue,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Click to edit."})]})]}),$&&ae]})}function U1e(e,t=2e3){const n=Be.useRef(void 0);return Be.useCallback(r=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{e(r)},t)},[e,t])}const f8=w.createContext(void 0);function H1e({children:e,workbookStorage:t}){const n=w.useMemo(()=>({workbookStorage:t}),[t]);return b.jsx(f8.Provider,{value:n,children:e})}function b_(){const e=w.useContext(f8);if(!e)throw new Error("useWorkbookStorage must be used within a WorkbookStorageProvider");return e}const z1e=wn(b.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"})),$1e=wn(b.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"})),V1e=new gb(new $r);function G1e({initialSelectedModels:e,onModelChange:t}){const{projectName:n,packageName:r,versionId:o}=Yo(),{data:a,isLoading:s,isSuccess:l,isError:u,error:d}=Zr({queryKey:["models",n,r,o],queryFn:x=>V1e.listModels(n,r,o,x)}),[p,h]=Be.useState(e||[]),[g,y]=Be.useState(null);Be.useEffect(()=>{h(e||[])},[e]);const v=x=>{const D=p.filter(C=>C!==x);h(D),t(D)},T=x=>{const D=[...p,x];h(D),t(D),y(null)};let _=[];return l&&a?.data&&(_=a.data.filter(x=>!p.includes(x.path)).map(x=>x.path)),u?b.jsx(zr,{error:d,context:`${n} > ${r} > Model Picker`}):b.jsxs(b.Fragment,{children:[b.jsxs(Ay,{fullWidth:!0,children:[s&&b.jsx(Ue,{children:"Loading..."}),b.jsxs(cn,{direction:"row",spacing:1,children:[p.map(x=>b.jsx(Kl,{label:x,onDelete:()=>v(x),deleteIcon:b.jsx(z1e,{}),sx:{marginBottom:"5px"}},x)),b.jsx(Ur,{size:"small",startIcon:b.jsx($1e,{}),onClick:x=>y(x.currentTarget),disabled:s||u||_.length===0,children:"Add Model"})]})]}),b.jsxs(M0,{anchorEl:g,open:!!g,onClose:()=>y(null),children:[b.jsx(Ue,{variant:"subtitle2",sx:{ml:1},children:"Models"}),b.jsx(vr,{}),_.length===0?b.jsx(Xl,{disabled:!0,children:"No models available"}):_.map(x=>b.jsx(Xl,{onClick:()=>T(x),children:b.jsx(Ue,{variant:"body2",children:x})},x))]})]})}function Yh(){const e=GT();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")}}const q1e=new gb(new $r);function W1e({workbookPath:e,expandCodeCells:t,expandEmbeddings:n,hideEmbeddingIcons:r,defaultProjectName:o,defaultPackageName:a}){const s=Yh(),{server:l,getAccessToken:u}=$C(),{workbookStorage:d}=b_(),[p,h]=Be.useState(void 0);if(!d)throw new Error("Workbook storage be provided via WorkbookStorageProvider");const[g,y]=Be.useState(),[v,T]=Be.useState(),[_,x]=Be.useState(),[D,C]=Be.useState([]),[R,I]=Be.useState(null),[O,F]=Be.useState(null),H=!!R,U=()=>{I(null),F(null)},S=(N,Q)=>{g.insertCell(Q,{isMarkdown:N,value:""}),B(),N?x(Q):T(Q),U()},[M,$]=Be.useState(!1),z=()=>{$(!0)},q=async()=>{e&&d&&await d.deleteWorkbook(e).then(()=>{h(void 0)}).catch(N=>{h(`Error deleting workbook: ${N.message}`)}),$(!1),s(`/${o}/${a}`)},Y=()=>{$(!1)},B=Be.useCallback(async()=>{try{y(await g.saveWorkbook()),h(void 0)}catch(N){h(`Error saving workbook: ${N.message}`)}},[g]);if(Be.useEffect(()=>{g&&(async()=>{const N=new Map(D.map(({modelPath:P,sourceInfos:re})=>[P,re])),Q=[],X=[];for(const P of g.getModels())N.has(P)?Q.push({modelPath:P,sourceInfos:N.get(P)}):(console.log("Fetching model from Publisher",P),X.push(q1e.getModel(o,a,P,void 0,await NC(l,u)).then(re=>({modelPath:P,sourceInfos:re.data.sourceInfos.map(ce=>JSON.parse(ce))}))));if(X.length>0){const P=await Promise.all(X);C([...Q,...P])}else C(Q)})()},[u,g,a,o,l]),Be.useEffect(()=>{e&&Tp.loadWorkbook(d,e).then(N=>{y(N)})},[e,d]),!g)return b.jsx("div",{children:"Loading..."});const K=N=>{const Q=[];for(const X of N)for(const P of X.sourceInfos)Q.push({modelPath:X.modelPath,sourceInfo:P});return Q},ae=(N,Q)=>b.jsx(Ur,{size:"small",startIcon:b.jsx(Sce,{}),onClick:()=>S(N,Q),variant:"contained",sx:{backgroundColor:"#fff",color:X=>X.palette.mode==="dark"?X.palette.grey[100]:X.palette.grey[700],boxShadow:"none","&:hover":{backgroundColor:X=>X.palette.mode==="dark"?X.palette.grey[500]:X.palette.grey[300],boxShadow:"none"}},children:N?"Markdown":"Explore"}),ne=b.jsxs(Rt,{sx:{display:"flex",gap:1,justifyContent:"center",flex:2},children:[ae(!1,g.getCells().length),ae(!0,g.getCells().length)]});return b.jsxs(_r,{variant:"outlined",children:[b.jsxs(Wo,{children:[p&&b.jsx(Rt,{sx:{mb:2},children:b.jsx(Ue,{color:"error",variant:"body2",children:p})}),b.jsxs(yu,{sx:{flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:[b.jsxs(yu,{direction:"row",spacing:1,alignItems:"center",children:[b.jsx(Ue,{variant:"overline",sx:{fontSize:"13px",fontWeight:"bold",verticalAlign:"middle"},children:"Workbook"}),b.jsx(Ue,{variant:"subtitle2",sx:{fontSize:"13px",fontWeight:"normal",verticalAlign:"middle",ml:1},children:`${e.workspace} > ${e.path}`})]}),b.jsxs(yu,{sx:{display:"flex",flexDirection:"row",gap:1},children:[b.jsx(Rt,{sx:{display:"flex",alignItems:"center",mt:1,mb:1},children:b.jsx(Y1e,{workbookData:g})}),b.jsxs(Rt,{sx:{display:"flex",alignItems:"center",mt:1,mb:1},children:[b.jsx(Ur,{color:"error",onClick:z,size:"small",children:"Delete"}),b.jsxs(Ku,{open:M,onClose:Y,children:[b.jsx(Zu,{children:"Delete Workbook"}),b.jsx(Xu,{children:b.jsxs(zq,{children:['Are you sure you want to delete the workbook "',e.path,'"? This action cannot be undone.']})}),b.jsxs(A5,{children:[b.jsx(Ur,{onClick:Y,color:"primary",size:"small",children:"Cancel"}),b.jsx(Ur,{onClick:N=>q(),color:"error",autoFocus:!0,size:"small",children:"Delete"})]})]})]})]})]}),b.jsx(vr,{}),b.jsxs(yu,{sx:{display:"flex",flexDirection:"row",width:"100%",mt:2},children:[b.jsx(Rt,{sx:{flex:1},children:b.jsx(G1e,{initialSelectedModels:g.getModels(),onModelChange:N=>{y(g.setModels(N)),B()}})}),b.jsx(Rt,{sx:{flex:1}})]})]}),b.jsx(IC,{children:b.jsxs(yu,{children:[g.getCells().length===0&&b.jsxs(b.Fragment,{children:[b.jsx(Ue,{sx:{textAlign:"center",p:2,variant:"subtitle2",fontWeight:"medium"},children:"Workbook is empty"}),b.jsx(Ue,{variant:"body2",sx:{textAlign:"center",mb:2,variant:"body2"},children:"Click the + buttons to add a markdown or code cell."})]}),g.getCells().map((N,Q)=>b.jsx(Be.Fragment,{children:b.jsx(j1e,{cell:N,addButtonCallback:X=>ae(X,Q),sourceAndPaths:K(D),expandCodeCell:t,expandEmbedding:n,hideEmbeddingIcons:r,editingMarkdown:_===Q,editingMalloy:v===Q,onDelete:()=>{y(g.deleteCell(Q)),B()},onCellChange:X=>{y(g.setCell(Q,X)),B()},onEdit:()=>{N.isMarkdown?x(Q):T(Q)},onClose:()=>{N.isMarkdown?x(void 0):T(void 0)}},`${Q}-${N.isMarkdown}-${e.workspace}-${e.path}`)},`${Q}-${g.getCells().length}`)),ne,b.jsxs(M0,{anchorEl:R,open:H,onClose:U,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[b.jsx(Xl,{onClick:()=>S(!0,O??0),children:"Add Markdown"}),b.jsx(Xl,{onClick:()=>S(!1,O??0),children:"Add Malloy"})]}),b.jsx(yu,{sx:{flexDirection:"row",justifyContent:"flex-end",p:1}})]})})]})}function Y1e({workbookData:e}){const[t,n]=Be.useState(!1);return b.jsx(Ur,{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 Q1e({onWorkbookClick:e}){const{workbookStorage:t}=b_(),[n,r]=Be.useState([]),[o,a]=Be.useState(void 0);return Be.useEffect(()=>{t&&t.listWorkspaces(!1).then(s=>{const l=[];Promise.all(s.map(async u=>{await t.listWorkbooks(u).then(d=>{l.push(...d)}).catch(d=>{a(`Error listing workbooks: ${d.message}`)})})).then(()=>{r(l),a(void 0)})})},[t]),b.jsxs(b.Fragment,{children:[o&&b.jsx(Rt,{sx:{mb:2},children:b.jsx(Ue,{color:"error",variant:"body2",children:o})}),b.jsx(vr,{}),b.jsx(Rt,{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:b.jsxs(Ah,{dense:!0,children:[n.length===0&&b.jsx(wu,{children:b.jsx(ts,{primary:"No workbooks found.",sx:{textAlign:"center"}})}),n.map(s=>b.jsx(wu,{onClick:l=>e(s,l),sx:{cursor:"pointer","&:hover":{backgroundColor:"action.hover"}},children:b.jsx(ts,{primary:s.path})},s.path))]})})]})}const MN="Local";class K1e{async listWorkspaces(t){return Promise.resolve([{name:MN,description:"Stored locally- only accessible to this browser",writeable:!0}])}async listWorkbooks(t){const n=[];for(let r=0;r<localStorage.length;r++){const o=localStorage.key(r);n.push({path:o,workspace:MN})}return n}async getWorkbook(t){const n=localStorage.getItem(t.path);if(n===null)throw new Error(`Notebook not found at path: ${t}`);return n}async deleteWorkbook(t){if(localStorage.getItem(t.path)===null)throw new Error(`Notebook not found at path: ${t}`);localStorage.removeItem(t.path)}async saveWorkbook(t,n){localStorage.setItem(t.path,n)}async moveWorkbook(t,n){const r=localStorage.getItem(t.path);if(r===null)throw new Error(`Notebook not found at path: ${t.path}`);localStorage.setItem(n.path,r),localStorage.removeItem(t.path)}}const X1e=wn(b.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"})),Z1e=wn(b.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"})),FN=wn(b.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"})),J1e=wn(b.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=wn(b.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"})),tEe=wn([b.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"),b.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")]),BN=wn(b.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"})),nEe=new dL(new $r),rEe=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 oEe({navigate:e}){const{data:t,isSuccess:n,isError:r,error:o}=Zr({queryKey:["projects"],queryFn:a=>nEe.listProjects(a)});return r?b.jsx(zr,{error:o,context:"Projects List"}):n?b.jsxs(OS,{maxWidth:"lg",sx:{py:4},children:[b.jsxs(Rt,{sx:{textAlign:"center",mb:6},children:[b.jsxs(cn,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[b.jsx(FN,{sx:{fontSize:32,color:"primary.main"}}),b.jsx(Ue,{variant:"h3",component:"h1",fontWeight:700,children:"Publisher"})]}),b.jsx(Ue,{variant:"h5",color:"text.secondary",sx:{mb:3,maxWidth:600,mx:"auto"},children:"The open-source semantic model server for the Malloy data language"}),b.jsx(Ue,{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."})]}),b.jsxs(Gn,{container:!0,spacing:3,sx:{mb:6},children:[b.jsx(Gn,{size:{xs:12,md:4},children:b.jsx(Au,{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:b.jsxs(ku,{sx:{p:3},children:[b.jsxs(cn,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[b.jsx(X1e,{sx:{color:"info.main",fontSize:28}}),b.jsx(Ue,{variant:"h6",fontWeight:600,children:"Ad Hoc Analysis"})]}),b.jsx(Ue,{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."}),b.jsx(Kl,{label:"No-code",size:"small",color:"primary",variant:"outlined"})]})})}),b.jsx(Gn,{size:{xs:12,md:4},children:b.jsx(Au,{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:b.jsxs(ku,{sx:{p:3},children:[b.jsxs(cn,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[b.jsx(J1e,{sx:{color:"warning.main",fontSize:28}}),b.jsx(Ue,{variant:"h6",fontWeight:600,children:"Notebook Dashboards"})]}),b.jsx(Ue,{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."}),b.jsx(Kl,{label:"Versioned",size:"small",color:"warning",variant:"outlined"})]})})}),b.jsx(Gn,{size:{xs:12,md:4},children:b.jsx(Au,{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:b.jsxs(ku,{sx:{p:3},children:[b.jsxs(cn,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[b.jsx(tEe,{sx:{color:"success.main",fontSize:28}}),b.jsx(Ue,{variant:"h6",fontWeight:600,children:"AI Data Agents"})]}),b.jsx(Ue,{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."}),b.jsx(Kl,{label:"AI-Ready",size:"small",color:"success",variant:"outlined"})]})})})]}),b.jsx(vr,{sx:{my:4}}),t.data.length>0?b.jsxs(b.Fragment,{children:[b.jsxs(Rt,{sx:{textAlign:"center",mb:4},children:[b.jsxs(cn,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[b.jsx(BN,{sx:{color:"primary.main",fontSize:24}}),b.jsx(Ue,{variant:"h4",fontWeight:600,children:"Select a Project"})]}),b.jsx(Ue,{variant:"body1",color:"text.secondary",children:"Choose a project to explore its semantic models and start analyzing your data"})]}),b.jsx(Gn,{container:!0,spacing:3,justifyContent:"center",children:t.data.map(a=>b.jsx(Gn,{size:{xs:12,sm:6,md:4},children:b.jsx(Au,{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:b.jsxs(ku,{sx:{p:3,textAlign:"center"},children:[b.jsx(eEe,{sx:{fontSize:48,color:"primary.main",mb:2}}),b.jsx(Ue,{variant:"h6",fontWeight:600,gutterBottom:!0,children:a.name}),b.jsx(Ue,{variant:"body2",color:"text.secondary",sx:{mb:2},children:rEe(a.readme)}),b.jsx(Ur,{variant:"contained",color:"secondary",endIcon:b.jsx(Z1e,{}),fullWidth:!0,children:"Open Project"})]})})},a.name))})]}):b.jsxs(Rt,{sx:{textAlign:"center",mb:4},children:[b.jsxs(cn,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[b.jsx(BN,{sx:{color:"primary.main",fontSize:24}}),b.jsx(Ue,{variant:"h4",fontWeight:600,children:"Get Started"})]}),b.jsx(Ue,{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."}),b.jsx(Ur,{variant:"contained",size:"large",color:"primary",startIcon:b.jsx(FN,{}),href:"https://github.com/malloydata/publisher/blob/main/README.md#server-configuration",target:"_blank",rel:"noopener noreferrer",children:"Learn How to Create Models"})]}),b.jsx(Rt,{sx:{textAlign:"center",mt:6,pt:4,borderTop:1,borderColor:"divider"},children:b.jsxs(Ue,{variant:"body2",color:"text.secondary",children:["Publisher is built on fully open infrastructure and designed for the AI era. Join the"," ",b.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."]})})]}):b.jsx(Xr,{text:"Loading projects..."})}function aEe({onWorkbookSelect:e}){const{workbookStorage:t}=b_(),[n,r]=Be.useState(""),[o,a]=Be.useState(""),[s,l]=Be.useState([]),[u,d]=Be.useState(null),[p,h]=Be.useState(!1),[g,y]=Be.useState(!1),v=!!u,T=O=>{d(O.currentTarget)},_=()=>{d(null)},x=()=>{y(!1)},D=()=>{h(!1),r(""),a("")};Be.useEffect(()=>{t&&(console.log("fetching workspaces"),t.listWorkspaces(!0).then(O=>{l(O),O.length===1&&a(O[0].name)}).catch(O=>{console.error("Error fetching workspaces:",O),l([])}))},[t]);const C=(O,F)=>{y(!1),e(O,F)},R=O=>{h(!1),e({path:n,workspace:o},O),r(""),a("")},I=s.length===0;return b.jsxs(b.Fragment,{children:[b.jsx(Ur,{"aria-controls":v?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":v?"true":void 0,onClick:T,variant:"contained",sx:{height:"40px",px:2,backgroundColor:"#fbbb04","&:hover":{backgroundColor:"#eab308"}},children:"Analyze Package"}),b.jsxs(M0,{id:"basic-menu",anchorEl:u,open:v,onClose:_,MenuListProps:{"aria-labelledby":"basic-button",sx:{py:.5}},children:[b.jsxs(Xl,{onClick:()=>{h(!0),_()},sx:{py:1,px:2},disabled:I,children:[b.jsx(HD,{children:b.jsx(nJ,{fontSize:"small"})}),b.jsxs(ts,{children:[b.jsx(Ue,{variant:"body2",fontWeight:500,children:"New Workbook"}),I?b.jsx(Ue,{variant:"caption",color:"text.secondary",children:"No workspaces available"}):b.jsx(Ue,{variant:"caption",color:"text.secondary",children:"Create a new analysis workbook"})]})]}),b.jsxs(Xl,{onClick:()=>{y(!0),_()},sx:{py:1,px:2},children:[b.jsx(HD,{children:b.jsx(iJ,{fontSize:"small"})}),b.jsxs(ts,{children:[b.jsx(Ue,{variant:"body2",fontWeight:500,children:"Open Workbook"}),b.jsx(Ue,{variant:"caption",color:"text.secondary",children:"Open an existing workbook"})]})]})]}),b.jsxs(Ku,{open:p,onClose:D,maxWidth:"sm",fullWidth:!0,children:[b.jsxs(Zu,{sx:{pb:1,pt:2,px:2},children:[b.jsx(Ue,{fontWeight:600,sx:{fontSize:"1.5rem",mb:.5},children:"Create New Workbook"}),b.jsx(Ue,{variant:"body2",color:"text.secondary",children:"Start a new analysis workbook to explore your data"})]}),b.jsx(Xu,{sx:{px:2,pb:2},children:b.jsxs(cn,{spacing:2,sx:{mt:1},children:[s.length>1?b.jsxs(Ay,{fullWidth:!0,size:"small",children:[b.jsx(k5,{children:"Workspace"}),b.jsx(BS,{value:o,label:"Workspace",onChange:O=>a(O.target.value),children:s.map(O=>b.jsx(Xl,{value:O.name,children:b.jsxs(Rt,{children:[b.jsx(Ue,{variant:"body2",fontWeight:500,children:O.name}),b.jsx(Ue,{variant:"caption",color:"text.secondary",children:O.description})]})},O.name))})]}):s.length===1?b.jsxs(Rt,{sx:{p:2,border:1,borderColor:"divider",borderRadius:1,backgroundColor:"grey.50"},children:[b.jsxs(Ue,{variant:"body2",fontWeight:500,gutterBottom:!0,children:["Workspace: ",s[0].name]}),b.jsx(Ue,{variant:"caption",color:"text.secondary",children:s[0].description})]}):null,b.jsx(Ay,{fullWidth:!0,children:b.jsx(BQ,{label:"Workbook Name",value:n,onChange:O=>r(O.target.value),placeholder:"Enter workbook name...",fullWidth:!0,autoFocus:!0,size:"small"})}),b.jsxs(cn,{direction:"row",spacing:1,justifyContent:"flex-end",children:[b.jsx(Ur,{onClick:D,variant:"outlined",size:"small",children:"Cancel"}),b.jsx(Ur,{onClick:O=>R(O),variant:"contained",disabled:!n.trim()||s.length>1&&!o,size:"small",children:"Create Workbook"})]})]})})]}),b.jsxs(Ku,{open:g,onClose:x,maxWidth:"md",fullWidth:!0,children:[b.jsxs(Zu,{sx:{pb:1,pt:2,px:2},children:[b.jsx(Ue,{fontWeight:600,sx:{mb:.5,fontSize:"1.5rem"},children:"Open Workbook"}),b.jsx(Ue,{variant:"body2",color:"text.secondary",children:"Select an existing workbook to continue your analysis"})]}),b.jsx(Xu,{sx:{px:2,pb:2},children:b.jsx(Q1e,{onWorkbookClick:C})})]})]})}new OC(new $r);wt.defaults.baseURL="IfYouAreSeeingThis_baseURL_IsNotSet";function iEe(){const e=Yh();return b.jsx(oEe,{navigate:e})}function sEe(){const e=id(),t=e["*"],n=Yh();return b.jsx(Rt,{sx:{display:"flex",alignItems:"center"},children:b.jsxs(AG,{"aria-label":"breadcrumb",separator:b.jsx(rJ,{sx:{fontSize:14,color:"text.secondary"}}),sx:{"& .MuiBreadcrumbs-separator":{margin:"0 6px"}},children:[e.projectName&&b.jsx(Kl,{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&&b.jsx(Kl,{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&&b.jsx(Kl,{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 lEe({logoHeader:e,endCap:t}){const n=GT(),{projectName:r,packageName:o}=id();return b.jsx(O$,{position:"sticky",elevation:0,sx:{backgroundColor:"background.paper",borderBottom:"1px solid",borderColor:"divider"},children:b.jsxs(dQ,{sx:{justifyContent:"space-between"},children:[b.jsxs(cn,{direction:"row",spacing:2,alignItems:"center",children:[e||b.jsxs(Rt,{sx:{display:"flex",alignItems:"center",gap:1},children:[b.jsx(Rt,{component:"img",src:"/logo.svg",alt:"Malloy",sx:{width:28,height:28}}),b.jsx(Ue,{variant:"h5",sx:{color:"text.primary",fontWeight:700,letterSpacing:"-0.025em",cursor:"pointer"},onClick:()=>{n("/")},children:"Malloy Publisher"})]}),b.jsx(sEe,{})]}),b.jsxs(cn,{direction:"row",spacing:2,alignItems:"center",children:[!r||!o?!e&&b.jsxs(b.Fragment,{children:[b.jsx(Ur,{href:"https://docs.malloydata.dev/documentation/",children:"Malloy Docs"}),b.jsx(Ur,{href:"https://github.com/malloydata/publisher/blob/main/README.md",children:"Publisher Docs"}),b.jsx(Ur,{href:"/api-doc.html",children:"Publisher API"})]}):b.jsx(b.Fragment,{children:b.jsx(aEe,{onWorkbookSelect:a=>{n(`/${r}/${o}/workbook/${a.workspace}/${a.path}`)}})}),t]})]})})}function cEe({headerProps:e}){return b.jsxs(Rt,{sx:{display:"flex",flexDirection:"column",minHeight:"100vh"},children:[b.jsx(lEe,{...e}),b.jsx(OS,{maxWidth:"xl",component:"main",sx:{flex:1,display:"flex",flexDirection:"column",py:2,gap:2},children:b.jsx(Rt,{sx:{flex:1},children:b.jsx(ZB,{})})})]})}function uEe(){const e=id(),t=e["*"];return e.projectName?e.packageName?t?.endsWith(".malloy")?b.jsx(Zy,{projectName:e.projectName,packageName:e.packageName,children:b.jsx(xce,{modelPath:t,hideEmbeddingIcons:!1})}):t?.endsWith(".malloynb")?b.jsx(Zy,{projectName:e.projectName,packageName:e.packageName,children:b.jsx(yL,{notebookPath:t,hideEmbeddingIcons:!1,expandResults:!1})}):b.jsx("div",{children:b.jsxs("h2",{children:["Unrecognized file type: ",t]})}):b.jsx("div",{children:b.jsx("h2",{children:"Missing package name"})}):b.jsx("div",{children:b.jsx("h2",{children:"Missing project name"})})}function dEe(){const{projectName:e,packageName:t}=id(),n=Yh();return e?t?b.jsx(Zy,{projectName:e,packageName:t,children:b.jsx(fce,{navigate:n})}):b.jsx("div",{children:b.jsx("h2",{children:"Missing package name"})}):b.jsx("div",{children:b.jsx("h2",{children:"Missing project name"})})}function fEe(){const e=Yh(),{projectName:t}=id();return t?b.jsx(EL,{projectName:t,children:b.jsx(Fie,{navigate:e})}):b.jsx("div",{children:b.jsx("h2",{children:"Missing project name"})})}function pEe(){const e=a3();return console.error(e),b.jsx(OS,{maxWidth:"lg",component:"main",sx:{display:"flex",flexDirection:"column",my:2,gap:0},children:b.jsxs(cn,{sx:{m:"auto",flexDirection:"column"},children:[b.jsx(Rt,{sx:{height:"300px"}}),b.jsx("img",{src:"/error.png"}),b.jsx(Ue,{variant:"subtitle1",children:"An unexpected error occurred"})]})})}function hEe(){const{workspace:e,workbookPath:t,projectName:n,packageName:r}=id();return e?t?n?r?b.jsx(Zy,{projectName:n,packageName:r,children:b.jsx(W1e,{defaultProjectName:n,defaultPackageName:r,workbookPath:{path:t,workspace:e},hideEmbeddingIcons:!0},`${t}`)}):b.jsx("div",{children:b.jsx("h2",{children:"Missing package name"})}):b.jsx("div",{children:b.jsx("h2",{children:"Missing project name"})}):b.jsx("div",{children:b.jsx("h2",{children:"Missing workbook path"})}):b.jsx("div",{children:b.jsx("h2",{children:"Missing workspace"})})}const Hn={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"}},mEe=k0({palette:{mode:"light",primary:Hn.primary,secondary:Hn.secondary,grey:Hn.grey,success:Hn.success,warning:Hn.warning,error:Hn.error,info:Hn.info,background:{default:"#ffffff",paper:"#ffffff"},text:{primary:Hn.grey[900],secondary:Hn.grey[600]},divider:Hn.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:`${Hn.grey[300]} ${Hn.grey[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:Hn.grey[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:Hn.grey[300],borderRadius:"4px","&:hover":{background:Hn.grey[400]}},"&::-webkit-scrollbar-corner":{background:Hn.grey[100]}},"*":{scrollbarWidth:"thin",scrollbarColor:`${Hn.grey[300]} ${Hn.grey[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:Hn.grey[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:Hn.grey[300],borderRadius:"4px","&:hover":{background:Hn.grey[400]}},"&::-webkit-scrollbar-corner":{background:Hn.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:Hn.grey[400]}}}},MuiDivider:{styleOverrides:{root:{margin:"4px 0",borderColor:Hn.grey[200]}},defaultProps:{sx:{my:1}}}}}),gEe=(e="/",t,n,r,o)=>T9([{path:e,element:b.jsx(Cce,{server:r,getAccessToken:o,children:b.jsx(H1e,{workbookStorage:t,children:b.jsxs(_z,{theme:mEe,children:[b.jsx(aq,{}),b.jsx(cEe,{headerProps:n})]})})}),errorElement:b.jsx(pEe,{}),children:[{path:"",element:b.jsx(iEe,{})},{path:":projectName",element:b.jsx(fEe,{})},{path:":projectName/:packageName",element:b.jsx(dEe,{})},{path:":projectName/:packageName/*",element:b.jsx(uEe,{})},{path:":projectName/:packageName/workbook/:workspace/:workbookPath",element:b.jsx(hEe,{})}]}]),yEe=`${window.location.protocol}//${window.location.host}/api/v0`,bEe=gEe("/",new K1e,void 0,yEe);kF.createRoot(document.getElementById("root")).render(b.jsx(w.StrictMode,{children:b.jsx(P9,{router:bEe})}));export{sx as R,G as _,zs as a,Be as b,f0 as c,vEe as d,jN as g,b as j,w as r};
|