hfs 0.42.2 → 0.42.3
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/README.md +3 -4
- package/admin/assets/index-08017e15.js +511 -0
- package/admin/assets/{sha512-af87c1bd.js → sha512-69b26793.js} +1 -1
- package/admin/index.html +1 -1
- package/frontend/assets/{index-297a3f3d.js → index-5f125477.js} +17 -17
- package/frontend/assets/{sha512-bce9fb1c.js → sha512-f6798733.js} +1 -1
- package/frontend/index.html +1 -1
- package/package.json +2 -2
- package/src/api.accounts.js +2 -1
- package/src/api.vfs.js +9 -4
- package/src/const.js +1 -1
- package/src/vfs.js +8 -6
- package/admin/assets/index-1db4299e.js +0 -511
|
@@ -0,0 +1,511 @@
|
|
|
1
|
+
var yz=Object.defineProperty,bz=Object.defineProperties;var wz=Object.getOwnPropertyDescriptors;var dh=Object.getOwnPropertySymbols;var Bk=Object.prototype.hasOwnProperty,zk=Object.prototype.propertyIsEnumerable;var gs=Math.pow,b0=(e,t,n)=>t in e?yz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ie=(e,t)=>{for(var n in t||(t={}))Bk.call(t,n)&&b0(e,n,t[n]);if(dh)for(var n of dh(t))zk.call(t,n)&&b0(e,n,t[n]);return e},Tt=(e,t)=>bz(e,wz(t));var sn=(e,t)=>{var n={};for(var r in e)Bk.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&dh)for(var r of dh(e))t.indexOf(r)<0&&zk.call(e,r)&&(n[r]=e[r]);return n};var Fi=(e,t,n)=>(b0(e,typeof t!="symbol"?t+"":t,n),n);var it=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c))}catch(d){o(d)}},s=c=>{try{a(n.throw(c))}catch(d){o(d)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(e,t)).next())});function Cz(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var hn=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Cw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function xz(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var o=[null];o.push.apply(o,arguments);var i=Function.bind.apply(t,o);return new i}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var u={},Sz={get exports(){return u},set exports(e){u=e}},Nt={};/**
|
|
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 Yf=Symbol.for("react.element"),Ez=Symbol.for("react.portal"),kz=Symbol.for("react.fragment"),Pz=Symbol.for("react.strict_mode"),Iz=Symbol.for("react.profiler"),_z=Symbol.for("react.provider"),$z=Symbol.for("react.context"),Tz=Symbol.for("react.forward_ref"),Mz=Symbol.for("react.suspense"),Rz=Symbol.for("react.memo"),Oz=Symbol.for("react.lazy"),jk=Symbol.iterator;function Lz(e){return e===null||typeof e!="object"?null:(e=jk&&e[jk]||e["@@iterator"],typeof e=="function"?e:null)}var w$={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C$=Object.assign,x$={};function Mu(e,t,n){this.props=e,this.context=t,this.refs=x$,this.updater=n||w$}Mu.prototype.isReactComponent={};Mu.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};Mu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function S$(){}S$.prototype=Mu.prototype;function xw(e,t,n){this.props=e,this.context=t,this.refs=x$,this.updater=n||w$}var Sw=xw.prototype=new S$;Sw.constructor=xw;C$(Sw,Mu.prototype);Sw.isPureReactComponent=!0;var Hk=Array.isArray,E$=Object.prototype.hasOwnProperty,Ew={current:null},k$={key:!0,ref:!0,__self:!0,__source:!0};function P$(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)E$.call(t,r)&&!k$.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var c=Array(a),d=0;d<a;d++)c[d]=arguments[d+2];o.children=c}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:Yf,type:e,key:i,ref:s,props:o,_owner:Ew.current}}function Az(e,t){return{$$typeof:Yf,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function kw(e){return typeof e=="object"&&e!==null&&e.$$typeof===Yf}function Fz(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Vk=/\/+/g;function w0(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Fz(""+e.key):t.toString(36)}function Yh(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Yf:case Ez:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+w0(s,0):r,Hk(o)?(n="",e!=null&&(n=e.replace(Vk,"$&/")+"/"),Yh(o,t,n,"",function(d){return d})):o!=null&&(kw(o)&&(o=Az(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(Vk,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",Hk(e))for(var a=0;a<e.length;a++){i=e[a];var c=r+w0(i,a);s+=Yh(i,t,n,c,o)}else if(c=Lz(e),typeof c=="function")for(e=c.call(e),a=0;!(i=e.next()).done;)i=i.value,c=r+w0(i,a++),s+=Yh(i,t,n,c,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function fh(e,t,n){if(e==null)return e;var r=[],o=0;return Yh(e,r,"","",function(i){return t.call(n,i,o++)}),r}function Nz(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var zr={current:null},Xh={transition:null},Dz={ReactCurrentDispatcher:zr,ReactCurrentBatchConfig:Xh,ReactCurrentOwner:Ew};Nt.Children={map:fh,forEach:function(e,t,n){fh(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return fh(e,function(){t++}),t},toArray:function(e){return fh(e,function(t){return t})||[]},only:function(e){if(!kw(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Nt.Component=Mu;Nt.Fragment=kz;Nt.Profiler=Iz;Nt.PureComponent=xw;Nt.StrictMode=Pz;Nt.Suspense=Mz;Nt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Dz;Nt.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=C$({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=Ew.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(c in t)E$.call(t,c)&&!k$.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&a!==void 0?a[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){a=Array(c);for(var d=0;d<c;d++)a[d]=arguments[d+2];r.children=a}return{$$typeof:Yf,type:e.type,key:o,ref:i,props:r,_owner:s}};Nt.createContext=function(e){return e={$$typeof:$z,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:_z,_context:e},e.Consumer=e};Nt.createElement=P$;Nt.createFactory=function(e){var t=P$.bind(null,e);return t.type=e,t};Nt.createRef=function(){return{current:null}};Nt.forwardRef=function(e){return{$$typeof:Tz,render:e}};Nt.isValidElement=kw;Nt.lazy=function(e){return{$$typeof:Oz,_payload:{_status:-1,_result:e},_init:Nz}};Nt.memo=function(e,t){return{$$typeof:Rz,type:e,compare:t===void 0?null:t}};Nt.startTransition=function(e){var t=Xh.transition;Xh.transition={};try{e()}finally{Xh.transition=t}};Nt.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};Nt.useCallback=function(e,t){return zr.current.useCallback(e,t)};Nt.useContext=function(e){return zr.current.useContext(e)};Nt.useDebugValue=function(){};Nt.useDeferredValue=function(e){return zr.current.useDeferredValue(e)};Nt.useEffect=function(e,t){return zr.current.useEffect(e,t)};Nt.useId=function(){return zr.current.useId()};Nt.useImperativeHandle=function(e,t,n){return zr.current.useImperativeHandle(e,t,n)};Nt.useInsertionEffect=function(e,t){return zr.current.useInsertionEffect(e,t)};Nt.useLayoutEffect=function(e,t){return zr.current.useLayoutEffect(e,t)};Nt.useMemo=function(e,t){return zr.current.useMemo(e,t)};Nt.useReducer=function(e,t,n){return zr.current.useReducer(e,t,n)};Nt.useRef=function(e){return zr.current.useRef(e)};Nt.useState=function(e){return zr.current.useState(e)};Nt.useSyncExternalStore=function(e,t,n){return zr.current.useSyncExternalStore(e,t,n)};Nt.useTransition=function(){return zr.current.useTransition()};Nt.version="18.2.0";(function(e){e.exports=Nt})(Sz);const Yr=Cw(u),_a=Cz({__proto__:null,default:Yr},[u]);var Fl={},Bz={get exports(){return Fl},set exports(e){Fl=e}},_o={},M1={},zz={get exports(){return M1},set exports(e){M1=e}},I$={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* scheduler.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
|
+
*/(function(e){function t(N,z){var W=N.length;N.push(z);e:for(;0<W;){var q=W-1>>>1,X=N[q];if(0<o(X,z))N[q]=z,N[W]=X,W=q;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var z=N[0],W=N.pop();if(W!==z){N[0]=W;e:for(var q=0,X=N.length,le=X>>>1;q<le;){var Q=2*(q+1)-1,ge=N[Q],ee=Q+1,ce=N[ee];if(0>o(ge,W))ee<X&&0>o(ce,ge)?(N[q]=ce,N[ee]=W,q=ee):(N[q]=ge,N[Q]=W,q=Q);else if(ee<X&&0>o(ce,W))N[q]=ce,N[ee]=W,q=ee;else break e}}return z}function o(N,z){var W=N.sortIndex-z.sortIndex;return W!==0?W:N.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var c=[],d=[],p=1,h=null,m=3,v=!1,b=!1,g=!1,x=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(N){for(var z=n(d);z!==null;){if(z.callback===null)r(d);else if(z.startTime<=N)r(d),z.sortIndex=z.expirationTime,t(c,z);else break;z=n(d)}}function E(N){if(g=!1,w(N),!b)if(n(c)!==null)b=!0,B(P);else{var z=n(d);z!==null&&G(E,z.startTime-N)}}function P(N,z){b=!1,g&&(g=!1,C(M),M=-1),v=!0;var W=m;try{for(w(z),h=n(c);h!==null&&(!(h.expirationTime>z)||N&&!R());){var q=h.callback;if(typeof q=="function"){h.callback=null,m=h.priorityLevel;var X=q(h.expirationTime<=z);z=e.unstable_now(),typeof X=="function"?h.callback=X:h===n(c)&&r(c),w(z)}else r(c);h=n(c)}if(h!==null)var le=!0;else{var Q=n(d);Q!==null&&G(E,Q.startTime-z),le=!1}return le}finally{h=null,m=W,v=!1}}var _=!1,I=null,M=-1,O=5,L=-1;function R(){return!(e.unstable_now()-L<O)}function H(){if(I!==null){var N=e.unstable_now();L=N;var z=!0;try{z=I(!0,N)}finally{z?j():(_=!1,I=null)}}else _=!1}var j;if(typeof S=="function")j=function(){S(H)};else if(typeof MessageChannel!="undefined"){var A=new MessageChannel,F=A.port2;A.port1.onmessage=H,j=function(){F.postMessage(null)}}else j=function(){x(H,0)};function B(N){I=N,_||(_=!0,j())}function G(N,z){M=x(function(){N(e.unstable_now())},z)}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(N){N.callback=null},e.unstable_continueExecution=function(){b||v||(b=!0,B(P))},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(N){switch(m){case 1:case 2:case 3:var z=3;break;default:z=m}var W=m;m=z;try{return N()}finally{m=W}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,z){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var W=m;m=N;try{return z()}finally{m=W}},e.unstable_scheduleCallback=function(N,z,W){var q=e.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?q+W:q):W=q,N){case 1:var X=-1;break;case 2:X=250;break;case 5:X=1073741823;break;case 4:X=1e4;break;default:X=5e3}return X=W+X,N={id:p++,callback:z,priorityLevel:N,startTime:W,expirationTime:X,sortIndex:-1},W>q?(N.sortIndex=W,t(d,N),n(c)===null&&N===n(d)&&(g?(C(M),M=-1):g=!0,G(E,W-q))):(N.sortIndex=X,t(c,N),b||v||(b=!0,B(P))),N},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(N){var z=m;return function(){var W=m;m=z;try{return N.apply(this,arguments)}finally{m=W}}}})(I$);(function(e){e.exports=I$})(zz);/**
|
|
18
|
+
* @license React
|
|
19
|
+
* react-dom.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 _$=u,So=M1;function Te(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var $$=new Set,pf={};function Ua(e,t){au(e,t),au(e+"Capture",t)}function au(e,t){for(pf[e]=t,e=0;e<t.length;e++)$$.add(t[e])}var Os=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),R1=Object.prototype.hasOwnProperty,jz=/^[: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]*$/,Uk={},Wk={};function Hz(e){return R1.call(Wk,e)?!0:R1.call(Uk,e)?!1:jz.test(e)?Wk[e]=!0:(Uk[e]=!0,!1)}function Vz(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Uz(e,t,n,r){if(t===null||typeof t=="undefined"||Vz(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function jr(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var gr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){gr[e]=new jr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];gr[t]=new jr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){gr[e]=new jr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){gr[e]=new jr(e,2,!1,e,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(e){gr[e]=new jr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){gr[e]=new jr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){gr[e]=new jr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){gr[e]=new jr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){gr[e]=new jr(e,5,!1,e.toLowerCase(),null,!1,!1)});var Pw=/[\-:]([a-z])/g;function Iw(e){return e[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(e){var t=e.replace(Pw,Iw);gr[t]=new jr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Pw,Iw);gr[t]=new jr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Pw,Iw);gr[t]=new jr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){gr[e]=new jr(e,1,!1,e.toLowerCase(),null,!1,!1)});gr.xlinkHref=new jr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){gr[e]=new jr(e,1,!1,e.toLowerCase(),null,!0,!0)});function _w(e,t,n,r){var o=gr.hasOwnProperty(t)?gr[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Uz(t,n,o,r)&&(n=null),r||o===null?Hz(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Hs=_$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ph=Symbol.for("react.element"),Oc=Symbol.for("react.portal"),Lc=Symbol.for("react.fragment"),$w=Symbol.for("react.strict_mode"),O1=Symbol.for("react.profiler"),T$=Symbol.for("react.provider"),M$=Symbol.for("react.context"),Tw=Symbol.for("react.forward_ref"),L1=Symbol.for("react.suspense"),A1=Symbol.for("react.suspense_list"),Mw=Symbol.for("react.memo"),ll=Symbol.for("react.lazy"),R$=Symbol.for("react.offscreen"),Gk=Symbol.iterator;function pd(e){return e===null||typeof e!="object"?null:(e=Gk&&e[Gk]||e["@@iterator"],typeof e=="function"?e:null)}var Rn=Object.assign,C0;function Ld(e){if(C0===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);C0=t&&t[1]||""}return`
|
|
26
|
+
`+C0+e}var x0=!1;function S0(e,t){if(!e||x0)return"";x0=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var r=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){r=d}e.call(t.prototype)}else{try{throw Error()}catch(d){r=d}e()}}catch(d){if(d&&r&&typeof d.stack=="string"){for(var o=d.stack.split(`
|
|
27
|
+
`),i=r.stack.split(`
|
|
28
|
+
`),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(s!==1||a!==1)do if(s--,a--,0>a||o[s]!==i[a]){var c=`
|
|
29
|
+
`+o[s].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=s&&0<=a);break}}}finally{x0=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ld(e):""}function Wz(e){switch(e.tag){case 5:return Ld(e.type);case 16:return Ld("Lazy");case 13:return Ld("Suspense");case 19:return Ld("SuspenseList");case 0:case 2:case 15:return e=S0(e.type,!1),e;case 11:return e=S0(e.type.render,!1),e;case 1:return e=S0(e.type,!0),e;default:return""}}function F1(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Lc:return"Fragment";case Oc:return"Portal";case O1:return"Profiler";case $w:return"StrictMode";case L1:return"Suspense";case A1:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case M$:return(e.displayName||"Context")+".Consumer";case T$:return(e._context.displayName||"Context")+".Provider";case Tw:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Mw:return t=e.displayName||null,t!==null?t:F1(e.type)||"Memo";case ll:t=e._payload,e=e._init;try{return F1(e(t))}catch(n){}}return null}function Gz(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return F1(t);case 8:return t===$w?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Nl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function O$(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Kz(e){var t=O$(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n!="undefined"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function hh(e){e._valueTracker||(e._valueTracker=Kz(e))}function L$(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=O$(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Cm(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function N1(e,t){var n=t.checked;return Rn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function Kk(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Nl(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function A$(e,t){t=t.checked,t!=null&&_w(e,"checked",t,!1)}function D1(e,t){A$(e,t);var n=Nl(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?B1(e,t.type,n):t.hasOwnProperty("defaultValue")&&B1(e,t.type,Nl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function qk(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function B1(e,t,n){(t!=="number"||Cm(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ad=Array.isArray;function qc(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Nl(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function z1(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Te(91));return Rn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Yk(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Te(92));if(Ad(n)){if(1<n.length)throw Error(Te(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Nl(n)}}function F$(e,t){var n=Nl(t.value),r=Nl(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Xk(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function N$(e){switch(e){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 j1(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?N$(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var mh,D$=function(e){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(mh=mh||document.createElement("div"),mh.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=mh.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function hf(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Wd={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},qz=["Webkit","ms","Moz","O"];Object.keys(Wd).forEach(function(e){qz.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Wd[t]=Wd[e]})});function B$(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Wd.hasOwnProperty(e)&&Wd[e]?(""+t).trim():t+"px"}function z$(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=B$(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Yz=Rn({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 H1(e,t){if(t){if(Yz[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Te(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Te(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Te(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Te(62))}}function V1(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 U1=null;function Rw(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var W1=null,Yc=null,Xc=null;function Qk(e){if(e=Jf(e)){if(typeof W1!="function")throw Error(Te(280));var t=e.stateNode;t&&(t=Eg(t),W1(e.stateNode,e.type,t))}}function j$(e){Yc?Xc?Xc.push(e):Xc=[e]:Yc=e}function H$(){if(Yc){var e=Yc,t=Xc;if(Xc=Yc=null,Qk(e),t)for(e=0;e<t.length;e++)Qk(t[e])}}function V$(e,t){return e(t)}function U$(){}var E0=!1;function W$(e,t,n){if(E0)return e(t,n);E0=!0;try{return V$(e,t,n)}finally{E0=!1,(Yc!==null||Xc!==null)&&(U$(),H$())}}function mf(e,t){var n=e.stateNode;if(n===null)return null;var r=Eg(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(Te(231,t,typeof n));return n}var G1=!1;if(Os)try{var hd={};Object.defineProperty(hd,"passive",{get:function(){G1=!0}}),window.addEventListener("test",hd,hd),window.removeEventListener("test",hd,hd)}catch(e){G1=!1}function Xz(e,t,n,r,o,i,s,a,c){var d=Array.prototype.slice.call(arguments,3);try{t.apply(n,d)}catch(p){this.onError(p)}}var Gd=!1,xm=null,Sm=!1,K1=null,Qz={onError:function(e){Gd=!0,xm=e}};function Jz(e,t,n,r,o,i,s,a,c){Gd=!1,xm=null,Xz.apply(Qz,arguments)}function Zz(e,t,n,r,o,i,s,a,c){if(Jz.apply(this,arguments),Gd){if(Gd){var d=xm;Gd=!1,xm=null}else throw Error(Te(198));Sm||(Sm=!0,K1=d)}}function Wa(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function G$(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Jk(e){if(Wa(e)!==e)throw Error(Te(188))}function e6(e){var t=e.alternate;if(!t){if(t=Wa(e),t===null)throw Error(Te(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Jk(o),e;if(i===r)return Jk(o),t;i=i.sibling}throw Error(Te(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s){for(a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s)throw Error(Te(189))}}if(n.alternate!==r)throw Error(Te(190))}if(n.tag!==3)throw Error(Te(188));return n.stateNode.current===n?e:t}function K$(e){return e=e6(e),e!==null?q$(e):null}function q$(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=q$(e);if(t!==null)return t;e=e.sibling}return null}var Y$=So.unstable_scheduleCallback,Zk=So.unstable_cancelCallback,t6=So.unstable_shouldYield,n6=So.unstable_requestPaint,jn=So.unstable_now,r6=So.unstable_getCurrentPriorityLevel,Ow=So.unstable_ImmediatePriority,X$=So.unstable_UserBlockingPriority,Em=So.unstable_NormalPriority,o6=So.unstable_LowPriority,Q$=So.unstable_IdlePriority,wg=null,qi=null;function i6(e){if(qi&&typeof qi.onCommitFiberRoot=="function")try{qi.onCommitFiberRoot(wg,e,void 0,(e.current.flags&128)===128)}catch(t){}}var Ci=Math.clz32?Math.clz32:a6,s6=Math.log,l6=Math.LN2;function a6(e){return e>>>=0,e===0?32:31-(s6(e)/l6|0)|0}var gh=64,vh=4194304;function Fd(e){switch(e&-e){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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function km(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=Fd(a):(i&=s,i!==0&&(r=Fd(i)))}else s=n&~o,s!==0?r=Fd(s):i!==0&&(r=Fd(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ci(t),o=1<<n,r|=e[n],t&=~o;return r}function c6(e,t){switch(e){case 1:case 2:case 4:return t+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 t+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 u6(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-Ci(i),a=1<<s,c=o[s];c===-1?(!(a&n)||a&r)&&(o[s]=c6(a,t)):c<=t&&(e.expiredLanes|=a),i&=~a}}function q1(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function J$(){var e=gh;return gh<<=1,!(gh&4194240)&&(gh=64),e}function k0(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Xf(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ci(t),e[t]=n}function d6(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Ci(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function Lw(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ci(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Zt=0;function Z$(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var eT,Aw,tT,nT,rT,Y1=!1,yh=[],Sl=null,El=null,kl=null,gf=new Map,vf=new Map,pl=[],f6="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 eP(e,t){switch(e){case"focusin":case"focusout":Sl=null;break;case"dragenter":case"dragleave":El=null;break;case"mouseover":case"mouseout":kl=null;break;case"pointerover":case"pointerout":gf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":vf.delete(t.pointerId)}}function md(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=Jf(t),t!==null&&Aw(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function p6(e,t,n,r,o){switch(t){case"focusin":return Sl=md(Sl,e,t,n,r,o),!0;case"dragenter":return El=md(El,e,t,n,r,o),!0;case"mouseover":return kl=md(kl,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return gf.set(i,md(gf.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,vf.set(i,md(vf.get(i)||null,e,t,n,r,o)),!0}return!1}function oT(e){var t=ma(e.target);if(t!==null){var n=Wa(t);if(n!==null){if(t=n.tag,t===13){if(t=G$(n),t!==null){e.blockedOn=t,rT(e.priority,function(){tT(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Qh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=X1(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);U1=r,n.target.dispatchEvent(r),U1=null}else return t=Jf(n),t!==null&&Aw(t),e.blockedOn=n,!1;t.shift()}return!0}function tP(e,t,n){Qh(e)&&n.delete(t)}function h6(){Y1=!1,Sl!==null&&Qh(Sl)&&(Sl=null),El!==null&&Qh(El)&&(El=null),kl!==null&&Qh(kl)&&(kl=null),gf.forEach(tP),vf.forEach(tP)}function gd(e,t){e.blockedOn===t&&(e.blockedOn=null,Y1||(Y1=!0,So.unstable_scheduleCallback(So.unstable_NormalPriority,h6)))}function yf(e){function t(o){return gd(o,e)}if(0<yh.length){gd(yh[0],e);for(var n=1;n<yh.length;n++){var r=yh[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Sl!==null&&gd(Sl,e),El!==null&&gd(El,e),kl!==null&&gd(kl,e),gf.forEach(t),vf.forEach(t),n=0;n<pl.length;n++)r=pl[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<pl.length&&(n=pl[0],n.blockedOn===null);)oT(n),n.blockedOn===null&&pl.shift()}var Qc=Hs.ReactCurrentBatchConfig,Pm=!0;function m6(e,t,n,r){var o=Zt,i=Qc.transition;Qc.transition=null;try{Zt=1,Fw(e,t,n,r)}finally{Zt=o,Qc.transition=i}}function g6(e,t,n,r){var o=Zt,i=Qc.transition;Qc.transition=null;try{Zt=4,Fw(e,t,n,r)}finally{Zt=o,Qc.transition=i}}function Fw(e,t,n,r){if(Pm){var o=X1(e,t,n,r);if(o===null)A0(e,t,r,Im,n),eP(e,r);else if(p6(o,e,t,n,r))r.stopPropagation();else if(eP(e,r),t&4&&-1<f6.indexOf(e)){for(;o!==null;){var i=Jf(o);if(i!==null&&eT(i),i=X1(e,t,n,r),i===null&&A0(e,t,r,Im,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else A0(e,t,r,null,n)}}var Im=null;function X1(e,t,n,r){if(Im=null,e=Rw(r),e=ma(e),e!==null)if(t=Wa(e),t===null)e=null;else if(n=t.tag,n===13){if(e=G$(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Im=e,null}function iT(e){switch(e){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(r6()){case Ow:return 1;case X$:return 4;case Em:case o6:return 16;case Q$:return 536870912;default:return 16}default:return 16}}var gl=null,Nw=null,Jh=null;function sT(){if(Jh)return Jh;var e,t=Nw,n=t.length,r,o="value"in gl?gl.value:gl.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[i-r];r++);return Jh=o.slice(e,1<r?1-r:void 0)}function Zh(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function bh(){return!0}function nP(){return!1}function $o(e){function t(n,r,o,i,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?bh:nP,this.isPropagationStopped=nP,this}return Rn(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=bh)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=bh)},persist:function(){},isPersistent:bh}),t}var Ru={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Dw=$o(Ru),Qf=Rn({},Ru,{view:0,detail:0}),v6=$o(Qf),P0,I0,vd,Cg=Rn({},Qf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bw,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==vd&&(vd&&e.type==="mousemove"?(P0=e.screenX-vd.screenX,I0=e.screenY-vd.screenY):I0=P0=0,vd=e),P0)},movementY:function(e){return"movementY"in e?e.movementY:I0}}),rP=$o(Cg),y6=Rn({},Cg,{dataTransfer:0}),b6=$o(y6),w6=Rn({},Qf,{relatedTarget:0}),_0=$o(w6),C6=Rn({},Ru,{animationName:0,elapsedTime:0,pseudoElement:0}),x6=$o(C6),S6=Rn({},Ru,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),E6=$o(S6),k6=Rn({},Ru,{data:0}),oP=$o(k6),P6={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},I6={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"},_6={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function $6(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=_6[e])?!!t[e]:!1}function Bw(){return $6}var T6=Rn({},Qf,{key:function(e){if(e.key){var t=P6[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Zh(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?I6[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bw,charCode:function(e){return e.type==="keypress"?Zh(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Zh(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),M6=$o(T6),R6=Rn({},Cg,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),iP=$o(R6),O6=Rn({},Qf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bw}),L6=$o(O6),A6=Rn({},Ru,{propertyName:0,elapsedTime:0,pseudoElement:0}),F6=$o(A6),N6=Rn({},Cg,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),D6=$o(N6),B6=[9,13,27,32],zw=Os&&"CompositionEvent"in window,Kd=null;Os&&"documentMode"in document&&(Kd=document.documentMode);var z6=Os&&"TextEvent"in window&&!Kd,lT=Os&&(!zw||Kd&&8<Kd&&11>=Kd),sP=String.fromCharCode(32),lP=!1;function aT(e,t){switch(e){case"keyup":return B6.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cT(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ac=!1;function j6(e,t){switch(e){case"compositionend":return cT(t);case"keypress":return t.which!==32?null:(lP=!0,sP);case"textInput":return e=t.data,e===sP&&lP?null:e;default:return null}}function H6(e,t){if(Ac)return e==="compositionend"||!zw&&aT(e,t)?(e=sT(),Jh=Nw=gl=null,Ac=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return lT&&t.locale!=="ko"?null:t.data;default:return null}}var V6={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 aP(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!V6[e.type]:t==="textarea"}function uT(e,t,n,r){j$(r),t=_m(t,"onChange"),0<t.length&&(n=new Dw("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qd=null,bf=null;function U6(e){CT(e,0)}function xg(e){var t=Dc(e);if(L$(t))return e}function W6(e,t){if(e==="change")return t}var dT=!1;if(Os){var $0;if(Os){var T0="oninput"in document;if(!T0){var cP=document.createElement("div");cP.setAttribute("oninput","return;"),T0=typeof cP.oninput=="function"}$0=T0}else $0=!1;dT=$0&&(!document.documentMode||9<document.documentMode)}function uP(){qd&&(qd.detachEvent("onpropertychange",fT),bf=qd=null)}function fT(e){if(e.propertyName==="value"&&xg(bf)){var t=[];uT(t,bf,e,Rw(e)),W$(U6,t)}}function G6(e,t,n){e==="focusin"?(uP(),qd=t,bf=n,qd.attachEvent("onpropertychange",fT)):e==="focusout"&&uP()}function K6(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return xg(bf)}function q6(e,t){if(e==="click")return xg(t)}function Y6(e,t){if(e==="input"||e==="change")return xg(t)}function X6(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Pi=typeof Object.is=="function"?Object.is:X6;function wf(e,t){if(Pi(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!R1.call(t,o)||!Pi(e[o],t[o]))return!1}return!0}function dP(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fP(e,t){var n=dP(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=dP(n)}}function pT(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pT(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hT(){for(var e=window,t=Cm();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch(r){n=!1}if(n)e=t.contentWindow;else break;t=Cm(e.document)}return t}function jw(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Q6(e){var t=hT(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&pT(n.ownerDocument.documentElement,n)){if(r!==null&&jw(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=fP(n,i);var s=fP(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var J6=Os&&"documentMode"in document&&11>=document.documentMode,Fc=null,Q1=null,Yd=null,J1=!1;function pP(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;J1||Fc==null||Fc!==Cm(r)||(r=Fc,"selectionStart"in r&&jw(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Yd&&wf(Yd,r)||(Yd=r,r=_m(Q1,"onSelect"),0<r.length&&(t=new Dw("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Fc)))}function wh(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Nc={animationend:wh("Animation","AnimationEnd"),animationiteration:wh("Animation","AnimationIteration"),animationstart:wh("Animation","AnimationStart"),transitionend:wh("Transition","TransitionEnd")},M0={},mT={};Os&&(mT=document.createElement("div").style,"AnimationEvent"in window||(delete Nc.animationend.animation,delete Nc.animationiteration.animation,delete Nc.animationstart.animation),"TransitionEvent"in window||delete Nc.transitionend.transition);function Sg(e){if(M0[e])return M0[e];if(!Nc[e])return e;var t=Nc[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in mT)return M0[e]=t[n];return e}var gT=Sg("animationend"),vT=Sg("animationiteration"),yT=Sg("animationstart"),bT=Sg("transitionend"),wT=new Map,hP="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 ql(e,t){wT.set(e,t),Ua(t,[e])}for(var R0=0;R0<hP.length;R0++){var O0=hP[R0],Z6=O0.toLowerCase(),e9=O0[0].toUpperCase()+O0.slice(1);ql(Z6,"on"+e9)}ql(gT,"onAnimationEnd");ql(vT,"onAnimationIteration");ql(yT,"onAnimationStart");ql("dblclick","onDoubleClick");ql("focusin","onFocus");ql("focusout","onBlur");ql(bT,"onTransitionEnd");au("onMouseEnter",["mouseout","mouseover"]);au("onMouseLeave",["mouseout","mouseover"]);au("onPointerEnter",["pointerout","pointerover"]);au("onPointerLeave",["pointerout","pointerover"]);Ua("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ua("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ua("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ua("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ua("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ua("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nd="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(" "),t9=new Set("cancel close invalid load scroll toggle".split(" ").concat(Nd));function mP(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Zz(r,t,void 0,e),e.currentTarget=null}function CT(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],c=a.instance,d=a.currentTarget;if(a=a.listener,c!==i&&o.isPropagationStopped())break e;mP(o,a,d),i=c}else for(s=0;s<r.length;s++){if(a=r[s],c=a.instance,d=a.currentTarget,a=a.listener,c!==i&&o.isPropagationStopped())break e;mP(o,a,d),i=c}}}if(Sm)throw e=K1,Sm=!1,K1=null,e}function pn(e,t){var n=t[rb];n===void 0&&(n=t[rb]=new Set);var r=e+"__bubble";n.has(r)||(xT(t,e,2,!1),n.add(r))}function L0(e,t,n){var r=0;t&&(r|=4),xT(n,e,r,t)}var Ch="_reactListening"+Math.random().toString(36).slice(2);function Cf(e){if(!e[Ch]){e[Ch]=!0,$$.forEach(function(n){n!=="selectionchange"&&(t9.has(n)||L0(n,!1,e),L0(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ch]||(t[Ch]=!0,L0("selectionchange",!1,t))}}function xT(e,t,n,r){switch(iT(t)){case 1:var o=m6;break;case 4:o=g6;break;default:o=Fw}n=o.bind(null,t,n,e),o=void 0,!G1||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function A0(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===o||a.nodeType===8&&a.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var c=s.tag;if((c===3||c===4)&&(c=s.stateNode.containerInfo,c===o||c.nodeType===8&&c.parentNode===o))return;s=s.return}for(;a!==null;){if(s=ma(a),s===null)return;if(c=s.tag,c===5||c===6){r=i=s;continue e}a=a.parentNode}}r=r.return}W$(function(){var d=i,p=Rw(n),h=[];e:{var m=wT.get(e);if(m!==void 0){var v=Dw,b=e;switch(e){case"keypress":if(Zh(n)===0)break e;case"keydown":case"keyup":v=M6;break;case"focusin":b="focus",v=_0;break;case"focusout":b="blur",v=_0;break;case"beforeblur":case"afterblur":v=_0;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=rP;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=b6;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=L6;break;case gT:case vT:case yT:v=x6;break;case bT:v=F6;break;case"scroll":v=v6;break;case"wheel":v=D6;break;case"copy":case"cut":case"paste":v=E6;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=iP}var g=(t&4)!==0,x=!g&&e==="scroll",C=g?m!==null?m+"Capture":null:m;g=[];for(var S=d,w;S!==null;){w=S;var E=w.stateNode;if(w.tag===5&&E!==null&&(w=E,C!==null&&(E=mf(S,C),E!=null&&g.push(xf(S,E,w)))),x)break;S=S.return}0<g.length&&(m=new v(m,b,null,n,p),h.push({event:m,listeners:g}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",m&&n!==U1&&(b=n.relatedTarget||n.fromElement)&&(ma(b)||b[Ls]))break e;if((v||m)&&(m=p.window===p?p:(m=p.ownerDocument)?m.defaultView||m.parentWindow:window,v?(b=n.relatedTarget||n.toElement,v=d,b=b?ma(b):null,b!==null&&(x=Wa(b),b!==x||b.tag!==5&&b.tag!==6)&&(b=null)):(v=null,b=d),v!==b)){if(g=rP,E="onMouseLeave",C="onMouseEnter",S="mouse",(e==="pointerout"||e==="pointerover")&&(g=iP,E="onPointerLeave",C="onPointerEnter",S="pointer"),x=v==null?m:Dc(v),w=b==null?m:Dc(b),m=new g(E,S+"leave",v,n,p),m.target=x,m.relatedTarget=w,E=null,ma(p)===d&&(g=new g(C,S+"enter",b,n,p),g.target=w,g.relatedTarget=x,E=g),x=E,v&&b)t:{for(g=v,C=b,S=0,w=g;w;w=gc(w))S++;for(w=0,E=C;E;E=gc(E))w++;for(;0<S-w;)g=gc(g),S--;for(;0<w-S;)C=gc(C),w--;for(;S--;){if(g===C||C!==null&&g===C.alternate)break t;g=gc(g),C=gc(C)}g=null}else g=null;v!==null&&gP(h,m,v,g,!1),b!==null&&x!==null&&gP(h,x,b,g,!0)}}e:{if(m=d?Dc(d):window,v=m.nodeName&&m.nodeName.toLowerCase(),v==="select"||v==="input"&&m.type==="file")var P=W6;else if(aP(m))if(dT)P=Y6;else{P=K6;var _=G6}else(v=m.nodeName)&&v.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(P=q6);if(P&&(P=P(e,d))){uT(h,P,n,p);break e}_&&_(e,m,d),e==="focusout"&&(_=m._wrapperState)&&_.controlled&&m.type==="number"&&B1(m,"number",m.value)}switch(_=d?Dc(d):window,e){case"focusin":(aP(_)||_.contentEditable==="true")&&(Fc=_,Q1=d,Yd=null);break;case"focusout":Yd=Q1=Fc=null;break;case"mousedown":J1=!0;break;case"contextmenu":case"mouseup":case"dragend":J1=!1,pP(h,n,p);break;case"selectionchange":if(J6)break;case"keydown":case"keyup":pP(h,n,p)}var I;if(zw)e:{switch(e){case"compositionstart":var M="onCompositionStart";break e;case"compositionend":M="onCompositionEnd";break e;case"compositionupdate":M="onCompositionUpdate";break e}M=void 0}else Ac?aT(e,n)&&(M="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(M="onCompositionStart");M&&(lT&&n.locale!=="ko"&&(Ac||M!=="onCompositionStart"?M==="onCompositionEnd"&&Ac&&(I=sT()):(gl=p,Nw="value"in gl?gl.value:gl.textContent,Ac=!0)),_=_m(d,M),0<_.length&&(M=new oP(M,e,null,n,p),h.push({event:M,listeners:_}),I?M.data=I:(I=cT(n),I!==null&&(M.data=I)))),(I=z6?j6(e,n):H6(e,n))&&(d=_m(d,"onBeforeInput"),0<d.length&&(p=new oP("onBeforeInput","beforeinput",null,n,p),h.push({event:p,listeners:d}),p.data=I))}CT(h,t)})}function xf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function _m(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=mf(e,n),i!=null&&r.unshift(xf(e,i,o)),i=mf(e,t),i!=null&&r.push(xf(e,i,o))),e=e.return}return r}function gc(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function gP(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var a=n,c=a.alternate,d=a.stateNode;if(c!==null&&c===r)break;a.tag===5&&d!==null&&(a=d,o?(c=mf(n,i),c!=null&&s.unshift(xf(n,c,a))):o||(c=mf(n,i),c!=null&&s.push(xf(n,c,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var n9=/\r\n?/g,r9=/\u0000|\uFFFD/g;function vP(e){return(typeof e=="string"?e:""+e).replace(n9,`
|
|
30
|
+
`).replace(r9,"")}function xh(e,t,n){if(t=vP(t),vP(e)!==t&&n)throw Error(Te(425))}function $m(){}var Z1=null,eb=null;function tb(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var nb=typeof setTimeout=="function"?setTimeout:void 0,o9=typeof clearTimeout=="function"?clearTimeout:void 0,yP=typeof Promise=="function"?Promise:void 0,i9=typeof queueMicrotask=="function"?queueMicrotask:typeof yP!="undefined"?function(e){return yP.resolve(null).then(e).catch(s9)}:nb;function s9(e){setTimeout(function(){throw e})}function F0(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),yf(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);yf(t)}function Pl(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function bP(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Ou=Math.random().toString(36).slice(2),Wi="__reactFiber$"+Ou,Sf="__reactProps$"+Ou,Ls="__reactContainer$"+Ou,rb="__reactEvents$"+Ou,l9="__reactListeners$"+Ou,a9="__reactHandles$"+Ou;function ma(e){var t=e[Wi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ls]||n[Wi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=bP(e);e!==null;){if(n=e[Wi])return n;e=bP(e)}return t}e=n,n=e.parentNode}return null}function Jf(e){return e=e[Wi]||e[Ls],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Dc(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Te(33))}function Eg(e){return e[Sf]||null}var ob=[],Bc=-1;function Yl(e){return{current:e}}function mn(e){0>Bc||(e.current=ob[Bc],ob[Bc]=null,Bc--)}function an(e,t){Bc++,ob[Bc]=e.current,e.current=t}var Dl={},Tr=Yl(Dl),Jr=Yl(!1),$a=Dl;function cu(e,t){var n=e.type.contextTypes;if(!n)return Dl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Zr(e){return e=e.childContextTypes,e!=null}function Tm(){mn(Jr),mn(Tr)}function wP(e,t,n){if(Tr.current!==Dl)throw Error(Te(168));an(Tr,t),an(Jr,n)}function ST(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(Te(108,Gz(e)||"Unknown",o));return Rn({},n,r)}function Mm(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dl,$a=Tr.current,an(Tr,e),an(Jr,Jr.current),!0}function CP(e,t,n){var r=e.stateNode;if(!r)throw Error(Te(169));n?(e=ST(e,t,$a),r.__reactInternalMemoizedMergedChildContext=e,mn(Jr),mn(Tr),an(Tr,e)):mn(Jr),an(Jr,n)}var Cs=null,kg=!1,N0=!1;function ET(e){Cs===null?Cs=[e]:Cs.push(e)}function c9(e){kg=!0,ET(e)}function Xl(){if(!N0&&Cs!==null){N0=!0;var e=0,t=Zt;try{var n=Cs;for(Zt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Cs=null,kg=!1}catch(o){throw Cs!==null&&(Cs=Cs.slice(e+1)),Y$(Ow,Xl),o}finally{Zt=t,N0=!1}}return null}var zc=[],jc=0,Rm=null,Om=0,Vo=[],Uo=0,Ta=null,Es=1,ks="";function ca(e,t){zc[jc++]=Om,zc[jc++]=Rm,Rm=e,Om=t}function kT(e,t,n){Vo[Uo++]=Es,Vo[Uo++]=ks,Vo[Uo++]=Ta,Ta=e;var r=Es;e=ks;var o=32-Ci(r)-1;r&=~(1<<o),n+=1;var i=32-Ci(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Es=1<<32-Ci(t)+o|n<<o|r,ks=i+e}else Es=1<<i|n<<o|r,ks=e}function Hw(e){e.return!==null&&(ca(e,1),kT(e,1,0))}function Vw(e){for(;e===Rm;)Rm=zc[--jc],zc[jc]=null,Om=zc[--jc],zc[jc]=null;for(;e===Ta;)Ta=Vo[--Uo],Vo[Uo]=null,ks=Vo[--Uo],Vo[Uo]=null,Es=Vo[--Uo],Vo[Uo]=null}var Co=null,wo=null,wn=!1,yi=null;function PT(e,t){var n=Go(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function xP(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Co=e,wo=Pl(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Co=e,wo=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Ta!==null?{id:Es,overflow:ks}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Go(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Co=e,wo=null,!0):!1;default:return!1}}function ib(e){return(e.mode&1)!==0&&(e.flags&128)===0}function sb(e){if(wn){var t=wo;if(t){var n=t;if(!xP(e,t)){if(ib(e))throw Error(Te(418));t=Pl(n.nextSibling);var r=Co;t&&xP(e,t)?PT(r,n):(e.flags=e.flags&-4097|2,wn=!1,Co=e)}}else{if(ib(e))throw Error(Te(418));e.flags=e.flags&-4097|2,wn=!1,Co=e}}}function SP(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Co=e}function Sh(e){if(e!==Co)return!1;if(!wn)return SP(e),wn=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!tb(e.type,e.memoizedProps)),t&&(t=wo)){if(ib(e))throw IT(),Error(Te(418));for(;t;)PT(e,t),t=Pl(t.nextSibling)}if(SP(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Te(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){wo=Pl(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}wo=null}}else wo=Co?Pl(e.stateNode.nextSibling):null;return!0}function IT(){for(var e=wo;e;)e=Pl(e.nextSibling)}function uu(){wo=Co=null,wn=!1}function Uw(e){yi===null?yi=[e]:yi.push(e)}var u9=Hs.ReactCurrentBatchConfig;function mi(e,t){if(e&&e.defaultProps){t=Rn({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Lm=Yl(null),Am=null,Hc=null,Ww=null;function Gw(){Ww=Hc=Am=null}function Kw(e){var t=Lm.current;mn(Lm),e._currentValue=t}function lb(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Jc(e,t){Am=e,Ww=Hc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Xr=!0),e.firstContext=null)}function Qo(e){var t=e._currentValue;if(Ww!==e)if(e={context:e,memoizedValue:t,next:null},Hc===null){if(Am===null)throw Error(Te(308));Hc=e,Am.dependencies={lanes:0,firstContext:e}}else Hc=Hc.next=e;return t}var ga=null;function qw(e){ga===null?ga=[e]:ga.push(e)}function _T(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,qw(t)):(n.next=o.next,o.next=n),t.interleaved=n,As(e,r)}function As(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var al=!1;function Yw(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function $T(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function $s(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Il(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ht&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,As(e,n)}return o=r.interleaved,o===null?(t.next=t,qw(r)):(t.next=o.next,o.next=t),r.interleaved=t,As(e,n)}function em(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Lw(e,n)}}function EP(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Fm(e,t,n,r){var o=e.updateQueue;al=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var c=a,d=c.next;c.next=null,s===null?i=d:s.next=d,s=c;var p=e.alternate;p!==null&&(p=p.updateQueue,a=p.lastBaseUpdate,a!==s&&(a===null?p.firstBaseUpdate=d:a.next=d,p.lastBaseUpdate=c))}if(i!==null){var h=o.baseState;s=0,p=d=c=null,a=i;do{var m=a.lane,v=a.eventTime;if((r&m)===m){p!==null&&(p=p.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var b=e,g=a;switch(m=t,v=n,g.tag){case 1:if(b=g.payload,typeof b=="function"){h=b.call(v,h,m);break e}h=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=g.payload,m=typeof b=="function"?b.call(v,h,m):b,m==null)break e;h=Rn({},h,m);break e;case 2:al=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[a]:m.push(a))}else v={eventTime:v,lane:m,tag:a.tag,payload:a.payload,callback:a.callback,next:null},p===null?(d=p=v,c=h):p=p.next=v,s|=m;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;m=a,a=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(1);if(p===null&&(c=h),o.baseState=c,o.firstBaseUpdate=d,o.lastBaseUpdate=p,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Ra|=s,e.lanes=s,e.memoizedState=h}}function kP(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(Te(191,o));o.call(r)}}}var TT=new _$.Component().refs;function ab(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Rn({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Pg={isMounted:function(e){return(e=e._reactInternals)?Wa(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Br(),o=$l(e),i=$s(r,o);i.payload=t,n!=null&&(i.callback=n),t=Il(e,i,o),t!==null&&(xi(t,e,o,r),em(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Br(),o=$l(e),i=$s(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Il(e,i,o),t!==null&&(xi(t,e,o,r),em(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Br(),r=$l(e),o=$s(n,r);o.tag=2,t!=null&&(o.callback=t),t=Il(e,o,r),t!==null&&(xi(t,e,r,n),em(t,e,r))}};function PP(e,t,n,r,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!wf(n,r)||!wf(o,i):!0}function MT(e,t,n){var r=!1,o=Dl,i=t.contextType;return typeof i=="object"&&i!==null?i=Qo(i):(o=Zr(t)?$a:Tr.current,r=t.contextTypes,i=(r=r!=null)?cu(e,o):Dl),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Pg,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function IP(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Pg.enqueueReplaceState(t,t.state,null)}function cb(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=TT,Yw(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Qo(i):(i=Zr(t)?$a:Tr.current,o.context=cu(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(ab(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Pg.enqueueReplaceState(o,o.state,null),Fm(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function yd(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Te(309));var r=n.stateNode}if(!r)throw Error(Te(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var a=o.refs;a===TT&&(a=o.refs={}),s===null?delete a[i]:a[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(Te(284));if(!n._owner)throw Error(Te(290,e))}return e}function Eh(e,t){throw e=Object.prototype.toString.call(t),Error(Te(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function _P(e){var t=e._init;return t(e._payload)}function RT(e){function t(C,S){if(e){var w=C.deletions;w===null?(C.deletions=[S],C.flags|=16):w.push(S)}}function n(C,S){if(!e)return null;for(;S!==null;)t(C,S),S=S.sibling;return null}function r(C,S){for(C=new Map;S!==null;)S.key!==null?C.set(S.key,S):C.set(S.index,S),S=S.sibling;return C}function o(C,S){return C=Tl(C,S),C.index=0,C.sibling=null,C}function i(C,S,w){return C.index=w,e?(w=C.alternate,w!==null?(w=w.index,w<S?(C.flags|=2,S):w):(C.flags|=2,S)):(C.flags|=1048576,S)}function s(C){return e&&C.alternate===null&&(C.flags|=2),C}function a(C,S,w,E){return S===null||S.tag!==6?(S=U0(w,C.mode,E),S.return=C,S):(S=o(S,w),S.return=C,S)}function c(C,S,w,E){var P=w.type;return P===Lc?p(C,S,w.props.children,E,w.key):S!==null&&(S.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===ll&&_P(P)===S.type)?(E=o(S,w.props),E.ref=yd(C,S,w),E.return=C,E):(E=sm(w.type,w.key,w.props,null,C.mode,E),E.ref=yd(C,S,w),E.return=C,E)}function d(C,S,w,E){return S===null||S.tag!==4||S.stateNode.containerInfo!==w.containerInfo||S.stateNode.implementation!==w.implementation?(S=W0(w,C.mode,E),S.return=C,S):(S=o(S,w.children||[]),S.return=C,S)}function p(C,S,w,E,P){return S===null||S.tag!==7?(S=Sa(w,C.mode,E,P),S.return=C,S):(S=o(S,w),S.return=C,S)}function h(C,S,w){if(typeof S=="string"&&S!==""||typeof S=="number")return S=U0(""+S,C.mode,w),S.return=C,S;if(typeof S=="object"&&S!==null){switch(S.$$typeof){case ph:return w=sm(S.type,S.key,S.props,null,C.mode,w),w.ref=yd(C,null,S),w.return=C,w;case Oc:return S=W0(S,C.mode,w),S.return=C,S;case ll:var E=S._init;return h(C,E(S._payload),w)}if(Ad(S)||pd(S))return S=Sa(S,C.mode,w,null),S.return=C,S;Eh(C,S)}return null}function m(C,S,w,E){var P=S!==null?S.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return P!==null?null:a(C,S,""+w,E);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case ph:return w.key===P?c(C,S,w,E):null;case Oc:return w.key===P?d(C,S,w,E):null;case ll:return P=w._init,m(C,S,P(w._payload),E)}if(Ad(w)||pd(w))return P!==null?null:p(C,S,w,E,null);Eh(C,w)}return null}function v(C,S,w,E,P){if(typeof E=="string"&&E!==""||typeof E=="number")return C=C.get(w)||null,a(S,C,""+E,P);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case ph:return C=C.get(E.key===null?w:E.key)||null,c(S,C,E,P);case Oc:return C=C.get(E.key===null?w:E.key)||null,d(S,C,E,P);case ll:var _=E._init;return v(C,S,w,_(E._payload),P)}if(Ad(E)||pd(E))return C=C.get(w)||null,p(S,C,E,P,null);Eh(S,E)}return null}function b(C,S,w,E){for(var P=null,_=null,I=S,M=S=0,O=null;I!==null&&M<w.length;M++){I.index>M?(O=I,I=null):O=I.sibling;var L=m(C,I,w[M],E);if(L===null){I===null&&(I=O);break}e&&I&&L.alternate===null&&t(C,I),S=i(L,S,M),_===null?P=L:_.sibling=L,_=L,I=O}if(M===w.length)return n(C,I),wn&&ca(C,M),P;if(I===null){for(;M<w.length;M++)I=h(C,w[M],E),I!==null&&(S=i(I,S,M),_===null?P=I:_.sibling=I,_=I);return wn&&ca(C,M),P}for(I=r(C,I);M<w.length;M++)O=v(I,C,M,w[M],E),O!==null&&(e&&O.alternate!==null&&I.delete(O.key===null?M:O.key),S=i(O,S,M),_===null?P=O:_.sibling=O,_=O);return e&&I.forEach(function(R){return t(C,R)}),wn&&ca(C,M),P}function g(C,S,w,E){var P=pd(w);if(typeof P!="function")throw Error(Te(150));if(w=P.call(w),w==null)throw Error(Te(151));for(var _=P=null,I=S,M=S=0,O=null,L=w.next();I!==null&&!L.done;M++,L=w.next()){I.index>M?(O=I,I=null):O=I.sibling;var R=m(C,I,L.value,E);if(R===null){I===null&&(I=O);break}e&&I&&R.alternate===null&&t(C,I),S=i(R,S,M),_===null?P=R:_.sibling=R,_=R,I=O}if(L.done)return n(C,I),wn&&ca(C,M),P;if(I===null){for(;!L.done;M++,L=w.next())L=h(C,L.value,E),L!==null&&(S=i(L,S,M),_===null?P=L:_.sibling=L,_=L);return wn&&ca(C,M),P}for(I=r(C,I);!L.done;M++,L=w.next())L=v(I,C,M,L.value,E),L!==null&&(e&&L.alternate!==null&&I.delete(L.key===null?M:L.key),S=i(L,S,M),_===null?P=L:_.sibling=L,_=L);return e&&I.forEach(function(H){return t(C,H)}),wn&&ca(C,M),P}function x(C,S,w,E){if(typeof w=="object"&&w!==null&&w.type===Lc&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case ph:e:{for(var P=w.key,_=S;_!==null;){if(_.key===P){if(P=w.type,P===Lc){if(_.tag===7){n(C,_.sibling),S=o(_,w.props.children),S.return=C,C=S;break e}}else if(_.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===ll&&_P(P)===_.type){n(C,_.sibling),S=o(_,w.props),S.ref=yd(C,_,w),S.return=C,C=S;break e}n(C,_);break}else t(C,_);_=_.sibling}w.type===Lc?(S=Sa(w.props.children,C.mode,E,w.key),S.return=C,C=S):(E=sm(w.type,w.key,w.props,null,C.mode,E),E.ref=yd(C,S,w),E.return=C,C=E)}return s(C);case Oc:e:{for(_=w.key;S!==null;){if(S.key===_)if(S.tag===4&&S.stateNode.containerInfo===w.containerInfo&&S.stateNode.implementation===w.implementation){n(C,S.sibling),S=o(S,w.children||[]),S.return=C,C=S;break e}else{n(C,S);break}else t(C,S);S=S.sibling}S=W0(w,C.mode,E),S.return=C,C=S}return s(C);case ll:return _=w._init,x(C,S,_(w._payload),E)}if(Ad(w))return b(C,S,w,E);if(pd(w))return g(C,S,w,E);Eh(C,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,S!==null&&S.tag===6?(n(C,S.sibling),S=o(S,w),S.return=C,C=S):(n(C,S),S=U0(w,C.mode,E),S.return=C,C=S),s(C)):n(C,S)}return x}var du=RT(!0),OT=RT(!1),Zf={},Yi=Yl(Zf),Ef=Yl(Zf),kf=Yl(Zf);function va(e){if(e===Zf)throw Error(Te(174));return e}function Xw(e,t){switch(an(kf,t),an(Ef,e),an(Yi,Zf),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:j1(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=j1(t,e)}mn(Yi),an(Yi,t)}function fu(){mn(Yi),mn(Ef),mn(kf)}function LT(e){va(kf.current);var t=va(Yi.current),n=j1(t,e.type);t!==n&&(an(Ef,e),an(Yi,n))}function Qw(e){Ef.current===e&&(mn(Yi),mn(Ef))}var In=Yl(0);function Nm(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var D0=[];function Jw(){for(var e=0;e<D0.length;e++)D0[e]._workInProgressVersionPrimary=null;D0.length=0}var tm=Hs.ReactCurrentDispatcher,B0=Hs.ReactCurrentBatchConfig,Ma=0,Mn=null,Qn=null,or=null,Dm=!1,Xd=!1,Pf=0,d9=0;function xr(){throw Error(Te(321))}function Zw(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Pi(e[n],t[n]))return!1;return!0}function eC(e,t,n,r,o,i){if(Ma=i,Mn=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,tm.current=e===null||e.memoizedState===null?m9:g9,e=n(r,o),Xd){i=0;do{if(Xd=!1,Pf=0,25<=i)throw Error(Te(301));i+=1,or=Qn=null,t.updateQueue=null,tm.current=v9,e=n(r,o)}while(Xd)}if(tm.current=Bm,t=Qn!==null&&Qn.next!==null,Ma=0,or=Qn=Mn=null,Dm=!1,t)throw Error(Te(300));return e}function tC(){var e=Pf!==0;return Pf=0,e}function Di(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return or===null?Mn.memoizedState=or=e:or=or.next=e,or}function Jo(){if(Qn===null){var e=Mn.alternate;e=e!==null?e.memoizedState:null}else e=Qn.next;var t=or===null?Mn.memoizedState:or.next;if(t!==null)or=t,Qn=e;else{if(e===null)throw Error(Te(310));Qn=e,e={memoizedState:Qn.memoizedState,baseState:Qn.baseState,baseQueue:Qn.baseQueue,queue:Qn.queue,next:null},or===null?Mn.memoizedState=or=e:or=or.next=e}return or}function If(e,t){return typeof t=="function"?t(e):t}function z0(e){var t=Jo(),n=t.queue;if(n===null)throw Error(Te(311));n.lastRenderedReducer=e;var r=Qn,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var a=s=null,c=null,d=i;do{var p=d.lane;if((Ma&p)===p)c!==null&&(c=c.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),r=d.hasEagerState?d.eagerState:e(r,d.action);else{var h={lane:p,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};c===null?(a=c=h,s=r):c=c.next=h,Mn.lanes|=p,Ra|=p}d=d.next}while(d!==null&&d!==i);c===null?s=r:c.next=a,Pi(r,t.memoizedState)||(Xr=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,Mn.lanes|=i,Ra|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function j0(e){var t=Jo(),n=t.queue;if(n===null)throw Error(Te(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);Pi(i,t.memoizedState)||(Xr=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function AT(){}function FT(e,t){var n=Mn,r=Jo(),o=t(),i=!Pi(r.memoizedState,o);if(i&&(r.memoizedState=o,Xr=!0),r=r.queue,nC(BT.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||or!==null&&or.memoizedState.tag&1){if(n.flags|=2048,_f(9,DT.bind(null,n,r,o,t),void 0,null),sr===null)throw Error(Te(349));Ma&30||NT(n,t,o)}return o}function NT(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Mn.updateQueue,t===null?(t={lastEffect:null,stores:null},Mn.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function DT(e,t,n,r){t.value=n,t.getSnapshot=r,zT(t)&&jT(e)}function BT(e,t,n){return n(function(){zT(t)&&jT(e)})}function zT(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Pi(e,n)}catch(r){return!0}}function jT(e){var t=As(e,1);t!==null&&xi(t,e,1,-1)}function $P(e){var t=Di();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:If,lastRenderedState:e},t.queue=e,e=e.dispatch=h9.bind(null,Mn,e),[t.memoizedState,e]}function _f(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Mn.updateQueue,t===null?(t={lastEffect:null,stores:null},Mn.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function HT(){return Jo().memoizedState}function nm(e,t,n,r){var o=Di();Mn.flags|=e,o.memoizedState=_f(1|t,n,void 0,r===void 0?null:r)}function Ig(e,t,n,r){var o=Jo();r=r===void 0?null:r;var i=void 0;if(Qn!==null){var s=Qn.memoizedState;if(i=s.destroy,r!==null&&Zw(r,s.deps)){o.memoizedState=_f(t,n,i,r);return}}Mn.flags|=e,o.memoizedState=_f(1|t,n,i,r)}function TP(e,t){return nm(8390656,8,e,t)}function nC(e,t){return Ig(2048,8,e,t)}function VT(e,t){return Ig(4,2,e,t)}function UT(e,t){return Ig(4,4,e,t)}function WT(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function GT(e,t,n){return n=n!=null?n.concat([e]):null,Ig(4,4,WT.bind(null,t,e),n)}function rC(){}function KT(e,t){var n=Jo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Zw(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function qT(e,t){var n=Jo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Zw(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function YT(e,t,n){return Ma&21?(Pi(n,t)||(n=J$(),Mn.lanes|=n,Ra|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Xr=!0),e.memoizedState=n)}function f9(e,t){var n=Zt;Zt=n!==0&&4>n?n:4,e(!0);var r=B0.transition;B0.transition={};try{e(!1),t()}finally{Zt=n,B0.transition=r}}function XT(){return Jo().memoizedState}function p9(e,t,n){var r=$l(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},QT(e))JT(t,n);else if(n=_T(e,t,n,r),n!==null){var o=Br();xi(n,e,r,o),ZT(n,t,r)}}function h9(e,t,n){var r=$l(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(QT(e))JT(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,Pi(a,s)){var c=t.interleaved;c===null?(o.next=o,qw(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch(d){}finally{}n=_T(e,t,o,r),n!==null&&(o=Br(),xi(n,e,r,o),ZT(n,t,r))}}function QT(e){var t=e.alternate;return e===Mn||t!==null&&t===Mn}function JT(e,t){Xd=Dm=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ZT(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Lw(e,n)}}var Bm={readContext:Qo,useCallback:xr,useContext:xr,useEffect:xr,useImperativeHandle:xr,useInsertionEffect:xr,useLayoutEffect:xr,useMemo:xr,useReducer:xr,useRef:xr,useState:xr,useDebugValue:xr,useDeferredValue:xr,useTransition:xr,useMutableSource:xr,useSyncExternalStore:xr,useId:xr,unstable_isNewReconciler:!1},m9={readContext:Qo,useCallback:function(e,t){return Di().memoizedState=[e,t===void 0?null:t],e},useContext:Qo,useEffect:TP,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,nm(4194308,4,WT.bind(null,t,e),n)},useLayoutEffect:function(e,t){return nm(4194308,4,e,t)},useInsertionEffect:function(e,t){return nm(4,2,e,t)},useMemo:function(e,t){var n=Di();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Di();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=p9.bind(null,Mn,e),[r.memoizedState,e]},useRef:function(e){var t=Di();return e={current:e},t.memoizedState=e},useState:$P,useDebugValue:rC,useDeferredValue:function(e){return Di().memoizedState=e},useTransition:function(){var e=$P(!1),t=e[0];return e=f9.bind(null,e[1]),Di().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Mn,o=Di();if(wn){if(n===void 0)throw Error(Te(407));n=n()}else{if(n=t(),sr===null)throw Error(Te(349));Ma&30||NT(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,TP(BT.bind(null,r,i,e),[e]),r.flags|=2048,_f(9,DT.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Di(),t=sr.identifierPrefix;if(wn){var n=ks,r=Es;n=(r&~(1<<32-Ci(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Pf++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=d9++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},g9={readContext:Qo,useCallback:KT,useContext:Qo,useEffect:nC,useImperativeHandle:GT,useInsertionEffect:VT,useLayoutEffect:UT,useMemo:qT,useReducer:z0,useRef:HT,useState:function(){return z0(If)},useDebugValue:rC,useDeferredValue:function(e){var t=Jo();return YT(t,Qn.memoizedState,e)},useTransition:function(){var e=z0(If)[0],t=Jo().memoizedState;return[e,t]},useMutableSource:AT,useSyncExternalStore:FT,useId:XT,unstable_isNewReconciler:!1},v9={readContext:Qo,useCallback:KT,useContext:Qo,useEffect:nC,useImperativeHandle:GT,useInsertionEffect:VT,useLayoutEffect:UT,useMemo:qT,useReducer:j0,useRef:HT,useState:function(){return j0(If)},useDebugValue:rC,useDeferredValue:function(e){var t=Jo();return Qn===null?t.memoizedState=e:YT(t,Qn.memoizedState,e)},useTransition:function(){var e=j0(If)[0],t=Jo().memoizedState;return[e,t]},useMutableSource:AT,useSyncExternalStore:FT,useId:XT,unstable_isNewReconciler:!1};function pu(e,t){try{var n="",r=t;do n+=Wz(r),r=r.return;while(r);var o=n}catch(i){o=`
|
|
31
|
+
Error generating stack: `+i.message+`
|
|
32
|
+
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function H0(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function ub(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var y9=typeof WeakMap=="function"?WeakMap:Map;function eM(e,t,n){n=$s(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){jm||(jm=!0,wb=r),ub(e,t)},n}function tM(e,t,n){n=$s(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ub(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){ub(e,t),typeof r!="function"&&(_l===null?_l=new Set([this]):_l.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function MP(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new y9;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=R9.bind(null,e,t,n),t.then(e,e))}function RP(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function OP(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=$s(-1,1),t.tag=2,Il(n,t,1))),n.lanes|=1),e)}var b9=Hs.ReactCurrentOwner,Xr=!1;function Fr(e,t,n,r){t.child=e===null?OT(t,null,n,r):du(t,e.child,n,r)}function LP(e,t,n,r,o){n=n.render;var i=t.ref;return Jc(t,o),r=eC(e,t,n,r,i,o),n=tC(),e!==null&&!Xr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Fs(e,t,o)):(wn&&n&&Hw(t),t.flags|=1,Fr(e,t,r,o),t.child)}function AP(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!dC(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,nM(e,t,i,r,o)):(e=sm(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:wf,n(s,r)&&e.ref===t.ref)return Fs(e,t,o)}return t.flags|=1,e=Tl(i,r),e.ref=t.ref,e.return=t,t.child=e}function nM(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(wf(i,r)&&e.ref===t.ref)if(Xr=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Xr=!0);else return t.lanes=e.lanes,Fs(e,t,o)}return db(e,t,n,r,o)}function rM(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},an(Uc,mo),mo|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,an(Uc,mo),mo|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,an(Uc,mo),mo|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,an(Uc,mo),mo|=r;return Fr(e,t,o,n),t.child}function oM(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function db(e,t,n,r,o){var i=Zr(n)?$a:Tr.current;return i=cu(t,i),Jc(t,o),n=eC(e,t,n,r,i,o),r=tC(),e!==null&&!Xr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Fs(e,t,o)):(wn&&r&&Hw(t),t.flags|=1,Fr(e,t,n,o),t.child)}function FP(e,t,n,r,o){if(Zr(n)){var i=!0;Mm(t)}else i=!1;if(Jc(t,o),t.stateNode===null)rm(e,t),MT(t,n,r),cb(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var c=s.context,d=n.contextType;typeof d=="object"&&d!==null?d=Qo(d):(d=Zr(n)?$a:Tr.current,d=cu(t,d));var p=n.getDerivedStateFromProps,h=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||c!==d)&&IP(t,s,r,d),al=!1;var m=t.memoizedState;s.state=m,Fm(t,r,s,o),c=t.memoizedState,a!==r||m!==c||Jr.current||al?(typeof p=="function"&&(ab(t,n,p,r),c=t.memoizedState),(a=al||PP(t,n,a,r,m,c,d))?(h||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),s.props=r,s.state=c,s.context=d,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,$T(e,t),a=t.memoizedProps,d=t.type===t.elementType?a:mi(t.type,a),s.props=d,h=t.pendingProps,m=s.context,c=n.contextType,typeof c=="object"&&c!==null?c=Qo(c):(c=Zr(n)?$a:Tr.current,c=cu(t,c));var v=n.getDerivedStateFromProps;(p=typeof v=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==h||m!==c)&&IP(t,s,r,c),al=!1,m=t.memoizedState,s.state=m,Fm(t,r,s,o);var b=t.memoizedState;a!==h||m!==b||Jr.current||al?(typeof v=="function"&&(ab(t,n,v,r),b=t.memoizedState),(d=al||PP(t,n,d,r,m,b,c)||!1)?(p||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,b,c),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,b,c)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=b),s.props=r,s.state=b,s.context=c,r=d):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return fb(e,t,n,r,i,o)}function fb(e,t,n,r,o,i){oM(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&CP(t,n,!1),Fs(e,t,i);r=t.stateNode,b9.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=du(t,e.child,null,i),t.child=du(t,null,a,i)):Fr(e,t,a,i),t.memoizedState=r.state,o&&CP(t,n,!0),t.child}function iM(e){var t=e.stateNode;t.pendingContext?wP(e,t.pendingContext,t.pendingContext!==t.context):t.context&&wP(e,t.context,!1),Xw(e,t.containerInfo)}function NP(e,t,n,r,o){return uu(),Uw(o),t.flags|=256,Fr(e,t,n,r),t.child}var pb={dehydrated:null,treeContext:null,retryLane:0};function hb(e){return{baseLanes:e,cachePool:null,transitions:null}}function sM(e,t,n){var r=t.pendingProps,o=In.current,i=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),an(In,o&1),e===null)return sb(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=Tg(s,r,0,null),e=Sa(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=hb(n),t.memoizedState=pb,e):oC(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return w9(e,t,s,r,a,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,a=o.sibling;var c={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=Tl(o,c),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=Tl(a,i):(i=Sa(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?hb(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=pb,r}return i=e.child,e=i.sibling,r=Tl(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function oC(e,t){return t=Tg({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function kh(e,t,n,r){return r!==null&&Uw(r),du(t,e.child,null,n),e=oC(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function w9(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=H0(Error(Te(422))),kh(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Tg({mode:"visible",children:r.children},o,0,null),i=Sa(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&du(t,e.child,null,s),t.child.memoizedState=hb(s),t.memoizedState=pb,i);if(!(t.mode&1))return kh(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(Te(419)),r=H0(i,r,void 0),kh(e,t,s,r)}if(a=(s&e.childLanes)!==0,Xr||a){if(r=sr,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,As(e,o),xi(r,e,o,-1))}return uC(),r=H0(Error(Te(421))),kh(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=O9.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,wo=Pl(o.nextSibling),Co=t,wn=!0,yi=null,e!==null&&(Vo[Uo++]=Es,Vo[Uo++]=ks,Vo[Uo++]=Ta,Es=e.id,ks=e.overflow,Ta=t),t=oC(t,r.children),t.flags|=4096,t)}function DP(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),lb(e.return,t,n)}function V0(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function lM(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Fr(e,t,r.children,n),r=In.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&DP(e,n,t);else if(e.tag===19)DP(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(an(In,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Nm(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),V0(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Nm(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}V0(t,!0,n,null,i);break;case"together":V0(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function rm(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Fs(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ra|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Te(153));if(t.child!==null){for(e=t.child,n=Tl(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Tl(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function C9(e,t,n){switch(t.tag){case 3:iM(t),uu();break;case 5:LT(t);break;case 1:Zr(t.type)&&Mm(t);break;case 4:Xw(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;an(Lm,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(an(In,In.current&1),t.flags|=128,null):n&t.child.childLanes?sM(e,t,n):(an(In,In.current&1),e=Fs(e,t,n),e!==null?e.sibling:null);an(In,In.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return lM(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),an(In,In.current),r)break;return null;case 22:case 23:return t.lanes=0,rM(e,t,n)}return Fs(e,t,n)}var aM,mb,cM,uM;aM=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};mb=function(){};cM=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,va(Yi.current);var i=null;switch(n){case"input":o=N1(e,o),r=N1(e,r),i=[];break;case"select":o=Rn({},o,{value:void 0}),r=Rn({},r,{value:void 0}),i=[];break;case"textarea":o=z1(e,o),r=z1(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=$m)}H1(n,r);var s;n=null;for(d in o)if(!r.hasOwnProperty(d)&&o.hasOwnProperty(d)&&o[d]!=null)if(d==="style"){var a=o[d];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(pf.hasOwnProperty(d)?i||(i=[]):(i=i||[]).push(d,null));for(d in r){var c=r[d];if(a=o!=null?o[d]:void 0,r.hasOwnProperty(d)&&c!==a&&(c!=null||a!=null))if(d==="style")if(a){for(s in a)!a.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in c)c.hasOwnProperty(s)&&a[s]!==c[s]&&(n||(n={}),n[s]=c[s])}else n||(i||(i=[]),i.push(d,n)),n=c;else d==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,a=a?a.__html:void 0,c!=null&&a!==c&&(i=i||[]).push(d,c)):d==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(d,""+c):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(pf.hasOwnProperty(d)?(c!=null&&d==="onScroll"&&pn("scroll",e),i||a===c||(i=[])):(i=i||[]).push(d,c))}n&&(i=i||[]).push("style",n);var d=i;(t.updateQueue=d)&&(t.flags|=4)}};uM=function(e,t,n,r){n!==r&&(t.flags|=4)};function bd(e,t){if(!wn)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Sr(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function x9(e,t,n){var r=t.pendingProps;switch(Vw(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Sr(t),null;case 1:return Zr(t.type)&&Tm(),Sr(t),null;case 3:return r=t.stateNode,fu(),mn(Jr),mn(Tr),Jw(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Sh(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,yi!==null&&(Sb(yi),yi=null))),mb(e,t),Sr(t),null;case 5:Qw(t);var o=va(kf.current);if(n=t.type,e!==null&&t.stateNode!=null)cM(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Te(166));return Sr(t),null}if(e=va(Yi.current),Sh(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Wi]=t,r[Sf]=i,e=(t.mode&1)!==0,n){case"dialog":pn("cancel",r),pn("close",r);break;case"iframe":case"object":case"embed":pn("load",r);break;case"video":case"audio":for(o=0;o<Nd.length;o++)pn(Nd[o],r);break;case"source":pn("error",r);break;case"img":case"image":case"link":pn("error",r),pn("load",r);break;case"details":pn("toggle",r);break;case"input":Kk(r,i),pn("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},pn("invalid",r);break;case"textarea":Yk(r,i),pn("invalid",r)}H1(n,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var a=i[s];s==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&xh(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&xh(r.textContent,a,e),o=["children",""+a]):pf.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&pn("scroll",r)}switch(n){case"input":hh(r),qk(r,i,!0);break;case"textarea":hh(r),Xk(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=$m)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=N$(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Wi]=t,e[Sf]=r,aM(e,t,!1,!1),t.stateNode=e;e:{switch(s=V1(n,r),n){case"dialog":pn("cancel",e),pn("close",e),o=r;break;case"iframe":case"object":case"embed":pn("load",e),o=r;break;case"video":case"audio":for(o=0;o<Nd.length;o++)pn(Nd[o],e);o=r;break;case"source":pn("error",e),o=r;break;case"img":case"image":case"link":pn("error",e),pn("load",e),o=r;break;case"details":pn("toggle",e),o=r;break;case"input":Kk(e,r),o=N1(e,r),pn("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Rn({},r,{value:void 0}),pn("invalid",e);break;case"textarea":Yk(e,r),o=z1(e,r),pn("invalid",e);break;default:o=r}H1(n,o),a=o;for(i in a)if(a.hasOwnProperty(i)){var c=a[i];i==="style"?z$(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&D$(e,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&hf(e,c):typeof c=="number"&&hf(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(pf.hasOwnProperty(i)?c!=null&&i==="onScroll"&&pn("scroll",e):c!=null&&_w(e,i,c,s))}switch(n){case"input":hh(e),qk(e,r,!1);break;case"textarea":hh(e),Xk(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Nl(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?qc(e,!!r.multiple,i,!1):r.defaultValue!=null&&qc(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=$m)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Sr(t),null;case 6:if(e&&t.stateNode!=null)uM(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Te(166));if(n=va(kf.current),va(Yi.current),Sh(t)){if(r=t.stateNode,n=t.memoizedProps,r[Wi]=t,(i=r.nodeValue!==n)&&(e=Co,e!==null))switch(e.tag){case 3:xh(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&xh(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Wi]=t,t.stateNode=r}return Sr(t),null;case 13:if(mn(In),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(wn&&wo!==null&&t.mode&1&&!(t.flags&128))IT(),uu(),t.flags|=98560,i=!1;else if(i=Sh(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(Te(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(Te(317));i[Wi]=t}else uu(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Sr(t),i=!1}else yi!==null&&(Sb(yi),yi=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||In.current&1?Jn===0&&(Jn=3):uC())),t.updateQueue!==null&&(t.flags|=4),Sr(t),null);case 4:return fu(),mb(e,t),e===null&&Cf(t.stateNode.containerInfo),Sr(t),null;case 10:return Kw(t.type._context),Sr(t),null;case 17:return Zr(t.type)&&Tm(),Sr(t),null;case 19:if(mn(In),i=t.memoizedState,i===null)return Sr(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)bd(i,!1);else{if(Jn!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Nm(e),s!==null){for(t.flags|=128,bd(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return an(In,In.current&1|2),t.child}e=e.sibling}i.tail!==null&&jn()>hu&&(t.flags|=128,r=!0,bd(i,!1),t.lanes=4194304)}else{if(!r)if(e=Nm(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),bd(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!wn)return Sr(t),null}else 2*jn()-i.renderingStartTime>hu&&n!==1073741824&&(t.flags|=128,r=!0,bd(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=jn(),t.sibling=null,n=In.current,an(In,r?n&1|2:n&1),t):(Sr(t),null);case 22:case 23:return cC(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?mo&1073741824&&(Sr(t),t.subtreeFlags&6&&(t.flags|=8192)):Sr(t),null;case 24:return null;case 25:return null}throw Error(Te(156,t.tag))}function S9(e,t){switch(Vw(t),t.tag){case 1:return Zr(t.type)&&Tm(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fu(),mn(Jr),mn(Tr),Jw(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Qw(t),null;case 13:if(mn(In),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Te(340));uu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return mn(In),null;case 4:return fu(),null;case 10:return Kw(t.type._context),null;case 22:case 23:return cC(),null;case 24:return null;default:return null}}var Ph=!1,Pr=!1,E9=typeof WeakSet=="function"?WeakSet:Set,Ge=null;function Vc(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Nn(e,t,r)}else n.current=null}function gb(e,t,n){try{n()}catch(r){Nn(e,t,r)}}var BP=!1;function k9(e,t){if(Z1=Pm,e=hT(),jw(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(E){n=null;break e}var s=0,a=-1,c=-1,d=0,p=0,h=e,m=null;t:for(;;){for(var v;h!==n||o!==0&&h.nodeType!==3||(a=s+o),h!==i||r!==0&&h.nodeType!==3||(c=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(v=h.firstChild)!==null;)m=h,h=v;for(;;){if(h===e)break t;if(m===n&&++d===o&&(a=s),m===i&&++p===r&&(c=s),(v=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=v}n=a===-1||c===-1?null:{start:a,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(eb={focusedElem:e,selectionRange:n},Pm=!1,Ge=t;Ge!==null;)if(t=Ge,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ge=e;else for(;Ge!==null;){t=Ge;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var g=b.memoizedProps,x=b.memoizedState,C=t.stateNode,S=C.getSnapshotBeforeUpdate(t.elementType===t.type?g:mi(t.type,g),x);C.__reactInternalSnapshotBeforeUpdate=S}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Te(163))}}catch(E){Nn(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,Ge=e;break}Ge=t.return}return b=BP,BP=!1,b}function Qd(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&gb(t,n,i)}o=o.next}while(o!==r)}}function _g(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function vb(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function dM(e){var t=e.alternate;t!==null&&(e.alternate=null,dM(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Wi],delete t[Sf],delete t[rb],delete t[l9],delete t[a9])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function fM(e){return e.tag===5||e.tag===3||e.tag===4}function zP(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||fM(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function yb(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=$m));else if(r!==4&&(e=e.child,e!==null))for(yb(e,t,n),e=e.sibling;e!==null;)yb(e,t,n),e=e.sibling}function bb(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(bb(e,t,n),e=e.sibling;e!==null;)bb(e,t,n),e=e.sibling}var pr=null,vi=!1;function tl(e,t,n){for(n=n.child;n!==null;)pM(e,t,n),n=n.sibling}function pM(e,t,n){if(qi&&typeof qi.onCommitFiberUnmount=="function")try{qi.onCommitFiberUnmount(wg,n)}catch(a){}switch(n.tag){case 5:Pr||Vc(n,t);case 6:var r=pr,o=vi;pr=null,tl(e,t,n),pr=r,vi=o,pr!==null&&(vi?(e=pr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):pr.removeChild(n.stateNode));break;case 18:pr!==null&&(vi?(e=pr,n=n.stateNode,e.nodeType===8?F0(e.parentNode,n):e.nodeType===1&&F0(e,n),yf(e)):F0(pr,n.stateNode));break;case 4:r=pr,o=vi,pr=n.stateNode.containerInfo,vi=!0,tl(e,t,n),pr=r,vi=o;break;case 0:case 11:case 14:case 15:if(!Pr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&gb(n,t,s),o=o.next}while(o!==r)}tl(e,t,n);break;case 1:if(!Pr&&(Vc(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Nn(n,t,a)}tl(e,t,n);break;case 21:tl(e,t,n);break;case 22:n.mode&1?(Pr=(r=Pr)||n.memoizedState!==null,tl(e,t,n),Pr=r):tl(e,t,n);break;default:tl(e,t,n)}}function jP(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new E9),t.forEach(function(r){var o=L9.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function fi(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:pr=a.stateNode,vi=!1;break e;case 3:pr=a.stateNode.containerInfo,vi=!0;break e;case 4:pr=a.stateNode.containerInfo,vi=!0;break e}a=a.return}if(pr===null)throw Error(Te(160));pM(i,s,o),pr=null,vi=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(d){Nn(o,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)hM(t,e),t=t.sibling}function hM(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(fi(t,e),Ni(e),r&4){try{Qd(3,e,e.return),_g(3,e)}catch(g){Nn(e,e.return,g)}try{Qd(5,e,e.return)}catch(g){Nn(e,e.return,g)}}break;case 1:fi(t,e),Ni(e),r&512&&n!==null&&Vc(n,n.return);break;case 5:if(fi(t,e),Ni(e),r&512&&n!==null&&Vc(n,n.return),e.flags&32){var o=e.stateNode;try{hf(o,"")}catch(g){Nn(e,e.return,g)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,a=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&A$(o,i),V1(a,s);var d=V1(a,i);for(s=0;s<c.length;s+=2){var p=c[s],h=c[s+1];p==="style"?z$(o,h):p==="dangerouslySetInnerHTML"?D$(o,h):p==="children"?hf(o,h):_w(o,p,h,d)}switch(a){case"input":D1(o,i);break;case"textarea":F$(o,i);break;case"select":var m=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var v=i.value;v!=null?qc(o,!!i.multiple,v,!1):m!==!!i.multiple&&(i.defaultValue!=null?qc(o,!!i.multiple,i.defaultValue,!0):qc(o,!!i.multiple,i.multiple?[]:"",!1))}o[Sf]=i}catch(g){Nn(e,e.return,g)}}break;case 6:if(fi(t,e),Ni(e),r&4){if(e.stateNode===null)throw Error(Te(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(g){Nn(e,e.return,g)}}break;case 3:if(fi(t,e),Ni(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{yf(t.containerInfo)}catch(g){Nn(e,e.return,g)}break;case 4:fi(t,e),Ni(e);break;case 13:fi(t,e),Ni(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(lC=jn())),r&4&&jP(e);break;case 22:if(p=n!==null&&n.memoizedState!==null,e.mode&1?(Pr=(d=Pr)||p,fi(t,e),Pr=d):fi(t,e),Ni(e),r&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!p&&e.mode&1)for(Ge=e,p=e.child;p!==null;){for(h=Ge=p;Ge!==null;){switch(m=Ge,v=m.child,m.tag){case 0:case 11:case 14:case 15:Qd(4,m,m.return);break;case 1:Vc(m,m.return);var b=m.stateNode;if(typeof b.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,b.props=t.memoizedProps,b.state=t.memoizedState,b.componentWillUnmount()}catch(g){Nn(r,n,g)}}break;case 5:Vc(m,m.return);break;case 22:if(m.memoizedState!==null){VP(h);continue}}v!==null?(v.return=m,Ge=v):VP(h)}p=p.sibling}e:for(p=null,h=e;;){if(h.tag===5){if(p===null){p=h;try{o=h.stateNode,d?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=h.stateNode,c=h.memoizedProps.style,s=c!=null&&c.hasOwnProperty("display")?c.display:null,a.style.display=B$("display",s))}catch(g){Nn(e,e.return,g)}}}else if(h.tag===6){if(p===null)try{h.stateNode.nodeValue=d?"":h.memoizedProps}catch(g){Nn(e,e.return,g)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;p===h&&(p=null),h=h.return}p===h&&(p=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:fi(t,e),Ni(e),r&4&&jP(e);break;case 21:break;default:fi(t,e),Ni(e)}}function Ni(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(fM(n)){var r=n;break e}n=n.return}throw Error(Te(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(hf(o,""),r.flags&=-33);var i=zP(e);bb(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,a=zP(e);yb(e,a,s);break;default:throw Error(Te(161))}}catch(c){Nn(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function P9(e,t,n){Ge=e,mM(e)}function mM(e,t,n){for(var r=(e.mode&1)!==0;Ge!==null;){var o=Ge,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||Ph;if(!s){var a=o.alternate,c=a!==null&&a.memoizedState!==null||Pr;a=Ph;var d=Pr;if(Ph=s,(Pr=c)&&!d)for(Ge=o;Ge!==null;)s=Ge,c=s.child,s.tag===22&&s.memoizedState!==null?UP(o):c!==null?(c.return=s,Ge=c):UP(o);for(;i!==null;)Ge=i,mM(i),i=i.sibling;Ge=o,Ph=a,Pr=d}HP(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,Ge=i):HP(e)}}function HP(e){for(;Ge!==null;){var t=Ge;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Pr||_g(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Pr)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:mi(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&kP(t,i,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}kP(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var p=d.memoizedState;if(p!==null){var h=p.dehydrated;h!==null&&yf(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Te(163))}Pr||t.flags&512&&vb(t)}catch(m){Nn(t,t.return,m)}}if(t===e){Ge=null;break}if(n=t.sibling,n!==null){n.return=t.return,Ge=n;break}Ge=t.return}}function VP(e){for(;Ge!==null;){var t=Ge;if(t===e){Ge=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Ge=n;break}Ge=t.return}}function UP(e){for(;Ge!==null;){var t=Ge;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{_g(4,t)}catch(c){Nn(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(c){Nn(t,o,c)}}var i=t.return;try{vb(t)}catch(c){Nn(t,i,c)}break;case 5:var s=t.return;try{vb(t)}catch(c){Nn(t,s,c)}}}catch(c){Nn(t,t.return,c)}if(t===e){Ge=null;break}var a=t.sibling;if(a!==null){a.return=t.return,Ge=a;break}Ge=t.return}}var I9=Math.ceil,zm=Hs.ReactCurrentDispatcher,iC=Hs.ReactCurrentOwner,Ko=Hs.ReactCurrentBatchConfig,Ht=0,sr=null,Kn=null,mr=0,mo=0,Uc=Yl(0),Jn=0,$f=null,Ra=0,$g=0,sC=0,Jd=null,Kr=null,lC=0,hu=1/0,ys=null,jm=!1,wb=null,_l=null,Ih=!1,vl=null,Hm=0,Zd=0,Cb=null,om=-1,im=0;function Br(){return Ht&6?jn():om!==-1?om:om=jn()}function $l(e){return e.mode&1?Ht&2&&mr!==0?mr&-mr:u9.transition!==null?(im===0&&(im=J$()),im):(e=Zt,e!==0||(e=window.event,e=e===void 0?16:iT(e.type)),e):1}function xi(e,t,n,r){if(50<Zd)throw Zd=0,Cb=null,Error(Te(185));Xf(e,n,r),(!(Ht&2)||e!==sr)&&(e===sr&&(!(Ht&2)&&($g|=n),Jn===4&&hl(e,mr)),eo(e,r),n===1&&Ht===0&&!(t.mode&1)&&(hu=jn()+500,kg&&Xl()))}function eo(e,t){var n=e.callbackNode;u6(e,t);var r=km(e,e===sr?mr:0);if(r===0)n!==null&&Zk(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Zk(n),t===1)e.tag===0?c9(WP.bind(null,e)):ET(WP.bind(null,e)),i9(function(){!(Ht&6)&&Xl()}),n=null;else{switch(Z$(r)){case 1:n=Ow;break;case 4:n=X$;break;case 16:n=Em;break;case 536870912:n=Q$;break;default:n=Em}n=SM(n,gM.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function gM(e,t){if(om=-1,im=0,Ht&6)throw Error(Te(327));var n=e.callbackNode;if(Zc()&&e.callbackNode!==n)return null;var r=km(e,e===sr?mr:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Vm(e,r);else{t=r;var o=Ht;Ht|=2;var i=yM();(sr!==e||mr!==t)&&(ys=null,hu=jn()+500,xa(e,t));do try{T9();break}catch(a){vM(e,a)}while(1);Gw(),zm.current=i,Ht=o,Kn!==null?t=0:(sr=null,mr=0,t=Jn)}if(t!==0){if(t===2&&(o=q1(e),o!==0&&(r=o,t=xb(e,o))),t===1)throw n=$f,xa(e,0),hl(e,r),eo(e,jn()),n;if(t===6)hl(e,r);else{if(o=e.current.alternate,!(r&30)&&!_9(o)&&(t=Vm(e,r),t===2&&(i=q1(e),i!==0&&(r=i,t=xb(e,i))),t===1))throw n=$f,xa(e,0),hl(e,r),eo(e,jn()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(Te(345));case 2:ua(e,Kr,ys);break;case 3:if(hl(e,r),(r&130023424)===r&&(t=lC+500-jn(),10<t)){if(km(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Br(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=nb(ua.bind(null,e,Kr,ys),t);break}ua(e,Kr,ys);break;case 4:if(hl(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-Ci(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=jn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*I9(r/1960))-r,10<r){e.timeoutHandle=nb(ua.bind(null,e,Kr,ys),r);break}ua(e,Kr,ys);break;case 5:ua(e,Kr,ys);break;default:throw Error(Te(329))}}}return eo(e,jn()),e.callbackNode===n?gM.bind(null,e):null}function xb(e,t){var n=Jd;return e.current.memoizedState.isDehydrated&&(xa(e,t).flags|=256),e=Vm(e,t),e!==2&&(t=Kr,Kr=n,t!==null&&Sb(t)),e}function Sb(e){Kr===null?Kr=e:Kr.push.apply(Kr,e)}function _9(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!Pi(i(),o))return!1}catch(s){return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function hl(e,t){for(t&=~sC,t&=~$g,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ci(t),r=1<<n;e[n]=-1,t&=~r}}function WP(e){if(Ht&6)throw Error(Te(327));Zc();var t=km(e,0);if(!(t&1))return eo(e,jn()),null;var n=Vm(e,t);if(e.tag!==0&&n===2){var r=q1(e);r!==0&&(t=r,n=xb(e,r))}if(n===1)throw n=$f,xa(e,0),hl(e,t),eo(e,jn()),n;if(n===6)throw Error(Te(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ua(e,Kr,ys),eo(e,jn()),null}function aC(e,t){var n=Ht;Ht|=1;try{return e(t)}finally{Ht=n,Ht===0&&(hu=jn()+500,kg&&Xl())}}function Oa(e){vl!==null&&vl.tag===0&&!(Ht&6)&&Zc();var t=Ht;Ht|=1;var n=Ko.transition,r=Zt;try{if(Ko.transition=null,Zt=1,e)return e()}finally{Zt=r,Ko.transition=n,Ht=t,!(Ht&6)&&Xl()}}function cC(){mo=Uc.current,mn(Uc)}function xa(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,o9(n)),Kn!==null)for(n=Kn.return;n!==null;){var r=n;switch(Vw(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Tm();break;case 3:fu(),mn(Jr),mn(Tr),Jw();break;case 5:Qw(r);break;case 4:fu();break;case 13:mn(In);break;case 19:mn(In);break;case 10:Kw(r.type._context);break;case 22:case 23:cC()}n=n.return}if(sr=e,Kn=e=Tl(e.current,null),mr=mo=t,Jn=0,$f=null,sC=$g=Ra=0,Kr=Jd=null,ga!==null){for(t=0;t<ga.length;t++)if(n=ga[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=o,r.next=s}n.pending=r}ga=null}return e}function vM(e,t){do{var n=Kn;try{if(Gw(),tm.current=Bm,Dm){for(var r=Mn.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Dm=!1}if(Ma=0,or=Qn=Mn=null,Xd=!1,Pf=0,iC.current=null,n===null||n.return===null){Jn=1,$f=t,Kn=null;break}e:{var i=e,s=n.return,a=n,c=t;if(t=mr,a.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var d=c,p=a,h=p.tag;if(!(p.mode&1)&&(h===0||h===11||h===15)){var m=p.alternate;m?(p.updateQueue=m.updateQueue,p.memoizedState=m.memoizedState,p.lanes=m.lanes):(p.updateQueue=null,p.memoizedState=null)}var v=RP(s);if(v!==null){v.flags&=-257,OP(v,s,a,i,t),v.mode&1&&MP(i,d,t),t=v,c=d;var b=t.updateQueue;if(b===null){var g=new Set;g.add(c),t.updateQueue=g}else b.add(c);break e}else{if(!(t&1)){MP(i,d,t),uC();break e}c=Error(Te(426))}}else if(wn&&a.mode&1){var x=RP(s);if(x!==null){!(x.flags&65536)&&(x.flags|=256),OP(x,s,a,i,t),Uw(pu(c,a));break e}}i=c=pu(c,a),Jn!==4&&(Jn=2),Jd===null?Jd=[i]:Jd.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var C=eM(i,c,t);EP(i,C);break e;case 1:a=c;var S=i.type,w=i.stateNode;if(!(i.flags&128)&&(typeof S.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(_l===null||!_l.has(w)))){i.flags|=65536,t&=-t,i.lanes|=t;var E=tM(i,a,t);EP(i,E);break e}}i=i.return}while(i!==null)}wM(n)}catch(P){t=P,Kn===n&&n!==null&&(Kn=n=n.return);continue}break}while(1)}function yM(){var e=zm.current;return zm.current=Bm,e===null?Bm:e}function uC(){(Jn===0||Jn===3||Jn===2)&&(Jn=4),sr===null||!(Ra&268435455)&&!($g&268435455)||hl(sr,mr)}function Vm(e,t){var n=Ht;Ht|=2;var r=yM();(sr!==e||mr!==t)&&(ys=null,xa(e,t));do try{$9();break}catch(o){vM(e,o)}while(1);if(Gw(),Ht=n,zm.current=r,Kn!==null)throw Error(Te(261));return sr=null,mr=0,Jn}function $9(){for(;Kn!==null;)bM(Kn)}function T9(){for(;Kn!==null&&!t6();)bM(Kn)}function bM(e){var t=xM(e.alternate,e,mo);e.memoizedProps=e.pendingProps,t===null?wM(e):Kn=t,iC.current=null}function wM(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=S9(n,t),n!==null){n.flags&=32767,Kn=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Jn=6,Kn=null;return}}else if(n=x9(n,t,mo),n!==null){Kn=n;return}if(t=t.sibling,t!==null){Kn=t;return}Kn=t=e}while(t!==null);Jn===0&&(Jn=5)}function ua(e,t,n){var r=Zt,o=Ko.transition;try{Ko.transition=null,Zt=1,M9(e,t,n,r)}finally{Ko.transition=o,Zt=r}return null}function M9(e,t,n,r){do Zc();while(vl!==null);if(Ht&6)throw Error(Te(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Te(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(d6(e,i),e===sr&&(Kn=sr=null,mr=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ih||(Ih=!0,SM(Em,function(){return Zc(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Ko.transition,Ko.transition=null;var s=Zt;Zt=1;var a=Ht;Ht|=4,iC.current=null,k9(e,n),hM(n,e),Q6(eb),Pm=!!Z1,eb=Z1=null,e.current=n,P9(n),n6(),Ht=a,Zt=s,Ko.transition=i}else e.current=n;if(Ih&&(Ih=!1,vl=e,Hm=o),i=e.pendingLanes,i===0&&(_l=null),i6(n.stateNode),eo(e,jn()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(jm)throw jm=!1,e=wb,wb=null,e;return Hm&1&&e.tag!==0&&Zc(),i=e.pendingLanes,i&1?e===Cb?Zd++:(Zd=0,Cb=e):Zd=0,Xl(),null}function Zc(){if(vl!==null){var e=Z$(Hm),t=Ko.transition,n=Zt;try{if(Ko.transition=null,Zt=16>e?16:e,vl===null)var r=!1;else{if(e=vl,vl=null,Hm=0,Ht&6)throw Error(Te(331));var o=Ht;for(Ht|=4,Ge=e.current;Ge!==null;){var i=Ge,s=i.child;if(Ge.flags&16){var a=i.deletions;if(a!==null){for(var c=0;c<a.length;c++){var d=a[c];for(Ge=d;Ge!==null;){var p=Ge;switch(p.tag){case 0:case 11:case 15:Qd(8,p,i)}var h=p.child;if(h!==null)h.return=p,Ge=h;else for(;Ge!==null;){p=Ge;var m=p.sibling,v=p.return;if(dM(p),p===d){Ge=null;break}if(m!==null){m.return=v,Ge=m;break}Ge=v}}}var b=i.alternate;if(b!==null){var g=b.child;if(g!==null){b.child=null;do{var x=g.sibling;g.sibling=null,g=x}while(g!==null)}}Ge=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,Ge=s;else e:for(;Ge!==null;){if(i=Ge,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Qd(9,i,i.return)}var C=i.sibling;if(C!==null){C.return=i.return,Ge=C;break e}Ge=i.return}}var S=e.current;for(Ge=S;Ge!==null;){s=Ge;var w=s.child;if(s.subtreeFlags&2064&&w!==null)w.return=s,Ge=w;else e:for(s=S;Ge!==null;){if(a=Ge,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:_g(9,a)}}catch(P){Nn(a,a.return,P)}if(a===s){Ge=null;break e}var E=a.sibling;if(E!==null){E.return=a.return,Ge=E;break e}Ge=a.return}}if(Ht=o,Xl(),qi&&typeof qi.onPostCommitFiberRoot=="function")try{qi.onPostCommitFiberRoot(wg,e)}catch(P){}r=!0}return r}finally{Zt=n,Ko.transition=t}}return!1}function GP(e,t,n){t=pu(n,t),t=eM(e,t,1),e=Il(e,t,1),t=Br(),e!==null&&(Xf(e,1,t),eo(e,t))}function Nn(e,t,n){if(e.tag===3)GP(e,e,n);else for(;t!==null;){if(t.tag===3){GP(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(_l===null||!_l.has(r))){e=pu(n,e),e=tM(t,e,1),t=Il(t,e,1),e=Br(),t!==null&&(Xf(t,1,e),eo(t,e));break}}t=t.return}}function R9(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Br(),e.pingedLanes|=e.suspendedLanes&n,sr===e&&(mr&n)===n&&(Jn===4||Jn===3&&(mr&130023424)===mr&&500>jn()-lC?xa(e,0):sC|=n),eo(e,t)}function CM(e,t){t===0&&(e.mode&1?(t=vh,vh<<=1,!(vh&130023424)&&(vh=4194304)):t=1);var n=Br();e=As(e,t),e!==null&&(Xf(e,t,n),eo(e,n))}function O9(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),CM(e,n)}function L9(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Te(314))}r!==null&&r.delete(t),CM(e,n)}var xM;xM=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Jr.current)Xr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Xr=!1,C9(e,t,n);Xr=!!(e.flags&131072)}else Xr=!1,wn&&t.flags&1048576&&kT(t,Om,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;rm(e,t),e=t.pendingProps;var o=cu(t,Tr.current);Jc(t,n),o=eC(null,t,r,e,o,n);var i=tC();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Zr(r)?(i=!0,Mm(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Yw(t),o.updater=Pg,t.stateNode=o,o._reactInternals=t,cb(t,r,e,n),t=fb(null,t,r,!0,i,n)):(t.tag=0,wn&&i&&Hw(t),Fr(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(rm(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=F9(r),e=mi(r,e),o){case 0:t=db(null,t,r,e,n);break e;case 1:t=FP(null,t,r,e,n);break e;case 11:t=LP(null,t,r,e,n);break e;case 14:t=AP(null,t,r,mi(r.type,e),n);break e}throw Error(Te(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mi(r,o),db(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mi(r,o),FP(e,t,r,o,n);case 3:e:{if(iM(t),e===null)throw Error(Te(387));r=t.pendingProps,i=t.memoizedState,o=i.element,$T(e,t),Fm(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=pu(Error(Te(423)),t),t=NP(e,t,r,n,o);break e}else if(r!==o){o=pu(Error(Te(424)),t),t=NP(e,t,r,n,o);break e}else for(wo=Pl(t.stateNode.containerInfo.firstChild),Co=t,wn=!0,yi=null,n=OT(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(uu(),r===o){t=Fs(e,t,n);break e}Fr(e,t,r,n)}t=t.child}return t;case 5:return LT(t),e===null&&sb(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,tb(r,o)?s=null:i!==null&&tb(r,i)&&(t.flags|=32),oM(e,t),Fr(e,t,s,n),t.child;case 6:return e===null&&sb(t),null;case 13:return sM(e,t,n);case 4:return Xw(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=du(t,null,r,n):Fr(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mi(r,o),LP(e,t,r,o,n);case 7:return Fr(e,t,t.pendingProps,n),t.child;case 8:return Fr(e,t,t.pendingProps.children,n),t.child;case 12:return Fr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,an(Lm,r._currentValue),r._currentValue=s,i!==null)if(Pi(i.value,s)){if(i.children===o.children&&!Jr.current){t=Fs(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var c=a.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=$s(-1,n&-n),c.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var p=d.pending;p===null?c.next=c:(c.next=p.next,p.next=c),d.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),lb(i.return,n,t),a.lanes|=n;break}c=c.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(Te(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),lb(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Fr(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Jc(t,n),o=Qo(o),r=r(o),t.flags|=1,Fr(e,t,r,n),t.child;case 14:return r=t.type,o=mi(r,t.pendingProps),o=mi(r.type,o),AP(e,t,r,o,n);case 15:return nM(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mi(r,o),rm(e,t),t.tag=1,Zr(r)?(e=!0,Mm(t)):e=!1,Jc(t,n),MT(t,r,o),cb(t,r,o,n),fb(null,t,r,!0,e,n);case 19:return lM(e,t,n);case 22:return rM(e,t,n)}throw Error(Te(156,t.tag))};function SM(e,t){return Y$(e,t)}function A9(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Go(e,t,n,r){return new A9(e,t,n,r)}function dC(e){return e=e.prototype,!(!e||!e.isReactComponent)}function F9(e){if(typeof e=="function")return dC(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Tw)return 11;if(e===Mw)return 14}return 2}function Tl(e,t){var n=e.alternate;return n===null?(n=Go(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function sm(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")dC(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Lc:return Sa(n.children,o,i,t);case $w:s=8,o|=8;break;case O1:return e=Go(12,n,t,o|2),e.elementType=O1,e.lanes=i,e;case L1:return e=Go(13,n,t,o),e.elementType=L1,e.lanes=i,e;case A1:return e=Go(19,n,t,o),e.elementType=A1,e.lanes=i,e;case R$:return Tg(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case T$:s=10;break e;case M$:s=9;break e;case Tw:s=11;break e;case Mw:s=14;break e;case ll:s=16,r=null;break e}throw Error(Te(130,e==null?e:typeof e,""))}return t=Go(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Sa(e,t,n,r){return e=Go(7,e,r,t),e.lanes=n,e}function Tg(e,t,n,r){return e=Go(22,e,r,t),e.elementType=R$,e.lanes=n,e.stateNode={isHidden:!1},e}function U0(e,t,n){return e=Go(6,e,null,t),e.lanes=n,e}function W0(e,t,n){return t=Go(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function N9(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=k0(0),this.expirationTimes=k0(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=k0(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function fC(e,t,n,r,o,i,s,a,c){return e=new N9(e,t,n,a,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Go(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Yw(i),e}function D9(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Oc,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function EM(e){if(!e)return Dl;e=e._reactInternals;e:{if(Wa(e)!==e||e.tag!==1)throw Error(Te(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Zr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Te(171))}if(e.tag===1){var n=e.type;if(Zr(n))return ST(e,n,t)}return t}function kM(e,t,n,r,o,i,s,a,c){return e=fC(n,r,!0,e,o,i,s,a,c),e.context=EM(null),n=e.current,r=Br(),o=$l(n),i=$s(r,o),i.callback=t!=null?t:null,Il(n,i,o),e.current.lanes=o,Xf(e,o,r),eo(e,r),e}function Mg(e,t,n,r){var o=t.current,i=Br(),s=$l(o);return n=EM(n),t.context===null?t.context=n:t.pendingContext=n,t=$s(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Il(o,t,s),e!==null&&(xi(e,o,s,i),em(e,o,s)),s}function Um(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function KP(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function pC(e,t){KP(e,t),(e=e.alternate)&&KP(e,t)}function B9(){return null}var PM=typeof reportError=="function"?reportError:function(e){console.error(e)};function hC(e){this._internalRoot=e}Rg.prototype.render=hC.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Te(409));Mg(e,t,null,null)};Rg.prototype.unmount=hC.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Oa(function(){Mg(null,e,null,null)}),t[Ls]=null}};function Rg(e){this._internalRoot=e}Rg.prototype.unstable_scheduleHydration=function(e){if(e){var t=nT();e={blockedOn:null,target:e,priority:t};for(var n=0;n<pl.length&&t!==0&&t<pl[n].priority;n++);pl.splice(n,0,e),n===0&&oT(e)}};function mC(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Og(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function qP(){}function z9(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var d=Um(s);i.call(d)}}var s=kM(t,r,e,0,null,!1,!1,"",qP);return e._reactRootContainer=s,e[Ls]=s.current,Cf(e.nodeType===8?e.parentNode:e),Oa(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var d=Um(c);a.call(d)}}var c=fC(e,0,!1,null,null,!1,!1,"",qP);return e._reactRootContainer=c,e[Ls]=c.current,Cf(e.nodeType===8?e.parentNode:e),Oa(function(){Mg(t,c,n,r)}),c}function Lg(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var a=o;o=function(){var c=Um(s);a.call(c)}}Mg(t,s,e,o)}else s=z9(n,t,e,o,r);return Um(s)}eT=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Fd(t.pendingLanes);n!==0&&(Lw(t,n|1),eo(t,jn()),!(Ht&6)&&(hu=jn()+500,Xl()))}break;case 13:Oa(function(){var r=As(e,1);if(r!==null){var o=Br();xi(r,e,1,o)}}),pC(e,1)}};Aw=function(e){if(e.tag===13){var t=As(e,134217728);if(t!==null){var n=Br();xi(t,e,134217728,n)}pC(e,134217728)}};tT=function(e){if(e.tag===13){var t=$l(e),n=As(e,t);if(n!==null){var r=Br();xi(n,e,t,r)}pC(e,t)}};nT=function(){return Zt};rT=function(e,t){var n=Zt;try{return Zt=e,t()}finally{Zt=n}};W1=function(e,t,n){switch(t){case"input":if(D1(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Eg(r);if(!o)throw Error(Te(90));L$(r),D1(r,o)}}}break;case"textarea":F$(e,n);break;case"select":t=n.value,t!=null&&qc(e,!!n.multiple,t,!1)}};V$=aC;U$=Oa;var j9={usingClientEntryPoint:!1,Events:[Jf,Dc,Eg,j$,H$,aC]},wd={findFiberByHostInstance:ma,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},H9={bundleType:wd.bundleType,version:wd.version,rendererPackageName:wd.rendererPackageName,rendererConfig:wd.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Hs.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=K$(e),e===null?null:e.stateNode},findFiberByHostInstance:wd.findFiberByHostInstance||B9,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"){var _h=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!_h.isDisabled&&_h.supportsFiber)try{wg=_h.inject(H9),qi=_h}catch(e){}}_o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j9;_o.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!mC(t))throw Error(Te(200));return D9(e,t,null,n)};_o.createRoot=function(e,t){if(!mC(e))throw Error(Te(299));var n=!1,r="",o=PM;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=fC(e,1,!1,null,null,n,!1,r,o),e[Ls]=t.current,Cf(e.nodeType===8?e.parentNode:e),new hC(t)};_o.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Te(188)):(e=Object.keys(e).join(","),Error(Te(268,e)));return e=K$(t),e=e===null?null:e.stateNode,e};_o.flushSync=function(e){return Oa(e)};_o.hydrate=function(e,t,n){if(!Og(t))throw Error(Te(200));return Lg(null,e,t,!0,n)};_o.hydrateRoot=function(e,t,n){if(!mC(e))throw Error(Te(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=PM;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=kM(t,null,e,1,n!=null?n:null,o,!1,i,s),e[Ls]=t.current,Cf(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Rg(t)};_o.render=function(e,t,n){if(!Og(t))throw Error(Te(200));return Lg(null,e,t,!1,n)};_o.unmountComponentAtNode=function(e){if(!Og(e))throw Error(Te(40));return e._reactRootContainer?(Oa(function(){Lg(null,null,e,!1,function(){e._reactRootContainer=null,e[Ls]=null})}),!0):!1};_o.unstable_batchedUpdates=aC;_o.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Og(n))throw Error(Te(200));if(e==null||e._reactInternals===void 0)throw Error(Te(38));return Lg(e,t,n,!1,r)};_o.version="18.2.0-next-9e3b772b8-20220608";(function(e){function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=_o})(Bz);const $h=Cw(Fl);var IM,YP=Fl;IM=YP.createRoot,YP.hydrateRoot;const V9="modulepreload",U9=function(e){return"/"+e},XP={},W9=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=U9(i),i in XP)return;XP[i]=!0;const s=i.endsWith(".css"),a=s?'[rel="stylesheet"]':"";if(!!r)for(let p=o.length-1;p>=0;p--){const h=o[p];if(h.href===i&&(!s||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${a}`))return;const d=document.createElement("link");if(d.rel=s?"stylesheet":V9,s||(d.as="script",d.crossOrigin=""),d.href=i,document.head.appendChild(d),s)return new Promise((p,h)=>{d.addEventListener("load",p),d.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())};var y$;if(!((y$=window.crypto)!=null&&y$.subtle)){let t;console.debug("poly subtle");const e={digest(n,r){return it(this,null,function*(){if(n!=="SHA-512")return alert(n+" required but not supported");const i=(yield W9(()=>import("./sha512-69b26793.js").then(s=>s.s),[])).default.arrayBuffer;return i(r)})}};window.crypto||(window.crypto={subtle:e}),crypto.subtle||(crypto.subtle=e)}/**
|
|
33
|
+
* @remix-run/router v1.4.0
|
|
34
|
+
*
|
|
35
|
+
* Copyright (c) Remix Software Inc.
|
|
36
|
+
*
|
|
37
|
+
* This source code is licensed under the MIT license found in the
|
|
38
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
39
|
+
*
|
|
40
|
+
* @license MIT
|
|
41
|
+
*/function Tf(){return Tf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tf.apply(this,arguments)}var yl;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(yl||(yl={}));const QP="popstate";function G9(e){e===void 0&&(e={});function t(o,i){let{pathname:s="/",search:a="",hash:c=""}=Ga(o.location.hash.substr(1));return Eb("",{pathname:s,search:a,hash:c},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(o,i){let s=o.document.querySelector("base"),a="";if(s&&s.getAttribute("href")){let c=o.location.href,d=c.indexOf("#");a=d===-1?c:c.slice(0,d)}return a+"#"+(typeof i=="string"?i:Wm(i))}function r(o,i){Ag(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(i)+")")}return q9(t,n,r,e)}function Zn(e,t){if(e===!1||e===null||typeof e=="undefined")throw new Error(t)}function Ag(e,t){if(!e){typeof console!="undefined"&&console.warn(t);try{throw new Error(t)}catch(n){}}}function K9(){return Math.random().toString(36).substr(2,8)}function JP(e,t){return{usr:e.state,key:e.key,idx:t}}function Eb(e,t,n,r){return n===void 0&&(n=null),Tf({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ga(t):t,{state:n,key:t&&t.key||r||K9()})}function Wm(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ga(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function q9(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=yl.Pop,c=null,d=p();d==null&&(d=0,s.replaceState(Tf({},s.state,{idx:d}),""));function p(){return(s.state||{idx:null}).idx}function h(){a=yl.Pop;let x=p(),C=x==null?null:x-d;d=x,c&&c({action:a,location:g.location,delta:C})}function m(x,C){a=yl.Push;let S=Eb(g.location,x,C);n&&n(S,x),d=p()+1;let w=JP(S,d),E=g.createHref(S);try{s.pushState(w,"",E)}catch(P){o.location.assign(E)}i&&c&&c({action:a,location:g.location,delta:1})}function v(x,C){a=yl.Replace;let S=Eb(g.location,x,C);n&&n(S,x),d=p();let w=JP(S,d),E=g.createHref(S);s.replaceState(w,"",E),i&&c&&c({action:a,location:g.location,delta:0})}function b(x){let C=o.location.origin!=="null"?o.location.origin:o.location.href,S=typeof x=="string"?x:Wm(x);return Zn(C,"No window.location.(origin|href) available to create URL for href: "+S),new URL(S,C)}let g={get action(){return a},get location(){return e(o,s)},listen(x){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(QP,h),c=x,()=>{o.removeEventListener(QP,h),c=null}},createHref(x){return t(o,x)},createURL:b,encodeLocation(x){let C=b(x);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:m,replace:v,go(x){return s.go(x)}};return g}var ZP;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ZP||(ZP={}));function Y9(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Ga(t):t,o=gC(r.pathname||"/",n);if(o==null)return null;let i=_M(e);X9(i);let s=null;for(let a=0;s==null&&a<i.length;++a)s=ij(i[a],aj(o));return s}function _M(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,s,a)=>{let c={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};c.relativePath.startsWith("/")&&(Zn(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let d=Ml([r,c.relativePath]),p=n.concat(c);i.children&&i.children.length>0&&(Zn(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),_M(i.children,t,p,d)),!(i.path==null&&!i.index)&&t.push({path:d,score:rj(d,i.index),routesMeta:p})};return e.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,s);else for(let c of $M(i.path))o(i,s,c)}),t}function $M(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=$M(r.join("/")),a=[];return a.push(...s.map(c=>c===""?i:[i,c].join("/"))),o&&a.push(...s),a.map(c=>e.startsWith("/")&&c===""?"/":c)}function X9(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:oj(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Q9=/^:\w+$/,J9=3,Z9=2,ej=1,tj=10,nj=-2,e2=e=>e==="*";function rj(e,t){let n=e.split("/"),r=n.length;return n.some(e2)&&(r+=nj),t&&(r+=Z9),n.filter(o=>!e2(o)).reduce((o,i)=>o+(Q9.test(i)?J9:i===""?ej:tj),r)}function oj(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function ij(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let s=0;s<n.length;++s){let a=n[s],c=s===n.length-1,d=o==="/"?t:t.slice(o.length)||"/",p=sj({path:a.relativePath,caseSensitive:a.caseSensitive,end:c},d);if(!p)return null;Object.assign(r,p.params);let h=a.route;i.push({params:r,pathname:Ml([o,p.pathname]),pathnameBase:fj(Ml([o,p.pathnameBase])),route:h}),p.pathnameBase!=="/"&&(o=Ml([o,p.pathnameBase]))}return i}function sj(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=lj(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:r.reduce((d,p,h)=>{if(p==="*"){let m=a[h]||"";s=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}return d[p]=cj(a[h]||"",p),d},{}),pathname:i,pathnameBase:s,pattern:e}}function lj(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Ag(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(s,a)=>(r.push(a),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function aj(e){try{return decodeURI(e)}catch(t){return Ag(!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 cj(e,t){try{return decodeURIComponent(e)}catch(n){return Ag(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function gC(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function uj(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Ga(e):e;return{pathname:n?n.startsWith("/")?n:dj(n,t):t,search:pj(r),hash:hj(o)}}function dj(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function G0(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function TM(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function MM(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Ga(e):(o=Tf({},e),Zn(!o.pathname||!o.pathname.includes("?"),G0("?","pathname","search",o)),Zn(!o.pathname||!o.pathname.includes("#"),G0("#","pathname","hash",o)),Zn(!o.search||!o.search.includes("#"),G0("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,a;if(r||s==null)a=n;else{let h=t.length-1;if(s.startsWith("..")){let m=s.split("/");for(;m[0]==="..";)m.shift(),h-=1;o.pathname=m.join("/")}a=h>=0?t[h]:"/"}let c=uj(o,a),d=s&&s!=="/"&&s.endsWith("/"),p=(i||s===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(d||p)&&(c.pathname+="/"),c}const Ml=e=>e.join("/").replace(/\/\/+/g,"/"),fj=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),pj=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,hj=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function mj(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}/**
|
|
42
|
+
* React Router v6.9.0
|
|
43
|
+
*
|
|
44
|
+
* Copyright (c) Remix Software Inc.
|
|
45
|
+
*
|
|
46
|
+
* This source code is licensed under the MIT license found in the
|
|
47
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
48
|
+
*
|
|
49
|
+
* @license MIT
|
|
50
|
+
*/function gj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const vj=typeof Object.is=="function"?Object.is:gj,{useState:yj,useEffect:bj,useLayoutEffect:wj,useDebugValue:Cj}=_a;function xj(e,t,n){const r=t(),[{inst:o},i]=yj({inst:{value:r,getSnapshot:t}});return wj(()=>{o.value=r,o.getSnapshot=t,K0(o)&&i({inst:o})},[e,r,t]),bj(()=>(K0(o)&&i({inst:o}),e(()=>{K0(o)&&i({inst:o})})),[e]),Cj(r),r}function K0(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!vj(n,r)}catch(r){return!0}}function Sj(e,t,n){return t()}const Ej=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",kj=!Ej,Pj=kj?Sj:xj;"useSyncExternalStore"in _a&&(e=>e.useSyncExternalStore)(_a);const RM=u.createContext(null),vC=u.createContext(null),Lu=u.createContext(null),Fg=u.createContext(null),Au=u.createContext({outlet:null,matches:[]}),OM=u.createContext(null);function kb(){return kb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kb.apply(this,arguments)}function Ij(e,t){let{relative:n}=t===void 0?{}:t;ep()||Zn(!1);let{basename:r,navigator:o}=u.useContext(Lu),{hash:i,pathname:s,search:a}=yC(e,{relative:n}),c=s;return r!=="/"&&(c=s==="/"?r:Ml([r,s])),o.createHref({pathname:c,search:a,hash:i})}function ep(){return u.useContext(Fg)!=null}function Fu(){return ep()||Zn(!1),u.useContext(Fg).location}function _j(){ep()||Zn(!1);let{basename:e,navigator:t}=u.useContext(Lu),{matches:n}=u.useContext(Au),{pathname:r}=Fu(),o=JSON.stringify(TM(n).map(a=>a.pathnameBase)),i=u.useRef(!1);return u.useEffect(()=>{i.current=!0}),u.useCallback(function(a,c){if(c===void 0&&(c={}),!i.current)return;if(typeof a=="number"){t.go(a);return}let d=MM(a,JSON.parse(o),r,c.relative==="path");e!=="/"&&(d.pathname=d.pathname==="/"?e:Ml([e,d.pathname])),(c.replace?t.replace:t.push)(d,c.state,c)},[e,t,o,r])}function yC(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=u.useContext(Au),{pathname:o}=Fu(),i=JSON.stringify(TM(r).map(s=>s.pathnameBase));return u.useMemo(()=>MM(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function $j(e,t){ep()||Zn(!1);let{navigator:n}=u.useContext(Lu),r=u.useContext(vC),{matches:o}=u.useContext(Au),i=o[o.length-1],s=i?i.params:{};i&&i.pathname;let a=i?i.pathnameBase:"/";i&&i.route;let c=Fu(),d;if(t){var p;let g=typeof t=="string"?Ga(t):t;a==="/"||(p=g.pathname)!=null&&p.startsWith(a)||Zn(!1),d=g}else d=c;let h=d.pathname||"/",m=a==="/"?h:h.slice(a.length)||"/",v=Y9(e,{pathname:m}),b=Oj(v&&v.map(g=>Object.assign({},g,{params:Object.assign({},s,g.params),pathname:Ml([a,n.encodeLocation?n.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?a:Ml([a,n.encodeLocation?n.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),o,r||void 0);return t&&b?u.createElement(Fg.Provider,{value:{location:kb({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:yl.Pop}},b):b}function Tj(){let e=Nj(),t=mj(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return u.createElement(u.Fragment,null,u.createElement("h2",null,"Unexpected Application Error!"),u.createElement("h3",{style:{fontStyle:"italic"}},t),n?u.createElement("pre",{style:o},n):null,i)}class Mj extends u.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location?{error:t.error,location:t.location}:{error:t.error||n.error,location:n.location}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?u.createElement(Au.Provider,{value:this.props.routeContext},u.createElement(OM.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Rj(e){let{routeContext:t,match:n,children:r}=e,o=u.useContext(RM);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),u.createElement(Au.Provider,{value:t},r)}function Oj(e,t,n){if(t===void 0&&(t=[]),e==null)if(n!=null&&n.errors)e=n.matches;else return null;let r=e,o=n==null?void 0:n.errors;if(o!=null){let i=r.findIndex(s=>s.route.id&&(o==null?void 0:o[s.route.id]));i>=0||Zn(!1),r=r.slice(0,Math.min(r.length,i+1))}return r.reduceRight((i,s,a)=>{let c=s.route.id?o==null?void 0:o[s.route.id]:null,d=null;n&&(s.route.ErrorBoundary?d=u.createElement(s.route.ErrorBoundary,null):s.route.errorElement?d=s.route.errorElement:d=u.createElement(Tj,null));let p=t.concat(r.slice(0,a+1)),h=()=>{let m=i;return c?m=d:s.route.Component?m=u.createElement(s.route.Component,null):s.route.element&&(m=s.route.element),u.createElement(Rj,{match:s,routeContext:{outlet:i,matches:p},children:m})};return n&&(s.route.ErrorBoundary||s.route.errorElement||a===0)?u.createElement(Mj,{location:n.location,component:d,error:c,children:h(),routeContext:{outlet:null,matches:p}}):h()},null)}var t2;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"})(t2||(t2={}));var Gm;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(Gm||(Gm={}));function Lj(e){let t=u.useContext(vC);return t||Zn(!1),t}function Aj(e){let t=u.useContext(Au);return t||Zn(!1),t}function Fj(e){let t=Aj(),n=t.matches[t.matches.length-1];return n.route.id||Zn(!1),n.route.id}function Nj(){var e;let t=u.useContext(OM),n=Lj(Gm.UseRouteError),r=Fj(Gm.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function LM(e){Zn(!1)}function Dj(e){let{basename:t="/",children:n=null,location:r,navigationType:o=yl.Pop,navigator:i,static:s=!1}=e;ep()&&Zn(!1);let a=t.replace(/^\/*/,"/"),c=u.useMemo(()=>({basename:a,navigator:i,static:s}),[a,i,s]);typeof r=="string"&&(r=Ga(r));let{pathname:d="/",search:p="",hash:h="",state:m=null,key:v="default"}=r,b=u.useMemo(()=>{let g=gC(d,a);return g==null?null:{location:{pathname:g,search:p,hash:h,state:m,key:v},navigationType:o}},[a,d,p,h,m,v,o]);return b==null?null:u.createElement(Lu.Provider,{value:c},u.createElement(Fg.Provider,{children:n,value:b}))}function Bj(e){let{children:t,location:n}=e,r=u.useContext(RM),o=r&&!t?r.router.routes:Pb(t);return $j(o,n)}var n2;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(n2||(n2={}));new Promise(()=>{});function Pb(e,t){t===void 0&&(t=[]);let n=[];return u.Children.forEach(e,(r,o)=>{if(!u.isValidElement(r))return;if(r.type===u.Fragment){n.push.apply(n,Pb(r.props.children,t));return}r.type!==LM&&Zn(!1),!r.props.index||!r.props.children||Zn(!1);let i=[...t,o],s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=Pb(r.props.children,i)),n.push(s)}),n}/**
|
|
51
|
+
* React Router DOM v6.9.0
|
|
52
|
+
*
|
|
53
|
+
* Copyright (c) Remix Software Inc.
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the MIT license found in the
|
|
56
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
57
|
+
*
|
|
58
|
+
* @license MIT
|
|
59
|
+
*/function Km(){return Km=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Km.apply(this,arguments)}function AM(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function zj(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function jj(e,t){return e.button===0&&(!t||t==="_self")&&!zj(e)}const Hj=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],Vj=["aria-current","caseSensitive","className","end","style","to","children"];function Uj(e){let{basename:t,children:n,window:r}=e,o=u.useRef();o.current==null&&(o.current=G9({window:r,v5Compat:!0}));let i=o.current,[s,a]=u.useState({action:i.action,location:i.location});return u.useLayoutEffect(()=>i.listen(a),[i]),u.createElement(Dj,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:i})}const Wj=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",Gj=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,FM=u.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:a,target:c,to:d,preventScrollReset:p}=t,h=AM(t,Hj),{basename:m}=u.useContext(Lu),v,b=!1;if(typeof d=="string"&&Gj.test(d)&&(v=d,Wj)){let S=new URL(window.location.href),w=d.startsWith("//")?new URL(S.protocol+d):new URL(d),E=gC(w.pathname,m);w.origin===S.origin&&E!=null?d=E+w.search+w.hash:b=!0}let g=Ij(d,{relative:o}),x=qj(d,{replace:s,state:a,target:c,preventScrollReset:p,relative:o});function C(S){r&&r(S),S.defaultPrevented||x(S)}return u.createElement("a",Km({},h,{href:v||g,onClick:b||i?r:C,ref:n,target:c}))}),Kj=u.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:s=!1,style:a,to:c,children:d}=t,p=AM(t,Vj),h=yC(c,{relative:p.relative}),m=Fu(),v=u.useContext(vC),{navigator:b}=u.useContext(Lu),g=b.encodeLocation?b.encodeLocation(h).pathname:h.pathname,x=m.pathname,C=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;o||(x=x.toLowerCase(),C=C?C.toLowerCase():null,g=g.toLowerCase());let S=x===g||!s&&x.startsWith(g)&&x.charAt(g.length)==="/",w=C!=null&&(C===g||!s&&C.startsWith(g)&&C.charAt(g.length)==="/"),E=S?r:void 0,P;typeof i=="function"?P=i({isActive:S,isPending:w}):P=[i,S?"active":null,w?"pending":null].filter(Boolean).join(" ");let _=typeof a=="function"?a({isActive:S,isPending:w}):a;return u.createElement(FM,Km({},p,{"aria-current":E,className:P,ref:n,style:_,to:c}),typeof d=="function"?d({isActive:S,isPending:w}):d)});var r2;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(r2||(r2={}));var o2;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(o2||(o2={}));function qj(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s}=t===void 0?{}:t,a=_j(),c=Fu(),d=yC(e,{relative:s});return u.useCallback(p=>{if(jj(p,n)){p.preventDefault();let h=r!==void 0?r:Wm(c)===Wm(d);a(e,{replace:h,state:o,preventScrollReset:i,relative:s})}},[c,a,d,r,o,n,e,i,s])}const Yj={black:"#000",white:"#fff"},Mf=Yj,Xj={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},vc=Xj,Qj={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},yc=Qj,Jj={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},bc=Jj,Zj={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},wc=Zj,eH={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Cc=eH,tH={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Cd=tH,nH={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"},rH=nH;function q0(e,t){return()=>null}function k(){return k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k.apply(this,arguments)}function ha(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function NM(e){if(!ha(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=NM(e[n])}),t}function qo(e,t,n={clone:!0}){const r=n.clone?k({},e):e;return ha(e)&&ha(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(ha(t[o])&&o in e&&ha(e[o])?r[o]=qo(e[o],t[o],n):n.clone?r[o]=ha(t[o])?NM(t[o]):t[o]:r[o]=t[o])}),r}var pe={},oH={get exports(){return pe},set exports(e){pe=e}},iH="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",sH=iH,lH=sH;function DM(){}function BM(){}BM.resetWarningCache=DM;var aH=function(){function e(r,o,i,s,a,c){if(c!==lH){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:BM,resetWarningCache:DM};return n.PropTypes=n,n};oH.exports=aH();function Bl(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var i2={},cH={get exports(){return i2},set exports(e){i2=e}},en={};/**
|
|
60
|
+
* @license React
|
|
61
|
+
* react-is.production.min.js
|
|
62
|
+
*
|
|
63
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
64
|
+
*
|
|
65
|
+
* This source code is licensed under the MIT license found in the
|
|
66
|
+
* LICENSE file in the root directory of this source tree.
|
|
67
|
+
*/var bC=Symbol.for("react.element"),wC=Symbol.for("react.portal"),Ng=Symbol.for("react.fragment"),Dg=Symbol.for("react.strict_mode"),Bg=Symbol.for("react.profiler"),zg=Symbol.for("react.provider"),jg=Symbol.for("react.context"),uH=Symbol.for("react.server_context"),Hg=Symbol.for("react.forward_ref"),Vg=Symbol.for("react.suspense"),Ug=Symbol.for("react.suspense_list"),Wg=Symbol.for("react.memo"),Gg=Symbol.for("react.lazy"),dH=Symbol.for("react.offscreen"),zM;zM=Symbol.for("react.module.reference");function ri(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case bC:switch(e=e.type,e){case Ng:case Bg:case Dg:case Vg:case Ug:return e;default:switch(e=e&&e.$$typeof,e){case uH:case jg:case Hg:case Gg:case Wg:case zg:return e;default:return t}}case wC:return t}}}en.ContextConsumer=jg;en.ContextProvider=zg;en.Element=bC;en.ForwardRef=Hg;en.Fragment=Ng;en.Lazy=Gg;en.Memo=Wg;en.Portal=wC;en.Profiler=Bg;en.StrictMode=Dg;en.Suspense=Vg;en.SuspenseList=Ug;en.isAsyncMode=function(){return!1};en.isConcurrentMode=function(){return!1};en.isContextConsumer=function(e){return ri(e)===jg};en.isContextProvider=function(e){return ri(e)===zg};en.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===bC};en.isForwardRef=function(e){return ri(e)===Hg};en.isFragment=function(e){return ri(e)===Ng};en.isLazy=function(e){return ri(e)===Gg};en.isMemo=function(e){return ri(e)===Wg};en.isPortal=function(e){return ri(e)===wC};en.isProfiler=function(e){return ri(e)===Bg};en.isStrictMode=function(e){return ri(e)===Dg};en.isSuspense=function(e){return ri(e)===Vg};en.isSuspenseList=function(e){return ri(e)===Ug};en.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ng||e===Bg||e===Dg||e===Vg||e===Ug||e===dH||typeof e=="object"&&e!==null&&(e.$$typeof===Gg||e.$$typeof===Wg||e.$$typeof===zg||e.$$typeof===jg||e.$$typeof===Hg||e.$$typeof===zM||e.getModuleId!==void 0)};en.typeOf=ri;(function(e){e.exports=en})(cH);function fe(e){if(typeof e!="string")throw new Error(Bl(7));return e.charAt(0).toUpperCase()+e.slice(1)}function s2(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function zl(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function lm(e,t){return u.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function gn(e){return e&&e.ownerDocument||document}function Eo(e){return gn(e).defaultView||window}function qm(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const fH=typeof window!="undefined"?u.useLayoutEffect:u.useEffect,vn=fH;let l2=0;function pH(e){const[t,n]=u.useState(e),r=e||t;return u.useEffect(()=>{t==null&&(l2+=1,n(`mui-${l2}`))},[t]),r}const a2=_a["useId"];function Tn(e){if(a2!==void 0){const t=a2();return e!=null?e:t}return pH(e)}function Ts({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=u.useRef(e!==void 0),[i,s]=u.useState(t),a=o?e:i,c=u.useCallback(d=>{o||s(d)},[]);return[a,c]}function cn(e){const t=u.useRef(e);return vn(()=>{t.current=e}),u.useCallback((...n)=>(0,t.current)(...n),[])}function Bt(...e){return u.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{qm(n,t)})},e)}let Kg=!0,Ib=!1,c2;const hH={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function mH(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&hH[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function gH(e){e.metaKey||e.altKey||e.ctrlKey||(Kg=!0)}function Y0(){Kg=!1}function vH(){this.visibilityState==="hidden"&&Ib&&(Kg=!0)}function yH(e){e.addEventListener("keydown",gH,!0),e.addEventListener("mousedown",Y0,!0),e.addEventListener("pointerdown",Y0,!0),e.addEventListener("touchstart",Y0,!0),e.addEventListener("visibilitychange",vH,!0)}function bH(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return Kg||mH(t)}function CC(){const e=u.useCallback(o=>{o!=null&&yH(o.ownerDocument)},[]),t=u.useRef(!1);function n(){return t.current?(Ib=!0,window.clearTimeout(c2),c2=window.setTimeout(()=>{Ib=!1},100),t.current=!1,!0):!1}function r(o){return bH(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function jM(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let xc;function HM(){if(xc)return xc;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),xc="reverse",e.scrollLeft>0?xc="default":(e.scrollLeft=1,e.scrollLeft===0&&(xc="negative")),document.body.removeChild(e),xc}function u2(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(HM()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const wH=e=>{const t=u.useRef({});return u.useEffect(()=>{t.current=e}),t.current},xC=wH;function SC(e,t){const n=k({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=k({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=k({},i),Object.keys(o).forEach(s=>{n[r][s]=SC(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function _e(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,s)=>{if(s){const a=t(s);a!==""&&i.push(a),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}const d2=e=>e,CH=()=>{let e=d2;return{configure(t){e=t},generate(t){return e(t)},reset(){e=d2}}},xH=CH(),VM=xH,SH={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Qe(e,t,n="Mui"){const r=SH[t];return r?`${n}-${r}`:`${VM.generate(e)}-${t}`}function Ke(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Qe(e,o,n)}),r}function se(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function UM(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var EH=/^((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|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,kH=UM(function(e){return EH.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function PH(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 IH(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 _H=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(IH(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=PH(o);try{i.insertRule(r,i.cssRules.length)}catch(s){}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0},e}(),Er="-ms-",Ym="-moz-",Wt="-webkit-",WM="comm",EC="rule",kC="decl",$H="@import",GM="@keyframes",TH=Math.abs,qg=String.fromCharCode,MH=Object.assign;function RH(e,t){return hr(e,0)^45?(((t<<2^hr(e,0))<<2^hr(e,1))<<2^hr(e,2))<<2^hr(e,3):0}function KM(e){return e.trim()}function OH(e,t){return(e=t.exec(e))?e[0]:e}function Yt(e,t,n){return e.replace(t,n)}function _b(e,t){return e.indexOf(t)}function hr(e,t){return e.charCodeAt(t)|0}function Rf(e,t,n){return e.slice(t,n)}function Hi(e){return e.length}function PC(e){return e.length}function Th(e,t){return t.push(e),e}function LH(e,t){return e.map(t).join("")}var Yg=1,mu=1,qM=0,ro=0,Gn=0,Nu="";function Xg(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Yg,column:mu,length:s,return:""}}function xd(e,t){return MH(Xg("",null,null,"",null,null,0),e,{length:-e.length},t)}function AH(){return Gn}function FH(){return Gn=ro>0?hr(Nu,--ro):0,mu--,Gn===10&&(mu=1,Yg--),Gn}function xo(){return Gn=ro<qM?hr(Nu,ro++):0,mu++,Gn===10&&(mu=1,Yg++),Gn}function Xi(){return hr(Nu,ro)}function am(){return ro}function tp(e,t){return Rf(Nu,e,t)}function Of(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 YM(e){return Yg=mu=1,qM=Hi(Nu=e),ro=0,[]}function XM(e){return Nu="",e}function cm(e){return KM(tp(ro-1,$b(e===91?e+2:e===40?e+1:e)))}function NH(e){for(;(Gn=Xi())&&Gn<33;)xo();return Of(e)>2||Of(Gn)>3?"":" "}function DH(e,t){for(;--t&&xo()&&!(Gn<48||Gn>102||Gn>57&&Gn<65||Gn>70&&Gn<97););return tp(e,am()+(t<6&&Xi()==32&&xo()==32))}function $b(e){for(;xo();)switch(Gn){case e:return ro;case 34:case 39:e!==34&&e!==39&&$b(Gn);break;case 40:e===41&&$b(e);break;case 92:xo();break}return ro}function BH(e,t){for(;xo()&&e+Gn!==47+10;)if(e+Gn===42+42&&Xi()===47)break;return"/*"+tp(t,ro-1)+"*"+qg(e===47?e:xo())}function zH(e){for(;!Of(Xi());)xo();return tp(e,ro)}function jH(e){return XM(um("",null,null,null,[""],e=YM(e),0,[0],e))}function um(e,t,n,r,o,i,s,a,c){for(var d=0,p=0,h=s,m=0,v=0,b=0,g=1,x=1,C=1,S=0,w="",E=o,P=i,_=r,I=w;x;)switch(b=S,S=xo()){case 40:if(b!=108&&hr(I,h-1)==58){_b(I+=Yt(cm(S),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:I+=cm(S);break;case 9:case 10:case 13:case 32:I+=NH(b);break;case 92:I+=DH(am()-1,7);continue;case 47:switch(Xi()){case 42:case 47:Th(HH(BH(xo(),am()),t,n),c);break;default:I+="/"}break;case 123*g:a[d++]=Hi(I)*C;case 125*g:case 59:case 0:switch(S){case 0:case 125:x=0;case 59+p:v>0&&Hi(I)-h&&Th(v>32?p2(I+";",r,n,h-1):p2(Yt(I," ","")+";",r,n,h-2),c);break;case 59:I+=";";default:if(Th(_=f2(I,t,n,d,p,o,a,w,E=[],P=[],h),i),S===123)if(p===0)um(I,t,_,_,E,i,h,a,P);else switch(m===99&&hr(I,3)===110?100:m){case 100:case 109:case 115:um(e,_,_,r&&Th(f2(e,_,_,0,0,o,a,w,o,E=[],h),P),o,P,h,a,r?E:P);break;default:um(I,_,_,_,[""],P,0,a,P)}}d=p=v=0,g=C=1,w=I="",h=s;break;case 58:h=1+Hi(I),v=b;default:if(g<1){if(S==123)--g;else if(S==125&&g++==0&&FH()==125)continue}switch(I+=qg(S),S*g){case 38:C=p>0?1:(I+="\f",-1);break;case 44:a[d++]=(Hi(I)-1)*C,C=1;break;case 64:Xi()===45&&(I+=cm(xo())),m=Xi(),p=h=Hi(w=I+=zH(am())),S++;break;case 45:b===45&&Hi(I)==2&&(g=0)}}return i}function f2(e,t,n,r,o,i,s,a,c,d,p){for(var h=o-1,m=o===0?i:[""],v=PC(m),b=0,g=0,x=0;b<r;++b)for(var C=0,S=Rf(e,h+1,h=TH(g=s[b])),w=e;C<v;++C)(w=KM(g>0?m[C]+" "+S:Yt(S,/&\f/g,m[C])))&&(c[x++]=w);return Xg(e,t,n,o===0?EC:a,c,d,p)}function HH(e,t,n){return Xg(e,t,n,WM,qg(AH()),Rf(e,2,-2),0)}function p2(e,t,n,r){return Xg(e,t,n,kC,Rf(e,0,r),Rf(e,r+1,-1),r)}function eu(e,t){for(var n="",r=PC(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function VH(e,t,n,r){switch(e.type){case $H:case kC:return e.return=e.return||e.value;case WM:return"";case GM:return e.return=e.value+"{"+eu(e.children,r)+"}";case EC:e.value=e.props.join(",")}return Hi(n=eu(e.children,r))?e.return=e.value+"{"+n+"}":""}function UH(e){var t=PC(e);return function(n,r,o,i){for(var s="",a=0;a<t;a++)s+=e[a](n,r,o,i)||"";return s}}function WH(e){return function(t){t.root||(t=t.return)&&e(t)}}var GH=function(t,n,r){for(var o=0,i=0;o=i,i=Xi(),o===38&&i===12&&(n[r]=1),!Of(i);)xo();return tp(t,ro)},KH=function(t,n){var r=-1,o=44;do switch(Of(o)){case 0:o===38&&Xi()===12&&(n[r]=1),t[r]+=GH(ro-1,n,r);break;case 2:t[r]+=cm(o);break;case 4:if(o===44){t[++r]=Xi()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=qg(o)}while(o=xo());return t},qH=function(t,n){return XM(KH(YM(t),n))},h2=new WeakMap,YH=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!h2.get(r))&&!o){h2.set(t,!0);for(var i=[],s=qH(n,i),a=r.props,c=0,d=0;c<s.length;c++)for(var p=0;p<a.length;p++,d++)t.props[d]=i[c]?s[c].replace(/&\f/g,a[p]):a[p]+" "+s[c]}}},XH=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function QM(e,t){switch(RH(e,t)){case 5103:return Wt+"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 Wt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Wt+e+Ym+e+Er+e+e;case 6828:case 4268:return Wt+e+Er+e+e;case 6165:return Wt+e+Er+"flex-"+e+e;case 5187:return Wt+e+Yt(e,/(\w+).+(:[^]+)/,Wt+"box-$1$2"+Er+"flex-$1$2")+e;case 5443:return Wt+e+Er+"flex-item-"+Yt(e,/flex-|-self/,"")+e;case 4675:return Wt+e+Er+"flex-line-pack"+Yt(e,/align-content|flex-|-self/,"")+e;case 5548:return Wt+e+Er+Yt(e,"shrink","negative")+e;case 5292:return Wt+e+Er+Yt(e,"basis","preferred-size")+e;case 6060:return Wt+"box-"+Yt(e,"-grow","")+Wt+e+Er+Yt(e,"grow","positive")+e;case 4554:return Wt+Yt(e,/([^-])(transform)/g,"$1"+Wt+"$2")+e;case 6187:return Yt(Yt(Yt(e,/(zoom-|grab)/,Wt+"$1"),/(image-set)/,Wt+"$1"),e,"")+e;case 5495:case 3959:return Yt(e,/(image-set\([^]*)/,Wt+"$1$`$1");case 4968:return Yt(Yt(e,/(.+:)(flex-)?(.*)/,Wt+"box-pack:$3"+Er+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Wt+e+e;case 4095:case 3583:case 4068:case 2532:return Yt(e,/(.+)-inline(.+)/,Wt+"$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(Hi(e)-1-t>6)switch(hr(e,t+1)){case 109:if(hr(e,t+4)!==45)break;case 102:return Yt(e,/(.+:)(.+)-([^]+)/,"$1"+Wt+"$2-$3$1"+Ym+(hr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~_b(e,"stretch")?QM(Yt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(hr(e,t+1)!==115)break;case 6444:switch(hr(e,Hi(e)-3-(~_b(e,"!important")&&10))){case 107:return Yt(e,":",":"+Wt)+e;case 101:return Yt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Wt+(hr(e,14)===45?"inline-":"")+"box$3$1"+Wt+"$2$3$1"+Er+"$2box$3")+e}break;case 5936:switch(hr(e,t+11)){case 114:return Wt+e+Er+Yt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Wt+e+Er+Yt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Wt+e+Er+Yt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Wt+e+Er+e+e}return e}var QH=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case kC:t.return=QM(t.value,t.length);break;case GM:return eu([xd(t,{value:Yt(t.value,"@","@"+Wt)})],o);case EC:if(t.length)return LH(t.props,function(i){switch(OH(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return eu([xd(t,{props:[Yt(i,/:(read-\w+)/,":"+Ym+"$1")]})],o);case"::placeholder":return eu([xd(t,{props:[Yt(i,/:(plac\w+)/,":"+Wt+"input-$1")]}),xd(t,{props:[Yt(i,/:(plac\w+)/,":"+Ym+"$1")]}),xd(t,{props:[Yt(i,/:(plac\w+)/,Er+"input-$1")]})],o)}return""})}},JH=[QH],ZH=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var x=g.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||JH,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var x=g.getAttribute("data-emotion").split(" "),C=1;C<x.length;C++)i[x[C]]=!0;a.push(g)});var c,d=[YH,XH];{var p,h=[VH,WH(function(g){p.insert(g)})],m=UH(d.concat(o,h)),v=function(x){return eu(jH(x),m)};c=function(x,C,S,w){p=S,v(x?x+"{"+C.styles+"}":C.styles),w&&(b.inserted[C.name]=!0)}}var b={key:n,sheet:new _H({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return b.sheet.hydrate(a),b},Tb={},e8={get exports(){return Tb},set exports(e){Tb=e}},tn={};/** @license React v16.13.1
|
|
68
|
+
* react-is.production.min.js
|
|
69
|
+
*
|
|
70
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
71
|
+
*
|
|
72
|
+
* This source code is licensed under the MIT license found in the
|
|
73
|
+
* LICENSE file in the root directory of this source tree.
|
|
74
|
+
*/var ur=typeof Symbol=="function"&&Symbol.for,IC=ur?Symbol.for("react.element"):60103,_C=ur?Symbol.for("react.portal"):60106,Qg=ur?Symbol.for("react.fragment"):60107,Jg=ur?Symbol.for("react.strict_mode"):60108,Zg=ur?Symbol.for("react.profiler"):60114,ev=ur?Symbol.for("react.provider"):60109,tv=ur?Symbol.for("react.context"):60110,$C=ur?Symbol.for("react.async_mode"):60111,nv=ur?Symbol.for("react.concurrent_mode"):60111,rv=ur?Symbol.for("react.forward_ref"):60112,ov=ur?Symbol.for("react.suspense"):60113,t8=ur?Symbol.for("react.suspense_list"):60120,iv=ur?Symbol.for("react.memo"):60115,sv=ur?Symbol.for("react.lazy"):60116,n8=ur?Symbol.for("react.block"):60121,r8=ur?Symbol.for("react.fundamental"):60117,o8=ur?Symbol.for("react.responder"):60118,i8=ur?Symbol.for("react.scope"):60119;function To(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case IC:switch(e=e.type,e){case $C:case nv:case Qg:case Zg:case Jg:case ov:return e;default:switch(e=e&&e.$$typeof,e){case tv:case rv:case sv:case iv:case ev:return e;default:return t}}case _C:return t}}}function JM(e){return To(e)===nv}tn.AsyncMode=$C;tn.ConcurrentMode=nv;tn.ContextConsumer=tv;tn.ContextProvider=ev;tn.Element=IC;tn.ForwardRef=rv;tn.Fragment=Qg;tn.Lazy=sv;tn.Memo=iv;tn.Portal=_C;tn.Profiler=Zg;tn.StrictMode=Jg;tn.Suspense=ov;tn.isAsyncMode=function(e){return JM(e)||To(e)===$C};tn.isConcurrentMode=JM;tn.isContextConsumer=function(e){return To(e)===tv};tn.isContextProvider=function(e){return To(e)===ev};tn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===IC};tn.isForwardRef=function(e){return To(e)===rv};tn.isFragment=function(e){return To(e)===Qg};tn.isLazy=function(e){return To(e)===sv};tn.isMemo=function(e){return To(e)===iv};tn.isPortal=function(e){return To(e)===_C};tn.isProfiler=function(e){return To(e)===Zg};tn.isStrictMode=function(e){return To(e)===Jg};tn.isSuspense=function(e){return To(e)===ov};tn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Qg||e===nv||e===Zg||e===Jg||e===ov||e===t8||typeof e=="object"&&e!==null&&(e.$$typeof===sv||e.$$typeof===iv||e.$$typeof===ev||e.$$typeof===tv||e.$$typeof===rv||e.$$typeof===r8||e.$$typeof===o8||e.$$typeof===i8||e.$$typeof===n8)};tn.typeOf=To;(function(e){e.exports=tn})(e8);var ZM=Tb,s8={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l8={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},eR={};eR[ZM.ForwardRef]=s8;eR[ZM.Memo]=l8;var a8=!0;function c8(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var tR=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||a8===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},nR=function(t,n,r){tR(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function u8(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var d8={animationIterationCount: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,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},f8=/[A-Z]|^ms/g,p8=/_EMO_([^_]+?)_([^]*?)_EMO_/g,rR=function(t){return t.charCodeAt(1)===45},m2=function(t){return t!=null&&typeof t!="boolean"},X0=UM(function(e){return rR(e)?e:e.replace(f8,"-$&").toLowerCase()}),g2=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(p8,function(r,o,i){return Vi={name:o,styles:i,next:Vi},o})}return d8[t]!==1&&!rR(t)&&typeof n=="number"&&n!==0?n+"px":n};function Lf(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Vi={name:n.name,styles:n.styles,next:Vi},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Vi={name:r.name,styles:r.styles,next:Vi},r=r.next;var o=n.styles+";";return o}return h8(e,t,n)}case"function":{if(e!==void 0){var i=Vi,s=n(e);return Vi=i,Lf(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function h8(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Lf(e,t,n[o])+";";else for(var i in n){var s=n[i];if(typeof s!="object")t!=null&&t[s]!==void 0?r+=i+"{"+t[s]+"}":m2(s)&&(r+=X0(i)+":"+g2(i,s)+";");else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var a=0;a<s.length;a++)m2(s[a])&&(r+=X0(i)+":"+g2(i,s[a])+";");else{var c=Lf(e,t,s);switch(i){case"animation":case"animationName":{r+=X0(i)+":"+c+";";break}default:r+=i+"{"+c+"}"}}}return r}var v2=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Vi,TC=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,i="";Vi=void 0;var s=t[0];s==null||s.raw===void 0?(o=!1,i+=Lf(r,n,s)):i+=s[0];for(var a=1;a<t.length;a++)i+=Lf(r,n,t[a]),o&&(i+=s[a]);v2.lastIndex=0;for(var c="",d;(d=v2.exec(i))!==null;)c+="-"+d[1];var p=u8(i)+c;return{name:p,styles:i,next:Vi}},m8=function(t){return t()},oR=_a["useInsertionEffect"]?_a["useInsertionEffect"]:!1,g8=oR||m8,y2=oR||u.useLayoutEffect,iR=u.createContext(typeof HTMLElement!="undefined"?ZH({key:"css"}):null);iR.Provider;var sR=function(t){return u.forwardRef(function(n,r){var o=u.useContext(iR);return t(n,o,r)})},MC=u.createContext({}),v8=sR(function(e,t){var n=e.styles,r=TC([n],void 0,u.useContext(MC)),o=u.useRef();return y2(function(){var i=t.key+"-global",s=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,c=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),c!==null&&(a=!0,c.setAttribute("data-emotion",i),s.hydrate([c])),o.current=[s,a],function(){s.flush()}},[t]),y2(function(){var i=o.current,s=i[0],a=i[1];if(a){i[1]=!1;return}if(r.next!==void 0&&nR(t,r.next,!0),s.tags.length){var c=s.tags[s.tags.length-1].nextElementSibling;s.before=c,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null});function jl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return TC(t)}var rs=function(){var t=jl.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},y8=kH,b8=function(t){return t!=="theme"},b2=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?y8:b8},w2=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},w8=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return tR(n,r,o),g8(function(){return nR(n,r,o)}),null},C8=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=w2(t,n,r),c=a||b2(o),d=!c("as");return function(){var p=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&h.push("label:"+i+";"),p[0]==null||p[0].raw===void 0)h.push.apply(h,p);else{h.push(p[0][0]);for(var m=p.length,v=1;v<m;v++)h.push(p[v],p[0][v])}var b=sR(function(g,x,C){var S=d&&g.as||o,w="",E=[],P=g;if(g.theme==null){P={};for(var _ in g)P[_]=g[_];P.theme=u.useContext(MC)}typeof g.className=="string"?w=c8(x.registered,E,g.className):g.className!=null&&(w=g.className+" ");var I=TC(h.concat(E),x.registered,P);w+=x.key+"-"+I.name,s!==void 0&&(w+=" "+s);var M=d&&a===void 0?b2(S):c,O={};for(var L in g)d&&L==="as"||M(L)&&(O[L]=g[L]);return O.className=w,O.ref=C,u.createElement(u.Fragment,null,u.createElement(w8,{cache:x,serialized:I,isStringTag:typeof S=="string"}),u.createElement(S,O))});return b.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",b.defaultProps=t.defaultProps,b.__emotion_real=b,b.__emotion_base=o,b.__emotion_styles=h,b.__emotion_forwardProp=a,Object.defineProperty(b,"toString",{value:function(){return"."+s}}),b.withComponent=function(g,x){return e(g,k({},n,x,{shouldForwardProp:w2(b,x,!0)})).apply(void 0,h)},b}};const x8=C8;var S8=["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"],Mb=x8.bind();S8.forEach(function(e){Mb[e]=Mb(e)});const E8=Mb;var T={},k8={get exports(){return T},set exports(e){T=e}},lv={};/**
|
|
75
|
+
* @license React
|
|
76
|
+
* react-jsx-runtime.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 P8=u,I8=Symbol.for("react.element"),_8=Symbol.for("react.fragment"),$8=Object.prototype.hasOwnProperty,T8=P8.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,M8={key:!0,ref:!0,__self:!0,__source:!0};function lR(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)$8.call(t,r)&&!M8.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:I8,type:e,key:i,ref:s,props:o,_owner:T8.current}}lv.Fragment=_8;lv.jsx=lR;lv.jsxs=lR;(function(e){e.exports=lv})(k8);function R8(e){return e==null||Object.keys(e).length===0}function O8(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(R8(o)?n:o):t;return T.jsx(v8,{styles:r})}/**
|
|
83
|
+
* @mui/styled-engine v5.11.11
|
|
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 aR(e,t){return E8(e,t)}const L8=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function ef(e,t){return t?qo(e,t,{clone:!1}):e}const RC={xs:0,sm:600,md:900,lg:1200,xl:1536},C2={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${RC[e]}px)`};function Zo(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||C2;return t.reduce((s,a,c)=>(s[i.up(i.keys[c])]=n(t[c]),s),{})}if(typeof t=="object"){const i=r.breakpoints||C2;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||RC).indexOf(a)!==-1){const c=i.up(a);s[c]=n(t[a],a)}else{const c=a;s[c]=t[c]}return s},{})}return n(t)}function A8(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function F8(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function N8(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function av({values:e,breakpoints:t,base:n}){const r=n||N8(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((s,a,c)=>(Array.isArray(e)?(s[a]=e[c]!=null?e[c]:e[i],i=c):typeof e=="object"?(s[a]=e[a]!=null?e[a]:e[i],i=a):s[a]=e,s),{})}function gu(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Xm(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=gu(e,n)||r,t&&(o=t(o,r,e)),o}function Xt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],c=s.theme,d=gu(c,r)||{};return Zo(s,a,h=>{let m=Xm(d,o,h);return h===m&&typeof h=="string"&&(m=Xm(d,o,`${t}${h==="default"?"":fe(h)}`,h)),n===!1?m:{[n]:m}})};return i.propTypes={},i.filterProps=[t],i}function cv(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?ef(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function D8(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const B8={m:"margin",p:"padding"},z8={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},x2={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},j8=D8(e=>{if(e.length>2)if(x2[e])e=x2[e];else return[e];const[t,n]=e.split(""),r=B8[t],o=z8[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),OC=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],LC=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...OC,...LC];function np(e,t,n,r){var o;const i=(o=gu(e,t,!1))!=null?o:n;return typeof i=="number"?s=>typeof s=="string"?s:i*s:Array.isArray(i)?s=>typeof s=="string"?s:i[s]:typeof i=="function"?i:()=>{}}function cR(e){return np(e,"spacing",8)}function rp(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function H8(e,t){return n=>e.reduce((r,o)=>(r[o]=rp(t,n),r),{})}function V8(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=j8(n),i=H8(o,r),s=e[n];return Zo(e,s,i)}function uR(e,t){const n=cR(e.theme);return Object.keys(e).map(r=>V8(e,t,r,n)).reduce(ef,{})}function An(e){return uR(e,OC)}An.propTypes={};An.filterProps=OC;function Fn(e){return uR(e,LC)}Fn.propTypes={};Fn.filterProps=LC;function Gi(e){return typeof e!="number"?e:`${e}px solid`}const U8=Xt({prop:"border",themeKey:"borders",transform:Gi}),W8=Xt({prop:"borderTop",themeKey:"borders",transform:Gi}),G8=Xt({prop:"borderRight",themeKey:"borders",transform:Gi}),K8=Xt({prop:"borderBottom",themeKey:"borders",transform:Gi}),q8=Xt({prop:"borderLeft",themeKey:"borders",transform:Gi}),Y8=Xt({prop:"borderColor",themeKey:"palette"}),X8=Xt({prop:"borderTopColor",themeKey:"palette"}),Q8=Xt({prop:"borderRightColor",themeKey:"palette"}),J8=Xt({prop:"borderBottomColor",themeKey:"palette"}),Z8=Xt({prop:"borderLeftColor",themeKey:"palette"}),uv=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=np(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:rp(t,r)});return Zo(e,e.borderRadius,n)}return null};uv.propTypes={};uv.filterProps=["borderRadius"];cv(U8,W8,G8,K8,q8,Y8,X8,Q8,J8,Z8,uv);const dv=e=>{if(e.gap!==void 0&&e.gap!==null){const t=np(e.theme,"spacing",8),n=r=>({gap:rp(t,r)});return Zo(e,e.gap,n)}return null};dv.propTypes={};dv.filterProps=["gap"];const fv=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=np(e.theme,"spacing",8),n=r=>({columnGap:rp(t,r)});return Zo(e,e.columnGap,n)}return null};fv.propTypes={};fv.filterProps=["columnGap"];const pv=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=np(e.theme,"spacing",8),n=r=>({rowGap:rp(t,r)});return Zo(e,e.rowGap,n)}return null};pv.propTypes={};pv.filterProps=["rowGap"];const eV=Xt({prop:"gridColumn"}),tV=Xt({prop:"gridRow"}),nV=Xt({prop:"gridAutoFlow"}),rV=Xt({prop:"gridAutoColumns"}),oV=Xt({prop:"gridAutoRows"}),iV=Xt({prop:"gridTemplateColumns"}),sV=Xt({prop:"gridTemplateRows"}),lV=Xt({prop:"gridTemplateAreas"}),aV=Xt({prop:"gridArea"});cv(dv,fv,pv,eV,tV,nV,rV,oV,iV,sV,lV,aV);function tu(e,t){return t==="grey"?t:e}const cV=Xt({prop:"color",themeKey:"palette",transform:tu}),uV=Xt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:tu}),dV=Xt({prop:"backgroundColor",themeKey:"palette",transform:tu});cv(cV,uV,dV);function bo(e){return e<=1&&e!==0?`${e*100}%`:e}const fV=Xt({prop:"width",transform:bo}),AC=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o,i;return{maxWidth:((r=e.theme)==null||(o=r.breakpoints)==null||(i=o.values)==null?void 0:i[n])||RC[n]||bo(n)}};return Zo(e,e.maxWidth,t)}return null};AC.filterProps=["maxWidth"];const pV=Xt({prop:"minWidth",transform:bo}),hV=Xt({prop:"height",transform:bo}),mV=Xt({prop:"maxHeight",transform:bo}),gV=Xt({prop:"minHeight",transform:bo});Xt({prop:"size",cssProperty:"width",transform:bo});Xt({prop:"size",cssProperty:"height",transform:bo});const vV=Xt({prop:"boxSizing"});cv(fV,AC,pV,hV,mV,gV,vV);const yV={border:{themeKey:"borders",transform:Gi},borderTop:{themeKey:"borders",transform:Gi},borderRight:{themeKey:"borders",transform:Gi},borderBottom:{themeKey:"borders",transform:Gi},borderLeft:{themeKey:"borders",transform:Gi},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:uv},color:{themeKey:"palette",transform:tu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:tu},backgroundColor:{themeKey:"palette",transform:tu},p:{style:Fn},pt:{style:Fn},pr:{style:Fn},pb:{style:Fn},pl:{style:Fn},px:{style:Fn},py:{style:Fn},padding:{style:Fn},paddingTop:{style:Fn},paddingRight:{style:Fn},paddingBottom:{style:Fn},paddingLeft:{style:Fn},paddingX:{style:Fn},paddingY:{style:Fn},paddingInline:{style:Fn},paddingInlineStart:{style:Fn},paddingInlineEnd:{style:Fn},paddingBlock:{style:Fn},paddingBlockStart:{style:Fn},paddingBlockEnd:{style:Fn},m:{style:An},mt:{style:An},mr:{style:An},mb:{style:An},ml:{style:An},mx:{style:An},my:{style:An},margin:{style:An},marginTop:{style:An},marginRight:{style:An},marginBottom:{style:An},marginLeft:{style:An},marginX:{style:An},marginY:{style:An},marginInline:{style:An},marginInlineStart:{style:An},marginInlineEnd:{style:An},marginBlock:{style:An},marginBlockStart:{style:An},marginBlockEnd:{style:An},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:dv},rowGap:{style:pv},columnGap:{style:fv},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:bo},maxWidth:{style:AC},minWidth:{transform:bo},height:{transform:bo},maxHeight:{transform:bo},minHeight:{transform:bo},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},hv=yV;function bV(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function wV(e,t){return typeof e=="function"?e(t):e}function CV(){function e(n,r,o,i){const s={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:c=n,themeKey:d,transform:p,style:h}=a;if(r==null)return null;const m=gu(o,d)||{};return h?h(s):Zo(s,r,b=>{let g=Xm(m,p,b);return b===g&&typeof b=="string"&&(g=Xm(m,p,`${n}${b==="default"?"":fe(b)}`,b)),c===!1?g:{[c]:g}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:hv;function a(c){let d=c;if(typeof c=="function")d=c(i);else if(typeof c!="object")return c;if(!d)return null;const p=A8(i.breakpoints),h=Object.keys(p);let m=p;return Object.keys(d).forEach(v=>{const b=wV(d[v],i);if(b!=null)if(typeof b=="object")if(s[v])m=ef(m,e(v,b,i,s));else{const g=Zo({theme:i},b,x=>({[v]:x}));bV(g,b)?m[v]=t({sx:b,theme:i}):m=ef(m,g)}else m=ef(m,e(v,b,i,s))}),F8(h,m)}return Array.isArray(o)?o.map(a):a(o)}return t}const dR=CV();dR.filterProps=["sx"];const mv=dR,xV=["sx"],SV=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:hv;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function FC(e){const{sx:t}=e,n=se(e,xV),{systemProps:r,otherProps:o}=SV(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return ha(a)?k({},r,a):r}:i=k({},r,t),k({},o,{sx:i})}function fR(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=fR(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function me(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=fR(e))&&(r&&(r+=" "),r+=t);return r}const EV=["values","unit","step"],kV=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>k({},n,{[r.key]:r.val}),{})};function PV(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=se(e,EV),i=kV(t),s=Object.keys(i);function a(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n})`}function c(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-r/100}${n})`}function d(m,v){const b=s.indexOf(v);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n}) and (max-width:${(b!==-1&&typeof t[s[b]]=="number"?t[s[b]]:v)-r/100}${n})`}function p(m){return s.indexOf(m)+1<s.length?d(m,s[s.indexOf(m)+1]):a(m)}function h(m){const v=s.indexOf(m);return v===0?a(s[1]):v===s.length-1?c(s[v]):d(m,s[s.indexOf(m)+1]).replace("@media","@media not all and")}return k({keys:s,values:i,up:a,down:c,between:d,only:p,not:h,unit:n},o)}const IV={borderRadius:4},_V=IV;function $V(e=8){if(e.mui)return e;const t=cR({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}const TV=["breakpoints","palette","spacing","shape"];function NC(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=se(e,TV),a=PV(n),c=$V(o);let d=qo({breakpoints:a,direction:"ltr",components:{},palette:k({mode:"light"},r),spacing:c,shape:k({},_V,i)},s);return d=t.reduce((p,h)=>qo(p,h),d),d.unstable_sxConfig=k({},hv,s==null?void 0:s.unstable_sxConfig),d.unstable_sx=function(h){return mv({sx:h,theme:this})},d}const MV=u.createContext(null),pR=MV;function hR(){return u.useContext(pR)}const RV=typeof Symbol=="function"&&Symbol.for,OV=RV?Symbol.for("mui.nested"):"__THEME_NESTED__";function LV(e,t){return typeof t=="function"?t(e):k({},e,t)}function AV(e){const{children:t,theme:n}=e,r=hR(),o=u.useMemo(()=>{const i=r===null?n:LV(r,n);return i!=null&&(i[OV]=r!==null),i},[n,r]);return T.jsx(pR.Provider,{value:o,children:t})}function FV(e){return Object.keys(e).length===0}function DC(e=null){const t=hR();return!t||FV(t)?e:t}const NV=NC();function gv(e=NV){return DC(e)}const DV=["className","component"];function BV(e={}){const{defaultTheme:t,defaultClassName:n="MuiBox-root",generateClassName:r}=e,o=aR("div",{shouldForwardProp:s=>s!=="theme"&&s!=="sx"&&s!=="as"})(mv);return u.forwardRef(function(a,c){const d=gv(t),p=FC(a),{className:h,component:m="div"}=p,v=se(p,DV);return T.jsx(o,k({as:m,ref:c,className:me(h,r?r(n):n),theme:d},v))})}const zV=["variant"];function S2(e){return e.length===0}function mR(e){const{variant:t}=e,n=se(e,zV);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=S2(r)?e[o]:fe(e[o]):r+=`${S2(r)?o:fe(o)}${fe(e[o].toString())}`}),r}const jV=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],HV=["theme"],VV=["theme"];function Sd(e){return Object.keys(e).length===0}function UV(e){return typeof e=="string"&&e.charCodeAt(0)>96}const WV=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,GV=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach(o=>{const i=mR(o.props);r[i]=o.style}),r},KV=(e,t,n,r)=>{var o,i;const{ownerState:s={}}=e,a=[],c=n==null||(o=n.components)==null||(i=o[r])==null?void 0:i.variants;return c&&c.forEach(d=>{let p=!0;Object.keys(d.props).forEach(h=>{s[h]!==d.props[h]&&e[h]!==d.props[h]&&(p=!1)}),p&&a.push(t[mR(d.props)])}),a};function tf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const qV=NC();function YV(e={}){const{defaultTheme:t=qV,rootShouldForwardProp:n=tf,slotShouldForwardProp:r=tf}=e,o=i=>{const s=Sd(i.theme)?t:i.theme;return mv(k({},i,{theme:s}))};return o.__mui_systemSx=!0,(i,s={})=>{L8(i,w=>w.filter(E=>!(E!=null&&E.__mui_systemSx)));const{name:a,slot:c,skipVariantsResolver:d,skipSx:p,overridesResolver:h}=s,m=se(s,jV),v=d!==void 0?d:c&&c!=="Root"||!1,b=p||!1;let g,x=tf;c==="Root"?x=n:c?x=r:UV(i)&&(x=void 0);const C=aR(i,k({shouldForwardProp:x,label:g},m)),S=(w,...E)=>{const P=E?E.map(O=>typeof O=="function"&&O.__emotion_real!==O?L=>{let{theme:R}=L,H=se(L,HV);return O(k({theme:Sd(R)?t:R},H))}:O):[];let _=w;a&&h&&P.push(O=>{const L=Sd(O.theme)?t:O.theme,R=WV(a,L);if(R){const H={};return Object.entries(R).forEach(([j,A])=>{H[j]=typeof A=="function"?A(k({},O,{theme:L})):A}),h(O,H)}return null}),a&&!v&&P.push(O=>{const L=Sd(O.theme)?t:O.theme;return KV(O,GV(a,L),L,a)}),b||P.push(o);const I=P.length-E.length;if(Array.isArray(w)&&I>0){const O=new Array(I).fill("");_=[...w,...O],_.raw=[...w.raw,...O]}else typeof w=="function"&&w.__emotion_real!==w&&(_=O=>{let{theme:L}=O,R=se(O,VV);return w(k({theme:Sd(L)?t:L},R))});return C(_,...P)};return C.withConfig&&(S.withConfig=C.withConfig),S}}function gR(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:SC(t.components[n].defaultProps,r)}function XV({props:e,name:t,defaultTheme:n}){const r=gv(n);return gR({theme:r,name:t,props:e})}function BC(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function QV(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function La(e){if(e.type)return e;if(e.charAt(0)==="#")return La(QV(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Bl(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(Bl(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function vv(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function JV(e){e=La(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(d,p=(d+n/30)%12)=>o-i*Math.max(Math.min(p-3,9-p,1),-1);let a="rgb";const c=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",c.push(t[3])),vv({type:a,values:c})}function E2(e){e=La(e);let t=e.type==="hsl"||e.type==="hsla"?La(JV(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:gs((n+.055)/1.055,2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function ZV(e,t){const n=E2(e),r=E2(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function rt(e,t){return e=La(e),t=BC(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,vv(e)}function Ns(e,t){if(e=La(e),t=BC(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return vv(e)}function Ds(e,t){if(e=La(e),t=BC(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return vv(e)}const e7={};function t7(e){const t=gv();return T.jsx(MC.Provider,{value:typeof t=="object"?t:e7,children:e.children})}function n7(e){const{children:t,theme:n}=e;return T.jsx(AV,{theme:n,children:T.jsx(t7,{children:t})})}function r7(e,t){return k({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const o7=["mode","contrastThreshold","tonalOffset"],k2={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:Mf.white,default:Mf.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}},Q0={text:{primary:Mf.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:Mf.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}};function P2(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Ds(e.main,o):t==="dark"&&(e.dark=Ns(e.main,i)))}function i7(e="light"){return e==="dark"?{main:bc[200],light:bc[50],dark:bc[400]}:{main:bc[700],light:bc[400],dark:bc[800]}}function s7(e="light"){return e==="dark"?{main:yc[200],light:yc[50],dark:yc[400]}:{main:yc[500],light:yc[300],dark:yc[700]}}function l7(e="light"){return e==="dark"?{main:vc[500],light:vc[300],dark:vc[700]}:{main:vc[700],light:vc[400],dark:vc[800]}}function a7(e="light"){return e==="dark"?{main:wc[400],light:wc[300],dark:wc[700]}:{main:wc[700],light:wc[500],dark:wc[900]}}function c7(e="light"){return e==="dark"?{main:Cc[400],light:Cc[300],dark:Cc[700]}:{main:Cc[800],light:Cc[500],dark:Cc[900]}}function u7(e="light"){return e==="dark"?{main:Cd[400],light:Cd[300],dark:Cd[700]}:{main:"#ed6c02",light:Cd[500],dark:Cd[900]}}function d7(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=se(e,o7),i=e.primary||i7(t),s=e.secondary||s7(t),a=e.error||l7(t),c=e.info||a7(t),d=e.success||c7(t),p=e.warning||u7(t);function h(g){return ZV(g,Q0.text.primary)>=n?Q0.text.primary:k2.text.primary}const m=({color:g,name:x,mainShade:C=500,lightShade:S=300,darkShade:w=700})=>{if(g=k({},g),!g.main&&g[C]&&(g.main=g[C]),!g.hasOwnProperty("main"))throw new Error(Bl(11,x?` (${x})`:"",C));if(typeof g.main!="string")throw new Error(Bl(12,x?` (${x})`:"",JSON.stringify(g.main)));return P2(g,"light",S,r),P2(g,"dark",w,r),g.contrastText||(g.contrastText=h(g.main)),g},v={dark:Q0,light:k2};return qo(k({common:k({},Mf),mode:t,primary:m({color:i,name:"primary"}),secondary:m({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:a,name:"error"}),warning:m({color:p,name:"warning"}),info:m({color:c,name:"info"}),success:m({color:d,name:"success"}),grey:rH,contrastThreshold:n,getContrastText:h,augmentColor:m,tonalOffset:r},v[t]),o)}const f7=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function p7(e){return Math.round(e*1e5)/1e5}const I2={textTransform:"uppercase"},_2='"Roboto", "Helvetica", "Arial", sans-serif';function h7(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=_2,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:c=700,htmlFontSize:d=16,allVariants:p,pxToRem:h}=n,m=se(n,f7),v=o/14,b=h||(C=>`${C/d*v}rem`),g=(C,S,w,E,P)=>k({fontFamily:r,fontWeight:C,fontSize:b(S),lineHeight:w},r===_2?{letterSpacing:`${p7(E/S)}em`}:{},P,p),x={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(s,48,1.167,0),h4:g(s,34,1.235,.25),h5:g(s,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(s,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(s,16,1.5,.15),body2:g(s,14,1.43,.15),button:g(a,14,1.75,.4,I2),caption:g(s,12,1.66,.4),overline:g(s,12,2.66,1,I2)};return qo(k({htmlFontSize:d,pxToRem:b,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:c},x),m,{clone:!1})}const m7=.2,g7=.14,v7=.12;function bn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${m7})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${g7})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${v7})`].join(",")}const y7=["none",bn(0,2,1,-1,0,1,1,0,0,1,3,0),bn(0,3,1,-2,0,2,2,0,0,1,5,0),bn(0,3,3,-2,0,3,4,0,0,1,8,0),bn(0,2,4,-1,0,4,5,0,0,1,10,0),bn(0,3,5,-1,0,5,8,0,0,1,14,0),bn(0,3,5,-1,0,6,10,0,0,1,18,0),bn(0,4,5,-2,0,7,10,1,0,2,16,1),bn(0,5,5,-3,0,8,10,1,0,3,14,2),bn(0,5,6,-3,0,9,12,1,0,3,16,2),bn(0,6,6,-3,0,10,14,1,0,4,18,3),bn(0,6,7,-4,0,11,15,1,0,4,20,3),bn(0,7,8,-4,0,12,17,2,0,5,22,4),bn(0,7,8,-4,0,13,19,2,0,5,24,4),bn(0,7,9,-4,0,14,21,2,0,5,26,4),bn(0,8,9,-5,0,15,22,2,0,6,28,5),bn(0,8,10,-5,0,16,24,2,0,6,30,5),bn(0,8,11,-5,0,17,26,2,0,6,32,5),bn(0,9,11,-5,0,18,28,2,0,7,34,6),bn(0,9,12,-6,0,19,29,2,0,7,36,6),bn(0,10,13,-6,0,20,31,3,0,8,38,7),bn(0,10,13,-6,0,21,33,3,0,8,40,7),bn(0,10,14,-6,0,22,35,3,0,8,42,7),bn(0,11,14,-7,0,23,36,3,0,9,44,8),bn(0,11,15,-7,0,24,38,3,0,9,46,8)],b7=y7,w7=["duration","easing","delay"],C7={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)"},vR={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function $2(e){return`${Math.round(e)}ms`}function x7(e){if(!e)return 0;const t=e/36;return Math.round((4+15*gs(t,.25)+t/5)*10)}function S7(e){const t=k({},C7,e.easing),n=k({},vR,e.duration);return k({getAutoHeightDuration:x7,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:c=0}=i;return se(i,w7),(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof s=="string"?s:$2(s)} ${a} ${typeof c=="string"?c:$2(c)}`).join(",")}},e,{easing:t,duration:n})}const E7={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},k7=E7,P7=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function zC(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=se(e,P7);if(e.vars)throw new Error(Bl(18));const a=d7(r),c=NC(e);let d=qo(c,{mixins:r7(c.breakpoints,n),palette:a,shadows:b7.slice(),typography:h7(a,i),transitions:S7(o),zIndex:k({},k7)});return d=qo(d,s),d=t.reduce((p,h)=>qo(p,h),d),d.unstable_sxConfig=k({},hv,s==null?void 0:s.unstable_sxConfig),d.unstable_sx=function(h){return mv({sx:h,theme:this})},d}function I7(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function _7(e){return parseFloat(e)}const $7=zC(),yv=$7;function oo(){return gv(yv)}function et({props:e,name:t}){return XV({props:e,name:t,defaultTheme:yv})}const Mo=e=>tf(e)&&e!=="classes",T7=tf,M7=YV({defaultTheme:yv,rootShouldForwardProp:Mo}),ie=M7,R7=e=>{let t;return e<1?t=5.11916*gs(e,2):t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},T2=R7;function Aa(e){return typeof e=="string"}function Dd(e,t,n){return e===void 0||Aa(e)?t:k({},t,{ownerState:k({},t.ownerState,n)})}function O7(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Rb(e,t){return typeof e=="function"?e(t):e}function M2(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 L7(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const v=me(o==null?void 0:o.className,r==null?void 0:r.className,i,n==null?void 0:n.className),b=k({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),g=k({},n,o,r);return v.length>0&&(g.className=v),Object.keys(b).length>0&&(g.style=b),{props:g,internalRef:void 0}}const s=O7(k({},o,r)),a=M2(r),c=M2(o),d=t(s),p=me(d==null?void 0:d.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),h=k({},d==null?void 0:d.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),m=k({},d,n,c,a);return p.length>0&&(m.className=p),Object.keys(h).length>0&&(m.style=h),{props:m,internalRef:d.ref}}const A7=["elementType","externalSlotProps","ownerState"];function Af(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o}=e,i=se(e,A7),s=Rb(r,o),{props:a,internalRef:c}=L7(k({},i,{externalSlotProps:s})),d=Bt(c,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Dd(n,k({},a,{ref:d}),o)}function F7(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=xC({badgeContent:t,max:r});let s=n;n===!1&&t===0&&!o&&(s=!0);const{badgeContent:a,max:c=r}=s?i:e,d=a&&Number(a)>c?`${c}+`:a;return{badgeContent:a,invisible:s,max:c,displayValue:d}}function R2(e){return e.substring(2).toLowerCase()}function N7(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function yR(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=e,s=u.useRef(!1),a=u.useRef(null),c=u.useRef(!1),d=u.useRef(!1);u.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const p=Bt(t.ref,a),h=cn(b=>{const g=d.current;d.current=!1;const x=gn(a.current);if(!c.current||!a.current||"clientX"in b&&N7(b,x))return;if(s.current){s.current=!1;return}let C;b.composedPath?C=b.composedPath().indexOf(a.current)>-1:C=!x.documentElement.contains(b.target)||a.current.contains(b.target),!C&&(n||!g)&&o(b)}),m=b=>g=>{d.current=!0;const x=t.props[b];x&&x(g)},v={ref:p};return i!==!1&&(v[i]=m(i)),u.useEffect(()=>{if(i!==!1){const b=R2(i),g=gn(a.current),x=()=>{s.current=!0};return g.addEventListener(b,h),g.addEventListener("touchmove",x),()=>{g.removeEventListener(b,h),g.removeEventListener("touchmove",x)}}},[h,i]),r!==!1&&(v[r]=m(r)),u.useEffect(()=>{if(r!==!1){const b=R2(r),g=gn(a.current);return g.addEventListener(b,h),()=>{g.removeEventListener(b,h)}}},[h,r]),T.jsx(u.Fragment,{children:u.cloneElement(t,v)})}const D7=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function B7(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 z7(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function j7(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||z7(e))}function H7(e){const t=[],n=[];return Array.from(e.querySelectorAll(D7)).forEach((r,o)=>{const i=B7(r);i===-1||!j7(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function V7(){return!0}function bR(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=H7,isEnabled:s=V7,open:a}=e,c=u.useRef(!1),d=u.useRef(null),p=u.useRef(null),h=u.useRef(null),m=u.useRef(null),v=u.useRef(!1),b=u.useRef(null),g=Bt(t.ref,b),x=u.useRef(null);u.useEffect(()=>{!a||!b.current||(v.current=!n)},[n,a]),u.useEffect(()=>{if(!a||!b.current)return;const w=gn(b.current);return b.current.contains(w.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),v.current&&b.current.focus()),()=>{o||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}},[a]),u.useEffect(()=>{if(!a||!b.current)return;const w=gn(b.current),E=I=>{const{current:M}=b;if(M!==null){if(!w.hasFocus()||r||!s()||c.current){c.current=!1;return}if(!M.contains(w.activeElement)){if(I&&m.current!==I.target||w.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!v.current)return;let R=[];if((w.activeElement===d.current||w.activeElement===p.current)&&(R=i(b.current)),R.length>0){var O,L;const H=Boolean(((O=x.current)==null?void 0:O.shiftKey)&&((L=x.current)==null?void 0:L.key)==="Tab"),j=R[0],A=R[R.length-1];typeof j!="string"&&typeof A!="string"&&(H?A.focus():j.focus())}else M.focus()}}},P=I=>{x.current=I,!(r||!s()||I.key!=="Tab")&&w.activeElement===b.current&&I.shiftKey&&(c.current=!0,p.current&&p.current.focus())};w.addEventListener("focusin",E),w.addEventListener("keydown",P,!0);const _=setInterval(()=>{w.activeElement&&w.activeElement.tagName==="BODY"&&E(null)},50);return()=>{clearInterval(_),w.removeEventListener("focusin",E),w.removeEventListener("keydown",P,!0)}},[n,r,o,s,a,i]);const C=w=>{h.current===null&&(h.current=w.relatedTarget),v.current=!0,m.current=w.target;const E=t.props.onFocus;E&&E(w)},S=w=>{h.current===null&&(h.current=w.relatedTarget),v.current=!0};return T.jsxs(u.Fragment,{children:[T.jsx("div",{tabIndex:a?0:-1,onFocus:S,ref:d,"data-testid":"sentinelStart"}),u.cloneElement(t,{ref:g,onFocus:C}),T.jsx("div",{tabIndex:a?0:-1,onFocus:S,ref:p,"data-testid":"sentinelEnd"})]})}var to="top",ei="bottom",ti="right",no="left",jC="auto",op=[to,ei,ti,no],vu="start",Ff="end",U7="clippingParents",wR="viewport",Ed="popper",W7="reference",O2=op.reduce(function(e,t){return e.concat([t+"-"+vu,t+"-"+Ff])},[]),CR=[].concat(op,[jC]).reduce(function(e,t){return e.concat([t,t+"-"+vu,t+"-"+Ff])},[]),G7="beforeRead",K7="read",q7="afterRead",Y7="beforeMain",X7="main",Q7="afterMain",J7="beforeWrite",Z7="write",eU="afterWrite",tU=[G7,K7,q7,Y7,X7,Q7,J7,Z7,eU];function ts(e){return e?(e.nodeName||"").toLowerCase():null}function oi(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Fa(e){var t=oi(e).Element;return e instanceof t||e instanceof Element}function Yo(e){var t=oi(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function HC(e){if(typeof ShadowRoot=="undefined")return!1;var t=oi(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function nU(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Yo(i)||!ts(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function rU(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(c,d){return c[d]="",c},{});!Yo(o)||!ts(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const oU={name:"applyStyles",enabled:!0,phase:"write",fn:nU,effect:rU,requires:["computeStyles"]};function Qi(e){return e.split("-")[0]}var Ea=Math.max,Qm=Math.min,yu=Math.round;function Ob(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function xR(){return!/^((?!chrome|android).)*safari/i.test(Ob())}function bu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Yo(e)&&(o=e.offsetWidth>0&&yu(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&yu(r.height)/e.offsetHeight||1);var s=Fa(e)?oi(e):window,a=s.visualViewport,c=!xR()&&n,d=(r.left+(c&&a?a.offsetLeft:0))/o,p=(r.top+(c&&a?a.offsetTop:0))/i,h=r.width/o,m=r.height/i;return{width:h,height:m,top:p,right:d+h,bottom:p+m,left:d,x:d,y:p}}function VC(e){var t=bu(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function SR(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&HC(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Bs(e){return oi(e).getComputedStyle(e)}function iU(e){return["table","td","th"].indexOf(ts(e))>=0}function Ql(e){return((Fa(e)?e.ownerDocument:e.document)||window.document).documentElement}function bv(e){return ts(e)==="html"?e:e.assignedSlot||e.parentNode||(HC(e)?e.host:null)||Ql(e)}function L2(e){return!Yo(e)||Bs(e).position==="fixed"?null:e.offsetParent}function sU(e){var t=/firefox/i.test(Ob()),n=/Trident/i.test(Ob());if(n&&Yo(e)){var r=Bs(e);if(r.position==="fixed")return null}var o=bv(e);for(HC(o)&&(o=o.host);Yo(o)&&["html","body"].indexOf(ts(o))<0;){var i=Bs(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function ip(e){for(var t=oi(e),n=L2(e);n&&iU(n)&&Bs(n).position==="static";)n=L2(n);return n&&(ts(n)==="html"||ts(n)==="body"&&Bs(n).position==="static")?t:n||sU(e)||t}function UC(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function nf(e,t,n){return Ea(e,Qm(t,n))}function lU(e,t,n){var r=nf(e,t,n);return r>n?n:r}function ER(){return{top:0,right:0,bottom:0,left:0}}function kR(e){return Object.assign({},ER(),e)}function PR(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var aU=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,kR(typeof t!="number"?t:PR(t,op))};function cU(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Qi(n.placement),c=UC(a),d=[no,ti].indexOf(a)>=0,p=d?"height":"width";if(!(!i||!s)){var h=aU(o.padding,n),m=VC(i),v=c==="y"?to:no,b=c==="y"?ei:ti,g=n.rects.reference[p]+n.rects.reference[c]-s[c]-n.rects.popper[p],x=s[c]-n.rects.reference[c],C=ip(i),S=C?c==="y"?C.clientHeight||0:C.clientWidth||0:0,w=g/2-x/2,E=h[v],P=S-m[p]-h[b],_=S/2-m[p]/2+w,I=nf(E,_,P),M=c;n.modifiersData[r]=(t={},t[M]=I,t.centerOffset=I-_,t)}}function uU(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||SR(t.elements.popper,o)&&(t.elements.arrow=o))}const dU={name:"arrow",enabled:!0,phase:"main",fn:cU,effect:uU,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function wu(e){return e.split("-")[1]}var fU={top:"auto",right:"auto",bottom:"auto",left:"auto"};function pU(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:yu(t*o)/o||0,y:yu(n*o)/o||0}}function A2(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,c=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,h=e.isFixed,m=s.x,v=m===void 0?0:m,b=s.y,g=b===void 0?0:b,x=typeof p=="function"?p({x:v,y:g}):{x:v,y:g};v=x.x,g=x.y;var C=s.hasOwnProperty("x"),S=s.hasOwnProperty("y"),w=no,E=to,P=window;if(d){var _=ip(n),I="clientHeight",M="clientWidth";if(_===oi(n)&&(_=Ql(n),Bs(_).position!=="static"&&a==="absolute"&&(I="scrollHeight",M="scrollWidth")),_=_,o===to||(o===no||o===ti)&&i===Ff){E=ei;var O=h&&_===P&&P.visualViewport?P.visualViewport.height:_[I];g-=O-r.height,g*=c?1:-1}if(o===no||(o===to||o===ei)&&i===Ff){w=ti;var L=h&&_===P&&P.visualViewport?P.visualViewport.width:_[M];v-=L-r.width,v*=c?1:-1}}var R=Object.assign({position:a},d&&fU),H=p===!0?pU({x:v,y:g}):{x:v,y:g};if(v=H.x,g=H.y,c){var j;return Object.assign({},R,(j={},j[E]=S?"0":"",j[w]=C?"0":"",j.transform=(P.devicePixelRatio||1)<=1?"translate("+v+"px, "+g+"px)":"translate3d("+v+"px, "+g+"px, 0)",j))}return Object.assign({},R,(t={},t[E]=S?g+"px":"",t[w]=C?v+"px":"",t.transform="",t))}function hU(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,c=a===void 0?!0:a,d={placement:Qi(t.placement),variation:wu(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,A2(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,A2(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const mU={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:hU,data:{}};var Mh={passive:!0};function gU(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,c=oi(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(p){p.addEventListener("scroll",n.update,Mh)}),a&&c.addEventListener("resize",n.update,Mh),function(){i&&d.forEach(function(p){p.removeEventListener("scroll",n.update,Mh)}),a&&c.removeEventListener("resize",n.update,Mh)}}const vU={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:gU,data:{}};var yU={left:"right",right:"left",bottom:"top",top:"bottom"};function dm(e){return e.replace(/left|right|bottom|top/g,function(t){return yU[t]})}var bU={start:"end",end:"start"};function F2(e){return e.replace(/start|end/g,function(t){return bU[t]})}function WC(e){var t=oi(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function GC(e){return bu(Ql(e)).left+WC(e).scrollLeft}function wU(e,t){var n=oi(e),r=Ql(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;var d=xR();(d||!d&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:a+GC(e),y:c}}function CU(e){var t,n=Ql(e),r=WC(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Ea(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Ea(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+GC(e),c=-r.scrollTop;return Bs(o||n).direction==="rtl"&&(a+=Ea(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:c}}function KC(e){var t=Bs(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function IR(e){return["html","body","#document"].indexOf(ts(e))>=0?e.ownerDocument.body:Yo(e)&&KC(e)?e:IR(bv(e))}function rf(e,t){var n;t===void 0&&(t=[]);var r=IR(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=oi(r),s=o?[i].concat(i.visualViewport||[],KC(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(rf(bv(s)))}function Lb(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function xU(e,t){var n=bu(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 N2(e,t,n){return t===wR?Lb(wU(e,n)):Fa(t)?xU(t,n):Lb(CU(Ql(e)))}function SU(e){var t=rf(bv(e)),n=["absolute","fixed"].indexOf(Bs(e).position)>=0,r=n&&Yo(e)?ip(e):e;return Fa(r)?t.filter(function(o){return Fa(o)&&SR(o,r)&&ts(o)!=="body"}):[]}function EU(e,t,n,r){var o=t==="clippingParents"?SU(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(c,d){var p=N2(e,d,r);return c.top=Ea(p.top,c.top),c.right=Qm(p.right,c.right),c.bottom=Qm(p.bottom,c.bottom),c.left=Ea(p.left,c.left),c},N2(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function _R(e){var t=e.reference,n=e.element,r=e.placement,o=r?Qi(r):null,i=r?wu(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(o){case to:c={x:s,y:t.y-n.height};break;case ei:c={x:s,y:t.y+t.height};break;case ti:c={x:t.x+t.width,y:a};break;case no:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var d=o?UC(o):null;if(d!=null){var p=d==="y"?"height":"width";switch(i){case vu:c[d]=c[d]-(t[p]/2-n[p]/2);break;case Ff:c[d]=c[d]+(t[p]/2-n[p]/2);break}}return c}function Nf(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,a=n.boundary,c=a===void 0?U7:a,d=n.rootBoundary,p=d===void 0?wR:d,h=n.elementContext,m=h===void 0?Ed:h,v=n.altBoundary,b=v===void 0?!1:v,g=n.padding,x=g===void 0?0:g,C=kR(typeof x!="number"?x:PR(x,op)),S=m===Ed?W7:Ed,w=e.rects.popper,E=e.elements[b?S:m],P=EU(Fa(E)?E:E.contextElement||Ql(e.elements.popper),c,p,s),_=bu(e.elements.reference),I=_R({reference:_,element:w,strategy:"absolute",placement:o}),M=Lb(Object.assign({},w,I)),O=m===Ed?M:_,L={top:P.top-O.top+C.top,bottom:O.bottom-P.bottom+C.bottom,left:P.left-O.left+C.left,right:O.right-P.right+C.right},R=e.modifiersData.offset;if(m===Ed&&R){var H=R[o];Object.keys(L).forEach(function(j){var A=[ti,ei].indexOf(j)>=0?1:-1,F=[to,ei].indexOf(j)>=0?"y":"x";L[j]+=H[F]*A})}return L}function kU(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?CR:c,p=wu(r),h=p?a?O2:O2.filter(function(b){return wu(b)===p}):op,m=h.filter(function(b){return d.indexOf(b)>=0});m.length===0&&(m=h);var v=m.reduce(function(b,g){return b[g]=Nf(e,{placement:g,boundary:o,rootBoundary:i,padding:s})[Qi(g)],b},{});return Object.keys(v).sort(function(b,g){return v[b]-v[g]})}function PU(e){if(Qi(e)===jC)return[];var t=dm(e);return[F2(e),t,F2(t)]}function IU(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,c=n.fallbackPlacements,d=n.padding,p=n.boundary,h=n.rootBoundary,m=n.altBoundary,v=n.flipVariations,b=v===void 0?!0:v,g=n.allowedAutoPlacements,x=t.options.placement,C=Qi(x),S=C===x,w=c||(S||!b?[dm(x)]:PU(x)),E=[x].concat(w).reduce(function(Q,ge){return Q.concat(Qi(ge)===jC?kU(t,{placement:ge,boundary:p,rootBoundary:h,padding:d,flipVariations:b,allowedAutoPlacements:g}):ge)},[]),P=t.rects.reference,_=t.rects.popper,I=new Map,M=!0,O=E[0],L=0;L<E.length;L++){var R=E[L],H=Qi(R),j=wu(R)===vu,A=[to,ei].indexOf(H)>=0,F=A?"width":"height",B=Nf(t,{placement:R,boundary:p,rootBoundary:h,altBoundary:m,padding:d}),G=A?j?ti:no:j?ei:to;P[F]>_[F]&&(G=dm(G));var N=dm(G),z=[];if(i&&z.push(B[H]<=0),a&&z.push(B[G]<=0,B[N]<=0),z.every(function(Q){return Q})){O=R,M=!1;break}I.set(R,z)}if(M)for(var W=b?3:1,q=function(ge){var ee=E.find(function(ce){var oe=I.get(ce);if(oe)return oe.slice(0,ge).every(function(de){return de})});if(ee)return O=ee,"break"},X=W;X>0;X--){var le=q(X);if(le==="break")break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}}const _U={name:"flip",enabled:!0,phase:"main",fn:IU,requiresIfExists:["offset"],data:{_skip:!1}};function D2(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 B2(e){return[to,ti,ei,no].some(function(t){return e[t]>=0})}function $U(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Nf(t,{elementContext:"reference"}),a=Nf(t,{altBoundary:!0}),c=D2(s,r),d=D2(a,o,i),p=B2(c),h=B2(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const TU={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:$U};function MU(e,t,n){var r=Qi(e),o=[no,to].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[no,ti].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function RU(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=CR.reduce(function(p,h){return p[h]=MU(h,t.rects,i),p},{}),a=s[t.placement],c=a.x,d=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=s}const OU={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:RU};function LU(e){var t=e.state,n=e.name;t.modifiersData[n]=_R({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const AU={name:"popperOffsets",enabled:!0,phase:"read",fn:LU,data:{}};function FU(e){return e==="x"?"y":"x"}function NU(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.padding,m=n.tether,v=m===void 0?!0:m,b=n.tetherOffset,g=b===void 0?0:b,x=Nf(t,{boundary:c,rootBoundary:d,padding:h,altBoundary:p}),C=Qi(t.placement),S=wu(t.placement),w=!S,E=UC(C),P=FU(E),_=t.modifiersData.popperOffsets,I=t.rects.reference,M=t.rects.popper,O=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,L=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,H={x:0,y:0};if(_){if(i){var j,A=E==="y"?to:no,F=E==="y"?ei:ti,B=E==="y"?"height":"width",G=_[E],N=G+x[A],z=G-x[F],W=v?-M[B]/2:0,q=S===vu?I[B]:M[B],X=S===vu?-M[B]:-I[B],le=t.elements.arrow,Q=v&&le?VC(le):{width:0,height:0},ge=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ER(),ee=ge[A],ce=ge[F],oe=nf(0,I[B],Q[B]),de=w?I[B]/2-W-oe-ee-L.mainAxis:q-oe-ee-L.mainAxis,be=w?-I[B]/2+W+oe+ce+L.mainAxis:X+oe+ce+L.mainAxis,we=t.elements.arrow&&ip(t.elements.arrow),$e=we?E==="y"?we.clientTop||0:we.clientLeft||0:0,Ve=(j=R==null?void 0:R[E])!=null?j:0,De=G+de-Ve-$e,re=G+be-Ve,Ae=nf(v?Qm(N,De):N,G,v?Ea(z,re):z);_[E]=Ae,H[E]=Ae-G}if(a){var ve,He=E==="x"?to:no,Xe=E==="x"?ei:ti,ft=_[P],ze=P==="y"?"height":"width",pt=ft+x[He],ot=ft-x[Xe],ct=[to,no].indexOf(C)!==-1,vt=(ve=R==null?void 0:R[P])!=null?ve:0,ut=ct?pt:ft-I[ze]-M[ze]-vt+L.altAxis,Ue=ct?ft+I[ze]+M[ze]-vt-L.altAxis:ot,ue=v&&ct?lU(ut,ft,Ue):nf(v?ut:pt,ft,v?Ue:ot);_[P]=ue,H[P]=ue-ft}t.modifiersData[r]=H}}const DU={name:"preventOverflow",enabled:!0,phase:"main",fn:NU,requiresIfExists:["offset"]};function BU(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function zU(e){return e===oi(e)||!Yo(e)?WC(e):BU(e)}function jU(e){var t=e.getBoundingClientRect(),n=yu(t.width)/e.offsetWidth||1,r=yu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function HU(e,t,n){n===void 0&&(n=!1);var r=Yo(t),o=Yo(t)&&jU(t),i=Ql(t),s=bu(e,o,n),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((ts(t)!=="body"||KC(i))&&(a=zU(t)),Yo(t)?(c=bu(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=GC(i))),{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function VU(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var c=t.get(a);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function UU(e){var t=VU(e);return tU.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function WU(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function GU(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var z2={placement:"bottom",modifiers:[],strategy:"absolute"};function j2(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function KU(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?z2:o;return function(a,c,d){d===void 0&&(d=i);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},z2,i),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},h=[],m=!1,v={state:p,setOptions:function(C){var S=typeof C=="function"?C(p.options):C;g(),p.options=Object.assign({},i,p.options,S),p.scrollParents={reference:Fa(a)?rf(a):a.contextElement?rf(a.contextElement):[],popper:rf(c)};var w=UU(GU([].concat(r,p.options.modifiers)));return p.orderedModifiers=w.filter(function(E){return E.enabled}),b(),v.update()},forceUpdate:function(){if(!m){var C=p.elements,S=C.reference,w=C.popper;if(j2(S,w)){p.rects={reference:HU(S,ip(w),p.options.strategy==="fixed"),popper:VC(w)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(L){return p.modifiersData[L.name]=Object.assign({},L.data)});for(var E=0;E<p.orderedModifiers.length;E++){if(p.reset===!0){p.reset=!1,E=-1;continue}var P=p.orderedModifiers[E],_=P.fn,I=P.options,M=I===void 0?{}:I,O=P.name;typeof _=="function"&&(p=_({state:p,options:M,name:O,instance:v})||p)}}}},update:WU(function(){return new Promise(function(x){v.forceUpdate(),x(p)})}),destroy:function(){g(),m=!0}};if(!j2(a,c))return v;v.setOptions(d).then(function(x){!m&&d.onFirstUpdate&&d.onFirstUpdate(x)});function b(){p.orderedModifiers.forEach(function(x){var C=x.name,S=x.options,w=S===void 0?{}:S,E=x.effect;if(typeof E=="function"){var P=E({state:p,name:C,instance:v,options:w}),_=function(){};h.push(P||_)}})}function g(){h.forEach(function(x){return x()}),h=[]}return v}}var qU=[vU,AU,mU,oU,OU,_U,DU,dU,TU],YU=KU({defaultModifiers:qU});function XU(e){return typeof e=="function"?e():e}const QU=u.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[s,a]=u.useState(null),c=Bt(u.isValidElement(r)?r.ref:null,n);if(vn(()=>{i||a(XU(o)||document.body)},[o,i]),vn(()=>{if(s&&!i)return qm(n,s),()=>{qm(n,null)}},[n,s,i]),i){if(u.isValidElement(r)){const d={ref:c};return u.cloneElement(r,d)}return T.jsx(u.Fragment,{children:r})}return T.jsx(u.Fragment,{children:s&&Fl.createPortal(r,s)})}),$R=QU;function JU(e){return Qe("MuiPopper",e)}Ke("MuiPopper",["root"]);const ZU=["anchorEl","children","component","direction","disablePortal","modifiers","open","ownerState","placement","popperOptions","popperRef","slotProps","slots","TransitionProps"],eW=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function tW(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 Ab(e){return typeof e=="function"?e():e}function nW(e){return e.nodeType!==void 0}const rW=()=>_e({root:["root"]},JU,{}),oW={},iW=u.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,component:s,direction:a,disablePortal:c,modifiers:d,open:p,ownerState:h,placement:m,popperOptions:v,popperRef:b,slotProps:g={},slots:x={},TransitionProps:C}=t,S=se(t,ZU),w=u.useRef(null),E=Bt(w,n),P=u.useRef(null),_=Bt(P,b),I=u.useRef(_);vn(()=>{I.current=_},[_]),u.useImperativeHandle(b,()=>P.current,[]);const M=tW(m,a),[O,L]=u.useState(M),[R,H]=u.useState(Ab(o));u.useEffect(()=>{P.current&&P.current.forceUpdate()}),u.useEffect(()=>{o&&H(Ab(o))},[o]),vn(()=>{if(!R||!p)return;const G=W=>{L(W.placement)};let N=[{name:"preventOverflow",options:{altBoundary:c}},{name:"flip",options:{altBoundary:c}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:W})=>{G(W)}}];d!=null&&(N=N.concat(d)),v&&v.modifiers!=null&&(N=N.concat(v.modifiers));const z=YU(R,w.current,k({placement:M},v,{modifiers:N}));return I.current(z),()=>{z.destroy(),I.current(null)}},[R,c,d,p,v,M]);const j={placement:O};C!==null&&(j.TransitionProps=C);const A=rW(),F=(r=s!=null?s:x.root)!=null?r:"div",B=Af({elementType:F,externalSlotProps:g.root,externalForwardedProps:S,additionalProps:{role:"tooltip",ref:E},ownerState:k({},t,h),className:A.root});return T.jsx(F,k({},B,{children:typeof i=="function"?i(j):i}))}),sW=u.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:s="ltr",disablePortal:a=!1,keepMounted:c=!1,modifiers:d,open:p,placement:h="bottom",popperOptions:m=oW,popperRef:v,style:b,transition:g=!1,slotProps:x={},slots:C={}}=t,S=se(t,eW),[w,E]=u.useState(!0),P=()=>{E(!1)},_=()=>{E(!0)};if(!c&&!p&&(!g||w))return null;let I;if(i)I=i;else if(r){const L=Ab(r);I=L&&nW(L)?gn(L).body:gn(null).body}const M=!p&&c&&(!g||w)?"none":void 0,O=g?{in:p,onEnter:P,onExited:_}:void 0;return T.jsx($R,{disablePortal:a,container:I,children:T.jsx(iW,k({anchorEl:r,direction:s,disablePortal:a,modifiers:d,ref:n,open:g?!w:p,placement:h,popperOptions:m,popperRef:v,slotProps:x,slots:C},S,{style:k({position:"fixed",top:0,left:0,display:M},b),TransitionProps:O,children:o}))})}),lW=sW;function aW(e){const t=gn(e);return t.body===e?Eo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function of(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function H2(e){return parseInt(Eo(e).getComputedStyle(e).paddingRight,10)||0}function cW(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function V2(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,s=>{const a=i.indexOf(s)===-1,c=!cW(s);a&&c&&of(s,o)})}function J0(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function uW(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(aW(r)){const s=jM(gn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${H2(r)+s}px`;const a=gn(r).querySelectorAll(".mui-fixed");[].forEach.call(a,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${H2(c)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=gn(r).body;else{const s=r.parentElement,a=Eo(r);i=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:s,property:a})=>{i?s.style.setProperty(a,i):s.style.removeProperty(a)})}}function dW(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class fW{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&of(t.modalRef,!1);const o=dW(n);V2(n,t.mount,t.modalRef,o,!0);const i=J0(this.containers,s=>s.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=J0(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=uW(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=J0(this.containers,s=>s.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&of(t.modalRef,n),V2(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&of(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function pW(e){return Qe("MuiModal",e)}Ke("MuiModal",["root","hidden","backdrop"]);const hW=["children","closeAfterTransition","component","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"],mW=e=>{const{open:t,exited:n}=e;return _e({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},pW,void 0)};function gW(e){return typeof e=="function"?e():e}function vW(e){return e?e.props.hasOwnProperty("in"):!1}const yW=new fW,bW=u.forwardRef(function(t,n){var r,o;const{children:i,closeAfterTransition:s=!1,component:a,container:c,disableAutoFocus:d=!1,disableEnforceFocus:p=!1,disableEscapeKeyDown:h=!1,disablePortal:m=!1,disableRestoreFocus:v=!1,disableScrollLock:b=!1,hideBackdrop:g=!1,keepMounted:x=!1,manager:C=yW,onBackdropClick:S,onClose:w,onKeyDown:E,open:P,onTransitionEnter:_,onTransitionExited:I,slotProps:M={},slots:O={}}=t,L=se(t,hW),[R,H]=u.useState(!P),j=u.useRef({}),A=u.useRef(null),F=u.useRef(null),B=Bt(F,n),G=vW(i),N=(r=t["aria-hidden"])!=null?r:!0,z=()=>gn(A.current),W=()=>(j.current.modalRef=F.current,j.current.mountNode=A.current,j.current),q=()=>{C.mount(W(),{disableScrollLock:b}),F.current&&(F.current.scrollTop=0)},X=cn(()=>{const ve=gW(c)||z().body;C.add(W(),ve),F.current&&q()}),le=u.useCallback(()=>C.isTopModal(W()),[C]),Q=cn(ve=>{A.current=ve,!(!ve||!F.current)&&(P&&le()?q():of(F.current,N))}),ge=u.useCallback(()=>{C.remove(W(),N)},[C,N]);u.useEffect(()=>()=>{ge()},[ge]),u.useEffect(()=>{P?X():(!G||!s)&&ge()},[P,ge,G,s,X]);const ee=k({},t,{closeAfterTransition:s,disableAutoFocus:d,disableEnforceFocus:p,disableEscapeKeyDown:h,disablePortal:m,disableRestoreFocus:v,disableScrollLock:b,exited:R,hideBackdrop:g,keepMounted:x}),ce=mW(ee),oe=()=>{H(!1),_&&_()},de=()=>{H(!0),I&&I(),s&&ge()},be=ve=>{ve.target===ve.currentTarget&&(S&&S(ve),w&&w(ve,"backdropClick"))},we=ve=>{E&&E(ve),!(ve.key!=="Escape"||!le())&&(h||(ve.stopPropagation(),w&&w(ve,"escapeKeyDown")))},$e={};i.props.tabIndex===void 0&&($e.tabIndex="-1"),G&&($e.onEnter=s2(oe,i.props.onEnter),$e.onExited=s2(de,i.props.onExited));const Ve=(o=a!=null?a:O.root)!=null?o:"div",De=Af({elementType:Ve,externalSlotProps:M.root,externalForwardedProps:L,additionalProps:{ref:B,role:"presentation",onKeyDown:we},className:ce.root,ownerState:ee}),re=O.backdrop,Ae=Af({elementType:re,externalSlotProps:M.backdrop,additionalProps:{"aria-hidden":!0,onClick:be,open:P},className:ce.backdrop,ownerState:ee});return!x&&!P&&(!G||R)?null:T.jsx($R,{ref:Q,container:c,disablePortal:m,children:T.jsxs(Ve,k({},De,{children:[!g&&re?T.jsx(re,k({},Ae)):null,T.jsx(bR,{disableEnforceFocus:p,disableAutoFocus:d,disableRestoreFocus:v,isEnabled:le,open:P,children:u.cloneElement(i,$e)})]}))})}),wW=bW,CW=["onChange","maxRows","minRows","style","value"];function Rh(e){return parseInt(e,10)||0}const xW={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function U2(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const SW=u.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:s,value:a}=t,c=se(t,CW),{current:d}=u.useRef(a!=null),p=u.useRef(null),h=Bt(n,p),m=u.useRef(null),v=u.useRef(0),[b,g]=u.useState({outerHeightStyle:0}),x=u.useCallback(()=>{const P=p.current,I=Eo(P).getComputedStyle(P);if(I.width==="0px")return{outerHeightStyle:0};const M=m.current;M.style.width=I.width,M.value=P.value||t.placeholder||"x",M.value.slice(-1)===`
|
|
89
|
+
`&&(M.value+=" ");const O=I.boxSizing,L=Rh(I.paddingBottom)+Rh(I.paddingTop),R=Rh(I.borderBottomWidth)+Rh(I.borderTopWidth),H=M.scrollHeight;M.value="x";const j=M.scrollHeight;let A=H;i&&(A=Math.max(Number(i)*j,A)),o&&(A=Math.min(Number(o)*j,A)),A=Math.max(A,j);const F=A+(O==="border-box"?L+R:0),B=Math.abs(A-H)<=1;return{outerHeightStyle:F,overflow:B}},[o,i,t.placeholder]),C=(P,_)=>{const{outerHeightStyle:I,overflow:M}=_;return v.current<20&&(I>0&&Math.abs((P.outerHeightStyle||0)-I)>1||P.overflow!==M)?(v.current+=1,{overflow:M,outerHeightStyle:I}):P},S=u.useCallback(()=>{const P=x();U2(P)||g(_=>C(_,P))},[x]),w=()=>{const P=x();U2(P)||Fl.flushSync(()=>{g(_=>C(_,P))})};u.useEffect(()=>{const P=zl(()=>{v.current=0,p.current&&w()});let _;const I=p.current,M=Eo(I);return M.addEventListener("resize",P),typeof ResizeObserver!="undefined"&&(_=new ResizeObserver(P),_.observe(I)),()=>{P.clear(),M.removeEventListener("resize",P),_&&_.disconnect()}}),vn(()=>{S()}),u.useEffect(()=>{v.current=0},[a]);const E=P=>{v.current=0,d||S(),r&&r(P)};return T.jsxs(u.Fragment,{children:[T.jsx("textarea",k({value:a,onChange:E,ref:h,rows:i,style:k({height:b.outerHeightStyle,overflow:b.overflow?"hidden":void 0},s)},c)),T.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:k({},xW.shadow,s,{padding:0})})]})}),EW=SW;function W2(e){return typeof e.normalize!="undefined"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function TR(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:s=!1}=e;return(a,{inputValue:c,getOptionLabel:d})=>{let p=s?c.trim():c;n&&(p=p.toLowerCase()),t&&(p=W2(p));const h=p?a.filter(m=>{let v=(i||d)(m);return n&&(v=v.toLowerCase()),t&&(v=W2(v)),o==="start"?v.indexOf(p)===0:v.indexOf(p)>-1}):a;return typeof r=="number"?h.slice(0,r):h}}function Z0(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const kW=TR(),G2=5,PW=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function IW(e){const{unstable_isActiveElementInListbox:t=PW,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:s=!1,clearOnBlur:a=!e.freeSolo,clearOnEscape:c=!1,componentName:d="useAutocomplete",defaultValue:p=e.multiple?[]:null,disableClearable:h=!1,disableCloseOnSelect:m=!1,disabled:v,disabledItemsFocusable:b=!1,disableListWrap:g=!1,filterOptions:x=kW,filterSelectedOptions:C=!1,freeSolo:S=!1,getOptionDisabled:w,getOptionLabel:E=Se=>{var ye;return(ye=Se.label)!=null?ye:Se},groupBy:P,handleHomeEndKeys:_=!e.freeSolo,id:I,includeInputInList:M=!1,inputValue:O,isOptionEqualToValue:L=(Se,ye)=>Se===ye,multiple:R=!1,onChange:H,onClose:j,onHighlightChange:A,onInputChange:F,onOpen:B,open:G,openOnFocus:N=!1,options:z,readOnly:W=!1,selectOnFocus:q=!e.freeSolo,value:X}=e,le=Tn(I);let Q=E;Q=Se=>{const ye=E(Se);return typeof ye!="string"?String(ye):ye};const ge=u.useRef(!1),ee=u.useRef(!0),ce=u.useRef(null),oe=u.useRef(null),[de,be]=u.useState(null),[we,$e]=u.useState(-1),Ve=o?0:-1,De=u.useRef(Ve),[re,Ae]=Ts({controlled:X,default:p,name:d}),[ve,He]=Ts({controlled:O,default:"",name:d,state:"inputValue"}),[Xe,ft]=u.useState(!1),ze=u.useCallback((Se,ye)=>{if(!(R?re.length<ye.length:ye!==null)&&!a)return;let at;if(R)at="";else if(ye==null)at="";else{const zt=Q(ye);at=typeof zt=="string"?zt:""}ve!==at&&(He(at),F&&F(Se,at,"reset"))},[Q,ve,R,F,He,a,re]),[pt,ot]=Ts({controlled:G,default:!1,name:d,state:"open"}),[ct,vt]=u.useState(!0),ut=!R&&re!=null&&ve===Q(re),Ue=pt&&!W,ue=Ue?x(z.filter(Se=>!(C&&(R?re:[re]).some(ye=>ye!==null&&L(Se,ye)))),{inputValue:ut&&ct?"":ve,getOptionLabel:Q}):[],J=xC({filteredOptions:ue,value:re});u.useEffect(()=>{const Se=re!==J.value;Xe&&!Se||S&&!Se||ze(null,re)},[re,ze,Xe,J.value,S]);const Oe=pt&&ue.length>0&&!W,Me=cn(Se=>{Se===-1?ce.current.focus():de.querySelector(`[data-tag-index="${Se}"]`).focus()});u.useEffect(()=>{R&&we>re.length-1&&($e(-1),Me(-1))},[re,R,we,Me]);function Je(Se,ye){if(!oe.current||Se===-1)return-1;let je=Se;for(;;){if(ye==="next"&&je===ue.length||ye==="previous"&&je===-1)return-1;const at=oe.current.querySelector(`[data-option-index="${je}"]`),zt=b?!1:!at||at.disabled||at.getAttribute("aria-disabled")==="true";if(at&&!at.hasAttribute("tabindex")||zt)je+=ye==="next"?1:-1;else return je}}const wt=cn(({event:Se,index:ye,reason:je="auto"})=>{if(De.current=ye,ye===-1?ce.current.removeAttribute("aria-activedescendant"):ce.current.setAttribute("aria-activedescendant",`${le}-option-${ye}`),A&&A(Se,ye===-1?null:ue[ye],je),!oe.current)return;const at=oe.current.querySelector(`[role="option"].${n}-focused`);at&&(at.classList.remove(`${n}-focused`),at.classList.remove(`${n}-focusVisible`));const zt=oe.current.parentElement.querySelector('[role="listbox"]');if(!zt)return;if(ye===-1){zt.scrollTop=0;return}const En=oe.current.querySelector(`[data-option-index="${ye}"]`);if(En&&(En.classList.add(`${n}-focused`),je==="keyboard"&&En.classList.add(`${n}-focusVisible`),zt.scrollHeight>zt.clientHeight&&je!=="mouse")){const kn=En,gt=zt.clientHeight+zt.scrollTop,tr=kn.offsetTop+kn.offsetHeight;tr>gt?zt.scrollTop=tr-zt.clientHeight:kn.offsetTop-kn.offsetHeight*(P?1.3:0)<zt.scrollTop&&(zt.scrollTop=kn.offsetTop-kn.offsetHeight*(P?1.3:0))}}),It=cn(({event:Se,diff:ye,direction:je="next",reason:at="auto"})=>{if(!Ue)return;const En=Je((()=>{const kn=ue.length-1;if(ye==="reset")return Ve;if(ye==="start")return 0;if(ye==="end")return kn;const gt=De.current+ye;return gt<0?gt===-1&&M?-1:g&&De.current!==-1||Math.abs(ye)>1?0:kn:gt>kn?gt===kn+1&&M?-1:g||Math.abs(ye)>1?kn:0:gt})(),je);if(wt({index:En,reason:at,event:Se}),r&&ye!=="reset")if(En===-1)ce.current.value=ve;else{const kn=Q(ue[En]);ce.current.value=kn,kn.toLowerCase().indexOf(ve.toLowerCase())===0&&ve.length>0&&ce.current.setSelectionRange(ve.length,kn.length)}}),Kt=()=>{const Se=(ye,je)=>{const at=ye?Q(ye):"",zt=je?Q(je):"";return at===zt};if(De.current!==-1&&J.filteredOptions&&J.filteredOptions.length!==ue.length&&(R?re.length===J.value.length&&J.value.every((ye,je)=>Q(re[je])===Q(ye)):Se(J.value,re))){const ye=J.filteredOptions[De.current];if(ye&&ue.some(at=>Q(at)===Q(ye)))return!0}return!1},Vn=u.useCallback(()=>{if(!Ue||Kt())return;const Se=R?re[0]:re;if(ue.length===0||Se==null){It({diff:"reset"});return}if(oe.current){if(Se!=null){const ye=ue[De.current];if(R&&ye&&Z0(re,at=>L(ye,at))!==-1)return;const je=Z0(ue,at=>L(at,Se));je===-1?It({diff:"reset"}):wt({index:je});return}if(De.current>=ue.length-1){wt({index:ue.length-1});return}wt({index:De.current})}},[ue.length,R?!1:re,C,It,wt,Ue,ve,R]),Rr=cn(Se=>{qm(oe,Se),Se&&Vn()});u.useEffect(()=>{Vn()},[Vn]);const er=Se=>{pt||(ot(!0),vt(!0),B&&B(Se))},vr=(Se,ye)=>{pt&&(ot(!1),j&&j(Se,ye))},yr=(Se,ye,je,at)=>{if(R){if(re.length===ye.length&&re.every((zt,En)=>zt===ye[En]))return}else if(re===ye)return;H&&H(Se,ye,je,at),Ae(ye)},br=u.useRef(!1),rn=(Se,ye,je="selectOption",at="options")=>{let zt=je,En=ye;if(R){En=Array.isArray(re)?re.slice():[];const kn=Z0(En,gt=>L(ye,gt));kn===-1?En.push(ye):at!=="freeSolo"&&(En.splice(kn,1),zt="removeOption")}ze(Se,En),yr(Se,En,zt,{option:ye}),!m&&(!Se||!Se.ctrlKey&&!Se.metaKey)&&vr(Se,zt),(s===!0||s==="touch"&&br.current||s==="mouse"&&!br.current)&&ce.current.blur()};function dn(Se,ye){if(Se===-1)return-1;let je=Se;for(;;){if(ye==="next"&&je===re.length||ye==="previous"&&je===-1)return-1;const at=de.querySelector(`[data-tag-index="${je}"]`);if(!at||!at.hasAttribute("tabindex")||at.disabled||at.getAttribute("aria-disabled")==="true")je+=ye==="next"?1:-1;else return je}}const Un=(Se,ye)=>{if(!R)return;ve===""&&vr(Se,"toggleInput");let je=we;we===-1?ve===""&&ye==="previous"&&(je=re.length-1):(je+=ye==="next"?1:-1,je<0&&(je=0),je===re.length&&(je=-1)),je=dn(je,ye),$e(je),Me(je)},li=Se=>{ge.current=!0,He(""),F&&F(Se,"","clear"),yr(Se,R?[]:null,"clear")},Ti=Se=>ye=>{if(Se.onKeyDown&&Se.onKeyDown(ye),!ye.defaultMuiPrevented&&(we!==-1&&["ArrowLeft","ArrowRight"].indexOf(ye.key)===-1&&($e(-1),Me(-1)),ye.which!==229))switch(ye.key){case"Home":Ue&&_&&(ye.preventDefault(),It({diff:"start",direction:"next",reason:"keyboard",event:ye}));break;case"End":Ue&&_&&(ye.preventDefault(),It({diff:"end",direction:"previous",reason:"keyboard",event:ye}));break;case"PageUp":ye.preventDefault(),It({diff:-G2,direction:"previous",reason:"keyboard",event:ye}),er(ye);break;case"PageDown":ye.preventDefault(),It({diff:G2,direction:"next",reason:"keyboard",event:ye}),er(ye);break;case"ArrowDown":ye.preventDefault(),It({diff:1,direction:"next",reason:"keyboard",event:ye}),er(ye);break;case"ArrowUp":ye.preventDefault(),It({diff:-1,direction:"previous",reason:"keyboard",event:ye}),er(ye);break;case"ArrowLeft":Un(ye,"previous");break;case"ArrowRight":Un(ye,"next");break;case"Enter":if(De.current!==-1&&Ue){const je=ue[De.current],at=w?w(je):!1;if(ye.preventDefault(),at)return;rn(ye,je,"selectOption"),r&&ce.current.setSelectionRange(ce.current.value.length,ce.current.value.length)}else S&&ve!==""&&ut===!1&&(R&&ye.preventDefault(),rn(ye,ve,"createOption","freeSolo"));break;case"Escape":Ue?(ye.preventDefault(),ye.stopPropagation(),vr(ye,"escape")):c&&(ve!==""||R&&re.length>0)&&(ye.preventDefault(),ye.stopPropagation(),li(ye));break;case"Backspace":if(R&&!W&&ve===""&&re.length>0){const je=we===-1?re.length-1:we,at=re.slice();at.splice(je,1),yr(ye,at,"removeOption",{option:re[je]})}break;case"Delete":if(R&&!W&&ve===""&&re.length>0&&we!==-1){const je=we,at=re.slice();at.splice(je,1),yr(ye,at,"removeOption",{option:re[je]})}break}},ss=Se=>{ft(!0),N&&!ge.current&&er(Se)},Mi=Se=>{if(t(oe)){ce.current.focus();return}ft(!1),ee.current=!0,ge.current=!1,i&&De.current!==-1&&Ue?rn(Se,ue[De.current],"blur"):i&&S&&ve!==""?rn(Se,ve,"blur","freeSolo"):a&&ze(Se,re),vr(Se,"blur")},Ri=Se=>{const ye=Se.target.value;ve!==ye&&(He(ye),vt(!1),F&&F(Se,ye,"input")),ye===""?!h&&!R&&yr(Se,null,"clear"):er(Se)},ae=Se=>{wt({event:Se,index:Number(Se.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},Ce=()=>{br.current=!0},Fe=Se=>{const ye=Number(Se.currentTarget.getAttribute("data-option-index"));rn(Se,ue[ye],"selectOption"),br.current=!1},st=Se=>ye=>{const je=re.slice();je.splice(Se,1),yr(ye,je,"removeOption",{option:re[Se]})},Le=Se=>{pt?vr(Se,"toggleInput"):er(Se)},lt=Se=>{Se.target.getAttribute("id")!==le&&Se.preventDefault()},xt=()=>{ce.current.focus(),q&&ee.current&&ce.current.selectionEnd-ce.current.selectionStart===0&&ce.current.select(),ee.current=!1},Qt=Se=>{(ve===""||!pt)&&Le(Se)};let On=S&&ve.length>0;On=On||(R?re.length>0:re!==null);let io=ue;return P&&(io=ue.reduce((Se,ye,je)=>{const at=P(ye);return Se.length>0&&Se[Se.length-1].group===at?Se[Se.length-1].options.push(ye):Se.push({key:je,index:je,group:at,options:[ye]}),Se},[])),v&&Xe&&Mi(),{getRootProps:(Se={})=>k({"aria-owns":Oe?`${le}-listbox`:null},Se,{onKeyDown:Ti(Se),onMouseDown:lt,onClick:xt}),getInputLabelProps:()=>({id:`${le}-label`,htmlFor:le}),getInputProps:()=>({id:le,value:ve,onBlur:Mi,onFocus:ss,onChange:Ri,onMouseDown:Qt,"aria-activedescendant":Ue?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Oe?`${le}-listbox`:void 0,"aria-expanded":Oe,autoComplete:"off",ref:ce,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:v}),getClearProps:()=>({tabIndex:-1,onClick:li}),getPopupIndicatorProps:()=>({tabIndex:-1,onClick:Le}),getTagProps:({index:Se})=>k({key:Se,"data-tag-index":Se,tabIndex:-1},!W&&{onDelete:st(Se)}),getListboxProps:()=>({role:"listbox",id:`${le}-listbox`,"aria-labelledby":`${le}-label`,ref:Rr,onMouseDown:Se=>{Se.preventDefault()}}),getOptionProps:({index:Se,option:ye})=>{const je=(R?re:[re]).some(zt=>zt!=null&&L(ye,zt)),at=w?w(ye):!1;return{key:Q(ye),tabIndex:-1,role:"option",id:`${le}-option-${Se}`,onMouseOver:ae,onClick:Fe,onTouchStart:Ce,"data-option-index":Se,"aria-disabled":at,"aria-selected":je}},id:le,inputValue:ve,value:re,dirty:On,popupOpen:Ue,focused:Xe||we!==-1,anchorEl:de,setAnchorEl:be,focusedTag:we,groupedOptions:io}}function _W(e){return Qe("MuiSvgIcon",e)}Ke("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const $W=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],TW=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${fe(t)}`,`fontSize${fe(n)}`]};return _e(o,_W,r)},MW=ie("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${fe(n.color)}`],t[`fontSize${fe(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,s,a,c,d,p,h,m,v,b,g,x,C,S;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(i=o.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(a=s.pxToRem)==null?void 0:a.call(s,20))||"1.25rem",medium:((c=e.typography)==null||(d=c.pxToRem)==null?void 0:d.call(c,24))||"1.5rem",large:((p=e.typography)==null||(h=p.pxToRem)==null?void 0:h.call(p,35))||"2.1875rem"}[t.fontSize],color:(m=(v=(e.vars||e).palette)==null||(b=v[t.color])==null?void 0:b.main)!=null?m:{action:(g=(e.vars||e).palette)==null||(x=g.action)==null?void 0:x.active,disabled:(C=(e.vars||e).palette)==null||(S=C.action)==null?void 0:S.disabled,inherit:void 0}[t.color]}}),MR=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:c="medium",htmlColor:d,inheritViewBox:p=!1,titleAccess:h,viewBox:m="0 0 24 24"}=r,v=se(r,$W),b=k({},r,{color:s,component:a,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:m}),g={};p||(g.viewBox=m);const x=TW(b);return T.jsxs(MW,k({as:a,className:me(x.root,i),focusable:"false",color:d,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n},g,v,{ownerState:b,children:[o,h?T.jsx("title",{children:h}):null]}))});MR.muiName="SvgIcon";const K2=MR;function Re(e,t){function n(r,o){return T.jsx(K2,k({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=K2.muiName,u.memo(u.forwardRef(n))}function Fb(e,t){return Fb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Fb(e,t)}function qC(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Fb(e,t)}const q2={disabled:!1},Jm=Yr.createContext(null);var RW=function(t){return t.scrollTop},Bd="unmounted",da="exited",fa="entering",$c="entered",Nb="exiting",Vs=function(e){qC(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=o,a=s&&!s.isMounting?r.enter:r.appear,c;return i.appearStatus=null,r.in?a?(c=da,i.appearStatus=fa):c=$c:r.unmountOnExit||r.mountOnEnter?c=Bd:c=da,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===Bd?{status:da}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==fa&&s!==$c&&(i=fa):(s===fa||s===$c)&&(i=Nb)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===fa){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:$h.findDOMNode(this);s&&RW(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===da&&this.setState({status:Bd})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,c=this.props.nodeRef?[a]:[$h.findDOMNode(this),a],d=c[0],p=c[1],h=this.getTimeouts(),m=a?h.appear:h.enter;if(!o&&!s||q2.disabled){this.safeSetState({status:$c},function(){i.props.onEntered(d)});return}this.props.onEnter(d,p),this.safeSetState({status:fa},function(){i.props.onEntering(d,p),i.onTransitionEnd(m,function(){i.safeSetState({status:$c},function(){i.props.onEntered(d,p)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:$h.findDOMNode(this);if(!i||q2.disabled){this.safeSetState({status:da},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Nb},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:da},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:$h.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],d=c[0],p=c[1];this.props.addEndListener(d,p)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Bd)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=se(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Yr.createElement(Jm.Provider,{value:null},typeof s=="function"?s(o,a):Yr.cloneElement(Yr.Children.only(s),a))},t}(Yr.Component);Vs.contextType=Jm;Vs.propTypes={};function Sc(){}Vs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Sc,onEntering:Sc,onEntered:Sc,onExit:Sc,onExiting:Sc,onExited:Sc};Vs.UNMOUNTED=Bd;Vs.EXITED=da;Vs.ENTERING=fa;Vs.ENTERED=$c;Vs.EXITING=Nb;const wv=Vs;function Db(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YC(e,t){var n=function(i){return t&&u.isValidElement(i)?t(i):i},r=Object.create(null);return e&&u.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function OW(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var s,a={};for(var c in t){if(r[c])for(s=0;s<r[c].length;s++){var d=r[c][s];a[r[c][s]]=n(d)}a[c]=n(c)}for(s=0;s<o.length;s++)a[o[s]]=n(o[s]);return a}function ya(e,t,n){return n[t]!=null?n[t]:e.props[t]}function LW(e,t){return YC(e.children,function(n){return u.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:ya(n,"appear",e),enter:ya(n,"enter",e),exit:ya(n,"exit",e)})})}function AW(e,t,n){var r=YC(e.children),o=OW(t,r);return Object.keys(o).forEach(function(i){var s=o[i];if(u.isValidElement(s)){var a=i in t,c=i in r,d=t[i],p=u.isValidElement(d)&&!d.props.in;c&&(!a||p)?o[i]=u.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:ya(s,"exit",e),enter:ya(s,"enter",e)}):!c&&a&&!p?o[i]=u.cloneElement(s,{in:!1}):c&&a&&u.isValidElement(d)&&(o[i]=u.cloneElement(s,{onExited:n.bind(null,s),in:d.props.in,exit:ya(s,"exit",e),enter:ya(s,"enter",e)}))}}),o}var FW=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},NW={component:"div",childFactory:function(t){return t}},XC=function(e){qC(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=i.handleExited.bind(Db(i));return i.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var s=i.children,a=i.handleExited,c=i.firstRender;return{children:c?LW(o,a):AW(o,s,a),firstRender:!1}},n.handleExited=function(o,i){var s=YC(this.props.children);o.key in s||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(a){var c=k({},a.children);return delete c[o.key],{children:c}}))},n.render=function(){var o=this.props,i=o.component,s=o.childFactory,a=se(o,["component","childFactory"]),c=this.state.contextValue,d=FW(this.state.children).map(s);return delete a.appear,delete a.enter,delete a.exit,i===null?Yr.createElement(Jm.Provider,{value:c},d):Yr.createElement(Jm.Provider,{value:c},Yr.createElement(i,a,d))},t}(Yr.Component);XC.propTypes={};XC.defaultProps=NW;const DW=XC,QC=e=>e.scrollTop;function Hl(e,t){var n,r;const{timeout:o,easing:i,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:s.transitionDelay}}function BW(e){return Qe("MuiCollapse",e)}Ke("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const zW=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],jW=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return _e(r,BW,n)},HW=ie("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]}})(({theme:e,ownerState:t})=>k({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&k({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),VW=ie("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>k({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),UW=ie("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>k({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),RR=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiCollapse"}),{addEndListener:o,children:i,className:s,collapsedSize:a="0px",component:c,easing:d,in:p,onEnter:h,onEntered:m,onEntering:v,onExit:b,onExited:g,onExiting:x,orientation:C="vertical",style:S,timeout:w=vR.standard,TransitionComponent:E=wv}=r,P=se(r,zW),_=k({},r,{orientation:C,collapsedSize:a}),I=jW(_),M=oo(),O=u.useRef(),L=u.useRef(null),R=u.useRef(),H=typeof a=="number"?`${a}px`:a,j=C==="horizontal",A=j?"width":"height";u.useEffect(()=>()=>{clearTimeout(O.current)},[]);const F=u.useRef(null),B=Bt(n,F),G=ee=>ce=>{if(ee){const oe=F.current;ce===void 0?ee(oe):ee(oe,ce)}},N=()=>L.current?L.current[j?"clientWidth":"clientHeight"]:0,z=G((ee,ce)=>{L.current&&j&&(L.current.style.position="absolute"),ee.style[A]=H,h&&h(ee,ce)}),W=G((ee,ce)=>{const oe=N();L.current&&j&&(L.current.style.position="");const{duration:de,easing:be}=Hl({style:S,timeout:w,easing:d},{mode:"enter"});if(w==="auto"){const we=M.transitions.getAutoHeightDuration(oe);ee.style.transitionDuration=`${we}ms`,R.current=we}else ee.style.transitionDuration=typeof de=="string"?de:`${de}ms`;ee.style[A]=`${oe}px`,ee.style.transitionTimingFunction=be,v&&v(ee,ce)}),q=G((ee,ce)=>{ee.style[A]="auto",m&&m(ee,ce)}),X=G(ee=>{ee.style[A]=`${N()}px`,b&&b(ee)}),le=G(g),Q=G(ee=>{const ce=N(),{duration:oe,easing:de}=Hl({style:S,timeout:w,easing:d},{mode:"exit"});if(w==="auto"){const be=M.transitions.getAutoHeightDuration(ce);ee.style.transitionDuration=`${be}ms`,R.current=be}else ee.style.transitionDuration=typeof oe=="string"?oe:`${oe}ms`;ee.style[A]=H,ee.style.transitionTimingFunction=de,x&&x(ee)}),ge=ee=>{w==="auto"&&(O.current=setTimeout(ee,R.current||0)),o&&o(F.current,ee)};return T.jsx(E,k({in:p,onEnter:z,onEntered:q,onEntering:W,onExit:X,onExited:le,onExiting:Q,addEndListener:ge,nodeRef:F,timeout:w==="auto"?null:w},P,{children:(ee,ce)=>T.jsx(HW,k({as:c,className:me(I.root,s,{entered:I.entered,exited:!p&&H==="0px"&&I.hidden}[ee]),style:k({[j?"minWidth":"minHeight"]:H},S),ownerState:k({},_,{state:ee}),ref:B},ce,{children:T.jsx(VW,{ownerState:k({},_,{state:ee}),className:I.wrapper,ref:L,children:T.jsx(UW,{ownerState:k({},_,{state:ee}),className:I.wrapperInner,children:i})})}))}))});RR.muiSupportAuto=!0;const OR=RR;function WW(e){return Qe("MuiPaper",e)}Ke("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 GW=["className","component","elevation","square","variant"],KW=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return _e(i,WW,o)},qW=ie("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}`]]}})(({theme:e,ownerState:t})=>{var n;return k({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&k({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${rt("#fff",T2(t.elevation))}, ${rt("#fff",T2(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),YW=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:s=1,square:a=!1,variant:c="elevation"}=r,d=se(r,GW),p=k({},r,{component:i,elevation:s,square:a,variant:c}),h=KW(p);return T.jsx(qW,k({as:i,ownerState:p,className:me(h.root,o),ref:n},d))}),ii=YW;function XW(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:s,in:a,onExited:c,timeout:d}=e,[p,h]=u.useState(!1),m=me(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),v={width:s,height:s,top:-(s/2)+i,left:-(s/2)+o},b=me(n.child,p&&n.childLeaving,r&&n.childPulsate);return!a&&!p&&h(!0),u.useEffect(()=>{if(!a&&c!=null){const g=setTimeout(c,d);return()=>{clearTimeout(g)}}},[c,a,d]),T.jsx("span",{className:m,style:v,children:T.jsx("span",{className:b})})}const QW=Ke("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ho=QW,JW=["center","classes","className"];let Cv=e=>e,Y2,X2,Q2,J2;const Bb=550,ZW=80,eG=rs(Y2||(Y2=Cv`
|
|
90
|
+
0% {
|
|
91
|
+
transform: scale(0);
|
|
92
|
+
opacity: 0.1;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
100% {
|
|
96
|
+
transform: scale(1);
|
|
97
|
+
opacity: 0.3;
|
|
98
|
+
}
|
|
99
|
+
`)),tG=rs(X2||(X2=Cv`
|
|
100
|
+
0% {
|
|
101
|
+
opacity: 1;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
100% {
|
|
105
|
+
opacity: 0;
|
|
106
|
+
}
|
|
107
|
+
`)),nG=rs(Q2||(Q2=Cv`
|
|
108
|
+
0% {
|
|
109
|
+
transform: scale(1);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
50% {
|
|
113
|
+
transform: scale(0.92);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
100% {
|
|
117
|
+
transform: scale(1);
|
|
118
|
+
}
|
|
119
|
+
`)),rG=ie("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),oG=ie(XW,{name:"MuiTouchRipple",slot:"Ripple"})(J2||(J2=Cv`
|
|
120
|
+
opacity: 0;
|
|
121
|
+
position: absolute;
|
|
122
|
+
|
|
123
|
+
&.${0} {
|
|
124
|
+
opacity: 0.3;
|
|
125
|
+
transform: scale(1);
|
|
126
|
+
animation-name: ${0};
|
|
127
|
+
animation-duration: ${0}ms;
|
|
128
|
+
animation-timing-function: ${0};
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&.${0} {
|
|
132
|
+
animation-duration: ${0}ms;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
& .${0} {
|
|
136
|
+
opacity: 1;
|
|
137
|
+
display: block;
|
|
138
|
+
width: 100%;
|
|
139
|
+
height: 100%;
|
|
140
|
+
border-radius: 50%;
|
|
141
|
+
background-color: currentColor;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
& .${0} {
|
|
145
|
+
opacity: 0;
|
|
146
|
+
animation-name: ${0};
|
|
147
|
+
animation-duration: ${0}ms;
|
|
148
|
+
animation-timing-function: ${0};
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
& .${0} {
|
|
152
|
+
position: absolute;
|
|
153
|
+
/* @noflip */
|
|
154
|
+
left: 0px;
|
|
155
|
+
top: 0;
|
|
156
|
+
animation-name: ${0};
|
|
157
|
+
animation-duration: 2500ms;
|
|
158
|
+
animation-timing-function: ${0};
|
|
159
|
+
animation-iteration-count: infinite;
|
|
160
|
+
animation-delay: 200ms;
|
|
161
|
+
}
|
|
162
|
+
`),Ho.rippleVisible,eG,Bb,({theme:e})=>e.transitions.easing.easeInOut,Ho.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Ho.child,Ho.childLeaving,tG,Bb,({theme:e})=>e.transitions.easing.easeInOut,Ho.childPulsate,nG,({theme:e})=>e.transitions.easing.easeInOut),iG=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=r,a=se(r,JW),[c,d]=u.useState([]),p=u.useRef(0),h=u.useRef(null);u.useEffect(()=>{h.current&&(h.current(),h.current=null)},[c]);const m=u.useRef(!1),v=u.useRef(null),b=u.useRef(null),g=u.useRef(null);u.useEffect(()=>()=>{clearTimeout(v.current)},[]);const x=u.useCallback(E=>{const{pulsate:P,rippleX:_,rippleY:I,rippleSize:M,cb:O}=E;d(L=>[...L,T.jsx(oG,{classes:{ripple:me(i.ripple,Ho.ripple),rippleVisible:me(i.rippleVisible,Ho.rippleVisible),ripplePulsate:me(i.ripplePulsate,Ho.ripplePulsate),child:me(i.child,Ho.child),childLeaving:me(i.childLeaving,Ho.childLeaving),childPulsate:me(i.childPulsate,Ho.childPulsate)},timeout:Bb,pulsate:P,rippleX:_,rippleY:I,rippleSize:M},p.current)]),p.current+=1,h.current=O},[i]),C=u.useCallback((E={},P={},_=()=>{})=>{const{pulsate:I=!1,center:M=o||P.pulsate,fakeElement:O=!1}=P;if((E==null?void 0:E.type)==="mousedown"&&m.current){m.current=!1;return}(E==null?void 0:E.type)==="touchstart"&&(m.current=!0);const L=O?null:g.current,R=L?L.getBoundingClientRect():{width:0,height:0,left:0,top:0};let H,j,A;if(M||E===void 0||E.clientX===0&&E.clientY===0||!E.clientX&&!E.touches)H=Math.round(R.width/2),j=Math.round(R.height/2);else{const{clientX:F,clientY:B}=E.touches&&E.touches.length>0?E.touches[0]:E;H=Math.round(F-R.left),j=Math.round(B-R.top)}if(M)A=Math.sqrt((2*gs(R.width,2)+gs(R.height,2))/3),A%2===0&&(A+=1);else{const F=Math.max(Math.abs((L?L.clientWidth:0)-H),H)*2+2,B=Math.max(Math.abs((L?L.clientHeight:0)-j),j)*2+2;A=Math.sqrt(gs(F,2)+gs(B,2))}E!=null&&E.touches?b.current===null&&(b.current=()=>{x({pulsate:I,rippleX:H,rippleY:j,rippleSize:A,cb:_})},v.current=setTimeout(()=>{b.current&&(b.current(),b.current=null)},ZW)):x({pulsate:I,rippleX:H,rippleY:j,rippleSize:A,cb:_})},[o,x]),S=u.useCallback(()=>{C({},{pulsate:!0})},[C]),w=u.useCallback((E,P)=>{if(clearTimeout(v.current),(E==null?void 0:E.type)==="touchend"&&b.current){b.current(),b.current=null,v.current=setTimeout(()=>{w(E,P)});return}b.current=null,d(_=>_.length>0?_.slice(1):_),h.current=P},[]);return u.useImperativeHandle(n,()=>({pulsate:S,start:C,stop:w}),[S,C,w]),T.jsx(rG,k({className:me(Ho.root,i.root,s),ref:g},a,{children:T.jsx(DW,{component:null,exit:!0,children:c})}))}),sG=iG;function lG(e){return Qe("MuiButtonBase",e)}const aG=Ke("MuiButtonBase",["root","disabled","focusVisible"]),cG=aG,uG=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],dG=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=_e({root:["root",t&&"disabled",n&&"focusVisible"]},lG,o);return n&&r&&(s.root+=` ${r}`),s},fG=ie("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"},[`&.${cG.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),pG=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:a,component:c="button",disabled:d=!1,disableRipple:p=!1,disableTouchRipple:h=!1,focusRipple:m=!1,LinkComponent:v="a",onBlur:b,onClick:g,onContextMenu:x,onDragLeave:C,onFocus:S,onFocusVisible:w,onKeyDown:E,onKeyUp:P,onMouseDown:_,onMouseLeave:I,onMouseUp:M,onTouchEnd:O,onTouchMove:L,onTouchStart:R,tabIndex:H=0,TouchRippleProps:j,touchRippleRef:A,type:F}=r,B=se(r,uG),G=u.useRef(null),N=u.useRef(null),z=Bt(N,A),{isFocusVisibleRef:W,onFocus:q,onBlur:X,ref:le}=CC(),[Q,ge]=u.useState(!1);d&&Q&&ge(!1),u.useImperativeHandle(o,()=>({focusVisible:()=>{ge(!0),G.current.focus()}}),[]);const[ee,ce]=u.useState(!1);u.useEffect(()=>{ce(!0)},[]);const oe=ee&&!p&&!d;u.useEffect(()=>{Q&&m&&!p&&ee&&N.current.pulsate()},[p,m,Q,ee]);function de(J,Oe,Me=h){return cn(Je=>(Oe&&Oe(Je),!Me&&N.current&&N.current[J](Je),!0))}const be=de("start",_),we=de("stop",x),$e=de("stop",C),Ve=de("stop",M),De=de("stop",J=>{Q&&J.preventDefault(),I&&I(J)}),re=de("start",R),Ae=de("stop",O),ve=de("stop",L),He=de("stop",J=>{X(J),W.current===!1&&ge(!1),b&&b(J)},!1),Xe=cn(J=>{G.current||(G.current=J.currentTarget),q(J),W.current===!0&&(ge(!0),w&&w(J)),S&&S(J)}),ft=()=>{const J=G.current;return c&&c!=="button"&&!(J.tagName==="A"&&J.href)},ze=u.useRef(!1),pt=cn(J=>{m&&!ze.current&&Q&&N.current&&J.key===" "&&(ze.current=!0,N.current.stop(J,()=>{N.current.start(J)})),J.target===J.currentTarget&&ft()&&J.key===" "&&J.preventDefault(),E&&E(J),J.target===J.currentTarget&&ft()&&J.key==="Enter"&&!d&&(J.preventDefault(),g&&g(J))}),ot=cn(J=>{m&&J.key===" "&&N.current&&Q&&!J.defaultPrevented&&(ze.current=!1,N.current.stop(J,()=>{N.current.pulsate(J)})),P&&P(J),g&&J.target===J.currentTarget&&ft()&&J.key===" "&&!J.defaultPrevented&&g(J)});let ct=c;ct==="button"&&(B.href||B.to)&&(ct=v);const vt={};ct==="button"?(vt.type=F===void 0?"button":F,vt.disabled=d):(!B.href&&!B.to&&(vt.role="button"),d&&(vt["aria-disabled"]=d));const ut=Bt(n,le,G),Ue=k({},r,{centerRipple:i,component:c,disabled:d,disableRipple:p,disableTouchRipple:h,focusRipple:m,tabIndex:H,focusVisible:Q}),ue=dG(Ue);return T.jsxs(fG,k({as:ct,className:me(ue.root,a),ownerState:Ue,onBlur:He,onClick:g,onContextMenu:we,onFocus:Xe,onKeyDown:pt,onKeyUp:ot,onMouseDown:be,onMouseLeave:De,onMouseUp:Ve,onDragLeave:$e,onTouchEnd:Ae,onTouchMove:ve,onTouchStart:re,ref:ut,tabIndex:d?-1:H,type:F},vt,B,{children:[s,oe?T.jsx(sG,k({ref:z,center:i},j)):null]}))}),ns=pG;function hG(e){return Qe("MuiAlert",e)}const mG=Ke("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),Z2=mG;function gG(e){return Qe("MuiIconButton",e)}const vG=Ke("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),yG=vG,bG=["edge","children","className","color","disabled","disableFocusRipple","size"],wG=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${fe(r)}`,o&&`edge${fe(o)}`,`size${fe(i)}`]};return _e(s,gG,t)},CG=ie(ns,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${fe(n.color)}`],n.edge&&t[`edge${fe(n.edge)}`],t[`size${fe(n.size)}`]]}})(({theme:e,ownerState:t})=>k({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:rt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return k({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&k({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":k({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rt(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${yG.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),xG=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:a="default",disabled:c=!1,disableFocusRipple:d=!1,size:p="medium"}=r,h=se(r,bG),m=k({},r,{edge:o,color:a,disabled:c,disableFocusRipple:d,size:p}),v=wG(m);return T.jsx(CG,k({className:me(v.root,s),centerRipple:!0,focusRipple:!d,disabled:c,ref:n,ownerState:m},h,{children:i}))}),ir=xG,SG=Re(T.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"),EG=Re(T.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),kG=Re(T.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"),PG=Re(T.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"),LR=Re(T.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"),IG=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],_G=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`${t}${fe(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return _e(i,hG,o)},$G=ie(ii,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${fe(n.color||n.severity)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?Ns:Ds,r=e.palette.mode==="light"?Ds:Ns,o=t.color||t.severity;return k({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},o&&t.variant==="standard"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:r(e.palette[o].light,.9),[`& .${Z2.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="outlined"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${Z2.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="filled"&&k({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}))}),TG=ie("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),MG=ie("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),eI=ie("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),tI={success:T.jsx(SG,{fontSize:"inherit"}),warning:T.jsx(EG,{fontSize:"inherit"}),error:T.jsx(kG,{fontSize:"inherit"}),info:T.jsx(PG,{fontSize:"inherit"})},RG=u.forwardRef(function(t,n){var r,o,i,s,a,c;const d=et({props:t,name:"MuiAlert"}),{action:p,children:h,className:m,closeText:v="Close",color:b,components:g={},componentsProps:x={},icon:C,iconMapping:S=tI,onClose:w,role:E="alert",severity:P="success",slotProps:_={},slots:I={},variant:M="standard"}=d,O=se(d,IG),L=k({},d,{color:b,severity:P,variant:M}),R=_G(L),H=(r=(o=I.closeButton)!=null?o:g.CloseButton)!=null?r:ir,j=(i=(s=I.closeIcon)!=null?s:g.CloseIcon)!=null?i:LR,A=(a=_.closeButton)!=null?a:x.closeButton,F=(c=_.closeIcon)!=null?c:x.closeIcon;return T.jsxs($G,k({role:E,elevation:0,ownerState:L,className:me(R.root,m),ref:n},O,{children:[C!==!1?T.jsx(TG,{ownerState:L,className:R.icon,children:C||S[P]||tI[P]}):null,T.jsx(MG,{ownerState:L,className:R.message,children:h}),p!=null?T.jsx(eI,{ownerState:L,className:R.action,children:p}):null,p==null&&w?T.jsx(eI,{ownerState:L,className:R.action,children:T.jsx(H,k({size:"small","aria-label":v,title:v,color:"inherit",onClick:w},A,{children:T.jsx(j,k({fontSize:"small"},F))}))}):null]}))}),ko=RG;function OG(e){return Qe("MuiTypography",e)}Ke("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const LG=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],AG=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=e,a={root:["root",i,e.align!=="inherit"&&`align${fe(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return _e(a,OG,s)},FG=ie("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${fe(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>k({margin:0},t.variant&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),nI={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},NG={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},DG=e=>NG[e]||e,BG=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiTypography"}),o=DG(r.color),i=FC(k({},r,{color:o})),{align:s="inherit",className:a,component:c,gutterBottom:d=!1,noWrap:p=!1,paragraph:h=!1,variant:m="body1",variantMapping:v=nI}=i,b=se(i,LG),g=k({},i,{align:s,color:o,className:a,component:c,gutterBottom:d,noWrap:p,paragraph:h,variant:m,variantMapping:v}),x=c||(h?"p":v[m]||nI[m])||"span",C=AG(g);return T.jsx(FG,k({as:x,ref:n,ownerState:g,className:me(C.root,a)},b))}),Ir=BG;function zG(e){return Qe("MuiAppBar",e)}Ke("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const jG=["className","color","enableColorOnDark","position"],HG=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${fe(t)}`,`position${fe(n)}`]};return _e(o,zG,r)},Oh=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,VG=ie(ii,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${fe(n.position)}`],t[`color${fe(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return k({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&k({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&k({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&k({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Oh(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Oh(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Oh(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Oh(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),UG=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:s=!1,position:a="fixed"}=r,c=se(r,jG),d=k({},r,{color:i,position:a,enableColorOnDark:s}),p=HG(d);return T.jsx(VG,k({square:!0,component:"header",ownerState:d,elevation:4,className:me(p.root,o,a==="fixed"&&"mui-fixed"),ref:n},c))}),WG=UG,GG=["components","componentsProps","slots","slotProps"],KG=ie(lW,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),qG=u.forwardRef(function(t,n){var r;const o=DC(),i=et({props:t,name:"MuiPopper"}),{components:s,componentsProps:a,slots:c,slotProps:d}=i,p=se(i,GG),h=(r=c==null?void 0:c.root)!=null?r:s==null?void 0:s.Root;return T.jsx(KG,k({direction:o==null?void 0:o.direction,slots:{root:h},slotProps:d!=null?d:a},p,{ref:n}))}),Ka=qG;function YG(e){return Qe("MuiListSubheader",e)}Ke("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const XG=["className","color","component","disableGutters","disableSticky","inset"],QG=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,s={root:["root",n!=="default"&&`color${fe(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return _e(s,YG,t)},JG=ie("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${fe(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>k({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),AR=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:s="li",disableGutters:a=!1,disableSticky:c=!1,inset:d=!1}=r,p=se(r,XG),h=k({},r,{color:i,component:s,disableGutters:a,disableSticky:c,inset:d}),m=QG(h);return T.jsx(JG,k({as:s,className:me(m.root,o),ref:n,ownerState:h},p))});AR.muiSkipListHighlight=!0;const ZG=AR,eK=Re(T.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 tK(e){return Qe("MuiChip",e)}const nK=Ke("MuiChip",["root","sizeSmall","sizeMedium","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"]),Vt=nK,rK=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],oK=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:s,clickable:a,variant:c}=e,d={root:["root",c,n&&"disabled",`size${fe(r)}`,`color${fe(o)}`,a&&"clickable",a&&`clickableColor${fe(o)}`,s&&"deletable",s&&`deletableColor${fe(o)}`,`${c}${fe(o)}`],label:["label",`label${fe(r)}`],avatar:["avatar",`avatar${fe(r)}`,`avatarColor${fe(o)}`],icon:["icon",`icon${fe(r)}`,`iconColor${fe(i)}`],deleteIcon:["deleteIcon",`deleteIcon${fe(r)}`,`deleteIconColor${fe(o)}`,`deleteIcon${fe(c)}Color${fe(o)}`]};return _e(d,tK,t)},iK=ie("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:s,size:a,variant:c}=n;return[{[`& .${Vt.avatar}`]:t.avatar},{[`& .${Vt.avatar}`]:t[`avatar${fe(a)}`]},{[`& .${Vt.avatar}`]:t[`avatarColor${fe(r)}`]},{[`& .${Vt.icon}`]:t.icon},{[`& .${Vt.icon}`]:t[`icon${fe(a)}`]},{[`& .${Vt.icon}`]:t[`iconColor${fe(o)}`]},{[`& .${Vt.deleteIcon}`]:t.deleteIcon},{[`& .${Vt.deleteIcon}`]:t[`deleteIcon${fe(a)}`]},{[`& .${Vt.deleteIcon}`]:t[`deleteIconColor${fe(r)}`]},{[`& .${Vt.deleteIcon}`]:t[`deleteIcon${fe(c)}Color${fe(r)}`]},t.root,t[`size${fe(a)}`],t[`color${fe(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${fe(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${fe(r)}`],t[c],t[`${c}${fe(r)}`]]}})(({theme:e,ownerState:t})=>{const n=rt(e.palette.text.primary,.26),r=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return k({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:"default",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Vt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Vt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:r,fontSize:e.typography.pxToRem(12)},[`& .${Vt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Vt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Vt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Vt.icon}`]:k({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&k({color:e.vars?e.vars.palette.Chip.defaultIconColor:r},t.color!=="default"&&{color:"inherit"})),[`& .${Vt.deleteIcon}`]:k({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:n,fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:rt(n,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:rt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Vt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Vt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>k({},t.clickable&&{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}))`:rt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Vt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${Vt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>k({},t.variant==="outlined"&&{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]}`,[`&.${Vt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Vt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Vt.avatar}`]:{marginLeft:4},[`& .${Vt.avatarSmall}`]:{marginLeft:2},[`& .${Vt.icon}`]:{marginLeft:4},[`& .${Vt.iconSmall}`]:{marginLeft:2},[`& .${Vt.deleteIcon}`]:{marginRight:5},[`& .${Vt.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:rt(e.palette[t.color].main,.7)}`,[`&.${Vt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Vt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:rt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Vt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:rt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),sK=ie("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${fe(r)}`]]}})(({ownerState:e})=>k({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.size==="small"&&{paddingLeft:8,paddingRight:8}));function rI(e){return e.key==="Backspace"||e.key==="Delete"}const lK=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:s,color:a="default",component:c,deleteIcon:d,disabled:p=!1,icon:h,label:m,onClick:v,onDelete:b,onKeyDown:g,onKeyUp:x,size:C="medium",variant:S="filled",tabIndex:w,skipFocusWhenDisabled:E=!1}=r,P=se(r,rK),_=u.useRef(null),I=Bt(_,n),M=z=>{z.stopPropagation(),b&&b(z)},O=z=>{z.currentTarget===z.target&&rI(z)&&z.preventDefault(),g&&g(z)},L=z=>{z.currentTarget===z.target&&(b&&rI(z)?b(z):z.key==="Escape"&&_.current&&_.current.blur()),x&&x(z)},R=s!==!1&&v?!0:s,H=R||b?ns:c||"div",j=k({},r,{component:H,disabled:p,size:C,color:a,iconColor:u.isValidElement(h)&&h.props.color||a,onDelete:!!b,clickable:R,variant:S}),A=oK(j),F=H===ns?k({component:c||"div",focusVisibleClassName:A.focusVisible},b&&{disableRipple:!0}):{};let B=null;b&&(B=d&&u.isValidElement(d)?u.cloneElement(d,{className:me(d.props.className,A.deleteIcon),onClick:M}):T.jsx(eK,{className:me(A.deleteIcon),onClick:M}));let G=null;o&&u.isValidElement(o)&&(G=u.cloneElement(o,{className:me(A.avatar,o.props.className)}));let N=null;return h&&u.isValidElement(h)&&(N=u.cloneElement(h,{className:me(A.icon,h.props.className)})),T.jsxs(iK,k({as:H,className:me(A.root,i),disabled:R&&p?!0:void 0,onClick:v,onKeyDown:O,onKeyUp:L,ref:I,tabIndex:E&&p?-1:w,ownerState:j},F,P,{children:[G||N,T.jsx(sK,{className:me(A.label),ownerState:j,children:m}),B]}))}),xv=lK;function qa({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]=="undefined"&&(r[o]=n[o]),r),{})}const aK=u.createContext(void 0),Sv=aK;function Us(){return u.useContext(Sv)}function cK(e){return T.jsx(O8,k({},e,{defaultTheme:yv}))}function oI(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function JC(e,t=!1){return e&&(oI(e.value)&&e.value!==""||t&&oI(e.defaultValue)&&e.defaultValue!=="")}function uK(e){return e.startAdornment}function dK(e){return Qe("MuiInputBase",e)}const fK=Ke("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),go=fK,pK=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Ev=(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${fe(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},kv=(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]},hK=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:s,formControl:a,fullWidth:c,hiddenLabel:d,multiline:p,readOnly:h,size:m,startAdornment:v,type:b}=e,g={root:["root",`color${fe(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",s&&"focused",a&&"formControl",m==="small"&&"sizeSmall",p&&"multiline",v&&"adornedStart",i&&"adornedEnd",d&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",p&&"inputMultiline",m==="small"&&"inputSizeSmall",d&&"inputHiddenLabel",v&&"inputAdornedStart",i&&"inputAdornedEnd",h&&"readOnly"]};return _e(g,dK,t)},Pv=ie("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ev})(({theme:e,ownerState:t})=>k({},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",[`&.${go.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&k({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Iv=ie("input",{name:"MuiInputBase",slot:"Input",overridesResolver:kv})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=k({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return k({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%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${go.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${go.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),mK=T.jsx(cK,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),gK=u.forwardRef(function(t,n){var r;const o=et({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:s,autoFocus:a,className:c,components:d={},componentsProps:p={},defaultValue:h,disabled:m,disableInjectingGlobalStyles:v,endAdornment:b,fullWidth:g=!1,id:x,inputComponent:C="input",inputProps:S={},inputRef:w,maxRows:E,minRows:P,multiline:_=!1,name:I,onBlur:M,onChange:O,onClick:L,onFocus:R,onKeyDown:H,onKeyUp:j,placeholder:A,readOnly:F,renderSuffix:B,rows:G,slotProps:N={},slots:z={},startAdornment:W,type:q="text",value:X}=o,le=se(o,pK),Q=S.value!=null?S.value:X,{current:ge}=u.useRef(Q!=null),ee=u.useRef(),ce=u.useCallback(ue=>{},[]),oe=Bt(ee,w,S.ref,ce),[de,be]=u.useState(!1),we=Us(),$e=qa({props:o,muiFormControl:we,states:["color","disabled","error","hiddenLabel","size","required","filled"]});$e.focused=we?we.focused:de,u.useEffect(()=>{!we&&m&&de&&(be(!1),M&&M())},[we,m,de,M]);const Ve=we&&we.onFilled,De=we&&we.onEmpty,re=u.useCallback(ue=>{JC(ue)?Ve&&Ve():De&&De()},[Ve,De]);vn(()=>{ge&&re({value:Q})},[Q,re,ge]);const Ae=ue=>{if($e.disabled){ue.stopPropagation();return}R&&R(ue),S.onFocus&&S.onFocus(ue),we&&we.onFocus?we.onFocus(ue):be(!0)},ve=ue=>{M&&M(ue),S.onBlur&&S.onBlur(ue),we&&we.onBlur?we.onBlur(ue):be(!1)},He=(ue,...J)=>{if(!ge){const Oe=ue.target||ee.current;if(Oe==null)throw new Error(Bl(1));re({value:Oe.value})}S.onChange&&S.onChange(ue,...J),O&&O(ue,...J)};u.useEffect(()=>{re(ee.current)},[]);const Xe=ue=>{ee.current&&ue.currentTarget===ue.target&&ee.current.focus(),L&&L(ue)};let ft=C,ze=S;_&&ft==="input"&&(G?ze=k({type:void 0,minRows:G,maxRows:G},ze):ze=k({type:void 0,maxRows:E,minRows:P},ze),ft=EW);const pt=ue=>{re(ue.animationName==="mui-auto-fill-cancel"?ee.current:{value:"x"})};u.useEffect(()=>{we&&we.setAdornedStart(Boolean(W))},[we,W]);const ot=k({},o,{color:$e.color||"primary",disabled:$e.disabled,endAdornment:b,error:$e.error,focused:$e.focused,formControl:we,fullWidth:g,hiddenLabel:$e.hiddenLabel,multiline:_,size:$e.size,startAdornment:W,type:q}),ct=hK(ot),vt=z.root||d.Root||Pv,ut=N.root||p.root||{},Ue=z.input||d.Input||Iv;return ze=k({},ze,(r=N.input)!=null?r:p.input),T.jsxs(u.Fragment,{children:[!v&&mK,T.jsxs(vt,k({},ut,!Aa(vt)&&{ownerState:k({},ot,ut.ownerState)},{ref:n,onClick:Xe},le,{className:me(ct.root,ut.className,c,F&&"MuiInputBase-readOnly"),children:[W,T.jsx(Sv.Provider,{value:null,children:T.jsx(Ue,k({ownerState:ot,"aria-invalid":$e.error,"aria-describedby":i,autoComplete:s,autoFocus:a,defaultValue:h,disabled:$e.disabled,id:x,onAnimationStart:pt,name:I,placeholder:A,readOnly:F,required:$e.required,rows:G,value:Q,onKeyDown:H,onKeyUp:j,type:q},ze,!Aa(Ue)&&{as:ft,ownerState:k({},ot,ze.ownerState)},{ref:oe,className:me(ct.input,ze.className,F&&"MuiInputBase-readOnly"),onBlur:ve,onChange:He,onFocus:Ae}))}),b,B?B(k({},$e,{startAdornment:W})):null]}))]})}),Du=gK;function vK(e){return Qe("MuiInput",e)}const yK=k({},go,Ke("MuiInput",["root","underline","input"])),ml=yK;function bK(e){return Qe("MuiOutlinedInput",e)}const wK=k({},go,Ke("MuiOutlinedInput",["root","notchedOutline","input"])),Bi=wK;function CK(e){return Qe("MuiFilledInput",e)}const xK=k({},go,Ke("MuiFilledInput",["root","underline","input"])),vo=xK,FR=Re(T.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function SK(e){return Qe("MuiAutocomplete",e)}const EK=Ke("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),Rt=EK;var iI,sI;const kK=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],PK=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:s,hasPopupIcon:a,inputFocused:c,popupOpen:d,size:p}=e,h={root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",s&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${fe(p)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",d&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return _e(h,SK,t)},IK=ie("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:s,size:a}=n;return[{[`& .${Rt.tag}`]:t.tag},{[`& .${Rt.tag}`]:t[`tagSize${fe(a)}`]},{[`& .${Rt.inputRoot}`]:t.inputRoot},{[`& .${Rt.input}`]:t.input},{[`& .${Rt.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>k({[`&.${Rt.focused} .${Rt.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Rt.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${Rt.tag}`]:k({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${Rt.inputRoot}`]:{flexWrap:"wrap",[`.${Rt.hasPopupIcon}&, .${Rt.hasClearIcon}&`]:{paddingRight:26+4},[`.${Rt.hasPopupIcon}.${Rt.hasClearIcon}&`]:{paddingRight:52+4},[`& .${Rt.input}`]:{width:0,minWidth:30}},[`& .${ml.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${ml.root}.${go.sizeSmall}`]:{[`& .${ml.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Bi.root}`]:{padding:9,[`.${Rt.hasPopupIcon}&, .${Rt.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${Rt.hasPopupIcon}.${Rt.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Rt.input}`]:{padding:"7.5px 4px 7.5px 6px"},[`& .${Rt.endAdornment}`]:{right:9}},[`& .${Bi.root}.${go.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Rt.input}`]:{padding:"2.5px 4px 2.5px 6px"}},[`& .${vo.root}`]:{paddingTop:19,paddingLeft:8,[`.${Rt.hasPopupIcon}&, .${Rt.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${Rt.hasPopupIcon}.${Rt.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${vo.input}`]:{padding:"7px 4px"},[`& .${Rt.endAdornment}`]:{right:9}},[`& .${vo.root}.${go.sizeSmall}`]:{paddingBottom:1,[`& .${vo.input}`]:{padding:"2.5px 4px"}},[`& .${go.hiddenLabel}`]:{paddingTop:8},[`& .${vo.root}.${go.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Rt.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${vo.root}.${go.hiddenLabel}.${go.sizeSmall}`]:{[`& .${Rt.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Rt.input}`]:k({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),_K=ie("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),$K=ie(ir,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),TK=ie(ir,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>k({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>k({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),MK=ie(Ka,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Rt.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>k({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),RK=ie(ii,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>k({},e.typography.body1,{overflow:"auto"})),OK=ie("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),LK=ie("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),AK=ie("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Rt.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Rt.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Rt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Rt.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:rt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Rt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),FK=ie(ZG,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),NK=ie("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Rt.option}`]:{paddingLeft:24}}),DK=u.forwardRef(function(t,n){var r,o,i,s;const a=et({props:t,name:"MuiAutocomplete"}),{autoComplete:c=!1,autoHighlight:d=!1,autoSelect:p=!1,blurOnSelect:h=!1,ChipProps:m,className:v,clearIcon:b=iI||(iI=T.jsx(LR,{fontSize:"small"})),clearOnBlur:g=!a.freeSolo,clearOnEscape:x=!1,clearText:C="Clear",closeText:S="Close",componentsProps:w={},defaultValue:E=a.multiple?[]:null,disableClearable:P=!1,disableCloseOnSelect:_=!1,disabled:I=!1,disabledItemsFocusable:M=!1,disableListWrap:O=!1,disablePortal:L=!1,filterSelectedOptions:R=!1,forcePopupIcon:H="auto",freeSolo:j=!1,fullWidth:A=!1,getLimitTagsText:F=Le=>`+${Le}`,getOptionLabel:B=Le=>{var lt;return(lt=Le.label)!=null?lt:Le},groupBy:G,handleHomeEndKeys:N=!a.freeSolo,includeInputInList:z=!1,limitTags:W=-1,ListboxComponent:q="ul",ListboxProps:X,loading:le=!1,loadingText:Q="Loading…",multiple:ge=!1,noOptionsText:ee="No options",openOnFocus:ce=!1,openText:oe="Open",PaperComponent:de=ii,PopperComponent:be=Ka,popupIcon:we=sI||(sI=T.jsx(FR,{})),readOnly:$e=!1,renderGroup:Ve,renderInput:De,renderOption:re,renderTags:Ae,selectOnFocus:ve=!a.freeSolo,size:He="medium",slotProps:Xe={}}=a,ft=se(a,kK),{getRootProps:ze,getInputProps:pt,getInputLabelProps:ot,getPopupIndicatorProps:ct,getClearProps:vt,getTagProps:ut,getListboxProps:Ue,getOptionProps:ue,value:J,dirty:Oe,expanded:Me,id:Je,popupOpen:wt,focused:It,focusedTag:Kt,anchorEl:Vn,setAnchorEl:Rr,inputValue:er,groupedOptions:vr}=IW(k({},a,{componentName:"Autocomplete"})),yr=!P&&!I&&Oe&&!$e,br=(!j||H===!0)&&H!==!1,rn=k({},a,{disablePortal:L,expanded:Me,focused:It,fullWidth:A,hasClearIcon:yr,hasPopupIcon:br,inputFocused:Kt===-1,popupOpen:wt,size:He}),dn=PK(rn);let Un;if(ge&&J.length>0){const Le=lt=>k({className:dn.tag,disabled:I},ut(lt));Ae?Un=Ae(J,Le,rn):Un=J.map((lt,xt)=>T.jsx(xv,k({label:B(lt),size:He},Le({index:xt}),m)))}if(W>-1&&Array.isArray(Un)){const Le=Un.length-W;!It&&Le>0&&(Un=Un.splice(0,W),Un.push(T.jsx("span",{className:dn.tag,children:F(Le)},Un.length)))}const Ti=Ve||(Le=>T.jsxs("li",{children:[T.jsx(FK,{className:dn.groupLabel,ownerState:rn,component:"div",children:Le.group}),T.jsx(NK,{className:dn.groupUl,ownerState:rn,children:Le.children})]},Le.key)),Mi=re||((Le,lt)=>T.jsx("li",k({},Le,{children:B(lt)}))),Ri=(Le,lt)=>{const xt=ue({option:Le,index:lt});return Mi(k({},xt,{className:dn.option}),Le,{selected:xt["aria-selected"],index:lt,inputValue:er})},ae=(r=Xe.clearIndicator)!=null?r:w.clearIndicator,Ce=(o=Xe.paper)!=null?o:w.paper,Fe=(i=Xe.popper)!=null?i:w.popper,st=(s=Xe.popupIndicator)!=null?s:w.popupIndicator;return T.jsxs(u.Fragment,{children:[T.jsx(IK,k({ref:n,className:me(dn.root,v),ownerState:rn},ze(ft),{children:De({id:Je,disabled:I,fullWidth:!0,size:He==="small"?"small":void 0,InputLabelProps:ot(),InputProps:k({ref:Rr,className:dn.inputRoot,startAdornment:Un},(yr||br)&&{endAdornment:T.jsxs(_K,{className:dn.endAdornment,ownerState:rn,children:[yr?T.jsx($K,k({},vt(),{"aria-label":C,title:C,ownerState:rn},ae,{className:me(dn.clearIndicator,ae==null?void 0:ae.className),children:b})):null,br?T.jsx(TK,k({},ct(),{disabled:I,"aria-label":wt?S:oe,title:wt?S:oe,ownerState:rn},st,{className:me(dn.popupIndicator,st==null?void 0:st.className),children:we})):null]})}),inputProps:k({className:dn.input,disabled:I,readOnly:$e},pt())})})),Vn?T.jsx(MK,k({as:be,disablePortal:L,style:{width:Vn?Vn.clientWidth:null},ownerState:rn,role:"presentation",anchorEl:Vn,open:wt},Fe,{className:me(dn.popper,Fe==null?void 0:Fe.className),children:T.jsxs(RK,k({ownerState:rn,as:de},Ce,{className:me(dn.paper,Ce==null?void 0:Ce.className),children:[le&&vr.length===0?T.jsx(OK,{className:dn.loading,ownerState:rn,children:Q}):null,vr.length===0&&!j&&!le?T.jsx(LK,{className:dn.noOptions,ownerState:rn,role:"presentation",onMouseDown:Le=>{Le.preventDefault()},children:ee}):null,vr.length>0?T.jsx(AK,k({as:q,className:dn.listbox,ownerState:rn},Ue(),X,{children:vr.map((Le,lt)=>G?Ti({key:Le.key,group:Le.group,children:Le.options.map((xt,Qt)=>Ri(xt,Le.index+Qt))}):Ri(Le,lt))})):null]}))})):null]})}),ZC=DK,BK=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],zK={entering:{opacity:1},entered:{opacity:1}},jK=u.forwardRef(function(t,n){const r=oo(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:a,easing:c,in:d,onEnter:p,onEntered:h,onEntering:m,onExit:v,onExited:b,onExiting:g,style:x,timeout:C=o,TransitionComponent:S=wv}=t,w=se(t,BK),E=u.useRef(null),P=Bt(E,a.ref,n),_=A=>F=>{if(A){const B=E.current;F===void 0?A(B):A(B,F)}},I=_(m),M=_((A,F)=>{QC(A);const B=Hl({style:x,timeout:C,easing:c},{mode:"enter"});A.style.webkitTransition=r.transitions.create("opacity",B),A.style.transition=r.transitions.create("opacity",B),p&&p(A,F)}),O=_(h),L=_(g),R=_(A=>{const F=Hl({style:x,timeout:C,easing:c},{mode:"exit"});A.style.webkitTransition=r.transitions.create("opacity",F),A.style.transition=r.transitions.create("opacity",F),v&&v(A)}),H=_(b),j=A=>{i&&i(E.current,A)};return T.jsx(S,k({appear:s,in:d,nodeRef:E,onEnter:M,onEntered:O,onEntering:I,onExit:R,onExited:H,onExiting:L,addEndListener:j,timeout:C},w,{children:(A,F)=>u.cloneElement(a,k({style:k({opacity:0,visibility:A==="exited"&&!d?"hidden":void 0},zK[A],x,a.props.style),ref:P},F))}))}),NR=jK;function HK(e){return Qe("MuiBackdrop",e)}Ke("MuiBackdrop",["root","invisible"]);const VK=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],UK=e=>{const{classes:t,invisible:n}=e;return _e({root:["root",n&&"invisible"]},HK,t)},WK=ie("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>k({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"},e.invisible&&{backgroundColor:"transparent"})),GK=u.forwardRef(function(t,n){var r,o,i;const s=et({props:t,name:"MuiBackdrop"}),{children:a,className:c,component:d="div",components:p={},componentsProps:h={},invisible:m=!1,open:v,slotProps:b={},slots:g={},TransitionComponent:x=NR,transitionDuration:C}=s,S=se(s,VK),w=k({},s,{component:d,invisible:m}),E=UK(w),P=(r=b.root)!=null?r:h.root;return T.jsx(x,k({in:v,timeout:C},S,{children:T.jsx(WK,k({"aria-hidden":!0},P,{as:(o=(i=g.root)!=null?i:p.Root)!=null?o:d,className:me(E.root,c,P==null?void 0:P.className),ownerState:k({},w,P==null?void 0:P.ownerState),classes:E,ref:n,children:a}))}))}),DR=GK;function KK(e){return Qe("MuiBadge",e)}const qK=Ke("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),nl=qK,YK=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],e1=10,t1=4,XK=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:s={}}=e,a={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${fe(n.vertical)}${fe(n.horizontal)}`,`anchorOrigin${fe(n.vertical)}${fe(n.horizontal)}${fe(o)}`,`overlap${fe(o)}`,t!=="default"&&`color${fe(t)}`]};return _e(a,KK,s)},QK=ie("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),JK=ie("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${fe(n.anchorOrigin.vertical)}${fe(n.anchorOrigin.horizontal)}${fe(n.overlap)}`],n.color!=="default"&&t[`color${fe(n.color)}`],n.invisible&&t.invisible]}})(({theme:e,ownerState:t})=>k({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:e1*2,lineHeight:1,padding:"0 6px",height:e1*2,borderRadius:e1,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.variant==="dot"&&{borderRadius:t1,height:t1*2,minWidth:t1*2,padding:0},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${nl.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${nl.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${nl.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${nl.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${nl.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${nl.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${nl.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${nl.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})})),ZK=u.forwardRef(function(t,n){var r,o,i,s,a,c;const d=et({props:t,name:"MuiBadge"}),{anchorOrigin:p={vertical:"top",horizontal:"right"},className:h,component:m,components:v={},componentsProps:b={},children:g,overlap:x="rectangular",color:C="default",invisible:S=!1,max:w=99,badgeContent:E,slots:P,slotProps:_,showZero:I=!1,variant:M="standard"}=d,O=se(d,YK),{badgeContent:L,invisible:R,max:H,displayValue:j}=F7({max:w,invisible:S,badgeContent:E,showZero:I}),A=xC({anchorOrigin:p,color:C,overlap:x,variant:M,badgeContent:E}),F=R||L==null&&M!=="dot",{color:B=C,overlap:G=x,anchorOrigin:N=p,variant:z=M}=F?A:d,W=z!=="dot"?j:void 0,q=k({},d,{badgeContent:L,invisible:F,max:H,displayValue:W,showZero:I,anchorOrigin:N,color:B,overlap:G,variant:z}),X=XK(q),le=(r=(o=P==null?void 0:P.root)!=null?o:v.Root)!=null?r:QK,Q=(i=(s=P==null?void 0:P.badge)!=null?s:v.Badge)!=null?i:JK,ge=(a=_==null?void 0:_.root)!=null?a:b.root,ee=(c=_==null?void 0:_.badge)!=null?c:b.badge,ce=Af({elementType:le,externalSlotProps:ge,externalForwardedProps:O,additionalProps:{ref:n,as:m},ownerState:q,className:me(ge==null?void 0:ge.className,X.root,h)}),oe=Af({elementType:Q,externalSlotProps:ee,ownerState:q,className:me(X.badge,ee==null?void 0:ee.className)});return T.jsxs(le,k({},ce,{children:[g,T.jsx(Q,k({},oe,{children:W}))]}))}),BR=ZK,eq=zC(),tq=BV({defaultTheme:eq,defaultClassName:"MuiBox-root",generateClassName:VM.generate}),nt=tq;function nq(e){return Qe("MuiButton",e)}const rq=Ke("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","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Lh=rq,oq=u.createContext({}),iq=oq,sq=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],lq=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:s}=e,a={root:["root",i,`${i}${fe(t)}`,`size${fe(o)}`,`${i}Size${fe(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${fe(o)}`],endIcon:["endIcon",`iconSize${fe(o)}`]},c=_e(a,nq,s);return k({},s,c)},zR=e=>k({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),aq=ie(ns,{shouldForwardProp:e=>Mo(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${fe(n.color)}`],t[`size${fe(n.size)}`],t[`${n.variant}Size${fe(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;return k({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":k({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:rt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:(e.vars||e).palette.grey.A100,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":k({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Lh.focusVisible}`]:k({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Lh.disabled}`]:k({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${rt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Lh.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Lh.disabled}`]:{boxShadow:"none"}}),cq=ie("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${fe(n.size)}`]]}})(({ownerState:e})=>k({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},zR(e))),uq=ie("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${fe(n.size)}`]]}})(({ownerState:e})=>k({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},zR(e))),dq=u.forwardRef(function(t,n){const r=u.useContext(iq),o=SC(r,t),i=et({props:o,name:"MuiButton"}),{children:s,color:a="primary",component:c="button",className:d,disabled:p=!1,disableElevation:h=!1,disableFocusRipple:m=!1,endIcon:v,focusVisibleClassName:b,fullWidth:g=!1,size:x="medium",startIcon:C,type:S,variant:w="text"}=i,E=se(i,sq),P=k({},i,{color:a,component:c,disabled:p,disableElevation:h,disableFocusRipple:m,fullWidth:g,size:x,type:S,variant:w}),_=lq(P),I=C&&T.jsx(cq,{className:_.startIcon,ownerState:P,children:C}),M=v&&T.jsx(uq,{className:_.endIcon,ownerState:P,children:v});return T.jsxs(aq,k({ownerState:P,className:me(r.className,_.root,d),component:c,disabled:p,focusRipple:!m,focusVisibleClassName:me(_.focusVisible,b),ref:n,type:S},E,{classes:_,children:[I,s,M]}))}),lr=dq;function fq(e){return Qe("MuiCard",e)}Ke("MuiCard",["root"]);const pq=["className","raised"],hq=e=>{const{classes:t}=e;return _e({root:["root"]},fq,t)},mq=ie(ii,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),gq=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiCard"}),{className:o,raised:i=!1}=r,s=se(r,pq),a=k({},r,{raised:i}),c=hq(a);return T.jsx(mq,k({className:me(c.root,o),elevation:i?8:void 0,ref:n,ownerState:a},s))}),jR=gq;function vq(e){return Qe("MuiCardContent",e)}Ke("MuiCardContent",["root"]);const yq=["className","component"],bq=e=>{const{classes:t}=e;return _e({root:["root"]},vq,t)},wq=ie("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),Cq=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiCardContent"}),{className:o,component:i="div"}=r,s=se(r,yq),a=k({},r,{component:i}),c=bq(a);return T.jsx(wq,k({as:i,className:me(c.root,o),ownerState:a,ref:n},s))}),HR=Cq;function xq(e){return Qe("PrivateSwitchBase",e)}Ke("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Sq=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Eq=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${fe(o)}`],input:["input"]};return _e(i,xq,t)},kq=ie(ns)(({ownerState:e})=>k({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),Pq=ie("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Iq=u.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:s,defaultChecked:a,disabled:c,disableFocusRipple:d=!1,edge:p=!1,icon:h,id:m,inputProps:v,inputRef:b,name:g,onBlur:x,onChange:C,onFocus:S,readOnly:w,required:E=!1,tabIndex:P,type:_,value:I}=t,M=se(t,Sq),[O,L]=Ts({controlled:o,default:Boolean(a),name:"SwitchBase",state:"checked"}),R=Us(),H=z=>{S&&S(z),R&&R.onFocus&&R.onFocus(z)},j=z=>{x&&x(z),R&&R.onBlur&&R.onBlur(z)},A=z=>{if(z.nativeEvent.defaultPrevented)return;const W=z.target.checked;L(W),C&&C(z,W)};let F=c;R&&typeof F=="undefined"&&(F=R.disabled);const B=_==="checkbox"||_==="radio",G=k({},t,{checked:O,disabled:F,disableFocusRipple:d,edge:p}),N=Eq(G);return T.jsxs(kq,k({component:"span",className:me(N.root,s),centerRipple:!0,focusRipple:!d,disabled:F,tabIndex:null,role:void 0,onFocus:H,onBlur:j,ownerState:G,ref:n},M,{children:[T.jsx(Pq,k({autoFocus:r,checked:o,defaultChecked:a,className:N.input,disabled:F,id:B?m:void 0,name:g,onChange:A,readOnly:w,ref:b,required:E,ownerState:G,tabIndex:P,type:_},_==="checkbox"&&I===void 0?{}:{value:I},v)),O?i:h]}))}),VR=Iq,_q=Re(T.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"),$q=Re(T.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"),Tq=Re(T.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 Mq(e){return Qe("MuiCheckbox",e)}const Rq=Ke("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),n1=Rq,Oq=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Lq=e=>{const{classes:t,indeterminate:n,color:r}=e,o={root:["root",n&&"indeterminate",`color${fe(r)}`]},i=_e(o,Mq,t);return k({},t,i)},Aq=ie(VR,{shouldForwardProp:e=>Mo(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,n.color!=="default"&&t[`color${fe(n.color)}`]]}})(({theme:e,ownerState:t})=>k({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${n1.checked}, &.${n1.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${n1.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),Fq=T.jsx($q,{}),Nq=T.jsx(_q,{}),Dq=T.jsx(Tq,{}),Bq=u.forwardRef(function(t,n){var r,o;const i=et({props:t,name:"MuiCheckbox"}),{checkedIcon:s=Fq,color:a="primary",icon:c=Nq,indeterminate:d=!1,indeterminateIcon:p=Dq,inputProps:h,size:m="medium",className:v}=i,b=se(i,Oq),g=d?p:c,x=d?p:s,C=k({},i,{color:a,indeterminate:d,size:m}),S=Lq(C);return T.jsx(Aq,k({type:"checkbox",inputProps:k({"data-indeterminate":d},h),icon:u.cloneElement(g,{fontSize:(r=g.props.fontSize)!=null?r:m}),checkedIcon:u.cloneElement(x,{fontSize:(o=x.props.fontSize)!=null?o:m}),ownerState:C,ref:n,className:me(S.root,v)},b,{classes:S}))}),UR=Bq;function zq(e){return Qe("MuiCircularProgress",e)}Ke("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const jq=["className","color","disableShrink","size","style","thickness","value","variant"];let _v=e=>e,lI,aI,cI,uI;const rl=44,Hq=rs(lI||(lI=_v`
|
|
163
|
+
0% {
|
|
164
|
+
transform: rotate(0deg);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
100% {
|
|
168
|
+
transform: rotate(360deg);
|
|
169
|
+
}
|
|
170
|
+
`)),Vq=rs(aI||(aI=_v`
|
|
171
|
+
0% {
|
|
172
|
+
stroke-dasharray: 1px, 200px;
|
|
173
|
+
stroke-dashoffset: 0;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
50% {
|
|
177
|
+
stroke-dasharray: 100px, 200px;
|
|
178
|
+
stroke-dashoffset: -15px;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
100% {
|
|
182
|
+
stroke-dasharray: 100px, 200px;
|
|
183
|
+
stroke-dashoffset: -125px;
|
|
184
|
+
}
|
|
185
|
+
`)),Uq=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${fe(r)}`],svg:["svg"],circle:["circle",`circle${fe(n)}`,o&&"circleDisableShrink"]};return _e(i,zq,t)},Wq=ie("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${fe(n.color)}`]]}})(({ownerState:e,theme:t})=>k({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&jl(cI||(cI=_v`
|
|
186
|
+
animation: ${0} 1.4s linear infinite;
|
|
187
|
+
`),Hq)),Gq=ie("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Kq=ie("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${fe(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>k({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&jl(uI||(uI=_v`
|
|
188
|
+
animation: ${0} 1.4s ease-in-out infinite;
|
|
189
|
+
`),Vq)),qq=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:s=!1,size:a=40,style:c,thickness:d=3.6,value:p=0,variant:h="indeterminate"}=r,m=se(r,jq),v=k({},r,{color:i,disableShrink:s,size:a,thickness:d,value:p,variant:h}),b=Uq(v),g={},x={},C={};if(h==="determinate"){const S=2*Math.PI*((rl-d)/2);g.strokeDasharray=S.toFixed(3),C["aria-valuenow"]=Math.round(p),g.strokeDashoffset=`${((100-p)/100*S).toFixed(3)}px`,x.transform="rotate(-90deg)"}return T.jsx(Wq,k({className:me(b.root,o),style:k({width:a,height:a},x,c),ownerState:v,ref:n,role:"progressbar"},C,m,{children:T.jsx(Gq,{className:b.svg,ownerState:v,viewBox:`${rl/2} ${rl/2} ${rl} ${rl}`,children:T.jsx(Kq,{className:b.circle,style:g,ownerState:v,cx:rl,cy:rl,r:(rl-d)/2,fill:"none",strokeWidth:d})})}))}),Bu=qq,Yq=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","slotProps","slots","theme"],Xq=ie("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>k({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Qq=ie(DR,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Jq=u.forwardRef(function(t,n){var r,o,i,s,a,c;const d=et({name:"MuiModal",props:t}),{BackdropComponent:p=Qq,BackdropProps:h,classes:m,className:v,closeAfterTransition:b=!1,children:g,component:x,components:C={},componentsProps:S={},disableAutoFocus:w=!1,disableEnforceFocus:E=!1,disableEscapeKeyDown:P=!1,disablePortal:_=!1,disableRestoreFocus:I=!1,disableScrollLock:M=!1,hideBackdrop:O=!1,keepMounted:L=!1,slotProps:R,slots:H,theme:j}=d,A=se(d,Yq),[F,B]=u.useState(!0),G={closeAfterTransition:b,disableAutoFocus:w,disableEnforceFocus:E,disableEscapeKeyDown:P,disablePortal:_,disableRestoreFocus:I,disableScrollLock:M,hideBackdrop:O,keepMounted:L},N=k({},d,G,{exited:F}),z=(r=(o=H==null?void 0:H.root)!=null?o:C.Root)!=null?r:Xq,W=(i=(s=H==null?void 0:H.backdrop)!=null?s:C.Backdrop)!=null?i:p,q=(a=R==null?void 0:R.root)!=null?a:S.root,X=(c=R==null?void 0:R.backdrop)!=null?c:S.backdrop;return T.jsx(wW,k({slots:{root:z,backdrop:W},slotProps:{root:()=>k({},Rb(q,N),!Aa(z)&&{as:x,theme:j},{className:me(v,q==null?void 0:q.className,m==null?void 0:m.root,!N.open&&N.exited&&(m==null?void 0:m.hidden))}),backdrop:()=>k({},h,Rb(X,N),{className:me(X==null?void 0:X.className,m==null?void 0:m.backdrop)})},onTransitionEnter:()=>B(!1),onTransitionExited:()=>B(!0),ref:n},A,G,{children:g}))}),ex=Jq;function Zq(e){return Qe("MuiDialog",e)}const eY=Ke("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),r1=eY,tY=u.createContext({}),WR=tY,nY=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],rY=ie(DR,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),oY=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,s={root:["root"],container:["container",`scroll${fe(n)}`],paper:["paper",`paperScroll${fe(n)}`,`paperWidth${fe(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return _e(s,Zq,t)},iY=ie(ex,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),sY=ie("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${fe(n.scroll)}`]]}})(({ownerState:e})=>k({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),lY=ie(ii,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${fe(n.scroll)}`],t[`paperWidth${fe(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>k({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`${e.breakpoints.values.xs}${e.breakpoints.unit}`,[`&.${r1.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${r1.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${r1.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),aY=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiDialog"}),o=oo(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,BackdropComponent:c,BackdropProps:d,children:p,className:h,disableEscapeKeyDown:m=!1,fullScreen:v=!1,fullWidth:b=!1,maxWidth:g="sm",onBackdropClick:x,onClose:C,open:S,PaperComponent:w=ii,PaperProps:E={},scroll:P="paper",TransitionComponent:_=NR,transitionDuration:I=i,TransitionProps:M}=r,O=se(r,nY),L=k({},r,{disableEscapeKeyDown:m,fullScreen:v,fullWidth:b,maxWidth:g,scroll:P}),R=oY(L),H=u.useRef(),j=G=>{H.current=G.target===G.currentTarget},A=G=>{H.current&&(H.current=null,x&&x(G),C&&C(G,"backdropClick"))},F=Tn(a),B=u.useMemo(()=>({titleId:F}),[F]);return T.jsx(iY,k({className:me(R.root,h),closeAfterTransition:!0,components:{Backdrop:rY},componentsProps:{backdrop:k({transitionDuration:I,as:c},d)},disableEscapeKeyDown:m,onClose:C,open:S,ref:n,onClick:A,ownerState:L},O,{children:T.jsx(_,k({appear:!0,in:S,timeout:I,role:"presentation"},M,{children:T.jsx(sY,{className:me(R.container),onMouseDown:j,ownerState:L,children:T.jsx(lY,k({as:w,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":F},E,{className:me(R.paper,E.className),ownerState:L,children:T.jsx(WR.Provider,{value:B,children:p})}))})}))}))}),cY=aY;function uY(e){return Qe("MuiDialogContent",e)}Ke("MuiDialogContent",["root","dividers"]);function dY(e){return Qe("MuiDialogTitle",e)}const fY=Ke("MuiDialogTitle",["root"]),pY=fY,hY=["className","dividers"],mY=e=>{const{classes:t,dividers:n}=e;return _e({root:["root",n&&"dividers"]},uY,t)},gY=ie("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>k({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${pY.root} + &`]:{paddingTop:0}})),vY=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,s=se(r,hY),a=k({},r,{dividers:i}),c=mY(a);return T.jsx(gY,k({className:me(c.root,o),ownerState:a,ref:n},s))}),yY=vY,bY=["className","id"],wY=e=>{const{classes:t}=e;return _e({root:["root"]},dY,t)},CY=ie(Ir,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),xY=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=r,s=se(r,bY),a=r,c=wY(a),{titleId:d=i}=u.useContext(WR);return T.jsx(CY,k({component:"h2",className:me(c.root,o),ownerState:a,ref:n,variant:"h6",id:i!=null?i:d},s))}),SY=xY,EY=Ke("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),dI=EY,kY=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function PY(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=Eo(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const d=i.getComputedStyle(t);s=d.getPropertyValue("-webkit-transform")||d.getPropertyValue("transform")}let a=0,c=0;if(s&&s!=="none"&&typeof s=="string"){const d=s.split("(")[1].split(")")[0].split(",");a=parseInt(d[4],10),c=parseInt(d[5],10)}return e==="left"?o?`translateX(${o.right+a-r.left}px)`:`translateX(${i.innerWidth+a-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-a}px)`:`translateX(-${r.left+r.width-a}px)`:e==="up"?o?`translateY(${o.bottom+c-r.top}px)`:`translateY(${i.innerHeight+c-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-c}px)`:`translateY(-${r.top+r.height-c}px)`}function IY(e){return typeof e=="function"?e():e}function Ah(e,t,n){const r=IY(n),o=PY(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const _Y=u.forwardRef(function(t,n){const r=oo(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:c,container:d,direction:p="down",easing:h=o,in:m,onEnter:v,onEntered:b,onEntering:g,onExit:x,onExited:C,onExiting:S,style:w,timeout:E=i,TransitionComponent:P=wv}=t,_=se(t,kY),I=u.useRef(null),M=Bt(c.ref,I,n),O=N=>z=>{N&&(z===void 0?N(I.current):N(I.current,z))},L=O((N,z)=>{Ah(p,N,d),QC(N),v&&v(N,z)}),R=O((N,z)=>{const W=Hl({timeout:E,style:w,easing:h},{mode:"enter"});N.style.webkitTransition=r.transitions.create("-webkit-transform",k({},W)),N.style.transition=r.transitions.create("transform",k({},W)),N.style.webkitTransform="none",N.style.transform="none",g&&g(N,z)}),H=O(b),j=O(S),A=O(N=>{const z=Hl({timeout:E,style:w,easing:h},{mode:"exit"});N.style.webkitTransition=r.transitions.create("-webkit-transform",z),N.style.transition=r.transitions.create("transform",z),Ah(p,N,d),x&&x(N)}),F=O(N=>{N.style.webkitTransition="",N.style.transition="",C&&C(N)}),B=N=>{s&&s(I.current,N)},G=u.useCallback(()=>{I.current&&Ah(p,I.current,d)},[p,d]);return u.useEffect(()=>{if(m||p==="down"||p==="right")return;const N=zl(()=>{I.current&&Ah(p,I.current,d)}),z=Eo(I.current);return z.addEventListener("resize",N),()=>{N.clear(),z.removeEventListener("resize",N)}},[p,m,d]),u.useEffect(()=>{m||G()},[m,G]),T.jsx(P,k({nodeRef:I,onEnter:L,onEntered:H,onEntering:R,onExit:A,onExited:F,onExiting:j,addEndListener:B,appear:a,in:m,timeout:E},_,{children:(N,z)=>u.cloneElement(c,k({ref:M,style:k({visibility:N==="exited"&&!m?"hidden":void 0},w,c.props.style)},z))}))}),$Y=_Y;function TY(e){return Qe("MuiDrawer",e)}Ke("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const MY=["BackdropProps"],RY=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],GR=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},OY=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${fe(n)}`,r!=="temporary"&&`paperAnchorDocked${fe(n)}`]};return _e(o,TY,t)},LY=ie(ex,{name:"MuiDrawer",slot:"Root",overridesResolver:GR})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),fI=ie("div",{shouldForwardProp:Mo,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:GR})({flex:"0 0 auto"}),AY=ie(ii,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${fe(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${fe(n.anchor)}`]]}})(({theme:e,ownerState:t})=>k({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),KR={left:"right",right:"left",top:"down",bottom:"up"};function FY(e){return["left","right"].indexOf(e)!==-1}function NY(e,t){return e.direction==="rtl"&&FY(t)?KR[t]:t}const DY=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiDrawer"}),o=oo(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:a,children:c,className:d,elevation:p=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:m}={},onClose:v,open:b=!1,PaperProps:g={},SlideProps:x,TransitionComponent:C=$Y,transitionDuration:S=i,variant:w="temporary"}=r,E=se(r.ModalProps,MY),P=se(r,RY),_=u.useRef(!1);u.useEffect(()=>{_.current=!0},[]);const I=NY(o,s),O=k({},r,{anchor:s,elevation:p,open:b,variant:w},P),L=OY(O),R=T.jsx(AY,k({elevation:w==="temporary"?p:0,square:!0},g,{className:me(L.paper,g.className),ownerState:O,children:c}));if(w==="permanent")return T.jsx(fI,k({className:me(L.root,L.docked,d),ownerState:O,ref:n},P,{children:R}));const H=T.jsx(C,k({in:b,direction:KR[I],timeout:S,appear:_.current},x,{children:R}));return w==="persistent"?T.jsx(fI,k({className:me(L.root,L.docked,d),ownerState:O,ref:n},P,{children:H})):T.jsx(LY,k({BackdropProps:k({},a,m,{transitionDuration:S}),className:me(L.root,L.modal,d),open:b,ownerState:O,onClose:v,hideBackdrop:h,ref:n},P,E,{children:H}))}),BY=DY,zY=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],jY=e=>{const{classes:t,disableUnderline:n}=e,o=_e({root:["root",!n&&"underline"],input:["input"]},CK,t);return k({},t,o)},HY=ie(Pv,{shouldForwardProp:e=>Mo(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ev(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return k({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,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:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${vo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${vo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,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"},[`&.${vo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${vo.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})`:o}`,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(.${vo.disabled}, .${vo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${vo.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&k({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),VY=ie(Iv,{name:"MuiFilledInput",slot:"Input",overridesResolver:kv})(({theme:e,ownerState:t})=>k({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"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),qR=u.forwardRef(function(t,n){var r,o,i,s;const a=et({props:t,name:"MuiFilledInput"}),{components:c={},componentsProps:d,fullWidth:p=!1,inputComponent:h="input",multiline:m=!1,slotProps:v,slots:b={},type:g="text"}=a,x=se(a,zY),C=k({},a,{fullWidth:p,inputComponent:h,multiline:m,type:g}),S=jY(a),w={root:{ownerState:C},input:{ownerState:C}},E=(v!=null?v:d)?qo(v!=null?v:d,w):w,P=(r=(o=b.root)!=null?o:c.Root)!=null?r:HY,_=(i=(s=b.input)!=null?s:c.Input)!=null?i:VY;return T.jsx(Du,k({slots:{root:P,input:_},componentsProps:E,fullWidth:p,inputComponent:h,multiline:m,ref:n,type:g},x,{classes:S}))});qR.muiName="Input";const YR=qR;function UY(e){return Qe("MuiFormControl",e)}Ke("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const WY=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],GY=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${fe(n)}`,r&&"fullWidth"]};return _e(o,UY,t)},KY=ie("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>k({},t.root,t[`margin${fe(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>k({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),qY=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiFormControl"}),{children:o,className:i,color:s="primary",component:a="div",disabled:c=!1,error:d=!1,focused:p,fullWidth:h=!1,hiddenLabel:m=!1,margin:v="none",required:b=!1,size:g="medium",variant:x="outlined"}=r,C=se(r,WY),S=k({},r,{color:s,component:a,disabled:c,error:d,fullWidth:h,hiddenLabel:m,margin:v,required:b,size:g,variant:x}),w=GY(S),[E,P]=u.useState(()=>{let j=!1;return o&&u.Children.forEach(o,A=>{if(!lm(A,["Input","Select"]))return;const F=lm(A,["Select"])?A.props.input:A;F&&uK(F.props)&&(j=!0)}),j}),[_,I]=u.useState(()=>{let j=!1;return o&&u.Children.forEach(o,A=>{lm(A,["Input","Select"])&&JC(A.props,!0)&&(j=!0)}),j}),[M,O]=u.useState(!1);c&&M&&O(!1);const L=p!==void 0&&!c?p:M;let R;const H=u.useMemo(()=>({adornedStart:E,setAdornedStart:P,color:s,disabled:c,error:d,filled:_,focused:L,fullWidth:h,hiddenLabel:m,size:g,onBlur:()=>{O(!1)},onEmpty:()=>{I(!1)},onFilled:()=>{I(!0)},onFocus:()=>{O(!0)},registerEffect:R,required:b,variant:x}),[E,s,c,d,_,L,h,m,R,b,g,x]);return T.jsx(Sv.Provider,{value:H,children:T.jsx(KY,k({as:a,ownerState:S,className:me(w.root,i),ref:n},C,{children:o}))})}),Ya=qY;function YY(e){return Qe("MuiFormControlLabel",e)}const XY=Ke("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error"]),Fh=XY,QY=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","slotProps","value"],JY=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o}=e,i={root:["root",n&&"disabled",`labelPlacement${fe(r)}`,o&&"error"],label:["label",n&&"disabled"]};return _e(i,YY,t)},ZY=ie("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Fh.label}`]:t.label},t.root,t[`labelPlacement${fe(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>k({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Fh.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Fh.label}`]:{[`&.${Fh.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),eX=u.forwardRef(function(t,n){var r;const o=et({props:t,name:"MuiFormControlLabel"}),{className:i,componentsProps:s={},control:a,disabled:c,disableTypography:d,label:p,labelPlacement:h="end",slotProps:m={}}=o,v=se(o,QY),b=Us();let g=c;typeof g=="undefined"&&typeof a.props.disabled!="undefined"&&(g=a.props.disabled),typeof g=="undefined"&&b&&(g=b.disabled);const x={disabled:g};["checked","name","onChange","value","inputRef"].forEach(_=>{typeof a.props[_]=="undefined"&&typeof o[_]!="undefined"&&(x[_]=o[_])});const C=qa({props:o,muiFormControl:b,states:["error"]}),S=k({},o,{disabled:g,labelPlacement:h,error:C.error}),w=JY(S),E=(r=m.typography)!=null?r:s.typography;let P=p;return P!=null&&P.type!==Ir&&!d&&(P=T.jsx(Ir,k({component:"span"},E,{className:me(w.label,E==null?void 0:E.className),children:P}))),T.jsxs(ZY,k({className:me(w.root,i),ownerState:S,ref:n},v,{children:[u.cloneElement(a,x),P]}))}),XR=eX;function tX(e){return Qe("MuiFormHelperText",e)}const nX=Ke("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),pI=nX;var hI;const rX=["children","className","component","disabled","error","filled","focused","margin","required","variant"],oX=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:s,focused:a,required:c}=e,d={root:["root",o&&"disabled",i&&"error",r&&`size${fe(r)}`,n&&"contained",a&&"focused",s&&"filled",c&&"required"]};return _e(d,tX,t)},iX=ie("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${fe(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>k({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${pI.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${pI.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),sX=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:s="p"}=r,a=se(r,rX),c=Us(),d=qa({props:r,muiFormControl:c,states:["variant","size","disabled","error","filled","focused","required"]}),p=k({},r,{component:s,contained:d.variant==="filled"||d.variant==="outlined",variant:d.variant,size:d.size,disabled:d.disabled,error:d.error,filled:d.filled,focused:d.focused,required:d.required}),h=oX(p);return T.jsx(iX,k({as:s,ownerState:p,className:me(h.root,i),ref:n},a,{children:o===" "?hI||(hI=T.jsx("span",{className:"notranslate",children:""})):o}))}),$v=sX;function lX(e){return Qe("MuiFormLabel",e)}const aX=Ke("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),sf=aX,cX=["children","className","color","component","disabled","error","filled","focused","required"],uX=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:s,required:a}=e,c={root:["root",`color${fe(n)}`,o&&"disabled",i&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return _e(c,lX,t)},dX=ie("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>k({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>k({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${sf.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${sf.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${sf.error}`]:{color:(e.vars||e).palette.error.main}})),fX=ie("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${sf.error}`]:{color:(e.vars||e).palette.error.main}})),pX=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:s="label"}=r,a=se(r,cX),c=Us(),d=qa({props:r,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),p=k({},r,{color:d.color||"primary",component:s,disabled:d.disabled,error:d.error,filled:d.filled,focused:d.focused,required:d.required}),h=uX(p);return T.jsxs(dX,k({as:s,ownerState:p,className:me(h.root,i),ref:n},a,{children:[o,d.required&&T.jsxs(fX,{ownerState:p,"aria-hidden":!0,className:h.asterisk,children:[" ","*"]})]}))}),QR=pX,hX=u.createContext(),mI=hX;function mX(e){return Qe("MuiGrid",e)}const gX=[0,1,2,3,4,5,6,7,8,9,10],vX=["column-reverse","column","row-reverse","row"],yX=["nowrap","wrap-reverse","wrap"],kd=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Df=Ke("MuiGrid",["root","container","item","zeroMinWidth",...gX.map(e=>`spacing-xs-${e}`),...vX.map(e=>`direction-xs-${e}`),...yX.map(e=>`wrap-xs-${e}`),...kd.map(e=>`grid-xs-${e}`),...kd.map(e=>`grid-sm-${e}`),...kd.map(e=>`grid-md-${e}`),...kd.map(e=>`grid-lg-${e}`),...kd.map(e=>`grid-xl-${e}`)]),bX=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function nu(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function wX({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let i={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=av({values:t.columns,breakpoints:e.breakpoints.values}),a=typeof s=="object"?s[o]:s;if(a==null)return r;const c=`${Math.round(n/a*1e8)/1e6}%`;let d={};if(t.container&&t.item&&t.columnSpacing!==0){const p=e.spacing(t.columnSpacing);if(p!=="0px"){const h=`calc(${c} + ${nu(p)})`;d={flexBasis:h,maxWidth:h}}}i=k({flexBasis:c,flexGrow:0,maxWidth:c},d)}return e.breakpoints.values[o]===0?Object.assign(r,i):r[e.breakpoints.up(o)]=i,r},{})}function CX({theme:e,ownerState:t}){const n=av({values:t.direction,breakpoints:e.breakpoints.values});return Zo({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${Df.item}`]={maxWidth:"none"}),o})}function JR({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,i)=>e[o]-e[i]);return r.slice(0,r.indexOf(n))}function xX({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const i=av({values:r,breakpoints:e.breakpoints.values});let s;typeof i=="object"&&(s=JR({breakpoints:e.breakpoints.values,values:i})),o=Zo({theme:e},i,(a,c)=>{var d;const p=e.spacing(a);return p!=="0px"?{marginTop:`-${nu(p)}`,[`& > .${Df.item}`]:{paddingTop:nu(p)}}:(d=s)!=null&&d.includes(c)?{}:{marginTop:0,[`& > .${Df.item}`]:{paddingTop:0}}})}return o}function SX({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const i=av({values:r,breakpoints:e.breakpoints.values});let s;typeof i=="object"&&(s=JR({breakpoints:e.breakpoints.values,values:i})),o=Zo({theme:e},i,(a,c)=>{var d;const p=e.spacing(a);return p!=="0px"?{width:`calc(100% + ${nu(p)})`,marginLeft:`-${nu(p)}`,[`& > .${Df.item}`]:{paddingLeft:nu(p)}}:(d=s)!=null&&d.includes(c)?{}:{width:"100%",marginLeft:0,[`& > .${Df.item}`]:{paddingLeft:0}}})}return o}function EX(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 r=[];return t.forEach(o=>{const i=e[o];Number(i)>0&&r.push(n[`spacing-${o}-${String(i)}`])}),r}const kX=ie("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:i,spacing:s,wrap:a,zeroMinWidth:c,breakpoints:d}=n;let p=[];r&&(p=EX(s,d,t));const h=[];return d.forEach(m=>{const v=n[m];v&&h.push(t[`grid-${m}-${String(v)}`])}),[t.root,r&&t.container,i&&t.item,c&&t.zeroMinWidth,...p,o!=="row"&&t[`direction-xs-${String(o)}`],a!=="wrap"&&t[`wrap-xs-${String(a)}`],...h]}})(({ownerState:e})=>k({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}),CX,xX,SX,wX);function PX(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(r=>{const o=e[r];if(Number(o)>0){const i=`spacing-${r}-${String(o)}`;n.push(i)}}),n}const IX=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:s,zeroMinWidth:a,breakpoints:c}=e;let d=[];n&&(d=PX(i,c));const p=[];c.forEach(m=>{const v=e[m];v&&p.push(`grid-${m}-${String(v)}`)});const h={root:["root",n&&"container",o&&"item",a&&"zeroMinWidth",...d,r!=="row"&&`direction-xs-${String(r)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...p]};return _e(h,mX,t)},_X=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiGrid"}),{breakpoints:o}=oo(),i=FC(r),{className:s,columns:a,columnSpacing:c,component:d="div",container:p=!1,direction:h="row",item:m=!1,rowSpacing:v,spacing:b=0,wrap:g="wrap",zeroMinWidth:x=!1}=i,C=se(i,bX),S=v||b,w=c||b,E=u.useContext(mI),P=p?a||12:E,_={},I=k({},C);o.keys.forEach(L=>{C[L]!=null&&(_[L]=C[L],delete I[L])});const M=k({},i,{columns:P,container:p,direction:h,item:m,rowSpacing:S,columnSpacing:w,wrap:g,zeroMinWidth:x,spacing:b},_,{breakpoints:o.keys}),O=IX(M);return T.jsx(mI.Provider,{value:P,children:T.jsx(kX,k({ownerState:M,className:me(O.root,s),as:d,ref:n},I))})}),Wn=_X,$X=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function zb(e){return`scale(${e}, ${gs(e,2)})`}const TX={entering:{opacity:1,transform:zb(1)},entered:{opacity:1,transform:"none"}},o1=typeof navigator!="undefined"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ZR=u.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:a,onEnter:c,onEntered:d,onEntering:p,onExit:h,onExited:m,onExiting:v,style:b,timeout:g="auto",TransitionComponent:x=wv}=t,C=se(t,$X),S=u.useRef(),w=u.useRef(),E=oo(),P=u.useRef(null),_=Bt(P,i.ref,n),I=F=>B=>{if(F){const G=P.current;B===void 0?F(G):F(G,B)}},M=I(p),O=I((F,B)=>{QC(F);const{duration:G,delay:N,easing:z}=Hl({style:b,timeout:g,easing:s},{mode:"enter"});let W;g==="auto"?(W=E.transitions.getAutoHeightDuration(F.clientHeight),w.current=W):W=G,F.style.transition=[E.transitions.create("opacity",{duration:W,delay:N}),E.transitions.create("transform",{duration:o1?W:W*.666,delay:N,easing:z})].join(","),c&&c(F,B)}),L=I(d),R=I(v),H=I(F=>{const{duration:B,delay:G,easing:N}=Hl({style:b,timeout:g,easing:s},{mode:"exit"});let z;g==="auto"?(z=E.transitions.getAutoHeightDuration(F.clientHeight),w.current=z):z=B,F.style.transition=[E.transitions.create("opacity",{duration:z,delay:G}),E.transitions.create("transform",{duration:o1?z:z*.666,delay:o1?G:G||z*.333,easing:N})].join(","),F.style.opacity=0,F.style.transform=zb(.75),h&&h(F)}),j=I(m),A=F=>{g==="auto"&&(S.current=setTimeout(F,w.current||0)),r&&r(P.current,F)};return u.useEffect(()=>()=>{clearTimeout(S.current)},[]),T.jsx(x,k({appear:o,in:a,nodeRef:P,onEnter:O,onEntered:L,onEntering:M,onExit:H,onExited:j,onExiting:R,addEndListener:A,timeout:g==="auto"?null:g},C,{children:(F,B)=>u.cloneElement(i,k({style:k({opacity:0,transform:zb(.75),visibility:F==="exited"&&!a?"hidden":void 0},TX[F],b,i.props.style),ref:_},B))}))});ZR.muiSupportAuto=!0;const Zm=ZR;function MX(e,t,n,r,o){const[i,s]=u.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return vn(()=>{let a=!0;if(!n)return;const c=n(e),d=()=>{a&&s(c.matches)};return d(),c.addListener(d),()=>{a=!1,c.removeListener(d)}},[e,n]),i}const eO=_a["useSyncExternalStore"];function RX(e,t,n,r,o){const i=u.useCallback(()=>t,[t]),s=u.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:p}=r(e);return()=>p}return i},[i,e,r,o,n]),[a,c]=u.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const p=n(e);return[()=>p.matches,h=>(p.addListener(h),()=>{p.removeListener(h)})]},[i,n,e]);return eO(c,a,s)}function tO(e,t={}){const n=DC(),r=typeof window!="undefined"&&typeof window.matchMedia!="undefined",{defaultMatches:o=!1,matchMedia:i=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:a=!1}=gR({name:"MuiUseMediaQuery",props:t,theme:n});let c=typeof e=="function"?e(n):e;return c=c.replace(/^@media( ?)/m,""),(eO!==void 0?RX:MX)(c,o,i,s,a)}const OX=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],LX=e=>{const{classes:t,disableUnderline:n}=e,o=_e({root:["root",!n&&"underline"],input:["input"]},vK,t);return k({},t,o)},AX=ie(Pv,{shouldForwardProp:e=>Mo(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ev(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),k({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,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"},[`&.${ml.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ml.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,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(.${ml.disabled}, .${ml.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${ml.disabled}:before`]:{borderBottomStyle:"dotted"}})}),FX=ie(Iv,{name:"MuiInput",slot:"Input",overridesResolver:kv})({}),nO=u.forwardRef(function(t,n){var r,o,i,s;const a=et({props:t,name:"MuiInput"}),{disableUnderline:c,components:d={},componentsProps:p,fullWidth:h=!1,inputComponent:m="input",multiline:v=!1,slotProps:b,slots:g={},type:x="text"}=a,C=se(a,OX),S=LX(a),E={root:{ownerState:{disableUnderline:c}}},P=(b!=null?b:p)?qo(b!=null?b:p,E):E,_=(r=(o=g.root)!=null?o:d.Root)!=null?r:AX,I=(i=(s=g.input)!=null?s:d.Input)!=null?i:FX;return T.jsx(Du,k({slots:{root:_,input:I},slotProps:P,fullWidth:h,inputComponent:m,multiline:v,ref:n,type:x},C,{classes:S}))});nO.muiName="Input";const rO=nO;function NX(e){return Qe("MuiInputAdornment",e)}const DX=Ke("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),gI=DX;var vI;const BX=["children","className","component","disablePointerEvents","disableTypography","position","variant"],zX=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${fe(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},jX=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:s}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${fe(o)}`,s,r&&"hiddenLabel",i&&`size${fe(i)}`]};return _e(a,NX,t)},HX=ie("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:zX})(({theme:e,ownerState:t})=>k({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${gI.positionStart}&:not(.${gI.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),VX=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:s="div",disablePointerEvents:a=!1,disableTypography:c=!1,position:d,variant:p}=r,h=se(r,BX),m=Us()||{};let v=p;p&&m.variant,m&&!v&&(v=m.variant);const b=k({},r,{hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:a,position:d,variant:v}),g=jX(b);return T.jsx(Sv.Provider,{value:null,children:T.jsx(HX,k({as:s,ownerState:b,className:me(g.root,i),ref:n},h,{children:typeof o=="string"&&!c?T.jsx(Ir,{color:"text.secondary",children:o}):T.jsxs(u.Fragment,{children:[d==="start"?vI||(vI=T.jsx("span",{className:"notranslate",children:""})):null,o]})}))})}),eg=VX;function UX(e){return Qe("MuiInputLabel",e)}Ke("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const WX=["disableAnimation","margin","shrink","variant","className"],GX=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:s,required:a}=e,d=_e({root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r==="small"&&"sizeSmall",s],asterisk:[a&&"asterisk"]},UX,t);return k({},t,d)},KX=ie(QR,{shouldForwardProp:e=>Mo(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${sf.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>k({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&k({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&k({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&k({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),qX=u.forwardRef(function(t,n){const r=et({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:s}=r,a=se(r,WX),c=Us();let d=i;typeof d=="undefined"&&c&&(d=c.filled||c.focused||c.adornedStart);const p=qa({props:r,muiFormControl:c,states:["size","variant","required"]}),h=k({},r,{disableAnimation:o,formControl:c,shrink:d,size:p.size,variant:p.variant,required:p.required}),m=GX(h);return T.jsx(KX,k({"data-shrink":d,ownerState:h,ref:n,className:me(m.root,s)},a,{classes:m}))}),jb=qX;function YX(e){return Qe("MuiLinearProgress",e)}Ke("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const XX=["className","color","value","valueBuffer","variant"];let zu=e=>e,yI,bI,wI,CI,xI,SI;const Hb=4,QX=rs(yI||(yI=zu`
|
|
190
|
+
0% {
|
|
191
|
+
left: -35%;
|
|
192
|
+
right: 100%;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
60% {
|
|
196
|
+
left: 100%;
|
|
197
|
+
right: -90%;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
100% {
|
|
201
|
+
left: 100%;
|
|
202
|
+
right: -90%;
|
|
203
|
+
}
|
|
204
|
+
`)),JX=rs(bI||(bI=zu`
|
|
205
|
+
0% {
|
|
206
|
+
left: -200%;
|
|
207
|
+
right: 100%;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
60% {
|
|
211
|
+
left: 107%;
|
|
212
|
+
right: -8%;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
100% {
|
|
216
|
+
left: 107%;
|
|
217
|
+
right: -8%;
|
|
218
|
+
}
|
|
219
|
+
`)),ZX=rs(wI||(wI=zu`
|
|
220
|
+
0% {
|
|
221
|
+
opacity: 1;
|
|
222
|
+
background-position: 0 -23px;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
60% {
|
|
226
|
+
opacity: 0;
|
|
227
|
+
background-position: 0 -23px;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
100% {
|
|
231
|
+
opacity: 1;
|
|
232
|
+
background-position: -200px -23px;
|
|
233
|
+
}
|
|
234
|
+
`)),eQ=e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${fe(r)}`,n],dashed:["dashed",`dashedColor${fe(r)}`],bar1:["bar",`barColor${fe(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${fe(r)}`,n==="buffer"&&`color${fe(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return _e(o,YX,t)},tx=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?Ds(e.palette[t].main,.62):Ns(e.palette[t].main,.5),tQ=ie("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${fe(n.color)}`],t[n.variant]]}})(({ownerState:e,theme:t})=>k({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:tx(t,e.color)},e.color==="inherit"&&e.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},e.variant==="buffer"&&{backgroundColor:"transparent"},e.variant==="query"&&{transform:"rotate(180deg)"})),nQ=ie("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${fe(n.color)}`]]}})(({ownerState:e,theme:t})=>{const n=tx(t,e.color);return k({position:"absolute",marginTop:0,height:"100%",width:"100%"},e.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},jl(CI||(CI=zu`
|
|
235
|
+
animation: ${0} 3s infinite linear;
|
|
236
|
+
`),ZX)),rQ=ie("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${fe(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>k({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.variant==="determinate"&&{transition:`transform .${Hb}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${Hb}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&jl(xI||(xI=zu`
|
|
237
|
+
width: auto;
|
|
238
|
+
animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
239
|
+
`),QX)),oQ=ie("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${fe(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>k({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},e.variant!=="buffer"&&{backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.color==="inherit"&&{opacity:.3},e.variant==="buffer"&&{backgroundColor:tx(t,e.color),transition:`transform .${Hb}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&jl(SI||(SI=zu`
|
|
240
|
+
width: auto;
|
|
241
|
+
animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
|
|
242
|
+
`),JX)),iQ=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiLinearProgress"}),{className:o,color:i="primary",value:s,valueBuffer:a,variant:c="indeterminate"}=r,d=se(r,XX),p=k({},r,{color:i,variant:c}),h=eQ(p),m=oo(),v={},b={bar1:{},bar2:{}};if((c==="determinate"||c==="buffer")&&s!==void 0){v["aria-valuenow"]=Math.round(s),v["aria-valuemin"]=0,v["aria-valuemax"]=100;let g=s-100;m.direction==="rtl"&&(g=-g),b.bar1.transform=`translateX(${g}%)`}if(c==="buffer"&&a!==void 0){let g=(a||0)-100;m.direction==="rtl"&&(g=-g),b.bar2.transform=`translateX(${g}%)`}return T.jsxs(tQ,k({className:me(h.root,o),ownerState:p,role:"progressbar"},v,{ref:n},d,{children:[c==="buffer"?T.jsx(nQ,{className:h.dashed,ownerState:p}):null,T.jsx(rQ,{className:h.bar1,ownerState:p,style:b.bar1}),c==="determinate"?null:T.jsx(oQ,{className:h.bar2,ownerState:p,style:b.bar2})]}))}),sQ=iQ;function lQ(e){return Qe("MuiLink",e)}const aQ=Ke("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),cQ=aQ,oO={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},uQ=e=>oO[e]||e,dQ=({theme:e,ownerState:t})=>{const n=uQ(t.color),r=gu(e,`palette.${n}`,!1)||t.color,o=gu(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:rt(r,.4)},fQ=dQ,pQ=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],hQ=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${fe(o)}`,n==="button"&&"button",r&&"focusVisible"]};return _e(i,lQ,t)},mQ=ie(Ir,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${fe(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>k({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&k({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:fQ({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${cQ.focusVisible}`]:{outline:"auto"}})),gQ=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiLink"}),{className:o,color:i="primary",component:s="a",onBlur:a,onFocus:c,TypographyClasses:d,underline:p="always",variant:h="inherit",sx:m}=r,v=se(r,pQ),{isFocusVisibleRef:b,onBlur:g,onFocus:x,ref:C}=CC(),[S,w]=u.useState(!1),E=Bt(n,C),P=O=>{g(O),b.current===!1&&w(!1),a&&a(O)},_=O=>{x(O),b.current===!0&&w(!0),c&&c(O)},I=k({},r,{color:i,component:s,focusVisible:S,underline:p,variant:h}),M=hQ(I);return T.jsx(mQ,k({color:i,className:me(M.root,o),classes:d,component:s,onBlur:P,onFocus:_,ref:E,ownerState:I,variant:h,sx:[...Object.keys(oO).includes(i)?[]:[{color:i}],...Array.isArray(m)?m:[m]]},v))}),Ms=gQ,vQ=u.createContext({}),Si=vQ;function yQ(e){return Qe("MuiList",e)}Ke("MuiList",["root","padding","dense","subheader"]);const bQ=["children","className","component","dense","disablePadding","subheader"],wQ=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return _e({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},yQ,t)},CQ=ie("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]}})(({ownerState:e})=>k({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),xQ=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:a=!1,disablePadding:c=!1,subheader:d}=r,p=se(r,bQ),h=u.useMemo(()=>({dense:a}),[a]),m=k({},r,{component:s,dense:a,disablePadding:c}),v=wQ(m);return T.jsx(Si.Provider,{value:h,children:T.jsxs(CQ,k({as:s,className:me(v.root,i),ref:n,ownerState:m},p,{children:[d,o]}))})}),Tv=xQ;function SQ(e){return Qe("MuiListItem",e)}const EQ=Ke("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Tc=EQ;function kQ(e){return Qe("MuiListItemButton",e)}const PQ=Ke("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Mc=PQ,IQ=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],_Q=(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]},$Q=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:s,selected:a}=e,d=_e({root:["root",r&&"dense",!i&&"gutters",s&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",a&&"selected"]},kQ,n);return k({},n,d)},TQ=ie(ns,{shouldForwardProp:e=>Mo(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:_Q})(({theme:e,ownerState:t})=>k({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"}},[`&.${Mc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Mc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Mc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:rt(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})`:rt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Mc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Mc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),MQ=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:i=!1,component:s="div",children:a,dense:c=!1,disableGutters:d=!1,divider:p=!1,focusVisibleClassName:h,selected:m=!1,className:v}=r,b=se(r,IQ),g=u.useContext(Si),x=u.useMemo(()=>({dense:c||g.dense||!1,alignItems:o,disableGutters:d}),[o,g.dense,c,d]),C=u.useRef(null);vn(()=>{i&&C.current&&C.current.focus()},[i]);const S=k({},r,{alignItems:o,dense:x.dense,disableGutters:d,divider:p,selected:m}),w=$Q(S),E=Bt(C,n);return T.jsx(Si.Provider,{value:x,children:T.jsx(TQ,k({ref:E,href:b.href||b.to,component:(b.href||b.to)&&s==="div"?"a":s,focusVisibleClassName:me(w.focusVisible,h),ownerState:S,className:me(w.root,v)},b,{classes:w,children:a}))})}),RQ=MQ;function OQ(e){return Qe("MuiListItemSecondaryAction",e)}Ke("MuiListItemSecondaryAction",["root","disableGutters"]);const LQ=["className"],AQ=e=>{const{disableGutters:t,classes:n}=e;return _e({root:["root",t&&"disableGutters"]},OQ,n)},FQ=ie("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>k({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),iO=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=se(r,LQ),s=u.useContext(Si),a=k({},r,{disableGutters:s.disableGutters}),c=AQ(a);return T.jsx(FQ,k({className:me(c.root,o),ownerState:a,ref:n},i))});iO.muiName="ListItemSecondaryAction";const NQ=iO,DQ=["className"],BQ=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],zQ=(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.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},jQ=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:s,disablePadding:a,divider:c,hasSecondaryAction:d,selected:p}=e;return _e({root:["root",o&&"dense",!s&&"gutters",!a&&"padding",c&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",d&&"secondaryAction",p&&"selected"],container:["container"]},SQ,r)},HQ=ie("div",{name:"MuiListItem",slot:"Root",overridesResolver:zQ})(({theme:e,ownerState:t})=>k({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&k({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Mc.root}`]:{paddingRight:48}},{[`&.${Tc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Tc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Tc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Tc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{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"}},[`&.${Tc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:rt(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})`:rt(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),VQ=ie("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),UQ=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:s=!1,children:a,className:c,component:d,components:p={},componentsProps:h={},ContainerComponent:m="li",ContainerProps:{className:v}={},dense:b=!1,disabled:g=!1,disableGutters:x=!1,disablePadding:C=!1,divider:S=!1,focusVisibleClassName:w,secondaryAction:E,selected:P=!1,slotProps:_={},slots:I={}}=r,M=se(r.ContainerProps,DQ),O=se(r,BQ),L=u.useContext(Si),R=u.useMemo(()=>({dense:b||L.dense||!1,alignItems:o,disableGutters:x}),[o,L.dense,b,x]),H=u.useRef(null);vn(()=>{i&&H.current&&H.current.focus()},[i]);const j=u.Children.toArray(a),A=j.length&&lm(j[j.length-1],["ListItemSecondaryAction"]),F=k({},r,{alignItems:o,autoFocus:i,button:s,dense:R.dense,disabled:g,disableGutters:x,disablePadding:C,divider:S,hasSecondaryAction:A,selected:P}),B=jQ(F),G=Bt(H,n),N=I.root||p.Root||HQ,z=_.root||h.root||{},W=k({className:me(B.root,z.className,c),disabled:g},O);let q=d||"li";return s&&(W.component=d||"div",W.focusVisibleClassName=me(Tc.focusVisible,w),q=ns),A?(q=!W.component&&!d?"div":q,m==="li"&&(q==="li"?q="div":W.component==="li"&&(W.component="div")),T.jsx(Si.Provider,{value:R,children:T.jsxs(VQ,k({as:m,className:me(B.container,v),ref:G,ownerState:F},M,{children:[T.jsx(N,k({},z,!Aa(N)&&{as:q,ownerState:k({},F,z.ownerState)},W,{children:j})),j.pop()]}))})):T.jsx(Si.Provider,{value:R,children:T.jsxs(N,k({},z,{as:q,ref:G},!Aa(N)&&{ownerState:k({},F,z.ownerState)},W,{children:[j,E&&T.jsx(NQ,{children:E})]}))})}),sO=UQ;function WQ(e){return Qe("MuiListItemIcon",e)}const GQ=Ke("MuiListItemIcon",["root","alignItemsFlexStart"]),EI=GQ,KQ=["className"],qQ=e=>{const{alignItems:t,classes:n}=e;return _e({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},WQ,n)},YQ=ie("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>k({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),XQ=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiListItemIcon"}),{className:o}=r,i=se(r,KQ),s=u.useContext(Si),a=k({},r,{alignItems:s.alignItems}),c=qQ(a);return T.jsx(YQ,k({className:me(c.root,o),ownerState:a,ref:n},i))}),lO=XQ;function QQ(e){return Qe("MuiListItemText",e)}const JQ=Ke("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),tg=JQ,ZQ=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],eJ=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return _e({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},QQ,t)},tJ=ie("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${tg.primary}`]:t.primary},{[`& .${tg.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>k({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),nJ=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:s=!1,inset:a=!1,primary:c,primaryTypographyProps:d,secondary:p,secondaryTypographyProps:h}=r,m=se(r,ZQ),{dense:v}=u.useContext(Si);let b=c!=null?c:o,g=p;const x=k({},r,{disableTypography:s,inset:a,primary:!!b,secondary:!!g,dense:v}),C=eJ(x);return b!=null&&b.type!==Ir&&!s&&(b=T.jsx(Ir,k({variant:v?"body2":"body1",className:C.primary,component:d!=null&&d.variant?void 0:"span",display:"block"},d,{children:b}))),g!=null&&g.type!==Ir&&!s&&(g=T.jsx(Ir,k({variant:"body2",className:C.secondary,color:"text.secondary",display:"block"},h,{children:g}))),T.jsxs(tJ,k({className:me(C.root,i),ownerState:x,ref:n},m,{children:[b,g]}))}),Mv=nJ,rJ=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function i1(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function kI(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function aO(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.indexOf(t.keys.join(""))===0}function Pd(e,t,n,r,o,i){let s=!1,a=o(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const c=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!aO(a,i)||c)a=o(e,a,n);else return a.focus(),!0}return!1}const oJ=u.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:s,className:a,disabledItemsFocusable:c=!1,disableListWrap:d=!1,onKeyDown:p,variant:h="selectedMenu"}=t,m=se(t,rJ),v=u.useRef(null),b=u.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});vn(()=>{o&&v.current.focus()},[o]),u.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(w,E)=>{const P=!v.current.style.width;if(w.clientHeight<v.current.clientHeight&&P){const _=`${jM(gn(w))}px`;v.current.style[E.direction==="rtl"?"paddingLeft":"paddingRight"]=_,v.current.style.width=`calc(100% + ${_})`}return v.current}}),[]);const g=w=>{const E=v.current,P=w.key,_=gn(E).activeElement;if(P==="ArrowDown")w.preventDefault(),Pd(E,_,d,c,i1);else if(P==="ArrowUp")w.preventDefault(),Pd(E,_,d,c,kI);else if(P==="Home")w.preventDefault(),Pd(E,null,d,c,i1);else if(P==="End")w.preventDefault(),Pd(E,null,d,c,kI);else if(P.length===1){const I=b.current,M=P.toLowerCase(),O=performance.now();I.keys.length>0&&(O-I.lastTime>500?(I.keys=[],I.repeating=!0,I.previousKeyMatched=!0):I.repeating&&M!==I.keys[0]&&(I.repeating=!1)),I.lastTime=O,I.keys.push(M);const L=_&&!I.repeating&&aO(_,I);I.previousKeyMatched&&(L||Pd(E,_,!1,c,i1,I))?w.preventDefault():I.previousKeyMatched=!1}p&&p(w)},x=Bt(v,n);let C=-1;u.Children.forEach(s,(w,E)=>{u.isValidElement(w)&&(w.props.disabled||(h==="selectedMenu"&&w.props.selected||C===-1)&&(C=E),C===E&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(C+=1,C>=s.length&&(C=-1)))});const S=u.Children.map(s,(w,E)=>{if(E===C){const P={};return i&&(P.autoFocus=!0),w.props.tabIndex===void 0&&h==="selectedMenu"&&(P.tabIndex=0),u.cloneElement(w,P)}return w});return T.jsx(Tv,k({role:"menu",ref:x,className:a,onKeyDown:g,tabIndex:o?0:-1},m,{children:S}))}),Rv=oJ;function iJ(e){return Qe("MuiPopover",e)}Ke("MuiPopover",["root","paper"]);const sJ=["onEntering"],lJ=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function PI(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function II(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function _I(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function s1(e){return typeof e=="function"?e():e}const aJ=e=>{const{classes:t}=e;return _e({root:["root"],paper:["paper"]},iJ,t)},cJ=ie(ex,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),uJ=ie(ii,{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}),dJ=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:c="anchorEl",children:d,className:p,container:h,elevation:m=8,marginThreshold:v=16,open:b,PaperProps:g={},transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:C=Zm,transitionDuration:S="auto",TransitionProps:{onEntering:w}={}}=r,E=se(r.TransitionProps,sJ),P=se(r,lJ),_=u.useRef(),I=Bt(_,g.ref),M=k({},r,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:v,PaperProps:g,transformOrigin:x,TransitionComponent:C,transitionDuration:S,TransitionProps:E}),O=aJ(M),L=u.useCallback(()=>{if(c==="anchorPosition")return a;const W=s1(i),X=(W&&W.nodeType===1?W:gn(_.current).body).getBoundingClientRect();return{top:X.top+PI(X,s.vertical),left:X.left+II(X,s.horizontal)}},[i,s.horizontal,s.vertical,a,c]),R=u.useCallback(W=>({vertical:PI(W,x.vertical),horizontal:II(W,x.horizontal)}),[x.horizontal,x.vertical]),H=u.useCallback(W=>{const q={width:W.offsetWidth,height:W.offsetHeight},X=R(q);if(c==="none")return{top:null,left:null,transformOrigin:_I(X)};const le=L();let Q=le.top-X.vertical,ge=le.left-X.horizontal;const ee=Q+q.height,ce=ge+q.width,oe=Eo(s1(i)),de=oe.innerHeight-v,be=oe.innerWidth-v;if(Q<v){const we=Q-v;Q-=we,X.vertical+=we}else if(ee>de){const we=ee-de;Q-=we,X.vertical+=we}if(ge<v){const we=ge-v;ge-=we,X.horizontal+=we}else if(ce>be){const we=ce-be;ge-=we,X.horizontal+=we}return{top:`${Math.round(Q)}px`,left:`${Math.round(ge)}px`,transformOrigin:_I(X)}},[i,c,L,R,v]),[j,A]=u.useState(b),F=u.useCallback(()=>{const W=_.current;if(!W)return;const q=H(W);q.top!==null&&(W.style.top=q.top),q.left!==null&&(W.style.left=q.left),W.style.transformOrigin=q.transformOrigin,A(!0)},[H]),B=(W,q)=>{w&&w(W,q),F()},G=()=>{A(!1)};u.useEffect(()=>{b&&F()}),u.useImperativeHandle(o,()=>b?{updatePosition:()=>{F()}}:null,[b,F]),u.useEffect(()=>{if(!b)return;const W=zl(()=>{F()}),q=Eo(i);return q.addEventListener("resize",W),()=>{W.clear(),q.removeEventListener("resize",W)}},[i,b,F]);let N=S;S==="auto"&&!C.muiSupportAuto&&(N=void 0);const z=h||(i?gn(s1(i)).body:void 0);return T.jsx(cJ,k({BackdropProps:{invisible:!0},className:me(O.root,p),container:z,open:b,ref:n,ownerState:M},P,{children:T.jsx(C,k({appear:!0,in:b,onEntering:B,onExited:G,timeout:N},E,{children:T.jsx(uJ,k({elevation:m},g,{ref:I,className:me(O.paper,g.className)},j?void 0:{style:k({},g.style,{opacity:0})},{ownerState:M,children:d}))}))}))}),fJ=dJ;function pJ(e){return Qe("MuiMenu",e)}Ke("MuiMenu",["root","paper","list"]);const hJ=["onEntering"],mJ=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],gJ={vertical:"top",horizontal:"right"},vJ={vertical:"top",horizontal:"left"},yJ=e=>{const{classes:t}=e;return _e({root:["root"],paper:["paper"],list:["list"]},pJ,t)},bJ=ie(fJ,{shouldForwardProp:e=>Mo(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wJ=ie(ii,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),CJ=ie(Rv,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),xJ=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:i,disableAutoFocusItem:s=!1,MenuListProps:a={},onClose:c,open:d,PaperProps:p={},PopoverClasses:h,transitionDuration:m="auto",TransitionProps:{onEntering:v}={},variant:b="selectedMenu"}=r,g=se(r.TransitionProps,hJ),x=se(r,mJ),C=oo(),S=C.direction==="rtl",w=k({},r,{autoFocus:o,disableAutoFocusItem:s,MenuListProps:a,onEntering:v,PaperProps:p,transitionDuration:m,TransitionProps:g,variant:b}),E=yJ(w),P=o&&!s&&d,_=u.useRef(null),I=(L,R)=>{_.current&&_.current.adjustStyleForScrollbar(L,C),v&&v(L,R)},M=L=>{L.key==="Tab"&&(L.preventDefault(),c&&c(L,"tabKeyDown"))};let O=-1;return u.Children.map(i,(L,R)=>{u.isValidElement(L)&&(L.props.disabled||(b==="selectedMenu"&&L.props.selected||O===-1)&&(O=R))}),T.jsx(bJ,k({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?gJ:vJ,PaperProps:k({as:wJ},p,{classes:k({},p.classes,{root:E.paper})}),className:E.root,open:d,ref:n,transitionDuration:m,TransitionProps:k({onEntering:I},g),ownerState:w},x,{classes:h,children:T.jsx(CJ,k({onKeyDown:M,actions:_,autoFocus:o&&(O===-1||s),autoFocusItem:P,variant:b},a,{className:me(E.list,a.className),children:i}))}))}),cO=xJ;function SJ(e){return Qe("MuiMenuItem",e)}const EJ=Ke("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Id=EJ,kJ=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],PJ=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},IJ=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:s}=e,c=_e({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},SJ,s);return k({},s,c)},_J=ie(ns,{shouldForwardProp:e=>Mo(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:PJ})(({theme:e,ownerState:t})=>k({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Id.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Id.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Id.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:rt(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})`:rt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Id.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Id.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${dI.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${dI.inset}`]:{marginLeft:52},[`& .${tg.root}`]:{marginTop:0,marginBottom:0},[`& .${tg.inset}`]:{paddingLeft:36},[`& .${EI.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&k({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${EI.root} svg`]:{fontSize:"1.25rem"}}))),$J=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:s=!1,divider:a=!1,disableGutters:c=!1,focusVisibleClassName:d,role:p="menuitem",tabIndex:h,className:m}=r,v=se(r,kJ),b=u.useContext(Si),g=u.useMemo(()=>({dense:s||b.dense||!1,disableGutters:c}),[b.dense,s,c]),x=u.useRef(null);vn(()=>{o&&x.current&&x.current.focus()},[o]);const C=k({},r,{dense:g.dense,divider:a,disableGutters:c}),S=IJ(r),w=Bt(x,n);let E;return r.disabled||(E=h!==void 0?h:-1),T.jsx(Si.Provider,{value:g,children:T.jsx(_J,k({ref:w,role:p,tabIndex:E,component:i,focusVisibleClassName:me(S.focusVisible,d),className:me(S.root,m)},v,{ownerState:C,classes:S}))})}),ar=$J;function TJ(e){return Qe("MuiNativeSelect",e)}const MJ=Ke("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),nx=MJ,RJ=["className","disabled","IconComponent","inputRef","variant"],OJ=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i}=e,s={select:["select",n,r&&"disabled",o&&"multiple"],icon:["icon",`icon${fe(n)}`,i&&"iconOpen",r&&"disabled"]};return _e(s,TJ,t)},uO=({ownerState:e,theme:t})=>k({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":k({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${nx.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),LJ=ie("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Mo,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],{[`&.${nx.multiple}`]:t.multiple}]}})(uO),dO=({ownerState:e,theme:t})=>k({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${nx.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),AJ=ie("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${fe(n.variant)}`],n.open&&t.iconOpen]}})(dO),FJ=u.forwardRef(function(t,n){const{className:r,disabled:o,IconComponent:i,inputRef:s,variant:a="standard"}=t,c=se(t,RJ),d=k({},t,{disabled:o,variant:a}),p=OJ(d);return T.jsxs(u.Fragment,{children:[T.jsx(LJ,k({ownerState:d,className:me(p.select,r),disabled:o,ref:s||n},c)),t.multiple?null:T.jsx(AJ,{as:i,ownerState:d,className:p.icon})]})}),NJ=FJ;var $I;const DJ=["children","classes","className","label","notched"],BJ=ie("fieldset")({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%"}),zJ=ie("legend")(({ownerState:e,theme:t})=>k({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&k({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function jJ(e){const{className:t,label:n,notched:r}=e,o=se(e,DJ),i=n!=null&&n!=="",s=k({},e,{notched:r,withLabel:i});return T.jsx(BJ,k({"aria-hidden":!0,className:t,ownerState:s},o,{children:T.jsx(zJ,{ownerState:s,children:i?T.jsx("span",{children:n}):$I||($I=T.jsx("span",{className:"notranslate",children:""}))})}))}const HJ=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],VJ=e=>{const{classes:t}=e,r=_e({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},bK,t);return k({},t,r)},UJ=ie(Pv,{shouldForwardProp:e=>Mo(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ev})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return k({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Bi.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Bi.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Bi.focused} .${Bi.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Bi.error} .${Bi.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Bi.disabled} .${Bi.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&k({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),WJ=ie(jJ,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({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}}),GJ=ie(Iv,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:kv})(({theme:e,ownerState:t})=>k({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"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),fO=u.forwardRef(function(t,n){var r,o,i,s,a;const c=et({props:t,name:"MuiOutlinedInput"}),{components:d={},fullWidth:p=!1,inputComponent:h="input",label:m,multiline:v=!1,notched:b,slots:g={},type:x="text"}=c,C=se(c,HJ),S=VJ(c),w=Us(),E=qa({props:c,muiFormControl:w,states:["required"]}),P=k({},c,{color:E.color||"primary",disabled:E.disabled,error:E.error,focused:E.focused,formControl:w,fullWidth:p,hiddenLabel:E.hiddenLabel,multiline:v,size:E.size,type:x}),_=(r=(o=g.root)!=null?o:d.Root)!=null?r:UJ,I=(i=(s=g.input)!=null?s:d.Input)!=null?i:GJ;return T.jsx(Du,k({slots:{root:_,input:I},renderSuffix:M=>T.jsx(WJ,{ownerState:P,className:S.notchedOutline,label:m!=null&&m!==""&&E.required?a||(a=T.jsxs(u.Fragment,{children:[m," ","*"]})):m,notched:typeof b!="undefined"?b:Boolean(M.startAdornment||M.filled||M.focused)}),fullWidth:p,inputComponent:h,multiline:v,ref:n,type:x},C,{classes:k({},S,{notchedOutline:null})}))});fO.muiName="Input";const pO=fO,TI=Re(T.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),MI=Re(T.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function KJ(e){return Qe("MuiSelect",e)}const qJ=Ke("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),Nh=qJ;var RI;const YJ=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],XJ=ie("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Nh.select}`]:t.select},{[`&.${Nh.select}`]:t[n.variant]},{[`&.${Nh.multiple}`]:t.multiple}]}})(uO,{[`&.${Nh.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),QJ=ie("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${fe(n.variant)}`],n.open&&t.iconOpen]}})(dO),JJ=ie("input",{shouldForwardProp:e=>T7(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 OI(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function ZJ(e){return e==null||typeof e=="string"&&!e.trim()}const eZ=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i}=e,s={select:["select",n,r&&"disabled",o&&"multiple"],icon:["icon",`icon${fe(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return _e(s,KJ,t)},tZ=u.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:s,children:a,className:c,defaultOpen:d,defaultValue:p,disabled:h,displayEmpty:m,IconComponent:v,inputRef:b,labelId:g,MenuProps:x={},multiple:C,name:S,onBlur:w,onChange:E,onClose:P,onFocus:_,onOpen:I,open:M,readOnly:O,renderValue:L,SelectDisplayProps:R={},tabIndex:H,value:j,variant:A="standard"}=t,F=se(t,YJ),[B,G]=Ts({controlled:j,default:p,name:"Select"}),[N,z]=Ts({controlled:M,default:d,name:"Select"}),W=u.useRef(null),q=u.useRef(null),[X,le]=u.useState(null),{current:Q}=u.useRef(M!=null),[ge,ee]=u.useState(),ce=Bt(n,b),oe=u.useCallback(J=>{q.current=J,J&&le(J)},[]),de=X==null?void 0:X.parentNode;u.useImperativeHandle(ce,()=>({focus:()=>{q.current.focus()},node:W.current,value:B}),[B]),u.useEffect(()=>{d&&N&&X&&!Q&&(ee(s?null:de.clientWidth),q.current.focus())},[X,s]),u.useEffect(()=>{i&&q.current.focus()},[i]),u.useEffect(()=>{if(!g)return;const J=gn(q.current).getElementById(g);if(J){const Oe=()=>{getSelection().isCollapsed&&q.current.focus()};return J.addEventListener("click",Oe),()=>{J.removeEventListener("click",Oe)}}},[g]);const be=(J,Oe)=>{J?I&&I(Oe):P&&P(Oe),Q||(ee(s?null:de.clientWidth),z(J))},we=J=>{J.button===0&&(J.preventDefault(),q.current.focus(),be(!0,J))},$e=J=>{be(!1,J)},Ve=u.Children.toArray(a),De=J=>{const Oe=Ve.map(Je=>Je.props.value).indexOf(J.target.value);if(Oe===-1)return;const Me=Ve[Oe];G(Me.props.value),E&&E(J,Me)},re=J=>Oe=>{let Me;if(Oe.currentTarget.hasAttribute("tabindex")){if(C){Me=Array.isArray(B)?B.slice():[];const Je=B.indexOf(J.props.value);Je===-1?Me.push(J.props.value):Me.splice(Je,1)}else Me=J.props.value;if(J.props.onClick&&J.props.onClick(Oe),B!==Me&&(G(Me),E)){const Je=Oe.nativeEvent||Oe,wt=new Je.constructor(Je.type,Je);Object.defineProperty(wt,"target",{writable:!0,value:{value:Me,name:S}}),E(wt,J)}C||be(!1,Oe)}},Ae=J=>{O||[" ","ArrowUp","ArrowDown","Enter"].indexOf(J.key)!==-1&&(J.preventDefault(),be(!0,J))},ve=X!==null&&N,He=J=>{!ve&&w&&(Object.defineProperty(J,"target",{writable:!0,value:{value:B,name:S}}),w(J))};delete F["aria-invalid"];let Xe,ft;const ze=[];let pt=!1;(JC({value:B})||m)&&(L?Xe=L(B):pt=!0);const ot=Ve.map(J=>{if(!u.isValidElement(J))return null;let Oe;if(C){if(!Array.isArray(B))throw new Error(Bl(2));Oe=B.some(Me=>OI(Me,J.props.value)),Oe&&pt&&ze.push(J.props.children)}else Oe=OI(B,J.props.value),Oe&&pt&&(ft=J.props.children);return u.cloneElement(J,{"aria-selected":Oe?"true":"false",onClick:re(J),onKeyUp:Me=>{Me.key===" "&&Me.preventDefault(),J.props.onKeyUp&&J.props.onKeyUp(Me)},role:"option",selected:Oe,value:void 0,"data-value":J.props.value})});pt&&(C?ze.length===0?Xe=null:Xe=ze.reduce((J,Oe,Me)=>(J.push(Oe),Me<ze.length-1&&J.push(", "),J),[]):Xe=ft);let ct=ge;!s&&Q&&X&&(ct=de.clientWidth);let vt;typeof H!="undefined"?vt=H:vt=h?null:0;const ut=R.id||(S?`mui-component-select-${S}`:void 0),Ue=k({},t,{variant:A,value:B,open:ve}),ue=eZ(Ue);return T.jsxs(u.Fragment,{children:[T.jsx(XJ,k({ref:oe,tabIndex:vt,role:"button","aria-disabled":h?"true":void 0,"aria-expanded":ve?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ut].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:Ae,onMouseDown:h||O?null:we,onBlur:He,onFocus:_},R,{ownerState:Ue,className:me(R.className,ue.select,c),id:ut,children:ZJ(Xe)?RI||(RI=T.jsx("span",{className:"notranslate",children:""})):Xe})),T.jsx(JJ,k({value:Array.isArray(B)?B.join(","):B,name:S,ref:W,"aria-hidden":!0,onChange:De,tabIndex:-1,disabled:h,className:ue.nativeInput,autoFocus:i,ownerState:Ue},F)),T.jsx(QJ,{as:v,className:ue.icon,ownerState:Ue}),T.jsx(cO,k({id:`menu-${S||""}`,anchorEl:de,open:ve,onClose:$e,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},x,{MenuListProps:k({"aria-labelledby":g,role:"listbox",disableListWrap:!0},x.MenuListProps),PaperProps:k({},x.PaperProps,{style:k({minWidth:ct},x.PaperProps!=null?x.PaperProps.style:null)}),children:ot}))]})}),nZ=tZ;var LI,AI;const rZ=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],oZ=e=>{const{classes:t}=e;return t},rx={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Mo(e)&&e!=="variant",slot:"Root"},iZ=ie(rO,rx)(""),sZ=ie(pO,rx)(""),lZ=ie(YR,rx)(""),hO=u.forwardRef(function(t,n){const r=et({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:s={},className:a,defaultOpen:c=!1,displayEmpty:d=!1,IconComponent:p=FR,id:h,input:m,inputProps:v,label:b,labelId:g,MenuProps:x,multiple:C=!1,native:S=!1,onClose:w,onOpen:E,open:P,renderValue:_,SelectDisplayProps:I,variant:M="outlined"}=r,O=se(r,rZ),L=S?NJ:nZ,R=Us(),j=qa({props:r,muiFormControl:R,states:["variant"]}).variant||M,A=m||{standard:LI||(LI=T.jsx(iZ,{})),outlined:T.jsx(sZ,{label:b}),filled:AI||(AI=T.jsx(lZ,{}))}[j],F=k({},r,{variant:j,classes:s}),B=oZ(F),G=Bt(n,A.ref);return T.jsx(u.Fragment,{children:u.cloneElement(A,k({inputComponent:L,inputProps:k({children:i,IconComponent:p,variant:j,type:void 0,multiple:C},S?{id:h}:{autoWidth:o,defaultOpen:c,displayEmpty:d,labelId:g,MenuProps:x,onClose:w,onOpen:E,open:P,renderValue:_,SelectDisplayProps:k({id:h},I)},v,{classes:v?qo(B,v.classes):B},m?m.props.inputProps:{})},C&&S&&j==="outlined"?{notched:!0}:{},{ref:G,className:me(A.props.className,a)},!m&&{variant:j},O))})});hO.muiName="Select";const ox=hO;function aZ(e){return Qe("MuiSkeleton",e)}Ke("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const cZ=["animation","className","component","height","style","variant","width"];let ng=e=>e,FI,NI,DI,BI;const uZ=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:i,height:s}=e;return _e({root:["root",n,r,o&&"withChildren",o&&!i&&"fitContent",o&&!s&&"heightAuto"]},aZ,t)},dZ=rs(FI||(FI=ng`
|
|
243
|
+
0% {
|
|
244
|
+
opacity: 1;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
50% {
|
|
248
|
+
opacity: 0.4;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
100% {
|
|
252
|
+
opacity: 1;
|
|
253
|
+
}
|
|
254
|
+
`)),fZ=rs(NI||(NI=ng`
|
|
255
|
+
0% {
|
|
256
|
+
transform: translateX(-100%);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
50% {
|
|
260
|
+
/* +0.5s of delay between each loop */
|
|
261
|
+
transform: translateX(100%);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
100% {
|
|
265
|
+
transform: translateX(100%);
|
|
266
|
+
}
|
|
267
|
+
`)),pZ=ie("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(({theme:e,ownerState:t})=>{const n=I7(e.shape.borderRadius)||"px",r=_7(e.shape.borderRadius);return k({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:rt(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em"},t.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${n}/${Math.round(r/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},t.variant==="circular"&&{borderRadius:"50%"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})},({ownerState:e})=>e.animation==="pulse"&&jl(DI||(DI=ng`
|
|
268
|
+
animation: ${0} 1.5s ease-in-out 0.5s infinite;
|
|
269
|
+
`),dZ),({ownerState:e,theme:t})=>e.animation==="wave"&&jl(BI||(BI=ng`
|
|
270
|
+
position: relative;
|
|
271
|
+
overflow: hidden;
|
|
272
|
+
|
|
273
|
+
/* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */
|
|
274
|
+
-webkit-mask-image: -webkit-radial-gradient(white, black);
|
|
275
|
+
|
|
276
|
+
&::after {
|
|
277
|
+
animation: ${0} 1.6s linear 0.5s infinite;
|
|
278
|
+
background: linear-gradient(
|
|
279
|
+
90deg,
|
|
280
|
+
transparent,
|
|
281
|
+
${0},
|
|
282
|
+
transparent
|
|
283
|
+
);
|
|
284
|
+
content: '';
|
|
285
|
+
position: absolute;
|
|
286
|
+
transform: translateX(-100%); /* Avoid flash during server-side hydration */
|
|
287
|
+
bottom: 0;
|
|
288
|
+
left: 0;
|
|
289
|
+
right: 0;
|
|
290
|
+
top: 0;
|
|
291
|
+
}
|
|
292
|
+
`),fZ,(t.vars||t).palette.action.hover)),hZ=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:i,component:s="span",height:a,style:c,variant:d="text",width:p}=r,h=se(r,cZ),m=k({},r,{animation:o,component:s,variant:d,hasChildren:Boolean(h.children)}),v=uZ(m);return T.jsx(pZ,k({as:s,ref:n,className:me(v.root,i),ownerState:m},h,{style:k({width:p,height:a},c)}))}),mZ=hZ;function gZ(e){return Qe("MuiTooltip",e)}const vZ=Ke("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),bl=vZ,yZ=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function bZ(e){return Math.round(e*1e5)/1e5}const wZ=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${fe(i.split("-")[0])}`],arrow:["arrow"]};return _e(s,gZ,t)},CZ=ie(Ka,{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]}})(({theme:e,ownerState:t,open:n})=>k({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${bl.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${bl.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${bl.arrow}`]:k({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${bl.arrow}`]:k({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),xZ=ie("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${fe(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>k({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:rt(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},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${bZ(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${bl.popper}[data-popper-placement*="left"] &`]:k({transformOrigin:"right center"},t.isRtl?k({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):k({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${bl.popper}[data-popper-placement*="right"] &`]:k({transformOrigin:"left center"},t.isRtl?k({marginRight:"14px"},t.touch&&{marginRight:"24px"}):k({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${bl.popper}[data-popper-placement*="top"] &`]:k({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${bl.popper}[data-popper-placement*="bottom"] &`]:k({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),SZ=ie("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:rt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Dh=!1,l1=null,_d={x:0,y:0};function Bh(e,t){return n=>{t&&t(n),e(n)}}const EZ=u.forwardRef(function(t,n){var r,o,i,s,a,c,d,p,h,m,v,b,g,x,C,S,w,E,P;const _=et({props:t,name:"MuiTooltip"}),{arrow:I=!1,children:M,components:O={},componentsProps:L={},describeChild:R=!1,disableFocusListener:H=!1,disableHoverListener:j=!1,disableInteractive:A=!1,disableTouchListener:F=!1,enterDelay:B=100,enterNextDelay:G=0,enterTouchDelay:N=700,followCursor:z=!1,id:W,leaveDelay:q=0,leaveTouchDelay:X=1500,onClose:le,onOpen:Q,open:ge,placement:ee="bottom",PopperComponent:ce,PopperProps:oe={},slotProps:de={},slots:be={},title:we,TransitionComponent:$e=Zm,TransitionProps:Ve}=_,De=se(_,yZ),re=oo(),Ae=re.direction==="rtl",[ve,He]=u.useState(),[Xe,ft]=u.useState(null),ze=u.useRef(!1),pt=A||z,ot=u.useRef(),ct=u.useRef(),vt=u.useRef(),ut=u.useRef(),[Ue,ue]=Ts({controlled:ge,default:!1,name:"Tooltip",state:"open"});let J=Ue;const Oe=Tn(W),Me=u.useRef(),Je=u.useCallback(()=>{Me.current!==void 0&&(document.body.style.WebkitUserSelect=Me.current,Me.current=void 0),clearTimeout(ut.current)},[]);u.useEffect(()=>()=>{clearTimeout(ot.current),clearTimeout(ct.current),clearTimeout(vt.current),Je()},[Je]);const wt=gt=>{clearTimeout(l1),Dh=!0,ue(!0),Q&&!J&&Q(gt)},It=cn(gt=>{clearTimeout(l1),l1=setTimeout(()=>{Dh=!1},800+q),ue(!1),le&&J&&le(gt),clearTimeout(ot.current),ot.current=setTimeout(()=>{ze.current=!1},re.transitions.duration.shortest)}),Kt=gt=>{ze.current&>.type!=="touchstart"||(ve&&ve.removeAttribute("title"),clearTimeout(ct.current),clearTimeout(vt.current),B||Dh&&G?ct.current=setTimeout(()=>{wt(gt)},Dh?G:B):wt(gt))},Vn=gt=>{clearTimeout(ct.current),clearTimeout(vt.current),vt.current=setTimeout(()=>{It(gt)},q)},{isFocusVisibleRef:Rr,onBlur:er,onFocus:vr,ref:yr}=CC(),[,br]=u.useState(!1),rn=gt=>{er(gt),Rr.current===!1&&(br(!1),Vn(gt))},dn=gt=>{ve||He(gt.currentTarget),vr(gt),Rr.current===!0&&(br(!0),Kt(gt))},Un=gt=>{ze.current=!0;const tr=M.props;tr.onTouchStart&&tr.onTouchStart(gt)},li=Kt,Ti=Vn,ss=gt=>{Un(gt),clearTimeout(vt.current),clearTimeout(ot.current),Je(),Me.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ut.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Me.current,Kt(gt)},N)},Mi=gt=>{M.props.onTouchEnd&&M.props.onTouchEnd(gt),Je(),clearTimeout(vt.current),vt.current=setTimeout(()=>{It(gt)},X)};u.useEffect(()=>{if(!J)return;function gt(tr){(tr.key==="Escape"||tr.key==="Esc")&&It(tr)}return document.addEventListener("keydown",gt),()=>{document.removeEventListener("keydown",gt)}},[It,J]);const Ri=Bt(M.ref,yr,He,n);!we&&we!==0&&(J=!1);const ae=u.useRef(),Ce=gt=>{const tr=M.props;tr.onMouseMove&&tr.onMouseMove(gt),_d={x:gt.clientX,y:gt.clientY},ae.current&&ae.current.update()},Fe={},st=typeof we=="string";R?(Fe.title=!J&&st&&!j?we:null,Fe["aria-describedby"]=J?Oe:null):(Fe["aria-label"]=st?we:null,Fe["aria-labelledby"]=J&&!st?Oe:null);const Le=k({},Fe,De,M.props,{className:me(De.className,M.props.className),onTouchStart:Un,ref:Ri},z?{onMouseMove:Ce}:{}),lt={};F||(Le.onTouchStart=ss,Le.onTouchEnd=Mi),j||(Le.onMouseOver=Bh(li,Le.onMouseOver),Le.onMouseLeave=Bh(Ti,Le.onMouseLeave),pt||(lt.onMouseOver=li,lt.onMouseLeave=Ti)),H||(Le.onFocus=Bh(dn,Le.onFocus),Le.onBlur=Bh(rn,Le.onBlur),pt||(lt.onFocus=dn,lt.onBlur=rn));const xt=u.useMemo(()=>{var gt;let tr=[{name:"arrow",enabled:Boolean(Xe),options:{element:Xe,padding:4}}];return(gt=oe.popperOptions)!=null&>.modifiers&&(tr=tr.concat(oe.popperOptions.modifiers)),k({},oe.popperOptions,{modifiers:tr})},[Xe,oe]),Qt=k({},_,{isRtl:Ae,arrow:I,disableInteractive:pt,placement:ee,PopperComponentProp:ce,touch:ze.current}),On=wZ(Qt),io=(r=(o=be.popper)!=null?o:O.Popper)!=null?r:CZ,Se=(i=(s=(a=be.transition)!=null?a:O.Transition)!=null?s:$e)!=null?i:Zm,ye=(c=(d=be.tooltip)!=null?d:O.Tooltip)!=null?c:xZ,je=(p=(h=be.arrow)!=null?h:O.Arrow)!=null?p:SZ,at=Dd(io,k({},oe,(m=de.popper)!=null?m:L.popper,{className:me(On.popper,oe==null?void 0:oe.className,(v=(b=de.popper)!=null?b:L.popper)==null?void 0:v.className)}),Qt),zt=Dd(Se,k({},Ve,(g=de.transition)!=null?g:L.transition),Qt),En=Dd(ye,k({},(x=de.tooltip)!=null?x:L.tooltip,{className:me(On.tooltip,(C=(S=de.tooltip)!=null?S:L.tooltip)==null?void 0:C.className)}),Qt),kn=Dd(je,k({},(w=de.arrow)!=null?w:L.arrow,{className:me(On.arrow,(E=(P=de.arrow)!=null?P:L.arrow)==null?void 0:E.className)}),Qt);return T.jsxs(u.Fragment,{children:[u.cloneElement(M,Le),T.jsx(io,k({as:ce!=null?ce:Ka,placement:ee,anchorEl:z?{getBoundingClientRect:()=>({top:_d.y,left:_d.x,right:_d.x,bottom:_d.y,width:0,height:0})}:ve,popperRef:ae,open:ve?J:!1,id:Oe,transition:!0},lt,at,{popperOptions:xt,children:({TransitionProps:gt})=>T.jsx(Se,k({timeout:re.transitions.duration.shorter},gt,zt,{children:T.jsxs(ye,k({},En,{children:[we,I?T.jsx(je,k({},kn,{ref:ft})):null]}))}))}))]})}),sp=EZ;function kZ(e){return Qe("MuiSwitch",e)}const PZ=Ke("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),kr=PZ,IZ=["className","color","edge","size","sx"],_Z=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:s}=e,a={root:["root",n&&`edge${fe(n)}`,`size${fe(r)}`],switchBase:["switchBase",`color${fe(o)}`,i&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=_e(a,kZ,t);return k({},t,c)},$Z=ie("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${fe(n.edge)}`],t[`size${fe(n.size)}`]]}})(({ownerState:e})=>k({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${kr.thumb}`]:{width:16,height:16},[`& .${kr.switchBase}`]:{padding:4,[`&.${kr.checked}`]:{transform:"translateX(16px)"}}})),TZ=ie(VR,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${kr.input}`]:t.input},n.color!=="default"&&t[`color${fe(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${kr.checked}`]:{transform:"translateX(20px)"},[`&.${kr.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${kr.checked} + .${kr.track}`]:{opacity:.5},[`&.${kr.disabled} + .${kr.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${kr.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>k({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:rt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${kr.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${kr.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?Ds(e.palette[t.color].main,.62):Ns(e.palette[t.color].main,.55)}`}},[`&.${kr.checked} + .${kr.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),MZ=ie("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),RZ=ie("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),OZ=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:s=!1,size:a="medium",sx:c}=r,d=se(r,IZ),p=k({},r,{color:i,edge:s,size:a}),h=_Z(p),m=T.jsx(RZ,{className:h.thumb,ownerState:p});return T.jsxs($Z,{className:me(h.root,o),sx:c,ownerState:p,children:[T.jsx(TZ,k({type:"checkbox",icon:m,checkedIcon:m,ref:n,ownerState:p},d,{classes:k({},h,{root:h.switchBase})})),T.jsx(MZ,{className:h.track,ownerState:p})]})}),mO=OZ;function LZ(e){return Qe("MuiTab",e)}const AZ=Ke("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),aa=AZ,FZ=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],NZ=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:s,selected:a,disabled:c}=e,d={root:["root",i&&s&&"labelIcon",`textColor${fe(n)}`,r&&"fullWidth",o&&"wrapped",a&&"selected",c&&"disabled"],iconWrapper:["iconWrapper"]};return _e(d,LZ,t)},DZ=ie(ns,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${fe(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>k({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${aa.iconWrapper}`]:k({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${aa.selected}`]:{opacity:1},[`&.${aa.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${aa.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${aa.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${aa.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${aa.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),BZ=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:s=!1,fullWidth:a,icon:c,iconPosition:d="top",indicator:p,label:h,onChange:m,onClick:v,onFocus:b,selected:g,selectionFollowsFocus:x,textColor:C="inherit",value:S,wrapped:w=!1}=r,E=se(r,FZ),P=k({},r,{disabled:i,disableFocusRipple:s,selected:g,icon:!!c,iconPosition:d,label:!!h,fullWidth:a,textColor:C,wrapped:w}),_=NZ(P),I=c&&h&&u.isValidElement(c)?u.cloneElement(c,{className:me(_.iconWrapper,c.props.className)}):c,M=L=>{!g&&m&&m(L,S),v&&v(L)},O=L=>{x&&!g&&m&&m(L,S),b&&b(L)};return T.jsxs(DZ,k({focusRipple:!s,className:me(_.root,o),ref:n,role:"tab","aria-selected":g,disabled:i,onClick:M,onFocus:O,ownerState:P,tabIndex:g?0:-1},E,{children:[d==="top"||d==="start"?T.jsxs(u.Fragment,{children:[I,h]}):T.jsxs(u.Fragment,{children:[h,I]}),p]}))}),gO=BZ,zZ=u.createContext(),jZ=zZ,HZ=u.createContext(),VZ=HZ;function UZ(e){return Qe("MuiTableCell",e)}const WZ=Ke("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),GZ=WZ,KZ=["align","className","component","padding","scope","size","sortDirection","variant"],qZ=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:s}=e,a={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${fe(r)}`,o!=="normal"&&`padding${fe(o)}`,`size${fe(i)}`]};return _e(a,UZ,t)},YZ=ie("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${fe(n.size)}`],n.padding!=="normal"&&t[`padding${fe(n.padding)}`],n.align!=="inherit"&&t[`align${fe(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>k({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
293
|
+
${e.palette.mode==="light"?Ds(rt(e.palette.divider,1),.88):Ns(rt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${GZ.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),XZ=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:s,padding:a,scope:c,size:d,sortDirection:p,variant:h}=r,m=se(r,KZ),v=u.useContext(jZ),b=u.useContext(VZ),g=b&&b.variant==="head";let x;s?x=s:x=g?"th":"td";let C=c;x==="td"?C=void 0:!C&&g&&(C="col");const S=h||b&&b.variant,w=k({},r,{align:o,component:x,padding:a||(v&&v.padding?v.padding:"normal"),size:d||(v&&v.size?v.size:"medium"),sortDirection:p,stickyHeader:S==="head"&&v&&v.stickyHeader,variant:S}),E=qZ(w);let P=null;return p&&(P=p==="asc"?"ascending":"descending"),T.jsx(YZ,k({as:x,ref:n,className:me(E.root,i),"aria-sort":P,scope:C,ownerState:w},m))}),Vb=XZ;function QZ(e){return Qe("MuiToolbar",e)}Ke("MuiToolbar",["root","gutters","regular","dense"]);const JZ=["className","component","disableGutters","variant"],ZZ=e=>{const{classes:t,disableGutters:n,variant:r}=e;return _e({root:["root",!n&&"gutters",r]},QZ,t)},eee=ie("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>k({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),tee=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:s=!1,variant:a="regular"}=r,c=se(r,JZ),d=k({},r,{component:i,disableGutters:s,variant:a}),p=ZZ(d);return T.jsx(eee,k({as:i,className:me(p.root,o),ref:n,ownerState:d},c))}),vO=tee,Ub=Re(T.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Wb=Re(T.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");var zI,jI,HI,VI,UI,WI,GI,KI;const nee=["backIconButtonProps","count","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton"],ree=u.forwardRef(function(t,n){const{backIconButtonProps:r,count:o,getItemAriaLabel:i,nextIconButtonProps:s,onPageChange:a,page:c,rowsPerPage:d,showFirstButton:p,showLastButton:h}=t,m=se(t,nee),v=oo(),b=S=>{a(S,0)},g=S=>{a(S,c-1)},x=S=>{a(S,c+1)},C=S=>{a(S,Math.max(0,Math.ceil(o/d)-1))};return T.jsxs("div",k({ref:n},m,{children:[p&&T.jsx(ir,{onClick:b,disabled:c===0,"aria-label":i("first",c),title:i("first",c),children:v.direction==="rtl"?zI||(zI=T.jsx(MI,{})):jI||(jI=T.jsx(TI,{}))}),T.jsx(ir,k({onClick:g,disabled:c===0,color:"inherit","aria-label":i("previous",c),title:i("previous",c)},r,{children:v.direction==="rtl"?HI||(HI=T.jsx(Wb,{})):VI||(VI=T.jsx(Ub,{}))})),T.jsx(ir,k({onClick:x,disabled:o!==-1?c>=Math.ceil(o/d)-1:!1,color:"inherit","aria-label":i("next",c),title:i("next",c)},s,{children:v.direction==="rtl"?UI||(UI=T.jsx(Ub,{})):WI||(WI=T.jsx(Wb,{}))})),h&&T.jsx(ir,{onClick:C,disabled:c>=Math.ceil(o/d)-1,"aria-label":i("last",c),title:i("last",c),children:v.direction==="rtl"?GI||(GI=T.jsx(TI,{})):KI||(KI=T.jsx(MI,{}))})]}))}),oee=ree;function iee(e){return Qe("MuiTablePagination",e)}const see=Ke("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),ka=see;var qI;const lee=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton"],aee=ie(Vb,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),cee=ie(vO,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>k({[`& .${ka.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${ka.actions}`]:{flexShrink:0,marginLeft:20}})),uee=ie("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),dee=ie("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>k({},e.typography.body2,{flexShrink:0})),fee=ie(ox,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>k({[`& .${ka.selectIcon}`]:t.selectIcon,[`& .${ka.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${ka.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),pee=ie(ar,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),hee=ie("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>k({},e.typography.body2,{flexShrink:0}));function mee({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function gee(e){return`Go to ${e} page`}const vee=e=>{const{classes:t}=e;return _e({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},iee,t)},yee=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=oee,backIconButtonProps:i,className:s,colSpan:a,component:c=Vb,count:d,getItemAriaLabel:p=gee,labelDisplayedRows:h=mee,labelRowsPerPage:m="Rows per page:",nextIconButtonProps:v,onPageChange:b,onRowsPerPageChange:g,page:x,rowsPerPage:C,rowsPerPageOptions:S=[10,25,50,100],SelectProps:w={},showFirstButton:E=!1,showLastButton:P=!1}=r,_=se(r,lee),I=r,M=vee(I),O=w.native?"option":pee;let L;(c===Vb||c==="td")&&(L=a||1e3);const R=Tn(w.id),H=Tn(w.labelId),j=()=>d===-1?(x+1)*C:C===-1?d:Math.min(d,(x+1)*C);return T.jsx(aee,k({colSpan:L,ref:n,as:c,ownerState:I,className:me(M.root,s)},_,{children:T.jsxs(cee,{className:M.toolbar,children:[T.jsx(uee,{className:M.spacer}),S.length>1&&T.jsx(dee,{className:M.selectLabel,id:H,children:m}),S.length>1&&T.jsx(fee,k({variant:"standard"},!w.variant&&{input:qI||(qI=T.jsx(Du,{}))},{value:C,onChange:g,id:R,labelId:H},w,{classes:k({},w.classes,{root:me(M.input,M.selectRoot,(w.classes||{}).root),select:me(M.select,(w.classes||{}).select),icon:me(M.selectIcon,(w.classes||{}).icon)}),children:S.map(A=>u.createElement(O,k({},!Aa(O)&&{ownerState:I},{className:M.menuItem,key:A.label?A.label:A,value:A.value?A.value:A}),A.label?A.label:A))})),T.jsx(hee,{className:M.displayedRows,children:h({from:d===0?0:x*C+1,to:j(),count:d===-1?-1:d,page:x})}),T.jsx(o,{className:M.actions,backIconButtonProps:i,count:d,nextIconButtonProps:v,onPageChange:b,page:x,rowsPerPage:C,showFirstButton:E,showLastButton:P,getItemAriaLabel:p})]})}))}),bee=yee;function wee(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Cee(e,t,n,r={},o=()=>{}){const{ease:i=wee,duration:s=300}=r;let a=null;const c=t[e];let d=!1;const p=()=>{d=!0},h=m=>{if(d){o(new Error("Animation cancelled"));return}a===null&&(a=m);const v=Math.min(1,(m-a)/s);if(t[e]=i(v)*(n-c)+c,v>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(h)};return c===n?(o(new Error("Element already at target position")),p):(requestAnimationFrame(h),p)}const xee=["onChange"],See={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Eee(e){const{onChange:t}=e,n=se(e,xee),r=u.useRef(),o=u.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return u.useEffect(()=>{const s=zl(()=>{const c=r.current;i(),c!==r.current&&t(r.current)}),a=Eo(o.current);return a.addEventListener("resize",s),()=>{s.clear(),a.removeEventListener("resize",s)}},[t]),u.useEffect(()=>{i(),t(r.current)},[t]),T.jsx("div",k({style:See,ref:o},n))}function kee(e){return Qe("MuiTabScrollButton",e)}const Pee=Ke("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Iee=Pee;var YI,XI;const _ee=["className","direction","orientation","disabled"],$ee=e=>{const{classes:t,orientation:n,disabled:r}=e;return _e({root:["root",n,r&&"disabled"]},kee,t)},Tee=ie(ns,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>k({width:40,flexShrink:0,opacity:.8,[`&.${Iee.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Mee=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiTabScrollButton"}),{className:o,direction:i}=r,s=se(r,_ee),c=oo().direction==="rtl",d=k({isRtl:c},r),p=$ee(d);return T.jsx(Tee,k({component:"div",className:me(p.root,o),ref:n,role:null,ownerState:d,tabIndex:null},s,{children:i==="left"?YI||(YI=T.jsx(Ub,{fontSize:"small"})):XI||(XI=T.jsx(Wb,{fontSize:"small"}))}))}),Ree=Mee;function Oee(e){return Qe("MuiTabs",e)}const Lee=Ke("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),a1=Lee,Aee=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],QI=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,JI=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,zh=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=n(e,o);else{o.focus();return}}},Fee=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:s,scrollButtonsHideMobile:a,classes:c}=e;return _e({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},Oee,c)},Nee=ie("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${a1.scrollButtons}`]:t.scrollButtons},{[`& .${a1.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>k({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${a1.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),Dee=ie("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>k({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Bee=ie("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>k({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),zee=ie("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>k({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),jee=ie(Eee,{name:"MuiTabs",slot:"ScrollbarSize"})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),ZI={},Hee=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiTabs"}),o=oo(),i=o.direction==="rtl",{"aria-label":s,"aria-labelledby":a,action:c,centered:d=!1,children:p,className:h,component:m="div",allowScrollButtonsMobile:v=!1,indicatorColor:b="primary",onChange:g,orientation:x="horizontal",ScrollButtonComponent:C=Ree,scrollButtons:S="auto",selectionFollowsFocus:w,TabIndicatorProps:E={},TabScrollButtonProps:P={},textColor:_="primary",value:I,variant:M="standard",visibleScrollbar:O=!1}=r,L=se(r,Aee),R=M==="scrollable",H=x==="vertical",j=H?"scrollTop":"scrollLeft",A=H?"top":"left",F=H?"bottom":"right",B=H?"clientHeight":"clientWidth",G=H?"height":"width",N=k({},r,{component:m,allowScrollButtonsMobile:v,indicatorColor:b,orientation:x,vertical:H,scrollButtons:S,textColor:_,variant:M,visibleScrollbar:O,fixed:!R,hideScrollbar:R&&!O,scrollableX:R&&!H,scrollableY:R&&H,centered:d&&!R,scrollButtonsHideMobile:!v}),z=Fee(N),[W,q]=u.useState(!1),[X,le]=u.useState(ZI),[Q,ge]=u.useState({start:!1,end:!1}),[ee,ce]=u.useState({overflow:"hidden",scrollbarWidth:0}),oe=new Map,de=u.useRef(null),be=u.useRef(null),we=()=>{const ue=de.current;let J;if(ue){const Me=ue.getBoundingClientRect();J={clientWidth:ue.clientWidth,scrollLeft:ue.scrollLeft,scrollTop:ue.scrollTop,scrollLeftNormalized:u2(ue,o.direction),scrollWidth:ue.scrollWidth,top:Me.top,bottom:Me.bottom,left:Me.left,right:Me.right}}let Oe;if(ue&&I!==!1){const Me=be.current.children;if(Me.length>0){const Je=Me[oe.get(I)];Oe=Je?Je.getBoundingClientRect():null}}return{tabsMeta:J,tabMeta:Oe}},$e=cn(()=>{const{tabsMeta:ue,tabMeta:J}=we();let Oe=0,Me;if(H)Me="top",J&&ue&&(Oe=J.top-ue.top+ue.scrollTop);else if(Me=i?"right":"left",J&&ue){const wt=i?ue.scrollLeftNormalized+ue.clientWidth-ue.scrollWidth:ue.scrollLeft;Oe=(i?-1:1)*(J[Me]-ue[Me]+wt)}const Je={[Me]:Oe,[G]:J?J[G]:0};if(isNaN(X[Me])||isNaN(X[G]))le(Je);else{const wt=Math.abs(X[Me]-Je[Me]),It=Math.abs(X[G]-Je[G]);(wt>=1||It>=1)&&le(Je)}}),Ve=(ue,{animation:J=!0}={})=>{J?Cee(j,de.current,ue,{duration:o.transitions.duration.standard}):de.current[j]=ue},De=ue=>{let J=de.current[j];H?J+=ue:(J+=ue*(i?-1:1),J*=i&&HM()==="reverse"?-1:1),Ve(J)},re=()=>{const ue=de.current[B];let J=0;const Oe=Array.from(be.current.children);for(let Me=0;Me<Oe.length;Me+=1){const Je=Oe[Me];if(J+Je[B]>ue){Me===0&&(J=ue);break}J+=Je[B]}return J},Ae=()=>{De(-1*re())},ve=()=>{De(re())},He=u.useCallback(ue=>{ce({overflow:null,scrollbarWidth:ue})},[]),Xe=()=>{const ue={};ue.scrollbarSizeListener=R?T.jsx(jee,{onChange:He,className:me(z.scrollableX,z.hideScrollbar)}):null;const J=Q.start||Q.end,Oe=R&&(S==="auto"&&J||S===!0);return ue.scrollButtonStart=Oe?T.jsx(C,k({orientation:x,direction:i?"right":"left",onClick:Ae,disabled:!Q.start},P,{className:me(z.scrollButtons,P.className)})):null,ue.scrollButtonEnd=Oe?T.jsx(C,k({orientation:x,direction:i?"left":"right",onClick:ve,disabled:!Q.end},P,{className:me(z.scrollButtons,P.className)})):null,ue},ft=cn(ue=>{const{tabsMeta:J,tabMeta:Oe}=we();if(!(!Oe||!J)){if(Oe[A]<J[A]){const Me=J[j]+(Oe[A]-J[A]);Ve(Me,{animation:ue})}else if(Oe[F]>J[F]){const Me=J[j]+(Oe[F]-J[F]);Ve(Me,{animation:ue})}}}),ze=cn(()=>{if(R&&S!==!1){const{scrollTop:ue,scrollHeight:J,clientHeight:Oe,scrollWidth:Me,clientWidth:Je}=de.current;let wt,It;if(H)wt=ue>1,It=ue<J-Oe-1;else{const Kt=u2(de.current,o.direction);wt=i?Kt<Me-Je-1:Kt>1,It=i?Kt>1:Kt<Me-Je-1}(wt!==Q.start||It!==Q.end)&&ge({start:wt,end:It})}});u.useEffect(()=>{const ue=zl(()=>{de.current&&($e(),ze())}),J=Eo(de.current);J.addEventListener("resize",ue);let Oe;return typeof ResizeObserver!="undefined"&&(Oe=new ResizeObserver(ue),Array.from(be.current.children).forEach(Me=>{Oe.observe(Me)})),()=>{ue.clear(),J.removeEventListener("resize",ue),Oe&&Oe.disconnect()}},[$e,ze]);const pt=u.useMemo(()=>zl(()=>{ze()}),[ze]);u.useEffect(()=>()=>{pt.clear()},[pt]),u.useEffect(()=>{q(!0)},[]),u.useEffect(()=>{$e(),ze()}),u.useEffect(()=>{ft(ZI!==X)},[ft,X]),u.useImperativeHandle(c,()=>({updateIndicator:$e,updateScrollButtons:ze}),[$e,ze]);const ot=T.jsx(zee,k({},E,{className:me(z.indicator,E.className),ownerState:N,style:k({},X,E.style)}));let ct=0;const vt=u.Children.map(p,ue=>{if(!u.isValidElement(ue))return null;const J=ue.props.value===void 0?ct:ue.props.value;oe.set(J,ct);const Oe=J===I;return ct+=1,u.cloneElement(ue,k({fullWidth:M==="fullWidth",indicator:Oe&&!W&&ot,selected:Oe,selectionFollowsFocus:w,onChange:g,textColor:_,value:J},ct===1&&I===!1&&!ue.props.tabIndex?{tabIndex:0}:{}))}),ut=ue=>{const J=be.current,Oe=gn(J).activeElement;if(Oe.getAttribute("role")!=="tab")return;let Je=x==="horizontal"?"ArrowLeft":"ArrowUp",wt=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&i&&(Je="ArrowRight",wt="ArrowLeft"),ue.key){case Je:ue.preventDefault(),zh(J,Oe,JI);break;case wt:ue.preventDefault(),zh(J,Oe,QI);break;case"Home":ue.preventDefault(),zh(J,null,QI);break;case"End":ue.preventDefault(),zh(J,null,JI);break}},Ue=Xe();return T.jsxs(Nee,k({className:me(z.root,h),ownerState:N,ref:n,as:m},L,{children:[Ue.scrollButtonStart,Ue.scrollbarSizeListener,T.jsxs(Dee,{className:z.scroller,ownerState:N,style:{overflow:ee.overflow,[H?`margin${i?"Left":"Right"}`:"marginBottom"]:O?void 0:-ee.scrollbarWidth},ref:de,onScroll:pt,children:[T.jsx(Bee,{"aria-label":s,"aria-labelledby":a,"aria-orientation":x==="vertical"?"vertical":null,className:z.flexContainer,ownerState:N,onKeyDown:ut,ref:be,role:"tablist",children:vt}),W&&ot]}),Ue.scrollButtonEnd]}))}),yO=Hee;function Vee(e){return Qe("MuiTextField",e)}Ke("MuiTextField",["root"]);const Uee=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Wee={standard:rO,filled:YR,outlined:pO},Gee=e=>{const{classes:t}=e;return _e({root:["root"]},Vee,t)},Kee=ie(Ya,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),qee=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:s,className:a,color:c="primary",defaultValue:d,disabled:p=!1,error:h=!1,FormHelperTextProps:m,fullWidth:v=!1,helperText:b,id:g,InputLabelProps:x,inputProps:C,InputProps:S,inputRef:w,label:E,maxRows:P,minRows:_,multiline:I=!1,name:M,onBlur:O,onChange:L,onFocus:R,placeholder:H,required:j=!1,rows:A,select:F=!1,SelectProps:B,type:G,value:N,variant:z="outlined"}=r,W=se(r,Uee),q=k({},r,{autoFocus:i,color:c,disabled:p,error:h,fullWidth:v,multiline:I,required:j,select:F,variant:z}),X=Gee(q),le={};z==="outlined"&&(x&&typeof x.shrink!="undefined"&&(le.notched=x.shrink),le.label=E),F&&((!B||!B.native)&&(le.id=void 0),le["aria-describedby"]=void 0);const Q=Tn(g),ge=b&&Q?`${Q}-helper-text`:void 0,ee=E&&Q?`${Q}-label`:void 0,ce=Wee[z],oe=T.jsx(ce,k({"aria-describedby":ge,autoComplete:o,autoFocus:i,defaultValue:d,fullWidth:v,multiline:I,name:M,rows:A,maxRows:P,minRows:_,type:G,value:N,id:Q,inputRef:w,onBlur:O,onChange:L,onFocus:R,placeholder:H,inputProps:C},le,S));return T.jsxs(Kee,k({className:me(X.root,a),disabled:p,error:h,fullWidth:v,ref:n,required:j,color:c,variant:z,ownerState:q},W,{children:[E!=null&&E!==""&&T.jsx(jb,k({htmlFor:Q,id:ee},x,{children:E})),F?T.jsx(ox,k({"aria-describedby":ge,id:Q,labelId:ee,value:N,input:oe},B,{children:s})):oe,b&&T.jsx($v,k({id:ge},m,{children:b}))]}))}),lp=qee,Yee=Re(T.jsx("path",{d:"M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3z"}),"AccountTree"),ix=Re(T.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),Xee=Re(T.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),Qee=Re(T.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12zm8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8z"}),"Block"),bO=Re(T.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Jee=Re(T.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle"),Zee=Re(T.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),Ov=Re(T.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"),ete=Re(T.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96z"}),"Cloud"),tte=Re(T.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"}),"Code"),nte=Re(T.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"}),"ContentCopy"),os=Re(T.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete"),rte=Re(T.jsx("path",{d:"M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z"}),"Download"),wO=Re(T.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit"),ote=Re(T.jsx("path",{d:"M5 17h14v2H5zm7-12L5.33 15h13.34z"}),"Eject"),sx=Re(T.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}),"Error"),ite=Re(T.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),ste=Re(T.jsx("path",{d:"M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11z"}),"Extension"),lte=Re(T.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-8l-2-2z"}),"Folder"),ate=Re(T.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-2zm-2 6h-2v2h2v2h-2v2h-2v-2h2v-2h-2v-2h2v-2h-2V8h2v2h2v2z"}),"FolderZip"),cte=Re(T.jsx("path",{d:"M12 8V4l8 8-8 8v-4H4V8z"}),"Forward"),ute=Re(T.jsx("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub"),CO=Re(T.jsx("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"}),"Group"),dte=Re(T.jsx("path",{d:"M14.59 8 12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41 14.59 8zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"HighlightOff"),fte=Re(T.jsx("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"}),"History"),pte=Re(T.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home"),rg=Re(T.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info"),hte=Re(T.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-2V8l-6-6zM6 20V4h7v5h5v11H6z"}),"InsertDriveFileOutlined"),mte=Re(T.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}),"Launch"),xO=Re(T.jsx("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"}),"Lock"),gte=Re(T.jsx("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z"}),"Logout"),vte=Re([T.jsx("circle",{cx:"10",cy:"8",r:"4"},"0"),T.jsx("path",{d:"M10.67 13.02c-.22-.01-.44-.02-.67-.02-2.42 0-4.68.67-6.61 1.82-.88.52-1.39 1.5-1.39 2.53V20h9.26c-.79-1.13-1.26-2.51-1.26-4 0-1.07.25-2.07.67-2.98zM20.75 16c0-.22-.03-.42-.06-.63l1.14-1.01-1-1.73-1.45.49c-.32-.27-.68-.48-1.08-.63L18 11h-2l-.3 1.49c-.4.15-.76.36-1.08.63l-1.45-.49-1 1.73 1.14 1.01c-.03.21-.06.41-.06.63s.03.42.06.63l-1.14 1.01 1 1.73 1.45-.49c.32.27.68.48 1.08.63L16 21h2l.3-1.49c.4-.15.76-.36 1.08-.63l1.45.49 1-1.73-1.14-1.01c.03-.21.06-.41.06-.63zM17 18c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"},"1")],"ManageAccounts"),yte=Re(T.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu"),bte=Re(T.jsx("path",{d:"M17 10.43V2H7v8.43c0 .35.18.68.49.86l4.18 2.51-.99 2.34-3.41.29 2.59 2.24L9.07 22 12 20.23 14.93 22l-.78-3.33 2.59-2.24-3.41-.29-.99-2.34 4.18-2.51c.3-.18.48-.5.48-.86zm-4 1.8-1 .6-1-.6V3h2v9.23z"}),"MilitaryTech"),wte=Re(T.jsx("path",{d:"M20 3H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h3l-1 1v2h12v-2l-1-1h3c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 13H4V5h16v11z"}),"Monitor"),Cte=Re(T.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 14H9V8h2v8zm4 0h-2V8h2v8z"}),"PauseCircle"),xte=Re(T.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"),Ste=Re(T.jsx("path",{d:"M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm-9-2V7H4v3H1v2h3v3h2v-3h3v-2H6zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"PersonAdd"),lx=Re(T.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM9.5 16.5v-9l7 4.5-7 4.5z"}),"PlayCircle"),Ete=Re(T.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"}),"Public"),ax=Re(T.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 11h7V4l-2.35 2.35z"}),"Refresh"),kte=Re(T.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.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"RemoveRedEye"),SO=Re(T.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"}),"Save"),Pte=Re(T.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search"),EO=Re(T.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}),"Settings"),e_=Re(T.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4 14H8V8h8v8z"}),"StopCircle"),Ite=Re([T.jsx("path",{d:"M2 16.5C2 19.54 4.46 22 7.5 22s5.5-2.46 5.5-5.5V10H2v6.5zm5.5 2C6.12 18.5 5 17.83 5 17h5c0 .83-1.12 1.5-2.5 1.5zM10 13c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm-5 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z"},"0"),T.jsx("path",{d:"M11 3v6h3v2.5c0-.83 1.12-1.5 2.5-1.5s2.5.67 2.5 1.5h-5v2.89c.75.38 1.6.61 2.5.61 3.04 0 5.5-2.46 5.5-5.5V3H11zm3 5.08c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1c0 .56-.45 1-1 1zm5 0c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1c0 .56-.45 1-1 1z"},"1")],"TheaterComedy"),_te=Re(T.jsx("path",{d:"m12.87 15.07-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7 1.62-4.33L19.12 17h-3.24z"}),"Translate"),$te=Re(T.jsx("path",{d:"M16 18v2H8v-2h8zM11 7.99V16h2V7.99h3L12 4 8 7.99h3z"}),"Upgrade"),Lv=Re(T.jsx("path",{d:"M5 20h14v-2H5v2zm0-10h4v6h6v-6h4l-7-7-7 7z"}),"Upload"),Tte=Re(T.jsx("path",{d:"M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"}),"VerticalAlignTop"),cx=Re(T.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning"),Mte=Re(T.jsx("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 14H4v-4h11v4zm0-5H4V9h11v4zm5 5h-4V9h4v9z"}),"Web");var Ps={},Rte={get exports(){return Ps},set exports(e){Ps=e}};/**
|
|
294
|
+
* @license
|
|
295
|
+
* Lodash <https://lodash.com/>
|
|
296
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
297
|
+
* Released under MIT license <https://lodash.com/license>
|
|
298
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
299
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
300
|
+
*/(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,p="__lodash_placeholder__",h=1,m=2,v=4,b=1,g=2,x=1,C=2,S=4,w=8,E=16,P=32,_=64,I=128,M=256,O=512,L=30,R="...",H=800,j=16,A=1,F=2,B=3,G=1/0,N=9007199254740991,z=17976931348623157e292,W=0/0,q=4294967295,X=q-1,le=q>>>1,Q=[["ary",I],["bind",x],["bindKey",C],["curry",w],["curryRight",E],["flip",O],["partial",P],["partialRight",_],["rearg",M]],ge="[object Arguments]",ee="[object Array]",ce="[object AsyncFunction]",oe="[object Boolean]",de="[object Date]",be="[object DOMException]",we="[object Error]",$e="[object Function]",Ve="[object GeneratorFunction]",De="[object Map]",re="[object Number]",Ae="[object Null]",ve="[object Object]",He="[object Promise]",Xe="[object Proxy]",ft="[object RegExp]",ze="[object Set]",pt="[object String]",ot="[object Symbol]",ct="[object Undefined]",vt="[object WeakMap]",ut="[object WeakSet]",Ue="[object ArrayBuffer]",ue="[object DataView]",J="[object Float32Array]",Oe="[object Float64Array]",Me="[object Int8Array]",Je="[object Int16Array]",wt="[object Int32Array]",It="[object Uint8Array]",Kt="[object Uint8ClampedArray]",Vn="[object Uint16Array]",Rr="[object Uint32Array]",er=/\b__p \+= '';/g,vr=/\b(__p \+=) '' \+/g,yr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,br=/&(?:amp|lt|gt|quot|#39);/g,rn=/[&<>"']/g,dn=RegExp(br.source),Un=RegExp(rn.source),li=/<%-([\s\S]+?)%>/g,Ti=/<%([\s\S]+?)%>/g,ss=/<%=([\s\S]+?)%>/g,Mi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ri=/^\w*$/,ae=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ce=/[\\^$.*+?()[\]{}|]/g,Fe=RegExp(Ce.source),st=/^\s+/,Le=/\s/,lt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,xt=/\{\n\/\* \[wrapped with (.+)\] \*/,Qt=/,? & /,On=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,io=/[()=,{}\[\]\/\s]/,Se=/\\(\\)?/g,ye=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,je=/\w*$/,at=/^[-+]0x[0-9a-f]+$/i,zt=/^0b[01]+$/i,En=/^\[object .+?Constructor\]$/,kn=/^0o[0-7]+$/i,gt=/^(?:0|[1-9]\d*)$/,tr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Sp=/($^)/,uF=/['\n\r\u2028\u2029\\]/g,Ep="\\ud800-\\udfff",dF="\\u0300-\\u036f",fF="\\ufe20-\\ufe2f",pF="\\u20d0-\\u20ff",hS=dF+fF+pF,mS="\\u2700-\\u27bf",gS="a-z\\xdf-\\xf6\\xf8-\\xff",hF="\\xac\\xb1\\xd7\\xf7",mF="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",gF="\\u2000-\\u206f",vF=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",vS="A-Z\\xc0-\\xd6\\xd8-\\xde",yS="\\ufe0e\\ufe0f",bS=hF+mF+gF+vF,cy="['’]",yF="["+Ep+"]",wS="["+bS+"]",kp="["+hS+"]",CS="\\d+",bF="["+mS+"]",xS="["+gS+"]",SS="[^"+Ep+bS+CS+mS+gS+vS+"]",uy="\\ud83c[\\udffb-\\udfff]",wF="(?:"+kp+"|"+uy+")",ES="[^"+Ep+"]",dy="(?:\\ud83c[\\udde6-\\uddff]){2}",fy="[\\ud800-\\udbff][\\udc00-\\udfff]",nc="["+vS+"]",kS="\\u200d",PS="(?:"+xS+"|"+SS+")",CF="(?:"+nc+"|"+SS+")",IS="(?:"+cy+"(?:d|ll|m|re|s|t|ve))?",_S="(?:"+cy+"(?:D|LL|M|RE|S|T|VE))?",$S=wF+"?",TS="["+yS+"]?",xF="(?:"+kS+"(?:"+[ES,dy,fy].join("|")+")"+TS+$S+")*",SF="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",EF="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",MS=TS+$S+xF,kF="(?:"+[bF,dy,fy].join("|")+")"+MS,PF="(?:"+[ES+kp+"?",kp,dy,fy,yF].join("|")+")",IF=RegExp(cy,"g"),_F=RegExp(kp,"g"),py=RegExp(uy+"(?="+uy+")|"+PF+MS,"g"),$F=RegExp([nc+"?"+xS+"+"+IS+"(?="+[wS,nc,"$"].join("|")+")",CF+"+"+_S+"(?="+[wS,nc+PS,"$"].join("|")+")",nc+"?"+PS+"+"+IS,nc+"+"+_S,EF,SF,CS,kF].join("|"),"g"),TF=RegExp("["+kS+Ep+hS+yS+"]"),MF=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,RF=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],OF=-1,fn={};fn[J]=fn[Oe]=fn[Me]=fn[Je]=fn[wt]=fn[It]=fn[Kt]=fn[Vn]=fn[Rr]=!0,fn[ge]=fn[ee]=fn[Ue]=fn[oe]=fn[ue]=fn[de]=fn[we]=fn[$e]=fn[De]=fn[re]=fn[ve]=fn[ft]=fn[ze]=fn[pt]=fn[vt]=!1;var ln={};ln[ge]=ln[ee]=ln[Ue]=ln[ue]=ln[oe]=ln[de]=ln[J]=ln[Oe]=ln[Me]=ln[Je]=ln[wt]=ln[De]=ln[re]=ln[ve]=ln[ft]=ln[ze]=ln[pt]=ln[ot]=ln[It]=ln[Kt]=ln[Vn]=ln[Rr]=!0,ln[we]=ln[$e]=ln[vt]=!1;var LF={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},AF={"&":"&","<":"<",">":">",'"':""","'":"'"},FF={"&":"&","<":"<",">":">",""":'"',"'":"'"},NF={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},DF=parseFloat,BF=parseInt,RS=typeof hn=="object"&&hn&&hn.Object===Object&&hn,zF=typeof self=="object"&&self&&self.Object===Object&&self,dr=RS||zF||Function("return this")(),hy=t&&!t.nodeType&&t,Zl=hy&&!0&&e&&!e.nodeType&&e,OS=Zl&&Zl.exports===hy,my=OS&&RS.process,Ro=function(){try{var Z=Zl&&Zl.require&&Zl.require("util").types;return Z||my&&my.binding&&my.binding("util")}catch(xe){}}(),LS=Ro&&Ro.isArrayBuffer,AS=Ro&&Ro.isDate,FS=Ro&&Ro.isMap,NS=Ro&&Ro.isRegExp,DS=Ro&&Ro.isSet,BS=Ro&&Ro.isTypedArray;function so(Z,xe,he){switch(he.length){case 0:return Z.call(xe);case 1:return Z.call(xe,he[0]);case 2:return Z.call(xe,he[0],he[1]);case 3:return Z.call(xe,he[0],he[1],he[2])}return Z.apply(xe,he)}function jF(Z,xe,he,We){for(var bt=-1,Ut=Z==null?0:Z.length;++bt<Ut;){var Yn=Z[bt];xe(We,Yn,he(Yn),Z)}return We}function Oo(Z,xe){for(var he=-1,We=Z==null?0:Z.length;++he<We&&xe(Z[he],he,Z)!==!1;);return Z}function HF(Z,xe){for(var he=Z==null?0:Z.length;he--&&xe(Z[he],he,Z)!==!1;);return Z}function zS(Z,xe){for(var he=-1,We=Z==null?0:Z.length;++he<We;)if(!xe(Z[he],he,Z))return!1;return!0}function Gs(Z,xe){for(var he=-1,We=Z==null?0:Z.length,bt=0,Ut=[];++he<We;){var Yn=Z[he];xe(Yn,he,Z)&&(Ut[bt++]=Yn)}return Ut}function Pp(Z,xe){var he=Z==null?0:Z.length;return!!he&&rc(Z,xe,0)>-1}function gy(Z,xe,he){for(var We=-1,bt=Z==null?0:Z.length;++We<bt;)if(he(xe,Z[We]))return!0;return!1}function yn(Z,xe){for(var he=-1,We=Z==null?0:Z.length,bt=Array(We);++he<We;)bt[he]=xe(Z[he],he,Z);return bt}function Ks(Z,xe){for(var he=-1,We=xe.length,bt=Z.length;++he<We;)Z[bt+he]=xe[he];return Z}function vy(Z,xe,he,We){var bt=-1,Ut=Z==null?0:Z.length;for(We&&Ut&&(he=Z[++bt]);++bt<Ut;)he=xe(he,Z[bt],bt,Z);return he}function VF(Z,xe,he,We){var bt=Z==null?0:Z.length;for(We&&bt&&(he=Z[--bt]);bt--;)he=xe(he,Z[bt],bt,Z);return he}function yy(Z,xe){for(var he=-1,We=Z==null?0:Z.length;++he<We;)if(xe(Z[he],he,Z))return!0;return!1}var UF=by("length");function WF(Z){return Z.split("")}function GF(Z){return Z.match(On)||[]}function jS(Z,xe,he){var We;return he(Z,function(bt,Ut,Yn){if(xe(bt,Ut,Yn))return We=Ut,!1}),We}function Ip(Z,xe,he,We){for(var bt=Z.length,Ut=he+(We?1:-1);We?Ut--:++Ut<bt;)if(xe(Z[Ut],Ut,Z))return Ut;return-1}function rc(Z,xe,he){return xe===xe?oN(Z,xe,he):Ip(Z,HS,he)}function KF(Z,xe,he,We){for(var bt=he-1,Ut=Z.length;++bt<Ut;)if(We(Z[bt],xe))return bt;return-1}function HS(Z){return Z!==Z}function VS(Z,xe){var he=Z==null?0:Z.length;return he?Cy(Z,xe)/he:W}function by(Z){return function(xe){return xe==null?n:xe[Z]}}function wy(Z){return function(xe){return Z==null?n:Z[xe]}}function US(Z,xe,he,We,bt){return bt(Z,function(Ut,Yn,on){he=We?(We=!1,Ut):xe(he,Ut,Yn,on)}),he}function qF(Z,xe){var he=Z.length;for(Z.sort(xe);he--;)Z[he]=Z[he].value;return Z}function Cy(Z,xe){for(var he,We=-1,bt=Z.length;++We<bt;){var Ut=xe(Z[We]);Ut!==n&&(he=he===n?Ut:he+Ut)}return he}function xy(Z,xe){for(var he=-1,We=Array(Z);++he<Z;)We[he]=xe(he);return We}function YF(Z,xe){return yn(xe,function(he){return[he,Z[he]]})}function WS(Z){return Z&&Z.slice(0,YS(Z)+1).replace(st,"")}function lo(Z){return function(xe){return Z(xe)}}function Sy(Z,xe){return yn(xe,function(he){return Z[he]})}function Ju(Z,xe){return Z.has(xe)}function GS(Z,xe){for(var he=-1,We=Z.length;++he<We&&rc(xe,Z[he],0)>-1;);return he}function KS(Z,xe){for(var he=Z.length;he--&&rc(xe,Z[he],0)>-1;);return he}function XF(Z,xe){for(var he=Z.length,We=0;he--;)Z[he]===xe&&++We;return We}var QF=wy(LF),JF=wy(AF);function ZF(Z){return"\\"+NF[Z]}function eN(Z,xe){return Z==null?n:Z[xe]}function oc(Z){return TF.test(Z)}function tN(Z){return MF.test(Z)}function nN(Z){for(var xe,he=[];!(xe=Z.next()).done;)he.push(xe.value);return he}function Ey(Z){var xe=-1,he=Array(Z.size);return Z.forEach(function(We,bt){he[++xe]=[bt,We]}),he}function qS(Z,xe){return function(he){return Z(xe(he))}}function qs(Z,xe){for(var he=-1,We=Z.length,bt=0,Ut=[];++he<We;){var Yn=Z[he];(Yn===xe||Yn===p)&&(Z[he]=p,Ut[bt++]=he)}return Ut}function _p(Z){var xe=-1,he=Array(Z.size);return Z.forEach(function(We){he[++xe]=We}),he}function rN(Z){var xe=-1,he=Array(Z.size);return Z.forEach(function(We){he[++xe]=[We,We]}),he}function oN(Z,xe,he){for(var We=he-1,bt=Z.length;++We<bt;)if(Z[We]===xe)return We;return-1}function iN(Z,xe,he){for(var We=he+1;We--;)if(Z[We]===xe)return We;return We}function ic(Z){return oc(Z)?lN(Z):UF(Z)}function ai(Z){return oc(Z)?aN(Z):WF(Z)}function YS(Z){for(var xe=Z.length;xe--&&Le.test(Z.charAt(xe)););return xe}var sN=wy(FF);function lN(Z){for(var xe=py.lastIndex=0;py.test(Z);)++xe;return xe}function aN(Z){return Z.match(py)||[]}function cN(Z){return Z.match($F)||[]}var uN=function Z(xe){xe=xe==null?dr:sc.defaults(dr.Object(),xe,sc.pick(dr,RF));var he=xe.Array,We=xe.Date,bt=xe.Error,Ut=xe.Function,Yn=xe.Math,on=xe.Object,ky=xe.RegExp,dN=xe.String,Lo=xe.TypeError,$p=he.prototype,fN=Ut.prototype,lc=on.prototype,Tp=xe["__core-js_shared__"],Mp=fN.toString,Jt=lc.hasOwnProperty,pN=0,XS=function(){var l=/[^.]+$/.exec(Tp&&Tp.keys&&Tp.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),Rp=lc.toString,hN=Mp.call(on),mN=dr._,gN=ky("^"+Mp.call(Jt).replace(Ce,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Op=OS?xe.Buffer:n,Ys=xe.Symbol,Lp=xe.Uint8Array,QS=Op?Op.allocUnsafe:n,Ap=qS(on.getPrototypeOf,on),JS=on.create,ZS=lc.propertyIsEnumerable,Fp=$p.splice,eE=Ys?Ys.isConcatSpreadable:n,Zu=Ys?Ys.iterator:n,ea=Ys?Ys.toStringTag:n,Np=function(){try{var l=ia(on,"defineProperty");return l({},"",{}),l}catch(f){}}(),vN=xe.clearTimeout!==dr.clearTimeout&&xe.clearTimeout,yN=We&&We.now!==dr.Date.now&&We.now,bN=xe.setTimeout!==dr.setTimeout&&xe.setTimeout,Dp=Yn.ceil,Bp=Yn.floor,Py=on.getOwnPropertySymbols,wN=Op?Op.isBuffer:n,tE=xe.isFinite,CN=$p.join,xN=qS(on.keys,on),Xn=Yn.max,wr=Yn.min,SN=We.now,EN=xe.parseInt,nE=Yn.random,kN=$p.reverse,Iy=ia(xe,"DataView"),ed=ia(xe,"Map"),_y=ia(xe,"Promise"),ac=ia(xe,"Set"),td=ia(xe,"WeakMap"),nd=ia(on,"create"),zp=td&&new td,cc={},PN=sa(Iy),IN=sa(ed),_N=sa(_y),$N=sa(ac),TN=sa(td),jp=Ys?Ys.prototype:n,rd=jp?jp.valueOf:n,rE=jp?jp.toString:n;function V(l){if(Ln(l)&&!Ct(l)&&!(l instanceof At)){if(l instanceof Ao)return l;if(Jt.call(l,"__wrapped__"))return ok(l)}return new Ao(l)}var uc=function(){function l(){}return function(f){if(!Pn(f))return{};if(JS)return JS(f);l.prototype=f;var y=new l;return l.prototype=n,y}}();function Hp(){}function Ao(l,f){this.__wrapped__=l,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=n}V.templateSettings={escape:li,evaluate:Ti,interpolate:ss,variable:"",imports:{_:V}},V.prototype=Hp.prototype,V.prototype.constructor=V,Ao.prototype=uc(Hp.prototype),Ao.prototype.constructor=Ao;function At(l){this.__wrapped__=l,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=q,this.__views__=[]}function MN(){var l=new At(this.__wrapped__);return l.__actions__=Hr(this.__actions__),l.__dir__=this.__dir__,l.__filtered__=this.__filtered__,l.__iteratees__=Hr(this.__iteratees__),l.__takeCount__=this.__takeCount__,l.__views__=Hr(this.__views__),l}function RN(){if(this.__filtered__){var l=new At(this);l.__dir__=-1,l.__filtered__=!0}else l=this.clone(),l.__dir__*=-1;return l}function ON(){var l=this.__wrapped__.value(),f=this.__dir__,y=Ct(l),$=f<0,D=y?l.length:0,U=W4(0,D,this.__views__),K=U.start,Y=U.end,ne=Y-K,Ee=$?Y:K-1,ke=this.__iteratees__,Pe=ke.length,Be=0,tt=wr(ne,this.__takeCount__);if(!y||!$&&D==ne&&tt==ne)return IE(l,this.__actions__);var ht=[];e:for(;ne--&&Be<tt;){Ee+=f;for(var kt=-1,mt=l[Ee];++kt<Pe;){var Mt=ke[kt],Dt=Mt.iteratee,uo=Mt.type,Ar=Dt(mt);if(uo==F)mt=Ar;else if(!Ar){if(uo==A)continue e;break e}}ht[Be++]=mt}return ht}At.prototype=uc(Hp.prototype),At.prototype.constructor=At;function ta(l){var f=-1,y=l==null?0:l.length;for(this.clear();++f<y;){var $=l[f];this.set($[0],$[1])}}function LN(){this.__data__=nd?nd(null):{},this.size=0}function AN(l){var f=this.has(l)&&delete this.__data__[l];return this.size-=f?1:0,f}function FN(l){var f=this.__data__;if(nd){var y=f[l];return y===c?n:y}return Jt.call(f,l)?f[l]:n}function NN(l){var f=this.__data__;return nd?f[l]!==n:Jt.call(f,l)}function DN(l,f){var y=this.__data__;return this.size+=this.has(l)?0:1,y[l]=nd&&f===n?c:f,this}ta.prototype.clear=LN,ta.prototype.delete=AN,ta.prototype.get=FN,ta.prototype.has=NN,ta.prototype.set=DN;function ls(l){var f=-1,y=l==null?0:l.length;for(this.clear();++f<y;){var $=l[f];this.set($[0],$[1])}}function BN(){this.__data__=[],this.size=0}function zN(l){var f=this.__data__,y=Vp(f,l);if(y<0)return!1;var $=f.length-1;return y==$?f.pop():Fp.call(f,y,1),--this.size,!0}function jN(l){var f=this.__data__,y=Vp(f,l);return y<0?n:f[y][1]}function HN(l){return Vp(this.__data__,l)>-1}function VN(l,f){var y=this.__data__,$=Vp(y,l);return $<0?(++this.size,y.push([l,f])):y[$][1]=f,this}ls.prototype.clear=BN,ls.prototype.delete=zN,ls.prototype.get=jN,ls.prototype.has=HN,ls.prototype.set=VN;function as(l){var f=-1,y=l==null?0:l.length;for(this.clear();++f<y;){var $=l[f];this.set($[0],$[1])}}function UN(){this.size=0,this.__data__={hash:new ta,map:new(ed||ls),string:new ta}}function WN(l){var f=th(this,l).delete(l);return this.size-=f?1:0,f}function GN(l){return th(this,l).get(l)}function KN(l){return th(this,l).has(l)}function qN(l,f){var y=th(this,l),$=y.size;return y.set(l,f),this.size+=y.size==$?0:1,this}as.prototype.clear=UN,as.prototype.delete=WN,as.prototype.get=GN,as.prototype.has=KN,as.prototype.set=qN;function na(l){var f=-1,y=l==null?0:l.length;for(this.__data__=new as;++f<y;)this.add(l[f])}function YN(l){return this.__data__.set(l,c),this}function XN(l){return this.__data__.has(l)}na.prototype.add=na.prototype.push=YN,na.prototype.has=XN;function ci(l){var f=this.__data__=new ls(l);this.size=f.size}function QN(){this.__data__=new ls,this.size=0}function JN(l){var f=this.__data__,y=f.delete(l);return this.size=f.size,y}function ZN(l){return this.__data__.get(l)}function e4(l){return this.__data__.has(l)}function t4(l,f){var y=this.__data__;if(y instanceof ls){var $=y.__data__;if(!ed||$.length<o-1)return $.push([l,f]),this.size=++y.size,this;y=this.__data__=new as($)}return y.set(l,f),this.size=y.size,this}ci.prototype.clear=QN,ci.prototype.delete=JN,ci.prototype.get=ZN,ci.prototype.has=e4,ci.prototype.set=t4;function oE(l,f){var y=Ct(l),$=!y&&la(l),D=!y&&!$&&el(l),U=!y&&!$&&!D&&hc(l),K=y||$||D||U,Y=K?xy(l.length,dN):[],ne=Y.length;for(var Ee in l)(f||Jt.call(l,Ee))&&!(K&&(Ee=="length"||D&&(Ee=="offset"||Ee=="parent")||U&&(Ee=="buffer"||Ee=="byteLength"||Ee=="byteOffset")||fs(Ee,ne)))&&Y.push(Ee);return Y}function iE(l){var f=l.length;return f?l[By(0,f-1)]:n}function n4(l,f){return nh(Hr(l),ra(f,0,l.length))}function r4(l){return nh(Hr(l))}function $y(l,f,y){(y!==n&&!ui(l[f],y)||y===n&&!(f in l))&&cs(l,f,y)}function od(l,f,y){var $=l[f];(!(Jt.call(l,f)&&ui($,y))||y===n&&!(f in l))&&cs(l,f,y)}function Vp(l,f){for(var y=l.length;y--;)if(ui(l[y][0],f))return y;return-1}function o4(l,f,y,$){return Xs(l,function(D,U,K){f($,D,y(D),K)}),$}function sE(l,f){return l&&Li(f,nr(f),l)}function i4(l,f){return l&&Li(f,Ur(f),l)}function cs(l,f,y){f=="__proto__"&&Np?Np(l,f,{configurable:!0,enumerable:!0,value:y,writable:!0}):l[f]=y}function Ty(l,f){for(var y=-1,$=f.length,D=he($),U=l==null;++y<$;)D[y]=U?n:u0(l,f[y]);return D}function ra(l,f,y){return l===l&&(y!==n&&(l=l<=y?l:y),f!==n&&(l=l>=f?l:f)),l}function Fo(l,f,y,$,D,U){var K,Y=f&h,ne=f&m,Ee=f&v;if(y&&(K=D?y(l,$,D,U):y(l)),K!==n)return K;if(!Pn(l))return l;var ke=Ct(l);if(ke){if(K=K4(l),!Y)return Hr(l,K)}else{var Pe=Cr(l),Be=Pe==$e||Pe==Ve;if(el(l))return TE(l,Y);if(Pe==ve||Pe==ge||Be&&!D){if(K=ne||Be?{}:YE(l),!Y)return ne?F4(l,i4(K,l)):A4(l,sE(K,l))}else{if(!ln[Pe])return D?l:{};K=q4(l,Pe,Y)}}U||(U=new ci);var tt=U.get(l);if(tt)return tt;U.set(l,K),Ek(l)?l.forEach(function(mt){K.add(Fo(mt,f,y,mt,l,U))}):xk(l)&&l.forEach(function(mt,Mt){K.set(Mt,Fo(mt,f,y,Mt,l,U))});var ht=Ee?ne?Xy:Yy:ne?Ur:nr,kt=ke?n:ht(l);return Oo(kt||l,function(mt,Mt){kt&&(Mt=mt,mt=l[Mt]),od(K,Mt,Fo(mt,f,y,Mt,l,U))}),K}function s4(l){var f=nr(l);return function(y){return lE(y,l,f)}}function lE(l,f,y){var $=y.length;if(l==null)return!$;for(l=on(l);$--;){var D=y[$],U=f[D],K=l[D];if(K===n&&!(D in l)||!U(K))return!1}return!0}function aE(l,f,y){if(typeof l!="function")throw new Lo(s);return dd(function(){l.apply(n,y)},f)}function id(l,f,y,$){var D=-1,U=Pp,K=!0,Y=l.length,ne=[],Ee=f.length;if(!Y)return ne;y&&(f=yn(f,lo(y))),$?(U=gy,K=!1):f.length>=o&&(U=Ju,K=!1,f=new na(f));e:for(;++D<Y;){var ke=l[D],Pe=y==null?ke:y(ke);if(ke=$||ke!==0?ke:0,K&&Pe===Pe){for(var Be=Ee;Be--;)if(f[Be]===Pe)continue e;ne.push(ke)}else U(f,Pe,$)||ne.push(ke)}return ne}var Xs=AE(Oi),cE=AE(Ry,!0);function l4(l,f){var y=!0;return Xs(l,function($,D,U){return y=!!f($,D,U),y}),y}function Up(l,f,y){for(var $=-1,D=l.length;++$<D;){var U=l[$],K=f(U);if(K!=null&&(Y===n?K===K&&!co(K):y(K,Y)))var Y=K,ne=U}return ne}function a4(l,f,y,$){var D=l.length;for(y=Et(y),y<0&&(y=-y>D?0:D+y),$=$===n||$>D?D:Et($),$<0&&($+=D),$=y>$?0:Pk($);y<$;)l[y++]=f;return l}function uE(l,f){var y=[];return Xs(l,function($,D,U){f($,D,U)&&y.push($)}),y}function fr(l,f,y,$,D){var U=-1,K=l.length;for(y||(y=X4),D||(D=[]);++U<K;){var Y=l[U];f>0&&y(Y)?f>1?fr(Y,f-1,y,$,D):Ks(D,Y):$||(D[D.length]=Y)}return D}var My=FE(),dE=FE(!0);function Oi(l,f){return l&&My(l,f,nr)}function Ry(l,f){return l&&dE(l,f,nr)}function Wp(l,f){return Gs(f,function(y){return ps(l[y])})}function oa(l,f){f=Js(f,l);for(var y=0,$=f.length;l!=null&&y<$;)l=l[Ai(f[y++])];return y&&y==$?l:n}function fE(l,f,y){var $=f(l);return Ct(l)?$:Ks($,y(l))}function Or(l){return l==null?l===n?ct:Ae:ea&&ea in on(l)?U4(l):rD(l)}function Oy(l,f){return l>f}function c4(l,f){return l!=null&&Jt.call(l,f)}function u4(l,f){return l!=null&&f in on(l)}function d4(l,f,y){return l>=wr(f,y)&&l<Xn(f,y)}function Ly(l,f,y){for(var $=y?gy:Pp,D=l[0].length,U=l.length,K=U,Y=he(U),ne=1/0,Ee=[];K--;){var ke=l[K];K&&f&&(ke=yn(ke,lo(f))),ne=wr(ke.length,ne),Y[K]=!y&&(f||D>=120&&ke.length>=120)?new na(K&&ke):n}ke=l[0];var Pe=-1,Be=Y[0];e:for(;++Pe<D&&Ee.length<ne;){var tt=ke[Pe],ht=f?f(tt):tt;if(tt=y||tt!==0?tt:0,!(Be?Ju(Be,ht):$(Ee,ht,y))){for(K=U;--K;){var kt=Y[K];if(!(kt?Ju(kt,ht):$(l[K],ht,y)))continue e}Be&&Be.push(ht),Ee.push(tt)}}return Ee}function f4(l,f,y,$){return Oi(l,function(D,U,K){f($,y(D),U,K)}),$}function sd(l,f,y){f=Js(f,l),l=ZE(l,f);var $=l==null?l:l[Ai(Do(f))];return $==null?n:so($,l,y)}function pE(l){return Ln(l)&&Or(l)==ge}function p4(l){return Ln(l)&&Or(l)==Ue}function h4(l){return Ln(l)&&Or(l)==de}function ld(l,f,y,$,D){return l===f?!0:l==null||f==null||!Ln(l)&&!Ln(f)?l!==l&&f!==f:m4(l,f,y,$,ld,D)}function m4(l,f,y,$,D,U){var K=Ct(l),Y=Ct(f),ne=K?ee:Cr(l),Ee=Y?ee:Cr(f);ne=ne==ge?ve:ne,Ee=Ee==ge?ve:Ee;var ke=ne==ve,Pe=Ee==ve,Be=ne==Ee;if(Be&&el(l)){if(!el(f))return!1;K=!0,ke=!1}if(Be&&!ke)return U||(U=new ci),K||hc(l)?GE(l,f,y,$,D,U):H4(l,f,ne,y,$,D,U);if(!(y&b)){var tt=ke&&Jt.call(l,"__wrapped__"),ht=Pe&&Jt.call(f,"__wrapped__");if(tt||ht){var kt=tt?l.value():l,mt=ht?f.value():f;return U||(U=new ci),D(kt,mt,y,$,U)}}return Be?(U||(U=new ci),V4(l,f,y,$,D,U)):!1}function g4(l){return Ln(l)&&Cr(l)==De}function Ay(l,f,y,$){var D=y.length,U=D,K=!$;if(l==null)return!U;for(l=on(l);D--;){var Y=y[D];if(K&&Y[2]?Y[1]!==l[Y[0]]:!(Y[0]in l))return!1}for(;++D<U;){Y=y[D];var ne=Y[0],Ee=l[ne],ke=Y[1];if(K&&Y[2]){if(Ee===n&&!(ne in l))return!1}else{var Pe=new ci;if($)var Be=$(Ee,ke,ne,l,f,Pe);if(!(Be===n?ld(ke,Ee,b|g,$,Pe):Be))return!1}}return!0}function hE(l){if(!Pn(l)||J4(l))return!1;var f=ps(l)?gN:En;return f.test(sa(l))}function v4(l){return Ln(l)&&Or(l)==ft}function y4(l){return Ln(l)&&Cr(l)==ze}function b4(l){return Ln(l)&&ah(l.length)&&!!fn[Or(l)]}function mE(l){return typeof l=="function"?l:l==null?Wr:typeof l=="object"?Ct(l)?yE(l[0],l[1]):vE(l):Nk(l)}function Fy(l){if(!ud(l))return xN(l);var f=[];for(var y in on(l))Jt.call(l,y)&&y!="constructor"&&f.push(y);return f}function w4(l){if(!Pn(l))return nD(l);var f=ud(l),y=[];for(var $ in l)$=="constructor"&&(f||!Jt.call(l,$))||y.push($);return y}function Ny(l,f){return l<f}function gE(l,f){var y=-1,$=Vr(l)?he(l.length):[];return Xs(l,function(D,U,K){$[++y]=f(D,U,K)}),$}function vE(l){var f=Jy(l);return f.length==1&&f[0][2]?QE(f[0][0],f[0][1]):function(y){return y===l||Ay(y,l,f)}}function yE(l,f){return e0(l)&&XE(f)?QE(Ai(l),f):function(y){var $=u0(y,l);return $===n&&$===f?d0(y,l):ld(f,$,b|g)}}function Gp(l,f,y,$,D){l!==f&&My(f,function(U,K){if(D||(D=new ci),Pn(U))C4(l,f,K,y,Gp,$,D);else{var Y=$?$(n0(l,K),U,K+"",l,f,D):n;Y===n&&(Y=U),$y(l,K,Y)}},Ur)}function C4(l,f,y,$,D,U,K){var Y=n0(l,y),ne=n0(f,y),Ee=K.get(ne);if(Ee){$y(l,y,Ee);return}var ke=U?U(Y,ne,y+"",l,f,K):n,Pe=ke===n;if(Pe){var Be=Ct(ne),tt=!Be&&el(ne),ht=!Be&&!tt&&hc(ne);ke=ne,Be||tt||ht?Ct(Y)?ke=Y:Bn(Y)?ke=Hr(Y):tt?(Pe=!1,ke=TE(ne,!0)):ht?(Pe=!1,ke=ME(ne,!0)):ke=[]:fd(ne)||la(ne)?(ke=Y,la(Y)?ke=Ik(Y):(!Pn(Y)||ps(Y))&&(ke=YE(ne))):Pe=!1}Pe&&(K.set(ne,ke),D(ke,ne,$,U,K),K.delete(ne)),$y(l,y,ke)}function bE(l,f){var y=l.length;if(y)return f+=f<0?y:0,fs(f,y)?l[f]:n}function wE(l,f,y){f.length?f=yn(f,function(U){return Ct(U)?function(K){return oa(K,U.length===1?U[0]:U)}:U}):f=[Wr];var $=-1;f=yn(f,lo(dt()));var D=gE(l,function(U,K,Y){var ne=yn(f,function(Ee){return Ee(U)});return{criteria:ne,index:++$,value:U}});return qF(D,function(U,K){return L4(U,K,y)})}function x4(l,f){return CE(l,f,function(y,$){return d0(l,$)})}function CE(l,f,y){for(var $=-1,D=f.length,U={};++$<D;){var K=f[$],Y=oa(l,K);y(Y,K)&&ad(U,Js(K,l),Y)}return U}function S4(l){return function(f){return oa(f,l)}}function Dy(l,f,y,$){var D=$?KF:rc,U=-1,K=f.length,Y=l;for(l===f&&(f=Hr(f)),y&&(Y=yn(l,lo(y)));++U<K;)for(var ne=0,Ee=f[U],ke=y?y(Ee):Ee;(ne=D(Y,ke,ne,$))>-1;)Y!==l&&Fp.call(Y,ne,1),Fp.call(l,ne,1);return l}function xE(l,f){for(var y=l?f.length:0,$=y-1;y--;){var D=f[y];if(y==$||D!==U){var U=D;fs(D)?Fp.call(l,D,1):Hy(l,D)}}return l}function By(l,f){return l+Bp(nE()*(f-l+1))}function E4(l,f,y,$){for(var D=-1,U=Xn(Dp((f-l)/(y||1)),0),K=he(U);U--;)K[$?U:++D]=l,l+=y;return K}function zy(l,f){var y="";if(!l||f<1||f>N)return y;do f%2&&(y+=l),f=Bp(f/2),f&&(l+=l);while(f);return y}function _t(l,f){return r0(JE(l,f,Wr),l+"")}function k4(l){return iE(mc(l))}function P4(l,f){var y=mc(l);return nh(y,ra(f,0,y.length))}function ad(l,f,y,$){if(!Pn(l))return l;f=Js(f,l);for(var D=-1,U=f.length,K=U-1,Y=l;Y!=null&&++D<U;){var ne=Ai(f[D]),Ee=y;if(ne==="__proto__"||ne==="constructor"||ne==="prototype")return l;if(D!=K){var ke=Y[ne];Ee=$?$(ke,ne,Y):n,Ee===n&&(Ee=Pn(ke)?ke:fs(f[D+1])?[]:{})}od(Y,ne,Ee),Y=Y[ne]}return l}var SE=zp?function(l,f){return zp.set(l,f),l}:Wr,I4=Np?function(l,f){return Np(l,"toString",{configurable:!0,enumerable:!1,value:p0(f),writable:!0})}:Wr;function _4(l){return nh(mc(l))}function No(l,f,y){var $=-1,D=l.length;f<0&&(f=-f>D?0:D+f),y=y>D?D:y,y<0&&(y+=D),D=f>y?0:y-f>>>0,f>>>=0;for(var U=he(D);++$<D;)U[$]=l[$+f];return U}function $4(l,f){var y;return Xs(l,function($,D,U){return y=f($,D,U),!y}),!!y}function Kp(l,f,y){var $=0,D=l==null?$:l.length;if(typeof f=="number"&&f===f&&D<=le){for(;$<D;){var U=$+D>>>1,K=l[U];K!==null&&!co(K)&&(y?K<=f:K<f)?$=U+1:D=U}return D}return jy(l,f,Wr,y)}function jy(l,f,y,$){var D=0,U=l==null?0:l.length;if(U===0)return 0;f=y(f);for(var K=f!==f,Y=f===null,ne=co(f),Ee=f===n;D<U;){var ke=Bp((D+U)/2),Pe=y(l[ke]),Be=Pe!==n,tt=Pe===null,ht=Pe===Pe,kt=co(Pe);if(K)var mt=$||ht;else Ee?mt=ht&&($||Be):Y?mt=ht&&Be&&($||!tt):ne?mt=ht&&Be&&!tt&&($||!kt):tt||kt?mt=!1:mt=$?Pe<=f:Pe<f;mt?D=ke+1:U=ke}return wr(U,X)}function EE(l,f){for(var y=-1,$=l.length,D=0,U=[];++y<$;){var K=l[y],Y=f?f(K):K;if(!y||!ui(Y,ne)){var ne=Y;U[D++]=K===0?0:K}}return U}function kE(l){return typeof l=="number"?l:co(l)?W:+l}function ao(l){if(typeof l=="string")return l;if(Ct(l))return yn(l,ao)+"";if(co(l))return rE?rE.call(l):"";var f=l+"";return f=="0"&&1/l==-G?"-0":f}function Qs(l,f,y){var $=-1,D=Pp,U=l.length,K=!0,Y=[],ne=Y;if(y)K=!1,D=gy;else if(U>=o){var Ee=f?null:z4(l);if(Ee)return _p(Ee);K=!1,D=Ju,ne=new na}else ne=f?[]:Y;e:for(;++$<U;){var ke=l[$],Pe=f?f(ke):ke;if(ke=y||ke!==0?ke:0,K&&Pe===Pe){for(var Be=ne.length;Be--;)if(ne[Be]===Pe)continue e;f&&ne.push(Pe),Y.push(ke)}else D(ne,Pe,y)||(ne!==Y&&ne.push(Pe),Y.push(ke))}return Y}function Hy(l,f){return f=Js(f,l),l=ZE(l,f),l==null||delete l[Ai(Do(f))]}function PE(l,f,y,$){return ad(l,f,y(oa(l,f)),$)}function qp(l,f,y,$){for(var D=l.length,U=$?D:-1;($?U--:++U<D)&&f(l[U],U,l););return y?No(l,$?0:U,$?U+1:D):No(l,$?U+1:0,$?D:U)}function IE(l,f){var y=l;return y instanceof At&&(y=y.value()),vy(f,function($,D){return D.func.apply(D.thisArg,Ks([$],D.args))},y)}function Vy(l,f,y){var $=l.length;if($<2)return $?Qs(l[0]):[];for(var D=-1,U=he($);++D<$;)for(var K=l[D],Y=-1;++Y<$;)Y!=D&&(U[D]=id(U[D]||K,l[Y],f,y));return Qs(fr(U,1),f,y)}function _E(l,f,y){for(var $=-1,D=l.length,U=f.length,K={};++$<D;){var Y=$<U?f[$]:n;y(K,l[$],Y)}return K}function Uy(l){return Bn(l)?l:[]}function Wy(l){return typeof l=="function"?l:Wr}function Js(l,f){return Ct(l)?l:e0(l,f)?[l]:rk(qt(l))}var T4=_t;function Zs(l,f,y){var $=l.length;return y=y===n?$:y,!f&&y>=$?l:No(l,f,y)}var $E=vN||function(l){return dr.clearTimeout(l)};function TE(l,f){if(f)return l.slice();var y=l.length,$=QS?QS(y):new l.constructor(y);return l.copy($),$}function Gy(l){var f=new l.constructor(l.byteLength);return new Lp(f).set(new Lp(l)),f}function M4(l,f){var y=f?Gy(l.buffer):l.buffer;return new l.constructor(y,l.byteOffset,l.byteLength)}function R4(l){var f=new l.constructor(l.source,je.exec(l));return f.lastIndex=l.lastIndex,f}function O4(l){return rd?on(rd.call(l)):{}}function ME(l,f){var y=f?Gy(l.buffer):l.buffer;return new l.constructor(y,l.byteOffset,l.length)}function RE(l,f){if(l!==f){var y=l!==n,$=l===null,D=l===l,U=co(l),K=f!==n,Y=f===null,ne=f===f,Ee=co(f);if(!Y&&!Ee&&!U&&l>f||U&&K&&ne&&!Y&&!Ee||$&&K&&ne||!y&&ne||!D)return 1;if(!$&&!U&&!Ee&&l<f||Ee&&y&&D&&!$&&!U||Y&&y&&D||!K&&D||!ne)return-1}return 0}function L4(l,f,y){for(var $=-1,D=l.criteria,U=f.criteria,K=D.length,Y=y.length;++$<K;){var ne=RE(D[$],U[$]);if(ne){if($>=Y)return ne;var Ee=y[$];return ne*(Ee=="desc"?-1:1)}}return l.index-f.index}function OE(l,f,y,$){for(var D=-1,U=l.length,K=y.length,Y=-1,ne=f.length,Ee=Xn(U-K,0),ke=he(ne+Ee),Pe=!$;++Y<ne;)ke[Y]=f[Y];for(;++D<K;)(Pe||D<U)&&(ke[y[D]]=l[D]);for(;Ee--;)ke[Y++]=l[D++];return ke}function LE(l,f,y,$){for(var D=-1,U=l.length,K=-1,Y=y.length,ne=-1,Ee=f.length,ke=Xn(U-Y,0),Pe=he(ke+Ee),Be=!$;++D<ke;)Pe[D]=l[D];for(var tt=D;++ne<Ee;)Pe[tt+ne]=f[ne];for(;++K<Y;)(Be||D<U)&&(Pe[tt+y[K]]=l[D++]);return Pe}function Hr(l,f){var y=-1,$=l.length;for(f||(f=he($));++y<$;)f[y]=l[y];return f}function Li(l,f,y,$){var D=!y;y||(y={});for(var U=-1,K=f.length;++U<K;){var Y=f[U],ne=$?$(y[Y],l[Y],Y,y,l):n;ne===n&&(ne=l[Y]),D?cs(y,Y,ne):od(y,Y,ne)}return y}function A4(l,f){return Li(l,Zy(l),f)}function F4(l,f){return Li(l,KE(l),f)}function Yp(l,f){return function(y,$){var D=Ct(y)?jF:o4,U=f?f():{};return D(y,l,dt($,2),U)}}function dc(l){return _t(function(f,y){var $=-1,D=y.length,U=D>1?y[D-1]:n,K=D>2?y[2]:n;for(U=l.length>3&&typeof U=="function"?(D--,U):n,K&&Lr(y[0],y[1],K)&&(U=D<3?n:U,D=1),f=on(f);++$<D;){var Y=y[$];Y&&l(f,Y,$,U)}return f})}function AE(l,f){return function(y,$){if(y==null)return y;if(!Vr(y))return l(y,$);for(var D=y.length,U=f?D:-1,K=on(y);(f?U--:++U<D)&&$(K[U],U,K)!==!1;);return y}}function FE(l){return function(f,y,$){for(var D=-1,U=on(f),K=$(f),Y=K.length;Y--;){var ne=K[l?Y:++D];if(y(U[ne],ne,U)===!1)break}return f}}function N4(l,f,y){var $=f&x,D=cd(l);function U(){var K=this&&this!==dr&&this instanceof U?D:l;return K.apply($?y:this,arguments)}return U}function NE(l){return function(f){f=qt(f);var y=oc(f)?ai(f):n,$=y?y[0]:f.charAt(0),D=y?Zs(y,1).join(""):f.slice(1);return $[l]()+D}}function fc(l){return function(f){return vy(Ak(Lk(f).replace(IF,"")),l,"")}}function cd(l){return function(){var f=arguments;switch(f.length){case 0:return new l;case 1:return new l(f[0]);case 2:return new l(f[0],f[1]);case 3:return new l(f[0],f[1],f[2]);case 4:return new l(f[0],f[1],f[2],f[3]);case 5:return new l(f[0],f[1],f[2],f[3],f[4]);case 6:return new l(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new l(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var y=uc(l.prototype),$=l.apply(y,f);return Pn($)?$:y}}function D4(l,f,y){var $=cd(l);function D(){for(var U=arguments.length,K=he(U),Y=U,ne=pc(D);Y--;)K[Y]=arguments[Y];var Ee=U<3&&K[0]!==ne&&K[U-1]!==ne?[]:qs(K,ne);if(U-=Ee.length,U<y)return HE(l,f,Xp,D.placeholder,n,K,Ee,n,n,y-U);var ke=this&&this!==dr&&this instanceof D?$:l;return so(ke,this,K)}return D}function DE(l){return function(f,y,$){var D=on(f);if(!Vr(f)){var U=dt(y,3);f=nr(f),y=function(Y){return U(D[Y],Y,D)}}var K=l(f,y,$);return K>-1?D[U?f[K]:K]:n}}function BE(l){return ds(function(f){var y=f.length,$=y,D=Ao.prototype.thru;for(l&&f.reverse();$--;){var U=f[$];if(typeof U!="function")throw new Lo(s);if(D&&!K&&eh(U)=="wrapper")var K=new Ao([],!0)}for($=K?$:y;++$<y;){U=f[$];var Y=eh(U),ne=Y=="wrapper"?Qy(U):n;ne&&t0(ne[0])&&ne[1]==(I|w|P|M)&&!ne[4].length&&ne[9]==1?K=K[eh(ne[0])].apply(K,ne[3]):K=U.length==1&&t0(U)?K[Y]():K.thru(U)}return function(){var Ee=arguments,ke=Ee[0];if(K&&Ee.length==1&&Ct(ke))return K.plant(ke).value();for(var Pe=0,Be=y?f[Pe].apply(this,Ee):ke;++Pe<y;)Be=f[Pe].call(this,Be);return Be}})}function Xp(l,f,y,$,D,U,K,Y,ne,Ee){var ke=f&I,Pe=f&x,Be=f&C,tt=f&(w|E),ht=f&O,kt=Be?n:cd(l);function mt(){for(var Mt=arguments.length,Dt=he(Mt),uo=Mt;uo--;)Dt[uo]=arguments[uo];if(tt)var Ar=pc(mt),fo=XF(Dt,Ar);if($&&(Dt=OE(Dt,$,D,tt)),U&&(Dt=LE(Dt,U,K,tt)),Mt-=fo,tt&&Mt<Ee){var zn=qs(Dt,Ar);return HE(l,f,Xp,mt.placeholder,y,Dt,zn,Y,ne,Ee-Mt)}var di=Pe?y:this,ms=Be?di[l]:l;return Mt=Dt.length,Y?Dt=oD(Dt,Y):ht&&Mt>1&&Dt.reverse(),ke&&ne<Mt&&(Dt.length=ne),this&&this!==dr&&this instanceof mt&&(ms=kt||cd(ms)),ms.apply(di,Dt)}return mt}function zE(l,f){return function(y,$){return f4(y,l,f($),{})}}function Qp(l,f){return function(y,$){var D;if(y===n&&$===n)return f;if(y!==n&&(D=y),$!==n){if(D===n)return $;typeof y=="string"||typeof $=="string"?(y=ao(y),$=ao($)):(y=kE(y),$=kE($)),D=l(y,$)}return D}}function Ky(l){return ds(function(f){return f=yn(f,lo(dt())),_t(function(y){var $=this;return l(f,function(D){return so(D,$,y)})})})}function Jp(l,f){f=f===n?" ":ao(f);var y=f.length;if(y<2)return y?zy(f,l):f;var $=zy(f,Dp(l/ic(f)));return oc(f)?Zs(ai($),0,l).join(""):$.slice(0,l)}function B4(l,f,y,$){var D=f&x,U=cd(l);function K(){for(var Y=-1,ne=arguments.length,Ee=-1,ke=$.length,Pe=he(ke+ne),Be=this&&this!==dr&&this instanceof K?U:l;++Ee<ke;)Pe[Ee]=$[Ee];for(;ne--;)Pe[Ee++]=arguments[++Y];return so(Be,D?y:this,Pe)}return K}function jE(l){return function(f,y,$){return $&&typeof $!="number"&&Lr(f,y,$)&&(y=$=n),f=hs(f),y===n?(y=f,f=0):y=hs(y),$=$===n?f<y?1:-1:hs($),E4(f,y,$,l)}}function Zp(l){return function(f,y){return typeof f=="string"&&typeof y=="string"||(f=Bo(f),y=Bo(y)),l(f,y)}}function HE(l,f,y,$,D,U,K,Y,ne,Ee){var ke=f&w,Pe=ke?K:n,Be=ke?n:K,tt=ke?U:n,ht=ke?n:U;f|=ke?P:_,f&=~(ke?_:P),f&S||(f&=~(x|C));var kt=[l,f,D,tt,Pe,ht,Be,Y,ne,Ee],mt=y.apply(n,kt);return t0(l)&&ek(mt,kt),mt.placeholder=$,tk(mt,l,f)}function qy(l){var f=Yn[l];return function(y,$){if(y=Bo(y),$=$==null?0:wr(Et($),292),$&&tE(y)){var D=(qt(y)+"e").split("e"),U=f(D[0]+"e"+(+D[1]+$));return D=(qt(U)+"e").split("e"),+(D[0]+"e"+(+D[1]-$))}return f(y)}}var z4=ac&&1/_p(new ac([,-0]))[1]==G?function(l){return new ac(l)}:g0;function VE(l){return function(f){var y=Cr(f);return y==De?Ey(f):y==ze?rN(f):YF(f,l(f))}}function us(l,f,y,$,D,U,K,Y){var ne=f&C;if(!ne&&typeof l!="function")throw new Lo(s);var Ee=$?$.length:0;if(Ee||(f&=~(P|_),$=D=n),K=K===n?K:Xn(Et(K),0),Y=Y===n?Y:Et(Y),Ee-=D?D.length:0,f&_){var ke=$,Pe=D;$=D=n}var Be=ne?n:Qy(l),tt=[l,f,y,$,D,ke,Pe,U,K,Y];if(Be&&tD(tt,Be),l=tt[0],f=tt[1],y=tt[2],$=tt[3],D=tt[4],Y=tt[9]=tt[9]===n?ne?0:l.length:Xn(tt[9]-Ee,0),!Y&&f&(w|E)&&(f&=~(w|E)),!f||f==x)var ht=N4(l,f,y);else f==w||f==E?ht=D4(l,f,Y):(f==P||f==(x|P))&&!D.length?ht=B4(l,f,y,$):ht=Xp.apply(n,tt);var kt=Be?SE:ek;return tk(kt(ht,tt),l,f)}function UE(l,f,y,$){return l===n||ui(l,lc[y])&&!Jt.call($,y)?f:l}function WE(l,f,y,$,D,U){return Pn(l)&&Pn(f)&&(U.set(f,l),Gp(l,f,n,WE,U),U.delete(f)),l}function j4(l){return fd(l)?n:l}function GE(l,f,y,$,D,U){var K=y&b,Y=l.length,ne=f.length;if(Y!=ne&&!(K&&ne>Y))return!1;var Ee=U.get(l),ke=U.get(f);if(Ee&&ke)return Ee==f&&ke==l;var Pe=-1,Be=!0,tt=y&g?new na:n;for(U.set(l,f),U.set(f,l);++Pe<Y;){var ht=l[Pe],kt=f[Pe];if($)var mt=K?$(kt,ht,Pe,f,l,U):$(ht,kt,Pe,l,f,U);if(mt!==n){if(mt)continue;Be=!1;break}if(tt){if(!yy(f,function(Mt,Dt){if(!Ju(tt,Dt)&&(ht===Mt||D(ht,Mt,y,$,U)))return tt.push(Dt)})){Be=!1;break}}else if(!(ht===kt||D(ht,kt,y,$,U))){Be=!1;break}}return U.delete(l),U.delete(f),Be}function H4(l,f,y,$,D,U,K){switch(y){case ue:if(l.byteLength!=f.byteLength||l.byteOffset!=f.byteOffset)return!1;l=l.buffer,f=f.buffer;case Ue:return!(l.byteLength!=f.byteLength||!U(new Lp(l),new Lp(f)));case oe:case de:case re:return ui(+l,+f);case we:return l.name==f.name&&l.message==f.message;case ft:case pt:return l==f+"";case De:var Y=Ey;case ze:var ne=$&b;if(Y||(Y=_p),l.size!=f.size&&!ne)return!1;var Ee=K.get(l);if(Ee)return Ee==f;$|=g,K.set(l,f);var ke=GE(Y(l),Y(f),$,D,U,K);return K.delete(l),ke;case ot:if(rd)return rd.call(l)==rd.call(f)}return!1}function V4(l,f,y,$,D,U){var K=y&b,Y=Yy(l),ne=Y.length,Ee=Yy(f),ke=Ee.length;if(ne!=ke&&!K)return!1;for(var Pe=ne;Pe--;){var Be=Y[Pe];if(!(K?Be in f:Jt.call(f,Be)))return!1}var tt=U.get(l),ht=U.get(f);if(tt&&ht)return tt==f&&ht==l;var kt=!0;U.set(l,f),U.set(f,l);for(var mt=K;++Pe<ne;){Be=Y[Pe];var Mt=l[Be],Dt=f[Be];if($)var uo=K?$(Dt,Mt,Be,f,l,U):$(Mt,Dt,Be,l,f,U);if(!(uo===n?Mt===Dt||D(Mt,Dt,y,$,U):uo)){kt=!1;break}mt||(mt=Be=="constructor")}if(kt&&!mt){var Ar=l.constructor,fo=f.constructor;Ar!=fo&&"constructor"in l&&"constructor"in f&&!(typeof Ar=="function"&&Ar instanceof Ar&&typeof fo=="function"&&fo instanceof fo)&&(kt=!1)}return U.delete(l),U.delete(f),kt}function ds(l){return r0(JE(l,n,lk),l+"")}function Yy(l){return fE(l,nr,Zy)}function Xy(l){return fE(l,Ur,KE)}var Qy=zp?function(l){return zp.get(l)}:g0;function eh(l){for(var f=l.name+"",y=cc[f],$=Jt.call(cc,f)?y.length:0;$--;){var D=y[$],U=D.func;if(U==null||U==l)return D.name}return f}function pc(l){var f=Jt.call(V,"placeholder")?V:l;return f.placeholder}function dt(){var l=V.iteratee||h0;return l=l===h0?mE:l,arguments.length?l(arguments[0],arguments[1]):l}function th(l,f){var y=l.__data__;return Q4(f)?y[typeof f=="string"?"string":"hash"]:y.map}function Jy(l){for(var f=nr(l),y=f.length;y--;){var $=f[y],D=l[$];f[y]=[$,D,XE(D)]}return f}function ia(l,f){var y=eN(l,f);return hE(y)?y:n}function U4(l){var f=Jt.call(l,ea),y=l[ea];try{l[ea]=n;var $=!0}catch(U){}var D=Rp.call(l);return $&&(f?l[ea]=y:delete l[ea]),D}var Zy=Py?function(l){return l==null?[]:(l=on(l),Gs(Py(l),function(f){return ZS.call(l,f)}))}:v0,KE=Py?function(l){for(var f=[];l;)Ks(f,Zy(l)),l=Ap(l);return f}:v0,Cr=Or;(Iy&&Cr(new Iy(new ArrayBuffer(1)))!=ue||ed&&Cr(new ed)!=De||_y&&Cr(_y.resolve())!=He||ac&&Cr(new ac)!=ze||td&&Cr(new td)!=vt)&&(Cr=function(l){var f=Or(l),y=f==ve?l.constructor:n,$=y?sa(y):"";if($)switch($){case PN:return ue;case IN:return De;case _N:return He;case $N:return ze;case TN:return vt}return f});function W4(l,f,y){for(var $=-1,D=y.length;++$<D;){var U=y[$],K=U.size;switch(U.type){case"drop":l+=K;break;case"dropRight":f-=K;break;case"take":f=wr(f,l+K);break;case"takeRight":l=Xn(l,f-K);break}}return{start:l,end:f}}function G4(l){var f=l.match(xt);return f?f[1].split(Qt):[]}function qE(l,f,y){f=Js(f,l);for(var $=-1,D=f.length,U=!1;++$<D;){var K=Ai(f[$]);if(!(U=l!=null&&y(l,K)))break;l=l[K]}return U||++$!=D?U:(D=l==null?0:l.length,!!D&&ah(D)&&fs(K,D)&&(Ct(l)||la(l)))}function K4(l){var f=l.length,y=new l.constructor(f);return f&&typeof l[0]=="string"&&Jt.call(l,"index")&&(y.index=l.index,y.input=l.input),y}function YE(l){return typeof l.constructor=="function"&&!ud(l)?uc(Ap(l)):{}}function q4(l,f,y){var $=l.constructor;switch(f){case Ue:return Gy(l);case oe:case de:return new $(+l);case ue:return M4(l,y);case J:case Oe:case Me:case Je:case wt:case It:case Kt:case Vn:case Rr:return ME(l,y);case De:return new $;case re:case pt:return new $(l);case ft:return R4(l);case ze:return new $;case ot:return O4(l)}}function Y4(l,f){var y=f.length;if(!y)return l;var $=y-1;return f[$]=(y>1?"& ":"")+f[$],f=f.join(y>2?", ":" "),l.replace(lt,`{
|
|
301
|
+
/* [wrapped with `+f+`] */
|
|
302
|
+
`)}function X4(l){return Ct(l)||la(l)||!!(eE&&l&&l[eE])}function fs(l,f){var y=typeof l;return f=f==null?N:f,!!f&&(y=="number"||y!="symbol"&>.test(l))&&l>-1&&l%1==0&&l<f}function Lr(l,f,y){if(!Pn(y))return!1;var $=typeof f;return($=="number"?Vr(y)&&fs(f,y.length):$=="string"&&f in y)?ui(y[f],l):!1}function e0(l,f){if(Ct(l))return!1;var y=typeof l;return y=="number"||y=="symbol"||y=="boolean"||l==null||co(l)?!0:Ri.test(l)||!Mi.test(l)||f!=null&&l in on(f)}function Q4(l){var f=typeof l;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?l!=="__proto__":l===null}function t0(l){var f=eh(l),y=V[f];if(typeof y!="function"||!(f in At.prototype))return!1;if(l===y)return!0;var $=Qy(y);return!!$&&l===$[0]}function J4(l){return!!XS&&XS in l}var Z4=Tp?ps:y0;function ud(l){var f=l&&l.constructor,y=typeof f=="function"&&f.prototype||lc;return l===y}function XE(l){return l===l&&!Pn(l)}function QE(l,f){return function(y){return y==null?!1:y[l]===f&&(f!==n||l in on(y))}}function eD(l){var f=sh(l,function($){return y.size===d&&y.clear(),$}),y=f.cache;return f}function tD(l,f){var y=l[1],$=f[1],D=y|$,U=D<(x|C|I),K=$==I&&y==w||$==I&&y==M&&l[7].length<=f[8]||$==(I|M)&&f[7].length<=f[8]&&y==w;if(!(U||K))return l;$&x&&(l[2]=f[2],D|=y&x?0:S);var Y=f[3];if(Y){var ne=l[3];l[3]=ne?OE(ne,Y,f[4]):Y,l[4]=ne?qs(l[3],p):f[4]}return Y=f[5],Y&&(ne=l[5],l[5]=ne?LE(ne,Y,f[6]):Y,l[6]=ne?qs(l[5],p):f[6]),Y=f[7],Y&&(l[7]=Y),$&I&&(l[8]=l[8]==null?f[8]:wr(l[8],f[8])),l[9]==null&&(l[9]=f[9]),l[0]=f[0],l[1]=D,l}function nD(l){var f=[];if(l!=null)for(var y in on(l))f.push(y);return f}function rD(l){return Rp.call(l)}function JE(l,f,y){return f=Xn(f===n?l.length-1:f,0),function(){for(var $=arguments,D=-1,U=Xn($.length-f,0),K=he(U);++D<U;)K[D]=$[f+D];D=-1;for(var Y=he(f+1);++D<f;)Y[D]=$[D];return Y[f]=y(K),so(l,this,Y)}}function ZE(l,f){return f.length<2?l:oa(l,No(f,0,-1))}function oD(l,f){for(var y=l.length,$=wr(f.length,y),D=Hr(l);$--;){var U=f[$];l[$]=fs(U,y)?D[U]:n}return l}function n0(l,f){if(!(f==="constructor"&&typeof l[f]=="function")&&f!="__proto__")return l[f]}var ek=nk(SE),dd=bN||function(l,f){return dr.setTimeout(l,f)},r0=nk(I4);function tk(l,f,y){var $=f+"";return r0(l,Y4($,iD(G4($),y)))}function nk(l){var f=0,y=0;return function(){var $=SN(),D=j-($-y);if(y=$,D>0){if(++f>=H)return arguments[0]}else f=0;return l.apply(n,arguments)}}function nh(l,f){var y=-1,$=l.length,D=$-1;for(f=f===n?$:f;++y<f;){var U=By(y,D),K=l[U];l[U]=l[y],l[y]=K}return l.length=f,l}var rk=eD(function(l){var f=[];return l.charCodeAt(0)===46&&f.push(""),l.replace(ae,function(y,$,D,U){f.push(D?U.replace(Se,"$1"):$||y)}),f});function Ai(l){if(typeof l=="string"||co(l))return l;var f=l+"";return f=="0"&&1/l==-G?"-0":f}function sa(l){if(l!=null){try{return Mp.call(l)}catch(f){}try{return l+""}catch(f){}}return""}function iD(l,f){return Oo(Q,function(y){var $="_."+y[0];f&y[1]&&!Pp(l,$)&&l.push($)}),l.sort()}function ok(l){if(l instanceof At)return l.clone();var f=new Ao(l.__wrapped__,l.__chain__);return f.__actions__=Hr(l.__actions__),f.__index__=l.__index__,f.__values__=l.__values__,f}function sD(l,f,y){(y?Lr(l,f,y):f===n)?f=1:f=Xn(Et(f),0);var $=l==null?0:l.length;if(!$||f<1)return[];for(var D=0,U=0,K=he(Dp($/f));D<$;)K[U++]=No(l,D,D+=f);return K}function lD(l){for(var f=-1,y=l==null?0:l.length,$=0,D=[];++f<y;){var U=l[f];U&&(D[$++]=U)}return D}function aD(){var l=arguments.length;if(!l)return[];for(var f=he(l-1),y=arguments[0],$=l;$--;)f[$-1]=arguments[$];return Ks(Ct(y)?Hr(y):[y],fr(f,1))}var cD=_t(function(l,f){return Bn(l)?id(l,fr(f,1,Bn,!0)):[]}),uD=_t(function(l,f){var y=Do(f);return Bn(y)&&(y=n),Bn(l)?id(l,fr(f,1,Bn,!0),dt(y,2)):[]}),dD=_t(function(l,f){var y=Do(f);return Bn(y)&&(y=n),Bn(l)?id(l,fr(f,1,Bn,!0),n,y):[]});function fD(l,f,y){var $=l==null?0:l.length;return $?(f=y||f===n?1:Et(f),No(l,f<0?0:f,$)):[]}function pD(l,f,y){var $=l==null?0:l.length;return $?(f=y||f===n?1:Et(f),f=$-f,No(l,0,f<0?0:f)):[]}function hD(l,f){return l&&l.length?qp(l,dt(f,3),!0,!0):[]}function mD(l,f){return l&&l.length?qp(l,dt(f,3),!0):[]}function gD(l,f,y,$){var D=l==null?0:l.length;return D?(y&&typeof y!="number"&&Lr(l,f,y)&&(y=0,$=D),a4(l,f,y,$)):[]}function ik(l,f,y){var $=l==null?0:l.length;if(!$)return-1;var D=y==null?0:Et(y);return D<0&&(D=Xn($+D,0)),Ip(l,dt(f,3),D)}function sk(l,f,y){var $=l==null?0:l.length;if(!$)return-1;var D=$-1;return y!==n&&(D=Et(y),D=y<0?Xn($+D,0):wr(D,$-1)),Ip(l,dt(f,3),D,!0)}function lk(l){var f=l==null?0:l.length;return f?fr(l,1):[]}function vD(l){var f=l==null?0:l.length;return f?fr(l,G):[]}function yD(l,f){var y=l==null?0:l.length;return y?(f=f===n?1:Et(f),fr(l,f)):[]}function bD(l){for(var f=-1,y=l==null?0:l.length,$={};++f<y;){var D=l[f];$[D[0]]=D[1]}return $}function ak(l){return l&&l.length?l[0]:n}function wD(l,f,y){var $=l==null?0:l.length;if(!$)return-1;var D=y==null?0:Et(y);return D<0&&(D=Xn($+D,0)),rc(l,f,D)}function CD(l){var f=l==null?0:l.length;return f?No(l,0,-1):[]}var xD=_t(function(l){var f=yn(l,Uy);return f.length&&f[0]===l[0]?Ly(f):[]}),SD=_t(function(l){var f=Do(l),y=yn(l,Uy);return f===Do(y)?f=n:y.pop(),y.length&&y[0]===l[0]?Ly(y,dt(f,2)):[]}),ED=_t(function(l){var f=Do(l),y=yn(l,Uy);return f=typeof f=="function"?f:n,f&&y.pop(),y.length&&y[0]===l[0]?Ly(y,n,f):[]});function kD(l,f){return l==null?"":CN.call(l,f)}function Do(l){var f=l==null?0:l.length;return f?l[f-1]:n}function PD(l,f,y){var $=l==null?0:l.length;if(!$)return-1;var D=$;return y!==n&&(D=Et(y),D=D<0?Xn($+D,0):wr(D,$-1)),f===f?iN(l,f,D):Ip(l,HS,D,!0)}function ID(l,f){return l&&l.length?bE(l,Et(f)):n}var _D=_t(ck);function ck(l,f){return l&&l.length&&f&&f.length?Dy(l,f):l}function $D(l,f,y){return l&&l.length&&f&&f.length?Dy(l,f,dt(y,2)):l}function TD(l,f,y){return l&&l.length&&f&&f.length?Dy(l,f,n,y):l}var MD=ds(function(l,f){var y=l==null?0:l.length,$=Ty(l,f);return xE(l,yn(f,function(D){return fs(D,y)?+D:D}).sort(RE)),$});function RD(l,f){var y=[];if(!(l&&l.length))return y;var $=-1,D=[],U=l.length;for(f=dt(f,3);++$<U;){var K=l[$];f(K,$,l)&&(y.push(K),D.push($))}return xE(l,D),y}function o0(l){return l==null?l:kN.call(l)}function OD(l,f,y){var $=l==null?0:l.length;return $?(y&&typeof y!="number"&&Lr(l,f,y)?(f=0,y=$):(f=f==null?0:Et(f),y=y===n?$:Et(y)),No(l,f,y)):[]}function LD(l,f){return Kp(l,f)}function AD(l,f,y){return jy(l,f,dt(y,2))}function FD(l,f){var y=l==null?0:l.length;if(y){var $=Kp(l,f);if($<y&&ui(l[$],f))return $}return-1}function ND(l,f){return Kp(l,f,!0)}function DD(l,f,y){return jy(l,f,dt(y,2),!0)}function BD(l,f){var y=l==null?0:l.length;if(y){var $=Kp(l,f,!0)-1;if(ui(l[$],f))return $}return-1}function zD(l){return l&&l.length?EE(l):[]}function jD(l,f){return l&&l.length?EE(l,dt(f,2)):[]}function HD(l){var f=l==null?0:l.length;return f?No(l,1,f):[]}function VD(l,f,y){return l&&l.length?(f=y||f===n?1:Et(f),No(l,0,f<0?0:f)):[]}function UD(l,f,y){var $=l==null?0:l.length;return $?(f=y||f===n?1:Et(f),f=$-f,No(l,f<0?0:f,$)):[]}function WD(l,f){return l&&l.length?qp(l,dt(f,3),!1,!0):[]}function GD(l,f){return l&&l.length?qp(l,dt(f,3)):[]}var KD=_t(function(l){return Qs(fr(l,1,Bn,!0))}),qD=_t(function(l){var f=Do(l);return Bn(f)&&(f=n),Qs(fr(l,1,Bn,!0),dt(f,2))}),YD=_t(function(l){var f=Do(l);return f=typeof f=="function"?f:n,Qs(fr(l,1,Bn,!0),n,f)});function XD(l){return l&&l.length?Qs(l):[]}function QD(l,f){return l&&l.length?Qs(l,dt(f,2)):[]}function JD(l,f){return f=typeof f=="function"?f:n,l&&l.length?Qs(l,n,f):[]}function i0(l){if(!(l&&l.length))return[];var f=0;return l=Gs(l,function(y){if(Bn(y))return f=Xn(y.length,f),!0}),xy(f,function(y){return yn(l,by(y))})}function uk(l,f){if(!(l&&l.length))return[];var y=i0(l);return f==null?y:yn(y,function($){return so(f,n,$)})}var ZD=_t(function(l,f){return Bn(l)?id(l,f):[]}),e5=_t(function(l){return Vy(Gs(l,Bn))}),t5=_t(function(l){var f=Do(l);return Bn(f)&&(f=n),Vy(Gs(l,Bn),dt(f,2))}),n5=_t(function(l){var f=Do(l);return f=typeof f=="function"?f:n,Vy(Gs(l,Bn),n,f)}),r5=_t(i0);function o5(l,f){return _E(l||[],f||[],od)}function i5(l,f){return _E(l||[],f||[],ad)}var s5=_t(function(l){var f=l.length,y=f>1?l[f-1]:n;return y=typeof y=="function"?(l.pop(),y):n,uk(l,y)});function dk(l){var f=V(l);return f.__chain__=!0,f}function l5(l,f){return f(l),l}function rh(l,f){return f(l)}var a5=ds(function(l){var f=l.length,y=f?l[0]:0,$=this.__wrapped__,D=function(U){return Ty(U,l)};return f>1||this.__actions__.length||!($ instanceof At)||!fs(y)?this.thru(D):($=$.slice(y,+y+(f?1:0)),$.__actions__.push({func:rh,args:[D],thisArg:n}),new Ao($,this.__chain__).thru(function(U){return f&&!U.length&&U.push(n),U}))});function c5(){return dk(this)}function u5(){return new Ao(this.value(),this.__chain__)}function d5(){this.__values__===n&&(this.__values__=kk(this.value()));var l=this.__index__>=this.__values__.length,f=l?n:this.__values__[this.__index__++];return{done:l,value:f}}function f5(){return this}function p5(l){for(var f,y=this;y instanceof Hp;){var $=ok(y);$.__index__=0,$.__values__=n,f?D.__wrapped__=$:f=$;var D=$;y=y.__wrapped__}return D.__wrapped__=l,f}function h5(){var l=this.__wrapped__;if(l instanceof At){var f=l;return this.__actions__.length&&(f=new At(this)),f=f.reverse(),f.__actions__.push({func:rh,args:[o0],thisArg:n}),new Ao(f,this.__chain__)}return this.thru(o0)}function m5(){return IE(this.__wrapped__,this.__actions__)}var g5=Yp(function(l,f,y){Jt.call(l,y)?++l[y]:cs(l,y,1)});function v5(l,f,y){var $=Ct(l)?zS:l4;return y&&Lr(l,f,y)&&(f=n),$(l,dt(f,3))}function y5(l,f){var y=Ct(l)?Gs:uE;return y(l,dt(f,3))}var b5=DE(ik),w5=DE(sk);function C5(l,f){return fr(oh(l,f),1)}function x5(l,f){return fr(oh(l,f),G)}function S5(l,f,y){return y=y===n?1:Et(y),fr(oh(l,f),y)}function fk(l,f){var y=Ct(l)?Oo:Xs;return y(l,dt(f,3))}function pk(l,f){var y=Ct(l)?HF:cE;return y(l,dt(f,3))}var E5=Yp(function(l,f,y){Jt.call(l,y)?l[y].push(f):cs(l,y,[f])});function k5(l,f,y,$){l=Vr(l)?l:mc(l),y=y&&!$?Et(y):0;var D=l.length;return y<0&&(y=Xn(D+y,0)),ch(l)?y<=D&&l.indexOf(f,y)>-1:!!D&&rc(l,f,y)>-1}var P5=_t(function(l,f,y){var $=-1,D=typeof f=="function",U=Vr(l)?he(l.length):[];return Xs(l,function(K){U[++$]=D?so(f,K,y):sd(K,f,y)}),U}),I5=Yp(function(l,f,y){cs(l,y,f)});function oh(l,f){var y=Ct(l)?yn:gE;return y(l,dt(f,3))}function _5(l,f,y,$){return l==null?[]:(Ct(f)||(f=f==null?[]:[f]),y=$?n:y,Ct(y)||(y=y==null?[]:[y]),wE(l,f,y))}var $5=Yp(function(l,f,y){l[y?0:1].push(f)},function(){return[[],[]]});function T5(l,f,y){var $=Ct(l)?vy:US,D=arguments.length<3;return $(l,dt(f,4),y,D,Xs)}function M5(l,f,y){var $=Ct(l)?VF:US,D=arguments.length<3;return $(l,dt(f,4),y,D,cE)}function R5(l,f){var y=Ct(l)?Gs:uE;return y(l,lh(dt(f,3)))}function O5(l){var f=Ct(l)?iE:k4;return f(l)}function L5(l,f,y){(y?Lr(l,f,y):f===n)?f=1:f=Et(f);var $=Ct(l)?n4:P4;return $(l,f)}function A5(l){var f=Ct(l)?r4:_4;return f(l)}function F5(l){if(l==null)return 0;if(Vr(l))return ch(l)?ic(l):l.length;var f=Cr(l);return f==De||f==ze?l.size:Fy(l).length}function N5(l,f,y){var $=Ct(l)?yy:$4;return y&&Lr(l,f,y)&&(f=n),$(l,dt(f,3))}var D5=_t(function(l,f){if(l==null)return[];var y=f.length;return y>1&&Lr(l,f[0],f[1])?f=[]:y>2&&Lr(f[0],f[1],f[2])&&(f=[f[0]]),wE(l,fr(f,1),[])}),ih=yN||function(){return dr.Date.now()};function B5(l,f){if(typeof f!="function")throw new Lo(s);return l=Et(l),function(){if(--l<1)return f.apply(this,arguments)}}function hk(l,f,y){return f=y?n:f,f=l&&f==null?l.length:f,us(l,I,n,n,n,n,f)}function mk(l,f){var y;if(typeof f!="function")throw new Lo(s);return l=Et(l),function(){return--l>0&&(y=f.apply(this,arguments)),l<=1&&(f=n),y}}var s0=_t(function(l,f,y){var $=x;if(y.length){var D=qs(y,pc(s0));$|=P}return us(l,$,f,y,D)}),gk=_t(function(l,f,y){var $=x|C;if(y.length){var D=qs(y,pc(gk));$|=P}return us(f,$,l,y,D)});function vk(l,f,y){f=y?n:f;var $=us(l,w,n,n,n,n,n,f);return $.placeholder=vk.placeholder,$}function yk(l,f,y){f=y?n:f;var $=us(l,E,n,n,n,n,n,f);return $.placeholder=yk.placeholder,$}function bk(l,f,y){var $,D,U,K,Y,ne,Ee=0,ke=!1,Pe=!1,Be=!0;if(typeof l!="function")throw new Lo(s);f=Bo(f)||0,Pn(y)&&(ke=!!y.leading,Pe="maxWait"in y,U=Pe?Xn(Bo(y.maxWait)||0,f):U,Be="trailing"in y?!!y.trailing:Be);function tt(zn){var di=$,ms=D;return $=D=n,Ee=zn,K=l.apply(ms,di),K}function ht(zn){return Ee=zn,Y=dd(Mt,f),ke?tt(zn):K}function kt(zn){var di=zn-ne,ms=zn-Ee,Dk=f-di;return Pe?wr(Dk,U-ms):Dk}function mt(zn){var di=zn-ne,ms=zn-Ee;return ne===n||di>=f||di<0||Pe&&ms>=U}function Mt(){var zn=ih();if(mt(zn))return Dt(zn);Y=dd(Mt,kt(zn))}function Dt(zn){return Y=n,Be&&$?tt(zn):($=D=n,K)}function uo(){Y!==n&&$E(Y),Ee=0,$=ne=D=Y=n}function Ar(){return Y===n?K:Dt(ih())}function fo(){var zn=ih(),di=mt(zn);if($=arguments,D=this,ne=zn,di){if(Y===n)return ht(ne);if(Pe)return $E(Y),Y=dd(Mt,f),tt(ne)}return Y===n&&(Y=dd(Mt,f)),K}return fo.cancel=uo,fo.flush=Ar,fo}var z5=_t(function(l,f){return aE(l,1,f)}),j5=_t(function(l,f,y){return aE(l,Bo(f)||0,y)});function H5(l){return us(l,O)}function sh(l,f){if(typeof l!="function"||f!=null&&typeof f!="function")throw new Lo(s);var y=function(){var $=arguments,D=f?f.apply(this,$):$[0],U=y.cache;if(U.has(D))return U.get(D);var K=l.apply(this,$);return y.cache=U.set(D,K)||U,K};return y.cache=new(sh.Cache||as),y}sh.Cache=as;function lh(l){if(typeof l!="function")throw new Lo(s);return function(){var f=arguments;switch(f.length){case 0:return!l.call(this);case 1:return!l.call(this,f[0]);case 2:return!l.call(this,f[0],f[1]);case 3:return!l.call(this,f[0],f[1],f[2])}return!l.apply(this,f)}}function V5(l){return mk(2,l)}var U5=T4(function(l,f){f=f.length==1&&Ct(f[0])?yn(f[0],lo(dt())):yn(fr(f,1),lo(dt()));var y=f.length;return _t(function($){for(var D=-1,U=wr($.length,y);++D<U;)$[D]=f[D].call(this,$[D]);return so(l,this,$)})}),l0=_t(function(l,f){var y=qs(f,pc(l0));return us(l,P,n,f,y)}),wk=_t(function(l,f){var y=qs(f,pc(wk));return us(l,_,n,f,y)}),W5=ds(function(l,f){return us(l,M,n,n,n,f)});function G5(l,f){if(typeof l!="function")throw new Lo(s);return f=f===n?f:Et(f),_t(l,f)}function K5(l,f){if(typeof l!="function")throw new Lo(s);return f=f==null?0:Xn(Et(f),0),_t(function(y){var $=y[f],D=Zs(y,0,f);return $&&Ks(D,$),so(l,this,D)})}function q5(l,f,y){var $=!0,D=!0;if(typeof l!="function")throw new Lo(s);return Pn(y)&&($="leading"in y?!!y.leading:$,D="trailing"in y?!!y.trailing:D),bk(l,f,{leading:$,maxWait:f,trailing:D})}function Y5(l){return hk(l,1)}function X5(l,f){return l0(Wy(f),l)}function Q5(){if(!arguments.length)return[];var l=arguments[0];return Ct(l)?l:[l]}function J5(l){return Fo(l,v)}function Z5(l,f){return f=typeof f=="function"?f:n,Fo(l,v,f)}function e3(l){return Fo(l,h|v)}function t3(l,f){return f=typeof f=="function"?f:n,Fo(l,h|v,f)}function n3(l,f){return f==null||lE(l,f,nr(f))}function ui(l,f){return l===f||l!==l&&f!==f}var r3=Zp(Oy),o3=Zp(function(l,f){return l>=f}),la=pE(function(){return arguments}())?pE:function(l){return Ln(l)&&Jt.call(l,"callee")&&!ZS.call(l,"callee")},Ct=he.isArray,i3=LS?lo(LS):p4;function Vr(l){return l!=null&&ah(l.length)&&!ps(l)}function Bn(l){return Ln(l)&&Vr(l)}function s3(l){return l===!0||l===!1||Ln(l)&&Or(l)==oe}var el=wN||y0,l3=AS?lo(AS):h4;function a3(l){return Ln(l)&&l.nodeType===1&&!fd(l)}function c3(l){if(l==null)return!0;if(Vr(l)&&(Ct(l)||typeof l=="string"||typeof l.splice=="function"||el(l)||hc(l)||la(l)))return!l.length;var f=Cr(l);if(f==De||f==ze)return!l.size;if(ud(l))return!Fy(l).length;for(var y in l)if(Jt.call(l,y))return!1;return!0}function u3(l,f){return ld(l,f)}function d3(l,f,y){y=typeof y=="function"?y:n;var $=y?y(l,f):n;return $===n?ld(l,f,n,y):!!$}function a0(l){if(!Ln(l))return!1;var f=Or(l);return f==we||f==be||typeof l.message=="string"&&typeof l.name=="string"&&!fd(l)}function f3(l){return typeof l=="number"&&tE(l)}function ps(l){if(!Pn(l))return!1;var f=Or(l);return f==$e||f==Ve||f==ce||f==Xe}function Ck(l){return typeof l=="number"&&l==Et(l)}function ah(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=N}function Pn(l){var f=typeof l;return l!=null&&(f=="object"||f=="function")}function Ln(l){return l!=null&&typeof l=="object"}var xk=FS?lo(FS):g4;function p3(l,f){return l===f||Ay(l,f,Jy(f))}function h3(l,f,y){return y=typeof y=="function"?y:n,Ay(l,f,Jy(f),y)}function m3(l){return Sk(l)&&l!=+l}function g3(l){if(Z4(l))throw new bt(i);return hE(l)}function v3(l){return l===null}function y3(l){return l==null}function Sk(l){return typeof l=="number"||Ln(l)&&Or(l)==re}function fd(l){if(!Ln(l)||Or(l)!=ve)return!1;var f=Ap(l);if(f===null)return!0;var y=Jt.call(f,"constructor")&&f.constructor;return typeof y=="function"&&y instanceof y&&Mp.call(y)==hN}var c0=NS?lo(NS):v4;function b3(l){return Ck(l)&&l>=-N&&l<=N}var Ek=DS?lo(DS):y4;function ch(l){return typeof l=="string"||!Ct(l)&&Ln(l)&&Or(l)==pt}function co(l){return typeof l=="symbol"||Ln(l)&&Or(l)==ot}var hc=BS?lo(BS):b4;function w3(l){return l===n}function C3(l){return Ln(l)&&Cr(l)==vt}function x3(l){return Ln(l)&&Or(l)==ut}var S3=Zp(Ny),E3=Zp(function(l,f){return l<=f});function kk(l){if(!l)return[];if(Vr(l))return ch(l)?ai(l):Hr(l);if(Zu&&l[Zu])return nN(l[Zu]());var f=Cr(l),y=f==De?Ey:f==ze?_p:mc;return y(l)}function hs(l){if(!l)return l===0?l:0;if(l=Bo(l),l===G||l===-G){var f=l<0?-1:1;return f*z}return l===l?l:0}function Et(l){var f=hs(l),y=f%1;return f===f?y?f-y:f:0}function Pk(l){return l?ra(Et(l),0,q):0}function Bo(l){if(typeof l=="number")return l;if(co(l))return W;if(Pn(l)){var f=typeof l.valueOf=="function"?l.valueOf():l;l=Pn(f)?f+"":f}if(typeof l!="string")return l===0?l:+l;l=WS(l);var y=zt.test(l);return y||kn.test(l)?BF(l.slice(2),y?2:8):at.test(l)?W:+l}function Ik(l){return Li(l,Ur(l))}function k3(l){return l?ra(Et(l),-N,N):l===0?l:0}function qt(l){return l==null?"":ao(l)}var P3=dc(function(l,f){if(ud(f)||Vr(f)){Li(f,nr(f),l);return}for(var y in f)Jt.call(f,y)&&od(l,y,f[y])}),_k=dc(function(l,f){Li(f,Ur(f),l)}),uh=dc(function(l,f,y,$){Li(f,Ur(f),l,$)}),I3=dc(function(l,f,y,$){Li(f,nr(f),l,$)}),_3=ds(Ty);function $3(l,f){var y=uc(l);return f==null?y:sE(y,f)}var T3=_t(function(l,f){l=on(l);var y=-1,$=f.length,D=$>2?f[2]:n;for(D&&Lr(f[0],f[1],D)&&($=1);++y<$;)for(var U=f[y],K=Ur(U),Y=-1,ne=K.length;++Y<ne;){var Ee=K[Y],ke=l[Ee];(ke===n||ui(ke,lc[Ee])&&!Jt.call(l,Ee))&&(l[Ee]=U[Ee])}return l}),M3=_t(function(l){return l.push(n,WE),so($k,n,l)});function R3(l,f){return jS(l,dt(f,3),Oi)}function O3(l,f){return jS(l,dt(f,3),Ry)}function L3(l,f){return l==null?l:My(l,dt(f,3),Ur)}function A3(l,f){return l==null?l:dE(l,dt(f,3),Ur)}function F3(l,f){return l&&Oi(l,dt(f,3))}function N3(l,f){return l&&Ry(l,dt(f,3))}function D3(l){return l==null?[]:Wp(l,nr(l))}function B3(l){return l==null?[]:Wp(l,Ur(l))}function u0(l,f,y){var $=l==null?n:oa(l,f);return $===n?y:$}function z3(l,f){return l!=null&&qE(l,f,c4)}function d0(l,f){return l!=null&&qE(l,f,u4)}var j3=zE(function(l,f,y){f!=null&&typeof f.toString!="function"&&(f=Rp.call(f)),l[f]=y},p0(Wr)),H3=zE(function(l,f,y){f!=null&&typeof f.toString!="function"&&(f=Rp.call(f)),Jt.call(l,f)?l[f].push(y):l[f]=[y]},dt),V3=_t(sd);function nr(l){return Vr(l)?oE(l):Fy(l)}function Ur(l){return Vr(l)?oE(l,!0):w4(l)}function U3(l,f){var y={};return f=dt(f,3),Oi(l,function($,D,U){cs(y,f($,D,U),$)}),y}function W3(l,f){var y={};return f=dt(f,3),Oi(l,function($,D,U){cs(y,D,f($,D,U))}),y}var G3=dc(function(l,f,y){Gp(l,f,y)}),$k=dc(function(l,f,y,$){Gp(l,f,y,$)}),K3=ds(function(l,f){var y={};if(l==null)return y;var $=!1;f=yn(f,function(U){return U=Js(U,l),$||($=U.length>1),U}),Li(l,Xy(l),y),$&&(y=Fo(y,h|m|v,j4));for(var D=f.length;D--;)Hy(y,f[D]);return y});function q3(l,f){return Tk(l,lh(dt(f)))}var Y3=ds(function(l,f){return l==null?{}:x4(l,f)});function Tk(l,f){if(l==null)return{};var y=yn(Xy(l),function($){return[$]});return f=dt(f),CE(l,y,function($,D){return f($,D[0])})}function X3(l,f,y){f=Js(f,l);var $=-1,D=f.length;for(D||(D=1,l=n);++$<D;){var U=l==null?n:l[Ai(f[$])];U===n&&($=D,U=y),l=ps(U)?U.call(l):U}return l}function Q3(l,f,y){return l==null?l:ad(l,f,y)}function J3(l,f,y,$){return $=typeof $=="function"?$:n,l==null?l:ad(l,f,y,$)}var Mk=VE(nr),Rk=VE(Ur);function Z3(l,f,y){var $=Ct(l),D=$||el(l)||hc(l);if(f=dt(f,4),y==null){var U=l&&l.constructor;D?y=$?new U:[]:Pn(l)?y=ps(U)?uc(Ap(l)):{}:y={}}return(D?Oo:Oi)(l,function(K,Y,ne){return f(y,K,Y,ne)}),y}function eB(l,f){return l==null?!0:Hy(l,f)}function tB(l,f,y){return l==null?l:PE(l,f,Wy(y))}function nB(l,f,y,$){return $=typeof $=="function"?$:n,l==null?l:PE(l,f,Wy(y),$)}function mc(l){return l==null?[]:Sy(l,nr(l))}function rB(l){return l==null?[]:Sy(l,Ur(l))}function oB(l,f,y){return y===n&&(y=f,f=n),y!==n&&(y=Bo(y),y=y===y?y:0),f!==n&&(f=Bo(f),f=f===f?f:0),ra(Bo(l),f,y)}function iB(l,f,y){return f=hs(f),y===n?(y=f,f=0):y=hs(y),l=Bo(l),d4(l,f,y)}function sB(l,f,y){if(y&&typeof y!="boolean"&&Lr(l,f,y)&&(f=y=n),y===n&&(typeof f=="boolean"?(y=f,f=n):typeof l=="boolean"&&(y=l,l=n)),l===n&&f===n?(l=0,f=1):(l=hs(l),f===n?(f=l,l=0):f=hs(f)),l>f){var $=l;l=f,f=$}if(y||l%1||f%1){var D=nE();return wr(l+D*(f-l+DF("1e-"+((D+"").length-1))),f)}return By(l,f)}var lB=fc(function(l,f,y){return f=f.toLowerCase(),l+(y?Ok(f):f)});function Ok(l){return f0(qt(l).toLowerCase())}function Lk(l){return l=qt(l),l&&l.replace(tr,QF).replace(_F,"")}function aB(l,f,y){l=qt(l),f=ao(f);var $=l.length;y=y===n?$:ra(Et(y),0,$);var D=y;return y-=f.length,y>=0&&l.slice(y,D)==f}function cB(l){return l=qt(l),l&&Un.test(l)?l.replace(rn,JF):l}function uB(l){return l=qt(l),l&&Fe.test(l)?l.replace(Ce,"\\$&"):l}var dB=fc(function(l,f,y){return l+(y?"-":"")+f.toLowerCase()}),fB=fc(function(l,f,y){return l+(y?" ":"")+f.toLowerCase()}),pB=NE("toLowerCase");function hB(l,f,y){l=qt(l),f=Et(f);var $=f?ic(l):0;if(!f||$>=f)return l;var D=(f-$)/2;return Jp(Bp(D),y)+l+Jp(Dp(D),y)}function mB(l,f,y){l=qt(l),f=Et(f);var $=f?ic(l):0;return f&&$<f?l+Jp(f-$,y):l}function gB(l,f,y){l=qt(l),f=Et(f);var $=f?ic(l):0;return f&&$<f?Jp(f-$,y)+l:l}function vB(l,f,y){return y||f==null?f=0:f&&(f=+f),EN(qt(l).replace(st,""),f||0)}function yB(l,f,y){return(y?Lr(l,f,y):f===n)?f=1:f=Et(f),zy(qt(l),f)}function bB(){var l=arguments,f=qt(l[0]);return l.length<3?f:f.replace(l[1],l[2])}var wB=fc(function(l,f,y){return l+(y?"_":"")+f.toLowerCase()});function CB(l,f,y){return y&&typeof y!="number"&&Lr(l,f,y)&&(f=y=n),y=y===n?q:y>>>0,y?(l=qt(l),l&&(typeof f=="string"||f!=null&&!c0(f))&&(f=ao(f),!f&&oc(l))?Zs(ai(l),0,y):l.split(f,y)):[]}var xB=fc(function(l,f,y){return l+(y?" ":"")+f0(f)});function SB(l,f,y){return l=qt(l),y=y==null?0:ra(Et(y),0,l.length),f=ao(f),l.slice(y,y+f.length)==f}function EB(l,f,y){var $=V.templateSettings;y&&Lr(l,f,y)&&(f=n),l=qt(l),f=uh({},f,$,UE);var D=uh({},f.imports,$.imports,UE),U=nr(D),K=Sy(D,U),Y,ne,Ee=0,ke=f.interpolate||Sp,Pe="__p += '",Be=ky((f.escape||Sp).source+"|"+ke.source+"|"+(ke===ss?ye:Sp).source+"|"+(f.evaluate||Sp).source+"|$","g"),tt="//# sourceURL="+(Jt.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++OF+"]")+`
|
|
303
|
+
`;l.replace(Be,function(mt,Mt,Dt,uo,Ar,fo){return Dt||(Dt=uo),Pe+=l.slice(Ee,fo).replace(uF,ZF),Mt&&(Y=!0,Pe+=`' +
|
|
304
|
+
__e(`+Mt+`) +
|
|
305
|
+
'`),Ar&&(ne=!0,Pe+=`';
|
|
306
|
+
`+Ar+`;
|
|
307
|
+
__p += '`),Dt&&(Pe+=`' +
|
|
308
|
+
((__t = (`+Dt+`)) == null ? '' : __t) +
|
|
309
|
+
'`),Ee=fo+mt.length,mt}),Pe+=`';
|
|
310
|
+
`;var ht=Jt.call(f,"variable")&&f.variable;if(!ht)Pe=`with (obj) {
|
|
311
|
+
`+Pe+`
|
|
312
|
+
}
|
|
313
|
+
`;else if(io.test(ht))throw new bt(a);Pe=(ne?Pe.replace(er,""):Pe).replace(vr,"$1").replace(yr,"$1;"),Pe="function("+(ht||"obj")+`) {
|
|
314
|
+
`+(ht?"":`obj || (obj = {});
|
|
315
|
+
`)+"var __t, __p = ''"+(Y?", __e = _.escape":"")+(ne?`, __j = Array.prototype.join;
|
|
316
|
+
function print() { __p += __j.call(arguments, '') }
|
|
317
|
+
`:`;
|
|
318
|
+
`)+Pe+`return __p
|
|
319
|
+
}`;var kt=Fk(function(){return Ut(U,tt+"return "+Pe).apply(n,K)});if(kt.source=Pe,a0(kt))throw kt;return kt}function kB(l){return qt(l).toLowerCase()}function PB(l){return qt(l).toUpperCase()}function IB(l,f,y){if(l=qt(l),l&&(y||f===n))return WS(l);if(!l||!(f=ao(f)))return l;var $=ai(l),D=ai(f),U=GS($,D),K=KS($,D)+1;return Zs($,U,K).join("")}function _B(l,f,y){if(l=qt(l),l&&(y||f===n))return l.slice(0,YS(l)+1);if(!l||!(f=ao(f)))return l;var $=ai(l),D=KS($,ai(f))+1;return Zs($,0,D).join("")}function $B(l,f,y){if(l=qt(l),l&&(y||f===n))return l.replace(st,"");if(!l||!(f=ao(f)))return l;var $=ai(l),D=GS($,ai(f));return Zs($,D).join("")}function TB(l,f){var y=L,$=R;if(Pn(f)){var D="separator"in f?f.separator:D;y="length"in f?Et(f.length):y,$="omission"in f?ao(f.omission):$}l=qt(l);var U=l.length;if(oc(l)){var K=ai(l);U=K.length}if(y>=U)return l;var Y=y-ic($);if(Y<1)return $;var ne=K?Zs(K,0,Y).join(""):l.slice(0,Y);if(D===n)return ne+$;if(K&&(Y+=ne.length-Y),c0(D)){if(l.slice(Y).search(D)){var Ee,ke=ne;for(D.global||(D=ky(D.source,qt(je.exec(D))+"g")),D.lastIndex=0;Ee=D.exec(ke);)var Pe=Ee.index;ne=ne.slice(0,Pe===n?Y:Pe)}}else if(l.indexOf(ao(D),Y)!=Y){var Be=ne.lastIndexOf(D);Be>-1&&(ne=ne.slice(0,Be))}return ne+$}function MB(l){return l=qt(l),l&&dn.test(l)?l.replace(br,sN):l}var RB=fc(function(l,f,y){return l+(y?" ":"")+f.toUpperCase()}),f0=NE("toUpperCase");function Ak(l,f,y){return l=qt(l),f=y?n:f,f===n?tN(l)?cN(l):GF(l):l.match(f)||[]}var Fk=_t(function(l,f){try{return so(l,n,f)}catch(y){return a0(y)?y:new bt(y)}}),OB=ds(function(l,f){return Oo(f,function(y){y=Ai(y),cs(l,y,s0(l[y],l))}),l});function LB(l){var f=l==null?0:l.length,y=dt();return l=f?yn(l,function($){if(typeof $[1]!="function")throw new Lo(s);return[y($[0]),$[1]]}):[],_t(function($){for(var D=-1;++D<f;){var U=l[D];if(so(U[0],this,$))return so(U[1],this,$)}})}function AB(l){return s4(Fo(l,h))}function p0(l){return function(){return l}}function FB(l,f){return l==null||l!==l?f:l}var NB=BE(),DB=BE(!0);function Wr(l){return l}function h0(l){return mE(typeof l=="function"?l:Fo(l,h))}function BB(l){return vE(Fo(l,h))}function zB(l,f){return yE(l,Fo(f,h))}var jB=_t(function(l,f){return function(y){return sd(y,l,f)}}),HB=_t(function(l,f){return function(y){return sd(l,y,f)}});function m0(l,f,y){var $=nr(f),D=Wp(f,$);y==null&&!(Pn(f)&&(D.length||!$.length))&&(y=f,f=l,l=this,D=Wp(f,nr(f)));var U=!(Pn(y)&&"chain"in y)||!!y.chain,K=ps(l);return Oo(D,function(Y){var ne=f[Y];l[Y]=ne,K&&(l.prototype[Y]=function(){var Ee=this.__chain__;if(U||Ee){var ke=l(this.__wrapped__),Pe=ke.__actions__=Hr(this.__actions__);return Pe.push({func:ne,args:arguments,thisArg:l}),ke.__chain__=Ee,ke}return ne.apply(l,Ks([this.value()],arguments))})}),l}function VB(){return dr._===this&&(dr._=mN),this}function g0(){}function UB(l){return l=Et(l),_t(function(f){return bE(f,l)})}var WB=Ky(yn),GB=Ky(zS),KB=Ky(yy);function Nk(l){return e0(l)?by(Ai(l)):S4(l)}function qB(l){return function(f){return l==null?n:oa(l,f)}}var YB=jE(),XB=jE(!0);function v0(){return[]}function y0(){return!1}function QB(){return{}}function JB(){return""}function ZB(){return!0}function ez(l,f){if(l=Et(l),l<1||l>N)return[];var y=q,$=wr(l,q);f=dt(f),l-=q;for(var D=xy($,f);++y<l;)f(y);return D}function tz(l){return Ct(l)?yn(l,Ai):co(l)?[l]:Hr(rk(qt(l)))}function nz(l){var f=++pN;return qt(l)+f}var rz=Qp(function(l,f){return l+f},0),oz=qy("ceil"),iz=Qp(function(l,f){return l/f},1),sz=qy("floor");function lz(l){return l&&l.length?Up(l,Wr,Oy):n}function az(l,f){return l&&l.length?Up(l,dt(f,2),Oy):n}function cz(l){return VS(l,Wr)}function uz(l,f){return VS(l,dt(f,2))}function dz(l){return l&&l.length?Up(l,Wr,Ny):n}function fz(l,f){return l&&l.length?Up(l,dt(f,2),Ny):n}var pz=Qp(function(l,f){return l*f},1),hz=qy("round"),mz=Qp(function(l,f){return l-f},0);function gz(l){return l&&l.length?Cy(l,Wr):0}function vz(l,f){return l&&l.length?Cy(l,dt(f,2)):0}return V.after=B5,V.ary=hk,V.assign=P3,V.assignIn=_k,V.assignInWith=uh,V.assignWith=I3,V.at=_3,V.before=mk,V.bind=s0,V.bindAll=OB,V.bindKey=gk,V.castArray=Q5,V.chain=dk,V.chunk=sD,V.compact=lD,V.concat=aD,V.cond=LB,V.conforms=AB,V.constant=p0,V.countBy=g5,V.create=$3,V.curry=vk,V.curryRight=yk,V.debounce=bk,V.defaults=T3,V.defaultsDeep=M3,V.defer=z5,V.delay=j5,V.difference=cD,V.differenceBy=uD,V.differenceWith=dD,V.drop=fD,V.dropRight=pD,V.dropRightWhile=hD,V.dropWhile=mD,V.fill=gD,V.filter=y5,V.flatMap=C5,V.flatMapDeep=x5,V.flatMapDepth=S5,V.flatten=lk,V.flattenDeep=vD,V.flattenDepth=yD,V.flip=H5,V.flow=NB,V.flowRight=DB,V.fromPairs=bD,V.functions=D3,V.functionsIn=B3,V.groupBy=E5,V.initial=CD,V.intersection=xD,V.intersectionBy=SD,V.intersectionWith=ED,V.invert=j3,V.invertBy=H3,V.invokeMap=P5,V.iteratee=h0,V.keyBy=I5,V.keys=nr,V.keysIn=Ur,V.map=oh,V.mapKeys=U3,V.mapValues=W3,V.matches=BB,V.matchesProperty=zB,V.memoize=sh,V.merge=G3,V.mergeWith=$k,V.method=jB,V.methodOf=HB,V.mixin=m0,V.negate=lh,V.nthArg=UB,V.omit=K3,V.omitBy=q3,V.once=V5,V.orderBy=_5,V.over=WB,V.overArgs=U5,V.overEvery=GB,V.overSome=KB,V.partial=l0,V.partialRight=wk,V.partition=$5,V.pick=Y3,V.pickBy=Tk,V.property=Nk,V.propertyOf=qB,V.pull=_D,V.pullAll=ck,V.pullAllBy=$D,V.pullAllWith=TD,V.pullAt=MD,V.range=YB,V.rangeRight=XB,V.rearg=W5,V.reject=R5,V.remove=RD,V.rest=G5,V.reverse=o0,V.sampleSize=L5,V.set=Q3,V.setWith=J3,V.shuffle=A5,V.slice=OD,V.sortBy=D5,V.sortedUniq=zD,V.sortedUniqBy=jD,V.split=CB,V.spread=K5,V.tail=HD,V.take=VD,V.takeRight=UD,V.takeRightWhile=WD,V.takeWhile=GD,V.tap=l5,V.throttle=q5,V.thru=rh,V.toArray=kk,V.toPairs=Mk,V.toPairsIn=Rk,V.toPath=tz,V.toPlainObject=Ik,V.transform=Z3,V.unary=Y5,V.union=KD,V.unionBy=qD,V.unionWith=YD,V.uniq=XD,V.uniqBy=QD,V.uniqWith=JD,V.unset=eB,V.unzip=i0,V.unzipWith=uk,V.update=tB,V.updateWith=nB,V.values=mc,V.valuesIn=rB,V.without=ZD,V.words=Ak,V.wrap=X5,V.xor=e5,V.xorBy=t5,V.xorWith=n5,V.zip=r5,V.zipObject=o5,V.zipObjectDeep=i5,V.zipWith=s5,V.entries=Mk,V.entriesIn=Rk,V.extend=_k,V.extendWith=uh,m0(V,V),V.add=rz,V.attempt=Fk,V.camelCase=lB,V.capitalize=Ok,V.ceil=oz,V.clamp=oB,V.clone=J5,V.cloneDeep=e3,V.cloneDeepWith=t3,V.cloneWith=Z5,V.conformsTo=n3,V.deburr=Lk,V.defaultTo=FB,V.divide=iz,V.endsWith=aB,V.eq=ui,V.escape=cB,V.escapeRegExp=uB,V.every=v5,V.find=b5,V.findIndex=ik,V.findKey=R3,V.findLast=w5,V.findLastIndex=sk,V.findLastKey=O3,V.floor=sz,V.forEach=fk,V.forEachRight=pk,V.forIn=L3,V.forInRight=A3,V.forOwn=F3,V.forOwnRight=N3,V.get=u0,V.gt=r3,V.gte=o3,V.has=z3,V.hasIn=d0,V.head=ak,V.identity=Wr,V.includes=k5,V.indexOf=wD,V.inRange=iB,V.invoke=V3,V.isArguments=la,V.isArray=Ct,V.isArrayBuffer=i3,V.isArrayLike=Vr,V.isArrayLikeObject=Bn,V.isBoolean=s3,V.isBuffer=el,V.isDate=l3,V.isElement=a3,V.isEmpty=c3,V.isEqual=u3,V.isEqualWith=d3,V.isError=a0,V.isFinite=f3,V.isFunction=ps,V.isInteger=Ck,V.isLength=ah,V.isMap=xk,V.isMatch=p3,V.isMatchWith=h3,V.isNaN=m3,V.isNative=g3,V.isNil=y3,V.isNull=v3,V.isNumber=Sk,V.isObject=Pn,V.isObjectLike=Ln,V.isPlainObject=fd,V.isRegExp=c0,V.isSafeInteger=b3,V.isSet=Ek,V.isString=ch,V.isSymbol=co,V.isTypedArray=hc,V.isUndefined=w3,V.isWeakMap=C3,V.isWeakSet=x3,V.join=kD,V.kebabCase=dB,V.last=Do,V.lastIndexOf=PD,V.lowerCase=fB,V.lowerFirst=pB,V.lt=S3,V.lte=E3,V.max=lz,V.maxBy=az,V.mean=cz,V.meanBy=uz,V.min=dz,V.minBy=fz,V.stubArray=v0,V.stubFalse=y0,V.stubObject=QB,V.stubString=JB,V.stubTrue=ZB,V.multiply=pz,V.nth=ID,V.noConflict=VB,V.noop=g0,V.now=ih,V.pad=hB,V.padEnd=mB,V.padStart=gB,V.parseInt=vB,V.random=sB,V.reduce=T5,V.reduceRight=M5,V.repeat=yB,V.replace=bB,V.result=X3,V.round=hz,V.runInContext=Z,V.sample=O5,V.size=F5,V.snakeCase=wB,V.some=N5,V.sortedIndex=LD,V.sortedIndexBy=AD,V.sortedIndexOf=FD,V.sortedLastIndex=ND,V.sortedLastIndexBy=DD,V.sortedLastIndexOf=BD,V.startCase=xB,V.startsWith=SB,V.subtract=mz,V.sum=gz,V.sumBy=vz,V.template=EB,V.times=ez,V.toFinite=hs,V.toInteger=Et,V.toLength=Pk,V.toLower=kB,V.toNumber=Bo,V.toSafeInteger=k3,V.toString=qt,V.toUpper=PB,V.trim=IB,V.trimEnd=_B,V.trimStart=$B,V.truncate=TB,V.unescape=MB,V.uniqueId=nz,V.upperCase=RB,V.upperFirst=f0,V.each=fk,V.eachRight=pk,V.first=ak,m0(V,function(){var l={};return Oi(V,function(f,y){Jt.call(V.prototype,y)||(l[y]=f)}),l}(),{chain:!1}),V.VERSION=r,Oo(["bind","bindKey","curry","curryRight","partial","partialRight"],function(l){V[l].placeholder=V}),Oo(["drop","take"],function(l,f){At.prototype[l]=function(y){y=y===n?1:Xn(Et(y),0);var $=this.__filtered__&&!f?new At(this):this.clone();return $.__filtered__?$.__takeCount__=wr(y,$.__takeCount__):$.__views__.push({size:wr(y,q),type:l+($.__dir__<0?"Right":"")}),$},At.prototype[l+"Right"]=function(y){return this.reverse()[l](y).reverse()}}),Oo(["filter","map","takeWhile"],function(l,f){var y=f+1,$=y==A||y==B;At.prototype[l]=function(D){var U=this.clone();return U.__iteratees__.push({iteratee:dt(D,3),type:y}),U.__filtered__=U.__filtered__||$,U}}),Oo(["head","last"],function(l,f){var y="take"+(f?"Right":"");At.prototype[l]=function(){return this[y](1).value()[0]}}),Oo(["initial","tail"],function(l,f){var y="drop"+(f?"":"Right");At.prototype[l]=function(){return this.__filtered__?new At(this):this[y](1)}}),At.prototype.compact=function(){return this.filter(Wr)},At.prototype.find=function(l){return this.filter(l).head()},At.prototype.findLast=function(l){return this.reverse().find(l)},At.prototype.invokeMap=_t(function(l,f){return typeof l=="function"?new At(this):this.map(function(y){return sd(y,l,f)})}),At.prototype.reject=function(l){return this.filter(lh(dt(l)))},At.prototype.slice=function(l,f){l=Et(l);var y=this;return y.__filtered__&&(l>0||f<0)?new At(y):(l<0?y=y.takeRight(-l):l&&(y=y.drop(l)),f!==n&&(f=Et(f),y=f<0?y.dropRight(-f):y.take(f-l)),y)},At.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},At.prototype.toArray=function(){return this.take(q)},Oi(At.prototype,function(l,f){var y=/^(?:filter|find|map|reject)|While$/.test(f),$=/^(?:head|last)$/.test(f),D=V[$?"take"+(f=="last"?"Right":""):f],U=$||/^find/.test(f);D&&(V.prototype[f]=function(){var K=this.__wrapped__,Y=$?[1]:arguments,ne=K instanceof At,Ee=Y[0],ke=ne||Ct(K),Pe=function(Mt){var Dt=D.apply(V,Ks([Mt],Y));return $&&Be?Dt[0]:Dt};ke&&y&&typeof Ee=="function"&&Ee.length!=1&&(ne=ke=!1);var Be=this.__chain__,tt=!!this.__actions__.length,ht=U&&!Be,kt=ne&&!tt;if(!U&&ke){K=kt?K:new At(this);var mt=l.apply(K,Y);return mt.__actions__.push({func:rh,args:[Pe],thisArg:n}),new Ao(mt,Be)}return ht&&kt?l.apply(this,Y):(mt=this.thru(Pe),ht?$?mt.value()[0]:mt.value():mt)})}),Oo(["pop","push","shift","sort","splice","unshift"],function(l){var f=$p[l],y=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",$=/^(?:pop|shift)$/.test(l);V.prototype[l]=function(){var D=arguments;if($&&!this.__chain__){var U=this.value();return f.apply(Ct(U)?U:[],D)}return this[y](function(K){return f.apply(Ct(K)?K:[],D)})}}),Oi(At.prototype,function(l,f){var y=V[f];if(y){var $=y.name+"";Jt.call(cc,$)||(cc[$]=[]),cc[$].push({name:f,func:y})}}),cc[Xp(n,C).name]=[{name:"wrapper",func:n}],At.prototype.clone=MN,At.prototype.reverse=RN,At.prototype.value=ON,V.prototype.at=a5,V.prototype.chain=c5,V.prototype.commit=u5,V.prototype.next=d5,V.prototype.plant=p5,V.prototype.reverse=h5,V.prototype.toJSON=V.prototype.valueOf=V.prototype.value=m5,V.prototype.first=V.prototype.head,Zu&&(V.prototype[Zu]=f5),V},sc=uN();Zl?((Zl.exports=sc)._=sc,hy._=sc):dr._=sc}).call(hn)})(Rte,Ps);const Ot=Ps;globalThis&&globalThis.__awaiter;function kO(e,t){const[n,r]=u.useState(e);return u.useEffect(()=>{const o=setTimeout(()=>r(e),t||500);return()=>{clearTimeout(o)}},[e,t]),n}function Ote(e,t,n,r){const o=u.useRef(t);PO(()=>{o.current=t},[t]),u.useEffect(()=>{var i;const s=(i=n==null?void 0:n.current)!==null&&i!==void 0?i:window;if(!(s&&s.addEventListener))return;const a=c=>o.current(c);return s.addEventListener(e,a,r),()=>{s.removeEventListener(e,a,r)}},[e,n,r])}globalThis&&globalThis.__awaiter;function Lte(){const e=u.useRef(!1);return u.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),u.useCallback(()=>e.current,[])}const PO=typeof window!="undefined"?u.useLayoutEffect:u.useEffect;function Ate(){const[e,t]=u.useState({width:0,height:0}),n=()=>{t({width:window.innerWidth,height:window.innerHeight})};return Ote("resize",n),PO(()=>{n()},[]),e}function yo(e){const t=Lte(),[n,r]=u.useState(e),o=u.useCallback(i=>{t()&&r(i)},[t,r]);return[n,o,t]}function Fte(e){return e.filter(t=>t===0||t&&(!Array.isArray(t)||t.length))}function Nte(e,t){const n=[];for(const r of Fte(t))n.push(r,e);return n.splice(-1,1),og(n)}function og(e){return e.map((t,n)=>!t||typeof t=="string"?t:Array.isArray(t)?og(t):u.createElement(u.Fragment,{key:n,children:t}))}const Dte=Symbol(),ux=Symbol(),$d="a",lf="w";let Bte=(e,t)=>new Proxy(e,t);const Gb=Object.getPrototypeOf,Kb=new WeakMap,IO=e=>e&&(Kb.has(e)?Kb.get(e):Gb(e)===Object.prototype||Gb(e)===Array.prototype),ig=e=>typeof e=="object"&&e!==null,zte=e=>{if(Array.isArray(e))return Array.from(e);const t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach(n=>{n.configurable=!0}),Object.create(Gb(e),t)},dx=e=>e[ux]||e,_O=(e,t,n,r)=>{if(!IO(e))return e;let o=r&&r.get(e);if(!o){const c=dx(e);o=(d=>Object.values(Object.getOwnPropertyDescriptors(d)).some(p=>!p.configurable&&!p.writable))(c)?[c,zte(c)]:[c],r==null||r.set(e,o)}const[i,s]=o;let a=n&&n.get(i);return a&&a[1].f===!!s||(a=((c,d)=>{const p={f:d};let h=!1;const m=(b,g)=>{if(!h){let x=p[$d].get(c);if(x||(x={},p[$d].set(c,x)),b===lf)x[lf]=!0;else{let C=x[b];C||(C=new Set,x[b]=C),C.add(g)}}},v={get:(b,g)=>g===ux?c:(m("k",g),_O(Reflect.get(b,g),p[$d],p.c)),has:(b,g)=>g===Dte?(h=!0,p[$d].delete(c),!0):(m("h",g),Reflect.has(b,g)),getOwnPropertyDescriptor:(b,g)=>(m("o",g),Reflect.getOwnPropertyDescriptor(b,g)),ownKeys:b=>(m(lf),Reflect.ownKeys(b))};return d&&(v.set=v.deleteProperty=()=>!1),[v,p]})(i,!!s),a[1].p=Bte(s||i,a[0]),n&&n.set(i,a)),a[1][$d]=t,a[1].c=n,a[1].p},$O=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!ig(e)||!ig(t))return!0;const o=n.get(dx(e));if(!o)return!0;if(r){const s=r.get(e);if(s&&s.n===t)return s.g;r.set(e,{n:t,g:!1})}let i=null;try{for(const s of o.h||[])if(i=Reflect.has(e,s)!==Reflect.has(t,s),i)return i;if(o[lf]===!0){if(i=((s,a)=>{const c=Reflect.ownKeys(s),d=Reflect.ownKeys(a);return c.length!==d.length||c.some((p,h)=>p!==d[h])})(e,t),i)return i}else for(const s of o.o||[])if(i=!!Reflect.getOwnPropertyDescriptor(e,s)!=!!Reflect.getOwnPropertyDescriptor(t,s),i)return i;for(const s of o.k||[])if(i=$O(e[s],t[s],n,r),i)return i;return i===null&&(i=!0),i}finally{r&&r.set(e,{n:t,g:i})}},jte=e=>IO(e)&&e[ux]||null,t_=(e,t=!0)=>{Kb.set(e,t)},Hte=(e,t,n)=>{const r=[],o=new WeakSet,i=(s,a)=>{if(o.has(s))return;ig(s)&&o.add(s);const c=ig(s)&&t.get(dx(s));if(c){var d,p;if((d=c.h)==null||d.forEach(m=>{const v=`:has(${String(m)})`;r.push(a?[...a,v]:[v])}),c[lf]===!0){const m=":ownKeys";r.push(a?[...a,m]:[m])}else{var h;(h=c.o)==null||h.forEach(m=>{const v=`:hasOwn(${String(m)})`;r.push(a?[...a,v]:[v])})}(p=c.k)==null||p.forEach(m=>{n&&!("value"in(Object.getOwnPropertyDescriptor(s,m)||{}))||i(s[m],a?[...a,m]:[m])})}else a&&r.push(a)};return i(e),r},c1=e=>typeof e=="object"&&e!==null,cl=new WeakMap,jh=new WeakSet,Vte=(e=Object.is,t=(d,p)=>new Proxy(d,p),n=d=>c1(d)&&!jh.has(d)&&(Array.isArray(d)||!(Symbol.iterator in d))&&!(d instanceof WeakMap)&&!(d instanceof WeakSet)&&!(d instanceof Error)&&!(d instanceof Number)&&!(d instanceof Date)&&!(d instanceof String)&&!(d instanceof RegExp)&&!(d instanceof ArrayBuffer),r=d=>{switch(d.status){case"fulfilled":return d.value;case"rejected":throw d.reason;default:throw d}},o=new WeakMap,i=(d,p,h=r)=>{const m=o.get(d);if((m==null?void 0:m[0])===p)return m[1];const v=Array.isArray(d)?[]:Object.create(Object.getPrototypeOf(d));return t_(v,!0),o.set(d,[p,v]),Reflect.ownKeys(d).forEach(b=>{if(Object.getOwnPropertyDescriptor(v,b))return;const g=Reflect.get(d,b),x={value:g,enumerable:!0,configurable:!0};if(jh.has(g))t_(g,!1);else if(g instanceof Promise)delete x.value,x.get=()=>h(g);else if(cl.has(g)){const[C,S]=cl.get(g);x.value=i(C,S(),h)}Object.defineProperty(v,b,x)}),v},s=new WeakMap,a=[1,1],c=d=>{if(!c1(d))throw new Error("object required");const p=s.get(d);if(p)return p;let h=a[0];const m=new Set,v=(O,L=++a[0])=>{h!==L&&(h=L,m.forEach(R=>R(O,L)))};let b=a[1];const g=(O=++a[1])=>(b!==O&&!m.size&&(b=O,C.forEach(([L])=>{const R=L[1](O);R>h&&(h=R)})),h),x=O=>(L,R)=>{const H=[...L];H[1]=[O,...H[1]],v(H,R)},C=new Map,S=(O,L)=>{if(({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&C.has(O))throw new Error("prop listener already exists");if(m.size){const R=L[3](x(O));C.set(O,[L,R])}else C.set(O,[L])},w=O=>{var L;const R=C.get(O);R&&(C.delete(O),(L=R[1])==null||L.call(R))},E=O=>(m.add(O),m.size===1&&C.forEach(([R,H],j)=>{if(({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&H)throw new Error("remove already exists");const A=R[3](x(j));C.set(j,[R,A])}),()=>{m.delete(O),m.size===0&&C.forEach(([R,H],j)=>{H&&(H(),C.set(j,[R]))})}),P=Array.isArray(d)?[]:Object.create(Object.getPrototypeOf(d)),I=t(P,{deleteProperty(O,L){const R=Reflect.get(O,L);w(L);const H=Reflect.deleteProperty(O,L);return H&&v(["delete",[L],R]),H},set(O,L,R,H){const j=Reflect.has(O,L),A=Reflect.get(O,L,H);if(j&&(e(A,R)||s.has(R)&&e(A,s.get(R))))return!0;w(L),c1(R)&&(R=jte(R)||R);let F=R;if(R instanceof Promise)R.then(B=>{R.status="fulfilled",R.value=B,v(["resolve",[L],B])}).catch(B=>{R.status="rejected",R.reason=B,v(["reject",[L],B])});else{!cl.has(R)&&n(R)&&(F=c(R));const B=!jh.has(F)&&cl.get(F);B&&S(L,B)}return Reflect.set(O,L,F,H),v(["set",[L],R,A]),!0}});s.set(d,I);const M=[P,g,i,E];return cl.set(I,M),Reflect.ownKeys(d).forEach(O=>{const L=Object.getOwnPropertyDescriptor(d,O);"value"in L&&(I[O]=d[O],delete L.value,delete L.writable),Object.defineProperty(P,O,L)}),I})=>[c,cl,jh,e,t,n,r,o,i,s,a],[Ute]=Vte();function ap(e={}){return Ute(e)}function fx(e,t,n){const r=cl.get(e);({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&!r&&console.warn("Please use proxy object");let o;const i=[],s=r[3];let a=!1;const d=s(p=>{if(i.push(p),n){t(i.splice(0));return}o||(o=Promise.resolve().then(()=>{o=void 0,a&&t(i.splice(0))}))});return a=!0,()=>{a=!1,d()}}function n_(e,t){const n=cl.get(e);({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&!n&&console.warn("Please use proxy object");const[r,o,i]=n;return i(r,o(),t)}var qb={},Wte={get exports(){return qb},set exports(e){qb=e}},TO={};/**
|
|
320
|
+
* @license React
|
|
321
|
+
* use-sync-external-store-shim.production.min.js
|
|
322
|
+
*
|
|
323
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
324
|
+
*
|
|
325
|
+
* This source code is licensed under the MIT license found in the
|
|
326
|
+
* LICENSE file in the root directory of this source tree.
|
|
327
|
+
*/var Cu=u;function Gte(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Kte=typeof Object.is=="function"?Object.is:Gte,qte=Cu.useState,Yte=Cu.useEffect,Xte=Cu.useLayoutEffect,Qte=Cu.useDebugValue;function Jte(e,t){var n=t(),r=qte({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return Xte(function(){o.value=n,o.getSnapshot=t,u1(o)&&i({inst:o})},[e,n,t]),Yte(function(){return u1(o)&&i({inst:o}),e(function(){u1(o)&&i({inst:o})})},[e]),Qte(n),n}function u1(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Kte(e,n)}catch(r){return!0}}function Zte(e,t){return t()}var ene=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?Zte:Jte;TO.useSyncExternalStore=Cu.useSyncExternalStore!==void 0?Cu.useSyncExternalStore:ene;(function(e){e.exports=TO})(Wte);const tne=Cw(qb),{use:r_}=Yr,{useSyncExternalStore:nne}=tne,rne=(e,t)=>{const n=u.useRef();u.useEffect(()=>{n.current=Hte(e,t,!0)}),u.useDebugValue(n.current)},one=new WeakMap;function Av(e,t){const n=t==null?void 0:t.sync,r=u.useRef(),o=u.useRef();let i=!0;const s=nne(u.useCallback(d=>{const p=fx(e,d,n);return d(),p},[e,n]),()=>{const d=n_(e,r_);try{if(!i&&r.current&&o.current&&!$O(r.current,d,o.current,new WeakMap))return r.current}catch(p){}return d},()=>n_(e,r_));i=!1;const a=new WeakMap;u.useEffect(()=>{r.current=s,o.current=a}),({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&rne(s,a);const c=u.useMemo(()=>new WeakMap,[]);return _O(s,a,c,one)}const Pa=ap([]),fm={closableContent:"x",padding:!0};function ine(){const e=Av(Pa);return u.createElement(u.Fragment,{},e.length>0&&e.map((t,n)=>u.createElement(sne,Ie({key:n},t))))}function sne(e){var r;const t=u.useRef();if(u.useEffect(()=>{var o;(o=t.current)==null||o.focus()},[]),e=Ie(Ie({},fm),e),e.Container)return u.createElement(e.Container,e);return u.createElement("div",{ref:t,className:"dialog-backdrop "+(e.className||""),tabIndex:0,onKeyDown:lne,onClick:()=>Ii()},e.noFrame?u.createElement(e.Content||"div"):u.createElement("div",Ie({className:"dialog",style:Ie(Ie({},n()),(r=e.dialogProps)==null?void 0:r.style),onClick(o){o.stopPropagation()}},e.dialogProps),e.closable||e.closable===void 0&&u.createElement("button",{className:"dialog-icon dialog-closer",onClick(){Ii()}},e.closableContent),e.icon&&u.createElement("div",{className:"dialog-icon dialog-type"},Yb(e.icon)),u.createElement("div",{className:"dialog-title"},Yb(e.title)),u.createElement("div",{className:"dialog-content"},u.createElement(e.Content||"div"))));function n(){const{innerWidth:o,innerHeight:i}=window,s=e.position;return s&&Ie(Ie({margin:"1em",position:"absolute"},s[0]<o/2?{left:s[0]}:{right:o-s[0]}),s[1]<i/2?{top:s[1]}:{bottom:i-s[1]})}}function Yb(e){return typeof e=="function"?u.createElement(e):e}function lne(e){e.key==="Escape"&&Ii()}function si(e){const t=Math.random();return e.$id=t,Pa.push(e),n=>{var o;const r=Pa.findIndex(i=>i.$id===t);r<0||(Pa.splice(r,1),(o=e.onClose)==null||o.call(e,n))}}function Ii(e){var n;let t=Pa.length;for(;t--;){const r=Pa[t];if(!r.reserveClosing)return Pa.splice(t,1),(n=r.onClose)==null?void 0:n.call(r,e)}}var Ia={},Fv={},xu={};const ane={},cne=Object.freeze(Object.defineProperty({__proto__:null,default:ane},Symbol.toStringTag,{value:"Module"})),o_=xz(cne);Object.defineProperty(xu,"__esModule",{value:!0});var i_=xu.crossEnvCrypto=void 0;try{const e=typeof window!="undefined"&&window.crypto||o_.webcrypto;if(e){if(!e.subtle)throw new Error("Crypto.Subtle is undefined. Make sure you are using HTTPS in a compatible browser.");const t=n=>r=>e.subtle.digest(n,r);i_=xu.crossEnvCrypto={randomBytes:e.getRandomValues.bind(e),hashFunctions:{SHA1:t("SHA-1"),SHA256:t("SHA-256"),SHA384:t("SHA-384"),SHA512:t("SHA-512")}}}else{const t=o_,n=r=>o=>t.createHash(r).update(o).digest().buffer;i_=xu.crossEnvCrypto={randomBytes:t.randomFillSync,hashFunctions:{SHA1:n("sha1"),SHA256:n("sha256"),SHA384:n("sha384"),SHA512:n("sha512")}}}}catch(e){throw console.error(e),new Error("No suitable crypto library was found. You may need a polyfill.")}Object.defineProperty(Fv,"__esModule",{value:!0});Fv.SRPParameters=void 0;const Hh=xu;class Su{constructor(t=Su.PrimeGroup[2048],n=Su.H.SHA512){if(this.primeGroup=t,this.H=n,this.NBits=this.primeGroup.N.toString(2).length,!n)throw new Error("Hash function required")}}Fv.SRPParameters=Su;Su.PrimeGroup={256:{N:BigInt("125617018995153554710546479714086468244499594888726646874671447258204721048803"),g:BigInt(2)},512:{N:BigInt("11144252439149533417835749556168991736939157778924947037200268358613863350040339017097790259154750906072491181606044774215413467851989724116331597513345603"),g:BigInt(2)},768:{N:BigInt("1087179135105457859072065649059069760280540086975817629066444682366896187793570736574549981488868217843627094867924800342887096064844227836735667168319981288765377499806385489913341488724152562880918438701129530606139552645689583147"),g:BigInt(2)},1024:{N:BigInt("167609434410335061345139523764350090260135525329813904557420930309800865859473551531551523800013916573891864789934747039010546328480848979516637673776605610374669426214776197828492691384519453218253702788022233205683635831626913357154941914129985489522629902540768368409482248290641036967659389658897350067939"),g:BigInt(2)},1536:{N:BigInt("1486998185923128292816507353619409521152457662596380074614818966810244974827752411420380336514078832314731499938313197533147998565301020797040787428051479639316928015998415709101293902971072960487527411068082311763171549170528008620813391411445907584912865222076100726050255271567749213905330659264908657221124284665444825474741087704974475795505492821585749417639344967192301749033325359286273431675492866492416941152646940908101472416714421046022696100064262587"),g:BigInt(2)},2048:{N:BigInt("21766174458617435773191008891802753781907668374255538511144643224689886235383840957210909013086056401571399717235807266581649606472148410291413364152197364477180887395655483738115072677402235101762521901569820740293149529620419333266262073471054548368736039519702486226506248861060256971802984953561121442680157668000761429988222457090413873973970171927093992114751765168063614761119615476233422096442783117971236371647333871414335895773474667308967050807005509320424799678417036867928316761272274230314067548291133582479583061439577559347101961771406173684378522703483495337037655006751328447510550299250924469288819"),g:BigInt(2)}};Su.H={SHA1:Hh.crossEnvCrypto.hashFunctions.SHA1,SHA256:Hh.crossEnvCrypto.hashFunctions.SHA256,SHA384:Hh.crossEnvCrypto.hashFunctions.SHA384,SHA512:Hh.crossEnvCrypto.hashFunctions.SHA512};var Nv={},Dv={};(function(e){var t=hn&&hn.__awaiter||function(w,E,P,_){function I(M){return M instanceof P?M:new P(function(O){O(M)})}return new(P||(P=Promise))(function(M,O){function L(j){try{H(_.next(j))}catch(A){O(A)}}function R(j){try{H(_.throw(j))}catch(A){O(A)}}function H(j){j.done?M(j.value):I(j.value).then(L,R)}H((_=_.apply(w,E||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.modPow=e.hashBitCount=e.createVerifierAndSalt=e.createVerifier=e.generateRandomBigInt=e.generateRandomString=e.hashPadded=e.hash=e.padStartArrayBuffer=e.stringToArrayBuffer=e.arrayBufferToBigInt=e.bigIntToArrayBuffer=void 0;const n=xu,r=BigInt(0),o=BigInt(1),i=BigInt(2),s=w=>{const E=w.toString(16),P=new ArrayBuffer(Math.ceil(E.length/2)),_=new Uint8Array(P);let I=0;E.length%2!==0&&(_[0]=parseInt(E[0],16),I=1);for(let M=0;M<P.byteLength;M++)_[M+I]=parseInt(E.slice(2*M+I,2*M+2+I),16);return P};e.bigIntToArrayBuffer=s;const a=w=>{const E=[];return new Uint8Array(w).forEach(P=>{E.push(("0"+P.toString(16)).slice(-2))}),BigInt(`0x${E.join("")}`)};e.arrayBufferToBigInt=a;function c(w){return new TextEncoder().encode(w).buffer}e.stringToArrayBuffer=c;const d=(w,E)=>{const P=new Uint8Array(w);if(P.length<E){const _=new Uint8Array(E);return _.fill(0,0,E-P.length),_.set(P,E-P.length),_}return P};e.padStartArrayBuffer=d;function p(w,...E){const P=E.reduce((I,M)=>I+M.byteLength,0),_=new Uint8Array(P);for(let I=0,M=0;M<E.length;M++)_.set(new Uint8Array(E[M]),I),I+=E[M].byteLength;return w.H(_)}e.hash=p;function h(w,E,...P){const _=P.map(I=>e.padStartArrayBuffer(I,E));return p(w,..._)}e.hashPadded=h;function m(w=10){const E=new Uint8Array(Math.ceil(Math.ceil(w/2)));return n.crossEnvCrypto.randomBytes(E),E.reduce((P,_)=>{const I=_.toString(16).toString();return I.length===1?P+"0"+I:P+I},"").slice(0,w)}e.generateRandomString=m;function v(w=16){return e.arrayBufferToBigInt(S(w))}e.generateRandomBigInt=v;function b(w,E,P,_){return t(this,void 0,void 0,function*(){if(!E||!E.trim())throw new Error("Identity (I) must not be null or empty.");if(!P)throw new Error("Salt (s) must not be null.");if(!_)throw new Error("Password (P) must not be null");const I=yield w.computeX(E,P,_);return w.computeVerifier(I)})}e.createVerifier=b;function g(w,E,P,_){return t(this,void 0,void 0,function*(){const I=yield w.generateRandomSalt(_);return{s:I,v:yield b(w,E,I,P)}})}e.createVerifierAndSalt=g;const x=w=>t(void 0,void 0,void 0,function*(){return(yield p(w,e.bigIntToArrayBuffer(BigInt(1)))).byteLength*8});e.hashBitCount=x;function C(w,E,P){let _=o;for(;E>r;)E%i==o?(_=w*_%P,E-=o):(w=w*w%P,E/=i);return _}e.modPow=C;const S=w=>{const E=new Uint8Array(w);return n.crossEnvCrypto.randomBytes(E),E.buffer}})(Dv);var ol=hn&&hn.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(p){try{d(r.next(p))}catch(h){s(h)}}function c(p){try{d(r.throw(p))}catch(h){s(h)}}function d(p){p.done?i(p.value):o(p.value).then(a,c)}d((r=r.apply(e,t||[])).next())})};Object.defineProperty(Nv,"__esModule",{value:!0});Nv.SRPRoutines=void 0;const nn=Dv;class une{constructor(t){this.parameters=t}hash(...t){return nn.hash(this.parameters,...t)}hashPadded(...t){const n=Math.trunc((this.parameters.NBits+7)/8);return nn.hashPadded(this.parameters,n,...t)}computeK(){return ol(this,void 0,void 0,function*(){return nn.arrayBufferToBigInt(yield this.hashPadded(nn.bigIntToArrayBuffer(this.parameters.primeGroup.N),nn.bigIntToArrayBuffer(this.parameters.primeGroup.g)))})}generateRandomSalt(t){return ol(this,void 0,void 0,function*(){const n=yield nn.hashBitCount(this.parameters),r=t||2*n/8;return nn.generateRandomBigInt(r)})}computeX(t,n,r){return ol(this,void 0,void 0,function*(){return nn.arrayBufferToBigInt(yield this.hash(nn.bigIntToArrayBuffer(n),yield this.computeIdentityHash(t,r)))})}computeXStep2(t,n){return ol(this,void 0,void 0,function*(){return nn.arrayBufferToBigInt(yield this.hash(nn.bigIntToArrayBuffer(t),n))})}computeIdentityHash(t,n){return ol(this,void 0,void 0,function*(){return yield this.hash(nn.stringToArrayBuffer(n))})}computeVerifier(t){return nn.modPow(this.parameters.primeGroup.g,t,this.parameters.primeGroup.N)}generatePrivateValue(){const t=Math.max(256,this.parameters.NBits);let n;do n=nn.generateRandomBigInt(t/8)%this.parameters.primeGroup.N;while(n===BigInt(0));return n}computeClientPublicValue(t){return nn.modPow(this.parameters.primeGroup.g,t,this.parameters.primeGroup.N)}isValidPublicValue(t){return t%this.parameters.primeGroup.N!==BigInt(0)}computeU(t,n){return ol(this,void 0,void 0,function*(){return nn.arrayBufferToBigInt(yield this.hashPadded(nn.bigIntToArrayBuffer(t),nn.bigIntToArrayBuffer(n)))})}computeClientEvidence(t,n,r,o,i){return ol(this,void 0,void 0,function*(){return nn.arrayBufferToBigInt(yield this.hash(nn.bigIntToArrayBuffer(r),nn.bigIntToArrayBuffer(o),nn.bigIntToArrayBuffer(i)))})}computeServerEvidence(t,n,r){return ol(this,void 0,void 0,function*(){return nn.arrayBufferToBigInt(yield this.hash(nn.bigIntToArrayBuffer(t),nn.bigIntToArrayBuffer(n),nn.bigIntToArrayBuffer(r)))})}computeClientSessionKey(t,n,r,o,i){const s=this.parameters.primeGroup.N,a=r*n+o,c=nn.modPow(this.parameters.primeGroup.g,n,s)*t%s;return nn.modPow(i+s-c,a,s)}}Nv.SRPRoutines=une;var Rl={},px=hn&&hn.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(p){try{d(r.next(p))}catch(h){s(h)}}function c(p){try{d(r.throw(p))}catch(h){s(h)}}function d(p){p.done?i(p.value):o(p.value).then(a,c)}d((r=r.apply(e,t||[])).next())})};Object.defineProperty(Rl,"__esModule",{value:!0});Rl.SRPClientSessionStep2=Rl.SRPClientSessionStep1=Rl.SRPClientSession=void 0;class dne{constructor(t){this.routines=t}step1(t,n){return px(this,void 0,void 0,function*(){if(!t||!t.trim())throw new Error("User identity must not be null nor empty");if(!n)throw new Error("User password must not be null");const r=yield this.routines.computeIdentityHash(t,n);return new Bv(this.routines,t,r)})}}Rl.SRPClientSession=dne;class Bv{constructor(t,n,r){this.routines=t,this.I=n,this.IH=r}step2(t,n){return px(this,void 0,void 0,function*(){if(!t)throw new Error("Salt (s) must not be null");if(!n)throw new Error("Public server value (B) must not be null");const r=yield this.routines.computeXStep2(t,this.IH),o=this.routines.generatePrivateValue(),i=this.routines.computeClientPublicValue(o),s=yield this.routines.computeK(),a=yield this.routines.computeU(i,n),c=this.routines.computeClientSessionKey(s,r,a,o,n),d=yield this.routines.computeClientEvidence(this.I,t,i,n,c);return new zv(this.routines,i,d,c)})}toJSON(){return{I:this.I,IH:Array.from(new Uint8Array(this.IH))}}static fromState(t,n){return new Bv(t,n.I,new Uint8Array(n.IH).buffer)}}Rl.SRPClientSessionStep1=Bv;class zv{constructor(t,n,r,o){this.routines=t,this.A=n,this.M1=r,this.S=o}step3(t){return px(this,void 0,void 0,function*(){if(!t)throw new Error("Server evidence (M2) must not be null");if((yield this.routines.computeServerEvidence(this.A,this.M1,this.S))!==t)throw new Error("Bad server credentials")})}toJSON(){return{A:this.A.toString(16),M1:this.M1.toString(16),S:this.S.toString(16)}}static fromState(t,n){return new zv(t,BigInt("0x"+n.A),BigInt("0x"+n.M1),BigInt("0x"+n.S))}}Rl.SRPClientSessionStep2=zv;var Eu={},Xb=hn&&hn.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(p){try{d(r.next(p))}catch(h){s(h)}}function c(p){try{d(r.throw(p))}catch(h){s(h)}}function d(p){p.done?i(p.value):o(p.value).then(a,c)}d((r=r.apply(e,t||[])).next())})};Object.defineProperty(Eu,"__esModule",{value:!0});Eu.SRPServerSessionStep1=Eu.SRPServerSession=void 0;const Qb=Dv;class fne{constructor(t){this.routines=t}step1(t,n,r){return Xb(this,void 0,void 0,function*(){const o=this.routines.generatePrivateValue(),i=yield this.routines.computeK(),s=pne(this.routines.parameters,i,r,o);return new jv(this.routines,t,n,r,o,s)})}}Eu.SRPServerSession=fne;class jv{constructor(t,n,r,o,i,s){this.routines=t,this.identifier=n,this.salt=r,this.verifier=o,this.b=i,this.B=s}sessionKey(t){return Xb(this,void 0,void 0,function*(){if(t===null)throw new Error("Client public value (A) must not be null");if(!this.routines.isValidPublicValue(t))throw new Error(`Invalid Client public value (A): ${t.toString(16)}`);const n=yield this.routines.computeU(t,this.B);return hne(this.routines.parameters.primeGroup.N,this.verifier,n,t,this.b)})}step2(t,n){return Xb(this,void 0,void 0,function*(){if(!n)throw new Error("Client evidence (M1) must not be null");const r=yield this.sessionKey(t);if((yield this.routines.computeClientEvidence(this.identifier,this.salt,t,this.B,r))!==n)throw new Error("Bad client credentials");return this.routines.computeServerEvidence(t,n,r)})}toJSON(){return{identifier:this.identifier,salt:this.salt.toString(16),verifier:this.verifier.toString(16),b:this.b.toString(16),B:this.B.toString(16)}}static fromState(t,n){return new jv(t,n.identifier,BigInt("0x"+n.salt),BigInt("0x"+n.verifier),BigInt("0x"+n.b),BigInt("0x"+n.B))}}Eu.SRPServerSessionStep1=jv;const pne=(e,t,n,r)=>(Qb.modPow(e.primeGroup.g,r,e.primeGroup.N)+n*t)%e.primeGroup.N,hne=(e,t,n,r,o)=>Qb.modPow(Qb.modPow(t,n,e)*r,o,e);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.generateRandomBigInt=e.arrayBufferToBigInt=e.bigIntToArrayBuffer=e.createVerifierAndSalt=e.SRPServerSessionStep1=e.SRPServerSession=e.SRPClientSessionStep2=e.SRPClientSessionStep1=e.SRPClientSession=e.SRPRoutines=e.SRPParameters=void 0;var t=Fv;Object.defineProperty(e,"SRPParameters",{enumerable:!0,get:function(){return t.SRPParameters}});var n=Nv;Object.defineProperty(e,"SRPRoutines",{enumerable:!0,get:function(){return n.SRPRoutines}});var r=Rl;Object.defineProperty(e,"SRPClientSession",{enumerable:!0,get:function(){return r.SRPClientSession}}),Object.defineProperty(e,"SRPClientSessionStep1",{enumerable:!0,get:function(){return r.SRPClientSessionStep1}}),Object.defineProperty(e,"SRPClientSessionStep2",{enumerable:!0,get:function(){return r.SRPClientSessionStep2}});var o=Eu;Object.defineProperty(e,"SRPServerSession",{enumerable:!0,get:function(){return o.SRPServerSession}}),Object.defineProperty(e,"SRPServerSessionStep1",{enumerable:!0,get:function(){return o.SRPServerSessionStep1}});var i=Dv;Object.defineProperty(e,"createVerifierAndSalt",{enumerable:!0,get:function(){return i.createVerifierAndSalt}}),Object.defineProperty(e,"bigIntToArrayBuffer",{enumerable:!0,get:function(){return i.bigIntToArrayBuffer}}),Object.defineProperty(e,"arrayBufferToBigInt",{enumerable:!0,get:function(){return i.arrayBufferToBigInt}}),Object.defineProperty(e,"generateRandomBigInt",{enumerable:!0,get:function(){return i.generateRandomBigInt}})})(Ia);function mne(e,t,n){return it(this,null,function*(){const{pubKey:r,salt:o}=yield n("loginSrp1",{username:e});if(!o)throw Error("salt");const i=new Ia.SRPRoutines(new Ia.SRPParameters),c=yield(yield new Ia.SRPClientSession(i).step1(e,t)).step2(BigInt(o),BigInt(r)),d=yield n("loginSrp2",{pubKey:String(c.A),proof:String(c.M1)});return yield c.step3(BigInt(d.proof)).catch(()=>Promise.reject("trust")),d})}window._=Ot;Object.fromEntries(new URLSearchParams(window.location.search).entries());const s_=["","K","M","G","T"];function Na(e,{post:t="B",k:n=1024,digits:r=NaN}={}){if(isNaN(Number(e))||e<0)return"";let o=1,i=n,s=0;for(;s<s_.length&&e>i;)o=i,i*=n,++s;return e/=o,(s&&!isNaN(r)?e.toFixed(r):Ot.round(e,isNaN(r)?e>=100?0:1:r))+" "+(s_[s]||"")+t}function af(e,t,n=""){return t?e+t+n:""}function gne(e){const t=e+"=";let r=decodeURIComponent(document.cookie).split(";");for(let o of r)if(o=o.trim(),o.startsWith(t))return o.substring(t.length,o.length);return""}function hx(e,t){return Object.fromEntries(Object.entries(e).map(([n,r])=>[n,t(r,n)]))}function vne(e,t){return!t||t.endsWith(e)?t:t+e}function yne(e){return Boolean(e)}function ju(e){return e.filter(yne)}function bne(e,t){return Object.defineProperties(e,hx(t,n=>({enumerable:!1,writable:!0,value:n})))}function wne(e,t){try{return e()}catch(n){return t==null?void 0:t(n)}}function l_(e,t){return t(e)}function Cne(e,t){for(const n of e){const r=t(n);if(r!==void 0)return r}}function MO(e,{accept:t="",multiple:n=!0,folder:r=!1}={}){const o=Object.assign(document.createElement("input"),{type:"file",name:"file",accept:t,multiple:n,webkitdirectory:r});o.addEventListener("change",()=>e(o.files)),o.click()}function RO(e){return new Promise((t,n)=>{const r=new FileReader;r.addEventListener("load",o=>{if(!o.target||e.size&&!o.target.result)return n("cannot read");const{result:i}=o.target;t(i==null?void 0:i.toString())}),r.addEventListener("error",()=>{n(r.error)}),r.readAsText(e)})}function xne(e){return(e*100).toFixed(1)+"%"}function Sne(e){return e==null?[]:Array.isArray(e)?e:[e]}function Ene(e){return Qe("MuiLoadingButton",e)}const kne=Ke("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),vs=kne,Pne=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],Ine=e=>{const{loading:t,loadingPosition:n,classes:r}=e,o={root:["root",t&&"loading"],startIcon:[t&&`startIconLoading${fe(n)}`],endIcon:[t&&`endIconLoading${fe(n)}`],loadingIndicator:["loadingIndicator",t&&`loadingIndicator${fe(n)}`]},i=_e(o,Ene,r);return k({},r,i)},_ne=e=>e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"&&e!=="classes",$ne=ie(lr,{shouldForwardProp:e=>_ne(e)||e==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(e,t)=>[t.root,t.startIconLoadingStart&&{[`& .${vs.startIconLoadingStart}`]:t.startIconLoadingStart},t.endIconLoadingEnd&&{[`& .${vs.endIconLoadingEnd}`]:t.endIconLoadingEnd}]})(({ownerState:e,theme:t})=>k({[`& .${vs.startIconLoadingStart}, & .${vs.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},e.loadingPosition==="center"&&{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${vs.loading}`]:{color:"transparent"}},e.loadingPosition==="start"&&e.fullWidth&&{[`& .${vs.startIconLoadingStart}, & .${vs.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginRight:-8}},e.loadingPosition==="end"&&e.fullWidth&&{[`& .${vs.startIconLoadingStart}, & .${vs.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginLeft:-8}})),Tne=ie("div",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.loadingIndicator,t[`loadingIndicator${fe(n.loadingPosition)}`]]}})(({theme:e,ownerState:t})=>k({position:"absolute",visibility:"visible",display:"flex"},t.loadingPosition==="start"&&(t.variant==="outlined"||t.variant==="contained")&&{left:t.size==="small"?10:14},t.loadingPosition==="start"&&t.variant==="text"&&{left:6},t.loadingPosition==="center"&&{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled},t.loadingPosition==="end"&&(t.variant==="outlined"||t.variant==="contained")&&{right:t.size==="small"?10:14},t.loadingPosition==="end"&&t.variant==="text"&&{right:6},t.loadingPosition==="start"&&t.fullWidth&&{position:"relative",left:-10},t.loadingPosition==="end"&&t.fullWidth&&{position:"relative",right:-10})),Mne=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiLoadingButton"}),{children:o,disabled:i=!1,id:s,loading:a=!1,loadingIndicator:c,loadingPosition:d="center",variant:p="text"}=r,h=se(r,Pne),m=Tn(s),v=c!=null?c:T.jsx(Bu,{"aria-labelledby":m,color:"inherit",size:16}),b=k({},r,{disabled:i,loading:a,loadingIndicator:v,loadingPosition:d,variant:p}),g=Ine(b),x=a?T.jsx(Tne,{className:g.loadingIndicator,ownerState:b,children:v}):null;return T.jsxs($ne,k({disabled:i||a,id:m,ref:n},h,{variant:p,classes:g,ownerState:b,children:[b.loadingPosition==="end"?o:x,b.loadingPosition==="end"?x:o]}))}),Rne=Mne,One=u.createContext({}),mx=One,Lne=["element"];function Ane(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}function Fne(e,t){let n=0,r=e.length-1;for(;n<=r;){const o=Math.floor((n+r)/2);if(e[o].element===t)return o;e[o].element.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING?r=o-1:n=o+1}return n}const OO=u.createContext({});function Nne(e){const t=u.useRef(null);return u.useEffect(()=>{t.current=e},[e]),t.current}const a_=()=>{};function Dne(e){const[,t]=u.useState(),{registerDescendant:n=a_,unregisterDescendant:r=a_,descendants:o=[],parentId:i=null}=u.useContext(OO),s=Ane(o,d=>d.element===e.element),a=Nne(o),c=o.some((d,p)=>a&&a[p]&&a[p].element!==d.element);return vn(()=>{if(e.element)return n(k({},e,{index:s})),()=>{r(e.element)};t({})},[n,r,s,c,e]),{parentId:i,index:s}}function LO(e){const{children:t,id:n}=e,[r,o]=u.useState([]),i=u.useCallback(c=>{let{element:d}=c,p=se(c,Lne);o(h=>{let m;if(h.length===0)return[k({},p,{element:d,index:0})];const v=Fne(h,d);if(h[v]&&h[v].element===d)m=h;else{const b=k({},p,{element:d,index:v});m=h.slice(),m.splice(v,0,b)}return m.forEach((b,g)=>{b.index=g}),m})},[]),s=u.useCallback(c=>{o(d=>d.filter(p=>c!==p.element))},[]),a=u.useMemo(()=>({descendants:r,registerDescendant:i,unregisterDescendant:s,parentId:n}),[r,i,s,n]);return T.jsx(OO.Provider,{value:a,children:t})}function Bne(e){const{focus:t,isExpanded:n,isExpandable:r,isFocused:o,isDisabled:i,isSelected:s,multiSelect:a,selectNode:c,selectRange:d,toggleExpansion:p}=u.useContext(mx),h=r?r(e):!1,m=n?n(e):!1,v=o?o(e):!1,b=i?i(e):!1,g=s?s(e):!1;return{disabled:b,expanded:m,selected:g,focused:v,handleExpansion:w=>{if(!b){v||t(w,e);const E=a&&(w.shiftKey||w.ctrlKey||w.metaKey);h&&!(E&&n(e))&&p(w,e)}},handleSelection:w=>{b||(v||t(w,e),a&&(w.shiftKey||w.ctrlKey||w.metaKey)?w.shiftKey?d(w,{end:e}):c(w,e,!0):c(w,e))},preventSelection:w=>{(w.shiftKey||w.ctrlKey||w.metaKey||b)&&w.preventDefault()}}}const zne=["classes","className","displayIcon","expansionIcon","icon","label","nodeId","onClick","onMouseDown"],jne=u.forwardRef(function(t,n){const{classes:r,className:o,displayIcon:i,expansionIcon:s,icon:a,label:c,nodeId:d,onClick:p,onMouseDown:h}=t,m=se(t,zne),{disabled:v,expanded:b,selected:g,focused:x,handleExpansion:C,handleSelection:S,preventSelection:w}=Bne(d),E=a||s||i,P=I=>{w(I),h&&h(I)},_=I=>{C(I),S(I),p&&p(I)};return T.jsxs("div",k({className:me(o,r.root,b&&r.expanded,g&&r.selected,x&&r.focused,v&&r.disabled),onClick:_,onMouseDown:P,ref:n},m,{children:[T.jsx("div",{className:r.iconContainer,children:E}),T.jsx("div",{className:r.label,children:c})]}))}),AO=jne;function Hne(e){return Qe("MuiTreeItem",e)}const Vne=Ke("MuiTreeItem",["root","group","content","expanded","selected","focused","disabled","iconContainer","label"]),il=Vne,Une=["children","className","collapseIcon","ContentComponent","ContentProps","endIcon","expandIcon","disabled","icon","id","label","nodeId","onClick","onMouseDown","TransitionComponent","TransitionProps"],Wne=e=>{const{classes:t}=e;return _e({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],label:["label"],group:["group"]},Hne,t)},Gne=ie("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),Kne=ie(AO,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${il.iconContainer}`]:t.iconContainer},t.label&&{[`& .${il.label}`]:t.label}]})(({theme:e})=>({padding:"0 8px",width:"100%",display:"flex",alignItems:"center",cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${il.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${il.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${il.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rt(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}))`:rt(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})`:rt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${il.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${il.iconContainer}`]:{marginRight:4,width:15,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${il.label}`]:k({width:"100%",minWidth:0,paddingLeft:4,position:"relative"},e.typography.body1)})),qne=ie(OR,{name:"MuiTreeItem",slot:"Group",overridesResolver:(e,t)=>t.group})({margin:0,padding:0,marginLeft:17}),Yne=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiTreeItem"}),{children:o,className:i,collapseIcon:s,ContentComponent:a=AO,ContentProps:c,endIcon:d,expandIcon:p,disabled:h,icon:m,id:v,label:b,nodeId:g,onClick:x,onMouseDown:C,TransitionComponent:S=OR,TransitionProps:w}=r,E=se(r,Une),{icons:P={},focus:_,isExpanded:I,isFocused:M,isSelected:O,isDisabled:L,multiSelect:R,disabledItemsFocusable:H,mapFirstChar:j,unMapFirstChar:A,registerNode:F,unregisterNode:B,treeId:G}=u.useContext(mx);let N=null;v!=null?N=v:G&&g&&(N=`${G}-${g}`);const[z,W]=u.useState(null),q=u.useRef(null),X=Bt(W,n),le=u.useMemo(()=>({element:z,id:g}),[g,z]),{index:Q,parentId:ge}=Dne(le),ee=Boolean(Array.isArray(o)?o.length:o),ce=I?I(g):!1,oe=M?M(g):!1,de=O?O(g):!1,be=L?L(g):!1,we=k({},r,{expanded:ce,focused:oe,selected:de,disabled:be}),$e=Wne(we);let Ve,De;ee&&(ce?De=s||P.defaultCollapseIcon:De=p||P.defaultExpandIcon),ee?Ve=P.defaultParentIcon:Ve=d||P.defaultEndIcon,u.useEffect(()=>{if(F&&B&&Q!==-1)return F({id:g,idAttribute:N,index:Q,parentId:ge,expandable:ee,disabled:h}),()=>{B(g)}},[F,B,ge,Q,g,ee,h,N]),u.useEffect(()=>{if(j&&A&&b)return j(g,q.current.textContent.substring(0,1).toLowerCase()),()=>{A(g)}},[j,A,g,b]);let re;R?re=de:de&&(re=!0);function Ae(ve){if(ve.target===ve.currentTarget){let Xe;typeof ve.target.getRootNode=="function"?Xe=ve.target.getRootNode():Xe=gn(ve.target),Xe.getElementById(G).focus({preventScroll:!0})}const He=!H&&be;!oe&&ve.currentTarget===ve.target&&!He&&_(ve,g)}return T.jsxs(Gne,k({className:me($e.root,i),role:"treeitem","aria-expanded":ee?ce:null,"aria-selected":re,"aria-disabled":be||null,ref:X,id:N,tabIndex:-1},E,{ownerState:we,onFocus:Ae,children:[T.jsx(Kne,k({as:a,ref:q,classes:{root:$e.content,expanded:$e.expanded,selected:$e.selected,focused:$e.focused,disabled:$e.disabled,iconContainer:$e.iconContainer,label:$e.label},label:b,nodeId:g,onClick:x,onMouseDown:C,icon:m,expansionIcon:De,displayIcon:Ve,ownerState:we},c)),o&&T.jsx(LO,{id:g,children:T.jsx(qne,k({as:S,unmountOnExit:!0,className:$e.group,in:ce,component:"ul",role:"group"},w,{children:o}))})]}))}),Jb=Yne;function Xne(e){return Qe("MuiTreeView",e)}Ke("MuiTreeView",["root"]);const Qne=["children","className","defaultCollapseIcon","defaultEndIcon","defaultExpanded","defaultExpandIcon","defaultParentIcon","defaultSelected","disabledItemsFocusable","disableSelection","expanded","id","multiSelect","onBlur","onFocus","onKeyDown","onNodeFocus","onNodeSelect","onNodeToggle","selected"],Jne=e=>{const{classes:t}=e;return _e({root:["root"]},Xne,t)},Zne=ie("ul",{name:"MuiTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0});function ere(e){return e&&e.length===1&&e.match(/\S/)}function c_(e,t,n){for(let r=t;r<e.length;r+=1)if(n===e[r])return r;return-1}function u_(){return!1}const tre=[],nre=[],rre=u.forwardRef(function(t,n){const r=et({props:t,name:"MuiTreeView"}),{children:o,className:i,defaultCollapseIcon:s,defaultEndIcon:a,defaultExpanded:c=tre,defaultExpandIcon:d,defaultParentIcon:p,defaultSelected:h=nre,disabledItemsFocusable:m=!1,disableSelection:v=!1,expanded:b,id:g,multiSelect:x=!1,onBlur:C,onFocus:S,onKeyDown:w,onNodeFocus:E,onNodeSelect:P,onNodeToggle:_,selected:I}=r,M=se(r,Qne),L=oo().direction==="rtl",R=k({},r,{defaultExpanded:c,defaultSelected:h,disabledItemsFocusable:m,disableSelection:v,multiSelect:x}),H=Jne(R),j=Tn(g),A=u.useRef(null),F=Bt(A,n),[B,G]=u.useState(null),N=u.useRef({}),z=u.useRef({}),[W,q]=Ts({controlled:b,default:c,name:"TreeView",state:"expanded"}),[X,le]=Ts({controlled:I,default:h,name:"TreeView",state:"selected"}),Q=u.useCallback(ae=>Array.isArray(W)?W.indexOf(ae)!==-1:!1,[W]),ge=u.useCallback(ae=>N.current[ae]&&N.current[ae].expandable,[]),ee=u.useCallback(ae=>Array.isArray(X)?X.indexOf(ae)!==-1:X===ae,[X]),ce=u.useCallback(ae=>{let Ce=N.current[ae];if(!Ce)return!1;if(Ce.disabled)return!0;for(;Ce.parentId!=null;)if(Ce=N.current[Ce.parentId],Ce.disabled)return!0;return!1},[]),oe=ae=>B===ae,de=ae=>Object.keys(N.current).map(Ce=>N.current[Ce]).filter(Ce=>Ce.parentId===ae).sort((Ce,Fe)=>Ce.index-Fe.index).map(Ce=>Ce.id),be=ae=>{let Ce=de(ae);return m||(Ce=Ce.filter(Fe=>!ce(Fe))),Ce},we=ae=>{if(Q(ae)&&be(ae).length>0)return be(ae)[0];let Ce=N.current[ae];for(;Ce!=null;){const Fe=be(Ce.parentId),st=Fe[Fe.indexOf(Ce.id)+1];if(st)return st;Ce=N.current[Ce.parentId]}return null},$e=ae=>{const Ce=N.current[ae],Fe=be(Ce.parentId),st=Fe.indexOf(ae);if(st===0)return Ce.parentId;let Le=Fe[st-1];for(;Q(Le)&&be(Le).length>0;)Le=be(Le).pop();return Le},Ve=()=>{let ae=be(null).pop();for(;Q(ae);)ae=be(ae).pop();return ae},De=()=>be(null)[0],re=ae=>N.current[ae].parentId,Ae=(ae,Ce)=>{if(ae===Ce)return[ae,Ce];const Fe=N.current[ae],st=N.current[Ce];if(Fe.parentId===st.id||st.parentId===Fe.id)return st.parentId===Fe.id?[Fe.id,st.id]:[st.id,Fe.id];const Le=[Fe.id],lt=[st.id];let xt=Fe.parentId,Qt=st.parentId,On=lt.indexOf(xt)!==-1,io=Le.indexOf(Qt)!==-1,Se=!0,ye=!0;for(;!io&&!On;)Se&&(Le.push(xt),On=lt.indexOf(xt)!==-1,Se=xt!==null,!On&&Se&&(xt=N.current[xt].parentId)),ye&&!On&&(lt.push(Qt),io=Le.indexOf(Qt)!==-1,ye=Qt!==null,!io&&ye&&(Qt=N.current[Qt].parentId));const je=On?xt:Qt,at=de(je),zt=Le[Le.indexOf(je)-1],En=lt[lt.indexOf(je)-1];return at.indexOf(zt)<at.indexOf(En)?[ae,Ce]:[Ce,ae]},ve=(ae,Ce)=>{const[Fe,st]=Ae(ae,Ce),Le=[Fe];let lt=Fe;for(;lt!==st;)lt=we(lt),Le.push(lt);return Le},He=(ae,Ce)=>{Ce&&(G(Ce),E&&E(ae,Ce))},Xe=(ae,Ce)=>He(ae,we(Ce)),ft=(ae,Ce)=>He(ae,$e(Ce)),ze=ae=>He(ae,De()),pt=ae=>He(ae,Ve()),ot=(ae,Ce,Fe)=>{let st,Le;const lt=Fe.toLowerCase(),xt=[],Qt=[];Object.keys(z.current).forEach(On=>{const io=z.current[On],Se=N.current[On],ye=Se.parentId?Q(Se.parentId):!0,je=m?!1:ce(On);ye&&!je&&(xt.push(On),Qt.push(io))}),st=xt.indexOf(Ce)+1,st>=xt.length&&(st=0),Le=c_(Qt,st,lt),Le===-1&&(Le=c_(Qt,0,lt)),Le>-1&&He(ae,xt[Le])},ct=(ae,Ce=B)=>{let Fe;W.indexOf(Ce)!==-1?Fe=W.filter(st=>st!==Ce):Fe=[Ce].concat(W),_&&_(ae,Fe),q(Fe)},vt=(ae,Ce)=>{const Fe=N.current[Ce],Le=de(Fe.parentId).filter(xt=>ge(xt)&&!Q(xt)),lt=W.concat(Le);Le.length>0&&(q(lt),_&&_(ae,lt))},ut=u.useRef(null),Ue=u.useRef(!1),ue=u.useRef([]),J=(ae,Ce)=>{let Fe=X.slice();const{start:st,next:Le,current:lt}=Ce;!Le||!lt||(ue.current.indexOf(lt)===-1&&(ue.current=[]),Ue.current?ue.current.indexOf(Le)!==-1?(Fe=Fe.filter(xt=>xt===st||xt!==lt),ue.current=ue.current.filter(xt=>xt===st||xt!==lt)):(Fe.push(Le),ue.current.push(Le)):(Fe.push(Le),ue.current.push(lt,Le)),P&&P(ae,Fe),le(Fe))},Oe=(ae,Ce)=>{let Fe=X.slice();const{start:st,end:Le}=Ce;Ue.current&&(Fe=Fe.filter(Qt=>ue.current.indexOf(Qt)===-1));let lt=ve(st,Le);lt=lt.filter(Qt=>!ce(Qt)),ue.current=lt;let xt=Fe.concat(lt);xt=xt.filter((Qt,On)=>xt.indexOf(Qt)===On),P&&P(ae,xt),le(xt)},Me=(ae,Ce)=>{let Fe;X.indexOf(Ce)!==-1?Fe=X.filter(st=>st!==Ce):Fe=[Ce].concat(X),P&&P(ae,Fe),le(Fe)},Je=(ae,Ce)=>{const Fe=x?[Ce]:Ce;P&&P(ae,Fe),le(Fe)},wt=(ae,Ce,Fe=!1)=>Ce?(Fe?Me(ae,Ce):Je(ae,Ce),ut.current=Ce,Ue.current=!1,ue.current=[],!0):!1,It=(ae,Ce,Fe=!1)=>{const{start:st=ut.current,end:Le,current:lt}=Ce;Fe?J(ae,{start:st,next:Le,current:lt}):st!=null&&Le!=null&&Oe(ae,{start:st,end:Le}),Ue.current=!0},Kt=(ae,Ce)=>{ut.current||(ut.current=Ce);const Fe=Ue.current?ut.current:Ce;It(ae,{start:Fe,end:De()})},Vn=(ae,Ce)=>{ut.current||(ut.current=Ce);const Fe=Ue.current?ut.current:Ce;It(ae,{start:Fe,end:Ve()})},Rr=(ae,Ce)=>{ce(we(Ce))||It(ae,{end:we(Ce),current:Ce},!0)},er=(ae,Ce)=>{ce($e(Ce))||It(ae,{end:$e(Ce),current:Ce},!0)},vr=ae=>{It(ae,{start:De(),end:Ve()})},yr=u.useCallback(ae=>{const{id:Ce,index:Fe,parentId:st,expandable:Le,idAttribute:lt,disabled:xt}=ae;N.current[Ce]={id:Ce,index:Fe,parentId:st,expandable:Le,idAttribute:lt,disabled:xt}},[]),br=u.useCallback(ae=>{const Ce=k({},N.current);delete Ce[ae],N.current=Ce,G(Fe=>Fe===ae&&A.current===gn(A.current).activeElement?de(null)[0]:Fe)},[]),rn=u.useCallback((ae,Ce)=>{z.current[ae]=Ce},[]),dn=u.useCallback(ae=>{const Ce=k({},z.current);delete Ce[ae],z.current=Ce},[]),Un=ae=>(ge(B)&&(Q(B)?Xe(ae,B):ce(B)||ct(ae)),!0),li=ae=>{if(Q(B)&&!ce(B))return ct(ae,B),!0;const Ce=re(B);return Ce?(He(ae,Ce),!0):!1},Ti=ae=>{let Ce=!1;const Fe=ae.key;if(ae.altKey||ae.currentTarget!==ae.target||!B)return;const st=ae.ctrlKey||ae.metaKey;switch(Fe){case" ":!v&&!ce(B)&&(x&&ae.shiftKey?(It(ae,{end:B}),Ce=!0):x?Ce=wt(ae,B,!0):Ce=wt(ae,B)),ae.stopPropagation();break;case"Enter":ce(B)||(ge(B)?(ct(ae),Ce=!0):x?Ce=wt(ae,B,!0):Ce=wt(ae,B)),ae.stopPropagation();break;case"ArrowDown":x&&ae.shiftKey&&!v&&Rr(ae,B),Xe(ae,B),Ce=!0;break;case"ArrowUp":x&&ae.shiftKey&&!v&&er(ae,B),ft(ae,B),Ce=!0;break;case"ArrowRight":L?Ce=li(ae):Ce=Un(ae);break;case"ArrowLeft":L?Ce=Un(ae):Ce=li(ae);break;case"Home":x&&st&&ae.shiftKey&&!v&&!ce(B)&&Kt(ae,B),ze(ae),Ce=!0;break;case"End":x&&st&&ae.shiftKey&&!v&&!ce(B)&&Vn(ae,B),pt(ae),Ce=!0;break;default:Fe==="*"?(vt(ae,B),Ce=!0):x&&st&&Fe.toLowerCase()==="a"&&!v?(vr(ae),Ce=!0):!st&&!ae.shiftKey&&ere(Fe)&&(ot(ae,B,Fe),Ce=!0)}Ce&&(ae.preventDefault(),ae.stopPropagation()),w&&w(ae)},ss=ae=>{if(ae.target===ae.currentTarget){const Ce=Array.isArray(X)?X[0]:X;He(ae,Ce||be(null)[0])}S&&S(ae)},Mi=ae=>{G(null),C&&C(ae)},Ri=N.current[B]?N.current[B].idAttribute:null;return T.jsx(mx.Provider,{value:{icons:{defaultCollapseIcon:s,defaultExpandIcon:d,defaultParentIcon:p,defaultEndIcon:a},focus:He,toggleExpansion:ct,isExpanded:Q,isExpandable:ge,isFocused:oe,isSelected:ee,isDisabled:ce,selectNode:v?u_:wt,selectRange:v?u_:It,multiSelect:x,disabledItemsFocusable:m,mapFirstChar:rn,unMapFirstChar:dn,registerNode:yr,unregisterNode:br,treeId:j},children:T.jsx(LO,{children:T.jsx(Zne,k({role:"tree",id:j,"aria-activedescendant":Ri,"aria-multiselectable":x,className:me(H.root,i),ref:F,tabIndex:0,onKeyDown:Ti,onFocus:ss,onBlur:Mi,ownerState:R},M,{children:o}))})})}),FO=rre;function Qr(m){var v=m,{value:e,onChange:t,min:n,max:r,required:o,getApi:i,typing:s,start:a,end:c,onTyping:d,suggestions:p}=v,h=sn(v,["value","onChange","min","max","required","getApi","typing","start","end","onTyping","suggestions"]);const b=e!=null?e:"";i==null||i({getError(){return!e&&o?"required":(e==null?void 0:e.length)<n?"too short":(e==null?void 0:e.length)>r?"too long":!1}});const[g,x]=u.useState(b),C=u.useRef(b);u.useEffect(()=>{x(b),C.current=b},[b]);const S=E=>u.createElement(lp,Ie(Tt(Ie({fullWidth:!0,InputLabelProps:g||h.placeholder?{shrink:!0}:void 0},h),{sx:h.label?h.sx:Object.assign({"& .MuiInputBase-input":{pt:1.5}},h.sx),value:g,onChange(P){const _=P.target.value;(d==null?void 0:d(_))!==!1&&(x(_),(s||document.activeElement!==P.target)&&w(P,_))},onKeyDown(P){var _;(_=h.onKeyDown)==null||_.call(h,P),P.key==="Enter"&&w(P)},onBlur(P){var _;(_=h.onBlur)==null||_.call(h,P),w(P)},InputProps:Ie({startAdornment:a&&u.createElement(eg,{position:"start"},a),endAdornment:c&&u.createElement(eg,{position:"end"},c)},h.InputProps)}),E));return p?u.createElement(ZC,{freeSolo:!0,options:p,renderInput:S}):S(null);function w(E,P=g){const _=P.trim();_!==C.current&&(C.current=_,t(_,{was:e,event:E,cancel(){x(b)}}))}}function zs(e){const a=e,{value:t,onChange:n,getApi:r,options:o,sx:i}=a,s=sn(a,["value","onChange","getApi","options","sx"]);return u.createElement(lp,Tt(Ie(Ie({},NO(e)),s),{onChange(c){try{let d=c.target.value;d=JSON.parse(d),n(d,{was:t,event:c})}catch(d){}}}))}function gx(e){const a=e,{value:t,onChange:n,getApi:r,options:o,sx:i}=a,s=sn(a,["value","onChange","getApi","options","sx"]);return u.createElement(lp,Tt(Ie(Ie({},NO(Tt(Ie({},e),{value:void 0}))),s),{SelectProps:{multiple:!0},value:Array.isArray(t)?t.map(c=>JSON.stringify(c)):[],onChange(c){try{let d=c.target.value;d=Array.isArray(d)?d.map(p=>JSON.parse(p)):[],n(d,{was:t,event:c})}catch(d){}}}))}function NO(e){const{options:t,disabled:n}=e,r=Array.isArray(t)?t.map(s=>typeof s=="string"||typeof s=="number"?{value:s,label:String(s)}:s):Object.entries(t).map(([s,a])=>({value:a,label:s})),o=JSON.stringify(e.value),i=r.find(s=>JSON.stringify(s.value)===o);return{select:!0,fullWidth:!0,sx:e.label?e.sx:Object.assign({"& .MuiInputBase-input":{pt:1}},e.sx),value:i?o:"",disabled:!(r!=null&&r.length)||n,children:r.map((s,a)=>u.createElement(ar,{key:a,value:JSON.stringify(s==null?void 0:s.value),children:s==null?void 0:s.label}))}}function pm(r){var o=r,{value:e,empty:t="-"}=o,n=sn(o,["value","empty"]);return!n.toField&&t!==void 0&&e!==0&&!e&&(e=t),u.createElement(Qr,Tt(Ie({},n),{value:e,disabled:!0}))}function xs(d){var p=d,{value:e,onChange:t,getApi:n,required:r,min:o,max:i,step:s,unit:a}=p,c=sn(p,["value","onChange","getApi","required","min","max","step","unit"]);return n==null||n({getError(){return e==null?r?"required":!1:e<o?"too low":e>i?"too high":!1}}),u.createElement(Qr,Ie({type:"number",value:e==null?"":String(e),onChange(h,b){var g=b,{was:m}=g,v=sn(g,["was"]);t(h?Number(h):null,Tt(Ie({},v),{was:m?Number(m):null}))},inputProps:{min:o,max:i,step:s},InputProps:Ot.merge({sx:{"& input":{appearance:"textfield"}}},a&&{sx:{pr:"6px","& input":{pl:".2em",textAlign:"right"}},endAdornment:u.createElement(eg,{position:"end",sx:{mt:"1.2em",ml:"5px","& p":{fontSize:"80%"}}},a)})},c))}function Ol(c){var d=c,{label:e="",value:t,onChange:n,getApi:r,helperText:o,error:i,type:s}=d,a=sn(d,["label","value","onChange","getApi","helperText","error","type"]);const p=()=>t!=null?t:!1,[h,m]=u.useState(p);u.useEffect(()=>m(p),[t]);const v=u.createElement(mO,Tt(Ie({checked:h},a),{onChange(b){n(b.target.checked,{event:b,was:t})}}));return u.createElement(nt,{ml:1,mt:1,sx:i?{color:"error.main",outlineOffset:6,outline:"1px solid"}:void 0},u.createElement(XR,{label:e,control:v,labelPlacement:"end"}),o&&u.createElement($v,{error:i},o))}function ore({value:e,onChange:t,keyLabel:n="key",valueLabel:r="value",keyWidth:o=5,valueWidth:i=5,actionsWidth:s=1}){const a=u.useRef(),c=u.useRef(),d={padding:".5em 1em",fontWeight:"bold"};return u.createElement(Wn,{container:!0},u.createElement(Wn,{item:!0,xs:o,sx:d},n),u.createElement(Wn,{item:!0,xs:i,sx:d},r),u.createElement(Wn,{item:!0,xs:s},u.createElement(ir,{onClick(){a.current.focus()}},u.createElement(ix))),Object.entries(e||{}).map(([p,h])=>[u.createElement(Wn,{key:"k",item:!0,xs:o},u.createElement(Qr,{value:p,onChange(m,g){var x=g,{was:v}=x,b=sn(x,["was"]);const C=Ie({},e);m&&(C[m]=v!==void 0?C[v]:""),v!==void 0&&delete C[v],t(C,Ie({was:e},b))}})),u.createElement(Wn,{key:"v",item:!0,xs:i},u.createElement(Qr,{inputRef(m){c.current===p&&(m==null||m.focus(),c.current=null)},value:h,onChange(m,g){var x=g,{was:v}=x,b=sn(x,["was"]);const C=Ie({},e);m?C[p]=m:delete C[p],t(C,Ie({was:e},b))}})),u.createElement(Wn,{key:"actions",item:!0,xs:s,sx:{display:"flex"}},u.createElement(ir,{onClick(m){const v=Ie({},e);delete v[p],t(v,{was:e,event:m})}},u.createElement(os)))]),u.createElement(Wn,{item:!0,xs:o},u.createElement(Qr,{inputRef:a,value:"",onChange(p,h){if(p){if(h.cancel(),e&&p in e)return alert(n+" entry already present");c.current=p,t(Tt(Ie({},e),{[p]:""}),Tt(Ie({},h),{was:e}))}}})),u.createElement(Wn,{item:!0,xs:i},u.createElement(Qr,{value:"",onChange(){},disabled:!0})))}function cp(b){var g=b,{fields:e,values:t,set:n,defaults:r,save:o,stickyBar:i,addToBar:s=[],barSx:a,formRef:c,onError:d,saveOnEnter:p,gridProps:h,formProps:m}=g,v=sn(g,["fields","values","set","defaults","save","stickyBar","addToBar","barSx","formRef","onError","saveOnEnter","gridProps","formProps"]);const x=u.useRef(!1);u.useEffect(()=>(x.current=!0,()=>{x.current=!1}),[]);const[C,S]=u.useState({}),[w,E]=u.useState({}),P=typeof o=="function"?{onClick:o}:o,[_,I]=u.useState(0),M=u.useRef(!1),O=u.useRef("");u.useEffect(()=>void j(),[_]);const L={};return u.createElement("form",Tt(Ie({ref:c&&(A=>c.current=A||void 0)},m),{onSubmit(A){A.preventDefault()},onKeyDown(A){P&&!P.disabled&&(A.ctrlKey||A.metaKey)&&A.key==="Enter"&&R()}}),u.createElement(nt,Ie({display:"flex",flexDirection:"column",gap:3},v),u.createElement(Wn,Ie({container:!0,rowSpacing:3,columnSpacing:1},h),e.map((A,F)=>{if(!A)return null;if(u.isValidElement(A))return u.createElement(Wn,{key:F,item:!0,xs:12},A);const le=A,{k:B,fromField:G=Ps.identity,toField:N=Ps.identity,getError:z,error:W}=le,q=sn(le,["k","fromField","toField","getError","error"]);let X=C[B]||w[B];if(X===!0&&(X="Not valid"),B){const ge=A.hasOwnProperty("value")?A.value:t==null?void 0:t[B],ee=Ie(Ie({},A),q);Object.assign(q,{value:N(ge),error:Boolean(X||W)||void 0,getApi(ce){L[B]=ce},onBlur(){H(B)},onKeyDown(ce){p&&ce.key==="Enter"&&R()},onChange(ce){try{if(ce=G(ce),E(oe=>Tt(Ie({},oe),{[B]:!1})),Ps.isEqual(ce,ge))return;n(ce,B),H(B)}catch(oe){E(de=>Tt(Ie({},de),{[B]:(oe==null?void 0:oe.message)||String(oe)||!0}))}}}),X&&(q.helperText=q.helperText?u.createElement(u.Fragment,{},u.createElement("span",{style:{borderBottom:"1px solid"}},X),u.createElement("br"),q.helperText):X),q.label===void 0&&(q.label=DO(B)),Ps.defaults(q,r==null?void 0:r(ee))}{const Q=q,{xs:ge=12,sm:ee,md:ce,lg:oe,xl:de,comp:be=Qr,before:we,after:$e,fromField:Ve,toField:De}=Q,re=sn(Q,["xs","sm","md","lg","xl","comp","before","after","fromField","toField"]);return Object.assign(re,{name:B}),u.createElement(Wn,{key:B||F,item:!0,xs:ge,sm:ee,md:ce,lg:oe,xl:de},we,u.isValidElement(be)?be:u.createElement(be,re),$e)}})),P&&u.createElement(nt,{display:"flex",alignItems:"center",sx:Object.assign({},i&&{width:"fit-content",zIndex:2,backgroundColor:"background.paper",borderRadius:1,position:"sticky",bottom:0,p:1,m:-1},a)},u.createElement(Rne,Tt(Ie({variant:"contained",startIcon:u.createElement(SO),children:"Save",loading:_!==0},P),{onClick:R})),...s)));function R(){M.current=!0,H()}function H(A=""){_===0&&(O.current=A,setTimeout(()=>I(F=>F===0?1:F)))}function j(){return it(this,null,function*(){var B,G;if(_===0)return;if(_===1)return I(2);const A="Please review errors",F={};for(const N of e){if(!N||u.isValidElement(N)||!N.k)continue;const{k:z}=N,W=t==null?void 0:t[z],q=(yield(B=L[z])==null?void 0:B.getError())||(yield(G=N.getError)==null?void 0:G.call(N,W,{values:t,fields:e}))||w[z];if(F[z]=q||!1,!M.current&&z===O.current)break;if(!x.current)return}S(F);try{if(!M.current)return;if(Object.values(F).some(Boolean))return yield d==null?void 0:d(A);const N=P&&P.onClick;N&&(yield N())}catch(N){yield d==null?void 0:d(N)}finally{M.current=!1,x.current&&I(0)}})}}function DO(e){return Ps.upperFirst(e.indexOf("_")>0?e.replace(/_/g," "):e.replace(/([a-z])([A-Z])/g,(t,n,r)=>n+" "+r.toLowerCase()))}hre()+"";const ire=ap({embedded:"",langs:[]});function sre(e,t,n){const r=lre(e)?[n!=null?n:n=e[0]]:Array.isArray(e)?e:[e];typeof t=="string"&&!n&&(n=t,t=null);let o,i="";const{langs:s,embedded:a}=ire;return o||(o=n||r[0],i=a),Array.from(d_(o)).map(([d,p])=>{if(!p)return d;const[h,m,v]=d.split(",");if(!t)throw"missing params on "+r[0];const b=t[h];return m==="plural"?c(b,v):b||b===0?b:""}).join("");function c(d,p){const h=new Intl.PluralRules(i||a).select(Number(d));let m="",v=!1,b=!1;for(const[x,C]of d_(p)){if(v)return g(x);if(b&&(m=x,b=!1),C)continue;const S=x.trim().split(/\s+/);v=S.some(w=>w[0]==="="&&d===Number(w.slice(1))||w===h),b=!v&&S.includes("other")}return g(m);function g(x){return x.replace("#",String(d))}}}function*d_(e){let t=0;for(;;){const n=e.indexOf("{",t);if(n<0)break;yield[e.slice(t,n),!1];let r=1;for(t=n+1;r&&t<e.length;)e[t]==="{"?r++:e[t]==="}"&&r--,t++;if(r)return console.debug("tokenizer: unclosed");yield[e.slice(n+1,t-1),!0]}yield[e.slice(t),!1]}function lre(e){return(e==null?void 0:e.raw)&&Array.isArray(e)}function BO(e,t,n,r){let o=e[t];return fx(e,()=>{const i=e[t];Object.is(o,i)||n(o=i)},r)}const Hu=ap({iconsClass:"",username:"",list:[],loading:!1,listReloader:0,patternFilter:"",showFilter:!1,selected:{},remoteSearch:"",sortBy:"name",invertOrder:!1,foldersFirst:!0,sortNumerics:!1,theme:""});function are(){return Av(Hu)}const zO="hfs_settings",vx=["sortBy","sortNumerics","invertOrder","foldersFirst","theme"];cre();for(const e of vx)BO(Hu,e,ure);function cre(){const e=localStorage.getItem(zO);if(!e)return;let t;try{t=JSON.parse(e)}catch(n){console.error("invalid settings stored",e);return}for(const n of vx){const r=t[n];r!==void 0&&(Hu[n]=r)}}function ure(){localStorage.setItem(zO,JSON.stringify(Ot.pick(Hu,vx)))}const dre={login:"👤:user",user:"👤:user",filter:"✂",search:"🔍",search_off:"❌:cancel",stop:"⏹️",settings:"⚙:cog",archive:"📦",logout:"🚪",home:"🏠",parent:"⬅:level-up mirror",folder:"📂",file:"📄:doc",spinner:"🎲:spin6 spinner",password:"🗝️:key",download:"⬇️",upload:"⬆️",invert:"🙃:retweet",admin:"👑:crown",check:"✔️",to_start:"◀",to_end:"▶"};document.fonts.ready.then(()=>it(void 0,null,function*(){const e='9px "fontello"';yield document.fonts.load(e),document.fonts.check(e)&&(Hu.iconsClass=" ")}));u.memo(o=>{var i=o,{name:e,alt:t,className:n=""}=i,r=sn(i,["name","alt","className"]);const[s,a]=(dre[e]||e).split(":"),{iconsClass:c}=are();n+=" icon";const d=e.length<=2,p=e.includes(".");return n+=d?" emoji-icon":p?" file-icon":c?" fa-"+(a||e):" emoji",u.createElement("span",Tt(Ie(Ie({"aria-label":t,role:"img"},r),p?{style:Ie({backgroundImage:`url(${JSON.stringify(e)})`},r==null?void 0:r.style)}:void 0),{className:n}),d?e:c?null:s||"#")});function fre(){return window.innerWidth<800}Object.assign(window.HFS||(window.HFS={}),{onEvent(e,t){const n={h:u.createElement,React:Yr,state:Hu,t:sre,_:Ot},r="hfs."+e;return document.addEventListener(r,o),()=>document.removeEventListener(r,o);function o(i){const{params:s,output:a}=i.detail,c=t(s,n,a);c!==void 0&&Array.isArray(a)&&a.push(c)}}});function pre(){return window.HFS}function hre(){return pre().prefixUrl}function yx(i){var s=i,{gap:e=".8em",vert:t=!1,children:n=null,props:r={}}=s,o=sn(s,["gap","vert","children","props"]);return u.createElement("div",Ie({style:Ie({display:"flex",gap:e,flexDirection:t?"column":void 0},o)},r),n)}function jO(){return tO("(prefers-color-scheme: dark)")}const mre={};function gre(){const e=jO()?null:mre;return u.useMemo(()=>zC({palette:e||{mode:"dark",text:{primary:"#bbb"},primary:{main:"#469"}},typography:{fontFamily:'Roboto, "Noto sans", "Segoe UI", "San Francisco", "Helvetica Neue", Arial, sans-serif'},components:{MuiTextField:{defaultProps:{variant:"filled"},styleOverrides:e||{root:{"& label.Mui-focused":{color:"#ccc"}}}},MuiButton:{defaultProps:{variant:"outlined"},styleOverrides:e||{root({ownerState:t}){return t.color==="primary"&&{color:t.variant==="contained"?"#ddd":"#68c"}}}}}}),[e])}fm.Container=function(t){const n=u.useRef(),{width:r,height:o}=Ate(),i=r>0&&Math.min(r,o)<500;u.useEffect(()=>{const h=setTimeout(()=>{const m=n.current;if(!m||(m.focus(),i))return;const v=m.querySelector("[autofocus]")||m.querySelector("input,textarea");v&&v instanceof HTMLElement&&v.focus()});return()=>clearTimeout(h)},[n.current]);const s=bx();t=Ie(Ie({},fm),t);const p=t.dialogProps||{},{sx:a,root:c}=p,d=sn(p,["sx","root"]);return fm.dialogProps={fullScreen:i,sx:{overflow:"initial"}},u.createElement(cY,Tt(Ie(Ie({open:!0,maxWidth:"lg",fullScreen:i},d),c),{onClose:()=>Ii()}),t.title&&u.createElement(SY,{sx:Ie({position:"sticky",top:0,py:1,pr:1,zIndex:2,boxShadow:"0 0 8px #0004",display:"flex",alignItems:"center"},s)},u.createElement(nt,{flex:1,minWidth:40},Yb(t.title)),u.createElement(xn,{icon:Ov,tooltip:"close",onClick:()=>Ii()})),u.createElement(yY,{ref:n,sx:Ie({p:t.padding?1:0,pt:"16px !important",overflow:"initial",display:"flex",flexDirection:"column",justifyContent:"center"},a)},u.createElement(t.Content)))};function bx(){return jO()?{bgcolor:"#2d2d2d"}:{bgcolor:"#ccc",color:"#444"}}const HO={error:sx,warning:cx,info:rg,success:bO};function Dn(e,t){return it(this,null,function*(){return new Promise(n=>{const r=typeof t=="string"?{type:t}:t!=null?t:{};let a=r,{type:o="info"}=a,i=sn(a,["type"]);e instanceof Error&&(e=e.message||String(e),o="error");const s=si(Tt(Ie({className:"dialog-alert-"+o,icon:"!",onClose:n},i),{Content(){var c;return u.createElement(nt,{display:"flex",flexDirection:"column",alignItems:"center",gap:1},u.createElement(ir,{onClick(){s()},size:"small",sx:{position:"absolute",right:0,top:0,opacity:.5}},u.createElement(Ov)),(c=r.icon)!=null?c:u.createElement(HO[o],{color:o,fontSize:"large"}),u.isValidElement(e)?e:u.createElement(nt,{fontSize:"large",mb:1,lineHeight:"1.8em"},String(e)))}}))})})}function Vl(n){return it(this,arguments,function*(e,{href:t}={}){return new Promise(o=>si({className:"dialog-confirm",icon:"?",onClose:o,Content:r}));function r(){return u.createElement(u.Fragment,{},u.createElement(nt,{mb:2},e),u.createElement(yx,{},u.createElement("a",{href:t,onClick:()=>Ii(!0)},u.createElement(lr,{variant:"contained"},"Confirm")),u.createElement(lr,{onClick:()=>Ii(!1)},"Don't")))}})}function ku(r){return it(this,null,function*(){var o=r,{form:e,values:t}=o,n=sn(o,["form","values"]);return new Promise(s=>si(Tt(Ie({className:"dialog-confirm",icon:"?",onClose:s},n),{Content:i})));function i(){const[s,a]=u.useState(t||{}),h=typeof e=="function"?e(s):e,{onChange:c,before:d}=h,p=sn(h,["onChange","before"]);return u.createElement(u.Fragment,{},d,u.createElement(cp,Tt(Ie({},p),{values:s,set(m,v){const b=Tt(Ie({},s),{[v]:m});a(b),c==null||c(b,{setValues:a})},save:Tt(Ie({},p.save),{onClick(){Ii(s)}})})))}})}function vre(n){return it(this,arguments,function*(e,t={}){return ku(Tt(Ie({},t),{form:{fields:[Ie({k:"text",label:null,autoFocus:!0,before:u.createElement(nt,{mb:2},e)},t.field)],save:Ie({children:"Continue",startIcon:u.createElement(cte)},t.save),saveOnEnter:!0,barSx:{gap:2},addToBar:[u.createElement(lr,{onClick:Ii},"Cancel"),...t.addToBar||[]]}})).then(r=>r==null?void 0:r.text)})}function yre(){return si({Content:Bu,closable:!1})}function Ei(e,t="info"){const r=si({Content:o,dialogProps:{PaperProps:{sx:{transition:`opacity ${3e3}ms ease-in`},ref(i){i&&(i.style.opacity="0")}}}});setTimeout(r,3e3);function o(){return u.createElement(nt,{display:"flex",flexDirection:"column",alignItems:"center",gap:1},u.isValidElement(t)?t:u.createElement(HO[t],{color:t}),u.isValidElement(e)?e:u.createElement("div",{},String(e)))}}function VO(){return u.createElement(Bu)}function UO(e){return e&&/^[a-zA-Z]:$/.test(e)}function wx(e,t){return e==t||e&&t&&typeof e=="object"&&typeof t=="object"&&Object.entries(e).every(([n,r])=>wx(r,t[n]))}function Hv(e){return e?{outline:"2px solid"}:void 0}function xn(d){var p=d,{title:e,icon:t,onClick:n,disabled:r,progress:o,link:i,tooltipProps:s,confirm:a}=p,c=sn(p,["title","icon","onClick","disabled","progress","link","tooltipProps","confirm"]);const[h,m]=yo(!1);typeof r=="string"&&(e=r),i&&(n=()=>window.open(i));let v=u.createElement(ir,Tt(Ie({disabled:Boolean(h||o||r)},c),{onClick(){return it(this,arguments,function*(){if(a&&!(yield Vl(a)))return;const g=n==null?void 0:n.apply(this,arguments);g&&g instanceof Promise&&(m(!0),g.catch(Dn).finally(()=>m(!1)))})}}),u.createElement(t));return(o||h)&&o!==!1&&(v=u.createElement(nt,{position:"relative",display:"inline-block"},u.createElement(Bu,Tt(Ie({},typeof o=="number"?{value:o*100,variant:"determinate"}:null),{style:{position:"absolute",top:4,left:4,width:32,height:32}})),v)),e&&(v=u.createElement(sp,Tt(Ie({title:e},s),{children:u.createElement("span",{},v)}))),v}function ho(e,t,n){return u.createElement(sp,{title:t,children:u.createElement(e,{sx:n})})}function Cx(e){return u.createElement(Ms,Ie({component:FM},e))}function xx(e){return u.createElement(nt,Ie({display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center",flexDirection:"column"},e))}function bre(e,t){return it(this,null,function*(){const r=(yield Pt("get_config",{only:[e]}))[e],o=yield t(r);JSON.stringify(r)!==JSON.stringify(o)&&(yield Pt("set_config",{values:{[e]:o}}))})}function wre(e){return Object.keys(e)}function Cre(e){let t=e.lastIndexOf("/");return t<0&&(t=e.lastIndexOf("\\")),t<0?e:e.slice(t)}function xre(...e){const t=Cne(e,r=>{var o;return(o=/\\|\//.exec("\\a/b"))==null?void 0:o[0]}),n=ju(e.map(r=>r==null?"":String(r)));return n.map((r,o)=>o===n.length-1||r.endsWith("\\")||r.endsWith("/")?r:r+t).join("")}function Sre(e,t){var n;return(n=t[e])!=null?n:e}function Pu(e){return tO(t=>t.breakpoints.up(e),{noSsr:!0})}function WO(e){return{ENOENT:"Not found",ENOTDIR:"Not a folder"}[e]||e}function Sx(e,t){return u.createElement(xn,Ie({icon:ax,title:"Reload",onClick:e},t))}const Ere=navigator.platform.match("Mac");function kre(e){return(e.ctrlKey||Ere&&e.metaKey)&&e.key}function GO({icon:e,progress:t,sx:n}){return u.createElement(u.Fragment,{},u.createElement(e,{sx:{position:"absolute",ml:"4px"}}),u.createElement(sp,{title:xne(t),children:u.createElement(Bu,{value:t*100,variant:"determinate",size:32,sx:n})}))}const KO="admin_state",Cn=ap(Object.assign({title:"",config:{},selectedFiles:[],vfs:void 0,loginRequired:!1,username:"",onlinePluginsColumns:{version:!1,pushed_at:!1,license:!1}},JSON.parse(localStorage[KO]||null))),qO=["onlinePluginsColumns"],Pre=Ot.debounce(()=>localStorage[KO]=JSON.stringify(Ot.pick(Cn,qO)),500,{maxWait:1e3});for(const e of qO)BO(Cn,e,Pre);function Jl(){return Av(Cn)}function bi(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Iu(e){return!!e&&!!e[Po]}function Da(e){var t;return!!e&&(function(n){if(!n||typeof n!="object")return!1;var r=Object.getPrototypeOf(n);if(r===null)return!0;var o=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===Lre}(e)||Array.isArray(e)||!!e[b_]||!!(!((t=e.constructor)===null||t===void 0)&&t[b_])||Ex(e)||kx(e))}function Bf(e,t,n){n===void 0&&(n=!1),Vu(e)===0?(n?Object.keys:Tx)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,o){return t(o,r,e)})}function Vu(e){var t=e[Po];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Ex(e)?2:kx(e)?3:0}function Zb(e,t){return Vu(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ire(e,t){return Vu(e)===2?e.get(t):e[t]}function YO(e,t,n){var r=Vu(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function _re(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Ex(e){return Rre&&e instanceof Map}function kx(e){return Ore&&e instanceof Set}function pa(e){return e.o||e.t}function Px(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Are(e);delete t[Po];for(var n=Tx(t),r=0;r<n.length;r++){var o=n[r],i=t[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Ix(e,t){return t===void 0&&(t=!1),_x(e)||Iu(e)||!Da(e)||(Vu(e)>1&&(e.set=e.add=e.clear=e.delete=$re),Object.freeze(e),t&&Bf(e,function(n,r){return Ix(r,!0)},!0)),e}function $re(){bi(2)}function _x(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ji(e){var t=Fre[e];return t||bi(18,e),t}function f_(){return zf}function d1(e,t){t&&(Ji("Patches"),e.u=[],e.s=[],e.v=t)}function sg(e){ew(e),e.p.forEach(Tre),e.p=null}function ew(e){e===zf&&(zf=e.l)}function p_(e){return zf={p:[],l:zf,h:e,m:!0,_:0}}function Tre(e){var t=e[Po];t.i===0||t.i===1?t.j():t.O=!0}function f1(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||Ji("ES5").S(t,e,r),r?(n[Po].P&&(sg(t),bi(4)),Da(e)&&(e=lg(t,e),t.l||ag(t,e)),t.u&&Ji("Patches").M(n[Po].t,e,t.u,t.s)):e=lg(t,n,[]),sg(t),t.u&&t.v(t.u,t.s),e!==XO?e:void 0}function lg(e,t,n){if(_x(t))return t;var r=t[Po];if(!r)return Bf(t,function(a,c){return h_(e,r,t,a,c,n)},!0),t;if(r.A!==e)return t;if(!r.P)return ag(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=Px(r.k):r.o,i=o,s=!1;r.i===3&&(i=new Set(o),o.clear(),s=!0),Bf(i,function(a,c){return h_(e,r,o,a,c,n,s)}),ag(e,o,!1),n&&e.u&&Ji("Patches").N(r,n,e.u,e.s)}return r.o}function h_(e,t,n,r,o,i,s){if(Iu(o)){var a=lg(e,o,i&&t&&t.i!==3&&!Zb(t.R,r)?i.concat(r):void 0);if(YO(n,r,a),!Iu(a))return;e.m=!1}else s&&n.add(o);if(Da(o)&&!_x(o)){if(!e.h.D&&e._<1)return;lg(e,o),t&&t.A.l||ag(e,o)}}function ag(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&Ix(t,n)}function p1(e,t){var n=e[Po];return(n?pa(n):e)[t]}function m_(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function tw(e){e.P||(e.P=!0,e.l&&tw(e.l))}function h1(e){e.o||(e.o=Px(e.t))}function nw(e,t,n){var r=Ex(t)?Ji("MapSet").F(t,n):kx(t)?Ji("MapSet").T(t,n):e.g?function(o,i){var s=Array.isArray(o),a={i:s?1:0,A:i?i.A:f_(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},c=a,d=rw;s&&(c=[a],d=zd);var p=Proxy.revocable(c,d),h=p.revoke,m=p.proxy;return a.k=m,a.j=h,m}(t,n):Ji("ES5").J(t,n);return(n?n.A:f_()).p.push(r),r}function Mre(e){return Iu(e)||bi(22,e),function t(n){if(!Da(n))return n;var r,o=n[Po],i=Vu(n);if(o){if(!o.P&&(o.i<4||!Ji("ES5").K(o)))return o.t;o.I=!0,r=g_(n,i),o.I=!1}else r=g_(n,i);return Bf(r,function(s,a){o&&Ire(o.t,s)===a||YO(r,s,t(a))}),i===3?new Set(r):r}(e)}function g_(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Px(e)}var v_,zf,$x=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",Rre=typeof Map!="undefined",Ore=typeof Set!="undefined",y_=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",XO=$x?Symbol.for("immer-nothing"):((v_={})["immer-nothing"]=!0,v_),b_=$x?Symbol.for("immer-draftable"):"__$immer_draftable",Po=$x?Symbol.for("immer-state"):"__$immer_state",Lre=""+Object.prototype.constructor,Tx=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Are=Object.getOwnPropertyDescriptors||function(e){var t={};return Tx(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},Fre={},rw={get:function(e,t){if(t===Po)return e;var n=pa(e);if(!Zb(n,t))return function(o,i,s){var a,c=m_(i,s);return c?"value"in c?c.value:(a=c.get)===null||a===void 0?void 0:a.call(o.k):void 0}(e,n,t);var r=n[t];return e.I||!Da(r)?r:r===p1(e.t,t)?(h1(e),e.o[t]=nw(e.A.h,r,e)):r},has:function(e,t){return t in pa(e)},ownKeys:function(e){return Reflect.ownKeys(pa(e))},set:function(e,t,n){var r=m_(pa(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=p1(pa(e),t),i=o==null?void 0:o[Po];if(i&&i.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(_re(n,o)&&(n!==void 0||Zb(e.t,t)))return!0;h1(e),tw(e)}return e.o[t]===n&&(n!==void 0||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return p1(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,h1(e),tw(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=pa(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){bi(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){bi(12)}},zd={};Bf(rw,function(e,t){zd[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),zd.deleteProperty=function(e,t){return zd.set.call(this,e,t,void 0)},zd.set=function(e,t,n){return rw.set.call(this,e[0],t,n,e[0])};var Nre=function(){function e(n){var r=this;this.g=y_,this.D=!0,this.produce=function(o,i,s){if(typeof o=="function"&&typeof i!="function"){var a=i;i=o;var c=r;return function(g){var x=this;g===void 0&&(g=a);for(var C=arguments.length,S=Array(C>1?C-1:0),w=1;w<C;w++)S[w-1]=arguments[w];return c.produce(g,function(E){var P;return(P=i).call.apply(P,[x,E].concat(S))})}}var d;if(typeof i!="function"&&bi(6),s!==void 0&&typeof s!="function"&&bi(7),Da(o)){var p=p_(r),h=nw(r,o,void 0),m=!0;try{d=i(h),m=!1}finally{m?sg(p):ew(p)}return typeof Promise!="undefined"&&d instanceof Promise?d.then(function(g){return d1(p,s),f1(g,p)},function(g){throw sg(p),g}):(d1(p,s),f1(d,p))}if(!o||typeof o!="object"){if((d=i(o))===void 0&&(d=o),d===XO&&(d=void 0),r.D&&Ix(d,!0),s){var v=[],b=[];Ji("Patches").M(o,d,v,b),s(v,b)}return d}bi(21,o)},this.produceWithPatches=function(o,i){if(typeof o=="function")return function(d){for(var p=arguments.length,h=Array(p>1?p-1:0),m=1;m<p;m++)h[m-1]=arguments[m];return r.produceWithPatches(d,function(v){return o.apply(void 0,[v].concat(h))})};var s,a,c=r.produce(o,i,function(d,p){s=d,a=p});return typeof Promise!="undefined"&&c instanceof Promise?c.then(function(d){return[d,s,a]}):[c,s,a]},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){Da(n)||bi(8),Iu(n)&&(n=Mre(n));var r=p_(this),o=nw(this,n,void 0);return o[Po].C=!0,ew(r),o},t.finishDraft=function(n,r){var o=n&&n[Po],i=o.A;return d1(i,r),f1(void 0,i)},t.setAutoFreeze=function(n){this.D=n},t.setUseProxies=function(n){n&&!y_&&bi(20),this.g=n},t.applyPatches=function(n,r){var o;for(o=r.length-1;o>=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var s=Ji("Patches").$;return Iu(n)?s(n,r):this.produce(n,function(a){return s(a,r)})},e}(),Io=new Nre,Dre=Io.produce;Io.produceWithPatches.bind(Io);Io.setAutoFreeze.bind(Io);Io.setUseProxies.bind(Io);Io.applyPatches.bind(Io);Io.createDraft.bind(Io);Io.finishDraft.bind(Io);const Bre=Dre;function Xo(...e){const[t,n,r]=up(...e),o=e[0],i=t===void 0,s=u.useMemo(()=>o?n?u.createElement(ko,{severity:"error"},String(n),u.createElement(xn,{icon:ax,onClick:r,sx:{m:"-8px 0 -8px 16px"}})):i?VO():null:null,[n,o,i,r]);return{data:t,error:n,reload:r,loading:i,element:s}}var b$;const QO=((b$=window.HFS)==null?void 0:b$.prefixUrl)+"/~/api/",zre={loginSrp1:90,get_status:20};function Pt(e,t,{timeout:n=void 0}={}){var i,s;const r=ZO();r&&(t=Ie({csrf:r},t));const o=new AbortController;return n!==!1&&setTimeout(()=>o.abort("timeout"),1e3*((s=(i=zre[e])!=null?i:n)!=null?s:10)),Object.assign(fetch(QO+e,{method:"POST",headers:{"content-type":"application/json"},signal:o.signal,body:t&&JSON.stringify(t)}).then(a=>it(this,null,function*(){if(a.ok)return a.json().then(d=>(console.debug("API",e,t,">>",d),d));let c=(yield a.text())||"Failed API "+e;throw console.warn(c+(t?" "+JSON.stringify(t):"")),a.status===401&&(Cn.loginRequired=wne(()=>{var d;return(d=JSON.parse(c))==null?void 0:d.any})!==!1||403,c="Unauthorized"),new jre(a.status,c)}),a=>{var c;throw(c=a==null?void 0:a.message)!=null&&c.includes("fetch")?Error("Network error"):a}),{abort(){o.abort("cancel")}})}class jre extends Error{constructor(t,n){super(n),this.code=t}}function up(e,t){const[n,r]=yo(void 0),[o,i]=yo(void 0),[s,a]=yo(0),c=u.useRef();u.useEffect(()=>{var v;if((v=c.current)==null||v.abort(),r(void 0),i(void 0),!e)return;let p=!1;const h=Pt(e,t),m=h.then(b=>p||r(b),b=>p||i(b)).finally(()=>c.current=void 0);c.current=Object.assign(m,{abort(){p=!0,h.abort()}})},[e,JSON.stringify(t),s]);const d=u.useCallback(()=>c.current||a(p=>p+1),[a]);return[n,o,d]}function JO(e,t,n){console.debug("API EVENTS",e,t);const r=ZO(),o={csrf:r&&JSON.stringify(r)};for(const s in t){const a=t[s];a!==void 0&&(o[s]=JSON.stringify(a))}const i=new EventSource(QO+e+"?"+new URLSearchParams(o));return i.onopen=()=>n("connected"),i.onerror=s=>n("error",s),i.onmessage=({data:s})=>{if(!s)return n("closed"),i.close();try{s=JSON.parse(s)}catch(a){return n("string",s)}console.debug("SSE msg",s),n("msg",s)},i}function ZO(){return gne("csrf")}function Hre(e,t={}){const[n,r]=yo(void 0),[o,i]=yo(void 0),[s,a]=yo(!1);return u.useEffect(()=>{const c=JO(e,t,(p,h)=>{switch(p){case"error":return i("Connection error"),d();case"closed":return d();case"msg":return(c==null?void 0:c.readyState)===(c==null?void 0:c.CLOSED)?d():r(h)}});return()=>{c.close(),d()};function d(){a(!1)}},[e,JSON.stringify(t)]),{data:n,loading:s,error:o}}function Xa(e,t={},{addId:n=!1,map:r=o=>o}={}){const[o,i]=yo([]),[s,a]=yo(void 0),[c,d]=yo(void 0),[p,h]=yo(!0),[m,v]=yo(!1),[b,g]=yo(!0),[x,C]=u.useState(0),S=u.useRef(0);return u.useEffect(()=>{if(!e)return;const P=[],_=Ot.debounce(()=>{const O=P.splice(0,1/0);O.length&&i(L=>[...L,...O])},1e3,{maxWait:1e3});d(void 0),v(!0),h(!0),g(!0),i([]);const I=JO(e,t,(O,L)=>{switch(O){case"connected":return h(!1),setTimeout(()=>_.flush());case"error":return d("Connection error"),M();case"closed":return M();case"msg":Sne(L).forEach(R=>{if(R==="ready"){_.flush(),g(!1);return}if(R.error){R.error===401?Cn.loginRequired=R.any!==!1||403:d(WO(R.error));return}if(R.props)return a(R.props);if(R.add){const H=r(R.add);n&&(H.id=++S.current),P.push(H),_();return}if(R.remove){const H=[];for(const j of R.remove){const A=Ot.matches(j);Ot.isEmpty(Ot.remove(P,A))&&H.push(A)}if(Ot.isEmpty(H))return;i(j=>{const A=j.filter(F=>!H.some(B=>B(F)));return A.length<j.length?A:j});return}if(R.update){_.flush(),i(H=>{const j=[...H];for(const{search:A,change:F}of R.update){const B=j.findIndex(Ot.matches(A));B>=0&&(j[B]=Ie(Ie({},j[B]),F))}return j});return}console.debug("unknown api event",O,R)}),(I==null?void 0:I.readyState)===(I==null?void 0:I.CLOSED)&&M()}});return()=>I.close();function M(){g(!1),v(!1),_.flush()}},[x,e,JSON.stringify(t)]),{list:o,props:s,loading:m,error:c,initializing:b,connecting:p,setList:i,updateList:E,reload:w};function w(){C(P=>P+1)}function E(P){i(Bre(o,_=>{P(_)}))}}const eL=u.createContext(void 0);function yt(){const e=u.useContext(eL);if(e===void 0)throw new Error(["MUI: Could not find the data grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(`
|
|
328
|
+
`));return e}const tL=u.createContext(void 0),Ye=()=>{const e=u.useContext(tL);if(!e)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e};function Lt(e){return Qe("MuiDataGrid",e)}const te=Ke("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","autoHeight","booleanCell","cell--editable","cell--editing","cell--textCenter","cell--textLeft","cell--textRight","cell--withRenderer","cell","cellContent","cellCheckbox","cellSkeleton","checkboxInput","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderDropZone","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnGroupHeader","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeader--showColumnBorder","columnHeaders","columnHeadersInner","columnHeadersInner--scrollable","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsPanel","columnsPanelRow","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filterForm","filterFormDeleteIcon","filterFormLinkOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","iconButtonContainer","iconSeparator","main","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","root","root--densityStandard","root--densityComfortable","root--densityCompact","row","row--editable","row--editing","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","scrollArea--left","scrollArea--right","scrollArea","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","pinnedColumns--left","pinnedColumns--right","pinnedColumnHeaders","pinnedColumnHeaders--left","pinnedColumnHeaders--right","withBorder","treeDataGroupingCell","treeDataGroupingCellToggle","groupingCriteriaCell","groupingCriteriaCellToggle","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]),Vre=e=>{const{classes:t}=e;return _e({root:["main"]},Lt,t)},Ure=ie("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})(()=>({position:"relative",flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"}));function nL(e){const t=Ye(),n=Vre(t);return T.jsx(Ure,{className:n.root,ownerState:t,children:e.children})}function Wre(e,t){var n=function(E){var P=E.__resizeTriggers__,_=P.firstElementChild,I=P.lastElementChild,M=_.firstElementChild;I.scrollLeft=I.scrollWidth,I.scrollTop=I.scrollHeight,M.style.width=_.offsetWidth+1+"px",M.style.height=_.offsetHeight+1+"px",_.scrollLeft=_.scrollWidth,_.scrollTop=_.scrollHeight},r=function(E){return E.offsetWidth!=E.__resizeLast__.width||E.offsetHeight!=E.__resizeLast__.height},o=function(E){if(!(E.target.className.indexOf("contract-trigger")<0&&E.target.className.indexOf("expand-trigger")<0)){var P=this;n(this),this.__resizeRAF__&&t.cancelAnimationFrame(this.__resizeRAF__),this.__resizeRAF__=t.requestAnimationFrame(function(){r(P)&&(P.__resizeLast__.width=P.offsetWidth,P.__resizeLast__.height=P.offsetHeight,P.__resizeListeners__.forEach(function(_){_.call(P,E)}))})}},i=!1,s="",a="animationstart",c="Webkit Moz O ms".split(" "),d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="";{var h=document.createElement("fakeelement");if(h.style.animationName!==void 0&&(i=!0),i===!1){for(var m=0;m<c.length;m++)if(h.style[c[m]+"AnimationName"]!==void 0){p=c[m],s="-"+p.toLowerCase()+"-",a=d[m],i=!0;break}}}var v="resizeanim",b="@"+s+"keyframes "+v+" { from { opacity: 0; } to { opacity: 0; } } ",g=s+"animation: 1ms "+v+"; ",x=function(E,P){if(!P.getElementById("muiDetectElementResize")){var _=(b||"")+".Mui-resizeTriggers { "+(g||"")+'visibility: hidden; opacity: 0; } .Mui-resizeTriggers, .Mui-resizeTriggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .Mui-resizeTriggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',I=P.constructor.name==="ShadowRoot"?P:E.head||E.getElementsByTagName("head")[0],M=E.createElement("style");M.id="muiDetectElementResize",M.type="text/css",e!=null&&M.setAttribute("nonce",e),M.styleSheet?M.styleSheet.cssText=_:M.appendChild(E.createTextNode(_)),I.appendChild(M)}},C=function(E,P){if(!E.__resizeTriggers__){var _=E.ownerDocument,I=t.getComputedStyle(E);I&&I.position=="static"&&(E.style.position="relative"),x(_,E.getRootNode()),E.__resizeLast__={},E.__resizeListeners__=[],(E.__resizeTriggers__=_.createElement("div")).className="Mui-resizeTriggers",E.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>',E.appendChild(E.__resizeTriggers__),n(E),E.addEventListener("scroll",o,!0),a&&(E.__resizeTriggers__.__animationListener__=function(O){O.animationName==v&&n(E)},E.__resizeTriggers__.addEventListener(a,E.__resizeTriggers__.__animationListener__))}E.__resizeListeners__.push(P)},S=function(E,P){if(E.__resizeListeners__.splice(E.__resizeListeners__.indexOf(P),1),!E.__resizeListeners__.length){E.removeEventListener("scroll",o,!0),E.__resizeTriggers__.__animationListener__&&(E.__resizeTriggers__.removeEventListener(a,E.__resizeTriggers__.__animationListener__),E.__resizeTriggers__.__animationListener__=null);try{E.__resizeTriggers__=!E.removeChild(E.__resizeTriggers__)}catch(_){}}};return{addResizeListener:C,removeResizeListener:S}}const Gre=["children","defaultHeight","defaultWidth","disableHeight","disableWidth","nonce","onResize","style"],Kre=u.forwardRef(function(t,n){const{children:r,defaultHeight:o=null,defaultWidth:i=null,disableHeight:s=!1,disableWidth:a=!1,nonce:c,onResize:d,style:p}=t,h=se(t,Gre),[m,v]=u.useState({height:o,width:i}),b=u.useRef(null),g=u.useRef(null),x=cn(()=>{if(g.current){const E=g.current.offsetHeight||0,P=g.current.offsetWidth||0,I=Eo(g.current).getComputedStyle(g.current),M=parseInt(I.paddingLeft,10)||0,O=parseInt(I.paddingRight,10)||0,L=parseInt(I.paddingTop,10)||0,R=parseInt(I.paddingBottom,10)||0,H=E-L-R,j=P-M-O;(!s&&m.height!==H||!a&&m.width!==j)&&(v({height:H,width:j}),d&&d({height:H,width:j}))}});vn(()=>{var E;if(g.current=b.current.parentElement,!g)return;const P=Eo((E=g.current)!=null?E:void 0),_=Wre(c,P);return _.addResizeListener(g.current,x),x(),()=>{_.removeResizeListener(g.current,x)}},[c,x]);const C={overflow:"visible"},S={};s||(C.height=0,S.height=m.height),a||(C.width=0,S.width=m.width);const w=Bt(b,n);return T.jsx("div",k({ref:w,style:k({},C,p)},h,{children:m.height===null&&m.width===null?null:r(S)}))}),_i=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(`
|
|
329
|
+
`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}},Mx=(e,t)=>e;function qre(e){return e.acceptsApiRef}_i(["MUI: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);const qe=(e,t)=>qre(t)?t(e):t(e.current.state);var cg="NOT_FOUND";function Yre(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:cg},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function Xre(e,t){var n=[];function r(a){var c=n.findIndex(function(p){return t(a,p.key)});if(c>-1){var d=n[c];return c>0&&(n.splice(c,1),n.unshift(d)),d.value}return cg}function o(a,c){r(a)===cg&&(n.unshift({key:a,value:c}),n.length>e&&n.pop())}function i(){return n}function s(){n=[]}return{get:r,put:o,getEntries:i,clear:s}}var Qre=function(t,n){return t===n};function Jre(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,i=0;i<o;i++)if(!e(n[i],r[i]))return!1;return!0}}function rL(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?Qre:r,i=n.maxSize,s=i===void 0?1:i,a=n.resultEqualityCheck,c=Jre(o),d=s===1?Yre(c):Xre(s,c);function p(){var h=d.get(arguments);if(h===cg){if(h=e.apply(null,arguments),a){var m=d.getEntries(),v=m.find(function(b){return a(b.value,h)});v&&(h=v.value)}d.put(arguments,h)}return h}return p.clearCache=function(){return d.clear()},p}function Zre(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(r){return typeof r=="function"})){var n=t.map(function(r){return typeof r=="function"?"function "+(r.name||"unnamed")+"()":typeof r}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}function eoe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=function(){for(var s=arguments.length,a=new Array(s),c=0;c<s;c++)a[c]=arguments[c];var d=0,p,h={memoizeOptions:void 0},m=a.pop();if(typeof m=="object"&&(h=m,m=a.pop()),typeof m!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof m+"]");var v=h,b=v.memoizeOptions,g=b===void 0?n:b,x=Array.isArray(g)?g:[g],C=Zre(a),S=e.apply(void 0,[function(){return d++,m.apply(null,arguments)}].concat(x)),w=e(function(){for(var P=[],_=C.length,I=0;I<_;I++)P.push(C[I].apply(null,arguments));return p=S.apply(null,P),p});return Object.assign(w,{resultFunc:m,memoizedResultFunc:S,dependencies:C,lastResult:function(){return p},recomputations:function(){return d},resetRecomputations:function(){return d=0}}),w};return o}var toe=eoe(rL);const Ss={cache:null};_i(["MUI: A selector was called without passing the instance ID, which may impact the performance of the grid.","To fix, call it with `apiRef`, e.g. `mySelector(apiRef)`, or pass the instance ID explicitly, e.g `mySelector(state, apiRef.current.instanceId)`."]);const Ze=(...e)=>{Ss.cache===null&&(Ss.cache={});const t=(...n)=>{const[r,o]=n,i=!!r.current,s=i?r.current.instanceId:o!=null?o:"default",a=i?r.current.state:r;Ss.cache===null&&(Ss.cache={});const{cache:c}=Ss;if(c[s]&&c[s].get(e))return c[s].get(e)(a,s);const d=toe(...e);return c[s]||(c[s]=new Map),c[s].set(e,d),d(a,s)};return t.acceptsApiRef=!0,t},noe=e=>{typeof e!="undefined"?Ss.cache&&Ss.cache[e]&&delete Ss.cache[e]:Ss.cache=null},is=e=>e.rows,Vv=Ze(is,e=>e.totalRowCount),roe=Ze(is,e=>e.loading),ooe=Ze(is,e=>e.totalTopLevelRowCount),ru=Ze(is,e=>e.idRowsLookup),Rx=Ze(is,e=>e.idToIdLookup),wl=Ze(is,e=>e.tree),ioe=Ze(is,e=>e.groupingName),Ox=Ze(is,e=>e.treeDepth),ba=Ze(is,e=>e.ids),soe=Ze(is,e=>e==null?void 0:e.additionalRowGroups),dp=Ze(soe,e=>e==null?void 0:e.pinnedRows),loe=Ze(dp,e=>{var t,n;return((e==null||(t=e.top)==null?void 0:t.length)||0)+((e==null||(n=e.bottom)==null?void 0:n.length)||0)}),Lx=e=>e.sorting,Ax=Ze(Lx,e=>e.sortedRows),Fx=Ze(Ax,ru,(e,t)=>e.map(n=>({id:n,model:t[n]}))),gi=Ze(Lx,e=>e.sortModel),aoe=Ze(gi,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{})),Ba=e=>e.columns,_u=Ze(Ba,e=>e.all),Uu=Ze(Ba,e=>e.lookup),ki=Ze(_u,Uu,(e,t)=>e.map(n=>t[n])),Is=Ze(Ba,e=>e.columnVisibilityModel),Mr=Ze(ki,Is,(e,t)=>e.filter(n=>t[n.field]!==!1));Ze(Mr,e=>e.map(t=>t.field));const za=Ze(Mr,e=>{const t=[];let n=0;for(let r=0;r<e.length;r+=1)t.push(n),n+=e[r].computedWidth;return t}),Uv=Ze(Mr,za,(e,t)=>{const n=e.length;return n===0?0:t[n-1]+e[n-1].computedWidth}),Nx=Ze(ki,e=>e.filter(t=>t.filterable)),coe=Ze(ki,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{}));Mx(Ze(Nx,e=>e.map(t=>t.field)));Mx(Ze(Mr,e=>e.length));const uoe=Mx(Ze(za,Uv,(e,t)=>({totalWidth:t,positions:e}))),fp=e=>e.filter,Gr=Ze(fp,e=>e.filterModel);Ze(Gr,e=>e.quickFilterValues);const doe=Ze(fp,e=>e.visibleRowsLookup),oL=Ze(fp,e=>e.filteredRowsLookup);Ze(fp,e=>e.filteredDescendantCountLookup);const Ws=Ze(doe,Fx,(e,t)=>t.filter(n=>e[n.id]!==!1)),cf=Ze(Ws,e=>e.map(t=>t.id)),foe=Ze(oL,Fx,(e,t)=>t.filter(n=>e[n.id]!==!1)),poe=Ze(foe,e=>e.map(t=>t.id)),iL=Ze(Ws,wl,Ox,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),sL=Ze(Ws,e=>e.length),lL=Ze(iL,e=>e.length),hoe=Ze(Gr,Uu,(e,t)=>{var n;return(n=e.items)==null?void 0:n.filter(r=>{var o,i;if(!r.columnField)return!1;const s=t[r.columnField];if(!(s!=null&&s.filterOperators)||(s==null||(o=s.filterOperators)==null?void 0:o.length)===0)return!1;const a=s.filterOperators.find(c=>c.value===r.operatorValue);return a?!a.InputComponent||r.value!=null&&((i=r.value)==null?void 0:i.toString())!=="":!1})}),moe=Ze(hoe,e=>e.reduce((n,r)=>(n[r.columnField]?n[r.columnField].push(r):n[r.columnField]=[r],n),{})),Qa=e=>e.density,goe=Ze(Qa,e=>e.value),pp=Ze(Qa,e=>e.rowHeight),aL=Ze(Qa,e=>e.headerHeight),Dx=Ze(Qa,e=>e.headerGroupingMaxDepth),voe=Ze(Qa,e=>e.factor),hp=Ze(Qa,e=>e.headerHeight*(1+e.headerGroupingMaxDepth));function yoe(e){var t,n;const r=yt(),o=Ye(),i=qe(r,hp),[s,a]=u.useState(()=>{var p,h;return(p=(h=r.current.getRootDimensions())==null?void 0:h.viewportInnerSize)!=null?p:null}),c=u.useCallback(()=>{var p,h;a((p=(h=r.current.getRootDimensions())==null?void 0:h.viewportInnerSize)!=null?p:null)},[r]);vn(()=>r.current.subscribeEvent("viewportInnerSizeChange",c),[r,c]);let d=(t=s==null?void 0:s.height)!=null?t:0;return o.autoHeight&&d===0&&(d="auto"),s?T.jsx("div",k({style:{height:d,width:(n=s==null?void 0:s.width)!=null?n:0,position:"absolute",top:i,bottom:d==="auto"?0:void 0}},e)):null}function boe(){const e=yt(),t=Ye(),n=qe(e,Vv),r=qe(e,sL),o=qe(e,roe),i=!o&&n===0,s=!o&&n>0&&r===0;let a=null;if(i){var c;a=T.jsx(t.components.NoRowsOverlay,k({},(c=t.componentsProps)==null?void 0:c.noRowsOverlay))}if(s){var d;a=T.jsx(t.components.NoResultsOverlay,k({},(d=t.componentsProps)==null?void 0:d.noResultsOverlay))}if(o){var p;a=T.jsx(t.components.LoadingOverlay,k({},(p=t.componentsProps)==null?void 0:p.loadingOverlay))}return a===null?null:T.jsx(yoe,{children:a})}function woe(e){const{children:t,VirtualScrollerComponent:n,ColumnHeadersComponent:r}=e,o=yt(),i=Ye(),s=qe(o,hp),[a,c]=u.useState(i.disableVirtualization),d=u.useCallback(()=>{c(!0)},[]),p=u.useCallback(()=>{c(!1)},[]);u.useEffect(()=>{c(i.disableVirtualization)},[i.disableVirtualization]),o.current.unstable_disableVirtualization=d,o.current.unstable_enableVirtualization=p;const h=u.useRef(null),m=u.useRef(null),v=u.useRef(null),b=u.useRef(null);o.current.columnHeadersContainerElementRef=m,o.current.columnHeadersElementRef=h,o.current.windowRef=v,o.current.renderingZoneRef=b;const g=u.useCallback(x=>{o.current.publishEvent("resize",x)},[o]);return T.jsxs(nL,{children:[T.jsx(boe,{}),T.jsx(r,{ref:m,innerRef:h}),T.jsx(Kre,{nonce:i.nonce,disableHeight:i.autoHeight,onResize:g,children:x=>{const C={width:x.width,height:x.height?x.height-s:"auto",marginTop:s};return T.jsx(n,{ref:v,style:C,disableVirtualization:a})}}),t]})}function qn(e,t){const n=u.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}class Coe extends u.Component{static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){this.props.api.current&&(this.logError(t),this.props.api.current.showError({error:t,errorInfo:n}))}logError(t,n){this.props.logger.error(`An unexpected error occurred. Error: ${t&&t.message}. `,t,n)}render(){var t;return this.props.hasError||(t=this.state)!=null&&t.hasError?this.props.render(this.state):this.props.children}}function xoe(e){const{children:t}=e,n=yt(),r=qn(n,"GridErrorHandler"),o=Ye(),i=n.current.state.error;return T.jsx(Coe,{hasError:i!=null,api:n,logger:r,render:s=>{var a;return T.jsx(nL,{children:T.jsx(o.components.ErrorOverlay,k({},s,i,(a=o.componentsProps)==null?void 0:a.errorOverlay))})},children:t})}function Soe(){var e;const t=yt(),n=Ye(),r=u.useRef(null);return t.current.footerRef=r,n.hideFooter?null:T.jsx("div",{ref:r,children:T.jsx(n.components.Footer,k({},(e=n.componentsProps)==null?void 0:e.footer))})}function Eoe(){var e;const t=yt(),n=Ye(),r=u.useRef(null);return t.current.headerRef=r,T.jsx("div",{ref:r,children:T.jsx(n.components.Header,k({},(e=n.componentsProps)==null?void 0:e.header))})}var _r;(function(e){e.Cell="cell",e.Row="row"})(_r||(_r={}));var $t;(function(e){e.Edit="edit",e.View="view"})($t||($t={}));var jt;(function(e){e.Edit="edit",e.View="view"})(jt||(jt={}));const ou={client:"client",server:"server"};var Dr;(function(e){e.And="and",e.Or="or"})(Dr||(Dr={}));var bs;(function(e){e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown"})(bs||(bs={}));var zi;(function(e){e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown"})(zi||(zi={}));var ws;(function(e){e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown"})(ws||(ws={}));var ji;(function(e){e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown"})(ji||(ji={}));var jf;(function(e){e.Compact="compact",e.Standard="standard",e.Comfortable="comfortable"})(jf||(jf={}));function cL(e){return e.field!==void 0}const uL=e=>e.focus,wi=Ze(uL,e=>e.cell),koe=Ze(uL,e=>e.columnHeader),dL=e=>e.tabIndex,ug=Ze(dL,e=>e.cell),fL=Ze(dL,e=>e.columnHeader),Poe=["align","children","colIndex","colDef","cellMode","field","formattedValue","hasFocus","height","isEditable","rowId","tabIndex","value","width","className","showRightBorder","extendRowFullWidth","row","colSpan","disableDragEvents","onClick","onDoubleClick","onMouseDown","onMouseUp","onKeyDown","onDragEnter","onDragOver"];let m1;function Ioe(){return m1===void 0&&document.createElement("div").focus({get preventScroll(){return m1=!0,!1}}),m1}const _oe=e=>{const{align:t,showRightBorder:n,isEditable:r,classes:o}=e,i={root:["cell",`cell--text${fe(t)}`,r&&"cell--editable",n&&"withBorder"],content:["cellContent"]};return _e(i,Lt,o)};function $oe(e){const{align:t,children:n,colIndex:r,cellMode:o,field:i,formattedValue:s,hasFocus:a,height:c,isEditable:d,rowId:p,tabIndex:h,value:m,width:v,className:b,showRightBorder:g,colSpan:x,disableDragEvents:C,onClick:S,onDoubleClick:w,onMouseDown:E,onMouseUp:P,onKeyDown:_,onDragEnter:I,onDragOver:M}=e,O=se(e,Poe),L=s==null?m:s,R=u.useRef(null),H=u.useRef(null),j=yt(),A=Ye(),F={align:t,showRightBorder:g,isEditable:d,classes:A.classes},B=_oe(F),G=u.useCallback(ee=>ce=>{const oe=j.current.getCellParams(p,i||"");j.current.publishEvent(ee,oe,ce),P&&P(ce)},[j,i,P,p]),N=u.useCallback(ee=>ce=>{const oe=j.current.getCellParams(p,i||"");j.current.publishEvent(ee,oe,ce),E&&E(ce)},[j,i,E,p]),z=u.useCallback((ee,ce)=>oe=>{if(!oe.currentTarget.contains(oe.target)||!j.current.getRow(p))return;const de=j.current.getCellParams(p,i||"");j.current.publishEvent(ee,de,oe),ce&&ce(oe)},[j,i,p]),W={minWidth:v,maxWidth:v,minHeight:c,maxHeight:c==="auto"?"none":c};u.useEffect(()=>{if(!a||o===$t.Edit)return;const ee=gn(j.current.rootElementRef.current);if(R.current&&!R.current.contains(ee.activeElement)){const ce=R.current.querySelector('[tabindex="0"]'),oe=H.current||ce||R.current;if(Ioe())oe.focus({preventScroll:!0});else{const de=j.current.getScrollPosition();oe.focus(),j.current.scroll(de)}}},[a,o,j]);let q=O.onFocus;const le=j.current.getColumn(i).type==="actions",Q=()=>{if(n==null){const ee=L==null?void 0:L.toString();return T.jsx("div",{title:ee,className:B.content,children:ee})}return u.isValidElement(n)&&le?u.cloneElement(n,{focusElementRef:H}):n},ge=C?null:{onDragEnter:z("cellDragEnter",I),onDragOver:z("cellDragOver",M)};return T.jsx("div",k({ref:R,className:me(b,B.root),role:"cell","data-field":i,"data-colindex":r,"aria-colindex":r+1,"aria-colspan":x,style:W,tabIndex:(o==="view"||!d)&&!le?h:-1,onClick:z("cellClick",S),onDoubleClick:z("cellDoubleClick",w),onMouseDown:N("cellMouseDown"),onMouseUp:G("cellMouseUp"),onKeyDown:z("cellKeyDown",_)},ge,O,{onFocus:q,children:Q()}))}const Toe=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","getValue"],Moe=e=>{const{classes:t}=e;return _e({root:["booleanCell"]},Lt,t)},Roe=e=>{const{value:t}=e,n=se(e,Toe),r=yt(),o=Ye(),i={classes:o.classes},s=Moe(i),a=u.useMemo(()=>t?o.components.BooleanCellTrueIcon:o.components.BooleanCellFalseIcon,[o.components.BooleanCellFalseIcon,o.components.BooleanCellTrueIcon,t]);return T.jsx(a,k({fontSize:"small",className:s.root,titleAccess:r.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":Boolean(t)},n))},Ooe=u.memo(Roe),Loe=e=>e.rowNode.isAutoGenerated?"":T.jsx(Ooe,k({},e)),Aoe=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","getValue","hasFocus","isValidating","isProcessingProps","error","onValueChange"],Foe=e=>{const{classes:t}=e;return _e({root:["editBooleanCell"]},Lt,t)};function Noe(e){var t;const{id:n,value:r,field:o,className:i,hasFocus:s,onValueChange:a}=e,c=se(e,Aoe),d=yt(),p=u.useRef(null),h=Tn(),[m,v]=u.useState(r),b=Ye(),g={classes:b.classes},x=Foe(g),C=u.useCallback(S=>it(this,null,function*(){const w=S.target.checked;a&&(yield a(S,w)),v(w),yield d.current.setEditCellValue({id:n,field:o,value:w},S)}),[d,o,n,a]);return u.useEffect(()=>{v(r)},[r]),vn(()=>{s&&p.current.focus()},[s]),T.jsx("label",k({htmlFor:h,className:me(x.root,i)},c,{children:T.jsx(b.components.BaseCheckbox,k({id:h,inputRef:p,checked:Boolean(m),onChange:C,size:"small"},(t=b.componentsProps)==null?void 0:t.baseCheckbox))}))}const Doe=e=>T.jsx(Noe,k({},e)),Boe=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","getValue","inputProps","isValidating","isProcessingProps","onValueChange"],zoe=ie(Du)({fontSize:"inherit"}),joe=e=>{const{classes:t}=e;return _e({root:["editInputCell"]},Lt,t)};function Hoe(e){const{id:t,value:n,field:r,colDef:o,hasFocus:i,inputProps:s,onValueChange:a}=e,c=se(e,Boe),d=o.type==="dateTime",p=yt(),h=u.useRef(),m=u.useMemo(()=>{let w;n==null?w=null:n instanceof Date?w=n:w=new Date((n!=null?n:"").toString());let E;return w==null||Number.isNaN(w.getTime())?E="":E=new Date(w.getTime()-w.getTimezoneOffset()*60*1e3).toISOString().substr(0,d?16:10),{parsed:w,formatted:E}},[n,d]),[v,b]=u.useState(m),x={classes:Ye().classes},C=joe(x),S=u.useCallback(w=>it(this,null,function*(){const E=w.target.value;let P;if(E==="")P=null;else{const[_,I]=E.split("T"),[M,O,L]=_.split("-");if(P=new Date,P.setFullYear(Number(M),Number(O)-1,Number(L)),P.setHours(0,0,0,0),I){const[R,H]=I.split(":");P.setHours(Number(R),Number(H),0,0)}}a&&(yield a(w,P)),b({parsed:P,formatted:E}),p.current.setEditCellValue({id:t,field:r,value:P},w)}),[p,r,t,a]);return u.useEffect(()=>{b(w=>{var E,P;return m.parsed!==w.parsed&&((E=m.parsed)==null?void 0:E.getTime())!==((P=w.parsed)==null?void 0:P.getTime())?m:w})},[m]),vn(()=>{i&&h.current.focus()},[i]),T.jsx(zoe,k({inputRef:h,fullWidth:!0,className:C.root,type:d?"datetime-local":"date",inputProps:k({max:d?"9999-12-31T23:59":"9999-12-31"},s),value:v.formatted,onChange:S},c))}const pL=e=>T.jsx(Hoe,k({},e)),Voe=Re(T.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),Uoe=Re(T.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),w_=Re(T.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),C_=Re(T.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),Woe=Re(T.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),Goe=Re(T.jsx("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),Koe=Re(T.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");Re(T.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");Re(T.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");const qoe=Re(T.jsx("path",{d:"M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"}),"ColumnIcon"),Yoe=Re(T.jsx("path",{d:"M11 19V5h2v14z"}),"Separator"),Xoe=Re(T.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),Qoe=Re(T.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),Joe=Re(T.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),Zoe=Re(T.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),g1=Re(T.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"),hL=Re(T.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),eie=Re(T.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),Bx=Re(T.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),mL=Re(T.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag"),tie=Re(T.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),nie=Re(T.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),rie=Re(T.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert");function Cl(e){return typeof e=="object"&&e!==null?e.value:e}function dg(e,t){if(t===void 0)return;const n=t.find(r=>{const o=Cl(r);return String(o)===String(e)});return Cl(n)}const oie=["item","applyValue","type","apiRef","focusElementRef"],iie=({valueOptions:e,valueFormatter:t,field:n},r,o)=>(typeof e=="function"?["",...e({field:n})]:["",...e||[]]).map(s=>{const a=typeof s=="object",c=a?s.value:s,d=a?s.value:s,p=t&&s!==""?t({value:s,field:n,api:r}):s,h=a?s.label:p;return T.jsx(o,{value:d,children:h},c)}),gL=500;function Ui(e){var t,n,r,o,i;const{item:s,applyValue:a,type:c,apiRef:d,focusElementRef:p}=e,h=se(e,oie),m=u.useRef(),[v,b]=u.useState((t=s.value)!=null?t:""),[g,x]=u.useState(!1),C=Tn(),S=Ye(),E=(r=(((n=S.componentsProps)==null?void 0:n.baseSelect)||{}).native)!=null?r:!0,P=c==="singleSelect"?{select:!0,SelectProps:k({native:E},(o=S.componentsProps)==null?void 0:o.baseSelect),children:iie(d.current.getColumn(s.columnField),d.current,E?"option":ar)}:{},_=u.useCallback(M=>{let O=M.target.value;if(c==="singleSelect"){const L=d.current.getColumn(s.columnField),R=typeof L.valueOptions=="function"?L.valueOptions({field:L.field}):L.valueOptions;O=dg(O,R)}clearTimeout(m.current),b(String(O)),x(!0),m.current=setTimeout(()=>{a(k({},s,{value:O})),x(!1)},gL)},[d,a,s,c]);u.useEffect(()=>()=>{clearTimeout(m.current)},[]),u.useEffect(()=>{var M;const O=(M=s.value)!=null?M:"";b(String(O))},[s.value]);const I=g?{endAdornment:T.jsx(Bx,{})}:h.InputProps;return T.jsx(S.components.BaseTextField,k({id:C,label:d.current.getLocaleText("filterPanelInputLabel"),placeholder:d.current.getLocaleText("filterPanelInputPlaceholder"),value:v,onChange:_,variant:"standard",type:c||"text",InputProps:I,InputLabelProps:{shrink:!0},inputRef:p},P,h,(i=S.componentsProps)==null?void 0:i.baseTextField))}const sie=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","getValue","isValidating","debounceMs","isProcessingProps","onValueChange"],lie=e=>{const{classes:t}=e;return _e({root:["editInputCell"]},Lt,t)},aie=ie(Du,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})(({theme:e})=>k({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),cie=u.forwardRef((e,t)=>{var n,r;const o=Ye(),{id:i,value:s,field:a,colDef:c,hasFocus:d,debounceMs:p=(n=o.experimentalFeatures)!=null&&n.newEditingApi?200:gL,isProcessingProps:h,onValueChange:m}=e,v=se(e,sie),b=yt(),g=u.useRef(),[x,C]=u.useState(s),S=lie(o),w=u.useCallback(P=>it(void 0,null,function*(){var _;const I=P.target.value;m&&(yield m(P,I));const M=b.current.getColumn(a);let O=I;M.valueParser&&(_=o.experimentalFeatures)!=null&&_.newEditingApi&&(O=M.valueParser(I,b.current.getCellParams(i,a))),C(O),b.current.setEditCellValue({id:i,field:a,value:O,debounceMs:p,unstable_skipValueParser:!0},P)}),[b,p,a,i,m,(r=o.experimentalFeatures)==null?void 0:r.newEditingApi]),E=b.current.unstable_getEditCellMeta?b.current.unstable_getEditCellMeta(i,a):{};return u.useEffect(()=>{E.changeReason!=="debouncedSetEditCellValue"&&C(s)},[E.changeReason,s]),vn(()=>{d&&g.current.focus()},[d]),T.jsx(aie,k({ref:t,inputRef:g,className:S.root,ownerState:o,fullWidth:!0,type:c.type==="number"?c.type:"text",value:x!=null?x:"",onChange:w,endAdornment:h?T.jsx(Bx,{}):void 0},v))}),uie=e=>T.jsx(cie,k({},e)),zx=e=>e==="Escape",vL=e=>e==="Enter",yL=e=>e==="Tab",bL=e=>e===" ",die=e=>e.indexOf("Arrow")===0,fie=e=>e==="Home"||e==="End",pie=e=>e.indexOf("Page")===0,ow=e=>e==="Delete"||e==="Backspace";function Wv(e){return e.key.length===1&&e.ctrlKey===!1&&e.metaKey===!1}const hie=["Enter","Escape","Tab"],mie=["Enter","Tab"],gie=e=>vL(e.key)||ow(e.key)||Wv(e),vie=e=>hie.indexOf(e)>-1,x_=e=>mie.indexOf(e)>-1,mp=e=>fie(e)||die(e)||pie(e)||bL(e),iw=e=>!!e.key,yie=e=>yL(e)||zx(e),bie=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","getValue","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen"],wie=(e,t)=>{const n=typeof e=="object",r=n?e.value:e,o=n?e.value:e,i=n?e.label:e;return T.jsx(t,{value:o,children:i},r)};function Cie(e){return!!e.key}function xie(e){var t,n,r;const o=Ye(),{id:i,value:s,api:a,field:c,row:d,colDef:p,hasFocus:h,error:m,onValueChange:v,initialOpen:b=o.editMode===_r.Cell}=e,g=se(e,bie),x=yt(),C=u.useRef(),S=u.useRef(),[w,E]=u.useState(b),_=(n=(((t=o.componentsProps)==null?void 0:t.baseSelect)||{}).native)!=null?n:!1;let I;typeof p.valueOptions=="function"?I=p.valueOptions({id:i,row:d,field:c}):I=p.valueOptions,p.valueFormatter&&(I=I.map(R=>{if(typeof R=="object")return R;const H={field:c,api:a,value:R};return{value:R,label:String(p.valueFormatter(H))}}));const M=R=>it(this,null,function*(){var H;E(!1);const j=R.target,A=dg(j.value,I);v&&(yield v(R,A));const F=yield x.current.setEditCellValue({id:i,field:c,value:A},R);if((H=o.experimentalFeatures)!=null&&H.newEditingApi||o.editMode===_r.Row||F===!1)return;if((yield Promise.resolve(x.current.commitCellChange({id:i,field:c},R)))&&(x.current.setCellMode(i,c,"view"),R.key)){const G=x.current.getCellParams(i,c);x.current.publishEvent("cellNavigationKeyDown",G,R)}}),O=(R,H)=>{if(o.editMode===_r.Row){E(!1);return}if(H==="backdropClick"||zx(R.key)){var j;(j=o.experimentalFeatures)!=null&&j.newEditingApi?x.current.stopCellEditMode({id:i,field:c,ignoreModifications:!0}):x.current.setCellMode(i,c,"view")}},L=R=>{Cie(R)&&R.key==="Enter"||E(!0)};return vn(()=>{h&&S.current.focus()},[h]),T.jsx(o.components.BaseSelect,k({ref:C,inputRef:S,value:s,onChange:M,open:w,onOpen:L,MenuProps:{onClose:O},error:m,native:_,fullWidth:!0},g,(r=o.componentsProps)==null?void 0:r.baseSelect,{children:I.map(R=>wie(R,_?"option":ar))}))}const Sie=e=>T.jsx(xie,k({},e)),Eie=["open","target","onClickAway","children","position","className","onExited"],kie=e=>{const{classes:t}=e;return _e({root:["menu"]},Lt,t)},Pie=ie(Ka,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})(({theme:e})=>({zIndex:e.zIndex.modal,[`& .${te.menuList}`]:{outline:0}})),Iie={"bottom-start":"top left","bottom-end":"top right"},wL=e=>{var t;const{open:n,target:r,onClickAway:o,children:i,position:s,className:a,onExited:c}=e,d=se(e,Eie),p=yt(),h=u.useRef(r),m=u.useRef(n),v=Ye(),b=kie(v);u.useEffect(()=>{m.current&&h.current&&h.current.focus();const x=n?"menuOpen":"menuClose";p.current.publishEvent(x,{target:r}),m.current=n,h.current=r},[p,n,r]);const g=x=>C=>{x&&x(),c&&c(C)};return T.jsx(Pie,k({as:v.components.BasePopper,className:me(a,b.root),ownerState:v,open:n,anchorEl:r,transition:!0,placement:s},d,(t=v.componentsProps)==null?void 0:t.basePopper,{children:({TransitionProps:x,placement:C})=>T.jsx(yR,{onClickAway:o,mouseEvent:"onMouseDown",children:T.jsx(Zm,k({},x,{style:{transformOrigin:Iie[C]},onExited:g(x==null?void 0:x.onExited),children:T.jsx(ii,{children:i})}))})}))},_ie=["colDef","id","api","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","getValue","tabIndex","position","focusElementRef"],$ie=e=>typeof e.getActions=="function",Tie=e=>{const{colDef:t,id:n,hasFocus:r,tabIndex:o,position:i="bottom-end",focusElementRef:s}=e,a=se(e,_ie),[c,d]=u.useState(-1),[p,h]=u.useState(!1),m=yt(),v=u.useRef(null),b=u.useRef(null),g=u.useRef(!1),x=u.useRef({}),C=Tn(),S=Tn(),w=Ye();if(u.useLayoutEffect(()=>{r||Object.entries(x.current).forEach(([A,F])=>{F==null||F.stop({},()=>{delete x.current[A]})})},[r]),u.useEffect(()=>{if(c<0||!v.current||c>=v.current.children.length)return;v.current.children[c].focus({preventScroll:!0})},[c]),u.useEffect(()=>{r||(d(-1),g.current=!1)},[r]),u.useImperativeHandle(s,()=>({focus(){g.current||d(0)}}),[]),!$ie(t))throw new Error("MUI: Missing the `getActions` property in the `GridColDef`.");const E=t.getActions(m.current.getRowParams(n)),P=E.filter(A=>!A.props.showInMenu),_=E.filter(A=>A.props.showInMenu),I=P.length+(_.length?1:0);u.useEffect(()=>{c>=I&&d(I-1)},[c,I]);const M=()=>{h(!0),d(I-1),g.current=!0},O=()=>{h(!1)},L=A=>F=>{x.current[A]=F},R=(A,F)=>B=>{d(A),g.current=!0,F&&F(B)},H=A=>{if(I<=1)return;let F=c;A.key==="ArrowRight"?F+=1:A.key==="ArrowLeft"&&(F-=1),!(F<0||F>=I)&&F!==c&&(A.preventDefault(),A.stopPropagation(),d(F))},j=A=>{A.key==="Tab"&&A.preventDefault(),["Tab","Enter","Escape"].includes(A.key)&&O()};return T.jsxs("div",k({role:"menu",ref:v,tabIndex:-1,className:te.actionsCell,onKeyDown:H},a,{children:[P.map((A,F)=>u.cloneElement(A,{key:F,touchRippleRef:L(F),onClick:R(F,A.props.onClick),tabIndex:c===F?o:-1})),_.length>0&&S&&T.jsx(ir,{ref:b,id:S,"aria-label":m.current.getLocaleText("actionsCellMore"),"aria-controls":C,"aria-expanded":p?"true":void 0,"aria-haspopup":"true",role:"menuitem",size:"small",onClick:M,touchRippleRef:L(S),tabIndex:c===P.length?o:-1,children:T.jsx(w.components.MoreActionsIcon,{fontSize:"small"})}),_.length>0&&T.jsx(wL,{onClickAway:O,onClick:O,open:p,target:b.current,position:i,children:T.jsx(Rv,{id:C,className:te.menuList,onKeyDown:j,"aria-labelledby":S,variant:"menu",autoFocusItem:!0,children:_.map((A,F)=>u.cloneElement(A,{key:F}))})})]}))},Mie=e=>T.jsx(Tie,k({},e)),Rie=["field","align","width","contentWidth"],Oie=e=>{const{align:t,classes:n}=e,r={root:["cell","cellSkeleton",`cell--text${fe(t)}`]};return _e(r,Lt,n)};function Lie(e){const{align:t,width:n,contentWidth:r}=e,o=se(e,Rie),s={classes:Ye().classes,align:t},a=Oie(s);return T.jsx("div",k({className:a.root,style:{width:n}},o,{children:T.jsx(mZ,{width:`${r}%`})}))}const Aie=ie("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${te.autoHeight}`]:t.autoHeight},{[`&.${te.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${te["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${te["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${te["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${te.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`& .${te.editBooleanCell}`]:t.editBooleanCell},{[`& .${te["cell--editing"]}`]:t["cell--editing"]},{[`& .${te["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${te["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${te["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${te["cell--withRenderer"]}`]:t["cell--withRenderer"]},{[`& .${te.cell}`]:t.cell},{[`& .${te.cellContent}`]:t.cellContent},{[`& .${te.cellCheckbox}`]:t.cellCheckbox},{[`& .${te.cellSkeleton}`]:t.cellSkeleton},{[`& .${te.checkboxInput}`]:t.checkboxInput},{[`& .${te["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${te["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${te["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${te["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${te["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${te["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${te["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${te["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${te.columnHeader}`]:t.columnHeader},{[`& .${te.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${te.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${te.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${te["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${te["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${te.columnSeparator}`]:t.columnSeparator},{[`& .${te.filterIcon}`]:t.filterIcon},{[`& .${te.iconSeparator}`]:t.iconSeparator},{[`& .${te.menuIcon}`]:t.menuIcon},{[`& .${te.menuIconButton}`]:t.menuIconButton},{[`& .${te.menuOpen}`]:t.menuOpen},{[`& .${te.menuList}`]:t.menuList},{[`& .${te["row--editable"]}`]:t["row--editable"]},{[`& .${te["row--editing"]}`]:t["row--editing"]},{[`& .${te["row--dragging"]}`]:t["row--dragging"]},{[`& .${te.row}`]:t.row},{[`& .${te.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${te.rowReorderCell}`]:t.rowReorderCell},{[`& .${te["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${te.sortIcon}`]:t.sortIcon},{[`& .${te.withBorder}`]:t.withBorder},{[`& .${te.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${te.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${te.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${te["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})(({theme:e})=>{const t=e.palette.mode==="light"?Ds(rt(e.palette.divider,1),.88):Ns(rt(e.palette.divider,1),.68);return k({flex:1,boxSizing:"border-box",position:"relative",border:`1px solid ${t}`,borderRadius:e.shape.borderRadius,color:e.palette.text.primary},e.typography.body2,{outline:"none",height:"100%",display:"flex",flexDirection:"column",[`&.${te.autoHeight}`]:{height:"auto",[`& .${te["row--lastVisible"]} .${te.cell}`]:{borderBottomColor:"transparent"}},[`& .${te["virtualScrollerContent--overflowed"]} .${te["row--lastVisible"]} .${te.cell}`]:{borderBottomColor:"transparent"},[`& .${te.columnHeader}, & .${te.cell}`]:{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"},[`& .${te.columnHeader}:focus-within, & .${te.cell}:focus-within`]:{outline:`solid ${rt(e.palette.primary.main,.5)} 1px`,outlineWidth:1,outlineOffset:-1},[`& .${te.columnHeader}:focus, & .${te.cell}:focus`]:{outline:`solid ${e.palette.primary.main} 1px`},[`& .${te.columnHeaderCheckbox}, & .${te.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${te.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${te["columnHeader--sorted"]} .${te.iconButtonContainer}, & .${te["columnHeader--filtered"]} .${te.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${te.columnHeader}:not(.${te["columnHeader--sorted"]}) .${te.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${te.columnHeader}:not(.${te["columnHeader--sorted"]}):hover .${te.sortIcon}`]:{opacity:.5},[`& .${te.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden"},[`& .${te.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${te["columnHeader--filledGroup"]} .${te.columnHeaderTitleContainer}`]:{borderBottom:`solid ${t} 1px`,boxSizing:"border-box"},[`& .${te["columnHeader--filledGroup"]}.${te["columnHeader--showColumnBorder"]} .${te.columnHeaderTitleContainer}`]:{borderBottom:"none"},[`& .${te["columnHeader--filledGroup"]}.${te["columnHeader--showColumnBorder"]}`]:{borderBottom:`solid ${t} 1px`,boxSizing:"border-box"},[`& .${te.sortIcon}, & .${te.filterIcon}`]:{fontSize:"inherit"},[`& .${te["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${te["columnHeader--alignCenter"]} .${te.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${te["columnHeader--alignRight"]} .${te.columnHeaderDraggableContainer}, & .${te["columnHeader--alignRight"]} .${te.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${te["columnHeader--alignCenter"]} .${te.menuIcon}, & .${te["columnHeader--alignRight"]} .${te.menuIcon}`]:{marginRight:"auto",marginLeft:-6},[`& .${te["columnHeader--alignRight"]} .${te.menuIcon}, & .${te["columnHeader--alignRight"]} .${te.menuIcon}`]:{marginRight:"auto",marginLeft:-10},[`& .${te["columnHeader--moving"]}`]:{backgroundColor:e.palette.action.hover},[`& .${te.columnSeparator}`]:{position:"absolute",zIndex:100,display:"flex",flexDirection:"column",justifyContent:"center",color:t},[`& .${te["columnSeparator--sideLeft"]}`]:{left:-12},[`& .${te["columnSeparator--sideRight"]}`]:{right:-12},[`& .${te["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none","&:hover":{color:e.palette.text.primary,"@media (hover: none)":{color:t}},[`&.${te["columnSeparator--resizing"]}`]:{color:e.palette.text.primary},"& svg":{pointerEvents:"none"}},[`& .${te.iconSeparator}`]:{color:"inherit"},[`& .${te.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-10,display:"flex",alignItems:"center"},[`& .${te.columnHeader}:hover`]:{[`& .${te.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${te.menuIcon}`]:{width:"auto",visibility:"visible"}},[`.${te.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${te.row}`]:{display:"flex",width:"fit-content",breakInside:"avoid","&:hover, &.Mui-hovered":{backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&.Mui-selected":{backgroundColor:rt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:rt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:rt(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`& .${te.cell}`]:{display:"flex",alignItems:"center",borderBottom:`1px solid ${t}`},[`& .${te.row}:not(.${te["row--dynamicHeight"]}) > .${te.cell}`]:{overflow:"hidden",whiteSpace:"nowrap"},[`& .${te.cellContent}`]:{overflow:"hidden",textOverflow:"ellipsis"},[`& .${te.cell}.${te["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:e.palette.background.paper,"&:focus-within":{outline:`solid ${e.palette.primary.main} 1px`,outlineOffset:"-1px"}},[`& .${te["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${te["row--editing"]} .${te.cell}`]:{boxShadow:e.shadows[0],backgroundColor:e.palette.background.paper},[`& .${te.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${te.booleanCell}[data-value="true"]`]:{color:e.palette.text.secondary},[`& .${te.booleanCell}[data-value="false"]`]:{color:e.palette.text.disabled},[`& .${te.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${te.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:e.palette.action.disabledOpacity},[`& .${te["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${te.rowReorderCellContainer}`]:{padding:0,alignItems:"stretch"},[`& .${te.withBorder}`]:{borderRight:`1px solid ${t}`},[`& .${te["cell--textLeft"]}`]:{justifyContent:"flex-start"},[`& .${te["cell--textRight"]}`]:{justifyContent:"flex-end"},[`& .${te["cell--textCenter"]}`]:{justifyContent:"center"},[`& .${te.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${te.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${te["columnHeader--dragging"]}, & .${te["row--dragging"]}`]:{background:e.palette.background.paper,padding:"0 12px",borderRadius:e.shape.borderRadius,opacity:e.palette.action.disabledOpacity},[`& .${te["row--dragging"]}`]:{background:e.palette.background.paper,padding:"0 12px",borderRadius:e.shape.borderRadius,opacity:e.palette.action.disabledOpacity,[`& .${te.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${te.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${te.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${te.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${te.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)}})}),Fie=["children","className"],Nie=e=>{const{autoHeight:t,density:n,classes:r}=e,o={root:["root",t&&"autoHeight",`root--density${fe(n)}`]};return _e(o,Lt,r)},Die=u.forwardRef(function(t,n){const r=Ye(),{children:o,className:i}=t,s=se(t,Fie),a=yt(),c=qe(a,Mr),d=qe(a,Vv),p=qe(a,goe),h=qe(a,Dx),m=u.useRef(null),v=Bt(m,n),b=qe(a,loe),g=k({},r,{density:p}),x=Nie(g);a.current.rootElementRef=m;const[C,S]=u.useState(!1);return vn(()=>{S(!0)},[]),vn(()=>{C&&a.current.unstable_updateGridDimensionsRef()},[a,C]),C?T.jsx(Aie,k({ref:v,className:me(i,x.root),ownerState:g,role:"grid","aria-colcount":c.length,"aria-rowcount":h+1+b+d,"aria-multiselectable":!r.disableMultipleSelection,"aria-label":r["aria-label"],"aria-labelledby":r["aria-labelledby"]},s,{children:o})):null}),Bie=["className"],zie=e=>{const{classes:t}=e;return _e({root:["footerContainer"]},Lt,t)},jie=ie("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:`1px solid ${e.palette.mode==="light"?Ds(rt(e.palette.divider,1),.88):Ns(rt(e.palette.divider,1),.68)}`})),Hie=u.forwardRef(function(t,n){const{className:r}=t,o=se(t,Bie),i=Ye(),s=zie(i);return T.jsx(jie,k({ref:n,className:me(s.root,r),ownerState:i},o))}),Vie=["className"],Uie=e=>{const{classes:t}=e;return _e({root:["overlay"]},Lt,t)},Wie=ie("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(e,t)=>t.overlay})(({theme:e})=>({position:"absolute",top:0,zIndex:4,width:"100%",height:"100%",pointerEvents:"none",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:rt(e.palette.background.default,e.palette.action.disabledOpacity)})),Gv=u.forwardRef(function(t,n){const{className:r}=t,o=se(t,Vie),i=Ye(),s=Uie(i);return T.jsx(Wie,k({ref:n,className:me(s.root,r),ownerState:i},o))}),Gie=["className"],Kie=e=>{const{classes:t}=e;return _e({root:["iconButtonContainer"]},Lt,t)},qie=ie("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),CL=u.forwardRef(function(t,n){const{className:r}=t,o=se(t,Gie),i=Ye(),s=Kie(i);return T.jsx(qie,k({ref:n,className:me(s.root,r),ownerState:i},o))}),Yie=e=>{const{classes:t}=e;return _e({icon:["sortIcon"]},Lt,t)};function Xie(e,t,n,r){let o;const i={};return t==="asc"?o=e.ColumnSortedAscendingIcon:t==="desc"?o=e.ColumnSortedDescendingIcon:(o=e.ColumnUnsortedIcon,i.sortingOrder=r),o?T.jsx(o,k({fontSize:"small",className:n},i)):null}function Qie(e){const{direction:t,index:n,sortingOrder:r}=e,o=yt(),i=Ye(),s=k({},e,{classes:i.classes}),a=Yie(s),c=Xie(i.components,t,a.icon,r);if(!c)return null;const d=T.jsx(ir,{tabIndex:-1,"aria-label":o.current.getLocaleText("columnHeaderSortIconLabel"),title:o.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",children:c});return T.jsxs(CL,{children:[n!=null&&T.jsx(BR,{badgeContent:n,color:"default",children:d}),n==null&&d]})}const Jie=u.memo(Qie),Zie=e=>{const{classes:t,open:n}=e;return _e({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},Lt,t)},ese=u.memo(e=>{const{column:t,open:n,columnMenuId:r,columnMenuButtonId:o,iconButtonRef:i}=e,s=yt(),a=Ye(),c=k({},e,{classes:a.classes}),d=Zie(c),p=u.useCallback(h=>{h.preventDefault(),h.stopPropagation(),s.current.toggleColumnMenu(t.field)},[s,t.field]);return T.jsx("div",{className:d.root,children:T.jsx(ir,{ref:i,tabIndex:-1,className:d.button,"aria-label":s.current.getLocaleText("columnMenuLabel"),title:s.current.getLocaleText("columnMenuLabel"),size:"small",onClick:p,"aria-expanded":n?"true":void 0,"aria-haspopup":"true","aria-controls":r,id:o,children:T.jsx(a.components.ColumnMenuIcon,{fontSize:"small"})})})});function tse({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:i,target:s,onExited:a}){const c=yt(),d=c.current.getColumn(o),p=u.useCallback(h=>{h.stopPropagation(),c.current.hideColumnMenu()},[c]);return s?T.jsx(wL,{placement:`bottom-${d.align==="right"?"start":"end"}`,open:i,target:s,onClickAway:p,onExited:a,children:T.jsx(n,k({currentColumn:d,hideMenu:p,open:i,id:e,labelledby:t},r))}):null}function nse(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function rse(e,t){return e.closest(`.${t}`)}function jx(e){return e.replace(/["\\]/g,"\\$&")}function ose(e,t){return e.querySelector(`[role="columnheader"][data-field="${jx(t)}"]`)}function xL(e){return`.${te.row}[data-id="${jx(String(e))}"]`}function ise(e,t){return e.querySelector(xL(t))}function sse(e,{id:t,field:n}){const r=xL(t),o=`.${te.cell}[data-field="${jx(n)}"]`,i=`${r} ${o}`;return e.querySelector(i)}const lse=["className"],ase=e=>{const{classes:t}=e;return _e({root:["columnHeaderTitle"]},Lt,t)},cse=ie("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})(({theme:e})=>({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:e.typography.fontWeightMedium})),use=u.forwardRef(function(t,n){const{className:r}=t,o=se(t,lse),i=Ye(),s=ase(i);return T.jsx(cse,k({ref:n,className:me(s.root,r),ownerState:i},o))});function dse(e){var t;const{label:n,description:r,columnWidth:o}=e,i=Ye(),s=u.useRef(null),[a,c]=u.useState("");return u.useEffect(()=>{if(!r&&s&&s.current){const d=nse(s.current);c(d?n:"")}},[s,o,r,n]),T.jsx(i.components.BaseTooltip,k({title:r||a},(t=i.componentsProps)==null?void 0:t.baseTooltip,{children:T.jsx(use,{ref:s,children:n})}))}const fse=["resizable","resizing","height","side"];var sw;(function(e){e.Left="left",e.Right="right"})(sw||(sw={}));const pse=e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,i={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${fe(o)}`],icon:["iconSeparator"]};return _e(i,Lt,r)};function hse(e){const{height:t,side:n=sw.Right}=e,r=se(e,fse),o=Ye(),i=k({},e,{side:n,classes:o.classes}),s=pse(i),a=u.useCallback(c=>{c.preventDefault(),c.stopPropagation()},[]);return T.jsx("div",k({className:s.root,style:{minHeight:t,opacity:o.showColumnRightBorder?0:1}},r,{onClick:a,children:T.jsx(o.components.ColumnResizeIcon,{className:s.icon})}))}const mse=u.memo(hse),gse=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","disableHeaderSeparator"],SL=u.forwardRef(function(t,n){const{classes:r,columnMenuOpen:o,colIndex:i,height:s,isResizing:a,sortDirection:c,hasFocus:d,tabIndex:p,separatorSide:h,isDraggable:m,headerComponent:v,description:b,width:g,columnMenuIconButton:x=null,columnMenu:C=null,columnTitleIconButtons:S=null,headerClassName:w,label:E,resizable:P,draggableContainerProps:_,columnHeaderSeparatorProps:I,disableHeaderSeparator:M}=t,O=se(t,gse),L=yt(),R=Ye(),H=u.useRef(null),[j,A]=u.useState(o),F=Bt(H,n);let B="none";return c!=null&&(B=c==="asc"?"ascending":"descending"),u.useEffect(()=>{j||A(o)},[j,o]),u.useLayoutEffect(()=>{const G=L.current.state.columnMenu;if(d&&!G.open){const z=H.current.querySelector('[tabindex="0"]')||H.current;z==null||z.focus(),L.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[L,d]),T.jsxs("div",k({ref:F,className:me(r.root,w),style:{height:s,width:g,minWidth:g,maxWidth:g},role:"columnheader",tabIndex:p,"aria-colindex":i+1,"aria-sort":B,"aria-label":v==null?E:void 0},O,{children:[T.jsxs("div",k({className:r.draggableContainer,draggable:m},_,{children:[T.jsxs("div",{className:r.titleContainer,children:[T.jsx("div",{className:r.titleContainerContent,children:v!==void 0?v:T.jsx(dse,{label:E,description:b,columnWidth:g})}),S]}),x]})),!M&&T.jsx(mse,k({resizable:!R.disableColumnResize&&!!P,resizing:a,height:s,side:h},I)),C]}))}),vse=e=>{const{column:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:i,filterItemsCounter:s}=e,a=o!=null,c=s!=null&&s>0,d=t.type==="number",p={root:["columnHeader",t.headerAlign==="left"&&"columnHeader--alignLeft",t.headerAlign==="center"&&"columnHeader--alignCenter",t.headerAlign==="right"&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",a&&"columnHeader--sorted",c&&"columnHeader--filtered",d&&"columnHeader--numeric",i&&"withBorder"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return _e(p,Lt,n)};function yse(e){var t,n,r,o,i;const{column:s,columnMenuOpen:a,colIndex:c,headerHeight:d,isResizing:p,isLastColumn:h,sortDirection:m,sortIndex:v,filterItemsCounter:b,hasFocus:g,tabIndex:x,extendRowFullWidth:C,disableReorder:S,separatorSide:w}=e,E=yt(),P=Ye(),_=u.useRef(null),I=Tn(),M=Tn(),O=u.useRef(null),[L,R]=u.useState(a),{hasScrollX:H,hasScrollY:j}=(t=E.current.getRootDimensions())!=null?t:{hasScrollX:!1,hasScrollY:!1},A=u.useMemo(()=>!P.disableColumnReorder&&!S&&!s.disableReorder,[P.disableColumnReorder,S,s.disableReorder]);let F;s.renderHeader&&(F=s.renderHeader(E.current.getColumnHeaderParams(s.field)));const G=h?!(h&&H&&!j)&&!C:P.showColumnRightBorder,N=k({},e,{classes:P.classes,showRightBorder:G}),z=vse(N),W=u.useCallback(we=>$e=>{$e.currentTarget.contains($e.target)&&E.current.publishEvent(we,E.current.getColumnHeaderParams(s.field),$e)},[E,s.field]),q=u.useMemo(()=>({onClick:W("columnHeaderClick"),onDoubleClick:W("columnHeaderDoubleClick"),onMouseOver:W("columnHeaderOver"),onMouseOut:W("columnHeaderOut"),onMouseEnter:W("columnHeaderEnter"),onMouseLeave:W("columnHeaderLeave"),onKeyDown:W("columnHeaderKeyDown"),onFocus:W("columnHeaderFocus"),onBlur:W("columnHeaderBlur")}),[W]),X=u.useMemo(()=>A?{onDragStart:W("columnHeaderDragStart"),onDragEnter:W("columnHeaderDragEnter"),onDragOver:W("columnHeaderDragOver"),onDragEnd:W("columnHeaderDragEnd")}:{},[A,W]),le=u.useMemo(()=>({onMouseDown:W("columnSeparatorMouseDown")}),[W]);u.useEffect(()=>{L||R(a)},[L,a]);const Q=u.useCallback(()=>{R(!1)},[]),ge=!P.disableColumnMenu&&!s.disableColumnMenu&&T.jsx(ese,{column:s,columnMenuId:I,columnMenuButtonId:M,open:L,iconButtonRef:O}),ee=T.jsx(tse,{columnMenuId:I,columnMenuButtonId:M,field:s.field,open:a,target:O.current,ContentComponent:P.components.ColumnMenu,contentComponentProps:(n=P.componentsProps)==null?void 0:n.columnMenu,onExited:Q}),ce=(r=s.sortingOrder)!=null?r:P.sortingOrder,oe=T.jsxs(u.Fragment,{children:[!P.disableColumnFilter&&T.jsx(P.components.ColumnHeaderFilterIconButton,k({field:s.field,counter:b},(o=P.componentsProps)==null?void 0:o.columnHeaderFilterIconButton)),s.sortable&&!s.hideSortIcons&&T.jsx(Jie,{direction:m,index:v,sortingOrder:ce})]});u.useLayoutEffect(()=>{const we=E.current.state.columnMenu;if(g&&!we.open){const Ve=_.current.querySelector('[tabindex="0"]')||_.current;Ve==null||Ve.focus(),E.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[E,g]);const de=typeof s.headerClassName=="function"?s.headerClassName({field:s.field,colDef:s}):s.headerClassName,be=(i=s.headerName)!=null?i:s.field;return T.jsx(SL,k({ref:_,classes:z,columnMenuOpen:a,colIndex:c,height:d,isResizing:p,sortDirection:m,hasFocus:g,tabIndex:x,separatorSide:w,isDraggable:A,headerComponent:F,description:s.description,elementId:s.field,width:s.computedWidth,columnMenuIconButton:ge,columnTitleIconButtons:oe,headerClassName:de,label:be,resizable:!P.disableColumnResize&&!!s.resizable,"data-field":s.field,columnMenu:ee,draggableContainerProps:X,columnHeaderSeparatorProps:le},q))}const fg=e=>e.preferencePanel;var Ul;(function(e){e.filters="filters",e.columns="columns"})(Ul||(Ul={}));const bse=e=>{const{classes:t}=e;return _e({icon:["filterIcon"]},Lt,t)};function wse(e){var t;const{counter:n,field:r,onClick:o}=e,i=yt(),s=Ye(),a=k({},e,{classes:s.classes}),c=bse(a),d=u.useCallback(h=>{h.preventDefault(),h.stopPropagation();const{open:m,openedPanelValue:v}=fg(i.current.state);m&&v===Ul.filters?i.current.hideFilterPanel():i.current.showFilterPanel(),o&&o(i.current.getColumnHeaderParams(r),h)},[i,r,o]);if(!n)return null;const p=T.jsx(ir,{onClick:d,color:"default","aria-label":i.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,children:T.jsx(s.components.ColumnFilteredIcon,{className:c.icon,fontSize:"small"})});return T.jsx(s.components.BaseTooltip,k({title:i.current.getLocaleText("columnHeaderFiltersTooltipActive")(n),enterDelay:1e3},(t=s.componentsProps)==null?void 0:t.baseTooltip,{children:T.jsxs(CL,{children:[n>1&&T.jsx(BR,{badgeContent:n,color:"default",children:p}),n===1&&p]})}))}const Cse=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","getValue","api"],xse=e=>{const{classes:t}=e;return _e({root:["checkboxInput"]},Lt,t)},Sse=u.forwardRef(function(t,n){var r;const{field:o,id:i,value:s,rowNode:a,hasFocus:c,tabIndex:d}=t,p=se(t,Cse),h=yt(),m=Ye(),v={classes:m.classes},b=xse(v),g=u.useRef(null),x=u.useRef(),C=Bt(g,n),S=h.current.getCellElement(i,o),w=I=>{const M={value:I.target.checked,id:i};h.current.publishEvent("rowSelectionCheckboxChange",M,I)};u.useLayoutEffect(()=>{d===0&&S&&(S.tabIndex=-1)},[S,d]),u.useEffect(()=>{if(c){var I;const M=(I=g.current)==null?void 0:I.querySelector("input");M==null||M.focus({preventScroll:!0})}else x.current&&x.current.stop({})},[c]);const E=u.useCallback(I=>{bL(I.key)&&I.stopPropagation(),mp(I.key)&&!I.shiftKey&&h.current.publishEvent("cellNavigationKeyDown",t,I)},[h,t]);if(a.position==="footer")return null;const P=h.current.isRowSelectable(i),_=h.current.getLocaleText(s?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return a.isPinned?null:T.jsx(m.components.BaseCheckbox,k({ref:C,tabIndex:d,checked:s,onChange:w,className:b.root,inputProps:{"aria-label":_},onKeyDown:E,disabled:!P,touchRippleRef:x},(r=m.componentsProps)==null?void 0:r.baseCheckbox,p))}),Ese=Sse,jo=e=>e.selection,kse=Ze(jo,e=>e.length),Pse=Ze(jo,ru,(e,t)=>new Map(e.map(n=>[n,t[n]]))),pg=Ze(jo,e=>e.reduce((t,n)=>(t[n]=n,t),{})),Wu=e=>e.pagination,jd=Ze(Wu,e=>e.page),uf=Ze(Wu,e=>e.pageSize);Ze(Wu,e=>e.pageCount);const Hx=Ze(Wu,wl,Ox,Ws,iL,(e,t,n,r,o)=>{const i=o.length,s=Math.min(e.pageSize*e.page,i-1),a=Math.min(s+e.pageSize-1,i-1);if(s===-1||a===-1)return null;if(n<2)return{firstRowIndex:s,lastRowIndex:a};const c=o[s],d=a-s+1,p=r.findIndex(v=>v.id===c.id);let h=p,m=0;for(;h<r.length&&m<=d;){const v=r[h],b=t[v.id].depth;(m<d||b>0)&&(h+=1),b===0&&(m+=1)}return{firstRowIndex:p,lastRowIndex:h-1}}),Ise=Ze(Ws,Hx,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),EL=Ze(cf,Hx,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),_se=["field","colDef"],$se=e=>{const{classes:t}=e;return _e({root:["checkboxInput"]},Lt,t)},Tse=u.forwardRef(function(t,n){var r;const o=se(t,_se),[,i]=u.useState(!1),s=yt(),a=Ye(),c={classes:a.classes},d=$se(c),p=qe(s,fL),h=qe(s,jo),m=qe(s,cf),v=qe(s,EL),b=u.useMemo(()=>typeof a.isRowSelectable!="function"?h:h.filter(M=>s.current.getRow(M)?a.isRowSelectable(s.current.getRowParams(M)):!1),[s,a.isRowSelectable,h]),g=u.useMemo(()=>(!a.pagination||!a.checkboxSelectionVisibleOnly?m:v).reduce((O,L)=>(O[L]=!0,O),{}),[a.pagination,a.checkboxSelectionVisibleOnly,v,m]),x=u.useMemo(()=>b.filter(M=>g[M]).length,[b,g]),C=x>0&&x<Object.keys(g).length,S=x>0,w=M=>{const O={value:M.target.checked};s.current.publishEvent("headerSelectionCheckboxChange",O)},E=p!==null&&p.field===t.field?0:-1;u.useLayoutEffect(()=>{const M=s.current.getColumnHeaderElement(t.field);E===0&&M&&(M.tabIndex=-1)},[E,s,t.field]);const P=u.useCallback(M=>{M.key===" "&&s.current.publishEvent("headerSelectionCheckboxChange",{value:!S}),mp(M.key)&&!M.shiftKey&&s.current.publishEvent("columnHeaderNavigationKeyDown",t,M)},[s,t,S]),_=u.useCallback(()=>{i(M=>!M)},[]);u.useEffect(()=>s.current.subscribeEvent("selectionChange",_),[s,_]);const I=s.current.getLocaleText(S?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return T.jsx(a.components.BaseCheckbox,k({ref:n,indeterminate:C,checked:S,onChange:w,className:d.root,inputProps:{"aria-label":I},tabIndex:E,onKeyDown:P},(r=a.componentsProps)==null?void 0:r.baseCheckbox,o))}),Mse=e=>{const{onClick:t}=e,n=yt(),r=Ye(),o=u.useCallback(i=>{t(i),n.current.showPreferences(Ul.columns)},[n,t]);return r.disableColumnSelector?null:T.jsx(ar,{onClick:o,children:n.current.getLocaleText("columnMenuShowColumns")})},Rse=e=>{const{column:t,onClick:n}=e,r=yt(),o=Ye(),i=u.useCallback(s=>{n(s),r.current.showFilterPanel(t==null?void 0:t.field)},[r,t==null?void 0:t.field,n]);return o.disableColumnFilter||!(t!=null&&t.filterable)?null:T.jsx(ar,{onClick:i,children:r.current.getLocaleText("columnMenuFilter")})},Ose=["hideMenu","currentColumn","open","id","labelledby","className","children"],Lse=u.forwardRef(function(t,n){const{hideMenu:r,open:o,id:i,labelledby:s,className:a,children:c}=t,d=se(t,Ose),p=u.useCallback(h=>{yL(h.key)&&h.preventDefault(),yie(h.key)&&r(h)},[r]);return T.jsx(Rv,k({id:i,ref:n,className:me(te.menuList,a),"aria-labelledby":s,onKeyDown:p,autoFocus:o},d,{children:c}))}),Ase=_i(["MUI: The `sortModel` can only contain a single item when the `disableMultipleColumnsSorting` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),kL=(e,t)=>t&&e.length>1?(Ase(),[e[0]]):e,S_=(e,t)=>n=>k({},n,{sorting:k({},n.sorting,{sortModel:kL(e,t)})}),Fse=e=>e==="desc",Nse=(e,t)=>{const n=t.current.getColumn(e.field);if(!n)return null;const r=Fse(e.sort)?(...i)=>-1*n.sortComparator(...i):n.sortComparator;return{getSortCellParams:i=>({id:i,field:n.field,rowNode:t.current.getRowNode(i),value:t.current.getCellValue(i,n.field),api:t.current}),comparator:r}},Dse=(e,t,n)=>e.reduce((r,o,i)=>{if(r!==0)return r;const s=t.params[i],a=n.params[i];return r=o.comparator(s.value,a.value,s,a),r},0),Bse=(e,t)=>{const n=e.map(r=>Nse(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(o=>({node:o,params:n.map(i=>i.getSortCellParams(o.id))})).sort((o,i)=>Dse(n,o,i)).map(o=>o.node.id)},E_=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},Vx=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,zse=new Intl.Collator,jse=(e,t)=>{const n=Vx(e,t);return n!==null?n:typeof e=="string"?zse.compare(e.toString(),t.toString()):e-t},PL=(e,t)=>{const n=Vx(e,t);return n!==null?n:Number(e)-Number(t)},IL=(e,t)=>{const n=Vx(e,t);return n!==null?n:e>t?1:e<t?-1:0};function Hse(e){return typeof e=="number"}function _L(e){return typeof e=="function"}function Vse(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch(e){return!1}}function hm(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const $u=(e,t,n)=>Math.max(t,Math.min(n,e));function Rs(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const o=e.length;if(o!==t.length)return!1;for(let i=0;i<o;i+=1)if(!Rs(e[i],t[i]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let i=0;i<o.length;i+=1)if(!t.has(o[i][0]))return!1;for(let i=0;i<o.length;i+=1){const s=o[i];if(!Rs(s[1],t.get(s[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let i=0;i<o.length;i+=1)if(!t.has(o[i][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const o=e.length;if(o!==t.length)return!1;for(let i=0;i<o;i+=1)if(e[i]!==t[i])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=n.length;if(r!==Object.keys(t).length)return!1;for(let o=0;o<r;o+=1)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;for(let o=0;o<r;o+=1){const i=n[o];if(!Rs(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Use(e){return()=>{let t=e+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}}function Wse(e,t,n){const r=Use(e);return()=>t+(n-t)*r()}function $L(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const Gse=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function TL(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,color:s,error:a,helperText:c,size:d,variant:p}=e,h=se(e,Gse),m={color:s,error:a,helperText:c,size:d,variant:p},[v,b]=u.useState(t.value||[]),g=Tn(),x=Ye();u.useEffect(()=>{var S;const w=(S=t.value)!=null?S:[];b(w.map(String))},[t.value]);const C=u.useCallback((S,w)=>{b(w.map(String)),n(k({},t,{value:[...w]}))},[n,t]);return T.jsx(ZC,k({multiple:!0,freeSolo:!0,options:[],filterOptions:(S,w)=>{const{inputValue:E}=w;return E==null||E===""?[]:[E]},id:g,value:v,onChange:C,renderTags:(S,w)=>S.map((E,P)=>T.jsx(xv,k({variant:"outlined",size:"small",label:E},w({index:P})))),renderInput:S=>{var w;return T.jsx(x.components.BaseTextField,k({},S,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:k({},S.InputLabelProps,{shrink:!0}),inputRef:i,type:r||"text"},m,(w=x.componentsProps)==null?void 0:w.baseTextField))}},h))}const Kse=e=>{if(!e)return null;const t=new RegExp(hm(e),"i");return({value:n})=>n!=null?t.test(n.toString()):!1},qse=(e=!1)=>[{value:"contains",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(hm(n),"i");return({value:o})=>o!=null?r.test(o.toString()):!1},InputComponent:Ui},{value:"equals",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return({value:o})=>o!=null?r.compare(n,o.toString())===0:!1},InputComponent:Ui},{value:"startsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${hm(n)}.*$`,"i");return({value:o})=>o!=null?r.test(o.toString()):!1},InputComponent:Ui},{value:"endsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${hm(n)}$`,"i");return({value:o})=>o!=null?r.test(o.toString()):!1},InputComponent:Ui},{value:"isEmpty",getApplyFilterFn:()=>({value:t})=>t===""||t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>({value:t})=>t!==""&&t!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:t=>{if(!Array.isArray(t.value)||t.value.length===0)return null;const n=e?t.value:t.value.map(o=>o.trim()),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return({value:o})=>o!=null?n.some(i=>r.compare(i,o.toString()||"")===0):!1},InputComponent:TL}],Wl={width:100,minWidth:50,maxWidth:1/0,hide:!1,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:jse,type:"string",align:"left",filterOperators:qse(),renderEditCell:uie,getApplyQuickFilterFn:Kse},Ux="actions",Yse=k({},Wl,{sortable:!1,filterable:!1,aggregable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:Mie,getApplyQuickFilterFn:void 0}),Xse=["item","applyValue","apiRef","focusElementRef"];function Qse(e){var t,n,r,o;const{item:i,applyValue:s,apiRef:a,focusElementRef:c}=e,d=se(e,Xse),[p,h]=u.useState(i.value||""),m=Ye(),b=(n=(((t=m.componentsProps)==null?void 0:t.baseSelect)||{}).native)!=null?n:!0,g=b?"option":ar,x=u.useCallback(C=>{const S=C.target.value;h(S),s(k({},i,{value:S}))},[s,i]);return u.useEffect(()=>{h(i.value||"")},[i.value]),T.jsxs(m.components.BaseTextField,k({label:a.current.getLocaleText("filterPanelInputLabel"),value:p,onChange:x,select:!0,variant:"standard",SelectProps:k({native:b,displayEmpty:!0},(r=m.componentsProps)==null?void 0:r.baseSelect),InputLabelProps:{shrink:!0},inputRef:c},d,(o=m.componentsProps)==null?void 0:o.baseTextField,{children:[T.jsx(g,{value:"",children:a.current.getLocaleText("filterValueAny")}),T.jsx(g,{value:"true",children:a.current.getLocaleText("filterValueTrue")}),T.jsx(g,{value:"false",children:a.current.getLocaleText("filterValueFalse")})]}))}const Jse=()=>[{value:"is",getApplyFilterFn:e=>{if(!e.value)return null;const t=e.value==="true";return({value:n})=>Boolean(n)===t},InputComponent:Qse}];function Zse({value:e,api:t}){return e?t.getLocaleText("booleanCellTrueLabel"):t.getLocaleText("booleanCellFalseLabel")}const ML=k({},Wl,{type:"boolean",align:"center",headerAlign:"center",renderCell:Loe,renderEditCell:Doe,sortComparator:PL,valueFormatter:Zse,filterOperators:Jse(),getApplyQuickFilterFn:void 0,aggregable:!1}),sl="__check__",gp=k({},ML,{field:sl,type:"checkboxSelection",width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,valueGetter:e=>pg(e.api.state,e.api.instanceId)[e.id]!==void 0,renderHeader:e=>T.jsx(Tse,k({},e)),renderCell:e=>T.jsx(Ese,k({},e))}),ele=["item","applyValue","type","apiRef","focusElementRef","InputProps"],tle=500;function Ec(e){var t,n;const{item:r,applyValue:o,type:i,apiRef:s,focusElementRef:a,InputProps:c}=e,d=se(e,ele),p=u.useRef(),[h,m]=u.useState((t=r.value)!=null?t:""),[v,b]=u.useState(!1),g=Tn(),x=Ye(),C=u.useCallback(S=>{const w=S.target.value;clearTimeout(p.current),m(String(w)),b(!0),p.current=setTimeout(()=>{o(k({},r,{value:w})),b(!1)},tle)},[o,r]);return u.useEffect(()=>()=>{clearTimeout(p.current)},[]),u.useEffect(()=>{var S;const w=(S=r.value)!=null?S:"";m(String(w))},[r.value]),T.jsx(x.components.BaseTextField,k({id:g,label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),value:h,onChange:C,variant:"standard",type:i||"text",InputLabelProps:{shrink:!0},inputRef:a,InputProps:k({},v?{endAdornment:T.jsx(Bx,{})}:{},c,{inputProps:k({max:i==="datetime-local"?"9999-12-31T23:59":"9999-12-31"},c==null?void 0:c.inputProps)})},d,(n=x.componentsProps)==null?void 0:n.baseTextField))}const nle=/(\d+)-(\d+)-(\d+)/,rle=/(\d+)-(\d+)-(\d+)T(\d+):(\d+)/;function kc(e,t,n,r){if(!e.value)return null;const[o,i,s,a,c]=e.value.match(n?rle:nle).slice(1).map(Number),d=new Date(o,i-1,s,a||0,c||0).getTime();return({value:p})=>{if(!p)return!1;const h=p instanceof Date?p:new Date(p.toString());if(r)return t(h.getTime(),d);const v=(p instanceof Date?new Date(h):h).setHours(n?h.getHours():0,n?h.getMinutes():0,0,0);return t(v,d)}}const RL=e=>[{value:"is",getApplyFilterFn:t=>kc(t,(n,r)=>n===r,e),InputComponent:Ec,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:t=>kc(t,(n,r)=>n!==r,e),InputComponent:Ec,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:t=>kc(t,(n,r)=>n>r,e),InputComponent:Ec,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:t=>kc(t,(n,r)=>n>=r,e),InputComponent:Ec,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:t=>kc(t,(n,r)=>n<r,e,!e),InputComponent:Ec,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFn:t=>kc(t,(n,r)=>n<=r,e),InputComponent:Ec,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:()=>({value:t})=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>({value:t})=>t!=null,requiresFilterValue:!1}];function ole({value:e}){return e instanceof Date?e.toLocaleDateString():e!=null?e:""}function ile({value:e}){return e instanceof Date?e.toLocaleString():e!=null?e:""}const sle=k({},Wl,{type:"date",sortComparator:IL,valueFormatter:ole,filterOperators:RL(),renderEditCell:pL,getApplyQuickFilterFn:void 0}),lle=k({},Wl,{type:"dateTime",sortComparator:IL,valueFormatter:ile,filterOperators:RL(!0),renderEditCell:pL,getApplyQuickFilterFn:void 0}),ul=e=>e==null?null:Number(e),ale=e=>e==null||Number.isNaN(e)||e===""?null:({value:t})=>ul(t)===ul(e),cle=()=>[{label:"=",value:"=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>ul(t)===e.value,InputComponent:Ui,InputComponentProps:{type:"number"}},{label:"!=",value:"!=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>ul(t)!==e.value,InputComponent:Ui,InputComponentProps:{type:"number"}},{label:">",value:">",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>t==null?!1:ul(t)>e.value,InputComponent:Ui,InputComponentProps:{type:"number"}},{label:">=",value:">=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>t==null?!1:ul(t)>=e.value,InputComponent:Ui,InputComponentProps:{type:"number"}},{label:"<",value:"<",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>t==null?!1:ul(t)<e.value,InputComponent:Ui,InputComponentProps:{type:"number"}},{label:"<=",value:"<=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>t==null?!1:ul(t)<=e.value,InputComponent:Ui,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFn:()=>({value:e})=>e==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>({value:e})=>e!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:e=>!Array.isArray(e.value)||e.value.length===0?null:({value:t})=>t!=null&&e.value.includes(Number(t)),InputComponent:TL,InputComponentProps:{type:"number"}}],ule=k({},Wl,{type:"number",align:"right",headerAlign:"right",sortComparator:PL,valueParser:e=>e===""?null:Number(e),valueFormatter:({value:e})=>Hse(e)?e.toLocaleString():e||"",filterOperators:cle(),getApplyQuickFilterFn:ale}),dle=["item","applyValue","type","apiRef","focusElementRef"],fle=({valueOptions:e,valueFormatter:t,field:n},r,o)=>(typeof e=="function"?["",...e({field:n})]:["",...e||[]]).map(s=>{const a=typeof s=="object",c=a?s.value:s,d=a?s.value:s,p=t&&s!==""?t({value:s,field:n,api:r}):s,h=a?s.label:p;return T.jsx(o,{value:d,children:h},c)});function k_(e){var t,n,r,o,i;const{item:s,applyValue:a,type:c,apiRef:d,focusElementRef:p}=e,h=se(e,dle),[m,v]=u.useState((t=s.value)!=null?t:""),b=Tn(),g=Ye(),C=(r=(((n=g.componentsProps)==null?void 0:n.baseSelect)||{}).native)!=null?r:!0,S=s.columnField?d.current.getColumn(s.columnField):null,w=u.useMemo(()=>{if(S!==null)return typeof S.valueOptions=="function"?S.valueOptions({field:S.field}):S.valueOptions},[S]),E=u.useCallback(P=>{let _=P.target.value;_=dg(_,w),v(String(_)),a(k({},s,{value:_}))},[a,s,w]);return u.useEffect(()=>{var P;let _;if(w!==void 0){if(_=dg(s.value,w),_!==s.value){a(k({},s,{value:_}));return}}else _=s.value;_=(P=_)!=null?P:"",v(String(_))},[s,w,a]),T.jsx(g.components.BaseTextField,k({id:b,label:d.current.getLocaleText("filterPanelInputLabel"),placeholder:d.current.getLocaleText("filterPanelInputPlaceholder"),value:m,onChange:E,variant:"standard",type:c||"text",InputLabelProps:{shrink:!0},inputRef:p,select:!0,SelectProps:k({native:C},(o=g.componentsProps)==null?void 0:o.baseSelect)},h,(i=g.componentsProps)==null?void 0:i.baseTextField,{children:fle(d.current.getColumn(s.columnField),d.current,C?"option":ar)}))}const ple=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"],hle=(e,t)=>Cl(e)===Cl(t),mle=TR();function gle(e){const{item:t,applyValue:n,apiRef:r,focusElementRef:o,color:i,error:s,helperText:a,size:c,variant:d="standard"}=e,p=se(e,ple),h={color:i,error:s,helperText:a,size:c,variant:d},m=Tn(),v=Ye(),b=t.columnField?r.current.getColumn(t.columnField):null,g=u.useMemo(()=>b!=null&&b.valueOptions?typeof b.valueOptions=="function"?b.valueOptions({field:b.field}):b.valueOptions:[],[b]),x=u.useMemo(()=>g==null?void 0:g.map(Cl),[g]),{valueFormatter:C,field:S}=r.current.getColumn(t.columnField),w=_=>typeof _=="object"?_.label:C&&_!==""?C({value:_,field:S,api:r.current}):_,E=u.useMemo(()=>Array.isArray(t.value)?g!==void 0?t.value.map(I=>{const M=Cl(I);return(x==null?void 0:x.findIndex(L=>L===M))||0}).filter(I=>I>=0).map(I=>g[I]):t.value:[],[t.value,g,x]);u.useEffect(()=>{(!Array.isArray(t.value)||E.length!==t.value.length)&&n(k({},t,{value:E.map(Cl)}))},[t,E,n]);const P=u.useCallback((_,I)=>{n(k({},t,{value:[...I.map(Cl)]}))},[n,t]);return T.jsx(ZC,k({multiple:!0,options:g,isOptionEqualToValue:hle,filterOptions:mle,id:m,value:E,onChange:P,renderTags:(_,I)=>_.map((M,O)=>T.jsx(xv,k({variant:"outlined",size:"small",label:w(M)},I({index:O})))),renderInput:_=>{var I;return T.jsx(v.components.BaseTextField,k({},_,{label:r.current.getLocaleText("filterPanelInputLabel"),placeholder:r.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:k({},_.InputLabelProps,{shrink:!0}),inputRef:o,type:"singleSelect"},h,(I=v.componentsProps)==null?void 0:I.baseTextField))}},p))}const dl=e=>e==null||typeof e!="object"?e:e.value,vle=(e,t,n)=>{if(!e)return null;const{valueOptions:r,valueFormatter:o,field:i}=t,s=[dl(e).toString()],a=typeof r=="function"?r({field:i}):r||[];return a&&a.forEach(c=>{let d,p;typeof c=="object"?(d=c.value,p=c.label):(d=c,o?p=o({value:c,field:i,api:n.current}):p=c),p.slice(0,e.length).toLowerCase()===e.toLowerCase()&&(s.includes(d)||s.push(d.toString()))}),({value:c})=>c!=null?s.includes(dl(c).toString()):!1},yle=()=>[{value:"is",getApplyFilterFn:e=>e.value==null||e.value===""?null:({value:t})=>dl(t)===dl(e.value),InputComponent:k_},{value:"not",getApplyFilterFn:e=>e.value==null||e.value===""?null:({value:t})=>dl(t)!==dl(e.value),InputComponent:k_},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(dl);return({value:n})=>t.includes(dl(n))},InputComponent:gle}],ble=k({},Wl,{type:"singleSelect",renderEditCell:Sie,filterOperators:yle(),getApplyQuickFilterFn:vle}),hg="__default__",wle=()=>({string:Wl,number:ule,date:sle,dateTime:lle,boolean:ML,singleSelect:ble,[Ux]:Yse,[hg]:Wl}),OL=["maxWidth","minWidth","width","flex"],LL=(e={})=>{const t=k({},wle());return Object.entries(e).forEach(([n,r])=>{t[n]?t[n]=k({},t[n],r):t[n]=k({},t[r.extendType||hg],r)}),t};function Cle({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r={all:{},frozenFields:[],freeze:i=>{const s=r.all[i];s&&s.frozen!==!0&&(r.all[i].frozen=!0,r.frozenFields.push(i))}};function o(){if(r.frozenFields.length===n.length)return;const i={min:{},max:{}};let s=e,a=t,c=0;r.frozenFields.forEach(d=>{s-=r.all[d].computedWidth,a-=r.all[d].flex});for(let d=0;d<n.length;d+=1){const p=n[d];if(r.all[p.field]&&r.all[p.field].frozen===!0)continue;let m=s/a*p.flex;m<p.minWidth?(c+=p.minWidth-m,m=p.minWidth,i.min[p.field]=!0):m>p.maxWidth&&(c+=p.maxWidth-m,m=p.maxWidth,i.max[p.field]=!0),r.all[p.field]={frozen:!1,computedWidth:m,flex:p.flex}}c<0?Object.keys(i.max).forEach(d=>{r.freeze(d)}):c>0?Object.keys(i.min).forEach(d=>{r.freeze(d)}):n.forEach(({field:d})=>{r.freeze(d)}),o()}return o(),r.all}const AL=(e,t)=>{const n={};let r=0,o=0;const i=[];e.all.forEach(a=>{const c=k({},e.lookup[a]);if(e.columnVisibilityModel[a]===!1)c.computedWidth=0;else{let d;c.flex&&c.flex>0?(r+=c.flex,d=0,i.push(c)):d=$u(c.width,c.minWidth,c.maxWidth),o+=d,c.computedWidth=d}n[a]=c});const s=Math.max(t-o,0);if(r>0&&t>0){const a=Cle({initialFreeSpace:s,totalFlexUnits:r,flexColumns:i});Object.keys(a).forEach(c=>{n[c].computedWidth=a[c].computedWidth})}return k({},e,{lookup:n})},xle=(e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,o=Object.keys(r);if(o.length===0&&n.length===0)return e;const i={},s=[];for(let p=0;p<n.length;p+=1){const h=n[p];e.lookup[h]&&(i[h]=!0,s.push(h))}const a=s.length===0?e.all:[...s,...e.all.filter(p=>!i[p])],c=k({},e.lookup);for(let p=0;p<o.length;p+=1){const h=o[p],m=k({},c[h],{hasBeenResized:!0});Object.entries(r[h]).forEach(([v,b])=>{m[v]=b===-1?1/0:b}),c[h]=m}return{all:a,lookup:c}},Sle=(e,t)=>!t||!e[t]?e[hg]:e[t],Rc=({apiRef:e,columnsToUpsert:t,initialState:n,columnTypes:r,currentColumnVisibilityModel:o=Is(e),shouldRegenColumnVisibilityModelFromColumns:i,keepOnlyColumnsToUpsert:s=!1})=>{var a,c,d,p;const h=!e.current.state.columns;let m;if(h)m={all:[],lookup:{}};else{const E=Ba(e.current.state);m={all:s?[]:[...E.all],lookup:k({},E.lookup)}}let v={};s&&!h&&(v=Object.keys(m.lookup).reduce((E,P)=>k({},E,{[P]:!1}),{}));const b={};t.forEach(E=>{const{field:P}=E;b[P]=!0,v[P]=!0;let _=m.lookup[P];_==null?(_=k({},Sle(r,E.type),{field:P,hasBeenResized:!1}),m.all.push(P)):s&&m.all.push(P);let I=_.hasBeenResized;OL.forEach(M=>{E[M]!==void 0&&(I=!0,E[M]===-1&&(E[M]=1/0))}),m.lookup[P]=k({},_,{hide:E.hide==null?!1:E.hide},E,{hasBeenResized:I})}),s&&!h&&Object.keys(m.lookup).forEach(E=>{v[E]||delete m.lookup[E]});const g=k({},m.lookup),x=e.current.unstable_applyPipeProcessors("hydrateColumns",m);let C={};if(i){let E=!1;const P=k({},o);h?x.all.forEach(_=>{P[_]=!m.lookup[_].hide}):s&&Object.keys(P).forEach(_=>{x.lookup[_]||(delete P[_],E=!0)}),x.all.forEach(_=>{if(!b[_]&&g[_]===x.lookup[_])return;let I=o[_];I===void 0&&(h?I=!0:I=!!Ba(e.current.state).lookup[_]);const M=!x.lookup[_].hide;M!==I&&(E=!0,P[_]=M)}),E||h?C=P:C=o}else C=o;const S=xle(x,n),w=k({},S,{columnVisibilityModel:C});return AL(w,(a=(c=(d=e.current).getRootDimensions)==null||(p=c.call(d))==null?void 0:p.viewportInnerSize.width)!=null?a:0)},P_=e=>t=>k({},t,{columns:e});function lw({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:r,visibleRows:o}){let i=e;for(let s=n;s<r;s+=1)if(o[s]){const c=o[s].id,d=t.current.unstable_getCellColSpanInfo(c,e);d&&d.spannedByColSpan&&(i=d.leftVisibleCellIndex)}return i}function Ele({firstColumnIndex:e,minColumnIndex:t,columnBuffer:n,firstRowToRender:r,lastRowToRender:o,apiRef:i,visibleRows:s}){const a=Math.max(e-n,t);return lw({firstColumnToRender:a,apiRef:i,firstRowToRender:r,lastRowToRender:o,visibleRows:s})}const kle=e=>{const{column:t,onClick:n}=e,r=yt(),o=Ye(),i=u.useRef(),c=Mr(r).filter(p=>p.disableColumnMenu!==!0).length===1,d=u.useCallback(p=>{c||(n(p),i.current=setTimeout(()=>{r.current.setColumnVisibility(t==null?void 0:t.field,!1)},100))},[r,t==null?void 0:t.field,n,c]);return u.useEffect(()=>()=>clearTimeout(i.current),[]),o.disableColumnSelector||t.hideable===!1?null:T.jsx(ar,{onClick:d,disabled:c,children:r.current.getLocaleText("columnMenuHideColumn")})};function Ple(e){var t;const{column:n,onClick:r}=e,o=yt(),i=qe(o,gi),s=Ye(),a=(t=n.sortingOrder)!=null?t:s.sortingOrder,c=u.useMemo(()=>{if(!n)return null;const p=i.find(h=>h.field===n.field);return p==null?void 0:p.sort},[n,i]),d=u.useCallback(p=>{r(p);const h=p.currentTarget.getAttribute("data-value")||null;o.current.sortColumn(n,h)},[o,n,r]);return!n||!n.sortable?null:T.jsxs(u.Fragment,{children:[a.includes(null)?T.jsx(ar,{onClick:d,disabled:c==null,children:o.current.getLocaleText("columnMenuUnsort")}):null,a.includes("asc")?T.jsx(ar,{onClick:d,"data-value":"asc",disabled:c==="asc",children:o.current.getLocaleText("columnMenuSortAsc")}):null,a.includes("desc")?T.jsx(ar,{onClick:d,"data-value":"desc",disabled:c==="desc",children:o.current.getLocaleText("columnMenuSortDesc")}):null]})}const Ile=u.forwardRef(function(t,n){const{hideMenu:r,currentColumn:o}=t,i=yt(),s=[T.jsx(Ple,{onClick:r,column:o}),T.jsx(Rse,{onClick:r,column:o}),T.jsx(kle,{onClick:r,column:o}),T.jsx(Mse,{onClick:r,column:o})],a=i.current.unstable_applyPipeProcessors("columnMenu",s,o);return T.jsx(Lse,k({ref:n},t,{children:a.map((c,d)=>u.cloneElement(c,{key:d,onClick:r,column:o}))}))}),_le=["className"],$le=e=>{const{classes:t}=e;return _e({root:["panelContent"]},Lt,t)},Tle=ie("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function FL(e){const{className:t}=e,n=se(e,_le),r=Ye(),o=$le(r);return T.jsx(Tle,k({className:me(t,o.root),ownerState:r},n))}const Mle=["className"],Rle=e=>{const{classes:t}=e;return _e({root:["panelFooter"]},Lt,t)},Ole=ie("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function NL(e){const{className:t}=e,n=se(e,Mle),r=Ye(),o=Rle(r);return T.jsx(Ole,k({className:me(t,o.root),ownerState:r},n))}const Lle=["className"],Ale=e=>{const{classes:t}=e;return _e({root:["panelHeader"]},Lt,t)},Fle=ie("div",{name:"MuiDataGrid",slot:"PanelHeader",overridesResolver:(e,t)=>t.panelHeader})(({theme:e})=>({padding:e.spacing(1)}));function Nle(e){const{className:t}=e,n=se(e,Lle),r=Ye(),o=Ale(r);return T.jsx(Fle,k({className:me(t,o.root),ownerState:r},n))}const Dle=["className","slotProps"],Ble=e=>{const{classes:t}=e;return _e({root:["panelWrapper"]},Lt,t)},zle=ie("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),jle=()=>!0,DL=u.forwardRef(function(t,n){const{className:r,slotProps:o={}}=t,i=se(t,Dle),s=Ye(),a=Ble(s);return T.jsx(bR,k({open:!0,disableEnforceFocus:!0,isEnabled:jle},o.TrapFocus,{children:T.jsx(zle,k({ref:n,tabIndex:-1,className:me(r,a.root),ownerState:s},i))}))}),Hle=!1,Vle=["sort","searchPredicate","autoFocusSearchField"],Ule=e=>{const{classes:t}=e;return _e({root:["columnsPanel"],columnsPanelRow:["columnsPanelRow"]},Lt,t)},Wle=ie("div",{name:"MuiDataGrid",slot:"ColumnsPanel",overridesResolver:(e,t)=>t.columnsPanel})({padding:"8px 0px 8px 8px"}),Gle=ie("div",{name:"MuiDataGrid",slot:"ColumnsPanelRow",overridesResolver:(e,t)=>t.columnsPanelRow})(({theme:e})=>({display:"flex",justifyContent:"space-between",padding:"1px 8px 1px 7px",[`& .${kr.root}`]:{marginRight:e.spacing(.5)}})),Kle=ie(ir)({justifyContent:"flex-end"}),I_=new Intl.Collator,qle=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1;function Yle(e){var t,n,r;const o=yt(),i=u.useRef(null),s=qe(o,ki),a=qe(o,Is),c=Ye(),[d,p]=u.useState(""),h=Ule(c),{sort:m,searchPredicate:v=qle,autoFocusSearchField:b=!0}=e,g=se(e,Vle),x=u.useMemo(()=>{switch(m){case"asc":return[...s].sort((M,O)=>I_.compare(M.headerName||M.field,O.headerName||O.field));case"desc":return[...s].sort((M,O)=>-I_.compare(M.headerName||M.field,O.headerName||O.field));default:return s}},[s,m]),C=M=>{const{name:O}=M.target;o.current.setColumnVisibility(O,a[O]===!1)},S=u.useCallback(M=>{if(o.current.unstable_caches.columns.isUsingColumnVisibilityModel){const O=Is(o),L=k({},O);return s.forEach(R=>{R.hideable&&(M?delete L[R.field]:L[R.field]=!1)}),o.current.setColumnVisibilityModel(L)}return o.current.updateColumns(s.map(O=>O.hideable!==!1?{field:O.field,hide:!M}:O))},[o,s]),w=u.useCallback(M=>{p(M.target.value)},[]),E=u.useMemo(()=>{if(!d)return x;const M=d.toLowerCase();return x.filter(O=>v(O,M))},[x,d,v]),P=u.useRef(null);u.useEffect(()=>{b?i.current.focus():P.current&&typeof P.current.focus=="function"&&P.current.focus()},[b]);let _=!1;const I=M=>_===!1&&M.hideable!==!1?(_=!0,!0):!1;return T.jsxs(DL,k({},g,{children:[T.jsx(Nle,{children:T.jsx(c.components.BaseTextField,k({label:o.current.getLocaleText("columnsPanelTextFieldLabel"),placeholder:o.current.getLocaleText("columnsPanelTextFieldPlaceholder"),inputRef:i,value:d,onChange:w,variant:"standard",fullWidth:!0},(t=c.componentsProps)==null?void 0:t.baseTextField))}),T.jsx(FL,{children:T.jsx(Wle,{className:h.root,ownerState:c,children:E.map(M=>{var O;return T.jsxs(Gle,{className:h.columnsPanelRow,ownerState:c,children:[T.jsx(XR,{control:T.jsx(c.components.BaseSwitch,k({disabled:M.hideable===!1,checked:a[M.field]!==!1,onClick:C,name:M.field,size:"small",inputRef:I(M)?P:void 0},(O=c.componentsProps)==null?void 0:O.baseSwitch)),label:M.headerName||M.field}),!c.disableColumnReorder&&Hle&&T.jsx(Kle,{draggable:!0,"aria-label":o.current.getLocaleText("columnsPanelDragIconLabel"),title:o.current.getLocaleText("columnsPanelDragIconLabel"),size:"small",disabled:!0,children:T.jsx(mL,{})})]},M.field)})})}),T.jsxs(NL,{children:[T.jsx(c.components.BaseButton,k({onClick:()=>S(!1)},(n=c.componentsProps)==null?void 0:n.baseButton,{children:o.current.getLocaleText("columnsPanelHideAllButton")})),T.jsx(c.components.BaseButton,k({onClick:()=>S(!0)},(r=c.componentsProps)==null?void 0:r.baseButton,{children:o.current.getLocaleText("columnsPanelShowAllButton")}))]})]}))}const Xle=["children","className","classes"],Qle=Ke("MuiDataGrid",["panel","paper"]),Jle=ie(Ka,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),Zle=ie(ii,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({backgroundColor:e.palette.background.paper,minWidth:300,maxHeight:450,display:"flex"})),eae=u.forwardRef((e,t)=>{var n;const{children:r,className:o}=e,i=se(e,Xle),s=yt(),a=Ye(),c=Qle,[d,p]=u.useState(!1),h=u.useCallback(()=>{s.current.hidePreferences()},[s]),m=u.useCallback(g=>{zx(g.key)&&s.current.hidePreferences()},[s]),v=u.useMemo(()=>[{name:"flip",enabled:!1},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{p(!0)},effect:()=>()=>{p(!1)}}],[]),b=(n=s.current.columnHeadersContainerElementRef)==null?void 0:n.current;return b?T.jsx(Jle,k({ref:t,placement:"bottom-start",className:me(o,c.panel),ownerState:a,anchorEl:b,modifiers:v},i,{children:T.jsx(yR,{mouseEvent:"onMouseUp",onClickAway:h,children:T.jsx(Zle,{className:c.paper,ownerState:a,elevation:8,onKeyDown:m,children:d&&r})})})):null}),tae=u.forwardRef(function(t,n){var r,o,i;const s=yt(),a=qe(s,ki),c=Ye(),d=qe(s,fg),p=s.current.unstable_applyPipeProcessors("preferencePanel",null,(r=d.openedPanelValue)!=null?r:Ul.filters);return T.jsx(c.components.Panel,k({ref:n,as:c.components.BasePopper,open:a.length>0&&d.open},(o=c.componentsProps)==null?void 0:o.panel,t,(i=c.componentsProps)==null?void 0:i.basePopper,{children:p}))}),nae=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","multiFilterOperator","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","linkOperators","columnsSort","deleteIconProps","linkOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","children"],rae=["InputComponentProps"],oae=e=>{const{classes:t}=e;return _e({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],linkOperatorInput:["filterFormLinkOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},Lt,t)},iae=ie("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),sae=ie(Ya,{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(e,t)=>t.filterFormDeleteIcon})(({theme:e})=>({flexShrink:0,justifyContent:"flex-end",marginRight:e.spacing(.5),marginBottom:e.spacing(.2)})),lae=ie(Ya,{name:"MuiDataGrid",slot:"FilterFormLinkOperatorInput",overridesResolver:(e,t)=>t.filterFormLinkOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),aae=ie(Ya,{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),cae=ie(Ya,{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:120}),uae=ie(Ya,{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),dae=e=>{switch(e){case Dr.And:return"filterPanelOperatorAnd";case Dr.Or:return"filterPanelOperatorOr";default:throw new Error("MUI: Invalid `linkOperator` property in the `GridFilterPanel`.")}},Td=e=>e.headerName||e.field,__=new Intl.Collator,fae=u.forwardRef(function(t,n){var r,o,i,s,a,c,d;const{item:p,hasMultipleFilters:h,deleteFilter:m,applyFilterChanges:v,multiFilterOperator:b,showMultiFilterOperators:g,disableMultiFilterOperator:x,applyMultiFilterOperatorChanges:C,focusElementRef:S,linkOperators:w=[Dr.And,Dr.Or],columnsSort:E,deleteIconProps:P={},linkOperatorInputProps:_={},operatorInputProps:I={},columnInputProps:M={},valueInputProps:O={}}=t,L=se(t,nae),R=yt(),H=qe(R,Nx),j=Tn(),A=Tn(),F=Tn(),B=Tn(),G=Ye(),N=oae(G),z=u.useRef(null),W=u.useRef(null),q=h&&w.length>0,X=((r=G.componentsProps)==null?void 0:r.baseFormControl)||{},Q=(i=(((o=G.componentsProps)==null?void 0:o.baseSelect)||{}).native)!=null?i:!0,ge=Q?"option":ar,{InputComponentProps:ee}=O,ce=se(O,rae),oe=u.useMemo(()=>{switch(E){case"asc":return H.sort((re,Ae)=>__.compare(Td(re),Td(Ae)));case"desc":return H.sort((re,Ae)=>-__.compare(Td(re),Td(Ae)));default:return H}},[H,E]),de=p.columnField?R.current.getColumn(p.columnField):null,be=u.useMemo(()=>{var re;return!p.operatorValue||!de?null:(re=de.filterOperators)==null?void 0:re.find(Ae=>Ae.value===p.operatorValue)},[p,de]),we=u.useCallback(re=>{const Ae=re.target.value,ve=R.current.getColumn(Ae);if(ve.field===de.field)return;const He=ve.filterOperators.find(ft=>ft.value===p.operatorValue)||ve.filterOperators[0],Xe=!He.InputComponent||He.InputComponent!==(be==null?void 0:be.InputComponent);v(k({},p,{columnField:Ae,operatorValue:He.value,value:Xe?void 0:p.value}))},[R,v,p,de,be]),$e=u.useCallback(re=>{const Ae=re.target.value,ve=de==null?void 0:de.filterOperators.find(Xe=>Xe.value===Ae),He=!(ve!=null&&ve.InputComponent)||(ve==null?void 0:ve.InputComponent)!==(be==null?void 0:be.InputComponent);v(k({},p,{operatorValue:Ae,value:He?void 0:p.value}))},[v,p,de,be]),Ve=u.useCallback(re=>{const Ae=re.target.value===Dr.And.toString()?Dr.And:Dr.Or;C(Ae)},[C]),De=()=>{G.disableMultipleColumnsFiltering?p.value===void 0?m(p):v(k({},p,{value:void 0})):m(p)};return u.useImperativeHandle(S,()=>({focus:()=>{if(be!=null&&be.InputComponent){var re;z==null||(re=z.current)==null||re.focus()}else W.current.focus()}}),[be]),T.jsxs(iae,k({ref:n,className:N.root,ownerState:G},L,{children:[T.jsx(sae,k({variant:"standard",as:G.components.BaseFormControl},X,P,{className:me(N.deleteIcon,X.className,P.className),ownerState:G,children:T.jsx(ir,{"aria-label":R.current.getLocaleText("filterPanelDeleteIconLabel"),title:R.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:De,size:"small",children:T.jsx(G.components.FilterPanelDeleteIcon,{fontSize:"small"})})})),T.jsx(lae,k({variant:"standard",as:G.components.BaseFormControl},X,_,{sx:k({display:q?"flex":"none",visibility:g?"visible":"hidden"},X.sx||{},_.sx||{}),className:me(N.linkOperatorInput,X.className,_.className),ownerState:G,children:T.jsx(G.components.BaseSelect,k({inputProps:{"aria-label":R.current.getLocaleText("filterPanelLinkOperator")},value:b,onChange:Ve,disabled:!!x||w.length===1,native:Q},(s=G.componentsProps)==null?void 0:s.baseSelect,{children:w.map(re=>T.jsx(ge,{value:re.toString(),children:R.current.getLocaleText(dae(re))},re.toString()))}))})),T.jsxs(aae,k({variant:"standard",as:G.components.BaseFormControl},X,M,{className:me(N.columnInput,X.className,M.className),ownerState:G,children:[T.jsx(jb,{htmlFor:j,id:A,children:R.current.getLocaleText("filterPanelColumns")}),T.jsx(G.components.BaseSelect,k({labelId:A,id:j,label:R.current.getLocaleText("filterPanelColumns"),value:p.columnField||"",onChange:we,native:Q},(a=G.componentsProps)==null?void 0:a.baseSelect,{children:oe.map(re=>T.jsx(ge,{value:re.field,children:Td(re)},re.field))}))]})),T.jsxs(cae,k({variant:"standard",as:G.components.BaseFormControl},X,I,{className:me(N.operatorInput,X.className,I.className),ownerState:G,children:[T.jsx(jb,{htmlFor:F,id:B,children:R.current.getLocaleText("filterPanelOperators")}),T.jsx(G.components.BaseSelect,k({labelId:B,label:R.current.getLocaleText("filterPanelOperators"),id:F,value:p.operatorValue,onChange:$e,native:Q,inputRef:W},(c=G.componentsProps)==null?void 0:c.baseSelect,{children:de==null||(d=de.filterOperators)==null?void 0:d.map(re=>T.jsx(ge,{value:re.value,children:re.label||R.current.getLocaleText(`filterOperator${fe(re.value)}`)},re.value))}))]})),T.jsx(uae,k({variant:"standard",as:G.components.BaseFormControl},X,ce,{className:me(N.valueInput,X.className,ce.className),ownerState:G,children:be!=null&&be.InputComponent?T.jsx(be.InputComponent,k({apiRef:R,item:p,applyValue:v,focusElementRef:z},be.InputComponentProps,ee)):null}))]}))}),pae=["linkOperators","columnsSort","filterFormProps","children"],hae=u.forwardRef(function(t,n){var r;const o=yt(),i=Ye(),s=qe(o,Gr),a=qe(o,Nx),c=u.useRef(null),{linkOperators:d=[Dr.And,Dr.Or],columnsSort:p,filterFormProps:h}=t,m=se(t,pae),v=u.useCallback(E=>{o.current.upsertFilterItem(E)},[o]),b=u.useCallback(E=>{o.current.setFilterLinkOperator(E)},[o]),g=u.useCallback(()=>{const E=a.find(P=>{var _;return(_=P.filterOperators)==null?void 0:_.length});return E?{columnField:E.field,operatorValue:E.filterOperators[0].value,id:Math.round(Math.random()*1e5)}:null},[a]),x=u.useMemo(()=>{if(s.items.length)return s.items;const E=g();return E?[E]:[]},[s.items,g]),C=x.length>1,S=()=>{const E=g();E&&o.current.upsertFilterItems([...x,E])},w=u.useCallback(E=>{const P=x.length===1;o.current.deleteFilterItem(E),P&&o.current.hideFilterPanel()},[o,x.length]);return u.useEffect(()=>{d.length>0&&s.linkOperator&&!d.includes(s.linkOperator)&&b(d[0])},[d,b,s.linkOperator]),u.useEffect(()=>{x.length>0&&c.current.focus()},[x.length]),T.jsxs(DL,k({ref:n},m,{children:[T.jsx(FL,{children:x.map((E,P)=>T.jsx(fae,k({item:E,applyFilterChanges:v,deleteFilter:w,hasMultipleFilters:C,showMultiFilterOperators:P>0,multiFilterOperator:s.linkOperator,disableMultiFilterOperator:P!==1,applyMultiFilterOperatorChanges:b,focusElementRef:P===x.length-1?c:null,linkOperators:d,columnsSort:p},h),E.id==null?P:E.id))}),!i.disableMultipleColumnsFiltering&&T.jsx(NL,{children:T.jsx(i.components.BaseButton,k({onClick:S,startIcon:T.jsx(hL,{})},(r=i.componentsProps)==null?void 0:r.baseButton,{children:o.current.getLocaleText("filterPanelAddFilter")}))})]}))}),mae=["hideMenu","options"],gae=["hideMenu","options"],vae=e=>{const t=yt(),{hideMenu:n,options:r}=e,o=se(e,mae);return T.jsx(ar,k({onClick:()=>{t.current.exportDataAsCsv(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))},yae=e=>{const t=yt(),{hideMenu:n,options:r}=e,o=se(e,gae);return T.jsx(ar,k({onClick:()=>{t.current.exportDataAsPrint(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))},Hf=()=>({items:[],linkOperator:Dr.And,quickFilterValues:[],quickFilterLogicOperator:Dr.And}),bae=["className","rowCount","visibleRowCount"],wae=e=>{const{classes:t}=e;return _e({root:["rowCount"]},Lt,t)},Cae=ie("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),xae=u.forwardRef(function(t,n){const{className:r,rowCount:o,visibleRowCount:i}=t,s=se(t,bae),a=yt(),c=Ye(),d=wae(c);if(o===0)return null;const p=i<o?a.current.getLocaleText("footerTotalVisibleRows")(i,o):o.toLocaleString();return T.jsxs(Cae,k({ref:n,className:me(d.root,r),ownerState:c},s,{children:[a.current.getLocaleText("footerTotalRows")," ",p]}))}),Sae=["className","selectedRowCount"],Eae=e=>{const{classes:t}=e;return _e({root:["selectedRowCount"]},Lt,t)},kae=ie("div",{name:"MuiDataGrid",slot:"SelectedRowCount",overridesResolver:(e,t)=>t.selectedRowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2),visibility:"hidden",width:0,height:0,[e.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}})),Pae=u.forwardRef(function(t,n){const{className:r,selectedRowCount:o}=t,i=se(t,Sae),s=yt(),a=Ye(),c=Eae(a),d=s.current.getLocaleText("footerRowSelected")(o);return T.jsx(kae,k({ref:n,className:me(c.root,r),ownerState:a},i,{children:d}))}),Iae=u.forwardRef(function(t,n){var r;const o=yt(),i=Ye(),s=qe(o,ooe),a=qe(o,kse),c=qe(o,lL),d=!i.hideFooterSelectedRowCount&&a>0?T.jsx(Pae,{selectedRowCount:a}):T.jsx("div",{}),p=!i.hideFooterRowCount&&!i.pagination?T.jsx(xae,{rowCount:s,visibleRowCount:c}):null,h=i.pagination&&!i.hideFooterPagination&&i.components.Pagination&&T.jsx(i.components.Pagination,k({},(r=i.componentsProps)==null?void 0:r.pagination));return T.jsxs(Hie,k({ref:n},t,{children:[d,p,h]}))}),_ae=u.forwardRef(function(t,n){var r,o;const i=Ye();return T.jsxs("div",k({ref:n},t,{children:[T.jsx(i.components.PreferencesPanel,k({},(r=i.componentsProps)==null?void 0:r.preferencesPanel)),i.components.Toolbar&&T.jsx(i.components.Toolbar,k({},(o=i.componentsProps)==null?void 0:o.toolbar))]}))}),$ae=u.forwardRef(function(t,n){return T.jsx(Gv,k({ref:n},t,{children:T.jsx(Bu,{})}))}),Tae=u.forwardRef(function(t,n){const o=yt().current.getLocaleText("noRowsLabel");return T.jsx(Gv,k({ref:n},t,{children:o}))}),Mae=ie(bee)(({theme:e})=>({[`& .${ka.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${ka.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),Rae=u.forwardRef(function(t,n){var r;const o=yt(),i=Ye(),s=qe(o,Wu),a=u.useMemo(()=>Math.floor(s.rowCount/(s.pageSize||1)),[s.rowCount,s.pageSize]),c=u.useCallback(p=>{const h=Number(p.target.value);o.current.setPageSize(h)},[o]),d=u.useCallback((p,h)=>{o.current.setPage(h)},[o]);return T.jsx(Mae,k({ref:n,component:"div",count:s.rowCount,page:s.page<=a?s.page:a,rowsPerPageOptions:(r=i.rowsPerPageOptions)!=null&&r.includes(s.pageSize)?i.rowsPerPageOptions:[],rowsPerPage:s.pageSize,onPageChange:d,onRowsPerPageChange:c},o.current.getLocaleText("MuiTablePagination"),t))}),Kv=(e,t)=>{let n,r;return t.pagination&&t.paginationMode==="client"?(r=Hx(e),n=Ise(e)):(n=Ws(e),n.length===0?r=null:r={firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:r}},Ja=(e,t)=>{const n=Kv(e,t);return u.useMemo(()=>({rows:n.rows,range:n.range}),[n.rows,n.range])},Wx="__detail_panel_toggle__",Oae=["selected","rowId","row","index","style","position","rowHeight","className","visibleColumns","renderedColumns","containerWidth","firstColumnToRender","lastColumnToRender","cellFocus","cellTabIndex","editRowsState","isLastVisible","onClick","onDoubleClick","onMouseEnter","onMouseLeave"],Lae=["changeReason"],Aae=e=>{const{editable:t,editing:n,selected:r,isLastVisible:o,rowHeight:i,classes:s}=e;return _e({root:["row",r&&"selected",t&&"row--editable",n&&"row--editing",o&&"row--lastVisible",i==="auto"&&"row--dynamicHeight"]},Lt,s)},Fae=({width:e})=>{if(!e)return null;const t={width:e};return T.jsx("div",{className:"MuiDataGrid-cell",style:t})},Nae=u.forwardRef(function(t,n){var r;const{selected:o,rowId:i,row:s,index:a,style:c,position:d,rowHeight:p,className:h,visibleColumns:m,renderedColumns:v,containerWidth:b,firstColumnToRender:g,cellFocus:x,cellTabIndex:C,editRowsState:S,isLastVisible:w=!1,onClick:E,onDoubleClick:P,onMouseEnter:_,onMouseLeave:I}=t,M=se(t,Oae),O=yt(),L=u.useRef(null),R=Ye(),H=Ja(O,R),j=qe(O,Uv),A=qe(O,gi),F=qe(O,Ox),B=qe(O,Dx),G=Bt(L,n),N=a+B+2,{hasScrollX:z,hasScrollY:W}=(r=O.current.getRootDimensions())!=null?r:{hasScrollX:!1,hasScrollY:!1},q={selected:o,isLastVisible:w,classes:R.classes,editing:O.current.getRowMode(i)===jt.Edit,editable:R.editMode===_r.Row,rowHeight:p},X=Aae(q);u.useLayoutEffect(()=>{p==="auto"&&L.current&&typeof ResizeObserver=="undefined"&&O.current.unstable_storeRowHeightMeasurement(i,L.current.clientHeight,d)},[O,p,i,d]),u.useLayoutEffect(()=>{if(H.range){const He=O.current.getRowIndexRelativeToVisibleRows(i);He!=null&&O.current.unstable_setLastMeasuredRowIndex(He)}const re=L.current;if(!re||p!=="auto"||typeof ResizeObserver=="undefined")return;const ve=new ResizeObserver(He=>{const[Xe]=He,ft=Xe.borderBoxSize&&Xe.borderBoxSize.length>0?Xe.borderBoxSize[0].blockSize:Xe.contentRect.height;O.current.unstable_storeRowHeightMeasurement(i,ft,d)});return ve.observe(re),()=>ve.disconnect()},[O,H.range,a,p,i,d]);const le=u.useCallback((re,Ae)=>ve=>{ve.target.nodeType===1&&!ve.currentTarget.contains(ve.target)||O.current.getRow(i)&&(O.current.publishEvent(re,O.current.getRowParams(i),ve),Ae&&Ae(ve))},[O,i]),Q=u.useCallback(re=>{const Ae=rse(re.target,te.cell),ve=Ae==null?void 0:Ae.getAttribute("data-field");ve&&(ve===gp.field||ve===Wx||ve==="__reorder__"||O.current.getCellMode(i,ve)===$t.Edit||O.current.getColumn(ve).type===Ux)||le("rowClick",E)(re)},[O,E,le,i]),ge=u.useCallback((re,Ae)=>{var ve;const He=O.current.getCellParams(i,re.field),Xe=[],ft=R.disableColumnReorder&&re.disableReorder||!R.rowReordering&&!!A.length&&F>1&&Object.keys(S).length>0;re.cellClassName&&Xe.push(me(typeof re.cellClassName=="function"?re.cellClassName(He):re.cellClassName));const ze=S[i]?S[i][re.field]:null;let pt=null;if(ze==null&&re.renderCell){var ot;pt=re.renderCell(k({},He,{api:O.current})),Xe.push(me(te["cell--withRenderer"],(ot=R.classes)==null?void 0:ot["cell--withRenderer"]))}if(ze!=null&&re.renderEditCell){var ct;let Ue=s;O.current.unstable_getRowWithUpdatedValues&&(Ue=O.current.unstable_getRowWithUpdatedValues(i,re.field));const ue=se(ze,Lae),J=k({},He,{row:Ue},ue,{api:O.current});pt=re.renderEditCell(J),Xe.push(me(te["cell--editing"],(ct=R.classes)==null?void 0:ct["cell--editing"]))}R.getCellClassName&&Xe.push(R.getCellClassName(He));const vt=x!==null&&x.id===i&&x.field===re.field,ut=C!==null&&C.id===i&&C.field===re.field&&He.cellMode==="view"?0:-1;return T.jsx(R.components.Cell,k({value:He.value,field:re.field,width:Ae.width,rowId:i,height:p,showRightBorder:Ae.showRightBorder,formattedValue:He.formattedValue,align:re.align||"left",cellMode:He.cellMode,colIndex:Ae.indexRelativeToAllColumns,isEditable:He.isEditable,hasFocus:vt,tabIndex:ut,className:me(Xe),colSpan:Ae.colSpan,disableDragEvents:ft},(ve=R.componentsProps)==null?void 0:ve.cell,{children:pt}),re.field)},[O,C,S,x,R,s,p,i,F,A.length]),ee=O.current.unstable_getRowInternalSizes(i);let ce=p;if(ce==="auto"&&ee){let re=0;const Ae=Object.entries(ee).reduce((ve,[He,Xe])=>/^base[A-Z]/.test(He)?(re+=1,Xe>ve?Xe:ve):ve,0);Ae>0&&re>1&&(ce=Ae)}const oe=k({},c,{maxHeight:p==="auto"?"none":p,minHeight:ce});if(ee!=null&&ee.spacingTop){const re=R.rowSpacingType==="border"?"borderTopWidth":"marginTop";oe[re]=ee.spacingTop}if(ee!=null&&ee.spacingBottom){const re=R.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let Ae=oe[re];typeof Ae!="number"&&(Ae=parseInt(Ae||"0",10)),Ae+=ee.spacingBottom,oe[re]=Ae}const de=O.current.unstable_applyPipeProcessors("rowClassName",[],i);if(typeof R.getRowClassName=="function"){var be;const re=a-(((be=H.range)==null?void 0:be.firstRowIndex)||0),Ae=k({},O.current.getRowParams(i),{isFirstVisible:re===0,isLastVisible:re===H.rows.length-1,indexRelativeToCurrentPage:re});de.push(R.getRowClassName(Ae))}const we=Wse(1e4,20,80),$e=[];for(let re=0;re<v.length;re+=1){const Ae=v[re],ve=g+re,He=ve===m.length-1,ft=He?!(He&&z&&!W)&&R.disableExtendRowFullWidth:R.showCellRightBorder,ze=O.current.unstable_getCellColSpanInfo(i,ve);if(ze&&!ze.spannedByColSpan)if(s){const{colSpan:pt,width:ot}=ze.cellProps,ct={width:ot,colSpan:pt,showRightBorder:ft,indexRelativeToAllColumns:ve};$e.push(ge(Ae,ct))}else{const{width:pt}=ze.cellProps,ot=Math.round(we());$e.push(T.jsx(R.components.SkeletonCell,{width:pt,contentWidth:ot,field:Ae.field,align:Ae.align},Ae.field))}}const Ve=b-j,De=s?{onClick:Q,onDoubleClick:le("rowDoubleClick",P),onMouseEnter:le("rowMouseEnter",_),onMouseLeave:le("rowMouseLeave",I)}:null;return T.jsxs("div",k({ref:G,"data-id":i,"data-rowindex":a,role:"row",className:me(...de,X.root,h),"aria-rowindex":N,"aria-selected":o,style:oe},De,M,{children:[$e,Ve>0&&T.jsx(Fae,{width:Ve})]}))}),$_=1e3;class Dae{constructor(t=$_){this.timeouts=new Map,this.cleanupTimeout=$_,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const o=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,o)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}}class Bae{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}var Gl;(function(e){e.DataGrid="DataGrid",e.DataGridPro="DataGridPro"})(Gl||(Gl={}));class zae{}function jae(e){let t=0;return function(r,o,i,s){e.registry===null&&(e.registry=typeof FinalizationRegistry!="undefined"?new Bae:new Dae);const[a]=u.useState(new zae),c=u.useRef(null),d=u.useRef();d.current=i;const p=u.useRef(null);if(!c.current&&d.current){const h=(m,v,b)=>{if(!v.defaultMuiPrevented){var g;(g=d.current)==null||g.call(d,m,v,b)}};c.current=r.current.subscribeEvent(o,h,s),t+=1,p.current={cleanupToken:t},e.registry.register(a,()=>{var m;(m=c.current)==null||m.call(c),c.current=null,p.current=null},p.current)}else!d.current&&c.current&&(c.current(),c.current=null,p.current&&(e.registry.unregister(p.current),p.current=null));u.useEffect(()=>{if(!c.current&&d.current){const h=(m,v,b)=>{if(!v.defaultMuiPrevented){var g;(g=d.current)==null||g.call(d,m,v,b)}};c.current=r.current.subscribeEvent(o,h,s)}return p.current&&e.registry&&(e.registry.unregister(p.current),p.current=null),()=>{var h;(h=c.current)==null||h.call(c),c.current=null}},[r,o,s])}}const Hae={registry:null},Ne=jae(Hae),Vae={isFirst:!0};function Ft(e,t,n){Ne(e,t,n,Vae)}const T_=1,Uae=1.5,Wae=e=>{const{scrollDirection:t,classes:n}=e,r={root:["scrollArea",`scrollArea--${t}`]};return _e(r,Lt,n)},Gae=ie("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(e,t)=>[{[`&.${te["scrollArea--left"]}`]:t["scrollArea--left"]},{[`&.${te["scrollArea--right"]}`]:t["scrollArea--right"]},t.scrollArea]})(()=>({position:"absolute",top:0,zIndex:101,width:20,bottom:0,[`&.${te["scrollArea--left"]}`]:{left:0},[`&.${te["scrollArea--right"]}`]:{right:0}}));function Kae(e){const{scrollDirection:t}=e,n=u.useRef(null),r=yt(),o=u.useRef(),[i,s]=u.useState(!1),a=qe(r,aL),c=u.useRef({left:0,top:0}),d=Ye(),p=k({},d,{scrollDirection:t}),h=Wae(p),m=u.useCallback(g=>{c.current=g},[]),v=u.useCallback(g=>{let x;if(t==="left")x=g.clientX-n.current.getBoundingClientRect().right;else if(t==="right")x=Math.max(1,g.clientX-n.current.getBoundingClientRect().left);else throw new Error("MUI: Wrong drag direction");x=(x-T_)*Uae+T_,clearTimeout(o.current),o.current=setTimeout(()=>{r.current.scroll({left:c.current.left+x,top:c.current.top})})},[t,r]);u.useEffect(()=>()=>{clearTimeout(o.current)},[]);const b=u.useCallback(()=>{s(g=>!g)},[]);return Ne(r,"rowsScroll",m),Ne(r,"columnHeaderDragStart",b),Ne(r,"columnHeaderDragEnd",b),i?T.jsx(Gae,{ref:n,className:me(h.root),ownerState:p,onDragOver:v,style:{height:a}}):null}const M_=u.memo(Kae),qae=({apiRef:e,props:t,children:n})=>T.jsx(tL.Provider,{value:t,children:T.jsx(eL.Provider,{value:e,children:n})}),Yae=Vse()&&window.localStorage.getItem("DEBUG")!=null,Hd=()=>{},Xae={debug:Hd,info:Hd,warn:Hd,error:Hd},R_=["debug","info","warn","error"];function O_(e,t,n=console){const r=R_.indexOf(t);if(r===-1)throw new Error(`MUI: Log level ${t} not recognized.`);return R_.reduce((i,s,a)=>(a>=r?i[s]=(...c)=>{const[d,...p]=c;n[s](`MUI: ${e} - ${d}`,...p)}:i[s]=Hd,i),{})}const Qae=(e,t)=>{e.current.getLogger=u.useCallback(n=>Yae?O_(n,"debug",t.logger):t.logLevel?O_(n,t.logLevel.toString(),t.logger):Xae,[t.logLevel,t.logger])};function Gt(e,t,n){const r=u.useRef(t),[o]=u.useState(Object.keys(t)),i=u.useCallback(()=>{e.current&&o.forEach(s=>{e.current.hasOwnProperty(s)||(e.current[s]=(...a)=>r.current[s](...a))})},[o,e]);u.useEffect(()=>{r.current=t},[t]),u.useEffect(()=>{i()},[i]),i()}class Jae{constructor(){this.maxListeners=10,this.warnOnce=!1,this.events={}}on(t,n,r={}){let o=this.events[t];o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),r.isFirst?o.highPriority.set(n,!0):o.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const o=Array.from(r.highPriority.keys()),i=Array.from(r.regular.keys());for(let s=o.length-1;s>=0;s-=1){const a=o[s];r.highPriority.has(a)&&a.apply(this,n)}for(let s=0;s<i.length;s+=1){const a=i[s];r.regular.has(a)&&a.apply(this,n)}}once(t,n){const r=this;this.on(t,function o(...i){r.removeListener(t,o),n.apply(r,i)})}}const Zae=e=>e.isPropagationStopped!==void 0;let L_=0;function ece(e,t){const n=u.useRef();n.current||(n.current={unstable_eventManager:new Jae,unstable_caches:{},state:{},instanceId:L_},L_+=1),u.useImperativeHandle(e,()=>n.current,[n]);const r=u.useCallback((...s)=>{const[a,c,d={}]=s;if(d.defaultMuiPrevented=!1,Zae(d)&&d.isPropagationStopped())return;const p=t.signature===Gl.DataGridPro?{api:n.current}:{};n.current.unstable_eventManager.emit(a,c,d,p)},[n,t.signature]),o=u.useCallback((s,a,c)=>{n.current.unstable_eventManager.on(s,a,c);const d=n.current;return()=>{d.unstable_eventManager.removeListener(s,a)}},[n]),i=u.useCallback(s=>{n.current.publishEvent("componentError",s)},[n]);return Gt(n,{subscribeEvent:o,publishEvent:r,showError:i}),u.useEffect(()=>{const s=n.current;return()=>{noe(s.instanceId),s.publishEvent("unmount")}},[n]),n}function tce(e,t){const n=u.useCallback(r=>{e.current.setState(o=>k({},o,{error:r}))},[e]);u.useEffect(()=>{t.error?n({error:t.error}):n(null)},[n,t.error]),Ne(e,"componentError",n)}const nce=(e,t)=>{const n=u.useCallback(r=>{if(t.localeText[r]==null)throw new Error(`Missing translation for key ${r}.`);return t.localeText[r]},[t.localeText]);e.current.getLocaleText=n};function Vf(e){return Vf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vf(e)}function rce(e,t){if(Vf(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Vf(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Uf(e){var t=rce(e,"string");return Vf(t)==="symbol"?t:String(t)}const oce=e=>{const t=u.useRef({}),n=u.useCallback(c=>{c&&Object.values(c.appliers).forEach(d=>{d()})},[]),r=u.useCallback((c,d,p)=>{t.current[c]||(t.current[c]={processors:new Map,appliers:{}});const h=t.current[c];return h.processors.get(d)!==p&&(h.processors.set(d,p),n(h)),()=>{t.current[c].processors.set(d,null)}},[n]),o=u.useCallback((c,d,p)=>(t.current[c]||(t.current[c]={processors:new Map,appliers:{}}),t.current[c].appliers[d]=p,()=>{const h=t.current[c].appliers,m=se(h,[d].map(Uf));t.current[c].appliers=m}),[]),i=u.useCallback(c=>{const d=t.current[c];n(d)},[n]),s=u.useCallback((...c)=>{const[d,p,h]=c;return t.current[d]?Array.from(t.current[d].processors.values()).reduce((v,b)=>b?b(v,h):v,p):p},[]);Gt(e,{unstable_registerPipeProcessor:r,unstable_registerPipeApplier:o,unstable_requestPipeProcessorsApplication:i,unstable_applyPipeProcessors:s})},vp=e=>{const t=u.useRef(!0);t.current&&(t.current=!1,e())},cr=(e,t,n)=>{const r=u.useRef(),o=u.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=u.useCallback(()=>{r.current=e.current.unstable_registerPipeProcessor(t,o.current,n)},[e,n,t]);vp(()=>{i()});const s=u.useRef(!0);u.useEffect(()=>(s.current?s.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},Gx=(e,t,n)=>{const r=u.useRef(),o=u.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=u.useCallback(()=>{r.current=e.current.unstable_registerPipeApplier(t,o.current,n)},[e,n,t]);vp(()=>{i()});const s=u.useRef(!0);u.useEffect(()=>(s.current?s.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},Kx=(e,t,n,r)=>{const o=u.useCallback(()=>{e.current.unstable_registerStrategyProcessor(t,n,r)},[e,r,n,t]);vp(()=>{o()});const i=u.useRef(!0);u.useEffect(()=>{i.current?i.current=!1:o()},[o])},yp="none",A_={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree"},ice=e=>{const t=u.useRef(new Map),n=u.useRef({}),r=u.useCallback((c,d,p)=>{const h=()=>{const b=n.current[d],g=se(b,[c].map(Uf));n.current[d]=g};n.current[d]||(n.current[d]={});const m=n.current[d],v=m[c];return m[c]=p,!v||v===p||c===e.current.unstable_getActiveStrategy(A_[d])&&e.current.publishEvent("activeStrategyProcessorChange",d),h},[e]),o=u.useCallback((c,d)=>{const p=e.current.unstable_getActiveStrategy(A_[c]);if(p==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const h=n.current[c];if(!h||!h[p])throw new Error(`No processor found for processor "${c}" on strategy "${p}"`);const m=h[p];return m(d)},[e]),i=u.useCallback(c=>{var d;const h=Array.from(t.current.entries()).find(([,m])=>m.group!==c?!1:m.isAvailable());return(d=h==null?void 0:h[0])!=null?d:yp},[]),s=u.useCallback((c,d,p)=>{t.current.set(d,{group:c,isAvailable:p}),e.current.publishEvent("strategyAvailabilityChange")},[e]);Gt(e,{unstable_registerStrategyProcessor:r,unstable_applyStrategyProcessor:o,unstable_getActiveStrategy:i,unstable_setStrategyAvailability:s})},sce=(e,t,n,r,o)=>{const i=qn(e,"useNativeEventListener"),[s,a]=u.useState(!1),c=u.useRef(r),d=u.useCallback(p=>c.current&&c.current(p),[]);u.useEffect(()=>{c.current=r},[r]),u.useEffect(()=>{let p;if(_L(t)?p=t():p=t&&t.current?t.current:null,p&&n&&!s){i.debug(`Binding native ${n} event`),p.addEventListener(n,d,o);const h=p;a(!0);const m=()=>{i.debug(`Clearing native ${n} event`),h.removeEventListener(n,d,o)};e.current.subscribeEvent("unmount",m)}},[t,d,n,s,i,o,e])},lce=["stateId"],ace=(e,t)=>{const n=u.useRef({}),[,r]=u.useState(),o=u.useCallback(d=>{const{stateId:p}=d,h=se(d,lce);n.current[p]=k({},h,{stateId:p})},[]),i=u.useCallback((d,p)=>{let h;if(_L(d)?h=d(e.current.state):h=d,e.current.state===h)return!1;let m=!1;const v=[];if(Object.keys(n.current).forEach(b=>{const g=n.current[b],x=g.stateSelector(e.current.state,e.current.instanceId),C=g.stateSelector(h,e.current.instanceId);C!==x&&(v.push({stateId:g.stateId,hasPropChanged:C!==g.propModel}),g.propModel!==void 0&&C!==g.propModel&&(m=!0))}),v.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${v[0].stateId}, therefore, you're not allowed to update ${v.map(b=>b.stateId).join(", ")} in the same transaction.`);if(m||(e.current.state=h,e.current.publishEvent&&e.current.publishEvent("stateChange",h)),v.length===1){const{stateId:b,hasPropChanged:g}=v[0],x=n.current[b],C=x.stateSelector(h,e.current.instanceId);if(x.propOnChange&&g){const S=t.signature===Gl.DataGridPro?{api:e.current,reason:p}:{reason:p};x.propOnChange(C,S)}m||e.current.publishEvent(x.changeEvent,C,{reason:p})}return!m},[e,t.signature]),s=u.useCallback((d,p,h)=>e.current.setState(m=>k({},m,{[d]:p(m[d])}),h),[e]),a=u.useCallback(()=>r(()=>e.current.state),[e]);Gt(e,{setState:i,forceUpdate:a,unstable_updateControlState:s,unstable_registerControlState:o})},cce=(e,t)=>{const n=ece(e,t);return Qae(n,t),tce(n,t),ace(n,t),oce(n),ice(n),nce(n,t),n},po=(e,t,n)=>{const r=u.useRef(!1);r.current||(t.current.state=e(t.current.state,n,t),r.current=!0)};function F_(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const n=document.createRange();n.selectNode(t);const r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}function uce(e){var t;return((t=window.getSelection())==null?void 0:t.toString())!==""?!0:e?(e.selectionEnd||0)-(e.selectionStart||0)>0:!1}const dce=e=>{const t=u.useCallback((o=!1)=>{if(e.current.getSelectedRows().size===0)return;const i=e.current.getDataAsCsv({includeHeaders:o,delimiter:" "});navigator.clipboard?navigator.clipboard.writeText(i).catch(()=>{F_(i)}):F_(i)},[e]),n=u.useCallback(o=>{const i=o.ctrlKey||o.metaKey||o.altKey;String.fromCharCode(o.keyCode)!=="C"||!i||uce(o.target)||e.current.unstable_copySelectedRowsToClipboard(o.altKey)},[e]);sce(e,e.current.rootElementRef,"keydown",n),Gt(e,{unstable_copySelectedRowsToClipboard:t})},BL=e=>e.columnMenu,fce=e=>k({},e,{columnMenu:{open:!1}}),pce=e=>{const t=qn(e,"useGridColumnMenu"),n=u.useCallback(a=>{e.current.setState(d=>d.columnMenu.open&&d.columnMenu.field===a?d:(t.debug("Opening Column Menu"),k({},d,{columnMenu:{open:!0,field:a}})))&&(e.current.hidePreferences(),e.current.forceUpdate())},[e,t]),r=u.useCallback(()=>{e.current.setState(c=>!c.columnMenu.open&&c.columnMenu.field===void 0?c:(t.debug("Hiding Column Menu"),k({},c,{columnMenu:k({},c.columnMenu,{open:!1,field:void 0})})))&&e.current.forceUpdate()},[e,t]),o=u.useCallback(a=>{t.debug("Toggle Column Menu");const c=BL(e.current.state);!c.open||c.field!==a?n(a):r()},[e,t,n,r]);Gt(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o});const s=u.useCallback((a,c)=>{if(!c.target.classList.contains(te.menuIconButton)||!c.relatedTarget)return;const d=c.relatedTarget.classList.contains(te.menuList),p=c.relatedTarget.getAttribute("role")==="menuitem";(d||p)&&e.current.setColumnHeaderFocus(a.field)},[e]);Ne(e,"columnResizeStart",r),Ne(e,"columnHeaderFocus",s),Ne(e,"virtualScrollerWheel",e.current.hideColumnMenu),Ne(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},hce=(e,t,n)=>{var r,o,i,s,a,c,d;const p=!!t.columnVisibilityModel||!!((r=t.initialState)!=null&&(o=r.columns)!=null&&o.columnVisibilityModel);n.current.unstable_caches.columns={isUsingColumnVisibilityModel:p};const h=LL(t.columnTypes),m=Rc({apiRef:n,columnTypes:h,columnsToUpsert:t.columns,initialState:(i=t.initialState)==null?void 0:i.columns,shouldRegenColumnVisibilityModelFromColumns:!p,currentColumnVisibilityModel:(s=(a=t.columnVisibilityModel)!=null?a:(c=t.initialState)==null||(d=c.columns)==null?void 0:d.columnVisibilityModel)!=null?s:{},keepOnlyColumnsToUpsert:!0});return k({},e,{columns:m})};function mce(e,t){var n,r;const o=qn(e,"useGridColumns"),i=u.useMemo(()=>LL(t.columnTypes),[t.columnTypes]),s=u.useRef(t.columns),a=u.useRef(i);e.current.unstable_registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:Is,changeEvent:"columnVisibilityModelChange"});const c=u.useCallback(j=>{o.debug("Updating columns state."),e.current.setState(P_(j)),e.current.forceUpdate(),e.current.publishEvent("columnsChange",j.all)},[o,e]),d=u.useCallback(j=>Uu(e)[j],[e]),p=u.useCallback(()=>ki(e),[e]),h=u.useCallback(()=>Mr(e),[e]),m=u.useCallback(()=>uoe(e),[e]),v=u.useCallback((j,A=!0)=>(A?Mr(e):ki(e)).findIndex(B=>B.field===j),[e]),b=u.useCallback(j=>{const A=v(j);return za(e)[A]},[e,v]),g=u.useCallback(j=>{Is(e)!==j&&(e.current.setState(F=>k({},F,{columns:Rc({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!1,currentColumnVisibilityModel:j,keepOnlyColumnsToUpsert:!1})})),e.current.forceUpdate())},[e,i]),x=u.useCallback(j=>{const A=Rc({apiRef:e,columnTypes:i,columnsToUpsert:j,initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!0,keepOnlyColumnsToUpsert:!1});c(A)},[e,c,i]),C=u.useCallback(j=>e.current.updateColumns([j]),[e]),S=u.useCallback((j,A)=>{if(e.current.unstable_caches.columns.isUsingColumnVisibilityModel){var F;const B=Is(e),G=(F=B[j])!=null?F:!0;if(A!==G){const N=k({},B,{[j]:A});e.current.setColumnVisibilityModel(N)}}else{const B=e.current.getColumn(j),G=k({},B,{hide:!A});e.current.updateColumns([G]);const N={field:j,colDef:G,isVisible:A};e.current.publishEvent("columnVisibilityChange",N)}},[e]),w=u.useCallback((j,A)=>{const F=_u(e),B=F.findIndex(W=>W===j);if(B===A)return;o.debug(`Moving column ${j} to index ${A}`);const G=[...F],N=G.splice(B,1)[0];G.splice(A,0,N),c(k({},Ba(e.current.state),{all:G}));const z={field:j,element:e.current.getColumnHeaderElement(j),colDef:e.current.getColumn(j),targetIndex:A,oldIndex:B};e.current.publishEvent("columnOrderChange",z)},[e,o,c]),E=u.useCallback((j,A)=>{o.debug(`Updating column ${j} width to ${A}`);const F=e.current.getColumn(j),B=k({},F,{width:A});e.current.updateColumns([B]),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(j),colDef:B,width:A})},[e,o]);Gt(e,{getColumn:d,getAllColumns:p,getColumnIndex:v,getColumnPosition:b,getVisibleColumns:h,getColumnsMeta:m,updateColumn:C,updateColumns:x,setColumnVisibilityModel:g,setColumnVisibility:S,setColumnIndex:w,setColumnWidth:E});const _=u.useCallback((j,A)=>{const F={};if(e.current.unstable_caches.columns.isUsingColumnVisibilityModel){var B,G,N;const q=Is(e);(!A.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys((B=(G=t.initialState)==null||(N=G.columns)==null?void 0:N.columnVisibilityModel)!=null?B:{}).length>0||Object.keys(q).length>0)&&(F.columnVisibilityModel=q)}F.orderedFields=_u(e);const z=ki(e),W={};return z.forEach(q=>{if(q.hasBeenResized){const X={};OL.forEach(le=>{let Q=q[le];Q===1/0&&(Q=-1),X[le]=Q}),W[q.field]=X}}),Object.keys(W).length>0&&(F.dimensions=W),k({},j,{columns:F})},[e,t.columnVisibilityModel,(n=t.initialState)==null?void 0:n.columns]),I=u.useCallback((j,A)=>{var F;const B=e.current.unstable_caches.columns.isUsingColumnVisibilityModel?(F=A.stateToRestore.columns)==null?void 0:F.columnVisibilityModel:void 0,G=A.stateToRestore.columns;if(B==null&&G==null)return j;const N=Rc({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:G,shouldRegenColumnVisibilityModelFromColumns:!e.current.unstable_caches.columns.isUsingColumnVisibilityModel,currentColumnVisibilityModel:B,keepOnlyColumnsToUpsert:!1});return e.current.setState(P_(N)),G!=null&&e.current.publishEvent("columnsChange",N.all),j},[e,i]),M=u.useCallback((j,A)=>{if(A===Ul.columns){var F;const B=t.components.ColumnsPanel;return T.jsx(B,k({},(F=t.componentsProps)==null?void 0:F.columnsPanel))}return j},[t.components.ColumnsPanel,(r=t.componentsProps)==null?void 0:r.columnsPanel]);cr(e,"exportState",_),cr(e,"restoreState",I),cr(e,"preferencePanel",M);const O=u.useRef(null);Ne(e,"viewportInnerSizeChange",j=>{O.current!==j.width&&(O.current=j.width,c(AL(Ba(e.current.state),j.width)))}),Ft(e,"columnVisibilityChange",t.onColumnVisibilityChange);const R=u.useCallback(()=>{o.info("Columns pipe processing have changed, regenerating the columns");const j=Rc({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!e.current.unstable_caches.columns.isUsingColumnVisibilityModel,keepOnlyColumnsToUpsert:!1});c(j)},[e,o,c,i]);Gx(e,"hydrateColumns",R);const H=u.useRef(!0);u.useEffect(()=>{if(H.current){H.current=!1;return}if(o.info(`GridColumns have changed, new length ${t.columns.length}`),s.current===t.columns&&a.current===i)return;const j=Rc({apiRef:e,columnTypes:i,initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!e.current.unstable_caches.columns.isUsingColumnVisibilityModel,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});s.current=t.columns,a.current=i,c(j)},[o,e,c,t.columns,i]),u.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,o,t.columnVisibilityModel])}const gce=e=>e.columnGrouping,zL=Ze(gce,e=>e.lookup),vce=["groupId","children"];function yce(e){return e.groupPath!==void 0}const jL=(e,t,n)=>{if(cL(e)){if(n[e.field]!==void 0)throw new Error(["MUI: columnGroupingModel contains duplicated field",`column field ${e.field} occurrs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join(`
|
|
330
|
+
`));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(i=>{jL(i,[...t,r],n)})},HL=e=>{if(!e)return{};const t={};return e.forEach(n=>{jL(n,[],t)}),t},qx=e=>{let t={};return e.forEach(n=>{if(cL(n))return;const{groupId:r,children:o}=n,i=se(n,vce);if(!r)throw new Error("MUI: An element of the columnGroupingModel does not have either `field` or `groupId`.");o||console.warn(`MUI: group groupId=${r} has no children.`);const s=k({},i,{groupId:r}),a=qx(o);if(a[r]!==void 0||t[r]!==void 0)throw new Error(`MUI: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=k({},t,a,{[r]:s})}),k({},t)},bce=(e,t)=>{var n;const r=qx((n=t.columnGroupingModel)!=null?n:[]);return k({},e,{columnGrouping:{lookup:r,groupCollapsedModel:{}}})},wce=(e,t)=>{var n;const r=u.useCallback(a=>{var c,d;return(c=(d=Uu(e)[a])==null?void 0:d.groupPath)!=null?c:[]},[e]),o=u.useCallback(()=>zL(e),[e]);Gt(e,{unstable_getColumnGroupPath:r,unstable_getAllGroupDetails:o});const s=u.useRef(!0);u.useEffect(()=>{var a,c;if(s.current){s.current=!1;return}if(!((a=t.experimentalFeatures)!=null&&a.columnGrouping))return;const d=qx((c=t.columnGroupingModel)!=null?c:[]);e.current.setState(p=>k({},p,{columnGrouping:k({},p.columnGrouping,{lookup:d})}))},[e,t.columnGroupingModel,(n=t.experimentalFeatures)==null?void 0:n.columnGrouping])},v1=.7,y1=1.3,VL=(e,t,n,r)=>{switch(e){case jf.Compact:return{value:e,headerHeight:Math.floor(t*v1),rowHeight:Math.floor(n*v1),headerGroupingMaxDepth:r,factor:v1};case jf.Comfortable:return{value:e,headerHeight:Math.floor(t*y1),rowHeight:Math.floor(n*y1),headerGroupingMaxDepth:r,factor:y1};default:return{value:e,headerHeight:t,rowHeight:n,headerGroupingMaxDepth:r,factor:1}}},Cce=(e,t)=>{let n;if(t.columnGroupingModel==null||Object.keys(t.columnGroupingModel).length===0)n=0;else{const r=HL(t.columnGroupingModel),o=e.columns,i=o.all.filter(s=>o.columnVisibilityModel[s]!==!1);i.length===0?n=0:n=Math.max(...i.map(s=>{var a,c;return(a=(c=r[s])==null?void 0:c.length)!=null?a:0}))}return k({},e,{density:VL(t.density,t.headerHeight,t.rowHeight,n)})},xce=(e,t)=>{const n=qe(e,Mr),r=n.length>0?Math.max(...n.map(a=>{var c,d;return(c=(d=a.groupPath)==null?void 0:d.length)!=null?c:0})):0,o=qn(e,"useDensity"),i=u.useCallback((a,c=t.headerHeight,d=t.rowHeight,p=r)=>{o.debug(`Set grid density to ${a}`),e.current.setState(h=>{const m=Qa(h),v=VL(a,c,d,p);return Rs(m,v)?h:k({},h,{density:v})}),e.current.forceUpdate()},[o,e,t.headerHeight,t.rowHeight,r]);u.useEffect(()=>{e.current.setDensity(t.density,t.headerHeight,t.rowHeight,r)},[e,t.density,t.rowHeight,t.headerHeight,r]),Gt(e,{setDensity:i})};function Sce(e,t="csv",n=document.title||"untitled"){const r=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const o=URL.createObjectURL(e),i=document.createElement("a");i.href=o,i.download=r,i.click(),setTimeout(()=>{URL.revokeObjectURL(o)});return}throw new Error("MUI: exportAs not supported")}const UL=(e,t)=>{if(typeof e=="string"){const n=e.replace(/"/g,'""');return[t,`
|
|
331
|
+
`,"\r"].some(r=>n.includes(r))?`"${n}"`:n}return e};_i(["MUI: When the value of a field is an object or a `renderCell` is provided, the CSV export might not display the value correctly.","You can provide a `valueFormatter` with a string representation to be used."]);const Ece=(e,t,n,r)=>t.map(o=>{const i=n(e,o.field);return UL(i.formattedValue,r)});function kce(e){const{columns:t,rowIds:n,getCellParams:r,delimiterCharacter:o,includeHeaders:i}=e,s=n.reduce((c,d)=>`${c}${Ece(d,t,r,o).join(o)}\r
|
|
332
|
+
`,"").trim();return i?`${`${t.filter(c=>c.field!==gp.field).map(c=>UL(c.headerName||c.field,o)).join(o)}\r
|
|
333
|
+
`}${s}`.trim():s}const WL=({apiRef:e,options:t})=>{const n=ki(e);return t.fields?t.fields.map(o=>n.find(i=>i.field===o)).filter(o=>!!o):(t.allColumns?n:Mr(e)).filter(o=>!o.disableExport)},Pce=({apiRef:e})=>{var t,n;const r=poe(e),o=wl(e),i=e.current.getSelectedRows(),s=r.filter(p=>{var h;return((h=o[p].position)!=null?h:"body")==="body"}),a=dp(e),c=(a==null||(t=a.top)==null?void 0:t.map(p=>p.id))||[],d=(a==null||(n=a.bottom)==null?void 0:n.map(p=>p.id))||[];return s.unshift(...c),s.push(...d),i.size>0?s.filter(p=>i.has(p)):s},Ice=e=>{const t=qn(e,"useGridCsvExport"),n=u.useCallback((s={})=>{var a,c;t.debug("Get data as CSV");const d=WL({apiRef:e,options:s}),h=((a=s.getRowsToExport)!=null?a:Pce)({apiRef:e});return kce({columns:d,rowIds:h,getCellParams:e.current.getCellParams,delimiterCharacter:s.delimiter||",",includeHeaders:(c=s.includeHeaders)!=null?c:!0})},[t,e]),r=u.useCallback(s=>{t.debug("Export data as CSV");const a=n(s),c=new Blob([s!=null&&s.utf8WithBom?new Uint8Array([239,187,191]):"",a],{type:"text/csv"});Sce(c,"csv",s==null?void 0:s.fileName)},[t,n]);Gt(e,{getDataAsCsv:n,exportDataAsCsv:r});const i=u.useCallback((s,a)=>{var c;return(c=a.csvOptions)!=null&&c.disableToolbarButton?s:[...s,{component:T.jsx(vae,{options:a.csvOptions}),componentName:"csvExport"}]},[]);cr(e,"exportMenu",i)},Wf=e=>e.rowsMeta;function _ce(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function $ce(){const e=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);return e?parseInt(e[2],10):null}const Tce=(e,t)=>{const n=qn(e,"useGridPrintExport"),r=u.useRef(null),o=u.useRef(null),i=u.useRef({});u.useEffect(()=>{r.current=gn(e.current.rootElementRef.current)},[e]);const s=u.useCallback((v,b)=>new Promise(g=>{if(!v&&!b){g();return}const x=WL({apiRef:e,options:{fields:v,allColumns:b}}).map(w=>w.field),C=ki(e),S={};C.forEach(w=>{S[w.field]=x.includes(w.field)}),e.current.setColumnVisibilityModel(S),g()}),[e]),a=u.useCallback(v=>{const b=document.createElement("iframe");return b.style.position="absolute",b.style.width="0px",b.style.height="0px",b.title=v||document.title,b},[]),c=u.useCallback((v,b)=>{var g,x;const C=k({copyStyles:!0,hideToolbar:!1,hideFooter:!1},b),S=v.contentDocument;if(!S)return;const w=hp(e),E=Wf(e.current.state),P=e.current.rootElementRef.current,_=P.cloneNode(!0),I=_.querySelector(`.${te.virtualScroller}`);I.style.height="auto",I.style.width="auto",I.parentElement.style.width="auto",I.parentElement.style.height="auto";const M=_.querySelector(`.${te.main}`);M.style.overflow="visible";const O=$ce();O&&O>=108&&(_.style.contain="size");const R=_.querySelector(`.${te.columnHeaders}`).querySelector(`.${te.columnHeadersInner}`);R.style.width="100%";let H=((g=P.querySelector(`.${te.toolbarContainer}`))==null?void 0:g.clientHeight)||0,j=((x=P.querySelector(`.${te.footerContainer}`))==null?void 0:x.clientHeight)||0;if(C.hideToolbar){var A;(A=_.querySelector(`.${te.toolbarContainer}`))==null||A.remove(),H=0}if(C.hideFooter){var F;(F=_.querySelector(`.${te.footerContainer}`))==null||F.remove(),j=0}_.style.height=`${E.currentPageTotalHeight+w+H+j}px`;const B=document.createElement("div");B.appendChild(_),S.body.innerHTML=B.innerHTML;const G=typeof C.pageStyle=="function"?C.pageStyle():C.pageStyle;if(typeof G=="string"){const N=S.createElement("style");N.appendChild(S.createTextNode(G)),S.head.appendChild(N)}if(C.bodyClassName&&S.body.classList.add(...C.bodyClassName.split(" ")),C.copyStyles){const N=r.current.querySelectorAll("style, link[rel='stylesheet']");for(let z=0;z<N.length;z+=1){const W=N[z];if(W.tagName==="STYLE"){const q=S.createElement(W.tagName),X=W.sheet;if(X){let le="";for(let Q=0;Q<X.cssRules.length;Q+=1)typeof X.cssRules[Q].cssText=="string"&&(le+=`${X.cssRules[Q].cssText}\r
|
|
334
|
+
`);q.appendChild(S.createTextNode(le)),S.head.appendChild(q)}}else if(W.getAttribute("href")){const q=S.createElement(W.tagName);for(let X=0;X<W.attributes.length;X+=1){const le=W.attributes[X];le&&q.setAttribute(le.nodeName,le.nodeValue||"")}S.head.appendChild(q)}}}v.contentWindow.print()},[e,r]),d=u.useCallback(v=>{var b,g;r.current.body.removeChild(v),e.current.restoreState(o.current||{}),(b=o.current)!=null&&(g=b.columns)!=null&&g.columnVisibilityModel||e.current.setColumnVisibilityModel(i.current),e.current.unstable_enableVirtualization(),o.current=null,i.current={}},[e]),h={exportDataAsPrint:u.useCallback(v=>it(void 0,null,function*(){if(n.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI: No grid root element available.");if(o.current=e.current.exportState(),i.current=Is(e),t.pagination){const g=sL(e);e.current.setPageSize(g)}yield s(v==null?void 0:v.fields,v==null?void 0:v.allColumns),e.current.unstable_disableVirtualization(),yield _ce();const b=a(v==null?void 0:v.fileName);b.onload=()=>{c(b,v),b.contentWindow.matchMedia("print").addEventListener("change",x=>{x.matches===!1&&d(b)})},r.current.body.appendChild(b)}),[t,n,e,a,c,d,s])};Gt(e,h);const m=u.useCallback((v,b)=>{var g;return(g=b.printOptions)!=null&&g.disableToolbarButton?v:[...v,{component:T.jsx(yae,{options:b.printOptions}),componentName:"printExport"}]},[]);cr(e,"exportMenu",m)},Mce=["rowsBeforePartialUpdates"];function Rce(e,t,n="A row was provided without id in the rows prop:"){if(e==null)throw new Error(["MUI: The data grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",n,JSON.stringify(t)].join(`
|
|
335
|
+
`))}const aw=(e,t,n)=>{const r=t?t(e):e.id;return Rce(r,e,n),r},mm=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:r,idRowsLookup:{},idToIdLookup:{},ids:[]};for(let i=0;i<e.length;i+=1){const s=e[i],a=aw(s,t);o.idRowsLookup[a]=s,o.idToIdLookup[a]=a,o.ids.push(a)}return o},GL=({apiRef:e,previousTree:t,rowCountProp:n,loadingProp:r})=>{const o=e.current.unstable_caches.rows,i=se(o,Mce),s=n!=null?n:0,a=e.current.unstable_applyStrategyProcessor("rowTreeCreation",k({},i,{previousTree:t})),c=e.current.unstable_applyPipeProcessors("hydrateRows",a),d=c.treeDepth===1?c.ids.length:Object.values(c.tree).filter(p=>p.parent==null&&!p.isPinned).length;return k({},c,{groupingResponseBeforeRowHydration:a,loading:r,totalRowCount:Math.max(s,c.ids.length),totalTopLevelRowCount:Math.max(s,d)})},KL=(e,t,n)=>{var r;const o=(r=e[t])==null?void 0:r.children;if(o==null)return[];const i=[];for(let s=0;s<o.length;s+=1){const a=o[s],c=e[a];(!n||!c.isAutoGenerated)&&i.push(a),i.push(...KL(e,c.id,n))}return i};function qL(e){var t,n;const r=dp(e),o=(r==null||(t=r.top)==null?void 0:t.reduce((s,a)=>(s+=e.current.unstable_getRowHeight(a.id),s),0))||0,i=(r==null||(n=r.bottom)==null?void 0:n.reduce((s,a)=>(s+=e.current.unstable_getRowHeight(a.id),s),0))||0;return{top:o,bottom:i}}const cw=(e,t)=>{const n=k({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operatorValue==null){const r=Uu(t)[n.columnField];n.operatorValue=r&&r.filterOperators[0].value}return n},Oce=_i(["MUI: The `filterModel` can only contain a single item when the `disableMultipleColumnsFiltering` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),Lce=_i("MUI: The 'id' field is required on `filterModel.items` when you use multiple filters.","error"),Ace=_i(["MUI: One of your filtering item have no `operatorValue` provided.","This property will become required on `@mui/x-data-grid@6.X`."]),YL=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?(Oce(),o=[e.items[0]]):o=e.items;const i=r&&o.some(a=>a.id==null),s=o.some(a=>a.operatorValue==null);return i&&Lce(),s&&Ace(),s||i?k({},e,{items:o.map(a=>cw(a,n))}):e.items!==o?k({},e,{items:o}):e},N_=(e,t,n)=>r=>k({},r,{filterModel:YL(e,t,n)}),XL=(e,t)=>{if(!e.columnField||!e.operatorValue)return null;const n=t.current.getColumn(e.columnField);if(!n)return null;let r;if(n.valueParser){var o;const p=n.valueParser;r=Array.isArray(e.value)?(o=e.value)==null?void 0:o.map(h=>p(h)):p(e.value)}else r=e.value;const i=k({},e,{value:r}),s=n.filterOperators;if(!(s!=null&&s.length))throw new Error(`MUI: No filter operators found for column '${n.field}'.`);const a=s.find(p=>p.value===i.operatorValue);if(!a)throw new Error(`MUI: No filter operator found for column '${n.field}' and operator value '${i.operatorValue}'.`);const c=a.getApplyFilterFn(i,n);return typeof c!="function"?null:{fn:p=>{const h=t.current.getCellParams(p,i.columnField);return c(h)},item:i}},Fce=(e,t)=>{const{items:n}=e,r=n.map(o=>XL(o,t)).filter(o=>!!o);return r.length===0?null:(o,i)=>{const s={};return(i?r.filter(c=>i(c.item.columnField)):r).forEach(c=>{s[c.item.id]=c.fn(o)}),s}},Nce=(e,t)=>{const{quickFilterValues:n=[]}=e;if(n.length===0)return null;const r=_u(t),o={};r.forEach(s=>{const a=t.current.getColumn(s),c=a==null?void 0:a.getApplyQuickFilterFn;c&&(o[s]=n.map(d=>c(d,a,t)))});const i=n.filter((s,a)=>Object.keys(o).some(c=>o[c][a]!=null));return i.length===0?null:(s,a)=>{const c={},d=[];Object.keys(o).forEach(h=>{(!a||a(h))&&(c[h]=t.current.getCellParams(s,h),d.push(h))});const p={};return i.forEach((h,m)=>{const v=d.some(b=>{var g,x;return o[b][m]==null?!1:(g=(x=o[b])[m])==null?void 0:g.call(x,c[b])});p[h]=v}),p}},Dce=(e,t)=>{const n=Fce(e,t),r=Nce(e,t);return(o,i)=>({passingFilterItems:n&&n(o,i),passingQuickFilterValues:r&&r(o,i)})},Bce=(e,t,n,r)=>{var o,i;const s=n.items.filter(h=>XL(h,r)!==null),a=e.filter(h=>h!=null),c=t.filter(h=>h!=null),d=(o=n.quickFilterLogicOperator)!=null?o:Hf().quickFilterLogicOperator,p=(i=n.linkOperator)!=null?i:Hf().linkOperator;if(a.length>0){const h=m=>a.some(v=>v[m.id]);if(p===Dr.And){if(!s.every(h))return!1}else if(!s.some(h))return!1}if(c.length>0&&n.quickFilterValues!=null){const h=m=>c.some(v=>v[m]);if(d===Dr.And){if(!n.quickFilterValues.every(h))return!1}else if(!n.quickFilterValues.some(h))return!1}return!0},zce=(e,t,n)=>{var r,o,i,s;const a=(r=(o=t.filterModel)!=null?o:(i=t.initialState)==null||(s=i.filter)==null?void 0:s.filterModel)!=null?r:Hf();return k({},e,{filter:{filterModel:YL(a,t.disableMultipleColumnsFiltering,n),visibleRowsLookup:{},filteredDescendantCountLookup:{}}})},jce=(e,t)=>{var n,r,o;const i=qn(e,"useGridFilter");e.current.unstable_registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:Gr,changeEvent:"filterModelChange"});const s=u.useCallback(()=>{e.current.setState(M=>{const O=Gr(M,e.current.instanceId),L=t.filterMode===ou.client?Dce(O,e):null,R=e.current.unstable_applyStrategyProcessor("filtering",{isRowMatchingFilters:L,filterModel:O!=null?O:Hf()});return k({},M,{filter:k({},M.filter,R)})}),e.current.publishEvent("filteredRowsSet")},[t.filterMode,e]),a=u.useCallback(()=>{s(),e.current.forceUpdate()},[e,s]),c=u.useCallback(M=>{const O=Gr(e),L=[...O.items],R=L.findIndex(H=>H.id===M.id);R===-1?L.push(M):L[R]=M,e.current.setFilterModel(k({},O,{items:L}),"upsertFilterItem")},[e]),d=u.useCallback(M=>{const O=Gr(e),L=[...O.items];M.forEach(R=>{const H=M.findIndex(j=>j.id===R.id);H===-1?L.push(R):L[H]=R}),e.current.setFilterModel(k({},O,{items:M}),"upsertFilterItems")},[e]),p=u.useCallback(M=>{const O=Gr(e),L=O.items.filter(R=>R.id!==M.id);L.length!==O.items.length&&e.current.setFilterModel(k({},O,{items:L}),"deleteFilterItem")},[e]),h=u.useCallback(M=>{if(i.debug("Displaying filter panel"),M){const O=Gr(e),L=O.items.filter(j=>{var A;if(j.value!==void 0)return!0;const B=(A=e.current.getColumn(j.columnField).filterOperators)==null?void 0:A.find(N=>N.value===j.operatorValue);return!(typeof(B==null?void 0:B.requiresFilterValue)=="undefined"?!0:B==null?void 0:B.requiresFilterValue)});let R;L.find(j=>j.columnField===M)?R=L:t.disableMultipleColumnsFiltering?R=[cw({columnField:M},e)]:R=[...L,cw({columnField:M},e)],e.current.setFilterModel(k({},O,{items:R}))}e.current.showPreferences(Ul.filters)},[e,i,t.disableMultipleColumnsFiltering]),m=u.useCallback(()=>{i.debug("Hiding filter panel"),e.current.hidePreferences()},[e,i]),v=u.useCallback(M=>{const O=Gr(e);O.linkOperator!==M&&e.current.setFilterModel(k({},O,{linkOperator:M}),"changeLogicOperator")},[e]),b=u.useCallback(M=>{const O=Gr(e);Rs(O.quickFilterValues,M)||e.current.setFilterModel(k({},O,{quickFilterValues:[...M]}))},[e]),g=u.useCallback((M,O)=>{Gr(e)!==M&&(i.debug("Setting filter model"),e.current.unstable_updateControlState("filter",N_(M,t.disableMultipleColumnsFiltering,e),O),e.current.unstable_applyFilters())},[e,i,t.disableMultipleColumnsFiltering]),x=u.useCallback(()=>{const M=Ws(e);return new Map(M.map(O=>[O.id,O.model]))},[e]);Gt(e,{setFilterLinkOperator:v,unstable_applyFilters:a,deleteFilterItem:p,upsertFilterItem:c,upsertFilterItems:d,setFilterModel:g,showFilterPanel:h,hideFilterPanel:m,getVisibleRowModels:x,setQuickFilterValues:b});const S=u.useCallback((M,O)=>{var L,R;const H=Gr(e);return!O.exportOnlyDirtyModels||t.filterModel!=null||((L=t.initialState)==null||(R=L.filter)==null?void 0:R.filterModel)!=null||!Rs(H,Hf())?k({},M,{filter:{filterModel:H}}):M},[e,t.filterModel,(n=t.initialState)==null||(r=n.filter)==null?void 0:r.filterModel]),w=u.useCallback((M,O)=>{var L;const R=(L=O.stateToRestore.filter)==null?void 0:L.filterModel;return R==null?M:(e.current.unstable_updateControlState("filter",N_(R,t.disableMultipleColumnsFiltering,e),"restoreState"),k({},M,{callbacks:[...M.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),E=u.useCallback((M,O)=>{if(O===Ul.filters){var L;const R=t.components.FilterPanel;return T.jsx(R,k({},(L=t.componentsProps)==null?void 0:L.filterPanel))}return M},[t.components.FilterPanel,(o=t.componentsProps)==null?void 0:o.filterPanel]),P=u.useCallback(M=>{if(t.filterMode===ou.client&&M.isRowMatchingFilters){const O=ba(e),L={};for(let R=0;R<O.length;R+=1){const H=O[R];let j;if(typeof H=="string"&&H.startsWith("auto-generated-group-footer"))j=!0;else{const{passingFilterItems:A,passingQuickFilterValues:F}=M.isRowMatchingFilters(H);j=Bce([A],[F],M.filterModel,e)}L[H]=j}return{filteredRowsLookup:L,visibleRowsLookup:L,filteredDescendantCountLookup:{}}}return{visibleRowsLookup:{},filteredRowsLookup:{},filteredDescendantCountLookup:{}}},[e,t.filterMode]);cr(e,"exportState",S),cr(e,"restoreState",w),cr(e,"preferencePanel",E),Kx(e,yp,"filtering",P);const _=u.useCallback(()=>{i.debug("onColUpdated - GridColumns changed, applying filters");const M=Gr(e),O=coe(e),L=M.items.filter(R=>R.columnField&&O[R.columnField]);L.length<M.items.length&&e.current.setFilterModel(k({},M,{items:L}))},[e,i]),I=u.useCallback(M=>{M==="filtering"&&e.current.unstable_applyFilters()},[e]);Ne(e,"rowsSet",s),Ne(e,"rowExpansionChange",e.current.unstable_applyFilters),Ne(e,"columnsChange",_),Ne(e,"activeStrategyProcessorChange",I),vp(()=>{e.current.unstable_applyFilters()}),u.useEffect(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,i,t.filterModel])},Hce=e=>k({},e,{focus:{cell:null,columnHeader:null},tabIndex:{cell:null,columnHeader:null}}),Vce=(e,t)=>{const n=qn(e,"useGridFocus"),r=u.useRef(null),o=u.useCallback((x,C)=>{x&&e.current.getRow(x.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(x.id,x.field),C)},[e]),i=u.useCallback((x,C)=>{const S=wi(e);(S==null?void 0:S.id)===x&&(S==null?void 0:S.field)===C||(e.current.setState(w=>(n.debug(`Focusing on cell with id=${x} and field=${C}`),k({},w,{tabIndex:{cell:{id:x,field:C},columnHeader:null},focus:{cell:{id:x,field:C},columnHeader:null}}))),e.current.forceUpdate(),e.current.getRow(x)&&(S&&o(S,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(x,C))))},[e,n,o]),s=u.useCallback((x,C={})=>{const S=wi(e);o(S,C),e.current.setState(w=>(n.debug(`Focusing on column header with colIndex=${x}`),k({},w,{tabIndex:{columnHeader:{field:x},cell:null},focus:{columnHeader:{field:x},cell:null}}))),e.current.forceUpdate()},[e,n,o]),a=u.useCallback((x,C,S)=>{let w=e.current.getColumnIndex(C),E=e.current.getRowIndexRelativeToVisibleRows(x);const P=Mr(e);S==="right"?w+=1:S==="left"?w-=1:E+=1;const _=Kv(e,{pagination:t.pagination,paginationMode:t.paginationMode});w>=P.length?(E+=1,E<_.rows.length&&(w=0)):w<0&&(E-=1,E>=0&&(w=P.length-1)),E=$u(E,0,_.rows.length-1);const I=_.rows[E],M=e.current.unstable_getCellColSpanInfo(I.id,w);M&&M.spannedByColSpan&&(S==="left"||S==="below"?w=M.leftVisibleCellIndex:S==="right"&&(w=M.rightVisibleCellIndex)),w=$u(w,0,P.length-1);const O=P[w];e.current.setCellFocus(I.id,O.field)},[e,t.pagination,t.paginationMode]),c=u.useCallback(({id:x,field:C})=>{e.current.setCellFocus(x,C)},[e]),d=u.useCallback((x,C)=>{C.key==="Enter"||C.key==="Tab"||mp(C.key)||e.current.setCellFocus(x.id,x.field)},[e]),p=u.useCallback(({field:x},C)=>{C.target===C.currentTarget&&e.current.setColumnHeaderFocus(x,C)},[e]),h=u.useCallback(()=>{n.debug("Clearing focus"),e.current.setState(x=>k({},x,{focus:{cell:null,columnHeader:null}}))},[n,e]),m=u.useCallback(x=>{r.current=x},[]),v=u.useCallback(x=>{const C=r.current;r.current=null;const S=wi(e);if(!S){C&&e.current.setCellFocus(C.id,C.field);return}if((C==null?void 0:C.id)===S.id&&(C==null?void 0:C.field)===S.field)return;const w=e.current.getCellElement(S.id,S.field);w!=null&&w.contains(x.target)||(C?e.current.setCellFocus(C.id,C.field):(e.current.setState(E=>k({},E,{focus:{cell:null,columnHeader:null}})),e.current.forceUpdate(),o(S,x)))},[e,o]),b=u.useCallback(x=>{if(x.cellMode==="view")return;const C=wi(e);((C==null?void 0:C.id)!==x.id||(C==null?void 0:C.field)!==x.field)&&e.current.setCellFocus(x.id,x.field)},[e]),g=u.useCallback(()=>{const x=wi(e);x&&!e.current.getRow(x.id)&&e.current.setState(C=>k({},C,{focus:{cell:null,columnHeader:null}}))},[e]);Gt(e,{setCellFocus:i,setColumnHeaderFocus:s,unstable_moveFocusToRelativeCell:a}),u.useEffect(()=>{const x=gn(e.current.rootElementRef.current);return x.addEventListener("click",v),()=>{x.removeEventListener("click",v)}},[e,v]),Ne(e,"columnHeaderBlur",h),Ne(e,"cellDoubleClick",c),Ne(e,"cellMouseDown",m),Ne(e,"cellKeyDown",d),Ne(e,"cellModeChange",b),Ne(e,"columnHeaderFocus",p),Ne(e,"rowsSet",g)};function Uce(e,t){const n=dp(e)||{};return[...n.top||[],...t,...n.bottom||[]]}const Wce=(e,t)=>{const n=qn(e,"useGridKeyboardNavigation"),r=Ja(e,t).rows,o=u.useMemo(()=>Uce(e,r),[e,r]),i=u.useCallback((h,m,v="left")=>{const b=Ws(e),g=e.current.unstable_getCellColSpanInfo(m,h);g&&g.spannedByColSpan&&(v==="left"?h=g.leftVisibleCellIndex:v==="right"&&(h=g.rightVisibleCellIndex));const x=b.findIndex(S=>S.id===m);n.debug(`Navigating to cell row ${x}, col ${h}`),e.current.scrollToIndexes({colIndex:h,rowIndex:x});const C=e.current.getVisibleColumns()[h].field;e.current.setCellFocus(m,C)},[e,n]),s=u.useCallback((h,m)=>{n.debug(`Navigating to header col ${h}`),e.current.scrollToIndexes({colIndex:h});const v=e.current.getVisibleColumns()[h].field;e.current.setColumnHeaderFocus(v,m)},[e,n]),a=u.useCallback(h=>o[h].id,[o]),c=u.useCallback((h,m)=>{const v=e.current.getRootDimensions();if(o.length===0||!v)return;const b=e.current.unstable_getViewportPageSize(),g=h.field?e.current.getColumnIndex(h.field):0,x=o.findIndex(_=>_.id===h.id),C=0,S=o.length-1,w=0,E=Mr(e).length-1;let P=!0;switch(m.key){case"ArrowDown":case"Enter":{x<S&&i(g,a(x+1));break}case"ArrowUp":{x>C?i(g,a(x-1)):s(g,m);break}case"ArrowRight":{g<E&&i(g+1,a(x),"right");break}case"ArrowLeft":{g>w&&i(g-1,a(x));break}case"Tab":{m.shiftKey&&g>w?i(g-1,a(x),"left"):!m.shiftKey&&g<E&&i(g+1,a(x),"right");break}case" ":{if(h.field===Wx)break;const I=h.colDef;if(I&&I.type==="treeDataGroup")break;!m.shiftKey&&x<S&&i(g,a(Math.min(x+b,S)));break}case"PageDown":{x<S&&i(g,a(Math.min(x+b,S)));break}case"PageUp":{const _=Math.max(x-b,C);_!==x&&_>=C?i(g,a(_)):s(g,m);break}case"Home":{m.ctrlKey||m.metaKey||m.shiftKey?i(w,a(C)):i(w,a(x));break}case"End":{m.ctrlKey||m.metaKey||m.shiftKey?i(E,a(S)):i(E,a(x));break}default:P=!1}P&&m.preventDefault()},[e,o,i,s,a]),d=u.useCallback((h,m)=>{const v=m.currentTarget.querySelector(`.${te.columnHeaderTitleContainerContent}`);if(!!v&&v.contains(m.target)&&h.field!==gp.field||!e.current.getRootDimensions())return;const x=e.current.unstable_getViewportPageSize(),C=h.field?e.current.getColumnIndex(h.field):0,S=0,w=o.length-1,E=0,P=Mr(e).length-1;let _=!0;switch(m.key){case"ArrowDown":{i(C,a(S));break}case"ArrowRight":{C<P&&s(C+1,m);break}case"ArrowLeft":{C>E&&s(C-1,m);break}case"PageDown":{w!==null&&i(C,a(Math.min(S+x,w)));break}case"Home":{s(E,m);break}case"End":{s(P,m);break}case"Enter":{(m.ctrlKey||m.metaKey)&&e.current.toggleColumnMenu(h.field);break}case" ":break;default:_=!1}_&&m.preventDefault()},[e,o,i,s,a]),p=u.useCallback((h,m)=>{if(!m.currentTarget.contains(m.target))return;const v=e.current.getCellParams(h.id,h.field);v.cellMode!==$t.Edit&&mp(m.key)&&e.current.publishEvent("cellNavigationKeyDown",v,m)},[e]);Ne(e,"cellNavigationKeyDown",c),Ne(e,"columnHeaderKeyDown",d),Ne(e,"cellKeyDown",p)},QL=e=>e?0:100,D_=e=>t=>k({},t,{pagination:k({},t.pagination,{pageSize:e})}),Gce=(e,t)=>{var n,r;const o=qn(e,"useGridPageSize"),i=qe(e,pp);e.current.unstable_registerControlState({stateId:"pageSize",propModel:t.pageSize,propOnChange:t.onPageSizeChange,stateSelector:uf,changeEvent:"pageSizeChange"});const a={setPageSize:u.useCallback(h=>{h!==uf(e)&&(o.debug(`Setting page size to ${h}`),e.current.setState(D_(h)),e.current.forceUpdate())},[e,o])};Gt(e,a);const c=u.useCallback((h,m)=>{var v,b;const g=uf(e);return!m.exportOnlyDirtyModels||t.pageSize!=null||((v=t.initialState)==null||(b=v.pagination)==null?void 0:b.pageSize)!=null||g!==QL(t.autoPageSize)?k({},h,{pagination:k({},h.pagination,{pageSize:g})}):h},[e,t.pageSize,(n=t.initialState)==null||(r=n.pagination)==null?void 0:r.pageSize,t.autoPageSize]),d=u.useCallback((h,m)=>{var v;const b=(v=m.stateToRestore.pagination)==null?void 0:v.pageSize;return b!=null&&e.current.setState(D_(b)),h},[e]);cr(e,"exportState",c),cr(e,"restoreState",d);const p=u.useCallback(()=>{const h=e.current.getRootDimensions();if(!t.autoPageSize||!h)return;const m=qL(e),v=Math.floor((h.viewportInnerSize.height-m.top-m.bottom)/i);e.current.setPageSize(v)},[e,t.autoPageSize,i]);Ne(e,"viewportInnerSizeChange",p),u.useEffect(()=>{t.pageSize!=null&&!t.autoPageSize&&e.current.setPageSize(t.pageSize)},[e,t.autoPageSize,t.pageSize]),u.useEffect(()=>{p()},[p])},uw=(e,t)=>t>0&&e>0?Math.ceil(e/t):0,dw=e=>e.pageCount?k({},e,{page:Math.max(Math.min(e.page,e.pageCount-1),0)}):e,B_=e=>t=>k({},t,{pagination:dw(k({},t.pagination,{page:e}))});_i(["MUI: the 'rowCount' prop is undefined while using paginationMode='server'","For more detail, see http://mui.com/components/data-grid/pagination/#basic-implementation"],"error");const Kce=(e,t)=>{var n,r;const o=qn(e,"useGridPage"),i=qe(e,lL);e.current.unstable_registerControlState({stateId:"page",propModel:t.page,propOnChange:t.onPageChange,stateSelector:jd,changeEvent:"pageChange"});const a={setPage:u.useCallback(m=>{o.debug(`Setting page to ${m}`),e.current.setState(B_(m)),e.current.forceUpdate()},[e,o])};Gt(e,a);const c=u.useCallback((m,v)=>{var b,g;const x=jd(e);return!v.exportOnlyDirtyModels||t.page!=null||((b=t.initialState)==null||(g=b.pagination)==null?void 0:g.page)!=null||x!==0?k({},m,{pagination:k({},m.pagination,{page:x})}):m},[e,t.page,(n=t.initialState)==null||(r=n.pagination)==null?void 0:r.page]),d=u.useCallback((m,v)=>{var b,g;const x=(b=(g=v.stateToRestore.pagination)==null?void 0:g.page)!=null?b:jd(e);return e.current.setState(B_(x)),m},[e]);cr(e,"exportState",c),cr(e,"restoreState",d);const p=m=>{e.current.setState(v=>{const b=uw(v.pagination.rowCount,m);return k({},v,{pagination:dw(k({},v.pagination,{pageCount:b,page:v.pagination.page}))})}),e.current.forceUpdate()},h=()=>e.current.scrollToIndexes({rowIndex:jd(e)*uf(e)});Ne(e,"pageSizeChange",p),Ne(e,"pageChange",h),u.useEffect(()=>{},[t.rowCount,t.paginationMode]),u.useEffect(()=>{e.current.setState(m=>{const v=t.rowCount!==void 0?t.rowCount:i,b=uw(v,m.pagination.pageSize),g=t.page==null?m.pagination.page:t.page;return k({},m,{pagination:dw(k({},m.pagination,{page:g,rowCount:v,pageCount:b}))})}),e.current.forceUpdate()},[i,t.rowCount,t.page,t.paginationMode,e])},qce=(e,t)=>{var n,r,o,i,s,a,c,d;let p;return t.pageSize!=null?p=t.pageSize:((n=t.initialState)==null||(r=n.pagination)==null?void 0:r.pageSize)!=null?p=t.initialState.pagination.pageSize:p=QL(t.autoPageSize),k({},e,{pagination:{pageSize:p,page:(o=(i=t.page)!=null?i:(s=t.initialState)==null||(a=s.pagination)==null?void 0:a.page)!=null?o:0,pageCount:uw((c=t.rowCount)!=null?c:0,p),rowCount:(d=t.rowCount)!=null?d:0}})},Yce=(e,t)=>{Gce(e,t),Kce(e,t)},Xce=(e,t)=>{var n,r;return k({},e,{preferencePanel:(n=(r=t.initialState)==null?void 0:r.preferencePanel)!=null?n:{open:!1}})},Qce=(e,t)=>{var n;const r=qn(e,"useGridPreferencesPanel"),o=u.useRef(),i=u.useRef(),s=u.useCallback(()=>{r.debug("Hiding Preferences Panel");const m=fg(e.current.state);m.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:m.openedPanelValue}),e.current.setState(v=>k({},v,{preferencePanel:{open:!1}})),e.current.forceUpdate()},[e,r]),a=u.useCallback(()=>{i.current=setTimeout(()=>clearTimeout(o.current),0)},[]),c=u.useCallback(()=>{o.current=setTimeout(s,100)},[s]),d=u.useCallback(m=>{r.debug("Opening Preferences Panel"),a(),e.current.setState(v=>k({},v,{preferencePanel:k({},v.preferencePanel,{open:!0,openedPanelValue:m})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:m}),e.current.forceUpdate()},[r,a,e]);Gt(e,{showPreferences:d,hidePreferences:c});const p=u.useCallback((m,v)=>{var b;const g=fg(e.current.state);return!v.exportOnlyDirtyModels||((b=t.initialState)==null?void 0:b.preferencePanel)!=null||g.open?k({},m,{preferencePanel:g}):m},[e,(n=t.initialState)==null?void 0:n.preferencePanel]),h=u.useCallback((m,v)=>{const b=v.stateToRestore.preferencePanel;return b!=null&&e.current.setState(g=>k({},g,{preferencePanel:b})),m},[e]);cr(e,"exportState",p),cr(e,"restoreState",h),u.useEffect(()=>()=>{clearTimeout(o.current),clearTimeout(i.current)},[])},_n=e=>e.editRows;function z_(e){return typeof e.then=="function"}const Jce=(e,t)=>{var n;const r=qn(e,"useGridEditRows"),o=w=>(...E)=>{t.editMode===_r.Cell&&w(...E)},i=u.useCallback((w,E,P)=>{e.current.getCellMode(w,E)!==P&&(r.debug(`Switching cell id: ${w} field: ${E} to mode: ${P}`),e.current.setState(_=>{const I=k({},_.editRows);return I[w]=k({},I[w]),P===$t.Edit?I[w][E]={value:e.current.getCellValue(w,E)}:(delete I[w][E],Object.keys(I[w]).length||delete I[w]),k({},_,{editRows:I})}),e.current.forceUpdate(),e.current.publishEvent("cellModeChange",e.current.getCellParams(w,E)))},[e,r]),s=u.useCallback((w,E)=>{const P=_n(e.current.state);return P[w]&&P[w][E]?$t.Edit:$t.View},[e]),a=u.useCallback((w,E={})=>{var P;const{id:_,field:I}=w;e.current.unstable_runPendingEditCellValueMutation(_,I);const M=e.current.getEditRowsModel();if(!M[_]||!M[_][I])throw new Error(`MUI: Cell at id: ${_} and field: ${I} is not in edit mode.`);const O=M[_][I],L=e.current.getColumn(I),R=e.current.getRow(_);if((P=t.experimentalFeatures)!=null&&P.preventCommitWhileValidating){const A=M[_][I];if(A.isValidating||A.error)return!1}const H=k({},w,{value:O.value});let j=!!O.error;if(!j&&typeof L.preProcessEditCellProps=="function"){const A=L.preProcessEditCellProps({id:_,row:R,props:O});if(z_(A))return A.then(F=>(e.current.unstable_setEditCellProps({id:_,field:I,props:F}),F.error?!1:(e.current.publishEvent("cellEditCommit",H,E),!0)));e.current.unstable_setEditCellProps({id:_,field:I,props:A}),j=!!A.error}return j?!1:(e.current.publishEvent("cellEditCommit",H,E),!0)},[e,(n=t.experimentalFeatures)==null?void 0:n.preventCommitWhileValidating]),c=u.useCallback(w=>{const E=e.current.getColumn(w.field),P=e.current.getRow(w.id);return new Promise(_=>{let I={value:w.value};const O=e.current.getEditRowsModel()[w.id][w.field];if(typeof E.preProcessEditCellProps!="function"){e.current.unstable_setEditCellProps(k({},w,{props:I})),_(!0);return}I=e.current.unstable_setEditCellProps(k({},w,{props:k({},O,{isValidating:!0})})),Promise.resolve(E.preProcessEditCellProps({id:w.id,row:P,props:k({},I,{value:e.current.unstable_parseValue(w.id,w.field,w.value)})})).then(L=>{e.current.unstable_setEditCellProps(k({},w,{props:k({},L,{isValidating:!1})})),_(!L.error)})})},[e]);Gt(e,{setCellMode:i,getCellMode:s,commitCellChange:a,unstable_setCellEditingEditCellValue:c});const p=u.useCallback((w,E)=>it(void 0,null,function*(){if(E.which===229)return;const{id:P,field:_,cellMode:I,isEditable:M}=w;if(!M)return;const O=I===$t.Edit,L=E.ctrlKey||E.metaKey||E.altKey;if(!O&&gie(E)&&!L&&!(E.key===" "&&E.shiftKey)&&e.current.publishEvent("cellEditStart",w,E),!O&&ow(E.key)&&(e.current.setEditCellValue({id:P,field:_,value:""}),e.current.commitCellChange({id:P,field:_},E),e.current.publishEvent("cellEditStop",w,E)),O&&x_(E.key)){const R={id:P,field:_};if(!(yield e.current.commitCellChange(R,E)))return}O&&vie(E.key)&&e.current.publishEvent("cellEditStop",w,E)}),[e]),h=u.useCallback((w,E)=>{w.isEditable&&e.current.publishEvent("cellEditStart",w,E)},[e]),m=(w,E)=>it(void 0,null,function*(){w.cellMode!==$t.View&&(yield e.current.commitCellChange(w,E),e.current.publishEvent("cellEditStop",w,E))}),v=cn((w,E)=>{m(w,E)}),b=cn(()=>{const w=wi(e);if(!w)return;const E=e.current.getCellParams(w.id,w.field);m(E,{})}),g=u.useCallback((w,E)=>{w.isEditable&&(e.current.setCellMode(w.id,w.field,$t.Edit),iw(E)&&Wv(E)&&e.current.unstable_setEditCellProps({id:w.id,field:w.field,props:{value:""}}))},[e]),x=u.useCallback((w,E)=>{if(e.current.setCellMode(w.id,w.field,$t.View),!!iw(E)){if(x_(E.key)){e.current.publishEvent("cellNavigationKeyDown",w,E);return}(E.key==="Escape"||ow(E.key))&&e.current.setCellFocus(w.id,w.field)}},[e]),C=u.useCallback(w=>{const{id:E,field:P}=w,_=e.current.getEditRowsModel(),{value:I}=_[E][P];r.debug(`Setting cell id: ${E} field: ${P} to value: ${I==null?void 0:I.toString()}`);const M=e.current.getRow(E);if(M){const O=e.current.getColumn(w.field);let L=k({},M,{[P]:I});O.valueSetter&&(L=O.valueSetter({row:M,value:I})),e.current.updateRows([L])}},[e,r]),S=u.useCallback(w=>{const E=e.current.getRow(w.id),P=e.current.getColumn(w.field),_=P.preProcessEditCellProps?P.preProcessEditCellProps({id:w.id,row:E,props:w.props}):w.props;z_(_)?_.then(I=>{e.current.unstable_setEditCellProps(k({},w,{props:I}))}):e.current.unstable_setEditCellProps(k({},w,{props:_}))},[e]);Ne(e,"cellKeyDown",o(p)),Ne(e,"cellDoubleClick",o(h)),Ne(e,"cellFocusOut",o(v)),Ne(e,"columnHeaderDragStart",o(b)),Ne(e,"cellEditStart",o(g)),Ne(e,"cellEditStop",o(x)),Ne(e,"cellEditCommit",o(C)),Ne(e,"editCellPropsChange",o(S)),Ft(e,"cellEditCommit",t.onCellEditCommit),Ft(e,"cellEditStart",t.onCellEditStart),Ft(e,"cellEditStop",t.onCellEditStop)},Zce=(e,t)=>{var n,r;const o=u.useRef(null),i=u.useRef(null),s=qe(e,ki),a=I=>(...M)=>{t.editMode===_r.Row&&I(...M)},c=u.useCallback((I,M)=>{M!==e.current.getRowMode(I)&&(e.current.setState(O=>{const L=k({},O.editRows);return M===jt.Edit?(L[I]={},s.forEach(R=>{const H=e.current.getCellParams(I,R.field);H.isEditable&&(L[I][R.field]={value:H.value})})):delete L[I],k({},O,{editRows:L})}),e.current.forceUpdate())},[e,s]),d=u.useCallback(I=>t.editMode===_r.Cell?jt.View:_n(e.current.state)[I]?jt.Edit:jt.View,[e,t.editMode]),p=u.useCallback((I,M={})=>{var O;if(t.editMode===_r.Cell)throw new Error("MUI: You can't commit changes when the edit mode is 'cell'.");e.current.unstable_runPendingEditCellValueMutation(I);const R=e.current.getEditRowsModel()[I];if(!R)throw new Error(`MUI: Row at id: ${I} is not being edited.`);if((O=t.experimentalFeatures)!=null&&O.preventCommitWhileValidating&&!Object.keys(R).reduce((F,B)=>F&&!R[B].isValidating&&!R[B].error,!0)||Object.values(R).some(A=>!!A.error))return!1;const j=Object.keys(R).filter(A=>typeof e.current.getColumn(A).preProcessEditCellProps=="function");if(j.length>0){const A=e.current.getRow(I),F=j.map(B=>it(void 0,null,function*(){const G=e.current.getColumn(B),N=yield Promise.resolve(G.preProcessEditCellProps({id:I,row:A,props:R[B]}));return e.current.unstable_setEditCellProps({id:I,field:B,props:N}),N.error}));return Promise.all(F).then(B=>B.some(G=>!!G)?!1:(e.current.publishEvent("rowEditCommit",I,M),!0))}return e.current.publishEvent("rowEditCommit",I,M),!0},[e,t.editMode,(n=t.experimentalFeatures)==null?void 0:n.preventCommitWhileValidating]),h=u.useCallback(I=>{const O=e.current.getEditRowsModel()[I.id],L=e.current.getRow(I.id);let R=!0;return new Promise(H=>{Object.keys(O).forEach(j=>it(void 0,null,function*(){const A=e.current.getColumn(j);let F=j===I.field?{value:I.value}:O[j];F=e.current.unstable_setEditCellProps({id:I.id,field:j,props:k({},F,{isValidating:!0})}),A.preProcessEditCellProps&&(F=yield Promise.resolve(A.preProcessEditCellProps({id:I.id,row:L,props:k({},F,{value:j===I.field?e.current.unstable_parseValue(I.id,j,I.value):F.value})}))),F.error&&(R=!1),e.current.unstable_setEditCellProps({id:I.id,field:j,props:k({},F,{isValidating:!1})})})),H(R)})},[e]);Gt(e,{setRowMode:c,getRowMode:d,commitRowChange:p,unstable_setRowEditingEditCellValue:h});const v=u.useCallback((I,M)=>it(void 0,null,function*(){if(M.which===229)return;const{cellMode:O,isEditable:L}=I;if(!L)return;const R=O===$t.Edit,H=e.current.getRowParams(I.id);if(R)if(M.key==="Enter"){var j;if(!(yield e.current.commitRowChange(I.id))&&(j=t.experimentalFeatures)!=null&&j.preventCommitWhileValidating)return;e.current.publishEvent("rowEditStop",H,M)}else M.key==="Escape"&&e.current.publishEvent("rowEditStop",H,M);else M.key==="Enter"&&e.current.publishEvent("rowEditStart",H,M)}),[e,(r=t.experimentalFeatures)==null?void 0:r.preventCommitWhileValidating]),b=u.useCallback((I,M)=>{if(!I.isEditable)return;const O=e.current.getRowParams(I.id);e.current.publishEvent("rowEditStart",O,M)},[e]),g=u.useCallback(I=>{const M=e.current.getRow(I.id),L=e.current.getEditRowsModel()[I.id];Object.keys(L).forEach(R=>it(void 0,null,function*(){const H=e.current.getColumn(R);if(H.preProcessEditCellProps){const j=R===I.field?I.props:L[R],A=yield Promise.resolve(H.preProcessEditCellProps({id:I.id,row:M,props:j}));e.current.unstable_setEditCellProps({id:I.id,field:R,props:A})}else R===I.field&&e.current.unstable_setEditCellProps(I)}))},[e]),x=u.useCallback(I=>{e.current.setRowMode(I.id,jt.Edit)},[e]),C=u.useCallback((I,M)=>{e.current.setRowMode(I.id,jt.View),M.key==="Enter"&&e.current.publishEvent("cellNavigationKeyDown",I,M)},[e]),S=u.useCallback(I=>{const O=e.current.getEditRowsModel()[I];if(!O)throw new Error(`MUI: Row at id: ${I} is not being edited.`);const L=e.current.getRow(I);if(L){let R=k({},L);Object.keys(O).forEach(H=>{const j=e.current.getColumn(H),A=O[H].value;j.valueSetter?R=j.valueSetter({row:R,value:A}):R[H]=A}),e.current.updateRows([R])}},[e]),w=u.useCallback(I=>{i.current=I},[]),E=(I,M)=>it(void 0,null,function*(){I.cellMode!==$t.View&&(i.current=null,o.current=setTimeout(()=>it(void 0,null,function*(){var O;if(((O=i.current)==null?void 0:O.id)!==I.id){yield e.current.commitRowChange(I.id,M);const L=e.current.getRowParams(I.id);e.current.publishEvent("rowEditStop",L,M)}})))}),P=cn((I,M)=>{E(I,M)}),_=cn(()=>{const I=wi(e);if(!I)return;const M=e.current.getCellParams(I.id,I.field);E(M,{})});Ne(e,"cellKeyDown",a(v)),Ne(e,"cellDoubleClick",a(b)),Ne(e,"editCellPropsChange",a(g)),Ne(e,"rowEditStart",a(x)),Ne(e,"rowEditStop",a(C)),Ne(e,"rowEditCommit",a(S)),Ne(e,"cellFocusIn",a(w)),Ne(e,"cellFocusOut",a(P)),Ne(e,"columnHeaderDragStart",a(_)),Ft(e,"rowEditCommit",t.onRowEditCommit),Ft(e,"rowEditStart",t.onRowEditStart),Ft(e,"rowEditStop",t.onRowEditStop)},eue=e=>k({},e,{editRows:{}});function tue(e,t){var n;const r=qn(e,"useGridEditRows");Jce(e,t),Zce(e,t);const o=u.useRef({});e.current.unstable_registerControlState({stateId:"editRows",propModel:t.editRowsModel,propOnChange:t.onEditRowsModelChange,stateSelector:_n,changeEvent:"editRowsModelChange"});const i=u.useCallback(g=>!g.rowNode.isAutoGenerated&&!g.rowNode.isPinned&&!!g.colDef.editable&&!!g.colDef.renderEditCell&&(!t.isCellEditable||t.isCellEditable(g)),[t.isCellEditable]),s=(g,x,C,S)=>{if(!C){S();return}if(o.current[g]||(o.current[g]={}),o.current[g][x]){const[P]=o.current[g][x];clearTimeout(P)}const w=()=>{S();const[P]=o.current[g][x];clearTimeout(P),delete o.current[g][x]},E=setTimeout(()=>{S(),delete o.current[g][x]},C);o.current[g][x]=[E,w]},a=u.useCallback((g,x)=>{if(o.current[g]){if(!x)Object.keys(o.current[g]).forEach(C=>{const[,S]=o.current[g][C];S()});else if(o.current[g][x]){const[,C]=o.current[g][x];C()}}},[]),c=u.useCallback((g,x={})=>{s(g.id,g.field,g.debounceMs,()=>{var C;if((C=t.experimentalFeatures)!=null&&C.preventCommitWhileValidating)return t.editMode==="row"?e.current.unstable_setRowEditingEditCellValue(g):e.current.unstable_setCellEditingEditCellValue(g);const S={id:g.id,field:g.field,props:{value:g.value}};return e.current.publishEvent("editCellPropsChange",S,x)})},[e,t.editMode,(n=t.experimentalFeatures)==null?void 0:n.preventCommitWhileValidating]),d=u.useCallback((g,x,C)=>{const S=e.current.getColumn(x);return S.valueParser?S.valueParser(C,e.current.getCellParams(g,x)):C},[e]),p=u.useCallback(g=>{const{id:x,field:C,props:S}=g;return r.debug(`Setting cell props on id: ${x} field: ${C}`),e.current.setState(E=>{const P=k({},E.editRows);return P[x]=k({},E.editRows[x]),P[x][C]=k({},S,{value:d(x,C,S.value)}),k({},E,{editRows:P})}),e.current.forceUpdate(),_n(e.current.state)[x][C]},[e,r,d]),h=u.useCallback(g=>{_n(e.current.state)!==g&&(r.debug("Setting editRows model"),e.current.setState(C=>k({},C,{editRows:g})),e.current.forceUpdate())},[e,r]),m=u.useCallback(()=>_n(e.current.state),[e]),v=u.useCallback((g,x)=>{const C=x.detail>1;g.isEditable&&g.cellMode===$t.View&&C&&x.preventDefault()},[]);Ne(e,"cellMouseDown",v),Ft(e,"editCellPropsChange",t.onEditCellPropsChange),Gt(e,{isCellEditable:i,setEditRowsModel:h,getEditRowsModel:m,setEditCellValue:c,unstable_setEditCellProps:p,unstable_parseValue:d,unstable_runPendingEditCellValueMutation:a}),u.useEffect(()=>{t.editRowsModel!==void 0&&e.current.setEditRowsModel(t.editRowsModel)},[e,t.editRowsModel])}const nue=["id","field"],rue=["id","field"],oue=_i(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#persistence."],"error"),iue=(e,t)=>{const[n,r]=u.useState({}),o=u.useRef(n),i=u.useRef({}),{processRowUpdate:s,onProcessRowUpdateError:a,cellModesModel:c,onCellModesModelChange:d,signature:p}=t,h=A=>(...F)=>{t.editMode===_r.Cell&&A(...F)},m=u.useCallback((A,F)=>{const B=e.current.getCellParams(A,F);if(!e.current.isCellEditable(B))throw new Error(`MUI: The cell with id=${A} and field=${F} is not editable.`)},[e]),v=u.useCallback((A,F,B)=>{if(e.current.getCellMode(A,F)!==B)throw new Error(`MUI: The cell with id=${A} and field=${F} is not in ${B} mode.`)},[e]),b=u.useCallback((A,F)=>{if(!A.isEditable||A.cellMode===$t.Edit)return;const B=k({},A,{reason:bs.cellDoubleClick});e.current.publishEvent("cellEditStart",B,F)},[e]),g=u.useCallback((A,F)=>{if(A.cellMode===$t.View||e.current.getCellMode(A.id,A.field)===$t.View)return;const B=k({},A,{reason:zi.cellFocusOut});e.current.publishEvent("cellEditStop",B,F)},[e]),x=u.useCallback((A,F)=>{if(A.cellMode===$t.Edit){if(F.which===229)return;let B;if(F.key==="Escape"?B=zi.escapeKeyDown:F.key==="Enter"?B=zi.enterKeyDown:F.key==="Tab"&&(B=F.shiftKey?zi.shiftTabKeyDown:zi.tabKeyDown,F.preventDefault()),B){const G=k({},A,{reason:B});e.current.publishEvent("cellEditStop",G,F)}}else if(A.isEditable){let B;if(F.key===" "&&F.shiftKey)return;if(Wv(F)||(F.ctrlKey||F.metaKey)&&F.key==="v"?B=bs.printableKeyDown:F.key==="Enter"?B=bs.enterKeyDown:(F.key==="Delete"||F.key==="Backspace")&&(B=bs.deleteKeyDown),B){const G=k({},A,{reason:B,key:F.key});e.current.publishEvent("cellEditStart",G,F)}}},[e]),C=u.useCallback(A=>{const{id:F,field:B,reason:G,key:N}=A,z={id:F,field:B};G===bs.printableKeyDown?u.version.startsWith("18")?z.initialValue=N:z.deleteValue=!0:G===bs.deleteKeyDown&&(z.deleteValue=!0),e.current.startCellEditMode(z)},[e]),S=u.useCallback(A=>{const{id:F,field:B,reason:G}=A;e.current.unstable_runPendingEditCellValueMutation(F,B);let N;G===zi.enterKeyDown?N="below":G===zi.tabKeyDown?N="right":G===zi.shiftTabKeyDown&&(N="left");let z=G==="escapeKeyDown";_n(e.current.state)[F][B].isProcessingProps&&!t.disableIgnoreModificationsIfProcessingProps&&(z=!0),e.current.stopCellEditMode({id:F,field:B,ignoreModifications:z,cellToFocusAfter:N})},[e,t.disableIgnoreModificationsIfProcessingProps]);Ne(e,"cellDoubleClick",h(b)),Ne(e,"cellFocusOut",h(g)),Ne(e,"cellKeyDown",h(x)),Ne(e,"cellEditStart",h(C)),Ne(e,"cellEditStop",h(S)),Ft(e,"cellEditStart",t.onCellEditStart),Ft(e,"cellEditStop",t.onCellEditStop);const w=u.useCallback((A,F)=>{const B=_n(e.current.state);return B[A]&&B[A][F]?$t.Edit:$t.View},[e]),E=cn(A=>{const F=A!==t.cellModesModel;if(d&&F){const B=p===Gl.DataGridPro?{api:e.current}:{};d(A,B)}t.cellModesModel&&F||(r(A),o.current=A,e.current.publishEvent("cellModesModelChange",A))}),P=u.useCallback((A,F,B)=>{const G=k({},o.current);if(B!==null)G[A]=k({},G[A],{[F]:k({},B)});else{const N=G[A],z=se(N,[F].map(Uf));G[A]=z,Object.keys(G[A]).length===0&&delete G[A]}E(G)},[E]),_=u.useCallback((A,F,B)=>{e.current.setState(G=>{const N=k({},G.editRows);return B!==null?N[A]=k({},N[A],{[F]:k({},B)}):(delete N[A][F],Object.keys(N[A]).length===0&&delete N[A]),k({},G,{editRows:N})}),e.current.forceUpdate()},[e]),I=u.useCallback(A=>{const{id:F,field:B}=A,G=se(A,nue);m(F,B),v(F,B,$t.View),P(F,B,k({mode:$t.Edit},G))},[m,v,P]),M=cn(A=>{const{id:F,field:B,deleteValue:G,initialValue:N}=A;let z=e.current.getCellValue(F,B);(G||N)&&(z=G?"":N),_(F,B,{value:z,error:!1,isProcessingProps:!1}),e.current.setCellFocus(F,B)}),O=u.useCallback(A=>{const{id:F,field:B}=A,G=se(A,rue);v(F,B,$t.Edit),P(F,B,k({mode:$t.View},G))},[v,P]),L=cn(A=>it(void 0,null,function*(){const{id:F,field:B,ignoreModifications:G,cellToFocusAfter:N="none"}=A;v(F,B,$t.Edit),e.current.unstable_runPendingEditCellValueMutation(F,B);const z=()=>{_(F,B,null),P(F,B,null),N!=="none"&&e.current.unstable_moveFocusToRelativeCell(F,B,N)};if(G){z();return}const W=_n(e.current.state),{error:q,isProcessingProps:X}=W[F][B];if(q||X){i.current[F][B].mode=$t.Edit,P(F,B,{mode:$t.Edit});return}const le=e.current.unstable_getRowWithUpdatedValuesFromCellEditing(F,B);if(s){const Q=ge=>{i.current[F][B].mode=$t.Edit,P(F,B,{mode:$t.Edit}),a?a(ge):oue()};try{const ge=e.current.getRow(F);Promise.resolve(s(le,ge)).then(ee=>{e.current.updateRows([ee]),z()}).catch(Q)}catch(ge){Q(ge)}}else e.current.updateRows([le]),z()})),R=u.useCallback(A=>it(void 0,null,function*(){var F,B;const{id:G,field:N,value:z,debounceMs:W,unstable_skipValueParser:q}=A;m(G,N),v(G,N,$t.Edit);const X=e.current.getColumn(N),le=e.current.getRow(G);let Q=z;X.valueParser&&!q&&(Q=X.valueParser(z,e.current.getCellParams(G,N)));let ge=_n(e.current.state),ee=k({},ge[G][N],{value:Q,changeReason:W?"debouncedSetEditCellValue":"setEditCellValue"});if(X.preProcessEditCellProps){const ce=z!==ge[G][N].value;ee=k({},ee,{isProcessingProps:!0}),_(G,N,ee),ee=yield Promise.resolve(X.preProcessEditCellProps({id:G,row:le,props:ee,hasChanged:ce}))}return e.current.getCellMode(G,N)===$t.View?!1:(ge=_n(e.current.state),ee=k({},ee,{isProcessingProps:!1}),ee.value=X.preProcessEditCellProps?ge[G][N].value:Q,_(G,N,ee),ge=_n(e.current.state),!((F=ge[G])!=null&&(B=F[N])!=null&&B.error))}),[e,m,v,_]),H=u.useCallback((A,F)=>{const B=e.current.getColumn(F),G=_n(e.current.state),{value:N}=G[A][F],z=e.current.getRow(A);return B.valueSetter?B.valueSetter({value:N,row:z}):k({},z,{[F]:N})},[e]);Gt(e,{getCellMode:w,startCellEditMode:I,stopCellEditMode:O,unstable_setCellEditingEditCellValue:R,unstable_getRowWithUpdatedValuesFromCellEditing:H}),u.useEffect(()=>{c&&E(c)},[c,E]),u.useEffect(()=>{const A=Rx(e),F=i.current;i.current=$L(n),Object.entries(n).forEach(([B,G])=>{Object.entries(G).forEach(([N,z])=>{var W,q,X;const le=((W=F[B])==null||(q=W[N])==null?void 0:q.mode)||$t.View,Q=(X=A[B])!=null?X:B;z.mode===$t.Edit&&le===$t.View?M(k({id:Q,field:N},z)):z.mode===$t.View&&le===$t.Edit&&L(k({id:Q,field:N},z))})})},[e,n,M,L])},sue=["id"],lue=["id"],aue=_i(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#persistence."],"error"),cue=(e,t)=>{const[n,r]=u.useState({}),o=u.useRef(n),i=u.useRef({}),s=u.useRef(null),a=u.useRef(null),{processRowUpdate:c,onProcessRowUpdateError:d,rowModesModel:p,onRowModesModelChange:h,signature:m}=t,v=N=>(...z)=>{t.editMode===_r.Row&&N(...z)},b=u.useCallback((N,z)=>{const W=e.current.getCellParams(N,z);if(!e.current.isCellEditable(W))throw new Error(`MUI: The cell with id=${N} and field=${z} is not editable.`)},[e]),g=u.useCallback((N,z)=>{if(e.current.getRowMode(N)!==z)throw new Error(`MUI: The row with id=${N} is not in ${z} mode.`)},[e]),x=u.useCallback((N,z)=>{if(!N.isEditable||e.current.getRowMode(N.id)===jt.Edit)return;const W=e.current.getRowParams(N.id),q=k({},W,{field:N.field,reason:ws.cellDoubleClick});e.current.publishEvent("rowEditStart",q,z)},[e]),C=u.useCallback(N=>{a.current=N},[]),S=u.useCallback((N,z)=>{N.isEditable&&e.current.getRowMode(N.id)!==jt.View&&(a.current=null,s.current=setTimeout(()=>{var W;if(s.current=null,((W=a.current)==null?void 0:W.id)!==N.id){if(!e.current.getRow(N.id)||e.current.getRowMode(N.id)===jt.View)return;const q=e.current.getRowParams(N.id),X=k({},q,{field:N.field,reason:ji.rowFocusOut});e.current.publishEvent("rowEditStop",X,z)}}))},[e]);u.useEffect(()=>()=>{clearTimeout(s.current)},[]);const w=u.useCallback((N,z)=>{if(N.cellMode===jt.Edit){if(z.which===229)return;let W;if(z.key==="Escape")W=ji.escapeKeyDown;else if(z.key==="Enter")W=ji.enterKeyDown;else if(z.key==="Tab"){const q=_u(e).filter(X=>e.current.isCellEditable(e.current.getCellParams(N.id,X)));z.shiftKey?N.field===q[0]&&(W=ji.shiftTabKeyDown):N.field===q[q.length-1]&&(W=ji.tabKeyDown),W&&z.preventDefault()}if(W){const q=e.current.getRowParams(N.id),X=k({},q,{reason:W,field:N.field});e.current.publishEvent("rowEditStop",X,z)}}else if(N.isEditable){let W;if(z.key===" "&&z.shiftKey)return;if(Wv(z)||(z.ctrlKey||z.metaKey)&&z.key==="v"?W=ws.printableKeyDown:z.key==="Enter"?W=ws.enterKeyDown:(z.key==="Delete"||z.key==="Backspace")&&(W=ws.deleteKeyDown),W){const q=e.current.getRowParams(N.id),X=k({},q,{field:N.field,key:z.key,reason:W});e.current.publishEvent("rowEditStart",X,z)}}},[e]),E=u.useCallback(N=>{const{id:z,field:W,reason:q,key:X}=N,le={id:z,fieldToFocus:W};q===ws.printableKeyDown?u.version.startsWith("18")?le.initialValue=X:le.deleteValue=!!W:q===ws.deleteKeyDown&&(le.deleteValue=!!W),e.current.startRowEditMode(le)},[e]),P=u.useCallback(N=>{const{id:z,reason:W,field:q}=N;e.current.unstable_runPendingEditCellValueMutation(z);let X;W===ji.enterKeyDown?X="below":W===ji.tabKeyDown?X="right":W===ji.shiftTabKeyDown&&(X="left");let le=W==="escapeKeyDown";const Q=_n(e.current.state);!le&&!t.disableIgnoreModificationsIfProcessingProps&&(le=Object.values(Q[z]).some(ge=>ge.isProcessingProps)),e.current.stopRowEditMode({id:z,ignoreModifications:le,field:q,cellToFocusAfter:X})},[e,t.disableIgnoreModificationsIfProcessingProps]);Ne(e,"cellDoubleClick",v(x)),Ne(e,"cellFocusIn",v(C)),Ne(e,"cellFocusOut",v(S)),Ne(e,"cellKeyDown",v(w)),Ne(e,"rowEditStart",v(E)),Ne(e,"rowEditStop",v(P)),Ft(e,"rowEditStart",t.onRowEditStart),Ft(e,"rowEditStop",t.onRowEditStop);const _=u.useCallback(N=>{if(t.editMode===_r.Cell)return jt.View;const z=_n(e.current.state);return z[N]&&Object.keys(z[N]).length>0?jt.Edit:jt.View},[e,t.editMode]),I=cn(N=>{const z=N!==t.rowModesModel;if(h&&z){const W=m===Gl.DataGridPro?{api:e.current}:{};h(N,W)}t.rowModesModel&&z||(r(N),o.current=N,e.current.publishEvent("rowModesModelChange",N))}),M=u.useCallback((N,z)=>{const W=k({},o.current);z!==null?W[N]=k({},z):delete W[N],I(W)},[I]),O=u.useCallback((N,z)=>{e.current.setState(W=>{const q=k({},W.editRows);return z!==null?q[N]=z:delete q[N],k({},W,{editRows:q})}),e.current.forceUpdate()},[e]),L=u.useCallback((N,z,W)=>{e.current.setState(q=>{const X=k({},q.editRows);return W!==null?X[N]=k({},X[N],{[z]:k({},W)}):(delete X[N][z],Object.keys(X[N]).length===0&&delete X[N]),k({},q,{editRows:X})}),e.current.forceUpdate()},[e]),R=u.useCallback(N=>{const{id:z}=N,W=se(N,sue);g(z,jt.View),M(z,k({mode:jt.Edit},W))},[g,M]),H=cn(N=>{const{id:z,fieldToFocus:W,deleteValue:q,initialValue:X}=N,Q=_u(e).reduce((ge,ee)=>{if(!e.current.getCellParams(z,ee).isEditable)return ge;let oe=e.current.getCellValue(z,ee);return W===ee&&(q||X)&&(oe=q?"":X),ge[ee]={value:oe,error:!1,isProcessingProps:!1},ge},{});O(z,Q),W&&e.current.setCellFocus(z,W)}),j=u.useCallback(N=>{const{id:z}=N,W=se(N,lue);g(z,jt.Edit),M(z,k({mode:jt.View},W))},[g,M]),A=cn(N=>{const{id:z,ignoreModifications:W,field:q,cellToFocusAfter:X="none"}=N;e.current.unstable_runPendingEditCellValueMutation(z);const le=()=>{X!=="none"&&q&&e.current.unstable_moveFocusToRelativeCell(z,q,X),O(z,null),M(z,null)};if(W){le();return}const Q=_n(e.current.state),ge=e.current.getRow(z);if(Object.values(Q[z]).some(de=>de.isProcessingProps)){i.current[z].mode=jt.Edit;return}if(Object.values(Q[z]).some(de=>de.error)){i.current[z].mode=jt.Edit,M(z,{mode:jt.Edit});return}const oe=e.current.unstable_getRowWithUpdatedValuesFromRowEditing(z);if(c){const de=be=>{i.current[z].mode=jt.Edit,M(z,{mode:jt.Edit}),d?d(be):aue()};try{Promise.resolve(c(oe,ge)).then(be=>{e.current.updateRows([be]),le()}).catch(de)}catch(be){de(be)}}else e.current.updateRows([oe]),le()}),F=u.useCallback(N=>{const{id:z,field:W,value:q,debounceMs:X,unstable_skipValueParser:le}=N;b(z,W);const Q=e.current.getColumn(W),ge=e.current.getRow(z);let ee=q;Q.valueParser&&!le&&(ee=Q.valueParser(q,e.current.getCellParams(z,W)));let ce=_n(e.current.state),oe=k({},ce[z][W],{value:ee,changeReason:X?"debouncedSetEditCellValue":"setEditCellValue"});return Q.preProcessEditCellProps||L(z,W,oe),new Promise(de=>{const be=[];if(Q.preProcessEditCellProps){const we=oe.value!==ce[z][W].value;oe=k({},oe,{isProcessingProps:!0}),L(z,W,oe);const $e=ce[z],Ve=se($e,[W].map(Uf)),De=Promise.resolve(Q.preProcessEditCellProps({id:z,row:ge,props:oe,hasChanged:we,otherFieldsProps:Ve})).then(re=>{if(e.current.getRowMode(z)===jt.View){de(!1);return}ce=_n(e.current.state),re=k({},re,{isProcessingProps:!1}),re.value=Q.preProcessEditCellProps?ce[z][W].value:ee,L(z,W,re)});be.push(De)}Object.entries(ce[z]).forEach(([we,$e])=>{if(we===W)return;const Ve=e.current.getColumn(we);if(!Ve.preProcessEditCellProps)return;$e=k({},$e,{isProcessingProps:!0}),L(z,we,$e),ce=_n(e.current.state);const De=ce[z],re=se(De,[we].map(Uf)),Ae=Promise.resolve(Ve.preProcessEditCellProps({id:z,row:ge,props:$e,hasChanged:!1,otherFieldsProps:re})).then(ve=>{if(e.current.getRowMode(z)===jt.View){de(!1);return}ve=k({},ve,{isProcessingProps:!1}),L(z,we,ve)});be.push(Ae)}),Promise.all(be).then(()=>{e.current.getRowMode(z)===jt.Edit?(ce=_n(e.current.state),de(!ce[z][W].error)):de(!1)})})},[e,b,L]),B=u.useCallback(N=>{const z=_n(e.current.state),W=e.current.getRow(N);let q=k({},W);return Object.entries(z[N]).forEach(([X,le])=>{const Q=e.current.getColumn(X);Q.valueSetter?q=Q.valueSetter({value:le.value,row:q}):q[X]=le.value}),q},[e]);Gt(e,{getRowMode:_,startRowEditMode:R,stopRowEditMode:j,unstable_setRowEditingEditCellValue:F,unstable_getRowWithUpdatedValuesFromRowEditing:B}),u.useEffect(()=>{p&&I(p)},[p,I]),u.useEffect(()=>{const N=Rx(e),z=i.current;i.current=$L(n),Object.entries(n).forEach(([W,q])=>{var X,le;const Q=((X=z[W])==null?void 0:X.mode)||jt.View,ge=(le=N[W])!=null?le:W;q.mode===jt.Edit&&Q===jt.View?H(k({id:ge},q)):q.mode===jt.View&&Q===jt.Edit&&A(k({id:ge},q))})},[e,n,H,A])},uue=e=>k({},e,{editRows:{}}),due=(e,t)=>{iue(e,t),cue(e,t);const n=u.useRef({}),{isCellEditable:r}=t,o=u.useCallback(h=>h.rowNode.isAutoGenerated||!h.colDef.editable||!h.colDef.renderEditCell?!1:r?r(h):!h.rowNode.isPinned,[r]),i=(h,m,v,b)=>{if(!v){b();return}if(n.current[h]||(n.current[h]={}),n.current[h][m]){const[C]=n.current[h][m];clearTimeout(C)}const g=()=>{const[C]=n.current[h][m];clearTimeout(C),b(),delete n.current[h][m]},x=setTimeout(()=>{b(),delete n.current[h][m]},v);n.current[h][m]=[x,g]};u.useEffect(()=>{const h=n.current;return()=>{Object.entries(h).forEach(([m,v])=>{Object.keys(v).forEach(b=>{const[g]=h[m][b];clearTimeout(g),delete h[m][b]})})}},[]);const s=u.useCallback((h,m)=>{if(n.current[h]){if(!m)Object.keys(n.current[h]).forEach(v=>{const[,b]=n.current[h][v];b()});else if(n.current[h][m]){const[,v]=n.current[h][m];v()}}},[]),a=u.useCallback(h=>{const{id:m,field:v,debounceMs:b}=h;return new Promise(g=>{i(m,v,b,()=>it(void 0,null,function*(){const x=t.editMode===_r.Row?e.current.unstable_setRowEditingEditCellValue:e.current.unstable_setCellEditingEditCellValue;if(e.current.getCellMode(m,v)===$t.Edit){const C=yield x(h);g(C)}}))})},[e,t.editMode]),c=u.useCallback((h,m)=>t.editMode===_r.Cell?e.current.unstable_getRowWithUpdatedValuesFromCellEditing(h,m):e.current.unstable_getRowWithUpdatedValuesFromRowEditing(h),[e,t.editMode]),d=u.useCallback((h,m)=>({changeReason:_n(e.current.state)[h][m].changeReason}),[e]);Gt(e,{isCellEditable:o,setEditCellValue:a,unstable_runPendingEditCellValueMutation:s,unstable_getRowWithUpdatedValues:c,unstable_getEditCellMeta:d})},fue=(e,t,n)=>(n.current.unstable_caches.rows=mm({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),k({},e,{rows:GL({apiRef:n,previousTree:null,rowCountProp:t.rowCount,loadingProp:t.loading})})),pue=(e,t)=>{const n=qn(e,"useGridRows"),r=Ja(e,t),o=u.useRef(Date.now()),i=u.useRef(null),s=u.useCallback(L=>{var R;return(R=ru(e)[L])!=null?R:null},[e]),a=u.useMemo(()=>r.rows.reduce((L,{id:R},H)=>(L[R]=H,L),{}),[r.rows]),c=u.useCallback((L,R)=>{const H=()=>{i.current=null,o.current=Date.now(),e.current.setState(A=>k({},A,{rows:GL({apiRef:e,previousTree:wl(e),rowCountProp:t.rowCount,loadingProp:t.loading})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(i.current&&(clearTimeout(i.current),i.current=null),e.current.unstable_caches.rows=L,!R){H();return}const j=t.throttleRowsMs-(Date.now()-o.current);if(j>0){i.current=setTimeout(H,j);return}H()},[t.throttleRowsMs,t.rowCount,t.loading,e]),d=u.useCallback(L=>{n.debug(`Updating all rows, new length ${L.length}`);const R=mm({rows:L,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),H=e.current.unstable_caches.rows;R.rowsBeforePartialUpdates=H.rowsBeforePartialUpdates,c(R,!0)},[n,t.getRowId,t.loading,t.rowCount,c,e]),p=u.useCallback(L=>{if(t.signature===Gl.DataGrid&&L.length>1)throw new Error(["MUI: You can't update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
|
|
336
|
+
`));const R=new Map;L.forEach(F=>{const B=aw(F,t.getRowId,"A row was provided without id when calling updateRows():");R.has(B)?R.set(B,k({},R.get(B),F)):R.set(B,F)});const H=[],j=e.current.unstable_caches.rows,A={rowsBeforePartialUpdates:j.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:j.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:j.rowCountPropBeforePartialUpdates,idRowsLookup:k({},j.idRowsLookup),idToIdLookup:k({},j.idToIdLookup),ids:[...j.ids]};R.forEach((F,B)=>{if(F._action==="delete"){delete A.idRowsLookup[B],delete A.idToIdLookup[B],H.push(B);return}if(!e.current.getRow(B)){A.idRowsLookup[B]=F,A.idToIdLookup[B]=B,A.ids.push(B);return}A.idRowsLookup[B]=k({},e.current.getRow(B),F)}),H.length>0&&(A.ids=A.ids.filter(F=>!H.includes(F))),c(A,!0)},[t.signature,t.getRowId,c,e]),h=u.useCallback(()=>{const L=ba(e),R=ru(e);return new Map(L.map(H=>[H,R[H]]))},[e]),m=u.useCallback(()=>Vv(e),[e]),v=u.useCallback(()=>ba(e),[e]),b=u.useCallback(L=>a[L],[a]),g=u.useCallback((L,R)=>{const H=e.current.getRowNode(L);if(!H)throw new Error(`MUI: No row with id #${L} found`);const j=k({},H,{childrenExpanded:R});e.current.setState(A=>k({},A,{rows:k({},A.rows,{tree:k({},A.rows.tree,{[L]:j})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",j)},[e]),x=u.useCallback(L=>{var R;return(R=wl(e)[L])!=null?R:null},[e]),C=u.useCallback(({skipAutoGeneratedRows:L=!0,groupId:R,applySorting:H,applyFiltering:j})=>{const A=wl(e);let F;if(H){const B=A[R];if(!B)return[];const G=Ax(e);F=[];const N=G.findIndex(z=>z===R)+1;for(let z=N;z<G.length&&A[G[z]].depth>B.depth;z+=1){const W=G[z],q=A[W];(!L||!q.isAutoGenerated)&&F.push(W)}}else F=KL(A,R,L);if(j){const B=oL(e);F=F.filter(G=>B[G]!==!1)}return F},[e]),S=u.useCallback((L,R)=>{const H=ba(e),j=H.findIndex(F=>F===L);if(j===-1||j===R)return;n.debug(`Moving row ${L} to index ${R}`);const A=[...H];A.splice(R,0,A.splice(j,1)[0]),e.current.setState(F=>k({},F,{rows:k({},F.rows,{ids:A})})),e.current.unstable_caches.rows.ids=A,e.current.publishEvent("rowsSet")},[e,n]),w=u.useCallback((L,R)=>{if(t.signature===Gl.DataGrid&&R.length>1)throw new Error(["MUI: You can't replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
|
|
337
|
+
`));if(R.length===0)return;const j=[...ba(e)],A=ru(e),F=Rx(e),B=wl(e),G=k({},A),N=k({},F),z=k({},B),W=R.map(q=>({id:aw(q,t.getRowId,"A row was provided without id when calling replaceRows()."),model:q}));W.forEach((q,X)=>{const[le]=j.splice(L+X,1,q.id);delete G[le],delete N[le],delete z[le]}),W.forEach(q=>{const X={id:q.id,parent:null,depth:0,groupingKey:null,groupingField:null};G[q.id]=q.model,N[q.id]=q.id,z[q.id]=X}),e.current.unstable_caches.rows.idRowsLookup=G,e.current.unstable_caches.rows.idToIdLookup=N,e.current.unstable_caches.rows.ids=j,e.current.setState(q=>{const X={idRowsLookup:G,idToIdLookup:N,tree:z,ids:j};return k({},q,{rows:k({},q.rows,X,{groupingResponseBeforeRowHydration:k({},q.rows.groupingResponseBeforeRowHydration,X)})})}),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId]),E={getRow:s,getRowModels:h,getRowsCount:m,getAllRowIds:v,setRows:d,setRowIndex:S,updateRows:p,setRowChildrenExpansion:g,getRowNode:x,getRowIndexRelativeToVisibleRows:b,getRowGroupChildren:C,unstable_replaceRows:w},P=u.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let L;e.current.unstable_caches.rows.rowsBeforePartialUpdates===t.rows?L=e.current.unstable_caches.rows:L=mm({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),c(L,!1)},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,c]),_=u.useCallback(L=>{L==="rowTreeCreation"&&P()},[P]),I=u.useCallback(()=>{e.current.unstable_getActiveStrategy("rowTree")!==ioe(e)&&P()},[e,P]);Ne(e,"activeStrategyProcessorChange",_),Ne(e,"strategyAvailabilityChange",I);const M=u.useCallback(()=>{e.current.setState(L=>k({},L,{rows:k({},L.rows,e.current.unstable_applyPipeProcessors("hydrateRows",L.rows.groupingResponseBeforeRowHydration))})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e]);Gx(e,"hydrateRows",M),Gt(e,E),u.useEffect(()=>()=>{i.current!==null&&clearTimeout(i.current)},[]);const O=u.useRef(!0);u.useEffect(()=>{if(O.current){O.current=!1;return}const L=e.current.unstable_caches.rows.rowsBeforePartialUpdates===t.rows,R=e.current.unstable_caches.rows.loadingPropBeforePartialUpdates===t.loading,H=e.current.unstable_caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;if(L){R||(e.current.setState(j=>k({},j,{rows:k({},j.rows,{loading:t.loading})})),e.current.unstable_caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),H||(e.current.setState(j=>k({},j,{rows:k({},j.rows,{totalRowCount:Math.max(t.rowCount||0,j.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,j.rows.totalTopLevelRowCount)})})),e.current.unstable_caches.rows.rowCountPropBeforePartialUpdates=t.rowCount,e.current.forceUpdate());return}n.debug(`Updating all rows, new length ${t.rows.length}`),c(mm({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),!1)},[t.rows,t.rowCount,t.getRowId,t.loading,n,c,e])},hue=({ids:e,idRowsLookup:t,idToIdLookup:n,previousTree:r})=>{const o={};for(let i=0;i<e.length;i+=1){const s=e[i];r&&r[s]&&r[s].depth===0&&r[s].parent==null&&!r[s].isPinned?o[s]=r[s]:o[s]={id:s,depth:0,parent:null,groupingKey:"",groupingField:null}}return{groupingName:yp,tree:o,treeDepth:1,idRowsLookup:t,idToIdLookup:n,ids:e}},mue=e=>{Kx(e,yp,"rowTreeCreation",hue)};_i(["MUI: You are calling getValue. This method is deprecated and will be removed in the next major version.","Instead, you can access the data from `params.row`."]);function gue(e){const t=u.useCallback(h=>({field:h,colDef:e.current.getColumn(h)}),[e]),n=u.useCallback((...h)=>e.current.getCellValue(...h),[e]),r=u.useCallback(h=>{const m=e.current.getRow(h);if(!m)throw new Error(`No row with id #${h} found`);return{id:h,columns:e.current.getAllColumns(),row:m,getValue:n}},[e,n]),o=u.useCallback((h,m)=>{const v=e.current.getRow(h),b=e.current.getRowNode(h);if(!v||!b)throw new Error(`No row with id #${h} found`);const g=wi(e),x=ug(e);return{id:h,field:m,row:v,rowNode:b,value:v[m],colDef:e.current.getColumn(m),cellMode:e.current.getCellMode(h,m),getValue:n,api:e.current,hasFocus:g!==null&&g.field===m&&g.id===h,tabIndex:x&&x.field===m&&x.id===h?0:-1}},[e,n]),i=u.useCallback((h,m)=>{const v=e.current.getColumn(m),b=e.current.getCellValue(h,m),g=e.current.getRow(h),x=e.current.getRowNode(h);if(!g||!x)throw new Error(`No row with id #${h} found`);const C=wi(e),S=ug(e),w={id:h,field:m,row:g,rowNode:x,colDef:v,cellMode:e.current.getCellMode(h,m),getValue:n,hasFocus:C!==null&&C.field===m&&C.id===h,tabIndex:S&&S.field===m&&S.id===h?0:-1,value:b,formattedValue:b};return v&&v.valueFormatter&&(w.formattedValue=v.valueFormatter({id:h,field:w.field,value:w.value,api:e.current})),w.isEditable=v&&e.current.isCellEditable(w),w},[e,n]),s=u.useCallback((h,m)=>{const v=e.current.getColumn(m);if(!v||!v.valueGetter){const b=e.current.getRow(h);if(!b)throw new Error(`No row with id #${h} found`);return b[m]}return v.valueGetter(o(h,m))},[e,o]),a=u.useCallback(h=>e.current.rootElementRef.current?ose(e.current.rootElementRef.current,h):null,[e]),c=u.useCallback(h=>e.current.rootElementRef.current?ise(e.current.rootElementRef.current,h):null,[e]),d=u.useCallback((h,m)=>e.current.rootElementRef.current?sse(e.current.rootElementRef.current,{id:h,field:m}):null,[e]);Gt(e,{getCellValue:s,getCellParams:i,getCellElement:d,getRowParams:r,getRowElement:c,getColumnHeaderParams:t,getColumnHeaderElement:a})}const JL=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],vue=(e,t)=>{var n;return k({},e,{selection:(n=JL(t.selectionModel))!=null?n:[]})},yue=(e,t)=>{const n=qn(e,"useGridSelection"),r=u.useMemo(()=>JL(t.selectionModel,jo(e.current.state)),[e,t.selectionModel]),o=u.useRef(null);e.current.unstable_registerControlState({stateId:"selection",propModel:r,propOnChange:t.onSelectionModelChange,stateSelector:jo,changeEvent:"selectionChange"});const{checkboxSelection:i,disableMultipleSelection:s,disableSelectionOnClick:a,pagination:c,paginationMode:d,isRowSelectable:p}=t,h=!s||i,m=Ja(e,t),v=u.useCallback(A=>{var F;let B=A;const G=(F=o.current)!=null?F:A,N=e.current.isRowSelected(A);if(N){const z=cf(e),W=z.findIndex(X=>X===G),q=z.findIndex(X=>X===B);if(W===q)return;W>q?B=z[q+1]:B=z[q-1]}o.current=A,e.current.selectRowRange({startId:G,endId:B},!N)},[e]),b=u.useCallback(A=>{jo(e.current.state)!==A&&(n.debug("Setting selection model"),e.current.setState(B=>k({},B,{selection:A})),e.current.forceUpdate())},[e,n]),g=u.useCallback(A=>jo(e.current.state).includes(A),[e]),x=u.useCallback(A=>{if(p&&!p(e.current.getRowParams(A)))return!1;const F=e.current.getRowNode(A);return!((F==null?void 0:F.position)==="footer"||F!=null&&F.isPinned)},[e,p]),C=u.useCallback(()=>Pse(e),[e]),S=u.useCallback((A,F=!0,B=!1)=>{if(e.current.isRowSelectable(A))if(o.current=A,B)n.debug(`Setting selection for row ${A}`),e.current.setSelectionModel(F?[A]:[]);else{n.debug(`Toggling selection for row ${A}`);const N=jo(e.current.state).filter(W=>W!==A);F&&N.push(A),(N.length<2||h)&&e.current.setSelectionModel(N)}},[e,n,h]),w=u.useCallback((A,F=!0,B=!1)=>{n.debug("Setting selection for several rows");const G=A.filter(W=>e.current.isRowSelectable(W));let N;if(B)N=F?G:[];else{const W=k({},pg(e));G.forEach(q=>{F?W[q]=q:delete W[q]}),N=Object.values(W)}(N.length<2||h)&&e.current.setSelectionModel(N)},[e,n,h]),E=u.useCallback(({startId:A,endId:F},B=!0,G)=>{if(!e.current.getRow(A)||!e.current.getRow(F))return;n.debug(`Expanding selection from row ${A} to row ${F}`);const N=cf(e),z=N.indexOf(A),W=N.indexOf(F),[q,X]=z>W?[W,z]:[z,W],le=N.slice(q,X+1);e.current.selectRows(le,B,G)},[e,n]);Gt(e,{selectRow:S,selectRows:w,selectRowRange:E,setSelectionModel:b,getSelectedRows:C,isRowSelected:g,isRowSelectable:x});const _=u.useCallback(()=>{if(t.keepNonExistentRowsSelected)return;const A=jo(e.current.state),F=ru(e),B=k({},pg(e));let G=!1;A.forEach(N=>{F[N]||(delete B[N],G=!0)}),G&&e.current.setSelectionModel(Object.values(B))},[e,t.keepNonExistentRowsSelected]),I=u.useCallback((A,F)=>{const B=F.metaKey||F.ctrlKey,G=!i&&!B&&!iw(F),N=!h||G,z=e.current.isRowSelected(A);N?e.current.selectRow(A,G?!0:!z,!0):e.current.selectRow(A,!z,!1)},[e,h,i]),M=u.useCallback((A,F)=>{var B;if(a)return;const G=(B=F.target.closest(`.${te.cell}`))==null?void 0:B.getAttribute("data-field");G===gp.field||G===Wx||G&&e.current.getColumn(G).type===Ux||e.current.getRowNode(A.id).isPinned||(F.shiftKey&&(h||i)?v(A.id):I(A.id,F))},[a,h,i,e,v,I]),O=u.useCallback((A,F)=>{if(h&&F.shiftKey){var B;(B=window.getSelection())==null||B.removeAllRanges()}},[h]),L=u.useCallback((A,F)=>{F.nativeEvent.shiftKey?v(A.id):e.current.selectRow(A.id,A.value)},[e,v]),R=u.useCallback(A=>{const B=t.checkboxSelectionVisibleOnly&&t.pagination?EL(e):cf(e);e.current.selectRows(B,A.value)},[e,t.checkboxSelectionVisibleOnly,t.pagination]),H=u.useCallback((A,F)=>{if(e.current.getCellMode(A.id,A.field)!==$t.Edit&&F.currentTarget.contains(F.target)){if(mp(F.key)&&F.shiftKey){const B=wi(e);if(B&&B.id!==A.id){F.preventDefault();const G=e.current.isRowSelected(B.id);if(!h){e.current.selectRow(B.id,!G,!0);return}const N=e.current.getRowIndexRelativeToVisibleRows(B.id),z=e.current.getRowIndexRelativeToVisibleRows(A.id);let W,q;N>z?G?(W=z,q=N-1):(W=z,q=N):G?(W=N+1,q=z):(W=N,q=z);const X=m.rows.slice(W,q+1).map(le=>le.id);e.current.selectRows(X,!G);return}}if(F.key===" "&&F.shiftKey){F.preventDefault(),I(A.id,F);return}F.key.toLowerCase()==="a"&&(F.ctrlKey||F.metaKey)&&(F.preventDefault(),w(e.current.getAllRowIds(),!0))}},[e,I,w,m.rows,h]);Ne(e,"sortedRowsSet",_),Ne(e,"rowClick",M),Ne(e,"rowSelectionCheckboxChange",L),Ne(e,"headerSelectionCheckboxChange",R),Ne(e,"cellMouseDown",O),Ne(e,"cellKeyDown",H),u.useEffect(()=>{r!==void 0&&e.current.setSelectionModel(r)},[e,r]);const j=r!=null;u.useEffect(()=>{if(j)return;const A=jo(e.current.state);if(x){const F=A.filter(B=>x(B));F.length<A.length&&e.current.setSelectionModel(F)}},[e,x,j]),u.useEffect(()=>{const A=jo(e.current.state);if(!h&&A.length>1){const{rows:F}=Kv(e,{pagination:c,paginationMode:d}),B=F.reduce((N,{id:z})=>(N[z]=!0,N),{}),G=A.find(N=>{let z=!0;return x&&(z=x(N)),z&&B[N]});e.current.setSelectionModel(G!==void 0?[G]:[])}},[e,h,i,s,x,c,d])},bue={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",errorOverlayDefaultLabel:"An error occurred.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsPanelTextFieldLabel:"Find column",columnsPanelTextFieldPlaceholder:"Column title",columnsPanelDragIconLabel:"Reorder column",columnsPanelShowAllButton:"Show all",columnsPanelHideAllButton:"Hide all",filterPanelAddFilter:"Add filter",filterPanelDeleteIconLabel:"Delete",filterPanelLinkOperator:"Logic operator",filterPanelOperators:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorEquals:"equals",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>e!==1?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",MuiTablePagination:{},rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size"},wue=["sortingOrder"],Cue=u.memo(function(t){const{sortingOrder:n}=t,r=se(t,wue),o=Ye(),[i]=n,s=i==="asc"?o.components.ColumnSortedAscendingIcon:o.components.ColumnSortedDescendingIcon;return s?T.jsx(s,k({},r)):null}),xue=["error","hasError","errorInfo"],Sue=u.forwardRef(function(t,n){const{error:r}=t,o=se(t,xue),i=yt(),s=i.current.getLocaleText("errorOverlayDefaultLabel"),a=qe(i,pp);return T.jsx(Gv,k({ref:n,sx:{width:"100%",minHeight:2*a}},o,{children:(r==null?void 0:r.message)||s}))}),Eue=u.forwardRef(function(t,n){const o=yt().current.getLocaleText("noResultsOverlayLabel");return T.jsx(Gv,k({ref:n},t,{children:o}))}),kue={BooleanCellTrueIcon:nie,BooleanCellFalseIcon:g1,ColumnMenuIcon:Zoe,OpenFilterButtonIcon:Woe,FilterPanelDeleteIcon:g1,ColumnFilteredIcon:Goe,ColumnSelectorIcon:qoe,ColumnUnsortedIcon:Cue,ColumnSortedAscendingIcon:Voe,ColumnSortedDescendingIcon:Uoe,ColumnResizeIcon:Yoe,DensityCompactIcon:Xoe,DensityStandardIcon:Qoe,DensityComfortableIcon:Joe,ExportIcon:tie,MoreActionsIcon:rie,TreeDataCollapseIcon:C_,TreeDataExpandIcon:w_,GroupingCriteriaCollapseIcon:C_,GroupingCriteriaExpandIcon:w_,DetailPanelExpandIcon:hL,DetailPanelCollapseIcon:eie,RowReorderIcon:mL,QuickFilterIcon:Koe,QuickFilterClearIcon:g1},j_=k({},kue,{BaseCheckbox:UR,BaseTextField:lp,BaseFormControl:Ya,BaseSelect:ox,BaseSwitch:mO,BaseButton:lr,BaseTooltip:sp,BasePopper:Ka,Cell:$oe,SkeletonCell:Lie,ColumnHeaderFilterIconButton:wse,ColumnMenu:Ile,ErrorOverlay:Sue,Footer:Iae,Header:_ae,Toolbar:null,PreferencesPanel:tae,LoadingOverlay:$ae,NoResultsOverlay:Eue,NoRowsOverlay:Tae,Pagination:Rae,FilterPanel:hae,ColumnsPanel:Yle,Panel:eae,Row:Nae}),Pue=e=>{const{classes:t}=e;return u.useMemo(()=>_e({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},Lt,t),[t])},Iue=(e,t)=>{const n={classes:t.classes},r=Pue(n),o=u.useCallback(i=>{const s=k({},gp,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),a=t.checkboxSelection,c=i.lookup[sl]!=null;return a&&!c?(i.lookup[sl]=s,i.all=[sl,...i.all]):!a&&c?(delete i.lookup[sl],i.all=i.all.filter(d=>d!==sl)):a&&c&&(i.lookup[sl]=k({},s,i.lookup[sl])),i},[e,r,t.checkboxSelection]);cr(e,"hydrateColumns",o)},_ue=(e,t)=>{var n,r,o,i;const s=(n=(r=t.sortModel)!=null?r:(o=t.initialState)==null||(i=o.sorting)==null?void 0:i.sortModel)!=null?n:[];return k({},e,{sorting:{sortModel:kL(s,t.disableMultipleColumnsSorting),sortedRows:[]}})},$ue=(e,t)=>{var n,r;const o=qn(e,"useGridSorting");e.current.unstable_registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:gi,changeEvent:"sortModelChange"});const i=u.useCallback((I,M)=>{const O=gi(e),L=O.findIndex(H=>H.field===I);let R=[...O];return L>-1?M?R.splice(L,1,M):R.splice(L,1):R=[...O,M],R},[e]),s=u.useCallback((I,M)=>{var O;const R=gi(e).find(j=>j.field===I.field);if(R){var H;const j=M===void 0?E_((H=I.sortingOrder)!=null?H:t.sortingOrder,R.sort):M;return j==null?void 0:k({},R,{sort:j})}return{field:I.field,sort:M===void 0?E_((O=I.sortingOrder)!=null?O:t.sortingOrder):M}},[e,t.sortingOrder]),a=u.useCallback(()=>{e.current.setState(I=>{if(t.sortingMode===ou.server)return o.debug("Skipping sorting rows as sortingMode = server"),k({},I,{sorting:k({},I.sorting,{sortedRows:ba(I,e.current.instanceId)})});const M=gi(I,e.current.instanceId),O=Bse(M,e),L=e.current.unstable_applyStrategyProcessor("sorting",{sortRowList:O});return k({},I,{sorting:k({},I.sorting,{sortedRows:L})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,o,t.sortingMode]),c=u.useCallback(I=>{gi(e)!==I&&(o.debug("Setting sort model"),e.current.setState(S_(I,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,o,t.disableMultipleColumnsSorting]),d=u.useCallback((I,M,O)=>{if(!I.sortable)return;const L=s(I,M);let R;!O||t.disableMultipleColumnsSorting?R=L?[L]:[]:R=i(I.field,L),e.current.setSortModel(R)},[e,i,s,t.disableMultipleColumnsSorting]),p=u.useCallback(()=>gi(e),[e]),h=u.useCallback(()=>Fx(e).map(M=>M.model),[e]),m=u.useCallback(()=>Ax(e),[e]),v=u.useCallback(I=>e.current.getSortedRowIds().indexOf(I),[e]),b=u.useCallback(I=>e.current.getSortedRowIds()[I],[e]);Gt(e,{getSortModel:p,getSortedRows:h,getSortedRowIds:m,getRowIndex:v,getRowIdFromRowIndex:b,setSortModel:c,sortColumn:d,applySorting:a});const x=u.useCallback((I,M)=>{var O,L;const R=gi(e);return!M.exportOnlyDirtyModels||t.sortModel!=null||((O=t.initialState)==null||(L=O.sorting)==null?void 0:L.sortModel)!=null||R.length>0?k({},I,{sorting:{sortModel:R}}):I},[e,t.sortModel,(n=t.initialState)==null||(r=n.sorting)==null?void 0:r.sortModel]),C=u.useCallback((I,M)=>{var O;const L=(O=M.stateToRestore.sorting)==null?void 0:O.sortModel;return L==null?I:(e.current.setState(S_(L,t.disableMultipleColumnsSorting)),k({},I,{callbacks:[...I.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),S=u.useCallback(I=>{const M=wl(e);if(!I.sortRowList){const R=[],H=[];return ba(e).forEach(j=>{M[j].isPinned||(M[j].position==="footer"?H.push(j):R.push(j))}),[...R,...H]}const O=[],L=[];return Object.values(M).forEach(R=>{R.isPinned||(R.position==="footer"?L.push(R.id):O.push(R))}),[...I.sortRowList(O),...L]},[e]);cr(e,"exportState",x),cr(e,"restoreState",C),Kx(e,yp,"sorting",S);const w=u.useCallback(({colDef:I},M)=>{const O=M.shiftKey||M.metaKey||M.ctrlKey;d(I,void 0,O)},[d]),E=u.useCallback(({colDef:I},M)=>{vL(M.key)&&!M.ctrlKey&&!M.metaKey&&d(I,void 0,M.shiftKey)},[d]),P=u.useCallback(()=>{const I=gi(e),M=Uu(e);if(I.length>0){const O=I.filter(L=>M[L.field]);O.length<I.length&&e.current.setSortModel(O)}},[e]),_=u.useCallback(I=>{I==="sorting"&&e.current.applySorting()},[e]);Ne(e,"columnHeaderClick",w),Ne(e,"columnHeaderKeyDown",E),Ne(e,"rowsSet",e.current.applySorting),Ne(e,"columnsChange",P),Ne(e,"activeStrategyProcessorChange",_),vp(()=>{e.current.applySorting()}),u.useEffect(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function H_(e){const{clientHeight:t,scrollTop:n,offsetHeight:r,offsetTop:o}=e,i=o+r;if(r>t)return o;if(i-t>n)return i-t;if(o<n)return o}const Tue=(e,t)=>{const n=qn(e,"useGridScroll"),r=e.current.columnHeadersElementRef,o=e.current.windowRef,i=qe(e,Ws),s=u.useCallback(p=>{const h=Vv(e),m=Mr(e);if(!(p.rowIndex==null)&&h===0||m.length===0)return!1;n.debug(`Scrolling to cell at row ${p.rowIndex}, col: ${p.colIndex} `);let b={};if(p.colIndex!=null){const S=za(e);let w;if(typeof p.rowIndex!="undefined"){var g;const E=(g=i[p.rowIndex])==null?void 0:g.id,P=e.current.unstable_getCellColSpanInfo(E,p.colIndex);P&&!P.spannedByColSpan&&(w=P.cellProps.width)}typeof w=="undefined"&&(w=m[p.colIndex].computedWidth),b.left=H_({clientHeight:o.current.clientWidth,scrollTop:o.current.scrollLeft,offsetHeight:w,offsetTop:S[p.colIndex]})}if(p.rowIndex!=null){var x,C;const S=Wf(e.current.state),w=jd(e),E=uf(e),P=t.pagination?p.rowIndex-w*E:p.rowIndex,_=S.positions[P+1]?S.positions[P+1]-S.positions[P]:S.currentPageTotalHeight-S.positions[P],I=((x=o.current.querySelector(`.${te["pinnedRows--top"]}`))==null?void 0:x.clientHeight)||0,M=((C=o.current.querySelector(`.${te["pinnedRows--bottom"]}`))==null?void 0:C.clientHeight)||0;b.top=H_({clientHeight:o.current.clientHeight-I-M,scrollTop:o.current.scrollTop,offsetHeight:_,offsetTop:S.positions[P]})}return b=e.current.unstable_applyPipeProcessors("scrollToIndexes",b,p),typeof b.left!==void 0||typeof b.top!==void 0?(e.current.scroll(b),!0):!1},[n,e,o,t.pagination,i]),a=u.useCallback(p=>{o.current&&p.left!=null&&r.current&&(r.current.scrollLeft=p.left,o.current.scrollLeft=p.left,n.debug(`Scrolling left: ${p.left}`)),o.current&&p.top!=null&&(o.current.scrollTop=p.top,n.debug(`Scrolling top: ${p.top}`)),n.debug("Scrolling, updating container, and viewport")},[o,r,n]),c=u.useCallback(()=>o!=null&&o.current?{top:o.current.scrollTop,left:o.current.scrollLeft}:{top:0,left:0},[o]);Gt(e,{scroll:a,scrollToIndexes:s,getScrollPosition:c})};function Mue(e,t){Ft(e,"columnHeaderClick",t.onColumnHeaderClick),Ft(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),Ft(e,"columnHeaderOver",t.onColumnHeaderOver),Ft(e,"columnHeaderOut",t.onColumnHeaderOut),Ft(e,"columnHeaderEnter",t.onColumnHeaderEnter),Ft(e,"columnHeaderLeave",t.onColumnHeaderLeave),Ft(e,"columnOrderChange",t.onColumnOrderChange),Ft(e,"cellClick",t.onCellClick),Ft(e,"cellDoubleClick",t.onCellDoubleClick),Ft(e,"cellKeyDown",t.onCellKeyDown),Ft(e,"cellFocusOut",t.onCellFocusOut),Ft(e,"preferencePanelClose",t.onPreferencePanelClose),Ft(e,"preferencePanelOpen",t.onPreferencePanelOpen),Ft(e,"menuOpen",t.onMenuOpen),Ft(e,"menuClose",t.onMenuClose),Ft(e,"rowDoubleClick",t.onRowDoubleClick),Ft(e,"rowClick",t.onRowClick),Ft(e,"componentError",t.onError),Ft(e,"stateChange",t.onStateChange)}const Rue=({content:e,container:t,scrollBarSize:n})=>{const r=e.width>t.width,o=e.height>t.height;let i=!1,s=!1;return(r||o)&&(i=r,s=e.height+(i?n:0)>t.height,s&&(i=e.width+n>t.width)),{hasScrollX:i,hasScrollY:s}};function Oue(e,t){const n=qn(e,"useResizeContainer"),r=u.useRef(!1),o=u.useRef(null),i=u.useRef(null),s=qe(e,Wf),a=qe(e,hp),c=u.useCallback(()=>{var x;const C=(x=e.current.rootElementRef)==null?void 0:x.current,S=Uv(e),w=qL(e);if(!o.current)return;let E;if(t.scrollbarSize!=null)E=t.scrollbarSize;else if(!S||!C)E=0;else{const H=gn(C).createElement("div");H.style.width="99px",H.style.height="99px",H.style.position="absolute",H.style.overflow="scroll",H.className="scrollDiv",C.appendChild(H),E=H.offsetWidth-H.clientWidth,C.removeChild(H)}let P,_,I;if(t.autoHeight)I=!1,_=Math.round(S)>o.current.width,P={width:o.current.width,height:s.currentPageTotalHeight+(_?E:0)};else{P={width:o.current.width,height:o.current.height-a};const R=Rue({content:{width:Math.round(S),height:s.currentPageTotalHeight},container:{width:P.width,height:P.height-w.top-w.bottom},scrollBarSize:E});I=R.hasScrollY,_=R.hasScrollX}const M={width:P.width-(I?E:0),height:P.height-(_?E:0)},O={viewportOuterSize:P,viewportInnerSize:M,hasScrollX:_,hasScrollY:I,scrollBarSize:E},L=i.current;i.current=O,(O.viewportInnerSize.width!==(L==null?void 0:L.viewportInnerSize.width)||O.viewportInnerSize.height!==(L==null?void 0:L.viewportInnerSize.height))&&e.current.publishEvent("viewportInnerSizeChange",O.viewportInnerSize)},[e,t.scrollbarSize,t.autoHeight,a,s.currentPageTotalHeight]),d=u.useCallback(()=>{c(),e.current.publishEvent("debouncedResize",o.current)},[e,c]),p=u.useCallback(()=>i.current,[]),h=u.useCallback(()=>{const x=e.current.getRootDimensions();if(!x)return 0;const C=Kv(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const w=e.current.unstable_getRenderContext(),E=w.lastRowIndex-w.firstRowIndex;return Math.min(E-1,C.rows.length)}const S=Math.floor(x.viewportInnerSize.height/pp(e));return Math.min(S,C.rows.length)},[e,t.pagination,t.paginationMode,t.getRowHeight]);Gt(e,{resize:d,getRootDimensions:p,unstable_getViewportPageSize:h,unstable_updateGridDimensionsRef:c});const v=u.useMemo(()=>zl(d,60),[d]),b=u.useRef(!0),g=u.useCallback(x=>{o.current=x;const C=/jsdom/.test(window.navigator.userAgent);if(x.height===0&&!r.current&&!t.autoHeight&&!C&&(n.error(["The parent DOM element of the data grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
|
|
338
|
+
`)),r.current=!0),x.width===0&&!r.current&&!C&&(n.error(["The parent DOM element of the data grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
|
|
339
|
+
`)),r.current=!0),b.current){d(),b.current=!1;return}v()},[t.autoHeight,v,n,d]);vn(()=>c(),[c]),Ft(e,"sortedRowsSet",c),Ft(e,"pageChange",c),Ft(e,"pageSizeChange",c),Ft(e,"columnsChange",c),Ne(e,"resize",g),Ft(e,"debouncedResize",t.onResize)}const Lue=e=>k({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}}),Aue=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,i=u.useRef({}),s=u.useRef(-1),a=u.useRef(!1),c=qe(e,pp),d=qe(e,fp),p=qe(e,Wu),h=qe(e,Lx),m=Ja(e,t),v=qe(e,dp),b=u.useCallback(()=>{var O,L;a.current=!1;const R=voe(e.current.state,e.current.instanceId),H=F=>{i.current[F.id]||(i.current[F.id]={sizes:{baseCenter:c},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:B,needsFirstMeasurement:G,sizes:N}=i.current[F.id];let z=c;const W=N.baseCenter;if(B)z=W;else if(n){const ee=n(k({},F,{densityFactor:R}));if(ee==="auto"){if(G){const ce=o?o(k({},F,{densityFactor:R})):c;z=ce!=null?ce:c}else z=W;a.current=!0,i.current[F.id].autoHeight=!0}else z=ee!=null?ee:c,i.current[F.id].needsFirstMeasurement=!1,i.current[F.id].autoHeight=!1}else i.current[F.id].needsFirstMeasurement=!1;const q=Object.entries(N).reduce((ee,[ce,oe])=>(/^base[A-Z]/.test(ce)&&(ee[ce]=oe),ee),{}),X=k({},q,{baseCenter:z});if(r){var le,Q;const ee=e.current.getRowIndexRelativeToVisibleRows(F.id),ce=r(k({},F,{isFirstVisible:ee===0,isLastVisible:ee===m.rows.length-1,indexRelativeToCurrentPage:ee}));X.spacingTop=(le=ce.top)!=null?le:0,X.spacingBottom=(Q=ce.bottom)!=null?Q:0}const ge=e.current.unstable_applyPipeProcessors("rowHeight",X,F);return i.current[F.id].sizes=ge,ge},j=[],A=m.rows.reduce((F,B)=>{j.push(F);let G=0,N=0;const z=H(B);return Object.entries(z).forEach(([W,q])=>{/^base[A-Z]/.test(W)?G=q>G?q:G:N+=q}),F+G+N},0);v==null||(O=v.top)==null||O.forEach(F=>{H(F)}),v==null||(L=v.bottom)==null||L.forEach(F=>{H(F)}),e.current.setState(F=>k({},F,{rowsMeta:{currentPageTotalHeight:A,positions:j}})),a.current||(s.current=1/0),e.current.forceUpdate()},[e,m.rows,c,n,r,o,v]),g=u.useCallback(O=>{const L=i.current[O];return L?L.sizes.baseCenter:c},[c]),x=O=>{var L;return(L=i.current[O])==null?void 0:L.sizes},C=u.useCallback((O,L)=>{i.current[O].sizes.baseCenter=L,i.current[O].isResized=!0,i.current[O].needsFirstMeasurement=!1,b()},[b]),S=u.useMemo(()=>zl(b),[b]),w=u.useCallback((O,L,R)=>{if(!i.current[O]||!i.current[O].autoHeight)return;const H=i.current[O].sizes[`base${fe(R)}`]!==L;i.current[O].needsFirstMeasurement=!1,i.current[O].sizes[`base${fe(R)}`]=L,H&&S()},[S]),E=u.useCallback(O=>{var L;return((L=i.current[O])==null?void 0:L.autoHeight)||!1},[]),P=u.useCallback(()=>s.current,[]),_=u.useCallback(O=>{a.current&&O>s.current&&(s.current=O)},[]),I=u.useCallback(()=>{i.current={},b()},[b]);u.useEffect(()=>{b()},[c,d,p,h,b]),Gx(e,"rowHeight",b),Gt(e,{unstable_getLastMeasuredRowIndex:P,unstable_setLastMeasuredRowIndex:_,unstable_rowHasAutoHeight:E,unstable_getRowHeight:g,unstable_getRowInternalSizes:x,unstable_setRowHeight:C,unstable_storeRowHeightMeasurement:w,resetRowHeights:I})},Fue=e=>{const t=u.useCallback((o={})=>e.current.unstable_applyPipeProcessors("exportState",{},o),[e]),n=u.useCallback(o=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:o}).callbacks.forEach(s=>{s()}),e.current.forceUpdate()},[e]);Gt(e,{exportState:t,restoreState:n})},Nue=e=>{const t=u.useRef({}),n=u.useCallback((c,d,p)=>{const h=t.current;h[c]||(h[c]={}),h[c][d]=p},[]),r=u.useCallback((c,d)=>{var p;return(p=t.current[c])==null?void 0:p[d]},[]),o=u.useCallback(c=>{const{columnIndex:d,rowId:p,minFirstColumnIndex:h,maxLastColumnIndex:m,columns:v}=c,b=v.length,g=v[d],x=typeof g.colSpan=="function"?g.colSpan(e.current.getCellParams(p,g.field)):g.colSpan;if(!x||x===1)return n(p,d,{spannedByColSpan:!1,cellProps:{colSpan:1,width:g.computedWidth}}),{colSpan:1};let C=g.computedWidth;for(let S=1;S<x;S+=1){const w=d+S;if(w>=h&&w<m){const E=v[w];C+=E.computedWidth,n(p,d+S,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(d+x,b-1),leftVisibleCellIndex:d})}n(p,d,{spannedByColSpan:!1,cellProps:{colSpan:x,width:C}})}return{colSpan:x}},[e,n]),i=u.useCallback(({rowId:c,minFirstColumn:d,maxLastColumn:p,columns:h})=>{for(let m=d;m<p;m+=1){const v=o({columnIndex:m,rowId:c,minFirstColumnIndex:d,maxLastColumnIndex:p,columns:h});v.colSpan>1&&(m+=v.colSpan-1)}},[o]);Gt(e,{unstable_getCellColSpanInfo:r,unstable_calculateColSpan:i});const a=u.useCallback(()=>{t.current={}},[]);Ne(e,"columnOrderChange",a)},Due=(e,t)=>{var n;const r=u.useCallback(o=>{var i;if(!((i=t.experimentalFeatures)!=null&&i.columnGrouping))return o;const s=HL(t.columnGroupingModel);return o.all.forEach(a=>{var c,d;const p=(c=s[a])!=null?c:[],h=o.lookup[a];yce(h)&&Rs(p,h==null?void 0:h.groupPath)||(o.lookup[a]=k({},o.lookup[a],{groupPath:(d=s[a])!=null?d:[]}))}),o},[t.columnGroupingModel,(n=t.experimentalFeatures)==null?void 0:n.columnGrouping]);cr(e,"hydrateColumns",r)},Bue=e=>{var t,n;const r=cce(void 0,e);return Due(r,e),Iue(r,e),mue(r),po(vue,r,e),po(hce,r,e),po(bce,r,e),po(fue,r,e),po((t=e.experimentalFeatures)!=null&&t.newEditingApi?uue:eue,r,e),po(Hce,r,e),po(_ue,r,e),po(Xce,r,e),po(zce,r,e),po(Cce,r,e),po(qce,r,e),po(Lue,r,e),po(fce,r,e),Wce(r,e),yue(r,e),mce(r,e),pue(r,e),gue(r),Nue(r),wce(r,e),((n=e.experimentalFeatures)!=null&&n.newEditingApi?due:tue)(r,e),Vce(r,e),Qce(r,e),jce(r,e),$ue(r,e),xce(r,e),Yce(r,e),Aue(r,e),Tue(r,e),pce(r),Ice(r),Tce(r,e),dce(r),Oue(r,e),Mue(r,e),Fue(r),r},zue={apiRef:void 0,disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleSelection:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,disableColumnResize:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid"},jue=100,Hue={autoHeight:!1,autoPageSize:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,columnBuffer:3,rowBuffer:3,columnThreshold:3,rowThreshold:3,density:jf.Standard,disableExtendRowFullWidth:!1,disableColumnFilter:!1,disableColumnMenu:!1,disableColumnSelector:!1,disableDensitySelector:!1,disableMultipleColumnsFiltering:!1,disableMultipleSelection:!1,disableMultipleColumnsSorting:!1,disableSelectionOnClick:!1,disableVirtualization:!1,disableIgnoreModificationsIfProcessingProps:!1,editMode:_r.Cell,filterMode:ou.client,headerHeight:56,hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,logger:console,logLevel:"error",pagination:!1,paginationMode:ou.client,rowHeight:52,rowsPerPageOptions:[25,50,100],rowSpacingType:"margin",showCellRightBorder:!1,showColumnRightBorder:!1,sortingOrder:["asc","desc",null],sortingMode:ou.client,throttleRowsMs:0,disableColumnReorder:!1,disableColumnResize:!1,keepNonExistentRowsSelected:!1,keepColumnPositionIfDraggedOutside:!1},Vue=e=>{if(e.pageSize>jue)throw new Error("'props.pageSize' cannot exceed 100 in DataGrid.");const t=et({props:e,name:"MuiDataGrid"}),n=u.useMemo(()=>k({},bue,t.localeText),[t.localeText]),r=u.useMemo(()=>{const o=t.components;if(!o)return k({},j_);const i={};return Object.entries(j_).forEach(([s,a])=>{i[s]=o[s]===void 0?a:o[s]}),i},[t.components]);return u.useMemo(()=>k({},Hue,t,{localeText:n,components:r},zue),[t,n,r])},Uue=["className"],Wue=e=>{const{classes:t}=e;return _e({root:["virtualScroller"]},Lt,t)},Gue=ie("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({overflow:"auto",position:"relative","@media print":{overflow:"hidden"}}),Kue=u.forwardRef(function(t,n){const{className:r}=t,o=se(t,Uue),i=Ye(),s=Wue(i);return T.jsx(Gue,k({ref:n,className:me(s.root,r),ownerState:i},o))}),que=["className","style"],Yue=e=>{const{classes:t,overflowedContent:n}=e;return _e({root:["virtualScrollerContent",n&&"virtualScrollerContent--overflowed"]},Lt,t)},Xue=ie("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),Que=u.forwardRef(function(t,n){const{className:r,style:o}=t,i=se(t,que),s=Ye(),a=k({},s,{overflowedContent:!s.autoHeight&&(o==null?void 0:o.minHeight)==="auto"}),c=Yue(a);return T.jsx(Xue,k({ref:n,className:me(c.root,r),ownerState:a,style:o},i))}),Jue=["className"],Zue=e=>{const{classes:t}=e;return _e({root:["virtualScrollerRenderZone"]},Lt,t)},ede=ie("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),tde=u.forwardRef(function(t,n){const{className:r}=t,o=se(t,Jue),i=Ye(),s=Zue(i);return T.jsx(ede,k({ref:n,className:me(s.root,r),ownerState:i},o))}),nde=["style"];function iu(e,t,n=0,r=t.length){if(t.length<=0)return-1;if(n>=r)return n;const o=n+Math.floor((r-n)/2),i=t[o];return e<=i?iu(e,t,n,o):iu(e,t,o+1,r)}function rde(e,t,n){let r=1;for(;n<t.length&&t[n]<e;)n+=r,r*=2;return iu(e,t,Math.floor(n/2),Math.min(n,t.length))}const fl=({firstIndex:e,lastIndex:t,buffer:n,minFirstIndex:r,maxLastIndex:o})=>[$u(e-n,r,o),$u(t+n,r,o)],ode=(e,t)=>e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex,ide=e=>{var t,n;const r=yt(),o=Ye(),i=qe(r,Mr),{ref:s,disableVirtualization:a,onRenderZonePositioning:c,renderZoneMinColumnIndex:d=0,renderZoneMaxColumnIndex:p=i.length,getRowProps:h}=e,m=qe(r,za),v=qe(r,Uv),b=qe(r,pp),g=qe(r,wi),x=qe(r,ug),C=qe(r,Wf),S=qe(r,_n),w=qe(r,pg),E=Ja(r,o),P=u.useRef(null),_=u.useRef(null),I=Bt(s,_),[M,O]=u.useState(null),L=u.useRef(M),R=u.useRef({top:0,left:0}),[H,j]=u.useState({width:null,height:null}),A=u.useRef(v),F=u.useCallback(oe=>{var de,be;const we=r.current.unstable_getLastMeasuredRowIndex();let $e=we===1/0;(de=E.range)!=null&&de.lastRowIndex&&!$e&&($e=we>=E.range.lastRowIndex);const Ve=$u(we-(((be=E.range)==null?void 0:be.firstRowIndex)||0),0,C.positions.length);return $e||C.positions[Ve]>=oe?iu(oe,C.positions):rde(oe,C.positions,Ve)},[r,(t=E.range)==null?void 0:t.firstRowIndex,(n=E.range)==null?void 0:n.lastRowIndex,C.positions]),B=u.useCallback(()=>{if(a)return{firstRowIndex:0,lastRowIndex:E.rows.length,firstColumnIndex:0,lastColumnIndex:i.length};const{top:oe,left:de}=R.current,be=Math.min(F(oe),C.positions.length-1),we=o.autoHeight?be+E.rows.length:F(oe+H.height);let $e=!1,Ve=0,De=m.length;const[re,Ae]=fl({firstIndex:be,lastIndex:we,minFirstIndex:0,maxLastIndex:E.rows.length,buffer:o.rowBuffer});for(let ve=re;ve<Ae&&!$e;ve+=1){const He=E.rows[ve];$e=r.current.unstable_rowHasAutoHeight(He.id)}return $e||(Ve=iu(de,m),De=iu(de+H.width,m)),{firstRowIndex:be,lastRowIndex:we,firstColumnIndex:Ve,lastColumnIndex:De}},[a,F,C.positions.length,o.autoHeight,o.rowBuffer,E.rows,m,i.length,r,H]);vn(()=>{a?P.current.style.transform="translate3d(0px, 0px, 0px)":(_.current.scrollLeft=0,_.current.scrollTop=0)},[a]),vn(()=>{j({width:_.current.clientWidth,height:_.current.clientHeight})},[C.currentPageTotalHeight]);const G=u.useCallback(oe=>{j({width:oe.width,height:oe.height})},[]);Ne(r,"resize",G);const N=u.useCallback(oe=>{const[de,be]=fl({firstIndex:oe.firstRowIndex,lastIndex:oe.lastRowIndex,minFirstIndex:0,maxLastIndex:E.rows.length,buffer:o.rowBuffer}),[we]=fl({firstIndex:oe.firstColumnIndex,lastIndex:oe.lastColumnIndex,minFirstIndex:d,maxLastIndex:p,buffer:o.columnBuffer}),$e=lw({firstColumnToRender:we,apiRef:r,firstRowToRender:de,lastRowToRender:be,visibleRows:E.rows}),Ve=Wf(r.current.state).positions[de],De=za(r)[$e];P.current.style.transform=`translate3d(${De}px, ${Ve}px, 0px)`,typeof c=="function"&&c({top:Ve,left:De})},[r,E.rows,c,d,p,o.columnBuffer,o.rowBuffer]),z=u.useCallback(oe=>{if(L.current&&ode(oe,L.current)){N(oe);return}O(oe),N(oe);const[de,be]=fl({firstIndex:oe.firstRowIndex,lastIndex:oe.lastRowIndex,minFirstIndex:0,maxLastIndex:E.rows.length,buffer:o.rowBuffer});r.current.publishEvent("renderedRowsIntervalChange",{firstRowToRender:de,lastRowToRender:be}),L.current=oe},[r,O,L,E.rows.length,o.rowBuffer,N]);vn(()=>{if(H.width==null)return;const oe=B();z(oe);const{top:de,left:be}=R.current,we={top:de,left:be,renderContext:oe};r.current.publishEvent("rowsScroll",we)},[r,B,H.width,z]);const W=oe=>{const{scrollTop:de,scrollLeft:be}=oe.currentTarget;if(R.current.top=de,R.current.left=be,be<0||de<0||!L.current)return;const we=a?L.current:B(),$e=Math.abs(we.firstRowIndex-L.current.firstRowIndex),Ve=Math.abs(we.lastRowIndex-L.current.lastRowIndex),De=Math.abs(we.firstColumnIndex-L.current.firstColumnIndex),re=Math.abs(we.lastColumnIndex-L.current.lastColumnIndex),Ae=$e>=o.rowThreshold||Ve>=o.rowThreshold||De>=o.columnThreshold||re>=o.columnThreshold||A.current!==v;r.current.publishEvent("rowsScroll",{top:de,left:be,renderContext:Ae?we:L.current},oe),Ae&&(Fl.flushSync(()=>{z(we)}),A.current=v)},q=oe=>{r.current.publishEvent("virtualScrollerWheel",{},oe)},X=oe=>{r.current.publishEvent("virtualScrollerTouchMove",{},oe)},le=(oe={renderContext:M})=>{const{renderContext:de,minFirstColumn:be=d,maxLastColumn:we=p,availableSpace:$e=H.width,rowIndexOffset:Ve=0,position:De="center"}=oe;if(!de||$e==null)return null;const re=a?0:o.rowBuffer,Ae=a?0:o.columnBuffer,[ve,He]=fl({firstIndex:de.firstRowIndex,lastIndex:de.lastRowIndex,minFirstIndex:0,maxLastIndex:E.rows.length,buffer:re}),Xe=[];if(oe.rows)oe.rows.forEach(Ue=>{Xe.push(Ue),r.current.unstable_calculateColSpan({rowId:Ue.id,minFirstColumn:be,maxLastColumn:we,columns:i})});else{if(!E.range)return null;for(let Ue=ve;Ue<He;Ue+=1){const ue=E.rows[Ue];Xe.push(ue),r.current.unstable_calculateColSpan({rowId:ue.id,minFirstColumn:be,maxLastColumn:we,columns:i})}}const[ft,ze]=fl({firstIndex:de.firstColumnIndex,lastIndex:de.lastColumnIndex,minFirstIndex:be,maxLastIndex:we,buffer:Ae}),pt=lw({firstColumnToRender:ft,apiRef:r,firstRowToRender:ve,lastRowToRender:He,visibleRows:E.rows}),ot=i.slice(pt,ze),ct=[];for(let Ue=0;Ue<Xe.length;Ue+=1){var vt,ut;const{id:ue,model:J}=Xe[Ue],Oe=ve+Ue===E.rows.length-1,Me=r.current.unstable_rowHasAutoHeight(ue)?"auto":r.current.unstable_getRowHeight(ue);let Je;w[ue]==null?Je=!1:Je=r.current.isRowSelectable(ue),ct.push(T.jsx(o.components.Row,k({row:J,rowId:ue,rowHeight:Me,cellFocus:g,cellTabIndex:x,editRowsState:S,renderedColumns:ot,visibleColumns:i,firstColumnToRender:pt,lastColumnToRender:ze,selected:Je,index:Ve+((E==null||(vt=E.range)==null?void 0:vt.firstRowIndex)||0)+ve+Ue,containerWidth:$e,isLastVisible:Oe,position:De},typeof h=="function"?h(ue,J):{},(ut=o.componentsProps)==null?void 0:ut.row),ue))}return ct},Q=H.width&&v>H.width,ge=u.useMemo(()=>{const oe=Math.max(C.currentPageTotalHeight,1);let de=!1;_!=null&&_.current&&oe<=(_==null?void 0:_.current.clientHeight)&&(de=!0);const be={width:Q?v:"auto",height:oe,minHeight:de?"100%":"auto"};return o.autoHeight&&E.rows.length===0&&(be.height=2*b),be},[_,v,C.currentPageTotalHeight,E.rows.length,Q,o.autoHeight,b]);u.useEffect(()=>{r.current.publishEvent("virtualScrollerContentSizeChange")},[r,ge]),o.autoHeight&&E.rows.length===0&&(ge.height=2*b);const ee={};Q||(ee.overflowX="hidden"),o.autoHeight&&(ee.overflowY="hidden");const ce=u.useCallback(()=>L.current,[]);return r.current.unstable_getRenderContext=ce,{renderContext:M,updateRenderZonePosition:N,getRows:le,getRootProps:(oe={})=>{let{style:de={}}=oe,be=se(oe,nde);return k({ref:I,onScroll:W,onWheel:q,onTouchMove:X,style:k({},de,ee)},be)},getContentProps:({style:oe={}}={})=>({style:k({},oe,ge)}),getRenderZoneProps:()=>({ref:P})}},sde=["className","disableVirtualization"],lde=u.forwardRef(function(t,n){const{className:r,disableVirtualization:o}=t,i=se(t,sde),{getRootProps:s,getContentProps:a,getRenderZoneProps:c,getRows:d}=ide({ref:n,disableVirtualization:o});return T.jsx(Kue,k({className:r},s(i),{children:T.jsx(Que,k({},a(),{children:T.jsx(tde,k({},c(),{children:d()}))}))}))}),ade=e=>{const{classes:t,headerAlign:n,isDragging:r,showRightBorder:o,showColumnBorder:i,groupId:s}=e;return _e({root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",o&&"withBorder",i&&"columnHeader--showColumnBorder",s===null?"columnHeader--emptyGroup":"columnHeader--filledGroup"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]},Lt,t)};function cde(e){var t,n;const{groupId:r,width:o,depth:i,maxDepth:s,fields:a,height:c,colIndex:d,isLastColumn:p,extendRowFullWidth:h}=e,m=Ye(),v=yt(),b=qe(v,zL),{hasScrollX:g,hasScrollY:x}=(t=v.current.getRootDimensions())!=null?t:{hasScrollX:!1,hasScrollY:!1},C=r?b[r]:{},{headerName:S=r!=null?r:"",description:w="",headerAlign:E=void 0}=C;let P;const _=r&&((n=b[r])==null?void 0:n.renderHeaderGroup),I={groupId:r,headerName:S,description:w,depth:i,maxDepth:s,fields:a,colIndex:d,isLastColumn:p};r&&_&&(P=_(I));const O=p?!(p&&g&&!x)&&!h:m.showColumnRightBorder,L=m.showColumnRightBorder,R=k({},e,{classes:m.classes,showRightBorder:O,showColumnBorder:L,headerAlign:E,depth:i,isDragging:!1}),H=S!=null?S:r,j=Tn(),A=r===null?`empty-group-cell-${j}`:r,F=ade(R),B=typeof C.headerClassName=="function"?C.headerClassName(I):C.headerClassName;return T.jsx(SL,{classes:F,columnMenuOpen:!1,colIndex:d,height:c,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:-1,isDraggable:!1,headerComponent:P,headerClassName:B,description:w,elementId:A,width:o,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:H,"aria-colspan":a.length,"data-fields":`|-${a.join("-|-")}-|`,disableHeaderSeparator:!0})}const V_=ie("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})(()=>({display:"flex"}));function ude(e){return!!e.target}const dde=e=>{const{innerRef:t,minColumnIndex:n=0}=e,[r,o]=u.useState(""),[i,s]=u.useState(""),a=yt(),c=qe(a,Mr),d=qe(a,za),p=qe(a,fL),h=qe(a,ug),m=qe(a,koe),v=qe(a,aL),b=qe(a,Dx),g=qe(a,hp),x=qe(a,moe),C=qe(a,aoe),S=qe(a,BL),w=Ye(),E=u.useRef(null),P=Bt(t,E),[_,I]=u.useState(null),M=u.useRef(_),O=u.useRef(0),L=Ja(a,w);u.useEffect(()=>{a.current.columnHeadersContainerElementRef.current.scrollLeft=0},[a]);const R=u.useRef(rL(Ele,{equalityCheck:(le,Q)=>["firstColumnIndex","minColumnIndex","columnBuffer"].every(ge=>le[ge]===Q[ge])})),H=u.useCallback(le=>{const[Q,ge]=fl({firstIndex:le.firstRowIndex,lastIndex:le.lastRowIndex,minFirstIndex:0,maxLastIndex:L.rows.length,buffer:w.rowBuffer}),ee=R.current({firstColumnIndex:le.firstColumnIndex,minColumnIndex:n,columnBuffer:w.columnBuffer,firstRowToRender:Q,lastRowToRender:ge,apiRef:a,visibleRows:L.rows}),ce=ee>0?O.current-d[ee]:O.current;E.current.style.transform=`translate3d(${-ce}px, 0px, 0px)`},[d,n,w.columnBuffer,a,L.rows,w.rowBuffer]);u.useLayoutEffect(()=>{_&&H(_)},[_,H]);const j=u.useCallback(({left:le,renderContext:Q=null},ge)=>{var ee,ce;if(!E.current||O.current===le&&((ee=M.current)==null?void 0:ee.firstColumnIndex)===(Q==null?void 0:Q.firstColumnIndex)&&((ce=M.current)==null?void 0:ce.lastColumnIndex)===(Q==null?void 0:Q.lastColumnIndex))return;O.current=le;let oe=!1;Q!==M.current||!M.current?(ude(ge)?(Fl.flushSync(()=>{I(Q)}),oe=!0):I(Q),M.current=Q):oe=!0,Q&&oe&&H(Q)},[H]),A=u.useCallback(le=>s(le.field),[]),F=u.useCallback(()=>s(""),[]),B=u.useCallback(le=>o(le.field),[]),G=u.useCallback(()=>o(""),[]);Ne(a,"columnResizeStart",A),Ne(a,"columnResizeStop",F),Ne(a,"columnHeaderDragStart",B),Ne(a,"columnHeaderDragEnd",G),Ne(a,"rowsScroll",j);const N=le=>{const{renderContext:Q=_,minFirstColumn:ge=n,maxLastColumn:ee=c.length}=le||{};if(!Q)return null;const[ce,oe]=fl({firstIndex:Q.firstRowIndex,lastIndex:Q.lastRowIndex,minFirstIndex:0,maxLastIndex:L.rows.length,buffer:w.rowBuffer}),de=R.current({firstColumnIndex:Q.firstColumnIndex,minColumnIndex:ge,columnBuffer:w.columnBuffer,apiRef:a,firstRowToRender:ce,lastRowToRender:oe,visibleRows:L.rows}),be=Math.min(Q.lastColumnIndex+w.columnBuffer,ee);return{renderedColumns:c.slice(de,be),firstColumnToRender:de,lastColumnToRender:be,minFirstColumn:ge,maxLastColumn:ee}},z=(le,Q={})=>{const ge=N(le);if(ge==null)return null;const{renderedColumns:ee,firstColumnToRender:ce}=ge,oe=[];for(let de=0;de<ee.length;de+=1){const be=ee[de],we=ce+de,$e=we===0,Ve=!(p===null&&h===null),De=p!==null&&p.field===be.field||$e&&!Ve?0:-1,re=m!==null&&m.field===be.field,Ae=S.open&&S.field===be.field;oe.push(T.jsx(yse,k({},C[be.field],{columnMenuOpen:Ae,filterItemsCounter:x[be.field]&&x[be.field].length,headerHeight:v,isDragging:be.field===r,column:be,colIndex:we,isResizing:i===be.field,isLastColumn:we===c.length-1,extendRowFullWidth:!w.disableExtendRowFullWidth,hasFocus:re,tabIndex:De},Q),be.field))}return T.jsx(V_,{role:"row","aria-rowindex":b+1,ownerState:w,children:oe})},W=(le=[],Q)=>le.slice(0,Q+1),q=le=>{if(b===0)return null;const Q=N(le);if(Q==null||Q.renderedColumns.length===0)return null;const{renderedColumns:ge,firstColumnToRender:ee,lastColumnToRender:ce,maxLastColumn:oe}=Q,de=[],be=[];for(let ot=0;ot<b;ot+=1){var we,$e,Ve;const ct=[];let vt=0,ut=ee-1;const Ue=(we=c[ee])==null||($e=we.groupPath)==null?void 0:$e[ot],ue=W((Ve=c[ee])==null?void 0:Ve.groupPath,ot);for(;Ue!==null&&ut>=n&&(De=c[ut])!=null&&De.groupPath&&Rs(W((re=c[ut])==null?void 0:re.groupPath,ot),ue);){var De,re,Ae;const Me=c[ut];if(vt+=(Ae=Me.computedWidth)!=null?Ae:0,ct.length===0){var ve;ct.push({width:(ve=Me.computedWidth)!=null?ve:0,fields:[Me.field],groupId:Ue,groupParents:ue,colIndex:ut})}else{var He;ct[0].width+=(He=Me.computedWidth)!=null?He:0,ct[0].fields.push(Me.field),ct[0].colIndex=ut}ut-=1}const J=ge.reduce((Me,Je,wt)=>{var It;const Kt=Me[Me.length-1];if(Je.groupPath&&Je.groupPath.length>ot){var Vn;if(Kt&&Kt.groupId===Je.groupPath[ot]){var Rr;return[...Me.slice(0,Me.length-1),k({},Kt,{width:Kt.width+((Rr=Je.computedWidth)!=null?Rr:0),fields:[...Kt.fields,Je.field]})]}return[...Me,{groupId:Je.groupPath[ot],groupParents:W(Je.groupPath,ot),width:(Vn=Je.computedWidth)!=null?Vn:0,fields:[Je.field],colIndex:ee+wt}]}if(Kt&&Kt.groupId===null&&Rs(W(Je.groupPath,ot),Kt.groupParents)){var er;return[...Me.slice(0,Me.length-1),k({},Kt,{width:Kt.width+((er=Je.computedWidth)!=null?er:0),fields:[...Kt.fields,Je.field]})]}return[...Me,{groupId:null,groupParents:W(Je.groupPath,ot),width:(It=Je.computedWidth)!=null?It:0,fields:[Je.field],colIndex:ee+wt}]},ct);ut=ce;const Oe=J[J.length-1].groupId;for(;Oe!==null&&ut<oe&&(Xe=c[ut])!=null&&Xe.groupPath&&((ft=c[ut])==null||(ze=ft.groupPath)==null?void 0:ze[ot])===Oe;){var Xe,ft,ze,pt;const Me=c[ut];J[J.length-1].width+=(pt=Me.computedWidth)!=null?pt:0,J[J.length-1].fields.push(Me.field),ut+=1}be.push({leftOverflow:vt,elements:[...J]})}return be.forEach((ot,ct)=>{de.push(T.jsx(V_,{style:{height:`${v}px`,transform:`translateX(-${ot.leftOverflow}px)`},role:"row","aria-rowindex":ct+1,ownerState:w,children:ot.elements.map(({groupId:vt,width:ut,fields:Ue,colIndex:ue},J)=>T.jsx(cde,{groupId:vt,width:ut,fields:Ue,colIndex:ue,depth:ct,isLastColumn:ue===c.length-Ue.length,extendRowFullWidth:!w.disableExtendRowFullWidth,maxDepth:be.length,height:v},J))},ct))}),de},X={minHeight:g,maxHeight:g,lineHeight:`${v}px`};return{renderContext:_,getColumnHeaders:z,getColumnGroupHeaders:q,isDragging:!!r,getRootProps:(le={})=>k({style:X},le),getInnerProps:()=>({ref:P,role:"rowgroup"})}},fde=["className"],pde=e=>{const{classes:t}=e;return _e({root:["columnHeaders"]},Lt,t)},hde=ie("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})(({theme:e})=>({position:"absolute",top:0,left:0,right:0,overflow:"hidden",display:"flex",alignItems:"center",boxSizing:"border-box",borderBottom:`1px solid ${e.palette.mode==="light"?Ds(rt(e.palette.divider,1),.88):Ns(rt(e.palette.divider,1),.68)}`,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius})),mde=u.forwardRef(function(t,n){const{className:r}=t,o=se(t,fde),i=Ye(),s=pde(i);return T.jsx(hde,k({ref:n,className:me(r,s.root),ownerState:i},o))}),gde=["isDragging","className"],vde=e=>{const{isDragging:t,hasScrollX:n,classes:r}=e;return _e({root:["columnHeadersInner",t&&"columnHeaderDropZone",n&&"columnHeadersInner--scrollable"]},Lt,r)},yde=ie("div",{name:"MuiDataGrid",slot:"columnHeadersInner",overridesResolver:(e,t)=>[{[`&.${te.columnHeaderDropZone}`]:t.columnHeaderDropZone},t.columnHeadersInner]})(()=>({display:"flex",alignItems:"flex-start",flexDirection:"column",[`&.${te.columnHeaderDropZone} .${te.columnHeaderDraggableContainer}`]:{cursor:"move"},[`&.${te["columnHeadersInner--scrollable"]} .${te.columnHeader}:last-child`]:{borderRight:"none"}})),bde=u.forwardRef(function(t,n){var r,o;const{isDragging:i,className:s}=t,a=se(t,gde),c=yt(),d=Ye(),p=k({},d,{isDragging:i,hasScrollX:(r=(o=c.current.getRootDimensions())==null?void 0:o.hasScrollX)!=null?r:!1}),h=vde(p);return T.jsx(yde,k({ref:n,className:me(s,h.root),ownerState:p},a))}),wde=["innerRef","className"],Cde=u.forwardRef(function(t,n){const{innerRef:r}=t,o=se(t,wde),{isDragging:i,getRootProps:s,getInnerProps:a,getColumnHeaders:c,getColumnGroupHeaders:d}=dde({innerRef:r});return T.jsxs(mde,k({ref:n},s(o),{children:[T.jsx(M_,{scrollDirection:"left"}),T.jsxs(bde,k({isDragging:i},a(),{children:[d(),c()]})),T.jsx(M_,{scrollDirection:"right"})]}))}),ZL=u.forwardRef(function(t,n){const r=Vue(t),o=Bue(r);return T.jsx(qae,{apiRef:o,props:r,children:T.jsx(Die,{className:r.className,style:r.style,sx:r.sx,ref:n,children:T.jsxs(xoe,{children:[T.jsx(Eoe,{}),T.jsx(woe,{ColumnHeadersComponent:Cde,VirtualScrollerComponent:lde}),T.jsx(Soe,{})]})})})}),Gu=u.memo(ZL);ZL.propTypes={"aria-label":pe.string,"aria-labelledby":pe.string,autoHeight:pe.bool,autoPageSize:pe.bool,cellModesModel:pe.object,checkboxSelection:pe.bool,classes:pe.object,columnBuffer:pe.number,columnGroupingModel:pe.arrayOf(pe.object),columns:q0(pe.array.isRequired),columnThreshold:pe.number,columnTypes:pe.object,columnVisibilityModel:pe.object,components:pe.object,componentsProps:pe.object,density:pe.oneOf(["comfortable","compact","standard"]),disableColumnFilter:pe.bool,disableColumnMenu:pe.bool,disableColumnSelector:pe.bool,disableDensitySelector:pe.bool,disableExtendRowFullWidth:pe.bool,disableIgnoreModificationsIfProcessingProps:pe.bool,disableSelectionOnClick:pe.bool,disableVirtualization:pe.bool,editMode:pe.oneOf(["cell","row"]),editRowsModel:pe.object,error:pe.any,experimentalFeatures:pe.shape({columnGrouping:pe.bool,newEditingApi:pe.bool,preventCommitWhileValidating:pe.bool,warnIfFocusStateIsNotSynced:pe.bool}),filterMode:pe.oneOf(["client","server"]),filterModel:pe.shape({items:pe.arrayOf(pe.shape({columnField:pe.string.isRequired,id:pe.oneOfType([pe.number,pe.string]),operatorValue:pe.string,value:pe.any})).isRequired,linkOperator:pe.oneOf(["and","or"]),quickFilterLogicOperator:pe.oneOf(["and","or"]),quickFilterValues:pe.array}),getCellClassName:pe.func,getDetailPanelContent:pe.func,getEstimatedRowHeight:pe.func,getRowClassName:pe.func,getRowHeight:pe.func,getRowId:pe.func,getRowSpacing:pe.func,headerHeight:pe.number,hideFooter:pe.bool,hideFooterPagination:pe.bool,hideFooterSelectedRowCount:pe.bool,initialState:pe.object,isCellEditable:pe.func,isRowSelectable:pe.func,keepNonExistentRowsSelected:pe.bool,loading:pe.bool,localeText:pe.object,logger:pe.shape({debug:pe.func.isRequired,error:pe.func.isRequired,info:pe.func.isRequired,warn:pe.func.isRequired}),logLevel:pe.oneOf(["debug","error","info","warn",!1]),nonce:pe.string,onCellClick:pe.func,onCellDoubleClick:pe.func,onCellEditCommit:pe.func,onCellEditStart:pe.func,onCellEditStop:pe.func,onCellFocusOut:pe.func,onCellKeyDown:pe.func,onCellModesModelChange:pe.func,onColumnHeaderClick:pe.func,onColumnHeaderDoubleClick:pe.func,onColumnHeaderEnter:pe.func,onColumnHeaderLeave:pe.func,onColumnHeaderOut:pe.func,onColumnHeaderOver:pe.func,onColumnOrderChange:pe.func,onColumnVisibilityChange:pe.func,onColumnVisibilityModelChange:pe.func,onEditCellPropsChange:pe.func,onEditRowsModelChange:pe.func,onError:pe.func,onFilterModelChange:pe.func,onMenuClose:pe.func,onMenuOpen:pe.func,onPageChange:pe.func,onPageSizeChange:pe.func,onPreferencePanelClose:pe.func,onPreferencePanelOpen:pe.func,onProcessRowUpdateError:pe.func,onResize:pe.func,onRowClick:pe.func,onRowDoubleClick:pe.func,onRowEditCommit:pe.func,onRowEditStart:pe.func,onRowEditStop:pe.func,onRowModesModelChange:pe.func,onSelectionModelChange:pe.func,onSortModelChange:pe.func,onStateChange:pe.func,page:pe.number,pageSize:q0(pe.number),pagination:e=>e.pagination===!1?new Error(["MUI: `<DataGrid pagination={false} />` is not a valid prop.","Infinite scrolling is not available in the MIT version.","","You need to upgrade to DataGridPro or DataGridPremium component to disable the pagination."].join(`
|
|
340
|
+
`)):null,paginationMode:pe.oneOf(["client","server"]),processRowUpdate:pe.func,rowBuffer:pe.number,rowCount:pe.number,rowHeight:pe.number,rowModesModel:pe.object,rows:pe.arrayOf(pe.object).isRequired,rowSpacingType:pe.oneOf(["border","margin"]),rowsPerPageOptions:pe.arrayOf(pe.number),rowThreshold:pe.number,scrollbarSize:pe.number,selectionModel:q0(pe.oneOfType([pe.number,pe.string,pe.array])),showCellRightBorder:pe.bool,showColumnRightBorder:pe.bool,sortingMode:pe.oneOf(["client","server"]),sortingOrder:pe.arrayOf(pe.oneOf(["asc","desc"])),sortModel:pe.arrayOf(pe.shape({field:pe.string.isRequired,sort:pe.oneOf(["asc","desc"])})),sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object])};function xde(){return u.createElement(u.Fragment,{},u.createElement(Ede),u.createElement(kde))}const Sde=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;function Ede(){const{data:e,element:t}=Xo("get_status"),{data:n}=Hre("get_connection_stats");e&&n&&Object.assign(e,n);const r=Pu("md"),o=Pu("sm");return t||u.createElement(nt,{display:"flex",flexWrap:"wrap",gap:"1em",mb:2},r&&i("started"),r&&i("http",{label:"HTTP",render:s}),r&&i("https",{label:"HTTPS",render:s}),o&&i("connections"),i("sent",{render:Na,minWidth:"4em"}),o&&i("got",{render:Na,minWidth:"4em"}),i("outSpeed",{label:"Output speed",render:eA}));function i(a,{label:c,minWidth:d,render:p}={}){let h=Ot.get(e,a);if(h===void 0)return null;typeof h=="string"&&Sde.test(h)&&(h=new Date(h).toLocaleString());let m;return p&&(h=p(h),Array.isArray(h)&&([h,m]=h)),c||(c=Ot.capitalize(a.replaceAll("_"," "))),u.createElement(xv,{variant:"filled",color:m,label:u.createElement(u.Fragment,{},u.createElement("b",{},c),": ",u.createElement("span",{style:{display:"inline-block",minWidth:d}},h))})}function s(a){return a.listening?["port "+a.port,"success"]:a.error?[a.error,"error"]:"off"}}function kde(){const{list:e,error:t,props:n}=Xa("get_connections"),[r,o]=u.useState(!0),[i,s]=u.useState(!1),a=u.useMemo(()=>e==null?void 0:e.filter(d=>!r||d.path).map((d,p)=>Ie({id:p},d)),[!i&&e,r]),c=u.useMemo(()=>[{field:"ip",headerName:"Address",flex:1,maxWidth:400,valueGetter:({row:d,value:p})=>(d.v===6?`[${p}]`:p)+" :"+d.port},{field:"user",headerName:"User"},{field:"started",headerName:"Started",type:"dateTime",width:130,valueFormatter:({value:d})=>new Date(d).toLocaleTimeString()},{field:"path",headerName:"File",flex:1,renderCell({value:d,row:p}){if(!d)return;if(p.archive)return u.createElement(u.Fragment,{},u.createElement(ate,{sx:{mr:1}}),p.archive,u.createElement(nt,{ml:2,color:"text.secondary"},d));const h=d==null?void 0:d.lastIndexOf("/");return u.createElement(u.Fragment,{},p.uploadProgress!==void 0&&u.createElement(GO,{icon:Lv,progress:p.uploadProgress,sx:{mr:1}}),d.slice(h+1),h>0&&u.createElement(nt,{ml:2,color:"text.secondary"},d.slice(0,h)))}},{field:"v",headerName:"Protocol",align:"center",hide:!0,renderCell:({value:d,row:p})=>u.createElement(u.Fragment,{},"IPv"+d,p.secure&&ho(xO,"HTTPS",{opacity:.5}))},{field:"outSpeed",headerName:"Speed",type:"number",renderCell:({value:d,row:p})=>eA(Math.max(d||0,p.inSpeed||0))},{field:"sent",headerName:"Total",type:"number",renderCell:({value:d,row:p})=>Na(Math.max(d||0,p.got||0))},{field:"agent",headerName:"Agent"},{field:"Actions",width:80,align:"center",hideSortIcons:!0,disableColumnMenu:!0,renderCell({row:d}){return u.createElement("div",{},u.createElement(xn,{icon:os,title:"Disconnect",onClick:()=>Pt("disconnect",Ot.pick(d,["ip","port"]))}),u.createElement(xn,{icon:Qee,title:"Block IP",disabled:d.ip===(n==null?void 0:n.you),onClick:()=>Pde(d.ip)}))}}],[n]);return u.createElement(u.Fragment,{},u.createElement(nt,{display:"flex",alignItems:"center"},u.createElement(zs,{fullWidth:!1,value:r,onChange:o,options:{"Show only files":!0,"Show all connections":!1}}),u.createElement(nt,{flex:1}),u.createElement(xn,{title:i?"Resume":"Pause",icon:i?lx:Cte,sx:{mr:1},onClick(){s(!i)}})),t?u.createElement(ko,{severity:"error"},t):u.createElement(Gu,{rows:a,columns:c,localeText:r?{noRowsLabel:"No downloads at the moment"}:void 0}))}function Pde(e){return bre("block",t=>[...t,{ip:e}])}function eA(e){return e?Na(e*1e3,{post:"B/s",k:1e3,digits:1}):""}function Ide(){const e=si({title:"Add files or folders",dialogProps:{sx:{minWidth:"min(90vw, 40em)",minHeight:"calc(100vh - 9em)"}},Content(){const t=tA();return u.createElement(u.Fragment,{},u.createElement(nt,{sx:{typography:"body1",px:1,py:2}},"Selected elements will be added under "+(t||"(home)")),u.createElement(XA,{onSelect(r){return it(this,null,function*(){const o=ju(yield Promise.all(r.map(i=>Pt("add_vfs",{parent:t,source:i}).then(()=>null,s=>[i,s.message]))));o.length&&(yield Dn(u.createElement(nt,{},"Some elements have been rejected",u.createElement("ul",{},o.map(([i,s])=>u.createElement("li",{key:i},i,": ",s)))),"error")),Va(),e()})}}))}})}function _de(){return it(this,null,function*(){try{const e=yield vre("Enter folder name");if(!e)return;const t=tA();yield Pt("add_vfs",{parent:t,name:e}),Va([(t||"")+"/"+e]),yield Dn(`Folder "${e}" created`,"success")}catch(e){yield Dn(e)}})}function tA(){let e=Cn.selectedFiles[0];return!e||e.isRoot?"":(e.type!=="folder"&&(e=e.parent),(e==null?void 0:e.id)||"")}function nA(n){var r=n,{items:e}=r,t=sn(r,["items"]);const[o,i]=Yr.useState(),s=Boolean(o),a=u.useCallback(()=>i(void 0),[]);return u.createElement(Yr.Fragment,{},u.createElement(lr,Ie({"aria-controls":s?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":s?"true":void 0,onClick:c=>{i(c.currentTarget)}},t)),u.createElement(cO,{anchorEl:o,open:s,onClose:a,MenuListProps:{"aria-labelledby":"basic-button"},children:e.map((c,d)=>u.createElement(ar,Tt(Ie({key:d},c),{onClick(){var p;a(),(p=c.onClick)==null||p.apply(this,arguments)}})))}))}function $de(){return u.createElement(nt,{display:"flex",gap:2,mb:2,sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper",width:"fit-content"}},u.createElement(nA,{variant:"contained",startIcon:u.createElement(ix),items:[{children:"from disk",onClick:Ide},{children:"virtual folder",onClick:_de}]},"Add"),Sx(()=>Va()))}function Ki(e){typeof e!="string"&&(e=e[0]);const t=/([`*/_])(.+)\1|(\n)/g,n=[];let r=0,o;for(;o=t.exec(e);){if(n.push(e.slice(r,o.index)),o[3])n.push(u.createElement("br"));else{const i={"`":"code","*":"b","/":"i",_:"u"}[o[1]];if(!i)throw Error("should never happen");n.push(u.createElement(i,{},o[2]))}r=o.index+o[0].length}return u.createElement(u.Fragment,{},...n,e.slice(r,1/0))}const Yx=Symbol.for("yaml.alias"),fw=Symbol.for("yaml.document"),Ll=Symbol.for("yaml.map"),rA=Symbol.for("yaml.pair"),js=Symbol.for("yaml.scalar"),Ku=Symbol.for("yaml.seq"),ni=Symbol.for("yaml.node.type"),Za=e=>!!e&&typeof e=="object"&&e[ni]===Yx,bp=e=>!!e&&typeof e=="object"&&e[ni]===fw,ec=e=>!!e&&typeof e=="object"&&e[ni]===Ll,Sn=e=>!!e&&typeof e=="object"&&e[ni]===rA,un=e=>!!e&&typeof e=="object"&&e[ni]===js,qu=e=>!!e&&typeof e=="object"&&e[ni]===Ku;function $n(e){if(e&&typeof e=="object")switch(e[ni]){case Ll:case Ku:return!0}return!1}function Hn(e){if(e&&typeof e=="object")switch(e[ni]){case Yx:case Ll:case js:case Ku:return!0}return!1}const Tde=e=>(un(e)||$n(e))&&!!e.anchor;class Xx{constructor(t){Object.defineProperty(this,ni,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}}const qr=Symbol("break visit"),oA=Symbol("skip children"),Zi=Symbol("remove node");function Kl(e,t){const n=iA(t);bp(e)?Wc(null,e.contents,n,Object.freeze([e]))===Zi&&(e.contents=null):Wc(null,e,n,Object.freeze([]))}Kl.BREAK=qr;Kl.SKIP=oA;Kl.REMOVE=Zi;function Wc(e,t,n,r){const o=sA(e,t,n,r);if(Hn(o)||Sn(o))return lA(e,r,o),Wc(e,o,n,r);if(typeof o!="symbol"){if($n(t)){r=Object.freeze(r.concat(t));for(let i=0;i<t.items.length;++i){const s=Wc(i,t.items[i],n,r);if(typeof s=="number")i=s-1;else{if(s===qr)return qr;s===Zi&&(t.items.splice(i,1),i-=1)}}}else if(Sn(t)){r=Object.freeze(r.concat(t));const i=Wc("key",t.key,n,r);if(i===qr)return qr;i===Zi&&(t.key=null);const s=Wc("value",t.value,n,r);if(s===qr)return qr;s===Zi&&(t.value=null)}}return o}function qv(e,t){return it(this,null,function*(){const n=iA(t);bp(e)?(yield Gc(null,e.contents,n,Object.freeze([e])))===Zi&&(e.contents=null):yield Gc(null,e,n,Object.freeze([]))})}qv.BREAK=qr;qv.SKIP=oA;qv.REMOVE=Zi;function Gc(e,t,n,r){return it(this,null,function*(){const o=yield sA(e,t,n,r);if(Hn(o)||Sn(o))return lA(e,r,o),Gc(e,o,n,r);if(typeof o!="symbol"){if($n(t)){r=Object.freeze(r.concat(t));for(let i=0;i<t.items.length;++i){const s=yield Gc(i,t.items[i],n,r);if(typeof s=="number")i=s-1;else{if(s===qr)return qr;s===Zi&&(t.items.splice(i,1),i-=1)}}}else if(Sn(t)){r=Object.freeze(r.concat(t));const i=yield Gc("key",t.key,n,r);if(i===qr)return qr;i===Zi&&(t.key=null);const s=yield Gc("value",t.value,n,r);if(s===qr)return qr;s===Zi&&(t.value=null)}}return o})}function iA(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function sA(e,t,n,r){var o,i,s,a,c;if(typeof n=="function")return n(e,t,r);if(ec(t))return(o=n.Map)==null?void 0:o.call(n,e,t,r);if(qu(t))return(i=n.Seq)==null?void 0:i.call(n,e,t,r);if(Sn(t))return(s=n.Pair)==null?void 0:s.call(n,e,t,r);if(un(t))return(a=n.Scalar)==null?void 0:a.call(n,e,t,r);if(Za(t))return(c=n.Alias)==null?void 0:c.call(n,e,t,r)}function lA(e,t,n){const r=t[t.length-1];if($n(r))r.items[e]=n;else if(Sn(r))e==="key"?r.key=n:r.value=n;else if(bp(r))r.contents=n;else{const o=Za(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const Mde={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},Rde=e=>e.replace(/[!,[\]{}]/g,t=>Mde[t]);class Nr{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Nr.defaultYaml,t),this.tags=Object.assign({},Nr.defaultTags,n)}clone(){const t=new Nr(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new Nr(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Nr.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Nr.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:Nr.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Nr.defaultTags),this.atNextDocument=!1);const r=t.trim().split(/[ \t]+/),o=r.shift();switch(o){case"%TAG":{if(r.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;const[i,s]=r;return this.tags[i]=s,!0}case"%YAML":{if(this.yaml.explicit=!0,r.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[i]=r;if(i==="1.1"||i==="1.2")return this.yaml.version=i,!0;{const s=/^\d+\.\d+$/.test(i);return n(6,`Unsupported YAML version ${i}`,s),!1}}default:return n(0,`Unknown directive ${o}`,!0),!1}}tagName(t,n){if(t==="!")return"!";if(t[0]!=="!")return n(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const s=t.slice(2,-1);return s==="!"||s==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),s)}const[,r,o]=t.match(/^(.*!)([^!]*)$/);o||n(`The ${t} tag has no suffix`);const i=this.tags[r];return i?i+decodeURIComponent(o):r==="!"?t:(n(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[n,r]of Object.entries(this.tags))if(t.startsWith(r))return n+Rde(t.substring(r.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);let o;if(t&&r.length>0&&Hn(t.contents)){const i={};Kl(t.contents,(s,a)=>{Hn(a)&&a.tag&&(i[a.tag]=!0)}),o=Object.keys(i)}else o=[];for(const[i,s]of r)i==="!!"&&s==="tag:yaml.org,2002:"||(!t||o.some(a=>a.startsWith(s)))&&n.push(`%TAG ${i} ${s}`);return n.join(`
|
|
341
|
+
`)}}Nr.defaultYaml={explicit:!1,version:"1.2"};Nr.defaultTags={"!!":"tag:yaml.org,2002:"};function aA(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}function cA(e){const t=new Set;return Kl(e,{Value(n,r){r.anchor&&t.add(r.anchor)}}),t}function uA(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function Ode(e,t){const n=[],r=new Map;let o=null;return{onAnchor:i=>{n.push(i),o||(o=cA(e));const s=uA(t,o);return o.add(s),s},setAnchors:()=>{for(const i of n){const s=r.get(i);if(typeof s=="object"&&s.anchor&&(un(s.node)||$n(s.node)))s.node.anchor=s.anchor;else{const a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=i,a}}},sourceObjects:r}}class Yv extends Xx{constructor(t){super(Yx),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return Kl(t,{Node:(r,o)=>{if(o===this)return Kl.BREAK;o.anchor===this.source&&(n=o)}}),n}toJSON(t,n){if(!n)return{source:this.source};const{anchors:r,doc:o,maxAliasCount:i}=n,s=this.resolve(o);if(!s){const c=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(c)}const a=r.get(s);if(!a||a.res===void 0){const c="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(c)}if(i>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=gm(o,s,r)),a.count*a.aliasCount>i)){const c="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(c)}return a.res}toString(t,n,r){const o=`*${this.source}`;if(t){if(aA(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const i=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(i)}if(t.implicitKey)return`${o} `}return o}}function gm(e,t,n){if(Za(t)){const r=t.resolve(e),o=n&&r&&n.get(r);return o?o.count*o.aliasCount:0}else if($n(t)){let r=0;for(const o of t.items){const i=gm(e,o,n);i>r&&(r=i)}return r}else if(Sn(t)){const r=gm(e,t.key,n),o=gm(e,t.value,n);return Math.max(r,o)}return 1}function es(e,t,n){if(Array.isArray(e))return e.map((r,o)=>es(r,String(o),n));if(e&&typeof e.toJSON=="function"){if(!n||!Tde(e))return e.toJSON(t,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=i=>{r.res=i,delete n.onCreate};const o=e.toJSON(t,n);return n.onCreate&&n.onCreate(o),o}return typeof e=="bigint"&&!(n!=null&&n.keep)?Number(e):e}const dA=e=>!e||typeof e!="function"&&typeof e!="object";class St extends Xx{constructor(t){super(js),this.value=t}toJSON(t,n){return n!=null&&n.keep?this.value:es(this.value,t,n)}toString(){return String(this.value)}}St.BLOCK_FOLDED="BLOCK_FOLDED";St.BLOCK_LITERAL="BLOCK_LITERAL";St.PLAIN="PLAIN";St.QUOTE_DOUBLE="QUOTE_DOUBLE";St.QUOTE_SINGLE="QUOTE_SINGLE";const Lde="tag:yaml.org,2002:";function Ade(e,t,n){var r;if(t){const o=n.filter(s=>s.tag===t),i=(r=o.find(s=>!s.format))!=null?r:o[0];if(!i)throw new Error(`Tag ${t} not found`);return i}return n.find(o=>{var i;return((i=o.identify)==null?void 0:i.call(o,e))&&!o.format})}function Gf(e,t,n){var h,m;if(bp(e)&&(e=e.contents),Hn(e))return e;if(Sn(e)){const v=(m=(h=n.schema[Ll]).createNode)==null?void 0:m.call(h,n.schema,null,n);return v.items.push(e),v}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt!="undefined"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:r,onAnchor:o,onTagObj:i,schema:s,sourceObjects:a}=n;let c;if(r&&e&&typeof e=="object"){if(c=a.get(e),c)return c.anchor||(c.anchor=o(e)),new Yv(c.anchor);c={anchor:null,node:null},a.set(e,c)}t!=null&&t.startsWith("!!")&&(t=Lde+t.slice(2));let d=Ade(e,t,s.tags);if(!d){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const v=new St(e);return c&&(c.node=v),v}d=e instanceof Map?s[Ll]:Symbol.iterator in Object(e)?s[Ku]:s[Ll]}i&&(i(d),delete n.onTagObj);const p=d!=null&&d.createNode?d.createNode(n.schema,e,n):new St(e);return t&&(p.tag=t),c&&(c.node=p),p}function mg(e,t,n){let r=n;for(let o=t.length-1;o>=0;--o){const i=t[o];if(typeof i=="number"&&Number.isInteger(i)&&i>=0){const s=[];s[i]=r,r=s}else r=new Map([[i,r]])}return Gf(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const Vd=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class Xv extends Xx{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(r=>Hn(r)||Sn(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(Vd(t))this.add(n);else{const[r,...o]=t,i=this.get(r,!0);if($n(i))i.addIn(o,n);else if(i===void 0&&this.schema)this.set(r,mg(this.schema,o,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${o}`)}}deleteIn(t){const[n,...r]=t;if(r.length===0)return this.delete(n);const o=this.get(n,!0);if($n(o))return o.deleteIn(r);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}getIn(t,n){const[r,...o]=t,i=this.get(r,!0);return o.length===0?!n&&un(i)?i.value:i:$n(i)?i.getIn(o,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!Sn(n))return!1;const r=n.value;return r==null||t&&un(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(t){const[n,...r]=t;if(r.length===0)return this.has(n);const o=this.get(n,!0);return $n(o)?o.hasIn(r):!1}setIn(t,n){const[r,...o]=t;if(o.length===0)this.set(r,n);else{const i=this.get(r,!0);if($n(i))i.setIn(o,n);else if(i===void 0&&this.schema)this.set(r,mg(this.schema,o,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${o}`)}}}Xv.maxFlowStringSingleLineLength=60;const Fde=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function _s(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const xl=(e,t,n)=>e.endsWith(`
|
|
342
|
+
`)?_s(n,t):n.includes(`
|
|
343
|
+
`)?`
|
|
344
|
+
`+_s(n,t):(e.endsWith(" ")?"":" ")+n,fA="flow",pw="block",vm="quoted";function Qv(e,t,n="flow",{indentAtStart:r,lineWidth:o=80,minContentWidth:i=20,onFold:s,onOverflow:a}={}){if(!o||o<0)return e;const c=Math.max(1+i,1+o-t.length);if(e.length<=c)return e;const d=[],p={};let h=o-t.length;typeof r=="number"&&(r>o-Math.max(2,i)?d.push(0):h=o-r);let m,v,b=!1,g=-1,x=-1,C=-1;n===pw&&(g=U_(e,g),g!==-1&&(h=g+c));for(let w;w=e[g+=1];){if(n===vm&&w==="\\"){switch(x=g,e[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}C=g}if(w===`
|
|
345
|
+
`)n===pw&&(g=U_(e,g)),h=g+c,m=void 0;else{if(w===" "&&v&&v!==" "&&v!==`
|
|
346
|
+
`&&v!==" "){const E=e[g+1];E&&E!==" "&&E!==`
|
|
347
|
+
`&&E!==" "&&(m=g)}if(g>=h)if(m)d.push(m),h=m+c,m=void 0;else if(n===vm){for(;v===" "||v===" ";)v=w,w=e[g+=1],b=!0;const E=g>C+1?g-2:x-1;if(p[E])return e;d.push(E),p[E]=!0,h=E+c,m=void 0}else b=!0}v=w}if(b&&a&&a(),d.length===0)return e;s&&s();let S=e.slice(0,d[0]);for(let w=0;w<d.length;++w){const E=d[w],P=d[w+1]||e.length;E===0?S=`
|
|
348
|
+
${t}${e.slice(0,P)}`:(n===vm&&p[E]&&(S+=`${e[E]}\\`),S+=`
|
|
349
|
+
${t}${e.slice(E+1,P)}`)}return S}function U_(e,t){let n=e[t+1];for(;n===" "||n===" ";){do n=e[t+=1];while(n&&n!==`
|
|
350
|
+
`);n=e[t+1]}return t}const Jv=e=>({indentAtStart:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Zv=e=>/^(%|---|\.\.\.)/m.test(e);function Nde(e,t,n){if(!t||t<0)return!1;const r=t-n,o=e.length;if(o<=r)return!1;for(let i=0,s=0;i<o;++i)if(e[i]===`
|
|
351
|
+
`){if(i-s>r)return!0;if(s=i+1,o-s<=r)return!1}return!0}function df(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,o=t.options.doubleQuotedMinMultiLineLength,i=t.indent||(Zv(e)?" ":"");let s="",a=0;for(let c=0,d=n[c];d;d=n[++c])if(d===" "&&n[c+1]==="\\"&&n[c+2]==="n"&&(s+=n.slice(a,c)+"\\ ",c+=1,a=c,d="\\"),d==="\\")switch(n[c+1]){case"u":{s+=n.slice(a,c);const p=n.substr(c+2,4);switch(p){case"0000":s+="\\0";break;case"0007":s+="\\a";break;case"000b":s+="\\v";break;case"001b":s+="\\e";break;case"0085":s+="\\N";break;case"00a0":s+="\\_";break;case"2028":s+="\\L";break;case"2029":s+="\\P";break;default:p.substr(0,2)==="00"?s+="\\x"+p.substr(2):s+=n.substr(c,6)}c+=5,a=c+1}break;case"n":if(r||n[c+2]==='"'||n.length<o)c+=1;else{for(s+=n.slice(a,c)+`
|
|
352
|
+
|
|
353
|
+
`;n[c+2]==="\\"&&n[c+3]==="n"&&n[c+4]!=='"';)s+=`
|
|
354
|
+
`,c+=2;s+=i,n[c+2]===" "&&(s+="\\"),c+=1,a=c+1}break;default:c+=1}return s=a?s+n.slice(a):n,r?s:Qv(s,i,vm,Jv(t))}function hw(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
|
|
355
|
+
`)||/[ \t]\n|\n[ \t]/.test(e))return df(e,t);const n=t.indent||(Zv(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
356
|
+
${n}`)+"'";return t.implicitKey?r:Qv(r,n,fA,Jv(t))}function Kc(e,t){const{singleQuote:n}=t.options;let r;if(n===!1)r=df;else{const o=e.includes('"'),i=e.includes("'");o&&!i?r=hw:i&&!o?r=df:r=n?hw:df}return r(e,t)}function ym({comment:e,type:t,value:n},r,o,i){const{blockQuote:s,commentString:a,lineWidth:c}=r.options;if(!s||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return Kc(n,r);const d=r.indent||(r.forceBlockIndent||Zv(n)?" ":""),p=s==="literal"?!0:s==="folded"||t===St.BLOCK_FOLDED?!1:t===St.BLOCK_LITERAL?!0:!Nde(n,c,d.length);if(!n)return p?`|
|
|
357
|
+
`:`>
|
|
358
|
+
`;let h,m;for(m=n.length;m>0;--m){const _=n[m-1];if(_!==`
|
|
359
|
+
`&&_!==" "&&_!==" ")break}let v=n.substring(m);const b=v.indexOf(`
|
|
360
|
+
`);b===-1?h="-":n===v||b!==v.length-1?(h="+",i&&i()):h="",v&&(n=n.slice(0,-v.length),v[v.length-1]===`
|
|
361
|
+
`&&(v=v.slice(0,-1)),v=v.replace(/\n+(?!\n|$)/g,`$&${d}`));let g=!1,x,C=-1;for(x=0;x<n.length;++x){const _=n[x];if(_===" ")g=!0;else if(_===`
|
|
362
|
+
`)C=x;else break}let S=n.substring(0,C<x?C+1:x);S&&(n=n.substring(S.length),S=S.replace(/\n+/g,`$&${d}`));let E=(p?"|":">")+(g?d?"2":"1":"")+h;if(e&&(E+=" "+a(e.replace(/ ?[\r\n]+/g," ")),o&&o()),p)return n=n.replace(/\n+/g,`$&${d}`),`${E}
|
|
363
|
+
${d}${S}${n}${v}`;n=n.replace(/\n+/g,`
|
|
364
|
+
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`);const P=Qv(`${S}${n}${v}`,d,pw,Jv(r));return`${E}
|
|
365
|
+
${d}${P}`}function Dde(e,t,n,r){const{type:o,value:i}=e,{actualString:s,implicitKey:a,indent:c,indentStep:d,inFlow:p}=t;if(a&&/[\n[\]{},]/.test(i)||p&&/[[\]{},]/.test(i))return Kc(i,t);if(!i||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return a||p||!i.includes(`
|
|
366
|
+
`)?Kc(i,t):ym(e,t,n,r);if(!a&&!p&&o!==St.PLAIN&&i.includes(`
|
|
367
|
+
`))return ym(e,t,n,r);if(Zv(i)){if(c==="")return t.forceBlockIndent=!0,ym(e,t,n,r);if(a&&c===d)return Kc(i,t)}const h=i.replace(/\n+/g,`$&
|
|
368
|
+
${c}`);if(s){const m=g=>{var x;return g.default&&g.tag!=="tag:yaml.org,2002:str"&&((x=g.test)==null?void 0:x.test(h))},{compat:v,tags:b}=t.doc.schema;if(b.some(m)||v!=null&&v.some(m))return Kc(i,t)}return a?h:Qv(h,c,fA,Jv(t))}function wp(e,t,n,r){const{implicitKey:o,inFlow:i}=t,s=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:a}=e;a!==St.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(s.value)&&(a=St.QUOTE_DOUBLE);const c=p=>{switch(p){case St.BLOCK_FOLDED:case St.BLOCK_LITERAL:return o||i?Kc(s.value,t):ym(s,t,n,r);case St.QUOTE_DOUBLE:return df(s.value,t);case St.QUOTE_SINGLE:return hw(s.value,t);case St.PLAIN:return Dde(s,t,n,r);default:return null}};let d=c(a);if(d===null){const{defaultKeyType:p,defaultStringType:h}=t.options,m=o&&p||h;if(d=c(m),d===null)throw new Error(`Unsupported default string type ${m}`)}return d}function pA(e,t){const n=Object.assign({blockQuote:!0,commentString:Fde,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let r;switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):" ",inFlow:r,options:n}}function Bde(e,t){var o,i,s,a;if(t.tag){const c=e.filter(d=>d.tag===t.tag);if(c.length>0)return(o=c.find(d=>d.format===t.format))!=null?o:c[0]}let n,r;if(un(t)){r=t.value;const c=e.filter(d=>{var p;return(p=d.identify)==null?void 0:p.call(d,r)});n=(i=c.find(d=>d.format===t.format))!=null?i:c.find(d=>!d.format)}else r=t,n=e.find(c=>c.nodeClass&&r instanceof c.nodeClass);if(!n){const c=(a=(s=r==null?void 0:r.constructor)==null?void 0:s.name)!=null?a:typeof r;throw new Error(`Tag not resolved for ${c} value`)}return n}function zde(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const o=[],i=(un(e)||$n(e))&&e.anchor;i&&aA(i)&&(n.add(i),o.push(`&${i}`));const s=e.tag?e.tag:t.default?null:t.tag;return s&&o.push(r.directives.tagString(s)),o.join(" ")}function ja(e,t,n,r){var c,d;if(Sn(e))return e.toString(t,n,r);if(Za(e)){if(t.doc.directives)return e.toString(t);if((c=t.resolvedAliases)!=null&&c.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let o;const i=Hn(e)?e:t.doc.createNode(e,{onTagObj:p=>o=p});o||(o=Bde(t.doc.schema.tags,i));const s=zde(i,o,t);s.length>0&&(t.indentAtStart=((d=t.indentAtStart)!=null?d:0)+s.length+1);const a=typeof o.stringify=="function"?o.stringify(i,t,n,r):un(i)?wp(i,t,n,r):i.toString(t,n,r);return s?un(i)||a[0]==="{"||a[0]==="["?`${s} ${a}`:`${s}
|
|
369
|
+
${t.indent}${a}`:a}function jde({key:e,value:t},n,r,o){var I,M;const{allNullValues:i,doc:s,indent:a,indentStep:c,options:{commentString:d,indentSeq:p,simpleKeys:h}}=n;let m=Hn(e)&&e.comment||null;if(h){if(m)throw new Error("With simple keys, key nodes cannot have comments");if($n(e)){const O="With simple keys, collection cannot be used as a key value";throw new Error(O)}}let v=!h&&(!e||m&&t==null&&!n.inFlow||$n(e)||(un(e)?e.type===St.BLOCK_FOLDED||e.type===St.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!v&&(h||!i),indent:a+c});let b=!1,g=!1,x=ja(e,n,()=>b=!0,()=>g=!0);if(!v&&!n.inFlow&&x.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");v=!0}if(n.inFlow){if(i||t==null)return b&&r&&r(),x===""?"?":v?`? ${x}`:x}else if(i&&!h||t==null&&v)return x=`? ${x}`,m&&!b?x+=xl(x,n.indent,d(m)):g&&o&&o(),x;b&&(m=null),v?(m&&(x+=xl(x,n.indent,d(m))),x=`? ${x}
|
|
370
|
+
${a}:`):(x=`${x}:`,m&&(x+=xl(x,n.indent,d(m))));let C,S,w;Hn(t)?(C=!!t.spaceBefore,S=t.commentBefore,w=t.comment):(C=!1,S=null,w=null,t&&typeof t=="object"&&(t=s.createNode(t))),n.implicitKey=!1,!v&&!m&&un(t)&&(n.indentAtStart=x.length+1),g=!1,!p&&c.length>=2&&!n.inFlow&&!v&&qu(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let E=!1;const P=ja(t,n,()=>E=!0,()=>g=!0);let _=" ";if(m||C||S){if(_=C?`
|
|
371
|
+
`:"",S){const O=d(S);_+=`
|
|
372
|
+
${_s(O,n.indent)}`}P===""&&!n.inFlow?_===`
|
|
373
|
+
`&&(_=`
|
|
374
|
+
|
|
375
|
+
`):_+=`
|
|
376
|
+
${n.indent}`}else if(!v&&$n(t)){const O=P[0],L=P.indexOf(`
|
|
377
|
+
`),R=L!==-1,H=(M=(I=n.inFlow)!=null?I:t.flow)!=null?M:t.items.length===0;if(R||!H){let j=!1;if(R&&(O==="&"||O==="!")){let A=P.indexOf(" ");O==="&"&&A!==-1&&A<L&&P[A+1]==="!"&&(A=P.indexOf(" ",A+1)),(A===-1||L<A)&&(j=!0)}j||(_=`
|
|
378
|
+
${n.indent}`)}}else(P===""||P[0]===`
|
|
379
|
+
`)&&(_="");return x+=_+P,n.inFlow?E&&r&&r():w&&!E?x+=xl(x,n.indent,d(w)):g&&o&&o(),x}function hA(e,t){(e==="debug"||e==="warn")&&(typeof process!="undefined"&&process.emitWarning?process.emitWarning(t):console.warn(t))}const W_="<<";function mA(e,t,{key:n,value:r}){if(e!=null&&e.doc.schema.merge&&Hde(n))if(r=Za(r)?r.resolve(e.doc):r,qu(r))for(const o of r.items)b1(e,t,o);else if(Array.isArray(r))for(const o of r)b1(e,t,o);else b1(e,t,r);else{const o=es(n,"",e);if(t instanceof Map)t.set(o,es(r,o,e));else if(t instanceof Set)t.add(o);else{const i=Vde(n,o,e),s=es(r,i,e);i in t?Object.defineProperty(t,i,{value:s,writable:!0,enumerable:!0,configurable:!0}):t[i]=s}}return t}const Hde=e=>e===W_||un(e)&&e.value===W_&&(!e.type||e.type===St.PLAIN);function b1(e,t,n){const r=e&&Za(n)?n.resolve(e.doc):n;if(!ec(r))throw new Error("Merge sources must be maps or map aliases");const o=r.toJSON(null,e,Map);for(const[i,s]of o)t instanceof Map?t.has(i)||t.set(i,s):t instanceof Set?t.add(i):Object.prototype.hasOwnProperty.call(t,i)||Object.defineProperty(t,i,{value:s,writable:!0,enumerable:!0,configurable:!0});return t}function Vde(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(Hn(e)&&n&&n.doc){const r=pA(n.doc,{});r.anchors=new Set;for(const i of n.anchors.keys())r.anchors.add(i.anchor);r.inFlow=!0,r.inStringifyKey=!0;const o=e.toString(r);if(!n.mapKeyWarned){let i=JSON.stringify(o);i.length>40&&(i=i.substring(0,36)+'..."'),hA(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${i}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return o}return JSON.stringify(t)}function Qx(e,t,n){const r=Gf(e,void 0,n),o=Gf(t,void 0,n);return new $r(r,o)}class $r{constructor(t,n=null){Object.defineProperty(this,ni,{value:rA}),this.key=t,this.value=n}clone(t){let{key:n,value:r}=this;return Hn(n)&&(n=n.clone(t)),Hn(r)&&(r=r.clone(t)),new $r(n,r)}toJSON(t,n){const r=n!=null&&n.mapAsMap?new Map:{};return mA(n,r,this)}toString(t,n,r){return t!=null&&t.doc?jde(this,t,n,r):JSON.stringify(this)}}function gA(e,t,n){var i;return(((i=t.inFlow)!=null?i:e.flow)?Wde:Ude)(e,t,n)}function Ude({comment:e,items:t},n,{blockItemPrefix:r,flowChars:o,itemIndent:i,onChompKeep:s,onComment:a}){const{indent:c,options:{commentString:d}}=n,p=Object.assign({},n,{indent:i,type:null});let h=!1;const m=[];for(let b=0;b<t.length;++b){const g=t[b];let x=null;if(Hn(g))!h&&g.spaceBefore&&m.push(""),gg(n,m,g.commentBefore,h),g.comment&&(x=g.comment);else if(Sn(g)){const S=Hn(g.key)?g.key:null;S&&(!h&&S.spaceBefore&&m.push(""),gg(n,m,S.commentBefore,h))}h=!1;let C=ja(g,p,()=>x=null,()=>h=!0);x&&(C+=xl(C,i,d(x))),h&&x&&(h=!1),m.push(r+C)}let v;if(m.length===0)v=o.start+o.end;else{v=m[0];for(let b=1;b<m.length;++b){const g=m[b];v+=g?`
|
|
380
|
+
${c}${g}`:`
|
|
381
|
+
`}}return e?(v+=`
|
|
382
|
+
`+_s(d(e),c),a&&a()):h&&s&&s(),v}function Wde({comment:e,items:t},n,{flowChars:r,itemIndent:o,onComment:i}){const{indent:s,indentStep:a,flowCollectionPadding:c,options:{commentString:d}}=n;o+=a;const p=Object.assign({},n,{indent:o,inFlow:!0,type:null});let h=!1,m=0;const v=[];for(let C=0;C<t.length;++C){const S=t[C];let w=null;if(Hn(S))S.spaceBefore&&v.push(""),gg(n,v,S.commentBefore,!1),S.comment&&(w=S.comment);else if(Sn(S)){const P=Hn(S.key)?S.key:null;P&&(P.spaceBefore&&v.push(""),gg(n,v,P.commentBefore,!1),P.comment&&(h=!0));const _=Hn(S.value)?S.value:null;_?(_.comment&&(w=_.comment),_.commentBefore&&(h=!0)):S.value==null&&P&&P.comment&&(w=P.comment)}w&&(h=!0);let E=ja(S,p,()=>w=null);C<t.length-1&&(E+=","),w&&(E+=xl(E,o,d(w))),!h&&(v.length>m||E.includes(`
|
|
383
|
+
`))&&(h=!0),v.push(E),m=v.length}let b;const{start:g,end:x}=r;if(v.length===0)b=g+x;else if(h||(h=v.reduce((S,w)=>S+w.length+2,2)>Xv.maxFlowStringSingleLineLength),h){b=g;for(const C of v)b+=C?`
|
|
384
|
+
${a}${s}${C}`:`
|
|
385
|
+
`;b+=`
|
|
386
|
+
${s}${x}`}else b=`${g}${c}${v.join(" ")}${c}${x}`;return e&&(b+=xl(b,d(e),s),i&&i()),b}function gg({indent:e,options:{commentString:t}},n,r,o){if(r&&o&&(r=r.replace(/^\n+/,"")),r){const i=_s(t(r),e);n.push(i.trimStart())}}function wa(e,t){const n=un(t)?t.value:t;for(const r of e)if(Sn(r)&&(r.key===t||r.key===n||un(r.key)&&r.key.value===n))return r}class Wo extends Xv{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(Ll,t),this.items=[]}add(t,n){var s;let r;Sn(t)?r=t:!t||typeof t!="object"||!("key"in t)?r=new $r(t,t==null?void 0:t.value):r=new $r(t.key,t.value);const o=wa(this.items,r.key),i=(s=this.schema)==null?void 0:s.sortMapEntries;if(o){if(!n)throw new Error(`Key ${r.key} already set`);un(o.value)&&dA(r.value)?o.value.value=r.value:o.value=r.value}else if(i){const a=this.items.findIndex(c=>i(r,c)<0);a===-1?this.items.push(r):this.items.splice(a,0,r)}else this.items.push(r)}delete(t){const n=wa(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){var i;const r=wa(this.items,t),o=r==null?void 0:r.value;return(i=!n&&un(o)?o.value:o)!=null?i:void 0}has(t){return!!wa(this.items,t)}set(t,n){this.add(new $r(t,n),!0)}toJSON(t,n,r){const o=r?new r:n!=null&&n.mapAsMap?new Map:{};n!=null&&n.onCreate&&n.onCreate(o);for(const i of this.items)mA(n,o,i);return o}toString(t,n,r){if(!t)return JSON.stringify(this);for(const o of this.items)if(!Sn(o))throw new Error(`Map items must all be pairs; found ${JSON.stringify(o)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),gA(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}}function Gde(e,t,n){const{keepUndefined:r,replacer:o}=n,i=new Wo(e),s=(a,c)=>{if(typeof o=="function")c=o.call(t,a,c);else if(Array.isArray(o)&&!o.includes(a))return;(c!==void 0||r)&&i.items.push(Qx(a,c,n))};if(t instanceof Map)for(const[a,c]of t)s(a,c);else if(t&&typeof t=="object")for(const a of Object.keys(t))s(a,t[a]);return typeof e.sortMapEntries=="function"&&i.items.sort(e.sortMapEntries),i}const Yu={collection:"map",createNode:Gde,default:!0,nodeClass:Wo,tag:"tag:yaml.org,2002:map",resolve(e,t){return ec(e)||t("Expected a mapping for this tag"),e}};class tc extends Xv{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(Ku,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=Vh(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const r=Vh(t);if(typeof r!="number")return;const o=this.items[r];return!n&&un(o)?o.value:o}has(t){const n=Vh(t);return typeof n=="number"&&n<this.items.length}set(t,n){const r=Vh(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);const o=this.items[r];un(o)&&dA(n)?o.value=n:this.items[r]=n}toJSON(t,n){const r=[];n!=null&&n.onCreate&&n.onCreate(r);let o=0;for(const i of this.items)r.push(es(i,String(o++),n));return r}toString(t,n,r){return t?gA(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:r,onComment:n}):JSON.stringify(this)}}function Vh(e){let t=un(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}function Kde(e,t,n){const{replacer:r}=n,o=new tc(e);if(t&&Symbol.iterator in Object(t)){let i=0;for(let s of t){if(typeof r=="function"){const a=t instanceof Set?s:String(i++);s=r.call(t,a,s)}o.items.push(Gf(s,void 0,n))}}return o}const Xu={collection:"seq",createNode:Kde,default:!0,nodeClass:tc,tag:"tag:yaml.org,2002:seq",resolve(e,t){return qu(e)||t("Expected a sequence for this tag"),e}},ey={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,n,r){return t=Object.assign({actualString:!0},t),wp(e,t,n,r)}},ty={identify:e=>e==null,createNode:()=>new St(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new St(null),stringify:({source:e},t)=>typeof e=="string"&&ty.test.test(e)?e:t.options.nullStr},Jx={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new St(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&Jx.test.test(e)){const r=e[0]==="t"||e[0]==="T";if(t===r)return e}return t?n.options.trueStr:n.options.falseStr}};function $i({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r=="bigint")return String(r);const o=typeof r=="number"?r:Number(r);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let i=JSON.stringify(r);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(i)){let s=i.indexOf(".");s<0&&(s=i.length,i+=".");let a=t-(i.length-s-1);for(;a-- >0;)i+="0"}return i}const vA={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:$i},yA={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():$i(e)}},bA={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new St(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:$i},ny=e=>typeof e=="bigint"||Number.isInteger(e),Zx=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function wA(e,t,n){const{value:r}=e;return ny(r)&&r>=0?n+r.toString(t):$i(e)}const CA={identify:e=>ny(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>Zx(e,2,8,n),stringify:e=>wA(e,8,"0o")},xA={identify:ny,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>Zx(e,0,10,n),stringify:$i},SA={identify:e=>ny(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>Zx(e,2,16,n),stringify:e=>wA(e,16,"0x")},qde=[Yu,Xu,ey,ty,Jx,CA,xA,SA,vA,yA,bA];function G_(e){return typeof e=="bigint"||Number.isInteger(e)}const Uh=({value:e})=>JSON.stringify(e),Yde=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:Uh},{identify:e=>e==null,createNode:()=>new St(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Uh},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:Uh},{identify:G_,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>G_(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:Uh}],Xde={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},Qde=[Yu,Xu].concat(Yde,Xde),eS={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Buffer=="function")return Buffer.from(e,"base64");if(typeof atob=="function"){const n=atob(e.replace(/[\n\r]/g,"")),r=new Uint8Array(n.length);for(let o=0;o<n.length;++o)r[o]=n.charCodeAt(o);return r}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},r,o,i){const s=n;let a;if(typeof Buffer=="function")a=s instanceof Buffer?s.toString("base64"):Buffer.from(s.buffer).toString("base64");else if(typeof btoa=="function"){let c="";for(let d=0;d<s.length;++d)c+=String.fromCharCode(s[d]);a=btoa(c)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t||(t=St.BLOCK_LITERAL),t!==St.QUOTE_DOUBLE){const c=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),d=Math.ceil(a.length/c),p=new Array(d);for(let h=0,m=0;h<d;++h,m+=c)p[h]=a.substr(m,c);a=p.join(t===St.BLOCK_LITERAL?`
|
|
387
|
+
`:" ")}return wp({comment:e,type:t,value:a},r,o,i)}};function EA(e,t){var n;if(qu(e))for(let r=0;r<e.items.length;++r){let o=e.items[r];if(!Sn(o)){if(ec(o)){o.items.length>1&&t("Each pair must have its own sequence indicator");const i=o.items[0]||new $r(new St(null));if(o.commentBefore&&(i.key.commentBefore=i.key.commentBefore?`${o.commentBefore}
|
|
388
|
+
${i.key.commentBefore}`:o.commentBefore),o.comment){const s=(n=i.value)!=null?n:i.key;s.comment=s.comment?`${o.comment}
|
|
389
|
+
${s.comment}`:o.comment}o=i}e.items[r]=Sn(o)?o:new $r(o)}}else t("Expected a sequence for this tag");return e}function kA(e,t,n){const{replacer:r}=n,o=new tc(e);o.tag="tag:yaml.org,2002:pairs";let i=0;if(t&&Symbol.iterator in Object(t))for(let s of t){typeof r=="function"&&(s=r.call(t,String(i++),s));let a,c;if(Array.isArray(s))if(s.length===2)a=s[0],c=s[1];else throw new TypeError(`Expected [key, value] tuple: ${s}`);else if(s&&s instanceof Object){const d=Object.keys(s);if(d.length===1)a=d[0],c=s[a];else throw new TypeError(`Expected { key: value } tuple: ${s}`)}else a=s;o.items.push(Qx(a,c,n))}return o}const tS={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:EA,createNode:kA};class su extends tc{constructor(){super(),this.add=Wo.prototype.add.bind(this),this.delete=Wo.prototype.delete.bind(this),this.get=Wo.prototype.get.bind(this),this.has=Wo.prototype.has.bind(this),this.set=Wo.prototype.set.bind(this),this.tag=su.tag}toJSON(t,n){if(!n)return super.toJSON(t);const r=new Map;n!=null&&n.onCreate&&n.onCreate(r);for(const o of this.items){let i,s;if(Sn(o)?(i=es(o.key,"",n),s=es(o.value,i,n)):i=es(o,"",n),r.has(i))throw new Error("Ordered maps must not include duplicate keys");r.set(i,s)}return r}}su.tag="tag:yaml.org,2002:omap";const nS={collection:"seq",identify:e=>e instanceof Map,nodeClass:su,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=EA(e,t),r=[];for(const{key:o}of n.items)un(o)&&(r.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):r.push(o.value));return Object.assign(new su,n)},createNode(e,t,n){const r=kA(e,t,n),o=new su;return o.items=r.items,o}};function PA({value:e,source:t},n){return t&&(e?IA:_A).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const IA={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new St(!0),stringify:PA},_A={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new St(!1),stringify:PA},Jde={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:$i},Zde={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():$i(e)}},efe={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new St(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(n!==-1){const r=e.substring(n+1).replace(/_/g,"");r[r.length-1]==="0"&&(t.minFractionDigits=r.length)}return t},stringify:$i},Cp=e=>typeof e=="bigint"||Number.isInteger(e);function ry(e,t,n,{intAsBigInt:r}){const o=e[0];if((o==="-"||o==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const s=BigInt(e);return o==="-"?BigInt(-1)*s:s}const i=parseInt(e,n);return o==="-"?-1*i:i}function rS(e,t,n){const{value:r}=e;if(Cp(r)){const o=r.toString(t);return r<0?"-"+n+o.substr(1):n+o}return $i(e)}const tfe={identify:Cp,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>ry(e,2,2,n),stringify:e=>rS(e,2,"0b")},nfe={identify:Cp,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>ry(e,1,8,n),stringify:e=>rS(e,8,"0")},rfe={identify:Cp,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>ry(e,0,10,n),stringify:$i},ofe={identify:Cp,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>ry(e,2,16,n),stringify:e=>rS(e,16,"0x")};class lu extends Wo{constructor(t){super(t),this.tag=lu.tag}add(t){let n;Sn(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new $r(t.key,null):n=new $r(t,null),wa(this.items,n.key)||this.items.push(n)}get(t,n){const r=wa(this.items,t);return!n&&Sn(r)?un(r.key)?r.key.value:r.key:r}set(t,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const r=wa(this.items,t);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new $r(t))}toJSON(t,n){return super.toJSON(t,n,Set)}toString(t,n,r){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),n,r);throw new Error("Set items must all have null values")}}lu.tag="tag:yaml.org,2002:set";const oS={collection:"map",identify:e=>e instanceof Set,nodeClass:lu,default:!1,tag:"tag:yaml.org,2002:set",resolve(e,t){if(ec(e)){if(e.hasAllNullValues(!0))return Object.assign(new lu,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e},createNode(e,t,n){const{replacer:r}=n,o=new lu(e);if(t&&Symbol.iterator in Object(t))for(let i of t)typeof r=="function"&&(i=r.call(t,i,i)),o.items.push(Qx(i,null,n));return o}};function iS(e,t){const n=e[0],r=n==="-"||n==="+"?e.substring(1):e,o=s=>t?BigInt(s):Number(s),i=r.replace(/_/g,"").split(":").reduce((s,a)=>s*o(60)+o(a),o(0));return n==="-"?o(-1)*i:i}function $A(e){let{value:t}=e,n=s=>s;if(typeof t=="bigint")n=s=>BigInt(s);else if(isNaN(t)||!isFinite(t))return $i(e);let r="";t<0&&(r="-",t*=n(-1));const o=n(60),i=[t%o];return t<60?i.unshift(0):(t=(t-i[0])/o,i.unshift(t%o),t>=60&&(t=(t-i[0])/o,i.unshift(t))),r+i.map(s=>s<10?"0"+String(s):String(s)).join(":").replace(/000000\d*$/,"")}const TA={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>iS(e,n),stringify:$A},MA={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>iS(e,!1),stringify:$A},oy={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(oy.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,o,i,s,a]=t.map(Number),c=t[7]?Number((t[7]+"00").substr(1,3)):0;let d=Date.UTC(n,r-1,o,i||0,s||0,a||0,c);const p=t[8];if(p&&p!=="Z"){let h=iS(p,!1);Math.abs(h)<30&&(h*=60),d-=6e4*h}return new Date(d)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},K_=[Yu,Xu,ey,ty,IA,_A,tfe,nfe,rfe,ofe,Jde,Zde,efe,eS,nS,tS,oS,TA,MA,oy],q_=new Map([["core",qde],["failsafe",[Yu,Xu,ey]],["json",Qde],["yaml11",K_],["yaml-1.1",K_]]),Y_={binary:eS,bool:Jx,float:bA,floatExp:yA,floatNaN:vA,floatTime:MA,int:xA,intHex:SA,intOct:CA,intTime:TA,map:Yu,null:ty,omap:nS,pairs:tS,seq:Xu,set:oS,timestamp:oy},ife={"tag:yaml.org,2002:binary":eS,"tag:yaml.org,2002:omap":nS,"tag:yaml.org,2002:pairs":tS,"tag:yaml.org,2002:set":oS,"tag:yaml.org,2002:timestamp":oy};function w1(e,t){let n=q_.get(t);if(!n)if(Array.isArray(e))n=[];else{const r=Array.from(q_.keys()).filter(o=>o!=="yaml11").map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${r} or define customTags array`)}if(Array.isArray(e))for(const r of e)n=n.concat(r);else typeof e=="function"&&(n=e(n.slice()));return n.map(r=>{if(typeof r!="string")return r;const o=Y_[r];if(o)return o;const i=Object.keys(Y_).map(s=>JSON.stringify(s)).join(", ");throw new Error(`Unknown custom tag "${r}"; use one of ${i}`)})}const sfe=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class iy{constructor({compat:t,customTags:n,merge:r,resolveKnownTags:o,schema:i,sortMapEntries:s,toStringDefaults:a}){this.compat=Array.isArray(t)?w1(t,"compat"):t?w1(null,t):null,this.merge=!!r,this.name=typeof i=="string"&&i||"core",this.knownTags=o?ife:{},this.tags=w1(n,this.name),this.toStringOptions=a!=null?a:null,Object.defineProperty(this,Ll,{value:Yu}),Object.defineProperty(this,js,{value:ey}),Object.defineProperty(this,Ku,{value:Xu}),this.sortMapEntries=typeof s=="function"?s:s===!0?sfe:null}clone(){const t=Object.create(iy.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function lfe(e,t){var c;const n=[];let r=t.directives===!0;if(t.directives!==!1&&e.directives){const d=e.directives.toString(e);d?(n.push(d),r=!0):e.directives.docStart&&(r=!0)}r&&n.push("---");const o=pA(e,t),{commentString:i}=o.options;if(e.commentBefore){n.length!==1&&n.unshift("");const d=i(e.commentBefore);n.unshift(_s(d,""))}let s=!1,a=null;if(e.contents){if(Hn(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){const h=i(e.contents.commentBefore);n.push(_s(h,""))}o.forceBlockIndent=!!e.comment,a=e.contents.comment}const d=a?void 0:()=>s=!0;let p=ja(e.contents,o,()=>a=null,d);a&&(p+=xl(p,"",i(a))),(p[0]==="|"||p[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${p}`:n.push(p)}else n.push(ja(e.contents,o));if((c=e.directives)!=null&&c.docEnd)if(e.comment){const d=i(e.comment);d.includes(`
|
|
390
|
+
`)?(n.push("..."),n.push(_s(d,""))):n.push(`... ${d}`)}else n.push("...");else{let d=e.comment;d&&s&&(d=d.replace(/^\n+/,"")),d&&((!s||a)&&n[n.length-1]!==""&&n.push(""),n.push(_s(i(d),"")))}return n.join(`
|
|
391
|
+
`)+`
|
|
392
|
+
`}function Ud(e,t,n,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let o=0,i=r.length;o<i;++o){const s=r[o],a=Ud(e,r,String(o),s);a===void 0?delete r[o]:a!==s&&(r[o]=a)}else if(r instanceof Map)for(const o of Array.from(r.keys())){const i=r.get(o),s=Ud(e,r,o,i);s===void 0?r.delete(o):s!==i&&r.set(o,s)}else if(r instanceof Set)for(const o of Array.from(r)){const i=Ud(e,r,o,o);i===void 0?r.delete(o):i!==o&&(r.delete(o),r.add(i))}else for(const[o,i]of Object.entries(r)){const s=Ud(e,r,o,i);s===void 0?delete r[o]:s!==i&&(r[o]=s)}return e.call(t,n,r)}class Qu{constructor(t,n,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,ni,{value:fw});let o=null;typeof n=="function"||Array.isArray(n)?o=n:r===void 0&&n&&(r=n,n=void 0);const i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},r);this.options=i;let{version:s}=i;r!=null&&r._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(s=this.directives.yaml.version)):this.directives=new Nr({version:s}),this.setSchema(s,r),t===void 0?this.contents=null:this.contents=this.createNode(t,o,r)}clone(){const t=Object.create(Qu.prototype,{[ni]:{value:fw}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=Hn(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){Pc(this.contents)&&this.contents.add(t)}addIn(t,n){Pc(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const r=cA(this);t.anchor=!n||r.has(n)?uA(n||"a",r):n}return new Yv(t.anchor)}createNode(t,n,r){let o;if(typeof n=="function")t=n.call({"":t},"",t),o=n;else if(Array.isArray(n)){const x=S=>typeof S=="number"||S instanceof String||S instanceof Number,C=n.filter(x).map(String);C.length>0&&(n=n.concat(C)),o=n}else r===void 0&&n&&(r=n,n=void 0);const{aliasDuplicateObjects:i,anchorPrefix:s,flow:a,keepUndefined:c,onTagObj:d,tag:p}=r!=null?r:{},{onAnchor:h,setAnchors:m,sourceObjects:v}=Ode(this,s||"a"),b={aliasDuplicateObjects:i!=null?i:!0,keepUndefined:c!=null?c:!1,onAnchor:h,onTagObj:d,replacer:o,schema:this.schema,sourceObjects:v},g=Gf(t,p,b);return a&&$n(g)&&(g.flow=!0),m(),g}createPair(t,n,r={}){const o=this.createNode(t,null,r),i=this.createNode(n,null,r);return new $r(o,i)}delete(t){return Pc(this.contents)?this.contents.delete(t):!1}deleteIn(t){return Vd(t)?this.contents==null?!1:(this.contents=null,!0):Pc(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return $n(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return Vd(t)?!n&&un(this.contents)?this.contents.value:this.contents:$n(this.contents)?this.contents.getIn(t,n):void 0}has(t){return $n(this.contents)?this.contents.has(t):!1}hasIn(t){return Vd(t)?this.contents!==void 0:$n(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=mg(this.schema,[t],n):Pc(this.contents)&&this.contents.set(t,n)}setIn(t,n){Vd(t)?this.contents=n:this.contents==null?this.contents=mg(this.schema,Array.from(t),n):Pc(this.contents)&&this.contents.setIn(t,n)}setSchema(t,n={}){typeof t=="number"&&(t=String(t));let r;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new Nr({version:"1.1"}),r={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new Nr({version:t}),r={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{const o=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${o}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(r)this.schema=new iy(Object.assign(r,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:n,mapAsMap:r,maxAliasCount:o,onAnchor:i,reviver:s}={}){const a={anchors:new Map,doc:this,keep:!t,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof o=="number"?o:100,stringify:ja},c=es(this.contents,n!=null?n:"",a);if(typeof i=="function")for(const{count:d,res:p}of a.anchors.values())i(p,d);return typeof s=="function"?Ud(s,{"":c},"",c):c}toJSON(t,n){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:n})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){const n=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return lfe(this,t)}}function Pc(e){if($n(e))return!0;throw new Error("Expected a YAML collection as document contents")}class sS extends Error{constructor(t,n,r,o){super(),this.name=t,this.code=r,this.message=o,this.pos=n}}class Ca extends sS{constructor(t,n,r){super("YAMLParseError",t,n,r)}}class RA extends sS{constructor(t,n,r){super("YAMLWarning",t,n,r)}}const vg=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(a=>t.linePos(a));const{line:r,col:o}=n.linePos[0];n.message+=` at line ${r}, column ${o}`;let i=o-1,s=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(i>=60&&s.length>80){const a=Math.min(i-39,s.length-79);s="…"+s.substring(a),i-=a-1}if(s.length>80&&(s=s.substring(0,79)+"…"),r>1&&/^ *$/.test(s.substring(0,i))){let a=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);a.length>80&&(a=a.substring(0,79)+`…
|
|
393
|
+
`),s=a+s}if(/[^ ]/.test(s)){let a=1;const c=n.linePos[1];c&&c.line===r&&c.col>o&&(a=Math.min(c.col-o,80-i));const d=" ".repeat(i)+"^".repeat(a);n.message+=`:
|
|
394
|
+
|
|
395
|
+
${s}
|
|
396
|
+
${d}
|
|
397
|
+
`}};function Tu(e,{flow:t,indicator:n,next:r,offset:o,onError:i,startOnNewline:s}){let a=!1,c=s,d=s,p="",h="",m=!1,v=!1,b=!1,g=null,x=null,C=null,S=null,w=null;for(const _ of e)switch(b&&(_.type!=="space"&&_.type!=="newline"&&_.type!=="comma"&&i(_.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),b=!1),_.type){case"space":!t&&c&&n!=="doc-start"&&_.source[0]===" "&&i(_,"TAB_AS_INDENT","Tabs are not allowed as indentation"),d=!0;break;case"comment":{d||i(_,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const I=_.source.substring(1)||" ";p?p+=h+I:p=I,h="",c=!1;break}case"newline":c?p?p+=_.source:a=!0:h+=_.source,c=!0,m=!0,(g||x)&&(v=!0),d=!0;break;case"anchor":g&&i(_,"MULTIPLE_ANCHORS","A node can have at most one anchor"),_.source.endsWith(":")&&i(_.offset+_.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),g=_,w===null&&(w=_.offset),c=!1,d=!1,b=!0;break;case"tag":{x&&i(_,"MULTIPLE_TAGS","A node can have at most one tag"),x=_,w===null&&(w=_.offset),c=!1,d=!1,b=!0;break}case n:(g||x)&&i(_,"BAD_PROP_ORDER",`Anchors and tags must be after the ${_.source} indicator`),S&&i(_,"UNEXPECTED_TOKEN",`Unexpected ${_.source} in ${t!=null?t:"collection"}`),S=_,c=!1,d=!1;break;case"comma":if(t){C&&i(_,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),C=_,c=!1,d=!1;break}default:i(_,"UNEXPECTED_TOKEN",`Unexpected ${_.type} token`),c=!1,d=!1}const E=e[e.length-1],P=E?E.offset+E.source.length:o;return b&&r&&r.type!=="space"&&r.type!=="newline"&&r.type!=="comma"&&(r.type!=="scalar"||r.source!=="")&&i(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:C,found:S,spaceBefore:a,comment:p,hasNewline:m,hasNewlineAfterProp:v,anchor:g,tag:x,end:P,start:w!=null?w:P}}function Kf(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
|
|
398
|
+
`))return!0;if(e.end){for(const t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(const t of e.items){for(const n of t.start)if(n.type==="newline")return!0;if(t.sep){for(const n of t.sep)if(n.type==="newline")return!0}if(Kf(t.key)||Kf(t.value))return!0}return!1;default:return!0}}function mw(e,t,n){if((t==null?void 0:t.type)==="flow-collection"){const r=t.end[0];r.indent===e&&(r.source==="]"||r.source==="}")&&Kf(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function OA(e,t,n){const{uniqueKeys:r}=e.options;if(r===!1)return!1;const o=typeof r=="function"?r:(i,s)=>i===s||un(i)&&un(s)&&i.value===s.value&&!(i.value==="<<"&&e.schema.merge);return t.some(i=>o(i.key,n))}const X_="All mapping items must start at the same column";function afe({composeNode:e,composeEmptyNode:t},n,r,o){var c;const i=new Wo(n.schema);n.atRoot&&(n.atRoot=!1);let s=r.offset,a=null;for(const d of r.items){const{start:p,key:h,sep:m,value:v}=d,b=Tu(p,{indicator:"explicit-key-ind",next:h!=null?h:m==null?void 0:m[0],offset:s,onError:o,startOnNewline:!0}),g=!b.found;if(g){if(h&&(h.type==="block-seq"?o(s,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in h&&h.indent!==r.indent&&o(s,"BAD_INDENT",X_)),!b.anchor&&!b.tag&&!m){a=b.end,b.comment&&(i.comment?i.comment+=`
|
|
399
|
+
`+b.comment:i.comment=b.comment);continue}(b.hasNewlineAfterProp||Kf(h))&&o(h!=null?h:p[p.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((c=b.found)==null?void 0:c.indent)!==r.indent&&o(s,"BAD_INDENT",X_);const x=b.end,C=h?e(n,h,b,o):t(n,x,p,null,b,o);n.schema.compat&&mw(r.indent,h,o),OA(n,i.items,C)&&o(x,"DUPLICATE_KEY","Map keys must be unique");const S=Tu(m!=null?m:[],{indicator:"map-value-ind",next:v,offset:C.range[2],onError:o,startOnNewline:!h||h.type==="block-scalar"});if(s=S.end,S.found){g&&((v==null?void 0:v.type)==="block-map"&&!S.hasNewline&&o(s,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&b.start<S.found.offset-1024&&o(C.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const w=v?e(n,v,S,o):t(n,s,m,null,S,o);n.schema.compat&&mw(r.indent,v,o),s=w.range[2];const E=new $r(C,w);n.options.keepSourceTokens&&(E.srcToken=d),i.items.push(E)}else{g&&o(C.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),S.comment&&(C.comment?C.comment+=`
|
|
400
|
+
`+S.comment:C.comment=S.comment);const w=new $r(C);n.options.keepSourceTokens&&(w.srcToken=d),i.items.push(w)}}return a&&a<s&&o(a,"IMPOSSIBLE","Map comment with trailing content"),i.range=[r.offset,s,a!=null?a:s],i}function cfe({composeNode:e,composeEmptyNode:t},n,r,o){const i=new tc(n.schema);n.atRoot&&(n.atRoot=!1);let s=r.offset,a=null;for(const{start:c,value:d}of r.items){const p=Tu(c,{indicator:"seq-item-ind",next:d,offset:s,onError:o,startOnNewline:!0});if(!p.found)if(p.anchor||p.tag||d)d&&d.type==="block-seq"?o(p.end,"BAD_INDENT","All sequence items must start at the same column"):o(s,"MISSING_CHAR","Sequence item without - indicator");else{a=p.end,p.comment&&(i.comment=p.comment);continue}const h=d?e(n,d,p,o):t(n,p.end,c,null,p,o);n.schema.compat&&mw(r.indent,d,o),s=h.range[2],i.items.push(h)}return i.range=[r.offset,s,a!=null?a:s],i}function xp(e,t,n,r){let o="";if(e){let i=!1,s="";for(const a of e){const{source:c,type:d}=a;switch(d){case"space":i=!0;break;case"comment":{n&&!i&&r(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const p=c.substring(1)||" ";o?o+=s+p:o=p,s="";break}case"newline":o&&(s+=c),i=!0;break;default:r(a,"UNEXPECTED_TOKEN",`Unexpected ${d} at node end`)}t+=c.length}}return{comment:o,offset:t}}const C1="Block collections are not allowed within flow collections",x1=e=>e&&(e.type==="block-map"||e.type==="block-seq");function ufe({composeNode:e,composeEmptyNode:t},n,r,o){var b;const i=r.start.source==="{",s=i?"flow map":"flow sequence",a=i?new Wo(n.schema):new tc(n.schema);a.flow=!0;const c=n.atRoot;c&&(n.atRoot=!1);let d=r.offset+r.start.source.length;for(let g=0;g<r.items.length;++g){const x=r.items[g],{start:C,key:S,sep:w,value:E}=x,P=Tu(C,{flow:s,indicator:"explicit-key-ind",next:S!=null?S:w==null?void 0:w[0],offset:d,onError:o,startOnNewline:!1});if(!P.found){if(!P.anchor&&!P.tag&&!w&&!E){g===0&&P.comma?o(P.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${s}`):g<r.items.length-1&&o(P.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${s}`),P.comment&&(a.comment?a.comment+=`
|
|
401
|
+
`+P.comment:a.comment=P.comment),d=P.end;continue}!i&&n.options.strict&&Kf(S)&&o(S,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(g===0)P.comma&&o(P.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${s}`);else if(P.comma||o(P.start,"MISSING_CHAR",`Missing , between ${s} items`),P.comment){let _="";e:for(const I of C)switch(I.type){case"comma":case"space":break;case"comment":_=I.source.substring(1);break e;default:break e}if(_){let I=a.items[a.items.length-1];Sn(I)&&(I=(b=I.value)!=null?b:I.key),I.comment?I.comment+=`
|
|
402
|
+
`+_:I.comment=_,P.comment=P.comment.substring(_.length+1)}}if(!i&&!w&&!P.found){const _=E?e(n,E,P,o):t(n,P.end,w,null,P,o);a.items.push(_),d=_.range[2],x1(E)&&o(_.range,"BLOCK_IN_FLOW",C1)}else{const _=P.end,I=S?e(n,S,P,o):t(n,_,C,null,P,o);x1(S)&&o(I.range,"BLOCK_IN_FLOW",C1);const M=Tu(w!=null?w:[],{flow:s,indicator:"map-value-ind",next:E,offset:I.range[2],onError:o,startOnNewline:!1});if(M.found){if(!i&&!P.found&&n.options.strict){if(w)for(const R of w){if(R===M.found)break;if(R.type==="newline"){o(R,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}P.start<M.found.offset-1024&&o(M.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else E&&("source"in E&&E.source&&E.source[0]===":"?o(E,"MISSING_CHAR",`Missing space after : in ${s}`):o(M.start,"MISSING_CHAR",`Missing , or : between ${s} items`));const O=E?e(n,E,M,o):M.found?t(n,M.end,w,null,M,o):null;O?x1(E)&&o(O.range,"BLOCK_IN_FLOW",C1):M.comment&&(I.comment?I.comment+=`
|
|
403
|
+
`+M.comment:I.comment=M.comment);const L=new $r(I,O);if(n.options.keepSourceTokens&&(L.srcToken=x),i){const R=a;OA(n,R.items,I)&&o(_,"DUPLICATE_KEY","Map keys must be unique"),R.items.push(L)}else{const R=new Wo(n.schema);R.flow=!0,R.items.push(L),a.items.push(R)}d=O?O.range[2]:M.end}}const p=i?"}":"]",[h,...m]=r.end;let v=d;if(h&&h.source===p)v=h.offset+h.source.length;else{const g=s[0].toUpperCase()+s.substring(1),x=c?`${g} must end with a ${p}`:`${g} in block collection must be sufficiently indented and end with a ${p}`;o(d,c?"MISSING_CHAR":"BAD_INDENT",x),h&&h.source.length!==1&&m.unshift(h)}if(m.length>0){const g=xp(m,v,n.options.strict,o);g.comment&&(a.comment?a.comment+=`
|
|
404
|
+
`+g.comment:a.comment=g.comment),a.range=[r.offset,v,g.offset]}else a.range=[r.offset,v,v];return a}function dfe(e,t,n,r,o){let i;switch(n.type){case"block-map":{i=afe(e,t,n,o);break}case"block-seq":{i=cfe(e,t,n,o);break}case"flow-collection":{i=ufe(e,t,n,o);break}}if(!r)return i;const s=t.directives.tagName(r.source,m=>o(r,"TAG_RESOLVE_FAILED",m));if(!s)return i;const a=i.constructor;if(s==="!"||s===a.tagName)return i.tag=a.tagName,i;const c=ec(i)?"map":"seq";let d=t.schema.tags.find(m=>m.collection===c&&m.tag===s);if(!d){const m=t.schema.knownTags[s];if(m&&m.collection===c)t.schema.tags.push(Object.assign({},m,{default:!1})),d=m;else return o(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,!0),i.tag=s,i}const p=d.resolve(i,m=>o(r,"TAG_RESOLVE_FAILED",m),t.options),h=Hn(p)?p:new St(p);return h.range=i.range,h.tag=s,d!=null&&d.format&&(h.format=d.format),h}function LA(e,t,n){const r=e.offset,o=ffe(e,t,n);if(!o)return{value:"",type:null,comment:"",range:[r,r,r]};const i=o.mode===">"?St.BLOCK_FOLDED:St.BLOCK_LITERAL,s=e.source?pfe(e.source):[];let a=s.length;for(let g=s.length-1;g>=0;--g){const x=s[g][1];if(x===""||x==="\r")a=g;else break}if(a===0){const g=o.chomp==="+"&&s.length>0?`
|
|
405
|
+
`.repeat(Math.max(1,s.length-1)):"";let x=r+o.length;return e.source&&(x+=e.source.length),{value:g,type:i,comment:o.comment,range:[r,x,x]}}let c=e.indent+o.indent,d=e.offset+o.length,p=0;for(let g=0;g<a;++g){const[x,C]=s[g];if(C===""||C==="\r")o.indent===0&&x.length>c&&(c=x.length);else{if(x.length<c){const S="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";n(d+x.length,"MISSING_CHAR",S)}o.indent===0&&(c=x.length),p=g;break}d+=x.length+C.length+1}for(let g=s.length-1;g>=a;--g)s[g][0].length>c&&(a=g+1);let h="",m="",v=!1;for(let g=0;g<p;++g)h+=s[g][0].slice(c)+`
|
|
406
|
+
`;for(let g=p;g<a;++g){let[x,C]=s[g];d+=x.length+C.length+1;const S=C[C.length-1]==="\r";if(S&&(C=C.slice(0,-1)),C&&x.length<c){const E=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;n(d-C.length-(S?2:1),"BAD_INDENT",E),x=""}i===St.BLOCK_LITERAL?(h+=m+x.slice(c)+C,m=`
|
|
407
|
+
`):x.length>c||C[0]===" "?(m===" "?m=`
|
|
408
|
+
`:!v&&m===`
|
|
409
|
+
`&&(m=`
|
|
410
|
+
|
|
411
|
+
`),h+=m+x.slice(c)+C,m=`
|
|
412
|
+
`,v=!0):C===""?m===`
|
|
413
|
+
`?h+=`
|
|
414
|
+
`:m=`
|
|
415
|
+
`:(h+=m+C,m=" ",v=!1)}switch(o.chomp){case"-":break;case"+":for(let g=a;g<s.length;++g)h+=`
|
|
416
|
+
`+s[g][0].slice(c);h[h.length-1]!==`
|
|
417
|
+
`&&(h+=`
|
|
418
|
+
`);break;default:h+=`
|
|
419
|
+
`}const b=r+o.length+e.source.length;return{value:h,type:i,comment:o.comment,range:[r,b,b]}}function ffe({offset:e,props:t},n,r){if(t[0].type!=="block-scalar-header")return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:o}=t[0],i=o[0];let s=0,a="",c=-1;for(let m=1;m<o.length;++m){const v=o[m];if(!a&&(v==="-"||v==="+"))a=v;else{const b=Number(v);!s&&b?s=b:c===-1&&(c=e+m)}}c!==-1&&r(c,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let d=!1,p="",h=o.length;for(let m=1;m<t.length;++m){const v=t[m];switch(v.type){case"space":d=!0;case"newline":h+=v.source.length;break;case"comment":n&&!d&&r(v,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),h+=v.source.length,p=v.source.substring(1);break;case"error":r(v,"UNEXPECTED_TOKEN",v.message),h+=v.source.length;break;default:{const b=`Unexpected token in block scalar header: ${v.type}`;r(v,"UNEXPECTED_TOKEN",b);const g=v.source;g&&typeof g=="string"&&(h+=g.length)}}}return{mode:i,indent:s,chomp:a,comment:p,length:h}}function pfe(e){const t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),i=[r!=null&&r[1]?[r[1],n.slice(r[1].length)]:["",n]];for(let s=1;s<t.length;s+=2)i.push([t[s],t[s+1]]);return i}function AA(e,t,n){const{offset:r,type:o,source:i,end:s}=e;let a,c;const d=(m,v,b)=>n(r+m,v,b);switch(o){case"scalar":a=St.PLAIN,c=hfe(i,d);break;case"single-quoted-scalar":a=St.QUOTE_SINGLE,c=mfe(i,d);break;case"double-quoted-scalar":a=St.QUOTE_DOUBLE,c=gfe(i,d);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[r,r+i.length,r+i.length]}}const p=r+i.length,h=xp(s,p,t,n);return{value:c,type:a,comment:h.comment,range:[r,p,h.offset]}}function hfe(e,t){let n="";switch(e[0]){case" ":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":{n=`block scalar indicator ${e[0]}`;break}case"@":case"`":{n=`reserved character ${e[0]}`;break}}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),FA(e)}function mfe(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),FA(e.slice(1,-1)).replace(/''/g,"'")}function FA(e){var c;let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
|
|
420
|
+
`,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
|
|
421
|
+
`,"sy")}catch(d){t=new RegExp("(.*?)[ \\t]*\\r?\\n","sy"),n=new RegExp("[ \\t]*(.*?)[ \\t]*\\r?\\n","sy")}let r=t.exec(e);if(!r)return e;let o=r[1],i=" ",s=t.lastIndex;for(n.lastIndex=s;r=n.exec(e);)r[1]===""?i===`
|
|
422
|
+
`?o+=i:i=`
|
|
423
|
+
`:(o+=i+r[1],i=" "),s=n.lastIndex;const a=new RegExp("[ \\t]*(.*)","sy");return a.lastIndex=s,r=a.exec(e),o+i+((c=r==null?void 0:r[1])!=null?c:"")}function gfe(e,t){let n="";for(let r=1;r<e.length-1;++r){const o=e[r];if(!(o==="\r"&&e[r+1]===`
|
|
424
|
+
`))if(o===`
|
|
425
|
+
`){const{fold:i,offset:s}=vfe(e,r);n+=i,r=s}else if(o==="\\"){let i=e[++r];const s=yfe[i];if(s)n+=s;else if(i===`
|
|
426
|
+
`)for(i=e[r+1];i===" "||i===" ";)i=e[++r+1];else if(i==="\r"&&e[r+1]===`
|
|
427
|
+
`)for(i=e[++r+1];i===" "||i===" ";)i=e[++r+1];else if(i==="x"||i==="u"||i==="U"){const a={x:2,u:4,U:8}[i];n+=bfe(e,r+1,a,t),r+=a}else{const a=e.substr(r-1,2);t(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),n+=a}}else if(o===" "||o===" "){const i=r;let s=e[r+1];for(;s===" "||s===" ";)s=e[++r+1];s!==`
|
|
428
|
+
`&&!(s==="\r"&&e[r+2]===`
|
|
429
|
+
`)&&(n+=r>i?e.slice(i,r+1):o)}else n+=o}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}function vfe(e,t){let n="",r=e[t+1];for(;(r===" "||r===" "||r===`
|
|
430
|
+
`||r==="\r")&&!(r==="\r"&&e[t+2]!==`
|
|
431
|
+
`);)r===`
|
|
432
|
+
`&&(n+=`
|
|
433
|
+
`),t+=1,r=e[t+1];return n||(n=" "),{fold:n,offset:t}}const yfe={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
|
434
|
+
`,r:"\r",t:" ",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function bfe(e,t,n,r){const o=e.substr(t,n),s=o.length===n&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;if(isNaN(s)){const a=e.substr(t-2,n+2);return r(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),a}return String.fromCodePoint(s)}function NA(e,t,n,r){const{value:o,type:i,comment:s,range:a}=t.type==="block-scalar"?LA(t,e.options.strict,r):AA(t,e.options.strict,r),c=n?e.directives.tagName(n.source,h=>r(n,"TAG_RESOLVE_FAILED",h)):null,d=n&&c?wfe(e.schema,o,c,n,r):t.type==="scalar"?Cfe(e,o,t,r):e.schema[js];let p;try{const h=d.resolve(o,m=>r(n!=null?n:t,"TAG_RESOLVE_FAILED",m),e.options);p=un(h)?h:new St(h)}catch(h){const m=h instanceof Error?h.message:String(h);r(n!=null?n:t,"TAG_RESOLVE_FAILED",m),p=new St(o)}return p.range=a,p.source=o,i&&(p.type=i),c&&(p.tag=c),d.format&&(p.format=d.format),s&&(p.comment=s),p}function wfe(e,t,n,r,o){var a;if(n==="!")return e[js];const i=[];for(const c of e.tags)if(!c.collection&&c.tag===n)if(c.default&&c.test)i.push(c);else return c;for(const c of i)if((a=c.test)!=null&&a.test(t))return c;const s=e.knownTags[n];return s&&!s.collection?(e.tags.push(Object.assign({},s,{default:!1,test:void 0})),s):(o(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),e[js])}function Cfe({directives:e,schema:t},n,r,o){var s;const i=t.tags.find(a=>{var c;return a.default&&((c=a.test)==null?void 0:c.test(n))})||t[js];if(t.compat){const a=(s=t.compat.find(c=>{var d;return c.default&&((d=c.test)==null?void 0:d.test(n))}))!=null?s:t[js];if(i.tag!==a.tag){const c=e.tagString(i.tag),d=e.tagString(a.tag),p=`Value may be parsed as either ${c} or ${d}`;o(r,"TAG_RESOLVE_FAILED",p,!0)}}return i}function xfe(e,t,n){if(t){n===null&&(n=t.length);for(let r=n-1;r>=0;--r){let o=t[r];switch(o.type){case"space":case"comment":case"newline":e-=o.source.length;continue}for(o=t[++r];(o==null?void 0:o.type)==="space";)e+=o.source.length,o=t[++r];break}}return e}const Sfe={composeNode:DA,composeEmptyNode:lS};function DA(e,t,n,r){const{spaceBefore:o,comment:i,anchor:s,tag:a}=n;let c,d=!0;switch(t.type){case"alias":c=Efe(e,t,r),(s||a)&&r(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":c=NA(e,t,a,r),s&&(c.anchor=s.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":c=dfe(Sfe,e,t,a,r),s&&(c.anchor=s.source.substring(1));break;default:{const p=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;r(t,"UNEXPECTED_TOKEN",p),c=lS(e,t.offset,void 0,null,n,r),d=!1}}return s&&c.anchor===""&&r(s,"BAD_ALIAS","Anchor cannot be an empty string"),o&&(c.spaceBefore=!0),i&&(t.type==="scalar"&&t.source===""?c.comment=i:c.commentBefore=i),e.options.keepSourceTokens&&d&&(c.srcToken=t),c}function lS(e,t,n,r,{spaceBefore:o,comment:i,anchor:s,tag:a,end:c},d){const p={type:"scalar",offset:xfe(t,n,r),indent:-1,source:""},h=NA(e,p,a,d);return s&&(h.anchor=s.source.substring(1),h.anchor===""&&d(s,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(h.spaceBefore=!0),i&&(h.comment=i,h.range[2]=c),h}function Efe({options:e},{offset:t,source:n,end:r},o){const i=new Yv(n.substring(1));i.source===""&&o(t,"BAD_ALIAS","Alias cannot be an empty string"),i.source.endsWith(":")&&o(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const s=t+n.length,a=xp(r,s,e.strict,o);return i.range=[t,s,a.offset],a.comment&&(i.comment=a.comment),i}function kfe(e,t,{offset:n,start:r,value:o,end:i},s){const a=Object.assign({_directives:t},e),c=new Qu(void 0,a),d={atRoot:!0,directives:c.directives,options:c.options,schema:c.schema},p=Tu(r,{indicator:"doc-start",next:o!=null?o:i==null?void 0:i[0],offset:n,onError:s,startOnNewline:!0});p.found&&(c.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!p.hasNewline&&s(p.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),c.contents=o?DA(d,o,p,s):lS(d,p.end,r,null,p,s);const h=c.contents.range[2],m=xp(i,h,!1,s);return m.comment&&(c.comment=m.comment),c.range=[n,h,m.offset],c}function Md(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+(typeof n=="string"?n.length:1)]}function Q_(e){var o;let t="",n=!1,r=!1;for(let i=0;i<e.length;++i){const s=e[i];switch(s[0]){case"#":t+=(t===""?"":r?`
|
|
435
|
+
|
|
436
|
+
`:`
|
|
437
|
+
`)+(s.substring(1)||" "),n=!0,r=!1;break;case"%":((o=e[i+1])==null?void 0:o[0])!=="#"&&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}class aS{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,r,o,i)=>{const s=Md(n);i?this.warnings.push(new RA(s,r,o)):this.errors.push(new Ca(s,r,o))},this.directives=new Nr({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:r,afterEmptyLine:o}=Q_(this.prelude);if(r){const i=t.contents;if(n)t.comment=t.comment?`${t.comment}
|
|
438
|
+
${r}`:r;else if(o||t.directives.docStart||!i)t.commentBefore=r;else if($n(i)&&!i.flow&&i.items.length>0){let s=i.items[0];Sn(s)&&(s=s.key);const a=s.commentBefore;s.commentBefore=a?`${r}
|
|
439
|
+
${a}`:r}else{const s=i.commentBefore;i.commentBefore=s?`${r}
|
|
440
|
+
${s}`:r}}n?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Q_(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,n=!1,r=-1){for(const o of t)yield*this.next(o);yield*this.end(n,r)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(n,r,o)=>{const i=Md(t);i[0]+=n,this.onError(i,"BAD_DIRECTIVE",r,o)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=kfe(this.options,this.directives,t,this.onError);this.atDirectives&&!n.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(n,!1),this.doc&&(yield this.doc),this.doc=n,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{const n=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,r=new Ca(Md(t),"UNEXPECTED_TOKEN",n);this.atDirectives||!this.doc?this.errors.push(r):this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const r="Unexpected doc-end without preceding document";this.errors.push(new Ca(Md(t),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const n=xp(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),n.comment){const r=this.doc.comment;this.doc.comment=r?`${r}
|
|
441
|
+
${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new Ca(Md(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,n=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){const r=Object.assign({_directives:this.directives},this.options),o=new Qu(void 0,r);this.atDirectives&&this.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),o.range=[0,n,n],this.decorate(o,!1),yield o}}}function Pfe(e,t=!0,n){if(e){const r=(o,i,s)=>{const a=typeof o=="number"?o:Array.isArray(o)?o[0]:o.offset;if(n)n(a,i,s);else throw new Ca([a,a+1],i,s)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return AA(e,t,r);case"block-scalar":return LA(e,t,r)}}return null}function Ife(e,t){var d;const{implicitKey:n=!1,indent:r,inFlow:o=!1,offset:i=-1,type:s="PLAIN"}=t,a=wp({type:s,value:e},{implicitKey:n,indent:r>0?" ".repeat(r):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}}),c=(d=t.end)!=null?d:[{type:"newline",offset:-1,indent:r,source:`
|
|
442
|
+
`}];switch(a[0]){case"|":case">":{const p=a.indexOf(`
|
|
443
|
+
`),h=a.substring(0,p),m=a.substring(p+1)+`
|
|
444
|
+
`,v=[{type:"block-scalar-header",offset:i,indent:r,source:h}];return BA(v,c)||v.push({type:"newline",offset:-1,indent:r,source:`
|
|
445
|
+
`}),{type:"block-scalar",offset:i,indent:r,props:v,source:m}}case'"':return{type:"double-quoted-scalar",offset:i,indent:r,source:a,end:c};case"'":return{type:"single-quoted-scalar",offset:i,indent:r,source:a,end:c};default:return{type:"scalar",offset:i,indent:r,source:a,end:c}}}function _fe(e,t,n={}){let{afterKey:r=!1,implicitKey:o=!1,inFlow:i=!1,type:s}=n,a="indent"in e?e.indent:null;if(r&&typeof a=="number"&&(a+=2),!s)switch(e.type){case"single-quoted-scalar":s="QUOTE_SINGLE";break;case"double-quoted-scalar":s="QUOTE_DOUBLE";break;case"block-scalar":{const d=e.props[0];if(d.type!=="block-scalar-header")throw new Error("Invalid block scalar header");s=d.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:s="PLAIN"}const c=wp({type:s,value:t},{implicitKey:o||a===null,indent:a!==null&&a>0?" ".repeat(a):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}});switch(c[0]){case"|":case">":$fe(e,c);break;case'"':S1(e,c,"double-quoted-scalar");break;case"'":S1(e,c,"single-quoted-scalar");break;default:S1(e,c,"scalar")}}function $fe(e,t){const n=t.indexOf(`
|
|
446
|
+
`),r=t.substring(0,n),o=t.substring(n+1)+`
|
|
447
|
+
`;if(e.type==="block-scalar"){const i=e.props[0];if(i.type!=="block-scalar-header")throw new Error("Invalid block scalar header");i.source=r,e.source=o}else{const{offset:i}=e,s="indent"in e?e.indent:-1,a=[{type:"block-scalar-header",offset:i,indent:s,source:r}];BA(a,"end"in e?e.end:void 0)||a.push({type:"newline",offset:-1,indent:s,source:`
|
|
448
|
+
`});for(const c of Object.keys(e))c!=="type"&&c!=="offset"&&delete e[c];Object.assign(e,{type:"block-scalar",indent:s,props:a,source:o})}}function BA(e,t){if(t)for(const n of t)switch(n.type){case"space":case"comment":e.push(n);break;case"newline":return e.push(n),!0}return!1}function S1(e,t,n){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=n,e.source=t;break;case"block-scalar":{const r=e.props.slice(1);let o=t.length;e.props[0].type==="block-scalar-header"&&(o-=e.props[0].source.length);for(const i of r)i.offset+=o;delete e.props,Object.assign(e,{type:n,source:t,end:r});break}case"block-map":case"block-seq":{const o={type:"newline",offset:e.offset+t.length,indent:e.indent,source:`
|
|
449
|
+
`};delete e.items,Object.assign(e,{type:n,source:t,end:[o]});break}default:{const r="indent"in e?e.indent:-1,o="end"in e&&Array.isArray(e.end)?e.end.filter(i=>i.type==="space"||i.type==="comment"||i.type==="newline"):[];for(const i of Object.keys(e))i!=="type"&&i!=="offset"&&delete e[i];Object.assign(e,{type:n,indent:r,source:t,end:o})}}}const Tfe=e=>"type"in e?yg(e):bm(e);function yg(e){switch(e.type){case"block-scalar":{let t="";for(const n of e.props)t+=yg(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(const n of e.items)t+=bm(n);return t}case"flow-collection":{let t=e.start.source;for(const n of e.items)t+=bm(n);for(const n of e.end)t+=n.source;return t}case"document":{let t=bm(e);if(e.end)for(const n of e.end)t+=n.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const n of e.end)t+=n.source;return t}}}function bm({start:e,key:t,sep:n,value:r}){let o="";for(const i of e)o+=i.source;if(t&&(o+=yg(t)),n)for(const i of n)o+=i.source;return r&&(o+=yg(r)),o}const gw=Symbol("break visit"),Mfe=Symbol("skip children"),zA=Symbol("remove item");function Ha(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),jA(Object.freeze([]),e,t)}Ha.BREAK=gw;Ha.SKIP=Mfe;Ha.REMOVE=zA;Ha.itemAtPath=(e,t)=>{let n=e;for(const[r,o]of t){const i=n==null?void 0:n[r];if(i&&"items"in i)n=i.items[o];else return}return n};Ha.parentCollection=(e,t)=>{const n=Ha.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],o=n==null?void 0:n[r];if(o&&"items"in o)return o;throw new Error("Parent collection not found")};function jA(e,t,n){let r=n(t,e);if(typeof r=="symbol")return r;for(const o of["key","value"]){const i=t[o];if(i&&"items"in i){for(let s=0;s<i.items.length;++s){const a=jA(Object.freeze(e.concat([[o,s]])),i.items[s],n);if(typeof a=="number")s=a-1;else{if(a===gw)return gw;a===zA&&(i.items.splice(s,1),s-=1)}}typeof r=="function"&&o==="key"&&(r=r(t,e))}}return typeof r=="function"?r(t,e):r}const sy="\uFEFF",ly="",ay="",qf="",Rfe=e=>!!e&&"items"in e,Ofe=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function Lfe(e){switch(e){case sy:return"<BOM>";case ly:return"<DOC>";case ay:return"<FLOW_END>";case qf:return"<SCALAR>";default:return JSON.stringify(e)}}function HA(e){switch(e){case sy:return"byte-order-mark";case ly:return"doc-mode";case ay:return"flow-error-end";case qf:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
|
|
450
|
+
`:case`\r
|
|
451
|
+
`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}const Afe=Object.freeze(Object.defineProperty({__proto__:null,BOM:sy,DOCUMENT:ly,FLOW_END:ay,SCALAR:qf,createScalarToken:Ife,isCollection:Rfe,isScalar:Ofe,prettyToken:Lfe,resolveAsScalar:Pfe,setScalarValue:_fe,stringify:Tfe,tokenType:HA,visit:Ha},Symbol.toStringTag,{value:"Module"}));function zo(e){switch(e){case void 0:case" ":case`
|
|
452
|
+
`:case"\r":case" ":return!0;default:return!1}}const J_="0123456789ABCDEFabcdef".split(""),Ffe="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),E1=",[]{}".split(""),Nfe=` ,[]{}
|
|
453
|
+
\r `.split(""),k1=e=>!e||Nfe.includes(e);class VA{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,n=!1){var o;t&&(this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null),this.atEnd=!n;let r=(o=this.next)!=null?o:"stream";for(;r&&(n||this.hasChars(1));)r=yield*this.parseNext(r)}atLineEnd(){let t=this.pos,n=this.buffer[t];for(;n===" "||n===" ";)n=this.buffer[++t];return!n||n==="#"||n===`
|
|
454
|
+
`?!0:n==="\r"?this.buffer[t+1]===`
|
|
455
|
+
`:!1}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let n=this.buffer[t];if(this.indentNext>0){let r=0;for(;n===" ";)n=this.buffer[++r+t];if(n==="\r"){const o=this.buffer[r+t+1];if(o===`
|
|
456
|
+
`||!o&&!this.atEnd)return t+r+1}return n===`
|
|
457
|
+
`||r>=this.indentNext||!n&&!this.atEnd?t+r:-1}if(n==="-"||n==="."){const r=this.buffer.substr(t,3);if((r==="---"||r==="...")&&zo(this.buffer[t+3]))return-1}return t}getLine(){let t=this.lineEndPos;return(typeof t!="number"||t!==-1&&t<this.pos)&&(t=this.buffer.indexOf(`
|
|
458
|
+
`,this.pos),this.lineEndPos=t),t===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[t-1]==="\r"&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]===sy&&(yield*this.pushCount(1),t=t.substring(1)),t[0]==="%"){let n=t.length;const r=t.indexOf("#");if(r!==-1){const i=t[r-1];(i===" "||i===" ")&&(n=r-1)}for(;;){const i=t[n-1];if(i===" "||i===" ")n-=1;else break}const o=(yield*this.pushCount(n))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-o),this.pushNewline(),"stream"}if(this.atLineEnd()){const n=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-n),yield*this.pushNewline(),"stream"}return yield ly,yield*this.parseLineStart()}*parseLineStart(){const t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if(t==="-"||t==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const n=this.peek(3);if(n==="---"&&zo(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"doc";if(n==="..."&&zo(this.charAt(3)))return yield*this.pushCount(3),"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!zo(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[t,n]=this.peek(2);if(!n&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&zo(n)){const r=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=r,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const t=this.getLine();if(t===null)return this.setNext("doc");let n=yield*this.pushIndicators();switch(t[n]){case"#":yield*this.pushCount(t.length-n);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(k1),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return n+=yield*this.parseBlockScalarHeader(),n+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-n),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,n,r=-1;do t=yield*this.pushNewline(),t>0?(n=yield*this.pushSpaces(!1),this.indentValue=r=n):n=0,n+=yield*this.pushSpaces(!0);while(t+n>0);const o=this.getLine();if(o===null)return this.setNext("flow");if((r!==-1&&r<this.indentNext&&o[0]!=="#"||r===0&&(o.startsWith("---")||o.startsWith("..."))&&zo(o[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(o[0]==="]"||o[0]==="}")))return this.flowLevel=0,yield ay,yield*this.parseLineStart();let i=0;for(;o[i]===",";)i+=yield*this.pushCount(1),i+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(i+=yield*this.pushIndicators(),o[i]){case void 0:return"flow";case"#":return yield*this.pushCount(o.length-i),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(k1),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const s=this.charAt(1);if(this.flowKey||zo(s)||s===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const t=this.charAt(0);let n=this.buffer.indexOf(t,this.pos+1);if(t==="'")for(;n!==-1&&this.buffer[n+1]==="'";)n=this.buffer.indexOf("'",n+2);else for(;n!==-1;){let i=0;for(;this.buffer[n-1-i]==="\\";)i+=1;if(i%2===0)break;n=this.buffer.indexOf('"',n+1)}const r=this.buffer.substring(0,n);let o=r.indexOf(`
|
|
459
|
+
`,this.pos);if(o!==-1){for(;o!==-1;){const i=this.continueScalar(o+1);if(i===-1)break;o=r.indexOf(`
|
|
460
|
+
`,i)}o!==-1&&(n=o-(r[o-1]==="\r"?2:1))}if(n===-1){if(!this.atEnd)return this.setNext("quoted-scalar");n=this.buffer.length}return yield*this.pushToIndex(n+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let t=this.pos;for(;;){const n=this.buffer[++t];if(n==="+")this.blockScalarKeep=!0;else if(n>"0"&&n<="9")this.blockScalarIndent=Number(n)-1;else if(n!=="-")break}return yield*this.pushUntil(n=>zo(n)||n==="#")}*parseBlockScalar(){let t=this.pos-1,n=0,r;e:for(let o=this.pos;r=this.buffer[o];++o)switch(r){case" ":n+=1;break;case`
|
|
461
|
+
`:t=o,n=0;break;case"\r":{const i=this.buffer[o+1];if(!i&&!this.atEnd)return this.setNext("block-scalar");if(i===`
|
|
462
|
+
`)break}default:break e}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=n:this.indentNext+=this.blockScalarIndent;do{const o=this.continueScalar(t+1);if(o===-1)break;t=this.buffer.indexOf(`
|
|
463
|
+
`,o)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}if(!this.blockScalarKeep)do{let o=t-1,i=this.buffer[o];i==="\r"&&(i=this.buffer[--o]);const s=o;for(;i===" "||i===" ";)i=this.buffer[--o];if(i===`
|
|
464
|
+
`&&o>=this.pos&&o+1+n>s)t=o;else break}while(!0);return yield qf,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const t=this.flowLevel>0;let n=this.pos-1,r=this.pos-1,o;for(;o=this.buffer[++r];)if(o===":"){const i=this.buffer[r+1];if(zo(i)||t&&i===",")break;n=r}else if(zo(o)){let i=this.buffer[r+1];if(o==="\r"&&(i===`
|
|
465
|
+
`?(r+=1,o=`
|
|
466
|
+
`,i=this.buffer[r+1]):n=r),i==="#"||t&&E1.includes(i))break;if(o===`
|
|
467
|
+
`){const s=this.continueScalar(r+1);if(s===-1)break;r=Math.max(r,s-2)}}else{if(t&&E1.includes(o))break;n=r}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield qf,yield*this.pushToIndex(n+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,n){const r=this.buffer.slice(this.pos,t);return r?(yield r,this.pos+=r.length,r.length):(n&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(k1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(zo(n)||t&&E1.includes(n))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,n=this.buffer[t];for(;!zo(n)&&n!==">";)n=this.buffer[++t];return yield*this.pushToIndex(n===">"?t+1:t,!1)}else{let t=this.pos+1,n=this.buffer[t];for(;n;)if(Ffe.includes(n))n=this.buffer[++t];else if(n==="%"&&J_.includes(this.buffer[t+1])&&J_.includes(this.buffer[t+2]))n=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){const t=this.buffer[this.pos];return t===`
|
|
468
|
+
`?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
|
|
469
|
+
`?yield*this.pushCount(2):0}*pushSpaces(t){let n=this.pos-1,r;do r=this.buffer[++n];while(r===" "||t&&r===" ");const o=n-this.pos;return o>0&&(yield this.buffer.substr(this.pos,o),this.pos=n),o}*pushUntil(t){let n=this.pos,r=this.buffer[n];for(;!t(r);)r=this.buffer[++n];return yield*this.pushToIndex(n,!1)}}class UA{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let n=0,r=this.lineStarts.length;for(;n<r;){const i=n+r>>1;this.lineStarts[i]<t?n=i+1:r=i}if(this.lineStarts[n]===t)return{line:n+1,col:1};if(n===0)return{line:0,col:t};const o=this.lineStarts[n-1];return{line:n,col:t-o+1}}}}function hi(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function Z_(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function WA(e){switch(e==null?void 0:e.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function Wh(e){var t;switch(e.type){case"document":return e.start;case"block-map":{const n=e.items[e.items.length-1];return(t=n.sep)!=null?t:n.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function Ic(e){var n;if(e.length===0)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((n=e[++t])==null?void 0:n.type)==="space";);return e.splice(t,e.length)}function e$(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!hi(t.start,"explicit-key-ind")&&!hi(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,WA(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}let cS=class{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new VA,this.onNewLine=t}*parse(t,n=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const r of this.lexer.lex(t,n))yield*this.next(r);n||(yield*this.end())}*next(t){if(this.source=t,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}const n=HA(t);if(n)if(n==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*this.step(),n){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{const r=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:r,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const t=this.peek(1);if(this.type==="doc-end"&&(!t||t.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){const n=t!=null?t:this.stack.pop();if(n)if(this.stack.length===0)yield n;else{const r=this.peek(1);switch(n.type==="block-scalar"?n.indent="indent"in r?r.indent:0:n.type==="flow-collection"&&r.type==="document"&&(n.indent=0),n.type==="flow-collection"&&e$(n),r.type){case"document":r.value=n;break;case"block-scalar":r.props.push(n);break;case"block-map":{const o=r.items[r.items.length-1];if(o.value){r.items.push({start:[],key:n,sep:[]}),this.onKeyLine=!0;return}else if(o.sep)o.value=n;else{Object.assign(o,{key:n,sep:[]}),this.onKeyLine=!hi(o.start,"explicit-key-ind");return}break}case"block-seq":{const o=r.items[r.items.length-1];o.value?r.items.push({start:[],value:n}):o.value=n;break}case"flow-collection":{const o=r.items[r.items.length-1];!o||o.value?r.items.push({start:[],key:n,sep:[]}):o.sep?o.value=n:Object.assign(o,{key:n,sep:[]});return}default:yield*this.pop(),yield*this.pop(n)}if((r.type==="document"||r.type==="block-map"||r.type==="block-seq")&&(n.type==="block-map"||n.type==="block-seq")){const o=n.items[n.items.length-1];o&&!o.sep&&!o.value&&o.start.length>0&&Z_(o.start)===-1&&(n.indent===0||o.start.every(i=>i.type!=="comment"||i.indent<n.indent))&&(r.type==="document"?r.end=o.start:r.items.push({start:o.start}),n.items.splice(-1,1))}}else{const r="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:r}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const t={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*this.lineEnd(t);switch(this.type){case"doc-start":{Z_(t.start)!==-1?(yield*this.pop(),yield*this.step()):t.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}const n=this.startBlockValue(t);n?this.stack.push(n):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if(this.type==="map-value-ind"){const n=Wh(this.peek(2)),r=Ic(n);let o;t.end?(o=t.end,o.push(this.sourceToken),delete t.end):o=[this.sourceToken];const i={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:r,key:t,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(t)}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let n=this.source.indexOf(`
|
|
470
|
+
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
|
471
|
+
`,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){var r;const n=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const o="end"in n.value?n.value.end:void 0,i=Array.isArray(o)?o[o.length-1]:void 0;(i==null?void 0:i.type)==="comment"?o==null||o.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,t.indent)){const o=t.items[t.items.length-2],i=(r=o==null?void 0:o.value)==null?void 0:r.end;if(Array.isArray(i)){Array.prototype.push.apply(i,n.start),i.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=t.indent){const o=!this.onKeyLine&&this.indent===t.indent&&n.sep;let i=[];if(o&&n.sep&&!n.value){const s=[];for(let a=0;a<n.sep.length;++a){const c=n.sep[a];switch(c.type){case"newline":s.push(a);break;case"space":break;case"comment":c.indent>t.indent&&(s.length=0);break;default:s.length=0}}s.length>=2&&(i=n.sep.splice(s[1]))}switch(this.type){case"anchor":case"tag":o||n.value?(i.push(this.sourceToken),t.items.push({start:i}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!hi(n.start,"explicit-key-ind")?n.start.push(this.sourceToken):o||n.value?(i.push(this.sourceToken),t.items.push({start:i})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]}),this.onKeyLine=!0;return;case"map-value-ind":if(hi(n.start,"explicit-key-ind"))if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(hi(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(WA(n.key)&&!hi(n.sep,"newline")){const s=Ic(n.start),a=n.key,c=n.sep;c.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:a,sep:c}]})}else i.length>0?n.sep=n.sep.concat(i,this.sourceToken):n.sep.push(this.sourceToken);else if(hi(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const s=Ic(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||o?t.items.push({start:i,key:null,sep:[this.sourceToken]}):hi(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const s=this.flowScalar(this.type);o||n.value?(t.items.push({start:i,key:s,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(s):(Object.assign(n,{key:s,sep:[]}),this.onKeyLine=!0);return}default:{const s=this.startBlockValue(t);if(s){o&&s.type!=="block-seq"&&hi(n.start,"explicit-key-ind")&&t.items.push({start:i}),this.stack.push(s);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){var r;const n=t.items[t.items.length-1];switch(this.type){case"newline":if(n.value){const o="end"in n.value?n.value.end:void 0,i=Array.isArray(o)?o[o.length-1]:void 0;(i==null?void 0:i.type)==="comment"?o==null||o.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,t.indent)){const o=t.items[t.items.length-2],i=(r=o==null?void 0:o.value)==null?void 0:r.end;if(Array.isArray(i)){Array.prototype.push.apply(i,n.start),i.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=t.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;n.value||hi(n.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>t.indent){const o=this.startBlockValue(t);if(o){this.stack.push(o);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){const n=t.items[t.items.length-1];if(this.type==="flow-error-end"){let r;do yield*this.pop(),r=this.peek(1);while(r&&r.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?t.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);!n||n.value?t.items.push({start:[],key:o,sep:[]}):n.sep?this.stack.push(o):Object.assign(n,{key:o,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}const r=this.startBlockValue(t);r?this.stack.push(r):(yield*this.pop(),yield*this.step())}else{const r=this.peek(2);if(r.type==="block-map"&&(this.type==="map-value-ind"&&r.indent===t.indent||this.type==="newline"&&!r.items[r.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&r.type!=="flow-collection"){const o=Wh(r),i=Ic(o);e$(t);const s=t.end.splice(1,t.end.length);s.push(this.sourceToken);const a={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:i,key:t,sep:s}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let n=this.source.indexOf(`
|
|
472
|
+
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
|
473
|
+
`,n)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=Wh(t),r=Ic(n);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r}]}}case"map-value-ind":{this.onKeyLine=!0;const n=Wh(t),r=Ic(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,n){return this.type!=="comment"||this.indent<=n?!1:t.every(r=>r.type==="newline"||r.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};function GA(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new UA||null,prettyErrors:t}}function Dfe(e,t={}){const{lineCounter:n,prettyErrors:r}=GA(t),o=new cS(n==null?void 0:n.addNewLine),i=new aS(t),s=Array.from(i.compose(o.parse(e)));if(r&&n)for(const a of s)a.errors.forEach(vg(e,n)),a.warnings.forEach(vg(e,n));return s.length>0?s:Object.assign([],{empty:!0},i.streamInfo())}function KA(e,t={}){const{lineCounter:n,prettyErrors:r}=GA(t),o=new cS(n==null?void 0:n.addNewLine),i=new aS(t);let s=null;for(const a of i.compose(o.parse(e),!0,e.length))if(!s)s=a;else if(s.options.logLevel!=="silent"){s.errors.push(new Ca(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(s.errors.forEach(vg(e,n)),s.warnings.forEach(vg(e,n))),s}function Bfe(e,t,n){let r;typeof t=="function"?r=t:n===void 0&&t&&typeof t=="object"&&(n=t);const o=KA(e,n);if(!o)return null;if(o.warnings.forEach(i=>hA(o.options.logLevel,i)),o.errors.length>0){if(o.options.logLevel!=="silent")throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:r},n))}function zfe(e,t,n){var o;let r=null;if(typeof t=="function"||Array.isArray(t)?r=t:n===void 0&&t&&(n=t),typeof n=="string"&&(n=n.length),typeof n=="number"){const i=Math.round(n);n=i<1?void 0:i>8?{indent:8}:{indent:i}}if(e===void 0){const{keepUndefined:i}=(o=n!=null?n:t)!=null?o:{};if(!i)return}return new Qu(e,r,n).toString(n)}const t$=Object.freeze(Object.defineProperty({__proto__:null,Alias:Yv,CST:Afe,Composer:aS,Document:Qu,Lexer:VA,LineCounter:UA,Pair:$r,Parser:cS,Scalar:St,Schema:iy,YAMLError:sS,YAMLMap:Wo,YAMLParseError:Ca,YAMLSeq:tc,YAMLWarning:RA,isAlias:Za,isCollection:$n,isDocument:bp,isMap:ec,isNode:Hn,isPair:Sn,isScalar:un,isSeq:qu,parse:Bfe,parseAllDocuments:Dfe,parseDocument:KA,stringify:zfe,visit:Kl,visitAsync:qv},Symbol.toStringTag,{value:"Module"})),jfe="https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept";function Hfe({file:e,anyMask:t,defaultPerms:n,addToBar:r,urls:o}){var O;const M=e,{parent:i,children:s,isRoot:a}=M,c=sn(M,["parent","children","isRoot"]),[d,p]=u.useState(c);u.useEffect(()=>{p(Object.assign(hx(n,()=>null),c))},[e]);const{source:h}=e,m=e.type==="folder",v=h!==void 0,b=v&&m,g=u.useMemo(()=>{const R={};let H=i;for(;H;)Ot.defaults(R,H),H=H.parent;return Ot.defaults(R,n)},[i]),x=v&&Boolean(d.ctime),C=v&&!b,S=e.accept>""||m&&((O=e.can_upload)!=null?O:g.can_upload),w=bx(),{data:E,element:P}=Xo("get_accounts");if(P||!E)return P;const _=E.list;return u.createElement(cp,{values:d,set(R,H){H!=="link"&&p(Tt(Ie({},d),{[H]:R}))},barSx:Ie({gap:2,width:"100%"},w),stickyBar:!0,addToBar:[!a&&u.createElement(xn,{icon:os,title:"Delete",confirm:"Delete?",onClick:()=>Pt("del_vfs",{uris:[e.id]}).then(()=>Va())}),r],onError:Dn,save:{sx:Hv(!wx(d,e)),onClick(){return it(this,null,function*(){const R=Ot.omit(d,["ctime","mtime","size","id"]);R.masks||(R.masks=null),yield Pt("set_vfs",{uri:d.id,props:R}),R.name!==e.name&&(Cn.selectedFiles[0].id=e.id.slice(0,-e.name.length)+R.name),Va()})}},fields:[a?u.createElement(ko,{severity:"info"},"This is Home, the root of your shared files. Options set here will be applied to all files."):{k:"name",required:!0,helperText:h&&"You can decide a name that's different from the one on your disk"},{k:"id",comp:Ufe,urls:o},{k:"source",label:"Source on disk",comp:ff,files:!m,folders:m,multiline:!0,placeholder:"Not on disk, this is a virtual folder"},I("can_read","Who can download","Who can see but not download will be asked to login"),I("can_see","Who can see","If you don't see, you may download with a direct link"),m&&I("can_list","Who can list","Permission to see content of folders"),m&&I("can_delete","Who can delete",v?"":"Works only on folders with source"),m&&I("can_upload","Who can upload",v?"":"Works only on folders with source",{lg:S?6:12}),S&&{k:"accept",label:"Accept on upload",placeholder:"anything",helperText:u.createElement(Ms,{href:jfe,target:"_blank"},"Example: .zip"),lg:6},C&&{k:"size",comp:pm,lg:4,toField:Na},x&&{k:"ctime",comp:pm,md:6,lg:C&&4,label:"Created",toField:n$},x&&{k:"mtime",comp:pm,md:6,lg:C&&4,label:"Modified",toField:n$},e.website&&{k:"default",comp:Ol,label:"Serve index.html",toField:Boolean,fromField:R=>R?"index.html":null,helperText:Ki("This folder may be a website because contains `index.html`. Enabling this will show the website instead of the list of files.")},m&&{k:"masks",multiline:!0,lg:!0,toField:t$.stringify,fromField:R=>R?t$.parse(R):void 0,sx:{"& textarea":{fontFamily:"monospace"}},helperText:"Special field, leave empty unless you know what you are doing. YAML syntax."}]});function I(R,H,j="",A={}){return Ie({showInherited:t,k:R,lg:6,comp:Vfe,parent:i,accounts:_,label:H,inherit:g[R],helperText:j},A)}}function n$(e){return e?new Date(e).toLocaleString():"-"}function Vfe(c){var d=c,{value:e,onChange:t,parent:n,inherit:r,accounts:o,helperText:i,showInherited:s}=d,a=sn(d,["value","onChange","parent","inherit","accounts","helperText","showInherited"]);const p=u.useMemo(()=>ju([{value:null,label:(n?"Same as parent: ":"Default: ")+r$(r)},{value:!0},{value:!1},{value:"*"},{value:[],label:"Select accounts"}].map(m=>(m.value===e||s||m.value!==r)&&Ie({label:Ot.capitalize(r$(m.value))},m))),[r,n,e]),h=Array.isArray(e);return u.createElement("div",{},u.createElement(zs,Tt(Ie({},a),{helperText:!h&&i,value:h?[]:e,onChange(m,{was:v,event:b}){t(m,{was:v,event:b})},options:p})),h&&u.createElement(gx,{label:o!=null&&o.length?"Choose accounts for "+a.label:"You didn't create any account yet",value:e,onChange:t,helperText:i,options:(o==null?void 0:o.map(m=>({value:m.username,label:m.username})))||[]}))}function r$(e){return e===!1?"no one":e===!0?"anyone":e==="*"?"any account (login required)":Array.isArray(e)?e.join(", "):"*UNKNOWN*"+JSON.stringify(e)}function Ufe({value:e,urls:t}){const{data:n,error:r,reload:o}=Xo("get_config",{only:["base_url"]}),i=n==null?void 0:n.base_url,s=(i||(t?t[0]:""))+e;return u.createElement(nt,{display:"flex"},u.createElement(pm,{label:"Link",value:s,error:r,end:u.createElement(nt,{},u.createElement(xn,{icon:nte,title:"Copy",onClick:()=>navigator.clipboard.writeText(s)}),u.createElement(xn,{icon:wO,title:"Change",onClick:a}))}));function a(){const c=new URL(i||t[0]).protocol+"//";si({title:"Change link",onClose:o,Content(){const[d,p]=u.useState(i),[h,m]=u.useState(c);return u.createElement(nt,{display:"flex",flexDirection:"column"},u.createElement(nt,{mb:2},"You can choose a different base address for your links"),u.createElement(Rv,{},t.map(b=>u.createElement(ar,{key:b,selected:b===d,onClick:()=>v(b)},b,b===d&&u.createElement(bO,{sx:{ml:2}})))),u.createElement(Qr,{label:"Custom IP or domain",helperText:Ki(`You can type any address but *you* are responsible to make the address work.
|
|
474
|
+
This functionality is just to help you copy the link in case you have a domain or a complex network configuration.`),value:!d||t.includes(d)?"":d.slice(h.length),onChange:b=>v(af(h,b)),start:u.createElement(zs,{value:h,onChange:m,options:["http://","https://"],size:"small",variant:"standard",sx:{"& .MuiSelect-select":{pt:"1px",pb:0}}}),sx:{mt:2}}));function v(b){return it(this,null,function*(){b.endsWith("/")&&(b=b.slice(0,-1)),yield Pt("set_config",{values:{base_url:b}}),p(b)})}}})}}let vw;function Wfe(){var g,x,C;const[e]=u.useState(()=>new Map),{vfs:t,selectedFiles:n}=Jl(),{data:r,reload:o,element:i}=Xo("get_vfs");u.useMemo(()=>t||o(),[t,o]);const s=u.useMemo(()=>{return S(t);function S(w){var E;return!Ot.isEmpty(w==null?void 0:w.masks)||((E=w==null?void 0:w.children)==null?void 0:E.some(S))}},[t]),a="md",c=Pu(a),[d]=up("get_status"),p=u.useMemo(()=>{var S,w;return typeof d=="object"&&Ot.sortBy(Object.values(((S=d.urls)==null?void 0:S.https)||((w=d.urls)==null?void 0:w.http)||{}),E=>E.includes("["))},[d]);function h(){Cn.selectedFiles=[]}const m=n.length?n.length===1?u.createElement(Hfe,{addToBar:c&&u.createElement(xn,{icon:Ov,title:"Close",onClick:h}),defaultPerms:r==null?void 0:r.defaultPerms,anyMask:s,urls:p,file:n[0]}):u.createElement(u.Fragment,{},u.createElement(yx,{alignItems:"center"},u.createElement(Ir,{variant:"h6"},n.length+" selected"),u.createElement(lr,{onClick:Gfe,startIcon:u.createElement(os)},"Remove")),u.createElement(Tv,{dense:!0,disablePadding:!0},n.map(S=>u.createElement(sO,{key:S.id},u.createElement(Mv,{primary:S.name,secondary:S.source}))))):null;if(u.useEffect(()=>{if(!(c||!m))return si({title:n.length>1?"Multiple selection":n[0].name,Content:()=>m,onClose:h})},[c,n]),u.useEffect(()=>{if(Cn.vfs=void 0,!r)return;e.clear();const{root:S}=r;if(!S)return;S.isRoot=!0,E(S),Cn.vfs=S;const w=vw||Cn.selectedFiles.map(P=>P.id);vw=void 0,Cn.selectedFiles=ju(w.map(P=>e.get(P)));function E(P,_="/",I=void 0){if(P.parent=I,P.id=P.isRoot?"/":af(_,encodeURIComponent(P.name),P.type==="folder"?"/":""),e.set(P.id,P),!!P.children)for(const M of P.children)E(M,P.id,P)}},[r,e]),i)return e.clear(),i;const b=!((x=(g=r==null?void 0:r.root)==null?void 0:g.children)!=null&&x.length)&&!((C=r==null?void 0:r.root)!=null&&C.source)?{severity:"warning",children:"Add something to your shared files — click Add"}:p&&{severity:"info",children:["Your shared files can be browsed from ",Nte(" or ",p.slice(0,3).map(S=>u.createElement(Ms,{href:S},S)))]};return u.createElement(Wn,{container:!0,rowSpacing:1,maxWidth:"80em",columnSpacing:2},b&&u.createElement(Wn,{item:!0,mb:2,xs:12},u.createElement(ko,b)),u.createElement(Wn,{item:!0,[a]:6,lg:5},u.createElement(Ir,{variant:"h6",mb:1},"Virtual File System"),u.createElement($de),t&&u.createElement(Kfe,{id2node:e})),c&&m&&u.createElement(Wn,{item:!0,[a]:6,lg:7,maxWidth:"100%"},u.createElement(jR,{},u.createElement(HR,{},m))))}function Va(e){vw=e,Cn.vfs=void 0}function Gfe(){return it(this,null,function*(){const e=Cn.selectedFiles;if(e.length&&(yield Vl(`Delete ${e.length} item(s)?`)))try{const t=e.map(o=>o.id);Ot.pull(t,"/");const{errors:n}=yield Pt("del_vfs",{uris:t}),r=t.filter((o,i)=>n[i]);if(r.length)return Dn("Following elements couldn't be deleted: "+r.join(", "),"error");Va()}catch(t){yield Dn(t)}})}const qA=lte,YA=hte;function Kfe({id2node:e}){const{vfs:t,selectedFiles:n}=Jl(),[r,o]=u.useState(n.map(m=>m.id)),[i,s]=u.useState(Array.from(e.keys())),a=u.useRef(),c=u.useRef();if(!t)return null;const d="vfs";return u.createElement(FO,{ref:c,expanded:i,selected:r,multiSelect:!0,id:d,sx:{overflowX:"auto",maxWidth:c.current&&`calc(100vw - ${16+c.current.offsetLeft}px)`,"& ul":{borderLeft:"1px dashed #444",marginLeft:"15px"}},onNodeSelect(m,v){o(v),Cn.selectedFiles=ju(v.map(b=>e.get(b)))}},h(t));function p(m){return m!==void 0&&m!==!0}function h(m){var w,E;let{id:v,name:b,source:g,isRoot:x}=m;if(!v)debugger;const C=m.type==="folder";return C&&!UO(g)&&g===b&&(g="./"+g),u.createElement(Jb,{ref(P){P==null||P.addEventListener("focusin",_=>_.stopImmediatePropagation())},label:u.createElement(nt,{draggable:!x,onDragStart(){a.current=v},onDragOver(P){if(!C)return;const _=a.current;_!=null&&_.startsWith(v)&&!_.slice(v.length+1).includes("/")||P.preventDefault()},onDrop(){return it(this,null,function*(){const P=a.current;P&&(yield Vl(`Moving ${P} under ${v}`))&&Pt("move_vfs",{from:P,parent:v}).then(()=>{Va([xre(v,Cre(P))])},Dn)})},sx:{display:"flex",gap:".5em",lineHeight:"2em",alignItems:"center"}},u.createElement(nt,{display:"flex",flex:0},x?ho(pte,"home, or root if you like"):C?ho(qA,"Folder"):ho(YA,"File"),u.createElement(nt,{sx:{flex:0,ml:"2px",my:"2px","&>*":{fontSize:"87%",opacity:.6,mt:"-2px"},display:"grid",gridAutoFlow:"column",gridTemplateRows:"auto auto"}},m.can_delete!==void 0&&ho(os,"Delete permission"),m.can_upload!==void 0&&ho(Lv,"Upload permission"),!x&&!m.source&&ho(ete,"Virtual (no source)"),p(m.can_see)&&ho(kte,"Restrictions on who can see"),p(m.can_read)&&ho(xO,"Restrictions on who can download"),m.default&&ho(Mte,"Act as website"),m.masks&&ho(Ite,"Masks"),m.size===-1&&ho(dte,"Source not found"))),x?"Home":(g==null?void 0:g.length)<45&&(g!=null&&g.endsWith(b))?u.createElement("span",{},u.createElement("span",{style:{opacity:.4}},g.slice(0,-b.length)),u.createElement("span",{},g.slice(-b.length))):u.createElement(nt,{lineHeight:"1.2em"},b)),key:b,collapseIcon:u.createElement(ite,{onClick(P){s(i.filter(_=>_!==v)),P.preventDefault(),P.stopPropagation()}}),expandIcon:u.createElement(Zee,{onClick(P){s([...i,v]),P.preventDefault(),P.stopPropagation()}}),nodeId:v},x&&!((w=m.children)!=null&&w.length)?u.createElement(Jb,{nodeId:"?",label:u.createElement("i",{},"nothing here")}):(E=m.children)==null?void 0:E.map(h))}}var o$=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function qfe(e,t){return!!(e===t||o$(e)&&o$(t))}function Yfe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!qfe(e[n],t[n]))return!1;return!0}function P1(e,t){t===void 0&&(t=Yfe);var n,r=[],o,i=!1;function s(){for(var a=[],c=0;c<arguments.length;c++)a[c]=arguments[c];return i&&n===this&&t(a,r)||(o=e.apply(this,a),i=!0,n=this,r=a),o}return s}var Xfe=typeof performance=="object"&&typeof performance.now=="function",i$=Xfe?function(){return performance.now()}:function(){return Date.now()};function s$(e){cancelAnimationFrame(e.id)}function Qfe(e,t){var n=i$();function r(){i$()-n>=t?e.call(null):o.id=requestAnimationFrame(r)}var o={id:requestAnimationFrame(r)};return o}var I1=-1;function l$(e){if(e===void 0&&(e=!1),I1===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),I1=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return I1}var _c=null;function a$(e){if(e===void 0&&(e=!1),_c===null||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?_c="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?_c="negative":_c="positive-ascending"),document.body.removeChild(t),_c}return _c}var Jfe=150,Zfe=function(t,n){return t};function epe(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,a=e.getStopIndexForStartIndex,c=e.initInstanceProps,d=e.shouldResetStyleCacheOnItemSizeChange,p=e.validateProps;return t=function(h){qC(m,h);function m(b){var g;return g=h.call(this,b)||this,g._instanceProps=c(g.props,Db(g)),g._outerRef=void 0,g._resetIsScrollingTimeoutId=null,g.state={instance:Db(g),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof g.props.initialScrollOffset=="number"?g.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},g._callOnItemsRendered=void 0,g._callOnItemsRendered=P1(function(x,C,S,w){return g.props.onItemsRendered({overscanStartIndex:x,overscanStopIndex:C,visibleStartIndex:S,visibleStopIndex:w})}),g._callOnScroll=void 0,g._callOnScroll=P1(function(x,C,S){return g.props.onScroll({scrollDirection:x,scrollOffset:C,scrollUpdateWasRequested:S})}),g._getItemStyle=void 0,g._getItemStyle=function(x){var C=g.props,S=C.direction,w=C.itemSize,E=C.layout,P=g._getItemStyleCache(d&&w,d&&E,d&&S),_;if(P.hasOwnProperty(x))_=P[x];else{var I=n(g.props,x,g._instanceProps),M=o(g.props,x,g._instanceProps),O=S==="horizontal"||E==="horizontal",L=S==="rtl",R=O?I:0;P[x]=_={position:"absolute",left:L?void 0:R,right:L?R:void 0,top:O?0:I,height:O?"100%":M,width:O?M:"100%"}}return _},g._getItemStyleCache=void 0,g._getItemStyleCache=P1(function(x,C,S){return{}}),g._onScrollHorizontal=function(x){var C=x.currentTarget,S=C.clientWidth,w=C.scrollLeft,E=C.scrollWidth;g.setState(function(P){if(P.scrollOffset===w)return null;var _=g.props.direction,I=w;if(_==="rtl")switch(a$()){case"negative":I=-w;break;case"positive-descending":I=E-S-w;break}return I=Math.max(0,Math.min(I,E-S)),{isScrolling:!0,scrollDirection:P.scrollOffset<w?"forward":"backward",scrollOffset:I,scrollUpdateWasRequested:!1}},g._resetIsScrollingDebounced)},g._onScrollVertical=function(x){var C=x.currentTarget,S=C.clientHeight,w=C.scrollHeight,E=C.scrollTop;g.setState(function(P){if(P.scrollOffset===E)return null;var _=Math.max(0,Math.min(E,w-S));return{isScrolling:!0,scrollDirection:P.scrollOffset<_?"forward":"backward",scrollOffset:_,scrollUpdateWasRequested:!1}},g._resetIsScrollingDebounced)},g._outerRefSetter=function(x){var C=g.props.outerRef;g._outerRef=x,typeof C=="function"?C(x):C!=null&&typeof C=="object"&&C.hasOwnProperty("current")&&(C.current=x)},g._resetIsScrollingDebounced=function(){g._resetIsScrollingTimeoutId!==null&&s$(g._resetIsScrollingTimeoutId),g._resetIsScrollingTimeoutId=Qfe(g._resetIsScrolling,Jfe)},g._resetIsScrolling=function(){g._resetIsScrollingTimeoutId=null,g.setState({isScrolling:!1},function(){g._getItemStyleCache(-1,null)})},g}m.getDerivedStateFromProps=function(g,x){return tpe(g,x),p(g),null};var v=m.prototype;return v.scrollTo=function(g){g=Math.max(0,g),this.setState(function(x){return x.scrollOffset===g?null:{scrollDirection:x.scrollOffset<g?"forward":"backward",scrollOffset:g,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},v.scrollToItem=function(g,x){x===void 0&&(x="auto");var C=this.props,S=C.itemCount,w=C.layout,E=this.state.scrollOffset;g=Math.max(0,Math.min(g,S-1));var P=0;if(this._outerRef){var _=this._outerRef;w==="vertical"?P=_.scrollWidth>_.clientWidth?l$():0:P=_.scrollHeight>_.clientHeight?l$():0}this.scrollTo(i(this.props,g,x,E,this._instanceProps,P))},v.componentDidMount=function(){var g=this.props,x=g.direction,C=g.initialScrollOffset,S=g.layout;if(typeof C=="number"&&this._outerRef!=null){var w=this._outerRef;x==="horizontal"||S==="horizontal"?w.scrollLeft=C:w.scrollTop=C}this._callPropsCallbacks()},v.componentDidUpdate=function(){var g=this.props,x=g.direction,C=g.layout,S=this.state,w=S.scrollOffset,E=S.scrollUpdateWasRequested;if(E&&this._outerRef!=null){var P=this._outerRef;if(x==="horizontal"||C==="horizontal")if(x==="rtl")switch(a$()){case"negative":P.scrollLeft=-w;break;case"positive-ascending":P.scrollLeft=w;break;default:var _=P.clientWidth,I=P.scrollWidth;P.scrollLeft=I-_-w;break}else P.scrollLeft=w;else P.scrollTop=w}this._callPropsCallbacks()},v.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&s$(this._resetIsScrollingTimeoutId)},v.render=function(){var g=this.props,x=g.children,C=g.className,S=g.direction,w=g.height,E=g.innerRef,P=g.innerElementType,_=g.innerTagName,I=g.itemCount,M=g.itemData,O=g.itemKey,L=O===void 0?Zfe:O,R=g.layout,H=g.outerElementType,j=g.outerTagName,A=g.style,F=g.useIsScrolling,B=g.width,G=this.state.isScrolling,N=S==="horizontal"||R==="horizontal",z=N?this._onScrollHorizontal:this._onScrollVertical,W=this._getRangeToRender(),q=W[0],X=W[1],le=[];if(I>0)for(var Q=q;Q<=X;Q++)le.push(u.createElement(x,{data:M,key:L(Q,M),index:Q,isScrolling:F?G:void 0,style:this._getItemStyle(Q)}));var ge=r(this.props,this._instanceProps);return u.createElement(H||j||"div",{className:C,onScroll:z,ref:this._outerRefSetter,style:k({position:"relative",height:w,width:B,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:S},A)},u.createElement(P||_||"div",{children:le,ref:E,style:{height:N?"100%":ge,pointerEvents:G?"none":void 0,width:N?ge:"100%"}}))},v._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var g=this.props.itemCount;if(g>0){var x=this._getRangeToRender(),C=x[0],S=x[1],w=x[2],E=x[3];this._callOnItemsRendered(C,S,w,E)}}if(typeof this.props.onScroll=="function"){var P=this.state,_=P.scrollDirection,I=P.scrollOffset,M=P.scrollUpdateWasRequested;this._callOnScroll(_,I,M)}},v._getRangeToRender=function(){var g=this.props,x=g.itemCount,C=g.overscanCount,S=this.state,w=S.isScrolling,E=S.scrollDirection,P=S.scrollOffset;if(x===0)return[0,0,0,0];var _=s(this.props,P,this._instanceProps),I=a(this.props,_,P,this._instanceProps),M=!w||E==="backward"?Math.max(1,C):1,O=!w||E==="forward"?Math.max(1,C):1;return[Math.max(0,_-M),Math.max(0,Math.min(x-1,I+O)),_,I]},m}(u.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var tpe=function(t,n){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,n.instance},npe=epe({getItemOffset:function(t,n){var r=t.itemSize;return n*r},getItemSize:function(t,n){var r=t.itemSize;return r},getEstimatedTotalSize:function(t){var n=t.itemCount,r=t.itemSize;return r*n},getOffsetForIndexAndAlignment:function(t,n,r,o,i,s){var a=t.direction,c=t.height,d=t.itemCount,p=t.itemSize,h=t.layout,m=t.width,v=a==="horizontal"||h==="horizontal",b=v?m:c,g=Math.max(0,d*p-b),x=Math.min(g,n*p),C=Math.max(0,n*p-b+p+s);switch(r==="smart"&&(o>=C-b&&o<=x+b?r="auto":r="center"),r){case"start":return x;case"end":return C;case"center":{var S=Math.round(C+(x-C)/2);return S<Math.ceil(b/2)?0:S>g+Math.floor(b/2)?g:S}case"auto":default:return o>=C&&o<=x?o:o<C?C:x}},getStartIndexForOffset:function(t,n){var r=t.itemCount,o=t.itemSize;return Math.max(0,Math.min(r-1,Math.floor(n/o)))},getStopIndexForStartIndex:function(t,n,r){var o=t.direction,i=t.height,s=t.itemCount,a=t.itemSize,c=t.layout,d=t.width,p=o==="horizontal"||c==="horizontal",h=n*a,m=p?d:i,v=Math.ceil((m+r-h)/a);return Math.max(0,Math.min(s-1,n+v-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){t.itemSize}});function XA({onSelect:e,multiple:t=!0,files:n=!0,folders:r=!0,fileMask:o,from:i=""}){const[s,a]=u.useState(i),[c,d]=u.useState(!1),p=u.useRef(!1);u.useEffect(()=>{Pt("resolve_path",{path:i,closestFolder:!0}).then(H=>{typeof H.path=="string"&&(a(H.path),p.current=H.path[1]===":")}).finally(()=>d(!0))},[i]);const{list:h,error:m,loading:v}=Xa(c&&"ls",{path:s,files:n,fileMask:o});u.useEffect(()=>{g([]),C("")},[s]);const[b,g]=u.useState([]),[x,C]=u.useState(""),S=u.useMemo(()=>Ot.debounce(H=>C(H)),[]),w=u.useMemo(()=>{const H=new RegExp(Ot.escapeRegExp(x),"i");return j=>H.test(j)},[x]),[E,P]=u.useState(0),_=u.useMemo(()=>h.filter(H=>w(H.n)),[h,w]);if(v)return VO();const I=p.current?"":"/",M=p.current?"\\":"/",O=vne(M,s),L=s.length<2;return u.createElement(u.Fragment,{},u.createElement(nt,{display:"flex",gap:1},u.createElement(lr,{title:"root",disabled:L,onClick(){a(I)}},u.createElement(Tte)),u.createElement(lr,{disabled:L,title:"parent folder",onClick(){const H=/[\\/]$/.test(s)?s.slice(0,-1):s,j=UO(H)?I:H.slice(0,H.lastIndexOf(M)||1);a(j)}},u.createElement(Xee)),u.createElement(Qr,{label:"Current path",value:s,InputLabelProps:{shrink:!0},onChange(H){return it(this,null,function*(){if(!H)return a(I);const j=yield Pt("resolve_path",{path:H});a(j.path)})}})),m?u.createElement(ko,{severity:"error"},WO(m)):u.createElement(u.Fragment,{},u.createElement(nt,{ref(H){if(!H)return;const j=(H==null?void 0:H.clientHeight)-1;j-E>1&&P(j)},sx:{flex:1,display:"flex",flexDirection:"column"}},h.length?u.createElement(npe,{width:"100%",height:E,itemSize:46,itemCount:_.length,overscanCount:5,children({index:H,style:j}){const A=_[H],F=A.k==="d";return u.createElement(ar,{style:Tt(Ie({},j),{padding:0}),key:A.n,onClick(){F?a(O+A.n):e([O+A.n])}},t&&u.createElement(UR,{checked:b.includes(A.n),disabled:!r&&F,onClick(B){const G=A.n,N=b.filter(z=>z!==G);g(N.length<b.length?N:[...b,G]),B.stopPropagation()}}),u.createElement(lO,{},u.createElement(A.k?qA:YA)),u.createElement(Mv,{sx:{whiteSpace:"pre-wrap",wordBreak:"break-all"}},A.n),!F&&A.s!==void 0&&u.createElement(Ir,{variant:"body2",color:"text.secondary",ml:4,mr:1},Na(A.s)))}}):u.createElement(xx,{flex:1,mt:"4em"},"No elements in this folder")),u.createElement(nt,{display:"flex",gap:1},(t||r||!n)&&u.createElement(lr,{variant:"contained",disabled:!s||!r&&!b.length&&n,sx:{minWidth:"max-content"},onClick(){e(b.length?b.map(H=>O+H):[s])}},n&&(b.length||!r)?`Select (${b.length})`:"Select this folder"),u.createElement(lp,{value:x,label:`Filter results (${_.length}${_.length<h.length?"/"+h.length:""})`,onChange(H){S(H.target.value)},sx:{flex:1}}))))}function ff(c){var d=c,{value:e,onChange:t,files:n=!0,folders:r=!1,fileMask:o,defaultPath:i,title:s}=d,a=sn(d,["value","onChange","files","folders","fileMask","defaultPath","title"]);const p=Pu("md");return u.createElement(Qr,Tt(Ie({},a),{value:e,onChange:t,InputProps:{endAdornment:u.createElement(eg,{position:"end"},u.createElement(xn,{icon:ote,title:"Browse files...",edge:"end",onClick(){const h=si({title:s!=null?s:n?"Pick a file":"Pick a folder",dialogProps:{fullScreen:!p,sx:{minWidth:"min(90vw, 40em)",minHeight:"calc(100vh - 9em)"}},Content(){return u.createElement(XA,{multiple:!1,folders:r,files:n,fileMask:o,from:e||i,onSelect(v){return it(this,null,function*(){var x;let b=v==null?void 0:v[0];if(!b)return;const g=(x=yield Pt("get_cwd"))==null?void 0:x.path;b.startsWith(g)&&(b=b.slice(g.length+1)||"."),t(b,{was:e,event:"picker"}),h()})}})}})}}))}}))}function rpe(){var C,S,w;const e=" — ",{username:t}=Jl(),{data:n,reload:r,element:o}=Xo("get_status"),{data:i}=Xo("get_vfs"),[s]=up(t&&"get_account"),{data:a,reload:c}=Xo("get_config",{only:["https_port","cert","private_key","proxies","ignore_proxies"]}),{list:d}=Xa("get_plugins");if(o||!n)return o;const{http:p,https:h}=n,m=!(p!=null&&p.listening)&&(h!=null&&h.listening)?"s":"",v=m?h:(p==null?void 0:p.listening)&&p,b=v&&`http${m}://`+window.location.hostname+(v.port===(m?443:80)?"":":"+v.port),g=hx(n,P=>P.busy?[`port ${P.port} already used by ${P.busy}${e}choose a `,Gh("different port"),` or stop ${P.busy}`]:P.error),x=g&&ju(Object.entries(g).map(([P,_])=>_&&[Ki(`Protocol _${P}_ cannot work: `),_,(uS(_)||dS(_))&&[e,u.createElement(Ms,{sx:{cursor:"pointer"},onClick(){fS().then(c).then(r)}},"make one")," or ",e,Gh("provide adequate files")]]));return u.createElement(nt,{display:"flex",gap:2,flexDirection:"column"},t&&pi("","Welcome "+t),x.length?og(x.map(P=>pi("error",og(P)))):pi("success","Server is working"),i?!((S=(C=i.root)==null?void 0:C.children)!=null&&S.length)&&!((w=i.root)!=null&&w.source)?pi("warning","You have no files shared",e,ope("add some")):pi("",Ki("This is Admin-panel, where you manage your server. Access your files on "),u.createElement(Ms,{target:"frontend",href:"/"},"Front-end",u.createElement(mte,{sx:{verticalAlign:"sub",ml:".2em"}}))):u.createElement(sQ),!b&&pi("warning","Frontend unreachable: ",["http","https"].map(P=>P+" "+(g[P]?"is in error":"is off")).join(", "),!x.length&&[e,Gh("switch http or https on")]),d.find(P=>P.badApi)&&pi("warning","Some plugins may be incompatible"),!(s!=null&&s.adminActualAccess)&&pi("",Ki("On _localhost_ you don't need to login"),e,u.createElement(Cx,{to:"accounts"},Ki("to access from another computer create an account with /admin/ permission"))),QA(a,n)&&pi("warning","A proxy was detected but none is configured",e,Gh("set the number of proxies"),e,"unless you are sure you can ",u.createElement(lr,{onClick(){return it(this,null,function*(){(yield Vl("Go on only if you know what you are doing"))&&(yield Pt("set_config",{values:{ignore_proxies:!0}}))&&c()})}},"ignore this warning")),n.frpDetected&&pi("warning",'FRP is detected. It should not be used with "type = tcp" with HFS. Possible solutions are',u.createElement("ol",{},u.createElement("li",{},"configure FRP with type=http (best solution)"),u.createElement("li",{},Ki("configure FRP to connect to HFS _not_ with 127.0.0.1 (safe, but you won't see users' IPs)")),u.createElement("li",{},`disable "admin access for localhost" in HFS (safe, but you won't see users' IPs)`))),pi("",u.createElement(Ms,{target:"support",href:"https://github.com/rejetto/hfs/discussions"},"Get support")))}function pi(e,...t){return u.createElement(nt,{fontSize:"x-large",color:n=>{var r;return e&&((r=n.palette[e])==null?void 0:r.main)}},u.createElement({success:Jee,info:rg,"":rg,warning:cx,error:sx}[e],{sx:{mb:"-3px",mr:1,color:e?void 0:"primary.main"}}),...t)}function ope(e="File System page"){return u.createElement(Cx,{to:"fs"},e)}function Gh(e="Options page"){return u.createElement(Cx,{to:"options"},e)}function QA(e,t){return e&&!e.proxies&&!e.ignore_proxies&&(t==null?void 0:t.proxyDetected)}let Al,yw;const JA=ap({changes:{}});fx(Cn,e=>{e.some(t=>t[1][0]==="config")&&ZA()});const bg={log:"Access log file",error_log:"Access error log file"},ipe=Qr;function spe(){var m;const{data:e,reload:t,element:n}=Xo("get_config",{omit:["vfs"]}),r=Jl(),{changes:o}=Av(JA),i=Xo(e&&"get_status"),s=i.data,a=yw=i.reload;u.useEffect(()=>void a(),[e]),u.useEffect(()=>()=>yw=void 0,[]);const c=(m=up("get_admins")[0])==null?void 0:m.list;if(n)return n;if(i.error)return i.element;const d=Al!==e?Cn.config=Al=e:r.config,p={comp:xs,min:1,placeholder:"no limit",md:3};return u.createElement(cp,{sx:{maxWidth:"60em"},values:d,set(v,b){Cn.config[b]=v},stickyBar:!0,onError:Dn,save:{onClick:h,sx:Hv(Object.keys(o).length>0)},barSx:{gap:2},addToBar:[u.createElement(lr,{onClick(){t(),a()},startIcon:u.createElement(ax)},"Reload")],defaults(){return{sm:6}},fields:[{k:"port",comp:c$,md:3,label:"HTTP port",status:(s==null?void 0:s.http)||!0,suggestedPort:80},{k:"https_port",comp:c$,md:3,label:"HTTPS port",status:(s==null?void 0:s.https)||!0,suggestedPort:443,onChange(v){return v>=0&&d.https_port<0&&!d.cert&&ape(),v}},Tt(Ie({k:"max_kbps"},p),{label:"Limit output KB/s",helperText:"Doesn't apply to localhost"}),Tt(Ie({k:"max_kbps_per_ip"},p),{label:"Limit output KB/s per-ip"}),d.https_port>=0&&Ie({k:"cert",comp:ff,label:"HTTPS certificate file"},l_(s==null?void 0:s.https.error,v=>uS(v)?{error:!0,helperText:[v," - ",u.createElement(Ms,{key:"fix",sx:{cursor:"pointer"},onClick:fS},"make one")]}:null)),d.https_port>=0&&Ie({k:"private_key",comp:ff,label:"HTTPS private key file"},l_(s==null?void 0:s.https.error,v=>dS(v)?{error:!0,helperText:v}:null)),{k:"open_browser_at_start",comp:Ol,label:"Open Admin-panel at start",md:4,helperText:"Browser is automatically launched with HFS"},{k:"localhost_admin",comp:Ol,label:"Admin access for localhost connections",md:5,getError:v=>!v&&(c==null?void 0:c.length)===0&&"First create at least one admin account",helperText:"To access Admin without entering credentials"},{k:"file_menu_on_link",comp:zs,label:"Access file menu",sm:12,md:3,options:{"by clicking on file name":!0,"by dedicated button":!1}},{k:"title",helperText:"You can see this in the tab of your browser"},{k:"favicon",comp:ff,placeholder:"None",fileMask:"*.png|*.ico|*.jpg|*.jpeg|*.gif|*.svg",helperText:"The icon associated to your website"},{k:"log",label:bg.log,md:3,helperText:"Requests are logged here"},{k:"error_log",label:bg.error_log,md:3,placeholder:"errors go to main log",helperText:"If you want errors in a different log"},{k:"log_rotation",comp:zs,options:[{value:"",label:"disabled"},"daily","weekly","monthly"],helperText:"To avoid an endlessly-growing single log file"},{k:"proxies",comp:xs,min:0,max:9,sm:6,label:"How many HTTP proxies between this server and users?",error:QA(d,s),helperText:"Wrong number will prevent detection of users' IP address"},{k:"allowed_referer",placeholder:"any",label:"Links from other websites",comp:lpe},{k:"dont_overwrite_uploading",comp:Ol,label:"Don't overwrite uploading",helperText:"Files will be numbered to avoid overwriting"},{k:"delete_unfinished_uploads_after",comp:xs,md:3,min:0,unit:"seconds",placeholder:"Never",helperText:"Leave empty to never delete"},{k:"min_available_mb",comp:xs,md:3,min:0,unit:"MBytes",placeholder:"None",label:"Min. available disk space",helperText:"Reject uploads that don't comply"},{k:"admin_net",comp:ipe,label:"Admin-panel accessible from",placeholder:"any address",helperText:"IP address of browser machine. Wildcards supported."},{k:"zip_calculate_size_for_seconds",comp:xs,label:"Calculate ZIP size for",unit:"seconds",helperText:"If time is not enough, the browser will not show download percentage"},{k:"mime",comp:ore,keyLabel:"Files",keyWidth:7,valueLabel:"Mime type",valueWidth:4},{k:"block",label:"Blocked IPs",multiline:!0,minRows:3,helperText:"Enter an IP address for each line. CIDR and * are supported.",fromField:v=>v.split(`
|
|
475
|
+
`).map(b=>b.trim()).filter(Boolean).map(b=>({ip:b})),toField:v=>Array.isArray(v)?v.map(b=>b==null?void 0:b.ip).filter(Boolean).join(`
|
|
476
|
+
`):""}]});function h(){return it(this,null,function*(){var P,_;if(Ot.isEmpty(o))return Ei("Nothing to save");const v=window.location,b=["port","https_port"];if(b.every(I=>o[I]!==void 0))return Dn("You cannot change both http and https port at once. Please, do one, save, and then do the other.","warning");const g=[(P=s==null?void 0:s.http)==null?void 0:P.listening,(_=s==null?void 0:s.https)==null?void 0:_.listening],x=location.protocol==="https:";x&&(b.reverse(),g.reverse());const C=o[b[0]],S=d[b[1]],w=S>0&&g[1],E=x?"http":"https";if(C<0&&!w)return Dn("You cannot switch off this port unless you have a working fixed port for "+E,"warning");if(C===0&&!w)return Dn("You cannot randomize this port unless you have a working fixed port for "+E,"warning");if(!(C>0&&!(yield Vl("You are changing the port and you may be disconnected")))&&!(x&&("cert"in o||"private_key"in o)&&!(yield Vl("You may disrupt https service, kicking you out")))){if(yield Pt("set_config",{values:o}),C!==void 0)return yield Dn("You are being redirected but in some cases this may fail. Hold on tight!","warning"),window.location.href=C<=0?(x?"http:":"https:")+"//"+v.hostname+":"+S+v.pathname:v.protocol+"//"+v.hostname+":"+C+v.pathname;setTimeout(a,"port"in o||"https_port"in o?1e3:0),Object.assign(Al,o),ZA(),Ei("Changes applied","success")}})}}function ZA(){const e={};if(Cn.config)for(const[t,n]of Object.entries(Cn.config))JSON.stringify(n)!==JSON.stringify(Al==null?void 0:Al[t])&&(e[t]=n);JA.changes=e}function uS(e){return/certificate/.test(e)}function dS(e){return/private key/.test(e)}function c$({label:e,value:t,onChange:n,getApi:r,status:o,suggestedPort:i=1,error:s,helperText:a}){const c=u.useRef(i);t>0&&(c.current=t);const d=Number(t>0?c.current:t)||0;let p=o==null?void 0:o.error;return p&&(uS(p)||dS(p)?p=void 0:s=!0),u.createElement(nt,{},u.createElement(nt,{display:"flex"},u.createElement(zs,{sx:{flexGrow:1},label:e,error:s,value:d,options:[{label:"off",value:-1},{label:"random",value:0},{label:"choose",value:c.current}],onChange:n}),t>0&&u.createElement(xs,{label:"Number",fullWidth:!1,value:t,onChange:n,getApi:r,error:s,min:1,max:65535,helperText:a,sx:{minWidth:"5.5em"}})),o&&u.createElement($v,{error:s},o===!0?"...":p!=null?p:(o==null?void 0:o.listening)&&"Correctly working on port "+o.port))}function lpe({label:e,value:t,onChange:n,error:r}){const o=!t||t==="-",i="example.com";return u.createElement(nt,{display:"flex"},u.createElement(zs,{label:e,value:o?t:i,options:{"allow all":"","forbid all":"-","allow some":i},onChange:n,error:r,sx:o?void 0:{maxWidth:"11em"}}),!o&&u.createElement(Qr,{label:"Domain to allow",value:t,placeholder:"example.com",onChange:n,error:r,helperText:"Wildcards supported"}))}function ape(){si({Content:()=>u.createElement(nt,{},u.createElement(nt,{display:"flex",gap:1},u.createElement(rg),"You are enabling HTTPs. It needs a valid certificate + private key to work."),u.createElement(nt,{mt:4,display:"flex",gap:1,justifyContent:"space-around"},u.createElement(lr,{variant:"contained",onClick(){Ii(),fS().then()}},"Help me!"),u.createElement(lr,{onClick:Ii},"I will handle the matter myself")))})}function fS(){return it(this,null,function*(){if(!window.crypto.subtle)return Dn("Retry this procedure on localhost","warning");const e=yield ku({title:"We'll generate a basic certificate for you",form:{fields:[u.createElement(nt,{display:"flex",gap:1,alignItems:"center"},u.createElement(cx),"This certificate is just one click away, but will issue a warning on the browser"),{k:"commonName",label:"Enter a domain, or leave empty"}],save:{children:"Continue"},barSx:{gap:1},addToBar:[u.createElement(Ms,{target:"cert",href:"https://letsencrypt.org/"},u.createElement(lr,{},"Get better certificate"))]}});if(!e)return;const t=yre();try{const n=yield Pt("save_pem",yield cpe(e));yield Pt("set_config",{values:n}),Al&&Object.assign(Al,n),setTimeout(yw,1e3),Object.assign(Cn.config,n),yield Dn("Certificate saved","success")}finally{t()}})}function cpe(e){return it(this,null,function*(){const{pki:t}=window.forge,n=t.rsa.generateKeyPair(2048),r=t.createCertificate();r.publicKey=n.publicKey,r.serialNumber="01",r.validity.notBefore=new Date,r.validity.notAfter=new Date,r.validity.notAfter.setFullYear(r.validity.notBefore.getFullYear()+1);const o=Object.entries(e).map(i=>({name:i[0],value:i[1]}));return r.setSubject(o),r.setIssuer(o),r.sign(n.privateKey),{cert:t.certificateToPem(r),private_key:t.privateKeyToPem(n.privateKey)}})}function upe({account:e,done:t,groups:n,addToBar:r,reload:o}){const[i,s]=u.useState(e),[a,c]=u.useState([]);u.useEffect(()=>{var v,b;s(e),c(n.filter(g=>g!==e.username)),fre()||(b=(v=h.current)==null?void 0:v.querySelector("input"))==null||b.focus()},[JSON.stringify(e)]);const d=!e.username,p=!i.hasPassword,h=u.useRef();return u.createElement(cp,{formRef:h,values:i,set(v,b){s(Tt(Ie({},i),{[b]:v}))},barSx:Ie({gap:2,width:"100%"},bx()),stickyBar:!0,addToBar:[!d&&u.createElement(xn,{icon:os,title:"Delete",confirm:"Delete?",onClick:()=>Pt("del_account",{username:e.username}).then(()=>o())}),r,u.createElement(nt,{flex:1}),eF(i,{fontSize:"large",sx:{p:1}})],fields:[{k:"username",label:p?"Group name":void 0,autoComplete:"off",required:!0,xl:p?12:4,getError:v=>v!==e.username&&Pt("get_account",{username:v}).then(b=>b.username===e.username?"usernames are case-insensitive":"already used",()=>!1)},!p&&{k:"password",md:6,xl:4,type:"password",autoComplete:"new-password",required:d,label:d?"Password":"Change password"},!p&&{k:"password2",md:6,xl:4,type:"password",autoComplete:"new-password",label:"Repeat password",getError:(v,{values:b})=>(v||"")!==(b.password||"")&&"Enter same password"},{k:"ignore_limits",comp:Ol,xl:6,helperText:i.ignore_limits?"Speed limits don't apply to this account":"Speed limits apply to this account"},Ie({k:"admin",comp:Ol,xl:6,fromField:v=>v||null,label:"Permission to access Admin-panel",helperText:"To access THIS interface you are using right now"},!e.admin&&e.adminActualAccess&&{value:!0,helperText:"This permission is inherited"}),{k:"belongs",comp:gx,label:"Inherits from",options:a,helperText:"Specify groups to inherit permissions from."+(a.length?"":" There are no groups available, create one first.")},{k:"redirect",helperText:"If you want this account to be redirected to a specific folder/address at login time"}],onError:Dn,save:{sx:Hv(!wx(i,e)),onClick(){return it(this,null,function*(){const E=i,{password:v="",password2:b,adminActualAccess:g,hasPassword:x}=E,C=sn(E,["password","password2","adminActualAccess","hasPassword"]),{username:S}=i;if(d){const P=yield Pt("add_account",C);if(v)try{yield bw(S,v)}catch(_){throw Pt("del_account",{username:S}).then(),_}t(P.username),Ei("Account created","success");return}const w=yield Pt("set_account",{username:e.username,changes:C});v&&(yield bw(S,v)),setTimeout(()=>Ei("Account modified","success"),1),t(w.username)})}}})}function bw(e,t){return it(this,null,function*(){const n=new Ia.SRPRoutines(new Ia.SRPParameters),r=yield Ia.createVerifierAndSalt(n,e,t);return Pt("change_srp_others",{username:e,salt:String(r.s),verifier:String(r.v)}).catch(o=>{if(o.code!==406)throw o;return Pt("change_password_others",{username:e,newPassword:t})})})}const _1={fieldSeparator:",",lineSeparator:`
|
|
477
|
+
`,quote:'"'},Kh={field:0,fieldOffset:0,line:0,lineOffset:0,quoted:!1,appendCell:!1,appendField:!1,appendRow:!1};class u$ extends Error{constructor(t,n){super(`Invalid CSV at ${t}:${n}`)}}class dpe{constructor(t=_1){Fi(this,"_rows",[]);Fi(this,"_row",[]);Fi(this,"_cell","");Fi(this,"_options",_1);Fi(this,"_state",Ie({},Kh));Fi(this,"_index",0);Fi(this,"_current","");Fi(this,"_previous","");Fi(this,"_quoteState",Ie({},Kh));this._options=Object.assign({},_1,t)}parse(t){for(this.reset(),this._index=0;this._index<t.length;this._index++)this._state.appendCell=!0,this._previous=this._current,this._current=t[this._index],this.handleNext();if(this._row.length>0&&(this.addField(this.fieldValue(this._cell),this._row,this._state),this.addRow(this._row,this._rows,this._state)),this._state.quoted)throw new u$(this._quoteState.line,this._quoteState.lineOffset);return this.makeImmutable(),this._rows}get rows(){return this._rows}get json(){if(this.rows.length>0){const t=this.rows[0].filter(n=>typeof n=="string");return Object.freeze(this.rows.filter((n,r)=>n&&r>0).map(n=>{const r={};return t.forEach((o,i)=>{r[o]=n[i]}),Object.freeze(r)}))}return Object.freeze([])}handleNext(){this.handleQuote()||this.handleFieldSeparator()||this.handleLineSeparator(),this.processState()}handleQuote(){return this._current===this._options.quote?(this._quoteState=Ie({},this._state),this._previous==="\\"?this.handleQuoteEscaped():this.handleQuoteNotEscaped(),!0):!1}handleQuoteEscaped(){this._cell=this._cell.slice(0,Math.max(0,this._cell.length-1))}handleQuoteNotEscaped(){if(this._cell.length===0||this._state.quoted)this._state.quoted=!this._state.quoted;else throw new u$(this._state.line,this._state.lineOffset);this._state.appendCell=!1}handleFieldSeparator(){return this._current===this._options.fieldSeparator?(this._state.quoted||(this._state.appendCell=!1,this._state.appendField=!0),!0):!1}handleLineSeparator(){return this._current===this._options.lineSeparator?(this._state.quoted||(this._state.appendCell=!1,this._state.appendField=!0,this._state.appendRow=!0),!0):!1}processState(){this._state.appendCell&&(this._cell+=this._current),this._state.appendField&&(this.addField(this.fieldValue(this._cell),this._row,this._state),this._cell=""),this._state.appendRow&&(this.addRow(this._row,this._rows,this._state),this._row=[]),this._state.lineOffset++,this._state.fieldOffset++}fieldValue(t){return t}addField(t,n,r){n.push(t),r.field++,r.fieldOffset=-1,r.appendField=!1}addRow(t,n,r){n.push(t),r.field=0,r.line++,r.lineOffset=-1,r.appendRow=!1}makeImmutable(){this.rows.forEach(t=>{t.forEach(n=>Object.freeze(n)),Object.freeze(t)}),Object.freeze(this._rows)}reset(){this._rows=[],this._row=[],this._cell="",this._state=Ie({},Kh),this._index=0,this._current="",this._previous="",this._quoteState=Ie({},Kh)}}function fpe(e){return it(this,null,function*(){MO(t=>it(this,null,function*(){const n=t==null?void 0:t[0];if(!n)return;const r=yield RO(n);if(!r)return;const i=new dpe().parse(r.trim()),s={comp:xs,min:1,max:9,xs:6,typing:!0},a={skipFirstLines:0,usernameColumn:1,passwordColumn:2,groupColumn:3,overwriteExistingAccounts:!1},c=yield ku({title:"Import accounts from CSV",dialogProps:{maxWidth:"sm"},values:a,form:h=>{const m=i[h.skipFirstLines||0],v=p(m,Ie(Ie({},a),h));return{save:{startIcon:u.createElement(Lv),children:"Go"},fields:[u.createElement(nt,{p:1},"Total lines:",i.length),{k:"skipFirstLines",comp:xs,min:0,max:i.length-1,typing:!0,helperText:u.createElement(u.Fragment,{},"First line: ",u.createElement("code",{},m))},Tt(Ie({k:"usernameColumn"},s),{helperText:u.createElement(u.Fragment,{},"First username: ",v.u)}),Tt(Ie({k:"passwordColumn"},s),{helperText:u.createElement(u.Fragment,{},"First password: ",v.p)}),Tt(Ie({k:"groupColumn"},s),{helperText:u.createElement(u.Fragment,{},"First group: ",v.g)}),{k:"overwriteExistingAccounts",comp:Ol,xs:6}]}}});if(!c)return;const d=si({title:"Importing...",Content(){const[h,m]=u.useState(0),[v,b]=u.useState();return u.useEffect(()=>{let g=!1;return setTimeout(()=>it(this,null,function*(){var E;if(g)return;let x=0,C=0,S=c.skipFirstLines;const w=i.length-S;try{let P=0;for(const _ of i){if(g)return;if(S){S--;continue}const I=p(_,c);b(I),m(P++/w),yield Pt("add_account",{username:I.u,belongs:(E=I.g)==null?void 0:E.split(","),overwrite:c.overwriteExistingAccounts}).then(()=>{if(I.p)return bw(I.u,I.p)},M=>{if(M.code===409)return C++;x++})}}finally{d();const P=w-x-C,_="Results: "+[af("",x," failed"),af("",P," succeeded"),af("",C," skipped because already present")].filter(Boolean).join(", ");Dn(_,!P&&x?"error":x||C?"warning":"success"),e==null||e()}})),()=>{g=!0}},[]),u.createElement(nt,{display:"flex",gap:2,alignItems:"center"},u.createElement(GO,{icon:CO,progress:h}),v==null?void 0:v.u)}});function p(h,m){return{u:h[m.usernameColumn-1],p:h[m.passwordColumn-1],g:h[m.groupColumn-1]}}}),{multiple:!1,accept:".csv"})})}function ppe(){const{username:e}=Jl(),{data:t,reload:n,element:r}=Xo("get_accounts"),[o,i]=u.useState([]),s=Array.isArray(o);u.useEffect(()=>{Array.isArray(t==null?void 0:t.list)&&s&&i(o.filter(b=>t.list.find(g=>(g==null?void 0:g.username)===b)))},[t]);const a=t==null?void 0:t.list,c=s&&Ot.find(a,{username:o[0]}),p=Pu("md"),h=!(o.length>0)||!a?null:s&&o.length>1?u.createElement(u.Fragment,{},u.createElement(yx,{alignItems:"center"},u.createElement(Ir,{variant:"h6"},o.length+" selected"),u.createElement(lr,{onClick:v,startIcon:u.createElement(os)},"Remove")),u.createElement(Tv,{},o.map(b=>u.createElement(sO,{key:b},u.createElement(Mv,{},b))))):u.createElement(upe,{account:c||{username:"",hasPassword:o==="new-user"},groups:a.filter(b=>!b.hasPassword).map(b=>b.username),addToBar:p&&u.createElement(xn,{icon:Ov,title:"Close",onClick:m}),reload:n,done(b){i([b]),n()}});return u.useEffect(()=>{if(!(p||!h||!o.length))return si({title:Ot.isString(o)?Ot.startCase(o):o.length>1?"Multiple selection":c?(c.hasPassword?"User: ":"Group: ")+c.username:"?",Content:()=>h,onClose:m})},[p,o,c]),r||u.createElement(Wn,{container:!0,maxWidth:"80em"},u.createElement(Wn,{item:!0,xs:12},u.createElement(nt,{display:"flex",flexWrap:"wrap",gap:2,mb:2,sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper",width:"fit-content"}},u.createElement(nA,{variant:"contained",startIcon:u.createElement(Ste),items:[{children:"user",onClick:()=>i("new-user")},{children:"group",onClick:()=>i("new-group")},{children:"from CSV",onClick:()=>fpe(n)}]},"Add"),Sx(n),(a==null?void 0:a.length)>0&&u.createElement(Ir,{p:1},`${a.length} account(s)`))),u.createElement(Wn,{item:!0,md:5},!(a!=null&&a.length)&&u.createElement(ko,{severity:"info"},Ki`To access administration _remotely_ you will need to create a user account with admin permission`),u.createElement(FO,{multiSelect:!0,sx:{pr:4,pb:2,minWidth:"15em"},selected:s?o:[],onNodeSelect(b,g){i(g)}},a==null?void 0:a.map(b=>{var g,x;return u.createElement(Jb,{key:b.username,nodeId:b.username,label:u.createElement(nt,{sx:{display:"flex",flexWrap:"wrap",padding:".2em 0",gap:".5em",alignItems:"center"}},eF(b),b.adminActualAccess&&ho(bte,"Can login into Admin"),b.username,Boolean((g=b.belongs)==null?void 0:g.length)&&u.createElement(nt,{sx:{color:"text.secondary",fontSize:"small"}},"(",(x=b.belongs)==null?void 0:x.join(", "),")"))})}))),p&&h&&u.createElement(Wn,{item:!0,md:7},u.createElement(jR,{},u.createElement(HR,{},h))));function m(){i([])}function v(){return it(this,null,function*(){if(o.length>Ot.pull(o,e).length&&(yield Dn("Won't delete current account","warning")),!!o.length&&(yield Vl(`Delete ${o.length} item(s)?`)))try{const b=[];for(const g of o)(yield Pt("del_account",{username:g}).then(()=>1,()=>0))||b.push(g);if(n(),b.length)return Dn("Following elements couldn't be deleted: "+b.join(", "),"error")}catch(b){yield Dn(b)}})}}function eF(e,t={}){return u.createElement(e.hasPassword?xte:CO,t)}function hpe(){const{element:e}=Xo("get_config",{only:[]}),{username:t}=Jl();return e||(t?u.createElement(nt,{display:"flex",flexDirection:"column",gap:2},"You are logged in as "+t,u.createElement(nt,{},u.createElement(lr,{size:"large",variant:"contained",onClick(){Pt("logout").catch(n=>n.code!==401&&Dn(n))}},"Yes, I want to logout"))):u.createElement(ko,{severity:"info"},"You are not logged in, because authentication is not required on localhost"))}function mpe(){const{list:e,error:t,connecting:n,reload:r}=Xa("list_langs",void 0,{addId:!0});if(t)return t;return u.createElement(u.Fragment,{},u.createElement(ko,{severity:"info"},"Translation is limited to Front-end, it doesn't apply to Admin-panel"),u.createElement(ko,{severity:"info"},"The front-end will automatically apply translation based on the language of the browser. You can force a specific language to load by appending by appending ?lang=CODE to the URL."),u.createElement(nt,{mb:1},u.createElement(lr,{variant:"contained",startIcon:u.createElement(Lv),onClick:o},"Add")),u.createElement(Gu,{loading:n,rows:e,hideFooter:!0,sx:{maxWidth:"40em"},columns:[{field:"code",width:80},{field:"version",width:80},{field:"author",flex:1},{field:"actions",width:80,align:"center",hideSortIcons:!0,disableColumnMenu:!0,renderCell({row:i}){return u.createElement("div",{},u.createElement(xn,{icon:os,title:"Delete",confirm:"Delete?",onClick(){return it(this,null,function*(){yield Pt("del_lang",Ot.pick(i,"code")),r(),Ei("Deleted")})}}))}}]}));function o(){MO(i=>it(this,null,function*(){if(!i)return;const s={};for(const a of i)s[a.name]=yield RO(a);try{yield Pt("add_langs",{langs:s}),r(),Ei("Loaded")}catch(a){yield Dn(a)}}),{accept:".json"})}}function gpe(){const[e,t]=u.useState(0),n=wre(bg);return u.createElement(u.Fragment,{},u.createElement(yO,{value:e,onChange(r,o){t(o)}},n.map(r=>u.createElement(gO,{label:bg[r],key:r}))),u.createElement(vpe,{key:e,file:n[e]}))}function vpe({file:e}){const{list:t,error:n,connecting:r}=Xa("get_log",{file:e},{addId:!0});return n||u.createElement(Gu,{loading:r,rows:t,componentsProps:{pagination:{showFirstButton:!0,showLastButton:!0}},columns:[{field:"ip",headerName:"Address",flex:.6,minWidth:100,maxWidth:230},{field:"user",headerName:"Username",flex:.4,maxWidth:200},{field:"ts",headerName:"Timestamp",type:"dateTime",width:170,valueFormatter:({value:o})=>new Date(o).toLocaleString()},{field:"method",headerName:"Method",width:80},{field:"status",headerName:"Code",type:"number",width:70},{field:"length",headerName:"Size",type:"number",valueFormatter:({value:o})=>Na(o)},{field:"uri",headerName:"URI",flex:2,minWidth:100}]})}function tF(c){var d=c,{label:e,helperText:t,fields:n,value:r,onChange:o,onError:i,getApi:s}=d,a=sn(d,["label","helperText","fields","value","onChange","onError","getApi"]);const p=u.useMemo(()=>(r||[]).map((m,v)=>bne(Ie({},m),"id"in m?{$idx:v}:{id:v})),[JSON.stringify(r)]),h=u.useMemo(()=>[...n.map(m=>{var v;return Ie(Ie({field:m.k,headerName:(v=m.headerName)!=null?v:typeof m.label=="string"?m.label:DO(m.k),disableColumnMenu:!0},m.$width>=8?{width:m.$width}:{flex:m.$width||1}),m.$column)}),{field:"",width:80,disableColumnMenu:!0,sortable:!1,align:"center",headerAlign:"center",renderHeader(){return u.createElement(xn,{icon:ix,title:"Add",onClick:m=>ku({form:{fields:n}}).then(v=>v&&o([...r||[],v],{was:r,event:m}))})},renderCell({row:m}){const{$idx:v=m.id}=m;return u.createElement("div",{},u.createElement(xn,{icon:wO,title:"Modify",onClick:b=>ku({values:m,form:{fields:n}}).then(g=>{if(!g)return;const x=r.map((C,S)=>S===v?g:C);o(x,{was:r,event:b})})}),u.createElement(xn,{icon:os,title:"Delete",confirm:"Delete?",onClick(b){const g=r.filter((x,C)=>C!==v);o(g,{was:r,event:b})}}))}}],[n,r,o]);return u.createElement(u.Fragment,{},e&&u.createElement(QR,{sx:{ml:1}},e),t&&u.createElement($v,{},t),u.createElement(nt,Ie({height:"20em"},a),u.createElement(Gu,{columns:h,rows:p,hideFooterSelectedRowCount:!0,hideFooter:!0,componentsProps:{pagination:{showFirstButton:!0,showLastButton:!0}}})))}function d$({updates:e}){const{list:t,setList:n,error:r,initializing:o}=Xa(e?"get_plugin_updates":"get_plugins");return r?oF(r):u.createElement(Gu,{rows:t.length?t:[],loading:o,disableColumnSelector:!0,disableColumnMenu:!0,columnVisibilityModel:{started:!e},localeText:e&&{noRowsLabel:'No updates available. Only plugins available on "search online" are checked.'},columns:[{field:"id",headerName:"name",flex:.3,minWidth:150,renderCell({row:i,value:s}){return u.createElement(u.Fragment,{},s,typeof i.badApi=="string"&&u.createElement(sp,{title:i.badApi,children:u.createElement(sx,{color:"warning",sx:{ml:1}})}),rF(i.repo))}},{field:"version",width:70},{field:"description",flex:1},{field:"actions",width:120,align:"center",headerAlign:"center",hideSortIcons:!0,disableColumnMenu:!0,renderCell({row:i}){const{config:s,id:a}=i;return e?u.createElement(iF,{id:a,then:()=>n(t.filter(p=>p.id!==a))}):u.createElement("div",{},u.createElement(xn,i.started?{icon:e_,title:u.createElement(nt,{},`Stop ${a}`,u.createElement("br"),"Started "+new Date(i.started).toLocaleString()),color:"success",onClick:()=>Pt("set_plugin",{id:a,enabled:!1}).then(()=>Ei("Plugin is stopping",u.createElement(e_,{color:"warning"})))}:{icon:lx,title:`Start ${a}`,onClick:()=>sF(a)}),u.createElement(xn,{icon:EO,title:"Options",disabled:!s&&"No options available for this plugin",progress:!1,onClick(){return it(this,null,function*(){const p=yield Pt("get_plugin",{id:a}),h=yield ku(Ie({title:`${a} options`,form:{fields:[u.createElement(nt,{},i.description),...nF(s)]},values:p.config},i.configDialog));!h||Ot.isEqual(p.config,h)||(yield Pt("set_plugin",{id:a,config:h}),Ei("Configuration saved"))})}}),u.createElement(xn,{icon:os,title:"Uninstall",confirm:"Remove?",onClick(){return it(this,null,function*(){yield Pt("uninstall_plugin",{id:a}),Ei("Plugin uninstalled")})}}))}}]})}function nF(e){return Object.entries(e).map(([t,n])=>{if(!Ot.isPlainObject(n))return n;let d=n,{type:r,defaultValue:o,fields:i,frontend:s}=d,a=sn(d,["type","defaultValue","fields","frontend"]);const c=ype[r];return c===tF&&(i=nF(i)),o!==void 0&&r==="boolean"&&(a.placeholder=`Default value is ${JSON.stringify(o)}`),Ie({k:t,comp:c,fields:i},a)})}const ype={string:Qr,number:xs,boolean:Ol,select:zs,multiselect:gx,array:tF,real_path:ff};function rF(e){return e&&u.createElement(xn,{icon:ute,title:"Open web page",link:"https://github.com/"+e})}function oF(e){return u.createElement(ko,{severity:"error"},Sre(e,{ENOTFOUND:"Couldn't reach github.com"}))}function iF({id:e,then:t}){return u.createElement(xn,{icon:$te,title:"Update",onClick(){return it(this,null,function*(){yield Pt("update_plugin",{id:e}),t==null||t(e),Ei("Plugin updated")})}})}function sF(e){return Pt("set_plugin",{id:e,enabled:!0}).then(()=>Ei("Plugin is starting",u.createElement(lx,{color:"success"})))}function bpe(){const[e,t]=u.useState(""),n=kO(e,1e3),{list:r,error:o,initializing:i,updateList:s}=Xa("search_online_plugins",{text:n}),a=Jl();return o?oF(o):u.createElement(u.Fragment,{},u.createElement(Qr,{value:e,onChange:t,start:u.createElement(Pte),typing:!0,label:"Search text"}),u.createElement(Gu,{rows:r.length?r:[],localeText:{noRowsLabel:"No compatible plugins have been found"},loading:i,columnVisibilityModel:a.onlinePluginsColumns,onColumnVisibilityModelChange:c=>Object.assign(Cn.onlinePluginsColumns,c),columns:[{field:"id",headerName:"name",flex:1},{field:"version",width:70},{field:"pushed_at",headerName:"last update",valueGetter:({value:c})=>new Date(c).toLocaleDateString()},{field:"license",width:80},{field:"description",flex:3},{field:"stargazers_count",width:50,headerName:"stars",align:"center"},{field:"actions",width:80,align:"center",hideSortIcons:!0,disableColumnMenu:!0,hideable:!1,renderCell({row:c}){const{id:d,branch:p}=c;return u.createElement("div",{},rF(d),c.update?u.createElement(iF,{id:d,then(){s(m=>Ot.find(m,{id:d}).update=!1)}}):u.createElement(xn,{icon:rte,title:"Install",progress:c.downloading,disabled:c.installed&&"Already installed",tooltipProps:{placement:"bottom-end"},confirm:"WARNING - Proceed only if you trust this author and this plugin",onClick(){return it(this,null,function*(){const{id:m}=yield Pt("download_plugin",{id:d,branch:p});(yield Vl(Ki(`Plugin /${d}/ installed.
|
|
478
|
+
Do you want to start it now?`)))&&(yield sF(m))})}}))}}]}))}const lF={Installed:d$,"Search online":bpe,"Check updates":()=>u.createElement(d$,{updates:!0})},wpe=Object.keys(lF),Cpe=Object.values(lF);function xpe(){const[e,t]=u.useState(0);return u.createElement(u.Fragment,{},u.createElement(yO,{value:e,onChange(n,r){t(r)}},wpe.map(n=>u.createElement(gO,{label:n,key:n}))),u.createElement(Cpe[e]))}var aF={},Spe=hn&&hn.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),rr=hn&&hn.__assign||function(){return rr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},rr.apply(this,arguments)},Epe=hn&&hn.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),kpe=hn&&hn.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Ppe=hn&&hn.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&Epe(t,e,n);return kpe(t,e),t},Ipe=hn&&hn.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};Object.defineProperty(aF,"__esModule",{value:!0});var Rd=Ppe(u),_pe=13,$pe=9,Tpe=8,Mpe=89,qh=90,Rpe=77,f$=57,p$=219,h$=222,m$=192,Ope=27,g$=100,Lpe=3e3,Ape=typeof window!="undefined"&&"navigator"in window&&/Win/i.test(navigator.platform),$1=typeof window!="undefined"&&"navigator"in window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),wm="npm__react-simple-code-editor__textarea",Fpe=`
|
|
479
|
+
/**
|
|
480
|
+
* Reset the text fill color so that placeholder is visible
|
|
481
|
+
*/
|
|
482
|
+
.`.concat(wm,`:empty {
|
|
483
|
+
-webkit-text-fill-color: inherit !important;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* Hack to apply on some CSS on IE10 and IE11
|
|
488
|
+
*/
|
|
489
|
+
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
|
|
490
|
+
/**
|
|
491
|
+
* IE doesn't support '-webkit-text-fill-color'
|
|
492
|
+
* So we use 'color: transparent' to make the text transparent on IE
|
|
493
|
+
* Unlike other browsers, it doesn't affect caret color in IE
|
|
494
|
+
*/
|
|
495
|
+
.`).concat(wm,` {
|
|
496
|
+
color: transparent !important;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
.`).concat(wm,`::selection {
|
|
500
|
+
background-color: #accef7 !important;
|
|
501
|
+
color: transparent !important;
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
`),Npe=function(e){Spe(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.state={capture:!0},n._recordCurrentState=function(){var r=n._input;if(r){var o=r.value,i=r.selectionStart,s=r.selectionEnd;n._recordChange({value:o,selectionStart:i,selectionEnd:s})}},n._getLines=function(r,o){return r.substring(0,o).split(`
|
|
505
|
+
`)},n._recordChange=function(r,o){var i,s,a;o===void 0&&(o=!1);var c=n._history,d=c.stack,p=c.offset;if(d.length&&p>-1){n._history.stack=d.slice(0,p+1);var h=n._history.stack.length;if(h>g$){var m=h-g$;n._history.stack=d.slice(m,h),n._history.offset=Math.max(n._history.offset-m,0)}}var v=Date.now();if(o){var b=n._history.stack[n._history.offset];if(b&&v-b.timestamp<Lpe){var g=/[^a-z0-9]([a-z0-9]+)$/i,x=(i=n._getLines(b.value,b.selectionStart).pop())===null||i===void 0?void 0:i.match(g),C=(s=n._getLines(r.value,r.selectionStart).pop())===null||s===void 0?void 0:s.match(g);if(x!=null&&x[1]&&(!((a=C==null?void 0:C[1])===null||a===void 0)&&a.startsWith(x[1]))){n._history.stack[n._history.offset]=rr(rr({},r),{timestamp:v});return}}}n._history.stack.push(rr(rr({},r),{timestamp:v})),n._history.offset++},n._updateInput=function(r){var o=n._input;o&&(o.value=r.value,o.selectionStart=r.selectionStart,o.selectionEnd=r.selectionEnd,n.props.onValueChange(r.value))},n._applyEdits=function(r){var o=n._input,i=n._history.stack[n._history.offset];i&&o&&(n._history.stack[n._history.offset]=rr(rr({},i),{selectionStart:o.selectionStart,selectionEnd:o.selectionEnd})),n._recordChange(r),n._updateInput(r)},n._undoEdit=function(){var r=n._history,o=r.stack,i=r.offset,s=o[i-1];s&&(n._updateInput(s),n._history.offset=Math.max(i-1,0))},n._redoEdit=function(){var r=n._history,o=r.stack,i=r.offset,s=o[i+1];s&&(n._updateInput(s),n._history.offset=Math.min(i+1,o.length-1))},n._handleKeyDown=function(r){var o=n.props,i=o.tabSize,s=o.insertSpaces,a=o.ignoreTabKey,c=o.onKeyDown;if(!(c&&(c(r),r.defaultPrevented))){r.keyCode===Ope&&r.currentTarget.blur();var d=r.currentTarget,p=d.value,h=d.selectionStart,m=d.selectionEnd,v=(s?" ":" ").repeat(i);if(r.keyCode===$pe&&!a&&n.state.capture)if(r.preventDefault(),r.shiftKey){var b=n._getLines(p,h),g=b.length-1,x=n._getLines(p,m).length-1,C=p.split(`
|
|
506
|
+
`).map(function(H,j){return j>=g&&j<=x&&H.startsWith(v)?H.substring(v.length):H}).join(`
|
|
507
|
+
`);if(p!==C){var S=b[g];n._applyEdits({value:C,selectionStart:S!=null&&S.startsWith(v)?h-v.length:h,selectionEnd:m-(p.length-C.length)})}}else if(h!==m){var b=n._getLines(p,h),w=b.length-1,E=n._getLines(p,m).length-1,S=b[w];n._applyEdits({value:p.split(`
|
|
508
|
+
`).map(function(A,F){return F>=w&&F<=E?v+A:A}).join(`
|
|
509
|
+
`),selectionStart:S&&/\S/.test(S)?h+v.length:h,selectionEnd:m+v.length*(E-w+1)})}else{var P=h+v.length;n._applyEdits({value:p.substring(0,h)+v+p.substring(m),selectionStart:P,selectionEnd:P})}else if(r.keyCode===Tpe){var _=h!==m,I=p.substring(0,h);if(I.endsWith(v)&&!_){r.preventDefault();var P=h-v.length;n._applyEdits({value:p.substring(0,h-v.length)+p.substring(m),selectionStart:P,selectionEnd:P})}}else if(r.keyCode===_pe){if(h===m){var M=n._getLines(p,h).pop(),O=M==null?void 0:M.match(/^\s+/);if(O!=null&&O[0]){r.preventDefault();var L=`
|
|
510
|
+
`+O[0],P=h+L.length;n._applyEdits({value:p.substring(0,h)+L+p.substring(m),selectionStart:P,selectionEnd:P})}}}else if(r.keyCode===f$||r.keyCode===p$||r.keyCode===h$||r.keyCode===m$){var R=void 0;r.keyCode===f$&&r.shiftKey?R=["(",")"]:r.keyCode===p$?r.shiftKey?R=["{","}"]:R=["[","]"]:r.keyCode===h$?r.shiftKey?R=['"','"']:R=["'","'"]:r.keyCode===m$&&!r.shiftKey&&(R=["`","`"]),h!==m&&R&&(r.preventDefault(),n._applyEdits({value:p.substring(0,h)+R[0]+p.substring(h,m)+R[1]+p.substring(m),selectionStart:h,selectionEnd:m+2}))}else($1?r.metaKey&&r.keyCode===qh:r.ctrlKey&&r.keyCode===qh)&&!r.shiftKey&&!r.altKey?(r.preventDefault(),n._undoEdit()):($1?r.metaKey&&r.keyCode===qh&&r.shiftKey:Ape?r.ctrlKey&&r.keyCode===Mpe:r.ctrlKey&&r.keyCode===qh&&r.shiftKey)&&!r.altKey?(r.preventDefault(),n._redoEdit()):r.keyCode===Rpe&&r.ctrlKey&&(!$1||r.shiftKey)&&(r.preventDefault(),n.setState(function(H){return{capture:!H.capture}}))}},n._handleChange=function(r){var o=r.currentTarget,i=o.value,s=o.selectionStart,a=o.selectionEnd;n._recordChange({value:i,selectionStart:s,selectionEnd:a},!0),n.props.onValueChange(i)},n._history={stack:[],offset:-1},n._input=null,n}return t.prototype.componentDidMount=function(){this._recordCurrentState()},Object.defineProperty(t.prototype,"session",{get:function(){return{history:this._history}},set:function(n){this._history=n.history},enumerable:!1,configurable:!0}),t.prototype.render=function(){var n=this,r=this.props,o=r.value,i=r.style,s=r.padding,a=r.highlight,c=r.textareaId,d=r.textareaClassName,p=r.autoFocus,h=r.disabled,m=r.form,v=r.maxLength,b=r.minLength,g=r.name,x=r.placeholder,C=r.readOnly,S=r.required,w=r.onClick,E=r.onFocus,P=r.onBlur,_=r.onKeyUp;r.onKeyDown,r.onValueChange,r.tabSize,r.insertSpaces,r.ignoreTabKey;var I=r.preClassName,M=Ipe(r,["value","style","padding","highlight","textareaId","textareaClassName","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey","preClassName"]),O={paddingTop:typeof s=="object"?s.top:s,paddingRight:typeof s=="object"?s.right:s,paddingBottom:typeof s=="object"?s.bottom:s,paddingLeft:typeof s=="object"?s.left:s},L=a(o);return Rd.createElement("div",rr({},M,{style:rr(rr({},Od.container),i)}),Rd.createElement("pre",rr({className:I,"aria-hidden":"true",style:rr(rr(rr({},Od.editor),Od.highlight),O)},typeof L=="string"?{dangerouslySetInnerHTML:{__html:L+"<br />"}}:{children:L})),Rd.createElement("textarea",{ref:function(R){return n._input=R},style:rr(rr(rr({},Od.editor),Od.textarea),O),className:wm+(d?" ".concat(d):""),id:c,value:o,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:w,onKeyUp:_,onFocus:E,onBlur:P,disabled:h,form:m,maxLength:v,minLength:b,name:g,placeholder:x,readOnly:C,required:S,autoFocus:p,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),Rd.createElement("style",{dangerouslySetInnerHTML:{__html:Fpe}}))},t.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},t}(Rd.Component),Dpe=aF.default=Npe,Od={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}};function Bpe(){const{data:e,reload:t}=Xo("get_custom_html"),[n,r]=u.useState(""),[o,i]=u.useState({}),[s,a]=u.useState({});u.useEffect(()=>e&&a(e==null?void 0:e.sections),[e]),u.useEffect(()=>i(s),[s]);const c=u.useMemo(()=>{const h=Object.keys(o);return h.includes(n)||r((h==null?void 0:h[0])||""),h.map(m=>{var v;return{value:m,label:Ot.startCase(m)+((v=o[m])!=null&&v.trim()?" *":"")}})},[kO(o,500)]),d=u.useMemo(()=>!Ot.isEqualWith(s,o,(h,m)=>!h&&!m||void 0),[s,o]);return u.createElement(u.Fragment,{},u.createElement(ko,{severity:"info"},Ki("Add HTML code to some parts of the Front-end. It's saved to file `custom.html`, that you can edit directly with your editor of choice."),u.createElement(Ms,{href:"https://github.com/rejetto/hfs/wiki/customization"})),u.createElement(nt,{display:"flex",alignItems:"center",gap:1,mb:1},u.createElement(zs,{label:"Section",value:n,options:c,onChange:r}),Sx(t),u.createElement(xn,{icon:SO,title:`Save
|
|
511
|
+
(ctrl+s)`,sx:Hv(d),onClick:p})),u.createElement(Dpe,{value:(o==null?void 0:o[n])||"",onValueChange:h=>i(m=>Tt(Ie({},m),{[n]:h})),highlight:zpe,onKeyDown:h=>{kre(h)==="s"&&(p().then(),h.preventDefault())},padding:10,tabSize:4,insertSpaces:!0,ignoreTabKey:!1,style:{fontFamily:"ui-monospace,SFMono-Regular,SF Mono,Consolas,Liberation Mono,Menlo,monospace",fontSize:"1em",flex:1,background:"#8881"}}));function p(){return Pt("set_custom_html",{sections:o}).then(()=>a(o))}}function zpe(e){return e.replace(/[\u0000-\u002F\u003A-\u0040\u005B-\u0060\u007B-\u00FF]/g,t=>"&#"+("000"+t.charCodeAt(0)).slice(-4)+";")}const ww=[{path:"",icon:Ete,label:"Home",title:"Admin panel",comp:rpe},{path:"fs",icon:Yee,label:"Shared files",comp:Wfe},{path:"accounts",icon:vte,comp:ppe},{path:"options",icon:EO,comp:spe},{path:"monitoring",icon:wte,comp:xde},{path:"logs",icon:fte,comp:gpe},{path:"language",icon:_te,comp:mpe},{path:"plugins",icon:ste,comp:xpe},{path:"html",icon:tte,label:"Custom HTML",comp:Bpe},{path:"logout",icon:gte,comp:hpe}];let T1;function v$({onSelect:e}){var n;const[t]=up(!T1&&"get_status");return T1||(T1=(n=t==null?void 0:t.version)==null?void 0:n.replace("-"," ")),u.createElement(nt,{display:"flex",flexDirection:"column",bgcolor:"primary.main",minHeight:"100%"},u.createElement(Tv,{sx:{pr:1,color:"primary.contrastText",height:"100vh",boxSizing:"border-box",overflowY:"auto",position:"sticky",top:0,display:"flex",flexDirection:"column","&>a":{flex:"0"}}},u.createElement(nt,{display:"flex",px:2,py:1,gap:2,alignItems:"flex-end"},u.createElement(Ir,{variant:"h3"},"HFS"),u.createElement(nt,{pb:1,fontSize:"small"},T1)),ww.map(r=>u.createElement(RQ,{key:r.path,to:r.path,component:Kj,onClick:e,style:({isActive:o})=>o?{textDecoration:"underline"}:{},children:void 0},r.icon&&u.createElement(lO,{sx:{color:"primary.contrastText",minWidth:48}},u.createElement(r.icon)),u.createElement(Mv,{sx:{whiteSpace:"nowrap"},primary:cF(r)}))),u.createElement(nt,{sx:{flex:1,opacity:.7,background:"url(hfs-logo.svg) no-repeat bottom",backgroundSize:"contain",margin:2}})))}function cF(e){var t;return e&&((t=e.label)!=null?t:Ot.capitalize(e.path))}function jpe({children:e}){const{loginRequired:t}=Jl();return t===403?u.createElement(xx,{},u.createElement(ko,{severity:"error"},"Admin-panel only for localhost"),u.createElement(nt,{mt:2,fontSize:"small"},"because no admin account was configured")):t?u.createElement(Hpe):u.createElement(u.Fragment,{},e)}function Hpe(){var s;const[e,t]=u.useState({username:"",password:""}),[n,r]=u.useState(""),o=u.useRef(),i=(s=o.current)==null?void 0:s.querySelector('input[value=""]');return u.useEffect(()=>{var c;return(c=i==null?void 0:i.focus)==null?void 0:c.call(i)},[i]),u.createElement(xx,{},u.createElement(cp,{formRef:o,values:e,set(c,d){t(Tt(Ie({},e),{[d]:c}))},fields:[{k:"username",autoComplete:"username",autoFocus:!0,required:!0},{k:"password",type:"password",autoComplete:"current-password",required:!0}],addToBar:[n&&u.createElement(ko,{severity:"error",sx:{flex:1}},n)],saveOnEnter:!0,save:{children:"Enter",startIcon:null,onClick(){return it(this,null,function*(){try{r(""),yield Vpe(e.username,e.password)}catch(c){r(String(c))}})}}}))}function Vpe(e,t){return it(this,null,function*(){const n=yield mne(e,t,Pt).catch(r=>{throw(r==null?void 0:r.code)===401?"Wrong username or password":r==="trust"?"Login aborted: server identity cannot be trusted":(r==null?void 0:r.name)==="AbortError"?"Server didn't respond":(r==null?void 0:r.message)||"Unknown error"});if(!n.adminUrl)throw"This account has no Admin access";Cn.loginRequired=!1,pS(n)})}pS(window.HFS.session);function pS(e){if(!e)return;const{exp:t,username:n}=e;if(Cn.username=n,!n||!t)return;const r=new Date(t).getTime()-Date.now(),o=Math.min(r-3e4,6e5);console.debug("session refresh in",Math.round(o/1e3)),setTimeout(()=>Pt("refresh_session").then(pS),o)}function Upe(){return u.createElement(n7,{theme:gre()},u.createElement(Wpe,{},u.createElement(jpe,{},u.createElement(Uj,{},u.createElement(Gpe)))))}function Wpe(e){return u.createElement(nt,Ie({sx:{bgcolor:"background.default",color:"text.primary",display:"flex",flexDirection:"column",minHeight:"100%",flex:1}},e))}function Gpe(){const e=Fu().pathname.slice(1),t=ww.find(s=>s.path===e),n=t&&(t.title||cF(t)),[r,o]=u.useState(!1),i=Pu("lg");return u.createElement(u.Fragment,{},!i&&u.createElement(Kpe,{title:n,openMenu:()=>o(!0)}),!i&&u.createElement(BY,{anchor:"left",open:r,onClose(){o(!1)}},u.createElement(v$,{onSelect:()=>o(!1)})),u.createElement(nt,{display:"flex",flex:1},i&&u.createElement(v$),u.createElement(nt,{component:"main",sx:{background:"url(cup.svg) no-repeat right fixed",backgroundSize:"contain",px:{xs:2,md:3},pb:"1em",position:"relative",display:"flex",flexDirection:"column",width:"100%"}},n&&i&&u.createElement(Ir,{variant:"h2",mb:2},n),u.createElement(Bj,{},ww.map((s,a)=>u.createElement(LM,{key:a,path:s.path,element:u.createElement(s.comp)})))),u.createElement(ine)))}function Kpe({title:e,openMenu:t}){return u.createElement(WG,{position:"sticky",sx:{mb:2}},u.createElement(vO,{},u.createElement(ir,{size:"large",edge:"start",color:"inherit",sx:{mr:2},"aria-label":"menu",onClick:t},u.createElement(yte)),e))}IM(document.getElementById("root")).render(u.createElement(u.StrictMode,{},u.createElement(Upe)));export{hn as c};
|