mysshx 0.0.0-stage → 1.0.1
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/bin/mysshx.js +86 -0
- package/client/dist/assets/index-DYP7pi_n.css +32 -0
- package/client/dist/assets/index-DjxXfsDs.js +293 -0
- package/client/dist/index.html +13 -0
- package/package.json +37 -4
- package/readme.md +7 -0
- package/server/crypto.js +42 -0
- package/server/db.js +33 -0
- package/server/index.js +61 -0
- package/server/machines.js +127 -0
- package/server/package.json +11 -0
- package/server/sftpSession.js +447 -0
- package/server/sshManager.js +61 -0
- package/server/terminalSession.js +94 -0
- package/README.md +0 -3
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
var ab=Object.defineProperty;var lb=(e,t,n)=>t in e?ab(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ko=(e,t,n)=>lb(e,typeof t!="symbol"?t+"":t,n);function cb(e,t){for(var n=0;n<t.length;n++){const s=t[n];if(typeof s!="string"&&!Array.isArray(s)){for(const a in s)if(a!=="default"&&!(a in e)){const u=Object.getOwnPropertyDescriptor(s,a);u&&Object.defineProperty(e,a,u.get?u:{enumerable:!0,get:()=>s[a]})}}}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 a of document.querySelectorAll('link[rel="modulepreload"]'))s(a);new MutationObserver(a=>{for(const u of a)if(u.type==="childList")for(const d of u.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function n(a){const u={};return a.integrity&&(u.integrity=a.integrity),a.referrerPolicy&&(u.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?u.credentials="include":a.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function s(a){if(a.ep)return;a.ep=!0;const u=n(a);fetch(a.href,u)}})();function Bh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ld={exports:{}},Ro={},Od={exports:{}},Je={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var gg;function ub(){if(gg)return Je;gg=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),d=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),m=Symbol.iterator;function C(B){return B===null||typeof B!="object"?null:(B=m&&B[m]||B["@@iterator"],typeof B=="function"?B:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,S={};function g(B,W,ee){this.props=B,this.context=W,this.refs=S,this.updater=ee||x}g.prototype.isReactComponent={},g.prototype.setState=function(B,W){if(typeof B!="object"&&typeof B!="function"&&B!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,B,W,"setState")},g.prototype.forceUpdate=function(B){this.updater.enqueueForceUpdate(this,B,"forceUpdate")};function f(){}f.prototype=g.prototype;function p(B,W,ee){this.props=B,this.context=W,this.refs=S,this.updater=ee||x}var h=p.prototype=new f;h.constructor=p,w(h,g.prototype),h.isPureReactComponent=!0;var b=Array.isArray,E=Object.prototype.hasOwnProperty,P={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};function R(B,W,ee){var re,oe={},se=null,U=null;if(W!=null)for(re in W.ref!==void 0&&(U=W.ref),W.key!==void 0&&(se=""+W.key),W)E.call(W,re)&&!L.hasOwnProperty(re)&&(oe[re]=W[re]);var j=arguments.length-2;if(j===1)oe.children=ee;else if(1<j){for(var ne=Array(j),Q=0;Q<j;Q++)ne[Q]=arguments[Q+2];oe.children=ne}if(B&&B.defaultProps)for(re in j=B.defaultProps,j)oe[re]===void 0&&(oe[re]=j[re]);return{$$typeof:e,type:B,key:se,ref:U,props:oe,_owner:P.current}}function A(B,W){return{$$typeof:e,type:B.type,key:W,ref:B.ref,props:B.props,_owner:B._owner}}function T(B){return typeof B=="object"&&B!==null&&B.$$typeof===e}function $(B){var W={"=":"=0",":":"=2"};return"$"+B.replace(/[=:]/g,function(ee){return W[ee]})}var H=/\/+/g;function N(B,W){return typeof B=="object"&&B!==null&&B.key!=null?$(""+B.key):W.toString(36)}function V(B,W,ee,re,oe){var se=typeof B;(se==="undefined"||se==="boolean")&&(B=null);var U=!1;if(B===null)U=!0;else switch(se){case"string":case"number":U=!0;break;case"object":switch(B.$$typeof){case e:case t:U=!0}}if(U)return U=B,oe=oe(U),B=re===""?"."+N(U,0):re,b(oe)?(ee="",B!=null&&(ee=B.replace(H,"$&/")+"/"),V(oe,W,ee,"",function(Q){return Q})):oe!=null&&(T(oe)&&(oe=A(oe,ee+(!oe.key||U&&U.key===oe.key?"":(""+oe.key).replace(H,"$&/")+"/")+B)),W.push(oe)),1;if(U=0,re=re===""?".":re+":",b(B))for(var j=0;j<B.length;j++){se=B[j];var ne=re+N(se,j);U+=V(se,W,ee,ne,oe)}else if(ne=C(B),typeof ne=="function")for(B=ne.call(B),j=0;!(se=B.next()).done;)se=se.value,ne=re+N(se,j++),U+=V(se,W,ee,ne,oe);else if(se==="object")throw W=String(B),Error("Objects are not valid as a React child (found: "+(W==="[object Object]"?"object with keys {"+Object.keys(B).join(", ")+"}":W)+"). If you meant to render a collection of children, use an array instead.");return U}function K(B,W,ee){if(B==null)return B;var re=[],oe=0;return V(B,re,"","",function(se){return W.call(ee,se,oe++)}),re}function G(B){if(B._status===-1){var W=B._result;W=W(),W.then(function(ee){(B._status===0||B._status===-1)&&(B._status=1,B._result=ee)},function(ee){(B._status===0||B._status===-1)&&(B._status=2,B._result=ee)}),B._status===-1&&(B._status=0,B._result=W)}if(B._status===1)return B._result.default;throw B._result}var Z={current:null},X={transition:null},M={ReactCurrentDispatcher:Z,ReactCurrentBatchConfig:X,ReactCurrentOwner:P};function z(){throw Error("act(...) is not supported in production builds of React.")}return Je.Children={map:K,forEach:function(B,W,ee){K(B,function(){W.apply(this,arguments)},ee)},count:function(B){var W=0;return K(B,function(){W++}),W},toArray:function(B){return K(B,function(W){return W})||[]},only:function(B){if(!T(B))throw Error("React.Children.only expected to receive a single React element child.");return B}},Je.Component=g,Je.Fragment=n,Je.Profiler=a,Je.PureComponent=p,Je.StrictMode=s,Je.Suspense=c,Je.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M,Je.act=z,Je.cloneElement=function(B,W,ee){if(B==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+B+".");var re=w({},B.props),oe=B.key,se=B.ref,U=B._owner;if(W!=null){if(W.ref!==void 0&&(se=W.ref,U=P.current),W.key!==void 0&&(oe=""+W.key),B.type&&B.type.defaultProps)var j=B.type.defaultProps;for(ne in W)E.call(W,ne)&&!L.hasOwnProperty(ne)&&(re[ne]=W[ne]===void 0&&j!==void 0?j[ne]:W[ne])}var ne=arguments.length-2;if(ne===1)re.children=ee;else if(1<ne){j=Array(ne);for(var Q=0;Q<ne;Q++)j[Q]=arguments[Q+2];re.children=j}return{$$typeof:e,type:B.type,key:oe,ref:se,props:re,_owner:U}},Je.createContext=function(B){return B={$$typeof:d,_currentValue:B,_currentValue2:B,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},B.Provider={$$typeof:u,_context:B},B.Consumer=B},Je.createElement=R,Je.createFactory=function(B){var W=R.bind(null,B);return W.type=B,W},Je.createRef=function(){return{current:null}},Je.forwardRef=function(B){return{$$typeof:o,render:B}},Je.isValidElement=T,Je.lazy=function(B){return{$$typeof:_,_payload:{_status:-1,_result:B},_init:G}},Je.memo=function(B,W){return{$$typeof:v,type:B,compare:W===void 0?null:W}},Je.startTransition=function(B){var W=X.transition;X.transition={};try{B()}finally{X.transition=W}},Je.unstable_act=z,Je.useCallback=function(B,W){return Z.current.useCallback(B,W)},Je.useContext=function(B){return Z.current.useContext(B)},Je.useDebugValue=function(){},Je.useDeferredValue=function(B){return Z.current.useDeferredValue(B)},Je.useEffect=function(B,W){return Z.current.useEffect(B,W)},Je.useId=function(){return Z.current.useId()},Je.useImperativeHandle=function(B,W,ee){return Z.current.useImperativeHandle(B,W,ee)},Je.useInsertionEffect=function(B,W){return Z.current.useInsertionEffect(B,W)},Je.useLayoutEffect=function(B,W){return Z.current.useLayoutEffect(B,W)},Je.useMemo=function(B,W){return Z.current.useMemo(B,W)},Je.useReducer=function(B,W,ee){return Z.current.useReducer(B,W,ee)},Je.useRef=function(B){return Z.current.useRef(B)},Je.useState=function(B){return Z.current.useState(B)},Je.useSyncExternalStore=function(B,W,ee){return Z.current.useSyncExternalStore(B,W,ee)},Je.useTransition=function(){return Z.current.useTransition()},Je.version="18.3.1",Je}var vg;function $h(){return vg||(vg=1,Od.exports=ub()),Od.exports}/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var _g;function db(){if(_g)return Ro;_g=1;var e=$h(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function d(o,c,v){var _,m={},C=null,x=null;v!==void 0&&(C=""+v),c.key!==void 0&&(C=""+c.key),c.ref!==void 0&&(x=c.ref);for(_ in c)s.call(c,_)&&!u.hasOwnProperty(_)&&(m[_]=c[_]);if(o&&o.defaultProps)for(_ in c=o.defaultProps,c)m[_]===void 0&&(m[_]=c[_]);return{$$typeof:t,type:o,key:C,ref:x,props:m,_owner:a.current}}return Ro.Fragment=n,Ro.jsx=d,Ro.jsxs=d,Ro}var yg;function hb(){return yg||(yg=1,Ld.exports=db()),Ld.exports}var I=hb(),D=$h();const hn=Bh(D),sc=cb({__proto__:null,default:hn},[D]);var Il={},Ad={exports:{}},vr={},Md={exports:{}},Id={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var Sg;function fb(){return Sg||(Sg=1,(function(e){function t(X,M){var z=X.length;X.push(M);e:for(;0<z;){var B=z-1>>>1,W=X[B];if(0<a(W,M))X[B]=M,X[z]=W,z=B;else break e}}function n(X){return X.length===0?null:X[0]}function s(X){if(X.length===0)return null;var M=X[0],z=X.pop();if(z!==M){X[0]=z;e:for(var B=0,W=X.length,ee=W>>>1;B<ee;){var re=2*(B+1)-1,oe=X[re],se=re+1,U=X[se];if(0>a(oe,z))se<W&&0>a(U,oe)?(X[B]=U,X[se]=z,B=se):(X[B]=oe,X[re]=z,B=re);else if(se<W&&0>a(U,z))X[B]=U,X[se]=z,B=se;else break e}}return M}function a(X,M){var z=X.sortIndex-M.sortIndex;return z!==0?z:X.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var d=Date,o=d.now();e.unstable_now=function(){return d.now()-o}}var c=[],v=[],_=1,m=null,C=3,x=!1,w=!1,S=!1,g=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(X){for(var M=n(v);M!==null;){if(M.callback===null)s(v);else if(M.startTime<=X)s(v),M.sortIndex=M.expirationTime,t(c,M);else break;M=n(v)}}function b(X){if(S=!1,h(X),!w)if(n(c)!==null)w=!0,G(E);else{var M=n(v);M!==null&&Z(b,M.startTime-X)}}function E(X,M){w=!1,S&&(S=!1,f(R),R=-1),x=!0;var z=C;try{for(h(M),m=n(c);m!==null&&(!(m.expirationTime>M)||X&&!$());){var B=m.callback;if(typeof B=="function"){m.callback=null,C=m.priorityLevel;var W=B(m.expirationTime<=M);M=e.unstable_now(),typeof W=="function"?m.callback=W:m===n(c)&&s(c),h(M)}else s(c);m=n(c)}if(m!==null)var ee=!0;else{var re=n(v);re!==null&&Z(b,re.startTime-M),ee=!1}return ee}finally{m=null,C=z,x=!1}}var P=!1,L=null,R=-1,A=5,T=-1;function $(){return!(e.unstable_now()-T<A)}function H(){if(L!==null){var X=e.unstable_now();T=X;var M=!0;try{M=L(!0,X)}finally{M?N():(P=!1,L=null)}}else P=!1}var N;if(typeof p=="function")N=function(){p(H)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,K=V.port2;V.port1.onmessage=H,N=function(){K.postMessage(null)}}else N=function(){g(H,0)};function G(X){L=X,P||(P=!0,N())}function Z(X,M){R=g(function(){X(e.unstable_now())},M)}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(X){X.callback=null},e.unstable_continueExecution=function(){w||x||(w=!0,G(E))},e.unstable_forceFrameRate=function(X){0>X||125<X?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<X?Math.floor(1e3/X):5},e.unstable_getCurrentPriorityLevel=function(){return C},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(X){switch(C){case 1:case 2:case 3:var M=3;break;default:M=C}var z=C;C=M;try{return X()}finally{C=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(X,M){switch(X){case 1:case 2:case 3:case 4:case 5:break;default:X=3}var z=C;C=X;try{return M()}finally{C=z}},e.unstable_scheduleCallback=function(X,M,z){var B=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?B+z:B):z=B,X){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=z+W,X={id:_++,callback:M,priorityLevel:X,startTime:z,expirationTime:W,sortIndex:-1},z>B?(X.sortIndex=z,t(v,X),n(c)===null&&X===n(v)&&(S?(f(R),R=-1):S=!0,Z(b,z-B))):(X.sortIndex=W,t(c,X),w||x||(w=!0,G(E))),X},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(X){var M=C;return function(){var z=C;C=M;try{return X.apply(this,arguments)}finally{C=z}}}})(Id)),Id}var bg;function pb(){return bg||(bg=1,Md.exports=fb()),Md.exports}/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var Cg;function mb(){if(Cg)return vr;Cg=1;var e=$h(),t=pb();function n(r){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+r,l=1;l<arguments.length;l++)i+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+r+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,a={};function u(r,i){d(r,i),d(r+"Capture",i)}function d(r,i){for(a[r]=i,r=0;r<i.length;r++)s.add(i[r])}var o=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),c=Object.prototype.hasOwnProperty,v=/^[: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]*$/,_={},m={};function C(r){return c.call(m,r)?!0:c.call(_,r)?!1:v.test(r)?m[r]=!0:(_[r]=!0,!1)}function x(r,i,l,y){if(l!==null&&l.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return y?!1:l!==null?!l.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function w(r,i,l,y){if(i===null||typeof i>"u"||x(r,i,l,y))return!0;if(y)return!1;if(l!==null)switch(l.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function S(r,i,l,y,k,O,F){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=y,this.attributeNamespace=k,this.mustUseProperty=l,this.propertyName=r,this.type=i,this.sanitizeURL=O,this.removeEmptyString=F}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){g[r]=new S(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var i=r[0];g[i]=new S(i,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){g[r]=new S(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){g[r]=new S(r,2,!1,r,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(r){g[r]=new S(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){g[r]=new S(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){g[r]=new S(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){g[r]=new S(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){g[r]=new S(r,5,!1,r.toLowerCase(),null,!1,!1)});var f=/[\-:]([a-z])/g;function p(r){return r[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(r){var i=r.replace(f,p);g[i]=new S(i,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var i=r.replace(f,p);g[i]=new S(i,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var i=r.replace(f,p);g[i]=new S(i,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){g[r]=new S(r,1,!1,r.toLowerCase(),null,!1,!1)}),g.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){g[r]=new S(r,1,!1,r.toLowerCase(),null,!0,!0)});function h(r,i,l,y){var k=g.hasOwnProperty(i)?g[i]:null;(k!==null?k.type!==0:y||!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(w(i,l,k,y)&&(l=null),y||k===null?C(i)&&(l===null?r.removeAttribute(i):r.setAttribute(i,""+l)):k.mustUseProperty?r[k.propertyName]=l===null?k.type===3?!1:"":l:(i=k.attributeName,y=k.attributeNamespace,l===null?r.removeAttribute(i):(k=k.type,l=k===3||k===4&&l===!0?"":""+l,y?r.setAttributeNS(y,i,l):r.setAttribute(i,l))))}var b=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=Symbol.for("react.element"),P=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),$=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),Z=Symbol.for("react.offscreen"),X=Symbol.iterator;function M(r){return r===null||typeof r!="object"?null:(r=X&&r[X]||r["@@iterator"],typeof r=="function"?r:null)}var z=Object.assign,B;function W(r){if(B===void 0)try{throw Error()}catch(l){var i=l.stack.trim().match(/\n( *(at )?)/);B=i&&i[1]||""}return`
|
|
34
|
+
`+B+r}var ee=!1;function re(r,i){if(!r||ee)return"";ee=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(i)if(i=function(){throw Error()},Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(le){var y=le}Reflect.construct(r,[],i)}else{try{i.call()}catch(le){y=le}r.call(i.prototype)}else{try{throw Error()}catch(le){y=le}r()}}catch(le){if(le&&y&&typeof le.stack=="string"){for(var k=le.stack.split(`
|
|
35
|
+
`),O=y.stack.split(`
|
|
36
|
+
`),F=k.length-1,q=O.length-1;1<=F&&0<=q&&k[F]!==O[q];)q--;for(;1<=F&&0<=q;F--,q--)if(k[F]!==O[q]){if(F!==1||q!==1)do if(F--,q--,0>q||k[F]!==O[q]){var Y=`
|
|
37
|
+
`+k[F].replace(" at new "," at ");return r.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",r.displayName)),Y}while(1<=F&&0<=q);break}}}finally{ee=!1,Error.prepareStackTrace=l}return(r=r?r.displayName||r.name:"")?W(r):""}function oe(r){switch(r.tag){case 5:return W(r.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return r=re(r.type,!1),r;case 11:return r=re(r.type.render,!1),r;case 1:return r=re(r.type,!0),r;default:return""}}function se(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case L:return"Fragment";case P:return"Portal";case A:return"Profiler";case R:return"StrictMode";case N:return"Suspense";case V:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case $:return(r.displayName||"Context")+".Consumer";case T:return(r._context.displayName||"Context")+".Provider";case H:var i=r.render;return r=r.displayName,r||(r=i.displayName||i.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case K:return i=r.displayName||null,i!==null?i:se(r.type)||"Memo";case G:i=r._payload,r=r._init;try{return se(r(i))}catch{}}return null}function U(r){var i=r.type;switch(r.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=i.render,r=r.displayName||r.name||"",i.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return se(i);case 8:return i===R?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function j(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function ne(r){var i=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Q(r){var i=ne(r)?"checked":"value",l=Object.getOwnPropertyDescriptor(r.constructor.prototype,i),y=""+r[i];if(!r.hasOwnProperty(i)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var k=l.get,O=l.set;return Object.defineProperty(r,i,{configurable:!0,get:function(){return k.call(this)},set:function(F){y=""+F,O.call(this,F)}}),Object.defineProperty(r,i,{enumerable:l.enumerable}),{getValue:function(){return y},setValue:function(F){y=""+F},stopTracking:function(){r._valueTracker=null,delete r[i]}}}}function ue(r){r._valueTracker||(r._valueTracker=Q(r))}function ce(r){if(!r)return!1;var i=r._valueTracker;if(!i)return!0;var l=i.getValue(),y="";return r&&(y=ne(r)?r.checked?"true":"false":r.value),r=y,r!==l?(i.setValue(r),!0):!1}function _e(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function ge(r,i){var l=i.checked;return z({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??r._wrapperState.initialChecked})}function xe(r,i){var l=i.defaultValue==null?"":i.defaultValue,y=i.checked!=null?i.checked:i.defaultChecked;l=j(i.value!=null?i.value:l),r._wrapperState={initialChecked:y,initialValue:l,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function Ve(r,i){i=i.checked,i!=null&&h(r,"checked",i,!1)}function be(r,i){Ve(r,i);var l=j(i.value),y=i.type;if(l!=null)y==="number"?(l===0&&r.value===""||r.value!=l)&&(r.value=""+l):r.value!==""+l&&(r.value=""+l);else if(y==="submit"||y==="reset"){r.removeAttribute("value");return}i.hasOwnProperty("value")?We(r,i.type,l):i.hasOwnProperty("defaultValue")&&We(r,i.type,j(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(r.defaultChecked=!!i.defaultChecked)}function ye(r,i,l){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var y=i.type;if(!(y!=="submit"&&y!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+r._wrapperState.initialValue,l||i===r.value||(r.value=i),r.defaultValue=i}l=r.name,l!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,l!==""&&(r.name=l)}function We(r,i,l){(i!=="number"||_e(r.ownerDocument)!==r)&&(l==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+l&&(r.defaultValue=""+l))}var je=Array.isArray;function He(r,i,l,y){if(r=r.options,i){i={};for(var k=0;k<l.length;k++)i["$"+l[k]]=!0;for(l=0;l<r.length;l++)k=i.hasOwnProperty("$"+r[l].value),r[l].selected!==k&&(r[l].selected=k),k&&y&&(r[l].defaultSelected=!0)}else{for(l=""+j(l),i=null,k=0;k<r.length;k++){if(r[k].value===l){r[k].selected=!0,y&&(r[k].defaultSelected=!0);return}i!==null||r[k].disabled||(i=r[k])}i!==null&&(i.selected=!0)}}function Ee(r,i){if(i.dangerouslySetInnerHTML!=null)throw Error(n(91));return z({},i,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function Ze(r,i){var l=i.value;if(l==null){if(l=i.children,i=i.defaultValue,l!=null){if(i!=null)throw Error(n(92));if(je(l)){if(1<l.length)throw Error(n(93));l=l[0]}i=l}i==null&&(i=""),l=i}r._wrapperState={initialValue:j(l)}}function Ge(r,i){var l=j(i.value),y=j(i.defaultValue);l!=null&&(l=""+l,l!==r.value&&(r.value=l),i.defaultValue==null&&r.defaultValue!==l&&(r.defaultValue=l)),y!=null&&(r.defaultValue=""+y)}function dt(r){var i=r.textContent;i===r._wrapperState.initialValue&&i!==""&&i!==null&&(r.value=i)}function Rt(r){switch(r){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function wt(r,i){return r==null||r==="http://www.w3.org/1999/xhtml"?Rt(i):r==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var Xe,et=(function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,l,y,k){MSApp.execUnsafeLocalFunction(function(){return r(i,l,y,k)})}:r})(function(r,i){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=i;else{for(Xe=Xe||document.createElement("div"),Xe.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=Xe.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;i.firstChild;)r.appendChild(i.firstChild)}});function Ye(r,i){if(i){var l=r.firstChild;if(l&&l===r.lastChild&&l.nodeType===3){l.nodeValue=i;return}}r.textContent=i}var De={animationIterationCount:!0,aspectRatio:!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,gridArea:!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},Fe=["Webkit","ms","Moz","O"];Object.keys(De).forEach(function(r){Fe.forEach(function(i){i=i+r.charAt(0).toUpperCase()+r.substring(1),De[i]=De[r]})});function ht(r,i,l){return i==null||typeof i=="boolean"||i===""?"":l||typeof i!="number"||i===0||De.hasOwnProperty(r)&&De[r]?(""+i).trim():i+"px"}function Kt(r,i){r=r.style;for(var l in i)if(i.hasOwnProperty(l)){var y=l.indexOf("--")===0,k=ht(l,i[l],y);l==="float"&&(l="cssFloat"),y?r.setProperty(l,k):r[l]=k}}var Be=z({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function tt(r,i){if(i){if(Be[r]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(n(137,r));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(n(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(n(61))}if(i.style!=null&&typeof i.style!="object")throw Error(n(62))}}function xt(r,i){if(r.indexOf("-")===-1)return typeof i.is=="string";switch(r){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 or=null;function An(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var zs=null,Mn=null,In=null;function wa(r){if(r=uo(r)){if(typeof zs!="function")throw Error(n(280));var i=r.stateNode;i&&(i=Xa(i),zs(r.stateNode,r.type,i))}}function xa(r){Mn?In?In.push(r):In=[r]:Mn=r}function Ea(){if(Mn){var r=Mn,i=In;if(In=Mn=null,wa(r),i)for(r=0;r<i.length;r++)wa(i[r])}}function ka(r,i){return r(i)}function Ke(){}var ar=!1;function Hs(r,i,l){if(ar)return r(i,l);ar=!0;try{return ka(r,i,l)}finally{ar=!1,(Mn!==null||In!==null)&&(Ke(),Ea())}}function Ws(r,i){var l=r.stateNode;if(l===null)return null;var y=Xa(l);if(y===null)return null;l=y[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(y=!y.disabled)||(r=r.type,y=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!y;break e;default:r=!1}if(r)return null;if(l&&typeof l!="function")throw Error(n(231,i,typeof l));return l}var Gc=!1;if(o)try{var Us={};Object.defineProperty(Us,"passive",{get:function(){Gc=!0}}),window.addEventListener("test",Us,Us),window.removeEventListener("test",Us,Us)}catch{Gc=!1}function fS(r,i,l,y,k,O,F,q,Y){var le=Array.prototype.slice.call(arguments,3);try{i.apply(l,le)}catch(me){this.onError(me)}}var Vs=!1,Ra=null,Pa=!1,Xc=null,pS={onError:function(r){Vs=!0,Ra=r}};function mS(r,i,l,y,k,O,F,q,Y){Vs=!1,Ra=null,fS.apply(pS,arguments)}function gS(r,i,l,y,k,O,F,q,Y){if(mS.apply(this,arguments),Vs){if(Vs){var le=Ra;Vs=!1,Ra=null}else throw Error(n(198));Pa||(Pa=!0,Xc=le)}}function pi(r){var i=r,l=r;if(r.alternate)for(;i.return;)i=i.return;else{r=i;do i=r,(i.flags&4098)!==0&&(l=i.return),r=i.return;while(r)}return i.tag===3?l:null}function jf(r){if(r.tag===13){var i=r.memoizedState;if(i===null&&(r=r.alternate,r!==null&&(i=r.memoizedState)),i!==null)return i.dehydrated}return null}function Ff(r){if(pi(r)!==r)throw Error(n(188))}function vS(r){var i=r.alternate;if(!i){if(i=pi(r),i===null)throw Error(n(188));return i!==r?null:r}for(var l=r,y=i;;){var k=l.return;if(k===null)break;var O=k.alternate;if(O===null){if(y=k.return,y!==null){l=y;continue}break}if(k.child===O.child){for(O=k.child;O;){if(O===l)return Ff(k),r;if(O===y)return Ff(k),i;O=O.sibling}throw Error(n(188))}if(l.return!==y.return)l=k,y=O;else{for(var F=!1,q=k.child;q;){if(q===l){F=!0,l=k,y=O;break}if(q===y){F=!0,y=k,l=O;break}q=q.sibling}if(!F){for(q=O.child;q;){if(q===l){F=!0,l=O,y=k;break}if(q===y){F=!0,y=O,l=k;break}q=q.sibling}if(!F)throw Error(n(189))}}if(l.alternate!==y)throw Error(n(190))}if(l.tag!==3)throw Error(n(188));return l.stateNode.current===l?r:i}function zf(r){return r=vS(r),r!==null?Hf(r):null}function Hf(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var i=Hf(r);if(i!==null)return i;r=r.sibling}return null}var Wf=t.unstable_scheduleCallback,Uf=t.unstable_cancelCallback,_S=t.unstable_shouldYield,yS=t.unstable_requestPaint,Mt=t.unstable_now,SS=t.unstable_getCurrentPriorityLevel,Yc=t.unstable_ImmediatePriority,Vf=t.unstable_UserBlockingPriority,Ta=t.unstable_NormalPriority,bS=t.unstable_LowPriority,Kf=t.unstable_IdlePriority,La=null,Zr=null;function CS(r){if(Zr&&typeof Zr.onCommitFiberRoot=="function")try{Zr.onCommitFiberRoot(La,r,void 0,(r.current.flags&128)===128)}catch{}}var Vr=Math.clz32?Math.clz32:ES,wS=Math.log,xS=Math.LN2;function ES(r){return r>>>=0,r===0?32:31-(wS(r)/xS|0)|0}var Oa=64,Aa=4194304;function Ks(r){switch(r&-r){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:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function Ma(r,i){var l=r.pendingLanes;if(l===0)return 0;var y=0,k=r.suspendedLanes,O=r.pingedLanes,F=l&268435455;if(F!==0){var q=F&~k;q!==0?y=Ks(q):(O&=F,O!==0&&(y=Ks(O)))}else F=l&~k,F!==0?y=Ks(F):O!==0&&(y=Ks(O));if(y===0)return 0;if(i!==0&&i!==y&&(i&k)===0&&(k=y&-y,O=i&-i,k>=O||k===16&&(O&4194240)!==0))return i;if((y&4)!==0&&(y|=l&16),i=r.entangledLanes,i!==0)for(r=r.entanglements,i&=y;0<i;)l=31-Vr(i),k=1<<l,y|=r[l],i&=~k;return y}function kS(r,i){switch(r){case 1:case 2:case 4:return i+250;case 8:case 16:case 32:case 64: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 i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function RS(r,i){for(var l=r.suspendedLanes,y=r.pingedLanes,k=r.expirationTimes,O=r.pendingLanes;0<O;){var F=31-Vr(O),q=1<<F,Y=k[F];Y===-1?((q&l)===0||(q&y)!==0)&&(k[F]=kS(q,i)):Y<=i&&(r.expiredLanes|=q),O&=~q}}function Jc(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function qf(){var r=Oa;return Oa<<=1,(Oa&4194240)===0&&(Oa=64),r}function Qc(r){for(var i=[],l=0;31>l;l++)i.push(r);return i}function qs(r,i,l){r.pendingLanes|=i,i!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,i=31-Vr(i),r[i]=l}function PS(r,i){var l=r.pendingLanes&~i;r.pendingLanes=i,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=i,r.mutableReadLanes&=i,r.entangledLanes&=i,i=r.entanglements;var y=r.eventTimes;for(r=r.expirationTimes;0<l;){var k=31-Vr(l),O=1<<k;i[k]=0,y[k]=-1,r[k]=-1,l&=~O}}function Zc(r,i){var l=r.entangledLanes|=i;for(r=r.entanglements;l;){var y=31-Vr(l),k=1<<y;k&i|r[y]&i&&(r[y]|=i),l&=~k}}var ut=0;function Gf(r){return r&=-r,1<r?4<r?(r&268435455)!==0?16:536870912:4:1}var Xf,eu,Yf,Jf,Qf,tu=!1,Ia=[],Dn=null,Bn=null,$n=null,Gs=new Map,Xs=new Map,Nn=[],TS="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 submit".split(" ");function Zf(r,i){switch(r){case"focusin":case"focusout":Dn=null;break;case"dragenter":case"dragleave":Bn=null;break;case"mouseover":case"mouseout":$n=null;break;case"pointerover":case"pointerout":Gs.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xs.delete(i.pointerId)}}function Ys(r,i,l,y,k,O){return r===null||r.nativeEvent!==O?(r={blockedOn:i,domEventName:l,eventSystemFlags:y,nativeEvent:O,targetContainers:[k]},i!==null&&(i=uo(i),i!==null&&eu(i)),r):(r.eventSystemFlags|=y,i=r.targetContainers,k!==null&&i.indexOf(k)===-1&&i.push(k),r)}function LS(r,i,l,y,k){switch(i){case"focusin":return Dn=Ys(Dn,r,i,l,y,k),!0;case"dragenter":return Bn=Ys(Bn,r,i,l,y,k),!0;case"mouseover":return $n=Ys($n,r,i,l,y,k),!0;case"pointerover":var O=k.pointerId;return Gs.set(O,Ys(Gs.get(O)||null,r,i,l,y,k)),!0;case"gotpointercapture":return O=k.pointerId,Xs.set(O,Ys(Xs.get(O)||null,r,i,l,y,k)),!0}return!1}function ep(r){var i=mi(r.target);if(i!==null){var l=pi(i);if(l!==null){if(i=l.tag,i===13){if(i=jf(l),i!==null){r.blockedOn=i,Qf(r.priority,function(){Yf(l)});return}}else if(i===3&&l.stateNode.current.memoizedState.isDehydrated){r.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Da(r){if(r.blockedOn!==null)return!1;for(var i=r.targetContainers;0<i.length;){var l=nu(r.domEventName,r.eventSystemFlags,i[0],r.nativeEvent);if(l===null){l=r.nativeEvent;var y=new l.constructor(l.type,l);or=y,l.target.dispatchEvent(y),or=null}else return i=uo(l),i!==null&&eu(i),r.blockedOn=l,!1;i.shift()}return!0}function tp(r,i,l){Da(r)&&l.delete(i)}function OS(){tu=!1,Dn!==null&&Da(Dn)&&(Dn=null),Bn!==null&&Da(Bn)&&(Bn=null),$n!==null&&Da($n)&&($n=null),Gs.forEach(tp),Xs.forEach(tp)}function Js(r,i){r.blockedOn===i&&(r.blockedOn=null,tu||(tu=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,OS)))}function Qs(r){function i(k){return Js(k,r)}if(0<Ia.length){Js(Ia[0],r);for(var l=1;l<Ia.length;l++){var y=Ia[l];y.blockedOn===r&&(y.blockedOn=null)}}for(Dn!==null&&Js(Dn,r),Bn!==null&&Js(Bn,r),$n!==null&&Js($n,r),Gs.forEach(i),Xs.forEach(i),l=0;l<Nn.length;l++)y=Nn[l],y.blockedOn===r&&(y.blockedOn=null);for(;0<Nn.length&&(l=Nn[0],l.blockedOn===null);)ep(l),l.blockedOn===null&&Nn.shift()}var qi=b.ReactCurrentBatchConfig,Ba=!0;function AS(r,i,l,y){var k=ut,O=qi.transition;qi.transition=null;try{ut=1,ru(r,i,l,y)}finally{ut=k,qi.transition=O}}function MS(r,i,l,y){var k=ut,O=qi.transition;qi.transition=null;try{ut=4,ru(r,i,l,y)}finally{ut=k,qi.transition=O}}function ru(r,i,l,y){if(Ba){var k=nu(r,i,l,y);if(k===null)Su(r,i,y,$a,l),Zf(r,y);else if(LS(k,r,i,l,y))y.stopPropagation();else if(Zf(r,y),i&4&&-1<TS.indexOf(r)){for(;k!==null;){var O=uo(k);if(O!==null&&Xf(O),O=nu(r,i,l,y),O===null&&Su(r,i,y,$a,l),O===k)break;k=O}k!==null&&y.stopPropagation()}else Su(r,i,y,null,l)}}var $a=null;function nu(r,i,l,y){if($a=null,r=An(y),r=mi(r),r!==null)if(i=pi(r),i===null)r=null;else if(l=i.tag,l===13){if(r=jf(i),r!==null)return r;r=null}else if(l===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;r=null}else i!==r&&(r=null);return $a=r,null}function rp(r){switch(r){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(SS()){case Yc:return 1;case Vf:return 4;case Ta:case bS:return 16;case Kf:return 536870912;default:return 16}default:return 16}}var jn=null,iu=null,Na=null;function np(){if(Na)return Na;var r,i=iu,l=i.length,y,k="value"in jn?jn.value:jn.textContent,O=k.length;for(r=0;r<l&&i[r]===k[r];r++);var F=l-r;for(y=1;y<=F&&i[l-y]===k[O-y];y++);return Na=k.slice(r,1<y?1-y:void 0)}function ja(r){var i=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&i===13&&(r=13)):r=i,r===10&&(r=13),32<=r||r===13?r:0}function Fa(){return!0}function ip(){return!1}function Cr(r){function i(l,y,k,O,F){this._reactName=l,this._targetInst=k,this.type=y,this.nativeEvent=O,this.target=F,this.currentTarget=null;for(var q in r)r.hasOwnProperty(q)&&(l=r[q],this[q]=l?l(O):O[q]);return this.isDefaultPrevented=(O.defaultPrevented!=null?O.defaultPrevented:O.returnValue===!1)?Fa:ip,this.isPropagationStopped=ip,this}return z(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Fa)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Fa)},persist:function(){},isPersistent:Fa}),i}var Gi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},su=Cr(Gi),Zs=z({},Gi,{view:0,detail:0}),IS=Cr(Zs),ou,au,eo,za=z({},Zs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:cu,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==eo&&(eo&&r.type==="mousemove"?(ou=r.screenX-eo.screenX,au=r.screenY-eo.screenY):au=ou=0,eo=r),ou)},movementY:function(r){return"movementY"in r?r.movementY:au}}),sp=Cr(za),DS=z({},za,{dataTransfer:0}),BS=Cr(DS),$S=z({},Zs,{relatedTarget:0}),lu=Cr($S),NS=z({},Gi,{animationName:0,elapsedTime:0,pseudoElement:0}),jS=Cr(NS),FS=z({},Gi,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),zS=Cr(FS),HS=z({},Gi,{data:0}),op=Cr(HS),WS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},US={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"},VS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function KS(r){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(r):(r=VS[r])?!!i[r]:!1}function cu(){return KS}var qS=z({},Zs,{key:function(r){if(r.key){var i=WS[r.key]||r.key;if(i!=="Unidentified")return i}return r.type==="keypress"?(r=ja(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?US[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:cu,charCode:function(r){return r.type==="keypress"?ja(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?ja(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),GS=Cr(qS),XS=z({},za,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ap=Cr(XS),YS=z({},Zs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:cu}),JS=Cr(YS),QS=z({},Gi,{propertyName:0,elapsedTime:0,pseudoElement:0}),ZS=Cr(QS),e1=z({},za,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),t1=Cr(e1),r1=[9,13,27,32],uu=o&&"CompositionEvent"in window,to=null;o&&"documentMode"in document&&(to=document.documentMode);var n1=o&&"TextEvent"in window&&!to,lp=o&&(!uu||to&&8<to&&11>=to),cp=" ",up=!1;function dp(r,i){switch(r){case"keyup":return r1.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hp(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Xi=!1;function i1(r,i){switch(r){case"compositionend":return hp(i);case"keypress":return i.which!==32?null:(up=!0,cp);case"textInput":return r=i.data,r===cp&&up?null:r;default:return null}}function s1(r,i){if(Xi)return r==="compositionend"||!uu&&dp(r,i)?(r=np(),Na=iu=jn=null,Xi=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return lp&&i.locale!=="ko"?null:i.data;default:return null}}var o1={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 fp(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i==="input"?!!o1[r.type]:i==="textarea"}function pp(r,i,l,y){xa(y),i=Ka(i,"onChange"),0<i.length&&(l=new su("onChange","change",null,l,y),r.push({event:l,listeners:i}))}var ro=null,no=null;function a1(r){Ap(r,0)}function Ha(r){var i=es(r);if(ce(i))return r}function l1(r,i){if(r==="change")return i}var mp=!1;if(o){var du;if(o){var hu="oninput"in document;if(!hu){var gp=document.createElement("div");gp.setAttribute("oninput","return;"),hu=typeof gp.oninput=="function"}du=hu}else du=!1;mp=du&&(!document.documentMode||9<document.documentMode)}function vp(){ro&&(ro.detachEvent("onpropertychange",_p),no=ro=null)}function _p(r){if(r.propertyName==="value"&&Ha(no)){var i=[];pp(i,no,r,An(r)),Hs(a1,i)}}function c1(r,i,l){r==="focusin"?(vp(),ro=i,no=l,ro.attachEvent("onpropertychange",_p)):r==="focusout"&&vp()}function u1(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Ha(no)}function d1(r,i){if(r==="click")return Ha(i)}function h1(r,i){if(r==="input"||r==="change")return Ha(i)}function f1(r,i){return r===i&&(r!==0||1/r===1/i)||r!==r&&i!==i}var Kr=typeof Object.is=="function"?Object.is:f1;function io(r,i){if(Kr(r,i))return!0;if(typeof r!="object"||r===null||typeof i!="object"||i===null)return!1;var l=Object.keys(r),y=Object.keys(i);if(l.length!==y.length)return!1;for(y=0;y<l.length;y++){var k=l[y];if(!c.call(i,k)||!Kr(r[k],i[k]))return!1}return!0}function yp(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function Sp(r,i){var l=yp(r);r=0;for(var y;l;){if(l.nodeType===3){if(y=r+l.textContent.length,r<=i&&y>=i)return{node:l,offset:i-r};r=y}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=yp(l)}}function bp(r,i){return r&&i?r===i?!0:r&&r.nodeType===3?!1:i&&i.nodeType===3?bp(r,i.parentNode):"contains"in r?r.contains(i):r.compareDocumentPosition?!!(r.compareDocumentPosition(i)&16):!1:!1}function Cp(){for(var r=window,i=_e();i instanceof r.HTMLIFrameElement;){try{var l=typeof i.contentWindow.location.href=="string"}catch{l=!1}if(l)r=i.contentWindow;else break;i=_e(r.document)}return i}function fu(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i&&(i==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||i==="textarea"||r.contentEditable==="true")}function p1(r){var i=Cp(),l=r.focusedElem,y=r.selectionRange;if(i!==l&&l&&l.ownerDocument&&bp(l.ownerDocument.documentElement,l)){if(y!==null&&fu(l)){if(i=y.start,r=y.end,r===void 0&&(r=i),"selectionStart"in l)l.selectionStart=i,l.selectionEnd=Math.min(r,l.value.length);else if(r=(i=l.ownerDocument||document)&&i.defaultView||window,r.getSelection){r=r.getSelection();var k=l.textContent.length,O=Math.min(y.start,k);y=y.end===void 0?O:Math.min(y.end,k),!r.extend&&O>y&&(k=y,y=O,O=k),k=Sp(l,O);var F=Sp(l,y);k&&F&&(r.rangeCount!==1||r.anchorNode!==k.node||r.anchorOffset!==k.offset||r.focusNode!==F.node||r.focusOffset!==F.offset)&&(i=i.createRange(),i.setStart(k.node,k.offset),r.removeAllRanges(),O>y?(r.addRange(i),r.extend(F.node,F.offset)):(i.setEnd(F.node,F.offset),r.addRange(i)))}}for(i=[],r=l;r=r.parentNode;)r.nodeType===1&&i.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<i.length;l++)r=i[l],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var m1=o&&"documentMode"in document&&11>=document.documentMode,Yi=null,pu=null,so=null,mu=!1;function wp(r,i,l){var y=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;mu||Yi==null||Yi!==_e(y)||(y=Yi,"selectionStart"in y&&fu(y)?y={start:y.selectionStart,end:y.selectionEnd}:(y=(y.ownerDocument&&y.ownerDocument.defaultView||window).getSelection(),y={anchorNode:y.anchorNode,anchorOffset:y.anchorOffset,focusNode:y.focusNode,focusOffset:y.focusOffset}),so&&io(so,y)||(so=y,y=Ka(pu,"onSelect"),0<y.length&&(i=new su("onSelect","select",null,i,l),r.push({event:i,listeners:y}),i.target=Yi)))}function Wa(r,i){var l={};return l[r.toLowerCase()]=i.toLowerCase(),l["Webkit"+r]="webkit"+i,l["Moz"+r]="moz"+i,l}var Ji={animationend:Wa("Animation","AnimationEnd"),animationiteration:Wa("Animation","AnimationIteration"),animationstart:Wa("Animation","AnimationStart"),transitionend:Wa("Transition","TransitionEnd")},gu={},xp={};o&&(xp=document.createElement("div").style,"AnimationEvent"in window||(delete Ji.animationend.animation,delete Ji.animationiteration.animation,delete Ji.animationstart.animation),"TransitionEvent"in window||delete Ji.transitionend.transition);function Ua(r){if(gu[r])return gu[r];if(!Ji[r])return r;var i=Ji[r],l;for(l in i)if(i.hasOwnProperty(l)&&l in xp)return gu[r]=i[l];return r}var Ep=Ua("animationend"),kp=Ua("animationiteration"),Rp=Ua("animationstart"),Pp=Ua("transitionend"),Tp=new Map,Lp="abort auxClick 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(" ");function Fn(r,i){Tp.set(r,i),u(i,[r])}for(var vu=0;vu<Lp.length;vu++){var _u=Lp[vu],g1=_u.toLowerCase(),v1=_u[0].toUpperCase()+_u.slice(1);Fn(g1,"on"+v1)}Fn(Ep,"onAnimationEnd"),Fn(kp,"onAnimationIteration"),Fn(Rp,"onAnimationStart"),Fn("dblclick","onDoubleClick"),Fn("focusin","onFocus"),Fn("focusout","onBlur"),Fn(Pp,"onTransitionEnd"),d("onMouseEnter",["mouseout","mouseover"]),d("onMouseLeave",["mouseout","mouseover"]),d("onPointerEnter",["pointerout","pointerover"]),d("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var oo="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(" "),_1=new Set("cancel close invalid load scroll toggle".split(" ").concat(oo));function Op(r,i,l){var y=r.type||"unknown-event";r.currentTarget=l,gS(y,i,void 0,r),r.currentTarget=null}function Ap(r,i){i=(i&4)!==0;for(var l=0;l<r.length;l++){var y=r[l],k=y.event;y=y.listeners;e:{var O=void 0;if(i)for(var F=y.length-1;0<=F;F--){var q=y[F],Y=q.instance,le=q.currentTarget;if(q=q.listener,Y!==O&&k.isPropagationStopped())break e;Op(k,q,le),O=Y}else for(F=0;F<y.length;F++){if(q=y[F],Y=q.instance,le=q.currentTarget,q=q.listener,Y!==O&&k.isPropagationStopped())break e;Op(k,q,le),O=Y}}}if(Pa)throw r=Xc,Pa=!1,Xc=null,r}function vt(r,i){var l=i[ku];l===void 0&&(l=i[ku]=new Set);var y=r+"__bubble";l.has(y)||(Mp(i,r,2,!1),l.add(y))}function yu(r,i,l){var y=0;i&&(y|=4),Mp(l,r,y,i)}var Va="_reactListening"+Math.random().toString(36).slice(2);function ao(r){if(!r[Va]){r[Va]=!0,s.forEach(function(l){l!=="selectionchange"&&(_1.has(l)||yu(l,!1,r),yu(l,!0,r))});var i=r.nodeType===9?r:r.ownerDocument;i===null||i[Va]||(i[Va]=!0,yu("selectionchange",!1,i))}}function Mp(r,i,l,y){switch(rp(i)){case 1:var k=AS;break;case 4:k=MS;break;default:k=ru}l=k.bind(null,i,l,r),k=void 0,!Gc||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(k=!0),y?k!==void 0?r.addEventListener(i,l,{capture:!0,passive:k}):r.addEventListener(i,l,!0):k!==void 0?r.addEventListener(i,l,{passive:k}):r.addEventListener(i,l,!1)}function Su(r,i,l,y,k){var O=y;if((i&1)===0&&(i&2)===0&&y!==null)e:for(;;){if(y===null)return;var F=y.tag;if(F===3||F===4){var q=y.stateNode.containerInfo;if(q===k||q.nodeType===8&&q.parentNode===k)break;if(F===4)for(F=y.return;F!==null;){var Y=F.tag;if((Y===3||Y===4)&&(Y=F.stateNode.containerInfo,Y===k||Y.nodeType===8&&Y.parentNode===k))return;F=F.return}for(;q!==null;){if(F=mi(q),F===null)return;if(Y=F.tag,Y===5||Y===6){y=O=F;continue e}q=q.parentNode}}y=y.return}Hs(function(){var le=O,me=An(l),ve=[];e:{var pe=Tp.get(r);if(pe!==void 0){var ke=su,Pe=r;switch(r){case"keypress":if(ja(l)===0)break e;case"keydown":case"keyup":ke=GS;break;case"focusin":Pe="focus",ke=lu;break;case"focusout":Pe="blur",ke=lu;break;case"beforeblur":case"afterblur":ke=lu;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ke=sp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ke=BS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ke=JS;break;case Ep:case kp:case Rp:ke=jS;break;case Pp:ke=ZS;break;case"scroll":ke=IS;break;case"wheel":ke=t1;break;case"copy":case"cut":case"paste":ke=zS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ke=ap}var Te=(i&4)!==0,It=!Te&&r==="scroll",ie=Te?pe!==null?pe+"Capture":null:pe;Te=[];for(var te=le,ae;te!==null;){ae=te;var Se=ae.stateNode;if(ae.tag===5&&Se!==null&&(ae=Se,ie!==null&&(Se=Ws(te,ie),Se!=null&&Te.push(lo(te,Se,ae)))),It)break;te=te.return}0<Te.length&&(pe=new ke(pe,Pe,null,l,me),ve.push({event:pe,listeners:Te}))}}if((i&7)===0){e:{if(pe=r==="mouseover"||r==="pointerover",ke=r==="mouseout"||r==="pointerout",pe&&l!==or&&(Pe=l.relatedTarget||l.fromElement)&&(mi(Pe)||Pe[_n]))break e;if((ke||pe)&&(pe=me.window===me?me:(pe=me.ownerDocument)?pe.defaultView||pe.parentWindow:window,ke?(Pe=l.relatedTarget||l.toElement,ke=le,Pe=Pe?mi(Pe):null,Pe!==null&&(It=pi(Pe),Pe!==It||Pe.tag!==5&&Pe.tag!==6)&&(Pe=null)):(ke=null,Pe=le),ke!==Pe)){if(Te=sp,Se="onMouseLeave",ie="onMouseEnter",te="mouse",(r==="pointerout"||r==="pointerover")&&(Te=ap,Se="onPointerLeave",ie="onPointerEnter",te="pointer"),It=ke==null?pe:es(ke),ae=Pe==null?pe:es(Pe),pe=new Te(Se,te+"leave",ke,l,me),pe.target=It,pe.relatedTarget=ae,Se=null,mi(me)===le&&(Te=new Te(ie,te+"enter",Pe,l,me),Te.target=ae,Te.relatedTarget=It,Se=Te),It=Se,ke&&Pe)t:{for(Te=ke,ie=Pe,te=0,ae=Te;ae;ae=Qi(ae))te++;for(ae=0,Se=ie;Se;Se=Qi(Se))ae++;for(;0<te-ae;)Te=Qi(Te),te--;for(;0<ae-te;)ie=Qi(ie),ae--;for(;te--;){if(Te===ie||ie!==null&&Te===ie.alternate)break t;Te=Qi(Te),ie=Qi(ie)}Te=null}else Te=null;ke!==null&&Ip(ve,pe,ke,Te,!1),Pe!==null&&It!==null&&Ip(ve,It,Pe,Te,!0)}}e:{if(pe=le?es(le):window,ke=pe.nodeName&&pe.nodeName.toLowerCase(),ke==="select"||ke==="input"&&pe.type==="file")var Le=l1;else if(fp(pe))if(mp)Le=h1;else{Le=u1;var $e=c1}else(ke=pe.nodeName)&&ke.toLowerCase()==="input"&&(pe.type==="checkbox"||pe.type==="radio")&&(Le=d1);if(Le&&(Le=Le(r,le))){pp(ve,Le,l,me);break e}$e&&$e(r,pe,le),r==="focusout"&&($e=pe._wrapperState)&&$e.controlled&&pe.type==="number"&&We(pe,"number",pe.value)}switch($e=le?es(le):window,r){case"focusin":(fp($e)||$e.contentEditable==="true")&&(Yi=$e,pu=le,so=null);break;case"focusout":so=pu=Yi=null;break;case"mousedown":mu=!0;break;case"contextmenu":case"mouseup":case"dragend":mu=!1,wp(ve,l,me);break;case"selectionchange":if(m1)break;case"keydown":case"keyup":wp(ve,l,me)}var Ne;if(uu)e:{switch(r){case"compositionstart":var Ue="onCompositionStart";break e;case"compositionend":Ue="onCompositionEnd";break e;case"compositionupdate":Ue="onCompositionUpdate";break e}Ue=void 0}else Xi?dp(r,l)&&(Ue="onCompositionEnd"):r==="keydown"&&l.keyCode===229&&(Ue="onCompositionStart");Ue&&(lp&&l.locale!=="ko"&&(Xi||Ue!=="onCompositionStart"?Ue==="onCompositionEnd"&&Xi&&(Ne=np()):(jn=me,iu="value"in jn?jn.value:jn.textContent,Xi=!0)),$e=Ka(le,Ue),0<$e.length&&(Ue=new op(Ue,r,null,l,me),ve.push({event:Ue,listeners:$e}),Ne?Ue.data=Ne:(Ne=hp(l),Ne!==null&&(Ue.data=Ne)))),(Ne=n1?i1(r,l):s1(r,l))&&(le=Ka(le,"onBeforeInput"),0<le.length&&(me=new op("onBeforeInput","beforeinput",null,l,me),ve.push({event:me,listeners:le}),me.data=Ne))}Ap(ve,i)})}function lo(r,i,l){return{instance:r,listener:i,currentTarget:l}}function Ka(r,i){for(var l=i+"Capture",y=[];r!==null;){var k=r,O=k.stateNode;k.tag===5&&O!==null&&(k=O,O=Ws(r,l),O!=null&&y.unshift(lo(r,O,k)),O=Ws(r,i),O!=null&&y.push(lo(r,O,k))),r=r.return}return y}function Qi(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function Ip(r,i,l,y,k){for(var O=i._reactName,F=[];l!==null&&l!==y;){var q=l,Y=q.alternate,le=q.stateNode;if(Y!==null&&Y===y)break;q.tag===5&&le!==null&&(q=le,k?(Y=Ws(l,O),Y!=null&&F.unshift(lo(l,Y,q))):k||(Y=Ws(l,O),Y!=null&&F.push(lo(l,Y,q)))),l=l.return}F.length!==0&&r.push({event:i,listeners:F})}var y1=/\r\n?/g,S1=/\u0000|\uFFFD/g;function Dp(r){return(typeof r=="string"?r:""+r).replace(y1,`
|
|
38
|
+
`).replace(S1,"")}function qa(r,i,l){if(i=Dp(i),Dp(r)!==i&&l)throw Error(n(425))}function Ga(){}var bu=null,Cu=null;function wu(r,i){return r==="textarea"||r==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var xu=typeof setTimeout=="function"?setTimeout:void 0,b1=typeof clearTimeout=="function"?clearTimeout:void 0,Bp=typeof Promise=="function"?Promise:void 0,C1=typeof queueMicrotask=="function"?queueMicrotask:typeof Bp<"u"?function(r){return Bp.resolve(null).then(r).catch(w1)}:xu;function w1(r){setTimeout(function(){throw r})}function Eu(r,i){var l=i,y=0;do{var k=l.nextSibling;if(r.removeChild(l),k&&k.nodeType===8)if(l=k.data,l==="/$"){if(y===0){r.removeChild(k),Qs(i);return}y--}else l!=="$"&&l!=="$?"&&l!=="$!"||y++;l=k}while(l);Qs(i)}function zn(r){for(;r!=null;r=r.nextSibling){var i=r.nodeType;if(i===1||i===3)break;if(i===8){if(i=r.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return r}function $p(r){r=r.previousSibling;for(var i=0;r;){if(r.nodeType===8){var l=r.data;if(l==="$"||l==="$!"||l==="$?"){if(i===0)return r;i--}else l==="/$"&&i++}r=r.previousSibling}return null}var Zi=Math.random().toString(36).slice(2),en="__reactFiber$"+Zi,co="__reactProps$"+Zi,_n="__reactContainer$"+Zi,ku="__reactEvents$"+Zi,x1="__reactListeners$"+Zi,E1="__reactHandles$"+Zi;function mi(r){var i=r[en];if(i)return i;for(var l=r.parentNode;l;){if(i=l[_n]||l[en]){if(l=i.alternate,i.child!==null||l!==null&&l.child!==null)for(r=$p(r);r!==null;){if(l=r[en])return l;r=$p(r)}return i}r=l,l=r.parentNode}return null}function uo(r){return r=r[en]||r[_n],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function es(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(n(33))}function Xa(r){return r[co]||null}var Ru=[],ts=-1;function Hn(r){return{current:r}}function _t(r){0>ts||(r.current=Ru[ts],Ru[ts]=null,ts--)}function gt(r,i){ts++,Ru[ts]=r.current,r.current=i}var Wn={},Jt=Hn(Wn),hr=Hn(!1),gi=Wn;function rs(r,i){var l=r.type.contextTypes;if(!l)return Wn;var y=r.stateNode;if(y&&y.__reactInternalMemoizedUnmaskedChildContext===i)return y.__reactInternalMemoizedMaskedChildContext;var k={},O;for(O in l)k[O]=i[O];return y&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=i,r.__reactInternalMemoizedMaskedChildContext=k),k}function fr(r){return r=r.childContextTypes,r!=null}function Ya(){_t(hr),_t(Jt)}function Np(r,i,l){if(Jt.current!==Wn)throw Error(n(168));gt(Jt,i),gt(hr,l)}function jp(r,i,l){var y=r.stateNode;if(i=i.childContextTypes,typeof y.getChildContext!="function")return l;y=y.getChildContext();for(var k in y)if(!(k in i))throw Error(n(108,U(r)||"Unknown",k));return z({},l,y)}function Ja(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||Wn,gi=Jt.current,gt(Jt,r),gt(hr,hr.current),!0}function Fp(r,i,l){var y=r.stateNode;if(!y)throw Error(n(169));l?(r=jp(r,i,gi),y.__reactInternalMemoizedMergedChildContext=r,_t(hr),_t(Jt),gt(Jt,r)):_t(hr),gt(hr,l)}var yn=null,Qa=!1,Pu=!1;function zp(r){yn===null?yn=[r]:yn.push(r)}function k1(r){Qa=!0,zp(r)}function Un(){if(!Pu&&yn!==null){Pu=!0;var r=0,i=ut;try{var l=yn;for(ut=1;r<l.length;r++){var y=l[r];do y=y(!0);while(y!==null)}yn=null,Qa=!1}catch(k){throw yn!==null&&(yn=yn.slice(r+1)),Wf(Yc,Un),k}finally{ut=i,Pu=!1}}return null}var ns=[],is=0,Za=null,el=0,Tr=[],Lr=0,vi=null,Sn=1,bn="";function _i(r,i){ns[is++]=el,ns[is++]=Za,Za=r,el=i}function Hp(r,i,l){Tr[Lr++]=Sn,Tr[Lr++]=bn,Tr[Lr++]=vi,vi=r;var y=Sn;r=bn;var k=32-Vr(y)-1;y&=~(1<<k),l+=1;var O=32-Vr(i)+k;if(30<O){var F=k-k%5;O=(y&(1<<F)-1).toString(32),y>>=F,k-=F,Sn=1<<32-Vr(i)+k|l<<k|y,bn=O+r}else Sn=1<<O|l<<k|y,bn=r}function Tu(r){r.return!==null&&(_i(r,1),Hp(r,1,0))}function Lu(r){for(;r===Za;)Za=ns[--is],ns[is]=null,el=ns[--is],ns[is]=null;for(;r===vi;)vi=Tr[--Lr],Tr[Lr]=null,bn=Tr[--Lr],Tr[Lr]=null,Sn=Tr[--Lr],Tr[Lr]=null}var wr=null,xr=null,yt=!1,qr=null;function Wp(r,i){var l=Ir(5,null,null,0);l.elementType="DELETED",l.stateNode=i,l.return=r,i=r.deletions,i===null?(r.deletions=[l],r.flags|=16):i.push(l)}function Up(r,i){switch(r.tag){case 5:var l=r.type;return i=i.nodeType!==1||l.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(r.stateNode=i,wr=r,xr=zn(i.firstChild),!0):!1;case 6:return i=r.pendingProps===""||i.nodeType!==3?null:i,i!==null?(r.stateNode=i,wr=r,xr=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(l=vi!==null?{id:Sn,overflow:bn}:null,r.memoizedState={dehydrated:i,treeContext:l,retryLane:1073741824},l=Ir(18,null,null,0),l.stateNode=i,l.return=r,r.child=l,wr=r,xr=null,!0):!1;default:return!1}}function Ou(r){return(r.mode&1)!==0&&(r.flags&128)===0}function Au(r){if(yt){var i=xr;if(i){var l=i;if(!Up(r,i)){if(Ou(r))throw Error(n(418));i=zn(l.nextSibling);var y=wr;i&&Up(r,i)?Wp(y,l):(r.flags=r.flags&-4097|2,yt=!1,wr=r)}}else{if(Ou(r))throw Error(n(418));r.flags=r.flags&-4097|2,yt=!1,wr=r}}}function Vp(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;wr=r}function tl(r){if(r!==wr)return!1;if(!yt)return Vp(r),yt=!0,!1;var i;if((i=r.tag!==3)&&!(i=r.tag!==5)&&(i=r.type,i=i!=="head"&&i!=="body"&&!wu(r.type,r.memoizedProps)),i&&(i=xr)){if(Ou(r))throw Kp(),Error(n(418));for(;i;)Wp(r,i),i=zn(i.nextSibling)}if(Vp(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(n(317));e:{for(r=r.nextSibling,i=0;r;){if(r.nodeType===8){var l=r.data;if(l==="/$"){if(i===0){xr=zn(r.nextSibling);break e}i--}else l!=="$"&&l!=="$!"&&l!=="$?"||i++}r=r.nextSibling}xr=null}}else xr=wr?zn(r.stateNode.nextSibling):null;return!0}function Kp(){for(var r=xr;r;)r=zn(r.nextSibling)}function ss(){xr=wr=null,yt=!1}function Mu(r){qr===null?qr=[r]:qr.push(r)}var R1=b.ReactCurrentBatchConfig;function ho(r,i,l){if(r=l.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(n(309));var y=l.stateNode}if(!y)throw Error(n(147,r));var k=y,O=""+r;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===O?i.ref:(i=function(F){var q=k.refs;F===null?delete q[O]:q[O]=F},i._stringRef=O,i)}if(typeof r!="string")throw Error(n(284));if(!l._owner)throw Error(n(290,r))}return r}function rl(r,i){throw r=Object.prototype.toString.call(i),Error(n(31,r==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":r))}function qp(r){var i=r._init;return i(r._payload)}function Gp(r){function i(ie,te){if(r){var ae=ie.deletions;ae===null?(ie.deletions=[te],ie.flags|=16):ae.push(te)}}function l(ie,te){if(!r)return null;for(;te!==null;)i(ie,te),te=te.sibling;return null}function y(ie,te){for(ie=new Map;te!==null;)te.key!==null?ie.set(te.key,te):ie.set(te.index,te),te=te.sibling;return ie}function k(ie,te){return ie=Qn(ie,te),ie.index=0,ie.sibling=null,ie}function O(ie,te,ae){return ie.index=ae,r?(ae=ie.alternate,ae!==null?(ae=ae.index,ae<te?(ie.flags|=2,te):ae):(ie.flags|=2,te)):(ie.flags|=1048576,te)}function F(ie){return r&&ie.alternate===null&&(ie.flags|=2),ie}function q(ie,te,ae,Se){return te===null||te.tag!==6?(te=xd(ae,ie.mode,Se),te.return=ie,te):(te=k(te,ae),te.return=ie,te)}function Y(ie,te,ae,Se){var Le=ae.type;return Le===L?me(ie,te,ae.props.children,Se,ae.key):te!==null&&(te.elementType===Le||typeof Le=="object"&&Le!==null&&Le.$$typeof===G&&qp(Le)===te.type)?(Se=k(te,ae.props),Se.ref=ho(ie,te,ae),Se.return=ie,Se):(Se=kl(ae.type,ae.key,ae.props,null,ie.mode,Se),Se.ref=ho(ie,te,ae),Se.return=ie,Se)}function le(ie,te,ae,Se){return te===null||te.tag!==4||te.stateNode.containerInfo!==ae.containerInfo||te.stateNode.implementation!==ae.implementation?(te=Ed(ae,ie.mode,Se),te.return=ie,te):(te=k(te,ae.children||[]),te.return=ie,te)}function me(ie,te,ae,Se,Le){return te===null||te.tag!==7?(te=ki(ae,ie.mode,Se,Le),te.return=ie,te):(te=k(te,ae),te.return=ie,te)}function ve(ie,te,ae){if(typeof te=="string"&&te!==""||typeof te=="number")return te=xd(""+te,ie.mode,ae),te.return=ie,te;if(typeof te=="object"&&te!==null){switch(te.$$typeof){case E:return ae=kl(te.type,te.key,te.props,null,ie.mode,ae),ae.ref=ho(ie,null,te),ae.return=ie,ae;case P:return te=Ed(te,ie.mode,ae),te.return=ie,te;case G:var Se=te._init;return ve(ie,Se(te._payload),ae)}if(je(te)||M(te))return te=ki(te,ie.mode,ae,null),te.return=ie,te;rl(ie,te)}return null}function pe(ie,te,ae,Se){var Le=te!==null?te.key:null;if(typeof ae=="string"&&ae!==""||typeof ae=="number")return Le!==null?null:q(ie,te,""+ae,Se);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case E:return ae.key===Le?Y(ie,te,ae,Se):null;case P:return ae.key===Le?le(ie,te,ae,Se):null;case G:return Le=ae._init,pe(ie,te,Le(ae._payload),Se)}if(je(ae)||M(ae))return Le!==null?null:me(ie,te,ae,Se,null);rl(ie,ae)}return null}function ke(ie,te,ae,Se,Le){if(typeof Se=="string"&&Se!==""||typeof Se=="number")return ie=ie.get(ae)||null,q(te,ie,""+Se,Le);if(typeof Se=="object"&&Se!==null){switch(Se.$$typeof){case E:return ie=ie.get(Se.key===null?ae:Se.key)||null,Y(te,ie,Se,Le);case P:return ie=ie.get(Se.key===null?ae:Se.key)||null,le(te,ie,Se,Le);case G:var $e=Se._init;return ke(ie,te,ae,$e(Se._payload),Le)}if(je(Se)||M(Se))return ie=ie.get(ae)||null,me(te,ie,Se,Le,null);rl(te,Se)}return null}function Pe(ie,te,ae,Se){for(var Le=null,$e=null,Ne=te,Ue=te=0,Ut=null;Ne!==null&&Ue<ae.length;Ue++){Ne.index>Ue?(Ut=Ne,Ne=null):Ut=Ne.sibling;var it=pe(ie,Ne,ae[Ue],Se);if(it===null){Ne===null&&(Ne=Ut);break}r&&Ne&&it.alternate===null&&i(ie,Ne),te=O(it,te,Ue),$e===null?Le=it:$e.sibling=it,$e=it,Ne=Ut}if(Ue===ae.length)return l(ie,Ne),yt&&_i(ie,Ue),Le;if(Ne===null){for(;Ue<ae.length;Ue++)Ne=ve(ie,ae[Ue],Se),Ne!==null&&(te=O(Ne,te,Ue),$e===null?Le=Ne:$e.sibling=Ne,$e=Ne);return yt&&_i(ie,Ue),Le}for(Ne=y(ie,Ne);Ue<ae.length;Ue++)Ut=ke(Ne,ie,Ue,ae[Ue],Se),Ut!==null&&(r&&Ut.alternate!==null&&Ne.delete(Ut.key===null?Ue:Ut.key),te=O(Ut,te,Ue),$e===null?Le=Ut:$e.sibling=Ut,$e=Ut);return r&&Ne.forEach(function(Zn){return i(ie,Zn)}),yt&&_i(ie,Ue),Le}function Te(ie,te,ae,Se){var Le=M(ae);if(typeof Le!="function")throw Error(n(150));if(ae=Le.call(ae),ae==null)throw Error(n(151));for(var $e=Le=null,Ne=te,Ue=te=0,Ut=null,it=ae.next();Ne!==null&&!it.done;Ue++,it=ae.next()){Ne.index>Ue?(Ut=Ne,Ne=null):Ut=Ne.sibling;var Zn=pe(ie,Ne,it.value,Se);if(Zn===null){Ne===null&&(Ne=Ut);break}r&&Ne&&Zn.alternate===null&&i(ie,Ne),te=O(Zn,te,Ue),$e===null?Le=Zn:$e.sibling=Zn,$e=Zn,Ne=Ut}if(it.done)return l(ie,Ne),yt&&_i(ie,Ue),Le;if(Ne===null){for(;!it.done;Ue++,it=ae.next())it=ve(ie,it.value,Se),it!==null&&(te=O(it,te,Ue),$e===null?Le=it:$e.sibling=it,$e=it);return yt&&_i(ie,Ue),Le}for(Ne=y(ie,Ne);!it.done;Ue++,it=ae.next())it=ke(Ne,ie,Ue,it.value,Se),it!==null&&(r&&it.alternate!==null&&Ne.delete(it.key===null?Ue:it.key),te=O(it,te,Ue),$e===null?Le=it:$e.sibling=it,$e=it);return r&&Ne.forEach(function(ob){return i(ie,ob)}),yt&&_i(ie,Ue),Le}function It(ie,te,ae,Se){if(typeof ae=="object"&&ae!==null&&ae.type===L&&ae.key===null&&(ae=ae.props.children),typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case E:e:{for(var Le=ae.key,$e=te;$e!==null;){if($e.key===Le){if(Le=ae.type,Le===L){if($e.tag===7){l(ie,$e.sibling),te=k($e,ae.props.children),te.return=ie,ie=te;break e}}else if($e.elementType===Le||typeof Le=="object"&&Le!==null&&Le.$$typeof===G&&qp(Le)===$e.type){l(ie,$e.sibling),te=k($e,ae.props),te.ref=ho(ie,$e,ae),te.return=ie,ie=te;break e}l(ie,$e);break}else i(ie,$e);$e=$e.sibling}ae.type===L?(te=ki(ae.props.children,ie.mode,Se,ae.key),te.return=ie,ie=te):(Se=kl(ae.type,ae.key,ae.props,null,ie.mode,Se),Se.ref=ho(ie,te,ae),Se.return=ie,ie=Se)}return F(ie);case P:e:{for($e=ae.key;te!==null;){if(te.key===$e)if(te.tag===4&&te.stateNode.containerInfo===ae.containerInfo&&te.stateNode.implementation===ae.implementation){l(ie,te.sibling),te=k(te,ae.children||[]),te.return=ie,ie=te;break e}else{l(ie,te);break}else i(ie,te);te=te.sibling}te=Ed(ae,ie.mode,Se),te.return=ie,ie=te}return F(ie);case G:return $e=ae._init,It(ie,te,$e(ae._payload),Se)}if(je(ae))return Pe(ie,te,ae,Se);if(M(ae))return Te(ie,te,ae,Se);rl(ie,ae)}return typeof ae=="string"&&ae!==""||typeof ae=="number"?(ae=""+ae,te!==null&&te.tag===6?(l(ie,te.sibling),te=k(te,ae),te.return=ie,ie=te):(l(ie,te),te=xd(ae,ie.mode,Se),te.return=ie,ie=te),F(ie)):l(ie,te)}return It}var os=Gp(!0),Xp=Gp(!1),nl=Hn(null),il=null,as=null,Iu=null;function Du(){Iu=as=il=null}function Bu(r){var i=nl.current;_t(nl),r._currentValue=i}function $u(r,i,l){for(;r!==null;){var y=r.alternate;if((r.childLanes&i)!==i?(r.childLanes|=i,y!==null&&(y.childLanes|=i)):y!==null&&(y.childLanes&i)!==i&&(y.childLanes|=i),r===l)break;r=r.return}}function ls(r,i){il=r,Iu=as=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&i)!==0&&(pr=!0),r.firstContext=null)}function Or(r){var i=r._currentValue;if(Iu!==r)if(r={context:r,memoizedValue:i,next:null},as===null){if(il===null)throw Error(n(308));as=r,il.dependencies={lanes:0,firstContext:r}}else as=as.next=r;return i}var yi=null;function Nu(r){yi===null?yi=[r]:yi.push(r)}function Yp(r,i,l,y){var k=i.interleaved;return k===null?(l.next=l,Nu(i)):(l.next=k.next,k.next=l),i.interleaved=l,Cn(r,y)}function Cn(r,i){r.lanes|=i;var l=r.alternate;for(l!==null&&(l.lanes|=i),l=r,r=r.return;r!==null;)r.childLanes|=i,l=r.alternate,l!==null&&(l.childLanes|=i),l=r,r=r.return;return l.tag===3?l.stateNode:null}var Vn=!1;function ju(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Jp(r,i){r=r.updateQueue,i.updateQueue===r&&(i.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function wn(r,i){return{eventTime:r,lane:i,tag:0,payload:null,callback:null,next:null}}function Kn(r,i,l){var y=r.updateQueue;if(y===null)return null;if(y=y.shared,(rt&2)!==0){var k=y.pending;return k===null?i.next=i:(i.next=k.next,k.next=i),y.pending=i,Cn(r,l)}return k=y.interleaved,k===null?(i.next=i,Nu(y)):(i.next=k.next,k.next=i),y.interleaved=i,Cn(r,l)}function sl(r,i,l){if(i=i.updateQueue,i!==null&&(i=i.shared,(l&4194240)!==0)){var y=i.lanes;y&=r.pendingLanes,l|=y,i.lanes=l,Zc(r,l)}}function Qp(r,i){var l=r.updateQueue,y=r.alternate;if(y!==null&&(y=y.updateQueue,l===y)){var k=null,O=null;if(l=l.firstBaseUpdate,l!==null){do{var F={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};O===null?k=O=F:O=O.next=F,l=l.next}while(l!==null);O===null?k=O=i:O=O.next=i}else k=O=i;l={baseState:y.baseState,firstBaseUpdate:k,lastBaseUpdate:O,shared:y.shared,effects:y.effects},r.updateQueue=l;return}r=l.lastBaseUpdate,r===null?l.firstBaseUpdate=i:r.next=i,l.lastBaseUpdate=i}function ol(r,i,l,y){var k=r.updateQueue;Vn=!1;var O=k.firstBaseUpdate,F=k.lastBaseUpdate,q=k.shared.pending;if(q!==null){k.shared.pending=null;var Y=q,le=Y.next;Y.next=null,F===null?O=le:F.next=le,F=Y;var me=r.alternate;me!==null&&(me=me.updateQueue,q=me.lastBaseUpdate,q!==F&&(q===null?me.firstBaseUpdate=le:q.next=le,me.lastBaseUpdate=Y))}if(O!==null){var ve=k.baseState;F=0,me=le=Y=null,q=O;do{var pe=q.lane,ke=q.eventTime;if((y&pe)===pe){me!==null&&(me=me.next={eventTime:ke,lane:0,tag:q.tag,payload:q.payload,callback:q.callback,next:null});e:{var Pe=r,Te=q;switch(pe=i,ke=l,Te.tag){case 1:if(Pe=Te.payload,typeof Pe=="function"){ve=Pe.call(ke,ve,pe);break e}ve=Pe;break e;case 3:Pe.flags=Pe.flags&-65537|128;case 0:if(Pe=Te.payload,pe=typeof Pe=="function"?Pe.call(ke,ve,pe):Pe,pe==null)break e;ve=z({},ve,pe);break e;case 2:Vn=!0}}q.callback!==null&&q.lane!==0&&(r.flags|=64,pe=k.effects,pe===null?k.effects=[q]:pe.push(q))}else ke={eventTime:ke,lane:pe,tag:q.tag,payload:q.payload,callback:q.callback,next:null},me===null?(le=me=ke,Y=ve):me=me.next=ke,F|=pe;if(q=q.next,q===null){if(q=k.shared.pending,q===null)break;pe=q,q=pe.next,pe.next=null,k.lastBaseUpdate=pe,k.shared.pending=null}}while(!0);if(me===null&&(Y=ve),k.baseState=Y,k.firstBaseUpdate=le,k.lastBaseUpdate=me,i=k.shared.interleaved,i!==null){k=i;do F|=k.lane,k=k.next;while(k!==i)}else O===null&&(k.shared.lanes=0);Ci|=F,r.lanes=F,r.memoizedState=ve}}function Zp(r,i,l){if(r=i.effects,i.effects=null,r!==null)for(i=0;i<r.length;i++){var y=r[i],k=y.callback;if(k!==null){if(y.callback=null,y=l,typeof k!="function")throw Error(n(191,k));k.call(y)}}}var fo={},tn=Hn(fo),po=Hn(fo),mo=Hn(fo);function Si(r){if(r===fo)throw Error(n(174));return r}function Fu(r,i){switch(gt(mo,i),gt(po,r),gt(tn,fo),r=i.nodeType,r){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:wt(null,"");break;default:r=r===8?i.parentNode:i,i=r.namespaceURI||null,r=r.tagName,i=wt(i,r)}_t(tn),gt(tn,i)}function cs(){_t(tn),_t(po),_t(mo)}function em(r){Si(mo.current);var i=Si(tn.current),l=wt(i,r.type);i!==l&&(gt(po,r),gt(tn,l))}function zu(r){po.current===r&&(_t(tn),_t(po))}var Et=Hn(0);function al(r){for(var i=r;i!==null;){if(i.tag===13){var l=i.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Hu=[];function Wu(){for(var r=0;r<Hu.length;r++)Hu[r]._workInProgressVersionPrimary=null;Hu.length=0}var ll=b.ReactCurrentDispatcher,Uu=b.ReactCurrentBatchConfig,bi=0,kt=null,Ft=null,Ht=null,cl=!1,go=!1,vo=0,P1=0;function Qt(){throw Error(n(321))}function Vu(r,i){if(i===null)return!1;for(var l=0;l<i.length&&l<r.length;l++)if(!Kr(r[l],i[l]))return!1;return!0}function Ku(r,i,l,y,k,O){if(bi=O,kt=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,ll.current=r===null||r.memoizedState===null?A1:M1,r=l(y,k),go){O=0;do{if(go=!1,vo=0,25<=O)throw Error(n(301));O+=1,Ht=Ft=null,i.updateQueue=null,ll.current=I1,r=l(y,k)}while(go)}if(ll.current=hl,i=Ft!==null&&Ft.next!==null,bi=0,Ht=Ft=kt=null,cl=!1,i)throw Error(n(300));return r}function qu(){var r=vo!==0;return vo=0,r}function rn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ht===null?kt.memoizedState=Ht=r:Ht=Ht.next=r,Ht}function Ar(){if(Ft===null){var r=kt.alternate;r=r!==null?r.memoizedState:null}else r=Ft.next;var i=Ht===null?kt.memoizedState:Ht.next;if(i!==null)Ht=i,Ft=r;else{if(r===null)throw Error(n(310));Ft=r,r={memoizedState:Ft.memoizedState,baseState:Ft.baseState,baseQueue:Ft.baseQueue,queue:Ft.queue,next:null},Ht===null?kt.memoizedState=Ht=r:Ht=Ht.next=r}return Ht}function _o(r,i){return typeof i=="function"?i(r):i}function Gu(r){var i=Ar(),l=i.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=r;var y=Ft,k=y.baseQueue,O=l.pending;if(O!==null){if(k!==null){var F=k.next;k.next=O.next,O.next=F}y.baseQueue=k=O,l.pending=null}if(k!==null){O=k.next,y=y.baseState;var q=F=null,Y=null,le=O;do{var me=le.lane;if((bi&me)===me)Y!==null&&(Y=Y.next={lane:0,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null}),y=le.hasEagerState?le.eagerState:r(y,le.action);else{var ve={lane:me,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null};Y===null?(q=Y=ve,F=y):Y=Y.next=ve,kt.lanes|=me,Ci|=me}le=le.next}while(le!==null&&le!==O);Y===null?F=y:Y.next=q,Kr(y,i.memoizedState)||(pr=!0),i.memoizedState=y,i.baseState=F,i.baseQueue=Y,l.lastRenderedState=y}if(r=l.interleaved,r!==null){k=r;do O=k.lane,kt.lanes|=O,Ci|=O,k=k.next;while(k!==r)}else k===null&&(l.lanes=0);return[i.memoizedState,l.dispatch]}function Xu(r){var i=Ar(),l=i.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=r;var y=l.dispatch,k=l.pending,O=i.memoizedState;if(k!==null){l.pending=null;var F=k=k.next;do O=r(O,F.action),F=F.next;while(F!==k);Kr(O,i.memoizedState)||(pr=!0),i.memoizedState=O,i.baseQueue===null&&(i.baseState=O),l.lastRenderedState=O}return[O,y]}function tm(){}function rm(r,i){var l=kt,y=Ar(),k=i(),O=!Kr(y.memoizedState,k);if(O&&(y.memoizedState=k,pr=!0),y=y.queue,Yu(sm.bind(null,l,y,r),[r]),y.getSnapshot!==i||O||Ht!==null&&Ht.memoizedState.tag&1){if(l.flags|=2048,yo(9,im.bind(null,l,y,k,i),void 0,null),Wt===null)throw Error(n(349));(bi&30)!==0||nm(l,i,k)}return k}function nm(r,i,l){r.flags|=16384,r={getSnapshot:i,value:l},i=kt.updateQueue,i===null?(i={lastEffect:null,stores:null},kt.updateQueue=i,i.stores=[r]):(l=i.stores,l===null?i.stores=[r]:l.push(r))}function im(r,i,l,y){i.value=l,i.getSnapshot=y,om(i)&&am(r)}function sm(r,i,l){return l(function(){om(i)&&am(r)})}function om(r){var i=r.getSnapshot;r=r.value;try{var l=i();return!Kr(r,l)}catch{return!0}}function am(r){var i=Cn(r,1);i!==null&&Jr(i,r,1,-1)}function lm(r){var i=rn();return typeof r=="function"&&(r=r()),i.memoizedState=i.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:_o,lastRenderedState:r},i.queue=r,r=r.dispatch=O1.bind(null,kt,r),[i.memoizedState,r]}function yo(r,i,l,y){return r={tag:r,create:i,destroy:l,deps:y,next:null},i=kt.updateQueue,i===null?(i={lastEffect:null,stores:null},kt.updateQueue=i,i.lastEffect=r.next=r):(l=i.lastEffect,l===null?i.lastEffect=r.next=r:(y=l.next,l.next=r,r.next=y,i.lastEffect=r)),r}function cm(){return Ar().memoizedState}function ul(r,i,l,y){var k=rn();kt.flags|=r,k.memoizedState=yo(1|i,l,void 0,y===void 0?null:y)}function dl(r,i,l,y){var k=Ar();y=y===void 0?null:y;var O=void 0;if(Ft!==null){var F=Ft.memoizedState;if(O=F.destroy,y!==null&&Vu(y,F.deps)){k.memoizedState=yo(i,l,O,y);return}}kt.flags|=r,k.memoizedState=yo(1|i,l,O,y)}function um(r,i){return ul(8390656,8,r,i)}function Yu(r,i){return dl(2048,8,r,i)}function dm(r,i){return dl(4,2,r,i)}function hm(r,i){return dl(4,4,r,i)}function fm(r,i){if(typeof i=="function")return r=r(),i(r),function(){i(null)};if(i!=null)return r=r(),i.current=r,function(){i.current=null}}function pm(r,i,l){return l=l!=null?l.concat([r]):null,dl(4,4,fm.bind(null,i,r),l)}function Ju(){}function mm(r,i){var l=Ar();i=i===void 0?null:i;var y=l.memoizedState;return y!==null&&i!==null&&Vu(i,y[1])?y[0]:(l.memoizedState=[r,i],r)}function gm(r,i){var l=Ar();i=i===void 0?null:i;var y=l.memoizedState;return y!==null&&i!==null&&Vu(i,y[1])?y[0]:(r=r(),l.memoizedState=[r,i],r)}function vm(r,i,l){return(bi&21)===0?(r.baseState&&(r.baseState=!1,pr=!0),r.memoizedState=l):(Kr(l,i)||(l=qf(),kt.lanes|=l,Ci|=l,r.baseState=!0),i)}function T1(r,i){var l=ut;ut=l!==0&&4>l?l:4,r(!0);var y=Uu.transition;Uu.transition={};try{r(!1),i()}finally{ut=l,Uu.transition=y}}function _m(){return Ar().memoizedState}function L1(r,i,l){var y=Yn(r);if(l={lane:y,action:l,hasEagerState:!1,eagerState:null,next:null},ym(r))Sm(i,l);else if(l=Yp(r,i,l,y),l!==null){var k=cr();Jr(l,r,y,k),bm(l,i,y)}}function O1(r,i,l){var y=Yn(r),k={lane:y,action:l,hasEagerState:!1,eagerState:null,next:null};if(ym(r))Sm(i,k);else{var O=r.alternate;if(r.lanes===0&&(O===null||O.lanes===0)&&(O=i.lastRenderedReducer,O!==null))try{var F=i.lastRenderedState,q=O(F,l);if(k.hasEagerState=!0,k.eagerState=q,Kr(q,F)){var Y=i.interleaved;Y===null?(k.next=k,Nu(i)):(k.next=Y.next,Y.next=k),i.interleaved=k;return}}catch{}finally{}l=Yp(r,i,k,y),l!==null&&(k=cr(),Jr(l,r,y,k),bm(l,i,y))}}function ym(r){var i=r.alternate;return r===kt||i!==null&&i===kt}function Sm(r,i){go=cl=!0;var l=r.pending;l===null?i.next=i:(i.next=l.next,l.next=i),r.pending=i}function bm(r,i,l){if((l&4194240)!==0){var y=i.lanes;y&=r.pendingLanes,l|=y,i.lanes=l,Zc(r,l)}}var hl={readContext:Or,useCallback:Qt,useContext:Qt,useEffect:Qt,useImperativeHandle:Qt,useInsertionEffect:Qt,useLayoutEffect:Qt,useMemo:Qt,useReducer:Qt,useRef:Qt,useState:Qt,useDebugValue:Qt,useDeferredValue:Qt,useTransition:Qt,useMutableSource:Qt,useSyncExternalStore:Qt,useId:Qt,unstable_isNewReconciler:!1},A1={readContext:Or,useCallback:function(r,i){return rn().memoizedState=[r,i===void 0?null:i],r},useContext:Or,useEffect:um,useImperativeHandle:function(r,i,l){return l=l!=null?l.concat([r]):null,ul(4194308,4,fm.bind(null,i,r),l)},useLayoutEffect:function(r,i){return ul(4194308,4,r,i)},useInsertionEffect:function(r,i){return ul(4,2,r,i)},useMemo:function(r,i){var l=rn();return i=i===void 0?null:i,r=r(),l.memoizedState=[r,i],r},useReducer:function(r,i,l){var y=rn();return i=l!==void 0?l(i):i,y.memoizedState=y.baseState=i,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:i},y.queue=r,r=r.dispatch=L1.bind(null,kt,r),[y.memoizedState,r]},useRef:function(r){var i=rn();return r={current:r},i.memoizedState=r},useState:lm,useDebugValue:Ju,useDeferredValue:function(r){return rn().memoizedState=r},useTransition:function(){var r=lm(!1),i=r[0];return r=T1.bind(null,r[1]),rn().memoizedState=r,[i,r]},useMutableSource:function(){},useSyncExternalStore:function(r,i,l){var y=kt,k=rn();if(yt){if(l===void 0)throw Error(n(407));l=l()}else{if(l=i(),Wt===null)throw Error(n(349));(bi&30)!==0||nm(y,i,l)}k.memoizedState=l;var O={value:l,getSnapshot:i};return k.queue=O,um(sm.bind(null,y,O,r),[r]),y.flags|=2048,yo(9,im.bind(null,y,O,l,i),void 0,null),l},useId:function(){var r=rn(),i=Wt.identifierPrefix;if(yt){var l=bn,y=Sn;l=(y&~(1<<32-Vr(y)-1)).toString(32)+l,i=":"+i+"R"+l,l=vo++,0<l&&(i+="H"+l.toString(32)),i+=":"}else l=P1++,i=":"+i+"r"+l.toString(32)+":";return r.memoizedState=i},unstable_isNewReconciler:!1},M1={readContext:Or,useCallback:mm,useContext:Or,useEffect:Yu,useImperativeHandle:pm,useInsertionEffect:dm,useLayoutEffect:hm,useMemo:gm,useReducer:Gu,useRef:cm,useState:function(){return Gu(_o)},useDebugValue:Ju,useDeferredValue:function(r){var i=Ar();return vm(i,Ft.memoizedState,r)},useTransition:function(){var r=Gu(_o)[0],i=Ar().memoizedState;return[r,i]},useMutableSource:tm,useSyncExternalStore:rm,useId:_m,unstable_isNewReconciler:!1},I1={readContext:Or,useCallback:mm,useContext:Or,useEffect:Yu,useImperativeHandle:pm,useInsertionEffect:dm,useLayoutEffect:hm,useMemo:gm,useReducer:Xu,useRef:cm,useState:function(){return Xu(_o)},useDebugValue:Ju,useDeferredValue:function(r){var i=Ar();return Ft===null?i.memoizedState=r:vm(i,Ft.memoizedState,r)},useTransition:function(){var r=Xu(_o)[0],i=Ar().memoizedState;return[r,i]},useMutableSource:tm,useSyncExternalStore:rm,useId:_m,unstable_isNewReconciler:!1};function Gr(r,i){if(r&&r.defaultProps){i=z({},i),r=r.defaultProps;for(var l in r)i[l]===void 0&&(i[l]=r[l]);return i}return i}function Qu(r,i,l,y){i=r.memoizedState,l=l(y,i),l=l==null?i:z({},i,l),r.memoizedState=l,r.lanes===0&&(r.updateQueue.baseState=l)}var fl={isMounted:function(r){return(r=r._reactInternals)?pi(r)===r:!1},enqueueSetState:function(r,i,l){r=r._reactInternals;var y=cr(),k=Yn(r),O=wn(y,k);O.payload=i,l!=null&&(O.callback=l),i=Kn(r,O,k),i!==null&&(Jr(i,r,k,y),sl(i,r,k))},enqueueReplaceState:function(r,i,l){r=r._reactInternals;var y=cr(),k=Yn(r),O=wn(y,k);O.tag=1,O.payload=i,l!=null&&(O.callback=l),i=Kn(r,O,k),i!==null&&(Jr(i,r,k,y),sl(i,r,k))},enqueueForceUpdate:function(r,i){r=r._reactInternals;var l=cr(),y=Yn(r),k=wn(l,y);k.tag=2,i!=null&&(k.callback=i),i=Kn(r,k,y),i!==null&&(Jr(i,r,y,l),sl(i,r,y))}};function Cm(r,i,l,y,k,O,F){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(y,O,F):i.prototype&&i.prototype.isPureReactComponent?!io(l,y)||!io(k,O):!0}function wm(r,i,l){var y=!1,k=Wn,O=i.contextType;return typeof O=="object"&&O!==null?O=Or(O):(k=fr(i)?gi:Jt.current,y=i.contextTypes,O=(y=y!=null)?rs(r,k):Wn),i=new i(l,O),r.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=fl,r.stateNode=i,i._reactInternals=r,y&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=k,r.__reactInternalMemoizedMaskedChildContext=O),i}function xm(r,i,l,y){r=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(l,y),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(l,y),i.state!==r&&fl.enqueueReplaceState(i,i.state,null)}function Zu(r,i,l,y){var k=r.stateNode;k.props=l,k.state=r.memoizedState,k.refs={},ju(r);var O=i.contextType;typeof O=="object"&&O!==null?k.context=Or(O):(O=fr(i)?gi:Jt.current,k.context=rs(r,O)),k.state=r.memoizedState,O=i.getDerivedStateFromProps,typeof O=="function"&&(Qu(r,i,O,l),k.state=r.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof k.getSnapshotBeforeUpdate=="function"||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(i=k.state,typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount(),i!==k.state&&fl.enqueueReplaceState(k,k.state,null),ol(r,l,k,y),k.state=r.memoizedState),typeof k.componentDidMount=="function"&&(r.flags|=4194308)}function us(r,i){try{var l="",y=i;do l+=oe(y),y=y.return;while(y);var k=l}catch(O){k=`
|
|
39
|
+
Error generating stack: `+O.message+`
|
|
40
|
+
`+O.stack}return{value:r,source:i,stack:k,digest:null}}function ed(r,i,l){return{value:r,source:null,stack:l??null,digest:i??null}}function td(r,i){try{console.error(i.value)}catch(l){setTimeout(function(){throw l})}}var D1=typeof WeakMap=="function"?WeakMap:Map;function Em(r,i,l){l=wn(-1,l),l.tag=3,l.payload={element:null};var y=i.value;return l.callback=function(){Sl||(Sl=!0,gd=y),td(r,i)},l}function km(r,i,l){l=wn(-1,l),l.tag=3;var y=r.type.getDerivedStateFromError;if(typeof y=="function"){var k=i.value;l.payload=function(){return y(k)},l.callback=function(){td(r,i)}}var O=r.stateNode;return O!==null&&typeof O.componentDidCatch=="function"&&(l.callback=function(){td(r,i),typeof y!="function"&&(Gn===null?Gn=new Set([this]):Gn.add(this));var F=i.stack;this.componentDidCatch(i.value,{componentStack:F!==null?F:""})}),l}function Rm(r,i,l){var y=r.pingCache;if(y===null){y=r.pingCache=new D1;var k=new Set;y.set(i,k)}else k=y.get(i),k===void 0&&(k=new Set,y.set(i,k));k.has(l)||(k.add(l),r=X1.bind(null,r,i,l),i.then(r,r))}function Pm(r){do{var i;if((i=r.tag===13)&&(i=r.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return r;r=r.return}while(r!==null);return null}function Tm(r,i,l,y,k){return(r.mode&1)===0?(r===i?r.flags|=65536:(r.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(i=wn(-1,1),i.tag=2,Kn(l,i,1))),l.lanes|=1),r):(r.flags|=65536,r.lanes=k,r)}var B1=b.ReactCurrentOwner,pr=!1;function lr(r,i,l,y){i.child=r===null?Xp(i,null,l,y):os(i,r.child,l,y)}function Lm(r,i,l,y,k){l=l.render;var O=i.ref;return ls(i,k),y=Ku(r,i,l,y,O,k),l=qu(),r!==null&&!pr?(i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~k,xn(r,i,k)):(yt&&l&&Tu(i),i.flags|=1,lr(r,i,y,k),i.child)}function Om(r,i,l,y,k){if(r===null){var O=l.type;return typeof O=="function"&&!wd(O)&&O.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(i.tag=15,i.type=O,Am(r,i,O,y,k)):(r=kl(l.type,null,y,i,i.mode,k),r.ref=i.ref,r.return=i,i.child=r)}if(O=r.child,(r.lanes&k)===0){var F=O.memoizedProps;if(l=l.compare,l=l!==null?l:io,l(F,y)&&r.ref===i.ref)return xn(r,i,k)}return i.flags|=1,r=Qn(O,y),r.ref=i.ref,r.return=i,i.child=r}function Am(r,i,l,y,k){if(r!==null){var O=r.memoizedProps;if(io(O,y)&&r.ref===i.ref)if(pr=!1,i.pendingProps=y=O,(r.lanes&k)!==0)(r.flags&131072)!==0&&(pr=!0);else return i.lanes=r.lanes,xn(r,i,k)}return rd(r,i,l,y,k)}function Mm(r,i,l){var y=i.pendingProps,k=y.children,O=r!==null?r.memoizedState:null;if(y.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},gt(hs,Er),Er|=l;else{if((l&1073741824)===0)return r=O!==null?O.baseLanes|l:l,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:r,cachePool:null,transitions:null},i.updateQueue=null,gt(hs,Er),Er|=r,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},y=O!==null?O.baseLanes:l,gt(hs,Er),Er|=y}else O!==null?(y=O.baseLanes|l,i.memoizedState=null):y=l,gt(hs,Er),Er|=y;return lr(r,i,k,l),i.child}function Im(r,i){var l=i.ref;(r===null&&l!==null||r!==null&&r.ref!==l)&&(i.flags|=512,i.flags|=2097152)}function rd(r,i,l,y,k){var O=fr(l)?gi:Jt.current;return O=rs(i,O),ls(i,k),l=Ku(r,i,l,y,O,k),y=qu(),r!==null&&!pr?(i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~k,xn(r,i,k)):(yt&&y&&Tu(i),i.flags|=1,lr(r,i,l,k),i.child)}function Dm(r,i,l,y,k){if(fr(l)){var O=!0;Ja(i)}else O=!1;if(ls(i,k),i.stateNode===null)ml(r,i),wm(i,l,y),Zu(i,l,y,k),y=!0;else if(r===null){var F=i.stateNode,q=i.memoizedProps;F.props=q;var Y=F.context,le=l.contextType;typeof le=="object"&&le!==null?le=Or(le):(le=fr(l)?gi:Jt.current,le=rs(i,le));var me=l.getDerivedStateFromProps,ve=typeof me=="function"||typeof F.getSnapshotBeforeUpdate=="function";ve||typeof F.UNSAFE_componentWillReceiveProps!="function"&&typeof F.componentWillReceiveProps!="function"||(q!==y||Y!==le)&&xm(i,F,y,le),Vn=!1;var pe=i.memoizedState;F.state=pe,ol(i,y,F,k),Y=i.memoizedState,q!==y||pe!==Y||hr.current||Vn?(typeof me=="function"&&(Qu(i,l,me,y),Y=i.memoizedState),(q=Vn||Cm(i,l,q,y,pe,Y,le))?(ve||typeof F.UNSAFE_componentWillMount!="function"&&typeof F.componentWillMount!="function"||(typeof F.componentWillMount=="function"&&F.componentWillMount(),typeof F.UNSAFE_componentWillMount=="function"&&F.UNSAFE_componentWillMount()),typeof F.componentDidMount=="function"&&(i.flags|=4194308)):(typeof F.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=y,i.memoizedState=Y),F.props=y,F.state=Y,F.context=le,y=q):(typeof F.componentDidMount=="function"&&(i.flags|=4194308),y=!1)}else{F=i.stateNode,Jp(r,i),q=i.memoizedProps,le=i.type===i.elementType?q:Gr(i.type,q),F.props=le,ve=i.pendingProps,pe=F.context,Y=l.contextType,typeof Y=="object"&&Y!==null?Y=Or(Y):(Y=fr(l)?gi:Jt.current,Y=rs(i,Y));var ke=l.getDerivedStateFromProps;(me=typeof ke=="function"||typeof F.getSnapshotBeforeUpdate=="function")||typeof F.UNSAFE_componentWillReceiveProps!="function"&&typeof F.componentWillReceiveProps!="function"||(q!==ve||pe!==Y)&&xm(i,F,y,Y),Vn=!1,pe=i.memoizedState,F.state=pe,ol(i,y,F,k);var Pe=i.memoizedState;q!==ve||pe!==Pe||hr.current||Vn?(typeof ke=="function"&&(Qu(i,l,ke,y),Pe=i.memoizedState),(le=Vn||Cm(i,l,le,y,pe,Pe,Y)||!1)?(me||typeof F.UNSAFE_componentWillUpdate!="function"&&typeof F.componentWillUpdate!="function"||(typeof F.componentWillUpdate=="function"&&F.componentWillUpdate(y,Pe,Y),typeof F.UNSAFE_componentWillUpdate=="function"&&F.UNSAFE_componentWillUpdate(y,Pe,Y)),typeof F.componentDidUpdate=="function"&&(i.flags|=4),typeof F.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof F.componentDidUpdate!="function"||q===r.memoizedProps&&pe===r.memoizedState||(i.flags|=4),typeof F.getSnapshotBeforeUpdate!="function"||q===r.memoizedProps&&pe===r.memoizedState||(i.flags|=1024),i.memoizedProps=y,i.memoizedState=Pe),F.props=y,F.state=Pe,F.context=Y,y=le):(typeof F.componentDidUpdate!="function"||q===r.memoizedProps&&pe===r.memoizedState||(i.flags|=4),typeof F.getSnapshotBeforeUpdate!="function"||q===r.memoizedProps&&pe===r.memoizedState||(i.flags|=1024),y=!1)}return nd(r,i,l,y,O,k)}function nd(r,i,l,y,k,O){Im(r,i);var F=(i.flags&128)!==0;if(!y&&!F)return k&&Fp(i,l,!1),xn(r,i,O);y=i.stateNode,B1.current=i;var q=F&&typeof l.getDerivedStateFromError!="function"?null:y.render();return i.flags|=1,r!==null&&F?(i.child=os(i,r.child,null,O),i.child=os(i,null,q,O)):lr(r,i,q,O),i.memoizedState=y.state,k&&Fp(i,l,!0),i.child}function Bm(r){var i=r.stateNode;i.pendingContext?Np(r,i.pendingContext,i.pendingContext!==i.context):i.context&&Np(r,i.context,!1),Fu(r,i.containerInfo)}function $m(r,i,l,y,k){return ss(),Mu(k),i.flags|=256,lr(r,i,l,y),i.child}var id={dehydrated:null,treeContext:null,retryLane:0};function sd(r){return{baseLanes:r,cachePool:null,transitions:null}}function Nm(r,i,l){var y=i.pendingProps,k=Et.current,O=!1,F=(i.flags&128)!==0,q;if((q=F)||(q=r!==null&&r.memoizedState===null?!1:(k&2)!==0),q?(O=!0,i.flags&=-129):(r===null||r.memoizedState!==null)&&(k|=1),gt(Et,k&1),r===null)return Au(i),r=i.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?((i.mode&1)===0?i.lanes=1:r.data==="$!"?i.lanes=8:i.lanes=1073741824,null):(F=y.children,r=y.fallback,O?(y=i.mode,O=i.child,F={mode:"hidden",children:F},(y&1)===0&&O!==null?(O.childLanes=0,O.pendingProps=F):O=Rl(F,y,0,null),r=ki(r,y,l,null),O.return=i,r.return=i,O.sibling=r,i.child=O,i.child.memoizedState=sd(l),i.memoizedState=id,r):od(i,F));if(k=r.memoizedState,k!==null&&(q=k.dehydrated,q!==null))return $1(r,i,F,y,q,k,l);if(O){O=y.fallback,F=i.mode,k=r.child,q=k.sibling;var Y={mode:"hidden",children:y.children};return(F&1)===0&&i.child!==k?(y=i.child,y.childLanes=0,y.pendingProps=Y,i.deletions=null):(y=Qn(k,Y),y.subtreeFlags=k.subtreeFlags&14680064),q!==null?O=Qn(q,O):(O=ki(O,F,l,null),O.flags|=2),O.return=i,y.return=i,y.sibling=O,i.child=y,y=O,O=i.child,F=r.child.memoizedState,F=F===null?sd(l):{baseLanes:F.baseLanes|l,cachePool:null,transitions:F.transitions},O.memoizedState=F,O.childLanes=r.childLanes&~l,i.memoizedState=id,y}return O=r.child,r=O.sibling,y=Qn(O,{mode:"visible",children:y.children}),(i.mode&1)===0&&(y.lanes=l),y.return=i,y.sibling=null,r!==null&&(l=i.deletions,l===null?(i.deletions=[r],i.flags|=16):l.push(r)),i.child=y,i.memoizedState=null,y}function od(r,i){return i=Rl({mode:"visible",children:i},r.mode,0,null),i.return=r,r.child=i}function pl(r,i,l,y){return y!==null&&Mu(y),os(i,r.child,null,l),r=od(i,i.pendingProps.children),r.flags|=2,i.memoizedState=null,r}function $1(r,i,l,y,k,O,F){if(l)return i.flags&256?(i.flags&=-257,y=ed(Error(n(422))),pl(r,i,F,y)):i.memoizedState!==null?(i.child=r.child,i.flags|=128,null):(O=y.fallback,k=i.mode,y=Rl({mode:"visible",children:y.children},k,0,null),O=ki(O,k,F,null),O.flags|=2,y.return=i,O.return=i,y.sibling=O,i.child=y,(i.mode&1)!==0&&os(i,r.child,null,F),i.child.memoizedState=sd(F),i.memoizedState=id,O);if((i.mode&1)===0)return pl(r,i,F,null);if(k.data==="$!"){if(y=k.nextSibling&&k.nextSibling.dataset,y)var q=y.dgst;return y=q,O=Error(n(419)),y=ed(O,y,void 0),pl(r,i,F,y)}if(q=(F&r.childLanes)!==0,pr||q){if(y=Wt,y!==null){switch(F&-F){case 4:k=2;break;case 16:k=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:k=32;break;case 536870912:k=268435456;break;default:k=0}k=(k&(y.suspendedLanes|F))!==0?0:k,k!==0&&k!==O.retryLane&&(O.retryLane=k,Cn(r,k),Jr(y,r,k,-1))}return Cd(),y=ed(Error(n(421))),pl(r,i,F,y)}return k.data==="$?"?(i.flags|=128,i.child=r.child,i=Y1.bind(null,r),k._reactRetry=i,null):(r=O.treeContext,xr=zn(k.nextSibling),wr=i,yt=!0,qr=null,r!==null&&(Tr[Lr++]=Sn,Tr[Lr++]=bn,Tr[Lr++]=vi,Sn=r.id,bn=r.overflow,vi=i),i=od(i,y.children),i.flags|=4096,i)}function jm(r,i,l){r.lanes|=i;var y=r.alternate;y!==null&&(y.lanes|=i),$u(r.return,i,l)}function ad(r,i,l,y,k){var O=r.memoizedState;O===null?r.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:y,tail:l,tailMode:k}:(O.isBackwards=i,O.rendering=null,O.renderingStartTime=0,O.last=y,O.tail=l,O.tailMode=k)}function Fm(r,i,l){var y=i.pendingProps,k=y.revealOrder,O=y.tail;if(lr(r,i,y.children,l),y=Et.current,(y&2)!==0)y=y&1|2,i.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=i.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&jm(r,l,i);else if(r.tag===19)jm(r,l,i);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===i)break e;for(;r.sibling===null;){if(r.return===null||r.return===i)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}y&=1}if(gt(Et,y),(i.mode&1)===0)i.memoizedState=null;else switch(k){case"forwards":for(l=i.child,k=null;l!==null;)r=l.alternate,r!==null&&al(r)===null&&(k=l),l=l.sibling;l=k,l===null?(k=i.child,i.child=null):(k=l.sibling,l.sibling=null),ad(i,!1,k,l,O);break;case"backwards":for(l=null,k=i.child,i.child=null;k!==null;){if(r=k.alternate,r!==null&&al(r)===null){i.child=k;break}r=k.sibling,k.sibling=l,l=k,k=r}ad(i,!0,l,null,O);break;case"together":ad(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function ml(r,i){(i.mode&1)===0&&r!==null&&(r.alternate=null,i.alternate=null,i.flags|=2)}function xn(r,i,l){if(r!==null&&(i.dependencies=r.dependencies),Ci|=i.lanes,(l&i.childLanes)===0)return null;if(r!==null&&i.child!==r.child)throw Error(n(153));if(i.child!==null){for(r=i.child,l=Qn(r,r.pendingProps),i.child=l,l.return=i;r.sibling!==null;)r=r.sibling,l=l.sibling=Qn(r,r.pendingProps),l.return=i;l.sibling=null}return i.child}function N1(r,i,l){switch(i.tag){case 3:Bm(i),ss();break;case 5:em(i);break;case 1:fr(i.type)&&Ja(i);break;case 4:Fu(i,i.stateNode.containerInfo);break;case 10:var y=i.type._context,k=i.memoizedProps.value;gt(nl,y._currentValue),y._currentValue=k;break;case 13:if(y=i.memoizedState,y!==null)return y.dehydrated!==null?(gt(Et,Et.current&1),i.flags|=128,null):(l&i.child.childLanes)!==0?Nm(r,i,l):(gt(Et,Et.current&1),r=xn(r,i,l),r!==null?r.sibling:null);gt(Et,Et.current&1);break;case 19:if(y=(l&i.childLanes)!==0,(r.flags&128)!==0){if(y)return Fm(r,i,l);i.flags|=128}if(k=i.memoizedState,k!==null&&(k.rendering=null,k.tail=null,k.lastEffect=null),gt(Et,Et.current),y)break;return null;case 22:case 23:return i.lanes=0,Mm(r,i,l)}return xn(r,i,l)}var zm,ld,Hm,Wm;zm=function(r,i){for(var l=i.child;l!==null;){if(l.tag===5||l.tag===6)r.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===i)break;for(;l.sibling===null;){if(l.return===null||l.return===i)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},ld=function(){},Hm=function(r,i,l,y){var k=r.memoizedProps;if(k!==y){r=i.stateNode,Si(tn.current);var O=null;switch(l){case"input":k=ge(r,k),y=ge(r,y),O=[];break;case"select":k=z({},k,{value:void 0}),y=z({},y,{value:void 0}),O=[];break;case"textarea":k=Ee(r,k),y=Ee(r,y),O=[];break;default:typeof k.onClick!="function"&&typeof y.onClick=="function"&&(r.onclick=Ga)}tt(l,y);var F;l=null;for(le in k)if(!y.hasOwnProperty(le)&&k.hasOwnProperty(le)&&k[le]!=null)if(le==="style"){var q=k[le];for(F in q)q.hasOwnProperty(F)&&(l||(l={}),l[F]="")}else le!=="dangerouslySetInnerHTML"&&le!=="children"&&le!=="suppressContentEditableWarning"&&le!=="suppressHydrationWarning"&&le!=="autoFocus"&&(a.hasOwnProperty(le)?O||(O=[]):(O=O||[]).push(le,null));for(le in y){var Y=y[le];if(q=k!=null?k[le]:void 0,y.hasOwnProperty(le)&&Y!==q&&(Y!=null||q!=null))if(le==="style")if(q){for(F in q)!q.hasOwnProperty(F)||Y&&Y.hasOwnProperty(F)||(l||(l={}),l[F]="");for(F in Y)Y.hasOwnProperty(F)&&q[F]!==Y[F]&&(l||(l={}),l[F]=Y[F])}else l||(O||(O=[]),O.push(le,l)),l=Y;else le==="dangerouslySetInnerHTML"?(Y=Y?Y.__html:void 0,q=q?q.__html:void 0,Y!=null&&q!==Y&&(O=O||[]).push(le,Y)):le==="children"?typeof Y!="string"&&typeof Y!="number"||(O=O||[]).push(le,""+Y):le!=="suppressContentEditableWarning"&&le!=="suppressHydrationWarning"&&(a.hasOwnProperty(le)?(Y!=null&&le==="onScroll"&&vt("scroll",r),O||q===Y||(O=[])):(O=O||[]).push(le,Y))}l&&(O=O||[]).push("style",l);var le=O;(i.updateQueue=le)&&(i.flags|=4)}},Wm=function(r,i,l,y){l!==y&&(i.flags|=4)};function So(r,i){if(!yt)switch(r.tailMode){case"hidden":i=r.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?r.tail=null:l.sibling=null;break;case"collapsed":l=r.tail;for(var y=null;l!==null;)l.alternate!==null&&(y=l),l=l.sibling;y===null?i||r.tail===null?r.tail=null:r.tail.sibling=null:y.sibling=null}}function Zt(r){var i=r.alternate!==null&&r.alternate.child===r.child,l=0,y=0;if(i)for(var k=r.child;k!==null;)l|=k.lanes|k.childLanes,y|=k.subtreeFlags&14680064,y|=k.flags&14680064,k.return=r,k=k.sibling;else for(k=r.child;k!==null;)l|=k.lanes|k.childLanes,y|=k.subtreeFlags,y|=k.flags,k.return=r,k=k.sibling;return r.subtreeFlags|=y,r.childLanes=l,i}function j1(r,i,l){var y=i.pendingProps;switch(Lu(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Zt(i),null;case 1:return fr(i.type)&&Ya(),Zt(i),null;case 3:return y=i.stateNode,cs(),_t(hr),_t(Jt),Wu(),y.pendingContext&&(y.context=y.pendingContext,y.pendingContext=null),(r===null||r.child===null)&&(tl(i)?i.flags|=4:r===null||r.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,qr!==null&&(yd(qr),qr=null))),ld(r,i),Zt(i),null;case 5:zu(i);var k=Si(mo.current);if(l=i.type,r!==null&&i.stateNode!=null)Hm(r,i,l,y,k),r.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!y){if(i.stateNode===null)throw Error(n(166));return Zt(i),null}if(r=Si(tn.current),tl(i)){y=i.stateNode,l=i.type;var O=i.memoizedProps;switch(y[en]=i,y[co]=O,r=(i.mode&1)!==0,l){case"dialog":vt("cancel",y),vt("close",y);break;case"iframe":case"object":case"embed":vt("load",y);break;case"video":case"audio":for(k=0;k<oo.length;k++)vt(oo[k],y);break;case"source":vt("error",y);break;case"img":case"image":case"link":vt("error",y),vt("load",y);break;case"details":vt("toggle",y);break;case"input":xe(y,O),vt("invalid",y);break;case"select":y._wrapperState={wasMultiple:!!O.multiple},vt("invalid",y);break;case"textarea":Ze(y,O),vt("invalid",y)}tt(l,O),k=null;for(var F in O)if(O.hasOwnProperty(F)){var q=O[F];F==="children"?typeof q=="string"?y.textContent!==q&&(O.suppressHydrationWarning!==!0&&qa(y.textContent,q,r),k=["children",q]):typeof q=="number"&&y.textContent!==""+q&&(O.suppressHydrationWarning!==!0&&qa(y.textContent,q,r),k=["children",""+q]):a.hasOwnProperty(F)&&q!=null&&F==="onScroll"&&vt("scroll",y)}switch(l){case"input":ue(y),ye(y,O,!0);break;case"textarea":ue(y),dt(y);break;case"select":case"option":break;default:typeof O.onClick=="function"&&(y.onclick=Ga)}y=k,i.updateQueue=y,y!==null&&(i.flags|=4)}else{F=k.nodeType===9?k:k.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=Rt(l)),r==="http://www.w3.org/1999/xhtml"?l==="script"?(r=F.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof y.is=="string"?r=F.createElement(l,{is:y.is}):(r=F.createElement(l),l==="select"&&(F=r,y.multiple?F.multiple=!0:y.size&&(F.size=y.size))):r=F.createElementNS(r,l),r[en]=i,r[co]=y,zm(r,i,!1,!1),i.stateNode=r;e:{switch(F=xt(l,y),l){case"dialog":vt("cancel",r),vt("close",r),k=y;break;case"iframe":case"object":case"embed":vt("load",r),k=y;break;case"video":case"audio":for(k=0;k<oo.length;k++)vt(oo[k],r);k=y;break;case"source":vt("error",r),k=y;break;case"img":case"image":case"link":vt("error",r),vt("load",r),k=y;break;case"details":vt("toggle",r),k=y;break;case"input":xe(r,y),k=ge(r,y),vt("invalid",r);break;case"option":k=y;break;case"select":r._wrapperState={wasMultiple:!!y.multiple},k=z({},y,{value:void 0}),vt("invalid",r);break;case"textarea":Ze(r,y),k=Ee(r,y),vt("invalid",r);break;default:k=y}tt(l,k),q=k;for(O in q)if(q.hasOwnProperty(O)){var Y=q[O];O==="style"?Kt(r,Y):O==="dangerouslySetInnerHTML"?(Y=Y?Y.__html:void 0,Y!=null&&et(r,Y)):O==="children"?typeof Y=="string"?(l!=="textarea"||Y!=="")&&Ye(r,Y):typeof Y=="number"&&Ye(r,""+Y):O!=="suppressContentEditableWarning"&&O!=="suppressHydrationWarning"&&O!=="autoFocus"&&(a.hasOwnProperty(O)?Y!=null&&O==="onScroll"&&vt("scroll",r):Y!=null&&h(r,O,Y,F))}switch(l){case"input":ue(r),ye(r,y,!1);break;case"textarea":ue(r),dt(r);break;case"option":y.value!=null&&r.setAttribute("value",""+j(y.value));break;case"select":r.multiple=!!y.multiple,O=y.value,O!=null?He(r,!!y.multiple,O,!1):y.defaultValue!=null&&He(r,!!y.multiple,y.defaultValue,!0);break;default:typeof k.onClick=="function"&&(r.onclick=Ga)}switch(l){case"button":case"input":case"select":case"textarea":y=!!y.autoFocus;break e;case"img":y=!0;break e;default:y=!1}}y&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return Zt(i),null;case 6:if(r&&i.stateNode!=null)Wm(r,i,r.memoizedProps,y);else{if(typeof y!="string"&&i.stateNode===null)throw Error(n(166));if(l=Si(mo.current),Si(tn.current),tl(i)){if(y=i.stateNode,l=i.memoizedProps,y[en]=i,(O=y.nodeValue!==l)&&(r=wr,r!==null))switch(r.tag){case 3:qa(y.nodeValue,l,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&qa(y.nodeValue,l,(r.mode&1)!==0)}O&&(i.flags|=4)}else y=(l.nodeType===9?l:l.ownerDocument).createTextNode(y),y[en]=i,i.stateNode=y}return Zt(i),null;case 13:if(_t(Et),y=i.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(yt&&xr!==null&&(i.mode&1)!==0&&(i.flags&128)===0)Kp(),ss(),i.flags|=98560,O=!1;else if(O=tl(i),y!==null&&y.dehydrated!==null){if(r===null){if(!O)throw Error(n(318));if(O=i.memoizedState,O=O!==null?O.dehydrated:null,!O)throw Error(n(317));O[en]=i}else ss(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Zt(i),O=!1}else qr!==null&&(yd(qr),qr=null),O=!0;if(!O)return i.flags&65536?i:null}return(i.flags&128)!==0?(i.lanes=l,i):(y=y!==null,y!==(r!==null&&r.memoizedState!==null)&&y&&(i.child.flags|=8192,(i.mode&1)!==0&&(r===null||(Et.current&1)!==0?zt===0&&(zt=3):Cd())),i.updateQueue!==null&&(i.flags|=4),Zt(i),null);case 4:return cs(),ld(r,i),r===null&&ao(i.stateNode.containerInfo),Zt(i),null;case 10:return Bu(i.type._context),Zt(i),null;case 17:return fr(i.type)&&Ya(),Zt(i),null;case 19:if(_t(Et),O=i.memoizedState,O===null)return Zt(i),null;if(y=(i.flags&128)!==0,F=O.rendering,F===null)if(y)So(O,!1);else{if(zt!==0||r!==null&&(r.flags&128)!==0)for(r=i.child;r!==null;){if(F=al(r),F!==null){for(i.flags|=128,So(O,!1),y=F.updateQueue,y!==null&&(i.updateQueue=y,i.flags|=4),i.subtreeFlags=0,y=l,l=i.child;l!==null;)O=l,r=y,O.flags&=14680066,F=O.alternate,F===null?(O.childLanes=0,O.lanes=r,O.child=null,O.subtreeFlags=0,O.memoizedProps=null,O.memoizedState=null,O.updateQueue=null,O.dependencies=null,O.stateNode=null):(O.childLanes=F.childLanes,O.lanes=F.lanes,O.child=F.child,O.subtreeFlags=0,O.deletions=null,O.memoizedProps=F.memoizedProps,O.memoizedState=F.memoizedState,O.updateQueue=F.updateQueue,O.type=F.type,r=F.dependencies,O.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),l=l.sibling;return gt(Et,Et.current&1|2),i.child}r=r.sibling}O.tail!==null&&Mt()>fs&&(i.flags|=128,y=!0,So(O,!1),i.lanes=4194304)}else{if(!y)if(r=al(F),r!==null){if(i.flags|=128,y=!0,l=r.updateQueue,l!==null&&(i.updateQueue=l,i.flags|=4),So(O,!0),O.tail===null&&O.tailMode==="hidden"&&!F.alternate&&!yt)return Zt(i),null}else 2*Mt()-O.renderingStartTime>fs&&l!==1073741824&&(i.flags|=128,y=!0,So(O,!1),i.lanes=4194304);O.isBackwards?(F.sibling=i.child,i.child=F):(l=O.last,l!==null?l.sibling=F:i.child=F,O.last=F)}return O.tail!==null?(i=O.tail,O.rendering=i,O.tail=i.sibling,O.renderingStartTime=Mt(),i.sibling=null,l=Et.current,gt(Et,y?l&1|2:l&1),i):(Zt(i),null);case 22:case 23:return bd(),y=i.memoizedState!==null,r!==null&&r.memoizedState!==null!==y&&(i.flags|=8192),y&&(i.mode&1)!==0?(Er&1073741824)!==0&&(Zt(i),i.subtreeFlags&6&&(i.flags|=8192)):Zt(i),null;case 24:return null;case 25:return null}throw Error(n(156,i.tag))}function F1(r,i){switch(Lu(i),i.tag){case 1:return fr(i.type)&&Ya(),r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 3:return cs(),_t(hr),_t(Jt),Wu(),r=i.flags,(r&65536)!==0&&(r&128)===0?(i.flags=r&-65537|128,i):null;case 5:return zu(i),null;case 13:if(_t(Et),r=i.memoizedState,r!==null&&r.dehydrated!==null){if(i.alternate===null)throw Error(n(340));ss()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 19:return _t(Et),null;case 4:return cs(),null;case 10:return Bu(i.type._context),null;case 22:case 23:return bd(),null;case 24:return null;default:return null}}var gl=!1,er=!1,z1=typeof WeakSet=="function"?WeakSet:Set,Re=null;function ds(r,i){var l=r.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(y){Pt(r,i,y)}else l.current=null}function cd(r,i,l){try{l()}catch(y){Pt(r,i,y)}}var Um=!1;function H1(r,i){if(bu=Ba,r=Cp(),fu(r)){if("selectionStart"in r)var l={start:r.selectionStart,end:r.selectionEnd};else e:{l=(l=r.ownerDocument)&&l.defaultView||window;var y=l.getSelection&&l.getSelection();if(y&&y.rangeCount!==0){l=y.anchorNode;var k=y.anchorOffset,O=y.focusNode;y=y.focusOffset;try{l.nodeType,O.nodeType}catch{l=null;break e}var F=0,q=-1,Y=-1,le=0,me=0,ve=r,pe=null;t:for(;;){for(var ke;ve!==l||k!==0&&ve.nodeType!==3||(q=F+k),ve!==O||y!==0&&ve.nodeType!==3||(Y=F+y),ve.nodeType===3&&(F+=ve.nodeValue.length),(ke=ve.firstChild)!==null;)pe=ve,ve=ke;for(;;){if(ve===r)break t;if(pe===l&&++le===k&&(q=F),pe===O&&++me===y&&(Y=F),(ke=ve.nextSibling)!==null)break;ve=pe,pe=ve.parentNode}ve=ke}l=q===-1||Y===-1?null:{start:q,end:Y}}else l=null}l=l||{start:0,end:0}}else l=null;for(Cu={focusedElem:r,selectionRange:l},Ba=!1,Re=i;Re!==null;)if(i=Re,r=i.child,(i.subtreeFlags&1028)!==0&&r!==null)r.return=i,Re=r;else for(;Re!==null;){i=Re;try{var Pe=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(Pe!==null){var Te=Pe.memoizedProps,It=Pe.memoizedState,ie=i.stateNode,te=ie.getSnapshotBeforeUpdate(i.elementType===i.type?Te:Gr(i.type,Te),It);ie.__reactInternalSnapshotBeforeUpdate=te}break;case 3:var ae=i.stateNode.containerInfo;ae.nodeType===1?ae.textContent="":ae.nodeType===9&&ae.documentElement&&ae.removeChild(ae.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(Se){Pt(i,i.return,Se)}if(r=i.sibling,r!==null){r.return=i.return,Re=r;break}Re=i.return}return Pe=Um,Um=!1,Pe}function bo(r,i,l){var y=i.updateQueue;if(y=y!==null?y.lastEffect:null,y!==null){var k=y=y.next;do{if((k.tag&r)===r){var O=k.destroy;k.destroy=void 0,O!==void 0&&cd(i,l,O)}k=k.next}while(k!==y)}}function vl(r,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var l=i=i.next;do{if((l.tag&r)===r){var y=l.create;l.destroy=y()}l=l.next}while(l!==i)}}function ud(r){var i=r.ref;if(i!==null){var l=r.stateNode;switch(r.tag){case 5:r=l;break;default:r=l}typeof i=="function"?i(r):i.current=r}}function Vm(r){var i=r.alternate;i!==null&&(r.alternate=null,Vm(i)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(i=r.stateNode,i!==null&&(delete i[en],delete i[co],delete i[ku],delete i[x1],delete i[E1])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function Km(r){return r.tag===5||r.tag===3||r.tag===4}function qm(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Km(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function dd(r,i,l){var y=r.tag;if(y===5||y===6)r=r.stateNode,i?l.nodeType===8?l.parentNode.insertBefore(r,i):l.insertBefore(r,i):(l.nodeType===8?(i=l.parentNode,i.insertBefore(r,l)):(i=l,i.appendChild(r)),l=l._reactRootContainer,l!=null||i.onclick!==null||(i.onclick=Ga));else if(y!==4&&(r=r.child,r!==null))for(dd(r,i,l),r=r.sibling;r!==null;)dd(r,i,l),r=r.sibling}function hd(r,i,l){var y=r.tag;if(y===5||y===6)r=r.stateNode,i?l.insertBefore(r,i):l.appendChild(r);else if(y!==4&&(r=r.child,r!==null))for(hd(r,i,l),r=r.sibling;r!==null;)hd(r,i,l),r=r.sibling}var qt=null,Xr=!1;function qn(r,i,l){for(l=l.child;l!==null;)Gm(r,i,l),l=l.sibling}function Gm(r,i,l){if(Zr&&typeof Zr.onCommitFiberUnmount=="function")try{Zr.onCommitFiberUnmount(La,l)}catch{}switch(l.tag){case 5:er||ds(l,i);case 6:var y=qt,k=Xr;qt=null,qn(r,i,l),qt=y,Xr=k,qt!==null&&(Xr?(r=qt,l=l.stateNode,r.nodeType===8?r.parentNode.removeChild(l):r.removeChild(l)):qt.removeChild(l.stateNode));break;case 18:qt!==null&&(Xr?(r=qt,l=l.stateNode,r.nodeType===8?Eu(r.parentNode,l):r.nodeType===1&&Eu(r,l),Qs(r)):Eu(qt,l.stateNode));break;case 4:y=qt,k=Xr,qt=l.stateNode.containerInfo,Xr=!0,qn(r,i,l),qt=y,Xr=k;break;case 0:case 11:case 14:case 15:if(!er&&(y=l.updateQueue,y!==null&&(y=y.lastEffect,y!==null))){k=y=y.next;do{var O=k,F=O.destroy;O=O.tag,F!==void 0&&((O&2)!==0||(O&4)!==0)&&cd(l,i,F),k=k.next}while(k!==y)}qn(r,i,l);break;case 1:if(!er&&(ds(l,i),y=l.stateNode,typeof y.componentWillUnmount=="function"))try{y.props=l.memoizedProps,y.state=l.memoizedState,y.componentWillUnmount()}catch(q){Pt(l,i,q)}qn(r,i,l);break;case 21:qn(r,i,l);break;case 22:l.mode&1?(er=(y=er)||l.memoizedState!==null,qn(r,i,l),er=y):qn(r,i,l);break;default:qn(r,i,l)}}function Xm(r){var i=r.updateQueue;if(i!==null){r.updateQueue=null;var l=r.stateNode;l===null&&(l=r.stateNode=new z1),i.forEach(function(y){var k=J1.bind(null,r,y);l.has(y)||(l.add(y),y.then(k,k))})}}function Yr(r,i){var l=i.deletions;if(l!==null)for(var y=0;y<l.length;y++){var k=l[y];try{var O=r,F=i,q=F;e:for(;q!==null;){switch(q.tag){case 5:qt=q.stateNode,Xr=!1;break e;case 3:qt=q.stateNode.containerInfo,Xr=!0;break e;case 4:qt=q.stateNode.containerInfo,Xr=!0;break e}q=q.return}if(qt===null)throw Error(n(160));Gm(O,F,k),qt=null,Xr=!1;var Y=k.alternate;Y!==null&&(Y.return=null),k.return=null}catch(le){Pt(k,i,le)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)Ym(i,r),i=i.sibling}function Ym(r,i){var l=r.alternate,y=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(Yr(i,r),nn(r),y&4){try{bo(3,r,r.return),vl(3,r)}catch(Te){Pt(r,r.return,Te)}try{bo(5,r,r.return)}catch(Te){Pt(r,r.return,Te)}}break;case 1:Yr(i,r),nn(r),y&512&&l!==null&&ds(l,l.return);break;case 5:if(Yr(i,r),nn(r),y&512&&l!==null&&ds(l,l.return),r.flags&32){var k=r.stateNode;try{Ye(k,"")}catch(Te){Pt(r,r.return,Te)}}if(y&4&&(k=r.stateNode,k!=null)){var O=r.memoizedProps,F=l!==null?l.memoizedProps:O,q=r.type,Y=r.updateQueue;if(r.updateQueue=null,Y!==null)try{q==="input"&&O.type==="radio"&&O.name!=null&&Ve(k,O),xt(q,F);var le=xt(q,O);for(F=0;F<Y.length;F+=2){var me=Y[F],ve=Y[F+1];me==="style"?Kt(k,ve):me==="dangerouslySetInnerHTML"?et(k,ve):me==="children"?Ye(k,ve):h(k,me,ve,le)}switch(q){case"input":be(k,O);break;case"textarea":Ge(k,O);break;case"select":var pe=k._wrapperState.wasMultiple;k._wrapperState.wasMultiple=!!O.multiple;var ke=O.value;ke!=null?He(k,!!O.multiple,ke,!1):pe!==!!O.multiple&&(O.defaultValue!=null?He(k,!!O.multiple,O.defaultValue,!0):He(k,!!O.multiple,O.multiple?[]:"",!1))}k[co]=O}catch(Te){Pt(r,r.return,Te)}}break;case 6:if(Yr(i,r),nn(r),y&4){if(r.stateNode===null)throw Error(n(162));k=r.stateNode,O=r.memoizedProps;try{k.nodeValue=O}catch(Te){Pt(r,r.return,Te)}}break;case 3:if(Yr(i,r),nn(r),y&4&&l!==null&&l.memoizedState.isDehydrated)try{Qs(i.containerInfo)}catch(Te){Pt(r,r.return,Te)}break;case 4:Yr(i,r),nn(r);break;case 13:Yr(i,r),nn(r),k=r.child,k.flags&8192&&(O=k.memoizedState!==null,k.stateNode.isHidden=O,!O||k.alternate!==null&&k.alternate.memoizedState!==null||(md=Mt())),y&4&&Xm(r);break;case 22:if(me=l!==null&&l.memoizedState!==null,r.mode&1?(er=(le=er)||me,Yr(i,r),er=le):Yr(i,r),nn(r),y&8192){if(le=r.memoizedState!==null,(r.stateNode.isHidden=le)&&!me&&(r.mode&1)!==0)for(Re=r,me=r.child;me!==null;){for(ve=Re=me;Re!==null;){switch(pe=Re,ke=pe.child,pe.tag){case 0:case 11:case 14:case 15:bo(4,pe,pe.return);break;case 1:ds(pe,pe.return);var Pe=pe.stateNode;if(typeof Pe.componentWillUnmount=="function"){y=pe,l=pe.return;try{i=y,Pe.props=i.memoizedProps,Pe.state=i.memoizedState,Pe.componentWillUnmount()}catch(Te){Pt(y,l,Te)}}break;case 5:ds(pe,pe.return);break;case 22:if(pe.memoizedState!==null){Zm(ve);continue}}ke!==null?(ke.return=pe,Re=ke):Zm(ve)}me=me.sibling}e:for(me=null,ve=r;;){if(ve.tag===5){if(me===null){me=ve;try{k=ve.stateNode,le?(O=k.style,typeof O.setProperty=="function"?O.setProperty("display","none","important"):O.display="none"):(q=ve.stateNode,Y=ve.memoizedProps.style,F=Y!=null&&Y.hasOwnProperty("display")?Y.display:null,q.style.display=ht("display",F))}catch(Te){Pt(r,r.return,Te)}}}else if(ve.tag===6){if(me===null)try{ve.stateNode.nodeValue=le?"":ve.memoizedProps}catch(Te){Pt(r,r.return,Te)}}else if((ve.tag!==22&&ve.tag!==23||ve.memoizedState===null||ve===r)&&ve.child!==null){ve.child.return=ve,ve=ve.child;continue}if(ve===r)break e;for(;ve.sibling===null;){if(ve.return===null||ve.return===r)break e;me===ve&&(me=null),ve=ve.return}me===ve&&(me=null),ve.sibling.return=ve.return,ve=ve.sibling}}break;case 19:Yr(i,r),nn(r),y&4&&Xm(r);break;case 21:break;default:Yr(i,r),nn(r)}}function nn(r){var i=r.flags;if(i&2){try{e:{for(var l=r.return;l!==null;){if(Km(l)){var y=l;break e}l=l.return}throw Error(n(160))}switch(y.tag){case 5:var k=y.stateNode;y.flags&32&&(Ye(k,""),y.flags&=-33);var O=qm(r);hd(r,O,k);break;case 3:case 4:var F=y.stateNode.containerInfo,q=qm(r);dd(r,q,F);break;default:throw Error(n(161))}}catch(Y){Pt(r,r.return,Y)}r.flags&=-3}i&4096&&(r.flags&=-4097)}function W1(r,i,l){Re=r,Jm(r)}function Jm(r,i,l){for(var y=(r.mode&1)!==0;Re!==null;){var k=Re,O=k.child;if(k.tag===22&&y){var F=k.memoizedState!==null||gl;if(!F){var q=k.alternate,Y=q!==null&&q.memoizedState!==null||er;q=gl;var le=er;if(gl=F,(er=Y)&&!le)for(Re=k;Re!==null;)F=Re,Y=F.child,F.tag===22&&F.memoizedState!==null?eg(k):Y!==null?(Y.return=F,Re=Y):eg(k);for(;O!==null;)Re=O,Jm(O),O=O.sibling;Re=k,gl=q,er=le}Qm(r)}else(k.subtreeFlags&8772)!==0&&O!==null?(O.return=k,Re=O):Qm(r)}}function Qm(r){for(;Re!==null;){var i=Re;if((i.flags&8772)!==0){var l=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:er||vl(5,i);break;case 1:var y=i.stateNode;if(i.flags&4&&!er)if(l===null)y.componentDidMount();else{var k=i.elementType===i.type?l.memoizedProps:Gr(i.type,l.memoizedProps);y.componentDidUpdate(k,l.memoizedState,y.__reactInternalSnapshotBeforeUpdate)}var O=i.updateQueue;O!==null&&Zp(i,O,y);break;case 3:var F=i.updateQueue;if(F!==null){if(l=null,i.child!==null)switch(i.child.tag){case 5:l=i.child.stateNode;break;case 1:l=i.child.stateNode}Zp(i,F,l)}break;case 5:var q=i.stateNode;if(l===null&&i.flags&4){l=q;var Y=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":Y.autoFocus&&l.focus();break;case"img":Y.src&&(l.src=Y.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var le=i.alternate;if(le!==null){var me=le.memoizedState;if(me!==null){var ve=me.dehydrated;ve!==null&&Qs(ve)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}er||i.flags&512&&ud(i)}catch(pe){Pt(i,i.return,pe)}}if(i===r){Re=null;break}if(l=i.sibling,l!==null){l.return=i.return,Re=l;break}Re=i.return}}function Zm(r){for(;Re!==null;){var i=Re;if(i===r){Re=null;break}var l=i.sibling;if(l!==null){l.return=i.return,Re=l;break}Re=i.return}}function eg(r){for(;Re!==null;){var i=Re;try{switch(i.tag){case 0:case 11:case 15:var l=i.return;try{vl(4,i)}catch(Y){Pt(i,l,Y)}break;case 1:var y=i.stateNode;if(typeof y.componentDidMount=="function"){var k=i.return;try{y.componentDidMount()}catch(Y){Pt(i,k,Y)}}var O=i.return;try{ud(i)}catch(Y){Pt(i,O,Y)}break;case 5:var F=i.return;try{ud(i)}catch(Y){Pt(i,F,Y)}}}catch(Y){Pt(i,i.return,Y)}if(i===r){Re=null;break}var q=i.sibling;if(q!==null){q.return=i.return,Re=q;break}Re=i.return}}var U1=Math.ceil,_l=b.ReactCurrentDispatcher,fd=b.ReactCurrentOwner,Mr=b.ReactCurrentBatchConfig,rt=0,Wt=null,$t=null,Gt=0,Er=0,hs=Hn(0),zt=0,Co=null,Ci=0,yl=0,pd=0,wo=null,mr=null,md=0,fs=1/0,En=null,Sl=!1,gd=null,Gn=null,bl=!1,Xn=null,Cl=0,xo=0,vd=null,wl=-1,xl=0;function cr(){return(rt&6)!==0?Mt():wl!==-1?wl:wl=Mt()}function Yn(r){return(r.mode&1)===0?1:(rt&2)!==0&&Gt!==0?Gt&-Gt:R1.transition!==null?(xl===0&&(xl=qf()),xl):(r=ut,r!==0||(r=window.event,r=r===void 0?16:rp(r.type)),r)}function Jr(r,i,l,y){if(50<xo)throw xo=0,vd=null,Error(n(185));qs(r,l,y),((rt&2)===0||r!==Wt)&&(r===Wt&&((rt&2)===0&&(yl|=l),zt===4&&Jn(r,Gt)),gr(r,y),l===1&&rt===0&&(i.mode&1)===0&&(fs=Mt()+500,Qa&&Un()))}function gr(r,i){var l=r.callbackNode;RS(r,i);var y=Ma(r,r===Wt?Gt:0);if(y===0)l!==null&&Uf(l),r.callbackNode=null,r.callbackPriority=0;else if(i=y&-y,r.callbackPriority!==i){if(l!=null&&Uf(l),i===1)r.tag===0?k1(rg.bind(null,r)):zp(rg.bind(null,r)),C1(function(){(rt&6)===0&&Un()}),l=null;else{switch(Gf(y)){case 1:l=Yc;break;case 4:l=Vf;break;case 16:l=Ta;break;case 536870912:l=Kf;break;default:l=Ta}l=ug(l,tg.bind(null,r))}r.callbackPriority=i,r.callbackNode=l}}function tg(r,i){if(wl=-1,xl=0,(rt&6)!==0)throw Error(n(327));var l=r.callbackNode;if(ps()&&r.callbackNode!==l)return null;var y=Ma(r,r===Wt?Gt:0);if(y===0)return null;if((y&30)!==0||(y&r.expiredLanes)!==0||i)i=El(r,y);else{i=y;var k=rt;rt|=2;var O=ig();(Wt!==r||Gt!==i)&&(En=null,fs=Mt()+500,xi(r,i));do try{q1();break}catch(q){ng(r,q)}while(!0);Du(),_l.current=O,rt=k,$t!==null?i=0:(Wt=null,Gt=0,i=zt)}if(i!==0){if(i===2&&(k=Jc(r),k!==0&&(y=k,i=_d(r,k))),i===1)throw l=Co,xi(r,0),Jn(r,y),gr(r,Mt()),l;if(i===6)Jn(r,y);else{if(k=r.current.alternate,(y&30)===0&&!V1(k)&&(i=El(r,y),i===2&&(O=Jc(r),O!==0&&(y=O,i=_d(r,O))),i===1))throw l=Co,xi(r,0),Jn(r,y),gr(r,Mt()),l;switch(r.finishedWork=k,r.finishedLanes=y,i){case 0:case 1:throw Error(n(345));case 2:Ei(r,mr,En);break;case 3:if(Jn(r,y),(y&130023424)===y&&(i=md+500-Mt(),10<i)){if(Ma(r,0)!==0)break;if(k=r.suspendedLanes,(k&y)!==y){cr(),r.pingedLanes|=r.suspendedLanes&k;break}r.timeoutHandle=xu(Ei.bind(null,r,mr,En),i);break}Ei(r,mr,En);break;case 4:if(Jn(r,y),(y&4194240)===y)break;for(i=r.eventTimes,k=-1;0<y;){var F=31-Vr(y);O=1<<F,F=i[F],F>k&&(k=F),y&=~O}if(y=k,y=Mt()-y,y=(120>y?120:480>y?480:1080>y?1080:1920>y?1920:3e3>y?3e3:4320>y?4320:1960*U1(y/1960))-y,10<y){r.timeoutHandle=xu(Ei.bind(null,r,mr,En),y);break}Ei(r,mr,En);break;case 5:Ei(r,mr,En);break;default:throw Error(n(329))}}}return gr(r,Mt()),r.callbackNode===l?tg.bind(null,r):null}function _d(r,i){var l=wo;return r.current.memoizedState.isDehydrated&&(xi(r,i).flags|=256),r=El(r,i),r!==2&&(i=mr,mr=l,i!==null&&yd(i)),r}function yd(r){mr===null?mr=r:mr.push.apply(mr,r)}function V1(r){for(var i=r;;){if(i.flags&16384){var l=i.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var y=0;y<l.length;y++){var k=l[y],O=k.getSnapshot;k=k.value;try{if(!Kr(O(),k))return!1}catch{return!1}}}if(l=i.child,i.subtreeFlags&16384&&l!==null)l.return=i,i=l;else{if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Jn(r,i){for(i&=~pd,i&=~yl,r.suspendedLanes|=i,r.pingedLanes&=~i,r=r.expirationTimes;0<i;){var l=31-Vr(i),y=1<<l;r[l]=-1,i&=~y}}function rg(r){if((rt&6)!==0)throw Error(n(327));ps();var i=Ma(r,0);if((i&1)===0)return gr(r,Mt()),null;var l=El(r,i);if(r.tag!==0&&l===2){var y=Jc(r);y!==0&&(i=y,l=_d(r,y))}if(l===1)throw l=Co,xi(r,0),Jn(r,i),gr(r,Mt()),l;if(l===6)throw Error(n(345));return r.finishedWork=r.current.alternate,r.finishedLanes=i,Ei(r,mr,En),gr(r,Mt()),null}function Sd(r,i){var l=rt;rt|=1;try{return r(i)}finally{rt=l,rt===0&&(fs=Mt()+500,Qa&&Un())}}function wi(r){Xn!==null&&Xn.tag===0&&(rt&6)===0&&ps();var i=rt;rt|=1;var l=Mr.transition,y=ut;try{if(Mr.transition=null,ut=1,r)return r()}finally{ut=y,Mr.transition=l,rt=i,(rt&6)===0&&Un()}}function bd(){Er=hs.current,_t(hs)}function xi(r,i){r.finishedWork=null,r.finishedLanes=0;var l=r.timeoutHandle;if(l!==-1&&(r.timeoutHandle=-1,b1(l)),$t!==null)for(l=$t.return;l!==null;){var y=l;switch(Lu(y),y.tag){case 1:y=y.type.childContextTypes,y!=null&&Ya();break;case 3:cs(),_t(hr),_t(Jt),Wu();break;case 5:zu(y);break;case 4:cs();break;case 13:_t(Et);break;case 19:_t(Et);break;case 10:Bu(y.type._context);break;case 22:case 23:bd()}l=l.return}if(Wt=r,$t=r=Qn(r.current,null),Gt=Er=i,zt=0,Co=null,pd=yl=Ci=0,mr=wo=null,yi!==null){for(i=0;i<yi.length;i++)if(l=yi[i],y=l.interleaved,y!==null){l.interleaved=null;var k=y.next,O=l.pending;if(O!==null){var F=O.next;O.next=k,y.next=F}l.pending=y}yi=null}return r}function ng(r,i){do{var l=$t;try{if(Du(),ll.current=hl,cl){for(var y=kt.memoizedState;y!==null;){var k=y.queue;k!==null&&(k.pending=null),y=y.next}cl=!1}if(bi=0,Ht=Ft=kt=null,go=!1,vo=0,fd.current=null,l===null||l.return===null){zt=1,Co=i,$t=null;break}e:{var O=r,F=l.return,q=l,Y=i;if(i=Gt,q.flags|=32768,Y!==null&&typeof Y=="object"&&typeof Y.then=="function"){var le=Y,me=q,ve=me.tag;if((me.mode&1)===0&&(ve===0||ve===11||ve===15)){var pe=me.alternate;pe?(me.updateQueue=pe.updateQueue,me.memoizedState=pe.memoizedState,me.lanes=pe.lanes):(me.updateQueue=null,me.memoizedState=null)}var ke=Pm(F);if(ke!==null){ke.flags&=-257,Tm(ke,F,q,O,i),ke.mode&1&&Rm(O,le,i),i=ke,Y=le;var Pe=i.updateQueue;if(Pe===null){var Te=new Set;Te.add(Y),i.updateQueue=Te}else Pe.add(Y);break e}else{if((i&1)===0){Rm(O,le,i),Cd();break e}Y=Error(n(426))}}else if(yt&&q.mode&1){var It=Pm(F);if(It!==null){(It.flags&65536)===0&&(It.flags|=256),Tm(It,F,q,O,i),Mu(us(Y,q));break e}}O=Y=us(Y,q),zt!==4&&(zt=2),wo===null?wo=[O]:wo.push(O),O=F;do{switch(O.tag){case 3:O.flags|=65536,i&=-i,O.lanes|=i;var ie=Em(O,Y,i);Qp(O,ie);break e;case 1:q=Y;var te=O.type,ae=O.stateNode;if((O.flags&128)===0&&(typeof te.getDerivedStateFromError=="function"||ae!==null&&typeof ae.componentDidCatch=="function"&&(Gn===null||!Gn.has(ae)))){O.flags|=65536,i&=-i,O.lanes|=i;var Se=km(O,q,i);Qp(O,Se);break e}}O=O.return}while(O!==null)}og(l)}catch(Le){i=Le,$t===l&&l!==null&&($t=l=l.return);continue}break}while(!0)}function ig(){var r=_l.current;return _l.current=hl,r===null?hl:r}function Cd(){(zt===0||zt===3||zt===2)&&(zt=4),Wt===null||(Ci&268435455)===0&&(yl&268435455)===0||Jn(Wt,Gt)}function El(r,i){var l=rt;rt|=2;var y=ig();(Wt!==r||Gt!==i)&&(En=null,xi(r,i));do try{K1();break}catch(k){ng(r,k)}while(!0);if(Du(),rt=l,_l.current=y,$t!==null)throw Error(n(261));return Wt=null,Gt=0,zt}function K1(){for(;$t!==null;)sg($t)}function q1(){for(;$t!==null&&!_S();)sg($t)}function sg(r){var i=cg(r.alternate,r,Er);r.memoizedProps=r.pendingProps,i===null?og(r):$t=i,fd.current=null}function og(r){var i=r;do{var l=i.alternate;if(r=i.return,(i.flags&32768)===0){if(l=j1(l,i,Er),l!==null){$t=l;return}}else{if(l=F1(l,i),l!==null){l.flags&=32767,$t=l;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{zt=6,$t=null;return}}if(i=i.sibling,i!==null){$t=i;return}$t=i=r}while(i!==null);zt===0&&(zt=5)}function Ei(r,i,l){var y=ut,k=Mr.transition;try{Mr.transition=null,ut=1,G1(r,i,l,y)}finally{Mr.transition=k,ut=y}return null}function G1(r,i,l,y){do ps();while(Xn!==null);if((rt&6)!==0)throw Error(n(327));l=r.finishedWork;var k=r.finishedLanes;if(l===null)return null;if(r.finishedWork=null,r.finishedLanes=0,l===r.current)throw Error(n(177));r.callbackNode=null,r.callbackPriority=0;var O=l.lanes|l.childLanes;if(PS(r,O),r===Wt&&($t=Wt=null,Gt=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||bl||(bl=!0,ug(Ta,function(){return ps(),null})),O=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||O){O=Mr.transition,Mr.transition=null;var F=ut;ut=1;var q=rt;rt|=4,fd.current=null,H1(r,l),Ym(l,r),p1(Cu),Ba=!!bu,Cu=bu=null,r.current=l,W1(l),yS(),rt=q,ut=F,Mr.transition=O}else r.current=l;if(bl&&(bl=!1,Xn=r,Cl=k),O=r.pendingLanes,O===0&&(Gn=null),CS(l.stateNode),gr(r,Mt()),i!==null)for(y=r.onRecoverableError,l=0;l<i.length;l++)k=i[l],y(k.value,{componentStack:k.stack,digest:k.digest});if(Sl)throw Sl=!1,r=gd,gd=null,r;return(Cl&1)!==0&&r.tag!==0&&ps(),O=r.pendingLanes,(O&1)!==0?r===vd?xo++:(xo=0,vd=r):xo=0,Un(),null}function ps(){if(Xn!==null){var r=Gf(Cl),i=Mr.transition,l=ut;try{if(Mr.transition=null,ut=16>r?16:r,Xn===null)var y=!1;else{if(r=Xn,Xn=null,Cl=0,(rt&6)!==0)throw Error(n(331));var k=rt;for(rt|=4,Re=r.current;Re!==null;){var O=Re,F=O.child;if((Re.flags&16)!==0){var q=O.deletions;if(q!==null){for(var Y=0;Y<q.length;Y++){var le=q[Y];for(Re=le;Re!==null;){var me=Re;switch(me.tag){case 0:case 11:case 15:bo(8,me,O)}var ve=me.child;if(ve!==null)ve.return=me,Re=ve;else for(;Re!==null;){me=Re;var pe=me.sibling,ke=me.return;if(Vm(me),me===le){Re=null;break}if(pe!==null){pe.return=ke,Re=pe;break}Re=ke}}}var Pe=O.alternate;if(Pe!==null){var Te=Pe.child;if(Te!==null){Pe.child=null;do{var It=Te.sibling;Te.sibling=null,Te=It}while(Te!==null)}}Re=O}}if((O.subtreeFlags&2064)!==0&&F!==null)F.return=O,Re=F;else e:for(;Re!==null;){if(O=Re,(O.flags&2048)!==0)switch(O.tag){case 0:case 11:case 15:bo(9,O,O.return)}var ie=O.sibling;if(ie!==null){ie.return=O.return,Re=ie;break e}Re=O.return}}var te=r.current;for(Re=te;Re!==null;){F=Re;var ae=F.child;if((F.subtreeFlags&2064)!==0&&ae!==null)ae.return=F,Re=ae;else e:for(F=te;Re!==null;){if(q=Re,(q.flags&2048)!==0)try{switch(q.tag){case 0:case 11:case 15:vl(9,q)}}catch(Le){Pt(q,q.return,Le)}if(q===F){Re=null;break e}var Se=q.sibling;if(Se!==null){Se.return=q.return,Re=Se;break e}Re=q.return}}if(rt=k,Un(),Zr&&typeof Zr.onPostCommitFiberRoot=="function")try{Zr.onPostCommitFiberRoot(La,r)}catch{}y=!0}return y}finally{ut=l,Mr.transition=i}}return!1}function ag(r,i,l){i=us(l,i),i=Em(r,i,1),r=Kn(r,i,1),i=cr(),r!==null&&(qs(r,1,i),gr(r,i))}function Pt(r,i,l){if(r.tag===3)ag(r,r,l);else for(;i!==null;){if(i.tag===3){ag(i,r,l);break}else if(i.tag===1){var y=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof y.componentDidCatch=="function"&&(Gn===null||!Gn.has(y))){r=us(l,r),r=km(i,r,1),i=Kn(i,r,1),r=cr(),i!==null&&(qs(i,1,r),gr(i,r));break}}i=i.return}}function X1(r,i,l){var y=r.pingCache;y!==null&&y.delete(i),i=cr(),r.pingedLanes|=r.suspendedLanes&l,Wt===r&&(Gt&l)===l&&(zt===4||zt===3&&(Gt&130023424)===Gt&&500>Mt()-md?xi(r,0):pd|=l),gr(r,i)}function lg(r,i){i===0&&((r.mode&1)===0?i=1:(i=Aa,Aa<<=1,(Aa&130023424)===0&&(Aa=4194304)));var l=cr();r=Cn(r,i),r!==null&&(qs(r,i,l),gr(r,l))}function Y1(r){var i=r.memoizedState,l=0;i!==null&&(l=i.retryLane),lg(r,l)}function J1(r,i){var l=0;switch(r.tag){case 13:var y=r.stateNode,k=r.memoizedState;k!==null&&(l=k.retryLane);break;case 19:y=r.stateNode;break;default:throw Error(n(314))}y!==null&&y.delete(i),lg(r,l)}var cg;cg=function(r,i,l){if(r!==null)if(r.memoizedProps!==i.pendingProps||hr.current)pr=!0;else{if((r.lanes&l)===0&&(i.flags&128)===0)return pr=!1,N1(r,i,l);pr=(r.flags&131072)!==0}else pr=!1,yt&&(i.flags&1048576)!==0&&Hp(i,el,i.index);switch(i.lanes=0,i.tag){case 2:var y=i.type;ml(r,i),r=i.pendingProps;var k=rs(i,Jt.current);ls(i,l),k=Ku(null,i,y,r,k,l);var O=qu();return i.flags|=1,typeof k=="object"&&k!==null&&typeof k.render=="function"&&k.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,fr(y)?(O=!0,Ja(i)):O=!1,i.memoizedState=k.state!==null&&k.state!==void 0?k.state:null,ju(i),k.updater=fl,i.stateNode=k,k._reactInternals=i,Zu(i,y,r,l),i=nd(null,i,y,!0,O,l)):(i.tag=0,yt&&O&&Tu(i),lr(null,i,k,l),i=i.child),i;case 16:y=i.elementType;e:{switch(ml(r,i),r=i.pendingProps,k=y._init,y=k(y._payload),i.type=y,k=i.tag=Z1(y),r=Gr(y,r),k){case 0:i=rd(null,i,y,r,l);break e;case 1:i=Dm(null,i,y,r,l);break e;case 11:i=Lm(null,i,y,r,l);break e;case 14:i=Om(null,i,y,Gr(y.type,r),l);break e}throw Error(n(306,y,""))}return i;case 0:return y=i.type,k=i.pendingProps,k=i.elementType===y?k:Gr(y,k),rd(r,i,y,k,l);case 1:return y=i.type,k=i.pendingProps,k=i.elementType===y?k:Gr(y,k),Dm(r,i,y,k,l);case 3:e:{if(Bm(i),r===null)throw Error(n(387));y=i.pendingProps,O=i.memoizedState,k=O.element,Jp(r,i),ol(i,y,null,l);var F=i.memoizedState;if(y=F.element,O.isDehydrated)if(O={element:y,isDehydrated:!1,cache:F.cache,pendingSuspenseBoundaries:F.pendingSuspenseBoundaries,transitions:F.transitions},i.updateQueue.baseState=O,i.memoizedState=O,i.flags&256){k=us(Error(n(423)),i),i=$m(r,i,y,l,k);break e}else if(y!==k){k=us(Error(n(424)),i),i=$m(r,i,y,l,k);break e}else for(xr=zn(i.stateNode.containerInfo.firstChild),wr=i,yt=!0,qr=null,l=Xp(i,null,y,l),i.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(ss(),y===k){i=xn(r,i,l);break e}lr(r,i,y,l)}i=i.child}return i;case 5:return em(i),r===null&&Au(i),y=i.type,k=i.pendingProps,O=r!==null?r.memoizedProps:null,F=k.children,wu(y,k)?F=null:O!==null&&wu(y,O)&&(i.flags|=32),Im(r,i),lr(r,i,F,l),i.child;case 6:return r===null&&Au(i),null;case 13:return Nm(r,i,l);case 4:return Fu(i,i.stateNode.containerInfo),y=i.pendingProps,r===null?i.child=os(i,null,y,l):lr(r,i,y,l),i.child;case 11:return y=i.type,k=i.pendingProps,k=i.elementType===y?k:Gr(y,k),Lm(r,i,y,k,l);case 7:return lr(r,i,i.pendingProps,l),i.child;case 8:return lr(r,i,i.pendingProps.children,l),i.child;case 12:return lr(r,i,i.pendingProps.children,l),i.child;case 10:e:{if(y=i.type._context,k=i.pendingProps,O=i.memoizedProps,F=k.value,gt(nl,y._currentValue),y._currentValue=F,O!==null)if(Kr(O.value,F)){if(O.children===k.children&&!hr.current){i=xn(r,i,l);break e}}else for(O=i.child,O!==null&&(O.return=i);O!==null;){var q=O.dependencies;if(q!==null){F=O.child;for(var Y=q.firstContext;Y!==null;){if(Y.context===y){if(O.tag===1){Y=wn(-1,l&-l),Y.tag=2;var le=O.updateQueue;if(le!==null){le=le.shared;var me=le.pending;me===null?Y.next=Y:(Y.next=me.next,me.next=Y),le.pending=Y}}O.lanes|=l,Y=O.alternate,Y!==null&&(Y.lanes|=l),$u(O.return,l,i),q.lanes|=l;break}Y=Y.next}}else if(O.tag===10)F=O.type===i.type?null:O.child;else if(O.tag===18){if(F=O.return,F===null)throw Error(n(341));F.lanes|=l,q=F.alternate,q!==null&&(q.lanes|=l),$u(F,l,i),F=O.sibling}else F=O.child;if(F!==null)F.return=O;else for(F=O;F!==null;){if(F===i){F=null;break}if(O=F.sibling,O!==null){O.return=F.return,F=O;break}F=F.return}O=F}lr(r,i,k.children,l),i=i.child}return i;case 9:return k=i.type,y=i.pendingProps.children,ls(i,l),k=Or(k),y=y(k),i.flags|=1,lr(r,i,y,l),i.child;case 14:return y=i.type,k=Gr(y,i.pendingProps),k=Gr(y.type,k),Om(r,i,y,k,l);case 15:return Am(r,i,i.type,i.pendingProps,l);case 17:return y=i.type,k=i.pendingProps,k=i.elementType===y?k:Gr(y,k),ml(r,i),i.tag=1,fr(y)?(r=!0,Ja(i)):r=!1,ls(i,l),wm(i,y,k),Zu(i,y,k,l),nd(null,i,y,!0,r,l);case 19:return Fm(r,i,l);case 22:return Mm(r,i,l)}throw Error(n(156,i.tag))};function ug(r,i){return Wf(r,i)}function Q1(r,i,l,y){this.tag=r,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=y,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ir(r,i,l,y){return new Q1(r,i,l,y)}function wd(r){return r=r.prototype,!(!r||!r.isReactComponent)}function Z1(r){if(typeof r=="function")return wd(r)?1:0;if(r!=null){if(r=r.$$typeof,r===H)return 11;if(r===K)return 14}return 2}function Qn(r,i){var l=r.alternate;return l===null?(l=Ir(r.tag,i,r.key,r.mode),l.elementType=r.elementType,l.type=r.type,l.stateNode=r.stateNode,l.alternate=r,r.alternate=l):(l.pendingProps=i,l.type=r.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=r.flags&14680064,l.childLanes=r.childLanes,l.lanes=r.lanes,l.child=r.child,l.memoizedProps=r.memoizedProps,l.memoizedState=r.memoizedState,l.updateQueue=r.updateQueue,i=r.dependencies,l.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},l.sibling=r.sibling,l.index=r.index,l.ref=r.ref,l}function kl(r,i,l,y,k,O){var F=2;if(y=r,typeof r=="function")wd(r)&&(F=1);else if(typeof r=="string")F=5;else e:switch(r){case L:return ki(l.children,k,O,i);case R:F=8,k|=8;break;case A:return r=Ir(12,l,i,k|2),r.elementType=A,r.lanes=O,r;case N:return r=Ir(13,l,i,k),r.elementType=N,r.lanes=O,r;case V:return r=Ir(19,l,i,k),r.elementType=V,r.lanes=O,r;case Z:return Rl(l,k,O,i);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case T:F=10;break e;case $:F=9;break e;case H:F=11;break e;case K:F=14;break e;case G:F=16,y=null;break e}throw Error(n(130,r==null?r:typeof r,""))}return i=Ir(F,l,i,k),i.elementType=r,i.type=y,i.lanes=O,i}function ki(r,i,l,y){return r=Ir(7,r,y,i),r.lanes=l,r}function Rl(r,i,l,y){return r=Ir(22,r,y,i),r.elementType=Z,r.lanes=l,r.stateNode={isHidden:!1},r}function xd(r,i,l){return r=Ir(6,r,null,i),r.lanes=l,r}function Ed(r,i,l){return i=Ir(4,r.children!==null?r.children:[],r.key,i),i.lanes=l,i.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},i}function eb(r,i,l,y,k){this.tag=i,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Qc(0),this.expirationTimes=Qc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qc(0),this.identifierPrefix=y,this.onRecoverableError=k,this.mutableSourceEagerHydrationData=null}function kd(r,i,l,y,k,O,F,q,Y){return r=new eb(r,i,l,q,Y),i===1?(i=1,O===!0&&(i|=8)):i=0,O=Ir(3,null,null,i),r.current=O,O.stateNode=r,O.memoizedState={element:y,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},ju(O),r}function tb(r,i,l){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:P,key:y==null?null:""+y,children:r,containerInfo:i,implementation:l}}function dg(r){if(!r)return Wn;r=r._reactInternals;e:{if(pi(r)!==r||r.tag!==1)throw Error(n(170));var i=r;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(fr(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(n(171))}if(r.tag===1){var l=r.type;if(fr(l))return jp(r,l,i)}return i}function hg(r,i,l,y,k,O,F,q,Y){return r=kd(l,y,!0,r,k,O,F,q,Y),r.context=dg(null),l=r.current,y=cr(),k=Yn(l),O=wn(y,k),O.callback=i??null,Kn(l,O,k),r.current.lanes=k,qs(r,k,y),gr(r,y),r}function Pl(r,i,l,y){var k=i.current,O=cr(),F=Yn(k);return l=dg(l),i.context===null?i.context=l:i.pendingContext=l,i=wn(O,F),i.payload={element:r},y=y===void 0?null:y,y!==null&&(i.callback=y),r=Kn(k,i,F),r!==null&&(Jr(r,k,F,O),sl(r,k,F)),F}function Tl(r){if(r=r.current,!r.child)return null;switch(r.child.tag){case 5:return r.child.stateNode;default:return r.child.stateNode}}function fg(r,i){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var l=r.retryLane;r.retryLane=l!==0&&l<i?l:i}}function Rd(r,i){fg(r,i),(r=r.alternate)&&fg(r,i)}function rb(){return null}var pg=typeof reportError=="function"?reportError:function(r){console.error(r)};function Pd(r){this._internalRoot=r}Ll.prototype.render=Pd.prototype.render=function(r){var i=this._internalRoot;if(i===null)throw Error(n(409));Pl(r,i,null,null)},Ll.prototype.unmount=Pd.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var i=r.containerInfo;wi(function(){Pl(null,r,null,null)}),i[_n]=null}};function Ll(r){this._internalRoot=r}Ll.prototype.unstable_scheduleHydration=function(r){if(r){var i=Jf();r={blockedOn:null,target:r,priority:i};for(var l=0;l<Nn.length&&i!==0&&i<Nn[l].priority;l++);Nn.splice(l,0,r),l===0&&ep(r)}};function Td(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function Ol(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function mg(){}function nb(r,i,l,y,k){if(k){if(typeof y=="function"){var O=y;y=function(){var le=Tl(F);O.call(le)}}var F=hg(i,y,r,0,null,!1,!1,"",mg);return r._reactRootContainer=F,r[_n]=F.current,ao(r.nodeType===8?r.parentNode:r),wi(),F}for(;k=r.lastChild;)r.removeChild(k);if(typeof y=="function"){var q=y;y=function(){var le=Tl(Y);q.call(le)}}var Y=kd(r,0,!1,null,null,!1,!1,"",mg);return r._reactRootContainer=Y,r[_n]=Y.current,ao(r.nodeType===8?r.parentNode:r),wi(function(){Pl(i,Y,l,y)}),Y}function Al(r,i,l,y,k){var O=l._reactRootContainer;if(O){var F=O;if(typeof k=="function"){var q=k;k=function(){var Y=Tl(F);q.call(Y)}}Pl(i,F,r,k)}else F=nb(l,i,r,k,y);return Tl(F)}Xf=function(r){switch(r.tag){case 3:var i=r.stateNode;if(i.current.memoizedState.isDehydrated){var l=Ks(i.pendingLanes);l!==0&&(Zc(i,l|1),gr(i,Mt()),(rt&6)===0&&(fs=Mt()+500,Un()))}break;case 13:wi(function(){var y=Cn(r,1);if(y!==null){var k=cr();Jr(y,r,1,k)}}),Rd(r,1)}},eu=function(r){if(r.tag===13){var i=Cn(r,134217728);if(i!==null){var l=cr();Jr(i,r,134217728,l)}Rd(r,134217728)}},Yf=function(r){if(r.tag===13){var i=Yn(r),l=Cn(r,i);if(l!==null){var y=cr();Jr(l,r,i,y)}Rd(r,i)}},Jf=function(){return ut},Qf=function(r,i){var l=ut;try{return ut=r,i()}finally{ut=l}},zs=function(r,i,l){switch(i){case"input":if(be(r,l),i=l.name,l.type==="radio"&&i!=null){for(l=r;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<l.length;i++){var y=l[i];if(y!==r&&y.form===r.form){var k=Xa(y);if(!k)throw Error(n(90));ce(y),be(y,k)}}}break;case"textarea":Ge(r,l);break;case"select":i=l.value,i!=null&&He(r,!!l.multiple,i,!1)}},ka=Sd,Ke=wi;var ib={usingClientEntryPoint:!1,Events:[uo,es,Xa,xa,Ea,Sd]},Eo={findFiberByHostInstance:mi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},sb={bundleType:Eo.bundleType,version:Eo.version,rendererPackageName:Eo.rendererPackageName,rendererConfig:Eo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:b.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=zf(r),r===null?null:r.stateNode},findFiberByHostInstance:Eo.findFiberByHostInstance||rb,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ml=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ml.isDisabled&&Ml.supportsFiber)try{La=Ml.inject(sb),Zr=Ml}catch{}}return vr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ib,vr.createPortal=function(r,i){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Td(i))throw Error(n(200));return tb(r,i,null,l)},vr.createRoot=function(r,i){if(!Td(r))throw Error(n(299));var l=!1,y="",k=pg;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(y=i.identifierPrefix),i.onRecoverableError!==void 0&&(k=i.onRecoverableError)),i=kd(r,1,!1,null,null,l,!1,y,k),r[_n]=i.current,ao(r.nodeType===8?r.parentNode:r),new Pd(i)},vr.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var i=r._reactInternals;if(i===void 0)throw typeof r.render=="function"?Error(n(188)):(r=Object.keys(r).join(","),Error(n(268,r)));return r=zf(i),r=r===null?null:r.stateNode,r},vr.flushSync=function(r){return wi(r)},vr.hydrate=function(r,i,l){if(!Ol(i))throw Error(n(200));return Al(null,r,i,!0,l)},vr.hydrateRoot=function(r,i,l){if(!Td(r))throw Error(n(405));var y=l!=null&&l.hydratedSources||null,k=!1,O="",F=pg;if(l!=null&&(l.unstable_strictMode===!0&&(k=!0),l.identifierPrefix!==void 0&&(O=l.identifierPrefix),l.onRecoverableError!==void 0&&(F=l.onRecoverableError)),i=hg(i,null,r,1,l??null,k,!1,O,F),r[_n]=i.current,ao(r),y)for(r=0;r<y.length;r++)l=y[r],k=l._getVersion,k=k(l._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[l,k]:i.mutableSourceEagerHydrationData.push(l,k);return new Ll(i)},vr.render=function(r,i,l){if(!Ol(i))throw Error(n(200));return Al(null,r,i,!1,l)},vr.unmountComponentAtNode=function(r){if(!Ol(r))throw Error(n(40));return r._reactRootContainer?(wi(function(){Al(null,null,r,!1,function(){r._reactRootContainer=null,r[_n]=null})}),!0):!1},vr.unstable_batchedUpdates=Sd,vr.unstable_renderSubtreeIntoContainer=function(r,i,l,y){if(!Ol(l))throw Error(n(200));if(r==null||r._reactInternals===void 0)throw Error(n(38));return Al(r,i,l,!1,y)},vr.version="18.3.1-next-f1338f8080-20240426",vr}var wg;function N_(){if(wg)return Ad.exports;wg=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(),Ad.exports=mb(),Ad.exports}var xg;function gb(){if(xg)return Il;xg=1;var e=N_();return Il.createRoot=e.createRoot,Il.hydrateRoot=e.hydrateRoot,Il}var vb=gb();const _b=Bh(vb);var j_=N_();const Dl=Bh(j_);/**
|
|
41
|
+
* @remix-run/router v1.23.4
|
|
42
|
+
*
|
|
43
|
+
* Copyright (c) Remix Software Inc.
|
|
44
|
+
*
|
|
45
|
+
* This source code is licensed under the MIT license found in the
|
|
46
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
47
|
+
*
|
|
48
|
+
* @license MIT
|
|
49
|
+
*/function qo(){return qo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)({}).hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},qo.apply(null,arguments)}var ni;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ni||(ni={}));const Eg="popstate";function yb(e){e===void 0&&(e={});function t(s,a){let{pathname:u,search:d,hash:o}=s.location;return sh("",{pathname:u,search:d,hash:o},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(s,a){return typeof a=="string"?a:z_(a)}return bb(t,n,null,e)}function jt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function F_(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Sb(){return Math.random().toString(36).substr(2,8)}function kg(e,t){return{usr:e.state,key:e.key,idx:t}}function sh(e,t,n,s){return n===void 0&&(n=null),qo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ds(t):t,{state:n,key:t&&t.key||s||Sb()})}function z_(e){let{pathname:t="/",search:n="",hash:s=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),s&&s!=="#"&&(t+=s.charAt(0)==="#"?s:"#"+s),t}function Ds(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let s=e.indexOf("?");s>=0&&(t.search=e.substr(s),e=e.substr(0,s)),e&&(t.pathname=e)}return t}function bb(e,t,n,s){s===void 0&&(s={});let{window:a=document.defaultView,v5Compat:u=!1}=s,d=a.history,o=ni.Pop,c=null,v=_();v==null&&(v=0,d.replaceState(qo({},d.state,{idx:v}),""));function _(){return(d.state||{idx:null}).idx}function m(){o=ni.Pop;let g=_(),f=g==null?null:g-v;v=g,c&&c({action:o,location:S.location,delta:f})}function C(g,f){o=ni.Push;let p=sh(S.location,g,f);v=_()+1;let h=kg(p,v),b=S.createHref(p);try{d.pushState(h,"",b)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;a.location.assign(b)}u&&c&&c({action:o,location:S.location,delta:1})}function x(g,f){o=ni.Replace;let p=sh(S.location,g,f);v=_();let h=kg(p,v),b=S.createHref(p);d.replaceState(h,"",b),u&&c&&c({action:o,location:S.location,delta:0})}function w(g){let f=a.location.origin!=="null"?a.location.origin:a.location.href,p=typeof g=="string"?g:z_(g);return p=p.replace(/ $/,"%20"),jt(f,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,f)}let S={get action(){return o},get location(){return e(a,d)},listen(g){if(c)throw new Error("A history only accepts one active listener");return a.addEventListener(Eg,m),c=g,()=>{a.removeEventListener(Eg,m),c=null}},createHref(g){return t(a,g)},createURL:w,encodeLocation(g){let f=w(g);return{pathname:f.pathname,search:f.search,hash:f.hash}},push:C,replace:x,go(g){return d.go(g)}};return S}var Rg;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Rg||(Rg={}));function Cb(e,t,n){return n===void 0&&(n="/"),wb(e,t,n)}function wb(e,t,n,s){let a=typeof t=="string"?Ds(t):t,u=U_(a.pathname||"/",n);if(u==null)return null;let d=H_(e);xb(d);let o=null,c=Bb(u);for(let v=0;o==null&&v<d.length;++v)o=Mb(d[v],c);return o}function H_(e,t,n,s){t===void 0&&(t=[]),n===void 0&&(n=[]),s===void 0&&(s="");let a=(u,d,o)=>{let c={relativePath:o===void 0?u.path||"":o,caseSensitive:u.caseSensitive===!0,childrenIndex:d,route:u};c.relativePath.startsWith("/")&&(jt(c.relativePath.startsWith(s),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+s+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(s.length));let v=Di([s,c.relativePath]),_=n.concat(c);u.children&&u.children.length>0&&(jt(u.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+v+'".')),H_(u.children,t,_,v)),!(u.path==null&&!u.index)&&t.push({path:v,score:Ob(v,u.index),routesMeta:_})};return e.forEach((u,d)=>{var o;if(u.path===""||!((o=u.path)!=null&&o.includes("?")))a(u,d);else for(let c of W_(u.path))a(u,d,c)}),t}function W_(e){let t=e.split("/");if(t.length===0)return[];let[n,...s]=t,a=n.endsWith("?"),u=n.replace(/\?$/,"");if(s.length===0)return a?[u,""]:[u];let d=W_(s.join("/")),o=[];return o.push(...d.map(c=>c===""?u:[u,c].join("/"))),a&&o.push(...d),o.map(c=>e.startsWith("/")&&c===""?"/":c)}function xb(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Ab(t.routesMeta.map(s=>s.childrenIndex),n.routesMeta.map(s=>s.childrenIndex)))}const Eb=/^:[\w-]+$/,kb=3,Rb=2,Pb=1,Tb=10,Lb=-2,Pg=e=>e==="*";function Ob(e,t){let n=e.split("/"),s=n.length;return n.some(Pg)&&(s+=Lb),t&&(s+=Rb),n.filter(a=>!Pg(a)).reduce((a,u)=>a+(Eb.test(u)?kb:u===""?Pb:Tb),s)}function Ab(e,t){return e.length===t.length&&e.slice(0,-1).every((s,a)=>s===t[a])?e[e.length-1]-t[t.length-1]:0}function Mb(e,t,n){let{routesMeta:s}=e,a={},u="/",d=[];for(let o=0;o<s.length;++o){let c=s[o],v=o===s.length-1,_=u==="/"?t:t.slice(u.length)||"/",m=Ib({path:c.relativePath,caseSensitive:c.caseSensitive,end:v},_),C=c.route;if(!m)return null;Object.assign(a,m.params),d.push({params:a,pathname:Di([u,m.pathname]),pathnameBase:jb(Di([u,m.pathnameBase])),route:C}),m.pathnameBase!=="/"&&(u=Di([u,m.pathnameBase]))}return d}function Ib(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,s]=Db(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let u=a[0],d=u.replace(/(.)\/+$/,"$1"),o=a.slice(1);return{params:s.reduce((v,_,m)=>{let{paramName:C,isOptional:x}=_;if(C==="*"){let S=o[m]||"";d=u.slice(0,u.length-S.length).replace(/(.)\/+$/,"$1")}const w=o[m];return x&&!w?v[C]=void 0:v[C]=(w||"").replace(/%2F/g,"/"),v},{}),pathname:u,pathnameBase:d,pattern:e}}function Db(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),F_(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 s=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,o,c)=>(s.push({paramName:o,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(s.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),s]}function Bb(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return F_(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function U_(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,s=e.charAt(n);return s&&s!=="/"?null:e.slice(n)||"/"}function $b(e,t){t===void 0&&(t="/");let{pathname:n,search:s="",hash:a=""}=typeof e=="string"?Ds(e):e,u;return n?(n=q_(n),n.startsWith("/")?u=Tg(n.substring(1),"/"):u=Tg(n,t)):u=t,{pathname:u,search:Fb(s),hash:zb(a)}}function Tg(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function Dd(e,t,n,s){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(s)+"]. 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 Nb(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function V_(e,t){let n=Nb(e);return t?n.map((s,a)=>a===n.length-1?s.pathname:s.pathnameBase):n.map(s=>s.pathnameBase)}function K_(e,t,n,s){s===void 0&&(s=!1);let a;typeof e=="string"?a=Ds(e):(a=qo({},e),jt(!a.pathname||!a.pathname.includes("?"),Dd("?","pathname","search",a)),jt(!a.pathname||!a.pathname.includes("#"),Dd("#","pathname","hash",a)),jt(!a.search||!a.search.includes("#"),Dd("#","search","hash",a)));let u=e===""||a.pathname==="",d=u?"/":a.pathname,o;if(d==null)o=n;else{let m=t.length-1;if(!s&&d.startsWith("..")){let C=d.split("/");for(;C[0]==="..";)C.shift(),m-=1;a.pathname=C.join("/")}o=m>=0?t[m]:"/"}let c=$b(a,o),v=d&&d!=="/"&&d.endsWith("/"),_=(u||d===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(v||_)&&(c.pathname+="/"),c}const q_=e=>e.replace(/\/\/+/g,"/"),Di=e=>q_(e.join("/")),jb=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Fb=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,zb=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Hb(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const G_=["post","put","patch","delete"];new Set(G_);const Wb=["get",...G_];new Set(Wb);/**
|
|
50
|
+
* React Router v6.30.6
|
|
51
|
+
*
|
|
52
|
+
* Copyright (c) Remix Software Inc.
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the MIT license found in the
|
|
55
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
+
*
|
|
57
|
+
* @license MIT
|
|
58
|
+
*/function Go(){return Go=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)({}).hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Go.apply(null,arguments)}const Nh=D.createContext(null),Ub=D.createContext(null),la=D.createContext(null),Sc=D.createContext(null),ci=D.createContext({outlet:null,matches:[],isDataRoute:!1}),X_=D.createContext(null);function ca(){return D.useContext(Sc)!=null}function jh(){return ca()||jt(!1),D.useContext(Sc).location}function Y_(e){D.useContext(la).static||D.useLayoutEffect(e)}function Fh(){let{isDataRoute:e}=D.useContext(ci);return e?nC():Vb()}function Vb(){ca()||jt(!1);let e=D.useContext(Nh),{basename:t,future:n,navigator:s}=D.useContext(la),{matches:a}=D.useContext(ci),{pathname:u}=jh(),d=JSON.stringify(V_(a,n.v7_relativeSplatPath)),o=D.useRef(!1);return Y_(()=>{o.current=!0}),D.useCallback(function(v,_){if(_===void 0&&(_={}),!o.current)return;if(typeof v=="number"){s.go(v);return}let m=K_(v,JSON.parse(d),u,_.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Di([t,m.pathname])),(_.replace?s.replace:s.push)(m,_.state,_)},[t,s,d,u,e])}function J_(){let{matches:e}=D.useContext(ci),t=e[e.length-1];return t?t.params:{}}function Kb(e,t){return qb(e,t)}function qb(e,t,n,s){ca()||jt(!1);let{navigator:a}=D.useContext(la),{matches:u}=D.useContext(ci),d=u[u.length-1],o=d?d.params:{};d&&d.pathname;let c=d?d.pathnameBase:"/";d&&d.route;let v=jh(),_;if(t){var m;let g=typeof t=="string"?Ds(t):t;c==="/"||(m=g.pathname)!=null&&m.startsWith(c)||jt(!1),_=g}else _=v;let C=_.pathname||"/",x=C;if(c!=="/"){let g=c.replace(/^\//,"").split("/");x="/"+C.replace(/^\//,"").split("/").slice(g.length).join("/")}let w=Cb(e,{pathname:x}),S=Qb(w&&w.map(g=>Object.assign({},g,{params:Object.assign({},o,g.params),pathname:Di([c,a.encodeLocation?a.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?c:Di([c,a.encodeLocation?a.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),u,n,s);return t&&S?D.createElement(Sc.Provider,{value:{location:Go({pathname:"/",search:"",hash:"",state:null,key:"default"},_),navigationType:ni.Pop}},S):S}function Gb(){let e=rC(),t=Hb(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},t),n?D.createElement("pre",{style:a},n):null,null)}const Xb=D.createElement(Gb,null);class Yb extends D.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?D.createElement(ci.Provider,{value:this.props.routeContext},D.createElement(X_.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Jb(e){let{routeContext:t,match:n,children:s}=e,a=D.useContext(Nh);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),D.createElement(ci.Provider,{value:t},s)}function Qb(e,t,n,s){var a;if(t===void 0&&(t=[]),n===void 0&&(n=null),s===void 0&&(s=null),e==null){var u;if(!n)return null;if(n.errors)e=n.matches;else if((u=s)!=null&&u.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let d=e,o=(a=n)==null?void 0:a.errors;if(o!=null){let _=d.findIndex(m=>m.route.id&&(o==null?void 0:o[m.route.id])!==void 0);_>=0||jt(!1),d=d.slice(0,Math.min(d.length,_+1))}let c=!1,v=-1;if(n&&s&&s.v7_partialHydration)for(let _=0;_<d.length;_++){let m=d[_];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(v=_),m.route.id){let{loaderData:C,errors:x}=n,w=m.route.loader&&C[m.route.id]===void 0&&(!x||x[m.route.id]===void 0);if(m.route.lazy||w){c=!0,v>=0?d=d.slice(0,v+1):d=[d[0]];break}}}return d.reduceRight((_,m,C)=>{let x,w=!1,S=null,g=null;n&&(x=o&&m.route.id?o[m.route.id]:void 0,S=m.route.errorElement||Xb,c&&(v<0&&C===0?(iC("route-fallback"),w=!0,g=null):v===C&&(w=!0,g=m.route.hydrateFallbackElement||null)));let f=t.concat(d.slice(0,C+1)),p=()=>{let h;return x?h=S:w?h=g:m.route.Component?h=D.createElement(m.route.Component,null):m.route.element?h=m.route.element:h=_,D.createElement(Jb,{match:m,routeContext:{outlet:_,matches:f,isDataRoute:n!=null},children:h})};return n&&(m.route.ErrorBoundary||m.route.errorElement||C===0)?D.createElement(Yb,{location:n.location,revalidation:n.revalidation,component:S,error:x,children:p(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):p()},null)}var Q_=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(Q_||{}),Z_=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(Z_||{});function Zb(e){let t=D.useContext(Nh);return t||jt(!1),t}function eC(e){let t=D.useContext(Ub);return t||jt(!1),t}function tC(e){let t=D.useContext(ci);return t||jt(!1),t}function e0(e){let t=tC(),n=t.matches[t.matches.length-1];return n.route.id||jt(!1),n.route.id}function rC(){var e;let t=D.useContext(X_),n=eC(),s=e0();return t!==void 0?t:(e=n.errors)==null?void 0:e[s]}function nC(){let{router:e}=Zb(Q_.UseNavigateStable),t=e0(Z_.UseNavigateStable),n=D.useRef(!1);return Y_(()=>{n.current=!0}),D.useCallback(function(a,u){u===void 0&&(u={}),n.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,Go({fromRouteId:t},u)))},[e,t])}const Lg={};function iC(e,t,n){Lg[e]||(Lg[e]=!0)}function sC(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function oC(e){let{to:t,replace:n,state:s,relative:a}=e;ca()||jt(!1);let{future:u,static:d}=D.useContext(la),{matches:o}=D.useContext(ci),{pathname:c}=jh(),v=Fh(),_=K_(t,V_(o,u.v7_relativeSplatPath),c,a==="path"),m=JSON.stringify(_);return D.useEffect(()=>v(JSON.parse(m),{replace:n,state:s,relative:a}),[v,m,a,n,s]),null}function Ti(e){jt(!1)}function aC(e){let{basename:t="/",children:n=null,location:s,navigationType:a=ni.Pop,navigator:u,static:d=!1,future:o}=e;ca()&&jt(!1);let c=t.replace(/^\/*/,"/"),v=D.useMemo(()=>({basename:c,navigator:u,static:d,future:Go({v7_relativeSplatPath:!1},o)}),[c,o,u,d]);typeof s=="string"&&(s=Ds(s));let{pathname:_="/",search:m="",hash:C="",state:x=null,key:w="default"}=s,S=D.useMemo(()=>{let g=U_(_,c);return g==null?null:{location:{pathname:g,search:m,hash:C,state:x,key:w},navigationType:a}},[c,_,m,C,x,w,a]);return S==null?null:D.createElement(la.Provider,{value:v},D.createElement(Sc.Provider,{children:n,value:S}))}function lC(e){let{children:t,location:n}=e;return Kb(oh(t),n)}new Promise(()=>{});function oh(e,t){t===void 0&&(t=[]);let n=[];return D.Children.forEach(e,(s,a)=>{if(!D.isValidElement(s))return;let u=[...t,a];if(s.type===D.Fragment){n.push.apply(n,oh(s.props.children,u));return}s.type!==Ti&&jt(!1),!s.props.index||!s.props.children||jt(!1);let d={id:s.props.id||u.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,loader:s.props.loader,action:s.props.action,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(d.children=oh(s.props.children,u)),n.push(d)}),n}/**
|
|
59
|
+
* React Router DOM v6.30.6
|
|
60
|
+
*
|
|
61
|
+
* Copyright (c) Remix Software Inc.
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the MIT license found in the
|
|
64
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
65
|
+
*
|
|
66
|
+
* @license MIT
|
|
67
|
+
*/const cC="6";try{window.__reactRouterVersion=cC}catch{}const uC="startTransition",Og=sc[uC];function dC(e){let{basename:t,children:n,future:s,window:a}=e,u=D.useRef();u.current==null&&(u.current=yb({window:a,v5Compat:!0}));let d=u.current,[o,c]=D.useState({action:d.action,location:d.location}),{v7_startTransition:v}=s||{},_=D.useCallback(m=>{v&&Og?Og(()=>c(m)):c(m)},[c,v]);return D.useLayoutEffect(()=>d.listen(_),[d,_]),D.useEffect(()=>sC(s),[s]),D.createElement(aC,{basename:t,children:n,location:o.location,navigationType:o.action,navigator:d,future:s})}var Ag;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ag||(Ag={}));var Mg;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Mg||(Mg={}));function Pn(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(s=>n.searchParams.append("args[]",s)),`Minified MUI error #${e}; visit ${n} for the full message.`}function he(e){if(typeof e!="string")throw new Error(Pn(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Bd={exports:{}},ft={};/**
|
|
68
|
+
* @license React
|
|
69
|
+
* react-is.production.js
|
|
70
|
+
*
|
|
71
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
72
|
+
*
|
|
73
|
+
* This source code is licensed under the MIT license found in the
|
|
74
|
+
* LICENSE file in the root directory of this source tree.
|
|
75
|
+
*/var Ig;function hC(){if(Ig)return ft;Ig=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),d=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),C=Symbol.for("react.view_transition"),x=Symbol.for("react.client.reference");function w(S){if(typeof S=="object"&&S!==null){var g=S.$$typeof;switch(g){case e:switch(S=S.type,S){case n:case a:case s:case c:case v:case C:return S;default:switch(S=S&&S.$$typeof,S){case d:case o:case m:case _:return S;case u:return S;default:return g}}case t:return g}}}return ft.ContextConsumer=u,ft.ContextProvider=d,ft.Element=e,ft.ForwardRef=o,ft.Fragment=n,ft.Lazy=m,ft.Memo=_,ft.Portal=t,ft.Profiler=a,ft.StrictMode=s,ft.Suspense=c,ft.SuspenseList=v,ft.isContextConsumer=function(S){return w(S)===u},ft.isContextProvider=function(S){return w(S)===d},ft.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},ft.isForwardRef=function(S){return w(S)===o},ft.isFragment=function(S){return w(S)===n},ft.isLazy=function(S){return w(S)===m},ft.isMemo=function(S){return w(S)===_},ft.isPortal=function(S){return w(S)===t},ft.isProfiler=function(S){return w(S)===a},ft.isStrictMode=function(S){return w(S)===s},ft.isSuspense=function(S){return w(S)===c},ft.isSuspenseList=function(S){return w(S)===v},ft.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===n||S===a||S===s||S===c||S===v||S===C||typeof S=="object"&&S!==null&&(S.$$typeof===m||S.$$typeof===_||S.$$typeof===d||S.$$typeof===u||S.$$typeof===o||S.$$typeof===x||S.getModuleId!==void 0)},ft.typeOf=w,ft}var Dg;function fC(){return Dg||(Dg=1,Bd.exports=hC()),Bd.exports}var t0=fC();function un(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 r0(e){if(D.isValidElement(e)||t0.isValidElementType(e)||!un(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=r0(e[n])}),t}function nr(e,t,n={clone:!0}){const s=n.clone?{...e}:e;return un(e)&&un(t)&&Object.keys(t).forEach(a=>{D.isValidElement(t[a])||t0.isValidElementType(t[a])?s[a]=t[a]:un(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&un(e[a])?s[a]=nr(e[a],t[a],n):n.clone?s[a]=un(t[a])?r0(t[a]):t[a]:s[a]=t[a]}),s}function Ho(e,t){return t?nr(e,t,{clone:!1}):e}function Bg(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(s=>s.startsWith("@container")).sort((s,a)=>{var d,o;const u=/min-width:\s*([0-9.]+)/;return+(((d=s.match(u))==null?void 0:d[1])||0)-+(((o=a.match(u))==null?void 0:o[1])||0)});return n.length?n.reduce((s,a)=>{const u=t[a];return delete s[a],s[a]=u,s},{...t}):t}function pC(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function mC(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,s,a]=n,u=Number.isNaN(+s)?s||0:+s;return e.containerQueries(a).up(u)}function gC(e){const t=(u,d)=>u.replace("@media",d?`@container ${d}`:"@container");function n(u,d){u.up=(...o)=>t(e.breakpoints.up(...o),d),u.down=(...o)=>t(e.breakpoints.down(...o),d),u.between=(...o)=>t(e.breakpoints.between(...o),d),u.only=(...o)=>t(e.breakpoints.only(...o),d),u.not=(...o)=>{const c=t(e.breakpoints.not(...o),d);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const s={},a=u=>(n(s,u),s);return n(a),{...e,containerQueries:a}}const bc={xs:0,sm:600,md:900,lg:1200,xl:1536},$g={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${bc[e]}px)`},vC={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:bc[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function jr(e,t,n){const s=e.theme||{};if(Array.isArray(t)){const u=s.breakpoints||$g;return t.reduce((d,o,c)=>(d[u.up(u.keys[c])]=n(t[c]),d),{})}if(typeof t=="object"){const u=s.breakpoints||$g;return Object.keys(t).reduce((d,o)=>{if(pC(u.keys,o)){const c=mC(s.containerQueries?s:vC,o);c&&(d[c]=n(t[o],o))}else if(Object.keys(u.values||bc).includes(o)){const c=u.up(o);d[c]=n(t[o],o)}else{const c=o;d[c]=t[c]}return d},{})}return n(t)}function _C(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((s,a)=>{const u=e.up(a);return s[u]={},s},{}))||{}}function Ng(e,t){return e.reduce((n,s)=>{const a=n[s];return(!a||Object.keys(a).length===0)&&delete n[s],n},t)}function yC(e,t){if(typeof e!="object")return{};const n={},s=Object.keys(t);return Array.isArray(e)?s.forEach((a,u)=>{u<e.length&&(n[a]=!0)}):s.forEach(a=>{e[a]!=null&&(n[a]=!0)}),n}function Cc({values:e,breakpoints:t,base:n}){const s=n||yC(e,t),a=Object.keys(s);if(a.length===0)return e;let u;return a.reduce((d,o,c)=>(Array.isArray(e)?(d[o]=e[c]!=null?e[c]:e[u],u=c):typeof e=="object"?(d[o]=e[o]!=null?e[o]:e[u],u=o):d[o]=e,d),{})}function wc(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const s=`vars.${t}`.split(".").reduce((a,u)=>a&&a[u]?a[u]:null,e);if(s!=null)return s}return t.split(".").reduce((s,a)=>s&&s[a]!=null?s[a]:null,e)}function oc(e,t,n,s=n){let a;return typeof e=="function"?a=e(n):Array.isArray(e)?a=e[n]||s:a=wc(e,n)||s,t&&(a=t(a,s,e)),a}function Bt(e){const{prop:t,cssProperty:n=e.prop,themeKey:s,transform:a}=e,u=d=>{if(d[t]==null)return null;const o=d[t],c=d.theme,v=wc(c,s)||{};return jr(d,o,m=>{let C=oc(v,a,m);return m===C&&typeof m=="string"&&(C=oc(v,a,`${t}${m==="default"?"":he(m)}`,m)),n===!1?C:{[n]:C}})};return u.propTypes={},u.filterProps=[t],u}function SC(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const bC={m:"margin",p:"padding"},CC={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},jg={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},wC=SC(e=>{if(e.length>2)if(jg[e])e=jg[e];else return[e];const[t,n]=e.split(""),s=bC[t],a=CC[n]||"";return Array.isArray(a)?a.map(u=>s+u):[s+a]}),zh=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Hh=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...zh,...Hh];function ua(e,t,n,s){const a=wc(e,t,!0)??n;return typeof a=="number"||typeof a=="string"?u=>typeof u=="string"?u:typeof a=="string"?`calc(${u} * ${a})`:a*u:Array.isArray(a)?u=>{if(typeof u=="string")return u;const d=Math.abs(u),o=a[d];return u>=0?o:typeof o=="number"?-o:`-${o}`}:typeof a=="function"?a:()=>{}}function Wh(e){return ua(e,"spacing",8)}function da(e,t){return typeof t=="string"||t==null?t:e(t)}function xC(e,t){return n=>e.reduce((s,a)=>(s[a]=da(t,n),s),{})}function EC(e,t,n,s){if(!t.includes(n))return null;const a=wC(n),u=xC(a,s),d=e[n];return jr(e,d,u)}function n0(e,t){const n=Wh(e.theme);return Object.keys(e).map(s=>EC(e,t,s,n)).reduce(Ho,{})}function Tt(e){return n0(e,zh)}Tt.propTypes={};Tt.filterProps=zh;function Lt(e){return n0(e,Hh)}Lt.propTypes={};Lt.filterProps=Hh;function xc(...e){const t=e.reduce((s,a)=>(a.filterProps.forEach(u=>{s[u]=a}),s),{}),n=s=>Object.keys(s).reduce((a,u)=>t[u]?Ho(a,t[u](s)):a,{});return n.propTypes={},n.filterProps=e.reduce((s,a)=>s.concat(a.filterProps),[]),n}function Br(e){return typeof e!="number"?e:`${e}px solid`}function Wr(e,t){return Bt({prop:e,themeKey:"borders",transform:t})}const kC=Wr("border",Br),RC=Wr("borderTop",Br),PC=Wr("borderRight",Br),TC=Wr("borderBottom",Br),LC=Wr("borderLeft",Br),OC=Wr("borderColor"),AC=Wr("borderTopColor"),MC=Wr("borderRightColor"),IC=Wr("borderBottomColor"),DC=Wr("borderLeftColor"),BC=Wr("outline",Br),$C=Wr("outlineColor"),Ec=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ua(e.theme,"shape.borderRadius",4),n=s=>({borderRadius:da(t,s)});return jr(e,e.borderRadius,n)}return null};Ec.propTypes={};Ec.filterProps=["borderRadius"];xc(kC,RC,PC,TC,LC,OC,AC,MC,IC,DC,Ec,BC,$C);const kc=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ua(e.theme,"spacing",8),n=s=>({gap:da(t,s)});return jr(e,e.gap,n)}return null};kc.propTypes={};kc.filterProps=["gap"];const Rc=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ua(e.theme,"spacing",8),n=s=>({columnGap:da(t,s)});return jr(e,e.columnGap,n)}return null};Rc.propTypes={};Rc.filterProps=["columnGap"];const Pc=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ua(e.theme,"spacing",8),n=s=>({rowGap:da(t,s)});return jr(e,e.rowGap,n)}return null};Pc.propTypes={};Pc.filterProps=["rowGap"];const NC=Bt({prop:"gridColumn"}),jC=Bt({prop:"gridRow"}),FC=Bt({prop:"gridAutoFlow"}),zC=Bt({prop:"gridAutoColumns"}),HC=Bt({prop:"gridAutoRows"}),WC=Bt({prop:"gridTemplateColumns"}),UC=Bt({prop:"gridTemplateRows"}),VC=Bt({prop:"gridTemplateAreas"}),KC=Bt({prop:"gridArea"});xc(kc,Rc,Pc,NC,jC,FC,zC,HC,WC,UC,VC,KC);function xs(e,t){return t==="grey"?t:e}const qC=Bt({prop:"color",themeKey:"palette",transform:xs}),GC=Bt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:xs}),XC=Bt({prop:"backgroundColor",themeKey:"palette",transform:xs});xc(qC,GC,XC);function kr(e){return e<=1&&e!==0?`${e*100}%`:e}const YC=Bt({prop:"width",transform:kr}),Uh=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var a,u,d,o,c;const s=((d=(u=(a=e.theme)==null?void 0:a.breakpoints)==null?void 0:u.values)==null?void 0:d[n])||bc[n];return s?((c=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:c.unit)!=="px"?{maxWidth:`${s}${e.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:kr(n)}};return jr(e,e.maxWidth,t)}return null};Uh.filterProps=["maxWidth"];const JC=Bt({prop:"minWidth",transform:kr}),QC=Bt({prop:"height",transform:kr}),ZC=Bt({prop:"maxHeight",transform:kr}),ew=Bt({prop:"minHeight",transform:kr});Bt({prop:"size",cssProperty:"width",transform:kr});Bt({prop:"size",cssProperty:"height",transform:kr});const tw=Bt({prop:"boxSizing"});xc(YC,Uh,JC,QC,ZC,ew,tw);const ha={border:{themeKey:"borders",transform:Br},borderTop:{themeKey:"borders",transform:Br},borderRight:{themeKey:"borders",transform:Br},borderBottom:{themeKey:"borders",transform:Br},borderLeft:{themeKey:"borders",transform:Br},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Br},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ec},color:{themeKey:"palette",transform:xs},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:xs},backgroundColor:{themeKey:"palette",transform:xs},p:{style:Lt},pt:{style:Lt},pr:{style:Lt},pb:{style:Lt},pl:{style:Lt},px:{style:Lt},py:{style:Lt},padding:{style:Lt},paddingTop:{style:Lt},paddingRight:{style:Lt},paddingBottom:{style:Lt},paddingLeft:{style:Lt},paddingX:{style:Lt},paddingY:{style:Lt},paddingInline:{style:Lt},paddingInlineStart:{style:Lt},paddingInlineEnd:{style:Lt},paddingBlock:{style:Lt},paddingBlockStart:{style:Lt},paddingBlockEnd:{style:Lt},m:{style:Tt},mt:{style:Tt},mr:{style:Tt},mb:{style:Tt},ml:{style:Tt},mx:{style:Tt},my:{style:Tt},margin:{style:Tt},marginTop:{style:Tt},marginRight:{style:Tt},marginBottom:{style:Tt},marginLeft:{style:Tt},marginX:{style:Tt},marginY:{style:Tt},marginInline:{style:Tt},marginInlineStart:{style:Tt},marginInlineEnd:{style:Tt},marginBlock:{style:Tt},marginBlockStart:{style:Tt},marginBlockEnd:{style:Tt},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:kc},rowGap:{style:Pc},columnGap:{style:Rc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:kr},maxWidth:{style:Uh},minWidth:{transform:kr},height:{transform:kr},maxHeight:{transform:kr},minHeight:{transform:kr},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 rw(...e){const t=e.reduce((s,a)=>s.concat(Object.keys(a)),[]),n=new Set(t);return e.every(s=>n.size===Object.keys(s).length)}function nw(e,t){return typeof e=="function"?e(t):e}function iw(){function e(n,s,a,u){const d={[n]:s,theme:a},o=u[n];if(!o)return{[n]:s};const{cssProperty:c=n,themeKey:v,transform:_,style:m}=o;if(s==null)return null;if(v==="typography"&&s==="inherit")return{[n]:s};const C=wc(a,v)||{};return m?m(d):jr(d,s,w=>{let S=oc(C,_,w);return w===S&&typeof w=="string"&&(S=oc(C,_,`${n}${w==="default"?"":he(w)}`,w)),c===!1?S:{[c]:S}})}function t(n){const{sx:s,theme:a={},nested:u}=n||{};if(!s)return null;const d=a.unstable_sxConfig??ha;function o(c){let v=c;if(typeof c=="function")v=c(a);else if(typeof c!="object")return c;if(!v)return null;const _=_C(a.breakpoints),m=Object.keys(_);let C=_;return Object.keys(v).forEach(x=>{const w=nw(v[x],a);if(w!=null)if(typeof w=="object")if(d[x])C=Ho(C,e(x,w,a,d));else{const S=jr({theme:a},w,g=>({[x]:g}));rw(S,w)?C[x]=t({sx:w,theme:a,nested:!0}):C=Ho(C,S)}else C=Ho(C,e(x,w,a,d))}),!u&&a.modularCssLayers?{"@layer sx":Bg(a,Ng(m,C))}:Bg(a,Ng(m,C))}return Array.isArray(s)?s.map(o):o(s)}return t}const oi=iw();oi.filterProps=["sx"];const sw=e=>{var s;const t={systemProps:{},otherProps:{}},n=((s=e==null?void 0:e.theme)==null?void 0:s.unstable_sxConfig)??ha;return Object.keys(e).forEach(a=>{n[a]?t.systemProps[a]=e[a]:t.otherProps[a]=e[a]}),t};function Vh(e){const{sx:t,...n}=e,{systemProps:s,otherProps:a}=sw(n);let u;return Array.isArray(t)?u=[s,...t]:typeof t=="function"?u=(...d)=>{const o=t(...d);return un(o)?{...s,...o}:s}:u={...s,...t},{...a,sx:u}}function ac(){return ac=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)({}).hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},ac.apply(null,arguments)}function ow(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 aw(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 lw=(function(){function e(n){var s=this;this._insertTag=function(a){var u;s.tags.length===0?s.insertionPoint?u=s.insertionPoint.nextSibling:s.prepend?u=s.container.firstChild:u=s.before:u=s.tags[s.tags.length-1].nextSibling,s.container.insertBefore(a,u),s.tags.push(a)},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(s){s.forEach(this._insertTag)},t.insert=function(s){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(aw(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var u=ow(a);try{u.insertRule(s,u.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(s));this.ctr++},t.flush=function(){this.tags.forEach(function(s){var a;return(a=s.parentNode)==null?void 0:a.removeChild(s)}),this.tags=[],this.ctr=0},e})(),rr="-ms-",lc="-moz-",ot="-webkit-",i0="comm",Kh="rule",qh="decl",cw="@import",s0="@keyframes",uw="@layer",dw=Math.abs,Tc=String.fromCharCode,hw=Object.assign;function fw(e,t){return Xt(e,0)^45?(((t<<2^Xt(e,0))<<2^Xt(e,1))<<2^Xt(e,2))<<2^Xt(e,3):0}function o0(e){return e.trim()}function pw(e,t){return(e=t.exec(e))?e[0]:e}function at(e,t,n){return e.replace(t,n)}function ah(e,t){return e.indexOf(t)}function Xt(e,t){return e.charCodeAt(t)|0}function Xo(e,t,n){return e.slice(t,n)}function ln(e){return e.length}function Gh(e){return e.length}function Bl(e,t){return t.push(e),e}function mw(e,t){return e.map(t).join("")}var Lc=1,Rs=1,a0=0,br=0,Nt=0,Bs="";function Oc(e,t,n,s,a,u,d){return{value:e,root:t,parent:n,type:s,props:a,children:u,line:Lc,column:Rs,length:d,return:""}}function Po(e,t){return hw(Oc("",null,null,"",null,null,0),e,{length:-e.length},t)}function gw(){return Nt}function vw(){return Nt=br>0?Xt(Bs,--br):0,Rs--,Nt===10&&(Rs=1,Lc--),Nt}function Rr(){return Nt=br<a0?Xt(Bs,br++):0,Rs++,Nt===10&&(Rs=1,Lc++),Nt}function fn(){return Xt(Bs,br)}function Gl(){return br}function fa(e,t){return Xo(Bs,e,t)}function Yo(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 l0(e){return Lc=Rs=1,a0=ln(Bs=e),br=0,[]}function c0(e){return Bs="",e}function Xl(e){return o0(fa(br-1,lh(e===91?e+2:e===40?e+1:e)))}function _w(e){for(;(Nt=fn())&&Nt<33;)Rr();return Yo(e)>2||Yo(Nt)>3?"":" "}function yw(e,t){for(;--t&&Rr()&&!(Nt<48||Nt>102||Nt>57&&Nt<65||Nt>70&&Nt<97););return fa(e,Gl()+(t<6&&fn()==32&&Rr()==32))}function lh(e){for(;Rr();)switch(Nt){case e:return br;case 34:case 39:e!==34&&e!==39&&lh(Nt);break;case 40:e===41&&lh(e);break;case 92:Rr();break}return br}function Sw(e,t){for(;Rr()&&e+Nt!==57;)if(e+Nt===84&&fn()===47)break;return"/*"+fa(t,br-1)+"*"+Tc(e===47?e:Rr())}function bw(e){for(;!Yo(fn());)Rr();return fa(e,br)}function Cw(e){return c0(Yl("",null,null,null,[""],e=l0(e),0,[0],e))}function Yl(e,t,n,s,a,u,d,o,c){for(var v=0,_=0,m=d,C=0,x=0,w=0,S=1,g=1,f=1,p=0,h="",b=a,E=u,P=s,L=h;g;)switch(w=p,p=Rr()){case 40:if(w!=108&&Xt(L,m-1)==58){ah(L+=at(Xl(p),"&","&\f"),"&\f")!=-1&&(f=-1);break}case 34:case 39:case 91:L+=Xl(p);break;case 9:case 10:case 13:case 32:L+=_w(w);break;case 92:L+=yw(Gl()-1,7);continue;case 47:switch(fn()){case 42:case 47:Bl(ww(Sw(Rr(),Gl()),t,n),c);break;default:L+="/"}break;case 123*S:o[v++]=ln(L)*f;case 125*S:case 59:case 0:switch(p){case 0:case 125:g=0;case 59+_:f==-1&&(L=at(L,/\f/g,"")),x>0&&ln(L)-m&&Bl(x>32?zg(L+";",s,n,m-1):zg(at(L," ","")+";",s,n,m-2),c);break;case 59:L+=";";default:if(Bl(P=Fg(L,t,n,v,_,a,o,h,b=[],E=[],m),u),p===123)if(_===0)Yl(L,t,P,P,b,u,m,o,E);else switch(C===99&&Xt(L,3)===110?100:C){case 100:case 108:case 109:case 115:Yl(e,P,P,s&&Bl(Fg(e,P,P,0,0,a,o,h,a,b=[],m),E),a,E,m,o,s?b:E);break;default:Yl(L,P,P,P,[""],E,0,o,E)}}v=_=x=0,S=f=1,h=L="",m=d;break;case 58:m=1+ln(L),x=w;default:if(S<1){if(p==123)--S;else if(p==125&&S++==0&&vw()==125)continue}switch(L+=Tc(p),p*S){case 38:f=_>0?1:(L+="\f",-1);break;case 44:o[v++]=(ln(L)-1)*f,f=1;break;case 64:fn()===45&&(L+=Xl(Rr())),C=fn(),_=m=ln(h=L+=bw(Gl())),p++;break;case 45:w===45&&ln(L)==2&&(S=0)}}return u}function Fg(e,t,n,s,a,u,d,o,c,v,_){for(var m=a-1,C=a===0?u:[""],x=Gh(C),w=0,S=0,g=0;w<s;++w)for(var f=0,p=Xo(e,m+1,m=dw(S=d[w])),h=e;f<x;++f)(h=o0(S>0?C[f]+" "+p:at(p,/&\f/g,C[f])))&&(c[g++]=h);return Oc(e,t,n,a===0?Kh:o,c,v,_)}function ww(e,t,n){return Oc(e,t,n,i0,Tc(gw()),Xo(e,2,-2),0)}function zg(e,t,n,s){return Oc(e,t,n,qh,Xo(e,0,s),Xo(e,s+1,-1),s)}function Es(e,t){for(var n="",s=Gh(e),a=0;a<s;a++)n+=t(e[a],a,e,t)||"";return n}function xw(e,t,n,s){switch(e.type){case uw:if(e.children.length)break;case cw:case qh:return e.return=e.return||e.value;case i0:return"";case s0:return e.return=e.value+"{"+Es(e.children,s)+"}";case Kh:e.value=e.props.join(",")}return ln(n=Es(e.children,s))?e.return=e.value+"{"+n+"}":""}function Ew(e){var t=Gh(e);return function(n,s,a,u){for(var d="",o=0;o<t;o++)d+=e[o](n,s,a,u)||"";return d}}function kw(e){return function(t){t.root||(t=t.return)&&e(t)}}function u0(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Rw=function(t,n,s){for(var a=0,u=0;a=u,u=fn(),a===38&&u===12&&(n[s]=1),!Yo(u);)Rr();return fa(t,br)},Pw=function(t,n){var s=-1,a=44;do switch(Yo(a)){case 0:a===38&&fn()===12&&(n[s]=1),t[s]+=Rw(br-1,n,s);break;case 2:t[s]+=Xl(a);break;case 4:if(a===44){t[++s]=fn()===58?"&\f":"",n[s]=t[s].length;break}default:t[s]+=Tc(a)}while(a=Rr());return t},Tw=function(t,n){return c0(Pw(l0(t),n))},Hg=new WeakMap,Lw=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,s=t.parent,a=t.column===s.column&&t.line===s.line;s.type!=="rule";)if(s=s.parent,!s)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Hg.get(s))&&!a){Hg.set(t,!0);for(var u=[],d=Tw(n,u),o=s.props,c=0,v=0;c<d.length;c++)for(var _=0;_<o.length;_++,v++)t.props[v]=u[c]?d[c].replace(/&\f/g,o[_]):o[_]+" "+d[c]}}},Ow=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function d0(e,t){switch(fw(e,t)){case 5103:return ot+"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 ot+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ot+e+lc+e+rr+e+e;case 6828:case 4268:return ot+e+rr+e+e;case 6165:return ot+e+rr+"flex-"+e+e;case 5187:return ot+e+at(e,/(\w+).+(:[^]+)/,ot+"box-$1$2"+rr+"flex-$1$2")+e;case 5443:return ot+e+rr+"flex-item-"+at(e,/flex-|-self/,"")+e;case 4675:return ot+e+rr+"flex-line-pack"+at(e,/align-content|flex-|-self/,"")+e;case 5548:return ot+e+rr+at(e,"shrink","negative")+e;case 5292:return ot+e+rr+at(e,"basis","preferred-size")+e;case 6060:return ot+"box-"+at(e,"-grow","")+ot+e+rr+at(e,"grow","positive")+e;case 4554:return ot+at(e,/([^-])(transform)/g,"$1"+ot+"$2")+e;case 6187:return at(at(at(e,/(zoom-|grab)/,ot+"$1"),/(image-set)/,ot+"$1"),e,"")+e;case 5495:case 3959:return at(e,/(image-set\([^]*)/,ot+"$1$`$1");case 4968:return at(at(e,/(.+:)(flex-)?(.*)/,ot+"box-pack:$3"+rr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ot+e+e;case 4095:case 3583:case 4068:case 2532:return at(e,/(.+)-inline(.+)/,ot+"$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(ln(e)-1-t>6)switch(Xt(e,t+1)){case 109:if(Xt(e,t+4)!==45)break;case 102:return at(e,/(.+:)(.+)-([^]+)/,"$1"+ot+"$2-$3$1"+lc+(Xt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ah(e,"stretch")?d0(at(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Xt(e,t+1)!==115)break;case 6444:switch(Xt(e,ln(e)-3-(~ah(e,"!important")&&10))){case 107:return at(e,":",":"+ot)+e;case 101:return at(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ot+(Xt(e,14)===45?"inline-":"")+"box$3$1"+ot+"$2$3$1"+rr+"$2box$3")+e}break;case 5936:switch(Xt(e,t+11)){case 114:return ot+e+rr+at(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ot+e+rr+at(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ot+e+rr+at(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ot+e+rr+e+e}return e}var Aw=function(t,n,s,a){if(t.length>-1&&!t.return)switch(t.type){case qh:t.return=d0(t.value,t.length);break;case s0:return Es([Po(t,{value:at(t.value,"@","@"+ot)})],a);case Kh:if(t.length)return mw(t.props,function(u){switch(pw(u,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Es([Po(t,{props:[at(u,/:(read-\w+)/,":"+lc+"$1")]})],a);case"::placeholder":return Es([Po(t,{props:[at(u,/:(plac\w+)/,":"+ot+"input-$1")]}),Po(t,{props:[at(u,/:(plac\w+)/,":"+lc+"$1")]}),Po(t,{props:[at(u,/:(plac\w+)/,rr+"input-$1")]})],a)}return""})}},Mw=[Aw],Iw=function(t){var n=t.key;if(n==="css"){var s=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(s,function(S){var g=S.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var a=t.stylisPlugins||Mw,u={},d,o=[];d=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var g=S.getAttribute("data-emotion").split(" "),f=1;f<g.length;f++)u[g[f]]=!0;o.push(S)});var c,v=[Lw,Ow];{var _,m=[xw,kw(function(S){_.insert(S)})],C=Ew(v.concat(a,m)),x=function(g){return Es(Cw(g),C)};c=function(g,f,p,h){_=p,x(g?g+"{"+f.styles+"}":f.styles),h&&(w.inserted[f.name]=!0)}}var w={key:n,sheet:new lw({key:n,container:d,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:u,registered:{},insert:c};return w.sheet.hydrate(o),w},$d={exports:{}},lt={};/** @license React v16.13.1
|
|
76
|
+
* react-is.production.min.js
|
|
77
|
+
*
|
|
78
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
79
|
+
*
|
|
80
|
+
* This source code is licensed under the MIT license found in the
|
|
81
|
+
* LICENSE file in the root directory of this source tree.
|
|
82
|
+
*/var Wg;function Dw(){if(Wg)return lt;Wg=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,s=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,u=e?Symbol.for("react.profiler"):60114,d=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,v=e?Symbol.for("react.concurrent_mode"):60111,_=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,C=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,f=e?Symbol.for("react.responder"):60118,p=e?Symbol.for("react.scope"):60119;function h(E){if(typeof E=="object"&&E!==null){var P=E.$$typeof;switch(P){case t:switch(E=E.type,E){case c:case v:case s:case u:case a:case m:return E;default:switch(E=E&&E.$$typeof,E){case o:case _:case w:case x:case d:return E;default:return P}}case n:return P}}}function b(E){return h(E)===v}return lt.AsyncMode=c,lt.ConcurrentMode=v,lt.ContextConsumer=o,lt.ContextProvider=d,lt.Element=t,lt.ForwardRef=_,lt.Fragment=s,lt.Lazy=w,lt.Memo=x,lt.Portal=n,lt.Profiler=u,lt.StrictMode=a,lt.Suspense=m,lt.isAsyncMode=function(E){return b(E)||h(E)===c},lt.isConcurrentMode=b,lt.isContextConsumer=function(E){return h(E)===o},lt.isContextProvider=function(E){return h(E)===d},lt.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===t},lt.isForwardRef=function(E){return h(E)===_},lt.isFragment=function(E){return h(E)===s},lt.isLazy=function(E){return h(E)===w},lt.isMemo=function(E){return h(E)===x},lt.isPortal=function(E){return h(E)===n},lt.isProfiler=function(E){return h(E)===u},lt.isStrictMode=function(E){return h(E)===a},lt.isSuspense=function(E){return h(E)===m},lt.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===s||E===v||E===u||E===a||E===m||E===C||typeof E=="object"&&E!==null&&(E.$$typeof===w||E.$$typeof===x||E.$$typeof===d||E.$$typeof===o||E.$$typeof===_||E.$$typeof===g||E.$$typeof===f||E.$$typeof===p||E.$$typeof===S)},lt.typeOf=h,lt}var Ug;function Bw(){return Ug||(Ug=1,$d.exports=Dw()),$d.exports}var Nd,Vg;function $w(){if(Vg)return Nd;Vg=1;var e=Bw(),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},s={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};u[e.ForwardRef]=s,u[e.Memo]=a;function d(w){return e.isMemo(w)?a:u[w.$$typeof]||t}var o=Object.defineProperty,c=Object.getOwnPropertyNames,v=Object.getOwnPropertySymbols,_=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,C=Object.prototype;function x(w,S,g){if(typeof S!="string"){if(C){var f=m(S);f&&f!==C&&x(w,f,g)}var p=c(S);v&&(p=p.concat(v(S)));for(var h=d(w),b=d(S),E=0;E<p.length;++E){var P=p[E];if(!n[P]&&!(g&&g[P])&&!(b&&b[P])&&!(h&&h[P])){var L=_(S,P);try{o(w,P,L)}catch{}}}}return w}return Nd=x,Nd}$w();var Nw=!0;function h0(e,t,n){var s="";return n.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(s+=a+" ")}),s}var Xh=function(t,n,s){var a=t.key+"-"+n.name;(s===!1||Nw===!1)&&t.registered[a]===void 0&&(t.registered[a]=n.styles)},Yh=function(t,n,s){Xh(t,n,s);var a=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var u=n;do t.insert(n===u?"."+a:"",u,t.sheet,!0),u=u.next;while(u!==void 0)}};function jw(e){for(var t=0,n,s=0,a=e.length;a>=4;++s,a-=4)n=e.charCodeAt(s)&255|(e.charCodeAt(++s)&255)<<8|(e.charCodeAt(++s)&255)<<16|(e.charCodeAt(++s)&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(a){case 3:t^=(e.charCodeAt(s+2)&255)<<16;case 2:t^=(e.charCodeAt(s+1)&255)<<8;case 1:t^=e.charCodeAt(s)&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 Fw={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},zw=/[A-Z]|^ms/g,Hw=/_EMO_([^_]+?)_([^]*?)_EMO_/g,f0=function(t){return t.charCodeAt(1)===45},Kg=function(t){return t!=null&&typeof t!="boolean"},jd=u0(function(e){return f0(e)?e:e.replace(zw,"-$&").toLowerCase()}),qg=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Hw,function(s,a,u){return cn={name:a,styles:u,next:cn},a})}return Fw[t]!==1&&!f0(t)&&typeof n=="number"&&n!==0?n+"px":n};function Jo(e,t,n){if(n==null)return"";var s=n;if(s.__emotion_styles!==void 0)return s;switch(typeof n){case"boolean":return"";case"object":{var a=n;if(a.anim===1)return cn={name:a.name,styles:a.styles,next:cn},a.name;var u=n;if(u.styles!==void 0){var d=u.next;if(d!==void 0)for(;d!==void 0;)cn={name:d.name,styles:d.styles,next:cn},d=d.next;var o=u.styles+";";return o}return Ww(e,t,n)}case"function":{if(e!==void 0){var c=cn,v=n(e);return cn=c,Jo(e,t,v)}break}}var _=n;if(t==null)return _;var m=t[_];return m!==void 0?m:_}function Ww(e,t,n){var s="";if(Array.isArray(n))for(var a=0;a<n.length;a++)s+=Jo(e,t,n[a])+";";else for(var u in n){var d=n[u];if(typeof d!="object"){var o=d;t!=null&&t[o]!==void 0?s+=u+"{"+t[o]+"}":Kg(o)&&(s+=jd(u)+":"+qg(u,o)+";")}else if(Array.isArray(d)&&typeof d[0]=="string"&&(t==null||t[d[0]]===void 0))for(var c=0;c<d.length;c++)Kg(d[c])&&(s+=jd(u)+":"+qg(u,d[c])+";");else{var v=Jo(e,t,d);switch(u){case"animation":case"animationName":{s+=jd(u)+":"+v+";";break}default:s+=u+"{"+v+"}"}}}return s}var Gg=/label:\s*([^\s;{]+)\s*(;|$)/g,cn;function pa(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var s=!0,a="";cn=void 0;var u=e[0];if(u==null||u.raw===void 0)s=!1,a+=Jo(n,t,u);else{var d=u;a+=d[0]}for(var o=1;o<e.length;o++)if(a+=Jo(n,t,e[o]),s){var c=u;a+=c[o]}Gg.lastIndex=0;for(var v="",_;(_=Gg.exec(a))!==null;)v+="-"+_[1];var m=jw(a)+v;return{name:m,styles:a,next:cn}}var Uw=function(t){return t()},p0=sc.useInsertionEffect?sc.useInsertionEffect:!1,m0=p0||Uw,Xg=p0||D.useLayoutEffect,g0=D.createContext(typeof HTMLElement<"u"?Iw({key:"css"}):null);g0.Provider;var Jh=function(t){return D.forwardRef(function(n,s){var a=D.useContext(g0);return t(n,a,s)})},ma=D.createContext({}),Qh={}.hasOwnProperty,ch="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Vw=function(t,n){var s={};for(var a in n)Qh.call(n,a)&&(s[a]=n[a]);return s[ch]=t,s},Kw=function(t){var n=t.cache,s=t.serialized,a=t.isStringTag;return Xh(n,s,a),m0(function(){return Yh(n,s,a)}),null},qw=Jh(function(e,t,n){var s=e.css;typeof s=="string"&&t.registered[s]!==void 0&&(s=t.registered[s]);var a=e[ch],u=[s],d="";typeof e.className=="string"?d=h0(t.registered,u,e.className):e.className!=null&&(d=e.className+" ");var o=pa(u,void 0,D.useContext(ma));d+=t.key+"-"+o.name;var c={};for(var v in e)Qh.call(e,v)&&v!=="css"&&v!==ch&&(c[v]=e[v]);return c.className=d,n&&(c.ref=n),D.createElement(D.Fragment,null,D.createElement(Kw,{cache:t,serialized:o,isStringTag:typeof a=="string"}),D.createElement(a,c))}),Gw=qw,Yg=function(t,n){var s=arguments;if(n==null||!Qh.call(n,"css"))return D.createElement.apply(void 0,s);var a=s.length,u=new Array(a);u[0]=Gw,u[1]=Vw(t,n);for(var d=2;d<a;d++)u[d]=s[d];return D.createElement.apply(null,u)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Yg||(Yg={}));var Xw=Jh(function(e,t){var n=e.styles,s=pa([n],void 0,D.useContext(ma)),a=D.useRef();return Xg(function(){var u=t.key+"-global",d=new t.sheet.constructor({key:u,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,c=document.querySelector('style[data-emotion="'+u+" "+s.name+'"]');return t.sheet.tags.length&&(d.before=t.sheet.tags[0]),c!==null&&(o=!0,c.setAttribute("data-emotion",u),d.hydrate([c])),a.current=[d,o],function(){d.flush()}},[t]),Xg(function(){var u=a.current,d=u[0],o=u[1];if(o){u[1]=!1;return}if(s.next!==void 0&&Yh(t,s.next,!0),d.tags.length){var c=d.tags[d.tags.length-1].nextElementSibling;d.before=c,d.flush()}t.insert("",s,d,!1)},[t,s.name]),null});function $s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return pa(t)}function ui(){var e=$s.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 Yw=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Jw=u0(function(e){return Yw.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Qw=Jw,Zw=function(t){return t!=="theme"},Jg=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Qw:Zw},Qg=function(t,n,s){var a;if(n){var u=n.shouldForwardProp;a=t.__emotion_forwardProp&&u?function(d){return t.__emotion_forwardProp(d)&&u(d)}:u}return typeof a!="function"&&s&&(a=t.__emotion_forwardProp),a},ex=function(t){var n=t.cache,s=t.serialized,a=t.isStringTag;return Xh(n,s,a),m0(function(){return Yh(n,s,a)}),null},tx=function e(t,n){var s=t.__emotion_real===t,a=s&&t.__emotion_base||t,u,d;n!==void 0&&(u=n.label,d=n.target);var o=Qg(t,n,s),c=o||Jg(a),v=!c("as");return function(){var _=arguments,m=s&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(u!==void 0&&m.push("label:"+u+";"),_[0]==null||_[0].raw===void 0)m.push.apply(m,_);else{var C=_[0];m.push(C[0]);for(var x=_.length,w=1;w<x;w++)m.push(_[w],C[w])}var S=Jh(function(g,f,p){var h=v&&g.as||a,b="",E=[],P=g;if(g.theme==null){P={};for(var L in g)P[L]=g[L];P.theme=D.useContext(ma)}typeof g.className=="string"?b=h0(f.registered,E,g.className):g.className!=null&&(b=g.className+" ");var R=pa(m.concat(E),f.registered,P);b+=f.key+"-"+R.name,d!==void 0&&(b+=" "+d);var A=v&&o===void 0?Jg(h):c,T={};for(var $ in g)v&&$==="as"||A($)&&(T[$]=g[$]);return T.className=b,p&&(T.ref=p),D.createElement(D.Fragment,null,D.createElement(ex,{cache:f,serialized:R,isStringTag:typeof h=="string"}),D.createElement(h,T))});return S.displayName=u!==void 0?u:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",S.defaultProps=t.defaultProps,S.__emotion_real=S,S.__emotion_base=a,S.__emotion_styles=m,S.__emotion_forwardProp=o,Object.defineProperty(S,"toString",{value:function(){return"."+d}}),S.withComponent=function(g,f){var p=e(g,ac({},n,f,{shouldForwardProp:Qg(S,f,!0)}));return p.apply(void 0,m)},S}},rx=["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"],uh=tx.bind(null);rx.forEach(function(e){uh[e]=uh(e)});function nx(e){return e==null||Object.keys(e).length===0}function v0(e){const{styles:t,defaultTheme:n={}}=e,s=typeof t=="function"?a=>t(nx(a)?n:a):t;return I.jsx(Xw,{styles:s})}/**
|
|
83
|
+
* @mui/styled-engine v6.5.0
|
|
84
|
+
*
|
|
85
|
+
* @license MIT
|
|
86
|
+
* This source code is licensed under the MIT license found in the
|
|
87
|
+
* LICENSE file in the root directory of this source tree.
|
|
88
|
+
*/function _0(e,t){return uh(e,t)}function ix(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Zg=[];function si(e){return Zg[0]=e,pa(Zg)}const sx=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,s)=>n.val-s.val),t.reduce((n,s)=>({...n,[s.key]:s.val}),{})};function ox(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:s=5,...a}=e,u=sx(t),d=Object.keys(u);function o(C){return`@media (min-width:${typeof t[C]=="number"?t[C]:C}${n})`}function c(C){return`@media (max-width:${(typeof t[C]=="number"?t[C]:C)-s/100}${n})`}function v(C,x){const w=d.indexOf(x);return`@media (min-width:${typeof t[C]=="number"?t[C]:C}${n}) and (max-width:${(w!==-1&&typeof t[d[w]]=="number"?t[d[w]]:x)-s/100}${n})`}function _(C){return d.indexOf(C)+1<d.length?v(C,d[d.indexOf(C)+1]):o(C)}function m(C){const x=d.indexOf(C);return x===0?o(d[1]):x===d.length-1?c(d[x]):v(C,d[d.indexOf(C)+1]).replace("@media","@media not all and")}return{keys:d,values:u,up:o,down:c,between:v,only:_,not:m,unit:n,...a}}const ax={borderRadius:4};function y0(e=8,t=Wh({spacing:e})){if(e.mui)return e;const n=(...s)=>(s.length===0?[1]:s).map(u=>{const d=t(u);return typeof d=="number"?`${d}px`:d}).join(" ");return n.mui=!0,n}function lx(e,t){var s;const n=this;if(n.vars){if(!((s=n.colorSchemes)!=null&&s[e])||typeof n.getColorSchemeSelector!="function")return{};let a=n.getColorSchemeSelector(e);return a==="&"?t:((a.includes("data-")||a.includes("."))&&(a=`*:where(${a.replace(/\s*&$/,"")}) &`),{[a]:t})}return n.palette.mode===e?t:{}}function Ac(e={},...t){const{breakpoints:n={},palette:s={},spacing:a,shape:u={},...d}=e,o=ox(n),c=y0(a);let v=nr({breakpoints:o,direction:"ltr",components:{},palette:{mode:"light",...s},spacing:c,shape:{...ax,...u}},d);return v=gC(v),v.applyStyles=lx,v=t.reduce((_,m)=>nr(_,m),v),v.unstable_sxConfig={...ha,...d==null?void 0:d.unstable_sxConfig},v.unstable_sx=function(m){return oi({sx:m,theme:this})},v}function cx(e){return Object.keys(e).length===0}function Zh(e=null){const t=D.useContext(ma);return!t||cx(t)?e:t}const ux=Ac();function Mc(e=ux){return Zh(e)}function Fd(e){const t=si(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function S0({styles:e,themeId:t,defaultTheme:n={}}){const s=Mc(n),a=t&&s[t]||s;let u=typeof e=="function"?e(a):e;return a.modularCssLayers&&(Array.isArray(u)?u=u.map(d=>Fd(typeof d=="function"?d(a):d)):u=Fd(u)),I.jsx(v0,{styles:u})}const ev=e=>e,dx=()=>{let e=ev;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ev}}},b0=dx();function C0(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=C0(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function Ce(){for(var e,t,n=0,s="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=C0(e))&&(s&&(s+=" "),s+=t);return s}function hx(e={}){const{themeId:t,defaultTheme:n,defaultClassName:s="MuiBox-root",generateClassName:a}=e,u=_0("div",{shouldForwardProp:o=>o!=="theme"&&o!=="sx"&&o!=="as"})(oi);return D.forwardRef(function(c,v){const _=Mc(n),{className:m,component:C="div",...x}=Vh(c);return I.jsx(u,{as:C,ref:v,className:Ce(m,a?a(s):s),theme:t&&_[t]||_,...x})})}const fx={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 Oe(e,t,n="Mui"){const s=fx[t];return s?`${n}-${s}`:`${b0.generate(e)}-${t}`}function Ae(e,t,n="Mui"){const s={};return t.forEach(a=>{s[a]=Oe(e,a,n)}),s}function w0(e){const{variants:t,...n}=e,s={variants:t,style:si(n),isProcessed:!0};return s.style===n||t&&t.forEach(a=>{typeof a.style!="function"&&(a.style=si(a.style))}),s}const px=Ac();function zd(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Ai(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function mx(e){return e?(t,n)=>n[e]:null}function gx(e,t,n){e.theme=_x(e.theme)?n:e.theme[t]||e.theme}function Jl(e,t,n){const s=typeof t=="function"?t(e):t;if(Array.isArray(s))return s.flatMap(a=>Jl(e,a,n));if(Array.isArray(s==null?void 0:s.variants)){let a;if(s.isProcessed)a=n?Ai(s.style,n):s.style;else{const{variants:u,...d}=s;a=n?Ai(si(d),n):d}return x0(e,s.variants,[a],n)}return s!=null&&s.isProcessed?n?Ai(si(s.style),n):s.style:n?Ai(si(s),n):s}function x0(e,t,n=[],s=void 0){var u;let a;e:for(let d=0;d<t.length;d+=1){const o=t[d];if(typeof o.props=="function"){if(a??(a={...e,...e.ownerState,ownerState:e.ownerState}),!o.props(a))continue}else for(const c in o.props)if(e[c]!==o.props[c]&&((u=e.ownerState)==null?void 0:u[c])!==o.props[c])continue e;typeof o.style=="function"?(a??(a={...e,...e.ownerState,ownerState:e.ownerState}),n.push(s?Ai(si(o.style(a)),s):o.style(a))):n.push(s?Ai(si(o.style),s):o.style)}return n}function E0(e={}){const{themeId:t,defaultTheme:n=px,rootShouldForwardProp:s=zd,slotShouldForwardProp:a=zd}=e;function u(o){gx(o,t,n)}return(o,c={})=>{ix(o,P=>P.filter(L=>L!==oi));const{name:v,slot:_,skipVariantsResolver:m,skipSx:C,overridesResolver:x=mx(Sx(_)),...w}=c,S=v&&v.startsWith("Mui")||_?"components":"custom",g=m!==void 0?m:_&&_!=="Root"&&_!=="root"||!1,f=C||!1;let p=zd;_==="Root"||_==="root"?p=s:_?p=a:yx(o)&&(p=void 0);const h=_0(o,{shouldForwardProp:p,label:vx(),...w}),b=P=>{if(P.__emotion_real===P)return P;if(typeof P=="function")return function(R){return Jl(R,P,R.theme.modularCssLayers?S:void 0)};if(un(P)){const L=w0(P);return function(A){return L.variants?Jl(A,L,A.theme.modularCssLayers?S:void 0):A.theme.modularCssLayers?Ai(L.style,S):L.style}}return P},E=(...P)=>{const L=[],R=P.map(b),A=[];if(L.push(u),v&&x&&A.push(function(N){var Z,X;const K=(X=(Z=N.theme.components)==null?void 0:Z[v])==null?void 0:X.styleOverrides;if(!K)return null;const G={};for(const M in K)G[M]=Jl(N,K[M],N.theme.modularCssLayers?"theme":void 0);return x(N,G)}),v&&!g&&A.push(function(N){var G,Z;const V=N.theme,K=(Z=(G=V==null?void 0:V.components)==null?void 0:G[v])==null?void 0:Z.variants;return K?x0(N,K,[],N.theme.modularCssLayers?"theme":void 0):null}),f||A.push(oi),Array.isArray(R[0])){const H=R.shift(),N=new Array(L.length).fill(""),V=new Array(A.length).fill("");let K;K=[...N,...H,...V],K.raw=[...N,...H.raw,...V],L.unshift(K)}const T=[...L,...R,...A],$=h(...T);return o.muiName&&($.muiName=o.muiName),$};return h.withConfig&&(E.withConfig=h.withConfig),E}}function vx(e,t){return void 0}function _x(e){for(const t in e)return!1;return!0}function yx(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Sx(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const bx=E0();function Qo(e,t){const n={...t};for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)){const a=s;if(a==="components"||a==="slots")n[a]={...e[a],...n[a]};else if(a==="componentsProps"||a==="slotProps"){const u=e[a],d=t[a];if(!d)n[a]=u||{};else if(!u)n[a]=d;else{n[a]={...d};for(const o in u)if(Object.prototype.hasOwnProperty.call(u,o)){const c=o;n[a][c]=Qo(u[c],d[c])}}}else n[a]===void 0&&(n[a]=e[a])}return n}function Cx(e){const{theme:t,name:n,props:s}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?s:Qo(t.components[n].defaultProps,s)}function wx({props:e,name:t,defaultTheme:n,themeId:s}){let a=Mc(n);return s&&(a=a[s]||a),Cx({theme:a,name:t,props:e})}const Fr=typeof window<"u"?D.useLayoutEffect:D.useEffect;function xx(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function ef(e,t=0,n=1){return xx(e,t,n)}function Ex(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(s=>s+s)),n?`rgb${n.length===4?"a":""}(${n.map((s,a)=>a<3?parseInt(s,16):Math.round(parseInt(s,16)/255*1e3)/1e3).join(", ")})`:""}function ai(e){if(e.type)return e;if(e.charAt(0)==="#")return ai(Ex(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Pn(9,e));let s=e.substring(t+1,e.length-1),a;if(n==="color"){if(s=s.split(" "),a=s.shift(),s.length===4&&s[3].charAt(0)==="/"&&(s[3]=s[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(a))throw new Error(Pn(10,a))}else s=s.split(",");return s=s.map(u=>parseFloat(u)),{type:n,values:s,colorSpace:a}}const kx=e=>{const t=ai(e);return t.values.slice(0,3).map((n,s)=>t.type.includes("hsl")&&s!==0?`${n}%`:n).join(" ")},jo=(e,t)=>{try{return kx(e)}catch{return e}};function Ic(e){const{type:t,colorSpace:n}=e;let{values:s}=e;return t.includes("rgb")?s=s.map((a,u)=>u<3?parseInt(a,10):a):t.includes("hsl")&&(s[1]=`${s[1]}%`,s[2]=`${s[2]}%`),t.includes("color")?s=`${n} ${s.join(" ")}`:s=`${s.join(", ")}`,`${t}(${s})`}function k0(e){e=ai(e);const{values:t}=e,n=t[0],s=t[1]/100,a=t[2]/100,u=s*Math.min(a,1-a),d=(v,_=(v+n/30)%12)=>a-u*Math.max(Math.min(_-3,9-_,1),-1);let o="rgb";const c=[Math.round(d(0)*255),Math.round(d(8)*255),Math.round(d(4)*255)];return e.type==="hsla"&&(o+="a",c.push(t[3])),Ic({type:o,values:c})}function dh(e){e=ai(e);let t=e.type==="hsl"||e.type==="hsla"?ai(k0(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 Rx(e,t){const n=dh(e),s=dh(t);return(Math.max(n,s)+.05)/(Math.min(n,s)+.05)}function nt(e,t){return e=ai(e),t=ef(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ic(e)}function $l(e,t,n){try{return nt(e,t)}catch{return e}}function Ni(e,t){if(e=ai(e),t=ef(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 Ic(e)}function pt(e,t,n){try{return Ni(e,t)}catch{return e}}function ji(e,t){if(e=ai(e),t=ef(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 Ic(e)}function mt(e,t,n){try{return ji(e,t)}catch{return e}}function R0(e,t=.15){return dh(e)>.5?Ni(e,t):ji(e,t)}function Nl(e,t,n){try{return R0(e,t)}catch{return e}}function tv(...e){return e.reduce((t,n)=>n==null?t:function(...a){t.apply(this,a),n.apply(this,a)},()=>{})}function P0(e,t=166){let n;function s(...a){const u=()=>{e.apply(this,a)};clearTimeout(n),n=setTimeout(u,t)}return s.clear=()=>{clearTimeout(n)},s}function Ql(e,t){var n,s,a;return D.isValidElement(e)&&t.indexOf(e.type.muiName??((a=(s=(n=e.type)==null?void 0:n._payload)==null?void 0:s.value)==null?void 0:a.muiName))!==-1}function ir(e){return e&&e.ownerDocument||document}function Tn(e){return ir(e).defaultView||window}function rv(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let nv=0;function Px(e){const[t,n]=D.useState(e),s=e||t;return D.useEffect(()=>{t==null&&(nv+=1,n(`mui-${nv}`))},[t]),s}const Tx={...sc},iv=Tx.useId;function Ui(e){if(iv!==void 0){const t=iv();return e??t}return Px(e)}function cc({controlled:e,default:t,name:n,state:s="value"}){const{current:a}=D.useRef(e!==void 0),[u,d]=D.useState(t),o=a?e:u,c=D.useCallback(v=>{a||d(v)},[]);return[o,c]}function $r(e){const t=D.useRef(e);return Fr(()=>{t.current=e}),D.useRef((...n)=>(0,t.current)(...n)).current}function At(...e){const t=D.useRef(void 0),n=D.useCallback(s=>{const a=e.map(u=>{if(u==null)return null;if(typeof u=="function"){const d=u,o=d(s);return typeof o=="function"?o:()=>{d(null)}}return u.current=s,()=>{u.current=null}});return()=>{a.forEach(u=>u==null?void 0:u())}},e);return D.useMemo(()=>e.every(s=>s==null)?null:s=>{t.current&&(t.current(),t.current=void 0),s!=null&&(t.current=n(s))},e)}const sv={};function T0(e,t){const n=D.useRef(sv);return n.current===sv&&(n.current=e(t)),n}const Lx=[];function Ox(e){D.useEffect(e,Lx)}class Dc{constructor(){ko(this,"currentId",null);ko(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});ko(this,"disposeEffect",()=>this.clear)}static create(){return new Dc}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function ii(){const e=T0(Dc.create).current;return Ox(e.disposeEffect),e}function uc(e){try{return e.matches(":focus-visible")}catch{}return!1}function L0(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Me(e,t,n=void 0){const s={};for(const a in e){const u=e[a];let d="",o=!0;for(let c=0;c<u.length;c+=1){const v=u[c];v&&(d+=(o===!0?"":" ")+t(v),o=!1,n&&n[v]&&(d+=" "+n[v]))}s[a]=d}return s}function Ax(e){return typeof e=="string"}function O0(e,t,n){return e===void 0||Ax(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function dc(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(s=>s.match(/^on[A-Z]/)&&typeof e[s]=="function"&&!t.includes(s)).forEach(s=>{n[s]=e[s]}),n}function ov(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 A0(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:s,externalForwardedProps:a,className:u}=e;if(!t){const x=Ce(n==null?void 0:n.className,u,a==null?void 0:a.className,s==null?void 0:s.className),w={...n==null?void 0:n.style,...a==null?void 0:a.style,...s==null?void 0:s.style},S={...n,...a,...s};return x.length>0&&(S.className=x),Object.keys(w).length>0&&(S.style=w),{props:S,internalRef:void 0}}const d=dc({...a,...s}),o=ov(s),c=ov(a),v=t(d),_=Ce(v==null?void 0:v.className,n==null?void 0:n.className,u,a==null?void 0:a.className,s==null?void 0:s.className),m={...v==null?void 0:v.style,...n==null?void 0:n.style,...a==null?void 0:a.style,...s==null?void 0:s.style},C={...v,...n,...c,...o};return _.length>0&&(C.className=_),Object.keys(m).length>0&&(C.style=m),{props:C,internalRef:v.ref}}function M0(e,t,n){return typeof e=="function"?e(t,n):e}function I0(e){var m;const{elementType:t,externalSlotProps:n,ownerState:s,skipResolvingSlotProps:a=!1,...u}=e,d=a?{}:M0(n,s),{props:o,internalRef:c}=A0({...u,externalSlotProps:d}),v=At(c,d==null?void 0:d.ref,(m=e.additionalProps)==null?void 0:m.ref);return O0(t,{...o,ref:v},s)}function Vi(e){var t;return parseInt(D.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const D0=D.createContext(null);function tf(){return D.useContext(D0)}const Mx=typeof Symbol=="function"&&Symbol.for,Ix=Mx?Symbol.for("mui.nested"):"__THEME_NESTED__";function Dx(e,t){return typeof t=="function"?t(e):{...e,...t}}function Bx(e){const{children:t,theme:n}=e,s=tf(),a=D.useMemo(()=>{const u=s===null?{...n}:Dx(s,n);return u!=null&&(u[Ix]=s!==null),u},[n,s]);return I.jsx(D0.Provider,{value:a,children:t})}const B0=D.createContext();function $x({value:e,...t}){return I.jsx(B0.Provider,{value:e??!0,...t})}const Bc=()=>D.useContext(B0)??!1,$0=D.createContext(void 0);function Nx({value:e,children:t}){return I.jsx($0.Provider,{value:e,children:t})}function jx(e){const{theme:t,name:n,props:s}=e;if(!t||!t.components||!t.components[n])return s;const a=t.components[n];return a.defaultProps?Qo(a.defaultProps,s):!a.styleOverrides&&!a.variants?Qo(a,s):s}function Fx({props:e,name:t}){const n=D.useContext($0);return jx({props:e,name:t,theme:{components:n}})}function zx(e){const t=Zh(),n=Ui()||"",{modularCssLayers:s}=e;let a="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!s||t!==null?a="":typeof s=="string"?a=s.replace(/mui(?!\.)/g,a):a=`@layer ${a};`,Fr(()=>{var o,c;const u=document.querySelector("head");if(!u)return;const d=u.firstChild;if(a){if(d&&((o=d.hasAttribute)!=null&&o.call(d,"data-mui-layer-order"))&&d.getAttribute("data-mui-layer-order")===n)return;const v=document.createElement("style");v.setAttribute("data-mui-layer-order",n),v.textContent=a,u.prepend(v)}else(c=u.querySelector(`style[data-mui-layer-order="${n}"]`))==null||c.remove()},[a,n]),a?I.jsx(S0,{styles:a}):null}const av={};function lv(e,t,n,s=!1){return D.useMemo(()=>{const a=e&&t[e]||t;if(typeof n=="function"){const u=n(a),d=e?{...t,[e]:u}:u;return s?()=>d:d}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,s])}function N0(e){const{children:t,theme:n,themeId:s}=e,a=Zh(av),u=tf()||av,d=lv(s,a,n),o=lv(s,u,n,!0),c=(s?d[s]:d).direction==="rtl",v=zx(d);return I.jsx(Bx,{theme:o,children:I.jsx(ma.Provider,{value:d,children:I.jsx($x,{value:c,children:I.jsxs(Nx,{value:s?d[s].components:d.components,children:[v,t]})})})})}const cv={theme:void 0};function Hx(e){let t,n;return function(a){let u=t;return(u===void 0||a.theme!==n)&&(cv.theme=a.theme,u=w0(e(cv)),t=u,n=a.theme),u}}const rf="mode",nf="color-scheme",Wx="data-color-scheme";function Ux(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:s="dark",modeStorageKey:a=rf,colorSchemeStorageKey:u=nf,attribute:d=Wx,colorSchemeNode:o="document.documentElement",nonce:c}=e||{};let v="",_=d;if(d==="class"&&(_=".%s"),d==="data"&&(_="[data-%s]"),_.startsWith(".")){const C=_.substring(1);v+=`${o}.classList.remove('${C}'.replace('%s', light), '${C}'.replace('%s', dark));
|
|
89
|
+
${o}.classList.add('${C}'.replace('%s', colorScheme));`}const m=_.match(/\[([^\]]+)\]/);if(m){const[C,x]=m[1].split("=");x||(v+=`${o}.removeAttribute('${C}'.replace('%s', light));
|
|
90
|
+
${o}.removeAttribute('${C}'.replace('%s', dark));`),v+=`
|
|
91
|
+
${o}.setAttribute('${C}'.replace('%s', colorScheme), ${x?`${x}.replace('%s', colorScheme)`:'""'});`}else v+=`${o}.setAttribute('${_}', colorScheme);`;return I.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?c:"",dangerouslySetInnerHTML:{__html:`(function() {
|
|
92
|
+
try {
|
|
93
|
+
let colorScheme = '';
|
|
94
|
+
const mode = localStorage.getItem('${a}') || '${t}';
|
|
95
|
+
const dark = localStorage.getItem('${u}-dark') || '${s}';
|
|
96
|
+
const light = localStorage.getItem('${u}-light') || '${n}';
|
|
97
|
+
if (mode === 'system') {
|
|
98
|
+
// handle system mode
|
|
99
|
+
const mql = window.matchMedia('(prefers-color-scheme: dark)');
|
|
100
|
+
if (mql.matches) {
|
|
101
|
+
colorScheme = dark
|
|
102
|
+
} else {
|
|
103
|
+
colorScheme = light
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
if (mode === 'light') {
|
|
107
|
+
colorScheme = light;
|
|
108
|
+
}
|
|
109
|
+
if (mode === 'dark') {
|
|
110
|
+
colorScheme = dark;
|
|
111
|
+
}
|
|
112
|
+
if (colorScheme) {
|
|
113
|
+
${v}
|
|
114
|
+
}
|
|
115
|
+
} catch(e){}})();`}},"mui-color-scheme-init")}function Vx(){}const Kx=({key:e,storageWindow:t})=>(!t&&typeof window<"u"&&(t=window),{get(n){if(typeof window>"u")return;if(!t)return n;let s;try{s=t.localStorage.getItem(e)}catch{}return s||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return Vx;const s=a=>{const u=a.newValue;a.key===e&&n(u)};return t.addEventListener("storage",s),()=>{t.removeEventListener("storage",s)}}});function Hd(){}function uv(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function j0(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 qx(e){return j0(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function Gx(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:s,supportedColorSchemes:a=[],modeStorageKey:u=rf,colorSchemeStorageKey:d=nf,storageWindow:o=typeof window>"u"?void 0:window,storageManager:c=Kx,noSsr:v=!1}=e,_=a.join(","),m=a.length>1,C=D.useMemo(()=>c==null?void 0:c({key:u,storageWindow:o}),[c,u,o]),x=D.useMemo(()=>c==null?void 0:c({key:`${d}-light`,storageWindow:o}),[c,d,o]),w=D.useMemo(()=>c==null?void 0:c({key:`${d}-dark`,storageWindow:o}),[c,d,o]),[S,g]=D.useState(()=>{const R=(C==null?void 0:C.get(t))||t,A=(x==null?void 0:x.get(n))||n,T=(w==null?void 0:w.get(s))||s;return{mode:R,systemMode:uv(R),lightColorScheme:A,darkColorScheme:T}}),[f,p]=D.useState(v||!m);D.useEffect(()=>{p(!0)},[]);const h=qx(S),b=D.useCallback(R=>{g(A=>{if(R===A.mode)return A;const T=R??t;return C==null||C.set(T),{...A,mode:T,systemMode:uv(T)}})},[C,t]),E=D.useCallback(R=>{R?typeof R=="string"?R&&!_.includes(R)?console.error(`\`${R}\` does not exist in \`theme.colorSchemes\`.`):g(A=>{const T={...A};return j0(A,$=>{$==="light"&&(x==null||x.set(R),T.lightColorScheme=R),$==="dark"&&(w==null||w.set(R),T.darkColorScheme=R)}),T}):g(A=>{const T={...A},$=R.light===null?n:R.light,H=R.dark===null?s:R.dark;return $&&(_.includes($)?(T.lightColorScheme=$,x==null||x.set($)):console.error(`\`${$}\` does not exist in \`theme.colorSchemes\`.`)),H&&(_.includes(H)?(T.darkColorScheme=H,w==null||w.set(H)):console.error(`\`${H}\` does not exist in \`theme.colorSchemes\`.`)),T}):g(A=>(x==null||x.set(n),w==null||w.set(s),{...A,lightColorScheme:n,darkColorScheme:s}))},[_,x,w,n,s]),P=D.useCallback(R=>{S.mode==="system"&&g(A=>{const T=R!=null&&R.matches?"dark":"light";return A.systemMode===T?A:{...A,systemMode:T}})},[S.mode]),L=D.useRef(P);return L.current=P,D.useEffect(()=>{if(typeof window.matchMedia!="function"||!m)return;const R=(...T)=>L.current(...T),A=window.matchMedia("(prefers-color-scheme: dark)");return A.addListener(R),R(A),()=>{A.removeListener(R)}},[m]),D.useEffect(()=>{if(m){const R=(C==null?void 0:C.subscribe($=>{(!$||["light","dark","system"].includes($))&&b($||t)}))||Hd,A=(x==null?void 0:x.subscribe($=>{(!$||_.match($))&&E({light:$})}))||Hd,T=(w==null?void 0:w.subscribe($=>{(!$||_.match($))&&E({dark:$})}))||Hd;return()=>{R(),A(),T()}}},[E,b,_,t,o,m,C,x,w]),{...S,mode:f?S.mode:void 0,systemMode:f?S.systemMode:void 0,colorScheme:f?h:void 0,setMode:b,setColorScheme:E}}const Xx="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Yx(e){const{themeId:t,theme:n={},modeStorageKey:s=rf,colorSchemeStorageKey:a=nf,disableTransitionOnChange:u=!1,defaultColorScheme:d,resolveTheme:o}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},v=D.createContext(void 0),_=()=>D.useContext(v)||c,m={},C={};function x(f){var Ge,dt,Rt,wt;const{children:p,theme:h,modeStorageKey:b=s,colorSchemeStorageKey:E=a,disableTransitionOnChange:P=u,storageManager:L,storageWindow:R=typeof window>"u"?void 0:window,documentNode:A=typeof document>"u"?void 0:document,colorSchemeNode:T=typeof document>"u"?void 0:document.documentElement,disableNestedContext:$=!1,disableStyleSheetGeneration:H=!1,defaultMode:N="system",noSsr:V}=f,K=D.useRef(!1),G=tf(),Z=D.useContext(v),X=!!Z&&!$,M=D.useMemo(()=>h||(typeof n=="function"?n():n),[h]),z=M[t],B=z||M,{colorSchemes:W=m,components:ee=C,cssVarPrefix:re}=B,oe=Object.keys(W).filter(Xe=>!!W[Xe]).join(","),se=D.useMemo(()=>oe.split(","),[oe]),U=typeof d=="string"?d:d.light,j=typeof d=="string"?d:d.dark,ne=W[U]&&W[j]?N:((dt=(Ge=W[B.defaultColorScheme])==null?void 0:Ge.palette)==null?void 0:dt.mode)||((Rt=B.palette)==null?void 0:Rt.mode),{mode:Q,setMode:ue,systemMode:ce,lightColorScheme:_e,darkColorScheme:ge,colorScheme:xe,setColorScheme:Ve}=Gx({supportedColorSchemes:se,defaultLightColorScheme:U,defaultDarkColorScheme:j,modeStorageKey:b,colorSchemeStorageKey:E,defaultMode:ne,storageManager:L,storageWindow:R,noSsr:V});let be=Q,ye=xe;X&&(be=Z.mode,ye=Z.colorScheme);const We=D.useMemo(()=>{var De;const Xe=ye||B.defaultColorScheme,et=((De=B.generateThemeVars)==null?void 0:De.call(B))||B.vars,Ye={...B,components:ee,colorSchemes:W,cssVarPrefix:re,vars:et};if(typeof Ye.generateSpacing=="function"&&(Ye.spacing=Ye.generateSpacing()),Xe){const Fe=W[Xe];Fe&&typeof Fe=="object"&&Object.keys(Fe).forEach(ht=>{Fe[ht]&&typeof Fe[ht]=="object"?Ye[ht]={...Ye[ht],...Fe[ht]}:Ye[ht]=Fe[ht]})}return o?o(Ye):Ye},[B,ye,ee,W,re]),je=B.colorSchemeSelector;Fr(()=>{if(ye&&T&&je&&je!=="media"){const Xe=je;let et=je;if(Xe==="class"&&(et=".%s"),Xe==="data"&&(et="[data-%s]"),Xe!=null&&Xe.startsWith("data-")&&!Xe.includes("%s")&&(et=`[${Xe}="%s"]`),et.startsWith("."))T.classList.remove(...se.map(Ye=>et.substring(1).replace("%s",Ye))),T.classList.add(et.substring(1).replace("%s",ye));else{const Ye=et.replace("%s",ye).match(/\[([^\]]+)\]/);if(Ye){const[De,Fe]=Ye[1].split("=");Fe||se.forEach(ht=>{T.removeAttribute(De.replace(ye,ht))}),T.setAttribute(De,Fe?Fe.replace(/"|'/g,""):"")}else T.setAttribute(et,ye)}}},[ye,je,T,se]),D.useEffect(()=>{let Xe;if(P&&K.current&&A){const et=A.createElement("style");et.appendChild(A.createTextNode(Xx)),A.head.appendChild(et),window.getComputedStyle(A.body),Xe=setTimeout(()=>{A.head.removeChild(et)},1)}return()=>{clearTimeout(Xe)}},[ye,P,A]),D.useEffect(()=>(K.current=!0,()=>{K.current=!1}),[]);const He=D.useMemo(()=>({allColorSchemes:se,colorScheme:ye,darkColorScheme:ge,lightColorScheme:_e,mode:be,setColorScheme:Ve,setMode:ue,systemMode:ce}),[se,ye,ge,_e,be,Ve,ue,ce,We.colorSchemeSelector]);let Ee=!0;(H||B.cssVariables===!1||X&&(G==null?void 0:G.cssVarPrefix)===re)&&(Ee=!1);const Ze=I.jsxs(D.Fragment,{children:[I.jsx(N0,{themeId:z?t:void 0,theme:We,children:p}),Ee&&I.jsx(v0,{styles:((wt=We.generateStyleSheets)==null?void 0:wt.call(We))||[]})]});return X?Ze:I.jsx(v.Provider,{value:He,children:Ze})}const w=typeof d=="string"?d:d.light,S=typeof d=="string"?d:d.dark;return{CssVarsProvider:x,useColorScheme:_,getInitColorSchemeScript:f=>Ux({colorSchemeStorageKey:a,defaultLightColorScheme:w,defaultDarkColorScheme:S,modeStorageKey:s,...f})}}function Jx(e=""){function t(...s){if(!s.length)return"";const a=s[0];return typeof a=="string"&&!a.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}-`:""}${a}${t(...s.slice(1))})`:`, ${a}`}return(s,...a)=>`var(--${e?`${e}-`:""}${s}${t(...a)})`}const dv=(e,t,n,s=[])=>{let a=e;t.forEach((u,d)=>{d===t.length-1?Array.isArray(a)?a[Number(u)]=n:a&&typeof a=="object"&&(a[u]=n):a&&typeof a=="object"&&(a[u]||(a[u]=s.includes(u)?[]:{}),a=a[u])})},Qx=(e,t,n)=>{function s(a,u=[],d=[]){Object.entries(a).forEach(([o,c])=>{(!n||n&&!n([...u,o]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?s(c,[...u,o],Array.isArray(c)?[...d,o]:d):t([...u,o],c,d))})}s(e)},Zx=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(s=>e.includes(s))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Wd(e,t){const{prefix:n,shouldSkipGeneratingVar:s}=t||{},a={},u={},d={};return Qx(e,(o,c,v)=>{if((typeof c=="string"||typeof c=="number")&&(!s||!s(o,c))){const _=`--${n?`${n}-`:""}${o.join("-")}`,m=Zx(o,c);Object.assign(a,{[_]:m}),dv(u,o,`var(${_})`,v),dv(d,o,`var(${_}, ${m})`,v)}},o=>o[0]==="vars"),{css:a,vars:u,varsWithDefaults:d}}function eE(e,t={}){const{getSelector:n=g,disableCssColorScheme:s,colorSchemeSelector:a}=t,{colorSchemes:u={},components:d,defaultColorScheme:o="light",...c}=e,{vars:v,css:_,varsWithDefaults:m}=Wd(c,t);let C=m;const x={},{[o]:w,...S}=u;if(Object.entries(S||{}).forEach(([h,b])=>{const{vars:E,css:P,varsWithDefaults:L}=Wd(b,t);C=nr(C,L),x[h]={css:P,vars:E}}),w){const{css:h,vars:b,varsWithDefaults:E}=Wd(w,t);C=nr(C,E),x[o]={css:h,vars:b}}function g(h,b){var P,L;let E=a;if(a==="class"&&(E=".%s"),a==="data"&&(E="[data-%s]"),a!=null&&a.startsWith("data-")&&!a.includes("%s")&&(E=`[${a}="%s"]`),h){if(E==="media")return e.defaultColorScheme===h?":root":{[`@media (prefers-color-scheme: ${((L=(P=u[h])==null?void 0:P.palette)==null?void 0:L.mode)||h})`]:{":root":b}};if(E)return e.defaultColorScheme===h?`:root, ${E.replace("%s",String(h))}`:E.replace("%s",String(h))}return":root"}return{vars:C,generateThemeVars:()=>{let h={...v};return Object.entries(x).forEach(([,{vars:b}])=>{h=nr(h,b)}),h},generateStyleSheets:()=>{var R,A;const h=[],b=e.defaultColorScheme||"light";function E(T,$){Object.keys($).length&&h.push(typeof T=="string"?{[T]:{...$}}:T)}E(n(void 0,{..._}),_);const{[b]:P,...L}=x;if(P){const{css:T}=P,$=(A=(R=u[b])==null?void 0:R.palette)==null?void 0:A.mode,H=!s&&$?{colorScheme:$,...T}:{...T};E(n(b,{...H}),H)}return Object.entries(L).forEach(([T,{css:$}])=>{var V,K;const H=(K=(V=u[T])==null?void 0:V.palette)==null?void 0:K.mode,N=!s&&H?{colorScheme:H,...$}:{...$};E(n(T,{...N}),N)}),h}}}function tE(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)} &`:"&"}}const rE=Ac(),nE=bx("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${he(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),iE=e=>wx({props:e,name:"MuiContainer",defaultTheme:rE}),sE=(e,t)=>{const n=c=>Oe(t,c),{classes:s,fixed:a,disableGutters:u,maxWidth:d}=e,o={root:["root",d&&`maxWidth${he(String(d))}`,a&&"fixed",u&&"disableGutters"]};return Me(o,n,s)};function oE(e={}){const{createStyledComponent:t=nE,useThemeProps:n=iE,componentName:s="MuiContainer"}=e,a=t(({theme:d,ownerState:o})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!o.disableGutters&&{paddingLeft:d.spacing(2),paddingRight:d.spacing(2),[d.breakpoints.up("sm")]:{paddingLeft:d.spacing(3),paddingRight:d.spacing(3)}}}),({theme:d,ownerState:o})=>o.fixed&&Object.keys(d.breakpoints.values).reduce((c,v)=>{const _=v,m=d.breakpoints.values[_];return m!==0&&(c[d.breakpoints.up(_)]={maxWidth:`${m}${d.breakpoints.unit}`}),c},{}),({theme:d,ownerState:o})=>({...o.maxWidth==="xs"&&{[d.breakpoints.up("xs")]:{maxWidth:Math.max(d.breakpoints.values.xs,444)}},...o.maxWidth&&o.maxWidth!=="xs"&&{[d.breakpoints.up(o.maxWidth)]:{maxWidth:`${d.breakpoints.values[o.maxWidth]}${d.breakpoints.unit}`}}}));return D.forwardRef(function(o,c){const v=n(o),{className:_,component:m="div",disableGutters:C=!1,fixed:x=!1,maxWidth:w="lg",classes:S,...g}=v,f={...v,component:m,disableGutters:C,fixed:x,maxWidth:w},p=sE(f,s);return I.jsx(a,{as:m,ownerState:f,className:Ce(p.root,_),ref:c,...g})})}const Zo={black:"#000",white:"#fff"},aE={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"},ms={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},gs={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},To={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},vs={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},_s={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},ys={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function F0(){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:Zo.white,default:Zo.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 lE=F0();function z0(){return{text:{primary:Zo.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:Zo.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 hv=z0();function fv(e,t,n,s){const a=s.light||s,u=s.dark||s*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=ji(e.main,a):t==="dark"&&(e.dark=Ni(e.main,u)))}function cE(e="light"){return e==="dark"?{main:vs[200],light:vs[50],dark:vs[400]}:{main:vs[700],light:vs[400],dark:vs[800]}}function uE(e="light"){return e==="dark"?{main:ms[200],light:ms[50],dark:ms[400]}:{main:ms[500],light:ms[300],dark:ms[700]}}function dE(e="light"){return e==="dark"?{main:gs[500],light:gs[300],dark:gs[700]}:{main:gs[700],light:gs[400],dark:gs[800]}}function hE(e="light"){return e==="dark"?{main:_s[400],light:_s[300],dark:_s[700]}:{main:_s[700],light:_s[500],dark:_s[900]}}function fE(e="light"){return e==="dark"?{main:ys[400],light:ys[300],dark:ys[700]}:{main:ys[800],light:ys[500],dark:ys[900]}}function pE(e="light"){return e==="dark"?{main:To[400],light:To[300],dark:To[700]}:{main:"#ed6c02",light:To[500],dark:To[900]}}function sf(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:s=.2,...a}=e,u=e.primary||cE(t),d=e.secondary||uE(t),o=e.error||dE(t),c=e.info||hE(t),v=e.success||fE(t),_=e.warning||pE(t);function m(S){return Rx(S,hv.text.primary)>=n?hv.text.primary:lE.text.primary}const C=({color:S,name:g,mainShade:f=500,lightShade:p=300,darkShade:h=700})=>{if(S={...S},!S.main&&S[f]&&(S.main=S[f]),!S.hasOwnProperty("main"))throw new Error(Pn(11,g?` (${g})`:"",f));if(typeof S.main!="string")throw new Error(Pn(12,g?` (${g})`:"",JSON.stringify(S.main)));return fv(S,"light",p,s),fv(S,"dark",h,s),S.contrastText||(S.contrastText=m(S.main)),S};let x;return t==="light"?x=F0():t==="dark"&&(x=z0()),nr({common:{...Zo},mode:t,primary:C({color:u,name:"primary"}),secondary:C({color:d,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:C({color:o,name:"error"}),warning:C({color:_,name:"warning"}),info:C({color:c,name:"info"}),success:C({color:v,name:"success"}),grey:aE,contrastThreshold:n,getContrastText:m,augmentColor:C,tonalOffset:s,...x},a)}function mE(e){const t={};return Object.entries(e).forEach(s=>{const[a,u]=s;typeof u=="object"&&(t[a]=`${u.fontStyle?`${u.fontStyle} `:""}${u.fontVariant?`${u.fontVariant} `:""}${u.fontWeight?`${u.fontWeight} `:""}${u.fontStretch?`${u.fontStretch} `:""}${u.fontSize||""}${u.lineHeight?`/${u.lineHeight} `:""}${u.fontFamily||""}`)}),t}function gE(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function vE(e){return Math.round(e*1e5)/1e5}const pv={textTransform:"uppercase"},mv='"Roboto", "Helvetica", "Arial", sans-serif';function H0(e,t){const{fontFamily:n=mv,fontSize:s=14,fontWeightLight:a=300,fontWeightRegular:u=400,fontWeightMedium:d=500,fontWeightBold:o=700,htmlFontSize:c=16,allVariants:v,pxToRem:_,...m}=typeof t=="function"?t(e):t,C=s/14,x=_||(g=>`${g/c*C}rem`),w=(g,f,p,h,b)=>({fontFamily:n,fontWeight:g,fontSize:x(f),lineHeight:p,...n===mv?{letterSpacing:`${vE(h/f)}em`}:{},...b,...v}),S={h1:w(a,96,1.167,-1.5),h2:w(a,60,1.2,-.5),h3:w(u,48,1.167,0),h4:w(u,34,1.235,.25),h5:w(u,24,1.334,0),h6:w(d,20,1.6,.15),subtitle1:w(u,16,1.75,.15),subtitle2:w(d,14,1.57,.1),body1:w(u,16,1.5,.15),body2:w(u,14,1.43,.15),button:w(d,14,1.75,.4,pv),caption:w(u,12,1.66,.4),overline:w(u,12,2.66,1,pv),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return nr({htmlFontSize:c,pxToRem:x,fontFamily:n,fontSize:s,fontWeightLight:a,fontWeightRegular:u,fontWeightMedium:d,fontWeightBold:o,...S},m,{clone:!1})}const _E=.2,yE=.14,SE=.12;function St(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${_E})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${yE})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${SE})`].join(",")}const bE=["none",St(0,2,1,-1,0,1,1,0,0,1,3,0),St(0,3,1,-2,0,2,2,0,0,1,5,0),St(0,3,3,-2,0,3,4,0,0,1,8,0),St(0,2,4,-1,0,4,5,0,0,1,10,0),St(0,3,5,-1,0,5,8,0,0,1,14,0),St(0,3,5,-1,0,6,10,0,0,1,18,0),St(0,4,5,-2,0,7,10,1,0,2,16,1),St(0,5,5,-3,0,8,10,1,0,3,14,2),St(0,5,6,-3,0,9,12,1,0,3,16,2),St(0,6,6,-3,0,10,14,1,0,4,18,3),St(0,6,7,-4,0,11,15,1,0,4,20,3),St(0,7,8,-4,0,12,17,2,0,5,22,4),St(0,7,8,-4,0,13,19,2,0,5,24,4),St(0,7,9,-4,0,14,21,2,0,5,26,4),St(0,8,9,-5,0,15,22,2,0,6,28,5),St(0,8,10,-5,0,16,24,2,0,6,30,5),St(0,8,11,-5,0,17,26,2,0,6,32,5),St(0,9,11,-5,0,18,28,2,0,7,34,6),St(0,9,12,-6,0,19,29,2,0,7,36,6),St(0,10,13,-6,0,20,31,3,0,8,38,7),St(0,10,13,-6,0,21,33,3,0,8,40,7),St(0,10,14,-6,0,22,35,3,0,8,42,7),St(0,11,14,-7,0,23,36,3,0,9,44,8),St(0,11,15,-7,0,24,38,3,0,9,46,8)],CE={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)"},W0={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function gv(e){return`${Math.round(e)}ms`}function wE(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function xE(e){const t={...CE,...e.easing},n={...W0,...e.duration};return{getAutoHeightDuration:wE,create:(a=["all"],u={})=>{const{duration:d=n.standard,easing:o=t.easeInOut,delay:c=0,...v}=u;return(Array.isArray(a)?a:[a]).map(_=>`${_} ${typeof d=="string"?d:gv(d)} ${o} ${typeof c=="string"?c:gv(c)}`).join(",")},...e,easing:t,duration:n}}const EE={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function kE(e){return un(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function U0(e={}){const t={...e};function n(s){const a=Object.entries(s);for(let u=0;u<a.length;u++){const[d,o]=a[u];!kE(o)||d.startsWith("unstable_")?delete s[d]:un(o)&&(s[d]={...o},n(s[d]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
116
|
+
|
|
117
|
+
const theme = ${JSON.stringify(t,null,2)};
|
|
118
|
+
|
|
119
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
120
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
121
|
+
|
|
122
|
+
export default theme;`}function hh(e={},...t){const{breakpoints:n,mixins:s={},spacing:a,palette:u={},transitions:d={},typography:o={},shape:c,...v}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Pn(20));const _=sf(u),m=Ac(e);let C=nr(m,{mixins:gE(m.breakpoints,s),palette:_,shadows:bE.slice(),typography:H0(_,o),transitions:xE(d),zIndex:{...EE}});return C=nr(C,v),C=t.reduce((x,w)=>nr(x,w),C),C.unstable_sxConfig={...ha,...v==null?void 0:v.unstable_sxConfig},C.unstable_sx=function(w){return oi({sx:w,theme:this})},C.toRuntimeSource=U0,C}function fh(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 RE=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=fh(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function V0(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function K0(e){return e==="dark"?RE:[]}function PE(e){const{palette:t={mode:"light"},opacity:n,overlays:s,...a}=e,u=sf(t);return{palette:u,opacity:{...V0(u.mode),...n},overlays:s||K0(u.mode),...a}}function TE(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const LE=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],OE=e=>(t,n)=>{const s=e.rootSelector||":root",a=e.colorSchemeSelector;let u=a;if(a==="class"&&(u=".%s"),a==="data"&&(u="[data-%s]"),a!=null&&a.startsWith("data-")&&!a.includes("%s")&&(u=`[${a}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const d={};return LE(e.cssVarPrefix).forEach(o=>{d[o]=n[o],delete n[o]}),u==="media"?{[s]:n,"@media (prefers-color-scheme: dark)":{[s]:d}}:u?{[u.replace("%s",t)]:d,[`${s}, ${u.replace("%s",t)}`]:n}:{[s]:{...n,...d}}}if(u&&u!=="media")return`${s}, ${u.replace("%s",String(t))}`}else if(t){if(u==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[s]:n}};if(u)return u.replace("%s",String(t))}return s};function AE(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function de(e,t,n){!e[t]&&n&&(e[t]=n)}function Fo(e){return typeof e!="string"||!e.startsWith("hsl")?e:k0(e)}function kn(e,t){`${t}Channel`in e||(e[`${t}Channel`]=jo(Fo(e[t])))}function ME(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const sn=e=>{try{return e()}catch{}},IE=(e="mui")=>Jx(e);function Ud(e,t,n,s){if(!t)return;t=t===!0?{}:t;const a=s==="dark"?"dark":"light";if(!n){e[s]=PE({...t,palette:{mode:a,...t==null?void 0:t.palette}});return}const{palette:u,...d}=hh({...n,palette:{mode:a,...t==null?void 0:t.palette}});return e[s]={...t,palette:u,opacity:{...V0(a),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||K0(a)},d}function DE(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:s,disableCssColorScheme:a=!1,cssVarPrefix:u="mui",shouldSkipGeneratingVar:d=TE,colorSchemeSelector:o=n.light&&n.dark?"media":void 0,rootSelector:c=":root",...v}=e,_=Object.keys(n)[0],m=s||(n.light&&_!=="light"?"light":_),C=IE(u),{[m]:x,light:w,dark:S,...g}=n,f={...g};let p=x;if((m==="dark"&&!("dark"in n)||m==="light"&&!("light"in n))&&(p=!0),!p)throw new Error(Pn(21,m));const h=Ud(f,p,v,m);w&&!f.light&&Ud(f,w,void 0,"light"),S&&!f.dark&&Ud(f,S,void 0,"dark");let b={defaultColorScheme:m,...h,cssVarPrefix:u,colorSchemeSelector:o,rootSelector:c,getCssVar:C,colorSchemes:f,font:{...mE(h.typography),...h.font},spacing:ME(v.spacing)};Object.keys(b.colorSchemes).forEach(A=>{const T=b.colorSchemes[A].palette,$=H=>{const N=H.split("-"),V=N[1],K=N[2];return C(H,T[V][K])};if(T.mode==="light"&&(de(T.common,"background","#fff"),de(T.common,"onBackground","#000")),T.mode==="dark"&&(de(T.common,"background","#000"),de(T.common,"onBackground","#fff")),AE(T,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),T.mode==="light"){de(T.Alert,"errorColor",pt(T.error.light,.6)),de(T.Alert,"infoColor",pt(T.info.light,.6)),de(T.Alert,"successColor",pt(T.success.light,.6)),de(T.Alert,"warningColor",pt(T.warning.light,.6)),de(T.Alert,"errorFilledBg",$("palette-error-main")),de(T.Alert,"infoFilledBg",$("palette-info-main")),de(T.Alert,"successFilledBg",$("palette-success-main")),de(T.Alert,"warningFilledBg",$("palette-warning-main")),de(T.Alert,"errorFilledColor",sn(()=>T.getContrastText(T.error.main))),de(T.Alert,"infoFilledColor",sn(()=>T.getContrastText(T.info.main))),de(T.Alert,"successFilledColor",sn(()=>T.getContrastText(T.success.main))),de(T.Alert,"warningFilledColor",sn(()=>T.getContrastText(T.warning.main))),de(T.Alert,"errorStandardBg",mt(T.error.light,.9)),de(T.Alert,"infoStandardBg",mt(T.info.light,.9)),de(T.Alert,"successStandardBg",mt(T.success.light,.9)),de(T.Alert,"warningStandardBg",mt(T.warning.light,.9)),de(T.Alert,"errorIconColor",$("palette-error-main")),de(T.Alert,"infoIconColor",$("palette-info-main")),de(T.Alert,"successIconColor",$("palette-success-main")),de(T.Alert,"warningIconColor",$("palette-warning-main")),de(T.AppBar,"defaultBg",$("palette-grey-100")),de(T.Avatar,"defaultBg",$("palette-grey-400")),de(T.Button,"inheritContainedBg",$("palette-grey-300")),de(T.Button,"inheritContainedHoverBg",$("palette-grey-A100")),de(T.Chip,"defaultBorder",$("palette-grey-400")),de(T.Chip,"defaultAvatarColor",$("palette-grey-700")),de(T.Chip,"defaultIconColor",$("palette-grey-700")),de(T.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),de(T.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),de(T.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),de(T.LinearProgress,"primaryBg",mt(T.primary.main,.62)),de(T.LinearProgress,"secondaryBg",mt(T.secondary.main,.62)),de(T.LinearProgress,"errorBg",mt(T.error.main,.62)),de(T.LinearProgress,"infoBg",mt(T.info.main,.62)),de(T.LinearProgress,"successBg",mt(T.success.main,.62)),de(T.LinearProgress,"warningBg",mt(T.warning.main,.62)),de(T.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.11)`),de(T.Slider,"primaryTrack",mt(T.primary.main,.62)),de(T.Slider,"secondaryTrack",mt(T.secondary.main,.62)),de(T.Slider,"errorTrack",mt(T.error.main,.62)),de(T.Slider,"infoTrack",mt(T.info.main,.62)),de(T.Slider,"successTrack",mt(T.success.main,.62)),de(T.Slider,"warningTrack",mt(T.warning.main,.62));const H=Nl(T.background.default,.8);de(T.SnackbarContent,"bg",H),de(T.SnackbarContent,"color",sn(()=>T.getContrastText(H))),de(T.SpeedDialAction,"fabHoverBg",Nl(T.background.paper,.15)),de(T.StepConnector,"border",$("palette-grey-400")),de(T.StepContent,"border",$("palette-grey-400")),de(T.Switch,"defaultColor",$("palette-common-white")),de(T.Switch,"defaultDisabledColor",$("palette-grey-100")),de(T.Switch,"primaryDisabledColor",mt(T.primary.main,.62)),de(T.Switch,"secondaryDisabledColor",mt(T.secondary.main,.62)),de(T.Switch,"errorDisabledColor",mt(T.error.main,.62)),de(T.Switch,"infoDisabledColor",mt(T.info.main,.62)),de(T.Switch,"successDisabledColor",mt(T.success.main,.62)),de(T.Switch,"warningDisabledColor",mt(T.warning.main,.62)),de(T.TableCell,"border",mt($l(T.divider,1),.88)),de(T.Tooltip,"bg",$l(T.grey[700],.92))}if(T.mode==="dark"){de(T.Alert,"errorColor",mt(T.error.light,.6)),de(T.Alert,"infoColor",mt(T.info.light,.6)),de(T.Alert,"successColor",mt(T.success.light,.6)),de(T.Alert,"warningColor",mt(T.warning.light,.6)),de(T.Alert,"errorFilledBg",$("palette-error-dark")),de(T.Alert,"infoFilledBg",$("palette-info-dark")),de(T.Alert,"successFilledBg",$("palette-success-dark")),de(T.Alert,"warningFilledBg",$("palette-warning-dark")),de(T.Alert,"errorFilledColor",sn(()=>T.getContrastText(T.error.dark))),de(T.Alert,"infoFilledColor",sn(()=>T.getContrastText(T.info.dark))),de(T.Alert,"successFilledColor",sn(()=>T.getContrastText(T.success.dark))),de(T.Alert,"warningFilledColor",sn(()=>T.getContrastText(T.warning.dark))),de(T.Alert,"errorStandardBg",pt(T.error.light,.9)),de(T.Alert,"infoStandardBg",pt(T.info.light,.9)),de(T.Alert,"successStandardBg",pt(T.success.light,.9)),de(T.Alert,"warningStandardBg",pt(T.warning.light,.9)),de(T.Alert,"errorIconColor",$("palette-error-main")),de(T.Alert,"infoIconColor",$("palette-info-main")),de(T.Alert,"successIconColor",$("palette-success-main")),de(T.Alert,"warningIconColor",$("palette-warning-main")),de(T.AppBar,"defaultBg",$("palette-grey-900")),de(T.AppBar,"darkBg",$("palette-background-paper")),de(T.AppBar,"darkColor",$("palette-text-primary")),de(T.Avatar,"defaultBg",$("palette-grey-600")),de(T.Button,"inheritContainedBg",$("palette-grey-800")),de(T.Button,"inheritContainedHoverBg",$("palette-grey-700")),de(T.Chip,"defaultBorder",$("palette-grey-700")),de(T.Chip,"defaultAvatarColor",$("palette-grey-300")),de(T.Chip,"defaultIconColor",$("palette-grey-300")),de(T.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),de(T.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),de(T.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),de(T.LinearProgress,"primaryBg",pt(T.primary.main,.5)),de(T.LinearProgress,"secondaryBg",pt(T.secondary.main,.5)),de(T.LinearProgress,"errorBg",pt(T.error.main,.5)),de(T.LinearProgress,"infoBg",pt(T.info.main,.5)),de(T.LinearProgress,"successBg",pt(T.success.main,.5)),de(T.LinearProgress,"warningBg",pt(T.warning.main,.5)),de(T.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.13)`),de(T.Slider,"primaryTrack",pt(T.primary.main,.5)),de(T.Slider,"secondaryTrack",pt(T.secondary.main,.5)),de(T.Slider,"errorTrack",pt(T.error.main,.5)),de(T.Slider,"infoTrack",pt(T.info.main,.5)),de(T.Slider,"successTrack",pt(T.success.main,.5)),de(T.Slider,"warningTrack",pt(T.warning.main,.5));const H=Nl(T.background.default,.98);de(T.SnackbarContent,"bg",H),de(T.SnackbarContent,"color",sn(()=>T.getContrastText(H))),de(T.SpeedDialAction,"fabHoverBg",Nl(T.background.paper,.15)),de(T.StepConnector,"border",$("palette-grey-600")),de(T.StepContent,"border",$("palette-grey-600")),de(T.Switch,"defaultColor",$("palette-grey-300")),de(T.Switch,"defaultDisabledColor",$("palette-grey-600")),de(T.Switch,"primaryDisabledColor",pt(T.primary.main,.55)),de(T.Switch,"secondaryDisabledColor",pt(T.secondary.main,.55)),de(T.Switch,"errorDisabledColor",pt(T.error.main,.55)),de(T.Switch,"infoDisabledColor",pt(T.info.main,.55)),de(T.Switch,"successDisabledColor",pt(T.success.main,.55)),de(T.Switch,"warningDisabledColor",pt(T.warning.main,.55)),de(T.TableCell,"border",pt($l(T.divider,1),.68)),de(T.Tooltip,"bg",$l(T.grey[700],.92))}kn(T.background,"default"),kn(T.background,"paper"),kn(T.common,"background"),kn(T.common,"onBackground"),kn(T,"divider"),Object.keys(T).forEach(H=>{const N=T[H];H!=="tonalOffset"&&N&&typeof N=="object"&&(N.main&&de(T[H],"mainChannel",jo(Fo(N.main))),N.light&&de(T[H],"lightChannel",jo(Fo(N.light))),N.dark&&de(T[H],"darkChannel",jo(Fo(N.dark))),N.contrastText&&de(T[H],"contrastTextChannel",jo(Fo(N.contrastText))),H==="text"&&(kn(T[H],"primary"),kn(T[H],"secondary")),H==="action"&&(N.active&&kn(T[H],"active"),N.selected&&kn(T[H],"selected")))})}),b=t.reduce((A,T)=>nr(A,T),b);const E={prefix:u,disableCssColorScheme:a,shouldSkipGeneratingVar:d,getSelector:OE(b)},{vars:P,generateThemeVars:L,generateStyleSheets:R}=eE(b,E);return b.vars=P,Object.entries(b.colorSchemes[b.defaultColorScheme]).forEach(([A,T])=>{b[A]=T}),b.generateThemeVars=L,b.generateStyleSheets=R,b.generateSpacing=function(){return y0(v.spacing,Wh(this))},b.getColorSchemeSelector=tE(o),b.spacing=b.generateSpacing(),b.shouldSkipGeneratingVar=d,b.unstable_sxConfig={...ha,...v==null?void 0:v.unstable_sxConfig},b.unstable_sx=function(T){return oi({sx:T,theme:this})},b.toRuntimeSource=U0,b}function vv(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:sf({...n===!0?{}:n.palette,mode:t})})}function $c(e={},...t){const{palette:n,cssVariables:s=!1,colorSchemes:a=n?void 0:{light:!0},defaultColorScheme:u=n==null?void 0:n.mode,...d}=e,o=u||"light",c=a==null?void 0:a[o],v={...a,...n?{[o]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(s===!1){if(!("colorSchemes"in e))return hh(e,...t);let _=n;"palette"in e||v[o]&&(v[o]!==!0?_=v[o].palette:o==="dark"&&(_={mode:"dark"}));const m=hh({...e,palette:_},...t);return m.defaultColorScheme=o,m.colorSchemes=v,m.palette.mode==="light"&&(m.colorSchemes.light={...v.light!==!0&&v.light,palette:m.palette},vv(m,"dark",v.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...v.dark!==!0&&v.dark,palette:m.palette},vv(m,"light",v.light)),m}return!n&&!("light"in v)&&o==="light"&&(v.light=!0),DE({...d,colorSchemes:v,defaultColorScheme:o,...typeof s!="boolean"&&s},...t)}const of=$c(),pn="$$material";function di(){const e=Mc(of);return e[pn]||e}function BE(e){return I.jsx(S0,{...e,defaultTheme:of,themeId:pn})}function q0(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const dr=e=>q0(e)&&e!=="classes",fe=E0({themeId:pn,defaultTheme:of,rootShouldForwardProp:dr});function af(e){return function(n){return I.jsx(BE,{styles:typeof e=="function"?s=>e({theme:s,...n}):e})}}function $E(){return Vh}function Ie(e){return Fx(e)}const ph=typeof af({})=="function",NE=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),jE=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}}),G0=(e,t=!1)=>{var u,d;const n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([o,c])=>{var _,m;const v=e.getColorSchemeSelector(o);v.startsWith("@")?n[v]={":root":{colorScheme:(_=c.palette)==null?void 0:_.mode}}:n[v.replace(/\s*&/,"")]={colorScheme:(m=c.palette)==null?void 0:m.mode}});let s={html:NE(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...jE(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const a=(d=(u=e.components)==null?void 0:u.MuiCssBaseline)==null?void 0:d.styleOverrides;return a&&(s=[s,a]),s},Zl="mui-ecs",FE=e=>{const t=G0(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${Zl})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,a])=>{var d,o;const u=e.getColorSchemeSelector(s);u.startsWith("@")?n[u]={[`:root:not(:has(.${Zl}))`]:{colorScheme:(d=a.palette)==null?void 0:d.mode}}:n[u.replace(/\s*&/,"")]={[`&:not(:has(.${Zl}))`]:{colorScheme:(o=a.palette)==null?void 0:o.mode}}}),t},zE=af(ph?({theme:e,enableColorScheme:t})=>G0(e,t):({theme:e})=>FE(e));function HE(e){const t=Ie({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:s=!1}=t;return I.jsxs(D.Fragment,{children:[ph&&I.jsx(zE,{enableColorScheme:s}),!ph&&!s&&I.jsx("span",{className:Zl,style:{display:"none"}}),n]})}function WE({theme:e,...t}){const n=pn in e?e[pn]:void 0;return I.jsx(N0,{...t,themeId:n?pn:void 0,theme:n||e})}const jl={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:UE}=Yx({themeId:pn,theme:()=>$c({cssVariables:!0}),colorSchemeStorageKey:jl.colorSchemeStorageKey,modeStorageKey:jl.modeStorageKey,defaultColorScheme:{light:jl.defaultLightColorScheme,dark:jl.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:H0(e.palette,e.typography)};return t.unstable_sx=function(s){return oi({sx:s,theme:this})},t}}),VE=UE;function KE({theme:e,...t}){const n=D.useMemo(()=>{if(typeof e=="function")return e;const s=pn in e?e[pn]:e;return"colorSchemes"in s?null:"vars"in s?e:{...e,vars:null}},[e]);return n?I.jsx(WE,{theme:n,...t}):I.jsx(VE,{theme:e,...t})}const ze=Hx;function qE(e){return Oe("MuiSvgIcon",e)}Ae("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const GE=e=>{const{color:t,fontSize:n,classes:s}=e,a={root:["root",t!=="inherit"&&`color${he(t)}`,`fontSize${he(n)}`]};return Me(a,qE,s)},XE=fe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${he(n.color)}`],t[`fontSize${he(n.fontSize)}`]]}})(ze(({theme:e})=>{var t,n,s,a,u,d,o,c,v,_,m,C,x,w;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(a=(t=e.transitions)==null?void 0:t.create)==null?void 0:a.call(t,"fill",{duration:(s=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:s.shorter}),variants:[{props:S=>!S.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((d=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:d.call(u,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((c=(o=e.typography)==null?void 0:o.pxToRem)==null?void 0:c.call(o,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((_=(v=e.typography)==null?void 0:v.pxToRem)==null?void 0:_.call(v,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,S])=>S&&S.main).map(([S])=>{var g,f;return{props:{color:S},style:{color:(f=(g=(e.vars??e).palette)==null?void 0:g[S])==null?void 0:f.main}}}),{props:{color:"action"},style:{color:(C=(m=(e.vars??e).palette)==null?void 0:m.action)==null?void 0:C.active}},{props:{color:"disabled"},style:{color:(w=(x=(e.vars??e).palette)==null?void 0:x.action)==null?void 0:w.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),mh=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiSvgIcon"}),{children:a,className:u,color:d="inherit",component:o="svg",fontSize:c="medium",htmlColor:v,inheritViewBox:_=!1,titleAccess:m,viewBox:C="0 0 24 24",...x}=s,w=D.isValidElement(a)&&a.type==="svg",S={...s,color:d,component:o,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:_,viewBox:C,hasSvgAsChild:w},g={};_||(g.viewBox=C);const f=GE(S);return I.jsxs(XE,{as:o,className:Ce(f.root,u),focusable:"false",color:v,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:n,...g,...x,...w&&a.props,ownerState:S,children:[w?a.props.children:a,m?I.jsx("title",{children:m}):null]})});mh.muiName="SvgIcon";function st(e,t){function n(s,a){return I.jsx(mh,{"data-testid":`${t}Icon`,ref:a,...s,children:e})}return n.muiName=mh.muiName,D.memo(D.forwardRef(n))}function X0(e,t){if(!e)return t;if(typeof e=="function"||typeof t=="function")return a=>{const u=typeof t=="function"?t(a):t,d=typeof e=="function"?e({...a,...u}):e,o=Ce(a==null?void 0:a.className,u==null?void 0:u.className,d==null?void 0:d.className);return{...u,...d,...!!o&&{className:o},...(u==null?void 0:u.style)&&(d==null?void 0:d.style)&&{style:{...u.style,...d.style}},...(u==null?void 0:u.sx)&&(d==null?void 0:d.sx)&&{sx:[...Array.isArray(u.sx)?u.sx:[u.sx],...Array.isArray(d.sx)?d.sx:[d.sx]]}}};const n=t,s=Ce(n==null?void 0:n.className,e==null?void 0:e.className);return{...t,...e,...!!s&&{className:s},...(n==null?void 0:n.style)&&(e==null?void 0:e.style)&&{style:{...n.style,...e.style}},...(n==null?void 0:n.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function Y0(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)!==-1)continue;n[s]=e[s]}return n}function gh(e,t){return gh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,s){return n.__proto__=s,n},gh(e,t)}function J0(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,gh(e,t)}const _v={disabled:!1},hc=hn.createContext(null);var YE=function(t){return t.scrollTop},zo="unmounted",Li="exited",Oi="entering",Cs="entered",vh="exiting",Qr=(function(e){J0(t,e);function t(s,a){var u;u=e.call(this,s,a)||this;var d=a,o=d&&!d.isMounting?s.enter:s.appear,c;return u.appearStatus=null,s.in?o?(c=Li,u.appearStatus=Oi):c=Cs:s.unmountOnExit||s.mountOnEnter?c=zo:c=Li,u.state={status:c},u.nextCallback=null,u}t.getDerivedStateFromProps=function(a,u){var d=a.in;return d&&u.status===zo?{status:Li}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(a){var u=null;if(a!==this.props){var d=this.state.status;this.props.in?d!==Oi&&d!==Cs&&(u=Oi):(d===Oi||d===Cs)&&(u=vh)}this.updateStatus(!1,u)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var a=this.props.timeout,u,d,o;return u=d=o=a,a!=null&&typeof a!="number"&&(u=a.exit,d=a.enter,o=a.appear!==void 0?a.appear:d),{exit:u,enter:d,appear:o}},n.updateStatus=function(a,u){if(a===void 0&&(a=!1),u!==null)if(this.cancelNextCallback(),u===Oi){if(this.props.unmountOnExit||this.props.mountOnEnter){var d=this.props.nodeRef?this.props.nodeRef.current:Dl.findDOMNode(this);d&&YE(d)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Li&&this.setState({status:zo})},n.performEnter=function(a){var u=this,d=this.props.enter,o=this.context?this.context.isMounting:a,c=this.props.nodeRef?[o]:[Dl.findDOMNode(this),o],v=c[0],_=c[1],m=this.getTimeouts(),C=o?m.appear:m.enter;if(!a&&!d||_v.disabled){this.safeSetState({status:Cs},function(){u.props.onEntered(v)});return}this.props.onEnter(v,_),this.safeSetState({status:Oi},function(){u.props.onEntering(v,_),u.onTransitionEnd(C,function(){u.safeSetState({status:Cs},function(){u.props.onEntered(v,_)})})})},n.performExit=function(){var a=this,u=this.props.exit,d=this.getTimeouts(),o=this.props.nodeRef?void 0:Dl.findDOMNode(this);if(!u||_v.disabled){this.safeSetState({status:Li},function(){a.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:vh},function(){a.props.onExiting(o),a.onTransitionEnd(d.exit,function(){a.safeSetState({status:Li},function(){a.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(a,u){u=this.setNextCallback(u),this.setState(a,u)},n.setNextCallback=function(a){var u=this,d=!0;return this.nextCallback=function(o){d&&(d=!1,u.nextCallback=null,a(o))},this.nextCallback.cancel=function(){d=!1},this.nextCallback},n.onTransitionEnd=function(a,u){this.setNextCallback(u);var d=this.props.nodeRef?this.props.nodeRef.current:Dl.findDOMNode(this),o=a==null&&!this.props.addEndListener;if(!d||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[d,this.nextCallback],v=c[0],_=c[1];this.props.addEndListener(v,_)}a!=null&&setTimeout(this.nextCallback,a)},n.render=function(){var a=this.state.status;if(a===zo)return null;var u=this.props,d=u.children;u.in,u.mountOnEnter,u.unmountOnExit,u.appear,u.enter,u.exit,u.timeout,u.addEndListener,u.onEnter,u.onEntering,u.onEntered,u.onExit,u.onExiting,u.onExited,u.nodeRef;var o=Y0(u,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return hn.createElement(hc.Provider,{value:null},typeof d=="function"?d(a,o):hn.cloneElement(hn.Children.only(d),o))},t})(hn.Component);Qr.contextType=hc;Qr.propTypes={};function Ss(){}Qr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ss,onEntering:Ss,onEntered:Ss,onExit:Ss,onExiting:Ss,onExited:Ss};Qr.UNMOUNTED=zo;Qr.EXITED=Li;Qr.ENTERING=Oi;Qr.ENTERED=Cs;Qr.EXITING=vh;function JE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lf(e,t){var n=function(u){return t&&D.isValidElement(u)?t(u):u},s=Object.create(null);return e&&D.Children.map(e,function(a){return a}).forEach(function(a){s[a.key]=n(a)}),s}function QE(e,t){e=e||{},t=t||{};function n(_){return _ in t?t[_]:e[_]}var s=Object.create(null),a=[];for(var u in e)u in t?a.length&&(s[u]=a,a=[]):a.push(u);var d,o={};for(var c in t){if(s[c])for(d=0;d<s[c].length;d++){var v=s[c][d];o[s[c][d]]=n(v)}o[c]=n(c)}for(d=0;d<a.length;d++)o[a[d]]=n(a[d]);return o}function Mi(e,t,n){return n[t]!=null?n[t]:e.props[t]}function ZE(e,t){return lf(e.children,function(n){return D.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Mi(n,"appear",e),enter:Mi(n,"enter",e),exit:Mi(n,"exit",e)})})}function e2(e,t,n){var s=lf(e.children),a=QE(t,s);return Object.keys(a).forEach(function(u){var d=a[u];if(D.isValidElement(d)){var o=u in t,c=u in s,v=t[u],_=D.isValidElement(v)&&!v.props.in;c&&(!o||_)?a[u]=D.cloneElement(d,{onExited:n.bind(null,d),in:!0,exit:Mi(d,"exit",e),enter:Mi(d,"enter",e)}):!c&&o&&!_?a[u]=D.cloneElement(d,{in:!1}):c&&o&&D.isValidElement(v)&&(a[u]=D.cloneElement(d,{onExited:n.bind(null,d),in:v.props.in,exit:Mi(d,"exit",e),enter:Mi(d,"enter",e)}))}}),a}var t2=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},r2={component:"div",childFactory:function(t){return t}},cf=(function(e){J0(t,e);function t(s,a){var u;u=e.call(this,s,a)||this;var d=u.handleExited.bind(JE(u));return u.state={contextValue:{isMounting:!0},handleExited:d,firstRender:!0},u}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(a,u){var d=u.children,o=u.handleExited,c=u.firstRender;return{children:c?ZE(a,o):e2(a,d,o),firstRender:!1}},n.handleExited=function(a,u){var d=lf(this.props.children);a.key in d||(a.props.onExited&&a.props.onExited(u),this.mounted&&this.setState(function(o){var c=ac({},o.children);return delete c[a.key],{children:c}}))},n.render=function(){var a=this.props,u=a.component,d=a.childFactory,o=Y0(a,["component","childFactory"]),c=this.state.contextValue,v=t2(this.state.children).map(d);return delete o.appear,delete o.enter,delete o.exit,u===null?hn.createElement(hc.Provider,{value:c},v):hn.createElement(hc.Provider,{value:c},hn.createElement(u,o,v))},t})(hn.Component);cf.propTypes={};cf.defaultProps=r2;const Q0=e=>e.scrollTop;function Ps(e,t){const{timeout:n,easing:s,style:a={}}=e;return{duration:a.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:a.transitionTimingFunction??(typeof s=="object"?s[t.mode]:s),delay:a.transitionDelay}}function n2(e){return Oe("MuiCollapse",e)}Ae("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const i2=e=>{const{orientation:t,classes:n}=e,s={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Me(s,n2,n)},s2=fe("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]}})(ze(({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"}}]}))),o2=fe("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),a2=fe("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),fc=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiCollapse"}),{addEndListener:a,children:u,className:d,collapsedSize:o="0px",component:c,easing:v,in:_,onEnter:m,onEntered:C,onEntering:x,onExit:w,onExited:S,onExiting:g,orientation:f="vertical",style:p,timeout:h=W0.standard,TransitionComponent:b=Qr,...E}=s,P={...s,orientation:f,collapsedSize:o},L=i2(P),R=di(),A=ii(),T=D.useRef(null),$=D.useRef(),H=typeof o=="number"?`${o}px`:o,N=f==="horizontal",V=N?"width":"height",K=D.useRef(null),G=At(n,K),Z=se=>U=>{if(se){const j=K.current;U===void 0?se(j):se(j,U)}},X=()=>T.current?T.current[N?"clientWidth":"clientHeight"]:0,M=Z((se,U)=>{T.current&&N&&(T.current.style.position="absolute"),se.style[V]=H,m&&m(se,U)}),z=Z((se,U)=>{const j=X();T.current&&N&&(T.current.style.position="");const{duration:ne,easing:Q}=Ps({style:p,timeout:h,easing:v},{mode:"enter"});if(h==="auto"){const ue=R.transitions.getAutoHeightDuration(j);se.style.transitionDuration=`${ue}ms`,$.current=ue}else se.style.transitionDuration=typeof ne=="string"?ne:`${ne}ms`;se.style[V]=`${j}px`,se.style.transitionTimingFunction=Q,x&&x(se,U)}),B=Z((se,U)=>{se.style[V]="auto",C&&C(se,U)}),W=Z(se=>{se.style[V]=`${X()}px`,w&&w(se)}),ee=Z(S),re=Z(se=>{const U=X(),{duration:j,easing:ne}=Ps({style:p,timeout:h,easing:v},{mode:"exit"});if(h==="auto"){const Q=R.transitions.getAutoHeightDuration(U);se.style.transitionDuration=`${Q}ms`,$.current=Q}else se.style.transitionDuration=typeof j=="string"?j:`${j}ms`;se.style[V]=H,se.style.transitionTimingFunction=ne,g&&g(se)}),oe=se=>{h==="auto"&&A.start($.current||0,se),a&&a(K.current,se)};return I.jsx(b,{in:_,onEnter:M,onEntered:B,onEntering:z,onExit:W,onExited:ee,onExiting:re,addEndListener:oe,nodeRef:K,timeout:h==="auto"?null:h,...E,children:(se,{ownerState:U,...j})=>I.jsx(s2,{as:c,className:Ce(L.root,d,{entered:L.entered,exited:!_&&H==="0px"&&L.hidden}[se]),style:{[N?"minWidth":"minHeight"]:H,...p},ref:G,ownerState:{...P,state:se},...j,children:I.jsx(o2,{ownerState:{...P,state:se},className:L.wrapper,ref:T,children:I.jsx(a2,{ownerState:{...P,state:se},className:L.wrapperInner,children:u})})})})});fc&&(fc.muiSupportAuto=!0);function l2(e){return Oe("MuiPaper",e)}Ae("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 c2=e=>{const{square:t,elevation:n,variant:s,classes:a}=e,u={root:["root",s,!t&&"rounded",s==="elevation"&&`elevation${n}`]};return Me(u,l2,a)},u2=fe("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}`]]}})(ze(({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)"}}]}))),On=D.forwardRef(function(t,n){var x;const s=Ie({props:t,name:"MuiPaper"}),a=di(),{className:u,component:d="div",elevation:o=1,square:c=!1,variant:v="elevation",..._}=s,m={...s,component:d,elevation:o,square:c,variant:v},C=c2(m);return I.jsx(u2,{as:d,ownerState:m,className:Ce(C.root,u),ref:n,..._,style:{...v==="elevation"&&{"--Paper-shadow":(a.vars||a).shadows[o],...a.vars&&{"--Paper-overlay":(x=a.vars.overlays)==null?void 0:x[o]},...!a.vars&&a.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${nt("#fff",fh(o))}, ${nt("#fff",fh(o))})`}},..._.style}})});function qe(e,t){const{className:n,elementType:s,ownerState:a,externalForwardedProps:u,internalForwardedProps:d,shouldForwardComponentProp:o=!1,...c}=t,{component:v,slots:_={[e]:void 0},slotProps:m={[e]:void 0},...C}=u,x=_[e]||s,w=M0(m[e],a),{props:{component:S,...g},internalRef:f}=A0({className:n,...c,externalForwardedProps:e==="root"?C:void 0,externalSlotProps:w}),p=At(f,w==null?void 0:w.ref,t.ref),h=e==="root"?S||v:S,b=O0(x,{...e==="root"&&!v&&!_[e]&&d,...e!=="root"&&!_[e]&&d,...g,...h&&!o&&{as:h},...h&&o&&{component:h},ref:p},a);return[x,b]}class pc{constructor(){ko(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new pc}static use(){const t=T0(pc.create).current,[n,s]=D.useState(!1);return t.shouldMount=n,t.setShouldMount=s,D.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=h2(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function d2(){return pc.use()}function h2(){let e,t;const n=new Promise((s,a)=>{e=s,t=a});return n.resolve=e,n.reject=t,n}function f2(e){const{className:t,classes:n,pulsate:s=!1,rippleX:a,rippleY:u,rippleSize:d,in:o,onExited:c,timeout:v}=e,[_,m]=D.useState(!1),C=Ce(t,n.ripple,n.rippleVisible,s&&n.ripplePulsate),x={width:d,height:d,top:-(d/2)+u,left:-(d/2)+a},w=Ce(n.child,_&&n.childLeaving,s&&n.childPulsate);return!o&&!_&&m(!0),D.useEffect(()=>{if(!o&&c!=null){const S=setTimeout(c,v);return()=>{clearTimeout(S)}}},[c,o,v]),I.jsx("span",{className:C,style:x,children:I.jsx("span",{className:w})})}const Dr=Ae("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),_h=550,p2=80,m2=ui`
|
|
123
|
+
0% {
|
|
124
|
+
transform: scale(0);
|
|
125
|
+
opacity: 0.1;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
100% {
|
|
129
|
+
transform: scale(1);
|
|
130
|
+
opacity: 0.3;
|
|
131
|
+
}
|
|
132
|
+
`,g2=ui`
|
|
133
|
+
0% {
|
|
134
|
+
opacity: 1;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
100% {
|
|
138
|
+
opacity: 0;
|
|
139
|
+
}
|
|
140
|
+
`,v2=ui`
|
|
141
|
+
0% {
|
|
142
|
+
transform: scale(1);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
50% {
|
|
146
|
+
transform: scale(0.92);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
100% {
|
|
150
|
+
transform: scale(1);
|
|
151
|
+
}
|
|
152
|
+
`,_2=fe("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),y2=fe(f2,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
153
|
+
opacity: 0;
|
|
154
|
+
position: absolute;
|
|
155
|
+
|
|
156
|
+
&.${Dr.rippleVisible} {
|
|
157
|
+
opacity: 0.3;
|
|
158
|
+
transform: scale(1);
|
|
159
|
+
animation-name: ${m2};
|
|
160
|
+
animation-duration: ${_h}ms;
|
|
161
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
&.${Dr.ripplePulsate} {
|
|
165
|
+
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
& .${Dr.child} {
|
|
169
|
+
opacity: 1;
|
|
170
|
+
display: block;
|
|
171
|
+
width: 100%;
|
|
172
|
+
height: 100%;
|
|
173
|
+
border-radius: 50%;
|
|
174
|
+
background-color: currentColor;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
& .${Dr.childLeaving} {
|
|
178
|
+
opacity: 0;
|
|
179
|
+
animation-name: ${g2};
|
|
180
|
+
animation-duration: ${_h}ms;
|
|
181
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
& .${Dr.childPulsate} {
|
|
185
|
+
position: absolute;
|
|
186
|
+
/* @noflip */
|
|
187
|
+
left: 0px;
|
|
188
|
+
top: 0;
|
|
189
|
+
animation-name: ${v2};
|
|
190
|
+
animation-duration: 2500ms;
|
|
191
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
192
|
+
animation-iteration-count: infinite;
|
|
193
|
+
animation-delay: 200ms;
|
|
194
|
+
}
|
|
195
|
+
`,S2=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiTouchRipple"}),{center:a=!1,classes:u={},className:d,...o}=s,[c,v]=D.useState([]),_=D.useRef(0),m=D.useRef(null);D.useEffect(()=>{m.current&&(m.current(),m.current=null)},[c]);const C=D.useRef(!1),x=ii(),w=D.useRef(null),S=D.useRef(null),g=D.useCallback(b=>{const{pulsate:E,rippleX:P,rippleY:L,rippleSize:R,cb:A}=b;v(T=>[...T,I.jsx(y2,{classes:{ripple:Ce(u.ripple,Dr.ripple),rippleVisible:Ce(u.rippleVisible,Dr.rippleVisible),ripplePulsate:Ce(u.ripplePulsate,Dr.ripplePulsate),child:Ce(u.child,Dr.child),childLeaving:Ce(u.childLeaving,Dr.childLeaving),childPulsate:Ce(u.childPulsate,Dr.childPulsate)},timeout:_h,pulsate:E,rippleX:P,rippleY:L,rippleSize:R},_.current)]),_.current+=1,m.current=A},[u]),f=D.useCallback((b={},E={},P=()=>{})=>{const{pulsate:L=!1,center:R=a||E.pulsate,fakeElement:A=!1}=E;if((b==null?void 0:b.type)==="mousedown"&&C.current){C.current=!1;return}(b==null?void 0:b.type)==="touchstart"&&(C.current=!0);const T=A?null:S.current,$=T?T.getBoundingClientRect():{width:0,height:0,left:0,top:0};let H,N,V;if(R||b===void 0||b.clientX===0&&b.clientY===0||!b.clientX&&!b.touches)H=Math.round($.width/2),N=Math.round($.height/2);else{const{clientX:K,clientY:G}=b.touches&&b.touches.length>0?b.touches[0]:b;H=Math.round(K-$.left),N=Math.round(G-$.top)}if(R)V=Math.sqrt((2*$.width**2+$.height**2)/3),V%2===0&&(V+=1);else{const K=Math.max(Math.abs((T?T.clientWidth:0)-H),H)*2+2,G=Math.max(Math.abs((T?T.clientHeight:0)-N),N)*2+2;V=Math.sqrt(K**2+G**2)}b!=null&&b.touches?w.current===null&&(w.current=()=>{g({pulsate:L,rippleX:H,rippleY:N,rippleSize:V,cb:P})},x.start(p2,()=>{w.current&&(w.current(),w.current=null)})):g({pulsate:L,rippleX:H,rippleY:N,rippleSize:V,cb:P})},[a,g,x]),p=D.useCallback(()=>{f({},{pulsate:!0})},[f]),h=D.useCallback((b,E)=>{if(x.clear(),(b==null?void 0:b.type)==="touchend"&&w.current){w.current(),w.current=null,x.start(0,()=>{h(b,E)});return}w.current=null,v(P=>P.length>0?P.slice(1):P),m.current=E},[x]);return D.useImperativeHandle(n,()=>({pulsate:p,start:f,stop:h}),[p,f,h]),I.jsx(_2,{className:Ce(Dr.root,u.root,d),ref:S,...o,children:I.jsx(cf,{component:null,exit:!0,children:c})})});function b2(e){return Oe("MuiButtonBase",e)}const C2=Ae("MuiButtonBase",["root","disabled","focusVisible"]),w2=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:s,classes:a}=e,d=Me({root:["root",t&&"disabled",n&&"focusVisible"]},b2,a);return n&&s&&(d.root+=` ${s}`),d},x2=fe("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.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"},[`&.${C2.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ts=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiButtonBase"}),{action:a,centerRipple:u=!1,children:d,className:o,component:c="button",disabled:v=!1,disableRipple:_=!1,disableTouchRipple:m=!1,focusRipple:C=!1,focusVisibleClassName:x,LinkComponent:w="a",onBlur:S,onClick:g,onContextMenu:f,onDragLeave:p,onFocus:h,onFocusVisible:b,onKeyDown:E,onKeyUp:P,onMouseDown:L,onMouseLeave:R,onMouseUp:A,onTouchEnd:T,onTouchMove:$,onTouchStart:H,tabIndex:N=0,TouchRippleProps:V,touchRippleRef:K,type:G,...Z}=s,X=D.useRef(null),M=d2(),z=At(M.ref,K),[B,W]=D.useState(!1);v&&B&&W(!1),D.useImperativeHandle(a,()=>({focusVisible:()=>{W(!0),X.current.focus()}}),[]);const ee=M.shouldMount&&!_&&!v;D.useEffect(()=>{B&&C&&!_&&M.pulsate()},[_,C,B,M]);const re=Rn(M,"start",L,m),oe=Rn(M,"stop",f,m),se=Rn(M,"stop",p,m),U=Rn(M,"stop",A,m),j=Rn(M,"stop",Ee=>{B&&Ee.preventDefault(),R&&R(Ee)},m),ne=Rn(M,"start",H,m),Q=Rn(M,"stop",T,m),ue=Rn(M,"stop",$,m),ce=Rn(M,"stop",Ee=>{uc(Ee.target)||W(!1),S&&S(Ee)},!1),_e=$r(Ee=>{X.current||(X.current=Ee.currentTarget),uc(Ee.target)&&(W(!0),b&&b(Ee)),h&&h(Ee)}),ge=()=>{const Ee=X.current;return c&&c!=="button"&&!(Ee.tagName==="A"&&Ee.href)},xe=$r(Ee=>{C&&!Ee.repeat&&B&&Ee.key===" "&&M.stop(Ee,()=>{M.start(Ee)}),Ee.target===Ee.currentTarget&&ge()&&Ee.key===" "&&Ee.preventDefault(),E&&E(Ee),Ee.target===Ee.currentTarget&&ge()&&Ee.key==="Enter"&&!v&&(Ee.preventDefault(),g&&g(Ee))}),Ve=$r(Ee=>{C&&Ee.key===" "&&B&&!Ee.defaultPrevented&&M.stop(Ee,()=>{M.pulsate(Ee)}),P&&P(Ee),g&&Ee.target===Ee.currentTarget&&ge()&&Ee.key===" "&&!Ee.defaultPrevented&&g(Ee)});let be=c;be==="button"&&(Z.href||Z.to)&&(be=w);const ye={};be==="button"?(ye.type=G===void 0?"button":G,ye.disabled=v):(!Z.href&&!Z.to&&(ye.role="button"),v&&(ye["aria-disabled"]=v));const We=At(n,X),je={...s,centerRipple:u,component:c,disabled:v,disableRipple:_,disableTouchRipple:m,focusRipple:C,tabIndex:N,focusVisible:B},He=w2(je);return I.jsxs(x2,{as:be,className:Ce(He.root,o),ownerState:je,onBlur:ce,onClick:g,onContextMenu:oe,onFocus:_e,onKeyDown:xe,onKeyUp:Ve,onMouseDown:re,onMouseLeave:j,onMouseUp:U,onDragLeave:se,onTouchEnd:Q,onTouchMove:ue,onTouchStart:ne,ref:We,tabIndex:v?-1:N,type:G,...ye,...Z,children:[d,ee?I.jsx(S2,{ref:z,center:u,...V}):null]})});function Rn(e,t,n,s=!1){return $r(a=>(n&&n(a),s||e[t](a),!0))}function E2(e){return typeof e.main=="string"}function k2(e,t=[]){if(!E2(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Ct(e=[]){return([,t])=>t&&k2(t,e)}function R2(e){return Oe("MuiAlert",e)}const yv=Ae("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function P2(e){return Oe("MuiCircularProgress",e)}Ae("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const ei=44,yh=ui`
|
|
196
|
+
0% {
|
|
197
|
+
transform: rotate(0deg);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
100% {
|
|
201
|
+
transform: rotate(360deg);
|
|
202
|
+
}
|
|
203
|
+
`,Sh=ui`
|
|
204
|
+
0% {
|
|
205
|
+
stroke-dasharray: 1px, 200px;
|
|
206
|
+
stroke-dashoffset: 0;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
50% {
|
|
210
|
+
stroke-dasharray: 100px, 200px;
|
|
211
|
+
stroke-dashoffset: -15px;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
100% {
|
|
215
|
+
stroke-dasharray: 1px, 200px;
|
|
216
|
+
stroke-dashoffset: -126px;
|
|
217
|
+
}
|
|
218
|
+
`,T2=typeof yh!="string"?$s`
|
|
219
|
+
animation: ${yh} 1.4s linear infinite;
|
|
220
|
+
`:null,L2=typeof Sh!="string"?$s`
|
|
221
|
+
animation: ${Sh} 1.4s ease-in-out infinite;
|
|
222
|
+
`:null,O2=e=>{const{classes:t,variant:n,color:s,disableShrink:a}=e,u={root:["root",n,`color${he(s)}`],svg:["svg"],circle:["circle",`circle${he(n)}`,a&&"circleDisableShrink"]};return Me(u,P2,t)},A2=fe("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${he(n.color)}`]]}})(ze(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:T2||{animation:`${yh} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Ct()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),M2=fe("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),I2=fe("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${he(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(ze(({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:L2||{animation:`${Sh} 1.4s ease-in-out infinite`}}]}))),Ki=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiCircularProgress"}),{className:a,color:u="primary",disableShrink:d=!1,size:o=40,style:c,thickness:v=3.6,value:_=0,variant:m="indeterminate",...C}=s,x={...s,color:u,disableShrink:d,size:o,thickness:v,value:_,variant:m},w=O2(x),S={},g={},f={};if(m==="determinate"){const p=2*Math.PI*((ei-v)/2);S.strokeDasharray=p.toFixed(3),f["aria-valuenow"]=Math.round(_),S.strokeDashoffset=`${((100-_)/100*p).toFixed(3)}px`,g.transform="rotate(-90deg)"}return I.jsx(A2,{className:Ce(w.root,a),style:{width:o,height:o,...g,...c},ownerState:x,ref:n,role:"progressbar",...f,...C,children:I.jsx(M2,{className:w.svg,ownerState:x,viewBox:`${ei/2} ${ei/2} ${ei} ${ei}`,children:I.jsx(I2,{className:w.circle,style:S,ownerState:x,cx:ei,cy:ei,r:(ei-v)/2,fill:"none",strokeWidth:v})})})});function D2(e){return Oe("MuiIconButton",e)}const Sv=Ae("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),B2=e=>{const{classes:t,disabled:n,color:s,edge:a,size:u,loading:d}=e,o={root:["root",d&&"loading",n&&"disabled",s!=="default"&&`color${he(s)}`,a&&`edge${he(a)}`,`size${he(u)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Me(o,D2,t)},$2=fe(Ts,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${he(n.color)}`],n.edge&&t[`edge${he(n.edge)}`],t[`size${he(n.size)}`]]}})(ze(({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})`:nt(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}}]})),ze(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Ct()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Ct()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:nt((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)}}],[`&.${Sv.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Sv.loading}`]:{color:"transparent"}}))),N2=fe("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.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"}}]})),ur=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiIconButton"}),{edge:a=!1,children:u,className:d,color:o="default",disabled:c=!1,disableFocusRipple:v=!1,size:_="medium",id:m,loading:C=null,loadingIndicator:x,...w}=s,S=Ui(m),g=x??I.jsx(Ki,{"aria-labelledby":S,color:"inherit",size:16}),f={...s,edge:a,color:o,disabled:c,disableFocusRipple:v,loading:C,loadingIndicator:g,size:_},p=B2(f);return I.jsxs($2,{id:C?S:m,className:Ce(p.root,d),centerRipple:!0,focusRipple:!v,disabled:c||C,ref:n,...w,ownerState:f,children:[typeof C=="boolean"&&I.jsx("span",{className:p.loadingWrapper,style:{display:"contents"},children:I.jsx(N2,{className:p.loadingIndicator,ownerState:f,children:C&&g})}),u]})}),j2=st(I.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),F2=st(I.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),z2=st(I.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),H2=st(I.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),W2=st(I.jsx("path",{d:"M19 6.41L17.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"}),"Close"),U2=e=>{const{variant:t,color:n,severity:s,classes:a}=e,u={root:["root",`color${he(n||s)}`,`${t}${he(n||s)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Me(u,R2,a)},V2=fe(On,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${he(n.color||n.severity)}`]]}})(ze(({theme:e})=>{const t=e.palette.mode==="light"?Ni:ji,n=e.palette.mode==="light"?ji:Ni;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(Ct(["light"])).map(([s])=>({props:{colorSeverity:s,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${s}Color`]:t(e.palette[s].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${s}StandardBg`]:n(e.palette[s].light,.9),[`& .${yv.icon}`]:e.vars?{color:e.vars.palette.Alert[`${s}IconColor`]}:{color:e.palette[s].main}}})),...Object.entries(e.palette).filter(Ct(["light"])).map(([s])=>({props:{colorSeverity:s,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${s}Color`]:t(e.palette[s].light,.6),border:`1px solid ${(e.vars||e).palette[s].light}`,[`& .${yv.icon}`]:e.vars?{color:e.vars.palette.Alert[`${s}IconColor`]}:{color:e.palette[s].main}}})),...Object.entries(e.palette).filter(Ct(["dark"])).map(([s])=>({props:{colorSeverity:s,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${s}FilledColor`],backgroundColor:e.vars.palette.Alert[`${s}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[s].dark:e.palette[s].main,color:e.palette.getContrastText(e.palette[s].main)}}}))]}})),K2=fe("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),q2=fe("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),G2=fe("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),bv={success:I.jsx(j2,{fontSize:"inherit"}),warning:I.jsx(F2,{fontSize:"inherit"}),error:I.jsx(z2,{fontSize:"inherit"}),info:I.jsx(H2,{fontSize:"inherit"})},uf=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiAlert"}),{action:a,children:u,className:d,closeText:o="Close",color:c,components:v={},componentsProps:_={},icon:m,iconMapping:C=bv,onClose:x,role:w="alert",severity:S="success",slotProps:g={},slots:f={},variant:p="standard",...h}=s,b={...s,color:c,severity:S,variant:p,colorSeverity:c||S},E=U2(b),P={slots:{closeButton:v.CloseButton,closeIcon:v.CloseIcon,...f},slotProps:{..._,...g}},[L,R]=qe("root",{ref:n,shouldForwardComponentProp:!0,className:Ce(E.root,d),elementType:V2,externalForwardedProps:{...P,...h},ownerState:b,additionalProps:{role:w,elevation:0}}),[A,T]=qe("icon",{className:E.icon,elementType:K2,externalForwardedProps:P,ownerState:b}),[$,H]=qe("message",{className:E.message,elementType:q2,externalForwardedProps:P,ownerState:b}),[N,V]=qe("action",{className:E.action,elementType:G2,externalForwardedProps:P,ownerState:b}),[K,G]=qe("closeButton",{elementType:ur,externalForwardedProps:P,ownerState:b}),[Z,X]=qe("closeIcon",{elementType:W2,externalForwardedProps:P,ownerState:b});return I.jsxs(L,{...R,children:[m!==!1?I.jsx(A,{...T,children:m||C[S]||bv[S]}):null,I.jsx($,{...H,children:u}),a!=null?I.jsx(N,{...V,children:a}):null,a==null&&x?I.jsx(N,{...V,children:I.jsx(K,{size:"small","aria-label":o,title:o,color:"inherit",onClick:x,...G,children:I.jsx(Z,{fontSize:"small",...X})})}):null]})});function X2(e){return Oe("MuiTypography",e)}const Cv=Ae("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),Y2={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},J2=$E(),Q2=e=>{const{align:t,gutterBottom:n,noWrap:s,paragraph:a,variant:u,classes:d}=e,o={root:["root",u,e.align!=="inherit"&&`align${he(t)}`,n&&"gutterBottom",s&&"noWrap",a&&"paragraph"]};return Me(o,X2,d)},Z2=fe("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${he(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(ze(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,s])=>n!=="inherit"&&s&&typeof s=="object").map(([n,s])=>({props:{variant:n},style:s})),...Object.entries(e.palette).filter(Ct()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${he(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),wv={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ct=D.forwardRef(function(t,n){const{color:s,...a}=Ie({props:t,name:"MuiTypography"}),u=!Y2[s],d=J2({...a,...u&&{color:s}}),{align:o="inherit",className:c,component:v,gutterBottom:_=!1,noWrap:m=!1,paragraph:C=!1,variant:x="body1",variantMapping:w=wv,...S}=d,g={...d,align:o,color:s,className:c,component:v,gutterBottom:_,noWrap:m,paragraph:C,variant:x,variantMapping:w},f=v||(C?"p":w[x]||wv[x])||"span",p=Q2(g);return I.jsx(Z2,{as:f,ref:n,className:Ce(p.root,c),...S,ownerState:g,style:{...o!=="inherit"&&{"--Typography-textAlign":o},...S.style}})});function ek(e){return Oe("MuiAppBar",e)}Ae("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const tk=e=>{const{color:t,position:n,classes:s}=e,a={root:["root",`color${he(t)}`,`position${he(n)}`]};return Me(a,ek,s)},xv=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,rk=fe(On,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${he(n.position)}`],t[`color${he(n.color)}`]]}})(ze(({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(Ct(["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?xv(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?xv(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"})}}]}))),df=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiAppBar"}),{className:a,color:u="primary",enableColorOnDark:d=!1,position:o="fixed",...c}=s,v={...s,color:u,position:o,enableColorOnDark:d},_=tk(v);return I.jsx(rk,{square:!0,component:"header",ownerState:v,elevation:4,className:Ce(_.root,a,o==="fixed"&&"mui-fixed"),ref:n,...c})});var _r="top",zr="bottom",Hr="right",yr="left",hf="auto",ga=[_r,zr,Hr,yr],Ls="start",ea="end",nk="clippingParents",Z0="viewport",Lo="popper",ik="reference",Ev=ga.reduce(function(e,t){return e.concat([t+"-"+Ls,t+"-"+ea])},[]),ey=[].concat(ga,[hf]).reduce(function(e,t){return e.concat([t,t+"-"+Ls,t+"-"+ea])},[]),sk="beforeRead",ok="read",ak="afterRead",lk="beforeMain",ck="main",uk="afterMain",dk="beforeWrite",hk="write",fk="afterWrite",pk=[sk,ok,ak,lk,ck,uk,dk,hk,fk];function vn(e){return e?(e.nodeName||"").toLowerCase():null}function Pr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Fi(e){var t=Pr(e).Element;return e instanceof t||e instanceof Element}function Nr(e){var t=Pr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ff(e){if(typeof ShadowRoot>"u")return!1;var t=Pr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function mk(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var s=t.styles[n]||{},a=t.attributes[n]||{},u=t.elements[n];!Nr(u)||!vn(u)||(Object.assign(u.style,s),Object.keys(a).forEach(function(d){var o=a[d];o===!1?u.removeAttribute(d):u.setAttribute(d,o===!0?"":o)}))})}function gk(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(s){var a=t.elements[s],u=t.attributes[s]||{},d=Object.keys(t.styles.hasOwnProperty(s)?t.styles[s]:n[s]),o=d.reduce(function(c,v){return c[v]="",c},{});!Nr(a)||!vn(a)||(Object.assign(a.style,o),Object.keys(u).forEach(function(c){a.removeAttribute(c)}))})}}const vk={name:"applyStyles",enabled:!0,phase:"write",fn:mk,effect:gk,requires:["computeStyles"]};function mn(e){return e.split("-")[0]}var Bi=Math.max,mc=Math.min,Os=Math.round;function bh(){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 ty(){return!/^((?!chrome|android).)*safari/i.test(bh())}function As(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var s=e.getBoundingClientRect(),a=1,u=1;t&&Nr(e)&&(a=e.offsetWidth>0&&Os(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&Os(s.height)/e.offsetHeight||1);var d=Fi(e)?Pr(e):window,o=d.visualViewport,c=!ty()&&n,v=(s.left+(c&&o?o.offsetLeft:0))/a,_=(s.top+(c&&o?o.offsetTop:0))/u,m=s.width/a,C=s.height/u;return{width:m,height:C,top:_,right:v+m,bottom:_+C,left:v,x:v,y:_}}function pf(e){var t=As(e),n=e.offsetWidth,s=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-s)<=1&&(s=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:s}}function ry(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ff(n)){var s=t;do{if(s&&e.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function Ln(e){return Pr(e).getComputedStyle(e)}function _k(e){return["table","td","th"].indexOf(vn(e))>=0}function hi(e){return((Fi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Nc(e){return vn(e)==="html"?e:e.assignedSlot||e.parentNode||(ff(e)?e.host:null)||hi(e)}function kv(e){return!Nr(e)||Ln(e).position==="fixed"?null:e.offsetParent}function yk(e){var t=/firefox/i.test(bh()),n=/Trident/i.test(bh());if(n&&Nr(e)){var s=Ln(e);if(s.position==="fixed")return null}var a=Nc(e);for(ff(a)&&(a=a.host);Nr(a)&&["html","body"].indexOf(vn(a))<0;){var u=Ln(a);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||t&&u.willChange==="filter"||t&&u.filter&&u.filter!=="none")return a;a=a.parentNode}return null}function va(e){for(var t=Pr(e),n=kv(e);n&&_k(n)&&Ln(n).position==="static";)n=kv(n);return n&&(vn(n)==="html"||vn(n)==="body"&&Ln(n).position==="static")?t:n||yk(e)||t}function mf(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Wo(e,t,n){return Bi(e,mc(t,n))}function Sk(e,t,n){var s=Wo(e,t,n);return s>n?n:s}function ny(){return{top:0,right:0,bottom:0,left:0}}function iy(e){return Object.assign({},ny(),e)}function sy(e,t){return t.reduce(function(n,s){return n[s]=e,n},{})}var bk=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,iy(typeof t!="number"?t:sy(t,ga))};function Ck(e){var t,n=e.state,s=e.name,a=e.options,u=n.elements.arrow,d=n.modifiersData.popperOffsets,o=mn(n.placement),c=mf(o),v=[yr,Hr].indexOf(o)>=0,_=v?"height":"width";if(!(!u||!d)){var m=bk(a.padding,n),C=pf(u),x=c==="y"?_r:yr,w=c==="y"?zr:Hr,S=n.rects.reference[_]+n.rects.reference[c]-d[c]-n.rects.popper[_],g=d[c]-n.rects.reference[c],f=va(u),p=f?c==="y"?f.clientHeight||0:f.clientWidth||0:0,h=S/2-g/2,b=m[x],E=p-C[_]-m[w],P=p/2-C[_]/2+h,L=Wo(b,P,E),R=c;n.modifiersData[s]=(t={},t[R]=L,t.centerOffset=L-P,t)}}function wk(e){var t=e.state,n=e.options,s=n.element,a=s===void 0?"[data-popper-arrow]":s;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||ry(t.elements.popper,a)&&(t.elements.arrow=a))}const xk={name:"arrow",enabled:!0,phase:"main",fn:Ck,effect:wk,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ms(e){return e.split("-")[1]}var Ek={top:"auto",right:"auto",bottom:"auto",left:"auto"};function kk(e,t){var n=e.x,s=e.y,a=t.devicePixelRatio||1;return{x:Os(n*a)/a||0,y:Os(s*a)/a||0}}function Rv(e){var t,n=e.popper,s=e.popperRect,a=e.placement,u=e.variation,d=e.offsets,o=e.position,c=e.gpuAcceleration,v=e.adaptive,_=e.roundOffsets,m=e.isFixed,C=d.x,x=C===void 0?0:C,w=d.y,S=w===void 0?0:w,g=typeof _=="function"?_({x,y:S}):{x,y:S};x=g.x,S=g.y;var f=d.hasOwnProperty("x"),p=d.hasOwnProperty("y"),h=yr,b=_r,E=window;if(v){var P=va(n),L="clientHeight",R="clientWidth";if(P===Pr(n)&&(P=hi(n),Ln(P).position!=="static"&&o==="absolute"&&(L="scrollHeight",R="scrollWidth")),P=P,a===_r||(a===yr||a===Hr)&&u===ea){b=zr;var A=m&&P===E&&E.visualViewport?E.visualViewport.height:P[L];S-=A-s.height,S*=c?1:-1}if(a===yr||(a===_r||a===zr)&&u===ea){h=Hr;var T=m&&P===E&&E.visualViewport?E.visualViewport.width:P[R];x-=T-s.width,x*=c?1:-1}}var $=Object.assign({position:o},v&&Ek),H=_===!0?kk({x,y:S},Pr(n)):{x,y:S};if(x=H.x,S=H.y,c){var N;return Object.assign({},$,(N={},N[b]=p?"0":"",N[h]=f?"0":"",N.transform=(E.devicePixelRatio||1)<=1?"translate("+x+"px, "+S+"px)":"translate3d("+x+"px, "+S+"px, 0)",N))}return Object.assign({},$,(t={},t[b]=p?S+"px":"",t[h]=f?x+"px":"",t.transform="",t))}function Rk(e){var t=e.state,n=e.options,s=n.gpuAcceleration,a=s===void 0?!0:s,u=n.adaptive,d=u===void 0?!0:u,o=n.roundOffsets,c=o===void 0?!0:o,v={placement:mn(t.placement),variation:Ms(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Rv(Object.assign({},v,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:d,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Rv(Object.assign({},v,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Pk={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Rk,data:{}};var Fl={passive:!0};function Tk(e){var t=e.state,n=e.instance,s=e.options,a=s.scroll,u=a===void 0?!0:a,d=s.resize,o=d===void 0?!0:d,c=Pr(t.elements.popper),v=[].concat(t.scrollParents.reference,t.scrollParents.popper);return u&&v.forEach(function(_){_.addEventListener("scroll",n.update,Fl)}),o&&c.addEventListener("resize",n.update,Fl),function(){u&&v.forEach(function(_){_.removeEventListener("scroll",n.update,Fl)}),o&&c.removeEventListener("resize",n.update,Fl)}}const Lk={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Tk,data:{}};var Ok={left:"right",right:"left",bottom:"top",top:"bottom"};function ec(e){return e.replace(/left|right|bottom|top/g,function(t){return Ok[t]})}var Ak={start:"end",end:"start"};function Pv(e){return e.replace(/start|end/g,function(t){return Ak[t]})}function gf(e){var t=Pr(e),n=t.pageXOffset,s=t.pageYOffset;return{scrollLeft:n,scrollTop:s}}function vf(e){return As(hi(e)).left+gf(e).scrollLeft}function Mk(e,t){var n=Pr(e),s=hi(e),a=n.visualViewport,u=s.clientWidth,d=s.clientHeight,o=0,c=0;if(a){u=a.width,d=a.height;var v=ty();(v||!v&&t==="fixed")&&(o=a.offsetLeft,c=a.offsetTop)}return{width:u,height:d,x:o+vf(e),y:c}}function Ik(e){var t,n=hi(e),s=gf(e),a=(t=e.ownerDocument)==null?void 0:t.body,u=Bi(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),d=Bi(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),o=-s.scrollLeft+vf(e),c=-s.scrollTop;return Ln(a||n).direction==="rtl"&&(o+=Bi(n.clientWidth,a?a.clientWidth:0)-u),{width:u,height:d,x:o,y:c}}function _f(e){var t=Ln(e),n=t.overflow,s=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+s)}function oy(e){return["html","body","#document"].indexOf(vn(e))>=0?e.ownerDocument.body:Nr(e)&&_f(e)?e:oy(Nc(e))}function Uo(e,t){var n;t===void 0&&(t=[]);var s=oy(e),a=s===((n=e.ownerDocument)==null?void 0:n.body),u=Pr(s),d=a?[u].concat(u.visualViewport||[],_f(s)?s:[]):s,o=t.concat(d);return a?o:o.concat(Uo(Nc(d)))}function Ch(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Dk(e,t){var n=As(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 Tv(e,t,n){return t===Z0?Ch(Mk(e,n)):Fi(t)?Dk(t,n):Ch(Ik(hi(e)))}function Bk(e){var t=Uo(Nc(e)),n=["absolute","fixed"].indexOf(Ln(e).position)>=0,s=n&&Nr(e)?va(e):e;return Fi(s)?t.filter(function(a){return Fi(a)&&ry(a,s)&&vn(a)!=="body"}):[]}function $k(e,t,n,s){var a=t==="clippingParents"?Bk(e):[].concat(t),u=[].concat(a,[n]),d=u[0],o=u.reduce(function(c,v){var _=Tv(e,v,s);return c.top=Bi(_.top,c.top),c.right=mc(_.right,c.right),c.bottom=mc(_.bottom,c.bottom),c.left=Bi(_.left,c.left),c},Tv(e,d,s));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function ay(e){var t=e.reference,n=e.element,s=e.placement,a=s?mn(s):null,u=s?Ms(s):null,d=t.x+t.width/2-n.width/2,o=t.y+t.height/2-n.height/2,c;switch(a){case _r:c={x:d,y:t.y-n.height};break;case zr:c={x:d,y:t.y+t.height};break;case Hr:c={x:t.x+t.width,y:o};break;case yr:c={x:t.x-n.width,y:o};break;default:c={x:t.x,y:t.y}}var v=a?mf(a):null;if(v!=null){var _=v==="y"?"height":"width";switch(u){case Ls:c[v]=c[v]-(t[_]/2-n[_]/2);break;case ea:c[v]=c[v]+(t[_]/2-n[_]/2);break}}return c}function ta(e,t){t===void 0&&(t={});var n=t,s=n.placement,a=s===void 0?e.placement:s,u=n.strategy,d=u===void 0?e.strategy:u,o=n.boundary,c=o===void 0?nk:o,v=n.rootBoundary,_=v===void 0?Z0:v,m=n.elementContext,C=m===void 0?Lo:m,x=n.altBoundary,w=x===void 0?!1:x,S=n.padding,g=S===void 0?0:S,f=iy(typeof g!="number"?g:sy(g,ga)),p=C===Lo?ik:Lo,h=e.rects.popper,b=e.elements[w?p:C],E=$k(Fi(b)?b:b.contextElement||hi(e.elements.popper),c,_,d),P=As(e.elements.reference),L=ay({reference:P,element:h,placement:a}),R=Ch(Object.assign({},h,L)),A=C===Lo?R:P,T={top:E.top-A.top+f.top,bottom:A.bottom-E.bottom+f.bottom,left:E.left-A.left+f.left,right:A.right-E.right+f.right},$=e.modifiersData.offset;if(C===Lo&&$){var H=$[a];Object.keys(T).forEach(function(N){var V=[Hr,zr].indexOf(N)>=0?1:-1,K=[_r,zr].indexOf(N)>=0?"y":"x";T[N]+=H[K]*V})}return T}function Nk(e,t){t===void 0&&(t={});var n=t,s=n.placement,a=n.boundary,u=n.rootBoundary,d=n.padding,o=n.flipVariations,c=n.allowedAutoPlacements,v=c===void 0?ey:c,_=Ms(s),m=_?o?Ev:Ev.filter(function(w){return Ms(w)===_}):ga,C=m.filter(function(w){return v.indexOf(w)>=0});C.length===0&&(C=m);var x=C.reduce(function(w,S){return w[S]=ta(e,{placement:S,boundary:a,rootBoundary:u,padding:d})[mn(S)],w},{});return Object.keys(x).sort(function(w,S){return x[w]-x[S]})}function jk(e){if(mn(e)===hf)return[];var t=ec(e);return[Pv(e),t,Pv(t)]}function Fk(e){var t=e.state,n=e.options,s=e.name;if(!t.modifiersData[s]._skip){for(var a=n.mainAxis,u=a===void 0?!0:a,d=n.altAxis,o=d===void 0?!0:d,c=n.fallbackPlacements,v=n.padding,_=n.boundary,m=n.rootBoundary,C=n.altBoundary,x=n.flipVariations,w=x===void 0?!0:x,S=n.allowedAutoPlacements,g=t.options.placement,f=mn(g),p=f===g,h=c||(p||!w?[ec(g)]:jk(g)),b=[g].concat(h).reduce(function(re,oe){return re.concat(mn(oe)===hf?Nk(t,{placement:oe,boundary:_,rootBoundary:m,padding:v,flipVariations:w,allowedAutoPlacements:S}):oe)},[]),E=t.rects.reference,P=t.rects.popper,L=new Map,R=!0,A=b[0],T=0;T<b.length;T++){var $=b[T],H=mn($),N=Ms($)===Ls,V=[_r,zr].indexOf(H)>=0,K=V?"width":"height",G=ta(t,{placement:$,boundary:_,rootBoundary:m,altBoundary:C,padding:v}),Z=V?N?Hr:yr:N?zr:_r;E[K]>P[K]&&(Z=ec(Z));var X=ec(Z),M=[];if(u&&M.push(G[H]<=0),o&&M.push(G[Z]<=0,G[X]<=0),M.every(function(re){return re})){A=$,R=!1;break}L.set($,M)}if(R)for(var z=w?3:1,B=function(oe){var se=b.find(function(U){var j=L.get(U);if(j)return j.slice(0,oe).every(function(ne){return ne})});if(se)return A=se,"break"},W=z;W>0;W--){var ee=B(W);if(ee==="break")break}t.placement!==A&&(t.modifiersData[s]._skip=!0,t.placement=A,t.reset=!0)}}const zk={name:"flip",enabled:!0,phase:"main",fn:Fk,requiresIfExists:["offset"],data:{_skip:!1}};function Lv(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 Ov(e){return[_r,Hr,zr,yr].some(function(t){return e[t]>=0})}function Hk(e){var t=e.state,n=e.name,s=t.rects.reference,a=t.rects.popper,u=t.modifiersData.preventOverflow,d=ta(t,{elementContext:"reference"}),o=ta(t,{altBoundary:!0}),c=Lv(d,s),v=Lv(o,a,u),_=Ov(c),m=Ov(v);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:v,isReferenceHidden:_,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":_,"data-popper-escaped":m})}const Wk={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Hk};function Uk(e,t,n){var s=mn(e),a=[yr,_r].indexOf(s)>=0?-1:1,u=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,d=u[0],o=u[1];return d=d||0,o=(o||0)*a,[yr,Hr].indexOf(s)>=0?{x:o,y:d}:{x:d,y:o}}function Vk(e){var t=e.state,n=e.options,s=e.name,a=n.offset,u=a===void 0?[0,0]:a,d=ey.reduce(function(_,m){return _[m]=Uk(m,t.rects,u),_},{}),o=d[t.placement],c=o.x,v=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=v),t.modifiersData[s]=d}const Kk={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Vk};function qk(e){var t=e.state,n=e.name;t.modifiersData[n]=ay({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Gk={name:"popperOffsets",enabled:!0,phase:"read",fn:qk,data:{}};function Xk(e){return e==="x"?"y":"x"}function Yk(e){var t=e.state,n=e.options,s=e.name,a=n.mainAxis,u=a===void 0?!0:a,d=n.altAxis,o=d===void 0?!1:d,c=n.boundary,v=n.rootBoundary,_=n.altBoundary,m=n.padding,C=n.tether,x=C===void 0?!0:C,w=n.tetherOffset,S=w===void 0?0:w,g=ta(t,{boundary:c,rootBoundary:v,padding:m,altBoundary:_}),f=mn(t.placement),p=Ms(t.placement),h=!p,b=mf(f),E=Xk(b),P=t.modifiersData.popperOffsets,L=t.rects.reference,R=t.rects.popper,A=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,T=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,H={x:0,y:0};if(P){if(u){var N,V=b==="y"?_r:yr,K=b==="y"?zr:Hr,G=b==="y"?"height":"width",Z=P[b],X=Z+g[V],M=Z-g[K],z=x?-R[G]/2:0,B=p===Ls?L[G]:R[G],W=p===Ls?-R[G]:-L[G],ee=t.elements.arrow,re=x&&ee?pf(ee):{width:0,height:0},oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ny(),se=oe[V],U=oe[K],j=Wo(0,L[G],re[G]),ne=h?L[G]/2-z-j-se-T.mainAxis:B-j-se-T.mainAxis,Q=h?-L[G]/2+z+j+U+T.mainAxis:W+j+U+T.mainAxis,ue=t.elements.arrow&&va(t.elements.arrow),ce=ue?b==="y"?ue.clientTop||0:ue.clientLeft||0:0,_e=(N=$==null?void 0:$[b])!=null?N:0,ge=Z+ne-_e-ce,xe=Z+Q-_e,Ve=Wo(x?mc(X,ge):X,Z,x?Bi(M,xe):M);P[b]=Ve,H[b]=Ve-Z}if(o){var be,ye=b==="x"?_r:yr,We=b==="x"?zr:Hr,je=P[E],He=E==="y"?"height":"width",Ee=je+g[ye],Ze=je-g[We],Ge=[_r,yr].indexOf(f)!==-1,dt=(be=$==null?void 0:$[E])!=null?be:0,Rt=Ge?Ee:je-L[He]-R[He]-dt+T.altAxis,wt=Ge?je+L[He]+R[He]-dt-T.altAxis:Ze,Xe=x&&Ge?Sk(Rt,je,wt):Wo(x?Rt:Ee,je,x?wt:Ze);P[E]=Xe,H[E]=Xe-je}t.modifiersData[s]=H}}const Jk={name:"preventOverflow",enabled:!0,phase:"main",fn:Yk,requiresIfExists:["offset"]};function Qk(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Zk(e){return e===Pr(e)||!Nr(e)?gf(e):Qk(e)}function eR(e){var t=e.getBoundingClientRect(),n=Os(t.width)/e.offsetWidth||1,s=Os(t.height)/e.offsetHeight||1;return n!==1||s!==1}function tR(e,t,n){n===void 0&&(n=!1);var s=Nr(t),a=Nr(t)&&eR(t),u=hi(t),d=As(e,a,n),o={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(s||!s&&!n)&&((vn(t)!=="body"||_f(u))&&(o=Zk(t)),Nr(t)?(c=As(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):u&&(c.x=vf(u))),{x:d.left+o.scrollLeft-c.x,y:d.top+o.scrollTop-c.y,width:d.width,height:d.height}}function rR(e){var t=new Map,n=new Set,s=[];e.forEach(function(u){t.set(u.name,u)});function a(u){n.add(u.name);var d=[].concat(u.requires||[],u.requiresIfExists||[]);d.forEach(function(o){if(!n.has(o)){var c=t.get(o);c&&a(c)}}),s.push(u)}return e.forEach(function(u){n.has(u.name)||a(u)}),s}function nR(e){var t=rR(e);return pk.reduce(function(n,s){return n.concat(t.filter(function(a){return a.phase===s}))},[])}function iR(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function sR(e){var t=e.reduce(function(n,s){var a=n[s.name];return n[s.name]=a?Object.assign({},a,s,{options:Object.assign({},a.options,s.options),data:Object.assign({},a.data,s.data)}):s,n},{});return Object.keys(t).map(function(n){return t[n]})}var Av={placement:"bottom",modifiers:[],strategy:"absolute"};function Mv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(s){return!(s&&typeof s.getBoundingClientRect=="function")})}function oR(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,s=n===void 0?[]:n,a=t.defaultOptions,u=a===void 0?Av:a;return function(o,c,v){v===void 0&&(v=u);var _={placement:"bottom",orderedModifiers:[],options:Object.assign({},Av,u),modifiersData:{},elements:{reference:o,popper:c},attributes:{},styles:{}},m=[],C=!1,x={state:_,setOptions:function(f){var p=typeof f=="function"?f(_.options):f;S(),_.options=Object.assign({},u,_.options,p),_.scrollParents={reference:Fi(o)?Uo(o):o.contextElement?Uo(o.contextElement):[],popper:Uo(c)};var h=nR(sR([].concat(s,_.options.modifiers)));return _.orderedModifiers=h.filter(function(b){return b.enabled}),w(),x.update()},forceUpdate:function(){if(!C){var f=_.elements,p=f.reference,h=f.popper;if(Mv(p,h)){_.rects={reference:tR(p,va(h),_.options.strategy==="fixed"),popper:pf(h)},_.reset=!1,_.placement=_.options.placement,_.orderedModifiers.forEach(function(T){return _.modifiersData[T.name]=Object.assign({},T.data)});for(var b=0;b<_.orderedModifiers.length;b++){if(_.reset===!0){_.reset=!1,b=-1;continue}var E=_.orderedModifiers[b],P=E.fn,L=E.options,R=L===void 0?{}:L,A=E.name;typeof P=="function"&&(_=P({state:_,options:R,name:A,instance:x})||_)}}}},update:iR(function(){return new Promise(function(g){x.forceUpdate(),g(_)})}),destroy:function(){S(),C=!0}};if(!Mv(o,c))return x;x.setOptions(v).then(function(g){!C&&v.onFirstUpdate&&v.onFirstUpdate(g)});function w(){_.orderedModifiers.forEach(function(g){var f=g.name,p=g.options,h=p===void 0?{}:p,b=g.effect;if(typeof b=="function"){var E=b({state:_,name:f,instance:x,options:h}),P=function(){};m.push(E||P)}})}function S(){m.forEach(function(g){return g()}),m=[]}return x}}var aR=[Lk,Gk,Pk,vk,Kk,zk,Jk,xk,Wk],lR=oR({defaultModifiers:aR});function cR(e){return typeof e=="function"?e():e}const ly=D.forwardRef(function(t,n){const{children:s,container:a,disablePortal:u=!1}=t,[d,o]=D.useState(null),c=At(D.isValidElement(s)?Vi(s):null,n);if(Fr(()=>{u||o(cR(a)||document.body)},[a,u]),Fr(()=>{if(d&&!u)return rv(n,d),()=>{rv(n,null)}},[n,d,u]),u){if(D.isValidElement(s)){const v={ref:c};return D.cloneElement(s,v)}return s}return d&&j_.createPortal(s,d)});function uR(e){return Oe("MuiPopper",e)}Ae("MuiPopper",["root"]);function dR(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 wh(e){return typeof e=="function"?e():e}function hR(e){return e.nodeType!==void 0}const fR=e=>{const{classes:t}=e;return Me({root:["root"]},uR,t)},pR={},mR=D.forwardRef(function(t,n){const{anchorEl:s,children:a,direction:u,disablePortal:d,modifiers:o,open:c,placement:v,popperOptions:_,popperRef:m,slotProps:C={},slots:x={},TransitionProps:w,ownerState:S,...g}=t,f=D.useRef(null),p=At(f,n),h=D.useRef(null),b=At(h,m),E=D.useRef(b);Fr(()=>{E.current=b},[b]),D.useImperativeHandle(m,()=>h.current,[]);const P=dR(v,u),[L,R]=D.useState(P),[A,T]=D.useState(wh(s));D.useEffect(()=>{h.current&&h.current.forceUpdate()}),D.useEffect(()=>{s&&T(wh(s))},[s]),Fr(()=>{if(!A||!c)return;const K=X=>{R(X.placement)};let G=[{name:"preventOverflow",options:{altBoundary:d}},{name:"flip",options:{altBoundary:d}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:X})=>{K(X)}}];o!=null&&(G=G.concat(o)),_&&_.modifiers!=null&&(G=G.concat(_.modifiers));const Z=lR(A,f.current,{placement:P,..._,modifiers:G});return E.current(Z),()=>{Z.destroy(),E.current(null)}},[A,d,o,c,_,P]);const $={placement:L};w!==null&&($.TransitionProps=w);const H=fR(t),N=x.root??"div",V=I0({elementType:N,externalSlotProps:C.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:p},ownerState:t,className:H.root});return I.jsx(N,{...V,children:typeof a=="function"?a($):a})}),gR=D.forwardRef(function(t,n){const{anchorEl:s,children:a,container:u,direction:d="ltr",disablePortal:o=!1,keepMounted:c=!1,modifiers:v,open:_,placement:m="bottom",popperOptions:C=pR,popperRef:x,style:w,transition:S=!1,slotProps:g={},slots:f={},...p}=t,[h,b]=D.useState(!0),E=()=>{b(!1)},P=()=>{b(!0)};if(!c&&!_&&(!S||h))return null;let L;if(u)L=u;else if(s){const T=wh(s);L=T&&hR(T)?ir(T).body:ir(null).body}const R=!_&&c&&(!S||h)?"none":void 0,A=S?{in:_,onEnter:E,onExited:P}:void 0;return I.jsx(ly,{disablePortal:o,container:L,children:I.jsx(mR,{anchorEl:s,direction:d,disablePortal:o,modifiers:v,ref:n,open:S?!h:_,placement:m,popperOptions:C,popperRef:x,slotProps:g,slots:f,...p,style:{position:"fixed",top:0,left:0,display:R,...w},TransitionProps:A,children:a})})}),vR=fe(gR,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),cy=D.forwardRef(function(t,n){const s=Bc(),a=Ie({props:t,name:"MuiPopper"}),{anchorEl:u,component:d,components:o,componentsProps:c,container:v,disablePortal:_,keepMounted:m,modifiers:C,open:x,placement:w,popperOptions:S,popperRef:g,transition:f,slots:p,slotProps:h,...b}=a,E=(p==null?void 0:p.root)??(o==null?void 0:o.Root),P={anchorEl:u,container:v,disablePortal:_,keepMounted:m,modifiers:C,open:x,placement:w,popperOptions:S,popperRef:g,transition:f,...b};return I.jsx(vR,{as:d,direction:s?"rtl":"ltr",slots:{root:E},slotProps:h??c,...P,ref:n})}),_R=st(I.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"}),"Cancel");function yR(e){return Oe("MuiChip",e)}const Qe=Ae("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"]),SR=e=>{const{classes:t,disabled:n,size:s,color:a,iconColor:u,onDelete:d,clickable:o,variant:c}=e,v={root:["root",c,n&&"disabled",`size${he(s)}`,`color${he(a)}`,o&&"clickable",o&&`clickableColor${he(a)}`,d&&"deletable",d&&`deletableColor${he(a)}`,`${c}${he(a)}`],label:["label",`label${he(s)}`],avatar:["avatar",`avatar${he(s)}`,`avatarColor${he(a)}`],icon:["icon",`icon${he(s)}`,`iconColor${he(u)}`],deleteIcon:["deleteIcon",`deleteIcon${he(s)}`,`deleteIconColor${he(a)}`,`deleteIcon${he(c)}Color${he(a)}`]};return Me(v,yR,t)},bR=fe("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:s,iconColor:a,clickable:u,onDelete:d,size:o,variant:c}=n;return[{[`& .${Qe.avatar}`]:t.avatar},{[`& .${Qe.avatar}`]:t[`avatar${he(o)}`]},{[`& .${Qe.avatar}`]:t[`avatarColor${he(s)}`]},{[`& .${Qe.icon}`]:t.icon},{[`& .${Qe.icon}`]:t[`icon${he(o)}`]},{[`& .${Qe.icon}`]:t[`iconColor${he(a)}`]},{[`& .${Qe.deleteIcon}`]:t.deleteIcon},{[`& .${Qe.deleteIcon}`]:t[`deleteIcon${he(o)}`]},{[`& .${Qe.deleteIcon}`]:t[`deleteIconColor${he(s)}`]},{[`& .${Qe.deleteIcon}`]:t[`deleteIcon${he(c)}Color${he(s)}`]},t.root,t[`size${he(o)}`],t[`color${he(s)}`],u&&t.clickable,u&&s!=="default"&&t[`clickableColor${he(s)})`],d&&t.deletable,d&&s!=="default"&&t[`deletableColor${he(s)}`],t[c],t[`${c}${he(s)}`]]}})(ze(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Qe.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Qe.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Qe.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Qe.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Qe.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Qe.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Qe.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:nt(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)`:nt(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Qe.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Qe.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Ct(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Qe.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:nt(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${Qe.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Qe.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Qe.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:nt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(Ct(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Qe.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}))`:nt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Qe.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:nt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Ct(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Qe.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]}`,[`&.${Qe.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Qe.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Qe.avatar}`]:{marginLeft:4},[`& .${Qe.avatarSmall}`]:{marginLeft:2},[`& .${Qe.icon}`]:{marginLeft:4},[`& .${Qe.iconSmall}`]:{marginLeft:2},[`& .${Qe.deleteIcon}`]:{marginRight:5},[`& .${Qe.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Ct()).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)`:nt(e.palette[n].main,.7)}`,[`&.${Qe.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:nt(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${Qe.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:nt(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${Qe.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:nt(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),CR=fe("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:s}=n;return[t.label,t[`label${he(s)}`]]}})({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 Iv(e){return e.key==="Backspace"||e.key==="Delete"}const ks=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiChip"}),{avatar:a,className:u,clickable:d,color:o="default",component:c,deleteIcon:v,disabled:_=!1,icon:m,label:C,onClick:x,onDelete:w,onKeyDown:S,onKeyUp:g,size:f="medium",variant:p="filled",tabIndex:h,skipFocusWhenDisabled:b=!1,...E}=s,P=D.useRef(null),L=At(P,n),R=M=>{M.stopPropagation(),w&&w(M)},A=M=>{M.currentTarget===M.target&&Iv(M)&&M.preventDefault(),S&&S(M)},T=M=>{M.currentTarget===M.target&&w&&Iv(M)&&w(M),g&&g(M)},$=d!==!1&&x?!0:d,H=$||w?Ts:c||"div",N={...s,component:H,disabled:_,size:f,color:o,iconColor:D.isValidElement(m)&&m.props.color||o,onDelete:!!w,clickable:$,variant:p},V=SR(N),K=H===Ts?{component:c||"div",focusVisibleClassName:V.focusVisible,...w&&{disableRipple:!0}}:{};let G=null;w&&(G=v&&D.isValidElement(v)?D.cloneElement(v,{className:Ce(v.props.className,V.deleteIcon),onClick:R}):I.jsx(_R,{className:Ce(V.deleteIcon),onClick:R}));let Z=null;a&&D.isValidElement(a)&&(Z=D.cloneElement(a,{className:Ce(V.avatar,a.props.className)}));let X=null;return m&&D.isValidElement(m)&&(X=D.cloneElement(m,{className:Ce(V.icon,m.props.className)})),I.jsxs(bR,{as:H,className:Ce(V.root,u),disabled:$&&_?!0:void 0,onClick:x,onKeyDown:A,onKeyUp:T,ref:L,tabIndex:b&&_?-1:h,ownerState:N,...K,...E,children:[Z||X,I.jsx(CR,{className:Ce(V.label),ownerState:N,children:C}),G]})});function zl(e){return parseInt(e,10)||0}const wR={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function xR(e){for(const t in e)return!1;return!0}function Dv(e){return xR(e)||e.outerHeightStyle===0&&!e.overflowing}const ER=D.forwardRef(function(t,n){const{onChange:s,maxRows:a,minRows:u=1,style:d,value:o,...c}=t,{current:v}=D.useRef(o!=null),_=D.useRef(null),m=At(n,_),C=D.useRef(null),x=D.useRef(null),w=D.useCallback(()=>{const h=_.current,b=x.current;if(!h||!b)return;const P=Tn(h).getComputedStyle(h);if(P.width==="0px")return{outerHeightStyle:0,overflowing:!1};b.style.width=P.width,b.value=h.value||t.placeholder||"x",b.value.slice(-1)===`
|
|
223
|
+
`&&(b.value+=" ");const L=P.boxSizing,R=zl(P.paddingBottom)+zl(P.paddingTop),A=zl(P.borderBottomWidth)+zl(P.borderTopWidth),T=b.scrollHeight;b.value="x";const $=b.scrollHeight;let H=T;u&&(H=Math.max(Number(u)*$,H)),a&&(H=Math.min(Number(a)*$,H)),H=Math.max(H,$);const N=H+(L==="border-box"?R+A:0),V=Math.abs(H-T)<=1;return{outerHeightStyle:N,overflowing:V}},[a,u,t.placeholder]),S=$r(()=>{const h=_.current,b=w();if(!h||!b||Dv(b))return!1;const E=b.outerHeightStyle;return C.current!=null&&C.current!==E}),g=D.useCallback(()=>{const h=_.current,b=w();if(!h||!b||Dv(b))return;const E=b.outerHeightStyle;C.current!==E&&(C.current=E,h.style.height=`${E}px`),h.style.overflow=b.overflowing?"hidden":""},[w]),f=D.useRef(-1);Fr(()=>{const h=P0(g),b=_==null?void 0:_.current;if(!b)return;const E=Tn(b);E.addEventListener("resize",h);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(()=>{S()&&(P.unobserve(b),cancelAnimationFrame(f.current),g(),f.current=requestAnimationFrame(()=>{P.observe(b)}))}),P.observe(b)),()=>{h.clear(),cancelAnimationFrame(f.current),E.removeEventListener("resize",h),P&&P.disconnect()}},[w,g,S]),Fr(()=>{g()});const p=h=>{v||g(),s&&s(h)};return I.jsxs(D.Fragment,{children:[I.jsx("textarea",{value:o,onChange:p,ref:m,rows:u,style:d,...c}),I.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:x,tabIndex:-1,style:{...wR.shadow,...d,paddingTop:0,paddingBottom:0}})]})});function ra(e){return typeof e=="string"}function Ns({props:e,states:t,muiFormControl:n}){return t.reduce((s,a)=>(s[a]=e[a],n&&typeof e[a]>"u"&&(s[a]=n[a]),s),{})}const jc=D.createContext(void 0);function fi(){return D.useContext(jc)}function Bv(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function gc(e,t=!1){return e&&(Bv(e.value)&&e.value!==""||t&&Bv(e.defaultValue)&&e.defaultValue!=="")}function kR(e){return e.startAdornment}function RR(e){return Oe("MuiInputBase",e)}const Is=Ae("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var $v;const Fc=(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${he(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},zc=(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]},PR=e=>{const{classes:t,color:n,disabled:s,error:a,endAdornment:u,focused:d,formControl:o,fullWidth:c,hiddenLabel:v,multiline:_,readOnly:m,size:C,startAdornment:x,type:w}=e,S={root:["root",`color${he(n)}`,s&&"disabled",a&&"error",c&&"fullWidth",d&&"focused",o&&"formControl",C&&C!=="medium"&&`size${he(C)}`,_&&"multiline",x&&"adornedStart",u&&"adornedEnd",v&&"hiddenLabel",m&&"readOnly"],input:["input",s&&"disabled",w==="search"&&"inputTypeSearch",_&&"inputMultiline",C==="small"&&"inputSizeSmall",v&&"inputHiddenLabel",x&&"inputAdornedStart",u&&"inputAdornedEnd",m&&"readOnly"]};return Me(S,RR,t)},Hc=fe("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Fc})(ze(({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",[`&.${Is.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%"}}]}))),Wc=fe("input",{name:"MuiInputBase",slot:"Input",overridesResolver:zc})(ze(({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})},s={opacity:"0 !important"},a=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] + .${Is.formControl} &`]:{"&::-webkit-input-placeholder":s,"&::-moz-placeholder":s,"&::-ms-input-placeholder":s,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${Is.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:u})=>!u.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:u})=>u.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Nv=af({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),yf=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:u,autoFocus:d,className:o,color:c,components:v={},componentsProps:_={},defaultValue:m,disabled:C,disableInjectingGlobalStyles:x,endAdornment:w,error:S,fullWidth:g=!1,id:f,inputComponent:p="input",inputProps:h={},inputRef:b,margin:E,maxRows:P,minRows:L,multiline:R=!1,name:A,onBlur:T,onChange:$,onClick:H,onFocus:N,onKeyDown:V,onKeyUp:K,placeholder:G,readOnly:Z,renderSuffix:X,rows:M,size:z,slotProps:B={},slots:W={},startAdornment:ee,type:re="text",value:oe,...se}=s,U=h.value!=null?h.value:oe,{current:j}=D.useRef(U!=null),ne=D.useRef(),Q=D.useCallback(De=>{},[]),ue=At(ne,b,h.ref,Q),[ce,_e]=D.useState(!1),ge=fi(),xe=Ns({props:s,muiFormControl:ge,states:["color","disabled","error","hiddenLabel","size","required","filled"]});xe.focused=ge?ge.focused:ce,D.useEffect(()=>{!ge&&C&&ce&&(_e(!1),T&&T())},[ge,C,ce,T]);const Ve=ge&&ge.onFilled,be=ge&&ge.onEmpty,ye=D.useCallback(De=>{gc(De)?Ve&&Ve():be&&be()},[Ve,be]);Fr(()=>{j&&ye({value:U})},[U,ye,j]);const We=De=>{N&&N(De),h.onFocus&&h.onFocus(De),ge&&ge.onFocus?ge.onFocus(De):_e(!0)},je=De=>{T&&T(De),h.onBlur&&h.onBlur(De),ge&&ge.onBlur?ge.onBlur(De):_e(!1)},He=(De,...Fe)=>{if(!j){const ht=De.target||ne.current;if(ht==null)throw new Error(Pn(1));ye({value:ht.value})}h.onChange&&h.onChange(De,...Fe),$&&$(De,...Fe)};D.useEffect(()=>{ye(ne.current)},[]);const Ee=De=>{ne.current&&De.currentTarget===De.target&&ne.current.focus(),H&&H(De)};let Ze=p,Ge=h;R&&Ze==="input"&&(M?Ge={type:void 0,minRows:M,maxRows:M,...Ge}:Ge={type:void 0,maxRows:P,minRows:L,...Ge},Ze=ER);const dt=De=>{ye(De.animationName==="mui-auto-fill-cancel"?ne.current:{value:"x"})};D.useEffect(()=>{ge&&ge.setAdornedStart(!!ee)},[ge,ee]);const Rt={...s,color:xe.color||"primary",disabled:xe.disabled,endAdornment:w,error:xe.error,focused:xe.focused,formControl:ge,fullWidth:g,hiddenLabel:xe.hiddenLabel,multiline:R,size:xe.size,startAdornment:ee,type:re},wt=PR(Rt),Xe=W.root||v.Root||Hc,et=B.root||_.root||{},Ye=W.input||v.Input||Wc;return Ge={...Ge,...B.input??_.input},I.jsxs(D.Fragment,{children:[!x&&typeof Nv=="function"&&($v||($v=I.jsx(Nv,{}))),I.jsxs(Xe,{...et,ref:n,onClick:Ee,...se,...!ra(Xe)&&{ownerState:{...Rt,...et.ownerState}},className:Ce(wt.root,et.className,o,Z&&"MuiInputBase-readOnly"),children:[ee,I.jsx(jc.Provider,{value:null,children:I.jsx(Ye,{"aria-invalid":xe.error,"aria-describedby":a,autoComplete:u,autoFocus:d,defaultValue:m,disabled:xe.disabled,id:f,onAnimationStart:dt,name:A,placeholder:G,readOnly:Z,required:xe.required,rows:M,value:U,onKeyDown:V,onKeyUp:K,type:re,...Ge,...!ra(Ye)&&{as:Ze,ownerState:{...Rt,...Ge.ownerState}},ref:ue,className:Ce(wt.input,Ge.className,Z&&"MuiInputBase-readOnly"),onBlur:je,onChange:He,onFocus:We})}),w,X?X({...xe,startAdornment:ee}):null]})]})});function TR(e){return Oe("MuiInput",e)}const Oo={...Is,...Ae("MuiInput",["root","underline","input"])};function LR(e){return Oe("MuiOutlinedInput",e)}const on={...Is,...Ae("MuiOutlinedInput",["root","notchedOutline","input"])};function OR(e){return Oe("MuiFilledInput",e)}const Ri={...Is,...Ae("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},AR=st(I.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),MR=st(I.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function IR(e){return Oe("MuiAvatar",e)}Ae("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const DR=e=>{const{classes:t,variant:n,colorDefault:s}=e;return Me({root:["root",n,s&&"colorDefault"],img:["img"],fallback:["fallback"]},IR,t)},BR=fe("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(ze(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),$R=fe("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),NR=fe(MR,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function jR({crossOrigin:e,referrerPolicy:t,src:n,srcSet:s}){const[a,u]=D.useState(!1);return D.useEffect(()=>{if(!n&&!s)return;u(!1);let d=!0;const o=new Image;return o.onload=()=>{d&&u("loaded")},o.onerror=()=>{d&&u("error")},o.crossOrigin=e,o.referrerPolicy=t,o.src=n,s&&(o.srcset=s),()=>{d=!1}},[e,t,n,s]),a}const FR=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiAvatar"}),{alt:a,children:u,className:d,component:o="div",slots:c={},slotProps:v={},imgProps:_,sizes:m,src:C,srcSet:x,variant:w="circular",...S}=s;let g=null;const f={...s,component:o,variant:w},p=jR({..._,...typeof v.img=="function"?v.img(f):v.img,src:C,srcSet:x}),h=C||x,b=h&&p!=="error";f.colorDefault=!b,delete f.ownerState;const E=DR(f),[P,L]=qe("img",{className:E.img,elementType:$R,externalForwardedProps:{slots:c,slotProps:{img:{..._,...v.img}}},additionalProps:{alt:a,src:C,srcSet:x,sizes:m},ownerState:f});return b?g=I.jsx(P,{...L}):u||u===0?g=u:h&&a?g=a[0]:g=I.jsx(NR,{ownerState:f,className:E.fallback}),I.jsx(BR,{as:o,className:Ce(E.root,d),ref:n,...S,ownerState:f,children:g})}),zR={entering:{opacity:1},entered:{opacity:1}},xh=D.forwardRef(function(t,n){const s=di(),a={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{addEndListener:u,appear:d=!0,children:o,easing:c,in:v,onEnter:_,onEntered:m,onEntering:C,onExit:x,onExited:w,onExiting:S,style:g,timeout:f=a,TransitionComponent:p=Qr,...h}=t,b=D.useRef(null),E=At(b,Vi(o),n),P=V=>K=>{if(V){const G=b.current;K===void 0?V(G):V(G,K)}},L=P(C),R=P((V,K)=>{Q0(V);const G=Ps({style:g,timeout:f,easing:c},{mode:"enter"});V.style.webkitTransition=s.transitions.create("opacity",G),V.style.transition=s.transitions.create("opacity",G),_&&_(V,K)}),A=P(m),T=P(S),$=P(V=>{const K=Ps({style:g,timeout:f,easing:c},{mode:"exit"});V.style.webkitTransition=s.transitions.create("opacity",K),V.style.transition=s.transitions.create("opacity",K),x&&x(V)}),H=P(w),N=V=>{u&&u(b.current,V)};return I.jsx(p,{appear:d,in:v,nodeRef:b,onEnter:R,onEntered:A,onEntering:L,onExit:$,onExited:H,onExiting:T,addEndListener:N,timeout:f,...h,children:(V,{ownerState:K,...G})=>D.cloneElement(o,{style:{opacity:0,visibility:V==="exited"&&!v?"hidden":void 0,...zR[V],...g,...o.props.style},ref:E,...G})})});function HR(e){return Oe("MuiBackdrop",e)}Ae("MuiBackdrop",["root","invisible"]);const WR=e=>{const{classes:t,invisible:n}=e;return Me({root:["root",n&&"invisible"]},HR,t)},UR=fe("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"}}]}),uy=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiBackdrop"}),{children:a,className:u,component:d="div",invisible:o=!1,open:c,components:v={},componentsProps:_={},slotProps:m={},slots:C={},TransitionComponent:x,transitionDuration:w,...S}=s,g={...s,component:d,invisible:o},f=WR(g),p={transition:x,root:v.Root,...C},h={..._,...m},b={slots:p,slotProps:h},[E,P]=qe("root",{elementType:UR,externalForwardedProps:b,className:Ce(f.root,u),ownerState:g}),[L,R]=qe("transition",{elementType:xh,externalForwardedProps:b,ownerState:g});return I.jsx(L,{in:c,timeout:w,...S,...R,children:I.jsx(E,{"aria-hidden":!0,...P,classes:f,ref:n,children:a})})}),VR=Ae("MuiBox",["root"]),KR=$c(),bt=hx({themeId:pn,defaultTheme:KR,defaultClassName:VR.root,generateClassName:b0.generate});function qR(e){return Oe("MuiButton",e)}const Pi=Ae("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"]),GR=D.createContext({}),XR=D.createContext(void 0),YR=e=>{const{color:t,disableElevation:n,fullWidth:s,size:a,variant:u,loading:d,loadingPosition:o,classes:c}=e,v={root:["root",d&&"loading",u,`${u}${he(t)}`,`size${he(a)}`,`${u}Size${he(a)}`,`color${he(t)}`,n&&"disableElevation",s&&"fullWidth",d&&`loadingPosition${he(o)}`],startIcon:["icon","startIcon",`iconSize${he(a)}`],endIcon:["icon","endIcon",`iconSize${he(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},_=Me(v,qR,c);return{...c,..._}},dy=[{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}}}],JR=fe(Ts,{shouldForwardProp:e=>dr(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${he(n.color)}`],t[`size${he(n.size)}`],t[`${n.variant}Size${he(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(ze(({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"},[`&.${Pi.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]},[`&.${Pi.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Pi.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)",[`&.${Pi.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(Ct()).map(([s])=>({props:{color:s},style:{"--variant-textColor":(e.vars||e).palette[s].main,"--variant-outlinedColor":(e.vars||e).palette[s].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[s].mainChannel} / 0.5)`:nt(e.palette[s].main,.5),"--variant-containedColor":(e.vars||e).palette[s].contrastText,"--variant-containedBg":(e.vars||e).palette[s].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[s].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[s].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:nt(e.palette[s].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[s].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[s].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:nt(e.palette[s].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})`:nt(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:nt(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"},[`&.${Pi.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Pi.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}),[`&.${Pi.loading}`]:{color:"transparent"}}}]}})),QR=fe("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${he(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}},...dy]})),ZR=fe("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${he(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}},...dy]})),eP=fe("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.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}}]})),jv=fe("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(e,t)=>t.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),Yt=D.forwardRef(function(t,n){const s=D.useContext(GR),a=D.useContext(XR),u=Qo(s,t),d=Ie({props:u,name:"MuiButton"}),{children:o,color:c="primary",component:v="button",className:_,disabled:m=!1,disableElevation:C=!1,disableFocusRipple:x=!1,endIcon:w,focusVisibleClassName:S,fullWidth:g=!1,id:f,loading:p=null,loadingIndicator:h,loadingPosition:b="center",size:E="medium",startIcon:P,type:L,variant:R="text",...A}=d,T=Ui(f),$=h??I.jsx(Ki,{"aria-labelledby":T,color:"inherit",size:16}),H={...d,color:c,component:v,disabled:m,disableElevation:C,disableFocusRipple:x,fullWidth:g,loading:p,loadingIndicator:$,loadingPosition:b,size:E,type:L,variant:R},N=YR(H),V=(P||p&&b==="start")&&I.jsx(QR,{className:N.startIcon,ownerState:H,children:P||I.jsx(jv,{className:N.loadingIconPlaceholder,ownerState:H})}),K=(w||p&&b==="end")&&I.jsx(ZR,{className:N.endIcon,ownerState:H,children:w||I.jsx(jv,{className:N.loadingIconPlaceholder,ownerState:H})}),G=a||"",Z=typeof p=="boolean"?I.jsx("span",{className:N.loadingWrapper,style:{display:"contents"},children:p&&I.jsx(eP,{className:N.loadingIndicator,ownerState:H,children:$})}):null;return I.jsxs(JR,{ownerState:H,className:Ce(s.className,N.root,_,G),component:v,disabled:m||p,focusRipple:!x,focusVisibleClassName:Ce(N.focusVisible,S),ref:n,type:L,id:p?T:f,...A,classes:N,children:[V,b!=="end"&&Z,o,b==="end"&&Z,K]})});function tP(e){return Oe("PrivateSwitchBase",e)}Ae("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const rP=e=>{const{classes:t,checked:n,disabled:s,edge:a}=e,u={root:["root",n&&"checked",s&&"disabled",a&&`edge${he(a)}`],input:["input"]};return Me(u,tP,t)},nP=fe(Ts,{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}}]}),iP=fe("input",{name:"MuiSwitchBase",shouldForwardProp:dr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),sP=D.forwardRef(function(t,n){const{autoFocus:s,checked:a,checkedIcon:u,defaultChecked:d,disabled:o,disableFocusRipple:c=!1,edge:v=!1,icon:_,id:m,inputProps:C,inputRef:x,name:w,onBlur:S,onChange:g,onFocus:f,readOnly:p,required:h=!1,tabIndex:b,type:E,value:P,slots:L={},slotProps:R={},...A}=t,[T,$]=cc({controlled:a,default:!!d,name:"SwitchBase",state:"checked"}),H=fi(),N=oe=>{f&&f(oe),H&&H.onFocus&&H.onFocus(oe)},V=oe=>{S&&S(oe),H&&H.onBlur&&H.onBlur(oe)},K=oe=>{if(oe.nativeEvent.defaultPrevented)return;const se=oe.target.checked;$(se),g&&g(oe,se)};let G=o;H&&typeof G>"u"&&(G=H.disabled);const Z=E==="checkbox"||E==="radio",X={...t,checked:T,disabled:G,disableFocusRipple:c,edge:v},M=rP(X),z={slots:L,slotProps:{input:C,...R}},[B,W]=qe("root",{ref:n,elementType:nP,className:M.root,shouldForwardComponentProp:!0,externalForwardedProps:{...z,component:"span",...A},getSlotProps:oe=>({...oe,onFocus:se=>{var U;(U=oe.onFocus)==null||U.call(oe,se),N(se)},onBlur:se=>{var U;(U=oe.onBlur)==null||U.call(oe,se),V(se)}}),ownerState:X,additionalProps:{centerRipple:!0,focusRipple:!c,disabled:G,role:void 0,tabIndex:null}}),[ee,re]=qe("input",{ref:x,elementType:iP,className:M.input,externalForwardedProps:z,getSlotProps:oe=>({onChange:se=>{var U;(U=oe.onChange)==null||U.call(oe,se),K(se)}}),ownerState:X,additionalProps:{autoFocus:s,checked:a,defaultChecked:d,disabled:G,id:Z?m:void 0,name:w,readOnly:p,required:h,tabIndex:b,type:E,...E==="checkbox"&&P===void 0?{}:{value:P}}});return I.jsxs(B,{...W,children:[I.jsx(ee,{...re}),T?u:_]})}),oP=st(I.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"}),"CheckBoxOutlineBlank"),aP=st(I.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"}),"CheckBox"),lP=st(I.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"}),"IndeterminateCheckBox");function cP(e){return Oe("MuiCheckbox",e)}const Vd=Ae("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),uP=e=>{const{classes:t,indeterminate:n,color:s,size:a}=e,u={root:["root",n&&"indeterminate",`color${he(s)}`,`size${he(a)}`]},d=Me(u,cP,t);return{...t,...d}},dP=fe(sP,{shouldForwardProp:e=>dr(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${he(n.size)}`],n.color!=="default"&&t[`color${he(n.color)}`]]}})(ze(({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})`:nt(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Ct()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:nt(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Ct()).map(([t])=>({props:{color:t},style:{[`&.${Vd.checked}, &.${Vd.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Vd.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),hP=I.jsx(aP,{}),fP=I.jsx(oP,{}),pP=I.jsx(lP,{}),mP=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiCheckbox"}),{checkedIcon:a=hP,color:u="primary",icon:d=fP,indeterminate:o=!1,indeterminateIcon:c=pP,inputProps:v,size:_="medium",disableRipple:m=!1,className:C,slots:x={},slotProps:w={},...S}=s,g=o?c:d,f=o?c:a,p={...s,disableRipple:m,color:u,indeterminate:o,size:_},h=uP(p),b=w.input??v,[E,P]=qe("root",{ref:n,elementType:dP,className:Ce(h.root,C),shouldForwardComponentProp:!0,externalForwardedProps:{slots:x,slotProps:w,...S},ownerState:p,additionalProps:{type:"checkbox",icon:D.cloneElement(g,{fontSize:g.props.fontSize??_}),checkedIcon:D.cloneElement(f,{fontSize:f.props.fontSize??_}),disableRipple:m,slots:x,slotProps:{input:X0(typeof b=="function"?b(p):b,{"data-indeterminate":o})}}});return I.jsx(E,{...P,classes:h})});function Fv(e){return e.substring(2).toLowerCase()}function gP(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function vP(e){const{children:t,disableReactTree:n=!1,mouseEvent:s="onClick",onClickAway:a,touchEvent:u="onTouchEnd"}=e,d=D.useRef(!1),o=D.useRef(null),c=D.useRef(!1),v=D.useRef(!1);D.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const _=At(Vi(t),o),m=$r(w=>{const S=v.current;v.current=!1;const g=ir(o.current);if(!c.current||!o.current||"clientX"in w&&gP(w,g))return;if(d.current){d.current=!1;return}let f;w.composedPath?f=w.composedPath().includes(o.current):f=!g.documentElement.contains(w.target)||o.current.contains(w.target),!f&&(n||!S)&&a(w)}),C=w=>S=>{v.current=!0;const g=t.props[w];g&&g(S)},x={ref:_};return u!==!1&&(x[u]=C(u)),D.useEffect(()=>{if(u!==!1){const w=Fv(u),S=ir(o.current),g=()=>{d.current=!0};return S.addEventListener(w,m),S.addEventListener("touchmove",g),()=>{S.removeEventListener(w,m),S.removeEventListener("touchmove",g)}}},[m,u]),s!==!1&&(x[s]=C(s)),D.useEffect(()=>{if(s!==!1){const w=Fv(s),S=ir(o.current);return S.addEventListener(w,m),()=>{S.removeEventListener(w,m)}}},[m,s]),D.cloneElement(t,x)}const _P=oE({createStyledComponent:fe("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${he(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Ie({props:e,name:"MuiContainer"})});function yP(e){const t=ir(e);return t.body===e?Tn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Vo(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function zv(e){return parseInt(Tn(e).getComputedStyle(e).paddingRight,10)||0}function SP(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),s=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||s}function Hv(e,t,n,s,a){const u=[t,n,...s];[].forEach.call(e.children,d=>{const o=!u.includes(d),c=!SP(d);o&&c&&Vo(d,a)})}function Kd(e,t){let n=-1;return e.some((s,a)=>t(s)?(n=a,!0):!1),n}function bP(e,t){const n=[],s=e.container;if(!t.disableScrollLock){if(yP(s)){const d=L0(Tn(s));n.push({value:s.style.paddingRight,property:"padding-right",el:s}),s.style.paddingRight=`${zv(s)+d}px`;const o=ir(s).querySelectorAll(".mui-fixed");[].forEach.call(o,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${zv(c)+d}px`})}let u;if(s.parentNode instanceof DocumentFragment)u=ir(s).body;else{const d=s.parentElement,o=Tn(s);u=(d==null?void 0:d.nodeName)==="HTML"&&o.getComputedStyle(d).overflowY==="scroll"?d:s}n.push({value:u.style.overflow,property:"overflow",el:u},{value:u.style.overflowX,property:"overflow-x",el:u},{value:u.style.overflowY,property:"overflow-y",el:u}),u.style.overflow="hidden"}return()=>{n.forEach(({value:u,el:d,property:o})=>{u?d.style.setProperty(o,u):d.style.removeProperty(o)})}}function CP(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class wP{constructor(){this.modals=[],this.containers=[]}add(t,n){let s=this.modals.indexOf(t);if(s!==-1)return s;s=this.modals.length,this.modals.push(t),t.modalRef&&Vo(t.modalRef,!1);const a=CP(n);Hv(n,t.mount,t.modalRef,a,!0);const u=Kd(this.containers,d=>d.container===n);return u!==-1?(this.containers[u].modals.push(t),s):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:a}),s)}mount(t,n){const s=Kd(this.containers,u=>u.modals.includes(t)),a=this.containers[s];a.restore||(a.restore=bP(a,n))}remove(t,n=!0){const s=this.modals.indexOf(t);if(s===-1)return s;const a=Kd(this.containers,d=>d.modals.includes(t)),u=this.containers[a];if(u.modals.splice(u.modals.indexOf(t),1),this.modals.splice(s,1),u.modals.length===0)u.restore&&u.restore(),t.modalRef&&Vo(t.modalRef,n),Hv(u.container,t.mount,t.modalRef,u.hiddenSiblings,!1),this.containers.splice(a,1);else{const d=u.modals[u.modals.length-1];d.modalRef&&Vo(d.modalRef,!1)}return s}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const xP=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function EP(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 kP(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=s=>e.ownerDocument.querySelector(`input[type="radio"]${s}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function RP(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||kP(e))}function PP(e){const t=[],n=[];return Array.from(e.querySelectorAll(xP)).forEach((s,a)=>{const u=EP(s);u===-1||!RP(s)||(u===0?t.push(s):n.push({documentOrder:a,tabIndex:u,node:s}))}),n.sort((s,a)=>s.tabIndex===a.tabIndex?s.documentOrder-a.documentOrder:s.tabIndex-a.tabIndex).map(s=>s.node).concat(t)}function TP(){return!0}function LP(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:s=!1,disableRestoreFocus:a=!1,getTabbable:u=PP,isEnabled:d=TP,open:o}=e,c=D.useRef(!1),v=D.useRef(null),_=D.useRef(null),m=D.useRef(null),C=D.useRef(null),x=D.useRef(!1),w=D.useRef(null),S=At(Vi(t),w),g=D.useRef(null);D.useEffect(()=>{!o||!w.current||(x.current=!n)},[n,o]),D.useEffect(()=>{if(!o||!w.current)return;const h=ir(w.current);return w.current.contains(h.activeElement)||(w.current.hasAttribute("tabIndex")||w.current.setAttribute("tabIndex","-1"),x.current&&w.current.focus()),()=>{a||(m.current&&m.current.focus&&(c.current=!0,m.current.focus()),m.current=null)}},[o]),D.useEffect(()=>{if(!o||!w.current)return;const h=ir(w.current),b=L=>{g.current=L,!(s||!d()||L.key!=="Tab")&&h.activeElement===w.current&&L.shiftKey&&(c.current=!0,_.current&&_.current.focus())},E=()=>{var A,T;const L=w.current;if(L===null)return;if(!h.hasFocus()||!d()||c.current){c.current=!1;return}if(L.contains(h.activeElement)||s&&h.activeElement!==v.current&&h.activeElement!==_.current)return;if(h.activeElement!==C.current)C.current=null;else if(C.current!==null)return;if(!x.current)return;let R=[];if((h.activeElement===v.current||h.activeElement===_.current)&&(R=u(w.current)),R.length>0){const $=!!((A=g.current)!=null&&A.shiftKey&&((T=g.current)==null?void 0:T.key)==="Tab"),H=R[0],N=R[R.length-1];typeof H!="string"&&typeof N!="string"&&($?N.focus():H.focus())}else L.focus()};h.addEventListener("focusin",E),h.addEventListener("keydown",b,!0);const P=setInterval(()=>{h.activeElement&&h.activeElement.tagName==="BODY"&&E()},50);return()=>{clearInterval(P),h.removeEventListener("focusin",E),h.removeEventListener("keydown",b,!0)}},[n,s,a,d,o,u]);const f=h=>{m.current===null&&(m.current=h.relatedTarget),x.current=!0,C.current=h.target;const b=t.props.onFocus;b&&b(h)},p=h=>{m.current===null&&(m.current=h.relatedTarget),x.current=!0};return I.jsxs(D.Fragment,{children:[I.jsx("div",{tabIndex:o?0:-1,onFocus:p,ref:v,"data-testid":"sentinelStart"}),D.cloneElement(t,{ref:S,onFocus:f}),I.jsx("div",{tabIndex:o?0:-1,onFocus:p,ref:_,"data-testid":"sentinelEnd"})]})}function OP(e){return typeof e=="function"?e():e}function AP(e){return e?e.props.hasOwnProperty("in"):!1}const Wv=()=>{},Hl=new wP;function MP(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:s=!1,closeAfterTransition:a=!1,onTransitionEnter:u,onTransitionExited:d,children:o,onClose:c,open:v,rootRef:_}=e,m=D.useRef({}),C=D.useRef(null),x=D.useRef(null),w=At(x,_),[S,g]=D.useState(!v),f=AP(o);let p=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(p=!1);const h=()=>ir(C.current),b=()=>(m.current.modalRef=x.current,m.current.mount=C.current,m.current),E=()=>{Hl.mount(b(),{disableScrollLock:s}),x.current&&(x.current.scrollTop=0)},P=$r(()=>{const K=OP(t)||h().body;Hl.add(b(),K),x.current&&E()}),L=()=>Hl.isTopModal(b()),R=$r(K=>{C.current=K,K&&(v&&L()?E():x.current&&Vo(x.current,p))}),A=D.useCallback(()=>{Hl.remove(b(),p)},[p]);D.useEffect(()=>()=>{A()},[A]),D.useEffect(()=>{v?P():(!f||!a)&&A()},[v,A,f,a,P]);const T=K=>G=>{var Z;(Z=K.onKeyDown)==null||Z.call(K,G),!(G.key!=="Escape"||G.which===229||!L())&&(n||(G.stopPropagation(),c&&c(G,"escapeKeyDown")))},$=K=>G=>{var Z;(Z=K.onClick)==null||Z.call(K,G),G.target===G.currentTarget&&c&&c(G,"backdropClick")};return{getRootProps:(K={})=>{const G=dc(e);delete G.onTransitionEnter,delete G.onTransitionExited;const Z={...G,...K};return{role:"presentation",...Z,onKeyDown:T(Z),ref:w}},getBackdropProps:(K={})=>{const G=K;return{"aria-hidden":!0,...G,onClick:$(G),open:v}},getTransitionProps:()=>{const K=()=>{g(!1),u&&u()},G=()=>{g(!0),d&&d(),a&&A()};return{onEnter:tv(K,(o==null?void 0:o.props.onEnter)??Wv),onExited:tv(G,(o==null?void 0:o.props.onExited)??Wv)}},rootRef:w,portalRef:R,isTopModal:L,exited:S,hasTransition:f}}function IP(e){return Oe("MuiModal",e)}Ae("MuiModal",["root","hidden","backdrop"]);const DP=e=>{const{open:t,exited:n,classes:s}=e;return Me({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},IP,s)},BP=fe("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(ze(({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"}}]}))),$P=fe(uy,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),hy=D.forwardRef(function(t,n){const s=Ie({name:"MuiModal",props:t}),{BackdropComponent:a=$P,BackdropProps:u,classes:d,className:o,closeAfterTransition:c=!1,children:v,container:_,component:m,components:C={},componentsProps:x={},disableAutoFocus:w=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:g=!1,disablePortal:f=!1,disableRestoreFocus:p=!1,disableScrollLock:h=!1,hideBackdrop:b=!1,keepMounted:E=!1,onBackdropClick:P,onClose:L,onTransitionEnter:R,onTransitionExited:A,open:T,slotProps:$={},slots:H={},theme:N,...V}=s,K={...s,closeAfterTransition:c,disableAutoFocus:w,disableEnforceFocus:S,disableEscapeKeyDown:g,disablePortal:f,disableRestoreFocus:p,disableScrollLock:h,hideBackdrop:b,keepMounted:E},{getRootProps:G,getBackdropProps:Z,getTransitionProps:X,portalRef:M,isTopModal:z,exited:B,hasTransition:W}=MP({...K,rootRef:n}),ee={...K,exited:B},re=DP(ee),oe={};if(v.props.tabIndex===void 0&&(oe.tabIndex="-1"),W){const{onEnter:ue,onExited:ce}=X();oe.onEnter=ue,oe.onExited=ce}const se={slots:{root:C.Root,backdrop:C.Backdrop,...H},slotProps:{...x,...$}},[U,j]=qe("root",{ref:n,elementType:BP,externalForwardedProps:{...se,...V,component:m},getSlotProps:G,ownerState:ee,className:Ce(o,re==null?void 0:re.root,!ee.open&&ee.exited&&(re==null?void 0:re.hidden))}),[ne,Q]=qe("backdrop",{ref:u==null?void 0:u.ref,elementType:a,externalForwardedProps:se,shouldForwardComponentProp:!0,additionalProps:u,getSlotProps:ue=>Z({...ue,onClick:ce=>{P&&P(ce),ue!=null&&ue.onClick&&ue.onClick(ce)}}),className:Ce(u==null?void 0:u.className,re==null?void 0:re.backdrop),ownerState:ee});return!E&&!T&&(!W||B)?null:I.jsx(ly,{ref:M,container:_,disablePortal:f,children:I.jsxs(U,{...j,children:[!b&&a?I.jsx(ne,{...Q}):null,I.jsx(LP,{disableEnforceFocus:S,disableAutoFocus:w,disableRestoreFocus:p,isEnabled:z,open:T,children:D.cloneElement(v,oe)})]})})});function NP(e){return Oe("MuiDialog",e)}const qd=Ae("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),fy=D.createContext({}),jP=fe(uy,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),FP=e=>{const{classes:t,scroll:n,maxWidth:s,fullWidth:a,fullScreen:u}=e,d={root:["root"],container:["container",`scroll${he(n)}`],paper:["paper",`paperScroll${he(n)}`,`paperWidth${he(String(s))}`,a&&"paperFullWidth",u&&"paperFullScreen"]};return Me(d,NP,t)},zP=fe(hy,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),HP=fe("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${he(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"}}}]}),WP=fe(On,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${he(n.scroll)}`],t[`paperWidth${he(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(ze(({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)`,[`&.${qd.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}`,[`&.${qd.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,[`&.${qd.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Sf=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiDialog"}),a=di(),u={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":d,"aria-labelledby":o,"aria-modal":c=!0,BackdropComponent:v,BackdropProps:_,children:m,className:C,disableEscapeKeyDown:x=!1,fullScreen:w=!1,fullWidth:S=!1,maxWidth:g="sm",onBackdropClick:f,onClick:p,onClose:h,open:b,PaperComponent:E=On,PaperProps:P={},scroll:L="paper",slots:R={},slotProps:A={},TransitionComponent:T=xh,transitionDuration:$=u,TransitionProps:H,...N}=s,V={...s,disableEscapeKeyDown:x,fullScreen:w,fullWidth:S,maxWidth:g,scroll:L},K=FP(V),G=D.useRef(),Z=ge=>{G.current=ge.target===ge.currentTarget},X=ge=>{p&&p(ge),G.current&&(G.current=null,f&&f(ge),h&&h(ge,"backdropClick"))},M=Ui(o),z=D.useMemo(()=>({titleId:M}),[M]),B={transition:T,...R},W={transition:H,paper:P,backdrop:_,...A},ee={slots:B,slotProps:W},[re,oe]=qe("root",{elementType:zP,shouldForwardComponentProp:!0,externalForwardedProps:ee,ownerState:V,className:Ce(K.root,C),ref:n}),[se,U]=qe("backdrop",{elementType:jP,shouldForwardComponentProp:!0,externalForwardedProps:ee,ownerState:V}),[j,ne]=qe("paper",{elementType:WP,shouldForwardComponentProp:!0,externalForwardedProps:ee,ownerState:V,className:Ce(K.paper,P.className)}),[Q,ue]=qe("container",{elementType:HP,externalForwardedProps:ee,ownerState:V,className:Ce(K.container)}),[ce,_e]=qe("transition",{elementType:xh,externalForwardedProps:ee,ownerState:V,additionalProps:{appear:!0,in:b,timeout:$,role:"presentation"}});return I.jsx(re,{closeAfterTransition:!0,slots:{backdrop:se},slotProps:{backdrop:{transitionDuration:$,as:v,...U}},disableEscapeKeyDown:x,onClose:h,open:b,onClick:X,...oe,...N,children:I.jsx(ce,{..._e,children:I.jsx(Q,{onMouseDown:Z,...ue,children:I.jsx(j,{as:E,elevation:24,role:"dialog","aria-describedby":d,"aria-labelledby":M,"aria-modal":c,...ne,children:I.jsx(fy.Provider,{value:z,children:m})})})})})});function UP(e){return Oe("MuiDialogActions",e)}Ae("MuiDialogActions",["root","spacing"]);const VP=e=>{const{classes:t,disableSpacing:n}=e;return Me({root:["root",!n&&"spacing"]},UP,t)},KP=fe("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}}}]}),bf=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiDialogActions"}),{className:a,disableSpacing:u=!1,...d}=s,o={...s,disableSpacing:u},c=VP(o);return I.jsx(KP,{className:Ce(c.root,a),ownerState:o,ref:n,...d})});function qP(e){return Oe("MuiDialogContent",e)}Ae("MuiDialogContent",["root","dividers"]);function GP(e){return Oe("MuiDialogTitle",e)}const XP=Ae("MuiDialogTitle",["root"]),YP=e=>{const{classes:t,dividers:n}=e;return Me({root:["root",n&&"dividers"]},qP,t)},JP=fe("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(ze(({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:{[`.${XP.root} + &`]:{paddingTop:0}}}]}))),Cf=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiDialogContent"}),{className:a,dividers:u=!1,...d}=s,o={...s,dividers:u},c=YP(o);return I.jsx(JP,{className:Ce(c.root,a),ownerState:o,ref:n,...d})});function QP(e){return Oe("MuiDialogContentText",e)}Ae("MuiDialogContentText",["root"]);const ZP=e=>{const{classes:t}=e,s=Me({root:["root"]},QP,t);return{...t,...s}},eT=fe(ct,{shouldForwardProp:e=>dr(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tT=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiDialogContentText"}),{children:a,className:u,...d}=s,o=ZP(d);return I.jsx(eT,{component:"p",variant:"body1",color:"textSecondary",ref:n,ownerState:d,className:Ce(o.root,u),...s,classes:o})}),rT=e=>{const{classes:t}=e;return Me({root:["root"]},GP,t)},nT=fe(ct,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),wf=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiDialogTitle"}),{className:a,id:u,...d}=s,o=s,c=rT(o),{titleId:v=u}=D.useContext(fy);return I.jsx(nT,{component:"h2",className:Ce(c.root,a),ownerState:o,ref:n,variant:"h6",id:u??v,...d})});function iT(e){return Oe("MuiDivider",e)}Ae("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const sT=e=>{const{absolute:t,children:n,classes:s,flexItem:a,light:u,orientation:d,textAlign:o,variant:c}=e;return Me({root:["root",t&&"absolute",c,u&&"light",d==="vertical"&&"vertical",a&&"flexItem",n&&"withChildren",n&&d==="vertical"&&"withChildrenVertical",o==="right"&&d!=="vertical"&&"textAlignRight",o==="left"&&d!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",d==="vertical"&&"wrapperVertical"]},iT,s)},oT=fe("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]}})(ze(({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)`:nt(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%"}}}]}))),aT=fe("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(ze(({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)`}}]}))),Eh=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiDivider"}),{absolute:a=!1,children:u,className:d,orientation:o="horizontal",component:c=u||o==="vertical"?"div":"hr",flexItem:v=!1,light:_=!1,role:m=c!=="hr"?"separator":void 0,textAlign:C="center",variant:x="fullWidth",...w}=s,S={...s,absolute:a,component:c,flexItem:v,light:_,orientation:o,role:m,textAlign:C,variant:x},g=sT(S);return I.jsx(oT,{as:c,className:Ce(g.root,d),role:m,ref:n,ownerState:S,"aria-orientation":m==="separator"&&(c!=="hr"||o==="vertical")?o:void 0,...w,children:u?I.jsx(aT,{className:g.wrapper,ownerState:S,children:u}):null})});Eh&&(Eh.muiSkipListHighlight=!0);const lT=e=>{const{classes:t,disableUnderline:n,startAdornment:s,endAdornment:a,size:u,hiddenLabel:d,multiline:o}=e,c={root:["root",!n&&"underline",s&&"adornedStart",a&&"adornedEnd",u==="small"&&`size${he(u)}`,d&&"hiddenLabel",o&&"multiline"],input:["input"]},v=Me(c,OR,t);return{...t,...v}},cT=fe(Hc,{shouldForwardProp:e=>dr(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Fc(e,t),!n.disableUnderline&&t.underline]}})(ze(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",s=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",u=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s,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:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s}},[`&.${Ri.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s},[`&.${Ri.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:u},variants:[{props:({ownerState:d})=>!d.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"},[`&.${Ri.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ri.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(.${Ri.disabled}, .${Ri.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ri.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Ct()).map(([d])=>{var o;return{props:{disableUnderline:!1,color:d},style:{"&::after":{borderBottom:`2px solid ${(o=(e.vars||e).palette[d])==null?void 0:o.main}`}}}}),{props:({ownerState:d})=>d.startAdornment,style:{paddingLeft:12}},{props:({ownerState:d})=>d.endAdornment,style:{paddingRight:12}},{props:({ownerState:d})=>d.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:d,size:o})=>d.multiline&&o==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:d})=>d.multiline&&d.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:d})=>d.multiline&&d.hiddenLabel&&d.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),uT=fe(Wc,{name:"MuiFilledInput",slot:"Input",overridesResolver:zc})(ze(({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}}]}))),xf=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiFilledInput"}),{disableUnderline:a=!1,components:u={},componentsProps:d,fullWidth:o=!1,hiddenLabel:c,inputComponent:v="input",multiline:_=!1,slotProps:m,slots:C={},type:x="text",...w}=s,S={...s,disableUnderline:a,fullWidth:o,inputComponent:v,multiline:_,type:x},g=lT(s),f={root:{ownerState:S},input:{ownerState:S}},p=m??d?nr(f,m??d):f,h=C.root??u.Root??cT,b=C.input??u.Input??uT;return I.jsx(yf,{slots:{root:h,input:b},slotProps:p,fullWidth:o,inputComponent:v,multiline:_,ref:n,type:x,...w,classes:g})});xf.muiName="Input";function dT(e){return Oe("MuiFormControl",e)}Ae("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const hT=e=>{const{classes:t,margin:n,fullWidth:s}=e,a={root:["root",n!=="none"&&`margin${he(n)}`,s&&"fullWidth"]};return Me(a,dT,t)},fT=fe("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${he(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%"}}]}),pT=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiFormControl"}),{children:a,className:u,color:d="primary",component:o="div",disabled:c=!1,error:v=!1,focused:_,fullWidth:m=!1,hiddenLabel:C=!1,margin:x="none",required:w=!1,size:S="medium",variant:g="outlined",...f}=s,p={...s,color:d,component:o,disabled:c,error:v,fullWidth:m,hiddenLabel:C,margin:x,required:w,size:S,variant:g},h=hT(p),[b,E]=D.useState(()=>{let K=!1;return a&&D.Children.forEach(a,G=>{if(!Ql(G,["Input","Select"]))return;const Z=Ql(G,["Select"])?G.props.input:G;Z&&kR(Z.props)&&(K=!0)}),K}),[P,L]=D.useState(()=>{let K=!1;return a&&D.Children.forEach(a,G=>{Ql(G,["Input","Select"])&&(gc(G.props,!0)||gc(G.props.inputProps,!0))&&(K=!0)}),K}),[R,A]=D.useState(!1);c&&R&&A(!1);const T=_!==void 0&&!c?_:R;let $;D.useRef(!1);const H=D.useCallback(()=>{L(!0)},[]),N=D.useCallback(()=>{L(!1)},[]),V=D.useMemo(()=>({adornedStart:b,setAdornedStart:E,color:d,disabled:c,error:v,filled:P,focused:T,fullWidth:m,hiddenLabel:C,size:S,onBlur:()=>{A(!1)},onFocus:()=>{A(!0)},onEmpty:N,onFilled:H,registerEffect:$,required:w,variant:g}),[b,d,c,v,P,T,m,C,$,N,H,w,S,g]);return I.jsx(jc.Provider,{value:V,children:I.jsx(fT,{as:o,ownerState:p,className:Ce(h.root,u),ref:n,...f,children:a})})});function mT(e){return Oe("MuiFormHelperText",e)}const Uv=Ae("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Vv;const gT=e=>{const{classes:t,contained:n,size:s,disabled:a,error:u,filled:d,focused:o,required:c}=e,v={root:["root",a&&"disabled",u&&"error",s&&`size${he(s)}`,n&&"contained",o&&"focused",d&&"filled",c&&"required"]};return Me(v,mT,t)},vT=fe("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${he(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(ze(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Uv.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Uv.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}}]}))),_T=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiFormHelperText"}),{children:a,className:u,component:d="p",disabled:o,error:c,filled:v,focused:_,margin:m,required:C,variant:x,...w}=s,S=fi(),g=Ns({props:s,muiFormControl:S,states:["variant","size","disabled","error","filled","focused","required"]}),f={...s,component:d,contained:g.variant==="filled"||g.variant==="outlined",variant:g.variant,size:g.size,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required};delete f.ownerState;const p=gT(f);return I.jsx(vT,{as:d,className:Ce(p.root,u),ref:n,...w,ownerState:f,children:a===" "?Vv||(Vv=I.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):a})});function yT(e){return Oe("MuiFormLabel",e)}const Ko=Ae("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),ST=e=>{const{classes:t,color:n,focused:s,disabled:a,error:u,filled:d,required:o}=e,c={root:["root",`color${he(n)}`,a&&"disabled",u&&"error",d&&"filled",s&&"focused",o&&"required"],asterisk:["asterisk",u&&"error"]};return Me(c,yT,t)},bT=fe("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(ze(({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(Ct()).map(([t])=>({props:{color:t},style:{[`&.${Ko.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Ko.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ko.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),CT=fe("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(ze(({theme:e})=>({[`&.${Ko.error}`]:{color:(e.vars||e).palette.error.main}}))),wT=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiFormLabel"}),{children:a,className:u,color:d,component:o="label",disabled:c,error:v,filled:_,focused:m,required:C,...x}=s,w=fi(),S=Ns({props:s,muiFormControl:w,states:["color","required","focused","disabled","error","filled"]}),g={...s,color:S.color||"primary",component:o,disabled:S.disabled,error:S.error,filled:S.filled,focused:S.focused,required:S.required},f=ST(g);return I.jsxs(bT,{as:o,ownerState:g,className:Ce(f.root,u),ref:n,...x,children:[a,S.required&&I.jsxs(CT,{ownerState:g,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]})}),Kv=D.createContext();function xT(e){return Oe("MuiGrid",e)}const ET=[0,1,2,3,4,5,6,7,8,9,10],kT=["column-reverse","column","row-reverse","row"],RT=["nowrap","wrap-reverse","wrap"],Ao=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],na=Ae("MuiGrid",["root","container","item","zeroMinWidth",...ET.map(e=>`spacing-xs-${e}`),...kT.map(e=>`direction-xs-${e}`),...RT.map(e=>`wrap-xs-${e}`),...Ao.map(e=>`grid-xs-${e}`),...Ao.map(e=>`grid-sm-${e}`),...Ao.map(e=>`grid-md-${e}`),...Ao.map(e=>`grid-lg-${e}`),...Ao.map(e=>`grid-xl-${e}`)]);function PT({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((s,a)=>{let u={};if(t[a]&&(n=t[a]),!n)return s;if(n===!0)u={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")u={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const d=Cc({values:t.columns,breakpoints:e.breakpoints.values}),o=typeof d=="object"?d[a]:d;if(o==null)return s;const c=`${Math.round(n/o*1e8)/1e6}%`;let v={};if(t.container&&t.item&&t.columnSpacing!==0){const _=e.spacing(t.columnSpacing);if(_!=="0px"){const m=`calc(${c} + ${_})`;v={flexBasis:m,maxWidth:m}}}u={flexBasis:c,flexGrow:0,maxWidth:c,...v}}return e.breakpoints.values[a]===0?Object.assign(s,u):s[e.breakpoints.up(a)]=u,s},{})}function TT({theme:e,ownerState:t}){const n=Cc({values:t.direction,breakpoints:e.breakpoints.values});return jr({theme:e},n,s=>{const a={flexDirection:s};return s.startsWith("column")&&(a[`& > .${na.item}`]={maxWidth:"none"}),a})}function py({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(a=>{n===""&&t[a]!==0&&(n=a)});const s=Object.keys(e).sort((a,u)=>e[a]-e[u]);return s.slice(0,s.indexOf(n))}function LT({theme:e,ownerState:t}){const{container:n,rowSpacing:s}=t;let a={};if(n&&s!==0){const u=Cc({values:s,breakpoints:e.breakpoints.values});let d;typeof u=="object"&&(d=py({breakpoints:e.breakpoints.values,values:u})),a=jr({theme:e},u,(o,c)=>{const v=e.spacing(o);return v!=="0px"?{marginTop:`calc(-1 * ${v})`,[`& > .${na.item}`]:{paddingTop:v}}:d!=null&&d.includes(c)?{}:{marginTop:0,[`& > .${na.item}`]:{paddingTop:0}}})}return a}function OT({theme:e,ownerState:t}){const{container:n,columnSpacing:s}=t;let a={};if(n&&s!==0){const u=Cc({values:s,breakpoints:e.breakpoints.values});let d;typeof u=="object"&&(d=py({breakpoints:e.breakpoints.values,values:u})),a=jr({theme:e},u,(o,c)=>{const v=e.spacing(o);if(v!=="0px"){const _=`calc(-1 * ${v})`;return{width:`calc(100% + ${v})`,marginLeft:_,[`& > .${na.item}`]:{paddingLeft:v}}}return d!=null&&d.includes(c)?{}:{width:"100%",marginLeft:0,[`& > .${na.item}`]:{paddingLeft:0}}})}return a}function AT(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const s=[];return t.forEach(a=>{const u=e[a];Number(u)>0&&s.push(n[`spacing-${a}-${String(u)}`])}),s}const MT=fe("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:s,direction:a,item:u,spacing:d,wrap:o,zeroMinWidth:c,breakpoints:v}=n;let _=[];s&&(_=AT(d,v,t));const m=[];return v.forEach(C=>{const x=n[C];x&&m.push(t[`grid-${C}-${String(x)}`])}),[t.root,s&&t.container,u&&t.item,c&&t.zeroMinWidth,..._,a!=="row"&&t[`direction-xs-${String(a)}`],o!=="wrap"&&t[`wrap-xs-${String(o)}`],...m]}})(({ownerState:e})=>({boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},...e.item&&{margin:0},...e.zeroMinWidth&&{minWidth:0},...e.wrap!=="wrap"&&{flexWrap:e.wrap}}),TT,LT,OT,PT);function IT(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(s=>{const a=e[s];if(Number(a)>0){const u=`spacing-${s}-${String(a)}`;n.push(u)}}),n}const DT=e=>{const{classes:t,container:n,direction:s,item:a,spacing:u,wrap:d,zeroMinWidth:o,breakpoints:c}=e;let v=[];n&&(v=IT(u,c));const _=[];c.forEach(C=>{const x=e[C];x&&_.push(`grid-${C}-${String(x)}`)});const m={root:["root",n&&"container",a&&"item",o&&"zeroMinWidth",...v,s!=="row"&&`direction-xs-${String(s)}`,d!=="wrap"&&`wrap-xs-${String(d)}`,..._]};return Me(m,xT,t)},ti=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiGrid"}),{breakpoints:a}=di(),u=Vh(s),{className:d,columns:o,columnSpacing:c,component:v="div",container:_=!1,direction:m="row",item:C=!1,rowSpacing:x,spacing:w=0,wrap:S="wrap",zeroMinWidth:g=!1,...f}=u,p=x||w,h=c||w,b=D.useContext(Kv),E=_?o||12:b,P={},L={...f};a.keys.forEach(T=>{f[T]!=null&&(P[T]=f[T],delete L[T])});const R={...u,columns:E,container:_,direction:m,item:C,rowSpacing:p,columnSpacing:h,wrap:S,zeroMinWidth:g,spacing:w,...P,breakpoints:a.keys},A=DT(R);return I.jsx(Kv.Provider,{value:E,children:I.jsx(MT,{ownerState:R,className:Ce(A.root,d),as:v,ref:n,...L})})});function kh(e){return`scale(${e}, ${e**2})`}const BT={entering:{opacity:1,transform:kh(1)},entered:{opacity:1,transform:"none"}},Gd=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ia=D.forwardRef(function(t,n){const{addEndListener:s,appear:a=!0,children:u,easing:d,in:o,onEnter:c,onEntered:v,onEntering:_,onExit:m,onExited:C,onExiting:x,style:w,timeout:S="auto",TransitionComponent:g=Qr,...f}=t,p=ii(),h=D.useRef(),b=di(),E=D.useRef(null),P=At(E,Vi(u),n),L=K=>G=>{if(K){const Z=E.current;G===void 0?K(Z):K(Z,G)}},R=L(_),A=L((K,G)=>{Q0(K);const{duration:Z,delay:X,easing:M}=Ps({style:w,timeout:S,easing:d},{mode:"enter"});let z;S==="auto"?(z=b.transitions.getAutoHeightDuration(K.clientHeight),h.current=z):z=Z,K.style.transition=[b.transitions.create("opacity",{duration:z,delay:X}),b.transitions.create("transform",{duration:Gd?z:z*.666,delay:X,easing:M})].join(","),c&&c(K,G)}),T=L(v),$=L(x),H=L(K=>{const{duration:G,delay:Z,easing:X}=Ps({style:w,timeout:S,easing:d},{mode:"exit"});let M;S==="auto"?(M=b.transitions.getAutoHeightDuration(K.clientHeight),h.current=M):M=G,K.style.transition=[b.transitions.create("opacity",{duration:M,delay:Z}),b.transitions.create("transform",{duration:Gd?M:M*.666,delay:Gd?Z:Z||M*.333,easing:X})].join(","),K.style.opacity=0,K.style.transform=kh(.75),m&&m(K)}),N=L(C),V=K=>{S==="auto"&&p.start(h.current||0,K),s&&s(E.current,K)};return I.jsx(g,{appear:a,in:o,nodeRef:E,onEnter:A,onEntered:T,onEntering:R,onExit:H,onExited:N,onExiting:$,addEndListener:V,timeout:S==="auto"?null:S,...f,children:(K,{ownerState:G,...Z})=>D.cloneElement(u,{style:{opacity:0,transform:kh(.75),visibility:K==="exited"&&!o?"hidden":void 0,...BT[K],...w,...u.props.style},ref:P,...Z})})});ia&&(ia.muiSupportAuto=!0);const $T=e=>{const{classes:t,disableUnderline:n}=e,a=Me({root:["root",!n&&"underline"],input:["input"]},TR,t);return{...t,...a}},NT=fe(Hc,{shouldForwardProp:e=>dr(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Fc(e,t),!n.disableUnderline&&t.underline]}})(ze(({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:s})=>s.formControl,style:{"label + &":{marginTop:16}}},{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"},[`&.${Oo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Oo.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(.${Oo.disabled}, .${Oo.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Oo.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Ct()).map(([s])=>({props:{color:s,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s].main}`}}}))]}})),jT=fe(Wc,{name:"MuiInput",slot:"Input",overridesResolver:zc})({}),Ef=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiInput"}),{disableUnderline:a=!1,components:u={},componentsProps:d,fullWidth:o=!1,inputComponent:c="input",multiline:v=!1,slotProps:_,slots:m={},type:C="text",...x}=s,w=$T(s),g={root:{ownerState:{disableUnderline:a}}},f=_??d?nr(_??d,g):g,p=m.root??u.Root??NT,h=m.input??u.Input??jT;return I.jsx(yf,{slots:{root:p,input:h},slotProps:f,fullWidth:o,inputComponent:c,multiline:v,ref:n,type:C,...x,classes:w})});Ef.muiName="Input";function FT(e){return Oe("MuiInputAdornment",e)}const qv=Ae("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Gv;const zT=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${he(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},HT=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:s,position:a,size:u,variant:d}=e,o={root:["root",n&&"disablePointerEvents",a&&`position${he(a)}`,d,s&&"hiddenLabel",u&&`size${he(u)}`]};return Me(o,FT,t)},WT=fe("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:zT})(ze(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${qv.positionStart}&:not(.${qv.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),UT=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiInputAdornment"}),{children:a,className:u,component:d="div",disablePointerEvents:o=!1,disableTypography:c=!1,position:v,variant:_,...m}=s,C=fi()||{};let x=_;_&&C.variant,C&&!x&&(x=C.variant);const w={...s,hiddenLabel:C.hiddenLabel,size:C.size,disablePointerEvents:o,position:v,variant:x},S=HT(w);return I.jsx(jc.Provider,{value:null,children:I.jsx(WT,{as:d,ownerState:w,className:Ce(S.root,u),ref:n,...m,children:typeof a=="string"&&!c?I.jsx(ct,{color:"textSecondary",children:a}):I.jsxs(D.Fragment,{children:[v==="start"?Gv||(Gv=I.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,a]})})})});function VT(e){return Oe("MuiInputLabel",e)}Ae("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const KT=e=>{const{classes:t,formControl:n,size:s,shrink:a,disableAnimation:u,variant:d,required:o}=e,c={root:["root",n&&"formControl",!u&&"animated",a&&"shrink",s&&s!=="normal"&&`size${he(s)}`,d],asterisk:[o&&"asterisk"]},v=Me(c,VT,t);return{...t,...v}},qT=fe(wT,{shouldForwardProp:e=>dr(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ko.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]]}})(ze(({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:s})=>t==="filled"&&n.shrink&&s==="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)"}}]}))),GT=D.forwardRef(function(t,n){const s=Ie({name:"MuiInputLabel",props:t}),{disableAnimation:a=!1,margin:u,shrink:d,variant:o,className:c,...v}=s,_=fi();let m=d;typeof m>"u"&&_&&(m=_.filled||_.focused||_.adornedStart);const C=Ns({props:s,muiFormControl:_,states:["size","variant","required","focused"]}),x={...s,disableAnimation:a,formControl:_,shrink:m,size:C.size,variant:C.variant,required:C.required,focused:C.focused},w=KT(x);return I.jsx(qT,{"data-shrink":m,ref:n,className:Ce(w.root,c),...v,ownerState:x,classes:w})});function XT(e){return Oe("MuiLinearProgress",e)}Ae("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Rh=4,Ph=ui`
|
|
224
|
+
0% {
|
|
225
|
+
left: -35%;
|
|
226
|
+
right: 100%;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
60% {
|
|
230
|
+
left: 100%;
|
|
231
|
+
right: -90%;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
100% {
|
|
235
|
+
left: 100%;
|
|
236
|
+
right: -90%;
|
|
237
|
+
}
|
|
238
|
+
`,YT=typeof Ph!="string"?$s`
|
|
239
|
+
animation: ${Ph} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
240
|
+
`:null,Th=ui`
|
|
241
|
+
0% {
|
|
242
|
+
left: -200%;
|
|
243
|
+
right: 100%;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
60% {
|
|
247
|
+
left: 107%;
|
|
248
|
+
right: -8%;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
100% {
|
|
252
|
+
left: 107%;
|
|
253
|
+
right: -8%;
|
|
254
|
+
}
|
|
255
|
+
`,JT=typeof Th!="string"?$s`
|
|
256
|
+
animation: ${Th} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
|
|
257
|
+
`:null,Lh=ui`
|
|
258
|
+
0% {
|
|
259
|
+
opacity: 1;
|
|
260
|
+
background-position: 0 -23px;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
60% {
|
|
264
|
+
opacity: 0;
|
|
265
|
+
background-position: 0 -23px;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
100% {
|
|
269
|
+
opacity: 1;
|
|
270
|
+
background-position: -200px -23px;
|
|
271
|
+
}
|
|
272
|
+
`,QT=typeof Lh!="string"?$s`
|
|
273
|
+
animation: ${Lh} 3s infinite linear;
|
|
274
|
+
`:null,ZT=e=>{const{classes:t,variant:n,color:s}=e,a={root:["root",`color${he(s)}`,n],dashed:["dashed",`dashedColor${he(s)}`],bar1:["bar","bar1",`barColor${he(s)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",n!=="buffer"&&`barColor${he(s)}`,n==="buffer"&&`color${he(s)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return Me(a,XT,t)},kf=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?ji(e.palette[t].main,.62):Ni(e.palette[t].main,.5),eL=fe("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${he(n.color)}`],t[n.variant]]}})(ze(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(Ct()).map(([t])=>({props:{color:t},style:{backgroundColor:kf(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),tL=fe("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${he(n.color)}`]]}})(ze(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(Ct()).map(([t])=>{const n=kf(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),QT||{animation:`${Lh} 3s infinite linear`}),rL=fe("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${he(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(ze(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(Ct()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${Rh}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${Rh}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:YT||{animation:`${Ph} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),nL=fe("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${he(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(ze(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(Ct()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(Ct()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:kf(e,t),transition:`transform .${Rh}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:JT||{animation:`${Th} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),iL=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiLinearProgress"}),{className:a,color:u="primary",value:d,valueBuffer:o,variant:c="indeterminate",...v}=s,_={...s,color:u,variant:c},m=ZT(_),C=Bc(),x={},w={bar1:{},bar2:{}};if((c==="determinate"||c==="buffer")&&d!==void 0){x["aria-valuenow"]=Math.round(d),x["aria-valuemin"]=0,x["aria-valuemax"]=100;let S=d-100;C&&(S=-S),w.bar1.transform=`translateX(${S}%)`}if(c==="buffer"&&o!==void 0){let S=(o||0)-100;C&&(S=-S),w.bar2.transform=`translateX(${S}%)`}return I.jsxs(eL,{className:Ce(m.root,a),ownerState:_,role:"progressbar",...x,ref:n,...v,children:[c==="buffer"?I.jsx(tL,{className:m.dashed,ownerState:_}):null,I.jsx(rL,{className:m.bar1,ownerState:_,style:w.bar1}),c==="determinate"?null:I.jsx(nL,{className:m.bar2,ownerState:_,style:w.bar2})]})}),gn=D.createContext({});function sL(e){return Oe("MuiList",e)}Ae("MuiList",["root","padding","dense","subheader"]);const oL=e=>{const{classes:t,disablePadding:n,dense:s,subheader:a}=e;return Me({root:["root",!n&&"padding",s&&"dense",a&&"subheader"]},sL,t)},aL=fe("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}}]}),Rf=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiList"}),{children:a,className:u,component:d="ul",dense:o=!1,disablePadding:c=!1,subheader:v,..._}=s,m=D.useMemo(()=>({dense:o}),[o]),C={...s,component:d,dense:o,disablePadding:c},x=oL(C);return I.jsx(gn.Provider,{value:m,children:I.jsxs(aL,{as:d,className:Ce(x.root,u),ref:n,ownerState:C,..._,children:[v,a]})})});function lL(e){return Oe("MuiListItem",e)}Ae("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function cL(e){return Oe("MuiListItemButton",e)}const ws=Ae("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),uL=(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]},dL=e=>{const{alignItems:t,classes:n,dense:s,disabled:a,disableGutters:u,divider:d,selected:o}=e,v=Me({root:["root",s&&"dense",!u&&"gutters",d&&"divider",a&&"disabled",t==="flex-start"&&"alignItemsFlexStart",o&&"selected"]},cL,n);return{...n,...v}},hL=fe(Ts,{shouldForwardProp:e=>dr(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:uL})(ze(({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"}},[`&.${ws.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:nt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ws.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:nt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ws.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:nt(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})`:nt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ws.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ws.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}}]}))),my=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiListItemButton"}),{alignItems:a="center",autoFocus:u=!1,component:d="div",children:o,dense:c=!1,disableGutters:v=!1,divider:_=!1,focusVisibleClassName:m,selected:C=!1,className:x,...w}=s,S=D.useContext(gn),g=D.useMemo(()=>({dense:c||S.dense||!1,alignItems:a,disableGutters:v}),[a,S.dense,c,v]),f=D.useRef(null);Fr(()=>{u&&f.current&&f.current.focus()},[u]);const p={...s,alignItems:a,dense:g.dense,disableGutters:v,divider:_,selected:C},h=dL(p),b=At(f,n);return I.jsx(gn.Provider,{value:g,children:I.jsx(hL,{ref:b,href:w.href||w.to,component:(w.href||w.to)&&d==="div"?"button":d,focusVisibleClassName:Ce(h.focusVisible,m),ownerState:p,className:Ce(h.root,x),...w,classes:h,children:o})})});function fL(e){return Oe("MuiListItemSecondaryAction",e)}Ae("MuiListItemSecondaryAction",["root","disableGutters"]);const pL=e=>{const{disableGutters:t,classes:n}=e;return Me({root:["root",t&&"disableGutters"]},fL,n)},mL=fe("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}}]}),gy=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiListItemSecondaryAction"}),{className:a,...u}=s,d=D.useContext(gn),o={...s,disableGutters:d.disableGutters},c=pL(o);return I.jsx(mL,{className:Ce(c.root,a),ownerState:o,ref:n,...u})});gy.muiName="ListItemSecondaryAction";const gL=(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]},vL=e=>{const{alignItems:t,classes:n,dense:s,disableGutters:a,disablePadding:u,divider:d,hasSecondaryAction:o}=e;return Me({root:["root",s&&"dense",!a&&"gutters",!u&&"padding",d&&"divider",t==="flex-start"&&"alignItemsFlexStart",o&&"secondaryAction"],container:["container"]},lL,n)},_L=fe("div",{name:"MuiListItem",slot:"Root",overridesResolver:gL})(ze(({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:{[`& > .${ws.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}}]}))),yL=fe("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),SL=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiListItem"}),{alignItems:a="center",children:u,className:d,component:o,components:c={},componentsProps:v={},ContainerComponent:_="li",ContainerProps:{className:m,...C}={},dense:x=!1,disableGutters:w=!1,disablePadding:S=!1,divider:g=!1,secondaryAction:f,slotProps:p={},slots:h={},...b}=s,E=D.useContext(gn),P=D.useMemo(()=>({dense:x||E.dense||!1,alignItems:a,disableGutters:w}),[a,E.dense,x,w]),L=D.useRef(null),R=D.Children.toArray(u),A=R.length&&Ql(R[R.length-1],["ListItemSecondaryAction"]),T={...s,alignItems:a,dense:P.dense,disableGutters:w,disablePadding:S,divider:g,hasSecondaryAction:A},$=vL(T),H=At(L,n),N=h.root||c.Root||_L,V=p.root||v.root||{},K={className:Ce($.root,V.className,d),...b};let G=o||"li";return A?(G=!K.component&&!o?"div":G,_==="li"&&(G==="li"?G="div":K.component==="li"&&(K.component="div")),I.jsx(gn.Provider,{value:P,children:I.jsxs(yL,{as:_,className:Ce($.container,m),ref:H,ownerState:T,...C,children:[I.jsx(N,{...V,...!ra(N)&&{as:G,ownerState:{...T,...V.ownerState}},...K,children:R}),R.pop()]})})):I.jsx(gn.Provider,{value:P,children:I.jsxs(N,{...V,as:G,ref:H,...!ra(N)&&{ownerState:{...T,...V.ownerState}},...K,children:[R,f&&I.jsx(gy,{children:f})]})})});function bL(e){return Oe("MuiListItemAvatar",e)}Ae("MuiListItemAvatar",["root","alignItemsFlexStart"]);const CL=e=>{const{alignItems:t,classes:n}=e;return Me({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},bL,n)},wL=fe("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})({minWidth:56,flexShrink:0,variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}),xL=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiListItemAvatar"}),{className:a,...u}=s,d=D.useContext(gn),o={...s,alignItems:d.alignItems},c=CL(o);return I.jsx(wL,{className:Ce(c.root,a),ownerState:o,ref:n,...u})});function EL(e){return Oe("MuiListItemIcon",e)}Ae("MuiListItemIcon",["root","alignItemsFlexStart"]);const kL=e=>{const{alignItems:t,classes:n}=e;return Me({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},EL,n)},RL=fe("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(ze(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),PL=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiListItemIcon"}),{className:a,...u}=s,d=D.useContext(gn),o={...s,alignItems:d.alignItems},c=kL(o);return I.jsx(RL,{className:Ce(c.root,a),ownerState:o,ref:n,...u})});function TL(e){return Oe("MuiListItemText",e)}const Wl=Ae("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),LL=e=>{const{classes:t,inset:n,primary:s,secondary:a,dense:u}=e;return Me({root:["root",n&&"inset",u&&"dense",s&&a&&"multiline"],primary:["primary"],secondary:["secondary"]},TL,t)},OL=fe("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Wl.primary}`]:t.primary},{[`& .${Wl.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,[`.${Cv.root}:where(& .${Wl.primary})`]:{display:"block"},[`.${Cv.root}:where(& .${Wl.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),vy=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiListItemText"}),{children:a,className:u,disableTypography:d=!1,inset:o=!1,primary:c,primaryTypographyProps:v,secondary:_,secondaryTypographyProps:m,slots:C={},slotProps:x={},...w}=s,{dense:S}=D.useContext(gn);let g=c??a,f=_;const p={...s,disableTypography:d,inset:o,primary:!!g,secondary:!!f,dense:S},h=LL(p),b={slots:C,slotProps:{primary:v,secondary:m,...x}},[E,P]=qe("root",{className:Ce(h.root,u),elementType:OL,externalForwardedProps:{...b,...w},ownerState:p,ref:n}),[L,R]=qe("primary",{className:h.primary,elementType:ct,externalForwardedProps:b,ownerState:p}),[A,T]=qe("secondary",{className:h.secondary,elementType:ct,externalForwardedProps:b,ownerState:p});return g!=null&&g.type!==ct&&!d&&(g=I.jsx(L,{variant:S?"body2":"body1",component:R!=null&&R.variant?void 0:"span",...R,children:g})),f!=null&&f.type!==ct&&!d&&(f=I.jsx(A,{variant:"body2",color:"textSecondary",...T,children:f})),I.jsxs(E,{...P,children:[g,f]})});function Xd(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Xv(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function _y(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 Mo(e,t,n,s,a,u){let d=!1,o=a(e,t,t?n:!1);for(;o;){if(o===e.firstChild){if(d)return!1;d=!0}const c=s?!1:o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||!_y(o,u)||c)o=a(e,o,n);else return o.focus(),!0}return!1}const AL=D.forwardRef(function(t,n){const{actions:s,autoFocus:a=!1,autoFocusItem:u=!1,children:d,className:o,disabledItemsFocusable:c=!1,disableListWrap:v=!1,onKeyDown:_,variant:m="selectedMenu",...C}=t,x=D.useRef(null),w=D.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Fr(()=>{a&&x.current.focus()},[a]),D.useImperativeHandle(s,()=>({adjustStyleForScrollbar:(h,{direction:b})=>{const E=!x.current.style.width;if(h.clientHeight<x.current.clientHeight&&E){const P=`${L0(Tn(h))}px`;x.current.style[b==="rtl"?"paddingLeft":"paddingRight"]=P,x.current.style.width=`calc(100% + ${P})`}return x.current}}),[]);const S=h=>{const b=x.current,E=h.key;if(h.ctrlKey||h.metaKey||h.altKey){_&&_(h);return}const L=ir(b).activeElement;if(E==="ArrowDown")h.preventDefault(),Mo(b,L,v,c,Xd);else if(E==="ArrowUp")h.preventDefault(),Mo(b,L,v,c,Xv);else if(E==="Home")h.preventDefault(),Mo(b,null,v,c,Xd);else if(E==="End")h.preventDefault(),Mo(b,null,v,c,Xv);else if(E.length===1){const R=w.current,A=E.toLowerCase(),T=performance.now();R.keys.length>0&&(T-R.lastTime>500?(R.keys=[],R.repeating=!0,R.previousKeyMatched=!0):R.repeating&&A!==R.keys[0]&&(R.repeating=!1)),R.lastTime=T,R.keys.push(A);const $=L&&!R.repeating&&_y(L,R);R.previousKeyMatched&&($||Mo(b,L,!1,c,Xd,R))?h.preventDefault():R.previousKeyMatched=!1}_&&_(h)},g=At(x,n);let f=-1;D.Children.forEach(d,(h,b)=>{if(!D.isValidElement(h)){f===b&&(f+=1,f>=d.length&&(f=-1));return}h.props.disabled||(m==="selectedMenu"&&h.props.selected||f===-1)&&(f=b),f===b&&(h.props.disabled||h.props.muiSkipListHighlight||h.type.muiSkipListHighlight)&&(f+=1,f>=d.length&&(f=-1))});const p=D.Children.map(d,(h,b)=>{if(b===f){const E={};return u&&(E.autoFocus=!0),h.props.tabIndex===void 0&&m==="selectedMenu"&&(E.tabIndex=0),D.cloneElement(h,E)}return h});return I.jsx(Rf,{role:"menu",ref:g,className:o,onKeyDown:S,tabIndex:a?0:-1,...C,children:p})});function ML(e){return Oe("MuiPopover",e)}Ae("MuiPopover",["root","paper"]);function Yv(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Jv(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Qv(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Ul(e){return typeof e=="function"?e():e}const IL=e=>{const{classes:t}=e;return Me({root:["root"],paper:["paper"]},ML,t)},DL=fe(hy,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),yy=fe(On,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),BL=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiPopover"}),{action:a,anchorEl:u,anchorOrigin:d={vertical:"top",horizontal:"left"},anchorPosition:o,anchorReference:c="anchorEl",children:v,className:_,container:m,elevation:C=8,marginThreshold:x=16,open:w,PaperProps:S={},slots:g={},slotProps:f={},transformOrigin:p={vertical:"top",horizontal:"left"},TransitionComponent:h,transitionDuration:b="auto",TransitionProps:E={},disableScrollLock:P=!1,...L}=s,R=D.useRef(),A={...s,anchorOrigin:d,anchorReference:c,elevation:C,marginThreshold:x,transformOrigin:p,TransitionComponent:h,transitionDuration:b,TransitionProps:E},T=IL(A),$=D.useCallback(()=>{if(c==="anchorPosition")return o;const Q=Ul(u),ce=(Q&&Q.nodeType===1?Q:ir(R.current).body).getBoundingClientRect();return{top:ce.top+Yv(ce,d.vertical),left:ce.left+Jv(ce,d.horizontal)}},[u,d.horizontal,d.vertical,o,c]),H=D.useCallback(Q=>({vertical:Yv(Q,p.vertical),horizontal:Jv(Q,p.horizontal)}),[p.horizontal,p.vertical]),N=D.useCallback(Q=>{const ue={width:Q.offsetWidth,height:Q.offsetHeight},ce=H(ue);if(c==="none")return{top:null,left:null,transformOrigin:Qv(ce)};const _e=$();let ge=_e.top-ce.vertical,xe=_e.left-ce.horizontal;const Ve=ge+ue.height,be=xe+ue.width,ye=Tn(Ul(u)),We=ye.innerHeight-x,je=ye.innerWidth-x;if(x!==null&&ge<x){const He=ge-x;ge-=He,ce.vertical+=He}else if(x!==null&&Ve>We){const He=Ve-We;ge-=He,ce.vertical+=He}if(x!==null&&xe<x){const He=xe-x;xe-=He,ce.horizontal+=He}else if(be>je){const He=be-je;xe-=He,ce.horizontal+=He}return{top:`${Math.round(ge)}px`,left:`${Math.round(xe)}px`,transformOrigin:Qv(ce)}},[u,c,$,H,x]),[V,K]=D.useState(w),G=D.useCallback(()=>{const Q=R.current;if(!Q)return;const ue=N(Q);ue.top!==null&&Q.style.setProperty("top",ue.top),ue.left!==null&&(Q.style.left=ue.left),Q.style.transformOrigin=ue.transformOrigin,K(!0)},[N]);D.useEffect(()=>(P&&window.addEventListener("scroll",G),()=>window.removeEventListener("scroll",G)),[u,P,G]);const Z=()=>{G()},X=()=>{K(!1)};D.useEffect(()=>{w&&G()}),D.useImperativeHandle(a,()=>w?{updatePosition:()=>{G()}}:null,[w,G]),D.useEffect(()=>{if(!w)return;const Q=P0(()=>{G()}),ue=Tn(Ul(u));return ue.addEventListener("resize",Q),()=>{Q.clear(),ue.removeEventListener("resize",Q)}},[u,w,G]);let M=b;const z={slots:{transition:h,...g},slotProps:{transition:E,paper:S,...f}},[B,W]=qe("transition",{elementType:ia,externalForwardedProps:z,ownerState:A,getSlotProps:Q=>({...Q,onEntering:(ue,ce)=>{var _e;(_e=Q.onEntering)==null||_e.call(Q,ue,ce),Z()},onExited:ue=>{var ce;(ce=Q.onExited)==null||ce.call(Q,ue),X()}}),additionalProps:{appear:!0,in:w}});b==="auto"&&!B.muiSupportAuto&&(M=void 0);const ee=m||(u?ir(Ul(u)).body:void 0),[re,{slots:oe,slotProps:se,...U}]=qe("root",{ref:n,elementType:DL,externalForwardedProps:{...z,...L},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:g.backdrop},slotProps:{backdrop:X0(typeof f.backdrop=="function"?f.backdrop(A):f.backdrop,{invisible:!0})},container:ee,open:w},ownerState:A,className:Ce(T.root,_)}),[j,ne]=qe("paper",{ref:R,className:T.paper,elementType:yy,externalForwardedProps:z,shouldForwardComponentProp:!0,additionalProps:{elevation:C,style:V?void 0:{opacity:0}},ownerState:A});return I.jsx(re,{...U,...!ra(re)&&{slots:oe,slotProps:se,disableScrollLock:P},children:I.jsx(B,{...W,timeout:M,children:I.jsx(j,{...ne,children:v})})})});function $L(e){return Oe("MuiMenu",e)}Ae("MuiMenu",["root","paper","list"]);const NL={vertical:"top",horizontal:"right"},jL={vertical:"top",horizontal:"left"},FL=e=>{const{classes:t}=e;return Me({root:["root"],paper:["paper"],list:["list"]},$L,t)},zL=fe(BL,{shouldForwardProp:e=>dr(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),HL=fe(yy,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),WL=fe(AL,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),UL=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:u,className:d,disableAutoFocusItem:o=!1,MenuListProps:c={},onClose:v,open:_,PaperProps:m={},PopoverClasses:C,transitionDuration:x="auto",TransitionProps:{onEntering:w,...S}={},variant:g="selectedMenu",slots:f={},slotProps:p={},...h}=s,b=Bc(),E={...s,autoFocus:a,disableAutoFocusItem:o,MenuListProps:c,onEntering:w,PaperProps:m,transitionDuration:x,TransitionProps:S,variant:g},P=FL(E),L=a&&!o&&_,R=D.useRef(null),A=(M,z)=>{R.current&&R.current.adjustStyleForScrollbar(M,{direction:b?"rtl":"ltr"}),w&&w(M,z)},T=M=>{M.key==="Tab"&&(M.preventDefault(),v&&v(M,"tabKeyDown"))};let $=-1;D.Children.map(u,(M,z)=>{D.isValidElement(M)&&(M.props.disabled||(g==="selectedMenu"&&M.props.selected||$===-1)&&($=z))});const H={slots:f,slotProps:{list:c,transition:S,paper:m,...p}},N=I0({elementType:f.root,externalSlotProps:p.root,ownerState:E,className:[P.root,d]}),[V,K]=qe("paper",{className:P.paper,elementType:HL,externalForwardedProps:H,shouldForwardComponentProp:!0,ownerState:E}),[G,Z]=qe("list",{className:Ce(P.list,c.className),elementType:WL,shouldForwardComponentProp:!0,externalForwardedProps:H,getSlotProps:M=>({...M,onKeyDown:z=>{var B;T(z),(B=M.onKeyDown)==null||B.call(M,z)}}),ownerState:E}),X=typeof H.slotProps.transition=="function"?H.slotProps.transition(E):H.slotProps.transition;return I.jsx(zL,{onClose:v,anchorOrigin:{vertical:"bottom",horizontal:b?"right":"left"},transformOrigin:b?NL:jL,slots:{root:f.root,paper:V,backdrop:f.backdrop,...f.transition&&{transition:f.transition}},slotProps:{root:N,paper:K,backdrop:typeof p.backdrop=="function"?p.backdrop(E):p.backdrop,transition:{...X,onEntering:(...M)=>{var z;A(...M),(z=X==null?void 0:X.onEntering)==null||z.call(X,...M)}}},open:_,ref:n,transitionDuration:x,ownerState:E,...h,classes:C,children:I.jsx(G,{actions:R,autoFocus:a&&($===-1||o),autoFocusItem:L,variant:g,...Z,children:u})})});function VL(e){return Oe("MuiNativeSelect",e)}const Pf=Ae("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),KL=e=>{const{classes:t,variant:n,disabled:s,multiple:a,open:u,error:d}=e,o={select:["select",n,s&&"disabled",a&&"multiple",d&&"error"],icon:["icon",`icon${he(n)}`,u&&"iconOpen",s&&"disabled"]};return Me(o,VL,t)},Sy=fe("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Pf.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}}}]})),qL=fe(Sy,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:dr,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Pf.multiple}`]:t.multiple}]}})({}),by=fe("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Pf.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}}]})),GL=fe(by,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${he(n.variant)}`],n.open&&t.iconOpen]}})({}),XL=D.forwardRef(function(t,n){const{className:s,disabled:a,error:u,IconComponent:d,inputRef:o,variant:c="standard",...v}=t,_={...t,disabled:a,variant:c,error:u},m=KL(_);return I.jsxs(D.Fragment,{children:[I.jsx(qL,{ownerState:_,className:Ce(m.select,s),disabled:a,ref:o||n,...v}),t.multiple?null:I.jsx(GL,{as:d,ownerState:_,className:m.icon})]})});var Zv;const YL=fe("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:dr})({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%"}),JL=fe("legend",{name:"MuiNotchedOutlined",shouldForwardProp:dr})(ze(({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 QL(e){const{children:t,classes:n,className:s,label:a,notched:u,...d}=e,o=a!=null&&a!=="",c={...e,notched:u,withLabel:o};return I.jsx(YL,{"aria-hidden":!0,className:s,ownerState:c,...d,children:I.jsx(JL,{ownerState:c,children:o?I.jsx("span",{children:a}):Zv||(Zv=I.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}const ZL=e=>{const{classes:t}=e,s=Me({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},LR,t);return{...t,...s}},eO=fe(Hc,{shouldForwardProp:e=>dr(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Fc})(ze(({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 .${on.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${on.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${on.focused} .${on.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Ct()).map(([n])=>({props:{color:n},style:{[`&.${on.focused} .${on.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${on.error} .${on.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${on.disabled} .${on.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:s})=>n.multiline&&s==="small",style:{padding:"8.5px 14px"}}]}})),tO=fe(QL,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(ze(({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}})),rO=fe(Wc,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:zc})(ze(({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}}]}))),Tf=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiOutlinedInput"}),{components:a={},fullWidth:u=!1,inputComponent:d="input",label:o,multiline:c=!1,notched:v,slots:_={},slotProps:m={},type:C="text",...x}=s,w=ZL(s),S=fi(),g=Ns({props:s,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),f={...s,color:g.color||"primary",disabled:g.disabled,error:g.error,focused:g.focused,formControl:S,fullWidth:u,hiddenLabel:g.hiddenLabel,multiline:c,size:g.size,type:C},p=_.root??a.Root??eO,h=_.input??a.Input??rO,[b,E]=qe("notchedOutline",{elementType:tO,className:w.notchedOutline,shouldForwardComponentProp:!0,ownerState:f,externalForwardedProps:{slots:_,slotProps:m},additionalProps:{label:o!=null&&o!==""&&g.required?I.jsxs(D.Fragment,{children:[o," ","*"]}):o}});return I.jsx(yf,{slots:{root:p,input:h},slotProps:m,renderSuffix:P=>I.jsx(b,{...E,notched:typeof v<"u"?v:!!(P.startAdornment||P.filled||P.focused)}),fullWidth:u,inputComponent:d,multiline:c,ref:n,type:C,...x,classes:{...w,notchedOutline:null}})});Tf.muiName="Input";function Cy(e){return Oe("MuiSelect",e)}const Io=Ae("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var e_;const nO=fe(Sy,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Io.select}`]:t.select},{[`&.${Io.select}`]:t[n.variant]},{[`&.${Io.error}`]:t.error},{[`&.${Io.multiple}`]:t.multiple}]}})({[`&.${Io.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),iO=fe(by,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${he(n.variant)}`],n.open&&t.iconOpen]}})({}),sO=fe("input",{shouldForwardProp:e=>q0(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function t_(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function oO(e){return e==null||typeof e=="string"&&!e.trim()}const aO=e=>{const{classes:t,variant:n,disabled:s,multiple:a,open:u,error:d}=e,o={select:["select",n,s&&"disabled",a&&"multiple",d&&"error"],icon:["icon",`icon${he(n)}`,u&&"iconOpen",s&&"disabled"],nativeInput:["nativeInput"]};return Me(o,Cy,t)},lO=D.forwardRef(function(t,n){var Kt;const{"aria-describedby":s,"aria-label":a,autoFocus:u,autoWidth:d,children:o,className:c,defaultOpen:v,defaultValue:_,disabled:m,displayEmpty:C,error:x=!1,IconComponent:w,inputRef:S,labelId:g,MenuProps:f={},multiple:p,name:h,onBlur:b,onChange:E,onClose:P,onFocus:L,onOpen:R,open:A,readOnly:T,renderValue:$,required:H,SelectDisplayProps:N={},tabIndex:V,type:K,value:G,variant:Z="standard",...X}=t,[M,z]=cc({controlled:G,default:_,name:"Select"}),[B,W]=cc({controlled:A,default:v,name:"Select"}),ee=D.useRef(null),re=D.useRef(null),[oe,se]=D.useState(null),{current:U}=D.useRef(A!=null),[j,ne]=D.useState(),Q=At(n,S),ue=D.useCallback(Be=>{re.current=Be,Be&&se(Be)},[]),ce=oe==null?void 0:oe.parentNode;D.useImperativeHandle(Q,()=>({focus:()=>{re.current.focus()},node:ee.current,value:M}),[M]),D.useEffect(()=>{v&&B&&oe&&!U&&(ne(d?null:ce.clientWidth),re.current.focus())},[oe,d]),D.useEffect(()=>{u&&re.current.focus()},[u]),D.useEffect(()=>{if(!g)return;const Be=ir(re.current).getElementById(g);if(Be){const tt=()=>{getSelection().isCollapsed&&re.current.focus()};return Be.addEventListener("click",tt),()=>{Be.removeEventListener("click",tt)}}},[g]);const _e=(Be,tt)=>{Be?R&&R(tt):P&&P(tt),U||(ne(d?null:ce.clientWidth),W(Be))},ge=Be=>{Be.button===0&&(Be.preventDefault(),re.current.focus(),_e(!0,Be))},xe=Be=>{_e(!1,Be)},Ve=D.Children.toArray(o),be=Be=>{const tt=Ve.find(xt=>xt.props.value===Be.target.value);tt!==void 0&&(z(tt.props.value),E&&E(Be,tt))},ye=Be=>tt=>{let xt;if(tt.currentTarget.hasAttribute("tabindex")){if(p){xt=Array.isArray(M)?M.slice():[];const or=M.indexOf(Be.props.value);or===-1?xt.push(Be.props.value):xt.splice(or,1)}else xt=Be.props.value;if(Be.props.onClick&&Be.props.onClick(tt),M!==xt&&(z(xt),E)){const or=tt.nativeEvent||tt,An=new or.constructor(or.type,or);Object.defineProperty(An,"target",{writable:!0,value:{value:xt,name:h}}),E(An,Be)}p||_e(!1,tt)}},We=Be=>{T||[" ","ArrowUp","ArrowDown","Enter"].includes(Be.key)&&(Be.preventDefault(),_e(!0,Be))},je=oe!==null&&B,He=Be=>{!je&&b&&(Object.defineProperty(Be,"target",{writable:!0,value:{value:M,name:h}}),b(Be))};delete X["aria-invalid"];let Ee,Ze;const Ge=[];let dt=!1;(gc({value:M})||C)&&($?Ee=$(M):dt=!0);const Rt=Ve.map(Be=>{if(!D.isValidElement(Be))return null;let tt;if(p){if(!Array.isArray(M))throw new Error(Pn(2));tt=M.some(xt=>t_(xt,Be.props.value)),tt&&dt&&Ge.push(Be.props.children)}else tt=t_(M,Be.props.value),tt&&dt&&(Ze=Be.props.children);return D.cloneElement(Be,{"aria-selected":tt?"true":"false",onClick:ye(Be),onKeyUp:xt=>{xt.key===" "&&xt.preventDefault(),Be.props.onKeyUp&&Be.props.onKeyUp(xt)},role:"option",selected:tt,value:void 0,"data-value":Be.props.value})});dt&&(p?Ge.length===0?Ee=null:Ee=Ge.reduce((Be,tt,xt)=>(Be.push(tt),xt<Ge.length-1&&Be.push(", "),Be),[]):Ee=Ze);let wt=j;!d&&U&&oe&&(wt=ce.clientWidth);let Xe;typeof V<"u"?Xe=V:Xe=m?null:0;const et=N.id||(h?`mui-component-select-${h}`:void 0),Ye={...t,variant:Z,value:M,open:je,error:x},De=aO(Ye),Fe={...f.PaperProps,...(Kt=f.slotProps)==null?void 0:Kt.paper},ht=Ui();return I.jsxs(D.Fragment,{children:[I.jsx(nO,{as:"div",ref:ue,tabIndex:Xe,role:"combobox","aria-controls":je?ht:void 0,"aria-disabled":m?"true":void 0,"aria-expanded":je?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[g,et].filter(Boolean).join(" ")||void 0,"aria-describedby":s,"aria-required":H?"true":void 0,"aria-invalid":x?"true":void 0,onKeyDown:We,onMouseDown:m||T?null:ge,onBlur:He,onFocus:L,...N,ownerState:Ye,className:Ce(N.className,De.select,c),id:et,children:oO(Ee)?e_||(e_=I.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):Ee}),I.jsx(sO,{"aria-invalid":x,value:Array.isArray(M)?M.join(","):M,name:h,ref:ee,"aria-hidden":!0,onChange:be,tabIndex:-1,disabled:m,className:De.nativeInput,autoFocus:u,required:H,...X,ownerState:Ye}),I.jsx(iO,{as:w,className:De.icon,ownerState:Ye}),I.jsx(UL,{id:`menu-${h||""}`,anchorEl:ce,open:je,onClose:xe,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...f,slotProps:{...f.slotProps,list:{"aria-labelledby":g,role:"listbox","aria-multiselectable":p?"true":void 0,disableListWrap:!0,id:ht,...f.MenuListProps},paper:{...Fe,style:{minWidth:wt,...Fe!=null?Fe.style:null}}},children:Rt})]})}),cO=e=>{const{classes:t}=e,s=Me({root:["root"]},Cy,t);return{...t,...s}},Lf={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>dr(e)&&e!=="variant",slot:"Root"},uO=fe(Ef,Lf)(""),dO=fe(Tf,Lf)(""),hO=fe(xf,Lf)(""),wy=D.forwardRef(function(t,n){const s=Ie({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:u,classes:d={},className:o,defaultOpen:c=!1,displayEmpty:v=!1,IconComponent:_=AR,id:m,input:C,inputProps:x,label:w,labelId:S,MenuProps:g,multiple:f=!1,native:p=!1,onClose:h,onOpen:b,open:E,renderValue:P,SelectDisplayProps:L,variant:R="outlined",...A}=s,T=p?XL:lO,$=fi(),H=Ns({props:s,muiFormControl:$,states:["variant","error"]}),N=H.variant||R,V={...s,variant:N,classes:d},K=cO(V),{root:G,...Z}=K,X=C||{standard:I.jsx(uO,{ownerState:V}),outlined:I.jsx(dO,{label:w,ownerState:V}),filled:I.jsx(hO,{ownerState:V})}[N],M=At(n,Vi(X));return I.jsx(D.Fragment,{children:D.cloneElement(X,{inputComponent:T,inputProps:{children:u,error:H.error,IconComponent:_,variant:N,type:void 0,multiple:f,...p?{id:m}:{autoWidth:a,defaultOpen:c,displayEmpty:v,labelId:S,MenuProps:g,onClose:h,onOpen:b,open:E,renderValue:P,SelectDisplayProps:{id:m,...L}},...x,classes:x?nr(Z,x.classes):Z,...C?C.props.inputProps:{}},...(f&&p||v)&&N==="outlined"?{notched:!0}:{},ref:M,className:Ce(X.props.className,o,K.root),...!C&&{variant:N},...A})})});wy.muiName="Select";function fO(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:s,open:a,resumeHideDuration:u}=e,d=ii();D.useEffect(()=>{if(!a)return;function f(p){p.defaultPrevented||p.key==="Escape"&&(s==null||s(p,"escapeKeyDown"))}return document.addEventListener("keydown",f),()=>{document.removeEventListener("keydown",f)}},[a,s]);const o=$r((f,p)=>{s==null||s(f,p)}),c=$r(f=>{!s||f==null||d.start(f,()=>{o(null,"timeout")})});D.useEffect(()=>(a&&c(t),d.clear),[a,t,c,d]);const v=f=>{s==null||s(f,"clickaway")},_=d.clear,m=D.useCallback(()=>{t!=null&&c(u??t*.5)},[t,u,c]),C=f=>p=>{const h=f.onBlur;h==null||h(p),m()},x=f=>p=>{const h=f.onFocus;h==null||h(p),_()},w=f=>p=>{const h=f.onMouseEnter;h==null||h(p),_()},S=f=>p=>{const h=f.onMouseLeave;h==null||h(p),m()};return D.useEffect(()=>{if(!n&&a)return window.addEventListener("focus",m),window.addEventListener("blur",_),()=>{window.removeEventListener("focus",m),window.removeEventListener("blur",_)}},[n,a,m,_]),{getRootProps:(f={})=>{const p={...dc(e),...dc(f)};return{role:"presentation",...f,...p,onBlur:C(p),onFocus:x(p),onMouseEnter:w(p),onMouseLeave:S(p)}},onClickAway:v}}function pO(e){return Oe("MuiSnackbarContent",e)}Ae("MuiSnackbarContent",["root","message","action"]);const mO=e=>{const{classes:t}=e;return Me({root:["root"],action:["action"],message:["message"]},pO,t)},gO=fe(On,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(ze(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=R0(e.palette.background.default,t);return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),vO=fe("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),_O=fe("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),yO=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiSnackbarContent"}),{action:a,className:u,message:d,role:o="alert",...c}=s,v=s,_=mO(v);return I.jsxs(gO,{role:o,square:!0,elevation:6,className:Ce(_.root,u),ownerState:v,ref:n,...c,children:[I.jsx(vO,{className:_.message,ownerState:v,children:d}),a?I.jsx(_O,{className:_.action,ownerState:v,children:a}):null]})});function SO(e){return Oe("MuiSnackbar",e)}Ae("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const bO=e=>{const{classes:t,anchorOrigin:n}=e,s={root:["root",`anchorOrigin${he(n.vertical)}${he(n.horizontal)}`]};return Me(s,SO,t)},CO=fe("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${he(n.anchorOrigin.vertical)}${he(n.anchorOrigin.horizontal)}`]]}})(ze(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),wO=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiSnackbar"}),a=di(),u={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:d,anchorOrigin:{vertical:o,horizontal:c}={vertical:"bottom",horizontal:"left"},autoHideDuration:v=null,children:_,className:m,ClickAwayListenerProps:C,ContentProps:x,disableWindowBlurListener:w=!1,message:S,onBlur:g,onClose:f,onFocus:p,onMouseEnter:h,onMouseLeave:b,open:E,resumeHideDuration:P,slots:L={},slotProps:R={},TransitionComponent:A,transitionDuration:T=u,TransitionProps:{onEnter:$,onExited:H,...N}={},...V}=s,K={...s,anchorOrigin:{vertical:o,horizontal:c},autoHideDuration:v,disableWindowBlurListener:w,TransitionComponent:A,transitionDuration:T},G=bO(K),{getRootProps:Z,onClickAway:X}=fO({...K}),[M,z]=D.useState(!0),B=_e=>{z(!0),H&&H(_e)},W=(_e,ge)=>{z(!1),$&&$(_e,ge)},ee={slots:{transition:A,...L},slotProps:{content:x,clickAwayListener:C,transition:N,...R}},[re,oe]=qe("root",{ref:n,className:[G.root,m],elementType:CO,getSlotProps:Z,externalForwardedProps:{...ee,...V},ownerState:K}),[se,{ownerState:U,...j}]=qe("clickAwayListener",{elementType:vP,externalForwardedProps:ee,getSlotProps:_e=>({onClickAway:(...ge)=>{var xe;(xe=_e.onClickAway)==null||xe.call(_e,...ge),X(...ge)}}),ownerState:K}),[ne,Q]=qe("content",{elementType:yO,shouldForwardComponentProp:!0,externalForwardedProps:ee,additionalProps:{message:S,action:d},ownerState:K}),[ue,ce]=qe("transition",{elementType:ia,externalForwardedProps:ee,getSlotProps:_e=>({onEnter:(...ge)=>{var xe;(xe=_e.onEnter)==null||xe.call(_e,...ge),W(...ge)},onExited:(...ge)=>{var xe;(xe=_e.onExited)==null||xe.call(_e,...ge),B(...ge)}}),additionalProps:{appear:!0,in:E,timeout:T,direction:o==="top"?"down":"up"},ownerState:K});return!E&&M?null:I.jsx(se,{...j,...L.clickAwayListener&&{ownerState:U},children:I.jsx(re,{...oe,children:I.jsx(ue,{...ce,children:_||I.jsx(ne,{...Q})})})})});function xO(e){return Oe("MuiTooltip",e)}const Ot=Ae("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function EO(e){return Math.round(e*1e5)/1e5}const kO=e=>{const{classes:t,disableInteractive:n,arrow:s,touch:a,placement:u}=e,d={popper:["popper",!n&&"popperInteractive",s&&"popperArrow"],tooltip:["tooltip",s&&"tooltipArrow",a&&"touch",`tooltipPlacement${he(u.split("-")[0])}`],arrow:["arrow"]};return Me(d,xO,t)},RO=fe(cy,{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]}})(ze(({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"] .${Ot.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Ot.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Ot.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Ot.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Ot.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Ot.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Ot.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Ot.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),PO=fe("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${he(n.placement.split("-")[0])}`]]}})(ze(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:nt(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,[`.${Ot.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Ot.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Ot.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Ot.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:`${EO(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Ot.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Ot.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Ot.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Ot.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Ot.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Ot.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Ot.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Ot.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Ot.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Ot.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),TO=fe("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(ze(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:nt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Vl=!1;const r_=new Dc;let Do={x:0,y:0};function Kl(e,t){return(n,...s)=>{t&&t(n,...s),e(n,...s)}}const dn=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiTooltip"}),{arrow:a=!1,children:u,classes:d,components:o={},componentsProps:c={},describeChild:v=!1,disableFocusListener:_=!1,disableHoverListener:m=!1,disableInteractive:C=!1,disableTouchListener:x=!1,enterDelay:w=100,enterNextDelay:S=0,enterTouchDelay:g=700,followCursor:f=!1,id:p,leaveDelay:h=0,leaveTouchDelay:b=1500,onClose:E,onOpen:P,open:L,placement:R="bottom",PopperComponent:A,PopperProps:T={},slotProps:$={},slots:H={},title:N,TransitionComponent:V,TransitionProps:K,...G}=s,Z=D.isValidElement(u)?u:I.jsx("span",{children:u}),X=di(),M=Bc(),[z,B]=D.useState(),[W,ee]=D.useState(null),re=D.useRef(!1),oe=C||f,se=ii(),U=ii(),j=ii(),ne=ii(),[Q,ue]=cc({controlled:L,default:!1,name:"Tooltip",state:"open"});let ce=Q;const _e=Ui(p),ge=D.useRef(),xe=$r(()=>{ge.current!==void 0&&(document.body.style.WebkitUserSelect=ge.current,ge.current=void 0),ne.clear()});D.useEffect(()=>xe,[xe]);const Ve=Ke=>{r_.clear(),Vl=!0,ue(!0),P&&!ce&&P(Ke)},be=$r(Ke=>{r_.start(800+h,()=>{Vl=!1}),ue(!1),E&&ce&&E(Ke),se.start(X.transitions.duration.shortest,()=>{re.current=!1})}),ye=Ke=>{re.current&&Ke.type!=="touchstart"||(z&&z.removeAttribute("title"),U.clear(),j.clear(),w||Vl&&S?U.start(Vl?S:w,()=>{Ve(Ke)}):Ve(Ke))},We=Ke=>{U.clear(),j.start(h,()=>{be(Ke)})},[,je]=D.useState(!1),He=Ke=>{uc(Ke.target)||(je(!1),We(Ke))},Ee=Ke=>{z||B(Ke.currentTarget),uc(Ke.target)&&(je(!0),ye(Ke))},Ze=Ke=>{re.current=!0;const ar=Z.props;ar.onTouchStart&&ar.onTouchStart(Ke)},Ge=Ke=>{Ze(Ke),j.clear(),se.clear(),xe(),ge.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ne.start(g,()=>{document.body.style.WebkitUserSelect=ge.current,ye(Ke)})},dt=Ke=>{Z.props.onTouchEnd&&Z.props.onTouchEnd(Ke),xe(),j.start(b,()=>{be(Ke)})};D.useEffect(()=>{if(!ce)return;function Ke(ar){ar.key==="Escape"&&be(ar)}return document.addEventListener("keydown",Ke),()=>{document.removeEventListener("keydown",Ke)}},[be,ce]);const Rt=At(Vi(Z),B,n);!N&&N!==0&&(ce=!1);const wt=D.useRef(),Xe=Ke=>{const ar=Z.props;ar.onMouseMove&&ar.onMouseMove(Ke),Do={x:Ke.clientX,y:Ke.clientY},wt.current&&wt.current.update()},et={},Ye=typeof N=="string";v?(et.title=!ce&&Ye&&!m?N:null,et["aria-describedby"]=ce?_e:null):(et["aria-label"]=Ye?N:null,et["aria-labelledby"]=ce&&!Ye?_e:null);const De={...et,...G,...Z.props,className:Ce(G.className,Z.props.className),onTouchStart:Ze,ref:Rt,...f?{onMouseMove:Xe}:{}},Fe={};x||(De.onTouchStart=Ge,De.onTouchEnd=dt),m||(De.onMouseOver=Kl(ye,De.onMouseOver),De.onMouseLeave=Kl(We,De.onMouseLeave),oe||(Fe.onMouseOver=ye,Fe.onMouseLeave=We)),_||(De.onFocus=Kl(Ee,De.onFocus),De.onBlur=Kl(He,De.onBlur),oe||(Fe.onFocus=Ee,Fe.onBlur=He));const ht={...s,isRtl:M,arrow:a,disableInteractive:oe,placement:R,PopperComponentProp:A,touch:re.current},Kt=typeof $.popper=="function"?$.popper(ht):$.popper,Be=D.useMemo(()=>{var ar,Hs;let Ke=[{name:"arrow",enabled:!!W,options:{element:W,padding:4}}];return(ar=T.popperOptions)!=null&&ar.modifiers&&(Ke=Ke.concat(T.popperOptions.modifiers)),(Hs=Kt==null?void 0:Kt.popperOptions)!=null&&Hs.modifiers&&(Ke=Ke.concat(Kt.popperOptions.modifiers)),{...T.popperOptions,...Kt==null?void 0:Kt.popperOptions,modifiers:Ke}},[W,T.popperOptions,Kt==null?void 0:Kt.popperOptions]),tt=kO(ht),xt=typeof $.transition=="function"?$.transition(ht):$.transition,or={slots:{popper:o.Popper,transition:o.Transition??V,tooltip:o.Tooltip,arrow:o.Arrow,...H},slotProps:{arrow:$.arrow??c.arrow,popper:{...T,...Kt??c.popper},tooltip:$.tooltip??c.tooltip,transition:{...K,...xt??c.transition}}},[An,zs]=qe("popper",{elementType:RO,externalForwardedProps:or,ownerState:ht,className:Ce(tt.popper,T==null?void 0:T.className)}),[Mn,In]=qe("transition",{elementType:ia,externalForwardedProps:or,ownerState:ht}),[wa,xa]=qe("tooltip",{elementType:PO,className:tt.tooltip,externalForwardedProps:or,ownerState:ht}),[Ea,ka]=qe("arrow",{elementType:TO,className:tt.arrow,externalForwardedProps:or,ownerState:ht,ref:ee});return I.jsxs(D.Fragment,{children:[D.cloneElement(Z,De),I.jsx(An,{as:A??cy,placement:R,anchorEl:f?{getBoundingClientRect:()=>({top:Do.y,left:Do.x,right:Do.x,bottom:Do.y,width:0,height:0})}:z,popperRef:wt,open:z?ce:!1,id:_e,transition:!0,...Fe,...zs,popperOptions:Be,children:({TransitionProps:Ke})=>I.jsx(Mn,{timeout:X.transitions.duration.shorter,...Ke,...In,children:I.jsxs(wa,{...xa,children:[N,a?I.jsx(Ea,{...ka}):null]})})})]})}),xy=D.createContext();function LO(e){return Oe("MuiTable",e)}Ae("MuiTable",["root","stickyHeader"]);const OO=e=>{const{classes:t,stickyHeader:n}=e;return Me({root:["root",n&&"stickyHeader"]},LO,t)},AO=fe("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(ze(({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"}}]}))),n_="table",MO=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiTable"}),{className:a,component:u=n_,padding:d="normal",size:o="medium",stickyHeader:c=!1,...v}=s,_={...s,component:u,padding:d,size:o,stickyHeader:c},m=OO(_),C=D.useMemo(()=>({padding:d,size:o,stickyHeader:c}),[d,o,c]);return I.jsx(xy.Provider,{value:C,children:I.jsx(AO,{as:u,role:u===n_?null:"table",ref:n,className:Ce(m.root,a),ownerState:_,...v})})}),Uc=D.createContext();function IO(e){return Oe("MuiTableBody",e)}Ae("MuiTableBody",["root"]);const DO=e=>{const{classes:t}=e;return Me({root:["root"]},IO,t)},BO=fe("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),$O={variant:"body"},i_="tbody",NO=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiTableBody"}),{className:a,component:u=i_,...d}=s,o={...s,component:u},c=DO(o);return I.jsx(Uc.Provider,{value:$O,children:I.jsx(BO,{className:Ce(c.root,a),as:u,ref:n,role:u===i_?null:"rowgroup",ownerState:o,...d})})});function jO(e){return Oe("MuiTableCell",e)}const FO=Ae("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),zO=e=>{const{classes:t,variant:n,align:s,padding:a,size:u,stickyHeader:d}=e,o={root:["root",n,d&&"stickyHeader",s!=="inherit"&&`align${he(s)}`,a!=="normal"&&`padding${he(a)}`,`size${he(u)}`]};return Me(o,jO,t)},HO=fe("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${he(n.size)}`],n.padding!=="normal"&&t[`padding${he(n.padding)}`],n.align!=="inherit"&&t[`align${he(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(ze(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
275
|
+
${e.palette.mode==="light"?ji(nt(e.palette.divider,1),.88):Ni(nt(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",[`&.${FO.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}}]}))),an=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiTableCell"}),{align:a="inherit",className:u,component:d,padding:o,scope:c,size:v,sortDirection:_,variant:m,...C}=s,x=D.useContext(xy),w=D.useContext(Uc),S=w&&w.variant==="head";let g;d?g=d:g=S?"th":"td";let f=c;g==="td"?f=void 0:!f&&S&&(f="col");const p=m||w&&w.variant,h={...s,align:a,component:g,padding:o||(x&&x.padding?x.padding:"normal"),size:v||(x&&x.size?x.size:"medium"),sortDirection:_,stickyHeader:p==="head"&&x&&x.stickyHeader,variant:p},b=zO(h);let E=null;return _&&(E=_==="asc"?"ascending":"descending"),I.jsx(HO,{as:g,ref:n,className:Ce(b.root,u),"aria-sort":E,scope:f,ownerState:h,...C})});function WO(e){return Oe("MuiTableHead",e)}Ae("MuiTableHead",["root"]);const UO=e=>{const{classes:t}=e;return Me({root:["root"]},WO,t)},VO=fe("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),KO={variant:"head"},s_="thead",qO=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiTableHead"}),{className:a,component:u=s_,...d}=s,o={...s,component:u},c=UO(o);return I.jsx(Uc.Provider,{value:KO,children:I.jsx(VO,{as:u,className:Ce(c.root,a),ref:n,role:u===s_?null:"rowgroup",ownerState:o,...d})})});function GO(e){return Oe("MuiToolbar",e)}Ae("MuiToolbar",["root","gutters","regular","dense"]);const XO=e=>{const{classes:t,disableGutters:n,variant:s}=e;return Me({root:["root",!n&&"gutters",s]},GO,t)},YO=fe("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(ze(({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}]}))),sa=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiToolbar"}),{className:a,component:u="div",disableGutters:d=!1,variant:o="regular",...c}=s,v={...s,component:u,disableGutters:d,variant:o},_=XO(v);return I.jsx(YO,{as:u,className:Ce(_.root,a),ref:n,ownerState:v,...c})});function JO(e){return Oe("MuiTableRow",e)}const o_=Ae("MuiTableRow",["root","selected","hover","head","footer"]),QO=e=>{const{classes:t,selected:n,hover:s,head:a,footer:u}=e;return Me({root:["root",n&&"selected",s&&"hover",a&&"head",u&&"footer"]},JO,t)},ZO=fe("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(ze(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${o_.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${o_.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:nt(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}))`:nt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),a_="tr",l_=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiTableRow"}),{className:a,component:u=a_,hover:d=!1,selected:o=!1,...c}=s,v=D.useContext(Uc),_={...s,component:u,hover:d,selected:o,head:v&&v.variant==="head",footer:v&&v.variant==="footer"},m=QO(_);return I.jsx(ZO,{as:u,ref:n,className:Ce(m.root,a),role:u===a_?null:"row",ownerState:_,...c})});function e5(e){return Oe("MuiTextField",e)}Ae("MuiTextField",["root"]);const t5={standard:Ef,filled:xf,outlined:Tf},r5=e=>{const{classes:t}=e;return Me({root:["root"]},e5,t)},n5=fe(pT,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ri=D.forwardRef(function(t,n){const s=Ie({props:t,name:"MuiTextField"}),{autoComplete:a,autoFocus:u=!1,children:d,className:o,color:c="primary",defaultValue:v,disabled:_=!1,error:m=!1,FormHelperTextProps:C,fullWidth:x=!1,helperText:w,id:S,InputLabelProps:g,inputProps:f,InputProps:p,inputRef:h,label:b,maxRows:E,minRows:P,multiline:L=!1,name:R,onBlur:A,onChange:T,onFocus:$,placeholder:H,required:N=!1,rows:V,select:K=!1,SelectProps:G,slots:Z={},slotProps:X={},type:M,value:z,variant:B="outlined",...W}=s,ee={...s,autoFocus:u,color:c,disabled:_,error:m,fullWidth:x,multiline:L,required:N,select:K,variant:B},re=r5(ee),oe=Ui(S),se=w&&oe?`${oe}-helper-text`:void 0,U=b&&oe?`${oe}-label`:void 0,j=t5[B],ne={slots:Z,slotProps:{input:p,inputLabel:g,htmlInput:f,formHelperText:C,select:G,...X}},Q={},ue=ne.slotProps.inputLabel;B==="outlined"&&(ue&&typeof ue.shrink<"u"&&(Q.notched=ue.shrink),Q.label=b),K&&((!G||!G.native)&&(Q.id=void 0),Q["aria-describedby"]=void 0);const[ce,_e]=qe("root",{elementType:n5,shouldForwardComponentProp:!0,externalForwardedProps:{...ne,...W},ownerState:ee,className:Ce(re.root,o),ref:n,additionalProps:{disabled:_,error:m,fullWidth:x,required:N,color:c,variant:B}}),[ge,xe]=qe("input",{elementType:j,externalForwardedProps:ne,additionalProps:Q,ownerState:ee}),[Ve,be]=qe("inputLabel",{elementType:GT,externalForwardedProps:ne,ownerState:ee}),[ye,We]=qe("htmlInput",{elementType:"input",externalForwardedProps:ne,ownerState:ee}),[je,He]=qe("formHelperText",{elementType:_T,externalForwardedProps:ne,ownerState:ee}),[Ee,Ze]=qe("select",{elementType:wy,externalForwardedProps:ne,ownerState:ee}),Ge=I.jsx(ge,{"aria-describedby":se,autoComplete:a,autoFocus:u,defaultValue:v,fullWidth:x,multiline:L,name:R,rows:V,maxRows:E,minRows:P,type:M,value:z,id:oe,inputRef:h,onBlur:A,onChange:T,onFocus:$,placeholder:H,inputProps:We,slots:{input:Z.htmlInput?ye:void 0},...xe});return I.jsxs(ce,{..._e,children:[b!=null&&b!==""&&I.jsx(Ve,{htmlFor:oe,id:U,...be,children:b}),K?I.jsx(Ee,{"aria-describedby":se,id:oe,labelId:U,value:z,input:Ge,...Ze,children:d}):Ge,w&&I.jsx(je,{id:se,...He,children:w})]})}),Oh=st(I.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),Ey=st(I.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),ky=st(I.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),vc=st(I.jsx("path",{d:"M20 4H4c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2m0 14H4V8h16zm-2-1h-6v-2h6zM7.5 17l-1.41-1.41L8.67 13l-2.59-2.59L7.5 9l4 4z"}),"Terminal"),Of=st(I.jsx("path",{d:"M20 6h-8l-2-2H4c-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-2m0 12H4V8h16z"}),"FolderOpen"),Ry=st(I.jsx("path",{d:"M20 13H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1M7 19c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2M20 3H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1M7 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"}),"Dns");function Py(e,t){return function(){return e.apply(t,arguments)}}const{toString:i5}=Object.prototype,{getPrototypeOf:li}=Object,{iterator:_a,toStringTag:Ty}=Symbol,oa=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ly=e=>typeof e=="string"&&(e==="__proto__"||e==="constructor"||e==="prototype"),Oy=(e,t,n)=>e===Object.prototype||!n&&t===null,s5=e=>{if(!Object.isExtensible(e))return!1;const t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(n=>{if(Ly(n))return!1;const s=Object.getOwnPropertyDescriptor(e,n);return!!s&&s.configurable&&s.writable===!0})},aa=(e,t)=>{let n=e;const s=[];for(;n!=null;){if(s.indexOf(n)!==-1)return!1;s.push(n);const a=li(n);if(Oy(n,a,n===e))return!1;if(oa(n,t))return!0;n=a}return!1},o5=(e,t)=>e!=null&&aa(e,t)?e[t]:void 0,a5=e=>{if(e==null||typeof e!="object"&&typeof e!="function")return e;const t=li(e);if(t===null&&s5(e))return e;const n=Object.create(null),s=Object.create(null),a=[];let u=e;for(;u!=null&&a.indexOf(u)===-1;){a.push(u);const d=u===e?t:li(u);if(Oy(u,d,u===e))break;const o=Object.getOwnPropertyNames(u);Object.getOwnPropertySymbols&&o.push(...Object.getOwnPropertySymbols(u));for(const c of o)Ly(c)||oa(s,c)||(n[c]=e[c],s[c]=!0);u=d}return n},Af=(e=>t=>{const n=i5.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ur=e=>(e=e.toLowerCase(),t=>Af(t)===e),Vc=e=>t=>typeof t===e,{isArray:zi}=Array,Hi=Vc("undefined");function js(e){return e!==null&&!Hi(e)&&e.constructor!==null&&!Hi(e.constructor)&&Sr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ay=Ur("ArrayBuffer");function l5(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ay(e.buffer),t}const c5=Vc("string"),Sr=Vc("function"),My=Vc("number"),Fs=e=>e!==null&&typeof e=="object",u5=e=>e===!0||e===!1,tc=e=>{if(!Fs(e))return!1;const t=li(e);return(t===null||t===Object.prototype||li(t)===null)&&!aa(e,Ty)&&!aa(e,_a)},d5=e=>{if(!Fs(e)||js(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},h5=Ur("Date"),f5=Ur("File"),p5=e=>!!(e&&typeof e.uri<"u"),m5=e=>e&&typeof e.getParts<"u",g5=Ur("Blob"),v5=Ur("FileList"),_5=Ur("Set"),y5=e=>Fs(e)&&Sr(e.pipe);function S5(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const c_=S5(),u_=typeof c_.FormData<"u"?c_.FormData:void 0,b5=e=>{if(!e)return!1;if(u_&&e instanceof u_)return!0;const t=li(e);if(!t||t===Object.prototype||!Sr(e.append))return!1;const n=Af(e);return n==="formdata"||n==="object"&&Sr(e.toString)&&e.toString()==="[object FormData]"},C5=Ur("URLSearchParams"),[w5,x5,E5,k5]=["ReadableStream","Request","Response","Headers"].map(Ur),R5=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ya(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,a;if(typeof e!="object"&&(e=[e]),zi(e))for(s=0,a=e.length;s<a;s++)t.call(null,e[s],s,e);else{if(js(e))return;const u=n?Object.getOwnPropertyNames(e):Object.keys(e),d=u.length;let o;for(s=0;s<d;s++)o=u[s],t.call(null,e[o],o,e)}}function Iy(e,t){if(js(e))return null;t=t.toLowerCase();const n=Object.keys(e);let s=n.length,a;for(;s-- >0;)if(a=n[s],t===a.toLowerCase())return a;return null}const Ii=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Dy=e=>!Hi(e)&&e!==Ii;function Ah(...e){const{caseless:t,skipUndefined:n}=Dy(this)&&this||{},s={},a=(u,d)=>{if(d==="__proto__"||d==="constructor"||d==="prototype")return;const o=t&&typeof d=="string"&&Iy(s,d)||d,c=oa(s,o)?s[o]:void 0;tc(c)&&tc(u)?s[o]=Ah(c,u):tc(u)?s[o]=Ah({},u):zi(u)?s[o]=u.slice():(!n||!Hi(u))&&(s[o]=u)};for(let u=0,d=e.length;u<d;u++){const o=e[u];if(!o||js(o)||(ya(o,a),typeof o!="object"||zi(o)))continue;const c=Object.getOwnPropertySymbols(o);for(let v=0;v<c.length;v++){const _=c[v];j5.call(o,_)&&a(o[_],_)}}return s}const P5=(e,t,n,{allOwnKeys:s}={})=>(ya(t,(a,u)=>{n&&Sr(a)?Object.defineProperty(e,u,{__proto__:null,value:Py(a,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,u,{__proto__:null,value:a,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:s}),e),T5=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),L5=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},O5=(e,t,n,s)=>{let a,u,d;const o={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),u=a.length;u-- >0;)d=a[u],(!s||s(d,e,t))&&!o[d]&&(t[d]=e[d],o[d]=!0);e=n!==!1&&li(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},A5=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},M5=e=>{if(!e)return null;if(zi(e))return e;let t=e.length;if(!My(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},I5=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&li(Uint8Array)),D5=(e,t)=>{const s=(e&&e[_a]).call(e);let a;for(;(a=s.next())&&!a.done;){const u=a.value;t.call(e,u[0],u[1])}},B5=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},$5=Ur("HTMLFormElement"),N5=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,a){return s.toUpperCase()+a}),{propertyIsEnumerable:j5}=Object.prototype,F5=Ur("RegExp"),By=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};ya(n,(a,u)=>{let d;(d=t(a,u,e))!==!1&&(s[u]=d||a)}),Object.defineProperties(e,s)},z5=e=>{By(e,(t,n)=>{if(Sr(e)&&["arguments","caller","callee"].includes(n))return!1;const s=e[n];if(Sr(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},H5=(e,t)=>{const n={},s=a=>{a.forEach(u=>{n[u]=!0})};return zi(e)?s(e):s(String(e).split(t)),n},W5=()=>{},U5=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function V5(e){return!!(e&&Sr(e.append)&&e[Ty]==="FormData"&&e[_a])}const K5=e=>{const t=new WeakSet,n=s=>{if(Fs(s)){if(t.has(s))return;if(js(s))return s;if(!("toJSON"in s)){t.add(s);let a;if(_5(s)){a=[];for(const u of s){const d=n(u);!Hi(d)&&a.push(d)}}else a=zi(s)?[]:{},ya(s,(u,d)=>{const o=n(u);!Hi(o)&&(a[d]=o)});return t.delete(s),a}}return s};return n(e)},q5=Ur("AsyncFunction"),G5=e=>e&&(Fs(e)||Sr(e))&&Sr(e.then)&&Sr(e.catch),$y=((e,t)=>e?setImmediate:t?((n,s)=>(Ii.addEventListener("message",({source:a,data:u})=>{a===Ii&&u===n&&s.length&&s.shift()()},!1),a=>{s.push(a),Ii.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Sr(Ii.postMessage)),X5=typeof queueMicrotask<"u"?queueMicrotask.bind(Ii):typeof process<"u"&&process.nextTick||$y,Ny=e=>e!=null&&Sr(e[_a]),Y5=e=>e!=null&&aa(e,_a)&&Ny(e),J={isArray:zi,isArrayBuffer:Ay,isBuffer:js,isFormData:b5,isArrayBufferView:l5,isString:c5,isNumber:My,isBoolean:u5,isObject:Fs,isPlainObject:tc,isEmptyObject:d5,isReadableStream:w5,isRequest:x5,isResponse:E5,isHeaders:k5,isUndefined:Hi,isDate:h5,isFile:f5,isReactNativeBlob:p5,isReactNative:m5,isBlob:g5,isRegExp:F5,isFunction:Sr,isStream:y5,isURLSearchParams:C5,isTypedArray:I5,isFileList:v5,forEach:ya,merge:Ah,extend:P5,trim:R5,stripBOM:T5,inherits:L5,toFlatObject:O5,kindOf:Af,kindOfTest:Ur,endsWith:A5,toArray:M5,forEachEntry:D5,matchAll:B5,isHTMLForm:$5,hasOwnProperty:oa,hasOwnProp:oa,hasOwnInPrototypeChain:aa,getSafeProp:o5,toSafeFlatObject:a5,reduceDescriptors:By,freezeMethods:z5,toObjectSet:H5,toCamelCase:N5,noop:W5,toFiniteNumber:U5,findKey:Iy,global:Ii,isContextDefined:Dy,isSpecCompliantForm:V5,toJSONObject:K5,isAsyncFn:q5,isThenable:G5,setImmediate:$y,asap:X5,isIterable:Ny,isSafeIterable:Y5},J5=J.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"]),Q5=e=>{const t={};let n,s,a;return e&&e.split(`
|
|
276
|
+
`).forEach(function(d){a=d.indexOf(":"),n=d.substring(0,a).trim().toLowerCase(),s=d.substring(a+1).trim();const o=J.hasOwnProp(t,n);!n||o&&J.hasOwnProp(J5,n)||(n==="set-cookie"?o?t[n].push(s):t[n]=[s]:t[n]=o?t[n]+", "+s:s)}),t};function Z5(e){let t=0,n=e.length;for(;t<n;){const s=e.charCodeAt(t);if(s!==9&&s!==32)break;t+=1}for(;n>t;){const s=e.charCodeAt(n-1);if(s!==9&&s!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const eA=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),tA=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Mf(e,t){return J.isArray(e)?e.map(n=>Mf(n,t)):Z5(String(e).replace(t,""))}const rA=e=>Mf(e,eA),nA=e=>Mf(e,tA);function jy(e){const t=Object.create(null);return J.forEach(e.toJSON(),(n,s)=>{t[s]=nA(n)}),t}const d_=Symbol("internals");function Bo(e){return e&&String(e).trim().toLowerCase()}function rc(e){return e===!1||e==null?e:J.isArray(e)?e.map(rc):rA(String(e))}function iA(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const sA=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function Yd(e){let t=0,n=e.length;for(;t<n;){const s=e.charCodeAt(t);if(s!==9&&s!==32)break;t+=1}for(;n>t;){const s=e.charCodeAt(n-1);if(s!==9&&s!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}function oA(e){const t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let n="";for(let s=1;s<t;s++){const a=e.charCodeAt(s);if(a===34||a===92&&(s+=1,s>=t))return e;n+=e[s]}return n}function aA(e){const t=Object.create(null),n=String(e);let s=0,a=!1,u=!1;function d(o){const c=Yd(n.slice(s,o)),v=c.indexOf("=");if(v<1)return;const _=Yd(c.slice(0,v));if(!sA.test(_))return;const m=_.toLowerCase();if(m==="__proto__"||m==="constructor"||m==="prototype")return;const C=Yd(c.slice(v+1));t[m]=oA(C)}for(let o=0;o<n.length;o++){const c=n.charCodeAt(o);a?u?u=!1:c===92?u=!0:c===34&&(a=!1):c===34?a=!0:(c===44||c===59)&&(d(o),s=o+1)}return d(n.length),t}const lA=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Jd(e,t,n,s,a){if(J.isFunction(s))return s.call(this,t,n);if(a&&(t=n),!!J.isString(t)){if(J.isString(s))return t.indexOf(s)!==-1;if(J.isRegExp(s))return s.test(t)}}function cA(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function uA(e,t){const n=J.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{__proto__:null,value:function(a,u,d){return this[s].call(this,t,a,u,d)},configurable:!0})})}let sr=class{constructor(t){t&&this.set(t)}set(t,n,s){const a=this;function u(o,c,v){const _=Bo(c);if(!_)return;const m=J.findKey(a,_);(!m||a[m]===void 0||v===!0||v===void 0&&a[m]!==!1)&&(a[m||c]=rc(o))}const d=(o,c)=>J.forEach(o,(v,_)=>u(v,_,c));if(J.isPlainObject(t)||t instanceof this.constructor)d(t,n);else if(J.isString(t)&&(t=t.trim())&&!lA(t))d(Q5(t),n);else if(J.isObject(t)&&J.isSafeIterable(t)){let o=Object.create(null),c,v;for(const _ of t){if(!J.isArray(_))throw new TypeError("Object iterator must return a key-value pair");v=_[0],J.hasOwnProp(o,v)?(c=o[v],o[v]=J.isArray(c)?[...c,_[1]]:[c,_[1]]):o[v]=_[1]}d(o,n)}else t!=null&&u(n,t,s);return this}get(t,n){if(t=Bo(t),t){const s=J.findKey(this,t);if(s){const a=this[s];if(!n)return a;if(n===!0)return iA(a);if(J.isFunction(n))return n.call(this,a,s);if(J.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Bo(t),t){const s=J.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||Jd(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let a=!1;function u(d){if(d=Bo(d),d){const o=J.findKey(s,d);o&&(!n||Jd(s,s[o],o,n))&&(delete s[o],a=!0)}}return J.isArray(t)?t.forEach(u):u(t),a}clear(t){const n=Object.keys(this);let s=n.length,a=!1;for(;s--;){const u=n[s];(!t||Jd(this,this[u],u,t,!0))&&(delete this[u],a=!0)}return a}normalize(t){const n=this,s={};return J.forEach(this,(a,u)=>{const d=J.findKey(s,u);if(d){n[d]=rc(a),delete n[u];return}const o=t?cA(u):String(u).trim();o!==u&&delete n[u],n[o]=rc(a),s[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return J.forEach(this,(s,a)=>{s!=null&&s!==!1&&(n[a]=t&&J.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
277
|
+
`)}getSetCookie(){const t=this.get("set-cookie");return J.isArray(t)?t:t==null||t===!1?[]:[t]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static parseParameters(t){return aA(t)}static concat(t,...n){const s=new this(t);return n.forEach(a=>s.set(a)),s}static accessor(t){const s=(this[d_]=this[d_]={accessors:{}}).accessors,a=this.prototype;function u(d){const o=Bo(d);s[o]||(uA(a,d),s[o]=!0)}return J.isArray(t)?t.forEach(u):u(t),this}};sr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);J.reduceDescriptors(sr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});J.freezeMethods(sr);const _c="[REDACTED ****]";function dA(e){if(J.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(J.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function hA(e,t){const n=new Set(t.map(u=>String(u).toLowerCase())),s=[],a=u=>{if(u===null||typeof u!="object"||J.isBuffer(u))return u;if(s.indexOf(u)!==-1)return;u instanceof sr&&(u=u.toJSON()),s.push(u);let d;if(J.isArray(u))d=[],u.forEach((o,c)=>{const v=a(o);J.isUndefined(v)||(d[c]=v)});else{if(!J.isPlainObject(u)&&dA(u))return s.pop(),u;d=Object.create(null);for(const[o,c]of Object.entries(u)){const v=n.has(o.toLowerCase())?_c:a(c);J.isUndefined(v)||(d[o]=v)}}return s.pop(),d};return a(e)}function h_(e){try{return String(e)}catch{return""}}function fA(e){return e.errors.map(n=>{try{return n&&n.message?h_(n.message):h_(n)}catch{return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}let we=class Fy extends Error{static from(t,n,s,a,u,d){let o=t.message;!o&&J.isArray(t.errors)&&t.errors.length&&(o=fA(t));const c=new Fy(o,n||t.code,s,a,u);return Object.defineProperty(c,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),d&&Object.assign(c,d),c}constructor(t,n,s,a,u){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),s&&(this.config=s),a&&(this.request=a),u&&(this.response=u,this.status=u.status)}toJSON(){const t=this.config,n=t&&J.hasOwnProp(t,"redact")?t.redact:void 0,s=J.isArray(n)&&n.length>0?hA(t,n):J.toJSONObject(t);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:s,code:this.code,status:this.status}}};we.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";we.ERR_BAD_OPTION="ERR_BAD_OPTION";we.ECONNABORTED="ECONNABORTED";we.ETIMEDOUT="ETIMEDOUT";we.ECONNREFUSED="ECONNREFUSED";we.ERR_NETWORK="ERR_NETWORK";we.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";we.ERR_DEPRECATED="ERR_DEPRECATED";we.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";we.ERR_BAD_REQUEST="ERR_BAD_REQUEST";we.ERR_CANCELED="ERR_CANCELED";we.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";we.ERR_INVALID_URL="ERR_INVALID_URL";we.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const pA=null,zy=100;function Mh(e){return J.isPlainObject(e)||J.isArray(e)}function Hy(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function Qd(e,t,n){return e?e.concat(t).map(function(a,u){return a=Hy(a),!n&&u?"["+a+"]":a}).join(n?".":""):t}function mA(e){return J.isArray(e)&&!e.some(Mh)}const gA=J.toFlatObject(J,{},null,function(t){return/^is[A-Z]/.test(t)});function Kc(e,t,n){if(!J.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const s=(p,h)=>{const b=J.getSafeProp(n,p);return J.isUndefined(b)?h:b},a=s("metaTokens",!0),u=s("visitor")||S,d=s("dots",!1),o=s("indexes",!1),c=s("Blob")||typeof Blob<"u"&&Blob,v=s("maxDepth",zy),_=c&&J.isSpecCompliantForm(t),m=[];if(!J.isFunction(u))throw new TypeError("visitor must be a function");function C(p){if(p===null)return"";if(J.isDate(p))return p.toISOString();if(J.isBoolean(p))return p.toString();if(!_&&J.isBlob(p))throw new we("Blob is not supported. Use a Buffer instead.");if(J.isArrayBuffer(p)||J.isTypedArray(p)){if(_&&typeof c=="function")return new c([p]);throw new we("Blob is not supported. Use a Buffer instead.",we.ERR_NOT_SUPPORT)}return p}function x(p){if(p>v)throw new we("Object is too deeply nested ("+p+" levels). Max depth: "+v,we.ERR_FORM_DATA_DEPTH_EXCEEDED)}function w(p,h){if(v===1/0)return JSON.stringify(p);const b=[];return JSON.stringify(p,function(P,L){if(!J.isObject(L))return L;for(;b.length&&b[b.length-1]!==this;)b.pop();return b.push(L),x(h+b.length-1),L})}function S(p,h,b){let E=p;if(J.isReactNative(t)&&J.isReactNativeBlob(p))return t.append(Qd(b,h,d),C(p)),!1;if(p&&!b&&typeof p=="object"){if(J.endsWith(h,"{}"))h=a?h:h.slice(0,-2),p=w(p,1);else if(J.isArray(p)&&mA(p)||(J.isFileList(p)||J.endsWith(h,"[]"))&&(E=J.toArray(p)))return h=Hy(h),E.forEach(function(L,R){!(J.isUndefined(L)||L===null)&&t.append(o===!0?Qd([h],R,d):o===null?h:h+"[]",C(L))}),!1}return Mh(p)?!0:(t.append(Qd(b,h,d),C(p)),!1)}const g=Object.assign(gA,{defaultVisitor:S,convertValue:C,isVisitable:Mh});function f(p,h,b=0){if(!J.isUndefined(p)){if(x(b),m.indexOf(p)!==-1)throw new Error("Circular reference detected in "+h.join("."));m.push(p),J.forEach(p,function(P,L){(!(J.isUndefined(P)||P===null)&&u.call(t,P,J.isString(L)?L.trim():L,h,g))===!0&&f(P,h?h.concat(L):[L],b+1)}),m.pop()}}if(!J.isObject(e))throw new TypeError("data must be an object");return f(e),t}function f_(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(s){return t[s]})}function If(e,t){this._pairs=[],e&&Kc(e,this,t)}const Wy=If.prototype;Wy.append=function(t,n){this._pairs.push([t,n])};Wy.toString=function(t){const n=t?s=>t.call(this,s,f_):f_;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function vA(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Uy(e,t,n){if(!t)return e;e=e||"";const s=J.isFunction(n)?{serialize:n}:n,a=J.getSafeProp(s,"encode")||vA,u=J.getSafeProp(s,"serialize");let d;if(u?d=u(t,s):d=J.isURLSearchParams(t)?t.toString():new If(t,s).toString(a),d){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+d}return e}const $o=Symbol("internals");function Vy(e){return e?e.length:0}function p_(e){if(e)for(;e.length&&e[e.length-1]===null;)e.pop()}function No(e,t){const n=e.handlers,s=Vy(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):s!==t.handlersLength&&(s?t.handlerEntries.forEach(function(u,d){n[u.index]!==u.handler&&t.handlerEntries.delete(d)}):t.handlerEntries.clear()),t.handlersLength=s}class m_{constructor(){this.handlers=[],this[$o]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(t,n,s){const a={fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null},u=this[$o];this.handlers==null&&(this.handlers=[]),No(this,u);const d=u.nextId++;return this.handlers.push(a),u.handlerEntries.set(d,{handler:a,index:this.handlers.length-1}),u.handlersLength=this.handlers.length,d}eject(t){const n=this[$o];No(this,n);const s=n.handlerEntries.get(t);if(s){if(n.handlerEntries.delete(t),this.handlers[s.index]!==s.handler)return;this.handlers[s.index]=null,n.iterationDepth||(p_(this.handlers),n.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],No(this,this[$o]))}forEach(t){const n=this[$o];No(this,n),n.iterationDepth++;try{J.forEach(this.handlers,function(a){a!==null&&t(a)})}finally{--n.iterationDepth||(No(this,n),p_(this.handlers),n.handlersLength=Vy(this.handlers))}}}const Df={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},_A=typeof URLSearchParams<"u"?URLSearchParams:If,yA=typeof FormData<"u"?FormData:null,SA=typeof Blob<"u"?Blob:null,bA={isBrowser:!0,classes:{URLSearchParams:_A,FormData:yA,Blob:SA},protocols:["http","https","file","blob","url","data"]},Bf=typeof window<"u"&&typeof document<"u",Ih=typeof navigator=="object"&&navigator||void 0,CA=Bf&&(!Ih||["ReactNative","NativeScript","NS"].indexOf(Ih.product)<0),wA=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",xA=Bf&&window.location.href||"http://localhost",EA=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Bf,hasStandardBrowserEnv:CA,hasStandardBrowserWebWorkerEnv:wA,navigator:Ih,origin:xA},Symbol.toStringTag,{value:"Module"})),Vt={...EA,...bA};function kA(e,t){return Kc(e,new Vt.classes.URLSearchParams,{visitor:function(n,s,a,u){return Vt.isNode&&J.isBuffer(n)?(this.append(s,n.toString("base64")),!1):u.defaultVisitor.apply(this,arguments)},...t})}const g_=zy;function Ky(e){if(e>g_)throw new we("FormData field is too deeply nested ("+e+" levels). Max depth: "+g_,we.ERR_FORM_DATA_DEPTH_EXCEEDED)}function RA(e){const t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let s;for(;(s=n.exec(e))!==null;)Ky(t.length),t.push(s[0]==="[]"?"":s[1]||s[0]);return t}function PA(e){const t={},n=Object.keys(e);let s;const a=n.length;let u;for(s=0;s<a;s++)u=n[s],t[u]=e[u];return t}function qy(e){function t(n,s,a,u){Ky(u);let d=n[u++];if(d==="__proto__")return!0;const o=Number.isFinite(+d),c=u>=n.length;return d=!d&&J.isArray(a)?a.length:d,c?(J.hasOwnProp(a,d)?a[d]=J.isArray(a[d])?a[d].concat(s):[a[d],s]:a[d]=s,!o):((!J.hasOwnProp(a,d)||!J.isObject(a[d]))&&(a[d]=[]),t(n,s,a[d],u)&&J.isArray(a[d])&&(a[d]=PA(a[d])),!o)}if(J.isFormData(e)&&J.isFunction(e.entries)){const n={};return J.forEachEntry(e,(s,a)=>{t(RA(s),a,n,0)}),n}return null}const Gy=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),bs=(e,t)=>e!=null&&J.hasOwnProp(e,t)?e[t]:void 0;function TA(e,t,n){if(J.isString(e))try{return(t||JSON.parse)(e),J.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const Sa={transitional:Df,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",a=s.indexOf("application/json")>-1,u=J.isObject(t);if(u&&J.isHTMLForm(t)&&(t=new FormData(t)),J.isFormData(t))return a?JSON.stringify(qy(t)):t;if(J.isArrayBuffer(t)||J.isBuffer(t)||J.isStream(t)||J.isFile(t)||J.isBlob(t)||J.isReadableStream(t))return t;if(J.isArrayBufferView(t))return t.buffer;if(J.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(u){const c=bs(this,"formSerializer");if(s.indexOf("application/x-www-form-urlencoded")>-1)return kA(t,c).toString();if((o=J.isFileList(t))||s.indexOf("multipart/form-data")>-1){const v=bs(this,"env"),_=v&&v.FormData;return Kc(o?{"files[]":t}:t,_&&new _,c)}}return u||a?(n.setContentType("application/json",!1),TA(t)):t}],transformResponse:[function(t){const n=bs(this,"transitional")||Sa.transitional,s=n&&n.forcedJSONParsing,a=bs(this,"responseType"),u=a==="json";if(J.isResponse(t)||J.isReadableStream(t))return t;if(t&&J.isString(t)&&(s&&!a||u)){const o=!(n&&n.silentJSONParsing)&&u;try{return JSON.parse(t,bs(this,"parseReviver"))}catch(c){if(o)throw c.name==="SyntaxError"?we.from(c,we.ERR_BAD_RESPONSE,this,null,bs(this,"response")):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Vt.classes.FormData,Blob:Vt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(Gy,e=>{Sa.headers[e]={}});function Zd(e,t){const n=this||Sa,s=t||n,a=sr.from(s.headers);let u=s.data;return J.forEach(e,function(o){u=o.call(n,u,a.normalize(),t?t.status:void 0)}),a.normalize(),u}function Xy(e){return!!(e&&e.__CANCEL__)}let ba=class extends we{constructor(t,n,s){super(t??"canceled",we.ERR_CANCELED,n,s),this.name="CanceledError",this.__CANCEL__=!0}};function Yy(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new we("Request failed with status code "+n.status,n.status>=400&&n.status<500?we.ERR_BAD_REQUEST:we.ERR_BAD_RESPONSE,n.config,n.request,n))}const LA=/[\t\n\r]/g;function Jy(e){if(typeof e!="string")return e;let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(LA,"")}function eh(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function OA(e,t){e=e||10;const n=new Array(e),s=new Array(e);let a=0,u=0,d;return t=t!==void 0?t:1e3,function(c){const v=Date.now(),_=s[u];d||(d=v),n[a]=c,s[a]=v;let m=u,C=0;for(;m!==a;)C+=n[m++],m=m%e;if(a=(a+1)%e,a===u&&(u=(u+1)%e),v-d<t)return;const x=_&&v-_;return x?Math.round(C*1e3/x):void 0}}function AA(e,t){let n=0,s=1e3/t,a,u;const d=(_,m=Date.now())=>{n=m,a=null,u&&(clearTimeout(u),u=null),e(..._)};return[(..._)=>{const m=Date.now(),C=m-n;C>=s?d(_,m):(a=_,u||(u=setTimeout(()=>{u=null,d(a)},s-C)))},()=>a&&d(a),(..._)=>d(_)]}const yc=(e,t,n=3)=>{let s=0;const a=OA(50,250);return AA(u=>{if(!u||!J.isNumber(u.loaded))return;const d=u.loaded,o=u.lengthComputable?u.total:void 0,c=Math.max(0,o!=null?Math.min(d,o):d),v=Math.max(0,c-s),_=a(v);s=Math.max(s,c);const m={loaded:c,total:o,progress:o?c/o:void 0,bytes:v,rate:_||void 0,estimated:_&&o?(o-c)/_:void 0,event:u,lengthComputable:o!=null,[t?"download":"upload"]:!0};e(m)},n)},v_=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},__=(e,t=J.asap)=>(...n)=>t(()=>e(...n)),MA=Vt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Vt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Vt.origin),Vt.navigator&&/(msie|trident)/i.test(Vt.navigator.userAgent)):()=>!0,IA=Vt.hasStandardBrowserEnv?{write(e,t,n,s,a,u,d){if(typeof document>"u")return;const o=[`${e}=${encodeURIComponent(t)}`];J.isNumber(n)&&o.push(`expires=${new Date(n).toUTCString()}`),J.isString(s)&&o.push(`path=${s}`),J.isString(a)&&o.push(`domain=${a}`),u===!0&&o.push("secure"),J.isString(d)&&o.push(`SameSite=${d}`),document.cookie=o.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const s=t[n].replace(/^\s+/,""),a=s.indexOf("=");if(a!==-1&&s.slice(0,a)===e)try{return decodeURIComponent(s.slice(a+1))}catch{return s.slice(a+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function DA(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function BA(e,t){if(!t)return e;let n=e.length;for(;n>0&&e.charCodeAt(n-1)===47;)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}const $A=/^https?:(?!\/\/)/i;function NA(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(t,n,s="")=>`${n}${s}${_c}`)}function jA(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${_c}@`),n=t.indexOf("#"),a=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${_c}`);return n===-1?a:`${a}#${NA(t.slice(n+1))}`}function y_(e,t){if(typeof e=="string"){const n=Jy(e);if($A.test(n))throw new we(`Invalid URL ${JSON.stringify(jA(n))}: missing "//" after protocol`,we.ERR_INVALID_URL,t)}}function Qy(e,t,n,s){y_(t,s);let a=!DA(t);return e&&(a||n===!1)?(y_(e,s),BA(e,t)):t}const S_=e=>e instanceof sr?{...e}:e,FA=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function Wi(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function s(_,m,C,x){return J.isPlainObject(_)&&J.isPlainObject(m)?J.merge.call({caseless:x},_,m):J.isPlainObject(m)?J.merge({},m):J.isArray(m)?m.slice():m}function a(_,m,C,x){if(J.isUndefined(m)){if(!J.isUndefined(_))return s(void 0,_,C,x)}else return s(_,m,C,x)}function u(_,m){if(!J.isUndefined(m))return s(void 0,m)}function d(_,m){if(J.isUndefined(m)){if(!J.isUndefined(_))return s(void 0,_)}else return s(void 0,m)}function o(_){const m=J.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!J.isUndefined(m))if(J.isPlainObject(m)){if(J.hasOwnProp(m,_))return m[_]}else return;const C=J.hasOwnProp(e,"transitional")?e.transitional:void 0;if(J.isPlainObject(C)&&J.hasOwnProp(C,_))return C[_]}function c(_,m,C){if(J.hasOwnProp(t,C))return s(_,m);if(J.hasOwnProp(e,C))return s(void 0,_)}const v={url:u,method:u,data:u,baseURL:d,transformRequest:d,transformResponse:d,paramsSerializer:d,timeout:d,timeoutErrorMessage:d,withCredentials:d,withXSRFToken:d,adapter:d,responseType:d,xsrfCookieName:d,xsrfHeaderName:d,onUploadProgress:d,onDownloadProgress:d,decompress:d,maxContentLength:d,maxBodyLength:d,beforeRedirect:d,transport:d,httpAgent:d,httpsAgent:d,cancelToken:d,socketPath:d,allowedSocketPaths:d,responseEncoding:d,validateStatus:c,headers:(_,m,C)=>a(S_(_),S_(m),C,!0)};return J.forEach(FA({...e,...t}),function(m){if(m==="__proto__"||m==="constructor"||m==="prototype")return;const C=J.hasOwnProp(v,m)?v[m]:a,x=J.hasOwnProp(e,m)?e[m]:void 0,w=J.hasOwnProp(t,m)?t[m]:void 0,S=C(x,w,m);J.isUndefined(S)&&C!==c||(n[m]=S)}),J.hasOwnProp(t,"validateStatus")&&J.isUndefined(t.validateStatus)&&o("validateStatusUndefinedResolves")===!1&&(J.hasOwnProp(e,"validateStatus")?n.validateStatus=s(void 0,e.validateStatus):delete n.validateStatus),n}const zA=["content-type","content-length"];function HA(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([s,a])=>{zA.includes(s.toLowerCase())&&e.set(s,a)})}const WA=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function Zy(e){const t=Wi({},e),n=C=>J.hasOwnProp(t,C)?t[C]:void 0,s=n("data");let a=n("withXSRFToken");const u=n("xsrfHeaderName"),d=n("xsrfCookieName");let o=n("headers");const c=n("auth"),v=n("baseURL"),_=n("allowAbsoluteUrls"),m=n("url");if(t.headers=o=sr.from(o),t.url=Uy(Qy(v,m,_,t),n("params"),n("paramsSerializer")),c){const C=J.getSafeProp(c,"username")||"",x=J.getSafeProp(c,"password")||"";try{o.set("Authorization","Basic "+btoa(C+":"+(x?WA(x):"")))}catch(w){throw we.from(w,we.ERR_BAD_OPTION_VALUE,e)}}if(J.isFormData(s)){const C=J.getSafeProp(s,"getHeaders");Vt.hasStandardBrowserEnv||Vt.hasStandardBrowserWebWorkerEnv||J.isReactNative(s)?o.setContentType(void 0):J.isFunction(C)&&HA(o,C.call(s),n("formDataHeaderPolicy"))}if(Vt.hasStandardBrowserEnv&&(J.isFunction(a)&&(a=a(t)),a===!0||a==null&&MA(t.url))){const x=u&&d&&IA.read(d);x&&o.set(u,x)}return t}const UA=typeof XMLHttpRequest<"u",VA=UA&&function(e){return new Promise(function(n,s){const a=Zy(e);let u=a.data;const d=sr.from(a.headers).normalize();let{responseType:o,onUploadProgress:c,onDownloadProgress:v}=a,_,m,C,x,w,S;function g(){x&&x(),w&&w(),a.cancelToken&&a.cancelToken.unsubscribe(_),a.signal&&a.signal.removeEventListener("abort",_)}let f=new XMLHttpRequest;f.open(a.method.toUpperCase(),a.url,!0),f.timeout=a.timeout;function p(b){if(!f)return;if(f.status===0&&(eh(Jy(a.url))||eh(Vt.origin))!=="file"&&!(f.responseURL&&f.responseURL.startsWith("file:"))){s(new we("Request aborted",we.ECONNABORTED,e,f)),g(),f=null;return}try{b?S&&S(b):w&&w()}catch(R){setTimeout(()=>{throw R})}if(!f)return;const E=sr.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),L={data:!o||o==="text"||o==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:E,config:e,request:f};Yy(function(A){n(A),g()},function(A){s(A),g()},L),f=null}"onloadend"in f?f.onloadend=p:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.startsWith("file:"))||setTimeout(p)},f.onabort=function(){f&&(s(new we("Request aborted",we.ECONNABORTED,e,f)),g(),f=null)},f.onerror=function(E){const P=E&&E.message?E.message:"Network Error",L=new we(P,we.ERR_NETWORK,e,f);L.event=E||null,s(L),g(),f=null},f.ontimeout=function(){let E=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const P=a.transitional||Df;a.timeoutErrorMessage&&(E=a.timeoutErrorMessage),s(new we(E,P.clarifyTimeoutError?we.ETIMEDOUT:we.ECONNABORTED,e,f)),g(),f=null},u===void 0&&d.setContentType(null),"setRequestHeader"in f&&J.forEach(jy(d),function(E,P){f.setRequestHeader(P,E)}),J.isUndefined(a.withCredentials)||(f.withCredentials=!!a.withCredentials),o&&o!=="json"&&(f.responseType=a.responseType),v&&([C,w,S]=yc(v,!0),f.addEventListener("progress",C)),c&&f.upload&&([m,x]=yc(c),f.upload.addEventListener("progress",m),f.upload.addEventListener("loadend",x)),(a.cancelToken||a.signal)&&(_=b=>{f&&(s(!b||b.type?new ba(null,e,f):b),f.abort(),g(),f=null)},a.cancelToken&&a.cancelToken.subscribe(_),a.signal&&(a.signal.aborted?_():a.signal.addEventListener("abort",_)));const h=eh(a.url);if(h&&!Vt.protocols.includes(h)){s(new we("Unsupported protocol "+h+":",we.ERR_BAD_REQUEST,e)),g();return}f.send(u||null)})},KA=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let s=!1;const a=function(c){if(!s){s=!0,d();const v=c instanceof Error?c:this.reason;n.abort(v instanceof we?v:new ba(v instanceof Error?v.message:v))}};let u=t&&setTimeout(()=>{u=null,a(new we(`timeout of ${t}ms exceeded`,we.ETIMEDOUT))},t);const d=()=>{e&&(u&&clearTimeout(u),u=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(a):c.removeEventListener("abort",a)}),e=null)};e.forEach(c=>{if(!s){if(c.aborted){a.call(c);return}c.addEventListener("abort",a,{once:!0})}});const{signal:o}=n;return o.unsubscribe=()=>J.asap(d),o},qA=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let s=0,a;for(;s<n;)a=s+t,yield e.slice(s,a),s=a},GA=async function*(e,t){for await(const n of XA(e))yield*qA(n,t)},XA=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:s}=await t.read();if(n)break;yield s}}finally{await t.cancel()}},b_=(e,t,n,s)=>{const a=GA(e,t);let u=0,d,o=c=>{d||(d=!0,s&&s(c))};return new ReadableStream({async pull(c){try{const{done:v,value:_}=await a.next();if(v){o(),c.close();return}let m=_.byteLength;if(n){let C=u+=m;n(C)}c.enqueue(new Uint8Array(_))}catch(v){throw o(v),v}},cancel(c){return o(c),a.return()}},{highWaterMark:2})},C_=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,eS=(e,t,n)=>t+2<n&&C_(e.charCodeAt(t+1))&&C_(e.charCodeAt(t+2)),w_=e=>e<=57?e-48:(e&223)-55,YA=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,JA=e=>e===9||e===10||e===12||e===13||e===32,QA=e=>{const t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},ZA=e=>{const t=e.length;let n=0;return t>0&&e.charCodeAt(t-1)===61&&(n++,t>1&&e.charCodeAt(t-2)===61&&n++),Math.floor((t-n)*3/4)},eM=e=>{const t=e.length;let n=0,s=0,a=!1;for(let u=0;u<t;u++){let d=e.charCodeAt(u);if(d===37&&eS(e,u,t)&&(d=w_(e.charCodeAt(u+1))*16+w_(e.charCodeAt(u+2)),u+=2),!JA(d)){if(d===61){s++;continue}if(!YA(d)||s>0){a=!0;continue}n++}}return a||s>2||s>0&&(n+s)%4!==0||n%4===1?ZA(e):QA(n)},tM=(e,t)=>{if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const n=e.indexOf(",");if(n<0)return 0;const s=e.slice(5,n),a=e.slice(n+1);if(/;base64/i.test(s))return t(a);let d=0;for(let o=0,c=a.length;o<c;o++){const v=a.charCodeAt(o);if(v===37&&eS(a,o,c))d+=1,o+=2;else if(v<128)d+=1;else if(v<2048)d+=2;else if(v>=55296&&v<=56319&&o+1<c){const _=a.charCodeAt(o+1);_>=56320&&_<=57343?(d+=4,o++):d+=3}else d+=3}return d};function rM(e){const t=typeof e=="string"?e.indexOf("#"):-1;return tM(t===-1?e:e.slice(0,t),eM)}const $f="1.20.0",x_=64*1024,nM={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:ql}=J,iM=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),E_=e=>{if(!J.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},k_=(e,...t)=>{try{return!!e(...t)}catch{return!1}},sM=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},oM=e=>{const t=J.global!==void 0&&J.global!==null?J.global:globalThis,{ReadableStream:n,TextEncoder:s}=t;e=J.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:a,Request:u,Response:d}=e,o=a?ql(a):typeof fetch=="function",c=ql(u),v=ql(d);if(!o)return!1;const _=o&&ql(n),m=o&&(typeof s=="function"?(f=>p=>f.encode(p))(new s):async f=>new Uint8Array(await new u(f).arrayBuffer())),C=c&&_&&k_(()=>{let f=!1;const p=new u(Vt.origin,{body:new n,method:"POST",get duplex(){return f=!0,"half"}}),h=p.headers.has("Content-Type");return p.body!=null&&p.body.cancel(),f&&!h}),x=v&&_&&k_(()=>J.isReadableStream(new d("").body)),w={stream:x&&(f=>f.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(f=>{!w[f]&&(w[f]=(p,h)=>{let b=p&&p[f];if(b)return b.call(p);throw new we(`Response type '${f}' is not supported`,we.ERR_NOT_SUPPORT,h)})});const S=async f=>{if(f==null)return 0;if(J.isBlob(f))return f.size;if(J.isSpecCompliantForm(f))return(await new u(Vt.origin,{method:"POST",body:f}).arrayBuffer()).byteLength;if(J.isArrayBufferView(f)||J.isArrayBuffer(f))return f.byteLength;if(J.isURLSearchParams(f)&&(f=f+""),J.isString(f))return(await m(f)).byteLength},g=async(f,p)=>{const h=J.toFiniteNumber(f.getContentLength());return h??S(p)};return async f=>{let{url:p,method:h,data:b,signal:E,cancelToken:P,timeout:L,onDownloadProgress:R,onUploadProgress:A,responseType:T,headers:$,withCredentials:H="same-origin",fetchOptions:N,maxContentLength:V,maxBodyLength:K,maxRedirects:G}=Zy(f);const Z=J.isNumber(V)&&V>-1,X=J.isNumber(K)&&K>-1,M=U=>J.hasOwnProp(f,U)?f[U]:void 0;let z=a||fetch;T=T?(T+"").toLowerCase():"text";let B=KA([E,P&&P.toAbortSignal()],L),W=null;const ee=B&&B.unsubscribe&&(()=>{B.unsubscribe()});let re,oe=null;const se=()=>new we("Request body larger than maxBodyLength limit",we.ERR_BAD_REQUEST,f,W);try{let U;const j=M("auth");if(j){const ye=J.getSafeProp(j,"username")||"",We=J.getSafeProp(j,"password")||"";U={username:ye,password:We}}if(sM(p)){const ye=new URL(p,Vt.origin);if(!U&&(ye.username||ye.password)){const We=E_(ye.username),je=E_(ye.password);U={username:We,password:je}}(ye.username||ye.password)&&(ye.username="",ye.password="",p=ye.href)}if(U&&($.delete("authorization"),$.set("Authorization","Basic "+btoa(iM((U.username||"")+":"+(U.password||""))))),Z&&typeof p=="string"&&p.startsWith("data:")&&rM(p)>V)throw new we("maxContentLength size of "+V+" exceeded",we.ERR_BAD_RESPONSE,f,W);if(X&&h!=="get"&&h!=="head"){const ye=await S(b);if(typeof ye=="number"&&isFinite(ye)&&(re=ye,ye>K))throw se()}const ne=X&&(J.isReadableStream(b)||J.isStream(b)),Q=(ye,We,je)=>b_(ye,x_,He=>{if(X&&He>K)throw oe=se();We&&We(He)},je);if(C&&h!=="get"&&h!=="head"&&(A||ne)){if(re=re??await g($,b),re!==0||ne){let ye=new u(p,{method:"POST",body:b,duplex:"half"}),We;if(J.isFormData(b)&&(We=ye.headers.get("content-type"))&&$.setContentType(We),ye.body){const[je,He]=A&&v_(re,yc(__(A)))||[];b=Q(ye.body,je,He)}}}else if(ne&&!c&&_&&h!=="get"&&h!=="head")b=Q(b);else if(ne&&c&&!C&&h!=="get"&&h!=="head")throw new we("Stream request bodies are not supported by the current fetch implementation",we.ERR_NOT_SUPPORT,f,W);J.isString(H)||(H=H?"include":"omit");const ue=c&&"credentials"in u.prototype;if(J.isFormData(b)){const ye=$.getContentType();ye&&/^multipart\/form-data/i.test(ye)&&!/boundary=/i.test(ye)&&$.delete("content-type")}$.set("User-Agent","axios/"+$f,!1);const ce=N==null?N:Object.assign(Object.create(null),N);ce&&(delete ce.body,delete ce.headers,delete ce.method,delete ce.signal,delete ce.duplex,delete ce.credentials);const _e=Object.assign(Object.create(null),ce,{signal:B,method:h.toUpperCase(),headers:jy($.normalize()),body:b,duplex:"half",credentials:ue?H:void 0});c&&(J.forEach(nM,(ye,We)=>{_e[We]===void 0&&(_e[We]=ye)}),_e.signal===void 0&&(_e.signal=null),_e.body===void 0&&(_e.body=null)),G===0&&(_e.redirect="manual",ce&&(ce.redirect="manual")),W=c&&new u(p,_e);let ge=await(c?z(W,ce):z(p,_e));const xe=sr.from(ge.headers);if(Z){const ye=J.toFiniteNumber(xe.getContentLength());if(ye!=null&&ye>V)throw new we("maxContentLength size of "+V+" exceeded",we.ERR_BAD_RESPONSE,f,W)}const Ve=x&&(T==="stream"||T==="response");if(x&&ge.body&&(R||Z||Ve&&ee)){const ye={};["status","statusText","headers"].forEach(Ge=>{ye[Ge]=ge[Ge]});const We=J.toFiniteNumber(xe.getContentLength()),[je,He]=R&&v_(We,yc(__(R),!0))||[];let Ee=0;const Ze=Ge=>{if(Z&&(Ee=Ge,Ee>V))throw new we("maxContentLength size of "+V+" exceeded",we.ERR_BAD_RESPONSE,f,W);je&&je(Ge)};ge=new d(b_(ge.body,x_,Ze,()=>{He&&He(),ee&&ee()}),ye)}T=T||"text";let be=await w[J.findKey(w,T)||"text"](ge,f);if(Z&&!x&&!Ve){let ye;if(be!=null&&(typeof be.byteLength=="number"?ye=be.byteLength:typeof be.size=="number"?ye=be.size:typeof be=="string"&&(ye=typeof s=="function"?new s().encode(be).byteLength:be.length)),typeof ye=="number"&&ye>V)throw new we("maxContentLength size of "+V+" exceeded",we.ERR_BAD_RESPONSE,f,W)}return!Ve&&ee&&ee(),await new Promise((ye,We)=>{Yy(ye,We,{data:be,headers:sr.from(ge.headers),status:ge.status,statusText:ge.statusText,config:f,request:W})})}catch(U){if(ee&&ee(),B&&B.aborted&&B.reason instanceof we){const j=B.reason;throw j.config=f,W&&(j.request=W),U!==j&&Object.defineProperty(j,"cause",{__proto__:null,value:U,writable:!0,enumerable:!1,configurable:!0}),j}if(oe)throw W&&!oe.request&&(oe.request=W),oe;if(U instanceof we)throw W&&!U.request&&(U.request=W),U;if(U&&U.name==="TypeError"&&/Load failed|fetch/i.test(U.message)){const j=new we("Network Error",we.ERR_NETWORK,f,W,U&&U.response);throw Object.defineProperty(j,"cause",{__proto__:null,value:U.cause||U,writable:!0,enumerable:!1,configurable:!0}),j}throw we.from(U,U&&U.code,f,W,U&&U.response)}}},aM=new Map,tS=e=>{let t=e&&e.env||{};const{fetch:n,Request:s,Response:a}=t,u=[s,a,n];let d=u.length,o=d,c,v,_=aM;for(;o--;)c=u[o],v=_.get(c),v===void 0&&_.set(c,v=o?new Map:oM(t)),_=v;return v};tS();const Nf={http:pA,xhr:VA,fetch:{get:tS}};J.forEach(Nf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const R_=e=>`- ${e}`,lM=e=>J.isFunction(e)||e===null||e===!1;function cM(e,t){e=J.isArray(e)?e:[e];const{length:n}=e;let s,a;const u={};for(let d=0;d<n;d++){s=e[d];let o;if(a=s,!lM(s)&&(a=Nf[(o=String(s)).toLowerCase()],a===void 0))throw new we(`Unknown adapter '${o}'`);if(a&&(J.isFunction(a)||(a=a.get(t))))break;u[o||"#"+d]=a}if(!a){const d=Object.entries(u).map(([c,v])=>`adapter ${c} `+(v===!1?"is not supported by the environment":"is not available in the build"));let o=n?d.length>1?`since :
|
|
278
|
+
`+d.map(R_).join(`
|
|
279
|
+
`):" "+R_(d[0]):"as no adapter specified";throw new we("There is no suitable adapter to dispatch the request "+o,we.ERR_NOT_SUPPORT)}return a}const rS={getAdapter:cM,adapters:Nf};function th(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ba(null,e)}function rh(e){const t=J.toSafeFlatObject(e);return th(t),t.headers=sr.from(J.getSafeProp(t,"headers")),t.data=Zd.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),rS.getAdapter(t.adapter||Sa.adapter,t)(t).then(function(a){th(t),t.response=a;try{a.data=Zd.call(t,t.transformResponse,a)}finally{delete t.response}return a.headers=sr.from(a.headers),a},function(a){if(!Xy(a)&&(th(t),a&&a.response)){t.response=a.response;try{a.response.data=Zd.call(t,t.transformResponse,a.response)}finally{delete t.response}a.response.headers=sr.from(a.response.headers)}return Promise.reject(a)})}const qc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{qc[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const P_={};qc.transitional=function(t,n,s){function a(u,d){return"[Axios v"+$f+"] Transitional option '"+u+"'"+d+(s?". "+s:"")}return(u,d,o)=>{if(t===!1)throw new we(a(d," has been removed"+(n?" in "+n:"")),we.ERR_DEPRECATED);return n&&!P_[d]&&(P_[d]=!0,console.warn(a(d," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(u,d,o):!0}};qc.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function uM(e,t,n){if(typeof e!="object"||e===null)throw new we("options must be an object",we.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let a=s.length;for(;a-- >0;){const u=s[a],d=Object.prototype.hasOwnProperty.call(t,u)?t[u]:void 0;if(d){const o=e[u],c=o===void 0||d(o,u,e);if(c!==!0)throw new we("option "+u+" must be "+c,we.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new we("Unknown option "+u,we.ERR_BAD_OPTION)}}const nc={assertOptions:uM,validators:qc},tr=nc.validators;let $i=class{constructor(t){this.defaults=t||{},this.interceptors={request:new m_,response:new m_}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error)try{let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const u=a.stack;let d="";if(typeof u=="string"){const o=u.indexOf(`
|
|
280
|
+
`);d=o===-1?"":u.slice(o+1)}if(!s.stack)s.stack=d;else if(d){const o=d.indexOf(`
|
|
281
|
+
`),c=o===-1?-1:d.indexOf(`
|
|
282
|
+
`,o+1),v=c===-1?"":d.slice(c+1);String(s.stack).endsWith(v)||(s.stack+=`
|
|
283
|
+
`+d)}}catch{}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Wi(this.defaults,n);const{transitional:s,paramsSerializer:a,headers:u}=n;s!==void 0&&nc.assertOptions(s,{silentJSONParsing:tr.transitional(tr.boolean),forcedJSONParsing:tr.transitional(tr.boolean),clarifyTimeoutError:tr.transitional(tr.boolean),legacyInterceptorReqResOrdering:tr.transitional(tr.boolean),advertiseZstdAcceptEncoding:tr.transitional(tr.boolean),validateStatusUndefinedResolves:tr.transitional(tr.boolean)},!1),a!=null&&(J.isFunction(a)?n.paramsSerializer={serialize:a}:nc.assertOptions(a,{encode:tr.function,serialize:tr.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),nc.assertOptions(n,{baseUrl:tr.spelling("baseURL"),withXsrfToken:tr.spelling("withXSRFToken")},!0),n.method=(J.getSafeProp(n,"method")||J.getSafeProp(this.defaults,"method")||"get").toLowerCase();let d=u&&J.merge(u.common,u[n.method]);u&&J.forEach(Gy.concat("common"),w=>{delete u[w]}),n.headers=sr.concat(d,u);const o=[];let c=!0;this.interceptors.request.forEach(function(S){if(typeof S.runWhen=="function"&&S.runWhen(n)===!1)return;c=c&&S.synchronous;const g=n.transitional||Df;g&&g.legacyInterceptorReqResOrdering?o.unshift(S.fulfilled,S.rejected):o.push(S.fulfilled,S.rejected)});const v=[];this.interceptors.response.forEach(function(S){v.push(S.fulfilled,S.rejected)});let _,m=0,C;if(!c){const w=[rh.bind(this),void 0];for(w.unshift(...o),w.push(...v),C=w.length,_=Promise.resolve(n);m<C;)_=_.then(w[m++],w[m++]);return _}C=o.length;let x=n;for(;m<C;){const w=o[m++],S=o[m++];try{x=w?w(x):x}catch(g){if(!S){_=Promise.reject(g);break}try{const f=S.call(this,g);J.isThenable(f)&&(_=Promise.resolve(f).then(()=>rh.call(this,x)))}catch(f){_=Promise.reject(f)}break}}if(!_)try{_=rh.call(this,x)}catch(w){_=Promise.reject(w)}for(m=0,C=v.length;m<C;)_=_.then(v[m++],v[m++]);return _}getUri(t){t=Wi(this.defaults,t);const n=Qy(t.baseURL,t.url,t.allowAbsoluteUrls,t);return Uy(n,t.params,t.paramsSerializer)}};J.forEach(["delete","get","head","options"],function(t){$i.prototype[t]=function(n,s){return this.request(Wi(s||{},{method:t,url:n,data:s&&J.hasOwnProp(s,"data")?s.data:void 0}))}});J.forEach(["post","put","patch","query"],function(t){function n(s){return function(u,d,o){return this.request(Wi(o||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:u,data:d}))}}$i.prototype[t]=n(),t!=="query"&&($i.prototype[t+"Form"]=n(!0))});let dM=class nS{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(u){n=u});const s=this;this.promise.then(a=>{if(!s._listeners)return;let u=s._listeners.length;for(;u-- >0;)s._listeners[u](a);s._listeners=null}),this.promise.then=a=>{let u;const d=new Promise(o=>{s.subscribe(o),u=o}).then(a);return d.cancel=function(){s.unsubscribe(u)},d},t(function(u,d,o){s.reason||(s.reason=new ba(u,d,o),n(s.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=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new nS(function(a){t=a}),cancel:t}}};function hM(e){return function(n){return e.apply(null,n)}}function fM(e){return J.isObject(e)&&e.isAxiosError===!0}const ic={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,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent: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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ic).forEach(([e,t])=>{ic[t]===void 0&&(ic[t]=e)});function iS(e){const t=new $i(e),n=Py($i.prototype.request,t);return J.extend(n,$i.prototype,t,{allOwnKeys:!0}),J.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return iS(Wi(e,a))},n}const Dt=iS(Sa);Dt.Axios=$i;Dt.CanceledError=ba;Dt.CancelToken=dM;Dt.isCancel=Xy;Dt.VERSION=$f;Dt.toFormData=Kc;Dt.AxiosError=we;Dt.Cancel=Dt.CanceledError;Dt.all=function(t){return Promise.all(t)};Dt.spread=hM;Dt.isAxiosError=fM;Dt.mergeConfig=Wi;Dt.AxiosHeaders=sr;Dt.formToJSON=e=>qy(J.isHTMLForm(e)?new FormData(e):e);Dt.getAdapter=rS.getAdapter;Dt.HttpStatusCode=ic;Dt.default=Dt;const{Axios:KM,AxiosError:qM,CanceledError:GM,isCancel:XM,CancelToken:YM,VERSION:JM,all:QM,Cancel:ZM,isAxiosError:eI,spread:tI,toFormData:rI,AxiosHeaders:nI,HttpStatusCode:iI,formToJSON:sI,getAdapter:oI,mergeConfig:aI,create:lI}=Dt,Ca=Dt.create({baseURL:"/api",timeout:3e4}),sS=()=>Ca.get("/machines").then(e=>e.data),pM=e=>Ca.get(`/machines/${e}`).then(t=>t.data),mM=e=>Ca.post("/machines",e).then(t=>t.data),gM=(e,t)=>Ca.put(`/machines/${e}`,t).then(n=>n.data),vM=e=>Ca.delete(`/machines/${e}`).then(t=>t.data);function oS(e){return`${window.location.protocol==="https:"?"wss":"ws"}://${window.location.host}${e}`}const _M=st(I.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),yM=st(I.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff"),T_={name:"",host:"",port:22,username:"",password:"",privateKey:"",passphrase:""};function aS({open:e,initial:t,onClose:n,onSaved:s}){const[a,u]=D.useState(T_),[d,o]=D.useState(!1),[c,v]=D.useState(!1),[_,m]=D.useState(""),[C,x]=D.useState(!1),w=!!t;D.useEffect(()=>{e&&(m(""),o(!1),v(!1),u(t?{name:t.name||"",host:t.host||"",port:t.port||22,username:t.username||"",password:"",privateKey:"",passphrase:""}:T_))},[e,t]);const S=f=>p=>u(h=>({...h,[f]:p.target.value})),g=async()=>{var f,p;if(m(""),!a.name.trim()||!a.host.trim()||!a.username.trim()){m("名称、主机地址、用户名为必填项");return}x(!0);try{const h={name:a.name.trim(),host:a.host.trim(),port:Number(a.port)||22,username:a.username.trim(),password:a.password,privateKey:a.privateKey,passphrase:a.passphrase},b=w?await gM(t.id,h):await mM(h);s==null||s(b),n==null||n()}catch(h){m(((p=(f=h==null?void 0:h.response)==null?void 0:f.data)==null?void 0:p.error)||h.message)}finally{x(!1)}};return I.jsxs(Sf,{open:e,onClose:n,maxWidth:"sm",fullWidth:!0,children:[I.jsx(wf,{children:w?"编辑机器":"新建机器"}),I.jsxs(Cf,{dividers:!0,children:[_&&I.jsx(uf,{severity:"error",sx:{mb:2},children:_}),I.jsxs(ti,{container:!0,spacing:2,children:[I.jsx(ti,{item:!0,xs:12,sm:7,children:I.jsx(ri,{label:"名称",value:a.name,onChange:S("name"),fullWidth:!0,required:!0,autoFocus:!0})}),I.jsx(ti,{item:!0,xs:12,sm:5,children:I.jsx(ri,{label:"端口",type:"number",value:a.port,onChange:S("port"),fullWidth:!0,inputProps:{min:1,max:65535}})}),I.jsx(ti,{item:!0,xs:12,sm:8,children:I.jsx(ri,{label:"主机地址",placeholder:"192.168.1.10 或 example.com",value:a.host,onChange:S("host"),fullWidth:!0,required:!0})}),I.jsx(ti,{item:!0,xs:12,sm:4,children:I.jsx(ri,{label:"用户名",value:a.username,onChange:S("username"),fullWidth:!0,required:!0})}),I.jsx(ti,{item:!0,xs:12,children:I.jsx(ri,{label:w?"密码(留空表示不修改)":"密码",type:d?"text":"password",value:a.password,onChange:S("password"),fullWidth:!0,autoComplete:"new-password",InputProps:{endAdornment:I.jsx(UT,{position:"end",children:I.jsx(ur,{onClick:()=>o(f=>!f),edge:"end",children:d?I.jsx(yM,{}):I.jsx(_M,{})})})}})}),I.jsx(ti,{item:!0,xs:12,children:I.jsx(Yt,{size:"small",onClick:()=>v(f=>!f),children:c?"收起私钥设置":"使用私钥登录(可选)"})}),I.jsx(ti,{item:!0,xs:12,children:I.jsxs(fc,{in:c,children:[I.jsx(ri,{label:"私钥内容(PEM)",value:a.privateKey,onChange:S("privateKey"),fullWidth:!0,multiline:!0,minRows:4,placeholder:"-----BEGIN OPENSSH PRIVATE KEY-----",sx:{mt:1}}),I.jsx(ri,{label:"私钥密码短语(可选)",type:"password",value:a.passphrase,onChange:S("passphrase"),fullWidth:!0,sx:{mt:2}}),I.jsx(ct,{variant:"caption",color:"text.secondary",children:"填写私钥时将优先使用密钥认证,密码用于 keyboard-interactive 回退。"})]})})]})]}),I.jsxs(bf,{children:[I.jsx(Yt,{onClick:n,disabled:C,children:"取消"}),I.jsx(Yt,{variant:"contained",onClick:g,disabled:C,children:C?"保存中...":"保存"})]})]})}function SM(){const[e,t]=D.useState([]),[n,s]=D.useState(!0),[a,u]=D.useState(""),[d,o]=D.useState(!1),[c,v]=D.useState(null),[_,m]=D.useState(null),C=async()=>{s(!0),u("");try{t(await sS())}catch(S){u(S.message)}finally{s(!1)}};D.useEffect(()=>{C()},[]),D.useEffect(()=>{document.title="mysshx 管理器"},[]);const x=async()=>{_&&(await vM(_.id),m(null),C())},w=S=>window.open(S,"_blank","noopener");return I.jsxs(bt,{sx:{minHeight:"100vh"},children:[I.jsx(df,{position:"static",elevation:0,sx:{bgcolor:"background.paper",borderBottom:1,borderColor:"divider"},children:I.jsxs(sa,{children:[I.jsx(vc,{sx:{mr:1.5,color:"primary.main"}}),I.jsx(ct,{variant:"h6",sx:{flexGrow:1,fontWeight:600},children:"mysshx 管理器"}),I.jsx(Yt,{variant:"contained",startIcon:I.jsx(Oh,{}),onClick:()=>{v(null),o(!0)},children:"新建机器"})]})}),I.jsxs(_P,{maxWidth:"lg",sx:{py:4},children:[a&&I.jsx(uf,{severity:"error",sx:{mb:2},children:a}),I.jsx(On,{variant:"outlined",children:n?I.jsx(bt,{sx:{display:"flex",justifyContent:"center",py:8},children:I.jsx(Ki,{})}):e.length===0?I.jsxs(bt,{sx:{textAlign:"center",py:8},children:[I.jsx(Ry,{sx:{fontSize:56,color:"text.disabled",mb:1}}),I.jsx(ct,{color:"text.secondary",gutterBottom:!0,children:"还没有保存任何机器"}),I.jsx(Yt,{variant:"contained",startIcon:I.jsx(Oh,{}),onClick:()=>{v(null),o(!0)},children:"新建机器"})]}):I.jsxs(MO,{children:[I.jsx(qO,{children:I.jsxs(l_,{children:[I.jsx(an,{children:"名称"}),I.jsx(an,{children:"地址"}),I.jsx(an,{children:"用户"}),I.jsx(an,{children:"认证"}),I.jsx(an,{align:"right",children:"操作"})]})}),I.jsx(NO,{children:e.map(S=>I.jsxs(l_,{hover:!0,children:[I.jsx(an,{children:I.jsx(ct,{fontWeight:600,children:S.name})}),I.jsxs(an,{children:[S.host,":",S.port]}),I.jsx(an,{children:S.username}),I.jsx(an,{children:S.hasPrivateKey?I.jsx(ks,{size:"small",label:"私钥",color:"secondary",variant:"outlined"}):S.hasPassword?I.jsx(ks,{size:"small",label:"密码",color:"primary",variant:"outlined"}):I.jsx(ks,{size:"small",label:"无凭据",variant:"outlined"})}),I.jsxs(an,{align:"right",children:[I.jsx(dn,{title:"打开终端",children:I.jsx(ur,{color:"primary",onClick:()=>w(`/terminal/${S.id}`),children:I.jsx(vc,{})})}),I.jsx(dn,{title:"打开文件管理",children:I.jsx(ur,{color:"secondary",onClick:()=>w(`/sftp/${S.id}`),children:I.jsx(Of,{})})}),I.jsx(dn,{title:"编辑",children:I.jsx(ur,{onClick:()=>{v(S),o(!0)},children:I.jsx(Ey,{})})}),I.jsx(dn,{title:"删除",children:I.jsx(ur,{color:"error",onClick:()=>m(S),children:I.jsx(ky,{})})})]})]},S.id))})]})}),I.jsx(ct,{variant:"caption",color:"text.secondary",sx:{display:"block",mt:2},children:"提示:终端与文件管理会以独立页面在新标签页中打开。密码使用本地密钥加密后存储于 SQLite。"})]}),I.jsx(aS,{open:d,initial:c,onClose:()=>o(!1),onSaved:C}),I.jsxs(Sf,{open:!!_,onClose:()=>m(null),children:[I.jsx(wf,{children:"删除机器"}),I.jsx(Cf,{children:I.jsxs(tT,{children:["确定删除「",_==null?void 0:_.name,"」吗?此操作不可恢复。"]})}),I.jsxs(bf,{children:[I.jsx(Yt,{onClick:()=>m(null),children:"取消"}),I.jsx(Yt,{color:"error",variant:"contained",onClick:x,children:"删除"})]})]})]})}const lS=st(I.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),cS=st(I.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh"),uS=st(I.jsx("path",{d:"M6.99 11 3 15l3.99 4v-3H14v-2H6.99zM21 9l-3.99-4v3H10v2h7.01v3z"}),"SwapHoriz");var nh={exports:{}},L_;function bM(){return L_||(L_=1,(function(e,t){(function(n,s){e.exports=s()})(globalThis,(()=>(()=>{var n={4567:function(d,o,c){var v=this&&this.__decorate||function(p,h,b,E){var P,L=arguments.length,R=L<3?h:E===null?E=Object.getOwnPropertyDescriptor(h,b):E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")R=Reflect.decorate(p,h,b,E);else for(var A=p.length-1;A>=0;A--)(P=p[A])&&(R=(L<3?P(R):L>3?P(h,b,R):P(h,b))||R);return L>3&&R&&Object.defineProperty(h,b,R),R},_=this&&this.__param||function(p,h){return function(b,E){h(b,E,p)}};Object.defineProperty(o,"__esModule",{value:!0}),o.AccessibilityManager=void 0;const m=c(9042),C=c(9924),x=c(844),w=c(4725),S=c(2585),g=c(3656);let f=o.AccessibilityManager=class extends x.Disposable{constructor(p,h,b,E){super(),this._terminal=p,this._coreBrowserService=b,this._renderService=E,this._rowColumns=new WeakMap,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=this._coreBrowserService.mainDocument.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=this._coreBrowserService.mainDocument.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let P=0;P<this._terminal.rows;P++)this._rowElements[P]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[P]);if(this._topBoundaryFocusListener=P=>this._handleBoundaryFocus(P,0),this._bottomBoundaryFocusListener=P=>this._handleBoundaryFocus(P,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=this._coreBrowserService.mainDocument.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new C.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize((P=>this._handleResize(P.rows)))),this.register(this._terminal.onRender((P=>this._refreshRows(P.start,P.end)))),this.register(this._terminal.onScroll((()=>this._refreshRows()))),this.register(this._terminal.onA11yChar((P=>this._handleChar(P)))),this.register(this._terminal.onLineFeed((()=>this._handleChar(`
|
|
284
|
+
`)))),this.register(this._terminal.onA11yTab((P=>this._handleTab(P)))),this.register(this._terminal.onKey((P=>this._handleKey(P.key)))),this.register(this._terminal.onBlur((()=>this._clearLiveRegion()))),this.register(this._renderService.onDimensionsChange((()=>this._refreshRowsDimensions()))),this.register((0,g.addDisposableDomListener)(document,"selectionchange",(()=>this._handleSelectionChange()))),this.register(this._coreBrowserService.onDprChange((()=>this._refreshRowsDimensions()))),this._refreshRows(),this.register((0,x.toDisposable)((()=>{this._accessibilityContainer.remove(),this._rowElements.length=0})))}_handleTab(p){for(let h=0;h<p;h++)this._handleChar(" ")}_handleChar(p){this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==p&&(this._charsToAnnounce+=p):this._charsToAnnounce+=p,p===`
|
|
285
|
+
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=m.tooMuchOutput)))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0}_handleKey(p){this._clearLiveRegion(),new RegExp("\\p{Control}","u").test(p)||this._charsToConsume.push(p)}_refreshRows(p,h){this._liveRegionDebouncer.refresh(p,h,this._terminal.rows)}_renderRows(p,h){const b=this._terminal.buffer,E=b.lines.length.toString();for(let P=p;P<=h;P++){const L=b.lines.get(b.ydisp+P),R=[],A=(L==null?void 0:L.translateToString(!0,void 0,void 0,R))||"",T=(b.ydisp+P+1).toString(),$=this._rowElements[P];$&&(A.length===0?($.innerText=" ",this._rowColumns.set($,[0,1])):($.textContent=A,this._rowColumns.set($,R)),$.setAttribute("aria-posinset",T),$.setAttribute("aria-setsize",E))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(p,h){const b=p.target,E=this._rowElements[h===0?1:this._rowElements.length-2];if(b.getAttribute("aria-posinset")===(h===0?"1":`${this._terminal.buffer.lines.length}`)||p.relatedTarget!==E)return;let P,L;if(h===0?(P=b,L=this._rowElements.pop(),this._rowContainer.removeChild(L)):(P=this._rowElements.shift(),L=b,this._rowContainer.removeChild(P)),P.removeEventListener("focus",this._topBoundaryFocusListener),L.removeEventListener("focus",this._bottomBoundaryFocusListener),h===0){const R=this._createAccessibilityTreeNode();this._rowElements.unshift(R),this._rowContainer.insertAdjacentElement("afterbegin",R)}else{const R=this._createAccessibilityTreeNode();this._rowElements.push(R),this._rowContainer.appendChild(R)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(h===0?-1:1),this._rowElements[h===0?1:this._rowElements.length-2].focus(),p.preventDefault(),p.stopImmediatePropagation()}_handleSelectionChange(){var A;if(this._rowElements.length===0)return;const p=document.getSelection();if(!p)return;if(p.isCollapsed)return void(this._rowContainer.contains(p.anchorNode)&&this._terminal.clearSelection());if(!p.anchorNode||!p.focusNode)return void console.error("anchorNode and/or focusNode are null");let h={node:p.anchorNode,offset:p.anchorOffset},b={node:p.focusNode,offset:p.focusOffset};if((h.node.compareDocumentPosition(b.node)&Node.DOCUMENT_POSITION_PRECEDING||h.node===b.node&&h.offset>b.offset)&&([h,b]=[b,h]),h.node.compareDocumentPosition(this._rowElements[0])&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_FOLLOWING)&&(h={node:this._rowElements[0].childNodes[0],offset:0}),!this._rowContainer.contains(h.node))return;const E=this._rowElements.slice(-1)[0];if(b.node.compareDocumentPosition(E)&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_PRECEDING)&&(b={node:E,offset:((A=E.textContent)==null?void 0:A.length)??0}),!this._rowContainer.contains(b.node))return;const P=({node:T,offset:$})=>{const H=T instanceof Text?T.parentNode:T;let N=parseInt(H==null?void 0:H.getAttribute("aria-posinset"),10)-1;if(isNaN(N))return console.warn("row is invalid. Race condition?"),null;const V=this._rowColumns.get(H);if(!V)return console.warn("columns is null. Race condition?"),null;let K=$<V.length?V[$]:V.slice(-1)[0]+1;return K>=this._terminal.cols&&(++N,K=0),{row:N,column:K}},L=P(h),R=P(b);if(L&&R){if(L.row>R.row||L.row===R.row&&L.column>=R.column)throw new Error("invalid range");this._terminal.select(L.column,L.row,(R.row-L.row)*this._terminal.cols-L.column+R.column)}}_handleResize(p){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let h=this._rowContainer.children.length;h<this._terminal.rows;h++)this._rowElements[h]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[h]);for(;this._rowElements.length>p;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){const p=this._coreBrowserService.mainDocument.createElement("div");return p.setAttribute("role","listitem"),p.tabIndex=-1,this._refreshRowDimensions(p),p}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let p=0;p<this._terminal.rows;p++)this._refreshRowDimensions(this._rowElements[p])}}_refreshRowDimensions(p){p.style.height=`${this._renderService.dimensions.css.cell.height}px`}};o.AccessibilityManager=f=v([_(1,S.IInstantiationService),_(2,w.ICoreBrowserService),_(3,w.IRenderService)],f)},3614:(d,o)=>{function c(C){return C.replace(/\r?\n/g,"\r")}function v(C,x){return x?"\x1B[200~"+C+"\x1B[201~":C}function _(C,x,w,S){C=v(C=c(C),w.decPrivateModes.bracketedPasteMode&&S.rawOptions.ignoreBracketedPasteMode!==!0),w.triggerDataEvent(C,!0),x.value=""}function m(C,x,w){const S=w.getBoundingClientRect(),g=C.clientX-S.left-10,f=C.clientY-S.top-10;x.style.width="20px",x.style.height="20px",x.style.left=`${g}px`,x.style.top=`${f}px`,x.style.zIndex="1000",x.focus()}Object.defineProperty(o,"__esModule",{value:!0}),o.rightClickHandler=o.moveTextAreaUnderMouseCursor=o.paste=o.handlePasteEvent=o.copyHandler=o.bracketTextForPaste=o.prepareTextForTerminal=void 0,o.prepareTextForTerminal=c,o.bracketTextForPaste=v,o.copyHandler=function(C,x){C.clipboardData&&C.clipboardData.setData("text/plain",x.selectionText),C.preventDefault()},o.handlePasteEvent=function(C,x,w,S){C.stopPropagation(),C.clipboardData&&_(C.clipboardData.getData("text/plain"),x,w,S)},o.paste=_,o.moveTextAreaUnderMouseCursor=m,o.rightClickHandler=function(C,x,w,S,g){m(C,x,w),g&&S.rightClickSelect(C),x.value=S.selectionText,x.select()}},7239:(d,o,c)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.ColorContrastCache=void 0;const v=c(1505);o.ColorContrastCache=class{constructor(){this._color=new v.TwoKeyMap,this._css=new v.TwoKeyMap}setCss(_,m,C){this._css.set(_,m,C)}getCss(_,m){return this._css.get(_,m)}setColor(_,m,C){this._color.set(_,m,C)}getColor(_,m){return this._color.get(_,m)}clear(){this._color.clear(),this._css.clear()}}},3656:(d,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.addDisposableDomListener=void 0,o.addDisposableDomListener=function(c,v,_,m){c.addEventListener(v,_,m);let C=!1;return{dispose:()=>{C||(C=!0,c.removeEventListener(v,_,m))}}}},3551:function(d,o,c){var v=this&&this.__decorate||function(f,p,h,b){var E,P=arguments.length,L=P<3?p:b===null?b=Object.getOwnPropertyDescriptor(p,h):b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")L=Reflect.decorate(f,p,h,b);else for(var R=f.length-1;R>=0;R--)(E=f[R])&&(L=(P<3?E(L):P>3?E(p,h,L):E(p,h))||L);return P>3&&L&&Object.defineProperty(p,h,L),L},_=this&&this.__param||function(f,p){return function(h,b){p(h,b,f)}};Object.defineProperty(o,"__esModule",{value:!0}),o.Linkifier=void 0;const m=c(3656),C=c(8460),x=c(844),w=c(2585),S=c(4725);let g=o.Linkifier=class extends x.Disposable{get currentLink(){return this._currentLink}constructor(f,p,h,b,E){super(),this._element=f,this._mouseService=p,this._renderService=h,this._bufferService=b,this._linkProviderService=E,this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this.register(new C.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new C.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,x.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,x.toDisposable)((()=>{var P;this._lastMouseEvent=void 0,(P=this._activeProviderReplies)==null||P.clear()}))),this.register(this._bufferService.onResize((()=>{this._clearCurrentLink(),this._wasResized=!0}))),this.register((0,m.addDisposableDomListener)(this._element,"mouseleave",(()=>{this._isMouseOut=!0,this._clearCurrentLink()}))),this.register((0,m.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,m.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,m.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(f){this._lastMouseEvent=f;const p=this._positionFromMouseEvent(f,this._element,this._mouseService);if(!p)return;this._isMouseOut=!1;const h=f.composedPath();for(let b=0;b<h.length;b++){const E=h[b];if(E.classList.contains("xterm"))break;if(E.classList.contains("xterm-hover"))return}this._lastBufferCell&&p.x===this._lastBufferCell.x&&p.y===this._lastBufferCell.y||(this._handleHover(p),this._lastBufferCell=p)}_handleHover(f){if(this._activeLine!==f.y||this._wasResized)return this._clearCurrentLink(),this._askForLink(f,!1),void(this._wasResized=!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,f)||(this._clearCurrentLink(),this._askForLink(f,!0))}_askForLink(f,p){var b,E;this._activeProviderReplies&&p||((b=this._activeProviderReplies)==null||b.forEach((P=>{P==null||P.forEach((L=>{L.link.dispose&&L.link.dispose()}))})),this._activeProviderReplies=new Map,this._activeLine=f.y);let h=!1;for(const[P,L]of this._linkProviderService.linkProviders.entries())p?(E=this._activeProviderReplies)!=null&&E.get(P)&&(h=this._checkLinkProviderResult(P,f,h)):L.provideLinks(f.y,(R=>{var T,$;if(this._isMouseOut)return;const A=R==null?void 0:R.map((H=>({link:H})));(T=this._activeProviderReplies)==null||T.set(P,A),h=this._checkLinkProviderResult(P,f,h),(($=this._activeProviderReplies)==null?void 0:$.size)===this._linkProviderService.linkProviders.length&&this._removeIntersectingLinks(f.y,this._activeProviderReplies)}))}_removeIntersectingLinks(f,p){const h=new Set;for(let b=0;b<p.size;b++){const E=p.get(b);if(E)for(let P=0;P<E.length;P++){const L=E[P],R=L.link.range.start.y<f?0:L.link.range.start.x,A=L.link.range.end.y>f?this._bufferService.cols:L.link.range.end.x;for(let T=R;T<=A;T++){if(h.has(T)){E.splice(P--,1);break}h.add(T)}}}}_checkLinkProviderResult(f,p,h){var P;if(!this._activeProviderReplies)return h;const b=this._activeProviderReplies.get(f);let E=!1;for(let L=0;L<f;L++)this._activeProviderReplies.has(L)&&!this._activeProviderReplies.get(L)||(E=!0);if(!E&&b){const L=b.find((R=>this._linkAtPosition(R.link,p)));L&&(h=!0,this._handleNewLink(L))}if(this._activeProviderReplies.size===this._linkProviderService.linkProviders.length&&!h)for(let L=0;L<this._activeProviderReplies.size;L++){const R=(P=this._activeProviderReplies.get(L))==null?void 0:P.find((A=>this._linkAtPosition(A.link,p)));if(R){h=!0,this._handleNewLink(R);break}}return h}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(f){if(!this._currentLink)return;const p=this._positionFromMouseEvent(f,this._element,this._mouseService);p&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,p)&&this._currentLink.link.activate(f,this._currentLink.link.text)}_clearCurrentLink(f,p){this._currentLink&&this._lastMouseEvent&&(!f||!p||this._currentLink.link.range.start.y>=f&&this._currentLink.link.range.end.y<=p)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,x.disposeArray)(this._linkCacheDisposables))}_handleNewLink(f){if(!this._lastMouseEvent)return;const p=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);p&&this._linkAtPosition(f.link,p)&&(this._currentLink=f,this._currentLink.state={decorations:{underline:f.link.decorations===void 0||f.link.decorations.underline,pointerCursor:f.link.decorations===void 0||f.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,f.link,this._lastMouseEvent),f.link.decorations={},Object.defineProperties(f.link.decorations,{pointerCursor:{get:()=>{var h,b;return(b=(h=this._currentLink)==null?void 0:h.state)==null?void 0:b.decorations.pointerCursor},set:h=>{var b;(b=this._currentLink)!=null&&b.state&&this._currentLink.state.decorations.pointerCursor!==h&&(this._currentLink.state.decorations.pointerCursor=h,this._currentLink.state.isHovered&&this._element.classList.toggle("xterm-cursor-pointer",h))}},underline:{get:()=>{var h,b;return(b=(h=this._currentLink)==null?void 0:h.state)==null?void 0:b.decorations.underline},set:h=>{var b,E,P;(b=this._currentLink)!=null&&b.state&&((P=(E=this._currentLink)==null?void 0:E.state)==null?void 0:P.decorations.underline)!==h&&(this._currentLink.state.decorations.underline=h,this._currentLink.state.isHovered&&this._fireUnderlineEvent(f.link,h))}}}),this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange((h=>{if(!this._currentLink)return;const b=h.start===0?0:h.start+1+this._bufferService.buffer.ydisp,E=this._bufferService.buffer.ydisp+1+h.end;if(this._currentLink.link.range.start.y>=b&&this._currentLink.link.range.end.y<=E&&(this._clearCurrentLink(b,E),this._lastMouseEvent)){const P=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);P&&this._askForLink(P,!1)}}))))}_linkHover(f,p,h){var b;(b=this._currentLink)!=null&&b.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(p,!0),this._currentLink.state.decorations.pointerCursor&&f.classList.add("xterm-cursor-pointer")),p.hover&&p.hover(h,p.text)}_fireUnderlineEvent(f,p){const h=f.range,b=this._bufferService.buffer.ydisp,E=this._createLinkUnderlineEvent(h.start.x-1,h.start.y-b-1,h.end.x,h.end.y-b-1,void 0);(p?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(E)}_linkLeave(f,p,h){var b;(b=this._currentLink)!=null&&b.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(p,!1),this._currentLink.state.decorations.pointerCursor&&f.classList.remove("xterm-cursor-pointer")),p.leave&&p.leave(h,p.text)}_linkAtPosition(f,p){const h=f.range.start.y*this._bufferService.cols+f.range.start.x,b=f.range.end.y*this._bufferService.cols+f.range.end.x,E=p.y*this._bufferService.cols+p.x;return h<=E&&E<=b}_positionFromMouseEvent(f,p,h){const b=h.getCoords(f,p,this._bufferService.cols,this._bufferService.rows);if(b)return{x:b[0],y:b[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(f,p,h,b,E){return{x1:f,y1:p,x2:h,y2:b,cols:this._bufferService.cols,fg:E}}};o.Linkifier=g=v([_(1,S.IMouseService),_(2,S.IRenderService),_(3,w.IBufferService),_(4,S.ILinkProviderService)],g)},9042:(d,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.tooMuchOutput=o.promptLabel=void 0,o.promptLabel="Terminal input",o.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(d,o,c){var v=this&&this.__decorate||function(S,g,f,p){var h,b=arguments.length,E=b<3?g:p===null?p=Object.getOwnPropertyDescriptor(g,f):p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(S,g,f,p);else for(var P=S.length-1;P>=0;P--)(h=S[P])&&(E=(b<3?h(E):b>3?h(g,f,E):h(g,f))||E);return b>3&&E&&Object.defineProperty(g,f,E),E},_=this&&this.__param||function(S,g){return function(f,p){g(f,p,S)}};Object.defineProperty(o,"__esModule",{value:!0}),o.OscLinkProvider=void 0;const m=c(511),C=c(2585);let x=o.OscLinkProvider=class{constructor(S,g,f){this._bufferService=S,this._optionsService=g,this._oscLinkService=f}provideLinks(S,g){var A;const f=this._bufferService.buffer.lines.get(S-1);if(!f)return void g(void 0);const p=[],h=this._optionsService.rawOptions.linkHandler,b=new m.CellData,E=f.getTrimmedLength();let P=-1,L=-1,R=!1;for(let T=0;T<E;T++)if(L!==-1||f.hasContent(T)){if(f.loadCell(T,b),b.hasExtendedAttrs()&&b.extended.urlId){if(L===-1){L=T,P=b.extended.urlId;continue}R=b.extended.urlId!==P}else L!==-1&&(R=!0);if(R||L!==-1&&T===E-1){const $=(A=this._oscLinkService.getLinkData(P))==null?void 0:A.uri;if($){const H={start:{x:L+1,y:S},end:{x:T+(R||T!==E-1?0:1),y:S}};let N=!1;if(!(h!=null&&h.allowNonHttpProtocols))try{const V=new URL($);["http:","https:"].includes(V.protocol)||(N=!0)}catch{N=!0}N||p.push({text:$,range:H,activate:(V,K)=>h?h.activate(V,K,H):w(0,K),hover:(V,K)=>{var G;return(G=h==null?void 0:h.hover)==null?void 0:G.call(h,V,K,H)},leave:(V,K)=>{var G;return(G=h==null?void 0:h.leave)==null?void 0:G.call(h,V,K,H)}})}R=!1,b.hasExtendedAttrs()&&b.extended.urlId?(L=T,P=b.extended.urlId):(L=-1,P=-1)}}g(p)}};function w(S,g){if(confirm(`Do you want to navigate to ${g}?
|
|
286
|
+
|
|
287
|
+
WARNING: This link could potentially be dangerous`)){const f=window.open();if(f){try{f.opener=null}catch{}f.location.href=g}else console.warn("Opening link blocked as opener could not be cleared")}}o.OscLinkProvider=x=v([_(0,C.IBufferService),_(1,C.IOptionsService),_(2,C.IOscLinkService)],x)},6193:(d,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.RenderDebouncer=void 0,o.RenderDebouncer=class{constructor(c,v){this._renderCallback=c,this._coreBrowserService=v,this._refreshCallbacks=[]}dispose(){this._animationFrame&&(this._coreBrowserService.window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}addRefreshCallback(c){return this._refreshCallbacks.push(c),this._animationFrame||(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>this._innerRefresh()))),this._animationFrame}refresh(c,v,_){this._rowCount=_,c=c!==void 0?c:0,v=v!==void 0?v:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,c):c,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,v):v,this._animationFrame||(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>this._innerRefresh())))}_innerRefresh(){if(this._animationFrame=void 0,this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0)return void this._runRefreshCallbacks();const c=Math.max(this._rowStart,0),v=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(c,v),this._runRefreshCallbacks()}_runRefreshCallbacks(){for(const c of this._refreshCallbacks)c(0);this._refreshCallbacks=[]}}},3236:(d,o,c)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.Terminal=void 0;const v=c(3614),_=c(3656),m=c(3551),C=c(9042),x=c(3730),w=c(1680),S=c(3107),g=c(5744),f=c(2950),p=c(1296),h=c(428),b=c(4269),E=c(5114),P=c(8934),L=c(3230),R=c(9312),A=c(4725),T=c(6731),$=c(8055),H=c(8969),N=c(8460),V=c(844),K=c(6114),G=c(8437),Z=c(2584),X=c(7399),M=c(5941),z=c(9074),B=c(2585),W=c(5435),ee=c(4567),re=c(779);class oe extends H.CoreTerminal{get onFocus(){return this._onFocus.event}get onBlur(){return this._onBlur.event}get onA11yChar(){return this._onA11yCharEmitter.event}get onA11yTab(){return this._onA11yTabEmitter.event}get onWillOpen(){return this._onWillOpen.event}constructor(U={}){super(U),this.browser=K,this._keyDownHandled=!1,this._keyDownSeen=!1,this._keyPressHandled=!1,this._unprocessedDeadKey=!1,this._accessibilityManager=this.register(new V.MutableDisposable),this._onCursorMove=this.register(new N.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onKey=this.register(new N.EventEmitter),this.onKey=this._onKey.event,this._onRender=this.register(new N.EventEmitter),this.onRender=this._onRender.event,this._onSelectionChange=this.register(new N.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onTitleChange=this.register(new N.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onBell=this.register(new N.EventEmitter),this.onBell=this._onBell.event,this._onFocus=this.register(new N.EventEmitter),this._onBlur=this.register(new N.EventEmitter),this._onA11yCharEmitter=this.register(new N.EventEmitter),this._onA11yTabEmitter=this.register(new N.EventEmitter),this._onWillOpen=this.register(new N.EventEmitter),this._setup(),this._decorationService=this._instantiationService.createInstance(z.DecorationService),this._instantiationService.setService(B.IDecorationService,this._decorationService),this._linkProviderService=this._instantiationService.createInstance(re.LinkProviderService),this._instantiationService.setService(A.ILinkProviderService,this._linkProviderService),this._linkProviderService.registerLinkProvider(this._instantiationService.createInstance(x.OscLinkProvider)),this.register(this._inputHandler.onRequestBell((()=>this._onBell.fire()))),this.register(this._inputHandler.onRequestRefreshRows(((j,ne)=>this.refresh(j,ne)))),this.register(this._inputHandler.onRequestSendFocus((()=>this._reportFocus()))),this.register(this._inputHandler.onRequestReset((()=>this.reset()))),this.register(this._inputHandler.onRequestWindowsOptionsReport((j=>this._reportWindowsOptions(j)))),this.register(this._inputHandler.onColor((j=>this._handleColorEvent(j)))),this.register((0,N.forwardEvent)(this._inputHandler.onCursorMove,this._onCursorMove)),this.register((0,N.forwardEvent)(this._inputHandler.onTitleChange,this._onTitleChange)),this.register((0,N.forwardEvent)(this._inputHandler.onA11yChar,this._onA11yCharEmitter)),this.register((0,N.forwardEvent)(this._inputHandler.onA11yTab,this._onA11yTabEmitter)),this.register(this._bufferService.onResize((j=>this._afterResize(j.cols,j.rows)))),this.register((0,V.toDisposable)((()=>{var j,ne;this._customKeyEventHandler=void 0,(ne=(j=this.element)==null?void 0:j.parentNode)==null||ne.removeChild(this.element)})))}_handleColorEvent(U){if(this._themeService)for(const j of U){let ne,Q="";switch(j.index){case 256:ne="foreground",Q="10";break;case 257:ne="background",Q="11";break;case 258:ne="cursor",Q="12";break;default:ne="ansi",Q="4;"+j.index}switch(j.type){case 0:const ue=$.color.toColorRGB(ne==="ansi"?this._themeService.colors.ansi[j.index]:this._themeService.colors[ne]);this.coreService.triggerDataEvent(`${Z.C0.ESC}]${Q};${(0,M.toRgbString)(ue)}${Z.C1_ESCAPED.ST}`);break;case 1:if(ne==="ansi")this._themeService.modifyColors((ce=>ce.ansi[j.index]=$.channels.toColor(...j.color)));else{const ce=ne;this._themeService.modifyColors((_e=>_e[ce]=$.channels.toColor(...j.color)))}break;case 2:this._themeService.restoreColor(j.index)}}}_setup(){super._setup(),this._customKeyEventHandler=void 0}get buffer(){return this.buffers.active}focus(){this.textarea&&this.textarea.focus({preventScroll:!0})}_handleScreenReaderModeOptionChange(U){U?!this._accessibilityManager.value&&this._renderService&&(this._accessibilityManager.value=this._instantiationService.createInstance(ee.AccessibilityManager,this)):this._accessibilityManager.clear()}_handleTextAreaFocus(U){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(Z.C0.ESC+"[I"),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()}blur(){var U;return(U=this.textarea)==null?void 0:U.blur()}_handleTextAreaBlur(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(Z.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()}_syncTextArea(){if(!this.textarea||!this.buffer.isCursorInViewport||this._compositionHelper.isComposing||!this._renderService)return;const U=this.buffer.ybase+this.buffer.y,j=this.buffer.lines.get(U);if(!j)return;const ne=Math.min(this.buffer.x,this.cols-1),Q=this._renderService.dimensions.css.cell.height,ue=j.getWidth(ne),ce=this._renderService.dimensions.css.cell.width*ue,_e=this.buffer.y*this._renderService.dimensions.css.cell.height,ge=ne*this._renderService.dimensions.css.cell.width;this.textarea.style.left=ge+"px",this.textarea.style.top=_e+"px",this.textarea.style.width=ce+"px",this.textarea.style.height=Q+"px",this.textarea.style.lineHeight=Q+"px",this.textarea.style.zIndex="-5"}_initGlobal(){this._bindKeys(),this.register((0,_.addDisposableDomListener)(this.element,"copy",(j=>{this.hasSelection()&&(0,v.copyHandler)(j,this._selectionService)})));const U=j=>(0,v.handlePasteEvent)(j,this.textarea,this.coreService,this.optionsService);this.register((0,_.addDisposableDomListener)(this.textarea,"paste",U)),this.register((0,_.addDisposableDomListener)(this.element,"paste",U)),K.isFirefox?this.register((0,_.addDisposableDomListener)(this.element,"mousedown",(j=>{j.button===2&&(0,v.rightClickHandler)(j,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)}))):this.register((0,_.addDisposableDomListener)(this.element,"contextmenu",(j=>{(0,v.rightClickHandler)(j,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)}))),K.isLinux&&this.register((0,_.addDisposableDomListener)(this.element,"auxclick",(j=>{j.button===1&&(0,v.moveTextAreaUnderMouseCursor)(j,this.textarea,this.screenElement)})))}_bindKeys(){this.register((0,_.addDisposableDomListener)(this.textarea,"keyup",(U=>this._keyUp(U)),!0)),this.register((0,_.addDisposableDomListener)(this.textarea,"keydown",(U=>this._keyDown(U)),!0)),this.register((0,_.addDisposableDomListener)(this.textarea,"keypress",(U=>this._keyPress(U)),!0)),this.register((0,_.addDisposableDomListener)(this.textarea,"compositionstart",(()=>this._compositionHelper.compositionstart()))),this.register((0,_.addDisposableDomListener)(this.textarea,"compositionupdate",(U=>this._compositionHelper.compositionupdate(U)))),this.register((0,_.addDisposableDomListener)(this.textarea,"compositionend",(()=>this._compositionHelper.compositionend()))),this.register((0,_.addDisposableDomListener)(this.textarea,"input",(U=>this._inputEvent(U)),!0)),this.register(this.onRender((()=>this._compositionHelper.updateCompositionElements())))}open(U){var ne;if(!U)throw new Error("Terminal requires a parent element.");if(U.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),((ne=this.element)==null?void 0:ne.ownerDocument.defaultView)&&this._coreBrowserService)return void(this.element.ownerDocument.defaultView!==this._coreBrowserService.window&&(this._coreBrowserService.window=this.element.ownerDocument.defaultView));this._document=U.ownerDocument,this.options.documentOverride&&this.options.documentOverride instanceof Document&&(this._document=this.optionsService.rawOptions.documentOverride),this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),U.appendChild(this.element);const j=this._document.createDocumentFragment();this._viewportElement=this._document.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),j.appendChild(this._viewportElement),this._viewportScrollArea=this._document.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=this._document.createElement("div"),this.screenElement.classList.add("xterm-screen"),this.register((0,_.addDisposableDomListener)(this.screenElement,"mousemove",(Q=>this.updateCursorStyle(Q)))),this._helperContainer=this._document.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),j.appendChild(this.screenElement),this.textarea=this._document.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",C.promptLabel),K.isChromeOS||this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this._coreBrowserService=this.register(this._instantiationService.createInstance(E.CoreBrowserService,this.textarea,U.ownerDocument.defaultView??window,this._document??typeof window<"u"?window.document:null)),this._instantiationService.setService(A.ICoreBrowserService,this._coreBrowserService),this.register((0,_.addDisposableDomListener)(this.textarea,"focus",(Q=>this._handleTextAreaFocus(Q)))),this.register((0,_.addDisposableDomListener)(this.textarea,"blur",(()=>this._handleTextAreaBlur()))),this._helperContainer.appendChild(this.textarea),this._charSizeService=this._instantiationService.createInstance(h.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(A.ICharSizeService,this._charSizeService),this._themeService=this._instantiationService.createInstance(T.ThemeService),this._instantiationService.setService(A.IThemeService,this._themeService),this._characterJoinerService=this._instantiationService.createInstance(b.CharacterJoinerService),this._instantiationService.setService(A.ICharacterJoinerService,this._characterJoinerService),this._renderService=this.register(this._instantiationService.createInstance(L.RenderService,this.rows,this.screenElement)),this._instantiationService.setService(A.IRenderService,this._renderService),this.register(this._renderService.onRenderedViewportChange((Q=>this._onRender.fire(Q)))),this.onResize((Q=>this._renderService.resize(Q.cols,Q.rows))),this._compositionView=this._document.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(f.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this._mouseService=this._instantiationService.createInstance(P.MouseService),this._instantiationService.setService(A.IMouseService,this._mouseService),this.linkifier=this.register(this._instantiationService.createInstance(m.Linkifier,this.screenElement)),this.element.appendChild(j);try{this._onWillOpen.fire(this.element)}catch{}this._renderService.hasRenderer()||this._renderService.setRenderer(this._createRenderer()),this.viewport=this._instantiationService.createInstance(w.Viewport,this._viewportElement,this._viewportScrollArea),this.viewport.onRequestScrollLines((Q=>this.scrollLines(Q.amount,Q.suppressScrollEvent,1))),this.register(this._inputHandler.onRequestSyncScrollBar((()=>this.viewport.syncScrollArea()))),this.register(this.viewport),this.register(this.onCursorMove((()=>{this._renderService.handleCursorMove(),this._syncTextArea()}))),this.register(this.onResize((()=>this._renderService.handleResize(this.cols,this.rows)))),this.register(this.onBlur((()=>this._renderService.handleBlur()))),this.register(this.onFocus((()=>this._renderService.handleFocus()))),this.register(this._renderService.onDimensionsChange((()=>this.viewport.syncScrollArea()))),this._selectionService=this.register(this._instantiationService.createInstance(R.SelectionService,this.element,this.screenElement,this.linkifier)),this._instantiationService.setService(A.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines((Q=>this.scrollLines(Q.amount,Q.suppressScrollEvent)))),this.register(this._selectionService.onSelectionChange((()=>this._onSelectionChange.fire()))),this.register(this._selectionService.onRequestRedraw((Q=>this._renderService.handleSelectionChanged(Q.start,Q.end,Q.columnSelectMode)))),this.register(this._selectionService.onLinuxMouseSelection((Q=>{this.textarea.value=Q,this.textarea.focus(),this.textarea.select()}))),this.register(this._onScroll.event((Q=>{this.viewport.syncScrollArea(),this._selectionService.refresh()}))),this.register((0,_.addDisposableDomListener)(this._viewportElement,"scroll",(()=>this._selectionService.refresh()))),this.register(this._instantiationService.createInstance(S.BufferDecorationRenderer,this.screenElement)),this.register((0,_.addDisposableDomListener)(this.element,"mousedown",(Q=>this._selectionService.handleMouseDown(Q)))),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager.value=this._instantiationService.createInstance(ee.AccessibilityManager,this)),this.register(this.optionsService.onSpecificOptionChange("screenReaderMode",(Q=>this._handleScreenReaderModeOptionChange(Q)))),this.options.overviewRulerWidth&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(g.OverviewRulerRenderer,this._viewportElement,this.screenElement))),this.optionsService.onSpecificOptionChange("overviewRulerWidth",(Q=>{!this._overviewRulerRenderer&&Q&&this._viewportElement&&this.screenElement&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(g.OverviewRulerRenderer,this._viewportElement,this.screenElement)))})),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()}_createRenderer(){return this._instantiationService.createInstance(p.DomRenderer,this,this._document,this.element,this.screenElement,this._viewportElement,this._helperContainer,this.linkifier)}bindMouse(){const U=this,j=this.element;function ne(ce){const _e=U._mouseService.getMouseReportCoords(ce,U.screenElement);if(!_e)return!1;let ge,xe;switch(ce.overrideType||ce.type){case"mousemove":xe=32,ce.buttons===void 0?(ge=3,ce.button!==void 0&&(ge=ce.button<3?ce.button:3)):ge=1&ce.buttons?0:4&ce.buttons?1:2&ce.buttons?2:3;break;case"mouseup":xe=0,ge=ce.button<3?ce.button:3;break;case"mousedown":xe=1,ge=ce.button<3?ce.button:3;break;case"wheel":if(U._customWheelEventHandler&&U._customWheelEventHandler(ce)===!1||U.viewport.getLinesScrolled(ce)===0)return!1;xe=ce.deltaY<0?0:1,ge=4;break;default:return!1}return!(xe===void 0||ge===void 0||ge>4)&&U.coreMouseService.triggerMouseEvent({col:_e.col,row:_e.row,x:_e.x,y:_e.y,button:ge,action:xe,ctrl:ce.ctrlKey,alt:ce.altKey,shift:ce.shiftKey})}const Q={mouseup:null,wheel:null,mousedrag:null,mousemove:null},ue={mouseup:ce=>(ne(ce),ce.buttons||(this._document.removeEventListener("mouseup",Q.mouseup),Q.mousedrag&&this._document.removeEventListener("mousemove",Q.mousedrag)),this.cancel(ce)),wheel:ce=>(ne(ce),this.cancel(ce,!0)),mousedrag:ce=>{ce.buttons&&ne(ce)},mousemove:ce=>{ce.buttons||ne(ce)}};this.register(this.coreMouseService.onProtocolChange((ce=>{ce?(this.optionsService.rawOptions.logLevel==="debug"&&this._logService.debug("Binding to mouse events:",this.coreMouseService.explainEvents(ce)),this.element.classList.add("enable-mouse-events"),this._selectionService.disable()):(this._logService.debug("Unbinding from mouse events."),this.element.classList.remove("enable-mouse-events"),this._selectionService.enable()),8&ce?Q.mousemove||(j.addEventListener("mousemove",ue.mousemove),Q.mousemove=ue.mousemove):(j.removeEventListener("mousemove",Q.mousemove),Q.mousemove=null),16&ce?Q.wheel||(j.addEventListener("wheel",ue.wheel,{passive:!1}),Q.wheel=ue.wheel):(j.removeEventListener("wheel",Q.wheel),Q.wheel=null),2&ce?Q.mouseup||(Q.mouseup=ue.mouseup):(this._document.removeEventListener("mouseup",Q.mouseup),Q.mouseup=null),4&ce?Q.mousedrag||(Q.mousedrag=ue.mousedrag):(this._document.removeEventListener("mousemove",Q.mousedrag),Q.mousedrag=null)}))),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,_.addDisposableDomListener)(j,"mousedown",(ce=>{if(ce.preventDefault(),this.focus(),this.coreMouseService.areMouseEventsActive&&!this._selectionService.shouldForceSelection(ce))return ne(ce),Q.mouseup&&this._document.addEventListener("mouseup",Q.mouseup),Q.mousedrag&&this._document.addEventListener("mousemove",Q.mousedrag),this.cancel(ce)}))),this.register((0,_.addDisposableDomListener)(j,"wheel",(ce=>{if(!Q.wheel){if(this._customWheelEventHandler&&this._customWheelEventHandler(ce)===!1)return!1;if(!this.buffer.hasScrollback){const _e=this.viewport.getLinesScrolled(ce);if(_e===0)return;const ge=Z.C0.ESC+(this.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(ce.deltaY<0?"A":"B");let xe="";for(let Ve=0;Ve<Math.abs(_e);Ve++)xe+=ge;return this.coreService.triggerDataEvent(xe,!0),this.cancel(ce,!0)}return this.viewport.handleWheel(ce)?this.cancel(ce):void 0}}),{passive:!1})),this.register((0,_.addDisposableDomListener)(j,"touchstart",(ce=>{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchStart(ce),this.cancel(ce)}),{passive:!0})),this.register((0,_.addDisposableDomListener)(j,"touchmove",(ce=>{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchMove(ce)?void 0:this.cancel(ce)}),{passive:!1}))}refresh(U,j){var ne;(ne=this._renderService)==null||ne.refreshRows(U,j)}updateCursorStyle(U){var j;(j=this._selectionService)!=null&&j.shouldColumnSelect(U)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")}_showCursor(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))}scrollLines(U,j,ne=0){var Q;ne===1?(super.scrollLines(U,j,ne),this.refresh(0,this.rows-1)):(Q=this.viewport)==null||Q.scrollLines(U)}paste(U){(0,v.paste)(U,this.textarea,this.coreService,this.optionsService)}attachCustomKeyEventHandler(U){this._customKeyEventHandler=U}attachCustomWheelEventHandler(U){this._customWheelEventHandler=U}registerLinkProvider(U){return this._linkProviderService.registerLinkProvider(U)}registerCharacterJoiner(U){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");const j=this._characterJoinerService.register(U);return this.refresh(0,this.rows-1),j}deregisterCharacterJoiner(U){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(U)&&this.refresh(0,this.rows-1)}get markers(){return this.buffer.markers}registerMarker(U){return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+U)}registerDecoration(U){return this._decorationService.registerDecoration(U)}hasSelection(){return!!this._selectionService&&this._selectionService.hasSelection}select(U,j,ne){this._selectionService.setSelection(U,j,ne)}getSelection(){return this._selectionService?this._selectionService.selectionText:""}getSelectionPosition(){if(this._selectionService&&this._selectionService.hasSelection)return{start:{x:this._selectionService.selectionStart[0],y:this._selectionService.selectionStart[1]},end:{x:this._selectionService.selectionEnd[0],y:this._selectionService.selectionEnd[1]}}}clearSelection(){var U;(U=this._selectionService)==null||U.clearSelection()}selectAll(){var U;(U=this._selectionService)==null||U.selectAll()}selectLines(U,j){var ne;(ne=this._selectionService)==null||ne.selectLines(U,j)}_keyDown(U){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&this._customKeyEventHandler(U)===!1)return!1;const j=this.browser.isMac&&this.options.macOptionIsMeta&&U.altKey;if(!j&&!this._compositionHelper.keydown(U))return this.options.scrollOnUserInput&&this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;j||U.key!=="Dead"&&U.key!=="AltGraph"||(this._unprocessedDeadKey=!0);const ne=(0,X.evaluateKeyboardEvent)(U,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(U),ne.type===3||ne.type===2){const Q=this.rows-1;return this.scrollLines(ne.type===2?-Q:Q),this.cancel(U,!0)}return ne.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,U)||(ne.cancel&&this.cancel(U,!0),!ne.key||!!(U.key&&!U.ctrlKey&&!U.altKey&&!U.metaKey&&U.key.length===1&&U.key.charCodeAt(0)>=65&&U.key.charCodeAt(0)<=90)||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(ne.key!==Z.C0.ETX&&ne.key!==Z.C0.CR||(this.textarea.value=""),this._onKey.fire({key:ne.key,domEvent:U}),this._showCursor(),this.coreService.triggerDataEvent(ne.key,!0),!this.optionsService.rawOptions.screenReaderMode||U.altKey||U.ctrlKey?this.cancel(U,!0):void(this._keyDownHandled=!0))))}_isThirdLevelShift(U,j){const ne=U.isMac&&!this.options.macOptionIsMeta&&j.altKey&&!j.ctrlKey&&!j.metaKey||U.isWindows&&j.altKey&&j.ctrlKey&&!j.metaKey||U.isWindows&&j.getModifierState("AltGraph");return j.type==="keypress"?ne:ne&&(!j.keyCode||j.keyCode>47)}_keyUp(U){this._keyDownSeen=!1,this._customKeyEventHandler&&this._customKeyEventHandler(U)===!1||((function(j){return j.keyCode===16||j.keyCode===17||j.keyCode===18})(U)||this.focus(),this.updateCursorStyle(U),this._keyPressHandled=!1)}_keyPress(U){let j;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(U)===!1)return!1;if(this.cancel(U),U.charCode)j=U.charCode;else if(U.which===null||U.which===void 0)j=U.keyCode;else{if(U.which===0||U.charCode===0)return!1;j=U.which}return!(!j||(U.altKey||U.ctrlKey||U.metaKey)&&!this._isThirdLevelShift(this.browser,U)||(j=String.fromCharCode(j),this._onKey.fire({key:j,domEvent:U}),this._showCursor(),this.coreService.triggerDataEvent(j,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))}_inputEvent(U){if(U.data&&U.inputType==="insertText"&&(!U.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;const j=U.data;return this.coreService.triggerDataEvent(j,!0),this.cancel(U),!0}return!1}resize(U,j){U!==this.cols||j!==this.rows?super.resize(U,j):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()}_afterResize(U,j){var ne,Q;(ne=this._charSizeService)==null||ne.measure(),(Q=this.viewport)==null||Q.syncScrollArea(!0)}clear(){var U;if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(let j=1;j<this.rows;j++)this.buffer.lines.push(this.buffer.getBlankLine(G.DEFAULT_ATTR_DATA));this._onScroll.fire({position:this.buffer.ydisp,source:0}),(U=this.viewport)==null||U.reset(),this.refresh(0,this.rows-1)}}reset(){var j,ne;this.options.rows=this.rows,this.options.cols=this.cols;const U=this._customKeyEventHandler;this._setup(),super.reset(),(j=this._selectionService)==null||j.reset(),this._decorationService.reset(),(ne=this.viewport)==null||ne.reset(),this._customKeyEventHandler=U,this.refresh(0,this.rows-1)}clearTextureAtlas(){var U;(U=this._renderService)==null||U.clearTextureAtlas()}_reportFocus(){var U;(U=this.element)!=null&&U.classList.contains("focus")?this.coreService.triggerDataEvent(Z.C0.ESC+"[I"):this.coreService.triggerDataEvent(Z.C0.ESC+"[O")}_reportWindowsOptions(U){if(this._renderService)switch(U){case W.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:const j=this._renderService.dimensions.css.canvas.width.toFixed(0),ne=this._renderService.dimensions.css.canvas.height.toFixed(0);this.coreService.triggerDataEvent(`${Z.C0.ESC}[4;${ne};${j}t`);break;case W.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:const Q=this._renderService.dimensions.css.cell.width.toFixed(0),ue=this._renderService.dimensions.css.cell.height.toFixed(0);this.coreService.triggerDataEvent(`${Z.C0.ESC}[6;${ue};${Q}t`)}}cancel(U,j){if(this.options.cancelEvents||j)return U.preventDefault(),U.stopPropagation(),!1}}o.Terminal=oe},9924:(d,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.TimeBasedDebouncer=void 0,o.TimeBasedDebouncer=class{constructor(c,v=1e3){this._renderCallback=c,this._debounceThresholdMS=v,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}dispose(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)}refresh(c,v,_){this._rowCount=_,c=c!==void 0?c:0,v=v!==void 0?v:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,c):c,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,v):v;const m=Date.now();if(m-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=m,this._innerRefresh();else if(!this._additionalRefreshRequested){const C=m-this._lastRefreshMs,x=this._debounceThresholdMS-C;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout((()=>{this._lastRefreshMs=Date.now(),this._innerRefresh(),this._additionalRefreshRequested=!1,this._refreshTimeoutID=void 0}),x)}}_innerRefresh(){if(this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0)return;const c=Math.max(this._rowStart,0),v=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(c,v)}}},1680:function(d,o,c){var v=this&&this.__decorate||function(f,p,h,b){var E,P=arguments.length,L=P<3?p:b===null?b=Object.getOwnPropertyDescriptor(p,h):b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")L=Reflect.decorate(f,p,h,b);else for(var R=f.length-1;R>=0;R--)(E=f[R])&&(L=(P<3?E(L):P>3?E(p,h,L):E(p,h))||L);return P>3&&L&&Object.defineProperty(p,h,L),L},_=this&&this.__param||function(f,p){return function(h,b){p(h,b,f)}};Object.defineProperty(o,"__esModule",{value:!0}),o.Viewport=void 0;const m=c(3656),C=c(4725),x=c(8460),w=c(844),S=c(2585);let g=o.Viewport=class extends w.Disposable{constructor(f,p,h,b,E,P,L,R){super(),this._viewportElement=f,this._scrollArea=p,this._bufferService=h,this._optionsService=b,this._charSizeService=E,this._renderService=P,this._coreBrowserService=L,this.scrollBarWidth=0,this._currentRowHeight=0,this._currentDeviceCellHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._lastTouchY=0,this._lastScrollTop=0,this._wheelPartialScroll=0,this._refreshAnimationFrame=null,this._ignoreNextScrollEvent=!1,this._smoothScrollState={startTime:0,origin:-1,target:-1},this._onRequestScrollLines=this.register(new x.EventEmitter),this.onRequestScrollLines=this._onRequestScrollLines.event,this.scrollBarWidth=this._viewportElement.offsetWidth-this._scrollArea.offsetWidth||15,this.register((0,m.addDisposableDomListener)(this._viewportElement,"scroll",this._handleScroll.bind(this))),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate((A=>this._activeBuffer=A.activeBuffer))),this._renderDimensions=this._renderService.dimensions,this.register(this._renderService.onDimensionsChange((A=>this._renderDimensions=A))),this._handleThemeChange(R.colors),this.register(R.onChangeColors((A=>this._handleThemeChange(A)))),this.register(this._optionsService.onSpecificOptionChange("scrollback",(()=>this.syncScrollArea()))),setTimeout((()=>this.syncScrollArea()))}_handleThemeChange(f){this._viewportElement.style.backgroundColor=f.background.css}reset(){this._currentRowHeight=0,this._currentDeviceCellHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._lastTouchY=0,this._lastScrollTop=0,this._coreBrowserService.window.requestAnimationFrame((()=>this.syncScrollArea()))}_refresh(f){if(f)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&this._coreBrowserService.window.cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>this._innerRefresh())))}_innerRefresh(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderDimensions.device.cell.height/this._coreBrowserService.dpr,this._currentDeviceCellHeight=this._renderDimensions.device.cell.height,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;const p=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderDimensions.css.canvas.height);this._lastRecordedBufferHeight!==p&&(this._lastRecordedBufferHeight=p,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}const f=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==f&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=f),this._refreshAnimationFrame=null}syncScrollArea(f=!1){if(this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(f);this._lastRecordedViewportHeight===this._renderService.dimensions.css.canvas.height&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.device.cell.height===this._currentDeviceCellHeight||this._refresh(f)}_handleScroll(f){if(this._lastScrollTop=this._viewportElement.scrollTop,!this._viewportElement.offsetParent)return;if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._onRequestScrollLines.fire({amount:0,suppressScrollEvent:!0});const p=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._onRequestScrollLines.fire({amount:p,suppressScrollEvent:!0})}_smoothScroll(){if(this._isDisposed||this._smoothScrollState.origin===-1||this._smoothScrollState.target===-1)return;const f=this._smoothScrollPercent();this._viewportElement.scrollTop=this._smoothScrollState.origin+Math.round(f*(this._smoothScrollState.target-this._smoothScrollState.origin)),f<1?this._coreBrowserService.window.requestAnimationFrame((()=>this._smoothScroll())):this._clearSmoothScrollState()}_smoothScrollPercent(){return this._optionsService.rawOptions.smoothScrollDuration&&this._smoothScrollState.startTime?Math.max(Math.min((Date.now()-this._smoothScrollState.startTime)/this._optionsService.rawOptions.smoothScrollDuration,1),0):1}_clearSmoothScrollState(){this._smoothScrollState.startTime=0,this._smoothScrollState.origin=-1,this._smoothScrollState.target=-1}_bubbleScroll(f,p){const h=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(p<0&&this._viewportElement.scrollTop!==0||p>0&&h<this._lastRecordedBufferHeight)||(f.cancelable&&f.preventDefault(),!1)}handleWheel(f){const p=this._getPixelsScrolled(f);return p!==0&&(this._optionsService.rawOptions.smoothScrollDuration?(this._smoothScrollState.startTime=Date.now(),this._smoothScrollPercent()<1?(this._smoothScrollState.origin=this._viewportElement.scrollTop,this._smoothScrollState.target===-1?this._smoothScrollState.target=this._viewportElement.scrollTop+p:this._smoothScrollState.target+=p,this._smoothScrollState.target=Math.max(Math.min(this._smoothScrollState.target,this._viewportElement.scrollHeight),0),this._smoothScroll()):this._clearSmoothScrollState()):this._viewportElement.scrollTop+=p,this._bubbleScroll(f,p))}scrollLines(f){if(f!==0)if(this._optionsService.rawOptions.smoothScrollDuration){const p=f*this._currentRowHeight;this._smoothScrollState.startTime=Date.now(),this._smoothScrollPercent()<1?(this._smoothScrollState.origin=this._viewportElement.scrollTop,this._smoothScrollState.target=this._smoothScrollState.origin+p,this._smoothScrollState.target=Math.max(Math.min(this._smoothScrollState.target,this._viewportElement.scrollHeight),0),this._smoothScroll()):this._clearSmoothScrollState()}else this._onRequestScrollLines.fire({amount:f,suppressScrollEvent:!1})}_getPixelsScrolled(f){if(f.deltaY===0||f.shiftKey)return 0;let p=this._applyScrollModifier(f.deltaY,f);return f.deltaMode===WheelEvent.DOM_DELTA_LINE?p*=this._currentRowHeight:f.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(p*=this._currentRowHeight*this._bufferService.rows),p}getBufferElements(f,p){var R;let h,b="";const E=[],P=p??this._bufferService.buffer.lines.length,L=this._bufferService.buffer.lines;for(let A=f;A<P;A++){const T=L.get(A);if(!T)continue;const $=(R=L.get(A+1))==null?void 0:R.isWrapped;if(b+=T.translateToString(!$),!$||A===L.length-1){const H=document.createElement("div");H.textContent=b,E.push(H),b.length>0&&(h=H),b=""}}return{bufferElements:E,cursorElement:h}}getLinesScrolled(f){if(f.deltaY===0||f.shiftKey)return 0;let p=this._applyScrollModifier(f.deltaY,f);return f.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(p/=this._currentRowHeight+0,this._wheelPartialScroll+=p,p=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):f.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(p*=this._bufferService.rows),p}_applyScrollModifier(f,p){const h=this._optionsService.rawOptions.fastScrollModifier;return h==="alt"&&p.altKey||h==="ctrl"&&p.ctrlKey||h==="shift"&&p.shiftKey?f*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:f*this._optionsService.rawOptions.scrollSensitivity}handleTouchStart(f){this._lastTouchY=f.touches[0].pageY}handleTouchMove(f){const p=this._lastTouchY-f.touches[0].pageY;return this._lastTouchY=f.touches[0].pageY,p!==0&&(this._viewportElement.scrollTop+=p,this._bubbleScroll(f,p))}};o.Viewport=g=v([_(2,S.IBufferService),_(3,S.IOptionsService),_(4,C.ICharSizeService),_(5,C.IRenderService),_(6,C.ICoreBrowserService),_(7,C.IThemeService)],g)},3107:function(d,o,c){var v=this&&this.__decorate||function(S,g,f,p){var h,b=arguments.length,E=b<3?g:p===null?p=Object.getOwnPropertyDescriptor(g,f):p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(S,g,f,p);else for(var P=S.length-1;P>=0;P--)(h=S[P])&&(E=(b<3?h(E):b>3?h(g,f,E):h(g,f))||E);return b>3&&E&&Object.defineProperty(g,f,E),E},_=this&&this.__param||function(S,g){return function(f,p){g(f,p,S)}};Object.defineProperty(o,"__esModule",{value:!0}),o.BufferDecorationRenderer=void 0;const m=c(4725),C=c(844),x=c(2585);let w=o.BufferDecorationRenderer=class extends C.Disposable{constructor(S,g,f,p,h){super(),this._screenElement=S,this._bufferService=g,this._coreBrowserService=f,this._decorationService=p,this._renderService=h,this._decorationElements=new Map,this._altBufferIsActive=!1,this._dimensionsChanged=!1,this._container=document.createElement("div"),this._container.classList.add("xterm-decoration-container"),this._screenElement.appendChild(this._container),this.register(this._renderService.onRenderedViewportChange((()=>this._doRefreshDecorations()))),this.register(this._renderService.onDimensionsChange((()=>{this._dimensionsChanged=!0,this._queueRefresh()}))),this.register(this._coreBrowserService.onDprChange((()=>this._queueRefresh()))),this.register(this._bufferService.buffers.onBufferActivate((()=>{this._altBufferIsActive=this._bufferService.buffer===this._bufferService.buffers.alt}))),this.register(this._decorationService.onDecorationRegistered((()=>this._queueRefresh()))),this.register(this._decorationService.onDecorationRemoved((b=>this._removeDecoration(b)))),this.register((0,C.toDisposable)((()=>{this._container.remove(),this._decorationElements.clear()})))}_queueRefresh(){this._animationFrame===void 0&&(this._animationFrame=this._renderService.addRefreshCallback((()=>{this._doRefreshDecorations(),this._animationFrame=void 0})))}_doRefreshDecorations(){for(const S of this._decorationService.decorations)this._renderDecoration(S);this._dimensionsChanged=!1}_renderDecoration(S){this._refreshStyle(S),this._dimensionsChanged&&this._refreshXPosition(S)}_createElement(S){var p;const g=this._coreBrowserService.mainDocument.createElement("div");g.classList.add("xterm-decoration"),g.classList.toggle("xterm-decoration-top-layer",((p=S==null?void 0:S.options)==null?void 0:p.layer)==="top"),g.style.width=`${Math.round((S.options.width||1)*this._renderService.dimensions.css.cell.width)}px`,g.style.height=(S.options.height||1)*this._renderService.dimensions.css.cell.height+"px",g.style.top=(S.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.css.cell.height+"px",g.style.lineHeight=`${this._renderService.dimensions.css.cell.height}px`;const f=S.options.x??0;return f&&f>this._bufferService.cols&&(g.style.display="none"),this._refreshXPosition(S,g),g}_refreshStyle(S){const g=S.marker.line-this._bufferService.buffers.active.ydisp;if(g<0||g>=this._bufferService.rows)S.element&&(S.element.style.display="none",S.onRenderEmitter.fire(S.element));else{let f=this._decorationElements.get(S);f||(f=this._createElement(S),S.element=f,this._decorationElements.set(S,f),this._container.appendChild(f),S.onDispose((()=>{this._decorationElements.delete(S),f.remove()}))),f.style.top=g*this._renderService.dimensions.css.cell.height+"px",f.style.display=this._altBufferIsActive?"none":"block",S.onRenderEmitter.fire(f)}}_refreshXPosition(S,g=S.element){if(!g)return;const f=S.options.x??0;(S.options.anchor||"left")==="right"?g.style.right=f?f*this._renderService.dimensions.css.cell.width+"px":"":g.style.left=f?f*this._renderService.dimensions.css.cell.width+"px":""}_removeDecoration(S){var g;(g=this._decorationElements.get(S))==null||g.remove(),this._decorationElements.delete(S),S.dispose()}};o.BufferDecorationRenderer=w=v([_(1,x.IBufferService),_(2,m.ICoreBrowserService),_(3,x.IDecorationService),_(4,m.IRenderService)],w)},5871:(d,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.ColorZoneStore=void 0,o.ColorZoneStore=class{constructor(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}get zones(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones}clear(){this._zones.length=0,this._zonePoolIndex=0}addDecoration(c){if(c.options.overviewRulerOptions){for(const v of this._zones)if(v.color===c.options.overviewRulerOptions.color&&v.position===c.options.overviewRulerOptions.position){if(this._lineIntersectsZone(v,c.marker.line))return;if(this._lineAdjacentToZone(v,c.marker.line,c.options.overviewRulerOptions.position))return void this._addLineToZone(v,c.marker.line)}if(this._zonePoolIndex<this._zonePool.length)return this._zonePool[this._zonePoolIndex].color=c.options.overviewRulerOptions.color,this._zonePool[this._zonePoolIndex].position=c.options.overviewRulerOptions.position,this._zonePool[this._zonePoolIndex].startBufferLine=c.marker.line,this._zonePool[this._zonePoolIndex].endBufferLine=c.marker.line,void this._zones.push(this._zonePool[this._zonePoolIndex++]);this._zones.push({color:c.options.overviewRulerOptions.color,position:c.options.overviewRulerOptions.position,startBufferLine:c.marker.line,endBufferLine:c.marker.line}),this._zonePool.push(this._zones[this._zones.length-1]),this._zonePoolIndex++}}setPadding(c){this._linePadding=c}_lineIntersectsZone(c,v){return v>=c.startBufferLine&&v<=c.endBufferLine}_lineAdjacentToZone(c,v,_){return v>=c.startBufferLine-this._linePadding[_||"full"]&&v<=c.endBufferLine+this._linePadding[_||"full"]}_addLineToZone(c,v){c.startBufferLine=Math.min(c.startBufferLine,v),c.endBufferLine=Math.max(c.endBufferLine,v)}}},5744:function(d,o,c){var v=this&&this.__decorate||function(h,b,E,P){var L,R=arguments.length,A=R<3?b:P===null?P=Object.getOwnPropertyDescriptor(b,E):P;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")A=Reflect.decorate(h,b,E,P);else for(var T=h.length-1;T>=0;T--)(L=h[T])&&(A=(R<3?L(A):R>3?L(b,E,A):L(b,E))||A);return R>3&&A&&Object.defineProperty(b,E,A),A},_=this&&this.__param||function(h,b){return function(E,P){b(E,P,h)}};Object.defineProperty(o,"__esModule",{value:!0}),o.OverviewRulerRenderer=void 0;const m=c(5871),C=c(4725),x=c(844),w=c(2585),S={full:0,left:0,center:0,right:0},g={full:0,left:0,center:0,right:0},f={full:0,left:0,center:0,right:0};let p=o.OverviewRulerRenderer=class extends x.Disposable{get _width(){return this._optionsService.options.overviewRulerWidth||0}constructor(h,b,E,P,L,R,A){var $;super(),this._viewportElement=h,this._screenElement=b,this._bufferService=E,this._decorationService=P,this._renderService=L,this._optionsService=R,this._coreBrowserService=A,this._colorZoneStore=new m.ColorZoneStore,this._shouldUpdateDimensions=!0,this._shouldUpdateAnchor=!0,this._lastKnownBufferLength=0,this._canvas=this._coreBrowserService.mainDocument.createElement("canvas"),this._canvas.classList.add("xterm-decoration-overview-ruler"),this._refreshCanvasDimensions(),($=this._viewportElement.parentElement)==null||$.insertBefore(this._canvas,this._viewportElement);const T=this._canvas.getContext("2d");if(!T)throw new Error("Ctx cannot be null");this._ctx=T,this._registerDecorationListeners(),this._registerBufferChangeListeners(),this._registerDimensionChangeListeners(),this.register((0,x.toDisposable)((()=>{var H;(H=this._canvas)==null||H.remove()})))}_registerDecorationListeners(){this.register(this._decorationService.onDecorationRegistered((()=>this._queueRefresh(void 0,!0)))),this.register(this._decorationService.onDecorationRemoved((()=>this._queueRefresh(void 0,!0))))}_registerBufferChangeListeners(){this.register(this._renderService.onRenderedViewportChange((()=>this._queueRefresh()))),this.register(this._bufferService.buffers.onBufferActivate((()=>{this._canvas.style.display=this._bufferService.buffer===this._bufferService.buffers.alt?"none":"block"}))),this.register(this._bufferService.onScroll((()=>{this._lastKnownBufferLength!==this._bufferService.buffers.normal.lines.length&&(this._refreshDrawHeightConstants(),this._refreshColorZonePadding())})))}_registerDimensionChangeListeners(){this.register(this._renderService.onRender((()=>{this._containerHeight&&this._containerHeight===this._screenElement.clientHeight||(this._queueRefresh(!0),this._containerHeight=this._screenElement.clientHeight)}))),this.register(this._optionsService.onSpecificOptionChange("overviewRulerWidth",(()=>this._queueRefresh(!0)))),this.register(this._coreBrowserService.onDprChange((()=>this._queueRefresh(!0)))),this._queueRefresh(!0)}_refreshDrawConstants(){const h=Math.floor(this._canvas.width/3),b=Math.ceil(this._canvas.width/3);g.full=this._canvas.width,g.left=h,g.center=b,g.right=h,this._refreshDrawHeightConstants(),f.full=0,f.left=0,f.center=g.left,f.right=g.left+g.center}_refreshDrawHeightConstants(){S.full=Math.round(2*this._coreBrowserService.dpr);const h=this._canvas.height/this._bufferService.buffer.lines.length,b=Math.round(Math.max(Math.min(h,12),6)*this._coreBrowserService.dpr);S.left=b,S.center=b,S.right=b}_refreshColorZonePadding(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*S.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*S.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*S.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*S.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length}_refreshCanvasDimensions(){this._canvas.style.width=`${this._width}px`,this._canvas.width=Math.round(this._width*this._coreBrowserService.dpr),this._canvas.style.height=`${this._screenElement.clientHeight}px`,this._canvas.height=Math.round(this._screenElement.clientHeight*this._coreBrowserService.dpr),this._refreshDrawConstants(),this._refreshColorZonePadding()}_refreshDecorations(){this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();for(const b of this._decorationService.decorations)this._colorZoneStore.addDecoration(b);this._ctx.lineWidth=1;const h=this._colorZoneStore.zones;for(const b of h)b.position!=="full"&&this._renderColorZone(b);for(const b of h)b.position==="full"&&this._renderColorZone(b);this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1}_renderColorZone(h){this._ctx.fillStyle=h.color,this._ctx.fillRect(f[h.position||"full"],Math.round((this._canvas.height-1)*(h.startBufferLine/this._bufferService.buffers.active.lines.length)-S[h.position||"full"]/2),g[h.position||"full"],Math.round((this._canvas.height-1)*((h.endBufferLine-h.startBufferLine)/this._bufferService.buffers.active.lines.length)+S[h.position||"full"]))}_queueRefresh(h,b){this._shouldUpdateDimensions=h||this._shouldUpdateDimensions,this._shouldUpdateAnchor=b||this._shouldUpdateAnchor,this._animationFrame===void 0&&(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>{this._refreshDecorations(),this._animationFrame=void 0})))}};o.OverviewRulerRenderer=p=v([_(2,w.IBufferService),_(3,w.IDecorationService),_(4,C.IRenderService),_(5,w.IOptionsService),_(6,C.ICoreBrowserService)],p)},2950:function(d,o,c){var v=this&&this.__decorate||function(S,g,f,p){var h,b=arguments.length,E=b<3?g:p===null?p=Object.getOwnPropertyDescriptor(g,f):p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(S,g,f,p);else for(var P=S.length-1;P>=0;P--)(h=S[P])&&(E=(b<3?h(E):b>3?h(g,f,E):h(g,f))||E);return b>3&&E&&Object.defineProperty(g,f,E),E},_=this&&this.__param||function(S,g){return function(f,p){g(f,p,S)}};Object.defineProperty(o,"__esModule",{value:!0}),o.CompositionHelper=void 0;const m=c(4725),C=c(2585),x=c(2584);let w=o.CompositionHelper=class{get isComposing(){return this._isComposing}constructor(S,g,f,p,h,b){this._textarea=S,this._compositionView=g,this._bufferService=f,this._optionsService=p,this._coreService=h,this._renderService=b,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}compositionstart(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")}compositionupdate(S){this._compositionView.textContent=S.data,this.updateCompositionElements(),setTimeout((()=>{this._compositionPosition.end=this._textarea.value.length}),0)}compositionend(){this._finalizeComposition(!0)}keydown(S){if(this._isComposing||this._isSendingComposition){if(S.keyCode===229||S.keyCode===16||S.keyCode===17||S.keyCode===18)return!1;this._finalizeComposition(!1)}return S.keyCode!==229||(this._handleAnyTextareaChanges(),!1)}_finalizeComposition(S){if(this._compositionView.classList.remove("active"),this._isComposing=!1,S){const g={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout((()=>{if(this._isSendingComposition){let f;this._isSendingComposition=!1,g.start+=this._dataAlreadySent.length,f=this._isComposing?this._textarea.value.substring(g.start,g.end):this._textarea.value.substring(g.start),f.length>0&&this._coreService.triggerDataEvent(f,!0)}}),0)}else{this._isSendingComposition=!1;const g=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(g,!0)}}_handleAnyTextareaChanges(){const S=this._textarea.value;setTimeout((()=>{if(!this._isComposing){const g=this._textarea.value,f=g.replace(S,"");this._dataAlreadySent=f,g.length>S.length?this._coreService.triggerDataEvent(f,!0):g.length<S.length?this._coreService.triggerDataEvent(`${x.C0.DEL}`,!0):g.length===S.length&&g!==S&&this._coreService.triggerDataEvent(g,!0)}}),0)}updateCompositionElements(S){if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){const g=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),f=this._renderService.dimensions.css.cell.height,p=this._bufferService.buffer.y*this._renderService.dimensions.css.cell.height,h=g*this._renderService.dimensions.css.cell.width;this._compositionView.style.left=h+"px",this._compositionView.style.top=p+"px",this._compositionView.style.height=f+"px",this._compositionView.style.lineHeight=f+"px",this._compositionView.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._compositionView.style.fontSize=this._optionsService.rawOptions.fontSize+"px";const b=this._compositionView.getBoundingClientRect();this._textarea.style.left=h+"px",this._textarea.style.top=p+"px",this._textarea.style.width=Math.max(b.width,1)+"px",this._textarea.style.height=Math.max(b.height,1)+"px",this._textarea.style.lineHeight=b.height+"px"}S||setTimeout((()=>this.updateCompositionElements(!0)),0)}}};o.CompositionHelper=w=v([_(2,C.IBufferService),_(3,C.IOptionsService),_(4,C.ICoreService),_(5,m.IRenderService)],w)},9806:(d,o)=>{function c(v,_,m){const C=m.getBoundingClientRect(),x=v.getComputedStyle(m),w=parseInt(x.getPropertyValue("padding-left")),S=parseInt(x.getPropertyValue("padding-top"));return[_.clientX-C.left-w,_.clientY-C.top-S]}Object.defineProperty(o,"__esModule",{value:!0}),o.getCoords=o.getCoordsRelativeToElement=void 0,o.getCoordsRelativeToElement=c,o.getCoords=function(v,_,m,C,x,w,S,g,f){if(!w)return;const p=c(v,_,m);return p?(p[0]=Math.ceil((p[0]+(f?S/2:0))/S),p[1]=Math.ceil(p[1]/g),p[0]=Math.min(Math.max(p[0],1),C+(f?1:0)),p[1]=Math.min(Math.max(p[1],1),x),p):void 0}},9504:(d,o,c)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.moveToCellSequence=void 0;const v=c(2584);function _(g,f,p,h){const b=g-m(g,p),E=f-m(f,p),P=Math.abs(b-E)-(function(L,R,A){let T=0;const $=L-m(L,A),H=R-m(R,A);for(let N=0;N<Math.abs($-H);N++){const V=C(L,R)==="A"?-1:1,K=A.buffer.lines.get($+V*N);K!=null&&K.isWrapped&&T++}return T})(g,f,p);return S(P,w(C(g,f),h))}function m(g,f){let p=0,h=f.buffer.lines.get(g),b=h==null?void 0:h.isWrapped;for(;b&&g>=0&&g<f.rows;)p++,h=f.buffer.lines.get(--g),b=h==null?void 0:h.isWrapped;return p}function C(g,f){return g>f?"A":"B"}function x(g,f,p,h,b,E){let P=g,L=f,R="";for(;P!==p||L!==h;)P+=b?1:-1,b&&P>E.cols-1?(R+=E.buffer.translateBufferLineToString(L,!1,g,P),P=0,g=0,L++):!b&&P<0&&(R+=E.buffer.translateBufferLineToString(L,!1,0,g+1),P=E.cols-1,g=P,L--);return R+E.buffer.translateBufferLineToString(L,!1,g,P)}function w(g,f){const p=f?"O":"[";return v.C0.ESC+p+g}function S(g,f){g=Math.floor(g);let p="";for(let h=0;h<g;h++)p+=f;return p}o.moveToCellSequence=function(g,f,p,h){const b=p.buffer.x,E=p.buffer.y;if(!p.buffer.hasScrollback)return(function(R,A,T,$,H,N){return _(A,$,H,N).length===0?"":S(x(R,A,R,A-m(A,H),!1,H).length,w("D",N))})(b,E,0,f,p,h)+_(E,f,p,h)+(function(R,A,T,$,H,N){let V;V=_(A,$,H,N).length>0?$-m($,H):A;const K=$,G=(function(Z,X,M,z,B,W){let ee;return ee=_(M,z,B,W).length>0?z-m(z,B):X,Z<M&&ee<=z||Z>=M&&ee<z?"C":"D"})(R,A,T,$,H,N);return S(x(R,V,T,K,G==="C",H).length,w(G,N))})(b,E,g,f,p,h);let P;if(E===f)return P=b>g?"D":"C",S(Math.abs(b-g),w(P,h));P=E>f?"D":"C";const L=Math.abs(E-f);return S((function(R,A){return A.cols-R})(E>f?g:b,p)+(L-1)*p.cols+1+((E>f?b:g)-1),w(P,h))}},1296:function(d,o,c){var v=this&&this.__decorate||function(N,V,K,G){var Z,X=arguments.length,M=X<3?V:G===null?G=Object.getOwnPropertyDescriptor(V,K):G;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")M=Reflect.decorate(N,V,K,G);else for(var z=N.length-1;z>=0;z--)(Z=N[z])&&(M=(X<3?Z(M):X>3?Z(V,K,M):Z(V,K))||M);return X>3&&M&&Object.defineProperty(V,K,M),M},_=this&&this.__param||function(N,V){return function(K,G){V(K,G,N)}};Object.defineProperty(o,"__esModule",{value:!0}),o.DomRenderer=void 0;const m=c(3787),C=c(2550),x=c(2223),w=c(6171),S=c(6052),g=c(4725),f=c(8055),p=c(8460),h=c(844),b=c(2585),E="xterm-dom-renderer-owner-",P="xterm-rows",L="xterm-fg-",R="xterm-bg-",A="xterm-focus",T="xterm-selection";let $=1,H=o.DomRenderer=class extends h.Disposable{constructor(N,V,K,G,Z,X,M,z,B,W,ee,re,oe){super(),this._terminal=N,this._document=V,this._element=K,this._screenElement=G,this._viewportElement=Z,this._helperContainer=X,this._linkifier2=M,this._charSizeService=B,this._optionsService=W,this._bufferService=ee,this._coreBrowserService=re,this._themeService=oe,this._terminalClass=$++,this._rowElements=[],this._selectionRenderModel=(0,S.createSelectionRenderModel)(),this.onRequestRedraw=this.register(new p.EventEmitter).event,this._rowContainer=this._document.createElement("div"),this._rowContainer.classList.add(P),this._rowContainer.style.lineHeight="normal",this._rowContainer.setAttribute("aria-hidden","true"),this._refreshRowElements(this._bufferService.cols,this._bufferService.rows),this._selectionContainer=this._document.createElement("div"),this._selectionContainer.classList.add(T),this._selectionContainer.setAttribute("aria-hidden","true"),this.dimensions=(0,w.createRenderDimensions)(),this._updateDimensions(),this.register(this._optionsService.onOptionChange((()=>this._handleOptionsChanged()))),this.register(this._themeService.onChangeColors((se=>this._injectCss(se)))),this._injectCss(this._themeService.colors),this._rowFactory=z.createInstance(m.DomRendererRowFactory,document),this._element.classList.add(E+this._terminalClass),this._screenElement.appendChild(this._rowContainer),this._screenElement.appendChild(this._selectionContainer),this.register(this._linkifier2.onShowLinkUnderline((se=>this._handleLinkHover(se)))),this.register(this._linkifier2.onHideLinkUnderline((se=>this._handleLinkLeave(se)))),this.register((0,h.toDisposable)((()=>{this._element.classList.remove(E+this._terminalClass),this._rowContainer.remove(),this._selectionContainer.remove(),this._widthCache.dispose(),this._themeStyleElement.remove(),this._dimensionsStyleElement.remove()}))),this._widthCache=new C.WidthCache(this._document,this._helperContainer),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}_updateDimensions(){const N=this._coreBrowserService.dpr;this.dimensions.device.char.width=this._charSizeService.width*N,this.dimensions.device.char.height=Math.ceil(this._charSizeService.height*N),this.dimensions.device.cell.width=this.dimensions.device.char.width+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.device.cell.height=Math.floor(this.dimensions.device.char.height*this._optionsService.rawOptions.lineHeight),this.dimensions.device.char.left=0,this.dimensions.device.char.top=0,this.dimensions.device.canvas.width=this.dimensions.device.cell.width*this._bufferService.cols,this.dimensions.device.canvas.height=this.dimensions.device.cell.height*this._bufferService.rows,this.dimensions.css.canvas.width=Math.round(this.dimensions.device.canvas.width/N),this.dimensions.css.canvas.height=Math.round(this.dimensions.device.canvas.height/N),this.dimensions.css.cell.width=this.dimensions.css.canvas.width/this._bufferService.cols,this.dimensions.css.cell.height=this.dimensions.css.canvas.height/this._bufferService.rows;for(const K of this._rowElements)K.style.width=`${this.dimensions.css.canvas.width}px`,K.style.height=`${this.dimensions.css.cell.height}px`,K.style.lineHeight=`${this.dimensions.css.cell.height}px`,K.style.overflow="hidden";this._dimensionsStyleElement||(this._dimensionsStyleElement=this._document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));const V=`${this._terminalSelector} .${P} span { display: inline-block; height: 100%; vertical-align: top;}`;this._dimensionsStyleElement.textContent=V,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=`${this.dimensions.css.canvas.width}px`,this._screenElement.style.height=`${this.dimensions.css.canvas.height}px`}_injectCss(N){this._themeStyleElement||(this._themeStyleElement=this._document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));let V=`${this._terminalSelector} .${P} { color: ${N.foreground.css}; font-family: ${this._optionsService.rawOptions.fontFamily}; font-size: ${this._optionsService.rawOptions.fontSize}px; font-kerning: none; white-space: pre}`;V+=`${this._terminalSelector} .${P} .xterm-dim { color: ${f.color.multiplyOpacity(N.foreground,.5).css};}`,V+=`${this._terminalSelector} span:not(.xterm-bold) { font-weight: ${this._optionsService.rawOptions.fontWeight};}${this._terminalSelector} span.xterm-bold { font-weight: ${this._optionsService.rawOptions.fontWeightBold};}${this._terminalSelector} span.xterm-italic { font-style: italic;}`;const K=`blink_underline_${this._terminalClass}`,G=`blink_bar_${this._terminalClass}`,Z=`blink_block_${this._terminalClass}`;V+=`@keyframes ${K} { 50% { border-bottom-style: hidden; }}`,V+=`@keyframes ${G} { 50% { box-shadow: none; }}`,V+=`@keyframes ${Z} { 0% { background-color: ${N.cursor.css}; color: ${N.cursorAccent.css}; } 50% { background-color: inherit; color: ${N.cursor.css}; }}`,V+=`${this._terminalSelector} .${P}.${A} .xterm-cursor.xterm-cursor-blink.xterm-cursor-underline { animation: ${K} 1s step-end infinite;}${this._terminalSelector} .${P}.${A} .xterm-cursor.xterm-cursor-blink.xterm-cursor-bar { animation: ${G} 1s step-end infinite;}${this._terminalSelector} .${P}.${A} .xterm-cursor.xterm-cursor-blink.xterm-cursor-block { animation: ${Z} 1s step-end infinite;}${this._terminalSelector} .${P} .xterm-cursor.xterm-cursor-block { background-color: ${N.cursor.css}; color: ${N.cursorAccent.css};}${this._terminalSelector} .${P} .xterm-cursor.xterm-cursor-block:not(.xterm-cursor-blink) { background-color: ${N.cursor.css} !important; color: ${N.cursorAccent.css} !important;}${this._terminalSelector} .${P} .xterm-cursor.xterm-cursor-outline { outline: 1px solid ${N.cursor.css}; outline-offset: -1px;}${this._terminalSelector} .${P} .xterm-cursor.xterm-cursor-bar { box-shadow: ${this._optionsService.rawOptions.cursorWidth}px 0 0 ${N.cursor.css} inset;}${this._terminalSelector} .${P} .xterm-cursor.xterm-cursor-underline { border-bottom: 1px ${N.cursor.css}; border-bottom-style: solid; height: calc(100% - 1px);}`,V+=`${this._terminalSelector} .${T} { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}${this._terminalSelector}.focus .${T} div { position: absolute; background-color: ${N.selectionBackgroundOpaque.css};}${this._terminalSelector} .${T} div { position: absolute; background-color: ${N.selectionInactiveBackgroundOpaque.css};}`;for(const[X,M]of N.ansi.entries())V+=`${this._terminalSelector} .${L}${X} { color: ${M.css}; }${this._terminalSelector} .${L}${X}.xterm-dim { color: ${f.color.multiplyOpacity(M,.5).css}; }${this._terminalSelector} .${R}${X} { background-color: ${M.css}; }`;V+=`${this._terminalSelector} .${L}${x.INVERTED_DEFAULT_COLOR} { color: ${f.color.opaque(N.background).css}; }${this._terminalSelector} .${L}${x.INVERTED_DEFAULT_COLOR}.xterm-dim { color: ${f.color.multiplyOpacity(f.color.opaque(N.background),.5).css}; }${this._terminalSelector} .${R}${x.INVERTED_DEFAULT_COLOR} { background-color: ${N.foreground.css}; }`,this._themeStyleElement.textContent=V}_setDefaultSpacing(){const N=this.dimensions.css.cell.width-this._widthCache.get("W",!1,!1);this._rowContainer.style.letterSpacing=`${N}px`,this._rowFactory.defaultSpacing=N}handleDevicePixelRatioChange(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}_refreshRowElements(N,V){for(let K=this._rowElements.length;K<=V;K++){const G=this._document.createElement("div");this._rowContainer.appendChild(G),this._rowElements.push(G)}for(;this._rowElements.length>V;)this._rowContainer.removeChild(this._rowElements.pop())}handleResize(N,V){this._refreshRowElements(N,V),this._updateDimensions(),this.handleSelectionChanged(this._selectionRenderModel.selectionStart,this._selectionRenderModel.selectionEnd,this._selectionRenderModel.columnSelectMode)}handleCharSizeChanged(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}handleBlur(){this._rowContainer.classList.remove(A),this.renderRows(0,this._bufferService.rows-1)}handleFocus(){this._rowContainer.classList.add(A),this.renderRows(this._bufferService.buffer.y,this._bufferService.buffer.y)}handleSelectionChanged(N,V,K){if(this._selectionContainer.replaceChildren(),this._rowFactory.handleSelectionChanged(N,V,K),this.renderRows(0,this._bufferService.rows-1),!N||!V)return;this._selectionRenderModel.update(this._terminal,N,V,K);const G=this._selectionRenderModel.viewportStartRow,Z=this._selectionRenderModel.viewportEndRow,X=this._selectionRenderModel.viewportCappedStartRow,M=this._selectionRenderModel.viewportCappedEndRow;if(X>=this._bufferService.rows||M<0)return;const z=this._document.createDocumentFragment();if(K){const B=N[0]>V[0];z.appendChild(this._createSelectionElement(X,B?V[0]:N[0],B?N[0]:V[0],M-X+1))}else{const B=G===X?N[0]:0,W=X===Z?V[0]:this._bufferService.cols;z.appendChild(this._createSelectionElement(X,B,W));const ee=M-X-1;if(z.appendChild(this._createSelectionElement(X+1,0,this._bufferService.cols,ee)),X!==M){const re=Z===M?V[0]:this._bufferService.cols;z.appendChild(this._createSelectionElement(M,0,re))}}this._selectionContainer.appendChild(z)}_createSelectionElement(N,V,K,G=1){const Z=this._document.createElement("div"),X=V*this.dimensions.css.cell.width;let M=this.dimensions.css.cell.width*(K-V);return X+M>this.dimensions.css.canvas.width&&(M=this.dimensions.css.canvas.width-X),Z.style.height=G*this.dimensions.css.cell.height+"px",Z.style.top=N*this.dimensions.css.cell.height+"px",Z.style.left=`${X}px`,Z.style.width=`${M}px`,Z}handleCursorMove(){}_handleOptionsChanged(){this._updateDimensions(),this._injectCss(this._themeService.colors),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}clear(){for(const N of this._rowElements)N.replaceChildren()}renderRows(N,V){const K=this._bufferService.buffer,G=K.ybase+K.y,Z=Math.min(K.x,this._bufferService.cols-1),X=this._optionsService.rawOptions.cursorBlink,M=this._optionsService.rawOptions.cursorStyle,z=this._optionsService.rawOptions.cursorInactiveStyle;for(let B=N;B<=V;B++){const W=B+K.ydisp,ee=this._rowElements[B],re=K.lines.get(W);if(!ee||!re)break;ee.replaceChildren(...this._rowFactory.createRow(re,W,W===G,M,z,Z,X,this.dimensions.css.cell.width,this._widthCache,-1,-1))}}get _terminalSelector(){return`.${E}${this._terminalClass}`}_handleLinkHover(N){this._setCellUnderline(N.x1,N.x2,N.y1,N.y2,N.cols,!0)}_handleLinkLeave(N){this._setCellUnderline(N.x1,N.x2,N.y1,N.y2,N.cols,!1)}_setCellUnderline(N,V,K,G,Z,X){K<0&&(N=0),G<0&&(V=0);const M=this._bufferService.rows-1;K=Math.max(Math.min(K,M),0),G=Math.max(Math.min(G,M),0),Z=Math.min(Z,this._bufferService.cols);const z=this._bufferService.buffer,B=z.ybase+z.y,W=Math.min(z.x,Z-1),ee=this._optionsService.rawOptions.cursorBlink,re=this._optionsService.rawOptions.cursorStyle,oe=this._optionsService.rawOptions.cursorInactiveStyle;for(let se=K;se<=G;++se){const U=se+z.ydisp,j=this._rowElements[se],ne=z.lines.get(U);if(!j||!ne)break;j.replaceChildren(...this._rowFactory.createRow(ne,U,U===B,re,oe,W,ee,this.dimensions.css.cell.width,this._widthCache,X?se===K?N:0:-1,X?(se===G?V:Z)-1:-1))}}};o.DomRenderer=H=v([_(7,b.IInstantiationService),_(8,g.ICharSizeService),_(9,b.IOptionsService),_(10,b.IBufferService),_(11,g.ICoreBrowserService),_(12,g.IThemeService)],H)},3787:function(d,o,c){var v=this&&this.__decorate||function(P,L,R,A){var T,$=arguments.length,H=$<3?L:A===null?A=Object.getOwnPropertyDescriptor(L,R):A;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")H=Reflect.decorate(P,L,R,A);else for(var N=P.length-1;N>=0;N--)(T=P[N])&&(H=($<3?T(H):$>3?T(L,R,H):T(L,R))||H);return $>3&&H&&Object.defineProperty(L,R,H),H},_=this&&this.__param||function(P,L){return function(R,A){L(R,A,P)}};Object.defineProperty(o,"__esModule",{value:!0}),o.DomRendererRowFactory=void 0;const m=c(2223),C=c(643),x=c(511),w=c(2585),S=c(8055),g=c(4725),f=c(4269),p=c(6171),h=c(3734);let b=o.DomRendererRowFactory=class{constructor(P,L,R,A,T,$,H){this._document=P,this._characterJoinerService=L,this._optionsService=R,this._coreBrowserService=A,this._coreService=T,this._decorationService=$,this._themeService=H,this._workCell=new x.CellData,this._columnSelectMode=!1,this.defaultSpacing=0}handleSelectionChanged(P,L,R){this._selectionStart=P,this._selectionEnd=L,this._columnSelectMode=R}createRow(P,L,R,A,T,$,H,N,V,K,G){const Z=[],X=this._characterJoinerService.getJoinedCharacters(L),M=this._themeService.colors;let z,B=P.getNoBgTrimmedLength();R&&B<$+1&&(B=$+1);let W=0,ee="",re=0,oe=0,se=0,U=!1,j=0,ne=!1,Q=0;const ue=[],ce=K!==-1&&G!==-1;for(let _e=0;_e<B;_e++){P.loadCell(_e,this._workCell);let ge=this._workCell.getWidth();if(ge===0)continue;let xe=!1,Ve=_e,be=this._workCell;if(X.length>0&&_e===X[0][0]){xe=!0;const Fe=X.shift();be=new f.JoinedCellData(this._workCell,P.translateToString(!0,Fe[0],Fe[1]),Fe[1]-Fe[0]),Ve=Fe[1]-1,ge=be.getWidth()}const ye=this._isCellInSelection(_e,L),We=R&&_e===$,je=ce&&_e>=K&&_e<=G;let He=!1;this._decorationService.forEachDecorationAtCell(_e,L,void 0,(Fe=>{He=!0}));let Ee=be.getChars()||C.WHITESPACE_CELL_CHAR;if(Ee===" "&&(be.isUnderline()||be.isOverline())&&(Ee=" "),Q=ge*N-V.get(Ee,be.isBold(),be.isItalic()),z){if(W&&(ye&&ne||!ye&&!ne&&be.bg===re)&&(ye&&ne&&M.selectionForeground||be.fg===oe)&&be.extended.ext===se&&je===U&&Q===j&&!We&&!xe&&!He){be.isInvisible()?ee+=C.WHITESPACE_CELL_CHAR:ee+=Ee,W++;continue}W&&(z.textContent=ee),z=this._document.createElement("span"),W=0,ee=""}else z=this._document.createElement("span");if(re=be.bg,oe=be.fg,se=be.extended.ext,U=je,j=Q,ne=ye,xe&&$>=_e&&$<=Ve&&($=_e),!this._coreService.isCursorHidden&&We&&this._coreService.isCursorInitialized){if(ue.push("xterm-cursor"),this._coreBrowserService.isFocused)H&&ue.push("xterm-cursor-blink"),ue.push(A==="bar"?"xterm-cursor-bar":A==="underline"?"xterm-cursor-underline":"xterm-cursor-block");else if(T)switch(T){case"outline":ue.push("xterm-cursor-outline");break;case"block":ue.push("xterm-cursor-block");break;case"bar":ue.push("xterm-cursor-bar");break;case"underline":ue.push("xterm-cursor-underline")}}if(be.isBold()&&ue.push("xterm-bold"),be.isItalic()&&ue.push("xterm-italic"),be.isDim()&&ue.push("xterm-dim"),ee=be.isInvisible()?C.WHITESPACE_CELL_CHAR:be.getChars()||C.WHITESPACE_CELL_CHAR,be.isUnderline()&&(ue.push(`xterm-underline-${be.extended.underlineStyle}`),ee===" "&&(ee=" "),!be.isUnderlineColorDefault()))if(be.isUnderlineColorRGB())z.style.textDecorationColor=`rgb(${h.AttributeData.toColorRGB(be.getUnderlineColor()).join(",")})`;else{let Fe=be.getUnderlineColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&be.isBold()&&Fe<8&&(Fe+=8),z.style.textDecorationColor=M.ansi[Fe].css}be.isOverline()&&(ue.push("xterm-overline"),ee===" "&&(ee=" ")),be.isStrikethrough()&&ue.push("xterm-strikethrough"),je&&(z.style.textDecoration="underline");let Ze=be.getFgColor(),Ge=be.getFgColorMode(),dt=be.getBgColor(),Rt=be.getBgColorMode();const wt=!!be.isInverse();if(wt){const Fe=Ze;Ze=dt,dt=Fe;const ht=Ge;Ge=Rt,Rt=ht}let Xe,et,Ye,De=!1;switch(this._decorationService.forEachDecorationAtCell(_e,L,void 0,(Fe=>{Fe.options.layer!=="top"&&De||(Fe.backgroundColorRGB&&(Rt=50331648,dt=Fe.backgroundColorRGB.rgba>>8&16777215,Xe=Fe.backgroundColorRGB),Fe.foregroundColorRGB&&(Ge=50331648,Ze=Fe.foregroundColorRGB.rgba>>8&16777215,et=Fe.foregroundColorRGB),De=Fe.options.layer==="top")})),!De&&ye&&(Xe=this._coreBrowserService.isFocused?M.selectionBackgroundOpaque:M.selectionInactiveBackgroundOpaque,dt=Xe.rgba>>8&16777215,Rt=50331648,De=!0,M.selectionForeground&&(Ge=50331648,Ze=M.selectionForeground.rgba>>8&16777215,et=M.selectionForeground)),De&&ue.push("xterm-decoration-top"),Rt){case 16777216:case 33554432:Ye=M.ansi[dt],ue.push(`xterm-bg-${dt}`);break;case 50331648:Ye=S.channels.toColor(dt>>16,dt>>8&255,255&dt),this._addStyle(z,`background-color:#${E((dt>>>0).toString(16),"0",6)}`);break;default:wt?(Ye=M.foreground,ue.push(`xterm-bg-${m.INVERTED_DEFAULT_COLOR}`)):Ye=M.background}switch(Xe||be.isDim()&&(Xe=S.color.multiplyOpacity(Ye,.5)),Ge){case 16777216:case 33554432:be.isBold()&&Ze<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(Ze+=8),this._applyMinimumContrast(z,Ye,M.ansi[Ze],be,Xe,void 0)||ue.push(`xterm-fg-${Ze}`);break;case 50331648:const Fe=S.channels.toColor(Ze>>16&255,Ze>>8&255,255&Ze);this._applyMinimumContrast(z,Ye,Fe,be,Xe,et)||this._addStyle(z,`color:#${E(Ze.toString(16),"0",6)}`);break;default:this._applyMinimumContrast(z,Ye,M.foreground,be,Xe,et)||wt&&ue.push(`xterm-fg-${m.INVERTED_DEFAULT_COLOR}`)}ue.length&&(z.className=ue.join(" "),ue.length=0),We||xe||He?z.textContent=ee:W++,Q!==this.defaultSpacing&&(z.style.letterSpacing=`${Q}px`),Z.push(z),_e=Ve}return z&&W&&(z.textContent=ee),Z}_applyMinimumContrast(P,L,R,A,T,$){if(this._optionsService.rawOptions.minimumContrastRatio===1||(0,p.treatGlyphAsBackgroundColor)(A.getCode()))return!1;const H=this._getContrastCache(A);let N;if(T||$||(N=H.getColor(L.rgba,R.rgba)),N===void 0){const V=this._optionsService.rawOptions.minimumContrastRatio/(A.isDim()?2:1);N=S.color.ensureContrastRatio(T||L,$||R,V),H.setColor((T||L).rgba,($||R).rgba,N??null)}return!!N&&(this._addStyle(P,`color:${N.css}`),!0)}_getContrastCache(P){return P.isDim()?this._themeService.colors.halfContrastCache:this._themeService.colors.contrastCache}_addStyle(P,L){P.setAttribute("style",`${P.getAttribute("style")||""}${L};`)}_isCellInSelection(P,L){const R=this._selectionStart,A=this._selectionEnd;return!(!R||!A)&&(this._columnSelectMode?R[0]<=A[0]?P>=R[0]&&L>=R[1]&&P<A[0]&&L<=A[1]:P<R[0]&&L>=R[1]&&P>=A[0]&&L<=A[1]:L>R[1]&&L<A[1]||R[1]===A[1]&&L===R[1]&&P>=R[0]&&P<A[0]||R[1]<A[1]&&L===A[1]&&P<A[0]||R[1]<A[1]&&L===R[1]&&P>=R[0])}};function E(P,L,R){for(;P.length<R;)P=L+P;return P}o.DomRendererRowFactory=b=v([_(1,g.ICharacterJoinerService),_(2,w.IOptionsService),_(3,g.ICoreBrowserService),_(4,w.ICoreService),_(5,w.IDecorationService),_(6,g.IThemeService)],b)},2550:(d,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.WidthCache=void 0,o.WidthCache=class{constructor(c,v){this._flat=new Float32Array(256),this._font="",this._fontSize=0,this._weight="normal",this._weightBold="bold",this._measureElements=[],this._container=c.createElement("div"),this._container.classList.add("xterm-width-cache-measure-container"),this._container.setAttribute("aria-hidden","true"),this._container.style.whiteSpace="pre",this._container.style.fontKerning="none";const _=c.createElement("span");_.classList.add("xterm-char-measure-element");const m=c.createElement("span");m.classList.add("xterm-char-measure-element"),m.style.fontWeight="bold";const C=c.createElement("span");C.classList.add("xterm-char-measure-element"),C.style.fontStyle="italic";const x=c.createElement("span");x.classList.add("xterm-char-measure-element"),x.style.fontWeight="bold",x.style.fontStyle="italic",this._measureElements=[_,m,C,x],this._container.appendChild(_),this._container.appendChild(m),this._container.appendChild(C),this._container.appendChild(x),v.appendChild(this._container),this.clear()}dispose(){this._container.remove(),this._measureElements.length=0,this._holey=void 0}clear(){this._flat.fill(-9999),this._holey=new Map}setFont(c,v,_,m){c===this._font&&v===this._fontSize&&_===this._weight&&m===this._weightBold||(this._font=c,this._fontSize=v,this._weight=_,this._weightBold=m,this._container.style.fontFamily=this._font,this._container.style.fontSize=`${this._fontSize}px`,this._measureElements[0].style.fontWeight=`${_}`,this._measureElements[1].style.fontWeight=`${m}`,this._measureElements[2].style.fontWeight=`${_}`,this._measureElements[3].style.fontWeight=`${m}`,this.clear())}get(c,v,_){let m=0;if(!v&&!_&&c.length===1&&(m=c.charCodeAt(0))<256){if(this._flat[m]!==-9999)return this._flat[m];const w=this._measure(c,0);return w>0&&(this._flat[m]=w),w}let C=c;v&&(C+="B"),_&&(C+="I");let x=this._holey.get(C);if(x===void 0){let w=0;v&&(w|=1),_&&(w|=2),x=this._measure(c,w),x>0&&this._holey.set(C,x)}return x}_measure(c,v){const _=this._measureElements[v];return _.textContent=c.repeat(32),_.offsetWidth/32}}},2223:(d,o,c)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.TEXT_BASELINE=o.DIM_OPACITY=o.INVERTED_DEFAULT_COLOR=void 0;const v=c(6114);o.INVERTED_DEFAULT_COLOR=257,o.DIM_OPACITY=.5,o.TEXT_BASELINE=v.isFirefox||v.isLegacyEdge?"bottom":"ideographic"},6171:(d,o)=>{function c(_){return 57508<=_&&_<=57558}function v(_){return _>=128512&&_<=128591||_>=127744&&_<=128511||_>=128640&&_<=128767||_>=9728&&_<=9983||_>=9984&&_<=10175||_>=65024&&_<=65039||_>=129280&&_<=129535||_>=127462&&_<=127487}Object.defineProperty(o,"__esModule",{value:!0}),o.computeNextVariantOffset=o.createRenderDimensions=o.treatGlyphAsBackgroundColor=o.allowRescaling=o.isEmoji=o.isRestrictedPowerlineGlyph=o.isPowerlineGlyph=o.throwIfFalsy=void 0,o.throwIfFalsy=function(_){if(!_)throw new Error("value must not be falsy");return _},o.isPowerlineGlyph=c,o.isRestrictedPowerlineGlyph=function(_){return 57520<=_&&_<=57527},o.isEmoji=v,o.allowRescaling=function(_,m,C,x){return m===1&&C>Math.ceil(1.5*x)&&_!==void 0&&_>255&&!v(_)&&!c(_)&&!(function(w){return 57344<=w&&w<=63743})(_)},o.treatGlyphAsBackgroundColor=function(_){return c(_)||(function(m){return 9472<=m&&m<=9631})(_)},o.createRenderDimensions=function(){return{css:{canvas:{width:0,height:0},cell:{width:0,height:0}},device:{canvas:{width:0,height:0},cell:{width:0,height:0},char:{width:0,height:0,left:0,top:0}}}},o.computeNextVariantOffset=function(_,m,C=0){return(_-(2*Math.round(m)-C))%(2*Math.round(m))}},6052:(d,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.createSelectionRenderModel=void 0;class c{constructor(){this.clear()}clear(){this.hasSelection=!1,this.columnSelectMode=!1,this.viewportStartRow=0,this.viewportEndRow=0,this.viewportCappedStartRow=0,this.viewportCappedEndRow=0,this.startCol=0,this.endCol=0,this.selectionStart=void 0,this.selectionEnd=void 0}update(_,m,C,x=!1){if(this.selectionStart=m,this.selectionEnd=C,!m||!C||m[0]===C[0]&&m[1]===C[1])return void this.clear();const w=_.buffers.active.ydisp,S=m[1]-w,g=C[1]-w,f=Math.max(S,0),p=Math.min(g,_.rows-1);f>=_.rows||p<0?this.clear():(this.hasSelection=!0,this.columnSelectMode=x,this.viewportStartRow=S,this.viewportEndRow=g,this.viewportCappedStartRow=f,this.viewportCappedEndRow=p,this.startCol=m[0],this.endCol=C[0])}isCellSelected(_,m,C){return!!this.hasSelection&&(C-=_.buffer.active.viewportY,this.columnSelectMode?this.startCol<=this.endCol?m>=this.startCol&&C>=this.viewportCappedStartRow&&m<this.endCol&&C<=this.viewportCappedEndRow:m<this.startCol&&C>=this.viewportCappedStartRow&&m>=this.endCol&&C<=this.viewportCappedEndRow:C>this.viewportStartRow&&C<this.viewportEndRow||this.viewportStartRow===this.viewportEndRow&&C===this.viewportStartRow&&m>=this.startCol&&m<this.endCol||this.viewportStartRow<this.viewportEndRow&&C===this.viewportEndRow&&m<this.endCol||this.viewportStartRow<this.viewportEndRow&&C===this.viewportStartRow&&m>=this.startCol)}}o.createSelectionRenderModel=function(){return new c}},456:(d,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.SelectionModel=void 0,o.SelectionModel=class{constructor(c){this._bufferService=c,this.isSelectAllActive=!1,this.selectionStartLength=0}clearSelection(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0}get finalSelectionStart(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart}get finalSelectionEnd(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){const c=this.selectionStart[0]+this.selectionStartLength;return c>this._bufferService.cols?c%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(c/this._bufferService.cols)-1]:[c%this._bufferService.cols,this.selectionStart[1]+Math.floor(c/this._bufferService.cols)]:[c,this.selectionStart[1]]}if(this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]){const c=this.selectionStart[0]+this.selectionStartLength;return c>this._bufferService.cols?[c%this._bufferService.cols,this.selectionStart[1]+Math.floor(c/this._bufferService.cols)]:[Math.max(c,this.selectionEnd[0]),this.selectionEnd[1]]}return this.selectionEnd}}areSelectionValuesReversed(){const c=this.selectionStart,v=this.selectionEnd;return!(!c||!v)&&(c[1]>v[1]||c[1]===v[1]&&c[0]>v[0])}handleTrim(c){return this.selectionStart&&(this.selectionStart[1]-=c),this.selectionEnd&&(this.selectionEnd[1]-=c),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)}}},428:function(d,o,c){var v=this&&this.__decorate||function(p,h,b,E){var P,L=arguments.length,R=L<3?h:E===null?E=Object.getOwnPropertyDescriptor(h,b):E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")R=Reflect.decorate(p,h,b,E);else for(var A=p.length-1;A>=0;A--)(P=p[A])&&(R=(L<3?P(R):L>3?P(h,b,R):P(h,b))||R);return L>3&&R&&Object.defineProperty(h,b,R),R},_=this&&this.__param||function(p,h){return function(b,E){h(b,E,p)}};Object.defineProperty(o,"__esModule",{value:!0}),o.CharSizeService=void 0;const m=c(2585),C=c(8460),x=c(844);let w=o.CharSizeService=class extends x.Disposable{get hasValidSize(){return this.width>0&&this.height>0}constructor(p,h,b){super(),this._optionsService=b,this.width=0,this.height=0,this._onCharSizeChange=this.register(new C.EventEmitter),this.onCharSizeChange=this._onCharSizeChange.event;try{this._measureStrategy=this.register(new f(this._optionsService))}catch{this._measureStrategy=this.register(new g(p,h,this._optionsService))}this.register(this._optionsService.onMultipleOptionChange(["fontFamily","fontSize"],(()=>this.measure())))}measure(){const p=this._measureStrategy.measure();p.width===this.width&&p.height===this.height||(this.width=p.width,this.height=p.height,this._onCharSizeChange.fire())}};o.CharSizeService=w=v([_(2,m.IOptionsService)],w);class S extends x.Disposable{constructor(){super(...arguments),this._result={width:0,height:0}}_validateAndSet(h,b){h!==void 0&&h>0&&b!==void 0&&b>0&&(this._result.width=h,this._result.height=b)}}class g extends S{constructor(h,b,E){super(),this._document=h,this._parentElement=b,this._optionsService=E,this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W".repeat(32),this._measureElement.setAttribute("aria-hidden","true"),this._measureElement.style.whiteSpace="pre",this._measureElement.style.fontKerning="none",this._parentElement.appendChild(this._measureElement)}measure(){return this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=`${this._optionsService.rawOptions.fontSize}px`,this._validateAndSet(Number(this._measureElement.offsetWidth)/32,Number(this._measureElement.offsetHeight)),this._result}}class f extends S{constructor(h){super(),this._optionsService=h,this._canvas=new OffscreenCanvas(100,100),this._ctx=this._canvas.getContext("2d");const b=this._ctx.measureText("W");if(!("width"in b&&"fontBoundingBoxAscent"in b&&"fontBoundingBoxDescent"in b))throw new Error("Required font metrics not supported")}measure(){this._ctx.font=`${this._optionsService.rawOptions.fontSize}px ${this._optionsService.rawOptions.fontFamily}`;const h=this._ctx.measureText("W");return this._validateAndSet(h.width,h.fontBoundingBoxAscent+h.fontBoundingBoxDescent),this._result}}},4269:function(d,o,c){var v=this&&this.__decorate||function(f,p,h,b){var E,P=arguments.length,L=P<3?p:b===null?b=Object.getOwnPropertyDescriptor(p,h):b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")L=Reflect.decorate(f,p,h,b);else for(var R=f.length-1;R>=0;R--)(E=f[R])&&(L=(P<3?E(L):P>3?E(p,h,L):E(p,h))||L);return P>3&&L&&Object.defineProperty(p,h,L),L},_=this&&this.__param||function(f,p){return function(h,b){p(h,b,f)}};Object.defineProperty(o,"__esModule",{value:!0}),o.CharacterJoinerService=o.JoinedCellData=void 0;const m=c(3734),C=c(643),x=c(511),w=c(2585);class S extends m.AttributeData{constructor(p,h,b){super(),this.content=0,this.combinedData="",this.fg=p.fg,this.bg=p.bg,this.combinedData=h,this._width=b}isCombined(){return 2097152}getWidth(){return this._width}getChars(){return this.combinedData}getCode(){return 2097151}setFromCharData(p){throw new Error("not implemented")}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}o.JoinedCellData=S;let g=o.CharacterJoinerService=class dS{constructor(p){this._bufferService=p,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new x.CellData}register(p){const h={id:this._nextCharacterJoinerId++,handler:p};return this._characterJoiners.push(h),h.id}deregister(p){for(let h=0;h<this._characterJoiners.length;h++)if(this._characterJoiners[h].id===p)return this._characterJoiners.splice(h,1),!0;return!1}getJoinedCharacters(p){if(this._characterJoiners.length===0)return[];const h=this._bufferService.buffer.lines.get(p);if(!h||h.length===0)return[];const b=[],E=h.translateToString(!0);let P=0,L=0,R=0,A=h.getFg(0),T=h.getBg(0);for(let $=0;$<h.getTrimmedLength();$++)if(h.loadCell($,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==A||this._workCell.bg!==T){if($-P>1){const H=this._getJoinedRanges(E,R,L,h,P);for(let N=0;N<H.length;N++)b.push(H[N])}P=$,R=L,A=this._workCell.fg,T=this._workCell.bg}L+=this._workCell.getChars().length||C.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-P>1){const $=this._getJoinedRanges(E,R,L,h,P);for(let H=0;H<$.length;H++)b.push($[H])}return b}_getJoinedRanges(p,h,b,E,P){const L=p.substring(h,b);let R=[];try{R=this._characterJoiners[0].handler(L)}catch(A){console.error(A)}for(let A=1;A<this._characterJoiners.length;A++)try{const T=this._characterJoiners[A].handler(L);for(let $=0;$<T.length;$++)dS._mergeRanges(R,T[$])}catch(T){console.error(T)}return this._stringRangesToCellRanges(R,E,P),R}_stringRangesToCellRanges(p,h,b){let E=0,P=!1,L=0,R=p[E];if(R){for(let A=b;A<this._bufferService.cols;A++){const T=h.getWidth(A),$=h.getString(A).length||C.WHITESPACE_CELL_CHAR.length;if(T!==0){if(!P&&R[0]<=L&&(R[0]=A,P=!0),R[1]<=L){if(R[1]=A,R=p[++E],!R)break;R[0]<=L?(R[0]=A,P=!0):P=!1}L+=$}}R&&(R[1]=this._bufferService.cols)}}static _mergeRanges(p,h){let b=!1;for(let E=0;E<p.length;E++){const P=p[E];if(b){if(h[1]<=P[0])return p[E-1][1]=h[1],p;if(h[1]<=P[1])return p[E-1][1]=Math.max(h[1],P[1]),p.splice(E,1),p;p.splice(E,1),E--}else{if(h[1]<=P[0])return p.splice(E,0,h),p;if(h[1]<=P[1])return P[0]=Math.min(h[0],P[0]),p;h[0]<P[1]&&(P[0]=Math.min(h[0],P[0]),b=!0)}}return b?p[p.length-1][1]=h[1]:p.push(h),p}};o.CharacterJoinerService=g=v([_(0,w.IBufferService)],g)},5114:(d,o,c)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.CoreBrowserService=void 0;const v=c(844),_=c(8460),m=c(3656);class C extends v.Disposable{constructor(S,g,f){super(),this._textarea=S,this._window=g,this.mainDocument=f,this._isFocused=!1,this._cachedIsFocused=void 0,this._screenDprMonitor=new x(this._window),this._onDprChange=this.register(new _.EventEmitter),this.onDprChange=this._onDprChange.event,this._onWindowChange=this.register(new _.EventEmitter),this.onWindowChange=this._onWindowChange.event,this.register(this.onWindowChange((p=>this._screenDprMonitor.setWindow(p)))),this.register((0,_.forwardEvent)(this._screenDprMonitor.onDprChange,this._onDprChange)),this._textarea.addEventListener("focus",(()=>this._isFocused=!0)),this._textarea.addEventListener("blur",(()=>this._isFocused=!1))}get window(){return this._window}set window(S){this._window!==S&&(this._window=S,this._onWindowChange.fire(this._window))}get dpr(){return this.window.devicePixelRatio}get isFocused(){return this._cachedIsFocused===void 0&&(this._cachedIsFocused=this._isFocused&&this._textarea.ownerDocument.hasFocus(),queueMicrotask((()=>this._cachedIsFocused=void 0))),this._cachedIsFocused}}o.CoreBrowserService=C;class x extends v.Disposable{constructor(S){super(),this._parentWindow=S,this._windowResizeListener=this.register(new v.MutableDisposable),this._onDprChange=this.register(new _.EventEmitter),this.onDprChange=this._onDprChange.event,this._outerListener=()=>this._setDprAndFireIfDiffers(),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._updateDpr(),this._setWindowResizeListener(),this.register((0,v.toDisposable)((()=>this.clearListener())))}setWindow(S){this._parentWindow=S,this._setWindowResizeListener(),this._setDprAndFireIfDiffers()}_setWindowResizeListener(){this._windowResizeListener.value=(0,m.addDisposableDomListener)(this._parentWindow,"resize",(()=>this._setDprAndFireIfDiffers()))}_setDprAndFireIfDiffers(){this._parentWindow.devicePixelRatio!==this._currentDevicePixelRatio&&this._onDprChange.fire(this._parentWindow.devicePixelRatio),this._updateDpr()}_updateDpr(){var S;this._outerListener&&((S=this._resolutionMediaMatchList)==null||S.removeListener(this._outerListener),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._resolutionMediaMatchList=this._parentWindow.matchMedia(`screen and (resolution: ${this._parentWindow.devicePixelRatio}dppx)`),this._resolutionMediaMatchList.addListener(this._outerListener))}clearListener(){this._resolutionMediaMatchList&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._outerListener=void 0)}}},779:(d,o,c)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.LinkProviderService=void 0;const v=c(844);class _ extends v.Disposable{constructor(){super(),this.linkProviders=[],this.register((0,v.toDisposable)((()=>this.linkProviders.length=0)))}registerLinkProvider(C){return this.linkProviders.push(C),{dispose:()=>{const x=this.linkProviders.indexOf(C);x!==-1&&this.linkProviders.splice(x,1)}}}}o.LinkProviderService=_},8934:function(d,o,c){var v=this&&this.__decorate||function(w,S,g,f){var p,h=arguments.length,b=h<3?S:f===null?f=Object.getOwnPropertyDescriptor(S,g):f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(w,S,g,f);else for(var E=w.length-1;E>=0;E--)(p=w[E])&&(b=(h<3?p(b):h>3?p(S,g,b):p(S,g))||b);return h>3&&b&&Object.defineProperty(S,g,b),b},_=this&&this.__param||function(w,S){return function(g,f){S(g,f,w)}};Object.defineProperty(o,"__esModule",{value:!0}),o.MouseService=void 0;const m=c(4725),C=c(9806);let x=o.MouseService=class{constructor(w,S){this._renderService=w,this._charSizeService=S}getCoords(w,S,g,f,p){return(0,C.getCoords)(window,w,S,g,f,this._charSizeService.hasValidSize,this._renderService.dimensions.css.cell.width,this._renderService.dimensions.css.cell.height,p)}getMouseReportCoords(w,S){const g=(0,C.getCoordsRelativeToElement)(window,w,S);if(this._charSizeService.hasValidSize)return g[0]=Math.min(Math.max(g[0],0),this._renderService.dimensions.css.canvas.width-1),g[1]=Math.min(Math.max(g[1],0),this._renderService.dimensions.css.canvas.height-1),{col:Math.floor(g[0]/this._renderService.dimensions.css.cell.width),row:Math.floor(g[1]/this._renderService.dimensions.css.cell.height),x:Math.floor(g[0]),y:Math.floor(g[1])}}};o.MouseService=x=v([_(0,m.IRenderService),_(1,m.ICharSizeService)],x)},3230:function(d,o,c){var v=this&&this.__decorate||function(p,h,b,E){var P,L=arguments.length,R=L<3?h:E===null?E=Object.getOwnPropertyDescriptor(h,b):E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")R=Reflect.decorate(p,h,b,E);else for(var A=p.length-1;A>=0;A--)(P=p[A])&&(R=(L<3?P(R):L>3?P(h,b,R):P(h,b))||R);return L>3&&R&&Object.defineProperty(h,b,R),R},_=this&&this.__param||function(p,h){return function(b,E){h(b,E,p)}};Object.defineProperty(o,"__esModule",{value:!0}),o.RenderService=void 0;const m=c(6193),C=c(4725),x=c(8460),w=c(844),S=c(7226),g=c(2585);let f=o.RenderService=class extends w.Disposable{get dimensions(){return this._renderer.value.dimensions}constructor(p,h,b,E,P,L,R,A){super(),this._rowCount=p,this._charSizeService=E,this._renderer=this.register(new w.MutableDisposable),this._pausedResizeTask=new S.DebouncedIdleTask,this._observerDisposable=this.register(new w.MutableDisposable),this._isPaused=!1,this._needsFullRefresh=!1,this._isNextRenderRedrawOnly=!0,this._needsSelectionRefresh=!1,this._canvasWidth=0,this._canvasHeight=0,this._selectionState={start:void 0,end:void 0,columnSelectMode:!1},this._onDimensionsChange=this.register(new x.EventEmitter),this.onDimensionsChange=this._onDimensionsChange.event,this._onRenderedViewportChange=this.register(new x.EventEmitter),this.onRenderedViewportChange=this._onRenderedViewportChange.event,this._onRender=this.register(new x.EventEmitter),this.onRender=this._onRender.event,this._onRefreshRequest=this.register(new x.EventEmitter),this.onRefreshRequest=this._onRefreshRequest.event,this._renderDebouncer=new m.RenderDebouncer(((T,$)=>this._renderRows(T,$)),R),this.register(this._renderDebouncer),this.register(R.onDprChange((()=>this.handleDevicePixelRatioChange()))),this.register(L.onResize((()=>this._fullRefresh()))),this.register(L.buffers.onBufferActivate((()=>{var T;return(T=this._renderer.value)==null?void 0:T.clear()}))),this.register(b.onOptionChange((()=>this._handleOptionsChanged()))),this.register(this._charSizeService.onCharSizeChange((()=>this.handleCharSizeChanged()))),this.register(P.onDecorationRegistered((()=>this._fullRefresh()))),this.register(P.onDecorationRemoved((()=>this._fullRefresh()))),this.register(b.onMultipleOptionChange(["customGlyphs","drawBoldTextInBrightColors","letterSpacing","lineHeight","fontFamily","fontSize","fontWeight","fontWeightBold","minimumContrastRatio","rescaleOverlappingGlyphs"],(()=>{this.clear(),this.handleResize(L.cols,L.rows),this._fullRefresh()}))),this.register(b.onMultipleOptionChange(["cursorBlink","cursorStyle"],(()=>this.refreshRows(L.buffer.y,L.buffer.y,!0)))),this.register(A.onChangeColors((()=>this._fullRefresh()))),this._registerIntersectionObserver(R.window,h),this.register(R.onWindowChange((T=>this._registerIntersectionObserver(T,h))))}_registerIntersectionObserver(p,h){if("IntersectionObserver"in p){const b=new p.IntersectionObserver((E=>this._handleIntersectionChange(E[E.length-1])),{threshold:0});b.observe(h),this._observerDisposable.value=(0,w.toDisposable)((()=>b.disconnect()))}}_handleIntersectionChange(p){this._isPaused=p.isIntersecting===void 0?p.intersectionRatio===0:!p.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this._pausedResizeTask.flush(),this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)}refreshRows(p,h,b=!1){this._isPaused?this._needsFullRefresh=!0:(b||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(p,h,this._rowCount))}_renderRows(p,h){this._renderer.value&&(p=Math.min(p,this._rowCount-1),h=Math.min(h,this._rowCount-1),this._renderer.value.renderRows(p,h),this._needsSelectionRefresh&&(this._renderer.value.handleSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:p,end:h}),this._onRender.fire({start:p,end:h}),this._isNextRenderRedrawOnly=!0)}resize(p,h){this._rowCount=h,this._fireOnCanvasResize()}_handleOptionsChanged(){this._renderer.value&&(this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize())}_fireOnCanvasResize(){this._renderer.value&&(this._renderer.value.dimensions.css.canvas.width===this._canvasWidth&&this._renderer.value.dimensions.css.canvas.height===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.value.dimensions))}hasRenderer(){return!!this._renderer.value}setRenderer(p){this._renderer.value=p,this._renderer.value&&(this._renderer.value.onRequestRedraw((h=>this.refreshRows(h.start,h.end,!0))),this._needsSelectionRefresh=!0,this._fullRefresh())}addRefreshCallback(p){return this._renderDebouncer.addRefreshCallback(p)}_fullRefresh(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)}clearTextureAtlas(){var p,h;this._renderer.value&&((h=(p=this._renderer.value).clearTextureAtlas)==null||h.call(p),this._fullRefresh())}handleDevicePixelRatioChange(){this._charSizeService.measure(),this._renderer.value&&(this._renderer.value.handleDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1))}handleResize(p,h){this._renderer.value&&(this._isPaused?this._pausedResizeTask.set((()=>{var b;return(b=this._renderer.value)==null?void 0:b.handleResize(p,h)})):this._renderer.value.handleResize(p,h),this._fullRefresh())}handleCharSizeChanged(){var p;(p=this._renderer.value)==null||p.handleCharSizeChanged()}handleBlur(){var p;(p=this._renderer.value)==null||p.handleBlur()}handleFocus(){var p;(p=this._renderer.value)==null||p.handleFocus()}handleSelectionChanged(p,h,b){var E;this._selectionState.start=p,this._selectionState.end=h,this._selectionState.columnSelectMode=b,(E=this._renderer.value)==null||E.handleSelectionChanged(p,h,b)}handleCursorMove(){var p;(p=this._renderer.value)==null||p.handleCursorMove()}clear(){var p;(p=this._renderer.value)==null||p.clear()}};o.RenderService=f=v([_(2,g.IOptionsService),_(3,C.ICharSizeService),_(4,g.IDecorationService),_(5,g.IBufferService),_(6,C.ICoreBrowserService),_(7,C.IThemeService)],f)},9312:function(d,o,c){var v=this&&this.__decorate||function(R,A,T,$){var H,N=arguments.length,V=N<3?A:$===null?$=Object.getOwnPropertyDescriptor(A,T):$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")V=Reflect.decorate(R,A,T,$);else for(var K=R.length-1;K>=0;K--)(H=R[K])&&(V=(N<3?H(V):N>3?H(A,T,V):H(A,T))||V);return N>3&&V&&Object.defineProperty(A,T,V),V},_=this&&this.__param||function(R,A){return function(T,$){A(T,$,R)}};Object.defineProperty(o,"__esModule",{value:!0}),o.SelectionService=void 0;const m=c(9806),C=c(9504),x=c(456),w=c(4725),S=c(8460),g=c(844),f=c(6114),p=c(4841),h=c(511),b=c(2585),E=" ",P=new RegExp(E,"g");let L=o.SelectionService=class extends g.Disposable{constructor(R,A,T,$,H,N,V,K,G){super(),this._element=R,this._screenElement=A,this._linkifier=T,this._bufferService=$,this._coreService=H,this._mouseService=N,this._optionsService=V,this._renderService=K,this._coreBrowserService=G,this._dragScrollAmount=0,this._enabled=!0,this._workCell=new h.CellData,this._mouseDownTimeStamp=0,this._oldHasSelection=!1,this._oldSelectionStart=void 0,this._oldSelectionEnd=void 0,this._onLinuxMouseSelection=this.register(new S.EventEmitter),this.onLinuxMouseSelection=this._onLinuxMouseSelection.event,this._onRedrawRequest=this.register(new S.EventEmitter),this.onRequestRedraw=this._onRedrawRequest.event,this._onSelectionChange=this.register(new S.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onRequestScrollLines=this.register(new S.EventEmitter),this.onRequestScrollLines=this._onRequestScrollLines.event,this._mouseMoveListener=Z=>this._handleMouseMove(Z),this._mouseUpListener=Z=>this._handleMouseUp(Z),this._coreService.onUserInput((()=>{this.hasSelection&&this.clearSelection()})),this._trimListener=this._bufferService.buffer.lines.onTrim((Z=>this._handleTrim(Z))),this.register(this._bufferService.buffers.onBufferActivate((Z=>this._handleBufferActivate(Z)))),this.enable(),this._model=new x.SelectionModel(this._bufferService),this._activeSelectionMode=0,this.register((0,g.toDisposable)((()=>{this._removeMouseDownListeners()})))}reset(){this.clearSelection()}disable(){this.clearSelection(),this._enabled=!1}enable(){this._enabled=!0}get selectionStart(){return this._model.finalSelectionStart}get selectionEnd(){return this._model.finalSelectionEnd}get hasSelection(){const R=this._model.finalSelectionStart,A=this._model.finalSelectionEnd;return!(!R||!A||R[0]===A[0]&&R[1]===A[1])}get selectionText(){const R=this._model.finalSelectionStart,A=this._model.finalSelectionEnd;if(!R||!A)return"";const T=this._bufferService.buffer,$=[];if(this._activeSelectionMode===3){if(R[0]===A[0])return"";const H=R[0]<A[0]?R[0]:A[0],N=R[0]<A[0]?A[0]:R[0];for(let V=R[1];V<=A[1];V++){const K=T.translateBufferLineToString(V,!0,H,N);$.push(K)}}else{const H=R[1]===A[1]?A[0]:void 0;$.push(T.translateBufferLineToString(R[1],!0,R[0],H));for(let N=R[1]+1;N<=A[1]-1;N++){const V=T.lines.get(N),K=T.translateBufferLineToString(N,!0);V!=null&&V.isWrapped?$[$.length-1]+=K:$.push(K)}if(R[1]!==A[1]){const N=T.lines.get(A[1]),V=T.translateBufferLineToString(A[1],!0,0,A[0]);N&&N.isWrapped?$[$.length-1]+=V:$.push(V)}}return $.map((H=>H.replace(P," "))).join(f.isWindows?`\r
|
|
288
|
+
`:`
|
|
289
|
+
`)}clearSelection(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}refresh(R){this._refreshAnimationFrame||(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>this._refresh()))),f.isLinux&&R&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)}_refresh(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})}_isClickInSelection(R){const A=this._getMouseBufferCoords(R),T=this._model.finalSelectionStart,$=this._model.finalSelectionEnd;return!!(T&&$&&A)&&this._areCoordsInSelection(A,T,$)}isCellInSelection(R,A){const T=this._model.finalSelectionStart,$=this._model.finalSelectionEnd;return!(!T||!$)&&this._areCoordsInSelection([R,A],T,$)}_areCoordsInSelection(R,A,T){return R[1]>A[1]&&R[1]<T[1]||A[1]===T[1]&&R[1]===A[1]&&R[0]>=A[0]&&R[0]<T[0]||A[1]<T[1]&&R[1]===T[1]&&R[0]<T[0]||A[1]<T[1]&&R[1]===A[1]&&R[0]>=A[0]}_selectWordAtCursor(R,A){var H,N;const T=(N=(H=this._linkifier.currentLink)==null?void 0:H.link)==null?void 0:N.range;if(T)return this._model.selectionStart=[T.start.x-1,T.start.y-1],this._model.selectionStartLength=(0,p.getRangeLength)(T,this._bufferService.cols),this._model.selectionEnd=void 0,!0;const $=this._getMouseBufferCoords(R);return!!$&&(this._selectWordAt($,A),this._model.selectionEnd=void 0,!0)}selectAll(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}selectLines(R,A){this._model.clearSelection(),R=Math.max(R,0),A=Math.min(A,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,R],this._model.selectionEnd=[this._bufferService.cols,A],this.refresh(),this._onSelectionChange.fire()}_handleTrim(R){this._model.handleTrim(R)&&this.refresh()}_getMouseBufferCoords(R){const A=this._mouseService.getCoords(R,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(A)return A[0]--,A[1]--,A[1]+=this._bufferService.buffer.ydisp,A}_getMouseEventScrollAmount(R){let A=(0,m.getCoordsRelativeToElement)(this._coreBrowserService.window,R,this._screenElement)[1];const T=this._renderService.dimensions.css.canvas.height;return A>=0&&A<=T?0:(A>T&&(A-=T),A=Math.min(Math.max(A,-50),50),A/=50,A/Math.abs(A)+Math.round(14*A))}shouldForceSelection(R){return f.isMac?R.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:R.shiftKey}handleMouseDown(R){if(this._mouseDownTimeStamp=R.timeStamp,(R.button!==2||!this.hasSelection)&&R.button===0){if(!this._enabled){if(!this.shouldForceSelection(R))return;R.stopPropagation()}R.preventDefault(),this._dragScrollAmount=0,this._enabled&&R.shiftKey?this._handleIncrementalClick(R):R.detail===1?this._handleSingleClick(R):R.detail===2?this._handleDoubleClick(R):R.detail===3&&this._handleTripleClick(R),this._addMouseDownListeners(),this.refresh(!0)}}_addMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=this._coreBrowserService.window.setInterval((()=>this._dragScroll()),50)}_removeMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),this._coreBrowserService.window.clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0}_handleIncrementalClick(R){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(R))}_handleSingleClick(R){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(R)?3:0,this._model.selectionStart=this._getMouseBufferCoords(R),!this._model.selectionStart)return;this._model.selectionEnd=void 0;const A=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);A&&A.length!==this._model.selectionStart[0]&&A.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}_handleDoubleClick(R){this._selectWordAtCursor(R,!0)&&(this._activeSelectionMode=1)}_handleTripleClick(R){const A=this._getMouseBufferCoords(R);A&&(this._activeSelectionMode=2,this._selectLineAt(A[1]))}shouldColumnSelect(R){return R.altKey&&!(f.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)}_handleMouseMove(R){if(R.stopImmediatePropagation(),!this._model.selectionStart)return;const A=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(R),!this._model.selectionEnd)return void this.refresh(!0);this._activeSelectionMode===2?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:this._activeSelectionMode===1&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(R),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));const T=this._bufferService.buffer;if(this._model.selectionEnd[1]<T.lines.length){const $=T.lines.get(this._model.selectionEnd[1]);$&&$.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]<this._bufferService.cols&&this._model.selectionEnd[0]++}A&&A[0]===this._model.selectionEnd[0]&&A[1]===this._model.selectionEnd[1]||this.refresh(!0)}_dragScroll(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});const R=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(R.ydisp+this._bufferService.rows,R.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=R.ydisp),this.refresh()}}_handleMouseUp(R){const A=R.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&A<500&&R.altKey&&this._optionsService.rawOptions.altClickMovesCursor){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){const T=this._mouseService.getCoords(R,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(T&&T[0]!==void 0&&T[1]!==void 0){const $=(0,C.moveToCellSequence)(T[0]-1,T[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent($,!0)}}}else this._fireEventIfSelectionChanged()}_fireEventIfSelectionChanged(){const R=this._model.finalSelectionStart,A=this._model.finalSelectionEnd,T=!(!R||!A||R[0]===A[0]&&R[1]===A[1]);T?R&&A&&(this._oldSelectionStart&&this._oldSelectionEnd&&R[0]===this._oldSelectionStart[0]&&R[1]===this._oldSelectionStart[1]&&A[0]===this._oldSelectionEnd[0]&&A[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(R,A,T)):this._oldHasSelection&&this._fireOnSelectionChange(R,A,T)}_fireOnSelectionChange(R,A,T){this._oldSelectionStart=R,this._oldSelectionEnd=A,this._oldHasSelection=T,this._onSelectionChange.fire()}_handleBufferActivate(R){this.clearSelection(),this._trimListener.dispose(),this._trimListener=R.activeBuffer.lines.onTrim((A=>this._handleTrim(A)))}_convertViewportColToCharacterIndex(R,A){let T=A;for(let $=0;A>=$;$++){const H=R.loadCell($,this._workCell).getChars().length;this._workCell.getWidth()===0?T--:H>1&&A!==$&&(T+=H-1)}return T}setSelection(R,A,T){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[R,A],this._model.selectionStartLength=T,this.refresh(),this._fireEventIfSelectionChanged()}rightClickSelect(R){this._isClickInSelection(R)||(this._selectWordAtCursor(R,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())}_getWordAt(R,A,T=!0,$=!0){if(R[0]>=this._bufferService.cols)return;const H=this._bufferService.buffer,N=H.lines.get(R[1]);if(!N)return;const V=H.translateBufferLineToString(R[1],!1);let K=this._convertViewportColToCharacterIndex(N,R[0]),G=K;const Z=R[0]-K;let X=0,M=0,z=0,B=0;if(V.charAt(K)===" "){for(;K>0&&V.charAt(K-1)===" ";)K--;for(;G<V.length&&V.charAt(G+1)===" ";)G++}else{let re=R[0],oe=R[0];N.getWidth(re)===0&&(X++,re--),N.getWidth(oe)===2&&(M++,oe++);const se=N.getString(oe).length;for(se>1&&(B+=se-1,G+=se-1);re>0&&K>0&&!this._isCharWordSeparator(N.loadCell(re-1,this._workCell));){N.loadCell(re-1,this._workCell);const U=this._workCell.getChars().length;this._workCell.getWidth()===0?(X++,re--):U>1&&(z+=U-1,K-=U-1),K--,re--}for(;oe<N.length&&G+1<V.length&&!this._isCharWordSeparator(N.loadCell(oe+1,this._workCell));){N.loadCell(oe+1,this._workCell);const U=this._workCell.getChars().length;this._workCell.getWidth()===2?(M++,oe++):U>1&&(B+=U-1,G+=U-1),G++,oe++}}G++;let W=K+Z-X+z,ee=Math.min(this._bufferService.cols,G-K+X+M-z-B);if(A||V.slice(K,G).trim()!==""){if(T&&W===0&&N.getCodePoint(0)!==32){const re=H.lines.get(R[1]-1);if(re&&N.isWrapped&&re.getCodePoint(this._bufferService.cols-1)!==32){const oe=this._getWordAt([this._bufferService.cols-1,R[1]-1],!1,!0,!1);if(oe){const se=this._bufferService.cols-oe.start;W-=se,ee+=se}}}if($&&W+ee===this._bufferService.cols&&N.getCodePoint(this._bufferService.cols-1)!==32){const re=H.lines.get(R[1]+1);if(re!=null&&re.isWrapped&&re.getCodePoint(0)!==32){const oe=this._getWordAt([0,R[1]+1],!1,!1,!0);oe&&(ee+=oe.length)}}return{start:W,length:ee}}}_selectWordAt(R,A){const T=this._getWordAt(R,A);if(T){for(;T.start<0;)T.start+=this._bufferService.cols,R[1]--;this._model.selectionStart=[T.start,R[1]],this._model.selectionStartLength=T.length}}_selectToWordAt(R){const A=this._getWordAt(R,!0);if(A){let T=R[1];for(;A.start<0;)A.start+=this._bufferService.cols,T--;if(!this._model.areSelectionValuesReversed())for(;A.start+A.length>this._bufferService.cols;)A.length-=this._bufferService.cols,T++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?A.start:A.start+A.length,T]}}_isCharWordSeparator(R){return R.getWidth()!==0&&this._optionsService.rawOptions.wordSeparator.indexOf(R.getChars())>=0}_selectLineAt(R){const A=this._bufferService.buffer.getWrappedRangeForLine(R),T={start:{x:0,y:A.first},end:{x:this._bufferService.cols-1,y:A.last}};this._model.selectionStart=[0,A.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,p.getRangeLength)(T,this._bufferService.cols)}};o.SelectionService=L=v([_(3,b.IBufferService),_(4,b.ICoreService),_(5,w.IMouseService),_(6,b.IOptionsService),_(7,w.IRenderService),_(8,w.ICoreBrowserService)],L)},4725:(d,o,c)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.ILinkProviderService=o.IThemeService=o.ICharacterJoinerService=o.ISelectionService=o.IRenderService=o.IMouseService=o.ICoreBrowserService=o.ICharSizeService=void 0;const v=c(8343);o.ICharSizeService=(0,v.createDecorator)("CharSizeService"),o.ICoreBrowserService=(0,v.createDecorator)("CoreBrowserService"),o.IMouseService=(0,v.createDecorator)("MouseService"),o.IRenderService=(0,v.createDecorator)("RenderService"),o.ISelectionService=(0,v.createDecorator)("SelectionService"),o.ICharacterJoinerService=(0,v.createDecorator)("CharacterJoinerService"),o.IThemeService=(0,v.createDecorator)("ThemeService"),o.ILinkProviderService=(0,v.createDecorator)("LinkProviderService")},6731:function(d,o,c){var v=this&&this.__decorate||function(L,R,A,T){var $,H=arguments.length,N=H<3?R:T===null?T=Object.getOwnPropertyDescriptor(R,A):T;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(L,R,A,T);else for(var V=L.length-1;V>=0;V--)($=L[V])&&(N=(H<3?$(N):H>3?$(R,A,N):$(R,A))||N);return H>3&&N&&Object.defineProperty(R,A,N),N},_=this&&this.__param||function(L,R){return function(A,T){R(A,T,L)}};Object.defineProperty(o,"__esModule",{value:!0}),o.ThemeService=o.DEFAULT_ANSI_COLORS=void 0;const m=c(7239),C=c(8055),x=c(8460),w=c(844),S=c(2585),g=C.css.toColor("#ffffff"),f=C.css.toColor("#000000"),p=C.css.toColor("#ffffff"),h=C.css.toColor("#000000"),b={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};o.DEFAULT_ANSI_COLORS=Object.freeze((()=>{const L=[C.css.toColor("#2e3436"),C.css.toColor("#cc0000"),C.css.toColor("#4e9a06"),C.css.toColor("#c4a000"),C.css.toColor("#3465a4"),C.css.toColor("#75507b"),C.css.toColor("#06989a"),C.css.toColor("#d3d7cf"),C.css.toColor("#555753"),C.css.toColor("#ef2929"),C.css.toColor("#8ae234"),C.css.toColor("#fce94f"),C.css.toColor("#729fcf"),C.css.toColor("#ad7fa8"),C.css.toColor("#34e2e2"),C.css.toColor("#eeeeec")],R=[0,95,135,175,215,255];for(let A=0;A<216;A++){const T=R[A/36%6|0],$=R[A/6%6|0],H=R[A%6];L.push({css:C.channels.toCss(T,$,H),rgba:C.channels.toRgba(T,$,H)})}for(let A=0;A<24;A++){const T=8+10*A;L.push({css:C.channels.toCss(T,T,T),rgba:C.channels.toRgba(T,T,T)})}return L})());let E=o.ThemeService=class extends w.Disposable{get colors(){return this._colors}constructor(L){super(),this._optionsService=L,this._contrastCache=new m.ColorContrastCache,this._halfContrastCache=new m.ColorContrastCache,this._onChangeColors=this.register(new x.EventEmitter),this.onChangeColors=this._onChangeColors.event,this._colors={foreground:g,background:f,cursor:p,cursorAccent:h,selectionForeground:void 0,selectionBackgroundTransparent:b,selectionBackgroundOpaque:C.color.blend(f,b),selectionInactiveBackgroundTransparent:b,selectionInactiveBackgroundOpaque:C.color.blend(f,b),ansi:o.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache,halfContrastCache:this._halfContrastCache},this._updateRestoreColors(),this._setTheme(this._optionsService.rawOptions.theme),this.register(this._optionsService.onSpecificOptionChange("minimumContrastRatio",(()=>this._contrastCache.clear()))),this.register(this._optionsService.onSpecificOptionChange("theme",(()=>this._setTheme(this._optionsService.rawOptions.theme))))}_setTheme(L={}){const R=this._colors;if(R.foreground=P(L.foreground,g),R.background=P(L.background,f),R.cursor=P(L.cursor,p),R.cursorAccent=P(L.cursorAccent,h),R.selectionBackgroundTransparent=P(L.selectionBackground,b),R.selectionBackgroundOpaque=C.color.blend(R.background,R.selectionBackgroundTransparent),R.selectionInactiveBackgroundTransparent=P(L.selectionInactiveBackground,R.selectionBackgroundTransparent),R.selectionInactiveBackgroundOpaque=C.color.blend(R.background,R.selectionInactiveBackgroundTransparent),R.selectionForeground=L.selectionForeground?P(L.selectionForeground,C.NULL_COLOR):void 0,R.selectionForeground===C.NULL_COLOR&&(R.selectionForeground=void 0),C.color.isOpaque(R.selectionBackgroundTransparent)&&(R.selectionBackgroundTransparent=C.color.opacity(R.selectionBackgroundTransparent,.3)),C.color.isOpaque(R.selectionInactiveBackgroundTransparent)&&(R.selectionInactiveBackgroundTransparent=C.color.opacity(R.selectionInactiveBackgroundTransparent,.3)),R.ansi=o.DEFAULT_ANSI_COLORS.slice(),R.ansi[0]=P(L.black,o.DEFAULT_ANSI_COLORS[0]),R.ansi[1]=P(L.red,o.DEFAULT_ANSI_COLORS[1]),R.ansi[2]=P(L.green,o.DEFAULT_ANSI_COLORS[2]),R.ansi[3]=P(L.yellow,o.DEFAULT_ANSI_COLORS[3]),R.ansi[4]=P(L.blue,o.DEFAULT_ANSI_COLORS[4]),R.ansi[5]=P(L.magenta,o.DEFAULT_ANSI_COLORS[5]),R.ansi[6]=P(L.cyan,o.DEFAULT_ANSI_COLORS[6]),R.ansi[7]=P(L.white,o.DEFAULT_ANSI_COLORS[7]),R.ansi[8]=P(L.brightBlack,o.DEFAULT_ANSI_COLORS[8]),R.ansi[9]=P(L.brightRed,o.DEFAULT_ANSI_COLORS[9]),R.ansi[10]=P(L.brightGreen,o.DEFAULT_ANSI_COLORS[10]),R.ansi[11]=P(L.brightYellow,o.DEFAULT_ANSI_COLORS[11]),R.ansi[12]=P(L.brightBlue,o.DEFAULT_ANSI_COLORS[12]),R.ansi[13]=P(L.brightMagenta,o.DEFAULT_ANSI_COLORS[13]),R.ansi[14]=P(L.brightCyan,o.DEFAULT_ANSI_COLORS[14]),R.ansi[15]=P(L.brightWhite,o.DEFAULT_ANSI_COLORS[15]),L.extendedAnsi){const A=Math.min(R.ansi.length-16,L.extendedAnsi.length);for(let T=0;T<A;T++)R.ansi[T+16]=P(L.extendedAnsi[T],o.DEFAULT_ANSI_COLORS[T+16])}this._contrastCache.clear(),this._halfContrastCache.clear(),this._updateRestoreColors(),this._onChangeColors.fire(this.colors)}restoreColor(L){this._restoreColor(L),this._onChangeColors.fire(this.colors)}_restoreColor(L){if(L!==void 0)switch(L){case 256:this._colors.foreground=this._restoreColors.foreground;break;case 257:this._colors.background=this._restoreColors.background;break;case 258:this._colors.cursor=this._restoreColors.cursor;break;default:this._colors.ansi[L]=this._restoreColors.ansi[L]}else for(let R=0;R<this._restoreColors.ansi.length;++R)this._colors.ansi[R]=this._restoreColors.ansi[R]}modifyColors(L){L(this._colors),this._onChangeColors.fire(this.colors)}_updateRestoreColors(){this._restoreColors={foreground:this._colors.foreground,background:this._colors.background,cursor:this._colors.cursor,ansi:this._colors.ansi.slice()}}};function P(L,R){if(L!==void 0)try{return C.css.toColor(L)}catch{}return R}o.ThemeService=E=v([_(0,S.IOptionsService)],E)},6349:(d,o,c)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.CircularList=void 0;const v=c(8460),_=c(844);class m extends _.Disposable{constructor(x){super(),this._maxLength=x,this.onDeleteEmitter=this.register(new v.EventEmitter),this.onDelete=this.onDeleteEmitter.event,this.onInsertEmitter=this.register(new v.EventEmitter),this.onInsert=this.onInsertEmitter.event,this.onTrimEmitter=this.register(new v.EventEmitter),this.onTrim=this.onTrimEmitter.event,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}get maxLength(){return this._maxLength}set maxLength(x){if(this._maxLength===x)return;const w=new Array(x);for(let S=0;S<Math.min(x,this.length);S++)w[S]=this._array[this._getCyclicIndex(S)];this._array=w,this._maxLength=x,this._startIndex=0}get length(){return this._length}set length(x){if(x>this._length)for(let w=this._length;w<x;w++)this._array[w]=void 0;this._length=x}get(x){return this._array[this._getCyclicIndex(x)]}set(x,w){this._array[this._getCyclicIndex(x)]=w}push(x){this._array[this._getCyclicIndex(this._length)]=x,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++}recycle(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]}get isFull(){return this._length===this._maxLength}pop(){return this._array[this._getCyclicIndex(this._length---1)]}splice(x,w,...S){if(w){for(let g=x;g<this._length-w;g++)this._array[this._getCyclicIndex(g)]=this._array[this._getCyclicIndex(g+w)];this._length-=w,this.onDeleteEmitter.fire({index:x,amount:w})}for(let g=this._length-1;g>=x;g--)this._array[this._getCyclicIndex(g+S.length)]=this._array[this._getCyclicIndex(g)];for(let g=0;g<S.length;g++)this._array[this._getCyclicIndex(x+g)]=S[g];if(S.length&&this.onInsertEmitter.fire({index:x,amount:S.length}),this._length+S.length>this._maxLength){const g=this._length+S.length-this._maxLength;this._startIndex+=g,this._length=this._maxLength,this.onTrimEmitter.fire(g)}else this._length+=S.length}trimStart(x){x>this._length&&(x=this._length),this._startIndex+=x,this._length-=x,this.onTrimEmitter.fire(x)}shiftElements(x,w,S){if(!(w<=0)){if(x<0||x>=this._length)throw new Error("start argument out of range");if(x+S<0)throw new Error("Cannot shift elements in list beyond index 0");if(S>0){for(let f=w-1;f>=0;f--)this.set(x+f+S,this.get(x+f));const g=x+w+S-this._length;if(g>0)for(this._length+=g;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(let g=0;g<w;g++)this.set(x+g+S,this.get(x+g))}}_getCyclicIndex(x){return(this._startIndex+x)%this._maxLength}}o.CircularList=m},1439:(d,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.clone=void 0,o.clone=function c(v,_=5){if(typeof v!="object")return v;const m=Array.isArray(v)?[]:{};for(const C in v)m[C]=_<=1?v[C]:v[C]&&c(v[C],_-1);return m}},8055:(d,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.contrastRatio=o.toPaddedHex=o.rgba=o.rgb=o.css=o.color=o.channels=o.NULL_COLOR=void 0;let c=0,v=0,_=0,m=0;var C,x,w,S,g;function f(h){const b=h.toString(16);return b.length<2?"0"+b:b}function p(h,b){return h<b?(b+.05)/(h+.05):(h+.05)/(b+.05)}o.NULL_COLOR={css:"#00000000",rgba:0},(function(h){h.toCss=function(b,E,P,L){return L!==void 0?`#${f(b)}${f(E)}${f(P)}${f(L)}`:`#${f(b)}${f(E)}${f(P)}`},h.toRgba=function(b,E,P,L=255){return(b<<24|E<<16|P<<8|L)>>>0},h.toColor=function(b,E,P,L){return{css:h.toCss(b,E,P,L),rgba:h.toRgba(b,E,P,L)}}})(C||(o.channels=C={})),(function(h){function b(E,P){return m=Math.round(255*P),[c,v,_]=g.toChannels(E.rgba),{css:C.toCss(c,v,_,m),rgba:C.toRgba(c,v,_,m)}}h.blend=function(E,P){if(m=(255&P.rgba)/255,m===1)return{css:P.css,rgba:P.rgba};const L=P.rgba>>24&255,R=P.rgba>>16&255,A=P.rgba>>8&255,T=E.rgba>>24&255,$=E.rgba>>16&255,H=E.rgba>>8&255;return c=T+Math.round((L-T)*m),v=$+Math.round((R-$)*m),_=H+Math.round((A-H)*m),{css:C.toCss(c,v,_),rgba:C.toRgba(c,v,_)}},h.isOpaque=function(E){return(255&E.rgba)==255},h.ensureContrastRatio=function(E,P,L){const R=g.ensureContrastRatio(E.rgba,P.rgba,L);if(R)return C.toColor(R>>24&255,R>>16&255,R>>8&255)},h.opaque=function(E){const P=(255|E.rgba)>>>0;return[c,v,_]=g.toChannels(P),{css:C.toCss(c,v,_),rgba:P}},h.opacity=b,h.multiplyOpacity=function(E,P){return m=255&E.rgba,b(E,m*P/255)},h.toColorRGB=function(E){return[E.rgba>>24&255,E.rgba>>16&255,E.rgba>>8&255]}})(x||(o.color=x={})),(function(h){let b,E;try{const P=document.createElement("canvas");P.width=1,P.height=1;const L=P.getContext("2d",{willReadFrequently:!0});L&&(b=L,b.globalCompositeOperation="copy",E=b.createLinearGradient(0,0,1,1))}catch{}h.toColor=function(P){if(P.match(/#[\da-f]{3,8}/i))switch(P.length){case 4:return c=parseInt(P.slice(1,2).repeat(2),16),v=parseInt(P.slice(2,3).repeat(2),16),_=parseInt(P.slice(3,4).repeat(2),16),C.toColor(c,v,_);case 5:return c=parseInt(P.slice(1,2).repeat(2),16),v=parseInt(P.slice(2,3).repeat(2),16),_=parseInt(P.slice(3,4).repeat(2),16),m=parseInt(P.slice(4,5).repeat(2),16),C.toColor(c,v,_,m);case 7:return{css:P,rgba:(parseInt(P.slice(1),16)<<8|255)>>>0};case 9:return{css:P,rgba:parseInt(P.slice(1),16)>>>0}}const L=P.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(L)return c=parseInt(L[1]),v=parseInt(L[2]),_=parseInt(L[3]),m=Math.round(255*(L[5]===void 0?1:parseFloat(L[5]))),C.toColor(c,v,_,m);if(!b||!E)throw new Error("css.toColor: Unsupported css format");if(b.fillStyle=E,b.fillStyle=P,typeof b.fillStyle!="string")throw new Error("css.toColor: Unsupported css format");if(b.fillRect(0,0,1,1),[c,v,_,m]=b.getImageData(0,0,1,1).data,m!==255)throw new Error("css.toColor: Unsupported css format");return{rgba:C.toRgba(c,v,_,m),css:P}}})(w||(o.css=w={})),(function(h){function b(E,P,L){const R=E/255,A=P/255,T=L/255;return .2126*(R<=.03928?R/12.92:Math.pow((R+.055)/1.055,2.4))+.7152*(A<=.03928?A/12.92:Math.pow((A+.055)/1.055,2.4))+.0722*(T<=.03928?T/12.92:Math.pow((T+.055)/1.055,2.4))}h.relativeLuminance=function(E){return b(E>>16&255,E>>8&255,255&E)},h.relativeLuminance2=b})(S||(o.rgb=S={})),(function(h){function b(P,L,R){const A=P>>24&255,T=P>>16&255,$=P>>8&255;let H=L>>24&255,N=L>>16&255,V=L>>8&255,K=p(S.relativeLuminance2(H,N,V),S.relativeLuminance2(A,T,$));for(;K<R&&(H>0||N>0||V>0);)H-=Math.max(0,Math.ceil(.1*H)),N-=Math.max(0,Math.ceil(.1*N)),V-=Math.max(0,Math.ceil(.1*V)),K=p(S.relativeLuminance2(H,N,V),S.relativeLuminance2(A,T,$));return(H<<24|N<<16|V<<8|255)>>>0}function E(P,L,R){const A=P>>24&255,T=P>>16&255,$=P>>8&255;let H=L>>24&255,N=L>>16&255,V=L>>8&255,K=p(S.relativeLuminance2(H,N,V),S.relativeLuminance2(A,T,$));for(;K<R&&(H<255||N<255||V<255);)H=Math.min(255,H+Math.ceil(.1*(255-H))),N=Math.min(255,N+Math.ceil(.1*(255-N))),V=Math.min(255,V+Math.ceil(.1*(255-V))),K=p(S.relativeLuminance2(H,N,V),S.relativeLuminance2(A,T,$));return(H<<24|N<<16|V<<8|255)>>>0}h.blend=function(P,L){if(m=(255&L)/255,m===1)return L;const R=L>>24&255,A=L>>16&255,T=L>>8&255,$=P>>24&255,H=P>>16&255,N=P>>8&255;return c=$+Math.round((R-$)*m),v=H+Math.round((A-H)*m),_=N+Math.round((T-N)*m),C.toRgba(c,v,_)},h.ensureContrastRatio=function(P,L,R){const A=S.relativeLuminance(P>>8),T=S.relativeLuminance(L>>8);if(p(A,T)<R){if(T<A){const N=b(P,L,R),V=p(A,S.relativeLuminance(N>>8));if(V<R){const K=E(P,L,R);return V>p(A,S.relativeLuminance(K>>8))?N:K}return N}const $=E(P,L,R),H=p(A,S.relativeLuminance($>>8));if(H<R){const N=b(P,L,R);return H>p(A,S.relativeLuminance(N>>8))?$:N}return $}},h.reduceLuminance=b,h.increaseLuminance=E,h.toChannels=function(P){return[P>>24&255,P>>16&255,P>>8&255,255&P]}})(g||(o.rgba=g={})),o.toPaddedHex=f,o.contrastRatio=p},8969:(d,o,c)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.CoreTerminal=void 0;const v=c(844),_=c(2585),m=c(4348),C=c(7866),x=c(744),w=c(7302),S=c(6975),g=c(8460),f=c(1753),p=c(1480),h=c(7994),b=c(9282),E=c(5435),P=c(5981),L=c(2660);let R=!1;class A extends v.Disposable{get onScroll(){return this._onScrollApi||(this._onScrollApi=this.register(new g.EventEmitter),this._onScroll.event(($=>{var H;(H=this._onScrollApi)==null||H.fire($.position)}))),this._onScrollApi.event}get cols(){return this._bufferService.cols}get rows(){return this._bufferService.rows}get buffers(){return this._bufferService.buffers}get options(){return this.optionsService.options}set options($){for(const H in $)this.optionsService.options[H]=$[H]}constructor($){super(),this._windowsWrappingHeuristics=this.register(new v.MutableDisposable),this._onBinary=this.register(new g.EventEmitter),this.onBinary=this._onBinary.event,this._onData=this.register(new g.EventEmitter),this.onData=this._onData.event,this._onLineFeed=this.register(new g.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onResize=this.register(new g.EventEmitter),this.onResize=this._onResize.event,this._onWriteParsed=this.register(new g.EventEmitter),this.onWriteParsed=this._onWriteParsed.event,this._onScroll=this.register(new g.EventEmitter),this._instantiationService=new m.InstantiationService,this.optionsService=this.register(new w.OptionsService($)),this._instantiationService.setService(_.IOptionsService,this.optionsService),this._bufferService=this.register(this._instantiationService.createInstance(x.BufferService)),this._instantiationService.setService(_.IBufferService,this._bufferService),this._logService=this.register(this._instantiationService.createInstance(C.LogService)),this._instantiationService.setService(_.ILogService,this._logService),this.coreService=this.register(this._instantiationService.createInstance(S.CoreService)),this._instantiationService.setService(_.ICoreService,this.coreService),this.coreMouseService=this.register(this._instantiationService.createInstance(f.CoreMouseService)),this._instantiationService.setService(_.ICoreMouseService,this.coreMouseService),this.unicodeService=this.register(this._instantiationService.createInstance(p.UnicodeService)),this._instantiationService.setService(_.IUnicodeService,this.unicodeService),this._charsetService=this._instantiationService.createInstance(h.CharsetService),this._instantiationService.setService(_.ICharsetService,this._charsetService),this._oscLinkService=this._instantiationService.createInstance(L.OscLinkService),this._instantiationService.setService(_.IOscLinkService,this._oscLinkService),this._inputHandler=this.register(new E.InputHandler(this._bufferService,this._charsetService,this.coreService,this._logService,this.optionsService,this._oscLinkService,this.coreMouseService,this.unicodeService)),this.register((0,g.forwardEvent)(this._inputHandler.onLineFeed,this._onLineFeed)),this.register(this._inputHandler),this.register((0,g.forwardEvent)(this._bufferService.onResize,this._onResize)),this.register((0,g.forwardEvent)(this.coreService.onData,this._onData)),this.register((0,g.forwardEvent)(this.coreService.onBinary,this._onBinary)),this.register(this.coreService.onRequestScrollToBottom((()=>this.scrollToBottom()))),this.register(this.coreService.onUserInput((()=>this._writeBuffer.handleUserInput()))),this.register(this.optionsService.onMultipleOptionChange(["windowsMode","windowsPty"],(()=>this._handleWindowsPtyOptionChange()))),this.register(this._bufferService.onScroll((H=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)}))),this.register(this._inputHandler.onScroll((H=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)}))),this._writeBuffer=this.register(new P.WriteBuffer(((H,N)=>this._inputHandler.parse(H,N)))),this.register((0,g.forwardEvent)(this._writeBuffer.onWriteParsed,this._onWriteParsed))}write($,H){this._writeBuffer.write($,H)}writeSync($,H){this._logService.logLevel<=_.LogLevelEnum.WARN&&!R&&(this._logService.warn("writeSync is unreliable and will be removed soon."),R=!0),this._writeBuffer.writeSync($,H)}input($,H=!0){this.coreService.triggerDataEvent($,H)}resize($,H){isNaN($)||isNaN(H)||($=Math.max($,x.MINIMUM_COLS),H=Math.max(H,x.MINIMUM_ROWS),this._bufferService.resize($,H))}scroll($,H=!1){this._bufferService.scroll($,H)}scrollLines($,H,N){this._bufferService.scrollLines($,H,N)}scrollPages($){this.scrollLines($*(this.rows-1))}scrollToTop(){this.scrollLines(-this._bufferService.buffer.ydisp)}scrollToBottom(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)}scrollToLine($){const H=$-this._bufferService.buffer.ydisp;H!==0&&this.scrollLines(H)}registerEscHandler($,H){return this._inputHandler.registerEscHandler($,H)}registerDcsHandler($,H){return this._inputHandler.registerDcsHandler($,H)}registerCsiHandler($,H){return this._inputHandler.registerCsiHandler($,H)}registerOscHandler($,H){return this._inputHandler.registerOscHandler($,H)}_setup(){this._handleWindowsPtyOptionChange()}reset(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()}_handleWindowsPtyOptionChange(){let $=!1;const H=this.optionsService.rawOptions.windowsPty;H&&H.buildNumber!==void 0&&H.buildNumber!==void 0?$=H.backend==="conpty"&&H.buildNumber<21376:this.optionsService.rawOptions.windowsMode&&($=!0),$?this._enableWindowsWrappingHeuristics():this._windowsWrappingHeuristics.clear()}_enableWindowsWrappingHeuristics(){if(!this._windowsWrappingHeuristics.value){const $=[];$.push(this.onLineFeed(b.updateWindowsModeWrappedState.bind(null,this._bufferService))),$.push(this.registerCsiHandler({final:"H"},(()=>((0,b.updateWindowsModeWrappedState)(this._bufferService),!1)))),this._windowsWrappingHeuristics.value=(0,v.toDisposable)((()=>{for(const H of $)H.dispose()}))}}}o.CoreTerminal=A},8460:(d,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.runAndSubscribe=o.forwardEvent=o.EventEmitter=void 0,o.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=c=>(this._listeners.push(c),{dispose:()=>{if(!this._disposed){for(let v=0;v<this._listeners.length;v++)if(this._listeners[v]===c)return void this._listeners.splice(v,1)}}})),this._event}fire(c,v){const _=[];for(let m=0;m<this._listeners.length;m++)_.push(this._listeners[m]);for(let m=0;m<_.length;m++)_[m].call(void 0,c,v)}dispose(){this.clearListeners(),this._disposed=!0}clearListeners(){this._listeners&&(this._listeners.length=0)}},o.forwardEvent=function(c,v){return c((_=>v.fire(_)))},o.runAndSubscribe=function(c,v){return v(void 0),c((_=>v(_)))}},5435:function(d,o,c){var v=this&&this.__decorate||function(X,M,z,B){var W,ee=arguments.length,re=ee<3?M:B===null?B=Object.getOwnPropertyDescriptor(M,z):B;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")re=Reflect.decorate(X,M,z,B);else for(var oe=X.length-1;oe>=0;oe--)(W=X[oe])&&(re=(ee<3?W(re):ee>3?W(M,z,re):W(M,z))||re);return ee>3&&re&&Object.defineProperty(M,z,re),re},_=this&&this.__param||function(X,M){return function(z,B){M(z,B,X)}};Object.defineProperty(o,"__esModule",{value:!0}),o.InputHandler=o.WindowsOptionsReportType=void 0;const m=c(2584),C=c(7116),x=c(2015),w=c(844),S=c(482),g=c(8437),f=c(8460),p=c(643),h=c(511),b=c(3734),E=c(2585),P=c(1480),L=c(6242),R=c(6351),A=c(5941),T={"(":0,")":1,"*":2,"+":3,"-":1,".":2},$=131072;function H(X,M){if(X>24)return M.setWinLines||!1;switch(X){case 1:return!!M.restoreWin;case 2:return!!M.minimizeWin;case 3:return!!M.setWinPosition;case 4:return!!M.setWinSizePixels;case 5:return!!M.raiseWin;case 6:return!!M.lowerWin;case 7:return!!M.refreshWin;case 8:return!!M.setWinSizeChars;case 9:return!!M.maximizeWin;case 10:return!!M.fullscreenWin;case 11:return!!M.getWinState;case 13:return!!M.getWinPosition;case 14:return!!M.getWinSizePixels;case 15:return!!M.getScreenSizePixels;case 16:return!!M.getCellSizePixels;case 18:return!!M.getWinSizeChars;case 19:return!!M.getScreenSizeChars;case 20:return!!M.getIconTitle;case 21:return!!M.getWinTitle;case 22:return!!M.pushTitle;case 23:return!!M.popTitle;case 24:return!!M.setWinLines}return!1}var N;(function(X){X[X.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",X[X.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(N||(o.WindowsOptionsReportType=N={}));let V=0;class K extends w.Disposable{getAttrData(){return this._curAttrData}constructor(M,z,B,W,ee,re,oe,se,U=new x.EscapeSequenceParser){super(),this._bufferService=M,this._charsetService=z,this._coreService=B,this._logService=W,this._optionsService=ee,this._oscLinkService=re,this._coreMouseService=oe,this._unicodeService=se,this._parser=U,this._parseBuffer=new Uint32Array(4096),this._stringDecoder=new S.StringToUtf32,this._utf8Decoder=new S.Utf8ToUtf32,this._workCell=new h.CellData,this._windowTitle="",this._iconName="",this._windowTitleStack=[],this._iconNameStack=[],this._curAttrData=g.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=g.DEFAULT_ATTR_DATA.clone(),this._onRequestBell=this.register(new f.EventEmitter),this.onRequestBell=this._onRequestBell.event,this._onRequestRefreshRows=this.register(new f.EventEmitter),this.onRequestRefreshRows=this._onRequestRefreshRows.event,this._onRequestReset=this.register(new f.EventEmitter),this.onRequestReset=this._onRequestReset.event,this._onRequestSendFocus=this.register(new f.EventEmitter),this.onRequestSendFocus=this._onRequestSendFocus.event,this._onRequestSyncScrollBar=this.register(new f.EventEmitter),this.onRequestSyncScrollBar=this._onRequestSyncScrollBar.event,this._onRequestWindowsOptionsReport=this.register(new f.EventEmitter),this.onRequestWindowsOptionsReport=this._onRequestWindowsOptionsReport.event,this._onA11yChar=this.register(new f.EventEmitter),this.onA11yChar=this._onA11yChar.event,this._onA11yTab=this.register(new f.EventEmitter),this.onA11yTab=this._onA11yTab.event,this._onCursorMove=this.register(new f.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onLineFeed=this.register(new f.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onScroll=this.register(new f.EventEmitter),this.onScroll=this._onScroll.event,this._onTitleChange=this.register(new f.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onColor=this.register(new f.EventEmitter),this.onColor=this._onColor.event,this._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},this._specialColors=[256,257,258],this.register(this._parser),this._dirtyRowTracker=new G(this._bufferService),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate((j=>this._activeBuffer=j.activeBuffer))),this._parser.setCsiHandlerFallback(((j,ne)=>{this._logService.debug("Unknown CSI code: ",{identifier:this._parser.identToString(j),params:ne.toArray()})})),this._parser.setEscHandlerFallback((j=>{this._logService.debug("Unknown ESC code: ",{identifier:this._parser.identToString(j)})})),this._parser.setExecuteHandlerFallback((j=>{this._logService.debug("Unknown EXECUTE code: ",{code:j})})),this._parser.setOscHandlerFallback(((j,ne,Q)=>{this._logService.debug("Unknown OSC code: ",{identifier:j,action:ne,data:Q})})),this._parser.setDcsHandlerFallback(((j,ne,Q)=>{ne==="HOOK"&&(Q=Q.toArray()),this._logService.debug("Unknown DCS code: ",{identifier:this._parser.identToString(j),action:ne,payload:Q})})),this._parser.setPrintHandler(((j,ne,Q)=>this.print(j,ne,Q))),this._parser.registerCsiHandler({final:"@"},(j=>this.insertChars(j))),this._parser.registerCsiHandler({intermediates:" ",final:"@"},(j=>this.scrollLeft(j))),this._parser.registerCsiHandler({final:"A"},(j=>this.cursorUp(j))),this._parser.registerCsiHandler({intermediates:" ",final:"A"},(j=>this.scrollRight(j))),this._parser.registerCsiHandler({final:"B"},(j=>this.cursorDown(j))),this._parser.registerCsiHandler({final:"C"},(j=>this.cursorForward(j))),this._parser.registerCsiHandler({final:"D"},(j=>this.cursorBackward(j))),this._parser.registerCsiHandler({final:"E"},(j=>this.cursorNextLine(j))),this._parser.registerCsiHandler({final:"F"},(j=>this.cursorPrecedingLine(j))),this._parser.registerCsiHandler({final:"G"},(j=>this.cursorCharAbsolute(j))),this._parser.registerCsiHandler({final:"H"},(j=>this.cursorPosition(j))),this._parser.registerCsiHandler({final:"I"},(j=>this.cursorForwardTab(j))),this._parser.registerCsiHandler({final:"J"},(j=>this.eraseInDisplay(j,!1))),this._parser.registerCsiHandler({prefix:"?",final:"J"},(j=>this.eraseInDisplay(j,!0))),this._parser.registerCsiHandler({final:"K"},(j=>this.eraseInLine(j,!1))),this._parser.registerCsiHandler({prefix:"?",final:"K"},(j=>this.eraseInLine(j,!0))),this._parser.registerCsiHandler({final:"L"},(j=>this.insertLines(j))),this._parser.registerCsiHandler({final:"M"},(j=>this.deleteLines(j))),this._parser.registerCsiHandler({final:"P"},(j=>this.deleteChars(j))),this._parser.registerCsiHandler({final:"S"},(j=>this.scrollUp(j))),this._parser.registerCsiHandler({final:"T"},(j=>this.scrollDown(j))),this._parser.registerCsiHandler({final:"X"},(j=>this.eraseChars(j))),this._parser.registerCsiHandler({final:"Z"},(j=>this.cursorBackwardTab(j))),this._parser.registerCsiHandler({final:"`"},(j=>this.charPosAbsolute(j))),this._parser.registerCsiHandler({final:"a"},(j=>this.hPositionRelative(j))),this._parser.registerCsiHandler({final:"b"},(j=>this.repeatPrecedingCharacter(j))),this._parser.registerCsiHandler({final:"c"},(j=>this.sendDeviceAttributesPrimary(j))),this._parser.registerCsiHandler({prefix:">",final:"c"},(j=>this.sendDeviceAttributesSecondary(j))),this._parser.registerCsiHandler({final:"d"},(j=>this.linePosAbsolute(j))),this._parser.registerCsiHandler({final:"e"},(j=>this.vPositionRelative(j))),this._parser.registerCsiHandler({final:"f"},(j=>this.hVPosition(j))),this._parser.registerCsiHandler({final:"g"},(j=>this.tabClear(j))),this._parser.registerCsiHandler({final:"h"},(j=>this.setMode(j))),this._parser.registerCsiHandler({prefix:"?",final:"h"},(j=>this.setModePrivate(j))),this._parser.registerCsiHandler({final:"l"},(j=>this.resetMode(j))),this._parser.registerCsiHandler({prefix:"?",final:"l"},(j=>this.resetModePrivate(j))),this._parser.registerCsiHandler({final:"m"},(j=>this.charAttributes(j))),this._parser.registerCsiHandler({final:"n"},(j=>this.deviceStatus(j))),this._parser.registerCsiHandler({prefix:"?",final:"n"},(j=>this.deviceStatusPrivate(j))),this._parser.registerCsiHandler({intermediates:"!",final:"p"},(j=>this.softReset(j))),this._parser.registerCsiHandler({intermediates:" ",final:"q"},(j=>this.setCursorStyle(j))),this._parser.registerCsiHandler({final:"r"},(j=>this.setScrollRegion(j))),this._parser.registerCsiHandler({final:"s"},(j=>this.saveCursor(j))),this._parser.registerCsiHandler({final:"t"},(j=>this.windowOptions(j))),this._parser.registerCsiHandler({final:"u"},(j=>this.restoreCursor(j))),this._parser.registerCsiHandler({intermediates:"'",final:"}"},(j=>this.insertColumns(j))),this._parser.registerCsiHandler({intermediates:"'",final:"~"},(j=>this.deleteColumns(j))),this._parser.registerCsiHandler({intermediates:'"',final:"q"},(j=>this.selectProtected(j))),this._parser.registerCsiHandler({intermediates:"$",final:"p"},(j=>this.requestMode(j,!0))),this._parser.registerCsiHandler({prefix:"?",intermediates:"$",final:"p"},(j=>this.requestMode(j,!1))),this._parser.setExecuteHandler(m.C0.BEL,(()=>this.bell())),this._parser.setExecuteHandler(m.C0.LF,(()=>this.lineFeed())),this._parser.setExecuteHandler(m.C0.VT,(()=>this.lineFeed())),this._parser.setExecuteHandler(m.C0.FF,(()=>this.lineFeed())),this._parser.setExecuteHandler(m.C0.CR,(()=>this.carriageReturn())),this._parser.setExecuteHandler(m.C0.BS,(()=>this.backspace())),this._parser.setExecuteHandler(m.C0.HT,(()=>this.tab())),this._parser.setExecuteHandler(m.C0.SO,(()=>this.shiftOut())),this._parser.setExecuteHandler(m.C0.SI,(()=>this.shiftIn())),this._parser.setExecuteHandler(m.C1.IND,(()=>this.index())),this._parser.setExecuteHandler(m.C1.NEL,(()=>this.nextLine())),this._parser.setExecuteHandler(m.C1.HTS,(()=>this.tabSet())),this._parser.registerOscHandler(0,new L.OscHandler((j=>(this.setTitle(j),this.setIconName(j),!0)))),this._parser.registerOscHandler(1,new L.OscHandler((j=>this.setIconName(j)))),this._parser.registerOscHandler(2,new L.OscHandler((j=>this.setTitle(j)))),this._parser.registerOscHandler(4,new L.OscHandler((j=>this.setOrReportIndexedColor(j)))),this._parser.registerOscHandler(8,new L.OscHandler((j=>this.setHyperlink(j)))),this._parser.registerOscHandler(10,new L.OscHandler((j=>this.setOrReportFgColor(j)))),this._parser.registerOscHandler(11,new L.OscHandler((j=>this.setOrReportBgColor(j)))),this._parser.registerOscHandler(12,new L.OscHandler((j=>this.setOrReportCursorColor(j)))),this._parser.registerOscHandler(104,new L.OscHandler((j=>this.restoreIndexedColor(j)))),this._parser.registerOscHandler(110,new L.OscHandler((j=>this.restoreFgColor(j)))),this._parser.registerOscHandler(111,new L.OscHandler((j=>this.restoreBgColor(j)))),this._parser.registerOscHandler(112,new L.OscHandler((j=>this.restoreCursorColor(j)))),this._parser.registerEscHandler({final:"7"},(()=>this.saveCursor())),this._parser.registerEscHandler({final:"8"},(()=>this.restoreCursor())),this._parser.registerEscHandler({final:"D"},(()=>this.index())),this._parser.registerEscHandler({final:"E"},(()=>this.nextLine())),this._parser.registerEscHandler({final:"H"},(()=>this.tabSet())),this._parser.registerEscHandler({final:"M"},(()=>this.reverseIndex())),this._parser.registerEscHandler({final:"="},(()=>this.keypadApplicationMode())),this._parser.registerEscHandler({final:">"},(()=>this.keypadNumericMode())),this._parser.registerEscHandler({final:"c"},(()=>this.fullReset())),this._parser.registerEscHandler({final:"n"},(()=>this.setgLevel(2))),this._parser.registerEscHandler({final:"o"},(()=>this.setgLevel(3))),this._parser.registerEscHandler({final:"|"},(()=>this.setgLevel(3))),this._parser.registerEscHandler({final:"}"},(()=>this.setgLevel(2))),this._parser.registerEscHandler({final:"~"},(()=>this.setgLevel(1))),this._parser.registerEscHandler({intermediates:"%",final:"@"},(()=>this.selectDefaultCharset())),this._parser.registerEscHandler({intermediates:"%",final:"G"},(()=>this.selectDefaultCharset()));for(const j in C.CHARSETS)this._parser.registerEscHandler({intermediates:"(",final:j},(()=>this.selectCharset("("+j))),this._parser.registerEscHandler({intermediates:")",final:j},(()=>this.selectCharset(")"+j))),this._parser.registerEscHandler({intermediates:"*",final:j},(()=>this.selectCharset("*"+j))),this._parser.registerEscHandler({intermediates:"+",final:j},(()=>this.selectCharset("+"+j))),this._parser.registerEscHandler({intermediates:"-",final:j},(()=>this.selectCharset("-"+j))),this._parser.registerEscHandler({intermediates:".",final:j},(()=>this.selectCharset("."+j))),this._parser.registerEscHandler({intermediates:"/",final:j},(()=>this.selectCharset("/"+j)));this._parser.registerEscHandler({intermediates:"#",final:"8"},(()=>this.screenAlignmentPattern())),this._parser.setErrorHandler((j=>(this._logService.error("Parsing error: ",j),j))),this._parser.registerDcsHandler({intermediates:"$",final:"q"},new R.DcsHandler(((j,ne)=>this.requestStatusString(j,ne))))}_preserveStack(M,z,B,W){this._parseStack.paused=!0,this._parseStack.cursorStartX=M,this._parseStack.cursorStartY=z,this._parseStack.decodedLength=B,this._parseStack.position=W}_logSlowResolvingAsync(M){this._logService.logLevel<=E.LogLevelEnum.WARN&&Promise.race([M,new Promise(((z,B)=>setTimeout((()=>B("#SLOW_TIMEOUT")),5e3)))]).catch((z=>{if(z!=="#SLOW_TIMEOUT")throw z;console.warn("async parser handler taking longer than 5000 ms")}))}_getCurrentLinkId(){return this._curAttrData.extended.urlId}parse(M,z){let B,W=this._activeBuffer.x,ee=this._activeBuffer.y,re=0;const oe=this._parseStack.paused;if(oe){if(B=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,z))return this._logSlowResolvingAsync(B),B;W=this._parseStack.cursorStartX,ee=this._parseStack.cursorStartY,this._parseStack.paused=!1,M.length>$&&(re=this._parseStack.position+$)}if(this._logService.logLevel<=E.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+(typeof M=="string"?` "${M}"`:` "${Array.prototype.map.call(M,(j=>String.fromCharCode(j))).join("")}"`),typeof M=="string"?M.split("").map((j=>j.charCodeAt(0))):M),this._parseBuffer.length<M.length&&this._parseBuffer.length<$&&(this._parseBuffer=new Uint32Array(Math.min(M.length,$))),oe||this._dirtyRowTracker.clearRange(),M.length>$)for(let j=re;j<M.length;j+=$){const ne=j+$<M.length?j+$:M.length,Q=typeof M=="string"?this._stringDecoder.decode(M.substring(j,ne),this._parseBuffer):this._utf8Decoder.decode(M.subarray(j,ne),this._parseBuffer);if(B=this._parser.parse(this._parseBuffer,Q))return this._preserveStack(W,ee,Q,j),this._logSlowResolvingAsync(B),B}else if(!oe){const j=typeof M=="string"?this._stringDecoder.decode(M,this._parseBuffer):this._utf8Decoder.decode(M,this._parseBuffer);if(B=this._parser.parse(this._parseBuffer,j))return this._preserveStack(W,ee,j,0),this._logSlowResolvingAsync(B),B}this._activeBuffer.x===W&&this._activeBuffer.y===ee||this._onCursorMove.fire();const se=this._dirtyRowTracker.end+(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp),U=this._dirtyRowTracker.start+(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp);U<this._bufferService.rows&&this._onRequestRefreshRows.fire(Math.min(U,this._bufferService.rows-1),Math.min(se,this._bufferService.rows-1))}print(M,z,B){let W,ee;const re=this._charsetService.charset,oe=this._optionsService.rawOptions.screenReaderMode,se=this._bufferService.cols,U=this._coreService.decPrivateModes.wraparound,j=this._coreService.modes.insertMode,ne=this._curAttrData;let Q=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._activeBuffer.x&&B-z>0&&Q.getWidth(this._activeBuffer.x-1)===2&&Q.setCellFromCodepoint(this._activeBuffer.x-1,0,1,ne);let ue=this._parser.precedingJoinState;for(let ce=z;ce<B;++ce){if(W=M[ce],W<127&&re){const Ve=re[String.fromCharCode(W)];Ve&&(W=Ve.charCodeAt(0))}const _e=this._unicodeService.charProperties(W,ue);ee=P.UnicodeService.extractWidth(_e);const ge=P.UnicodeService.extractShouldJoin(_e),xe=ge?P.UnicodeService.extractWidth(ue):0;if(ue=_e,oe&&this._onA11yChar.fire((0,S.stringFromCodePoint)(W)),this._getCurrentLinkId()&&this._oscLinkService.addLineToLink(this._getCurrentLinkId(),this._activeBuffer.ybase+this._activeBuffer.y),this._activeBuffer.x+ee-xe>se){if(U){const Ve=Q;let be=this._activeBuffer.x-xe;for(this._activeBuffer.x=xe,this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData(),!0)):(this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),Q=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y),xe>0&&Q instanceof g.BufferLine&&Q.copyCellsFrom(Ve,be,0,xe,!1);be<se;)Ve.setCellFromCodepoint(be++,0,1,ne)}else if(this._activeBuffer.x=se-1,ee===2)continue}if(ge&&this._activeBuffer.x){const Ve=Q.getWidth(this._activeBuffer.x-1)?1:2;Q.addCodepointToCell(this._activeBuffer.x-Ve,W,ee);for(let be=ee-xe;--be>=0;)Q.setCellFromCodepoint(this._activeBuffer.x++,0,0,ne)}else if(j&&(Q.insertCells(this._activeBuffer.x,ee-xe,this._activeBuffer.getNullCell(ne)),Q.getWidth(se-1)===2&&Q.setCellFromCodepoint(se-1,p.NULL_CELL_CODE,p.NULL_CELL_WIDTH,ne)),Q.setCellFromCodepoint(this._activeBuffer.x++,W,ee,ne),ee>0)for(;--ee;)Q.setCellFromCodepoint(this._activeBuffer.x++,0,0,ne)}this._parser.precedingJoinState=ue,this._activeBuffer.x<se&&B-z>0&&Q.getWidth(this._activeBuffer.x)===0&&!Q.hasContent(this._activeBuffer.x)&&Q.setCellFromCodepoint(this._activeBuffer.x,0,1,ne),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}registerCsiHandler(M,z){return M.final!=="t"||M.prefix||M.intermediates?this._parser.registerCsiHandler(M,z):this._parser.registerCsiHandler(M,(B=>!H(B.params[0],this._optionsService.rawOptions.windowOptions)||z(B)))}registerDcsHandler(M,z){return this._parser.registerDcsHandler(M,new R.DcsHandler(z))}registerEscHandler(M,z){return this._parser.registerEscHandler(M,z)}registerOscHandler(M,z){return this._parser.registerOscHandler(M,new L.OscHandler(z))}bell(){return this._onRequestBell.fire(),!0}lineFeed(){return this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows?this._activeBuffer.y=this._bufferService.rows-1:this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0}carriageReturn(){return this._activeBuffer.x=0,!0}backspace(){var M;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(this._activeBuffer.x===0&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&((M=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))!=null&&M.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;const z=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);z.hasWidth(this._activeBuffer.x)&&!z.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0}tab(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;const M=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-M),!0}shiftOut(){return this._charsetService.setgLevel(1),!0}shiftIn(){return this._charsetService.setgLevel(0),!0}_restrictCursor(M=this._bufferService.cols-1){this._activeBuffer.x=Math.min(M,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_setCursor(M,z){this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=M,this._activeBuffer.y=this._activeBuffer.scrollTop+z):(this._activeBuffer.x=M,this._activeBuffer.y=z),this._restrictCursor(),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_moveCursor(M,z){this._restrictCursor(),this._setCursor(this._activeBuffer.x+M,this._activeBuffer.y+z)}cursorUp(M){const z=this._activeBuffer.y-this._activeBuffer.scrollTop;return z>=0?this._moveCursor(0,-Math.min(z,M.params[0]||1)):this._moveCursor(0,-(M.params[0]||1)),!0}cursorDown(M){const z=this._activeBuffer.scrollBottom-this._activeBuffer.y;return z>=0?this._moveCursor(0,Math.min(z,M.params[0]||1)):this._moveCursor(0,M.params[0]||1),!0}cursorForward(M){return this._moveCursor(M.params[0]||1,0),!0}cursorBackward(M){return this._moveCursor(-(M.params[0]||1),0),!0}cursorNextLine(M){return this.cursorDown(M),this._activeBuffer.x=0,!0}cursorPrecedingLine(M){return this.cursorUp(M),this._activeBuffer.x=0,!0}cursorCharAbsolute(M){return this._setCursor((M.params[0]||1)-1,this._activeBuffer.y),!0}cursorPosition(M){return this._setCursor(M.length>=2?(M.params[1]||1)-1:0,(M.params[0]||1)-1),!0}charPosAbsolute(M){return this._setCursor((M.params[0]||1)-1,this._activeBuffer.y),!0}hPositionRelative(M){return this._moveCursor(M.params[0]||1,0),!0}linePosAbsolute(M){return this._setCursor(this._activeBuffer.x,(M.params[0]||1)-1),!0}vPositionRelative(M){return this._moveCursor(0,M.params[0]||1),!0}hVPosition(M){return this.cursorPosition(M),!0}tabClear(M){const z=M.params[0];return z===0?delete this._activeBuffer.tabs[this._activeBuffer.x]:z===3&&(this._activeBuffer.tabs={}),!0}cursorForwardTab(M){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let z=M.params[0]||1;for(;z--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0}cursorBackwardTab(M){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let z=M.params[0]||1;for(;z--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0}selectProtected(M){const z=M.params[0];return z===1&&(this._curAttrData.bg|=536870912),z!==2&&z!==0||(this._curAttrData.bg&=-536870913),!0}_eraseInBufferLine(M,z,B,W=!1,ee=!1){const re=this._activeBuffer.lines.get(this._activeBuffer.ybase+M);re.replaceCells(z,B,this._activeBuffer.getNullCell(this._eraseAttrData()),ee),W&&(re.isWrapped=!1)}_resetBufferLine(M,z=!1){const B=this._activeBuffer.lines.get(this._activeBuffer.ybase+M);B&&(B.fill(this._activeBuffer.getNullCell(this._eraseAttrData()),z),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+M),B.isWrapped=!1)}eraseInDisplay(M,z=!1){let B;switch(this._restrictCursor(this._bufferService.cols),M.params[0]){case 0:for(B=this._activeBuffer.y,this._dirtyRowTracker.markDirty(B),this._eraseInBufferLine(B++,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,z);B<this._bufferService.rows;B++)this._resetBufferLine(B,z);this._dirtyRowTracker.markDirty(B);break;case 1:for(B=this._activeBuffer.y,this._dirtyRowTracker.markDirty(B),this._eraseInBufferLine(B,0,this._activeBuffer.x+1,!0,z),this._activeBuffer.x+1>=this._bufferService.cols&&(this._activeBuffer.lines.get(B+1).isWrapped=!1);B--;)this._resetBufferLine(B,z);this._dirtyRowTracker.markDirty(0);break;case 2:for(B=this._bufferService.rows,this._dirtyRowTracker.markDirty(B-1);B--;)this._resetBufferLine(B,z);this._dirtyRowTracker.markDirty(0);break;case 3:const W=this._activeBuffer.lines.length-this._bufferService.rows;W>0&&(this._activeBuffer.lines.trimStart(W),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-W,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-W,0),this._onScroll.fire(0))}return!0}eraseInLine(M,z=!1){switch(this._restrictCursor(this._bufferService.cols),M.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,z);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1,z);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0,z)}return this._dirtyRowTracker.markDirty(this._activeBuffer.y),!0}insertLines(M){this._restrictCursor();let z=M.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const B=this._activeBuffer.ybase+this._activeBuffer.y,W=this._bufferService.rows-1-this._activeBuffer.scrollBottom,ee=this._bufferService.rows-1+this._activeBuffer.ybase-W+1;for(;z--;)this._activeBuffer.lines.splice(ee-1,1),this._activeBuffer.lines.splice(B,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0}deleteLines(M){this._restrictCursor();let z=M.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const B=this._activeBuffer.ybase+this._activeBuffer.y;let W;for(W=this._bufferService.rows-1-this._activeBuffer.scrollBottom,W=this._bufferService.rows-1+this._activeBuffer.ybase-W;z--;)this._activeBuffer.lines.splice(B,1),this._activeBuffer.lines.splice(W,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0}insertChars(M){this._restrictCursor();const z=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return z&&(z.insertCells(this._activeBuffer.x,M.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}deleteChars(M){this._restrictCursor();const z=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return z&&(z.deleteCells(this._activeBuffer.x,M.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}scrollUp(M){let z=M.params[0]||1;for(;z--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollDown(M){let z=M.params[0]||1;for(;z--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,0,this._activeBuffer.getBlankLine(g.DEFAULT_ATTR_DATA));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollLeft(M){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const z=M.params[0]||1;for(let B=this._activeBuffer.scrollTop;B<=this._activeBuffer.scrollBottom;++B){const W=this._activeBuffer.lines.get(this._activeBuffer.ybase+B);W.deleteCells(0,z,this._activeBuffer.getNullCell(this._eraseAttrData())),W.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollRight(M){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const z=M.params[0]||1;for(let B=this._activeBuffer.scrollTop;B<=this._activeBuffer.scrollBottom;++B){const W=this._activeBuffer.lines.get(this._activeBuffer.ybase+B);W.insertCells(0,z,this._activeBuffer.getNullCell(this._eraseAttrData())),W.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}insertColumns(M){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const z=M.params[0]||1;for(let B=this._activeBuffer.scrollTop;B<=this._activeBuffer.scrollBottom;++B){const W=this._activeBuffer.lines.get(this._activeBuffer.ybase+B);W.insertCells(this._activeBuffer.x,z,this._activeBuffer.getNullCell(this._eraseAttrData())),W.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}deleteColumns(M){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const z=M.params[0]||1;for(let B=this._activeBuffer.scrollTop;B<=this._activeBuffer.scrollBottom;++B){const W=this._activeBuffer.lines.get(this._activeBuffer.ybase+B);W.deleteCells(this._activeBuffer.x,z,this._activeBuffer.getNullCell(this._eraseAttrData())),W.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}eraseChars(M){this._restrictCursor();const z=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return z&&(z.replaceCells(this._activeBuffer.x,this._activeBuffer.x+(M.params[0]||1),this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}repeatPrecedingCharacter(M){const z=this._parser.precedingJoinState;if(!z)return!0;const B=M.params[0]||1,W=P.UnicodeService.extractWidth(z),ee=this._activeBuffer.x-W,re=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).getString(ee),oe=new Uint32Array(re.length*B);let se=0;for(let j=0;j<re.length;){const ne=re.codePointAt(j)||0;oe[se++]=ne,j+=ne>65535?2:1}let U=se;for(let j=1;j<B;++j)oe.copyWithin(U,0,se),U+=se;return this.print(oe,0,U),!0}sendDeviceAttributesPrimary(M){return M.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(m.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(m.C0.ESC+"[?6c")),!0}sendDeviceAttributesSecondary(M){return M.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(m.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(m.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(M.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(m.C0.ESC+"[>83;40003;0c")),!0}_is(M){return(this._optionsService.rawOptions.termName+"").indexOf(M)===0}setMode(M){for(let z=0;z<M.length;z++)switch(M.params[z]){case 4:this._coreService.modes.insertMode=!0;break;case 20:this._optionsService.options.convertEol=!0}return!0}setModePrivate(M){for(let z=0;z<M.length;z++)switch(M.params[z]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,C.DEFAULT_CHARSET),this._charsetService.setgCharset(1,C.DEFAULT_CHARSET),this._charsetService.setgCharset(2,C.DEFAULT_CHARSET),this._charsetService.setgCharset(3,C.DEFAULT_CHARSET);break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:this._optionsService.options.cursorBlink=!0;break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0,this._onRequestSendFocus.fire();break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 1016:this._coreMouseService.activeEncoding="SGR_PIXELS";break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}return!0}resetMode(M){for(let z=0;z<M.length;z++)switch(M.params[z]){case 4:this._coreService.modes.insertMode=!1;break;case 20:this._optionsService.options.convertEol=!1}return!0}resetModePrivate(M){for(let z=0;z<M.length;z++)switch(M.params[z]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:this._optionsService.options.cursorBlink=!1;break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:case 1016:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),M.params[z]===1049&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}return!0}requestMode(M,z){const B=this._coreService.decPrivateModes,{activeProtocol:W,activeEncoding:ee}=this._coreMouseService,re=this._coreService,{buffers:oe,cols:se}=this._bufferService,{active:U,alt:j}=oe,ne=this._optionsService.rawOptions,Q=ge=>ge?1:2,ue=M.params[0];return ce=ue,_e=z?ue===2?4:ue===4?Q(re.modes.insertMode):ue===12?3:ue===20?Q(ne.convertEol):0:ue===1?Q(B.applicationCursorKeys):ue===3?ne.windowOptions.setWinLines?se===80?2:se===132?1:0:0:ue===6?Q(B.origin):ue===7?Q(B.wraparound):ue===8?3:ue===9?Q(W==="X10"):ue===12?Q(ne.cursorBlink):ue===25?Q(!re.isCursorHidden):ue===45?Q(B.reverseWraparound):ue===66?Q(B.applicationKeypad):ue===67?4:ue===1e3?Q(W==="VT200"):ue===1002?Q(W==="DRAG"):ue===1003?Q(W==="ANY"):ue===1004?Q(B.sendFocus):ue===1005?4:ue===1006?Q(ee==="SGR"):ue===1015?4:ue===1016?Q(ee==="SGR_PIXELS"):ue===1048?1:ue===47||ue===1047||ue===1049?Q(U===j):ue===2004?Q(B.bracketedPasteMode):0,re.triggerDataEvent(`${m.C0.ESC}[${z?"":"?"}${ce};${_e}$y`),!0;var ce,_e}_updateAttrColor(M,z,B,W,ee){return z===2?(M|=50331648,M&=-16777216,M|=b.AttributeData.fromColorRGB([B,W,ee])):z===5&&(M&=-50331904,M|=33554432|255&B),M}_extractColor(M,z,B){const W=[0,0,-1,0,0,0];let ee=0,re=0;do{if(W[re+ee]=M.params[z+re],M.hasSubParams(z+re)){const oe=M.getSubParams(z+re);let se=0;do W[1]===5&&(ee=1),W[re+se+1+ee]=oe[se];while(++se<oe.length&&se+re+1+ee<W.length);break}if(W[1]===5&&re+ee>=2||W[1]===2&&re+ee>=5)break;W[1]&&(ee=1)}while(++re+z<M.length&&re+ee<W.length);for(let oe=2;oe<W.length;++oe)W[oe]===-1&&(W[oe]=0);switch(W[0]){case 38:B.fg=this._updateAttrColor(B.fg,W[1],W[3],W[4],W[5]);break;case 48:B.bg=this._updateAttrColor(B.bg,W[1],W[3],W[4],W[5]);break;case 58:B.extended=B.extended.clone(),B.extended.underlineColor=this._updateAttrColor(B.extended.underlineColor,W[1],W[3],W[4],W[5])}return re}_processUnderline(M,z){z.extended=z.extended.clone(),(!~M||M>5)&&(M=1),z.extended.underlineStyle=M,z.fg|=268435456,M===0&&(z.fg&=-268435457),z.updateExtended()}_processSGR0(M){M.fg=g.DEFAULT_ATTR_DATA.fg,M.bg=g.DEFAULT_ATTR_DATA.bg,M.extended=M.extended.clone(),M.extended.underlineStyle=0,M.extended.underlineColor&=-67108864,M.updateExtended()}charAttributes(M){if(M.length===1&&M.params[0]===0)return this._processSGR0(this._curAttrData),!0;const z=M.length;let B;const W=this._curAttrData;for(let ee=0;ee<z;ee++)B=M.params[ee],B>=30&&B<=37?(W.fg&=-50331904,W.fg|=16777216|B-30):B>=40&&B<=47?(W.bg&=-50331904,W.bg|=16777216|B-40):B>=90&&B<=97?(W.fg&=-50331904,W.fg|=16777224|B-90):B>=100&&B<=107?(W.bg&=-50331904,W.bg|=16777224|B-100):B===0?this._processSGR0(W):B===1?W.fg|=134217728:B===3?W.bg|=67108864:B===4?(W.fg|=268435456,this._processUnderline(M.hasSubParams(ee)?M.getSubParams(ee)[0]:1,W)):B===5?W.fg|=536870912:B===7?W.fg|=67108864:B===8?W.fg|=1073741824:B===9?W.fg|=2147483648:B===2?W.bg|=134217728:B===21?this._processUnderline(2,W):B===22?(W.fg&=-134217729,W.bg&=-134217729):B===23?W.bg&=-67108865:B===24?(W.fg&=-268435457,this._processUnderline(0,W)):B===25?W.fg&=-536870913:B===27?W.fg&=-67108865:B===28?W.fg&=-1073741825:B===29?W.fg&=2147483647:B===39?(W.fg&=-67108864,W.fg|=16777215&g.DEFAULT_ATTR_DATA.fg):B===49?(W.bg&=-67108864,W.bg|=16777215&g.DEFAULT_ATTR_DATA.bg):B===38||B===48||B===58?ee+=this._extractColor(M,ee,W):B===53?W.bg|=1073741824:B===55?W.bg&=-1073741825:B===59?(W.extended=W.extended.clone(),W.extended.underlineColor=-1,W.updateExtended()):B===100?(W.fg&=-67108864,W.fg|=16777215&g.DEFAULT_ATTR_DATA.fg,W.bg&=-67108864,W.bg|=16777215&g.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",B);return!0}deviceStatus(M){switch(M.params[0]){case 5:this._coreService.triggerDataEvent(`${m.C0.ESC}[0n`);break;case 6:const z=this._activeBuffer.y+1,B=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${m.C0.ESC}[${z};${B}R`)}return!0}deviceStatusPrivate(M){if(M.params[0]===6){const z=this._activeBuffer.y+1,B=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${m.C0.ESC}[?${z};${B}R`)}return!0}softReset(M){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=g.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0}setCursorStyle(M){const z=M.params[0]||1;switch(z){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}const B=z%2==1;return this._optionsService.options.cursorBlink=B,!0}setScrollRegion(M){const z=M.params[0]||1;let B;return(M.length<2||(B=M.params[1])>this._bufferService.rows||B===0)&&(B=this._bufferService.rows),B>z&&(this._activeBuffer.scrollTop=z-1,this._activeBuffer.scrollBottom=B-1,this._setCursor(0,0)),!0}windowOptions(M){if(!H(M.params[0],this._optionsService.rawOptions.windowOptions))return!0;const z=M.length>1?M.params[1]:0;switch(M.params[0]){case 14:z!==2&&this._onRequestWindowsOptionsReport.fire(N.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(N.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(`${m.C0.ESC}[8;${this._bufferService.rows};${this._bufferService.cols}t`);break;case 22:z!==0&&z!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),z!==0&&z!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:z!==0&&z!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),z!==0&&z!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0}saveCursor(M){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0}restoreCursor(M){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0}setTitle(M){return this._windowTitle=M,this._onTitleChange.fire(M),!0}setIconName(M){return this._iconName=M,!0}setOrReportIndexedColor(M){const z=[],B=M.split(";");for(;B.length>1;){const W=B.shift(),ee=B.shift();if(/^\d+$/.exec(W)){const re=parseInt(W);if(Z(re))if(ee==="?")z.push({type:0,index:re});else{const oe=(0,A.parseColor)(ee);oe&&z.push({type:1,index:re,color:oe})}}}return z.length&&this._onColor.fire(z),!0}setHyperlink(M){const z=M.split(";");return!(z.length<2)&&(z[1]?this._createHyperlink(z[0],z[1]):!z[0]&&this._finishHyperlink())}_createHyperlink(M,z){this._getCurrentLinkId()&&this._finishHyperlink();const B=M.split(":");let W;const ee=B.findIndex((re=>re.startsWith("id=")));return ee!==-1&&(W=B[ee].slice(3)||void 0),this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=this._oscLinkService.registerLink({id:W,uri:z}),this._curAttrData.updateExtended(),!0}_finishHyperlink(){return this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=0,this._curAttrData.updateExtended(),!0}_setOrReportSpecialColor(M,z){const B=M.split(";");for(let W=0;W<B.length&&!(z>=this._specialColors.length);++W,++z)if(B[W]==="?")this._onColor.fire([{type:0,index:this._specialColors[z]}]);else{const ee=(0,A.parseColor)(B[W]);ee&&this._onColor.fire([{type:1,index:this._specialColors[z],color:ee}])}return!0}setOrReportFgColor(M){return this._setOrReportSpecialColor(M,0)}setOrReportBgColor(M){return this._setOrReportSpecialColor(M,1)}setOrReportCursorColor(M){return this._setOrReportSpecialColor(M,2)}restoreIndexedColor(M){if(!M)return this._onColor.fire([{type:2}]),!0;const z=[],B=M.split(";");for(let W=0;W<B.length;++W)if(/^\d+$/.exec(B[W])){const ee=parseInt(B[W]);Z(ee)&&z.push({type:2,index:ee})}return z.length&&this._onColor.fire(z),!0}restoreFgColor(M){return this._onColor.fire([{type:2,index:256}]),!0}restoreBgColor(M){return this._onColor.fire([{type:2,index:257}]),!0}restoreCursorColor(M){return this._onColor.fire([{type:2,index:258}]),!0}nextLine(){return this._activeBuffer.x=0,this.index(),!0}keypadApplicationMode(){return this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire(),!0}keypadNumericMode(){return this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire(),!0}selectDefaultCharset(){return this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,C.DEFAULT_CHARSET),!0}selectCharset(M){return M.length!==2?(this.selectDefaultCharset(),!0):(M[0]==="/"||this._charsetService.setgCharset(T[M[0]],C.CHARSETS[M[1]]||C.DEFAULT_CHARSET),!0)}index(){return this._restrictCursor(),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0}tabSet(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0}reverseIndex(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){const M=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,M,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0}fullReset(){return this._parser.reset(),this._onRequestReset.fire(),!0}reset(){this._curAttrData=g.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=g.DEFAULT_ATTR_DATA.clone()}_eraseAttrData(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal}setgLevel(M){return this._charsetService.setgLevel(M),!0}screenAlignmentPattern(){const M=new h.CellData;M.content=4194373,M.fg=this._curAttrData.fg,M.bg=this._curAttrData.bg,this._setCursor(0,0);for(let z=0;z<this._bufferService.rows;++z){const B=this._activeBuffer.ybase+this._activeBuffer.y+z,W=this._activeBuffer.lines.get(B);W&&(W.fill(M),W.isWrapped=!1)}return this._dirtyRowTracker.markAllDirty(),this._setCursor(0,0),!0}requestStatusString(M,z){const B=this._bufferService.buffer,W=this._optionsService.rawOptions;return(ee=>(this._coreService.triggerDataEvent(`${m.C0.ESC}${ee}${m.C0.ESC}\\`),!0))(M==='"q'?`P1$r${this._curAttrData.isProtected()?1:0}"q`:M==='"p'?'P1$r61;1"p':M==="r"?`P1$r${B.scrollTop+1};${B.scrollBottom+1}r`:M==="m"?"P1$r0m":M===" q"?`P1$r${{block:2,underline:4,bar:6}[W.cursorStyle]-(W.cursorBlink?1:0)} q`:"P0$r")}markRangeDirty(M,z){this._dirtyRowTracker.markRangeDirty(M,z)}}o.InputHandler=K;let G=class{constructor(X){this._bufferService=X,this.clearRange()}clearRange(){this.start=this._bufferService.buffer.y,this.end=this._bufferService.buffer.y}markDirty(X){X<this.start?this.start=X:X>this.end&&(this.end=X)}markRangeDirty(X,M){X>M&&(V=X,X=M,M=V),X<this.start&&(this.start=X),M>this.end&&(this.end=M)}markAllDirty(){this.markRangeDirty(0,this._bufferService.rows-1)}};function Z(X){return 0<=X&&X<256}G=v([_(0,E.IBufferService)],G)},844:(d,o)=>{function c(v){for(const _ of v)_.dispose();v.length=0}Object.defineProperty(o,"__esModule",{value:!0}),o.getDisposeArrayDisposable=o.disposeArray=o.toDisposable=o.MutableDisposable=o.Disposable=void 0,o.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){this._isDisposed=!0;for(const v of this._disposables)v.dispose();this._disposables.length=0}register(v){return this._disposables.push(v),v}unregister(v){const _=this._disposables.indexOf(v);_!==-1&&this._disposables.splice(_,1)}},o.MutableDisposable=class{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(v){var _;this._isDisposed||v===this._value||((_=this._value)==null||_.dispose(),this._value=v)}clear(){this.value=void 0}dispose(){var v;this._isDisposed=!0,(v=this._value)==null||v.dispose(),this._value=void 0}},o.toDisposable=function(v){return{dispose:v}},o.disposeArray=c,o.getDisposeArrayDisposable=function(v){return{dispose:()=>c(v)}}},1505:(d,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.FourKeyMap=o.TwoKeyMap=void 0;class c{constructor(){this._data={}}set(_,m,C){this._data[_]||(this._data[_]={}),this._data[_][m]=C}get(_,m){return this._data[_]?this._data[_][m]:void 0}clear(){this._data={}}}o.TwoKeyMap=c,o.FourKeyMap=class{constructor(){this._data=new c}set(v,_,m,C,x){this._data.get(v,_)||this._data.set(v,_,new c),this._data.get(v,_).set(m,C,x)}get(v,_,m,C){var x;return(x=this._data.get(v,_))==null?void 0:x.get(m,C)}clear(){this._data.clear()}}},6114:(d,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.isChromeOS=o.isLinux=o.isWindows=o.isIphone=o.isIpad=o.isMac=o.getSafariVersion=o.isSafari=o.isLegacyEdge=o.isFirefox=o.isNode=void 0,o.isNode=typeof process<"u"&&"title"in process;const c=o.isNode?"node":navigator.userAgent,v=o.isNode?"node":navigator.platform;o.isFirefox=c.includes("Firefox"),o.isLegacyEdge=c.includes("Edge"),o.isSafari=/^((?!chrome|android).)*safari/i.test(c),o.getSafariVersion=function(){if(!o.isSafari)return 0;const _=c.match(/Version\/(\d+)/);return _===null||_.length<2?0:parseInt(_[1])},o.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(v),o.isIpad=v==="iPad",o.isIphone=v==="iPhone",o.isWindows=["Windows","Win16","Win32","WinCE"].includes(v),o.isLinux=v.indexOf("Linux")>=0,o.isChromeOS=/\bCrOS\b/.test(c)},6106:(d,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.SortedList=void 0;let c=0;o.SortedList=class{constructor(v){this._getKey=v,this._array=[]}clear(){this._array.length=0}insert(v){this._array.length!==0?(c=this._search(this._getKey(v)),this._array.splice(c,0,v)):this._array.push(v)}delete(v){if(this._array.length===0)return!1;const _=this._getKey(v);if(_===void 0||(c=this._search(_),c===-1)||this._getKey(this._array[c])!==_)return!1;do if(this._array[c]===v)return this._array.splice(c,1),!0;while(++c<this._array.length&&this._getKey(this._array[c])===_);return!1}*getKeyIterator(v){if(this._array.length!==0&&(c=this._search(v),!(c<0||c>=this._array.length)&&this._getKey(this._array[c])===v))do yield this._array[c];while(++c<this._array.length&&this._getKey(this._array[c])===v)}forEachByKey(v,_){if(this._array.length!==0&&(c=this._search(v),!(c<0||c>=this._array.length)&&this._getKey(this._array[c])===v))do _(this._array[c]);while(++c<this._array.length&&this._getKey(this._array[c])===v)}values(){return[...this._array].values()}_search(v){let _=0,m=this._array.length-1;for(;m>=_;){let C=_+m>>1;const x=this._getKey(this._array[C]);if(x>v)m=C-1;else{if(!(x<v)){for(;C>0&&this._getKey(this._array[C-1])===v;)C--;return C}_=C+1}}return _}}},7226:(d,o,c)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.DebouncedIdleTask=o.IdleTaskQueue=o.PriorityTaskQueue=void 0;const v=c(6114);class _{constructor(){this._tasks=[],this._i=0}enqueue(x){this._tasks.push(x),this._start()}flush(){for(;this._i<this._tasks.length;)this._tasks[this._i]()||this._i++;this.clear()}clear(){this._idleCallback&&(this._cancelCallback(this._idleCallback),this._idleCallback=void 0),this._i=0,this._tasks.length=0}_start(){this._idleCallback||(this._idleCallback=this._requestCallback(this._process.bind(this)))}_process(x){this._idleCallback=void 0;let w=0,S=0,g=x.timeRemaining(),f=0;for(;this._i<this._tasks.length;){if(w=Date.now(),this._tasks[this._i]()||this._i++,w=Math.max(1,Date.now()-w),S=Math.max(w,S),f=x.timeRemaining(),1.5*S>f)return g-w<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(g-w))}ms`),void this._start();g=f}this.clear()}}class m extends _{_requestCallback(x){return setTimeout((()=>x(this._createDeadline(16))))}_cancelCallback(x){clearTimeout(x)}_createDeadline(x){const w=Date.now()+x;return{timeRemaining:()=>Math.max(0,w-Date.now())}}}o.PriorityTaskQueue=m,o.IdleTaskQueue=!v.isNode&&"requestIdleCallback"in window?class extends _{_requestCallback(C){return requestIdleCallback(C)}_cancelCallback(C){cancelIdleCallback(C)}}:m,o.DebouncedIdleTask=class{constructor(){this._queue=new o.IdleTaskQueue}set(C){this._queue.clear(),this._queue.enqueue(C)}flush(){this._queue.flush()}}},9282:(d,o,c)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.updateWindowsModeWrappedState=void 0;const v=c(643);o.updateWindowsModeWrappedState=function(_){const m=_.buffer.lines.get(_.buffer.ybase+_.buffer.y-1),C=m==null?void 0:m.get(_.cols-1),x=_.buffer.lines.get(_.buffer.ybase+_.buffer.y);x&&C&&(x.isWrapped=C[v.CHAR_DATA_CODE_INDEX]!==v.NULL_CELL_CODE&&C[v.CHAR_DATA_CODE_INDEX]!==v.WHITESPACE_CELL_CODE)}},3734:(d,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.ExtendedAttrs=o.AttributeData=void 0;class c{constructor(){this.fg=0,this.bg=0,this.extended=new v}static toColorRGB(m){return[m>>>16&255,m>>>8&255,255&m]}static fromColorRGB(m){return(255&m[0])<<16|(255&m[1])<<8|255&m[2]}clone(){const m=new c;return m.fg=this.fg,m.bg=this.bg,m.extended=this.extended.clone(),m}isInverse(){return 67108864&this.fg}isBold(){return 134217728&this.fg}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:268435456&this.fg}isBlink(){return 536870912&this.fg}isInvisible(){return 1073741824&this.fg}isItalic(){return 67108864&this.bg}isDim(){return 134217728&this.bg}isStrikethrough(){return 2147483648&this.fg}isProtected(){return 536870912&this.bg}isOverline(){return 1073741824&this.bg}getFgColorMode(){return 50331648&this.fg}getBgColorMode(){return 50331648&this.bg}isFgRGB(){return(50331648&this.fg)==50331648}isBgRGB(){return(50331648&this.bg)==50331648}isFgPalette(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432}isBgPalette(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432}isFgDefault(){return(50331648&this.fg)==0}isBgDefault(){return(50331648&this.bg)==0}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}}getBgColor(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}}hasExtendedAttrs(){return 268435456&this.bg}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()}isUnderlineColorRGB(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()}isUnderlineColorPalette(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()}isUnderlineColorDefault(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()}getUnderlineStyle(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0}getUnderlineVariantOffset(){return this.extended.underlineVariantOffset}}o.AttributeData=c;class v{get ext(){return this._urlId?-469762049&this._ext|this.underlineStyle<<26:this._ext}set ext(m){this._ext=m}get underlineStyle(){return this._urlId?5:(469762048&this._ext)>>26}set underlineStyle(m){this._ext&=-469762049,this._ext|=m<<26&469762048}get underlineColor(){return 67108863&this._ext}set underlineColor(m){this._ext&=-67108864,this._ext|=67108863&m}get urlId(){return this._urlId}set urlId(m){this._urlId=m}get underlineVariantOffset(){const m=(3758096384&this._ext)>>29;return m<0?4294967288^m:m}set underlineVariantOffset(m){this._ext&=536870911,this._ext|=m<<29&3758096384}constructor(m=0,C=0){this._ext=0,this._urlId=0,this._ext=m,this._urlId=C}clone(){return new v(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}}o.ExtendedAttrs=v},9092:(d,o,c)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.Buffer=o.MAX_BUFFER_SIZE=void 0;const v=c(6349),_=c(7226),m=c(3734),C=c(8437),x=c(4634),w=c(511),S=c(643),g=c(4863),f=c(7116);o.MAX_BUFFER_SIZE=4294967295,o.Buffer=class{constructor(p,h,b){this._hasScrollback=p,this._optionsService=h,this._bufferService=b,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.tabs={},this.savedY=0,this.savedX=0,this.savedCurAttrData=C.DEFAULT_ATTR_DATA.clone(),this.savedCharset=f.DEFAULT_CHARSET,this.markers=[],this._nullCell=w.CellData.fromCharData([0,S.NULL_CELL_CHAR,S.NULL_CELL_WIDTH,S.NULL_CELL_CODE]),this._whitespaceCell=w.CellData.fromCharData([0,S.WHITESPACE_CELL_CHAR,S.WHITESPACE_CELL_WIDTH,S.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._memoryCleanupQueue=new _.IdleTaskQueue,this._memoryCleanupPosition=0,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new v.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}getNullCell(p){return p?(this._nullCell.fg=p.fg,this._nullCell.bg=p.bg,this._nullCell.extended=p.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new m.ExtendedAttrs),this._nullCell}getWhitespaceCell(p){return p?(this._whitespaceCell.fg=p.fg,this._whitespaceCell.bg=p.bg,this._whitespaceCell.extended=p.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new m.ExtendedAttrs),this._whitespaceCell}getBlankLine(p,h){return new C.BufferLine(this._bufferService.cols,this.getNullCell(p),h)}get hasScrollback(){return this._hasScrollback&&this.lines.maxLength>this._rows}get isCursorInViewport(){const p=this.ybase+this.y-this.ydisp;return p>=0&&p<this._rows}_getCorrectBufferLength(p){if(!this._hasScrollback)return p;const h=p+this._optionsService.rawOptions.scrollback;return h>o.MAX_BUFFER_SIZE?o.MAX_BUFFER_SIZE:h}fillViewportRows(p){if(this.lines.length===0){p===void 0&&(p=C.DEFAULT_ATTR_DATA);let h=this._rows;for(;h--;)this.lines.push(this.getBlankLine(p))}}clear(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new v.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}resize(p,h){const b=this.getNullCell(C.DEFAULT_ATTR_DATA);let E=0;const P=this._getCorrectBufferLength(h);if(P>this.lines.maxLength&&(this.lines.maxLength=P),this.lines.length>0){if(this._cols<p)for(let R=0;R<this.lines.length;R++)E+=+this.lines.get(R).resize(p,b);let L=0;if(this._rows<h)for(let R=this._rows;R<h;R++)this.lines.length<h+this.ybase&&(this._optionsService.rawOptions.windowsMode||this._optionsService.rawOptions.windowsPty.backend!==void 0||this._optionsService.rawOptions.windowsPty.buildNumber!==void 0?this.lines.push(new C.BufferLine(p,b)):this.ybase>0&&this.lines.length<=this.ybase+this.y+L+1?(this.ybase--,L++,this.ydisp>0&&this.ydisp--):this.lines.push(new C.BufferLine(p,b)));else for(let R=this._rows;R>h;R--)this.lines.length>h+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(P<this.lines.maxLength){const R=this.lines.length-P;R>0&&(this.lines.trimStart(R),this.ybase=Math.max(this.ybase-R,0),this.ydisp=Math.max(this.ydisp-R,0),this.savedY=Math.max(this.savedY-R,0)),this.lines.maxLength=P}this.x=Math.min(this.x,p-1),this.y=Math.min(this.y,h-1),L&&(this.y+=L),this.savedX=Math.min(this.savedX,p-1),this.scrollTop=0}if(this.scrollBottom=h-1,this._isReflowEnabled&&(this._reflow(p,h),this._cols>p))for(let L=0;L<this.lines.length;L++)E+=+this.lines.get(L).resize(p,b);this._cols=p,this._rows=h,this._memoryCleanupQueue.clear(),E>.1*this.lines.length&&(this._memoryCleanupPosition=0,this._memoryCleanupQueue.enqueue((()=>this._batchedMemoryCleanup())))}_batchedMemoryCleanup(){let p=!0;this._memoryCleanupPosition>=this.lines.length&&(this._memoryCleanupPosition=0,p=!1);let h=0;for(;this._memoryCleanupPosition<this.lines.length;)if(h+=this.lines.get(this._memoryCleanupPosition++).cleanupMemory(),h>100)return!0;return p}get _isReflowEnabled(){const p=this._optionsService.rawOptions.windowsPty;return p&&p.buildNumber?this._hasScrollback&&p.backend==="conpty"&&p.buildNumber>=21376:this._hasScrollback&&!this._optionsService.rawOptions.windowsMode}_reflow(p,h){this._cols!==p&&(p>this._cols?this._reflowLarger(p,h):this._reflowSmaller(p,h))}_reflowLarger(p,h){const b=(0,x.reflowLargerGetLinesToRemove)(this.lines,this._cols,p,this.ybase+this.y,this.getNullCell(C.DEFAULT_ATTR_DATA));if(b.length>0){const E=(0,x.reflowLargerCreateNewLayout)(this.lines,b);(0,x.reflowLargerApplyNewLayout)(this.lines,E.layout),this._reflowLargerAdjustViewport(p,h,E.countRemoved)}}_reflowLargerAdjustViewport(p,h,b){const E=this.getNullCell(C.DEFAULT_ATTR_DATA);let P=b;for(;P-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<h&&this.lines.push(new C.BufferLine(p,E))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-b,0)}_reflowSmaller(p,h){const b=this.getNullCell(C.DEFAULT_ATTR_DATA),E=[];let P=0;for(let L=this.lines.length-1;L>=0;L--){let R=this.lines.get(L);if(!R||!R.isWrapped&&R.getTrimmedLength()<=p)continue;const A=[R];for(;R.isWrapped&&L>0;)R=this.lines.get(--L),A.unshift(R);const T=this.ybase+this.y;if(T>=L&&T<L+A.length)continue;const $=A[A.length-1].getTrimmedLength(),H=(0,x.reflowSmallerGetNewLineLengths)(A,this._cols,p),N=H.length-A.length;let V;V=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+N):Math.max(0,this.lines.length-this.lines.maxLength+N);const K=[];for(let B=0;B<N;B++){const W=this.getBlankLine(C.DEFAULT_ATTR_DATA,!0);K.push(W)}K.length>0&&(E.push({start:L+A.length+P,newLines:K}),P+=K.length),A.push(...K);let G=H.length-1,Z=H[G];Z===0&&(G--,Z=H[G]);let X=A.length-N-1,M=$;for(;X>=0;){const B=Math.min(M,Z);if(A[G]===void 0)break;if(A[G].copyCellsFrom(A[X],M-B,Z-B,B,!0),Z-=B,Z===0&&(G--,Z=H[G]),M-=B,M===0){X--;const W=Math.max(X,0);M=(0,x.getWrappedLineTrimmedLength)(A,W,this._cols)}}for(let B=0;B<A.length;B++)H[B]<p&&A[B].setCell(H[B],b);let z=N-V;for(;z-- >0;)this.ybase===0?this.y<h-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+P)-h&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+N,this.ybase+h-1)}if(E.length>0){const L=[],R=[];for(let G=0;G<this.lines.length;G++)R.push(this.lines.get(G));const A=this.lines.length;let T=A-1,$=0,H=E[$];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+P);let N=0;for(let G=Math.min(this.lines.maxLength-1,A+P-1);G>=0;G--)if(H&&H.start>T+N){for(let Z=H.newLines.length-1;Z>=0;Z--)this.lines.set(G--,H.newLines[Z]);G++,L.push({index:T+1,amount:H.newLines.length}),N+=H.newLines.length,H=E[++$]}else this.lines.set(G,R[T--]);let V=0;for(let G=L.length-1;G>=0;G--)L[G].index+=V,this.lines.onInsertEmitter.fire(L[G]),V+=L[G].amount;const K=Math.max(0,A+P-this.lines.maxLength);K>0&&this.lines.onTrimEmitter.fire(K)}}translateBufferLineToString(p,h,b=0,E){const P=this.lines.get(p);return P?P.translateToString(h,b,E):""}getWrappedRangeForLine(p){let h=p,b=p;for(;h>0&&this.lines.get(h).isWrapped;)h--;for(;b+1<this.lines.length&&this.lines.get(b+1).isWrapped;)b++;return{first:h,last:b}}setupTabStops(p){for(p!=null?this.tabs[p]||(p=this.prevStop(p)):(this.tabs={},p=0);p<this._cols;p+=this._optionsService.rawOptions.tabStopWidth)this.tabs[p]=!0}prevStop(p){for(p==null&&(p=this.x);!this.tabs[--p]&&p>0;);return p>=this._cols?this._cols-1:p<0?0:p}nextStop(p){for(p==null&&(p=this.x);!this.tabs[++p]&&p<this._cols;);return p>=this._cols?this._cols-1:p<0?0:p}clearMarkers(p){this._isClearing=!0;for(let h=0;h<this.markers.length;h++)this.markers[h].line===p&&(this.markers[h].dispose(),this.markers.splice(h--,1));this._isClearing=!1}clearAllMarkers(){this._isClearing=!0;for(let p=0;p<this.markers.length;p++)this.markers[p].dispose(),this.markers.splice(p--,1);this._isClearing=!1}addMarker(p){const h=new g.Marker(p);return this.markers.push(h),h.register(this.lines.onTrim((b=>{h.line-=b,h.line<0&&h.dispose()}))),h.register(this.lines.onInsert((b=>{h.line>=b.index&&(h.line+=b.amount)}))),h.register(this.lines.onDelete((b=>{h.line>=b.index&&h.line<b.index+b.amount&&h.dispose(),h.line>b.index&&(h.line-=b.amount)}))),h.register(h.onDispose((()=>this._removeMarker(h)))),h}_removeMarker(p){this._isClearing||this.markers.splice(this.markers.indexOf(p),1)}}},8437:(d,o,c)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.BufferLine=o.DEFAULT_ATTR_DATA=void 0;const v=c(3734),_=c(511),m=c(643),C=c(482);o.DEFAULT_ATTR_DATA=Object.freeze(new v.AttributeData);let x=0;class w{constructor(g,f,p=!1){this.isWrapped=p,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*g);const h=f||_.CellData.fromCharData([0,m.NULL_CELL_CHAR,m.NULL_CELL_WIDTH,m.NULL_CELL_CODE]);for(let b=0;b<g;++b)this.setCell(b,h);this.length=g}get(g){const f=this._data[3*g+0],p=2097151&f;return[this._data[3*g+1],2097152&f?this._combined[g]:p?(0,C.stringFromCodePoint)(p):"",f>>22,2097152&f?this._combined[g].charCodeAt(this._combined[g].length-1):p]}set(g,f){this._data[3*g+1]=f[m.CHAR_DATA_ATTR_INDEX],f[m.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[g]=f[1],this._data[3*g+0]=2097152|g|f[m.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*g+0]=f[m.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|f[m.CHAR_DATA_WIDTH_INDEX]<<22}getWidth(g){return this._data[3*g+0]>>22}hasWidth(g){return 12582912&this._data[3*g+0]}getFg(g){return this._data[3*g+1]}getBg(g){return this._data[3*g+2]}hasContent(g){return 4194303&this._data[3*g+0]}getCodePoint(g){const f=this._data[3*g+0];return 2097152&f?this._combined[g].charCodeAt(this._combined[g].length-1):2097151&f}isCombined(g){return 2097152&this._data[3*g+0]}getString(g){const f=this._data[3*g+0];return 2097152&f?this._combined[g]:2097151&f?(0,C.stringFromCodePoint)(2097151&f):""}isProtected(g){return 536870912&this._data[3*g+2]}loadCell(g,f){return x=3*g,f.content=this._data[x+0],f.fg=this._data[x+1],f.bg=this._data[x+2],2097152&f.content&&(f.combinedData=this._combined[g]),268435456&f.bg&&(f.extended=this._extendedAttrs[g]),f}setCell(g,f){2097152&f.content&&(this._combined[g]=f.combinedData),268435456&f.bg&&(this._extendedAttrs[g]=f.extended),this._data[3*g+0]=f.content,this._data[3*g+1]=f.fg,this._data[3*g+2]=f.bg}setCellFromCodepoint(g,f,p,h){268435456&h.bg&&(this._extendedAttrs[g]=h.extended),this._data[3*g+0]=f|p<<22,this._data[3*g+1]=h.fg,this._data[3*g+2]=h.bg}addCodepointToCell(g,f,p){let h=this._data[3*g+0];2097152&h?this._combined[g]+=(0,C.stringFromCodePoint)(f):2097151&h?(this._combined[g]=(0,C.stringFromCodePoint)(2097151&h)+(0,C.stringFromCodePoint)(f),h&=-2097152,h|=2097152):h=f|4194304,p&&(h&=-12582913,h|=p<<22),this._data[3*g+0]=h}insertCells(g,f,p){if((g%=this.length)&&this.getWidth(g-1)===2&&this.setCellFromCodepoint(g-1,0,1,p),f<this.length-g){const h=new _.CellData;for(let b=this.length-g-f-1;b>=0;--b)this.setCell(g+f+b,this.loadCell(g+b,h));for(let b=0;b<f;++b)this.setCell(g+b,p)}else for(let h=g;h<this.length;++h)this.setCell(h,p);this.getWidth(this.length-1)===2&&this.setCellFromCodepoint(this.length-1,0,1,p)}deleteCells(g,f,p){if(g%=this.length,f<this.length-g){const h=new _.CellData;for(let b=0;b<this.length-g-f;++b)this.setCell(g+b,this.loadCell(g+f+b,h));for(let b=this.length-f;b<this.length;++b)this.setCell(b,p)}else for(let h=g;h<this.length;++h)this.setCell(h,p);g&&this.getWidth(g-1)===2&&this.setCellFromCodepoint(g-1,0,1,p),this.getWidth(g)!==0||this.hasContent(g)||this.setCellFromCodepoint(g,0,1,p)}replaceCells(g,f,p,h=!1){if(h)for(g&&this.getWidth(g-1)===2&&!this.isProtected(g-1)&&this.setCellFromCodepoint(g-1,0,1,p),f<this.length&&this.getWidth(f-1)===2&&!this.isProtected(f)&&this.setCellFromCodepoint(f,0,1,p);g<f&&g<this.length;)this.isProtected(g)||this.setCell(g,p),g++;else for(g&&this.getWidth(g-1)===2&&this.setCellFromCodepoint(g-1,0,1,p),f<this.length&&this.getWidth(f-1)===2&&this.setCellFromCodepoint(f,0,1,p);g<f&&g<this.length;)this.setCell(g++,p)}resize(g,f){if(g===this.length)return 4*this._data.length*2<this._data.buffer.byteLength;const p=3*g;if(g>this.length){if(this._data.buffer.byteLength>=4*p)this._data=new Uint32Array(this._data.buffer,0,p);else{const h=new Uint32Array(p);h.set(this._data),this._data=h}for(let h=this.length;h<g;++h)this.setCell(h,f)}else{this._data=this._data.subarray(0,p);const h=Object.keys(this._combined);for(let E=0;E<h.length;E++){const P=parseInt(h[E],10);P>=g&&delete this._combined[P]}const b=Object.keys(this._extendedAttrs);for(let E=0;E<b.length;E++){const P=parseInt(b[E],10);P>=g&&delete this._extendedAttrs[P]}}return this.length=g,4*p*2<this._data.buffer.byteLength}cleanupMemory(){if(4*this._data.length*2<this._data.buffer.byteLength){const g=new Uint32Array(this._data.length);return g.set(this._data),this._data=g,1}return 0}fill(g,f=!1){if(f)for(let p=0;p<this.length;++p)this.isProtected(p)||this.setCell(p,g);else{this._combined={},this._extendedAttrs={};for(let p=0;p<this.length;++p)this.setCell(p,g)}}copyFrom(g){this.length!==g.length?this._data=new Uint32Array(g._data):this._data.set(g._data),this.length=g.length,this._combined={};for(const f in g._combined)this._combined[f]=g._combined[f];this._extendedAttrs={};for(const f in g._extendedAttrs)this._extendedAttrs[f]=g._extendedAttrs[f];this.isWrapped=g.isWrapped}clone(){const g=new w(0);g._data=new Uint32Array(this._data),g.length=this.length;for(const f in this._combined)g._combined[f]=this._combined[f];for(const f in this._extendedAttrs)g._extendedAttrs[f]=this._extendedAttrs[f];return g.isWrapped=this.isWrapped,g}getTrimmedLength(){for(let g=this.length-1;g>=0;--g)if(4194303&this._data[3*g+0])return g+(this._data[3*g+0]>>22);return 0}getNoBgTrimmedLength(){for(let g=this.length-1;g>=0;--g)if(4194303&this._data[3*g+0]||50331648&this._data[3*g+2])return g+(this._data[3*g+0]>>22);return 0}copyCellsFrom(g,f,p,h,b){const E=g._data;if(b)for(let L=h-1;L>=0;L--){for(let R=0;R<3;R++)this._data[3*(p+L)+R]=E[3*(f+L)+R];268435456&E[3*(f+L)+2]&&(this._extendedAttrs[p+L]=g._extendedAttrs[f+L])}else for(let L=0;L<h;L++){for(let R=0;R<3;R++)this._data[3*(p+L)+R]=E[3*(f+L)+R];268435456&E[3*(f+L)+2]&&(this._extendedAttrs[p+L]=g._extendedAttrs[f+L])}const P=Object.keys(g._combined);for(let L=0;L<P.length;L++){const R=parseInt(P[L],10);R>=f&&(this._combined[R-f+p]=g._combined[R])}}translateToString(g,f,p,h){f=f??0,p=p??this.length,g&&(p=Math.min(p,this.getTrimmedLength())),h&&(h.length=0);let b="";for(;f<p;){const E=this._data[3*f+0],P=2097151&E,L=2097152&E?this._combined[f]:P?(0,C.stringFromCodePoint)(P):m.WHITESPACE_CELL_CHAR;if(b+=L,h)for(let R=0;R<L.length;++R)h.push(f);f+=E>>22||1}return h&&h.push(f),b}}o.BufferLine=w},4841:(d,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.getRangeLength=void 0,o.getRangeLength=function(c,v){if(c.start.y>c.end.y)throw new Error(`Buffer range end (${c.end.x}, ${c.end.y}) cannot be before start (${c.start.x}, ${c.start.y})`);return v*(c.end.y-c.start.y)+(c.end.x-c.start.x+1)}},4634:(d,o)=>{function c(v,_,m){if(_===v.length-1)return v[_].getTrimmedLength();const C=!v[_].hasContent(m-1)&&v[_].getWidth(m-1)===1,x=v[_+1].getWidth(0)===2;return C&&x?m-1:m}Object.defineProperty(o,"__esModule",{value:!0}),o.getWrappedLineTrimmedLength=o.reflowSmallerGetNewLineLengths=o.reflowLargerApplyNewLayout=o.reflowLargerCreateNewLayout=o.reflowLargerGetLinesToRemove=void 0,o.reflowLargerGetLinesToRemove=function(v,_,m,C,x){const w=[];for(let S=0;S<v.length-1;S++){let g=S,f=v.get(++g);if(!f.isWrapped)continue;const p=[v.get(S)];for(;g<v.length&&f.isWrapped;)p.push(f),f=v.get(++g);if(C>=S&&C<g){S+=p.length-1;continue}let h=0,b=c(p,h,_),E=1,P=0;for(;E<p.length;){const R=c(p,E,_),A=R-P,T=m-b,$=Math.min(A,T);p[h].copyCellsFrom(p[E],P,b,$,!1),b+=$,b===m&&(h++,b=0),P+=$,P===R&&(E++,P=0),b===0&&h!==0&&p[h-1].getWidth(m-1)===2&&(p[h].copyCellsFrom(p[h-1],m-1,b++,1,!1),p[h-1].setCell(m-1,x))}p[h].replaceCells(b,m,x);let L=0;for(let R=p.length-1;R>0&&(R>h||p[R].getTrimmedLength()===0);R--)L++;L>0&&(w.push(S+p.length-L),w.push(L)),S+=p.length-1}return w},o.reflowLargerCreateNewLayout=function(v,_){const m=[];let C=0,x=_[C],w=0;for(let S=0;S<v.length;S++)if(x===S){const g=_[++C];v.onDeleteEmitter.fire({index:S-w,amount:g}),S+=g-1,w+=g,x=_[++C]}else m.push(S);return{layout:m,countRemoved:w}},o.reflowLargerApplyNewLayout=function(v,_){const m=[];for(let C=0;C<_.length;C++)m.push(v.get(_[C]));for(let C=0;C<m.length;C++)v.set(C,m[C]);v.length=_.length},o.reflowSmallerGetNewLineLengths=function(v,_,m){const C=[],x=v.map(((f,p)=>c(v,p,_))).reduce(((f,p)=>f+p));let w=0,S=0,g=0;for(;g<x;){if(x-g<m){C.push(x-g);break}w+=m;const f=c(v,S,_);w>f&&(w-=f,S++);const p=v[S].getWidth(w-1)===2;p&&w--;const h=p?m-1:m;C.push(h),g+=h}return C},o.getWrappedLineTrimmedLength=c},5295:(d,o,c)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.BufferSet=void 0;const v=c(8460),_=c(844),m=c(9092);class C extends _.Disposable{constructor(w,S){super(),this._optionsService=w,this._bufferService=S,this._onBufferActivate=this.register(new v.EventEmitter),this.onBufferActivate=this._onBufferActivate.event,this.reset(),this.register(this._optionsService.onSpecificOptionChange("scrollback",(()=>this.resize(this._bufferService.cols,this._bufferService.rows)))),this.register(this._optionsService.onSpecificOptionChange("tabStopWidth",(()=>this.setupTabStops())))}reset(){this._normal=new m.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new m.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()}get alt(){return this._alt}get active(){return this._activeBuffer}get normal(){return this._normal}activateNormalBuffer(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clearAllMarkers(),this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))}activateAltBuffer(w){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(w),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))}resize(w,S){this._normal.resize(w,S),this._alt.resize(w,S),this.setupTabStops(w)}setupTabStops(w){this._normal.setupTabStops(w),this._alt.setupTabStops(w)}}o.BufferSet=C},511:(d,o,c)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.CellData=void 0;const v=c(482),_=c(643),m=c(3734);class C extends m.AttributeData{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new m.ExtendedAttrs,this.combinedData=""}static fromCharData(w){const S=new C;return S.setFromCharData(w),S}isCombined(){return 2097152&this.content}getWidth(){return this.content>>22}getChars(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,v.stringFromCodePoint)(2097151&this.content):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content}setFromCharData(w){this.fg=w[_.CHAR_DATA_ATTR_INDEX],this.bg=0;let S=!1;if(w[_.CHAR_DATA_CHAR_INDEX].length>2)S=!0;else if(w[_.CHAR_DATA_CHAR_INDEX].length===2){const g=w[_.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=g&&g<=56319){const f=w[_.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=f&&f<=57343?this.content=1024*(g-55296)+f-56320+65536|w[_.CHAR_DATA_WIDTH_INDEX]<<22:S=!0}else S=!0}else this.content=w[_.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|w[_.CHAR_DATA_WIDTH_INDEX]<<22;S&&(this.combinedData=w[_.CHAR_DATA_CHAR_INDEX],this.content=2097152|w[_.CHAR_DATA_WIDTH_INDEX]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}o.CellData=C},643:(d,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.WHITESPACE_CELL_CODE=o.WHITESPACE_CELL_WIDTH=o.WHITESPACE_CELL_CHAR=o.NULL_CELL_CODE=o.NULL_CELL_WIDTH=o.NULL_CELL_CHAR=o.CHAR_DATA_CODE_INDEX=o.CHAR_DATA_WIDTH_INDEX=o.CHAR_DATA_CHAR_INDEX=o.CHAR_DATA_ATTR_INDEX=o.DEFAULT_EXT=o.DEFAULT_ATTR=o.DEFAULT_COLOR=void 0,o.DEFAULT_COLOR=0,o.DEFAULT_ATTR=256|o.DEFAULT_COLOR<<9,o.DEFAULT_EXT=0,o.CHAR_DATA_ATTR_INDEX=0,o.CHAR_DATA_CHAR_INDEX=1,o.CHAR_DATA_WIDTH_INDEX=2,o.CHAR_DATA_CODE_INDEX=3,o.NULL_CELL_CHAR="",o.NULL_CELL_WIDTH=1,o.NULL_CELL_CODE=0,o.WHITESPACE_CELL_CHAR=" ",o.WHITESPACE_CELL_WIDTH=1,o.WHITESPACE_CELL_CODE=32},4863:(d,o,c)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.Marker=void 0;const v=c(8460),_=c(844);class m{get id(){return this._id}constructor(x){this.line=x,this.isDisposed=!1,this._disposables=[],this._id=m._nextId++,this._onDispose=this.register(new v.EventEmitter),this.onDispose=this._onDispose.event}dispose(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),(0,_.disposeArray)(this._disposables),this._disposables.length=0)}register(x){return this._disposables.push(x),x}}o.Marker=m,m._nextId=1},7116:(d,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.DEFAULT_CHARSET=o.CHARSETS=void 0,o.CHARSETS={},o.DEFAULT_CHARSET=o.CHARSETS.B,o.CHARSETS[0]={"`":"◆",a:"▒",b:"␉",c:"␌",d:"␍",e:"␊",f:"°",g:"±",h:"",i:"␋",j:"┘",k:"┐",l:"┌",m:"└",n:"┼",o:"⎺",p:"⎻",q:"─",r:"⎼",s:"⎽",t:"├",u:"┤",v:"┴",w:"┬",x:"│",y:"≤",z:"≥","{":"π","|":"≠","}":"£","~":"·"},o.CHARSETS.A={"#":"£"},o.CHARSETS.B=void 0,o.CHARSETS[4]={"#":"£","@":"¾","[":"ij","\\":"½","]":"|","{":"¨","|":"f","}":"¼","~":"´"},o.CHARSETS.C=o.CHARSETS[5]={"[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},o.CHARSETS.R={"#":"£","@":"à","[":"°","\\":"ç","]":"§","{":"é","|":"ù","}":"è","~":"¨"},o.CHARSETS.Q={"@":"à","[":"â","\\":"ç","]":"ê","^":"î","`":"ô","{":"é","|":"ù","}":"è","~":"û"},o.CHARSETS.K={"@":"§","[":"Ä","\\":"Ö","]":"Ü","{":"ä","|":"ö","}":"ü","~":"ß"},o.CHARSETS.Y={"#":"£","@":"§","[":"°","\\":"ç","]":"é","`":"ù","{":"à","|":"ò","}":"è","~":"ì"},o.CHARSETS.E=o.CHARSETS[6]={"@":"Ä","[":"Æ","\\":"Ø","]":"Å","^":"Ü","`":"ä","{":"æ","|":"ø","}":"å","~":"ü"},o.CHARSETS.Z={"#":"£","@":"§","[":"¡","\\":"Ñ","]":"¿","{":"°","|":"ñ","}":"ç"},o.CHARSETS.H=o.CHARSETS[7]={"@":"É","[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},o.CHARSETS["="]={"#":"ù","@":"à","[":"é","\\":"ç","]":"ê","^":"î",_:"è","`":"ô","{":"ä","|":"ö","}":"ü","~":"û"}},2584:(d,o)=>{var c,v,_;Object.defineProperty(o,"__esModule",{value:!0}),o.C1_ESCAPED=o.C1=o.C0=void 0,(function(m){m.NUL="\0",m.SOH="",m.STX="",m.ETX="",m.EOT="",m.ENQ="",m.ACK="",m.BEL="\x07",m.BS="\b",m.HT=" ",m.LF=`
|
|
290
|
+
`,m.VT="\v",m.FF="\f",m.CR="\r",m.SO="",m.SI="",m.DLE="",m.DC1="",m.DC2="",m.DC3="",m.DC4="",m.NAK="",m.SYN="",m.ETB="",m.CAN="",m.EM="",m.SUB="",m.ESC="\x1B",m.FS="",m.GS="",m.RS="",m.US="",m.SP=" ",m.DEL=""})(c||(o.C0=c={})),(function(m){m.PAD="",m.HOP="",m.BPH="",m.NBH="",m.IND="",m.NEL="
",m.SSA="",m.ESA="",m.HTS="",m.HTJ="",m.VTS="",m.PLD="",m.PLU="",m.RI="",m.SS2="",m.SS3="",m.DCS="",m.PU1="",m.PU2="",m.STS="",m.CCH="",m.MW="",m.SPA="",m.EPA="",m.SOS="",m.SGCI="",m.SCI="",m.CSI="",m.ST="",m.OSC="",m.PM="",m.APC=""})(v||(o.C1=v={})),(function(m){m.ST=`${c.ESC}\\`})(_||(o.C1_ESCAPED=_={}))},7399:(d,o,c)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.evaluateKeyboardEvent=void 0;const v=c(2584),_={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};o.evaluateKeyboardEvent=function(m,C,x,w){const S={type:0,cancel:!1,key:void 0},g=(m.shiftKey?1:0)|(m.altKey?2:0)|(m.ctrlKey?4:0)|(m.metaKey?8:0);switch(m.keyCode){case 0:m.key==="UIKeyInputUpArrow"?S.key=C?v.C0.ESC+"OA":v.C0.ESC+"[A":m.key==="UIKeyInputLeftArrow"?S.key=C?v.C0.ESC+"OD":v.C0.ESC+"[D":m.key==="UIKeyInputRightArrow"?S.key=C?v.C0.ESC+"OC":v.C0.ESC+"[C":m.key==="UIKeyInputDownArrow"&&(S.key=C?v.C0.ESC+"OB":v.C0.ESC+"[B");break;case 8:S.key=m.ctrlKey?"\b":v.C0.DEL,m.altKey&&(S.key=v.C0.ESC+S.key);break;case 9:if(m.shiftKey){S.key=v.C0.ESC+"[Z";break}S.key=v.C0.HT,S.cancel=!0;break;case 13:S.key=m.altKey?v.C0.ESC+v.C0.CR:v.C0.CR,S.cancel=!0;break;case 27:S.key=v.C0.ESC,m.altKey&&(S.key=v.C0.ESC+v.C0.ESC),S.cancel=!0;break;case 37:if(m.metaKey)break;g?(S.key=v.C0.ESC+"[1;"+(g+1)+"D",S.key===v.C0.ESC+"[1;3D"&&(S.key=v.C0.ESC+(x?"b":"[1;5D"))):S.key=C?v.C0.ESC+"OD":v.C0.ESC+"[D";break;case 39:if(m.metaKey)break;g?(S.key=v.C0.ESC+"[1;"+(g+1)+"C",S.key===v.C0.ESC+"[1;3C"&&(S.key=v.C0.ESC+(x?"f":"[1;5C"))):S.key=C?v.C0.ESC+"OC":v.C0.ESC+"[C";break;case 38:if(m.metaKey)break;g?(S.key=v.C0.ESC+"[1;"+(g+1)+"A",x||S.key!==v.C0.ESC+"[1;3A"||(S.key=v.C0.ESC+"[1;5A")):S.key=C?v.C0.ESC+"OA":v.C0.ESC+"[A";break;case 40:if(m.metaKey)break;g?(S.key=v.C0.ESC+"[1;"+(g+1)+"B",x||S.key!==v.C0.ESC+"[1;3B"||(S.key=v.C0.ESC+"[1;5B")):S.key=C?v.C0.ESC+"OB":v.C0.ESC+"[B";break;case 45:m.shiftKey||m.ctrlKey||(S.key=v.C0.ESC+"[2~");break;case 46:S.key=g?v.C0.ESC+"[3;"+(g+1)+"~":v.C0.ESC+"[3~";break;case 36:S.key=g?v.C0.ESC+"[1;"+(g+1)+"H":C?v.C0.ESC+"OH":v.C0.ESC+"[H";break;case 35:S.key=g?v.C0.ESC+"[1;"+(g+1)+"F":C?v.C0.ESC+"OF":v.C0.ESC+"[F";break;case 33:m.shiftKey?S.type=2:m.ctrlKey?S.key=v.C0.ESC+"[5;"+(g+1)+"~":S.key=v.C0.ESC+"[5~";break;case 34:m.shiftKey?S.type=3:m.ctrlKey?S.key=v.C0.ESC+"[6;"+(g+1)+"~":S.key=v.C0.ESC+"[6~";break;case 112:S.key=g?v.C0.ESC+"[1;"+(g+1)+"P":v.C0.ESC+"OP";break;case 113:S.key=g?v.C0.ESC+"[1;"+(g+1)+"Q":v.C0.ESC+"OQ";break;case 114:S.key=g?v.C0.ESC+"[1;"+(g+1)+"R":v.C0.ESC+"OR";break;case 115:S.key=g?v.C0.ESC+"[1;"+(g+1)+"S":v.C0.ESC+"OS";break;case 116:S.key=g?v.C0.ESC+"[15;"+(g+1)+"~":v.C0.ESC+"[15~";break;case 117:S.key=g?v.C0.ESC+"[17;"+(g+1)+"~":v.C0.ESC+"[17~";break;case 118:S.key=g?v.C0.ESC+"[18;"+(g+1)+"~":v.C0.ESC+"[18~";break;case 119:S.key=g?v.C0.ESC+"[19;"+(g+1)+"~":v.C0.ESC+"[19~";break;case 120:S.key=g?v.C0.ESC+"[20;"+(g+1)+"~":v.C0.ESC+"[20~";break;case 121:S.key=g?v.C0.ESC+"[21;"+(g+1)+"~":v.C0.ESC+"[21~";break;case 122:S.key=g?v.C0.ESC+"[23;"+(g+1)+"~":v.C0.ESC+"[23~";break;case 123:S.key=g?v.C0.ESC+"[24;"+(g+1)+"~":v.C0.ESC+"[24~";break;default:if(!m.ctrlKey||m.shiftKey||m.altKey||m.metaKey)if(x&&!w||!m.altKey||m.metaKey)!x||m.altKey||m.ctrlKey||m.shiftKey||!m.metaKey?m.key&&!m.ctrlKey&&!m.altKey&&!m.metaKey&&m.keyCode>=48&&m.key.length===1?S.key=m.key:m.key&&m.ctrlKey&&(m.key==="_"&&(S.key=v.C0.US),m.key==="@"&&(S.key=v.C0.NUL)):m.keyCode===65&&(S.type=1);else{const f=_[m.keyCode],p=f==null?void 0:f[m.shiftKey?1:0];if(p)S.key=v.C0.ESC+p;else if(m.keyCode>=65&&m.keyCode<=90){const h=m.ctrlKey?m.keyCode-64:m.keyCode+32;let b=String.fromCharCode(h);m.shiftKey&&(b=b.toUpperCase()),S.key=v.C0.ESC+b}else if(m.keyCode===32)S.key=v.C0.ESC+(m.ctrlKey?v.C0.NUL:" ");else if(m.key==="Dead"&&m.code.startsWith("Key")){let h=m.code.slice(3,4);m.shiftKey||(h=h.toLowerCase()),S.key=v.C0.ESC+h,S.cancel=!0}}else m.keyCode>=65&&m.keyCode<=90?S.key=String.fromCharCode(m.keyCode-64):m.keyCode===32?S.key=v.C0.NUL:m.keyCode>=51&&m.keyCode<=55?S.key=String.fromCharCode(m.keyCode-51+27):m.keyCode===56?S.key=v.C0.DEL:m.keyCode===219?S.key=v.C0.ESC:m.keyCode===220?S.key=v.C0.FS:m.keyCode===221&&(S.key=v.C0.GS)}return S}},482:(d,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.Utf8ToUtf32=o.StringToUtf32=o.utf32ToString=o.stringFromCodePoint=void 0,o.stringFromCodePoint=function(c){return c>65535?(c-=65536,String.fromCharCode(55296+(c>>10))+String.fromCharCode(c%1024+56320)):String.fromCharCode(c)},o.utf32ToString=function(c,v=0,_=c.length){let m="";for(let C=v;C<_;++C){let x=c[C];x>65535?(x-=65536,m+=String.fromCharCode(55296+(x>>10))+String.fromCharCode(x%1024+56320)):m+=String.fromCharCode(x)}return m},o.StringToUtf32=class{constructor(){this._interim=0}clear(){this._interim=0}decode(c,v){const _=c.length;if(!_)return 0;let m=0,C=0;if(this._interim){const x=c.charCodeAt(C++);56320<=x&&x<=57343?v[m++]=1024*(this._interim-55296)+x-56320+65536:(v[m++]=this._interim,v[m++]=x),this._interim=0}for(let x=C;x<_;++x){const w=c.charCodeAt(x);if(55296<=w&&w<=56319){if(++x>=_)return this._interim=w,m;const S=c.charCodeAt(x);56320<=S&&S<=57343?v[m++]=1024*(w-55296)+S-56320+65536:(v[m++]=w,v[m++]=S)}else w!==65279&&(v[m++]=w)}return m}},o.Utf8ToUtf32=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(c,v){const _=c.length;if(!_)return 0;let m,C,x,w,S=0,g=0,f=0;if(this.interim[0]){let b=!1,E=this.interim[0];E&=(224&E)==192?31:(240&E)==224?15:7;let P,L=0;for(;(P=63&this.interim[++L])&&L<4;)E<<=6,E|=P;const R=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,A=R-L;for(;f<A;){if(f>=_)return 0;if(P=c[f++],(192&P)!=128){f--,b=!0;break}this.interim[L++]=P,E<<=6,E|=63&P}b||(R===2?E<128?f--:v[S++]=E:R===3?E<2048||E>=55296&&E<=57343||E===65279||(v[S++]=E):E<65536||E>1114111||(v[S++]=E)),this.interim.fill(0)}const p=_-4;let h=f;for(;h<_;){for(;!(!(h<p)||128&(m=c[h])||128&(C=c[h+1])||128&(x=c[h+2])||128&(w=c[h+3]));)v[S++]=m,v[S++]=C,v[S++]=x,v[S++]=w,h+=4;if(m=c[h++],m<128)v[S++]=m;else if((224&m)==192){if(h>=_)return this.interim[0]=m,S;if(C=c[h++],(192&C)!=128){h--;continue}if(g=(31&m)<<6|63&C,g<128){h--;continue}v[S++]=g}else if((240&m)==224){if(h>=_)return this.interim[0]=m,S;if(C=c[h++],(192&C)!=128){h--;continue}if(h>=_)return this.interim[0]=m,this.interim[1]=C,S;if(x=c[h++],(192&x)!=128){h--;continue}if(g=(15&m)<<12|(63&C)<<6|63&x,g<2048||g>=55296&&g<=57343||g===65279)continue;v[S++]=g}else if((248&m)==240){if(h>=_)return this.interim[0]=m,S;if(C=c[h++],(192&C)!=128){h--;continue}if(h>=_)return this.interim[0]=m,this.interim[1]=C,S;if(x=c[h++],(192&x)!=128){h--;continue}if(h>=_)return this.interim[0]=m,this.interim[1]=C,this.interim[2]=x,S;if(w=c[h++],(192&w)!=128){h--;continue}if(g=(7&m)<<18|(63&C)<<12|(63&x)<<6|63&w,g<65536||g>1114111)continue;v[S++]=g}}return S}}},225:(d,o,c)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.UnicodeV6=void 0;const v=c(1480),_=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],m=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]];let C;o.UnicodeV6=class{constructor(){if(this.version="6",!C){C=new Uint8Array(65536),C.fill(1),C[0]=0,C.fill(0,1,32),C.fill(0,127,160),C.fill(2,4352,4448),C[9001]=2,C[9002]=2,C.fill(2,11904,42192),C[12351]=1,C.fill(2,44032,55204),C.fill(2,63744,64256),C.fill(2,65040,65050),C.fill(2,65072,65136),C.fill(2,65280,65377),C.fill(2,65504,65511);for(let x=0;x<_.length;++x)C.fill(0,_[x][0],_[x][1]+1)}}wcwidth(x){return x<32?0:x<127?1:x<65536?C[x]:(function(w,S){let g,f=0,p=S.length-1;if(w<S[0][0]||w>S[p][1])return!1;for(;p>=f;)if(g=f+p>>1,w>S[g][1])f=g+1;else{if(!(w<S[g][0]))return!0;p=g-1}return!1})(x,m)?0:x>=131072&&x<=196605||x>=196608&&x<=262141?2:1}charProperties(x,w){let S=this.wcwidth(x),g=S===0&&w!==0;if(g){const f=v.UnicodeService.extractWidth(w);f===0?g=!1:f>S&&(S=f)}return v.UnicodeService.createPropertyValue(0,S,g)}}},5981:(d,o,c)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.WriteBuffer=void 0;const v=c(8460),_=c(844);class m extends _.Disposable{constructor(x){super(),this._action=x,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._didUserInput=!1,this._onWriteParsed=this.register(new v.EventEmitter),this.onWriteParsed=this._onWriteParsed.event}handleUserInput(){this._didUserInput=!0}writeSync(x,w){if(w!==void 0&&this._syncCalls>w)return void(this._syncCalls=0);if(this._pendingData+=x.length,this._writeBuffer.push(x),this._callbacks.push(void 0),this._syncCalls++,this._isSyncWriting)return;let S;for(this._isSyncWriting=!0;S=this._writeBuffer.shift();){this._action(S);const g=this._callbacks.shift();g&&g()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}write(x,w){if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");if(!this._writeBuffer.length){if(this._bufferOffset=0,this._didUserInput)return this._didUserInput=!1,this._pendingData+=x.length,this._writeBuffer.push(x),this._callbacks.push(w),void this._innerWrite();setTimeout((()=>this._innerWrite()))}this._pendingData+=x.length,this._writeBuffer.push(x),this._callbacks.push(w)}_innerWrite(x=0,w=!0){const S=x||Date.now();for(;this._writeBuffer.length>this._bufferOffset;){const g=this._writeBuffer[this._bufferOffset],f=this._action(g,w);if(f){const h=b=>Date.now()-S>=12?setTimeout((()=>this._innerWrite(0,b))):this._innerWrite(S,b);return void f.catch((b=>(queueMicrotask((()=>{throw b})),Promise.resolve(!1)))).then(h)}const p=this._callbacks[this._bufferOffset];if(p&&p(),this._bufferOffset++,this._pendingData-=g.length,Date.now()-S>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout((()=>this._innerWrite()))):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()}}o.WriteBuffer=m},5941:(d,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.toRgbString=o.parseColor=void 0;const c=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,v=/^[\da-f]+$/;function _(m,C){const x=m.toString(16),w=x.length<2?"0"+x:x;switch(C){case 4:return x[0];case 8:return w;case 12:return(w+w).slice(0,3);default:return w+w}}o.parseColor=function(m){if(!m)return;let C=m.toLowerCase();if(C.indexOf("rgb:")===0){C=C.slice(4);const x=c.exec(C);if(x){const w=x[1]?15:x[4]?255:x[7]?4095:65535;return[Math.round(parseInt(x[1]||x[4]||x[7]||x[10],16)/w*255),Math.round(parseInt(x[2]||x[5]||x[8]||x[11],16)/w*255),Math.round(parseInt(x[3]||x[6]||x[9]||x[12],16)/w*255)]}}else if(C.indexOf("#")===0&&(C=C.slice(1),v.exec(C)&&[3,6,9,12].includes(C.length))){const x=C.length/3,w=[0,0,0];for(let S=0;S<3;++S){const g=parseInt(C.slice(x*S,x*S+x),16);w[S]=x===1?g<<4:x===2?g:x===3?g>>4:g>>8}return w}},o.toRgbString=function(m,C=16){const[x,w,S]=m;return`rgb:${_(x,C)}/${_(w,C)}/${_(S,C)}`}},5770:(d,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.PAYLOAD_LIMIT=void 0,o.PAYLOAD_LIMIT=1e7},6351:(d,o,c)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.DcsHandler=o.DcsParser=void 0;const v=c(482),_=c(8742),m=c(5770),C=[];o.DcsParser=class{constructor(){this._handlers=Object.create(null),this._active=C,this._ident=0,this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=C}registerHandler(w,S){this._handlers[w]===void 0&&(this._handlers[w]=[]);const g=this._handlers[w];return g.push(S),{dispose:()=>{const f=g.indexOf(S);f!==-1&&g.splice(f,1)}}}clearHandler(w){this._handlers[w]&&delete this._handlers[w]}setHandlerFallback(w){this._handlerFb=w}reset(){if(this._active.length)for(let w=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;w>=0;--w)this._active[w].unhook(!1);this._stack.paused=!1,this._active=C,this._ident=0}hook(w,S){if(this.reset(),this._ident=w,this._active=this._handlers[w]||C,this._active.length)for(let g=this._active.length-1;g>=0;g--)this._active[g].hook(S);else this._handlerFb(this._ident,"HOOK",S)}put(w,S,g){if(this._active.length)for(let f=this._active.length-1;f>=0;f--)this._active[f].put(w,S,g);else this._handlerFb(this._ident,"PUT",(0,v.utf32ToString)(w,S,g))}unhook(w,S=!0){if(this._active.length){let g=!1,f=this._active.length-1,p=!1;if(this._stack.paused&&(f=this._stack.loopPosition-1,g=S,p=this._stack.fallThrough,this._stack.paused=!1),!p&&g===!1){for(;f>=0&&(g=this._active[f].unhook(w),g!==!0);f--)if(g instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=f,this._stack.fallThrough=!1,g;f--}for(;f>=0;f--)if(g=this._active[f].unhook(!1),g instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=f,this._stack.fallThrough=!0,g}else this._handlerFb(this._ident,"UNHOOK",w);this._active=C,this._ident=0}};const x=new _.Params;x.addParam(0),o.DcsHandler=class{constructor(w){this._handler=w,this._data="",this._params=x,this._hitLimit=!1}hook(w){this._params=w.length>1||w.params[0]?w.clone():x,this._data="",this._hitLimit=!1}put(w,S,g){this._hitLimit||(this._data+=(0,v.utf32ToString)(w,S,g),this._data.length>m.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}unhook(w){let S=!1;if(this._hitLimit)S=!1;else if(w&&(S=this._handler(this._data,this._params),S instanceof Promise))return S.then((g=>(this._params=x,this._data="",this._hitLimit=!1,g)));return this._params=x,this._data="",this._hitLimit=!1,S}}},2015:(d,o,c)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.EscapeSequenceParser=o.VT500_TRANSITION_TABLE=o.TransitionTable=void 0;const v=c(844),_=c(8742),m=c(6242),C=c(6351);class x{constructor(f){this.table=new Uint8Array(f)}setDefault(f,p){this.table.fill(f<<4|p)}add(f,p,h,b){this.table[p<<8|f]=h<<4|b}addMany(f,p,h,b){for(let E=0;E<f.length;E++)this.table[p<<8|f[E]]=h<<4|b}}o.TransitionTable=x;const w=160;o.VT500_TRANSITION_TABLE=(function(){const g=new x(4095),f=Array.apply(null,Array(256)).map(((L,R)=>R)),p=(L,R)=>f.slice(L,R),h=p(32,127),b=p(0,24);b.push(25),b.push.apply(b,p(28,32));const E=p(0,14);let P;for(P in g.setDefault(1,0),g.addMany(h,0,2,0),E)g.addMany([24,26,153,154],P,3,0),g.addMany(p(128,144),P,3,0),g.addMany(p(144,152),P,3,0),g.add(156,P,0,0),g.add(27,P,11,1),g.add(157,P,4,8),g.addMany([152,158,159],P,0,7),g.add(155,P,11,3),g.add(144,P,11,9);return g.addMany(b,0,3,0),g.addMany(b,1,3,1),g.add(127,1,0,1),g.addMany(b,8,0,8),g.addMany(b,3,3,3),g.add(127,3,0,3),g.addMany(b,4,3,4),g.add(127,4,0,4),g.addMany(b,6,3,6),g.addMany(b,5,3,5),g.add(127,5,0,5),g.addMany(b,2,3,2),g.add(127,2,0,2),g.add(93,1,4,8),g.addMany(h,8,5,8),g.add(127,8,5,8),g.addMany([156,27,24,26,7],8,6,0),g.addMany(p(28,32),8,0,8),g.addMany([88,94,95],1,0,7),g.addMany(h,7,0,7),g.addMany(b,7,0,7),g.add(156,7,0,0),g.add(127,7,0,7),g.add(91,1,11,3),g.addMany(p(64,127),3,7,0),g.addMany(p(48,60),3,8,4),g.addMany([60,61,62,63],3,9,4),g.addMany(p(48,60),4,8,4),g.addMany(p(64,127),4,7,0),g.addMany([60,61,62,63],4,0,6),g.addMany(p(32,64),6,0,6),g.add(127,6,0,6),g.addMany(p(64,127),6,0,0),g.addMany(p(32,48),3,9,5),g.addMany(p(32,48),5,9,5),g.addMany(p(48,64),5,0,6),g.addMany(p(64,127),5,7,0),g.addMany(p(32,48),4,9,5),g.addMany(p(32,48),1,9,2),g.addMany(p(32,48),2,9,2),g.addMany(p(48,127),2,10,0),g.addMany(p(48,80),1,10,0),g.addMany(p(81,88),1,10,0),g.addMany([89,90,92],1,10,0),g.addMany(p(96,127),1,10,0),g.add(80,1,11,9),g.addMany(b,9,0,9),g.add(127,9,0,9),g.addMany(p(28,32),9,0,9),g.addMany(p(32,48),9,9,12),g.addMany(p(48,60),9,8,10),g.addMany([60,61,62,63],9,9,10),g.addMany(b,11,0,11),g.addMany(p(32,128),11,0,11),g.addMany(p(28,32),11,0,11),g.addMany(b,10,0,10),g.add(127,10,0,10),g.addMany(p(28,32),10,0,10),g.addMany(p(48,60),10,8,10),g.addMany([60,61,62,63],10,0,11),g.addMany(p(32,48),10,9,12),g.addMany(b,12,0,12),g.add(127,12,0,12),g.addMany(p(28,32),12,0,12),g.addMany(p(32,48),12,9,12),g.addMany(p(48,64),12,0,11),g.addMany(p(64,127),12,12,13),g.addMany(p(64,127),10,12,13),g.addMany(p(64,127),9,12,13),g.addMany(b,13,13,13),g.addMany(h,13,13,13),g.add(127,13,0,13),g.addMany([27,156,24,26],13,14,0),g.add(w,0,2,0),g.add(w,8,5,8),g.add(w,6,0,6),g.add(w,11,0,11),g.add(w,13,13,13),g})();class S extends v.Disposable{constructor(f=o.VT500_TRANSITION_TABLE){super(),this._transitions=f,this._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},this.initialState=0,this.currentState=this.initialState,this._params=new _.Params,this._params.addParam(0),this._collect=0,this.precedingJoinState=0,this._printHandlerFb=(p,h,b)=>{},this._executeHandlerFb=p=>{},this._csiHandlerFb=(p,h)=>{},this._escHandlerFb=p=>{},this._errorHandlerFb=p=>p,this._printHandler=this._printHandlerFb,this._executeHandlers=Object.create(null),this._csiHandlers=Object.create(null),this._escHandlers=Object.create(null),this.register((0,v.toDisposable)((()=>{this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null)}))),this._oscParser=this.register(new m.OscParser),this._dcsParser=this.register(new C.DcsParser),this._errorHandler=this._errorHandlerFb,this.registerEscHandler({final:"\\"},(()=>!0))}_identifier(f,p=[64,126]){let h=0;if(f.prefix){if(f.prefix.length>1)throw new Error("only one byte as prefix supported");if(h=f.prefix.charCodeAt(0),h&&60>h||h>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(f.intermediates){if(f.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(let E=0;E<f.intermediates.length;++E){const P=f.intermediates.charCodeAt(E);if(32>P||P>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");h<<=8,h|=P}}if(f.final.length!==1)throw new Error("final must be a single byte");const b=f.final.charCodeAt(0);if(p[0]>b||b>p[1])throw new Error(`final must be in range ${p[0]} .. ${p[1]}`);return h<<=8,h|=b,h}identToString(f){const p=[];for(;f;)p.push(String.fromCharCode(255&f)),f>>=8;return p.reverse().join("")}setPrintHandler(f){this._printHandler=f}clearPrintHandler(){this._printHandler=this._printHandlerFb}registerEscHandler(f,p){const h=this._identifier(f,[48,126]);this._escHandlers[h]===void 0&&(this._escHandlers[h]=[]);const b=this._escHandlers[h];return b.push(p),{dispose:()=>{const E=b.indexOf(p);E!==-1&&b.splice(E,1)}}}clearEscHandler(f){this._escHandlers[this._identifier(f,[48,126])]&&delete this._escHandlers[this._identifier(f,[48,126])]}setEscHandlerFallback(f){this._escHandlerFb=f}setExecuteHandler(f,p){this._executeHandlers[f.charCodeAt(0)]=p}clearExecuteHandler(f){this._executeHandlers[f.charCodeAt(0)]&&delete this._executeHandlers[f.charCodeAt(0)]}setExecuteHandlerFallback(f){this._executeHandlerFb=f}registerCsiHandler(f,p){const h=this._identifier(f);this._csiHandlers[h]===void 0&&(this._csiHandlers[h]=[]);const b=this._csiHandlers[h];return b.push(p),{dispose:()=>{const E=b.indexOf(p);E!==-1&&b.splice(E,1)}}}clearCsiHandler(f){this._csiHandlers[this._identifier(f)]&&delete this._csiHandlers[this._identifier(f)]}setCsiHandlerFallback(f){this._csiHandlerFb=f}registerDcsHandler(f,p){return this._dcsParser.registerHandler(this._identifier(f),p)}clearDcsHandler(f){this._dcsParser.clearHandler(this._identifier(f))}setDcsHandlerFallback(f){this._dcsParser.setHandlerFallback(f)}registerOscHandler(f,p){return this._oscParser.registerHandler(f,p)}clearOscHandler(f){this._oscParser.clearHandler(f)}setOscHandlerFallback(f){this._oscParser.setHandlerFallback(f)}setErrorHandler(f){this._errorHandler=f}clearErrorHandler(){this._errorHandler=this._errorHandlerFb}reset(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0,this._parseStack.state!==0&&(this._parseStack.state=2,this._parseStack.handlers=[])}_preserveStack(f,p,h,b,E){this._parseStack.state=f,this._parseStack.handlers=p,this._parseStack.handlerPos=h,this._parseStack.transition=b,this._parseStack.chunkPos=E}parse(f,p,h){let b,E=0,P=0,L=0;if(this._parseStack.state)if(this._parseStack.state===2)this._parseStack.state=0,L=this._parseStack.chunkPos+1;else{if(h===void 0||this._parseStack.state===1)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");const R=this._parseStack.handlers;let A=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(h===!1&&A>-1){for(;A>=0&&(b=R[A](this._params),b!==!0);A--)if(b instanceof Promise)return this._parseStack.handlerPos=A,b}this._parseStack.handlers=[];break;case 4:if(h===!1&&A>-1){for(;A>=0&&(b=R[A](),b!==!0);A--)if(b instanceof Promise)return this._parseStack.handlerPos=A,b}this._parseStack.handlers=[];break;case 6:if(E=f[this._parseStack.chunkPos],b=this._dcsParser.unhook(E!==24&&E!==26,h),b)return b;E===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(E=f[this._parseStack.chunkPos],b=this._oscParser.end(E!==24&&E!==26,h),b)return b;E===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,L=this._parseStack.chunkPos+1,this.precedingJoinState=0,this.currentState=15&this._parseStack.transition}for(let R=L;R<p;++R){switch(E=f[R],P=this._transitions.table[this.currentState<<8|(E<160?E:w)],P>>4){case 2:for(let N=R+1;;++N){if(N>=p||(E=f[N])<32||E>126&&E<w){this._printHandler(f,R,N),R=N-1;break}if(++N>=p||(E=f[N])<32||E>126&&E<w){this._printHandler(f,R,N),R=N-1;break}if(++N>=p||(E=f[N])<32||E>126&&E<w){this._printHandler(f,R,N),R=N-1;break}if(++N>=p||(E=f[N])<32||E>126&&E<w){this._printHandler(f,R,N),R=N-1;break}}break;case 3:this._executeHandlers[E]?this._executeHandlers[E]():this._executeHandlerFb(E),this.precedingJoinState=0;break;case 0:break;case 1:if(this._errorHandler({position:R,code:E,currentState:this.currentState,collect:this._collect,params:this._params,abort:!1}).abort)return;break;case 7:const A=this._csiHandlers[this._collect<<8|E];let T=A?A.length-1:-1;for(;T>=0&&(b=A[T](this._params),b!==!0);T--)if(b instanceof Promise)return this._preserveStack(3,A,T,P,R),b;T<0&&this._csiHandlerFb(this._collect<<8|E,this._params),this.precedingJoinState=0;break;case 8:do switch(E){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(E-48)}while(++R<p&&(E=f[R])>47&&E<60);R--;break;case 9:this._collect<<=8,this._collect|=E;break;case 10:const $=this._escHandlers[this._collect<<8|E];let H=$?$.length-1:-1;for(;H>=0&&(b=$[H](),b!==!0);H--)if(b instanceof Promise)return this._preserveStack(4,$,H,P,R),b;H<0&&this._escHandlerFb(this._collect<<8|E),this.precedingJoinState=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|E,this._params);break;case 13:for(let N=R+1;;++N)if(N>=p||(E=f[N])===24||E===26||E===27||E>127&&E<w){this._dcsParser.put(f,R,N),R=N-1;break}break;case 14:if(b=this._dcsParser.unhook(E!==24&&E!==26),b)return this._preserveStack(6,[],0,P,R),b;E===27&&(P|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0;break;case 4:this._oscParser.start();break;case 5:for(let N=R+1;;N++)if(N>=p||(E=f[N])<32||E>127&&E<w){this._oscParser.put(f,R,N),R=N-1;break}break;case 6:if(b=this._oscParser.end(E!==24&&E!==26),b)return this._preserveStack(5,[],0,P,R),b;E===27&&(P|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0}this.currentState=15&P}}}o.EscapeSequenceParser=S},6242:(d,o,c)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.OscHandler=o.OscParser=void 0;const v=c(5770),_=c(482),m=[];o.OscParser=class{constructor(){this._state=0,this._active=m,this._id=-1,this._handlers=Object.create(null),this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}registerHandler(C,x){this._handlers[C]===void 0&&(this._handlers[C]=[]);const w=this._handlers[C];return w.push(x),{dispose:()=>{const S=w.indexOf(x);S!==-1&&w.splice(S,1)}}}clearHandler(C){this._handlers[C]&&delete this._handlers[C]}setHandlerFallback(C){this._handlerFb=C}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=m}reset(){if(this._state===2)for(let C=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;C>=0;--C)this._active[C].end(!1);this._stack.paused=!1,this._active=m,this._id=-1,this._state=0}_start(){if(this._active=this._handlers[this._id]||m,this._active.length)for(let C=this._active.length-1;C>=0;C--)this._active[C].start();else this._handlerFb(this._id,"START")}_put(C,x,w){if(this._active.length)for(let S=this._active.length-1;S>=0;S--)this._active[S].put(C,x,w);else this._handlerFb(this._id,"PUT",(0,_.utf32ToString)(C,x,w))}start(){this.reset(),this._state=1}put(C,x,w){if(this._state!==3){if(this._state===1)for(;x<w;){const S=C[x++];if(S===59){this._state=2,this._start();break}if(S<48||57<S)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+S-48}this._state===2&&w-x>0&&this._put(C,x,w)}}end(C,x=!0){if(this._state!==0){if(this._state!==3)if(this._state===1&&this._start(),this._active.length){let w=!1,S=this._active.length-1,g=!1;if(this._stack.paused&&(S=this._stack.loopPosition-1,w=x,g=this._stack.fallThrough,this._stack.paused=!1),!g&&w===!1){for(;S>=0&&(w=this._active[S].end(C),w!==!0);S--)if(w instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=S,this._stack.fallThrough=!1,w;S--}for(;S>=0;S--)if(w=this._active[S].end(!1),w instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=S,this._stack.fallThrough=!0,w}else this._handlerFb(this._id,"END",C);this._active=m,this._id=-1,this._state=0}}},o.OscHandler=class{constructor(C){this._handler=C,this._data="",this._hitLimit=!1}start(){this._data="",this._hitLimit=!1}put(C,x,w){this._hitLimit||(this._data+=(0,_.utf32ToString)(C,x,w),this._data.length>v.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}end(C){let x=!1;if(this._hitLimit)x=!1;else if(C&&(x=this._handler(this._data),x instanceof Promise))return x.then((w=>(this._data="",this._hitLimit=!1,w)));return this._data="",this._hitLimit=!1,x}}},8742:(d,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.Params=void 0;const c=2147483647;class v{static fromArray(m){const C=new v;if(!m.length)return C;for(let x=Array.isArray(m[0])?1:0;x<m.length;++x){const w=m[x];if(Array.isArray(w))for(let S=0;S<w.length;++S)C.addSubParam(w[S]);else C.addParam(w)}return C}constructor(m=32,C=32){if(this.maxLength=m,this.maxSubParamsLength=C,C>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(m),this.length=0,this._subParams=new Int32Array(C),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(m),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}clone(){const m=new v(this.maxLength,this.maxSubParamsLength);return m.params.set(this.params),m.length=this.length,m._subParams.set(this._subParams),m._subParamsLength=this._subParamsLength,m._subParamsIdx.set(this._subParamsIdx),m._rejectDigits=this._rejectDigits,m._rejectSubDigits=this._rejectSubDigits,m._digitIsSub=this._digitIsSub,m}toArray(){const m=[];for(let C=0;C<this.length;++C){m.push(this.params[C]);const x=this._subParamsIdx[C]>>8,w=255&this._subParamsIdx[C];w-x>0&&m.push(Array.prototype.slice.call(this._subParams,x,w))}return m}reset(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}addParam(m){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(m<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=m>c?c:m}}addSubParam(m){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(m<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=m>c?c:m,this._subParamsIdx[this.length-1]++}}hasSubParams(m){return(255&this._subParamsIdx[m])-(this._subParamsIdx[m]>>8)>0}getSubParams(m){const C=this._subParamsIdx[m]>>8,x=255&this._subParamsIdx[m];return x-C>0?this._subParams.subarray(C,x):null}getSubParamsAll(){const m={};for(let C=0;C<this.length;++C){const x=this._subParamsIdx[C]>>8,w=255&this._subParamsIdx[C];w-x>0&&(m[C]=this._subParams.slice(x,w))}return m}addDigit(m){let C;if(this._rejectDigits||!(C=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)return;const x=this._digitIsSub?this._subParams:this.params,w=x[C-1];x[C-1]=~w?Math.min(10*w+m,c):m}}o.Params=v},5741:(d,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.AddonManager=void 0,o.AddonManager=class{constructor(){this._addons=[]}dispose(){for(let c=this._addons.length-1;c>=0;c--)this._addons[c].instance.dispose()}loadAddon(c,v){const _={instance:v,dispose:v.dispose,isDisposed:!1};this._addons.push(_),v.dispose=()=>this._wrappedAddonDispose(_),v.activate(c)}_wrappedAddonDispose(c){if(c.isDisposed)return;let v=-1;for(let _=0;_<this._addons.length;_++)if(this._addons[_]===c){v=_;break}if(v===-1)throw new Error("Could not dispose an addon that has not been loaded");c.isDisposed=!0,c.dispose.apply(c.instance),this._addons.splice(v,1)}}},8771:(d,o,c)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.BufferApiView=void 0;const v=c(3785),_=c(511);o.BufferApiView=class{constructor(m,C){this._buffer=m,this.type=C}init(m){return this._buffer=m,this}get cursorY(){return this._buffer.y}get cursorX(){return this._buffer.x}get viewportY(){return this._buffer.ydisp}get baseY(){return this._buffer.ybase}get length(){return this._buffer.lines.length}getLine(m){const C=this._buffer.lines.get(m);if(C)return new v.BufferLineApiView(C)}getNullCell(){return new _.CellData}}},3785:(d,o,c)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.BufferLineApiView=void 0;const v=c(511);o.BufferLineApiView=class{constructor(_){this._line=_}get isWrapped(){return this._line.isWrapped}get length(){return this._line.length}getCell(_,m){if(!(_<0||_>=this._line.length))return m?(this._line.loadCell(_,m),m):this._line.loadCell(_,new v.CellData)}translateToString(_,m,C){return this._line.translateToString(_,m,C)}}},8285:(d,o,c)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.BufferNamespaceApi=void 0;const v=c(8771),_=c(8460),m=c(844);class C extends m.Disposable{constructor(w){super(),this._core=w,this._onBufferChange=this.register(new _.EventEmitter),this.onBufferChange=this._onBufferChange.event,this._normal=new v.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new v.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate((()=>this._onBufferChange.fire(this.active)))}get active(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")}get normal(){return this._normal.init(this._core.buffers.normal)}get alternate(){return this._alternate.init(this._core.buffers.alt)}}o.BufferNamespaceApi=C},7975:(d,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.ParserApi=void 0,o.ParserApi=class{constructor(c){this._core=c}registerCsiHandler(c,v){return this._core.registerCsiHandler(c,(_=>v(_.toArray())))}addCsiHandler(c,v){return this.registerCsiHandler(c,v)}registerDcsHandler(c,v){return this._core.registerDcsHandler(c,((_,m)=>v(_,m.toArray())))}addDcsHandler(c,v){return this.registerDcsHandler(c,v)}registerEscHandler(c,v){return this._core.registerEscHandler(c,v)}addEscHandler(c,v){return this.registerEscHandler(c,v)}registerOscHandler(c,v){return this._core.registerOscHandler(c,v)}addOscHandler(c,v){return this.registerOscHandler(c,v)}}},7090:(d,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.UnicodeApi=void 0,o.UnicodeApi=class{constructor(c){this._core=c}register(c){this._core.unicodeService.register(c)}get versions(){return this._core.unicodeService.versions}get activeVersion(){return this._core.unicodeService.activeVersion}set activeVersion(c){this._core.unicodeService.activeVersion=c}}},744:function(d,o,c){var v=this&&this.__decorate||function(g,f,p,h){var b,E=arguments.length,P=E<3?f:h===null?h=Object.getOwnPropertyDescriptor(f,p):h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")P=Reflect.decorate(g,f,p,h);else for(var L=g.length-1;L>=0;L--)(b=g[L])&&(P=(E<3?b(P):E>3?b(f,p,P):b(f,p))||P);return E>3&&P&&Object.defineProperty(f,p,P),P},_=this&&this.__param||function(g,f){return function(p,h){f(p,h,g)}};Object.defineProperty(o,"__esModule",{value:!0}),o.BufferService=o.MINIMUM_ROWS=o.MINIMUM_COLS=void 0;const m=c(8460),C=c(844),x=c(5295),w=c(2585);o.MINIMUM_COLS=2,o.MINIMUM_ROWS=1;let S=o.BufferService=class extends C.Disposable{get buffer(){return this.buffers.active}constructor(g){super(),this.isUserScrolling=!1,this._onResize=this.register(new m.EventEmitter),this.onResize=this._onResize.event,this._onScroll=this.register(new m.EventEmitter),this.onScroll=this._onScroll.event,this.cols=Math.max(g.rawOptions.cols||0,o.MINIMUM_COLS),this.rows=Math.max(g.rawOptions.rows||0,o.MINIMUM_ROWS),this.buffers=this.register(new x.BufferSet(g,this))}resize(g,f){this.cols=g,this.rows=f,this.buffers.resize(g,f),this._onResize.fire({cols:g,rows:f})}reset(){this.buffers.reset(),this.isUserScrolling=!1}scroll(g,f=!1){const p=this.buffer;let h;h=this._cachedBlankLine,h&&h.length===this.cols&&h.getFg(0)===g.fg&&h.getBg(0)===g.bg||(h=p.getBlankLine(g,f),this._cachedBlankLine=h),h.isWrapped=f;const b=p.ybase+p.scrollTop,E=p.ybase+p.scrollBottom;if(p.scrollTop===0){const P=p.lines.isFull;E===p.lines.length-1?P?p.lines.recycle().copyFrom(h):p.lines.push(h.clone()):p.lines.splice(E+1,0,h.clone()),P?this.isUserScrolling&&(p.ydisp=Math.max(p.ydisp-1,0)):(p.ybase++,this.isUserScrolling||p.ydisp++)}else{const P=E-b+1;p.lines.shiftElements(b+1,P-1,-1),p.lines.set(E,h.clone())}this.isUserScrolling||(p.ydisp=p.ybase),this._onScroll.fire(p.ydisp)}scrollLines(g,f,p){const h=this.buffer;if(g<0){if(h.ydisp===0)return;this.isUserScrolling=!0}else g+h.ydisp>=h.ybase&&(this.isUserScrolling=!1);const b=h.ydisp;h.ydisp=Math.max(Math.min(h.ydisp+g,h.ybase),0),b!==h.ydisp&&(f||this._onScroll.fire(h.ydisp))}};o.BufferService=S=v([_(0,w.IOptionsService)],S)},7994:(d,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.CharsetService=void 0,o.CharsetService=class{constructor(){this.glevel=0,this._charsets=[]}reset(){this.charset=void 0,this._charsets=[],this.glevel=0}setgLevel(c){this.glevel=c,this.charset=this._charsets[c]}setgCharset(c,v){this._charsets[c]=v,this.glevel===c&&(this.charset=v)}}},1753:function(d,o,c){var v=this&&this.__decorate||function(h,b,E,P){var L,R=arguments.length,A=R<3?b:P===null?P=Object.getOwnPropertyDescriptor(b,E):P;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")A=Reflect.decorate(h,b,E,P);else for(var T=h.length-1;T>=0;T--)(L=h[T])&&(A=(R<3?L(A):R>3?L(b,E,A):L(b,E))||A);return R>3&&A&&Object.defineProperty(b,E,A),A},_=this&&this.__param||function(h,b){return function(E,P){b(E,P,h)}};Object.defineProperty(o,"__esModule",{value:!0}),o.CoreMouseService=void 0;const m=c(2585),C=c(8460),x=c(844),w={NONE:{events:0,restrict:()=>!1},X10:{events:1,restrict:h=>h.button!==4&&h.action===1&&(h.ctrl=!1,h.alt=!1,h.shift=!1,!0)},VT200:{events:19,restrict:h=>h.action!==32},DRAG:{events:23,restrict:h=>h.action!==32||h.button!==3},ANY:{events:31,restrict:h=>!0}};function S(h,b){let E=(h.ctrl?16:0)|(h.shift?4:0)|(h.alt?8:0);return h.button===4?(E|=64,E|=h.action):(E|=3&h.button,4&h.button&&(E|=64),8&h.button&&(E|=128),h.action===32?E|=32:h.action!==0||b||(E|=3)),E}const g=String.fromCharCode,f={DEFAULT:h=>{const b=[S(h,!1)+32,h.col+32,h.row+32];return b[0]>255||b[1]>255||b[2]>255?"":`\x1B[M${g(b[0])}${g(b[1])}${g(b[2])}`},SGR:h=>{const b=h.action===0&&h.button!==4?"m":"M";return`\x1B[<${S(h,!0)};${h.col};${h.row}${b}`},SGR_PIXELS:h=>{const b=h.action===0&&h.button!==4?"m":"M";return`\x1B[<${S(h,!0)};${h.x};${h.y}${b}`}};let p=o.CoreMouseService=class extends x.Disposable{constructor(h,b){super(),this._bufferService=h,this._coreService=b,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._lastEvent=null,this._onProtocolChange=this.register(new C.EventEmitter),this.onProtocolChange=this._onProtocolChange.event;for(const E of Object.keys(w))this.addProtocol(E,w[E]);for(const E of Object.keys(f))this.addEncoding(E,f[E]);this.reset()}addProtocol(h,b){this._protocols[h]=b}addEncoding(h,b){this._encodings[h]=b}get activeProtocol(){return this._activeProtocol}get areMouseEventsActive(){return this._protocols[this._activeProtocol].events!==0}set activeProtocol(h){if(!this._protocols[h])throw new Error(`unknown protocol "${h}"`);this._activeProtocol=h,this._onProtocolChange.fire(this._protocols[h].events)}get activeEncoding(){return this._activeEncoding}set activeEncoding(h){if(!this._encodings[h])throw new Error(`unknown encoding "${h}"`);this._activeEncoding=h}reset(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null}triggerMouseEvent(h){if(h.col<0||h.col>=this._bufferService.cols||h.row<0||h.row>=this._bufferService.rows||h.button===4&&h.action===32||h.button===3&&h.action!==32||h.button!==4&&(h.action===2||h.action===3)||(h.col++,h.row++,h.action===32&&this._lastEvent&&this._equalEvents(this._lastEvent,h,this._activeEncoding==="SGR_PIXELS"))||!this._protocols[this._activeProtocol].restrict(h))return!1;const b=this._encodings[this._activeEncoding](h);return b&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(b):this._coreService.triggerDataEvent(b,!0)),this._lastEvent=h,!0}explainEvents(h){return{down:!!(1&h),up:!!(2&h),drag:!!(4&h),move:!!(8&h),wheel:!!(16&h)}}_equalEvents(h,b,E){if(E){if(h.x!==b.x||h.y!==b.y)return!1}else if(h.col!==b.col||h.row!==b.row)return!1;return h.button===b.button&&h.action===b.action&&h.ctrl===b.ctrl&&h.alt===b.alt&&h.shift===b.shift}};o.CoreMouseService=p=v([_(0,m.IBufferService),_(1,m.ICoreService)],p)},6975:function(d,o,c){var v=this&&this.__decorate||function(p,h,b,E){var P,L=arguments.length,R=L<3?h:E===null?E=Object.getOwnPropertyDescriptor(h,b):E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")R=Reflect.decorate(p,h,b,E);else for(var A=p.length-1;A>=0;A--)(P=p[A])&&(R=(L<3?P(R):L>3?P(h,b,R):P(h,b))||R);return L>3&&R&&Object.defineProperty(h,b,R),R},_=this&&this.__param||function(p,h){return function(b,E){h(b,E,p)}};Object.defineProperty(o,"__esModule",{value:!0}),o.CoreService=void 0;const m=c(1439),C=c(8460),x=c(844),w=c(2585),S=Object.freeze({insertMode:!1}),g=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0});let f=o.CoreService=class extends x.Disposable{constructor(p,h,b){super(),this._bufferService=p,this._logService=h,this._optionsService=b,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=this.register(new C.EventEmitter),this.onData=this._onData.event,this._onUserInput=this.register(new C.EventEmitter),this.onUserInput=this._onUserInput.event,this._onBinary=this.register(new C.EventEmitter),this.onBinary=this._onBinary.event,this._onRequestScrollToBottom=this.register(new C.EventEmitter),this.onRequestScrollToBottom=this._onRequestScrollToBottom.event,this.modes=(0,m.clone)(S),this.decPrivateModes=(0,m.clone)(g)}reset(){this.modes=(0,m.clone)(S),this.decPrivateModes=(0,m.clone)(g)}triggerDataEvent(p,h=!1){if(this._optionsService.rawOptions.disableStdin)return;const b=this._bufferService.buffer;h&&this._optionsService.rawOptions.scrollOnUserInput&&b.ybase!==b.ydisp&&this._onRequestScrollToBottom.fire(),h&&this._onUserInput.fire(),this._logService.debug(`sending data "${p}"`,(()=>p.split("").map((E=>E.charCodeAt(0))))),this._onData.fire(p)}triggerBinaryEvent(p){this._optionsService.rawOptions.disableStdin||(this._logService.debug(`sending binary "${p}"`,(()=>p.split("").map((h=>h.charCodeAt(0))))),this._onBinary.fire(p))}};o.CoreService=f=v([_(0,w.IBufferService),_(1,w.ILogService),_(2,w.IOptionsService)],f)},9074:(d,o,c)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.DecorationService=void 0;const v=c(8055),_=c(8460),m=c(844),C=c(6106);let x=0,w=0;class S extends m.Disposable{get decorations(){return this._decorations.values()}constructor(){super(),this._decorations=new C.SortedList((p=>p==null?void 0:p.marker.line)),this._onDecorationRegistered=this.register(new _.EventEmitter),this.onDecorationRegistered=this._onDecorationRegistered.event,this._onDecorationRemoved=this.register(new _.EventEmitter),this.onDecorationRemoved=this._onDecorationRemoved.event,this.register((0,m.toDisposable)((()=>this.reset())))}registerDecoration(p){if(p.marker.isDisposed)return;const h=new g(p);if(h){const b=h.marker.onDispose((()=>h.dispose()));h.onDispose((()=>{h&&(this._decorations.delete(h)&&this._onDecorationRemoved.fire(h),b.dispose())})),this._decorations.insert(h),this._onDecorationRegistered.fire(h)}return h}reset(){for(const p of this._decorations.values())p.dispose();this._decorations.clear()}*getDecorationsAtCell(p,h,b){let E=0,P=0;for(const L of this._decorations.getKeyIterator(h))E=L.options.x??0,P=E+(L.options.width??1),p>=E&&p<P&&(!b||(L.options.layer??"bottom")===b)&&(yield L)}forEachDecorationAtCell(p,h,b,E){this._decorations.forEachByKey(h,(P=>{x=P.options.x??0,w=x+(P.options.width??1),p>=x&&p<w&&(!b||(P.options.layer??"bottom")===b)&&E(P)}))}}o.DecorationService=S;class g extends m.Disposable{get isDisposed(){return this._isDisposed}get backgroundColorRGB(){return this._cachedBg===null&&(this.options.backgroundColor?this._cachedBg=v.css.toColor(this.options.backgroundColor):this._cachedBg=void 0),this._cachedBg}get foregroundColorRGB(){return this._cachedFg===null&&(this.options.foregroundColor?this._cachedFg=v.css.toColor(this.options.foregroundColor):this._cachedFg=void 0),this._cachedFg}constructor(p){super(),this.options=p,this.onRenderEmitter=this.register(new _.EventEmitter),this.onRender=this.onRenderEmitter.event,this._onDispose=this.register(new _.EventEmitter),this.onDispose=this._onDispose.event,this._cachedBg=null,this._cachedFg=null,this.marker=p.marker,this.options.overviewRulerOptions&&!this.options.overviewRulerOptions.position&&(this.options.overviewRulerOptions.position="full")}dispose(){this._onDispose.fire(),super.dispose()}}},4348:(d,o,c)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.InstantiationService=o.ServiceCollection=void 0;const v=c(2585),_=c(8343);class m{constructor(...x){this._entries=new Map;for(const[w,S]of x)this.set(w,S)}set(x,w){const S=this._entries.get(x);return this._entries.set(x,w),S}forEach(x){for(const[w,S]of this._entries.entries())x(w,S)}has(x){return this._entries.has(x)}get(x){return this._entries.get(x)}}o.ServiceCollection=m,o.InstantiationService=class{constructor(){this._services=new m,this._services.set(v.IInstantiationService,this)}setService(C,x){this._services.set(C,x)}getService(C){return this._services.get(C)}createInstance(C,...x){const w=(0,_.getServiceDependencies)(C).sort(((f,p)=>f.index-p.index)),S=[];for(const f of w){const p=this._services.get(f.id);if(!p)throw new Error(`[createInstance] ${C.name} depends on UNKNOWN service ${f.id}.`);S.push(p)}const g=w.length>0?w[0].index:x.length;if(x.length!==g)throw new Error(`[createInstance] First service dependency of ${C.name} at position ${g+1} conflicts with ${x.length} static arguments`);return new C(...x,...S)}}},7866:function(d,o,c){var v=this&&this.__decorate||function(g,f,p,h){var b,E=arguments.length,P=E<3?f:h===null?h=Object.getOwnPropertyDescriptor(f,p):h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")P=Reflect.decorate(g,f,p,h);else for(var L=g.length-1;L>=0;L--)(b=g[L])&&(P=(E<3?b(P):E>3?b(f,p,P):b(f,p))||P);return E>3&&P&&Object.defineProperty(f,p,P),P},_=this&&this.__param||function(g,f){return function(p,h){f(p,h,g)}};Object.defineProperty(o,"__esModule",{value:!0}),o.traceCall=o.setTraceLogger=o.LogService=void 0;const m=c(844),C=c(2585),x={trace:C.LogLevelEnum.TRACE,debug:C.LogLevelEnum.DEBUG,info:C.LogLevelEnum.INFO,warn:C.LogLevelEnum.WARN,error:C.LogLevelEnum.ERROR,off:C.LogLevelEnum.OFF};let w,S=o.LogService=class extends m.Disposable{get logLevel(){return this._logLevel}constructor(g){super(),this._optionsService=g,this._logLevel=C.LogLevelEnum.OFF,this._updateLogLevel(),this.register(this._optionsService.onSpecificOptionChange("logLevel",(()=>this._updateLogLevel()))),w=this}_updateLogLevel(){this._logLevel=x[this._optionsService.rawOptions.logLevel]}_evalLazyOptionalParams(g){for(let f=0;f<g.length;f++)typeof g[f]=="function"&&(g[f]=g[f]())}_log(g,f,p){this._evalLazyOptionalParams(p),g.call(console,(this._optionsService.options.logger?"":"xterm.js: ")+f,...p)}trace(g,...f){var p;this._logLevel<=C.LogLevelEnum.TRACE&&this._log(((p=this._optionsService.options.logger)==null?void 0:p.trace.bind(this._optionsService.options.logger))??console.log,g,f)}debug(g,...f){var p;this._logLevel<=C.LogLevelEnum.DEBUG&&this._log(((p=this._optionsService.options.logger)==null?void 0:p.debug.bind(this._optionsService.options.logger))??console.log,g,f)}info(g,...f){var p;this._logLevel<=C.LogLevelEnum.INFO&&this._log(((p=this._optionsService.options.logger)==null?void 0:p.info.bind(this._optionsService.options.logger))??console.info,g,f)}warn(g,...f){var p;this._logLevel<=C.LogLevelEnum.WARN&&this._log(((p=this._optionsService.options.logger)==null?void 0:p.warn.bind(this._optionsService.options.logger))??console.warn,g,f)}error(g,...f){var p;this._logLevel<=C.LogLevelEnum.ERROR&&this._log(((p=this._optionsService.options.logger)==null?void 0:p.error.bind(this._optionsService.options.logger))??console.error,g,f)}};o.LogService=S=v([_(0,C.IOptionsService)],S),o.setTraceLogger=function(g){w=g},o.traceCall=function(g,f,p){if(typeof p.value!="function")throw new Error("not supported");const h=p.value;p.value=function(...b){if(w.logLevel!==C.LogLevelEnum.TRACE)return h.apply(this,b);w.trace(`GlyphRenderer#${h.name}(${b.map((P=>JSON.stringify(P))).join(", ")})`);const E=h.apply(this,b);return w.trace(`GlyphRenderer#${h.name} return`,E),E}}},7302:(d,o,c)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.OptionsService=o.DEFAULT_OPTIONS=void 0;const v=c(8460),_=c(844),m=c(6114);o.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,cursorInactiveStyle:"outline",customGlyphs:!0,drawBoldTextInBrightColors:!0,documentOverride:null,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",ignoreBracketedPasteMode:!1,lineHeight:1,letterSpacing:0,linkHandler:null,logLevel:"info",logger:null,scrollback:1e3,scrollOnUserInput:!0,scrollSensitivity:1,screenReaderMode:!1,smoothScrollDuration:0,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!1,allowTransparency:!1,tabStopWidth:8,theme:{},rescaleOverlappingGlyphs:!1,rightClickSelectsWord:m.isMac,windowOptions:{},windowsMode:!1,windowsPty:{},wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRulerWidth:0};const C=["normal","bold","100","200","300","400","500","600","700","800","900"];class x extends _.Disposable{constructor(S){super(),this._onOptionChange=this.register(new v.EventEmitter),this.onOptionChange=this._onOptionChange.event;const g={...o.DEFAULT_OPTIONS};for(const f in S)if(f in g)try{const p=S[f];g[f]=this._sanitizeAndValidateOption(f,p)}catch(p){console.error(p)}this.rawOptions=g,this.options={...g},this._setupOptions(),this.register((0,_.toDisposable)((()=>{this.rawOptions.linkHandler=null,this.rawOptions.documentOverride=null})))}onSpecificOptionChange(S,g){return this.onOptionChange((f=>{f===S&&g(this.rawOptions[S])}))}onMultipleOptionChange(S,g){return this.onOptionChange((f=>{S.indexOf(f)!==-1&&g()}))}_setupOptions(){const S=f=>{if(!(f in o.DEFAULT_OPTIONS))throw new Error(`No option with key "${f}"`);return this.rawOptions[f]},g=(f,p)=>{if(!(f in o.DEFAULT_OPTIONS))throw new Error(`No option with key "${f}"`);p=this._sanitizeAndValidateOption(f,p),this.rawOptions[f]!==p&&(this.rawOptions[f]=p,this._onOptionChange.fire(f))};for(const f in this.rawOptions){const p={get:S.bind(this,f),set:g.bind(this,f)};Object.defineProperty(this.options,f,p)}}_sanitizeAndValidateOption(S,g){switch(S){case"cursorStyle":if(g||(g=o.DEFAULT_OPTIONS[S]),!(function(f){return f==="block"||f==="underline"||f==="bar"})(g))throw new Error(`"${g}" is not a valid value for ${S}`);break;case"wordSeparator":g||(g=o.DEFAULT_OPTIONS[S]);break;case"fontWeight":case"fontWeightBold":if(typeof g=="number"&&1<=g&&g<=1e3)break;g=C.includes(g)?g:o.DEFAULT_OPTIONS[S];break;case"cursorWidth":g=Math.floor(g);case"lineHeight":case"tabStopWidth":if(g<1)throw new Error(`${S} cannot be less than 1, value: ${g}`);break;case"minimumContrastRatio":g=Math.max(1,Math.min(21,Math.round(10*g)/10));break;case"scrollback":if((g=Math.min(g,4294967295))<0)throw new Error(`${S} cannot be less than 0, value: ${g}`);break;case"fastScrollSensitivity":case"scrollSensitivity":if(g<=0)throw new Error(`${S} cannot be less than or equal to 0, value: ${g}`);break;case"rows":case"cols":if(!g&&g!==0)throw new Error(`${S} must be numeric, value: ${g}`);break;case"windowsPty":g=g??{}}return g}}o.OptionsService=x},2660:function(d,o,c){var v=this&&this.__decorate||function(x,w,S,g){var f,p=arguments.length,h=p<3?w:g===null?g=Object.getOwnPropertyDescriptor(w,S):g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(x,w,S,g);else for(var b=x.length-1;b>=0;b--)(f=x[b])&&(h=(p<3?f(h):p>3?f(w,S,h):f(w,S))||h);return p>3&&h&&Object.defineProperty(w,S,h),h},_=this&&this.__param||function(x,w){return function(S,g){w(S,g,x)}};Object.defineProperty(o,"__esModule",{value:!0}),o.OscLinkService=void 0;const m=c(2585);let C=o.OscLinkService=class{constructor(x){this._bufferService=x,this._nextId=1,this._entriesWithId=new Map,this._dataByLinkId=new Map}registerLink(x){const w=this._bufferService.buffer;if(x.id===void 0){const b=w.addMarker(w.ybase+w.y),E={data:x,id:this._nextId++,lines:[b]};return b.onDispose((()=>this._removeMarkerFromLink(E,b))),this._dataByLinkId.set(E.id,E),E.id}const S=x,g=this._getEntryIdKey(S),f=this._entriesWithId.get(g);if(f)return this.addLineToLink(f.id,w.ybase+w.y),f.id;const p=w.addMarker(w.ybase+w.y),h={id:this._nextId++,key:this._getEntryIdKey(S),data:S,lines:[p]};return p.onDispose((()=>this._removeMarkerFromLink(h,p))),this._entriesWithId.set(h.key,h),this._dataByLinkId.set(h.id,h),h.id}addLineToLink(x,w){const S=this._dataByLinkId.get(x);if(S&&S.lines.every((g=>g.line!==w))){const g=this._bufferService.buffer.addMarker(w);S.lines.push(g),g.onDispose((()=>this._removeMarkerFromLink(S,g)))}}getLinkData(x){var w;return(w=this._dataByLinkId.get(x))==null?void 0:w.data}_getEntryIdKey(x){return`${x.id};;${x.uri}`}_removeMarkerFromLink(x,w){const S=x.lines.indexOf(w);S!==-1&&(x.lines.splice(S,1),x.lines.length===0&&(x.data.id!==void 0&&this._entriesWithId.delete(x.key),this._dataByLinkId.delete(x.id)))}};o.OscLinkService=C=v([_(0,m.IBufferService)],C)},8343:(d,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.createDecorator=o.getServiceDependencies=o.serviceRegistry=void 0;const c="di$target",v="di$dependencies";o.serviceRegistry=new Map,o.getServiceDependencies=function(_){return _[v]||[]},o.createDecorator=function(_){if(o.serviceRegistry.has(_))return o.serviceRegistry.get(_);const m=function(C,x,w){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");(function(S,g,f){g[c]===g?g[v].push({id:S,index:f}):(g[v]=[{id:S,index:f}],g[c]=g)})(m,C,w)};return m.toString=()=>_,o.serviceRegistry.set(_,m),m}},2585:(d,o,c)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.IDecorationService=o.IUnicodeService=o.IOscLinkService=o.IOptionsService=o.ILogService=o.LogLevelEnum=o.IInstantiationService=o.ICharsetService=o.ICoreService=o.ICoreMouseService=o.IBufferService=void 0;const v=c(8343);var _;o.IBufferService=(0,v.createDecorator)("BufferService"),o.ICoreMouseService=(0,v.createDecorator)("CoreMouseService"),o.ICoreService=(0,v.createDecorator)("CoreService"),o.ICharsetService=(0,v.createDecorator)("CharsetService"),o.IInstantiationService=(0,v.createDecorator)("InstantiationService"),(function(m){m[m.TRACE=0]="TRACE",m[m.DEBUG=1]="DEBUG",m[m.INFO=2]="INFO",m[m.WARN=3]="WARN",m[m.ERROR=4]="ERROR",m[m.OFF=5]="OFF"})(_||(o.LogLevelEnum=_={})),o.ILogService=(0,v.createDecorator)("LogService"),o.IOptionsService=(0,v.createDecorator)("OptionsService"),o.IOscLinkService=(0,v.createDecorator)("OscLinkService"),o.IUnicodeService=(0,v.createDecorator)("UnicodeService"),o.IDecorationService=(0,v.createDecorator)("DecorationService")},1480:(d,o,c)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.UnicodeService=void 0;const v=c(8460),_=c(225);class m{static extractShouldJoin(x){return(1&x)!=0}static extractWidth(x){return x>>1&3}static extractCharKind(x){return x>>3}static createPropertyValue(x,w,S=!1){return(16777215&x)<<3|(3&w)<<1|(S?1:0)}constructor(){this._providers=Object.create(null),this._active="",this._onChange=new v.EventEmitter,this.onChange=this._onChange.event;const x=new _.UnicodeV6;this.register(x),this._active=x.version,this._activeProvider=x}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(x){if(!this._providers[x])throw new Error(`unknown Unicode version "${x}"`);this._active=x,this._activeProvider=this._providers[x],this._onChange.fire(x)}register(x){this._providers[x.version]=x}wcwidth(x){return this._activeProvider.wcwidth(x)}getStringCellWidth(x){let w=0,S=0;const g=x.length;for(let f=0;f<g;++f){let p=x.charCodeAt(f);if(55296<=p&&p<=56319){if(++f>=g)return w+this.wcwidth(p);const E=x.charCodeAt(f);56320<=E&&E<=57343?p=1024*(p-55296)+E-56320+65536:w+=this.wcwidth(E)}const h=this.charProperties(p,S);let b=m.extractWidth(h);m.extractShouldJoin(h)&&(b-=m.extractWidth(S)),w+=b,S=h}return w}charProperties(x,w){return this._activeProvider.charProperties(x,w)}}o.UnicodeService=m}},s={};function a(d){var o=s[d];if(o!==void 0)return o.exports;var c=s[d]={exports:{}};return n[d].call(c.exports,c,c.exports,a),c.exports}var u={};return(()=>{var d=u;Object.defineProperty(d,"__esModule",{value:!0}),d.Terminal=void 0;const o=a(9042),c=a(3236),v=a(844),_=a(5741),m=a(8285),C=a(7975),x=a(7090),w=["cols","rows"];class S extends v.Disposable{constructor(f){super(),this._core=this.register(new c.Terminal(f)),this._addonManager=this.register(new _.AddonManager),this._publicOptions={...this._core.options};const p=b=>this._core.options[b],h=(b,E)=>{this._checkReadonlyOptions(b),this._core.options[b]=E};for(const b in this._core.options){const E={get:p.bind(this,b),set:h.bind(this,b)};Object.defineProperty(this._publicOptions,b,E)}}_checkReadonlyOptions(f){if(w.includes(f))throw new Error(`Option "${f}" can only be set in the constructor`)}_checkProposedApi(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")}get onBell(){return this._core.onBell}get onBinary(){return this._core.onBinary}get onCursorMove(){return this._core.onCursorMove}get onData(){return this._core.onData}get onKey(){return this._core.onKey}get onLineFeed(){return this._core.onLineFeed}get onRender(){return this._core.onRender}get onResize(){return this._core.onResize}get onScroll(){return this._core.onScroll}get onSelectionChange(){return this._core.onSelectionChange}get onTitleChange(){return this._core.onTitleChange}get onWriteParsed(){return this._core.onWriteParsed}get element(){return this._core.element}get parser(){return this._parser||(this._parser=new C.ParserApi(this._core)),this._parser}get unicode(){return this._checkProposedApi(),new x.UnicodeApi(this._core)}get textarea(){return this._core.textarea}get rows(){return this._core.rows}get cols(){return this._core.cols}get buffer(){return this._buffer||(this._buffer=this.register(new m.BufferNamespaceApi(this._core))),this._buffer}get markers(){return this._checkProposedApi(),this._core.markers}get modes(){const f=this._core.coreService.decPrivateModes;let p="none";switch(this._core.coreMouseService.activeProtocol){case"X10":p="x10";break;case"VT200":p="vt200";break;case"DRAG":p="drag";break;case"ANY":p="any"}return{applicationCursorKeysMode:f.applicationCursorKeys,applicationKeypadMode:f.applicationKeypad,bracketedPasteMode:f.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:p,originMode:f.origin,reverseWraparoundMode:f.reverseWraparound,sendFocusMode:f.sendFocus,wraparoundMode:f.wraparound}}get options(){return this._publicOptions}set options(f){for(const p in f)this._publicOptions[p]=f[p]}blur(){this._core.blur()}focus(){this._core.focus()}input(f,p=!0){this._core.input(f,p)}resize(f,p){this._verifyIntegers(f,p),this._core.resize(f,p)}open(f){this._core.open(f)}attachCustomKeyEventHandler(f){this._core.attachCustomKeyEventHandler(f)}attachCustomWheelEventHandler(f){this._core.attachCustomWheelEventHandler(f)}registerLinkProvider(f){return this._core.registerLinkProvider(f)}registerCharacterJoiner(f){return this._checkProposedApi(),this._core.registerCharacterJoiner(f)}deregisterCharacterJoiner(f){this._checkProposedApi(),this._core.deregisterCharacterJoiner(f)}registerMarker(f=0){return this._verifyIntegers(f),this._core.registerMarker(f)}registerDecoration(f){return this._checkProposedApi(),this._verifyPositiveIntegers(f.x??0,f.width??0,f.height??0),this._core.registerDecoration(f)}hasSelection(){return this._core.hasSelection()}select(f,p,h){this._verifyIntegers(f,p,h),this._core.select(f,p,h)}getSelection(){return this._core.getSelection()}getSelectionPosition(){return this._core.getSelectionPosition()}clearSelection(){this._core.clearSelection()}selectAll(){this._core.selectAll()}selectLines(f,p){this._verifyIntegers(f,p),this._core.selectLines(f,p)}dispose(){super.dispose()}scrollLines(f){this._verifyIntegers(f),this._core.scrollLines(f)}scrollPages(f){this._verifyIntegers(f),this._core.scrollPages(f)}scrollToTop(){this._core.scrollToTop()}scrollToBottom(){this._core.scrollToBottom()}scrollToLine(f){this._verifyIntegers(f),this._core.scrollToLine(f)}clear(){this._core.clear()}write(f,p){this._core.write(f,p)}writeln(f,p){this._core.write(f),this._core.write(`\r
|
|
291
|
+
`,p)}paste(f){this._core.paste(f)}refresh(f,p){this._verifyIntegers(f,p),this._core.refresh(f,p)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(f){this._addonManager.loadAddon(this,f)}static get strings(){return o}_verifyIntegers(...f){for(const p of f)if(p===1/0||isNaN(p)||p%1!=0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...f){for(const p of f)if(p&&(p===1/0||isNaN(p)||p%1!=0||p<0))throw new Error("This API only accepts positive integers")}}d.Terminal=S})(),u})()))})(nh)),nh.exports}var CM=bM(),ih={exports:{}},O_;function wM(){return O_||(O_=1,(function(e,t){(function(n,s){e.exports=s()})(self,(()=>(()=>{var n={};return(()=>{var s=n;Object.defineProperty(s,"__esModule",{value:!0}),s.FitAddon=void 0,s.FitAddon=class{activate(a){this._terminal=a}dispose(){}fit(){const a=this.proposeDimensions();if(!a||!this._terminal||isNaN(a.cols)||isNaN(a.rows))return;const u=this._terminal._core;this._terminal.rows===a.rows&&this._terminal.cols===a.cols||(u._renderService.clear(),this._terminal.resize(a.cols,a.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;const a=this._terminal._core,u=a._renderService.dimensions;if(u.css.cell.width===0||u.css.cell.height===0)return;const d=this._terminal.options.scrollback===0?0:a.viewport.scrollBarWidth,o=window.getComputedStyle(this._terminal.element.parentElement),c=parseInt(o.getPropertyValue("height")),v=Math.max(0,parseInt(o.getPropertyValue("width"))),_=window.getComputedStyle(this._terminal.element),m=c-(parseInt(_.getPropertyValue("padding-top"))+parseInt(_.getPropertyValue("padding-bottom"))),C=v-(parseInt(_.getPropertyValue("padding-right"))+parseInt(_.getPropertyValue("padding-left")))-d;return{cols:Math.max(2,Math.floor(C/u.css.cell.width)),rows:Math.max(1,Math.floor(m/u.css.cell.height))}}}})(),n})()))})(ih)),ih.exports}var xM=wM();function EM(e){let t="";for(let s=0;s<e.length;s+=32768)t+=String.fromCharCode.apply(null,e.subarray(s,s+32768));return btoa(t)}function kM(e){const t=atob(e),n=new Uint8Array(t.length);for(let s=0;s<t.length;s+=1)n[s]=t.charCodeAt(s);return n}function RM(e){return EM(new TextEncoder().encode(e))}function Dh(e){if(e==null)return"-";if(e<1024)return`${e} B`;const t=["KB","MB","GB","TB"];let n=e/1024,s=0;for(;n>=1024&&s<t.length-1;)n/=1024,s+=1;return`${n.toFixed(n>=10?0:1)} ${t[s]}`}function PM(e){if(!e)return"-";const t=new Date(e),n=s=>String(s).padStart(2,"0");return`${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())} ${n(t.getHours())}:${n(t.getMinutes())}`}function hS({open:e,title:t,onSelect:n,onClose:s}){const[a,u]=D.useState([]),[d,o]=D.useState(!1),[c,v]=D.useState(null),[_,m]=D.useState(!1),C=async()=>{o(!0);try{const w=await sS();u(w),v(S=>{var g;return S||((g=w[0])==null?void 0:g.id)||null})}finally{o(!1)}};D.useEffect(()=>{e&&C()},[e]);const x=()=>{const w=a.find(S=>S.id===c);w&&n(w)};return I.jsxs(I.Fragment,{children:[I.jsxs(Sf,{open:e,onClose:s,maxWidth:"xs",fullWidth:!0,children:[I.jsx(wf,{children:t||"选择机器"}),I.jsx(Cf,{dividers:!0,sx:{minHeight:240},children:d?I.jsx(bt,{sx:{display:"flex",justifyContent:"center",py:4},children:I.jsx(Ki,{size:28})}):a.length===0?I.jsx(bt,{sx:{py:4,textAlign:"center"},children:I.jsx(ct,{color:"text.secondary",children:"还没有机器,先新建一台吧。"})}):I.jsx(Rf,{dense:!0,disablePadding:!0,children:a.map(w=>I.jsxs(my,{selected:c===w.id,onClick:()=>v(w.id),onDoubleClick:()=>n(w),children:[I.jsx(xL,{children:I.jsx(FR,{sx:{bgcolor:"primary.dark",width:34,height:34},children:I.jsx(Ry,{fontSize:"small"})})}),I.jsx(vy,{primary:w.name,secondary:`${w.username}@${w.host}:${w.port}`})]},w.id))})}),I.jsx(Eh,{}),I.jsxs(bf,{sx:{justifyContent:"space-between",px:2},children:[I.jsx(Yt,{startIcon:I.jsx(Oh,{}),onClick:()=>m(!0),children:"新建机器"}),I.jsxs(bt,{children:[I.jsx(Yt,{onClick:s,children:"取消"}),I.jsx(Yt,{variant:"contained",onClick:x,disabled:!c,sx:{ml:1},children:"打开"})]})]})]}),I.jsx(aS,{open:_,initial:null,onClose:()=>m(!1),onSaved:w=>{m(!1),n(w)}})]})}const TM={connecting:"warning",connected:"success",closed:"default",error:"error"};function A_(){const{id:e}=J_(),t=Fh(),n=D.useRef(null),s=D.useRef(null),a=D.useRef(null),u=D.useRef(null),[d,o]=D.useState(null),[c,v]=D.useState("connecting"),[_,m]=D.useState(!e),[C,x]=D.useState(0),[w,S]=D.useState("");D.useEffect(()=>{if(!e){o(null),m(!0);return}m(!1),pM(e).then(o).catch(()=>o(null))},[e]),D.useEffect(()=>{document.title=d?`终端 · ${d.name} - mysshx`:"终端 - mysshx"},[d]);const g=D.useCallback(()=>{if(!e||!n.current)return;v("connecting"),S("");const p=n.current,h=new CM.Terminal({fontFamily:'"Cascadia Mono", Consolas, "Courier New", monospace',fontSize:14,cursorBlink:!0,scrollback:5e3,theme:{background:"#0f1419",foreground:"#d6deeb",cursor:"#4f9cf9"}}),b=new xM.FitAddon;h.loadAddon(b),h.open(p),s.current=h,a.current=b;const E=new WebSocket(oS(`/ws/terminal/${e}`));u.current=E;const P=()=>{E.readyState===WebSocket.OPEN&&h.cols>0&&h.rows>0&&E.send(JSON.stringify({type:"resize",cols:h.cols,rows:h.rows}))},L=()=>{if(p.isConnected&&!(p.clientWidth===0||p.clientHeight===0))try{b.fit()}catch{}};let R=0;const A=()=>{cancelAnimationFrame(R),R=requestAnimationFrame(()=>{L(),P()})},T=new ResizeObserver(A);T.observe(p),E.onopen=()=>{A(),h.focus()},E.onmessage=H=>{const N=JSON.parse(H.data);N.type==="data"?h.write(kM(N.data)):N.type==="status"?(v(N.status),N.status==="connected"&&A()):N.type==="error"&&(v("error"),S(N.message),h.write(`\r
|
|
292
|
+
\x1B[31m${N.message}\x1B[0m\r
|
|
293
|
+
`))},E.onclose=()=>{v(H=>H==="error"?"error":"closed")},E.onerror=()=>v("error"),h.onData(H=>{E.readyState===WebSocket.OPEN&&E.send(JSON.stringify({type:"input",data:RM(H)}))});const $=()=>A();return window.addEventListener("resize",$),A(),document.fonts&&document.fonts.ready&&document.fonts.ready.then(A),h.focus(),()=>{cancelAnimationFrame(R),T.disconnect(),window.removeEventListener("resize",$);try{E.close()}catch{}try{h.dispose()}catch{}s.current=null}},[e,C]);D.useEffect(()=>g(),[g]);const f=p=>t(`/terminal/${p.id}`);return I.jsxs(bt,{sx:{height:"100vh",display:"flex",flexDirection:"column",bgcolor:"#0f1419"},children:[I.jsx(df,{position:"static",elevation:0,sx:{bgcolor:"background.paper",borderBottom:1,borderColor:"divider"},children:I.jsxs(sa,{variant:"dense",children:[I.jsx(ur,{edge:"start",color:"inherit",onClick:()=>t("/"),children:I.jsx(lS,{})}),I.jsx(vc,{sx:{mr:1,color:"primary.main"}}),I.jsx(ct,{variant:"subtitle1",sx:{fontWeight:600,mr:2},children:d?d.name:"终端"}),d&&I.jsxs(ct,{variant:"caption",color:"text.secondary",sx:{mr:2},children:[d.username,"@",d.host,":",d.port]}),I.jsx(ks,{size:"small",color:TM[c],label:{connecting:"连接中",connected:"已连接",closed:"已断开",error:"错误"}[c]||c}),I.jsx(bt,{sx:{flexGrow:1}}),I.jsx(Yt,{size:"small",startIcon:I.jsx(Of,{}),color:"secondary",onClick:()=>window.open(`/sftp/${e}`,"_blank","noopener"),disabled:!e,sx:{mr:1},children:"文件管理"}),I.jsx(Yt,{size:"small",startIcon:I.jsx(uS,{}),onClick:()=>m(!0),sx:{mr:1},children:"切换机器"}),I.jsx(Yt,{size:"small",startIcon:I.jsx(cS,{}),onClick:()=>x(p=>p+1),children:"重连"})]})}),w&&c==="error"&&I.jsx(bt,{sx:{px:2,py:.5,bgcolor:"error.dark",color:"#fff",fontSize:13},children:w}),I.jsx(bt,{ref:n,sx:{flexGrow:1,minHeight:0,overflow:"hidden",pl:1,pt:.5,"& .xterm":{height:"100%"}}}),!e&&I.jsx(bt,{sx:{flexGrow:1,display:"flex",alignItems:"center",justifyContent:"center"},children:I.jsx(Ki,{})}),I.jsx(hS,{open:_,title:"选择要连接的机器",onSelect:f,onClose:()=>m(!1)})]})}const M_=st(I.jsx("path",{d:"M5 20h14v-2H5zm0-10h4v6h6v-6h4l-7-7z"}),"Upload"),I_=st(I.jsx("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}),"Download"),LM=st(I.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),OM=st(I.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),AM=st(I.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"}),"Close"),D_={path:"",parent:null,entries:[],loading:!0};function MM(e){const t=D.useRef(null),n=D.useRef({local:"",remote:""}),[s,a]=D.useState(!1),[u,d]=D.useState(!1),[o,c]=D.useState(""),[v,_]=D.useState(D_),[m,C]=D.useState(D_),[x,w]=D.useState([]),[S,g]=D.useState(null),f=D.useCallback(h=>{const b=t.current;b&&b.readyState===WebSocket.OPEN&&b.send(JSON.stringify(h))},[]),p=D.useCallback((h,b)=>{(h==="local"?_:C)(P=>({...P,loading:!0})),f({action:"list",side:h,path:b})},[f]);return D.useEffect(()=>{if(!e)return;d(!1),g(null);const h=new WebSocket(oS(`/ws/sftp/${e}`));return t.current=h,h.onopen=()=>a(!0),h.onclose=()=>{a(!1),d(!1)},h.onerror=()=>g("连接错误"),h.onmessage=b=>{const E=JSON.parse(b.data),P=E.side==="local"?_:C;switch(E.event){case"ready":c(E.name),d(!0),p("local",E.localHome),p("remote",E.remoteHome);break;case"list":n.current[E.side]=E.path,P({path:E.path,parent:E.parent,entries:E.entries,loading:!1});break;case"transfer-add":w(L=>[...L,E.transfer]);break;case"progress":w(L=>{const R=L.findIndex(T=>T.id===E.transfer.id);if(R===-1)return[...L,E.transfer];const A=L.slice();return A[R]=E.transfer,A});break;case"transfer-remove":w(L=>L.filter(R=>R.id!==E.id));break;case"refresh":n.current[E.side]===E.path&&p(E.side,E.path);break;case"error":g(E.message);break;case"fatal":g(E.message),a(!1);break}},()=>{try{h.close()}catch{}t.current=null}},[e,p]),{connected:s,ready:u,machineName:o,local:v,remote:m,transfers:x,error:S,clearError:()=>g(null),list:p,mkdir:(h,b,E)=>f({action:"mkdir",side:h,parent:b,name:E}),rename:(h,b,E)=>f({action:"rename",side:h,path:b,newName:E}),remove:(h,b,E)=>f({action:"delete",side:h,paths:b,parent:E}),upload:(h,b)=>f({action:"upload",paths:h,remoteDir:b}),download:(h,b)=>f({action:"download",paths:h,localDir:b}),cancel:h=>f({action:"cancel",id:h})}}const IM=st(I.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward"),DM=st(I.jsx("path",{d:"M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3z"}),"CreateNewFolder"),BM=st(I.jsx("path",{d:"M10 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"}),"Folder"),$M=st(I.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zM6 20V4h7v5h5v11z"}),"InsertDriveFileOutlined"),NM=st(I.jsx("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link");function jM({type:e}){return e==="dir"?I.jsx(BM,{sx:{color:"#e2b93d"}}):e==="link"?I.jsx(NM,{sx:{color:"#8ab4f8"}}):I.jsx($M,{sx:{color:"text.secondary"}})}function B_({title:e,pane:t,selected:n,onToggle:s,onOpen:a,onUp:u,onNavigate:d,onRefresh:o,onNewFolder:c,onRename:v,onDelete:_}){const[m,C]=D.useState(t.path||"");D.useEffect(()=>{C(t.path||"")},[t.path]);const x=w=>{w.key==="Enter"&&m.trim()&&d(m.trim())};return I.jsxs(On,{variant:"outlined",sx:{flex:1,minWidth:0,display:"flex",flexDirection:"column",overflow:"hidden"},children:[I.jsxs(sa,{variant:"dense",sx:{gap:.5,borderBottom:1,borderColor:"divider",bgcolor:"background.default"},children:[I.jsx(ct,{variant:"subtitle2",sx:{fontWeight:700,mr:1},children:e}),I.jsx(dn,{title:"上一级",children:I.jsx("span",{children:I.jsx(ur,{size:"small",disabled:!t.parent,onClick:u,children:I.jsx(IM,{fontSize:"small"})})})}),I.jsx(ri,{size:"small",value:m,onChange:w=>C(w.target.value),onKeyDown:x,fullWidth:!0,placeholder:"输入路径后回车",InputProps:{sx:{fontSize:13,fontFamily:"monospace"}}}),I.jsx(dn,{title:"刷新",children:I.jsx(ur,{size:"small",onClick:o,children:I.jsx(cS,{fontSize:"small"})})}),I.jsx(dn,{title:"新建文件夹",children:I.jsx(ur,{size:"small",onClick:c,children:I.jsx(DM,{fontSize:"small"})})}),I.jsx(dn,{title:"重命名选中项",children:I.jsx("span",{children:I.jsx(ur,{size:"small",disabled:n.size!==1,onClick:()=>{const w=t.entries.find(S=>n.has(S.path));w&&v(w)},children:I.jsx(Ey,{fontSize:"small"})})})}),I.jsx(dn,{title:"删除选中项",children:I.jsx("span",{children:I.jsx(ur,{size:"small",color:"error",disabled:n.size===0,onClick:_,children:I.jsx(ky,{fontSize:"small"})})})})]}),I.jsxs(bt,{sx:{display:"flex",alignItems:"center",px:1.5,py:.5,borderBottom:1,borderColor:"divider"},children:[I.jsx(bt,{sx:{width:34}}),I.jsx(ct,{variant:"caption",color:"text.secondary",sx:{flex:1},children:"名称"}),I.jsx(ct,{variant:"caption",color:"text.secondary",sx:{width:84,textAlign:"right"},children:"大小"}),I.jsx(ct,{variant:"caption",color:"text.secondary",sx:{width:132,textAlign:"right"},children:"修改时间"})]}),I.jsxs(bt,{sx:{flex:1,overflow:"auto",position:"relative"},children:[t.loading&&I.jsx(bt,{sx:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",bgcolor:"rgba(0,0,0,0.25)",zIndex:2},children:I.jsx(Ki,{size:24})}),!t.loading&&t.entries.length===0&&I.jsx(bt,{sx:{p:3,textAlign:"center"},children:I.jsx(ct,{variant:"body2",color:"text.secondary",children:"空目录"})}),I.jsx(Rf,{dense:!0,disablePadding:!0,children:t.entries.map(w=>{const S=n.has(w.path);return I.jsx(SL,{disablePadding:!0,divider:!0,sx:{"&:hover":{bgcolor:"action.hover"}},children:I.jsxs(my,{dense:!0,selected:S,onDoubleClick:()=>a(w),onClick:()=>s(w.path),sx:{py:.25},children:[I.jsx(mP,{size:"small",edge:"start",checked:S,tabIndex:-1,disableRipple:!0,sx:{p:.5,mr:.5},onClick:g=>{g.stopPropagation(),s(w.path)}}),I.jsx(PL,{sx:{minWidth:30},children:I.jsx(jM,{type:w.type})}),I.jsx(vy,{primary:I.jsxs(ct,{variant:"body2",sx:{wordBreak:"break-all"},noWrap:!0,title:w.name,children:[w.name,w.type==="link"&&I.jsx(ks,{component:"span",size:"small",label:"链接",sx:{ml:.5,height:16,fontSize:10}})]})}),I.jsx(ct,{variant:"caption",color:"text.secondary",sx:{width:84,textAlign:"right"},children:w.type==="dir"?"-":Dh(w.size)}),I.jsx(ct,{variant:"caption",color:"text.secondary",sx:{width:132,textAlign:"right"},children:PM(w.mtime)})]})},w.path)})})]})]})}function $_(){const{id:e}=J_(),t=Fh(),n=MM(e),[s,a]=D.useState(new Set),[u,d]=D.useState(new Set),[o,c]=D.useState(!0),[v,_]=D.useState(!e);D.useEffect(()=>{e||_(!0)},[e]),D.useEffect(()=>{document.title=n.machineName?`文件管理 · ${n.machineName} - mysshx`:"文件管理 - mysshx"},[n.machineName]),D.useEffect(()=>{a(new Set)},[n.local.path]),D.useEffect(()=>{d(new Set)},[n.remote.path]);const m=b=>E=>b(P=>{const L=new Set(P);return L.has(E)?L.delete(E):L.add(E),L}),C=b=>E=>{E.type==="dir"&&n.list(b,E.path)},x=b=>E=>{E.parent&&n.list(b,E.parent)},w=b=>E=>{const P=window.prompt("新建文件夹名称");P&&P.trim()&&n.mkdir(b,E.path,P.trim())},S=b=>E=>{const P=window.prompt("重命名为",E.name);P&&P.trim()&&P!==E.name&&n.rename(b,E.path,P.trim())},g=b=>(E,P,L)=>{P.size&&window.confirm(`确定删除选中的 ${P.size} 项吗?`)&&n.remove(b,[...P],L.path),E(new Set)},f=()=>{s.size===0||!n.remote.path||(n.upload([...s],n.remote.path),a(new Set))},p=()=>{u.size===0||!n.local.path||(n.download([...u],n.local.path),d(new Set))},h=n.transfers;return I.jsxs(bt,{sx:{height:"100vh",display:"flex",flexDirection:"column"},children:[I.jsx(df,{position:"static",elevation:0,sx:{bgcolor:"background.paper",borderBottom:1,borderColor:"divider"},children:I.jsxs(sa,{variant:"dense",children:[I.jsx(ur,{edge:"start",color:"inherit",onClick:()=>t("/"),children:I.jsx(lS,{})}),I.jsx(Of,{sx:{mr:1,color:"secondary.main"}}),I.jsx(ct,{variant:"subtitle1",sx:{fontWeight:600,mr:2},children:n.machineName||"文件管理"}),I.jsx(ks,{size:"small",color:n.ready?"success":n.connected?"warning":"error",label:n.ready?"已连接":n.connected?"初始化中":"未连接"}),I.jsx(bt,{sx:{flexGrow:1}}),I.jsx(Yt,{size:"small",startIcon:I.jsx(vc,{}),color:"primary",onClick:()=>window.open(`/terminal/${e}`,"_blank","noopener"),disabled:!e,sx:{mr:1},children:"终端"}),I.jsx(Yt,{size:"small",startIcon:I.jsx(uS,{}),onClick:()=>_(!0),children:"切换机器"})]})}),n.ready?I.jsxs(I.Fragment,{children:[I.jsxs(bt,{sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:2,py:1,borderBottom:1,borderColor:"divider"},children:[I.jsxs(Yt,{variant:"contained",startIcon:I.jsx(M_,{}),onClick:f,disabled:s.size===0,children:["上传到远端 (",s.size,")"]}),I.jsxs(Yt,{variant:"contained",color:"secondary",startIcon:I.jsx(I_,{}),onClick:p,disabled:u.size===0,children:["下载到本地 (",u.size,")"]})]}),I.jsxs(bt,{sx:{flex:1,minHeight:0,display:"flex",gap:1,p:1},children:[I.jsx(B_,{title:"本地",pane:n.local,selected:s,onToggle:m(a),onOpen:C("local"),onUp:()=>x("local")(n.local),onNavigate:b=>n.list("local",b),onRefresh:()=>n.list("local",n.local.path),onNewFolder:()=>w("local")(n.local),onRename:S("local"),onDelete:()=>g("local")(a,s,n.local)}),I.jsx(B_,{title:"远端",pane:n.remote,selected:u,onToggle:m(d),onOpen:C("remote"),onUp:()=>x("remote")(n.remote),onNavigate:b=>n.list("remote",b),onRefresh:()=>n.list("remote",n.remote.path),onNewFolder:()=>w("remote")(n.remote),onRename:S("remote"),onDelete:()=>g("remote")(d,u,n.remote)})]}),h.length>0&&I.jsxs(On,{square:!0,variant:"outlined",sx:{borderLeft:0,borderRight:0,borderBottom:0},children:[I.jsxs(sa,{variant:"dense",sx:{minHeight:36},children:[I.jsxs(ct,{variant:"subtitle2",sx:{flexGrow:1},children:["传输队列 (",h.length,")"]}),I.jsx(ur,{size:"small",onClick:()=>c(b=>!b),children:o?I.jsx(OM,{}):I.jsx(LM,{})})]}),I.jsx(fc,{in:o,children:I.jsx(bt,{sx:{maxHeight:180,overflow:"auto",px:2,pb:1},children:h.map(b=>{const E=b.total>0?Math.min(100,b.transferred/b.total*100):0;return I.jsxs(bt,{sx:{mb:1},children:[I.jsxs(bt,{sx:{display:"flex",alignItems:"center",gap:1},children:[b.direction==="upload"?I.jsx(M_,{fontSize:"inherit",color:"primary"}):I.jsx(I_,{fontSize:"inherit",color:"secondary"}),I.jsx(ct,{variant:"body2",noWrap:!0,sx:{flex:1},title:b.name,children:b.name}),I.jsxs(ct,{variant:"caption",color:"text.secondary",children:[Dh(b.transferred),b.total>0?` / ${Dh(b.total)}`:""]}),I.jsx(ct,{variant:"caption",color:b.status==="error"?"error.main":b.status==="done"?"success.main":"text.secondary",sx:{width:48,textAlign:"right"},children:b.status==="done"?"完成":b.status==="error"?"失败":b.status==="cancelled"?"已取消":`${Math.round(E)}%`}),b.status!=="done"&&b.status!=="error"&&b.status!=="cancelled"&&I.jsx(dn,{title:"取消",children:I.jsx(ur,{size:"small",onClick:()=>n.cancel(b.id),children:I.jsx(AM,{fontSize:"small"})})})]}),I.jsx(iL,{variant:b.total>0?"determinate":"indeterminate",value:E,color:b.status==="error"?"error":b.direction==="upload"?"primary":"secondary",sx:{height:4,borderRadius:2,mt:.5}}),b.error&&I.jsx(ct,{variant:"caption",color:"error",children:b.error})]},b.id)})})})]})]}):I.jsxs(bt,{sx:{flexGrow:1,display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",gap:2},children:[I.jsx(Ki,{}),I.jsx(ct,{color:"text.secondary",children:"正在连接并加载目录..."})]}),I.jsx(wO,{open:!!n.error,autoHideDuration:5e3,onClose:n.clearError,anchorOrigin:{vertical:"bottom",horizontal:"center"},children:I.jsx(uf,{severity:"error",onClose:n.clearError,children:n.error})}),I.jsx(hS,{open:v,title:"选择要连接的机器",onSelect:b=>t(`/sftp/${b.id}`),onClose:()=>_(!1)})]})}function FM(){return I.jsxs(lC,{children:[I.jsx(Ti,{path:"/",element:I.jsx(SM,{})}),I.jsx(Ti,{path:"/terminal",element:I.jsx(A_,{})}),I.jsx(Ti,{path:"/terminal/:id",element:I.jsx(A_,{})}),I.jsx(Ti,{path:"/sftp",element:I.jsx($_,{})}),I.jsx(Ti,{path:"/sftp/:id",element:I.jsx($_,{})}),I.jsx(Ti,{path:"*",element:I.jsx(oC,{to:"/",replace:!0})})]})}const zM=$c({palette:{mode:"dark",primary:{main:"#4f9cf9"},secondary:{main:"#22c55e"},background:{default:"#0f1419",paper:"#171c22"},divider:"rgba(255,255,255,0.08)"},shape:{borderRadius:8},typography:{fontFamily:'"Segoe UI", "Microsoft YaHei", system-ui, -apple-system, Roboto, sans-serif'},components:{MuiPaper:{styleOverrides:{root:{backgroundImage:"none"}}}}});_b.createRoot(document.getElementById("root")).render(I.jsxs(KE,{theme:zM,children:[I.jsx(HE,{}),I.jsx(dC,{children:I.jsx(FM,{})})]}));
|